@gientech/modual 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AppLoading-mci3gLZt.js +414 -0
- package/dist/assets/{GientechStreamReader-A8zHypyu.js → GientechStreamReader-4496nAm0.js} +2 -2
- package/dist/assets/{index-B7u9FawR.js → index-7rZAt9P3.js} +1 -1
- package/dist/assets/index-BVENTW1Q.js +13 -0
- package/dist/assets/index-Bb8_WB-l.js +1 -0
- package/dist/assets/{index-rydP_SDR.js → index-BpJ9Bm5x.js} +6 -6
- package/dist/assets/index-CNxDI4h-.js +1078 -0
- package/dist/assets/{index-EcdpegTC.js → index-CWzpBU29.js} +1 -1
- package/dist/assets/{index-DiQ4Me9J.js → index-D1m34Ij7.js} +124 -124
- package/dist/assets/{index-CFlRqq2H.js → index-_gBtdXQV.js} +2 -2
- package/dist/assets/{plus-ufD39rmY.js → plus-CrtEUXaQ.js} +1 -1
- package/dist/assets/style3.css +1 -1
- package/dist/assets/{x-_1-UpSBt.js → x-Dr3EBTzJ.js} +1 -1
- package/dist/chat.d.ts +5 -1
- package/dist/chat.js +69 -78
- package/dist/database.js +2 -2
- package/dist/databaseId.js +2 -2
- package/dist/databaseTable.js +2 -14
- package/dist/index.js +3 -3
- package/dist/modelManage.js +1 -1
- package/dist/package.json +1 -1
- package/dist/sensitive.js +1 -1
- package/dist/streamFilesReader.js +1 -1
- package/package.json +3 -3
- package/scripts/README.md +133 -133
- package/scripts/build-demo.js +88 -88
- package/scripts/demo-selector.js +216 -216
- package/scripts/preview-demo.js +130 -130
- package/scripts/run-demo.bat +34 -34
- package/src/examples/Demo/index.tsx +12 -0
- package/src/examples/chat/index.tsx +8 -21
- package/src/examples/chat/logo03.png +0 -0
- package/src/main.tsx +2 -2
- package/src/main.tsx.backup +2 -2
- package/src/modules/chat/index.tsx +87 -4
- package/src/utils/gientechCommon/components/AppLoading.tsx +10 -10
- package/src/utils/testconfigs/index.ts +1 -1
- package/stats.html +1 -1
- package/dist/assets/AppLoading-BCu9TPs5.js +0 -414
- package/dist/assets/LeftOutlined-BdBZ6FSD.js +0 -1
- package/dist/assets/index-CNJZ9j4J.js +0 -1
- package/dist/assets/index-DfSHCQcq.js +0 -1289
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import*as u from"react";import pe,{forwardRef as or,createElement as fs,createContext as Dr,version as j0,useMemo as xn,useContext as Ut,useState as Nt,useRef as Ye,Children as tm,useEffect as Mt,useCallback as td,useImperativeHandle as To,useLayoutEffect as P0,cloneElement as nm,isValidElement as rm,Component as R0}from"react";import{ab as sr,ac as A0,I as ps,F as Co,ad as F0,H as yi,ae as T0,a9 as D0}from"./index-D1m34Ij7.js";import*as B0 from"react-dom";import nd,{flushSync as ms,createPortal as om,unstable_batchedUpdates as H0}from"react-dom";import{jsx as Ht,jsxs as dn}from"react/jsx-runtime";import{M as z0}from"./index-BpJ9Bm5x.js";import{T as _0}from"./index-CNxDI4h-.js";function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rd={exports:{}},Qo={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var od;function L0(){if(od)return Qo;od=1;var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,s,c){var d,f={},p=null,v=null;c!==void 0&&(p=""+c),s.key!==void 0&&(p=""+s.key),s.ref!==void 0&&(v=s.ref);for(d in s)r.call(s,d)&&!a.hasOwnProperty(d)&&(f[d]=s[d]);if(l&&l.defaultProps)for(d in s=l.defaultProps,s)f[d]===void 0&&(f[d]=s[d]);return{$$typeof:t,type:l,key:p,ref:v,props:f,_owner:o.current}}return Qo.Fragment=n,Qo.jsx=i,Qo.jsxs=i,Qo}var ad;function W0(){return ad||(ad=1,rd.exports=L0()),rd.exports}var re=W0();const V0={colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},space:{sidebar:"md",size:"md",radius:"md",padding:"md",margin:"md",shadow:"md",lineHeight:"md"},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.c zap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}},q0={sm:"240px",md:"260px",lg:"280px"},gs={sm:"12px",md:"16px",lg:"20px"},am={sm:"2px",md:"4px",lg:"8px"},Y0={sm:"4px",md:"8px",lg:"16px"},X0={sm:"4px",md:"8px",lg:"16px"},U0={sm:"0 1px 2px #eee",md:"0 2px 8px #ddd",lg:"0 4px 16px #ccc"},G0={sm:"1.2",md:"1.5",lg:"2"};/**
|
|
10
|
+
* @license lucide-react v0.456.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/const K0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),im=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
15
|
+
* @license lucide-react v0.456.0 - ISC
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the ISC license.
|
|
18
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/var Q0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
20
|
+
* @license lucide-react v0.456.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/const Z0=or(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...l},s)=>fs("svg",{ref:s,...Q0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:im("lucide",o),...l},[...i.map(([c,d])=>fs(c,d)),...Array.isArray(a)?a:[a]]));/**
|
|
25
|
+
* @license lucide-react v0.456.0 - ISC
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the ISC license.
|
|
28
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/const ar=(e,t)=>{const n=or(({className:r,...o},a)=>fs(Z0,{ref:a,iconNode:t,className:im(`lucide-${K0(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
30
|
+
* @license lucide-react v0.456.0 - ISC
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the ISC license.
|
|
33
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/const J0=ar("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
35
|
+
* @license lucide-react v0.456.0 - ISC
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the ISC license.
|
|
38
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/const eb=ar("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
40
|
+
* @license lucide-react v0.456.0 - ISC
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the ISC license.
|
|
43
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/const tb=ar("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
45
|
+
* @license lucide-react v0.456.0 - ISC
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the ISC license.
|
|
48
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/const nb=ar("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
50
|
+
* @license lucide-react v0.456.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const rb=ar("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
55
|
+
* @license lucide-react v0.456.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/const id=ar("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
60
|
+
* @license lucide-react v0.456.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const ob=ar("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
|
|
65
|
+
* @license lucide-react v0.456.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const ab=ar("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
70
|
+
* @license lucide-react v0.456.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const ib=ar("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
|
|
75
|
+
* @license lucide-react v0.456.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const lb=ar("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
|
|
80
|
+
* @license lucide-react v0.456.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const lm=ar("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var sm={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Bc={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},sb=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],xi={CSS:{},springs:{}};function ur(e,t,n){return Math.min(Math.max(e,t),n)}function la(e,t){return e.indexOf(t)>-1}function kl(e,t){return e.apply(null,t)}var nt={arr:function(e){return Array.isArray(e)},obj:function(e){return la(Object.prototype.toString.call(e),"Object")},pth:function(e){return nt.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||nt.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return nt.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return nt.hex(e)||nt.rgb(e)||nt.hsl(e)},key:function(e){return!sm.hasOwnProperty(e)&&!Bc.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function cm(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function um(e,t){var n=cm(e),r=ur(nt.und(n[0])?1:n[0],.1,100),o=ur(nt.und(n[1])?100:n[1],.1,100),a=ur(nt.und(n[2])?10:n[2],.1,100),i=ur(nt.und(n[3])?0:n[3],.1,100),l=Math.sqrt(o/r),s=a/(2*Math.sqrt(o*r)),c=s<1?l*Math.sqrt(1-s*s):0,d=1,f=s<1?(s*l+-i)/c:-i+l;function p(h){var m=t?t*h/1e3:h;return s<1?m=Math.exp(-m*s*l)*(d*Math.cos(c*m)+f*Math.sin(c*m)):m=(d+f*m)*Math.exp(-m*l),h===0||h===1?h:1-m}function v(){var h=xi.springs[e];if(h)return h;for(var m=1/6,g=0,b=0;;)if(g+=m,p(g)===1){if(b++,b>=16)break}else b=0;var y=g*m*1e3;return xi.springs[e]=y,y}return t?p:v}function cb(e){return e===void 0&&(e=10),function(t){return Math.ceil(ur(t,1e-6,1)*e)*(1/e)}}var ub=(function(){var e=11,t=1/(e-1);function n(d,f){return 1-3*f+3*d}function r(d,f){return 3*f-6*d}function o(d){return 3*d}function a(d,f,p){return((n(f,p)*d+r(f,p))*d+o(f))*d}function i(d,f,p){return 3*n(f,p)*d*d+2*r(f,p)*d+o(f)}function l(d,f,p,v,h){var m,g,b=0;do g=f+(p-f)/2,m=a(g,v,h)-d,m>0?p=g:f=g;while(Math.abs(m)>1e-7&&++b<10);return g}function s(d,f,p,v){for(var h=0;h<4;++h){var m=i(f,p,v);if(m===0)return f;var g=a(f,p,v)-d;f-=g/m}return f}function c(d,f,p,v){if(!(0<=d&&d<=1&&0<=p&&p<=1))return;var h=new Float32Array(e);if(d!==f||p!==v)for(var m=0;m<e;++m)h[m]=a(m*t,d,p);function g(b){for(var y=0,x=1,w=e-1;x!==w&&h[x]<=b;++x)y+=t;--x;var C=(b-h[x])/(h[x+1]-h[x]),S=y+C*t,E=i(S,d,p);return E>=.001?s(b,S,d,p):E===0?S:l(b,y,y+t,d,p)}return function(b){return d===f&&p===v||b===0||b===1?b:a(g(b),f,v)}}return c})(),dm=(function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var o,a=4;r<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((o*3-2)/22-r,2)}},Elastic:function(r,o){r===void 0&&(r=1),o===void 0&&(o=.5);var a=ur(r,1,10),i=ur(o,.1,2);return function(l){return l===0||l===1?l:-a*Math.pow(2,10*(l-1))*Math.sin((l-1-i/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/i)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,o){t[r]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(r){var o=t[r];e["easeIn"+r]=o,e["easeOut"+r]=function(a,i){return function(l){return 1-o(a,i)(1-l)}},e["easeInOut"+r]=function(a,i){return function(l){return l<.5?o(a,i)(l*2)/2:1-o(a,i)(l*-2+2)/2}},e["easeOutIn"+r]=function(a,i){return function(l){return l<.5?(1-o(a,i)(1-l*2))/2:(o(a,i)(l*2-1)+1)/2}}}),e})();function Hc(e,t){if(nt.fnc(e))return e;var n=e.split("(")[0],r=dm[n],o=cm(e);switch(n){case"spring":return um(e,t);case"cubicBezier":return kl(ub,o);case"steps":return kl(cb,o);default:return kl(r,o)}}function fm(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Hi(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function zi(e){return e.reduce(function(t,n){return t.concat(nt.arr(n)?zi(n):n)},[])}function ld(e){return nt.arr(e)?e:(nt.str(e)&&(e=fm(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function zc(e,t){return e.some(function(n){return n===t})}function _c(e){var t={};for(var n in e)t[n]=e[n];return t}function hs(e,t){var n=_c(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function _i(e,t){var n=_c(e);for(var r in t)n[r]=nt.und(e[r])?t[r]:e[r];return n}function db(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function fb(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(l,s,c,d){return s+s+c+c+d+d}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),o=parseInt(r[1],16),a=parseInt(r[2],16),i=parseInt(r[3],16);return"rgba("+o+","+a+","+i+",1)"}function pb(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),n=parseInt(t[1],10)/360,r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[4]||1;function i(p,v,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?p+(v-p)*6*h:h<1/2?v:h<2/3?p+(v-p)*(2/3-h)*6:p}var l,s,c;if(r==0)l=s=c=o;else{var d=o<.5?o*(1+r):o+r-o*r,f=2*o-d;l=i(f,d,n+1/3),s=i(f,d,n),c=i(f,d,n-1/3)}return"rgba("+l*255+","+s*255+","+c*255+","+a+")"}function mb(e){if(nt.rgb(e))return db(e);if(nt.hex(e))return fb(e);if(nt.hsl(e))return pb(e)}function hr(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function gb(e){if(la(e,"translate")||e==="perspective")return"px";if(la(e,"rotate")||la(e,"skew"))return"deg"}function vs(e,t){return nt.fnc(e)?e(t.target,t.id,t.total):e}function dr(e,t){return e.getAttribute(t)}function Lc(e,t,n){var r=hr(t);if(zc([n,"deg","rad","turn"],r))return t;var o=xi.CSS[t+n];if(!nt.und(o))return o;var a=100,i=document.createElement(e.tagName),l=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;l.appendChild(i),i.style.position="absolute",i.style.width=a+n;var s=a/i.offsetWidth;l.removeChild(i);var c=s*parseFloat(t);return xi.CSS[t+n]=c,c}function pm(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Lc(e,o,n):o}}function Wc(e,t){if(nt.dom(e)&&!nt.inp(e)&&(!nt.nil(dr(e,t))||nt.svg(e)&&e[t]))return"attribute";if(nt.dom(e)&&zc(sb,t))return"transform";if(nt.dom(e)&&t!=="transform"&&pm(e,t))return"css";if(e[t]!=null)return"object"}function mm(e){if(nt.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,o;o=n.exec(t);)r.set(o[1],o[2]);return r}}function hb(e,t,n,r){var o=la(t,"scale")?1:0+gb(t),a=mm(e).get(t)||o;return n&&(n.transforms.list.set(t,a),n.transforms.last=t),r?Lc(e,a,r):a}function Vc(e,t,n,r){switch(Wc(e,t)){case"transform":return hb(e,t,r,n);case"css":return pm(e,t,n);case"attribute":return dr(e,t);default:return e[t]||0}}function qc(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=hr(e)||0,o=parseFloat(t),a=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+a+r;case"-":return o-a+r;case"*":return o*a+r}}function gm(e,t){if(nt.col(e))return mb(e);if(/\s/g.test(e))return e;var n=hr(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Yc(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function vb(e){return Math.PI*2*dr(e,"r")}function bb(e){return dr(e,"width")*2+dr(e,"height")*2}function yb(e){return Yc({x:dr(e,"x1"),y:dr(e,"y1")},{x:dr(e,"x2"),y:dr(e,"y2")})}function hm(e){for(var t=e.points,n=0,r,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(n+=Yc(r,a)),r=a}return n}function xb(e){var t=e.points;return hm(e)+Yc(t.getItem(t.numberOfItems-1),t.getItem(0))}function vm(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return vb(e);case"rect":return bb(e);case"line":return yb(e);case"polyline":return hm(e);case"polygon":return xb(e)}}function wb(e){var t=vm(e);return e.setAttribute("stroke-dasharray",t),t}function Cb(e){for(var t=e.parentNode;nt.svg(t)&&nt.svg(t.parentNode);)t=t.parentNode;return t}function bm(e,t){var n=t||{},r=n.el||Cb(e),o=r.getBoundingClientRect(),a=dr(r,"viewBox"),i=o.width,l=o.height,s=n.viewBox||(a?a.split(" "):[0,0,i,l]);return{el:r,viewBox:s,x:s[0]/1,y:s[1]/1,w:i,h:l,vW:s[2],vH:s[3]}}function Sb(e,t){var n=nt.str(e)?fm(e)[0]:e,r=t||100;return function(o){return{property:o,el:n,svg:bm(n),totalLength:vm(n)*(r/100)}}}function Eb(e,t,n){function r(d){d===void 0&&(d=0);var f=t+d>=1?t+d:0;return e.el.getPointAtLength(f)}var o=bm(e.el,e.svg),a=r(),i=r(-1),l=r(1),s=n?1:o.w/o.vW,c=n?1:o.h/o.vH;switch(e.property){case"x":return(a.x-o.x)*s;case"y":return(a.y-o.y)*c;case"angle":return Math.atan2(l.y-i.y,l.x-i.x)*180/Math.PI}}function sd(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=gm(nt.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:nt.str(e)||t?r.split(n):[]}}function Xc(e){var t=e?zi(nt.arr(e)?e.map(ld):ld(e)):[];return Hi(t,function(n,r,o){return o.indexOf(n)===r})}function ym(e){var t=Xc(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:mm(n)}}})}function $b(e,t){var n=_c(t);if(/^spring/.test(n.easing)&&(n.duration=um(n.easing)),nt.arr(e)){var r=e.length,o=r===2&&!nt.obj(e[0]);o?e={value:e}:nt.fnc(t.duration)||(n.duration=t.duration/r)}var a=nt.arr(e)?e:[e];return a.map(function(i,l){var s=nt.obj(i)&&!nt.pth(i)?i:{value:i};return nt.und(s.delay)&&(s.delay=l?0:t.delay),nt.und(s.endDelay)&&(s.endDelay=l===a.length-1?t.endDelay:0),s}).map(function(i){return _i(i,n)})}function kb(e){for(var t=Hi(zi(e.map(function(a){return Object.keys(a)})),function(a){return nt.key(a)}).reduce(function(a,i){return a.indexOf(i)<0&&a.push(i),a},[]),n={},r=function(a){var i=t[a];n[i]=e.map(function(l){var s={};for(var c in l)nt.key(c)?c==i&&(s.value=l[c]):s[c]=l[c];return s})},o=0;o<t.length;o++)r(o);return n}function Ob(e,t){var n=[],r=t.keyframes;r&&(t=_i(kb(r),t));for(var o in t)nt.key(o)&&n.push({name:o,tweens:$b(t[o],e)});return n}function Mb(e,t){var n={};for(var r in e){var o=vs(e[r],t);nt.arr(o)&&(o=o.map(function(a){return vs(a,t)}),o.length===1&&(o=o[0])),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function Ib(e,t){var n;return e.tweens.map(function(r){var o=Mb(r,t),a=o.value,i=nt.arr(a)?a[1]:a,l=hr(i),s=Vc(t.target,e.name,l,t),c=n?n.to.original:s,d=nt.arr(a)?a[0]:c,f=hr(d)||hr(s),p=l||f;return nt.und(i)&&(i=c),o.from=sd(d,p),o.to=sd(qc(i,d),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=Hc(o.easing,o.duration),o.isPath=nt.pth(a),o.isPathTargetInsideSVG=o.isPath&&nt.svg(t.target),o.isColor=nt.col(o.from.original),o.isColor&&(o.round=1),n=o,o})}var xm={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){if(r.list.set(t,n),t===r.last||o){var a="";r.list.forEach(function(i,l){a+=l+"("+i+") "}),e.style.transform=a}}};function wm(e,t){var n=ym(e);n.forEach(function(r){for(var o in t){var a=vs(t[o],r),i=r.target,l=hr(a),s=Vc(i,o,l,r),c=l||hr(s),d=qc(gm(a,c),s),f=Wc(i,o);xm[f](i,o,d,r.transforms,!0)}})}function Nb(e,t){var n=Wc(e.target,t.name);if(n){var r=Ib(t,e),o=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}function jb(e,t){return Hi(zi(e.map(function(n){return t.map(function(r){return Nb(n,r)})})),function(n){return!nt.und(n)})}function Cm(e,t){var n=e.length,r=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map(function(a){return r(a)+a.duration})):t.duration,o.delay=n?Math.min.apply(Math,e.map(function(a){return r(a)+a.delay})):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map(function(a){return r(a)+a.duration-a.endDelay})):t.endDelay,o}var cd=0;function Pb(e){var t=hs(sm,e),n=hs(Bc,e),r=Ob(n,e),o=ym(e.targets),a=jb(o,r),i=Cm(a,n),l=cd;return cd++,_i(t,{id:l,children:[],animatables:o,animations:a,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}var tr=[],Sm=(function(){var e;function t(){!e&&(!ud()||!_t.suspendWhenDocumentHidden)&&tr.length>0&&(e=requestAnimationFrame(n))}function n(o){for(var a=tr.length,i=0;i<a;){var l=tr[i];l.paused?(tr.splice(i,1),a--):(l.tick(o),i++)}e=i>0?requestAnimationFrame(n):void 0}function r(){_t.suspendWhenDocumentHidden&&(ud()?e=cancelAnimationFrame(e):(tr.forEach(function(o){return o._onDocumentVisibility()}),Sm()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function ud(){return!!document&&document.hidden}function _t(e){e===void 0&&(e={});var t=0,n=0,r=0,o,a=0,i=null;function l(y){var x=window.Promise&&new Promise(function(w){return i=w});return y.finished=x,x}var s=Pb(e);l(s);function c(){var y=s.direction;y!=="alternate"&&(s.direction=y!=="normal"?"normal":"reverse"),s.reversed=!s.reversed,o.forEach(function(x){return x.reversed=s.reversed})}function d(y){return s.reversed?s.duration-y:y}function f(){t=0,n=d(s.currentTime)*(1/_t.speed)}function p(y,x){x&&x.seek(y-x.timelineOffset)}function v(y){if(s.reversePlayback)for(var x=a;x--;)p(y,o[x]);else for(var w=0;w<a;w++)p(y,o[w])}function h(y){for(var x=0,w=s.animations,C=w.length;x<C;){var S=w[x],E=S.animatable,$=S.tweens,O=$.length-1,k=$[O];O&&(k=Hi($,function(z){return y<z.end})[0]||k);for(var I=ur(y-k.start-k.delay,0,k.duration)/k.duration,M=isNaN(I)?1:k.easing(I),B=k.to.strings,D=k.round,F=[],R=k.to.numbers.length,H=void 0,j=0;j<R;j++){var _=void 0,W=k.to.numbers[j],L=k.from.numbers[j]||0;k.isPath?_=Eb(k.value,M*W,k.isPathTargetInsideSVG):_=L+M*(W-L),D&&(k.isColor&&j>2||(_=Math.round(_*D)/D)),F.push(_)}var N=B.length;if(!N)H=F[0];else{H=B[0];for(var P=0;P<N;P++){var A=B[P+1],T=F[P];isNaN(T)||(A?H+=T+A:H+=T+" ")}}xm[S.type](E.target,S.property,H,E.transforms),S.currentValue=H,x++}}function m(y){s[y]&&!s.passThrough&&s[y](s)}function g(){s.remaining&&s.remaining!==!0&&s.remaining--}function b(y){var x=s.duration,w=s.delay,C=x-s.endDelay,S=d(y);s.progress=ur(S/x*100,0,100),s.reversePlayback=S<s.currentTime,o&&v(S),!s.began&&s.currentTime>0&&(s.began=!0,m("begin")),!s.loopBegan&&s.currentTime>0&&(s.loopBegan=!0,m("loopBegin")),S<=w&&s.currentTime!==0&&h(0),(S>=C&&s.currentTime!==x||!x)&&h(x),S>w&&S<C?(s.changeBegan||(s.changeBegan=!0,s.changeCompleted=!1,m("changeBegin")),m("change"),h(S)):s.changeBegan&&(s.changeCompleted=!0,s.changeBegan=!1,m("changeComplete")),s.currentTime=ur(S,0,x),s.began&&m("update"),y>=x&&(n=0,g(),s.remaining?(t=r,m("loopComplete"),s.loopBegan=!1,s.direction==="alternate"&&c()):(s.paused=!0,s.completed||(s.completed=!0,m("loopComplete"),m("complete"),!s.passThrough&&"Promise"in window&&(i(),l(s)))))}return s.reset=function(){var y=s.direction;s.passThrough=!1,s.currentTime=0,s.progress=0,s.paused=!0,s.began=!1,s.loopBegan=!1,s.changeBegan=!1,s.completed=!1,s.changeCompleted=!1,s.reversePlayback=!1,s.reversed=y==="reverse",s.remaining=s.loop,o=s.children,a=o.length;for(var x=a;x--;)s.children[x].reset();(s.reversed&&s.loop!==!0||y==="alternate"&&s.loop===1)&&s.remaining++,h(s.reversed?s.duration:0)},s._onDocumentVisibility=f,s.set=function(y,x){return wm(y,x),s},s.tick=function(y){r=y,t||(t=r),b((r+(n-t))*_t.speed)},s.seek=function(y){b(d(y))},s.pause=function(){s.paused=!0,f()},s.play=function(){s.paused&&(s.completed&&s.reset(),s.paused=!1,tr.push(s),f(),Sm())},s.reverse=function(){c(),s.completed=!s.reversed,f()},s.restart=function(){s.reset(),s.play()},s.remove=function(y){var x=Xc(y);Em(x,s)},s.reset(),s.autoplay&&s.play(),s}function dd(e,t){for(var n=t.length;n--;)zc(e,t[n].animatable.target)&&t.splice(n,1)}function Em(e,t){var n=t.animations,r=t.children;dd(e,n);for(var o=r.length;o--;){var a=r[o],i=a.animations;dd(e,i),!i.length&&!a.children.length&&r.splice(o,1)}!n.length&&!r.length&&t.pause()}function Rb(e){for(var t=Xc(e),n=tr.length;n--;){var r=tr[n];Em(t,r)}}function Ab(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?Hc(t.easing):null,o=t.grid,a=t.axis,i=t.from||0,l=i==="first",s=i==="center",c=i==="last",d=nt.arr(e),f=parseFloat(d?e[0]:e),p=d?parseFloat(e[1]):0,v=hr(d?e[1]:e)||0,h=t.start||0+(d?f:0),m=[],g=0;return function(b,y,x){if(l&&(i=0),s&&(i=(x-1)/2),c&&(i=x-1),!m.length){for(var w=0;w<x;w++){if(!o)m.push(Math.abs(i-w));else{var C=s?(o[0]-1)/2:i%o[0],S=s?(o[1]-1)/2:Math.floor(i/o[0]),E=w%o[0],$=Math.floor(w/o[0]),O=C-E,k=S-$,I=Math.sqrt(O*O+k*k);a==="x"&&(I=-O),a==="y"&&(I=-k),m.push(I)}g=Math.max.apply(Math,m)}r&&(m=m.map(function(B){return r(B/g)*g})),n==="reverse"&&(m=m.map(function(B){return a?B<0?B*-1:-B:Math.abs(g-B)}))}var M=d?(p-f)/g:f;return h+M*(Math.round(m[y]*100)/100)+v}}function Fb(e){e===void 0&&(e={});var t=_t(e);return t.duration=0,t.add=function(n,r){var o=tr.indexOf(t),a=t.children;o>-1&&tr.splice(o,1);function i(p){p.passThrough=!0}for(var l=0;l<a.length;l++)i(a[l]);var s=_i(n,hs(Bc,e));s.targets=s.targets||e.targets;var c=t.duration;s.autoplay=!1,s.direction=t.direction,s.timelineOffset=nt.und(r)?c:qc(r,c),i(t),t.seek(s.timelineOffset);var d=_t(s);i(d),a.push(d);var f=Cm(a,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}_t.version="3.2.1";_t.speed=1;_t.suspendWhenDocumentHidden=!0;_t.running=tr;_t.remove=Rb;_t.get=Vc;_t.set=wm;_t.convertPx=Lc;_t.path=Sb;_t.setDashoffset=wb;_t.stagger=Ab;_t.timeline=Fb;_t.easing=Hc;_t.penner=dm;_t.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const Tb=Dr({badgeCounts:{},updateBadgeCount:()=>{}}),Db=()=>{const e=Ut(Tb);if(!e)throw new Error("useBadge must be used within a BadgeProvider");return e};var fd={exports:{}};/*!
|
|
85
|
+
Copyright (c) 2018 Jed Watson.
|
|
86
|
+
Licensed under the MIT License (MIT), see
|
|
87
|
+
http://jedwatson.github.io/classnames
|
|
88
|
+
*/var pd;function Bb(){return pd||(pd=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(a=o(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var l in a)t.call(a,l)&&a[l]&&(i=o(i,l));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(fd)),fd.exports}var Hb=Bb();const ae=yr(Hb);function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(null,arguments)}function Qe(e){"@babel/helpers - typeof";return Qe=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},Qe(e)}var zb=Symbol.for("react.element"),_b=Symbol.for("react.transitional.element"),Lb=Symbol.for("react.fragment");function $m(e){return e&&Qe(e)==="object"&&(e.$$typeof===zb||e.$$typeof===_b)&&e.type===Lb}function jo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return pe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(jo(r)):$m(r)&&r.props?n=n.concat(jo(r.props.children,t)):n.push(r))}),n}var bs={},Wb=function(e){};function Vb(e,t){}function qb(e,t){}function Yb(){bs={}}function km(e,t,n){!t&&!bs[n]&&(e(!1,n),bs[n]=!0)}function vn(e,t){km(Vb,e,t)}function Xb(e,t){km(qb,e,t)}vn.preMessage=Wb;vn.resetWarned=Yb;vn.noteOnce=Xb;function Ub(e,t){if(Qe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Om(e){var t=Ub(e,"string");return Qe(t)=="symbol"?t:t+""}function Y(e,t,n){return(t=Om(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?md(Object(n),!0).forEach(function(r){Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pa(e){return e instanceof HTMLElement||e instanceof SVGElement}function Mm(e){return e&&Qe(e)==="object"&&pa(e.nativeElement)?e.nativeElement:pa(e)?e:null}function li(e){var t=Mm(e);if(t)return t;if(e instanceof pe.Component){var n;return(n=nd.findDOMNode)===null||n===void 0?void 0:n.call(nd,e)}return null}var gd={exports:{}},Tt={};/**
|
|
89
|
+
* @license React
|
|
90
|
+
* react-is.production.min.js
|
|
91
|
+
*
|
|
92
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the MIT license found in the
|
|
95
|
+
* LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/var hd;function Gb(){if(hd)return Tt;hd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function m(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case o:case r:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case s:case p:case f:case a:return g;default:return b}}case t:return b}}}return Tt.ContextConsumer=i,Tt.ContextProvider=a,Tt.Element=e,Tt.ForwardRef=s,Tt.Fragment=n,Tt.Lazy=p,Tt.Memo=f,Tt.Portal=t,Tt.Profiler=o,Tt.StrictMode=r,Tt.Suspense=c,Tt.SuspenseList=d,Tt.isAsyncMode=function(){return!1},Tt.isConcurrentMode=function(){return!1},Tt.isContextConsumer=function(g){return m(g)===i},Tt.isContextProvider=function(g){return m(g)===a},Tt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Tt.isForwardRef=function(g){return m(g)===s},Tt.isFragment=function(g){return m(g)===n},Tt.isLazy=function(g){return m(g)===p},Tt.isMemo=function(g){return m(g)===f},Tt.isPortal=function(g){return m(g)===t},Tt.isProfiler=function(g){return m(g)===o},Tt.isStrictMode=function(g){return m(g)===r},Tt.isSuspense=function(g){return m(g)===c},Tt.isSuspenseList=function(g){return m(g)===d},Tt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===d||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===h||g.getModuleId!==void 0)},Tt.typeOf=m,Tt}var vd;function Kb(){return vd||(vd=1,gd.exports=Gb()),gd.exports}var Ol=Kb();function Li(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Qb=Number(j0.split(".")[0]),Uc=function(e,t){typeof e=="function"?e(t):Qe(e)==="object"&&e&&"current"in e&&(e.current=t)},Gn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(o){t.forEach(function(a){Uc(a,o)})}},Ma=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Li(function(){return Gn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})},Do=function(e){var t,n;if(!e)return!1;if(Im(e)&&Qb>=19)return!0;var r=Ol.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==Ol.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Ol.ForwardRef)};function Im(e){return rm(e)&&!$m(e)}var Ia=function(e){if(e&&Im(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},ys=u.createContext(null);function Zb(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),a=u.useContext(ys),i=u.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(l,s,c)},[n,a]);return u.createElement(ys.Provider,{value:i},t)}var Nm=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t})()})(),xs=typeof window<"u"&&typeof document<"u"&&window.document===document,wi=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Jb=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(wi):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),ey=2;function ty(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){Jb(a)}function l(){var s=Date.now();if(n){if(s-o<ey)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=s}return l}var ny=20,ry=["top","right","bottom","left","width","height","size","weight"],oy=typeof MutationObserver<"u",ay=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ty(this.refresh.bind(this),ny)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!xs||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oy?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!xs||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=ry.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),jm=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),Po=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||wi}),Pm=Wi(0,0,0,0);function Ci(e){return parseFloat(e)||0}function bd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Ci(a)},0)}function iy(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Ci(i)}return n}function ly(e){var t=e.getBBox();return Wi(0,0,t.width,t.height)}function sy(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Pm;var r=Po(e).getComputedStyle(e),o=iy(r),a=o.left+o.right,i=o.top+o.bottom,l=Ci(r.width),s=Ci(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=bd(r,"left","right")+a),Math.round(s+i)!==n&&(s-=bd(r,"top","bottom")+i)),!uy(e)){var c=Math.round(l+a)-t,d=Math.round(s+i)-n;Math.abs(c)!==1&&(l-=c),Math.abs(d)!==1&&(s-=d)}return Wi(o.left,o.top,l,s)}var cy=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Po(e).SVGGraphicsElement}:function(e){return e instanceof Po(e).SVGElement&&typeof e.getBBox=="function"}})();function uy(e){return e===Po(e).document.documentElement}function dy(e){return xs?cy(e)?ly(e):sy(e):Pm}function fy(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return jm(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function Wi(e,t,n,r){return{x:e,y:t,width:n,height:r}}var py=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Wi(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=dy(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),my=(function(){function e(t,n){var r=fy(n);jm(this,{target:t,contentRect:r})}return e})(),gy=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Nm,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Po(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new py(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Po(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new my(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Rm=typeof WeakMap<"u"?new WeakMap:new Nm,Am=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ay.getInstance(),r=new gy(t,n,this);Rm.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Am.prototype[e]=function(){var t;return(t=Rm.get(this))[e].apply(t,arguments)}});var hy=(function(){return typeof wi.ResizeObserver<"u"?wi.ResizeObserver:Am})(),Ir=new Map;function vy(e){e.forEach(function(t){var n,r=t.target;(n=Ir.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Fm=new hy(vy);function by(e,t){Ir.has(e)||(Ir.set(e,new Set),Fm.observe(e)),Ir.get(e).add(t)}function yy(e,t){Ir.has(e)&&(Ir.get(e).delete(t),Ir.get(e).size||(Fm.unobserve(e),Ir.delete(e)))}function Jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Om(r.key),r)}}function en(e,t,n){return t&&yd(e.prototype,t),n&&yd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ma(e,t){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ma(e,t)}function Br(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ma(e,t)}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ga(e)}function Gc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gc=function(){return!!e})()}function yt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xy(e,t){if(t&&(Qe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yt(e)}function Hr(e){var t=Gc();return function(){var n,r=ga(e);if(t){var o=ga(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xy(this,n)}}var wy=(function(e){Br(n,e);var t=Hr(n);function n(){return Jt(this,n),t.apply(this,arguments)}return en(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function Cy(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),a=u.useRef(null),i=u.useContext(ys),l=typeof n=="function",s=l?n(o):n,c=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&u.isValidElement(s)&&Do(s),f=d?Ia(s):null,p=Ma(f,o),v=function(){var g;return li(o.current)||(o.current&&Qe(o.current)==="object"?li((g=o.current)===null||g===void 0?void 0:g.nativeElement):null)||li(a.current)};u.useImperativeHandle(t,function(){return v()});var h=u.useRef(e);h.current=e;var m=u.useCallback(function(g){var b=h.current,y=b.onResize,x=b.data,w=g.getBoundingClientRect(),C=w.width,S=w.height,E=g.offsetWidth,$=g.offsetHeight,O=Math.floor(C),k=Math.floor(S);if(c.current.width!==O||c.current.height!==k||c.current.offsetWidth!==E||c.current.offsetHeight!==$){var I={width:O,height:k,offsetWidth:E,offsetHeight:$};c.current=I;var M=E===Math.round(C)?C:E,B=$===Math.round(S)?S:$,D=U(U({},I),{},{offsetWidth:M,offsetHeight:B});i==null||i(D,g,x),y&&Promise.resolve().then(function(){y(D,g)})}},[]);return u.useEffect(function(){var g=v();return g&&!r&&by(g,m),function(){return yy(g,m)}},[o.current,r]),u.createElement(wy,{ref:a},d?u.cloneElement(s,{ref:p}):s)}var Sy=u.forwardRef(Cy),Ey="rc-observer-key";function $y(e,t){var n=e.children,r=typeof n=="function"?[n]:jo(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(Ey,"-").concat(a);return u.createElement(Sy,Ae({},e,{key:i,ref:a===0?t:void 0}),o)})}var mr=u.forwardRef($y);mr.Collection=Zb;function ws(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ky(e){if(Array.isArray(e))return ws(e)}function Tm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kc(e,t){if(e){if(typeof e=="string")return ws(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ws(e,t):void 0}}function Oy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
97
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ce(e){return ky(e)||Tm(e)||Kc(e)||Oy()}var Dm=function(e){return+setTimeout(e,16)},Bm=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(Dm=function(e){return window.requestAnimationFrame(e)},Bm=function(e){return window.cancelAnimationFrame(e)});var xd=0,Qc=new Map;function Hm(e){Qc.delete(e)}var dt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;xd+=1;var n=xd;function r(o){if(o===0)Hm(n),e();else{var a=Dm(function(){r(o-1)});Qc.set(n,a)}}return r(t),n};dt.cancel=function(e){var t=Qc.get(e);return Hm(e),Bm(t)};function zm(e){if(Array.isArray(e))return e}function My(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}function _m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
98
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return zm(e)||My(e,t)||Kc(e,t)||_m()}function ha(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function jn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Iy(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var wd="data-rc-order",Cd="data-rc-priority",Ny="rc-util-key",Cs=new Map;function Lm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ny}function Vi(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function jy(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Zc(e){return Array.from((Cs.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Wm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!jn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=jy(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(wd,i),l&&a&&s.setAttribute(Cd,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=Vi(t),d=c.firstChild;if(r){if(l){var f=(t.styles||Zc(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(wd)))return!1;var v=Number(p.getAttribute(Cd)||0);return a>=v});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function Vm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Vi(t);return(t.styles||Zc(n)).find(function(r){return r.getAttribute(Lm(t))===e})}function va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Vm(e,t);if(n){var r=Vi(t);r.removeChild(n)}}function Py(e,t){var n=Cs.get(e);if(!n||!Iy(document,n)){var r=Wm("",t),o=r.parentNode;Cs.set(e,o),e.removeChild(r)}}function vr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Vi(n),o=Zc(r),a=U(U({},n),{},{styles:o});Py(r,a);var i=Vm(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Wm(e,a);return d.setAttribute(Lm(a),t),d}function Ry(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ft(e,t){if(e==null)return{};var n,r,o=Ry(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Si(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(vn(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var c=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],c))return!1;return!0}if(a&&i&&Qe(a)==="object"&&Qe(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(p){return o(a[p],i[p],c)})}return!1}return o(e,t)}var Ay="%";function Ss(e){return e.join(Ay)}var Fy=(function(){function e(t){Jt(this,e),Y(this,"instanceId",void 0),Y(this,"cache",new Map),Y(this,"extracted",new Set),this.instanceId=t}return en(e,[{key:"get",value:function(t){return this.opGet(Ss(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(Ss(t),n)}},{key:"opUpdate",value:function(t,n){var r=this.cache.get(t),o=n(r);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),ba="data-token-hash",fr="data-css-hash",Nr="__cssinjs_instance__";function Ty(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(fr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Nr]=o[Nr]||e,o[Nr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(fr,"]"))).forEach(function(o){var a=o.getAttribute(fr);if(r[a]){if(o[Nr]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new Fy(e)}var Na=u.createContext({hashPriority:"low",cache:Ty(),defaultCache:!0});function Dy(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Jc=(function(){function e(){Jt(this,e),Y(this,"cache",void 0),Y(this,"keys",void 0),Y(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return en(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var n,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(i){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(i)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(r=a)===null||r===void 0?void 0:r.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(s,c){var d=Q(s,2),f=d[1];return r.internalGet(c)[1]<f?[c,r.internalGet(c)[1]]:s},[this.keys[0],this.cacheCallTimes]),a=Q(o,1),i=a[0];this.delete(i)}this.keys.push(t)}var l=this.cache;t.forEach(function(s,c){if(c===t.length-1)l.set(s,{value:[n,r.cacheCallTimes++]});else{var d=l.get(s);d?d.map||(d.map=new Map):l.set(s,{map:new Map}),l=l.get(s).map}})}},{key:"deleteByPath",value:function(t,n){var r=t.get(n[0]);if(n.length===1){var o;return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!Dy(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();Y(Jc,"MAX_CACHE_SIZE",20);Y(Jc,"MAX_CACHE_OFFSET",5);var Sd=0,qm=(function(){function e(t){Jt(this,e),Y(this,"derivatives",void 0),Y(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Sd,t.length===0&&(t.length>0,void 0),Sd+=1}return en(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,r){return r(t,n)},void 0)}}]),e})(),Ml=new Jc;function Es(e){var t=Array.isArray(e)?e:[e];return Ml.has(t)||Ml.set(t,new qm(t)),Ml.get(t)}var By=new WeakMap,Il={};function Hy(e,t){for(var n=By,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Il)||n.set(Il,e()),n.get(Il)}var Ed=new WeakMap;function sa(e){var t=Ed.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof qm?t+=r.id:r&&Qe(r)==="object"?t+=sa(r):t+=r}),t=ha(t),Ed.set(e,t)),t}function $d(e,t){return ha("".concat(t,"_").concat(sa(e)))}var $s=jn();function ue(e){return typeof e=="number"?"".concat(e,"px"):e}var si=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},zy=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(r){var o=Q(r,2),a=o[0],i=o[1];return"".concat(a,":").concat(i,";")}).join(""),"}"):""},Ym=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(a){var i,l,s=Q(a,2),c=s[0],d=s[1];if(n!=null&&(i=n.preserve)!==null&&i!==void 0&&i[c])o[c]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[c])){var f,p=si(c,n==null?void 0:n.prefix);r[p]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[c])?"".concat(d,"px"):String(d),o[c]="var(".concat(p,")")}}),[o,zy(r,t,{scope:n==null?void 0:n.scope})]},kd=jn()?u.useLayoutEffect:u.useEffect,wt=function(e,t){var n=u.useRef(!0);kd(function(){return e(n.current)},t),kd(function(){return n.current=!1,function(){n.current=!0}},[])},Oo=function(e,t){wt(function(n){if(!n)return e()},t)},_y=U({},u),Od=_y.useInsertionEffect,Ly=function(e,t,n){u.useMemo(e,n),wt(function(){return t(!0)},n)},Wy=Od?function(e,t,n){return Od(function(){return e(),t()},n)}:Ly,Vy=U({},u),qy=Vy.useInsertionEffect,Yy=function(e){var t=[],n=!1;function r(o){n||t.push(o)}return u.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(o){return o()})}},e),r},Xy=function(){return function(e){e()}},Uy=typeof qy<"u"?Yy:Xy;function eu(e,t,n,r,o){var a=u.useContext(Na),i=a.cache,l=[e].concat(Ce(t)),s=Ss(l),c=Uy([s]),d=function(v){i.opUpdate(s,function(h){var m=h||[void 0,void 0],g=Q(m,2),b=g[0],y=b===void 0?0:b,x=g[1],w=x,C=w||n(),S=[y,C];return v?v(S):S})};u.useMemo(function(){d()},[s]);var f=i.opGet(s),p=f[1];return Wy(function(){o==null||o(p)},function(v){return d(function(h){var m=Q(h,2),g=m[0],b=m[1];return v&&g===0&&(o==null||o(p)),[g+1,b]}),function(){i.opUpdate(s,function(h){var m=h||[],g=Q(m,2),b=g[0],y=b===void 0?0:b,x=g[1],w=y-1;return w===0?(c(function(){(v||!i.opGet(s))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[s]),p}var Gy={},Ky="css",Vr=new Map;function Qy(e){Vr.set(e,(Vr.get(e)||0)+1)}function Zy(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ba,'="').concat(e,'"]'));n.forEach(function(r){if(r[Nr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var Jy=0;function e1(e,t){Vr.set(e,(Vr.get(e)||0)-1);var n=new Set;Vr.forEach(function(r,o){r<=0&&n.add(o)}),Vr.size-n.size>Jy&&n.forEach(function(r){Zy(r,t),Vr.delete(r)})}var t1=function(e,t,n,r){var o=n.getDerivativeToken(e),a=U(U({},o),t);return r&&(a=r(a)),a},n1="token";function r1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ut(Na),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,c=s===void 0?Gy:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,v=Hy(function(){return Object.assign.apply(Object,[{}].concat(Ce(t)))},t),h=sa(v),m=sa(c),g=p?sa(p):"",b=eu(n1,[l,e.id,h,m,g],function(){var y,x=f?f(v,c,e):t1(v,c,e,d),w=U({},x),C="";if(p){var S=Ym(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),E=Q(S,2);x=E[0],C=E[1]}var $=$d(x,l);x._tokenKey=$,w._tokenKey=$d(w,l);var O=(y=p==null?void 0:p.key)!==null&&y!==void 0?y:$;x._themeKey=O,Qy(O);var k="".concat(Ky,"-").concat(ha($));return x._hashId=k,[x,k,w,C,(p==null?void 0:p.key)||""]},function(y){e1(y[0]._themeKey,o)},function(y){var x=Q(y,4),w=x[0],C=x[3];if(p&&C){var S=vr(C,ha("css-variables-".concat(w._themeKey)),{mark:fr,prepend:"queue",attachTo:a,priority:-999});S[Nr]=o,S.setAttribute(ba,w._themeKey)}});return b}var o1={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},Xm="comm",Um="rule",Gm="decl",a1="@import",i1="@namespace",l1="@keyframes",s1="@layer",Km=Math.abs,tu=String.fromCharCode;function Qm(e){return e.trim()}function ci(e,t,n){return e.replace(t,n)}function c1(e,t,n){return e.indexOf(t,n)}function Mo(e,t){return e.charCodeAt(t)|0}function Ro(e,t,n){return e.slice(t,n)}function cr(e){return e.length}function u1(e){return e.length}function _a(e,t){return t.push(e),e}var qi=1,Ao=1,Zm=0,Un=0,an=0,Bo="";function nu(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:qi,column:Ao,length:i,return:"",siblings:l}}function d1(){return an}function f1(){return an=Un>0?Mo(Bo,--Un):0,Ao--,an===10&&(Ao=1,qi--),an}function nr(){return an=Un<Zm?Mo(Bo,Un++):0,Ao++,an===10&&(Ao=1,qi++),an}function jr(){return Mo(Bo,Un)}function ui(){return Un}function Yi(e,t){return Ro(Bo,e,t)}function ya(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 p1(e){return qi=Ao=1,Zm=cr(Bo=e),Un=0,[]}function m1(e){return Bo="",e}function Nl(e){return Qm(Yi(Un-1,ks(e===91?e+2:e===40?e+1:e)))}function g1(e){for(;(an=jr())&&an<33;)nr();return ya(e)>2||ya(an)>3?"":" "}function h1(e,t){for(;--t&&nr()&&!(an<48||an>102||an>57&&an<65||an>70&&an<97););return Yi(e,ui()+(t<6&&jr()==32&&nr()==32))}function ks(e){for(;nr();)switch(an){case e:return Un;case 34:case 39:e!==34&&e!==39&&ks(an);break;case 40:e===41&&ks(e);break;case 92:nr();break}return Un}function v1(e,t){for(;nr()&&e+an!==57&&!(e+an===84&&jr()===47););return"/*"+Yi(t,Un-1)+"*"+tu(e===47?e:nr())}function b1(e){for(;!ya(jr());)nr();return Yi(e,Un)}function y1(e){return m1(di("",null,null,null,[""],e=p1(e),0,[0],e))}function di(e,t,n,r,o,a,i,l,s){for(var c=0,d=0,f=i,p=0,v=0,h=0,m=1,g=1,b=1,y=0,x="",w=o,C=a,S=r,E=x;g;)switch(h=y,y=nr()){case 40:if(h!=108&&Mo(E,f-1)==58){c1(E+=ci(Nl(y),"&","&\f"),"&\f",Km(c?l[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=Nl(y);break;case 9:case 10:case 13:case 32:E+=g1(h);break;case 92:E+=h1(ui()-1,7);continue;case 47:switch(jr()){case 42:case 47:_a(x1(v1(nr(),ui()),t,n,s),s),(ya(h||1)==5||ya(jr()||1)==5)&&cr(E)&&Ro(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*m:l[c++]=cr(E)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:b==-1&&(E=ci(E,/\f/g,"")),v>0&&(cr(E)-f||m===0&&h===47)&&_a(v>32?Id(E+";",r,n,f-1,s):Id(ci(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(_a(S=Md(E,t,n,c,d,o,l,x,w=[],C=[],f,a),a),y===123)if(d===0)di(E,t,S,S,w,a,f,l,C);else{switch(p){case 99:if(Mo(E,3)===110)break;case 108:if(Mo(E,2)===97)break;default:d=0;case 100:case 109:case 115:}d?di(e,S,S,r&&_a(Md(e,S,S,0,0,o,l,x,o,w=[],f,C),C),o,C,f,l,r?w:C):di(E,S,S,S,[""],C,0,l,C)}}c=d=v=0,m=b=1,x=E="",f=i;break;case 58:f=1+cr(E),v=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&f1()==125)continue}switch(E+=tu(y),y*m){case 38:b=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(cr(E)-1)*b,b=1;break;case 64:jr()===45&&(E+=Nl(nr())),p=jr(),d=f=cr(x=E+=b1(ui())),y++;break;case 45:h===45&&cr(E)==2&&(m=0)}}return a}function Md(e,t,n,r,o,a,i,l,s,c,d,f){for(var p=o-1,v=o===0?a:[""],h=u1(v),m=0,g=0,b=0;m<r;++m)for(var y=0,x=Ro(e,p+1,p=Km(g=i[m])),w=e;y<h;++y)(w=Qm(g>0?v[y]+" "+x:ci(x,/&\f/g,v[y])))&&(s[b++]=w);return nu(e,t,n,o===0?Um:l,s,c,d,f)}function x1(e,t,n,r){return nu(e,t,n,Xm,tu(d1()),Ro(e,2,-2),0,r)}function Id(e,t,n,r,o){return nu(e,t,n,Gm,Ro(e,0,r),Ro(e,r+1,-1),r,o)}function Os(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function w1(e,t,n,r){switch(e.type){case s1:if(e.children.length)break;case a1:case i1:case Gm:return e.return=e.return||e.value;case Xm:return"";case l1:return e.return=e.value+"{"+Os(e.children,r)+"}";case Um:if(!cr(e.value=e.props.join(",")))return""}return cr(n=Os(e.children,r))?e.return=e.value+"{"+n+"}":""}var Nd="data-ant-cssinjs-cache-path",Jm="_FILE_STYLE__",Zr,eg=!0;function C1(){if(!Zr&&(Zr={},jn())){var e=document.createElement("div");e.className=Nd,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=Q(a,2),l=i[0],s=i[1];Zr[l]=s});var n=document.querySelector("style[".concat(Nd,"]"));if(n){var r;eg=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function S1(e){return C1(),!!Zr[e]}function E1(e){var t=Zr[e],n=null;if(t&&jn())if(eg)n=Jm;else{var r=document.querySelector("style[".concat(fr,'="').concat(Zr[e],'"]'));r?n=r.innerHTML:delete Zr[e]}return[n,t]}var $1="_skip_check_",tg="_multi_value_";function jl(e){var t=Os(y1(e),w1);return t.replace(/\{%%%\:[^;];}/g,";")}function k1(e){return Qe(e)==="object"&&e&&($1 in e||tg in e)}function jd(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var l,s=i.trim().split(/\s+/),c=s[0]||"",d=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(d).concat(o).concat(c.slice(d.length)),[c].concat(Ce(s.slice(1))).join(" ")});return a.join(",")}var O1=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",v={};function h(b){var y=b.getName(l);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:i}),w=Q(x,1),C=w[0];v[y]="@keyframes ".concat(b.getName(l)).concat(C)}}function m(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?m(x,y):x&&y.push(x)}),y}var g=m(Array.isArray(t)?t:[t]);return g.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")p+="".concat(y,`
|
|
99
|
+
`);else if(y._keyframe)h(y);else{var x=f.reduce(function(w,C){var S;return(C==null||(S=C.visit)===null||S===void 0?void 0:S.call(C,w))||w},y);Object.keys(x).forEach(function(w){var C=x[w];if(Qe(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!k1(C)){var S=!1,E=w.trim(),$=!1;(o||a)&&l?E.startsWith("@")?S=!0:E==="&"?E=jd("",l,c):E=jd(w,l,c):o&&!l&&(E==="&"||E==="")&&(E="",$=!0);var O=e(C,n,{root:$,injectHash:S,parentSelectors:[].concat(Ce(i),[E])}),k=Q(O,2),I=k[0],M=k[1];v=U(U({},v),M),p+="".concat(E).concat(I)}else{let F=function(R,H){var j=R.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),_=H;!o1[R]&&typeof _=="number"&&_!==0&&(_="".concat(_,"px")),R==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(h(H),_=H.getName(l)),p+="".concat(j,":").concat(_,";")};var B,D=(B=C==null?void 0:C.value)!==null&&B!==void 0?B:C;Qe(C)==="object"&&C!==null&&C!==void 0&&C[tg]&&Array.isArray(D)?D.forEach(function(R){F(w,R)}):F(w,D)}})}}),o?s&&(p&&(p="@layer ".concat(s.name," {").concat(p,"}")),s.dependencies&&(v["@layer ".concat(s.name)]=s.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(s.name,";")}).join(`
|
|
100
|
+
`))):p="{".concat(p,"}"),[p,v]};function ng(e,t){return ha("".concat(e.join("%")).concat(t))}function M1(){return null}var I1="style";function Ms(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(Na),f=d.autoClear;d.mock;var p=d.defaultCache,v=d.hashPriority,h=d.container,m=d.ssrInline,g=d.transformers,b=d.linters,y=d.cache,x=d.layer,w=n._tokenKey,C=[w];x&&C.push("layer"),C.push.apply(C,Ce(r));var S=$s,E=eu(I1,C,function(){var M=C.join("|");if(S1(M)){var B=E1(M),D=Q(B,2),F=D[0],R=D[1];if(F)return[F,w,R,{},l,c]}var H=t(),j=O1(H,{hashId:o,hashPriority:v,layer:x?a:void 0,path:r.join("-"),transformers:g,linters:b}),_=Q(j,2),W=_[0],L=_[1],N=jl(W),P=ng(C,N);return[N,w,P,L,l,c]},function(M,B){var D=Q(M,3),F=D[2];(B||f)&&$s&&va(F,{mark:fr,attachTo:h})},function(M){var B=Q(M,4),D=B[0],F=B[2],R=B[3];if(S&&D!==Jm){var H={mark:fr,prepend:x?!1:"queue",attachTo:h,priority:c},j=typeof i=="function"?i():i;j&&(H.csp={nonce:j});var _=[],W=[];Object.keys(R).forEach(function(N){N.startsWith("@layer")?_.push(N):W.push(N)}),_.forEach(function(N){vr(jl(R[N]),"_layer-".concat(N),U(U({},H),{},{prepend:!0}))});var L=vr(D,F,H);L[Nr]=y.instanceId,L.setAttribute(ba,w),W.forEach(function(N){vr(jl(R[N]),"_effect-".concat(N),H)})}}),$=Q(E,3),O=$[0],k=$[1],I=$[2];return function(M){var B;return!m||S||!p?B=u.createElement(M1,null):B=u.createElement("style",Ae({},Y(Y({},ba,k),fr,I),{dangerouslySetInnerHTML:{__html:O}})),u.createElement(u.Fragment,null,B,M)}}var N1="cssVar",j1=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,i=e.token,l=e.scope,s=l===void 0?"":l,c=Ut(Na),d=c.cache.instanceId,f=c.container,p=i._tokenKey,v=[].concat(Ce(e.path),[n,s,p]),h=eu(N1,v,function(){var m=t(),g=Ym(m,n,{prefix:r,unitless:o,ignore:a,scope:s}),b=Q(g,2),y=b[0],x=b[1],w=ng(v,x);return[y,x,w,n]},function(m){var g=Q(m,3),b=g[2];$s&&va(b,{mark:fr,attachTo:f})},function(m){var g=Q(m,3),b=g[1],y=g[2];if(b){var x=vr(b,y,{mark:fr,prepend:"queue",attachTo:f,priority:-999});x[Nr]=d,x.setAttribute(ba,n)}});return h},kt=(function(){function e(t,n){Jt(this,e),Y(this,"name",void 0),Y(this,"style",void 0),Y(this,"_keyframe",!0),this.name=t,this.style=n}return en(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})(),ru=Dr({});function rg(e){return zm(e)||Tm(e)||Kc(e)||_m()}function Xn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function og(e,t,n,r){if(!t.length)return n;var o=rg(t),a=o[0],i=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=Ce(e):l=U({},e),r&&n===void 0&&i.length===1?delete l[a][i[0]]:l[a]=og(l[a],i,n,r),l}function Yn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Xn(e,t.slice(0,-1))?e:og(e,t,n,r)}function P1(e){return Qe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Pd(e){return Array.isArray(e)?[]:{}}var R1=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function So(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Pd(t[0]);return t.forEach(function(o){function a(i,l){var s=new Set(l),c=Xn(o,i),d=Array.isArray(c);if(d||P1(c)){if(!s.has(c)){s.add(c);var f=Xn(r,i);d?r=Yn(r,i,[]):(!f||Qe(f)!=="object")&&(r=Yn(r,i,Pd(c))),R1(c).forEach(function(p){a([].concat(Ce(i),[p]),s)})}}else r=Yn(r,i,c)}a([])}),r}function A1(){}const F1=u.createContext({}),Xi=()=>{const e=()=>{};return e.deprecated=A1,e},ag=Dr(void 0);var T1={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"},D1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},B1=U(U({},D1),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const ig={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ei={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"]},B1),timePickerLocale:Object.assign({},ig)},Fn="${label} is not a valid ${type}",Rr={locale:"en",Pagination:T1,DatePicker:Ei,TimePicker:ig,Calendar:Ei,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Fn,method:Fn,array:Fn,object:Fn,number:Fn,date:Fn,boolean:Fn,integer:Fn,float:Fn,regexp:Fn,email:Fn,url:Fn,hex:Fn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Rr.Modal);let fi=[];const Rd=()=>fi.reduce((e,t)=>Object.assign(Object.assign({},e),t),Rr.Modal);function H1(e){if(e){const t=Object.assign({},e);return fi.push(t),Rd(),()=>{fi=fi.filter(n=>n!==t),Rd()}}Object.assign({},Rr.Modal)}const ou=Dr(void 0),ao=(e,t)=>{const n=u.useContext(ou),r=u.useMemo(()=>{var a;const i=t||Rr[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=u.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Rr.locale:a},[n]);return[r,o]},z1="internalMark",_1=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>H1(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(ou.Provider,{value:o},n)},lg={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"},xa=Object.assign(Object.assign({},lg),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
101
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
102
|
+
'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}),hn=Math.round;function Pl(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Ad=(e,t,n)=>n===0?e:e/100;function Zo(e,t){const n=t||255;return e>n?n:e<0?0:e}class $t{constructor(t){Y(this,"isValid",!0),Y(this,"r",0),Y(this,"g",0),Y(this,"b",0),Y(this,"a",1),Y(this,"_h",void 0),Y(this,"_s",void 0),Y(this,"_l",void 0),Y(this,"_v",void 0),Y(this,"_max",void 0),Y(this,"_min",void 0),Y(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let r=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof $t)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Zo(t.r),this.g=Zo(t.g),this.b=Zo(t.b),this.a=typeof t.a=="number"?Zo(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=hn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,a=l=>(r[l]-this[l])*o+this[l],i={r:hn(a("r")),g:hn(a("g")),b:hn(a("b")),a:hn(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=a=>hn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=hn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=hn(this.getSaturation()*100),r=hn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Zo(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=hn(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=0,l=0;const s=t/60,c=(1-Math.abs(2*r-1))*n,d=c*(1-Math.abs(s%2-1));s>=0&&s<1?(a=c,i=d):s>=1&&s<2?(a=d,i=c):s>=2&&s<3?(i=c,l=d):s>=3&&s<4?(i=d,l=c):s>=4&&s<5?(a=d,l=c):s>=5&&s<6&&(a=c,l=d);const f=r-c/2;this.r=hn((a+f)*255),this.g=hn((i+f)*255),this.b=hn((l+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=hn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,l=Math.floor(i),s=i-l,c=hn(r*(1-n)*255),d=hn(r*(1-n*s)*255),f=hn(r*(1-n*(1-s))*255);switch(l){case 0:this.g=f,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=d;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(t){const n=Pl(t,Ad);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Pl(t,Ad);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Pl(t,(r,o)=>o.includes("%")?hn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var La=2,Fd=.16,L1=.05,W1=.05,V1=.15,sg=5,cg=4,q1=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Td(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-La*t:Math.round(e.h)+La*t:r=n?Math.round(e.h)+La*t:Math.round(e.h)-La*t,r<0?r+=360:r>=360&&(r-=360),r}function Dd(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Fd*t:t===cg?r=e.s+Fd:r=e.s+L1*t,r>1&&(r=1),n&&t===sg&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Bd(e,t,n){var r;return n?r=e.v+W1*t:r=e.v-V1*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function wa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new $t(e),o=r.toHsv(),a=sg;a>0;a-=1){var i=new $t({h:Td(o,a,!0),s:Dd(o,a,!0),v:Bd(o,a,!0)});n.push(i)}n.push(r);for(var l=1;l<=cg;l+=1){var s=new $t({h:Td(o,l),s:Dd(o,l),v:Bd(o,l)});n.push(s)}return t.theme==="dark"?q1.map(function(c){var d=c.index,f=c.amount;return new $t(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Rl={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"},Is=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Is.primary=Is[5];var Ns=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ns.primary=Ns[5];var js=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];js.primary=js[5];var Ps=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ps.primary=Ps[5];var Rs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Rs.primary=Rs[5];var As=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];As.primary=As[5];var Fs=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Fs.primary=Fs[5];var Ts=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ts.primary=Ts[5];var $i=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$i.primary=$i[5];var Ds=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ds.primary=Ds[5];var Bs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Bs.primary=Bs[5];var Hs=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Hs.primary=Hs[5];var zs=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];zs.primary=zs[5];var Al={red:Is,volcano:Ns,orange:js,gold:Ps,yellow:Rs,lime:As,green:Fs,cyan:Ts,blue:$i,geekblue:Ds,purple:Bs,magenta:Hs,grey:zs};function Y1(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,d=t(l),f=t(r),p=t(o),v=t(a),h=t(i),m=n(s,c),g=e.colorLink||e.colorInfo,b=t(g),y=new $t(v[1]).mix(new $t(v[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:y,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new $t("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const X1=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function U1(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},X1(r))}const G1=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function pi(e){return(e+8)/e}function K1(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:pi(n)}))}const Q1=e=>{const t=K1(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Z1(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const _n=(e,t)=>new $t(e).setA(t).toRgbString(),Jo=(e,t)=>new $t(e).darken(t).toHexString(),J1=e=>{const t=wa(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]}},ex=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:_n(r,.88),colorTextSecondary:_n(r,.65),colorTextTertiary:_n(r,.45),colorTextQuaternary:_n(r,.25),colorFill:_n(r,.15),colorFillSecondary:_n(r,.06),colorFillTertiary:_n(r,.04),colorFillQuaternary:_n(r,.02),colorBgSolid:_n(r,1),colorBgSolidHover:_n(r,.75),colorBgSolidActive:_n(r,.95),colorBgLayout:Jo(n,4),colorBgContainer:Jo(n,0),colorBgElevated:Jo(n,0),colorBgSpotlight:_n(r,.85),colorBgBlur:"transparent",colorBorder:Jo(n,15),colorBorderSecondary:Jo(n,6)}};function tx(e){Rl.pink=Rl.magenta,Al.pink=Al.magenta;const t=Object.keys(lg).map(n=>{const r=e[n]===Rl[n]?Al[n]:wa(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Y1(e,{generateColorPalettes:J1,generateNeutralColorPalettes:ex})),Q1(e.fontSize)),Z1(e)),G1(e)),U1(e))}const ug=Es(tx),_s={token:xa,override:{override:xa},hashed:!0},dg=pe.createContext(_s),Ca="ant",Ui="anticon",nx=["outlined","borderless","filled","underlined"],rx=(e,t)=>t||(e?`${Ca}-${e}`:Ca),xt=u.createContext({getPrefixCls:rx,iconPrefixCls:Ui}),Hd={};function xr(e){const t=u.useContext(xt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:Hd,styles:Hd},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const ox=`-ant-${Date.now()}-${Math.random()}`;function ax(e,t){const n={},r=(a,i)=>{let l=a.clone();return l=(i==null?void 0:i(l))||l,l.toRgbString()},o=(a,i)=>{const l=new $t(a),s=wa(l.toRgbString());n[`${i}-color`]=r(l),n[`${i}-color-disabled`]=s[1],n[`${i}-color-hover`]=s[4],n[`${i}-color-active`]=s[6],n[`${i}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${i}-color-deprecated-bg`]=s[0],n[`${i}-color-deprecated-border`]=s[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new $t(t.primaryColor),i=wa(a.toRgbString());i.forEach((s,c)=>{n[`primary-${c+1}`]=s}),n["primary-color-deprecated-l-35"]=r(a,s=>s.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,s=>s.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,s=>s.tint(20)),n["primary-color-deprecated-t-50"]=r(a,s=>s.tint(50)),n["primary-color-deprecated-f-12"]=r(a,s=>s.setA(s.a*.12));const l=new $t(i[0]);n["primary-color-active-deprecated-f-30"]=r(l,s=>s.setA(s.a*.3)),n["primary-color-active-deprecated-d-02"]=r(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"),`
|
|
103
|
+
:root {
|
|
104
|
+
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
105
|
+
`)}
|
|
106
|
+
}
|
|
107
|
+
`.trim()}function ix(e,t){const n=ax(e,t);jn()&&vr(n,`${ox}-dynamic-theme`)}const On=u.createContext(!1),fg=({children:e,disabled:t})=>{const n=u.useContext(On);return u.createElement(On.Provider,{value:t??n},e)},eo=u.createContext(void 0),lx=({children:e,size:t})=>{const n=u.useContext(eo);return u.createElement(eo.Provider,{value:t||n},e)};function sx(){const e=Ut(On),t=Ut(eo);return{componentDisabled:e,componentSize:t}}var pg=en(function e(){Jt(this,e)}),mg="CALC_UNIT",cx=new RegExp(mg,"g");function Fl(e){return typeof e=="number"?"".concat(e).concat(mg):e}var ux=(function(e){Br(n,e);var t=Hr(n);function n(r,o){var a;Jt(this,n),a=t.call(this),Y(yt(a),"result",""),Y(yt(a),"unitlessCssVar",void 0),Y(yt(a),"lowPriority",void 0);var i=Qe(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=Fl(r):i==="string"&&(a.result=r),a}return en(n,[{key:"add",value:function(r){return r instanceof n?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(Fl(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof n?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(Fl(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var o=this,a=r||{},i=a.unit,l=!0;return typeof i=="boolean"?l=i:Array.from(this.unitlessCssVar).some(function(s){return o.result.includes(s)})&&(l=!1),this.result=this.result.replace(cx,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(pg),dx=(function(e){Br(n,e);var t=Hr(n);function n(r){var o;return Jt(this,n),o=t.call(this),Y(yt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return en(n,[{key:"add",value:function(r){return r instanceof n?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof n?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof n?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof n?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),n})(pg),fx=function(e,t){var n=e==="css"?ux:dx;return function(r){return new n(r,t)}},zd=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function bt(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Fo(e){var t=u.useRef(!1),n=u.useState(e),r=Q(n,2),o=r[0],a=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,s){s&&t.current||a(l)}return[o,i]}function Tl(e){return e!==void 0}function Qt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=Fo(function(){return Tl(o)?o:Tl(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=Q(l,2),c=s[0],d=s[1],f=o!==void 0?o:c,p=i?i(f):f,v=bt(a),h=Fo([f]),m=Q(h,2),g=m[0],b=m[1];Oo(function(){var x=g[0];c!==x&&v(c,x)},[g]),Oo(function(){Tl(o)||d(o)},[o]);var y=bt(function(x,w){d(x,w),b([f],w)});return[p,y]}function _d(e,t,n,r){var o=U({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(l){var s=Q(l,2),c=s[0],d=s[1];if(o!=null&&o[c]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[c])}})}var i=U(U({},n),o);return Object.keys(i).forEach(function(l){i[l]===t[l]&&delete i[l]}),i}var gg=typeof CSSINJS_STATISTIC<"u",Ls=!0;function Rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!gg)return Object.assign.apply(Object,[{}].concat(t));Ls=!1;var r={};return t.forEach(function(o){if(Qe(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Ls=!0,r}var Ld={};function px(){}var mx=function(e){var t,n=e,r=px;return gg&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:function(o,a){if(Ls){var i;(i=t)===null||i===void 0||i.add(a)}return o[a]}}),r=function(o,a){var i;Ld[o]={global:Array.from(t),component:U(U({},(i=Ld[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}};function Wd(e,t,n){if(typeof n=="function"){var r;return n(Rt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function gx(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"max(".concat(n.map(function(o){return ue(o)}).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"min(".concat(n.map(function(o){return ue(o)}).join(","),")")}}}var hx=1e3*60*10,vx=(function(){function e(){Jt(this,e),Y(this,"map",new Map),Y(this,"objectIDMap",new WeakMap),Y(this,"nextID",0),Y(this,"lastAccessBeat",new Map),Y(this,"accessBeat",0)}return en(e,[{key:"set",value:function(t,n){this.clear();var r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(t){var n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(t){var n=this,r=t.map(function(o){return o&&Qe(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Qe(o),"_").concat(o)});return r.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(r,o){n-r>hx&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Vd=new vx;function bx(e,t){return pe.useMemo(function(){var n=Vd.get(t);if(n)return n;var r=e();return Vd.set(t,r),r},t)}var yx=function(){return{}};function xx(e){var t=e.useCSP,n=t===void 0?yx:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,l=e.getCompUnitless;function s(p,v,h,m){var g=Array.isArray(p)?p[0]:p;function b($){return"".concat(String(g)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var y=(m==null?void 0:m.unitless)||{},x=typeof l=="function"?l(p):{},w=U(U({},x),{},Y({},b("zIndexPopup"),!0));Object.keys(y).forEach(function($){w[b($)]=y[$]});var C=U(U({},m),{},{unitless:w,prefixToken:b}),S=d(p,v,h,C),E=c(g,h,C);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,k=S($,O),I=Q(k,2),M=I[1],B=E(O),D=Q(B,2),F=D[0],R=D[1];return[F,M,R]}}function c(p,v,h){var m=h.unitless,g=h.injectStyle,b=g===void 0?!0:g,y=h.prefixToken,x=h.ignore,w=function(S){var E=S.rootCls,$=S.cssVar,O=$===void 0?{}:$,k=r(),I=k.realToken;return j1({path:[p],prefix:O.prefix,key:O.key,unitless:m,ignore:x,token:I,scope:E},function(){var M=Wd(p,I,v),B=_d(p,I,M,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(M).forEach(function(D){B[y(D)]=B[D],delete B[D]}),B}),null},C=function(S){var E=r(),$=E.cssVar;return[function(O){return b&&$?pe.createElement(pe.Fragment,null,pe.createElement(w,{rootCls:S,cssVar:$,component:p}),O):O},$==null?void 0:$.key]};return C}function d(p,v,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(p)?p:[p,p],b=Q(g,1),y=b[0],x=g.join("-"),w=e.layer||{name:"antd"};return function(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),$=E.theme,O=E.realToken,k=E.hashId,I=E.token,M=E.cssVar,B=o(),D=B.rootPrefixCls,F=B.iconPrefixCls,R=n(),H=M?"css":"js",j=bx(function(){var A=new Set;return M&&Object.keys(m.unitless||{}).forEach(function(T){A.add(si(T,M.prefix)),A.add(si(T,zd(y,M.prefix)))}),fx(H,A)},[H,y,M==null?void 0:M.prefix]),_=gx(H),W=_.max,L=_.min,N={theme:$,token:I,hashId:k,nonce:function(){return R.nonce},clientOnly:m.clientOnly,layer:w,order:m.order||-999};typeof a=="function"&&Ms(U(U({},N),{},{clientOnly:!1,path:["Shared",D]}),function(){return a(I,{prefix:{rootPrefixCls:D,iconPrefixCls:F},csp:R})});var P=Ms(U(U({},N),{},{path:[x,C,F]}),function(){if(m.injectStyle===!1)return[];var A=mx(I),T=A.token,z=A.flush,V=Wd(y,O,h),q=".".concat(C),Z=_d(y,O,V,{deprecatedTokens:m.deprecatedTokens});M&&V&&Qe(V)==="object"&&Object.keys(V).forEach(function(X){V[X]="var(".concat(si(X,zd(y,M.prefix)),")")});var G=Rt(T,{componentCls:q,prefixCls:C,iconCls:".".concat(F),antCls:".".concat(D),calc:j,max:W,min:L},M?V:Z),J=v(G,{hashId:k,prefixCls:C,rootPrefixCls:D,iconPrefixCls:F});z(y,Z);var K=typeof i=="function"?i(G,C,S,m.resetFont):null;return[m.resetStyle===!1?null:K,J]});return[P,k]}}function f(p,v,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(p,v,h,U({resetStyle:!1,order:-998},m)),b=function(y){var x=y.prefixCls,w=y.rootCls,C=w===void 0?x:w;return g(x,C),null};return b}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:d}}const to=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],wx="5.27.6";function Dl(e){return e>=0&&e<=255}function ra(e,t){const{r:n,g:r,b:o,a}=new $t(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new $t(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-i*(1-c))/c),f=Math.round((r-l*(1-c))/c),p=Math.round((o-s*(1-c))/c);if(Dl(d)&&Dl(f)&&Dl(p))return new $t({r:d,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new $t({r:n,g:r,b:o,a:1}).toRgbString()}var Cx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hg(e){const{override:t}=e,n=Cx(e,["override"]),r=Object.assign({},t);Object.keys(xa).forEach(f=>{delete r[f]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,s=992,c=1200,d=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ra(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:ra(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ra(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ra(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:`
|
|
108
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
109
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
110
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
111
|
+
`,boxShadowSecondary:`
|
|
112
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
113
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
114
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
115
|
+
`,boxShadowTertiary:`
|
|
116
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
117
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
118
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
119
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
120
|
+
0 1px 2px -2px ${new $t("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
121
|
+
0 3px 6px 0 ${new $t("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
122
|
+
0 5px 12px 4px ${new $t("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
123
|
+
`,boxShadowDrawerRight:`
|
|
124
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
125
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
126
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
127
|
+
`,boxShadowDrawerLeft:`
|
|
128
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
129
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
130
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
131
|
+
`,boxShadowDrawerUp:`
|
|
132
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
133
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
134
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
135
|
+
`,boxShadowDrawerDown:`
|
|
136
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
137
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
138
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
139
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var qd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vg={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Sx={motionBase:!0,motionUnit:!0},Ex={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},bg=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=qd(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=hg(i),a&&Object.entries(a).forEach(([l,s])=>{const{theme:c}=s,d=qd(s,["theme"]);let f=d;c&&(f=bg(Object.assign(Object.assign({},i),d),{override:d},c)),i[l]=f}),i};function Kn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=pe.useContext(dg),a=`${wx}-${t||""}`,i=n||ug,[l,s,c]=r1(i,[xa,e],{salt:a,override:r,getComputedToken:bg,formatToken:hg,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:vg,ignore:Sx,preserve:Ex}});return[i,c,t?s:"",l,o]}const ki={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Zt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ja=()=>({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"}}),$x=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),kx=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ox=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),i),{[o]:i})}},au=(e,t)=>({outline:`${ue(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),yg=(e,t)=>({"&:focus-visible":au(e)}),xg=e=>({[`.${e}`]:Object.assign(Object.assign({},ja()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:ln,genComponentStyleHook:Mx,genSubStyleComponent:Gi}=xx({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Ut(xt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Kn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=Ut(xt);return e??{}},getResetStyles:(e,t)=>{var n;const r=kx(e);return[r,{"&":r},xg((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Ui)]},getCommonStyle:Ox,getCompUnitless:()=>vg});function Ki(e,t){return to.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const Ix=(e,t)=>{const[n,r]=Kn();return Ms({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>xg(e))},Nx=Object.assign({},u),{useId:Yd}=Nx,jx=()=>"",Px=typeof Yd>"u"?jx:Yd;function Rx(e,t,n){var r;Xi();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},_s),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:_s.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=Px();return Li(()=>{var l,s;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(l,s)=>l.some((c,d)=>{const f=s[d];return!Si(c,f,!0)}))}var Ax=["children"],wg=u.createContext({});function Fx(e){var t=e.children,n=ft(e,Ax);return u.createElement(wg.Provider,{value:n},t)}var Tx=(function(e){Br(n,e);var t=Hr(n);function n(){return Jt(this,n),t.apply(this,arguments)}return en(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function Dx(e){var t=u.useReducer(function(l){return l+1},0),n=Q(t,2),r=n[1],o=u.useRef(e),a=bt(function(){return o.current}),i=bt(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[a,i]}var kr="none",Wa="appear",Va="enter",qa="leave",Xd="none",er="prepare",Eo="start",$o="active",iu="end",Cg="prepared";function Ud(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Bx(e,t){var n={animationend:Ud("Animation","AnimationEnd"),transitionend:Ud("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Hx=Bx(jn(),typeof window<"u"?window:{}),Sg={};if(jn()){var zx=document.createElement("div");Sg=zx.style}var Ya={};function Eg(e){if(Ya[e])return Ya[e];var t=Hx[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Sg)return Ya[e]=t[a],Ya[e]}return""}var $g=Eg("animationend"),kg=Eg("transitionend"),Og=!!($g&&kg),Gd=$g||"animationend",Kd=kg||"transitionend";function Qd(e,t){if(!e)return null;if(Qe(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const _x=(function(e){var t=Ye();function n(o){o&&(o.removeEventListener(Kd,e),o.removeEventListener(Gd,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Kd,e),o.addEventListener(Gd,e),t.current=o)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var Mg=jn()?P0:Mt;const Lx=(function(){var e=u.useRef(null);function t(){dt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=dt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[n,t]});var Wx=[er,Eo,$o,iu],Vx=[er,Cg],Ig=!1,qx=!0;function Ng(e){return e===$o||e===iu}const Yx=(function(e,t,n){var r=Fo(Xd),o=Q(r,2),a=o[0],i=o[1],l=Lx(),s=Q(l,2),c=s[0],d=s[1];function f(){i(er,!0)}var p=t?Vx:Wx;return Mg(function(){if(a!==Xd&&a!==iu){var v=p.indexOf(a),h=p[v+1],m=n(a);m===Ig?i(h,!0):h&&c(function(g){function b(){g.isCanceled()||i(h,!0)}m===!0?b():Promise.resolve(m).then(b)})}},[e,a]),u.useEffect(function(){return function(){d()}},[]),[f,a]});function Xx(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,m=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,S=r.onEnterEnd,E=r.onLeaveEnd,$=r.onVisibleChanged,O=Fo(),k=Q(O,2),I=k[0],M=k[1],B=Dx(kr),D=Q(B,2),F=D[0],R=D[1],H=Fo(null),j=Q(H,2),_=j[0],W=j[1],L=F(),N=Ye(!1),P=Ye(null);function A(){return n()}var T=Ye(!1);function z(){R(kr),W(null,!0)}var V=bt(function(me){var Ee=F();if(Ee!==kr){var le=A();if(!(me&&!me.deadline&&me.target!==le)){var de=T.current,je;Ee===Wa&&de?je=C==null?void 0:C(le,me):Ee===Va&&de?je=S==null?void 0:S(le,me):Ee===qa&&de&&(je=E==null?void 0:E(le,me)),de&&je!==!1&&z()}}}),q=_x(V),Z=Q(q,1),G=Z[0],J=function(me){switch(me){case Wa:return Y(Y(Y({},er,p),Eo,m),$o,y);case Va:return Y(Y(Y({},er,v),Eo,g),$o,x);case qa:return Y(Y(Y({},er,h),Eo,b),$o,w);default:return{}}},K=u.useMemo(function(){return J(L)},[L]),X=Yx(L,!e,function(me){if(me===er){var Ee=K[er];return Ee?Ee(A()):Ig}if(ee in K){var le;W(((le=K[ee])===null||le===void 0?void 0:le.call(K,A(),null))||null)}return ee===$o&&L!==kr&&(G(A()),d>0&&(clearTimeout(P.current),P.current=setTimeout(function(){V({deadline:!0})},d))),ee===Cg&&z(),qx}),ne=Q(X,2),te=ne[0],ee=ne[1],ie=Ng(ee);T.current=ie;var se=Ye(null);Mg(function(){if(!(N.current&&se.current===t)){M(t);var me=N.current;N.current=!0;var Ee;!me&&t&&l&&(Ee=Wa),me&&t&&a&&(Ee=Va),(me&&!t&&c||!me&&f&&!t&&c)&&(Ee=qa);var le=J(Ee);Ee&&(e||le[er])?(R(Ee),te()):R(kr),se.current=t}},[t]),Mt(function(){(L===Wa&&!l||L===Va&&!a||L===qa&&!c)&&R(kr)},[l,a,c]),Mt(function(){return function(){N.current=!1,clearTimeout(P.current)}},[]);var fe=u.useRef(!1);Mt(function(){I&&(fe.current=!0),I!==void 0&&L===kr&&((fe.current||I)&&($==null||$(I)),fe.current=!0)},[I,L]);var ve=_;return K[er]&&ee===Eo&&(ve=U({transition:"none"},ve)),[L,ee,ve,I??t]}function Ux(e){var t=e;Qe(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=u.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,c=s===void 0?!0:s,d=o.forceRender,f=o.children,p=o.motionName,v=o.leavedClassName,h=o.eventProps,m=u.useContext(wg),g=m.motion,b=n(o,g),y=Ye(),x=Ye();function w(){try{return y.current instanceof HTMLElement?y.current:li(x.current)}catch{return null}}var C=Xx(b,l,w,o),S=Q(C,4),E=S[0],$=S[1],O=S[2],k=S[3],I=u.useRef(k);k&&(I.current=!0);var M=u.useCallback(function(j){y.current=j,Uc(a,j)},[a]),B,D=U(U({},h),{},{visible:l});if(!f)B=null;else if(E===kr)k?B=f(U({},D),M):!c&&I.current&&v?B=f(U(U({},D),{},{className:v}),M):d||!c&&!v?B=f(U(U({},D),{},{style:{display:"none"}}),M):B=null;else{var F;$===er?F="prepare":Ng($)?F="active":$===Eo&&(F="start");var R=Qd(p,"".concat(E,"-").concat(F));B=f(U(U({},D),{},{className:ae(Qd(p,E),Y(Y({},R,R&&F),p,typeof p=="string")),style:O}),M)}if(u.isValidElement(B)&&Do(B)){var H=Ia(B);H||(B=u.cloneElement(B,{ref:M}))}return u.createElement(Tx,{ref:x},B)});return r.displayName="CSSMotion",r}const io=Ux(Og);var Ws="add",Vs="keep",qs="remove",Bl="removed";function Gx(e){var t;return e&&Qe(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function Ys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Gx)}function Kx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Ys(e),i=Ys(t);a.forEach(function(c){for(var d=!1,f=r;f<o;f+=1){var p=i[f];if(p.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return U(U({},v),{},{status:Ws})})),r=f),n.push(U(U({},p),{},{status:Vs})),r+=1,d=!0;break}}d||n.push(U(U({},c),{},{status:qs}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return U(U({},c),{},{status:Ws})})));var l={};n.forEach(function(c){var d=c.key;l[d]=(l[d]||0)+1});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,p=d.status;return f!==c||p!==qs}),n.forEach(function(d){d.key===c&&(d.status=Vs)})}),n}var Qx=["component","children","onVisibleChanged","onAllRemoved"],Zx=["status"],Jx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ew(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:io,n=(function(r){Br(a,r);var o=Hr(a);function a(){var i;Jt(this,a);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return i=o.call.apply(o,[this].concat(s)),Y(yt(i),"state",{keyEntities:[]}),Y(yt(i),"removeKey",function(d){i.setState(function(f){var p=f.keyEntities.map(function(v){return v.key!==d?v:U(U({},v),{},{status:Bl})});return{keyEntities:p}},function(){var f=i.state.keyEntities,p=f.filter(function(v){var h=v.status;return h!==Bl}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return en(a,[{key:"render",value:function(){var i=this,l=this.state.keyEntities,s=this.props,c=s.component,d=s.children,f=s.onVisibleChanged,p=ft(s,Qx),v=c||u.Fragment,h={};return Jx.forEach(function(m){h[m]=p[m],delete p[m]}),delete p.keys,u.createElement(v,p,l.map(function(m,g){var b=m.status,y=ft(m,Zx),x=b===Ws||b===Vs;return u.createElement(t,Ae({},h,{key:y.key,visible:x,eventProps:y,onVisibleChanged:function(w){f==null||f(w,{key:y.key}),w||i.removeKey(y.key)}}),function(w,C){return d(U(U({},w),{},{index:g}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(i,l){var s=i.keys,c=l.keyEntities,d=Ys(s),f=Kx(c,d);return{keyEntities:f.filter(function(p){var v=c.find(function(h){var m=h.key;return p.key===m});return!(v&&v.status===Bl&&p.status===qs)})}}}]),a})(u.Component);return Y(n,"defaultProps",{component:"div"}),n}const jg=ew(Og),Zd=u.createContext(!0);function tw(e){const t=u.useContext(Zd),{children:n}=e,[,r]=Kn(),{motion:o}=r,a=u.useRef(!1);return a.current||(a.current=t!==o),a.current?u.createElement(Zd.Provider,{value:o},u.createElement(Fx,{motion:o},n)):n}const nw=()=>null;var rw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ow=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let lu,Pg,Rg,Ag;function mi(){return lu||Ca}function aw(){return Pg||Ui}function iw(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const lw=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(lu=t),n!==void 0&&(Pg=n),"holderRender"in e&&(Ag=o),r&&(iw(r)?ix(mi(),r):Rg=r)},sw=()=>({getPrefixCls:(e,t)=>t||(e?`${mi()}-${e}`:mi()),getIconPrefixCls:aw,getRootPrefixCls:()=>lu||mi(),getTheme:()=>Rg,holderRender:Ag}),cw=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:s,direction:c,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:g,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:w,segmented:C,statistic:S,spin:E,calendar:$,carousel:O,cascader:k,collapse:I,typography:M,checkbox:B,descriptions:D,divider:F,drawer:R,skeleton:H,steps:j,image:_,layout:W,list:L,mentions:N,modal:P,progress:A,result:T,slider:z,breadcrumb:V,menu:q,pagination:Z,input:G,textArea:J,empty:K,badge:X,radio:ne,rate:te,switch:ee,transfer:ie,avatar:se,message:fe,tag:ve,table:me,card:Ee,tabs:le,timeline:de,timePicker:je,upload:oe,notification:Me,tree:ke,colorPicker:Fe,datePicker:Pe,rangePicker:Ie,flex:ye,wave:be,dropdown:he,warning:we,tour:Te,tooltip:ce,popover:Ge,popconfirm:rt,floatButton:at,floatButtonGroup:pt,variant:Ne,inputNumber:Be,treeSelect:Re}=e,Xe=u.useCallback((Ze,ot)=>{const{prefixCls:mt}=e;if(ot)return ot;const vt=mt||b.getPrefixCls("");return Ze?`${vt}-${Ze}`:vt},[b.getPrefixCls,e.prefixCls]),Ue=y||b.iconPrefixCls||Ui,lt=n||b.csp;Ix(Ue,lt);const ct=Rx(x,b.theme,{prefixCls:Xe("")}),Ve={csp:lt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||g,direction:c,space:d,splitter:f,virtual:p,popupMatchSelectWidth:h??v,popupOverflow:m,getPrefixCls:Xe,iconPrefixCls:Ue,theme:ct,segmented:C,statistic:S,spin:E,calendar:$,carousel:O,cascader:k,collapse:I,typography:M,checkbox:B,descriptions:D,divider:F,drawer:R,skeleton:H,steps:j,image:_,input:G,textArea:J,layout:W,list:L,mentions:N,modal:P,progress:A,result:T,slider:z,breadcrumb:V,menu:q,pagination:Z,empty:K,badge:X,radio:ne,rate:te,switch:ee,transfer:ie,avatar:se,message:fe,tag:ve,table:me,card:Ee,tabs:le,timeline:de,timePicker:je,upload:oe,notification:Me,tree:ke,colorPicker:Fe,datePicker:Pe,rangePicker:Ie,flex:ye,wave:be,dropdown:he,warning:we,tour:Te,tooltip:ce,popover:Ge,popconfirm:rt,floatButton:at,floatButtonGroup:pt,variant:Ne,inputNumber:Be,treeSelect:Re},tt=Object.assign({},b);Object.keys(Ve).forEach(Ze=>{Ve[Ze]!==void 0&&(tt[Ze]=Ve[Ze])}),ow.forEach(Ze=>{const ot=e[Ze];ot&&(tt[Ze]=ot)}),typeof r<"u"&&(tt.button=Object.assign({autoInsertSpace:r},tt.button));const st=Li(()=>tt,tt,(Ze,ot)=>{const mt=Object.keys(Ze),vt=Object.keys(ot);return mt.length!==vt.length||mt.some(ut=>Ze[ut]!==ot[ut])}),{layer:Oe}=u.useContext(Na),xe=u.useMemo(()=>({prefixCls:Ue,csp:lt,layer:Oe?"antd":void 0}),[Ue,lt,Oe]);let ge=u.createElement(u.Fragment,null,u.createElement(nw,{dropdownMatchSelectWidth:v}),t);const Se=u.useMemo(()=>{var Ze,ot,mt,vt;return So(((Ze=Rr.Form)===null||Ze===void 0?void 0:Ze.defaultValidateMessages)||{},((mt=(ot=st.locale)===null||ot===void 0?void 0:ot.Form)===null||mt===void 0?void 0:mt.defaultValidateMessages)||{},((vt=st.form)===null||vt===void 0?void 0:vt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[st,i==null?void 0:i.validateMessages]);Object.keys(Se).length>0&&(ge=u.createElement(ag.Provider,{value:Se},ge)),l&&(ge=u.createElement(_1,{locale:l,_ANT_MARK__:z1},ge)),ge=u.createElement(ru.Provider,{value:xe},ge),s&&(ge=u.createElement(lx,{size:s},ge)),ge=u.createElement(tw,null,ge);const We=u.useMemo(()=>{const Ze=ct||{},{algorithm:ot,token:mt,components:vt,cssVar:ut}=Ze,jt=rw(Ze,["algorithm","token","components","cssVar"]),Ot=ot&&(!Array.isArray(ot)||ot.length>0)?Es(ot):ug,gt={};Object.entries(vt||{}).forEach(([Ft,tn])=>{const $e=Object.assign({},tn);"algorithm"in $e&&($e.algorithm===!0?$e.theme=Ot:(Array.isArray($e.algorithm)||typeof $e.algorithm=="function")&&($e.theme=Es($e.algorithm)),delete $e.algorithm),gt[Ft]=$e});const At=Object.assign(Object.assign({},xa),mt);return Object.assign(Object.assign({},jt),{theme:Ot,token:At,components:gt,override:Object.assign({override:At},gt),cssVar:ut})},[ct]);return x&&(ge=u.createElement(dg.Provider,{value:We},ge)),st.warning&&(ge=u.createElement(F1.Provider,{value:st.warning},ge)),w!==void 0&&(ge=u.createElement(fg,{disabled:w},ge)),u.createElement(xt.Provider,{value:st},ge)},zr=e=>{const t=u.useContext(xt),n=u.useContext(ou);return u.createElement(cw,Object.assign({parentContext:t,legacyLocale:n},e))};zr.ConfigContext=xt;zr.SizeContext=eo;zr.config=lw;zr.useConfig=sx;Object.defineProperty(zr,"SizeContext",{get:()=>eo});var uw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Fg(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function dw(e){return Fg(e)instanceof ShadowRoot}function Oi(e){return dw(e)?Fg(e):null}function fw(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function pw(e,t){vn(e,"[@ant-design/icons] ".concat(t))}function Jd(e){return Qe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Qe(e.icon)==="object"||typeof e.icon=="function")}function ef(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[fw(n)]=r}return t},{})}function Xs(e,t,n){return n?pe.createElement(e.tag,U(U({key:t},ef(e.attrs)),n),(e.children||[]).map(function(r,o){return Xs(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):pe.createElement(e.tag,U({key:t},ef(e.attrs)),(e.children||[]).map(function(r,o){return Xs(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Tg(e){return wa(e)[0]}function Dg(e){return e?Array.isArray(e)?e:[e]:[]}var mw=`
|
|
140
|
+
.anticon {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
color: inherit;
|
|
144
|
+
font-style: normal;
|
|
145
|
+
line-height: 0;
|
|
146
|
+
text-align: center;
|
|
147
|
+
text-transform: none;
|
|
148
|
+
vertical-align: -0.125em;
|
|
149
|
+
text-rendering: optimizeLegibility;
|
|
150
|
+
-webkit-font-smoothing: antialiased;
|
|
151
|
+
-moz-osx-font-smoothing: grayscale;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.anticon > * {
|
|
155
|
+
line-height: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.anticon svg {
|
|
159
|
+
display: inline-block;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.anticon::before {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.anticon .anticon-icon {
|
|
167
|
+
display: block;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.anticon[tabindex] {
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.anticon-spin::before,
|
|
175
|
+
.anticon-spin {
|
|
176
|
+
display: inline-block;
|
|
177
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
178
|
+
animation: loadingCircle 1s infinite linear;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@-webkit-keyframes loadingCircle {
|
|
182
|
+
100% {
|
|
183
|
+
-webkit-transform: rotate(360deg);
|
|
184
|
+
transform: rotate(360deg);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@keyframes loadingCircle {
|
|
189
|
+
100% {
|
|
190
|
+
-webkit-transform: rotate(360deg);
|
|
191
|
+
transform: rotate(360deg);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
`,gw=function(e){var t=Ut(ru),n=t.csp,r=t.prefixCls,o=t.layer,a=mw;r&&(a=a.replace(/anticon/g,r)),o&&(a="@layer ".concat(o,` {
|
|
195
|
+
`).concat(a,`
|
|
196
|
+
}`)),Mt(function(){var i=e.current,l=Oi(i);vr(a,"@ant-design-icons",{prepend:!o,csp:n,attachTo:l})},[])},hw=["icon","className","onClick","style","primaryColor","secondaryColor"],ca={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vw(e){var t=e.primaryColor,n=e.secondaryColor;ca.primaryColor=t,ca.secondaryColor=n||Tg(t),ca.calculated=!!n}function bw(){return U({},ca)}var Ho=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,a=e.primaryColor,i=e.secondaryColor,l=ft(e,hw),s=u.useRef(),c=ca;if(a&&(c={primaryColor:a,secondaryColor:i||Tg(a)}),gw(s),pw(Jd(t),"icon should be icon definiton, but got ".concat(t)),!Jd(t))return null;var d=t;return d&&typeof d.icon=="function"&&(d=U(U({},d),{},{icon:d.icon(c.primaryColor,c.secondaryColor)})),Xs(d.icon,"svg-".concat(d.name),U(U({className:n,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:s}))};Ho.displayName="IconReact";Ho.getTwoToneColors=bw;Ho.setTwoToneColors=vw;function Bg(e){var t=Dg(e),n=Q(t,2),r=n[0],o=n[1];return Ho.setTwoToneColors({primaryColor:r,secondaryColor:o})}function yw(){var e=Ho.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var xw=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Bg($i.primary);var mn=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=ft(e,xw),d=u.useContext(ru),f=d.prefixCls,p=f===void 0?"anticon":f,v=d.rootClassName,h=ae(v,p,Y(Y({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),m=i;m===void 0&&l&&(m=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Dg(s),y=Q(b,2),x=y[0],w=y[1];return u.createElement("span",Ae({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:l,className:h}),u.createElement(Ho,{icon:r,primaryColor:x,secondaryColor:w,style:g}))});mn.displayName="AntdIcon";mn.getTwoToneColor=yw;mn.setTwoToneColor=Bg;var ww=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:uw}))},Hg=u.forwardRef(ww),Cw={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Sw=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:Cw}))},Qi=u.forwardRef(Sw),Ew={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},$w=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:Ew}))},su=u.forwardRef($w),kw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Ow=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:kw}))},zg=u.forwardRef(Ow),Mw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},Iw=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:Mw}))},Nw=u.forwardRef(Iw),jw=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
197
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
198
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
199
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
200
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
201
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
202
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
203
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
204
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
205
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
206
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
207
|
+
summary tabIndex target title type useMap value width wmode wrap`,Pw=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
208
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
209
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
210
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
211
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
212
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
213
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Rw="".concat(jw," ").concat(Pw).split(/[\s\n]+/),Aw="aria-",Fw="data-";function tf(e,t){return e.indexOf(t)===0}function rr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=U({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||tf(o,Aw))||n.data&&tf(o,Fw)||n.attr&&Rw.includes(o))&&(r[o]=e[o])}),r}function _g(e){return e&&pe.isValidElement(e)&&e.type===pe.Fragment}const Lg=(e,t,n)=>pe.isValidElement(e)?pe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Ar(e,t){return Lg(e,e,t)}const nf=e=>typeof e=="object"&&e!=null&&e.nodeType===1,rf=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Xa=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return rf(n.overflowY,t)||rf(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ua=(e,t,n,r,o,a,i,l)=>a<e&&i>t||a>e&&i<t?0:a<=e&&l<=n||i>=t&&l>=n?a-e-r:i>t&&l<n||a<e&&l>n?i-t+o:0,Tw=e=>e.parentElement??(e.getRootNode().host||null),of=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:s,boundary:c,skipOverflowHiddenElements:d}=t,f=typeof c=="function"?c:R=>R!==c;if(!nf(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,v=[];let h=e;for(;nf(h)&&f(h);){if(h=Tw(h),h===p){v.push(h);break}h!=null&&h===document.body&&Xa(h)&&!Xa(document.documentElement)||h!=null&&Xa(h,d)&&v.push(h)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:w,top:C,right:S,bottom:E,left:$}=e.getBoundingClientRect(),{top:O,right:k,bottom:I,left:M}=(R=>{const H=window.getComputedStyle(R);return{top:parseFloat(H.scrollMarginTop)||0,right:parseFloat(H.scrollMarginRight)||0,bottom:parseFloat(H.scrollMarginBottom)||0,left:parseFloat(H.scrollMarginLeft)||0}})(e);let B=l==="start"||l==="nearest"?C-O:l==="end"?E+I:C+x/2-O+I,D=s==="center"?$+w/2-M+k:s==="end"?S+k:$-M;const F=[];for(let R=0;R<v.length;R++){const H=v[R],{height:j,width:_,top:W,right:L,bottom:N,left:P}=H.getBoundingClientRect();if(i==="if-needed"&&C>=0&&$>=0&&E<=g&&S<=m&&(H===p&&!Xa(H)||C>=W&&E<=N&&$>=P&&S<=L))return F;const A=getComputedStyle(H),T=parseInt(A.borderLeftWidth,10),z=parseInt(A.borderTopWidth,10),V=parseInt(A.borderRightWidth,10),q=parseInt(A.borderBottomWidth,10);let Z=0,G=0;const J="offsetWidth"in H?H.offsetWidth-H.clientWidth-T-V:0,K="offsetHeight"in H?H.offsetHeight-H.clientHeight-z-q:0,X="offsetWidth"in H?H.offsetWidth===0?0:_/H.offsetWidth:0,ne="offsetHeight"in H?H.offsetHeight===0?0:j/H.offsetHeight:0;if(p===H)Z=l==="start"?B:l==="end"?B-g:l==="nearest"?Ua(y,y+g,g,z,q,y+B,y+B+x,x):B-g/2,G=s==="start"?D:s==="center"?D-m/2:s==="end"?D-m:Ua(b,b+m,m,T,V,b+D,b+D+w,w),Z=Math.max(0,Z+y),G=Math.max(0,G+b);else{Z=l==="start"?B-W-z:l==="end"?B-N+q+K:l==="nearest"?Ua(W,N,j,z,q+K,B,B+x,x):B-(W+j/2)+K/2,G=s==="start"?D-P-T:s==="center"?D-(P+_/2)+J/2:s==="end"?D-L+V+J:Ua(P,L,_,T,V+J,D,D+w,w);const{scrollLeft:te,scrollTop:ee}=H;Z=ne===0?0:Math.max(0,Math.min(ee+Z/ne,H.scrollHeight-j/ne+K)),G=X===0?0:Math.max(0,Math.min(te+G/X,H.scrollWidth-_/X+J)),B+=ee-Z,D+=te-G}F.push({el:H,top:Z,left:G})}return F},Dw=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Bw(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(of(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of of(e,Dw(t))){const l=a-n.top+n.bottom,s=i-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const Hn=e=>{const[,,,,t]=Kn();return t?`${e}-css-var`:""};var Ke={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Wg=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,l=e.showProgress,s=e.pauseOnHover,c=s===void 0?!0:s,d=e.eventKey,f=e.content,p=e.closable,v=e.closeIcon,h=v===void 0?"x":v,m=e.props,g=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,w=u.useState(!1),C=Q(w,2),S=C[0],E=C[1],$=u.useState(0),O=Q($,2),k=O[0],I=O[1],M=u.useState(0),B=Q(M,2),D=B[0],F=B[1],R=x||S,H=i>0&&l,j=function(){b(d)},_=function(A){(A.key==="Enter"||A.code==="Enter"||A.keyCode===Ke.ENTER)&&j()};u.useEffect(function(){if(!R&&i>0){var A=Date.now()-D,T=setTimeout(function(){j()},i*1e3-D);return function(){c&&clearTimeout(T),F(Date.now()-A)}}},[i,R,y]),u.useEffect(function(){if(!R&&H&&(c||D===0)){var A=performance.now(),T,z=function V(){cancelAnimationFrame(T),T=requestAnimationFrame(function(q){var Z=q+D-A,G=Math.min(Z/(i*1e3),1);I(G*100),G<1&&V()})};return z(),function(){c&&cancelAnimationFrame(T)}}},[i,D,R,H,y]);var W=u.useMemo(function(){return Qe(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),L=rr(W,!0),N=100-(!k||k<0?0:k>100?100:k),P="".concat(n,"-notice");return u.createElement("div",Ae({},m,{ref:t,className:ae(P,o,Y({},"".concat(P,"-closable"),p)),style:r,onMouseEnter:function(A){var T;E(!0),m==null||(T=m.onMouseEnter)===null||T===void 0||T.call(m,A)},onMouseLeave:function(A){var T;E(!1),m==null||(T=m.onMouseLeave)===null||T===void 0||T.call(m,A)},onClick:g}),u.createElement("div",{className:"".concat(P,"-content")},f),p&&u.createElement("a",Ae({tabIndex:0,className:"".concat(P,"-close"),onKeyDown:_,"aria-label":"Close"},L,{onClick:function(A){A.preventDefault(),A.stopPropagation(),j()}}),W.closeIcon),H&&u.createElement("progress",{className:"".concat(P,"-progress"),max:"100",value:N},N+"%"))}),Vg=pe.createContext({}),Hw=function(e){var t=e.children,n=e.classNames;return pe.createElement(Vg.Provider,{value:{classNames:n}},t)},af=8,lf=3,sf=16,zw=function(e){var t={offset:af,threshold:lf,gap:sf};if(e&&Qe(e)==="object"){var n,r,o;t.offset=(n=e.offset)!==null&&n!==void 0?n:af,t.threshold=(r=e.threshold)!==null&&r!==void 0?r:lf,t.gap=(o=e.gap)!==null&&o!==void 0?o:sf}return[!!e,t]},_w=["className","style","classNames","styles"],Lw=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,a=e.style,i=e.motion,l=e.onAllNoticeRemoved,s=e.onNoticeClose,c=e.stack,d=Ut(Vg),f=d.classNames,p=Ye({}),v=Nt(null),h=Q(v,2),m=h[0],g=h[1],b=Nt([]),y=Q(b,2),x=y[0],w=y[1],C=t.map(function(F){return{config:F,key:String(F.key)}}),S=zw(c),E=Q(S,2),$=E[0],O=E[1],k=O.offset,I=O.threshold,M=O.gap,B=$&&(x.length>0||C.length<=I),D=typeof i=="function"?i(n):i;return Mt(function(){$&&x.length>1&&w(function(F){return F.filter(function(R){return C.some(function(H){var j=H.key;return R===j})})})},[x,C,$]),Mt(function(){var F;if($&&p.current[(F=C[C.length-1])===null||F===void 0?void 0:F.key]){var R;g(p.current[(R=C[C.length-1])===null||R===void 0?void 0:R.key])}},[C,$]),pe.createElement(jg,Ae({key:n,className:ae(r,"".concat(r,"-").concat(n),f==null?void 0:f.list,o,Y(Y({},"".concat(r,"-stack"),!!$),"".concat(r,"-stack-expanded"),B)),style:a,keys:C,motionAppear:!0},D,{onAllRemoved:function(){l(n)}}),function(F,R){var H=F.config,j=F.className,_=F.style,W=F.index,L=H,N=L.key,P=L.times,A=String(N),T=H,z=T.className,V=T.style,q=T.classNames,Z=T.styles,G=ft(T,_w),J=C.findIndex(function(le){return le.key===A}),K={};if($){var X=C.length-1-(J>-1?J:W-1),ne=n==="top"||n==="bottom"?"-50%":"0";if(X>0){var te,ee,ie;K.height=B?(te=p.current[A])===null||te===void 0?void 0:te.offsetHeight:m==null?void 0:m.offsetHeight;for(var se=0,fe=0;fe<X;fe++){var ve;se+=((ve=p.current[C[C.length-1-fe].key])===null||ve===void 0?void 0:ve.offsetHeight)+M}var me=(B?se:X*k)*(n.startsWith("top")?1:-1),Ee=!B&&m!==null&&m!==void 0&&m.offsetWidth&&(ee=p.current[A])!==null&&ee!==void 0&&ee.offsetWidth?((m==null?void 0:m.offsetWidth)-k*2*(X<3?X:3))/((ie=p.current[A])===null||ie===void 0?void 0:ie.offsetWidth):1;K.transform="translate3d(".concat(ne,", ").concat(me,"px, 0) scaleX(").concat(Ee,")")}else K.transform="translate3d(".concat(ne,", 0, 0)")}return pe.createElement("div",{ref:R,className:ae("".concat(r,"-notice-wrapper"),j,q==null?void 0:q.wrapper),style:U(U(U({},_),K),Z==null?void 0:Z.wrapper),onMouseEnter:function(){return w(function(le){return le.includes(A)?le:[].concat(Ce(le),[A])})},onMouseLeave:function(){return w(function(le){return le.filter(function(de){return de!==A})})}},pe.createElement(Wg,Ae({},G,{ref:function(le){J>-1?p.current[A]=le:delete p.current[A]},prefixCls:r,classNames:q,styles:Z,className:ae(z,f==null?void 0:f.notice),style:V,times:P,key:N,eventKey:N,onNoticeClose:s,hovering:$&&x.length>0})))})},Ww=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=u.useState([]),v=Q(p,2),h=v[0],m=v[1],g=function($){var O,k=h.find(function(I){return I.key===$});k==null||(O=k.onClose)===null||O===void 0||O.call(k),m(function(I){return I.filter(function(M){return M.key!==$})})};u.useImperativeHandle(t,function(){return{open:function($){m(function(O){var k=Ce(O),I=k.findIndex(function(D){return D.key===$.key}),M=U({},$);if(I>=0){var B;M.times=(((B=O[I])===null||B===void 0?void 0:B.times)||0)+1,k[I]=M}else M.times=0,k.push(M);return i>0&&k.length>i&&(k=k.slice(-i)),k})},close:function($){g($)},destroy:function(){m([])}}});var b=u.useState({}),y=Q(b,2),x=y[0],w=y[1];u.useEffect(function(){var $={};h.forEach(function(O){var k=O.placement,I=k===void 0?"topRight":k;I&&($[I]=$[I]||[],$[I].push(O))}),Object.keys(x).forEach(function(O){$[O]=$[O]||[]}),w($)},[h]);var C=function($){w(function(O){var k=U({},O),I=k[$]||[];return I.length||delete k[$],k})},S=u.useRef(!1);if(u.useEffect(function(){Object.keys(x).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[x]),!o)return null;var E=Object.keys(x);return om(u.createElement(u.Fragment,null,E.map(function($){var O=x[$],k=u.createElement(Lw,{key:$,configList:O,placement:$,prefixCls:r,className:l==null?void 0:l($),style:s==null?void 0:s($),motion:a,onNoticeClose:g,onAllNoticeRemoved:C,stack:d});return f?f(k,{prefixCls:r,key:$}):k})),o)}),Vw=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],qw=function(){return document.body},cf=0;function Yw(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function Xw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?qw:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,d=e.renderNotifications,f=ft(e,Vw),p=u.useState(),v=Q(p,2),h=v[0],m=v[1],g=u.useRef(),b=u.createElement(Ww,{container:h,ref:g,prefixCls:o,motion:r,maxCount:a,className:i,style:l,onAllRemoved:s,stack:c,renderNotifications:d}),y=u.useState([]),x=Q(y,2),w=x[0],C=x[1],S=bt(function($){var O=Yw(f,$);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(cf),cf+=1),C(function(k){return[].concat(Ce(k),[{type:"open",config:O}])})}),E=u.useMemo(function(){return{open:S,close:function($){C(function(O){return[].concat(Ce(O),[{type:"close",key:$}])})},destroy:function(){C(function($){return[].concat(Ce($),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){m(n())}),u.useEffect(function(){if(g.current&&w.length){w.forEach(function(k){switch(k.type){case"open":g.current.open(k.config);break;case"close":g.current.close(k.key);break;case"destroy":g.current.destroy();break}});var $,O;C(function(k){return($!==k||!O)&&($=k,O=k.filter(function(I){return!w.includes(I)})),O})}},[w]),[E,b]}var Uw={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"},Gw=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:Uw}))},Pa=u.forwardRef(Gw);const qg=pe.createContext(void 0),Or=100,Kw=10,Qw=Or*Kw,Yg={Modal:Or,Drawer:Or,Popover:Or,Popconfirm:Or,Tooltip:Or,Tour:Or,FloatButton:Or},Zw={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Jw(e){return e in Yg}const Zi=(e,t)=>{const[,n]=Kn(),r=pe.useContext(qg),o=Jw(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+Yg[e]:i+=Zw[e],a=[r===void 0?t:i,i]}return a},eC=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:v,borderRadiusLG:h,zIndexPopup:m,contentPadding:g,contentBg:b}=e,y=`${t}-notice`,x=new kt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),w=new kt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
|
|
214
|
+
${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},Zt(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
215
|
+
${t}-move-up-appear,
|
|
216
|
+
${t}-move-up-enter
|
|
217
|
+
`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
|
218
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
219
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
220
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},tC=e=>({zIndexPopup:e.zIndexPopupBase+Qw+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Xg=ln("Message",e=>{const t=Rt(e,{height:150});return eC(t)},tC);var nC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rC={info:u.createElement(Nw,null),success:u.createElement(Hg,null),error:u.createElement(Qi,null),warning:u.createElement(zg,null),loading:u.createElement(Pa,null)},Ug=({prefixCls:e,type:t,icon:n,children:r})=>u.createElement("div",{className:ae(`${e}-custom-content`,`${e}-${t}`)},n||rC[t],u.createElement("span",null,r)),oC=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=nC(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=u.useContext(xt),s=t||l("message"),c=Hn(s),[d,f,p]=Xg(s,c);return d(u.createElement(Wg,Object.assign({},i,{prefixCls:s,className:ae(n,f,`${s}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:u.createElement(Ug,{prefixCls:s,type:r,icon:o},a)})))};function aC(e,t){return{motionName:t??`${e}-move-up`}}function cu(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var iC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lC=8,sC=3,cC=({children:e,prefixCls:t})=>{const n=Hn(t),[r,o,a]=Xg(t,n);return r(u.createElement(Hw,{classNames:{list:ae(o,a,n)}},e))},uC=(e,{prefixCls:t,key:n})=>u.createElement(cC,{prefixCls:t,key:n},e),dC=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=sC,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:v}=u.useContext(xt),h=r||d("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??lC}),g=()=>ae({[`${h}-rtl`]:l??v==="rtl"}),b=()=>aC(h,s),y=u.createElement("span",{className:`${h}-close-x`},u.createElement(su,{className:`${h}-close-icon`})),[x,w]=Xw({prefixCls:h,style:m,className:g,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:uC});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),w});let uf=0;function Gg(e){const t=u.useRef(null);return Xi(),[u.useMemo(()=>{const n=a=>{var i;(i=t.current)===null||i===void 0||i.close(a)},r=a=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:i,prefixCls:l,message:s}=t.current,c=`${l}-notice`,{content:d,icon:f,type:p,key:v,className:h,style:m,onClose:g}=a,b=iC(a,["content","icon","type","key","className","style","onClose"]);let y=v;return y==null&&(uf+=1,y=`antd-message-${uf}`),cu(x=>(i(Object.assign(Object.assign({},b),{key:y,content:u.createElement(Ug,{prefixCls:l,type:p,icon:f},d),placement:"top",className:ae(p&&`${c}-${p}`,h,s==null?void 0:s.className),style:Object.assign(Object.assign({},s==null?void 0:s.style),m),onClose:()=>{g==null||g(),x()}})),()=>{n(y)}))},o={open:r,destroy:a=>{var i;a!==void 0?n(a):(i=t.current)===null||i===void 0||i.destroy()}};return["info","success","warning","error","loading"].forEach(a=>{const i=(l,s,c)=>{let d;l&&typeof l=="object"&&"content"in l?d=l:d={content:l};let f,p;typeof s=="function"?p=s:(f=s,p=c);const v=Object.assign(Object.assign({onClose:p,duration:f},d),{type:a});return r(v)};o[a]=i}),o},[]),u.createElement(dC,Object.assign({key:"message-holder"},e,{ref:t}))]}function fC(e){return Gg(e)}function Kg(e,t){this.v=e,this.k=t}function Sn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Sn=function(a,i,l,s){function c(d,f){Sn(a,d,function(p){return this._invoke(d,f,p)})}i?o?o(a,i,{value:l,enumerable:!s,configurable:!s,writable:!s}):a[i]=l:(c("next",0),c("throw",1),c("return",2))},Sn(e,t,n,r)}function uu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,h,m,g){var b=h&&h.prototype instanceof l?h:l,y=Object.create(b.prototype);return Sn(y,"_invoke",(function(x,w,C){var S,E,$,O=0,k=C||[],I=!1,M={p:0,n:0,v:e,a:B,f:B.bind(e,4),d:function(D,F){return S=D,E=0,$=e,M.n=F,i}};function B(D,F){for(E=D,$=F,t=0;!I&&O&&!R&&t<k.length;t++){var R,H=k[t],j=M.p,_=H[2];D>3?(R=_===F)&&($=H[(E=H[4])?5:(E=3,3)],H[4]=H[5]=e):H[0]<=j&&((R=D<2&&j<H[1])?(E=0,M.v=F,M.n=H[1]):j<_&&(R=D<3||H[0]>F||F>_)&&(H[4]=D,H[5]=F,M.n=_,E=0))}if(R||D>1)return i;throw I=!0,F}return function(D,F,R){if(O>1)throw TypeError("Generator is already running");for(I&&F===1&&B(F,R),E=F,$=R;(t=E<2?e:$)||!I;){S||(E?E<3?(E>1&&(M.n=-1),B(E,$)):M.n=$:M.v=$);try{if(O=2,S){if(E||(D="next"),t=S[D]){if(!(t=t.call(S,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,E<2&&(E=0)}else E===1&&(t=S.return)&&t.call(S),E<2&&($=TypeError("The iterator does not provide a '"+D+"' method"),E=1);S=e}else if((t=(I=M.n<0)?$:x.call(w,M))!==i)break}catch(H){S=e,E=1,$=H}finally{O=1}}return{value:t,done:I}}})(v,m,g),!0),y}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Sn(t={},r,function(){return this}),t),f=c.prototype=l.prototype=Object.create(d);function p(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,Sn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return s.prototype=c,Sn(f,"constructor",c),Sn(c,"constructor",s),s.displayName="GeneratorFunction",Sn(c,o,"GeneratorFunction"),Sn(f),Sn(f,o,"Generator"),Sn(f,r,function(){return this}),Sn(f,"toString",function(){return"[object Generator]"}),(uu=function(){return{w:a,m:p}})()}function Mi(e,t){function n(o,a,i,l){try{var s=e[o](a),c=s.value;return c instanceof Kg?t.resolve(c.v).then(function(d){n("next",d,i,l)},function(d){n("throw",d,i,l)}):t.resolve(c).then(function(d){s.value=d,i(s)},function(d){return n("throw",d,i,l)})}catch(d){l(d)}}var r;this.next||(Sn(Mi.prototype),Sn(Mi.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Sn(this,"_invoke",function(o,a,i){function l(){return new t(function(s,c){n(o,i,s,c)})}return r=r?r.then(l,l):l()},!0)}function Qg(e,t,n,r,o){return new Mi(uu().w(e,t,n,r),o||Promise)}function pC(e,t,n,r,o){var a=Qg(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function mC(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function df(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Qe(e)+" is not iterable")}function kn(){var e=uu(),t=e.m(kn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var l=typeof i=="function"&&i.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var l,s;return function(c){l||(l={stop:function(){return s(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return s(c.a,o[d],f)},delegateYield:function(d,f,p){return l.resultName=f,s(c.d,df(d),p)},finish:function(d){return s(c.f,d)}},s=function(d,f,p){c.p=l.prev,c.n=l.next;try{return d(f,p)}finally{l.next=c.n}}),l.resultName&&(l[l.resultName]=c.v,l.resultName=void 0),l.sent=c.v,l.next=c.n;try{return i.call(this,l)}finally{c.p=l.prev,c.n=l.next}}}return(kn=function(){return{wrap:function(i,l,s,c){return e.w(a(i),l,s,c&&c.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(i,l){return new Kg(i,l)},AsyncIterator:Mi,async:function(i,l,s,c,d){return(r(l)?Qg:pC)(a(i),l,s,c,d)},keys:mC,values:df}})()}function ff(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function lo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(s){ff(a,r,o,i,l,"next",s)}function l(s){ff(a,r,o,i,l,"throw",s)}i(void 0)})}}var Ra=U({},B0),gC=Ra.version,Hl=Ra.render,hC=Ra.unmountComponentAtNode,Ji;try{var vC=Number((gC||"").split(".")[0]);vC>=18&&(Ji=Ra.createRoot)}catch{}function pf(e){var t=Ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Qe(t)==="object"&&(t.usingClientEntryPoint=e)}var Ii="__rc_react_root__";function bC(e,t){pf(!0);var n=t[Ii]||Ji(t);pf(!1),n.render(e),t[Ii]=n}function yC(e,t){Hl==null||Hl(e,t)}function xC(e,t){if(Ji){bC(e,t);return}yC(e,t)}function wC(e){return Us.apply(this,arguments)}function Us(){return Us=lo(kn().mark(function e(t){return kn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=t[Ii])===null||r===void 0||r.unmount(),delete t[Ii]}));case 1:case"end":return n.stop()}},e)})),Us.apply(this,arguments)}function CC(e){hC(e)}function SC(e){return Gs.apply(this,arguments)}function Gs(){return Gs=lo(kn().mark(function e(t){return kn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Ji===void 0){n.next=2;break}return n.abrupt("return",wC(t));case 2:CC(t);case 3:case"end":return n.stop()}},e)})),Gs.apply(this,arguments)}const EC=(e,t)=>(xC(e,t),()=>SC(t));let $C=EC;function Zg(e){return $C}const zl=()=>({height:0,opacity:0}),mf=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},kC=e=>({height:e?e.offsetHeight:0}),_l=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",gf=(e=Ca)=>({motionName:`${e}-motion-collapse`,onAppearStart:zl,onEnterStart:zl,onAppearActive:mf,onEnterActive:mf,onLeaveStart:kC,onLeaveActive:zl,onAppearEnd:_l,onEnterEnd:_l,onLeaveEnd:_l,motionDeadline:500}),Jg=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function gr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const el=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),OC=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},MC=Mx("Wave",OC),du=`${Ca}-wave-target`;function IC(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function NC(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(IC))!==null&&t!==void 0?t:null}function Ll(e){return Number.isNaN(e)?0:e}const jC=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=u.useRef(null),i=u.useRef(null);u.useEffect(()=>{i.current=o()},[]);const[l,s]=u.useState(null),[c,d]=u.useState([]),[f,p]=u.useState(0),[v,h]=u.useState(0),[m,g]=u.useState(0),[b,y]=u.useState(0),[x,w]=u.useState(!1),C={left:f,top:v,width:m,height:b,borderRadius:c.map($=>`${$}px`).join(" ")};l&&(C["--wave-color"]=l);function S(){const $=getComputedStyle(n);s(NC(n));const O=$.position==="static",{borderLeftWidth:k,borderTopWidth:I}=$;p(O?n.offsetLeft:Ll(-Number.parseFloat(k))),h(O?n.offsetTop:Ll(-Number.parseFloat(I))),g(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:B,borderBottomLeftRadius:D,borderBottomRightRadius:F}=$;d([M,B,F,D].map(R=>Ll(Number.parseFloat(R))))}if(u.useEffect(()=>{if(n){const $=dt(()=>{S(),w(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(S),O.observe(n)),()=>{dt.cancel($),O==null||O.disconnect()}}},[n]),!x)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(du));return u.createElement(io,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,O)=>{var k,I;if(O.deadline||O.propertyName==="opacity"){const M=(k=a.current)===null||k===void 0?void 0:k.parentElement;(I=i.current)===null||I===void 0||I.call(i).then(()=>{M==null||M.remove()})}return!1}},({className:$},O)=>u.createElement("div",{ref:Gn(a,O),className:ae(t,$,{"wave-quick":E}),style:C}))},PC=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=Zg();let i=null;function l(){return i}i=a(u.createElement(jC,Object.assign({},t,{target:e,registerUnmount:l})),o)},RC=(e,t,n)=>{const{wave:r}=u.useContext(xt),[,o,a]=Kn(),i=bt(s=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const d=c.querySelector(`.${du}`)||c,{showEffect:f}=r||{};(f||PC)(d,{className:t,token:o,component:n,event:s,hashId:a})}),l=u.useRef(null);return s=>{dt.cancel(l.current),l.current=dt(()=>{i(s)})}},tl=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=Ut(xt),a=Ye(null),i=o("wave"),[,l]=MC(i),s=RC(a,ae(i,l),r);if(pe.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=p=>{!el(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||s(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!pe.isValidElement(t))return t??null;const c=Do(t)?Gn(Ia(t),a):a;return Ar(t,{ref:c})},Qn=e=>{const t=pe.useContext(eo);return pe.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},eh=u.createContext(null),_r=(e,t)=>{const n=u.useContext(eh),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return ae(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},AC=e=>{const{children:t}=e;return u.createElement(eh.Provider,{value:null},t)};var FC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const th=u.createContext(void 0),TC=e=>{const{getPrefixCls:t,direction:n}=u.useContext(xt),{prefixCls:r,size:o,className:a}=e,i=FC(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Kn(),c=u.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=ae(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},a,s);return u.createElement(th.Provider,{value:o},u.createElement("div",Object.assign({},i,{className:d})))},hf=/^[\u4E00-\u9FA5]{2}$/,Ks=hf.test.bind(hf);function vf(e){return typeof e=="string"}function Wl(e){return e==="text"||e==="link"}function DC(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&vf(e.type)&&Ks(e.props.children)?Ar(e,{children:e.props.children.split("").join(n)}):vf(e)?Ks(e)?pe.createElement("span",null,e.split("").join(n)):pe.createElement("span",null,e):_g(e)?pe.createElement("span",null,e):e}function BC(e,t){let n=!1;const r=[];return pe.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=i}),pe.Children.map(r,o=>DC(o,t))}["default","primary","danger"].concat(Ce(to));const Qs=or((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=ae(`${a}-icon`,n);return pe.createElement("span",{ref:t,className:i,style:r},o)}),bf=or((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=ae(`${n}-loading-icon`,r);return pe.createElement(Qs,{prefixCls:n,className:i,style:o,ref:t},pe.createElement(Pa,{className:a}))}),Vl=()=>({width:0,opacity:0,transform:"scale(0)"}),ql=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),HC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,l=!!n;return r?pe.createElement(bf,{prefixCls:t,className:o,style:a}):pe.createElement(io,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Vl,onAppearActive:ql,onEnterStart:Vl,onEnterActive:ql,onLeaveStart:ql,onLeaveActive:Vl},({className:s,style:c},d)=>{const f=Object.assign(Object.assign({},a),c);return pe.createElement(bf,{prefixCls:t,className:ae(o,s),style:f,ref:d})})},yf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),zC=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},yf(`${t}-primary`,o),yf(`${t}-danger`,a)]}};var _C=["b"],LC=["v"],Yl=function(e){return Math.round(Number(e||0))},WC=function(e){if(e instanceof $t)return e;if(e&&Qe(e)==="object"&&"h"in e&&"b"in e){var t=e,n=t.b,r=ft(t,_C);return U(U({},r),{},{v:n})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},Zs=(function(e){Br(n,e);var t=Hr(n);function n(r){return Jt(this,n),t.call(this,WC(r))}return en(n,[{key:"toHsbString",value:function(){var r=this.toHsb(),o=Yl(r.s*100),a=Yl(r.b*100),i=Yl(r.h),l=r.a,s="hsb(".concat(i,", ").concat(o,"%, ").concat(a,"%)"),c="hsba(".concat(i,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?s:c}},{key:"toHsb",value:function(){var r=this.toHsv(),o=r.v,a=ft(r,LC);return U(U({},a),{},{b:o,a:this.a})}}]),n})($t);const VC=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",qC=(e,t)=>e?VC(e,t):"";let Js=(function(){function e(t){Jt(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new Zs(this.colors[0].color.metaColor)):this.metaColor=new Zs(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return en(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return qC(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((n,r)=>{const o=t.colors[r];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const YC=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
221
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
222
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),XC=e=>({animationDuration:e,animationFillMode:"both"}),UC=e=>({animationDuration:e,animationFillMode:"both"}),fu=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
|
|
223
|
+
${a}${e}-enter,
|
|
224
|
+
${a}${e}-appear
|
|
225
|
+
`]:Object.assign(Object.assign({},XC(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},UC(r)),{animationPlayState:"paused"}),[`
|
|
226
|
+
${a}${e}-enter${e}-enter-active,
|
|
227
|
+
${a}${e}-appear${e}-appear-active
|
|
228
|
+
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},GC=new kt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),KC=new kt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),QC=new kt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ZC=new kt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),JC=new kt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eS=new kt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tS=new kt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nS=new kt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),rS={"move-up":{inKeyframes:tS,outKeyframes:nS},"move-down":{inKeyframes:GC,outKeyframes:KC},"move-left":{inKeyframes:QC,outKeyframes:ZC},"move-right":{inKeyframes:JC,outKeyframes:eS}},Ni=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=rS[t];return[fu(r,o,a,e.motionDurationMid),{[`
|
|
229
|
+
${r}-enter,
|
|
230
|
+
${r}-appear
|
|
231
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},pu=new kt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),mu=new kt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),gu=new kt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),hu=new kt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),oS=new kt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),aS=new kt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),iS=new kt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),lS=new kt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),sS={"slide-up":{inKeyframes:pu,outKeyframes:mu},"slide-down":{inKeyframes:gu,outKeyframes:hu},"slide-left":{inKeyframes:oS,outKeyframes:aS},"slide-right":{inKeyframes:iS,outKeyframes:lS}},ji=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=sS[t];return[fu(r,o,a,e.motionDurationMid),{[`
|
|
232
|
+
${r}-enter,
|
|
233
|
+
${r}-appear
|
|
234
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},vu=new kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),cS=new kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),xf=new kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wf=new kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),uS=new kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),dS=new kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),fS=new kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),pS=new kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),mS=new kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),gS=new kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),hS=new kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),vS=new kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),bS={zoom:{inKeyframes:vu,outKeyframes:cS},"zoom-big":{inKeyframes:xf,outKeyframes:wf},"zoom-big-fast":{inKeyframes:xf,outKeyframes:wf},"zoom-left":{inKeyframes:fS,outKeyframes:pS},"zoom-right":{inKeyframes:mS,outKeyframes:gS},"zoom-up":{inKeyframes:uS,outKeyframes:dS},"zoom-down":{inKeyframes:hS,outKeyframes:vS}},yS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=bS[t];return[fu(r,o,a,e.motionDurationFast),{[`
|
|
235
|
+
${r}-enter,
|
|
236
|
+
${r}-appear
|
|
237
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xS=e=>e instanceof Js?e:new Js(e),wS=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new Zs(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},nh=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Rt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},rh=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:pi(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:pi(s),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:pi(c),v=wS(new Js(e.colorBgSolid),"#fff")?"#000":"#fff",h=to.reduce((m,g)=>Object.assign(Object.assign({},m),{[`${g}ShadowColor`]:`0 ${ue(e.controlOutlineWidth)} 0 ${ra(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:v,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})},CS=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ue(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ja(),"> a":{color:"currentColor"},"&:not(:disabled)":yg(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},oh=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),SS=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),ES=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),nl=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},oh(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),$S=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ES(e))}),kS=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),rl=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?kS:$S;return Object.assign(Object.assign({},o(e)),oh(e.componentCls,t,n))},ol=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},rl(e,r,o))}),al=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},rl(e,r,o))}),il=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ll=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},rl(e,n,r))}),pr=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},rl(e,r,o,n))}),OS=e=>{const{componentCls:t}=e;return to.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},ol(e,e.colorTextLightSolid,o,{background:i},{background:c})),al(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),il(e)),ll(e,a,{color:o,background:l},{color:o,background:s})),pr(e,o,"link",{color:i},{color:c})),pr(e,o,"text",{color:i,background:a},{color:c,background:s}))})},{})},MS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ol(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),il(e)),ll(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),nl(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),pr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),IS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},al(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),il(e)),ll(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),pr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),pr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),nl(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),NS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ol(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),al(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),il(e)),ll(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),pr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),pr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),nl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),jS=e=>Object.assign(Object.assign({},pr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),nl(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),PS=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:MS(e),[`${t}-color-primary`]:IS(e),[`${t}-color-dangerous`]:NS(e),[`${t}-color-link`]:jS(e)},OS(e))},RS=e=>Object.assign(Object.assign(Object.assign(Object.assign({},al(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),pr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ol(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),pr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bu=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${ue(s)} ${ue(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:SS(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},AS=e=>{const t=Rt(e,{fontSize:e.contentFontSize});return bu(t,e.componentCls)},FS=e=>{const t=Rt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return bu(t,`${e.componentCls}-sm`)},TS=e=>{const t=Rt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return bu(t,`${e.componentCls}-lg`)},DS=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},BS=ln("Button",e=>{const t=nh(e);return[CS(t),AS(t),FS(t),TS(t),DS(t),PS(t),RS(t),zC(t)]},rh,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function HS(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:i}=n,l=i?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[s]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function zS(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Aa(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},HS(e,r,t,n)),zS(n,r,t))}}function _S(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function LS(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 WS(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_S(e,t,e.componentCls)),LS(e.componentCls,t))}}const VS=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=l=>{const s=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${s} + ${s}::before`]:{position:"absolute",top:l?a:0,insetInlineStart:l?0:a,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},qS=Gi(["Button","compact"],e=>{const t=nh(e);return[Aa(t),WS(t),VS(t)]},rh);var YS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function XS(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 US={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},GS=pe.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:l,type:s,danger:c=!1,shape:d,size:f,styles:p,disabled:v,className:h,rootClassName:m,children:g,icon:b,iconPosition:y="start",ghost:x=!1,block:w=!1,htmlType:C="button",classNames:S,style:E={},autoInsertSpace:$,autoFocus:O}=e,k=YS(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=s||"default",{button:M}=pe.useContext(xt),B=d||(M==null?void 0:M.shape)||"default",[D,F]=xn(()=>{if(i&&l)return[i,l];if(s||c){const Te=US[I]||[];return c?["danger",Te[1]]:Te}return M!=null&&M.color&&(M!=null&&M.variant)?[M.color,M.variant]:["default","outlined"]},[s,i,l,c,M==null?void 0:M.variant,M==null?void 0:M.color]),R=D==="danger"?"dangerous":D,{getPrefixCls:H,direction:j,autoInsertSpace:_,className:W,style:L,classNames:N,styles:P}=xr("button"),A=(n=$??_)!==null&&n!==void 0?n:!0,T=H("btn",a),[z,V,q]=BS(T),Z=Ut(On),G=v??Z,J=Ut(th),K=xn(()=>XS(o),[o]),[X,ne]=Nt(K.loading),[te,ee]=Nt(!1),ie=Ye(null),se=Ma(t,ie),fe=tm.count(g)===1&&!b&&!Wl(F),ve=Ye(!0);pe.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),wt(()=>{let Te=null;K.delay>0?Te=setTimeout(()=>{Te=null,ne(!0)},K.delay):ne(K.loading);function ce(){Te&&(clearTimeout(Te),Te=null)}return ce},[K.delay,K.loading]),Mt(()=>{if(!ie.current||!A)return;const Te=ie.current.textContent||"";fe&&Ks(Te)?te||ee(!0):te&&ee(!1)}),Mt(()=>{O&&ie.current&&ie.current.focus()},[]);const me=pe.useCallback(Te=>{var ce;if(X||G){Te.preventDefault();return}(ce=e.onClick)===null||ce===void 0||ce.call(e,Te)},[e.onClick,X,G]),{compactSize:Ee,compactItemClassnames:le}=_r(T,j),de={large:"lg",small:"sm",middle:void 0},je=Qn(Te=>{var ce,Ge;return(Ge=(ce=f??Ee)!==null&&ce!==void 0?ce:J)!==null&&Ge!==void 0?Ge:Te}),oe=je&&(r=de[je])!==null&&r!==void 0?r:"",Me=X?"loading":b,ke=gr(k,["navigate"]),Fe=ae(T,V,q,{[`${T}-${B}`]:B!=="default"&&B,[`${T}-${I}`]:I,[`${T}-dangerous`]:c,[`${T}-color-${R}`]:R,[`${T}-variant-${F}`]:F,[`${T}-${oe}`]:oe,[`${T}-icon-only`]:!g&&g!==0&&!!Me,[`${T}-background-ghost`]:x&&!Wl(F),[`${T}-loading`]:X,[`${T}-two-chinese-chars`]:te&&A&&!X,[`${T}-block`]:w,[`${T}-rtl`]:j==="rtl",[`${T}-icon-end`]:y==="end"},le,h,m,W),Pe=Object.assign(Object.assign({},L),E),Ie=ae(S==null?void 0:S.icon,N.icon),ye=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),P.icon||{}),be=b&&!X?pe.createElement(Qs,{prefixCls:T,className:Ie,style:ye},b):o&&typeof o=="object"&&o.icon?pe.createElement(Qs,{prefixCls:T,className:Ie,style:ye},o.icon):pe.createElement(HC,{existIcon:!!b,prefixCls:T,loading:X,mount:ve.current}),he=g||g===0?BC(g,fe&&A):null;if(ke.href!==void 0)return z(pe.createElement("a",Object.assign({},ke,{className:ae(Fe,{[`${T}-disabled`]:G}),href:G?void 0:ke.href,style:Pe,onClick:me,ref:se,tabIndex:G?-1:0,"aria-disabled":G}),be,he));let we=pe.createElement("button",Object.assign({},k,{type:C,className:Fe,style:Pe,onClick:me,disabled:G,ref:se}),be,he,le&&pe.createElement(qS,{prefixCls:T}));return Wl(F)||(we=pe.createElement(tl,{component:"Button",disabled:X},we)),z(we)}),sl=GS;sl.Group=TC;sl.__ANT_BUTTON=!0;var ah=u.createContext(null),Cf=[];function KS(e,t){var n=u.useState(function(){if(!jn())return null;var h=document.createElement("div");return h}),r=Q(n,1),o=r[0],a=u.useRef(!1),i=u.useContext(ah),l=u.useState(Cf),s=Q(l,2),c=s[0],d=s[1],f=i||(a.current?void 0:function(h){d(function(m){var g=[h].concat(Ce(m));return g})});function p(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return wt(function(){return e?i?i(p):p():v(),v},[e]),wt(function(){c.length&&(c.forEach(function(h){return h()}),d(Cf))},[c]),[o,f]}function QS(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";vr(`
|
|
238
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
239
|
+
`).concat(d,`
|
|
240
|
+
`).concat(f,`
|
|
241
|
+
}`),t)}catch(h){console.error(h),o=s,a=c}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),va(t),{width:p,height:v}}function ZS(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:QS(e)}function JS(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var eE="rc-util-locker-".concat(Date.now()),Sf=0;function tE(e){var t=!!e,n=u.useState(function(){return Sf+=1,"".concat(eE,"_").concat(Sf)}),r=Q(n,1),o=r[0];wt(function(){if(t){var a=ZS(document.body).width,i=JS();vr(`
|
|
242
|
+
html body {
|
|
243
|
+
overflow-y: hidden;
|
|
244
|
+
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
245
|
+
}`),o)}else va(o);return function(){va(o)}},[t,o])}var nE=!1;function rE(e){return nE}var Ef=function(e){return e===!1?!1:!jn()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},ih=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,l=e.children,s=u.useState(n),c=Q(s,2),d=c[0],f=c[1],p=d||n;u.useEffect(function(){(i||n)&&f(n)},[n,i]);var v=u.useState(function(){return Ef(o)}),h=Q(v,2),m=h[0],g=h[1];u.useEffect(function(){var I=Ef(o);g(I??null)});var b=KS(p&&!m),y=Q(b,2),x=y[0],w=y[1],C=m??x;tE(r&&n&&jn()&&(C===x||C===document.body));var S=null;if(l&&Do(l)&&t){var E=l;S=E.ref}var $=Ma(S,t);if(!p||!jn()||m===void 0)return null;var O=C===!1||rE(),k=l;return t&&(k=u.cloneElement(l,{ref:$})),u.createElement(ah.Provider,{value:w},O?k:om(k,C))});function oE(){var e=U({},u);return e.useId}var $f=0,kf=oE();const yu=kf?(function(e){var t=kf();return e||t}):(function(e){var t=u.useState("ssr-id"),n=Q(t,2),r=n[0],o=n[1];return u.useEffect(function(){var a=$f;$f+=1,o("rc_unique_".concat(a))},[]),e||r});var Ur="RC_FORM_INTERNAL_HOOKS",zt=function(){vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},no=u.createContext({getFieldValue:zt,getFieldsValue:zt,getFieldError:zt,getFieldWarning:zt,getFieldsError:zt,isFieldsTouched:zt,isFieldTouched:zt,isFieldValidating:zt,isFieldsValidating:zt,resetFields:zt,setFields:zt,setFieldValue:zt,setFieldsValue:zt,validateFields:zt,submit:zt,getInternalHooks:function(){return zt(),{dispatch:zt,initEntityValue:zt,registerField:zt,useSubscribe:zt,setInitialValues:zt,destroyForm:zt,setCallbacks:zt,registerWatch:zt,getFields:zt,setValidateMessages:zt,setPreserve:zt,getInitialValue:zt}}}),Sa=u.createContext(null);function ec(e){return e==null?[]:Array.isArray(e)?e:[e]}function aE(e){return e&&!!e._init}function tc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var nc=tc();function iE(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function lE(e,t,n){if(Gc())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ma(o,n.prototype),o}function rc(e){var t=typeof Map=="function"?new Map:void 0;return rc=function(n){if(n===null||!iE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return lE(n,arguments,ga(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ma(r,n)},rc(e)}var sE=/%[sdj%]/g,cE=function(){};function oc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Bn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(sE,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function uE(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function pn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||uE(t)&&typeof e=="string"&&!e)}function dE(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,Ce(l||[])),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function Of(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<o?t(e[l],a):n([])}a([])}function fE(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ce(e[n]||[]))}),t}var Mf=(function(e){Br(n,e);var t=Hr(n);function n(r,o){var a;return Jt(this,n),a=t.call(this,"Async Validation Error"),Y(yt(a),"errors",void 0),Y(yt(a),"fields",void 0),a.errors=r,a.fields=o,a}return en(n)})(rc(Error));function pE(e,t,n,r,o){if(t.first){var a=new Promise(function(p,v){var h=function(g){return r(g),g.length?v(new Mf(g,oc(g))):p(o)},m=fE(e);Of(m,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,d=[],f=new Promise(function(p,v){var h=function(m){if(d.push.apply(d,m),c++,c===s)return r(d),d.length?v(new Mf(d,oc(d))):p(o)};l.length||(r(d),p(o)),l.forEach(function(m){var g=e[m];i.indexOf(m)!==-1?Of(g,n,h):dE(g,n,h)})});return f.catch(function(p){return p}),f}function mE(e){return!!(e&&e.message!==void 0)}function gE(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function If(e,t){return function(n){var r;return e.fullFields?r=gE(t,e.fullFields):r=t[n.field||e.fullField],mE(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Nf(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Qe(r)==="object"&&Qe(e[n])==="object"?e[n]=U(U({},e[n]),r):e[n]=r}}return e}var go="enum",hE=function(e,t,n,r,o){e[go]=Array.isArray(e[go])?e[go]:[],e[go].indexOf(t)===-1&&r.push(Bn(o.messages[go],e.fullField,e[go].join(", ")))},vE=function(e,t,n,r,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Bn(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||r.push(Bn(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},bE=function(e,t,n,r,o){var a=typeof e.len=="number",i=typeof e.min=="number",l=typeof e.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,f=typeof t=="number",p=typeof t=="string",v=Array.isArray(t);if(f?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(c=t.length),p&&(c=t.replace(s,"_").length),a?c!==e.len&&r.push(Bn(o.messages[d].len,e.fullField,e.len)):i&&!l&&c<e.min?r.push(Bn(o.messages[d].min,e.fullField,e.min)):l&&!i&&c>e.max?r.push(Bn(o.messages[d].max,e.fullField,e.max)):i&&l&&(c<e.min||c>e.max)&&r.push(Bn(o.messages[d].range,e.fullField,e.min,e.max))},lh=function(e,t,n,r,o,a){e.required&&(!n.hasOwnProperty(e.field)||pn(t,a||e.type))&&r.push(Bn(o.messages.required,e.fullField))},Ga;const yE=(function(){if(Ga)return Ga;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),d=function(C){return C&&C.exact?l:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(i).concat(t(C),")"),"g")};d.v4=function(C){return C&&C.exact?s:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,h=d.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(h,"|").concat(m).concat(g).concat(b,")").concat(y).concat(x);return Ga=new RegExp("(?:^".concat(w,"$)"),"i"),Ga});var jf={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oa={integer:function(e){return oa.number(e)&&parseInt(e,10)===e},float:function(e){return oa.number(e)&&!oa.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return Qe(e)==="object"&&!oa.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(jf.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(yE())},hex:function(e){return typeof e=="string"&&!!e.match(jf.hex)}},xE=function(e,t,n,r,o){if(e.required&&t===void 0){lh(e,t,n,r,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;a.indexOf(i)>-1?oa[i](t)||r.push(Bn(o.messages.types[i],e.fullField,e.type)):i&&Qe(t)!==e.type&&r.push(Bn(o.messages.types[i],e.fullField,e.type))},wE=function(e,t,n,r,o){(/^\s+$/.test(t)||t==="")&&r.push(Bn(o.messages.whitespace,e.fullField))};const Et={required:lh,whitespace:wE,type:xE,range:bE,enum:hE,pattern:vE};var CE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t)&&!e.required)return n();Et.required(e,t,r,a,o)}n(a)},SE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();Et.required(e,t,r,a,o,"array"),t!=null&&(Et.type(e,t,r,a,o),Et.range(e,t,r,a,o))}n(a)},EE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t)&&!e.required)return n();Et.required(e,t,r,a,o),t!==void 0&&Et.type(e,t,r,a,o)}n(a)},$E=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t,"date")&&!e.required)return n();if(Et.required(e,t,r,a,o),!pn(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),Et.type(e,l,r,a,o),l&&Et.range(e,l.getTime(),r,a,o)}}n(a)},kE="enum",OE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t)&&!e.required)return n();Et.required(e,t,r,a,o),t!==void 0&&Et[kE](e,t,r,a,o)}n(a)},ME=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t)&&!e.required)return n();Et.required(e,t,r,a,o),t!==void 0&&(Et.type(e,t,r,a,o),Et.range(e,t,r,a,o))}n(a)},IE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t)&&!e.required)return n();Et.required(e,t,r,a,o),t!==void 0&&(Et.type(e,t,r,a,o),Et.range(e,t,r,a,o))}n(a)},NE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t)&&!e.required)return n();Et.required(e,t,r,a,o),t!==void 0&&Et.type(e,t,r,a,o)}n(a)},jE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),pn(t)&&!e.required)return n();Et.required(e,t,r,a,o),t!==void 0&&(Et.type(e,t,r,a,o),Et.range(e,t,r,a,o))}n(a)},PE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t)&&!e.required)return n();Et.required(e,t,r,a,o),t!==void 0&&Et.type(e,t,r,a,o)}n(a)},RE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t,"string")&&!e.required)return n();Et.required(e,t,r,a,o),pn(t,"string")||Et.pattern(e,t,r,a,o)}n(a)},AE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t)&&!e.required)return n();Et.required(e,t,r,a,o),pn(t)||Et.type(e,t,r,a,o)}n(a)},FE=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":Qe(t);Et.required(e,t,r,a,o,i),n(a)},TE=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pn(t,"string")&&!e.required)return n();Et.required(e,t,r,a,o,"string"),pn(t,"string")||(Et.type(e,t,r,a,o),Et.range(e,t,r,a,o),Et.pattern(e,t,r,a,o),e.whitespace===!0&&Et.whitespace(e,t,r,a,o))}n(a)},Xl=function(e,t,n,r,o){var a=e.type,i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(pn(t,a)&&!e.required)return n();Et.required(e,t,r,i,o,a),pn(t,a)||Et.type(e,t,r,i,o)}n(i)};const ua={string:TE,method:NE,number:jE,boolean:EE,regexp:AE,integer:IE,float:ME,array:SE,object:PE,enum:OE,pattern:RE,date:$E,url:Xl,hex:Xl,email:Xl,required:FE,any:CE};var Fa=(function(){function e(t){Jt(this,e),Y(this,"rules",null),Y(this,"_messages",nc),this.define(t)}return en(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(Qe(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(r){var o=t[r];n.rules[r]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=Nf(tc(),t)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,i=r,l=o;if(typeof i=="function"&&(l=i,i={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function s(p){var v=[],h={};function m(b){if(Array.isArray(b)){var y;v=(y=v).concat.apply(y,Ce(b))}else v.push(b)}for(var g=0;g<p.length;g++)m(p[g]);v.length?(h=oc(v),l(v,h)):l(null,a)}if(i.messages){var c=this.messages();c===nc&&(c=tc()),Nf(c,i.messages),i.messages=c}else i.messages=this.messages();var d={},f=i.keys||Object.keys(this.rules);return f.forEach(function(p){var v=n.rules[p],h=a[p];v.forEach(function(m){var g=m;typeof g.transform=="function"&&(a===t&&(a=U({},a)),h=a[p]=g.transform(h),h!=null&&(g.type=g.type||(Array.isArray(h)?"array":Qe(h)))),typeof g=="function"?g={validator:g}:g=U({},g),g.validator=n.getValidationMethod(g),g.validator&&(g.field=p,g.fullField=g.fullField||p,g.type=n.getType(g),d[p]=d[p]||[],d[p].push({rule:g,value:h,source:a,field:p}))})}),pE(d,i,function(p,v){var h=p.rule,m=(h.type==="object"||h.type==="array")&&(Qe(h.fields)==="object"||Qe(h.defaultField)==="object");m=m&&(h.required||!h.required&&p.value),h.field=p.field;function g(C,S){return U(U({},S),{},{fullField:"".concat(h.fullField,".").concat(C),fullFields:h.fullFields?[].concat(Ce(h.fullFields),[C]):[C]})}function b(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=Array.isArray(C)?C:[C];!i.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&h.message!==void 0&&(S=[].concat(h.message));var E=S.map(If(h,a));if(i.first&&E.length)return v(E);if(!m)v(E);else{if(h.required&&!p.value)return h.message!==void 0?E=[].concat(h.message).map(If(h,a)):i.error&&(E=[i.error(h,Bn(i.messages.required,h.field))]),v(E);var $={};h.defaultField&&Object.keys(p.value).map(function(I){$[I]=h.defaultField}),$=U(U({},$),p.rule.fields);var O={};Object.keys($).forEach(function(I){var M=$[I],B=Array.isArray(M)?M:[M];O[I]=B.map(g.bind(null,I))});var k=new e(O);k.messages(i.messages),p.rule.options&&(p.rule.options.messages=i.messages,p.rule.options.error=i.error),k.validate(p.value,p.rule.options||i,function(I){var M=[];E&&E.length&&M.push.apply(M,Ce(E)),I&&I.length&&M.push.apply(M,Ce(I)),v(M.length?M:null)})}}var y;if(h.asyncValidator)y=h.asyncValidator(h,p.value,b,p.source,i);else if(h.validator){try{y=h.validator(h,p.value,b,p.source,i)}catch(C){var x,w;(x=(w=console).error)===null||x===void 0||x.call(w,C),i.suppressValidatorError||setTimeout(function(){throw C},0),b(C.message)}y===!0?b():y===!1?b(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):y instanceof Array?b(y):y instanceof Error&&b(y.message)}y&&y.then&&y.then(function(){return b()},function(C){return b(C)})},function(p){s(p)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!ua.hasOwnProperty(t.type))throw new Error(Bn("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?ua.required:ua[this.getType(t)]||void 0}}]),e})();Y(Fa,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");ua[e]=t});Y(Fa,"warning",cE);Y(Fa,"messages",nc);Y(Fa,"validators",ua);var Tn="'${name}' is not a valid ${type}",sh={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Tn,method:Tn,array:Tn,object:Tn,number:Tn,date:Tn,boolean:Tn,integer:Tn,float:Tn,regexp:Tn,email:Tn,url:Tn,hex:Tn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Pf=Fa;function DE(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Rf="CODE_LOGIC_ERROR";function ac(e,t,n,r,o){return ic.apply(this,arguments)}function ic(){return ic=lo(kn().mark(function e(t,n,r,o,a){var i,l,s,c,d,f,p,v,h;return kn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=U({},r),delete i.ruleIndex,Pf.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(Rf)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),c=new Pf(Y({},t,[i])),d=So(sh,o.validateMessages),c.messages(d),f=[],m.prev=10,m.next=13,Promise.resolve(c.validate(Y({},t,n),U({},o)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(g,b){var y=g.message,x=y===Rf?d.default:y;return u.isValidElement(x)?u.cloneElement(x,{key:"error_".concat(b)}):x}));case 18:if(!(!f.length&&s)){m.next=23;break}return m.next=21,Promise.all(n.map(function(g,b){return ac("".concat(t,".").concat(b),g,s,o,a)}));case 21:return p=m.sent,m.abrupt("return",p.reduce(function(g,b){return[].concat(Ce(g),Ce(b))},[]));case 23:return v=U(U({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(g){return typeof g=="string"?DE(g,v):g}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),ic.apply(this,arguments)}function BE(e,t,n,r,o,a){var i=e.join("."),l=n.map(function(d,f){var p=d.validator,v=U(U({},d),{},{ruleIndex:f});return p&&(v.validator=function(h,m,g){var b=!1,y=function(){for(var w=arguments.length,C=new Array(w),S=0;S<w;S++)C[S]=arguments[S];Promise.resolve().then(function(){vn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,C)})},x=p(h,m,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",vn(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){g()}).catch(function(w){g(w||" ")})}),v}).sort(function(d,f){var p=d.warningOnly,v=d.ruleIndex,h=f.warningOnly,m=f.ruleIndex;return!!p==!!h?v-m:p?1:-1}),s;if(o===!0)s=new Promise((function(){var d=lo(kn().mark(function f(p,v){var h,m,g;return kn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:h=0;case 1:if(!(h<l.length)){b.next=12;break}return m=l[h],b.next=5,ac(i,t,m,r,a);case 5:if(g=b.sent,!g.length){b.next=9;break}return v([{errors:g,rule:m}]),b.abrupt("return");case 9:h+=1,b.next=1;break;case 12:p([]);case 13:case"end":return b.stop()}},f)}));return function(f,p){return d.apply(this,arguments)}})());else{var c=l.map(function(d){return ac(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});s=(o?zE(c):HE(c)).then(function(d){return Promise.reject(d)})}return s.catch(function(d){return d}),s}function HE(e){return lc.apply(this,arguments)}function lc(){return lc=lo(kn().mark(function e(t){return kn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(r){var o,a=(o=[]).concat.apply(o,Ce(r));return a}));case 1:case"end":return n.stop()}},e)})),lc.apply(this,arguments)}function zE(e){return sc.apply(this,arguments)}function sc(){return sc=lo(kn().mark(function e(t){var n;return kn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=0,r.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(i){i.errors.length&&o([i]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return r.stop()}},e)})),sc.apply(this,arguments)}function rn(e){return ec(e)}function Af(e,t){var n={};return t.forEach(function(r){var o=Xn(e,r);n=Yn(n,r,o)}),n}function Io(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return ch(t,r,n)})}function ch(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function _E(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Qe(e)!=="object"||Qe(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ce(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function LE(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Qe(t.target)==="object"&&e in t.target?t.target[e]:t}function Ff(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Ce(e.slice(0,n)),[o],Ce(e.slice(n,t)),Ce(e.slice(t+1,r))):a<0?[].concat(Ce(e.slice(0,t)),Ce(e.slice(t+1,n+1)),[o],Ce(e.slice(n+1,r))):e}var WE=["name"],Ln=[];function Ul(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var xu=(function(e){Br(n,e);var t=Hr(n);function n(r){var o;if(Jt(this,n),o=t.call(this,r),Y(yt(o),"state",{resetCount:0}),Y(yt(o),"cancelRegisterFunc",null),Y(yt(o),"mounted",!1),Y(yt(o),"touched",!1),Y(yt(o),"dirty",!1),Y(yt(o),"validatePromise",void 0),Y(yt(o),"prevValidating",void 0),Y(yt(o),"errors",Ln),Y(yt(o),"warnings",Ln),Y(yt(o),"cancelRegister",function(){var s=o.props,c=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,rn(f)),o.cancelRegisterFunc=null}),Y(yt(o),"getNamePath",function(){var s=o.props,c=s.name,d=s.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(Ce(p),Ce(c)):[]}),Y(yt(o),"getRules",function(){var s=o.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),Y(yt(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),Y(yt(o),"metaCache",null),Y(yt(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var d=U(U({},o.getMeta()),{},{destroy:s});Si(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),Y(yt(o),"onStoreChange",function(s,c,d){var f=o.props,p=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,m=f.onReset,g=d.store,b=o.getNamePath(),y=o.getValue(s),x=o.getValue(g),w=c&&Io(c,b);switch(d.type==="valueUpdate"&&d.source==="external"&&!Si(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Ln,o.warnings=Ln,o.triggerMetaEvent()),d.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Ln,o.warnings=Ln,o.triggerMetaEvent(),m==null||m(),o.refresh();return}break;case"remove":{if(p&&Ul(p,s,g,y,x,d)){o.reRender();return}break}case"setField":{var C=d.data;if(w){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||Ln),"warnings"in C&&(o.warnings=C.warnings||Ln),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&Io(c,b,!0)){o.reRender();return}if(p&&!b.length&&Ul(p,s,g,y,x,d)){o.reRender();return}break}case"dependenciesUpdate":{var S=h.map(rn);if(S.some(function(E){return Io(d.relatedFields,E)})){o.reRender();return}break}default:if(w||(!h.length||b.length||p)&&Ul(p,s,g,y,x,d)){o.reRender();return}break}p===!0&&o.reRender()}),Y(yt(o),"validateRules",function(s){var c=o.getNamePath(),d=o.getValue(),f=s||{},p=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,m=Promise.resolve().then(lo(kn().mark(function g(){var b,y,x,w,C,S,E;return kn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(o.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,x=y===void 0?!1:y,w=b.messageVariables,C=b.validateDebounce,S=o.getRules(),p&&(S=S.filter(function(O){return O}).filter(function(O){var k=O.validateTrigger;if(!k)return!0;var I=ec(k);return I.includes(p)})),!(C&&p)){$.next=10;break}return $.next=8,new Promise(function(O){setTimeout(O,C)});case 8:if(o.validatePromise===m){$.next=10;break}return $.abrupt("return",[]);case 10:return E=BE(c,d,S,s,x,w),E.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ln;if(o.validatePromise===m){var k;o.validatePromise=null;var I=[],M=[];(k=O.forEach)===null||k===void 0||k.call(O,function(B){var D=B.rule.warningOnly,F=B.errors,R=F===void 0?Ln:F;D?M.push.apply(M,Ce(R)):I.push.apply(I,Ce(R))}),o.errors=I,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),$.abrupt("return",E);case 13:case"end":return $.stop()}},g)})));return h||(o.validatePromise=m,o.dirty=!0,o.errors=Ln,o.warnings=Ln,o.triggerMetaEvent(),o.reRender()),m}),Y(yt(o),"isFieldValidating",function(){return!!o.validatePromise}),Y(yt(o),"isFieldTouched",function(){return o.touched}),Y(yt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(Ur),d=c.getInitialValue;return d(o.getNamePath())!==void 0}),Y(yt(o),"getErrors",function(){return o.errors}),Y(yt(o),"getWarnings",function(){return o.warnings}),Y(yt(o),"isListField",function(){return o.props.isListField}),Y(yt(o),"isList",function(){return o.props.isList}),Y(yt(o),"isPreserve",function(){return o.props.preserve}),Y(yt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),Y(yt(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return U(U({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=jo(s);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),Y(yt(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Xn(s||c(!0),d)}),Y(yt(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,p=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,m=c.valuePropName,g=c.getValueProps,b=c.fieldContext,y=p!==void 0?p:b.validateTrigger,x=o.getNamePath(),w=b.getInternalHooks,C=b.getFieldsValue,S=w(Ur),E=S.dispatch,$=o.getValue(),O=g||function(D){return Y({},m,D)},k=s[f],I=d!==void 0?O($):{},M=U(U({},s),I);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,F=arguments.length,R=new Array(F),H=0;H<F;H++)R[H]=arguments[H];v?D=v.apply(void 0,R):D=LE.apply(void 0,[m].concat(R)),h&&(D=h(D,$,C(!0))),D!==$&&E({type:"updateValue",namePath:x,value:D}),k&&k.apply(void 0,R)};var B=ec(y||[]);return B.forEach(function(D){var F=M[D];M[D]=function(){F&&F.apply(void 0,arguments);var R=o.props.rules;R&&R.length&&E({type:"validateField",namePath:x,triggerName:D})}}),M}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Ur),l=i.initEntityValue;l(yt(o))}return o}return en(n,[{key:"componentDidMount",value:function(){var r=this.props,o=r.shouldUpdate,a=r.fieldContext;if(this.mounted=!0,a){var i=a.getInternalHooks,l=i(Ur),s=l.registerField;this.cancelRegisterFunc=s(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var r=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),i=a.child,l=a.isFunction,s;return l?s=i:u.isValidElement(i)?s=u.cloneElement(i,this.getControlled(i.props)):(vn(!i,"`children` of Field is not validate ReactElement."),s=i),u.createElement(u.Fragment,{key:r},s)}}]),n})(u.Component);Y(xu,"contextType",no);Y(xu,"defaultProps",{trigger:"onChange",valuePropName:"value"});function wu(e){var t,n=e.name,r=ft(e,WE),o=u.useContext(no),a=u.useContext(Sa),i=n!==void 0?rn(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!a,s="keep";return l||(s="_".concat((i||[]).join("_"))),u.createElement(xu,Ae({key:s,name:i,isListField:l},r,{fieldContext:o}))}function uh(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=u.useContext(no),s=u.useContext(Sa),c=u.useRef({keys:[],id:0}),d=c.current,f=u.useMemo(function(){var m=rn(l.prefixName)||[];return[].concat(Ce(m),Ce(rn(t)))},[l.prefixName,t]),p=u.useMemo(function(){return U(U({},l),{},{prefixName:f})},[l,f]),v=u.useMemo(function(){return{getKey:function(m){var g=f.length,b=m[g];return[d.keys[b],m.slice(g+1)]}}},[f]);if(typeof r!="function")return vn(!1,"Form.List only accepts function as children."),null;var h=function(m,g,b){var y=b.source;return y==="internal"?!1:m!==g};return u.createElement(Sa.Provider,{value:v},u.createElement(no.Provider,{value:p},u.createElement(wu,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(m,g){var b=m.value,y=b===void 0?[]:b,x=m.onChange,w=l.getFieldValue,C=function(){var $=w(f||[]);return $||[]},S={add:function($,O){var k=C();O>=0&&O<=k.length?(d.keys=[].concat(Ce(d.keys.slice(0,O)),[d.id],Ce(d.keys.slice(O))),x([].concat(Ce(k.slice(0,O)),[$],Ce(k.slice(O))))):(d.keys=[].concat(Ce(d.keys),[d.id]),x([].concat(Ce(k),[$]))),d.id+=1},remove:function($){var O=C(),k=new Set(Array.isArray($)?$:[$]);k.size<=0||(d.keys=d.keys.filter(function(I,M){return!k.has(M)}),x(O.filter(function(I,M){return!k.has(M)})))},move:function($,O){if($!==O){var k=C();$<0||$>=k.length||O<0||O>=k.length||(d.keys=Ff(d.keys,$,O),x(Ff(k,$,O)))}}},E=y||[];return Array.isArray(E)||(E=[]),r(E.map(function($,O){var k=d.keys[O];return k===void 0&&(d.keys[O]=d.id,k=d.keys[O],d.id+=1),{name:O,key:k,isListField:!0}}),S,g)})))}function VE(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var dh="__@field_split__";function Gl(e){return e.map(function(t){return"".concat(Qe(t),":").concat(t)}).join(dh)}var ho=(function(){function e(){Jt(this,e),Y(this,"kvs",new Map)}return en(e,[{key:"set",value:function(t,n){this.kvs.set(Gl(t),n)}},{key:"get",value:function(t){return this.kvs.get(Gl(t))}},{key:"update",value:function(t,n){var r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Gl(t))}},{key:"map",value:function(t){return Ce(this.kvs.entries()).map(function(n){var r=Q(n,2),o=r[0],a=r[1],i=o.split(dh);return t({key:i.map(function(l){var s=l.match(/^([^:]*):(.*)$/),c=Q(s,3),d=c[1],f=c[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var r=n.key,o=n.value;return t[r.join(".")]=o,null}),t}}]),e})(),qE=["name"],YE=en(function e(t){var n=this;Jt(this,e),Y(this,"formHooked",!1),Y(this,"forceRootUpdate",void 0),Y(this,"subscribable",!0),Y(this,"store",{}),Y(this,"fieldEntities",[]),Y(this,"initialValues",{}),Y(this,"callbacks",{}),Y(this,"validateMessages",null),Y(this,"preserve",null),Y(this,"lastValidatePromise",null),Y(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Y(this,"getInternalHooks",function(r){return r===Ur?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Y(this,"useSubscribe",function(r){n.subscribable=r}),Y(this,"prevWithoutPreserves",null),Y(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=So(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var s=l.key;i=Yn(i,s,Xn(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),Y(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ho;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),Y(this,"getInitialValue",function(r){var o=Xn(n.initialValues,r);return r.length?So(o):o}),Y(this,"setCallbacks",function(r){n.callbacks=r}),Y(this,"setValidateMessages",function(r){n.validateMessages=r}),Y(this,"setPreserve",function(r){n.preserve=r}),Y(this,"watchList",[]),Y(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Y(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),Y(this,"timeoutId",null),Y(this,"warningUnhooked",function(){}),Y(this,"updateStore",function(r){n.store=r}),Y(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),Y(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ho;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),Y(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=rn(a);return o.get(i)||{INVALIDATE_NAME_PATH:rn(a)}})}),Y(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&Qe(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return s.forEach(function(d){var f,p,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,m;if((h=(m=d).isList)!==null&&h!==void 0&&h.call(m))return}else if(!a&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)c.push(v);else{var g="getMeta"in d?d.getMeta():null;i(g)&&c.push(v)}}),Af(n.store,c.map(rn))}),Y(this,"getFieldValue",function(r){n.warningUnhooked();var o=rn(r);return Xn(n.store,o)}),Y(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:rn(r[i]),errors:[],warnings:[]}})}),Y(this,"getFieldError",function(r){n.warningUnhooked();var o=rn(r),a=n.getFieldsError([o])[0];return a.errors}),Y(this,"getFieldWarning",function(r){n.warningUnhooked();var o=rn(r),a=n.getFieldsError([o])[0];return a.warnings}),Y(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],l=o[1],s,c=!1;o.length===0?s=null:o.length===1?Array.isArray(i)?(s=i.map(rn),c=!1):(s=null,c=i):(s=i.map(rn),c=l);var d=n.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!s)return c?d.every(function(m){return f(m)||m.isList()}):d.some(f);var p=new ho;s.forEach(function(m){p.set(m,[])}),d.forEach(function(m){var g=m.getNamePath();s.forEach(function(b){b.every(function(y,x){return g[x]===y})&&p.update(b,function(y){return[].concat(Ce(y),[m])})})});var v=function(m){return m.some(f)},h=p.map(function(m){var g=m.value;return g});return c?h.every(v):h.some(v)}),Y(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),Y(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(rn);return o.some(function(i){var l=i.getNamePath();return Io(a,l)&&i.isFieldValidating()})}),Y(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),Y(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ho,a=n.getFieldEntities(!0);a.forEach(function(s){var c=s.props.initialValue,d=s.getNamePath();if(c!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:c}),o.set(d,f)}});var i=function(s){s.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var f=c.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)vn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=o.get(f);if(v&&v.size>1)vn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=n.getFieldValue(f),m=c.isListField();!m&&(!r.skipExist||h===void 0)&&n.updateStore(Yn(n.store,f,Ce(v)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var d;(d=l).push.apply(d,Ce(Ce(c).map(function(f){return f.entity})))}})):l=a,i(l)}),Y(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(So(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(rn);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(Yn(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),Y(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=ft(i,qE),c=rn(l);a.push(c),"value"in s&&n.updateStore(Yn(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),Y(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),s=U(U({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),Y(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Xn(n.store,a);i===void 0&&n.updateStore(Yn(n.store,a,o))}}),Y(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Y(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||s.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!ch(f.getNamePath(),o)})){var d=n.store;n.updateStore(Yn(d,o,c,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),Y(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),Y(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=U(U({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,i)})}else n.forceRootUpdate()}),Y(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Ce(a))}),a}),Y(this,"updateValue",function(r,o){var a=rn(r),i=n.store;n.updateStore(Yn(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),s=n.callbacks.onValuesChange;if(s){var c=Af(n.store,[a]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Ce(l)))}),Y(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=So(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Y(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),Y(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new ho;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(d){var f=rn(d);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(s),p})})});var l=function s(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),s(p))}})};return l(r),a}),Y(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new ho;o.forEach(function(c){var d=c.name,f=c.errors;l.set(d,f)}),i.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=i.filter(function(c){var d=c.name;return Io(r,d)});s.length&&a(s,i)}}),Y(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,s=l?a.map(rn):[],c=[],d=String(Date.now()),f=new Set,p=i||{},v=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(y){if(l||s.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(d)),!l||Io(s,x,v)){var w=y.validateRules(U({validateMessages:U(U({},sh),n.validateMessages)},i));c.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var S,E=[],$=[];return(S=C.forEach)===null||S===void 0||S.call(C,function(O){var k=O.rule.warningOnly,I=O.errors;k?$.push.apply($,Ce(I)):E.push.apply(E,Ce(I))}),E.length?Promise.reject({name:x,errors:E,warnings:$}):{name:x,errors:E,warnings:$}}))}}});var m=VE(c);n.lastValidatePromise=m,m.catch(function(y){return y}).then(function(y){var x=y.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var g=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(y){var x=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:x,outOfDate:n.lastValidatePromise!==m})});g.catch(function(y){return y});var b=s.filter(function(y){return f.has(y.join(d))});return n.triggerOnFieldsChange(b),g}),Y(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Cu(e){var t=u.useRef(),n=u.useState({}),r=Q(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new YE(a);t.current=i.getForm()}return[t.current]}var cc=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),fh=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=u.useContext(cc),i=u.useRef({});return u.createElement(cc.Provider,{value:U(U({},a),{},{validateMessages:U(U({},a.validateMessages),t),triggerFormChange:function(l,s){n&&n(l,{changedFields:s,forms:i.current}),a.triggerFormChange(l,s)},triggerFormFinish:function(l,s){r&&r(l,{values:s,forms:i.current}),a.triggerFormFinish(l,s)},registerForm:function(l,s){l&&(i.current=U(U({},i.current),{},Y({},l,s))),a.registerForm(l,s)},unregisterForm:function(l){var s=U({},i.current);delete s[l],i.current=s,a.unregisterForm(l)}})},o)},XE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],UE=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,a=e.form,i=e.preserve,l=e.children,s=e.component,c=s===void 0?"form":s,d=e.validateMessages,f=e.validateTrigger,p=f===void 0?"onChange":f,v=e.onValuesChange,h=e.onFieldsChange,m=e.onFinish,g=e.onFinishFailed,b=e.clearOnDestroy,y=ft(e,XE),x=u.useRef(null),w=u.useContext(cc),C=Cu(a),S=Q(C,1),E=S[0],$=E.getInternalHooks(Ur),O=$.useSubscribe,k=$.setInitialValues,I=$.setCallbacks,M=$.setValidateMessages,B=$.setPreserve,D=$.destroyForm;u.useImperativeHandle(t,function(){return U(U({},E),{},{nativeElement:x.current})}),u.useEffect(function(){return w.registerForm(n,E),function(){w.unregisterForm(n)}},[w,E,n]),M(U(U({},w.validateMessages),d)),I({onValuesChange:v,onFieldsChange:function(N){if(w.triggerFormChange(n,N),h){for(var P=arguments.length,A=new Array(P>1?P-1:0),T=1;T<P;T++)A[T-1]=arguments[T];h.apply(void 0,[N].concat(A))}},onFinish:function(N){w.triggerFormFinish(n,N),m&&m(N)},onFinishFailed:g}),B(i);var F=u.useRef(null);k(r,!F.current),F.current||(F.current=!0),u.useEffect(function(){return function(){return D(b)}},[]);var R,H=typeof l=="function";if(H){var j=E.getFieldsValue(!0);R=l(j,E)}else R=l;O(!H);var _=u.useRef();u.useEffect(function(){_E(_.current||[],o||[])||E.setFields(o||[]),_.current=o},[o,E]);var W=u.useMemo(function(){return U(U({},E),{},{validateTrigger:p})},[E,p]),L=u.createElement(Sa.Provider,{value:null},u.createElement(no.Provider,{value:W},R));return c===!1?L:u.createElement(c,Ae({},y,{ref:x,onSubmit:function(N){N.preventDefault(),N.stopPropagation(),E.submit()},onReset:function(N){var P;N.preventDefault(),E.resetFields(),(P=y.onReset)===null||P===void 0||P.call(y,N)}}),L)};function Tf(e){try{return JSON.stringify(e)}catch{return Math.random()}}function ph(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=aE(a)?{form:a}:a,l=i.form,s=Nt(),c=Q(s,2),d=c[0],f=c[1],p=xn(function(){return Tf(d)},[d]),v=Ye(p);v.current=p;var h=Ut(no),m=l||h,g=m&&m._init,b=rn(r),y=Ye(b);return y.current=b,Mt(function(){if(g){var x=m.getFieldsValue,w=m.getInternalHooks,C=w(Ur),S=C.registerWatch,E=function(k,I){var M=i.preserve?I:k;return typeof r=="function"?r(M):Xn(M,y.current)},$=S(function(k,I){var M=E(k,I),B=Tf(M);v.current!==B&&(v.current=B,f(M))}),O=E(x(),x(!0));return d!==O&&f(O),$}},[g]),d}var GE=u.forwardRef(UE),zo=GE;zo.FormProvider=fh;zo.Field=wu;zo.List=uh;zo.useForm=Cu;zo.useWatch=ph;const br=u.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),mh=u.createContext(null),gh=e=>{const t=gr(e,["prefixCls"]);return u.createElement(fh,Object.assign({},t))},Su=u.createContext({prefixCls:""}),bn=u.createContext({}),hh=({children:e,status:t,override:n})=>{const r=u.useContext(bn),o=u.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return u.createElement(bn.Provider,{value:o},e)},vh=u.createContext(void 0),Fr=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=pe.createElement(hh,{override:!0,status:!0},o)),t&&(o=pe.createElement(AC,null,o)),o};function Df(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Bf(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Hf(e){const{closable:t,closeIcon:n}=e||{};return pe.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const KE={};function QE(e,t,n=KE){const r=Hf(e),o=Hf(t),[a]=ao("global",Rr.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=pe.useMemo(()=>Object.assign({closeIcon:pe.createElement(su,null)},n),[n]),s=pe.useMemo(()=>r===!1?!1:r?Df(l,o,r):o===!1?!1:o?Df(l,o):l.closable?l:!1,[r,o,l]);return pe.useMemo(()=>{var c,d;if(s===!1)return[!1,null,i,{}];const{closeIconRender:f}=l,{closeIcon:p}=s;let v=p;const h=rr(s,!0);return v!=null&&(f&&(v=f(p)),v=pe.isValidElement(v)?pe.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(d=(c=v.props)===null||c===void 0?void 0:c["aria-label"])!==null&&d!==void 0?d:a.close}),h)):pe.createElement("span",Object.assign({"aria-label":a.close},h),v)),[!0,v,i,h]},[i,a.close,s,l])}const ZE=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},JE=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},e$=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},uc=(e,t)=>e$(e,t),t$=(e,t,n)=>({[`@media (min-width: ${ue(t)})`]:Object.assign({},uc(e,n))}),n$=()=>({}),r$=()=>({}),o$=ln("Grid",ZE,n$),a$=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),i$=ln("Grid",e=>{const t=Rt(e,{gridColumns:24}),n=a$(t);return delete n.xs,[JE(t),uc(t,""),uc(t,"-xs"),Object.keys(n).map(r=>t$(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},r$),l$=pe.createContext({});function s$(e){return t=>u.createElement(zr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const Eu=(e,t,n,r,o)=>s$(a=>{const{prefixCls:i,style:l}=a,s=u.useRef(null),[c,d]=u.useState(0),[f,p]=u.useState(0),[v,h]=Qt(!1,{value:a.open}),{getPrefixCls:m}=u.useContext(xt),g=m(r||"select",i);u.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(C=>{const S=C[0].target;d(S.offsetHeight+8),p(S.offsetWidth)}),w=setInterval(()=>{var C;const S=`.${g}-dropdown`,E=(C=s.current)===null||C===void 0?void 0:C.querySelector(S);E&&(clearInterval(w),x.observe(E))},10);return()=>{clearInterval(w),x.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:v,visible:v,getPopupContainer:()=>s.current});t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:c,position:"relative",minWidth:f};return u.createElement("div",{ref:s,style:y},u.createElement(e,Object.assign({},b)))}),$u=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var cl=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,a=e.onMouseDown,i=e.onClick,l=typeof n=="function"?n(r):n;return u.createElement("span",{className:t,onMouseDown:function(s){s.preventDefault(),a==null||a(s)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},l!==void 0?l:u.createElement("span",{className:ae(t.split(/\s+/).map(function(s){return"".concat(s,"-icon")}))},o))},c$=function(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=pe.useMemo(function(){if(Qe(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=pe.useMemo(function(){return!!(!a&&r&&(n.length||i)&&!(l==="combobox"&&i===""))},[r,a,n.length,i,l]);return{allowClear:c,clearIcon:pe.createElement(cl,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xD7")}},bh=u.createContext(null);function u$(){return u.useContext(bh)}function d$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=Q(t,2),r=n[0],o=n[1],a=u.useRef(null),i=function(){window.clearTimeout(a.current)};u.useEffect(function(){return i},[]);var l=function(s,c){i(),a.current=window.setTimeout(function(){o(s),c&&c()},e)};return[r,l,i]}function yh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function f$(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(s)&&c!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function p$(e){return e&&![Ke.ESC,Ke.SHIFT,Ke.BACKSPACE,Ke.TAB,Ke.WIN_KEY,Ke.ALT,Ke.META,Ke.WIN_KEY_RIGHT,Ke.CTRL,Ke.SEMICOLON,Ke.EQUALS,Ke.CAPS_LOCK,Ke.CONTEXT_MENU,Ke.F1,Ke.F2,Ke.F3,Ke.F4,Ke.F5,Ke.F6,Ke.F7,Ke.F8,Ke.F9,Ke.F10,Ke.F11,Ke.F12].includes(e)}var m$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],vo=void 0;function g$(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,p=e.children,v=e.display,h=e.order,m=e.component,g=m===void 0?"div":m,b=ft(e,m$),y=i&&!v;function x($){s(c,$)}u.useEffect(function(){return function(){x(null)}},[]);var w=a&&o!==vo?a(o,{index:h}):p,C;r||(C={opacity:y?0:1,height:y?0:vo,overflowY:y?"hidden":vo,order:i?h:vo,pointerEvents:y?"none":vo,position:y?"absolute":vo});var S={};y&&(S["aria-hidden"]=!0);var E=u.createElement(g,Ae({className:ae(!r&&n,d),style:U(U({},C),f)},S,b,{ref:t}),w);return i&&(E=u.createElement(mr,{onResize:function($){var O=$.offsetWidth;x(O)},disabled:l},E)),E}var ko=u.forwardRef(g$);ko.displayName="Item";function h$(e){if(typeof MessageChannel>"u")dt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function v$(){var e=u.useRef(null),t=function(n){e.current||(e.current=[],h$(function(){H0(function(){e.current.forEach(function(r){r()}),e.current=null})})),e.current.push(n)};return t}function bo(e,t){var n=u.useState(t),r=Q(n,2),o=r[0],a=r[1],i=bt(function(l){e(function(){a(l)})});return[o,i]}var Pi=pe.createContext(null),b$=["component"],y$=["className"],x$=["className"],w$=function(e,t){var n=u.useContext(Pi);if(!n){var r=e.component,o=r===void 0?"div":r,a=ft(e,b$);return u.createElement(o,Ae({},a,{ref:t}))}var i=n.className,l=ft(n,y$),s=e.className,c=ft(e,x$);return u.createElement(Pi.Provider,{value:null},u.createElement(ko,Ae({ref:t,className:ae(i,s)},l,c)))},xh=u.forwardRef(w$);xh.displayName="RawItem";var C$=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],wh="responsive",Ch="invalidate";function S$(e){return"+ ".concat(e.length," ...")}function E$(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,p=e.style,v=e.className,h=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.prefix,y=e.suffix,x=e.component,w=x===void 0?"div":x,C=e.itemComponent,S=e.onVisibleChange,E=ft(e,C$),$=f==="full",O=v$(),k=bo(O,null),I=Q(k,2),M=I[0],B=I[1],D=M||0,F=bo(O,new Map),R=Q(F,2),H=R[0],j=R[1],_=bo(O,0),W=Q(_,2),L=W[0],N=W[1],P=bo(O,0),A=Q(P,2),T=A[0],z=A[1],V=bo(O,0),q=Q(V,2),Z=q[0],G=q[1],J=bo(O,0),K=Q(J,2),X=K[0],ne=K[1],te=Nt(null),ee=Q(te,2),ie=ee[0],se=ee[1],fe=Nt(null),ve=Q(fe,2),me=ve[0],Ee=ve[1],le=u.useMemo(function(){return me===null&&$?Number.MAX_SAFE_INTEGER:me||0},[me,M]),de=Nt(!1),je=Q(de,2),oe=je[0],Me=je[1],ke="".concat(r,"-item"),Fe=Math.max(L,T),Pe=h===wh,Ie=a.length&&Pe,ye=h===Ch,be=Ie||typeof h=="number"&&a.length>h,he=xn(function(){var xe=a;return Ie?M===null&&$?xe=a:xe=a.slice(0,Math.min(a.length,D/d)):typeof h=="number"&&(xe=a.slice(0,h)),xe},[a,d,M,h,Ie]),we=xn(function(){return Ie?a.slice(le+1):a.slice(he.length)},[a,he,Ie,le]),Te=td(function(xe,ge){var Se;return typeof s=="function"?s(xe):(Se=s&&(xe==null?void 0:xe[s]))!==null&&Se!==void 0?Se:ge},[s]),ce=td(i||function(xe){return xe},[i]);function Ge(xe,ge,Se){me===xe&&(ge===void 0||ge===ie)||(Ee(xe),Se||(Me(xe<a.length-1),S==null||S(xe)),ge!==void 0&&se(ge))}function rt(xe,ge){B(ge.clientWidth)}function at(xe,ge){j(function(Se){var We=new Map(Se);return ge===null?We.delete(xe):We.set(xe,ge),We})}function pt(xe,ge){z(ge),N(T)}function Ne(xe,ge){G(ge)}function Be(xe,ge){ne(ge)}function Re(xe){return H.get(Te(he[xe],xe))}wt(function(){if(D&&typeof Fe=="number"&&he){var xe=Z+X,ge=he.length,Se=ge-1;if(!ge){Ge(0,null);return}for(var We=0;We<ge;We+=1){var Ze=Re(We);if($&&(Ze=Ze||0),Ze===void 0){Ge(We-1,void 0,!0);break}if(xe+=Ze,Se===0&&xe<=D||We===Se-1&&xe+Re(Se)<=D){Ge(Se,null);break}else if(xe+Fe>D){Ge(We-1,xe-Ze-X+T);break}}y&&Re(0)+X>D&&se(null)}},[D,H,T,Z,X,Te,he]);var Xe=oe&&!!we.length,Ue={};ie!==null&&Ie&&(Ue={position:"absolute",left:ie,top:0});var lt={prefixCls:ke,responsive:Ie,component:C,invalidate:ye},ct=l?function(xe,ge){var Se=Te(xe,ge);return u.createElement(Pi.Provider,{key:Se,value:U(U({},lt),{},{order:ge,item:xe,itemKey:Se,registerSize:at,display:ge<=le})},l(xe,ge))}:function(xe,ge){var Se=Te(xe,ge);return u.createElement(ko,Ae({},lt,{order:ge,key:Se,item:xe,renderItem:ce,itemKey:Se,registerSize:at,display:ge<=le}))},Ve={order:Xe?le:Number.MAX_SAFE_INTEGER,className:"".concat(ke,"-rest"),registerSize:pt,display:Xe},tt=m||S$,st=g?u.createElement(Pi.Provider,{value:U(U({},lt),Ve)},g(we)):u.createElement(ko,Ae({},lt,Ve),typeof tt=="function"?tt(we):tt),Oe=u.createElement(w,Ae({className:ae(!ye&&r,v),style:p,ref:t},E),b&&u.createElement(ko,Ae({},lt,{responsive:Pe,responsiveDisabled:!Ie,order:-1,className:"".concat(ke,"-prefix"),registerSize:Ne,display:!0}),b),he.map(ct),be?st:null,y&&u.createElement(ko,Ae({},lt,{responsive:Pe,responsiveDisabled:!Ie,order:le,className:"".concat(ke,"-suffix"),registerSize:Be,display:!0,style:Ue}),y));return Pe?u.createElement(mr,{onResize:rt,disabled:!Ie},Oe):Oe}var _o=u.forwardRef(E$);_o.displayName="Overflow";_o.Item=xh;_o.RESPONSIVE=wh;_o.INVALIDATE=Ch;function $$(e,t,n){var r=U(U({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return a.apply(void 0,s),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(s))})}),r}var k$=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],O$=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,a=e.autoFocus,i=e.autoComplete,l=e.editable,s=e.activeDescendantId,c=e.value,d=e.open,f=e.attrs,p=ft(e,k$),v=o||u.createElement("input",null),h=v,m=h.ref,g=h.props;return"maxLength"in v.props,v=u.cloneElement(v,U(U(U({type:"search"},$$(p,g)),{},{id:r,ref:Gn(t,m),autoComplete:i||"off",autoFocus:a,className:ae("".concat(n,"-selection-search-input"),g==null?void 0:g.className),role:"combobox","aria-expanded":d||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":d?s:void 0},f),{},{value:l?c:"",readOnly:!l,unselectable:l?null:"on",style:U(U({},g.style),{},{opacity:l?null:0})})),v},Sh=u.forwardRef(O$);function Eh(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var M$=typeof window<"u"&&window.document&&window.document.documentElement,I$=M$;function N$(e){return e!=null}function j$(e){return!e&&e!==0}function zf(e){return["string","number"].includes(Qe(e))}function $h(e){var t=void 0;return e&&(zf(e.title)?t=e.title.toString():zf(e.label)&&(t=e.label.toString())),t}function P$(e,t){I$?u.useLayoutEffect(e,t):u.useEffect(e,t)}function R$(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var _f=function(e){e.preventDefault(),e.stopPropagation()},A$=function(e){var t=e.id,n=e.prefixCls,r=e.values,o=e.open,a=e.searchValue,i=e.autoClearSearchValue,l=e.inputRef,s=e.placeholder,c=e.disabled,d=e.mode,f=e.showSearch,p=e.autoFocus,v=e.autoComplete,h=e.activeDescendantId,m=e.tabIndex,g=e.removeIcon,b=e.maxTagCount,y=e.maxTagTextLength,x=e.maxTagPlaceholder,w=x===void 0?function(X){return"+ ".concat(X.length," ...")}:x,C=e.tagRender,S=e.onToggleOpen,E=e.onRemove,$=e.onInputChange,O=e.onInputPaste,k=e.onInputKeyDown,I=e.onInputMouseDown,M=e.onInputCompositionStart,B=e.onInputCompositionEnd,D=e.onInputBlur,F=u.useRef(null),R=Nt(0),H=Q(R,2),j=H[0],_=H[1],W=Nt(!1),L=Q(W,2),N=L[0],P=L[1],A="".concat(n,"-selection"),T=o||d==="multiple"&&i===!1||d==="tags"?a:"",z=d==="tags"||d==="multiple"&&i===!1||f&&(o||N);P$(function(){_(F.current.scrollWidth)},[T]);var V=function(X,ne,te,ee,ie){return u.createElement("span",{title:$h(X),className:ae("".concat(A,"-item"),Y({},"".concat(A,"-item-disabled"),te))},u.createElement("span",{className:"".concat(A,"-item-content")},ne),ee&&u.createElement(cl,{className:"".concat(A,"-item-remove"),onMouseDown:_f,onClick:ie,customizeIcon:g},"\xD7"))},q=function(X,ne,te,ee,ie,se){var fe=function(ve){_f(ve),S(!o)};return u.createElement("span",{onMouseDown:fe},C({label:ne,value:X,disabled:te,closable:ee,onClose:ie,isMaxTag:!!se}))},Z=function(X){var ne=X.disabled,te=X.label,ee=X.value,ie=!c&&!ne,se=te;if(typeof y=="number"&&(typeof te=="string"||typeof te=="number")){var fe=String(se);fe.length>y&&(se="".concat(fe.slice(0,y),"..."))}var ve=function(me){me&&me.stopPropagation(),E(X)};return typeof C=="function"?q(ee,se,ne,ie,ve):V(X,se,ne,ie,ve)},G=function(X){if(!r.length)return null;var ne=typeof w=="function"?w(X):w;return typeof C=="function"?q(void 0,ne,!1,!1,void 0,!0):V({title:ne},ne,!1)},J=u.createElement("div",{className:"".concat(A,"-search"),style:{width:j},onFocus:function(){P(!0)},onBlur:function(){P(!1)}},u.createElement(Sh,{ref:l,open:o,prefixCls:n,id:t,inputElement:null,disabled:c,autoFocus:p,autoComplete:v,editable:z,activeDescendantId:h,value:T,onKeyDown:k,onMouseDown:I,onChange:$,onPaste:O,onCompositionStart:M,onCompositionEnd:B,onBlur:D,tabIndex:m,attrs:rr(e,!0)}),u.createElement("span",{ref:F,className:"".concat(A,"-search-mirror"),"aria-hidden":!0},T,"\xA0")),K=u.createElement(_o,{prefixCls:"".concat(A,"-overflow"),data:r,renderItem:Z,renderRest:G,suffix:J,itemKey:R$,maxCount:b});return u.createElement("span",{className:"".concat(A,"-wrap")},K,!r.length&&!T&&u.createElement("span",{className:"".concat(A,"-placeholder")},s))},F$=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,c=e.mode,d=e.open,f=e.values,p=e.placeholder,v=e.tabIndex,h=e.showSearch,m=e.searchValue,g=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,E=e.onInputCompositionEnd,$=e.onInputBlur,O=e.title,k=u.useState(!1),I=Q(k,2),M=I[0],B=I[1],D=c==="combobox",F=D||h,R=f[0],H=m||"";D&&g&&!M&&(H=g),u.useEffect(function(){D&&B(!1)},[D,g]);var j=c!=="combobox"&&!d&&!h?!1:!!H,_=O===void 0?$h(R):O,W=u.useMemo(function(){return R?null:u.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},p)},[R,j,p,n]);return u.createElement("span",{className:"".concat(n,"-selection-wrap")},u.createElement("span",{className:"".concat(n,"-selection-search")},u.createElement(Sh,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:i,autoComplete:l,editable:F,activeDescendantId:s,value:H,onKeyDown:y,onMouseDown:x,onChange:function(L){B(!0),w(L)},onPaste:C,onCompositionStart:S,onCompositionEnd:E,onBlur:$,tabIndex:v,attrs:rr(e,!0),maxLength:D?b:void 0})),!D&&R?u.createElement("span",{className:"".concat(n,"-selection-item"),title:_,style:j?{visibility:"hidden"}:void 0},R.label):null,W)},T$=function(e,t){var n=Ye(null),r=Ye(!1),o=e.prefixCls,a=e.open,i=e.mode,l=e.showSearch,s=e.tokenWithEnter,c=e.disabled,d=e.prefix,f=e.autoClearSearchValue,p=e.onSearch,v=e.onSearchSubmit,h=e.onToggleOpen,m=e.onInputKeyDown,g=e.onInputBlur,b=e.domRef;u.useImperativeHandle(t,function(){return{focus:function(j){n.current.focus(j)},blur:function(){n.current.blur()}}});var y=yh(0),x=Q(y,2),w=x[0],C=x[1],S=function(j){var _=j.which,W=n.current instanceof HTMLTextAreaElement;!W&&a&&(_===Ke.UP||_===Ke.DOWN)&&j.preventDefault(),m&&m(j),_===Ke.ENTER&&i==="tags"&&!r.current&&!a&&(v==null||v(j.target.value)),!(W&&!a&&~[Ke.UP,Ke.DOWN,Ke.LEFT,Ke.RIGHT].indexOf(_))&&p$(_)&&h(!0)},E=function(){C(!0)},$=Ye(null),O=function(j){p(j,!0,r.current)!==!1&&h(!0)},k=function(){r.current=!0},I=function(j){r.current=!1,i!=="combobox"&&O(j.target.value)},M=function(j){var _=j.target.value;if(s&&$.current&&/[\r\n]/.test($.current)){var W=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(W,$.current)}$.current=null,O(_)},B=function(j){var _=j.clipboardData,W=_==null?void 0:_.getData("text");$.current=W||""},D=function(j){var _=j.target;if(_!==n.current){var W=document.body.style.msTouchAction!==void 0;W?setTimeout(function(){n.current.focus()}):n.current.focus()}},F=function(j){var _=w();j.target!==n.current&&!_&&!(i==="combobox"&&c)&&j.preventDefault(),(i!=="combobox"&&(!l||!_)||!a)&&(a&&f!==!1&&p("",!0,!1),h())},R={inputRef:n,onInputKeyDown:S,onInputMouseDown:E,onInputChange:M,onInputPaste:B,onInputCompositionStart:k,onInputCompositionEnd:I,onInputBlur:g},H=i==="multiple"||i==="tags"?u.createElement(A$,Ae({},e,R)):u.createElement(F$,Ae({},e,R));return u.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:D,onMouseDown:F},d&&u.createElement("div",{className:"".concat(o,"-prefix")},d),H)},D$=u.forwardRef(T$);function B$(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,s=o.x,c=s===void 0?0:s,d=o.y,f=d===void 0?0:d,p=u.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],m=n.points[1],g=h[0],b=h[1],y=m[0],x=m[1];g===y||!["t","b"].includes(g)?v.top=f:g==="t"?v.top=0:v.bottom=0,b===x||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0}return u.createElement("div",{ref:p,className:ae("".concat(t,"-arrow"),i),style:v},l)}function H$(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?u.createElement(io,Ae({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return u.createElement("div",{style:{zIndex:r},className:ae("".concat(t,"-mask"),l)})}):null}var z$=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),_$=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,v=e.arrow,h=e.arrowPos,m=e.align,g=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,C=e.portal,S=e.zIndex,E=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,k=e.onPointerDownCapture,I=e.ready,M=e.offsetX,B=e.offsetY,D=e.offsetR,F=e.offsetB,R=e.onAlign,H=e.onPrepare,j=e.stretch,_=e.targetWidth,W=e.targetHeight,L=typeof n=="function"?n():n,N=s||c,P=(x==null?void 0:x.length)>0,A=u.useState(!x||!P),T=Q(A,2),z=T[0],V=T[1];if(wt(function(){!z&&P&&i&&V(!0)},[z,P,i]),!z)return null;var q="auto",Z={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(I||!s){var G,J=m.points,K=m.dynamicInset||((G=m._experimental)===null||G===void 0?void 0:G.dynamicInset),X=K&&J[0][1]==="r",ne=K&&J[0][0]==="b";X?(Z.right=D,Z.left=q):(Z.left=M,Z.right=q),ne?(Z.bottom=F,Z.top=q):(Z.top=B,Z.bottom=q)}var te={};return j&&(j.includes("height")&&W?te.height=W:j.includes("minHeight")&&W&&(te.minHeight=W),j.includes("width")&&_?te.width=_:j.includes("minWidth")&&_&&(te.minWidth=_)),s||(te.pointerEvents="none"),u.createElement(C,{open:y||N,getContainer:x&&function(){return x(i)},autoDestroy:w},u.createElement(H$,{prefixCls:o,open:s,zIndex:S,mask:p,motion:b}),u.createElement(mr,{onResize:R,disabled:!s},function(ee){return u.createElement(io,Ae({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:H,onEnterPrepare:H,visible:s,onVisibleChanged:function(ie){var se;g==null||(se=g.onVisibleChanged)===null||se===void 0||se.call(g,ie),l(ie)}}),function(ie,se){var fe=ie.className,ve=ie.style,me=ae(o,fe,r);return u.createElement("div",{ref:Gn(ee,t,se),className:me,style:U(U(U(U({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Z),te),ve),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:E,onMouseLeave:$,onPointerEnter:O,onClick:f,onPointerDownCapture:k},v&&u.createElement(B$,{prefixCls:o,arrow:v,arrowPos:h,align:m}),u.createElement(z$,{cache:!s&&!d},L))})}))}),L$=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Do(n),a=u.useCallback(function(l){Uc(t,r?r(l):l)},[r]),i=Ma(a,Ia(n));return o?u.cloneElement(n,{ref:i}):n}),Lf=u.createContext(null);function Wf(e){return e?Array.isArray(e)?e:[e]:[]}function W$(e,t,n,r){return u.useMemo(function(){var o=Wf(n??t),a=Wf(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function V$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function q$(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,s=a[i];if(V$((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function Vf(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ta(e){return e.ownerDocument.defaultView}function dc(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ta(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,l=o.overflow;[a,i,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function Ea(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ea(e){return Ea(parseFloat(e),0)}function qf(e,t){var n=U({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ta(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,v=r.clientHeight,h=r.offsetWidth,m=r.clientWidth,g=ea(l),b=ea(s),y=ea(c),x=ea(d),w=Ea(Math.round(f.width/h*1e3)/1e3),C=Ea(Math.round(f.height/p*1e3)/1e3),S=(h-m-y-x)*w,E=(p-v-g-b)*C,$=g*C,O=b*C,k=y*w,I=x*w,M=0,B=0;if(a==="clip"){var D=ea(i);M=D*w,B=D*C}var F=f.x+k-M,R=f.y+$-B,H=F+f.width+2*M-k-I-S,j=R+f.height+2*B-$-O-E;n.left=Math.max(n.left,F),n.top=Math.max(n.top,R),n.right=Math.min(n.right,H),n.bottom=Math.min(n.bottom,j)}}),n}function Yf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Xf(e,t){var n=t||[],r=Q(n,2),o=r[0],a=r[1];return[Yf(e.width,o),Yf(e.height,a)]}function Uf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function yo(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Sr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function Y$(e,t,n,r,o,a,i){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=Q(l,2),c=s[0],d=s[1],f=u.useRef(0),p=u.useMemo(function(){return t?dc(t):[]},[t]),v=u.useRef({}),h=function(){v.current={}};e||h();var m=bt(function(){if(t&&n&&e){let cn=function(wr,Go){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:je,Ko=N.x+wr,Ba=N.y+Go,Cl=Ko+ne,Sl=Ba+X,El=Math.max(Ko,Cr.left),qe=Math.max(Ba,Cr.top),St=Math.min(Cl,Cr.right),gn=Math.min(Sl,Cr.bottom);return Math.max(0,(St-El)*(gn-qe))},mo=function(){Ot=N.y+tt,gt=Ot+X,At=N.x+Ve,Ft=At+ne};var y,x,w,C,S=t,E=S.ownerDocument,$=Ta(S),O=$.getComputedStyle(S),k=O.position,I=S.style.left,M=S.style.top,B=S.style.right,D=S.style.bottom,F=S.style.overflow,R=U(U({},o[r]),a),H=E.createElement("div");(y=S.parentElement)===null||y===void 0||y.appendChild(H),H.style.left="".concat(S.offsetLeft,"px"),H.style.top="".concat(S.offsetTop,"px"),H.style.position=k,H.style.height="".concat(S.offsetHeight,"px"),H.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{var _,W,L=n.getBoundingClientRect();L.x=(_=L.x)!==null&&_!==void 0?_:L.left,L.y=(W=L.y)!==null&&W!==void 0?W:L.top,j={x:L.x,y:L.y,width:L.width,height:L.height}}var N=S.getBoundingClientRect(),P=$.getComputedStyle(S),A=P.height,T=P.width;N.x=(x=N.x)!==null&&x!==void 0?x:N.left,N.y=(w=N.y)!==null&&w!==void 0?w:N.top;var z=E.documentElement,V=z.clientWidth,q=z.clientHeight,Z=z.scrollWidth,G=z.scrollHeight,J=z.scrollTop,K=z.scrollLeft,X=N.height,ne=N.width,te=j.height,ee=j.width,ie={left:0,top:0,right:V,bottom:q},se={left:-K,top:-J,right:Z-K,bottom:G-J},fe=R.htmlRegion,ve="visible",me="visibleFirst";fe!=="scroll"&&fe!==me&&(fe=ve);var Ee=fe===me,le=qf(se,p),de=qf(ie,p),je=fe===ve?de:le,oe=Ee?de:je;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var Me=S.getBoundingClientRect();S.style.left=I,S.style.top=M,S.style.right=B,S.style.bottom=D,S.style.overflow=F,(C=S.parentElement)===null||C===void 0||C.removeChild(H);var ke=Ea(Math.round(ne/parseFloat(T)*1e3)/1e3),Fe=Ea(Math.round(X/parseFloat(A)*1e3)/1e3);if(ke===0||Fe===0||pa(n)&&!el(n))return;var Pe=R.offset,Ie=R.targetOffset,ye=Xf(N,Pe),be=Q(ye,2),he=be[0],we=be[1],Te=Xf(j,Ie),ce=Q(Te,2),Ge=ce[0],rt=ce[1];j.x-=Ge,j.y-=rt;var at=R.points||[],pt=Q(at,2),Ne=pt[0],Be=pt[1],Re=Uf(Be),Xe=Uf(Ne),Ue=yo(j,Re),lt=yo(N,Xe),ct=U({},R),Ve=Ue.x-lt.x+he,tt=Ue.y-lt.y+we,st=cn(Ve,tt),Oe=cn(Ve,tt,de),xe=yo(j,["t","l"]),ge=yo(N,["t","l"]),Se=yo(j,["b","r"]),We=yo(N,["b","r"]),Ze=R.overflow||{},ot=Ze.adjustX,mt=Ze.adjustY,vt=Ze.shiftX,ut=Ze.shiftY,jt=function(wr){return typeof wr=="boolean"?wr:wr>=0},Ot,gt,At,Ft;mo();var tn=jt(mt),$e=Xe[0]===Re[0];if(tn&&Xe[0]==="t"&&(gt>oe.bottom||v.current.bt)){var _e=tt;$e?_e-=X-te:_e=xe.y-We.y-we;var De=cn(Ve,_e),He=cn(Ve,_e,de);De>st||De===st&&(!Ee||He>=Oe)?(v.current.bt=!0,tt=_e,we=-we,ct.points=[Sr(Xe,0),Sr(Re,0)]):v.current.bt=!1}if(tn&&Xe[0]==="b"&&(Ot<oe.top||v.current.tb)){var Le=tt;$e?Le+=X-te:Le=Se.y-ge.y-we;var Pt=cn(Ve,Le),Ct=cn(Ve,Le,de);Pt>st||Pt===st&&(!Ee||Ct>=Oe)?(v.current.tb=!0,tt=Le,we=-we,ct.points=[Sr(Xe,0),Sr(Re,0)]):v.current.tb=!1}var qt=jt(ot),Gt=Xe[1]===Re[1];if(qt&&Xe[1]==="l"&&(Ft>oe.right||v.current.rl)){var Dt=Ve;Gt?Dt-=ne-ee:Dt=xe.x-We.x-he;var Bt=cn(Dt,tt),sn=cn(Dt,tt,de);Bt>st||Bt===st&&(!Ee||sn>=Oe)?(v.current.rl=!0,Ve=Dt,he=-he,ct.points=[Sr(Xe,1),Sr(Re,1)]):v.current.rl=!1}if(qt&&Xe[1]==="r"&&(At<oe.left||v.current.lr)){var Yt=Ve;Gt?Yt+=ne-ee:Yt=Se.x-ge.x-he;var wn=cn(Yt,tt),Cn=cn(Yt,tt,de);wn>st||wn===st&&(!Ee||Cn>=Oe)?(v.current.lr=!0,Ve=Yt,he=-he,ct.points=[Sr(Xe,1),Sr(Re,1)]):v.current.lr=!1}mo();var yn=vt===!0?0:vt;typeof yn=="number"&&(At<de.left&&(Ve-=At-de.left-he,j.x+ee<de.left+yn&&(Ve+=j.x-de.left+ee-yn)),Ft>de.right&&(Ve-=Ft-de.right-he,j.x>de.right-yn&&(Ve+=j.x-de.right+yn)));var Mn=ut===!0?0:ut;typeof Mn=="number"&&(Ot<de.top&&(tt-=Ot-de.top-we,j.y+te<de.top+Mn&&(tt+=j.y-de.top+te-Mn)),gt>de.bottom&&(tt-=gt-de.bottom-we,j.y>de.bottom-Mn&&(tt+=j.y-de.bottom+Mn)));var In=N.x+Ve,Nn=In+ne,zn=N.y+tt,Zn=zn+X,Je=j.x,It=Je+ee,Xt=j.y,ze=Xt+te,ht=Math.max(In,Je),Wt=Math.min(Nn,It),nn=(ht+Wt)/2,Pn=nn-In,Rn=Math.max(zn,Xt),An=Math.min(Zn,ze),lr=(Rn+An)/2,et=lr-zn;i==null||i(t,ct);var it=Me.right-N.x-(Ve+N.width),Lt=Me.bottom-N.y-(tt+N.height);ke===1&&(Ve=Math.round(Ve),it=Math.round(it)),Fe===1&&(tt=Math.round(tt),Lt=Math.round(Lt));var Vt={ready:!0,offsetX:Ve/ke,offsetY:tt/Fe,offsetR:it/ke,offsetB:Lt/Fe,arrowX:Pn/ke,arrowY:et/Fe,scaleX:ke,scaleY:Fe,align:ct};d(Vt)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&m()})},b=function(){d(function(y){return U(U({},y),{},{ready:!1})})};return wt(b,[r]),wt(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function X$(e,t,n,r,o){wt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,l=dc(a),s=dc(i),c=Ta(i),d=new Set([c].concat(Ce(l),Ce(s)));return d.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function U$(e,t,n,r,o,a,i,l){var s=u.useRef(e);s.current=e;var c=u.useRef(!1);u.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){c.current=!1},p=function(m){var g;s.current&&!i(((g=m.composedPath)===null||g===void 0||(g=g.call(m))===null||g===void 0?void 0:g[0])||m.target)&&!c.current&&l(!1)},v=Ta(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",p,!0),v.addEventListener("contextmenu",p,!0);var h=Oi(n);return h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",p,!0),v.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,n,r,o,a]);function d(){c.current=!0}return d}var G$=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function K$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ih,t=u.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,v=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,m=n.mouseEnterDelay,g=n.mouseLeaveDelay,b=g===void 0?.1:g,y=n.focusDelay,x=n.blurDelay,w=n.mask,C=n.maskClosable,S=C===void 0?!0:C,E=n.getPopupContainer,$=n.forceRender,O=n.autoDestroy,k=n.destroyPopupOnHide,I=n.popup,M=n.popupClassName,B=n.popupStyle,D=n.popupPlacement,F=n.builtinPlacements,R=F===void 0?{}:F,H=n.popupAlign,j=n.zIndex,_=n.stretch,W=n.getPopupClassNameFromAlign,L=n.fresh,N=n.alignPoint,P=n.onPopupClick,A=n.onPopupAlign,T=n.arrow,z=n.popupMotion,V=n.maskMotion,q=n.popupTransitionName,Z=n.popupAnimation,G=n.maskTransitionName,J=n.maskAnimation,K=n.className,X=n.getTriggerDOMNode,ne=ft(n,G$),te=O||k||!1,ee=u.useState(!1),ie=Q(ee,2),se=ie[0],fe=ie[1];wt(function(){fe($u())},[]);var ve=u.useRef({}),me=u.useContext(Lf),Ee=u.useMemo(function(){return{registerSubPopup:function(qe,St){ve.current[qe]=St,me==null||me.registerSubPopup(qe,St)}}},[me]),le=yu(),de=u.useState(null),je=Q(de,2),oe=je[0],Me=je[1],ke=u.useRef(null),Fe=bt(function(qe){ke.current=qe,pa(qe)&&oe!==qe&&Me(qe),me==null||me.registerSubPopup(le,qe)}),Pe=u.useState(null),Ie=Q(Pe,2),ye=Ie[0],be=Ie[1],he=u.useRef(null),we=bt(function(qe){pa(qe)&&ye!==qe&&(be(qe),he.current=qe)}),Te=u.Children.only(i),ce=(Te==null?void 0:Te.props)||{},Ge={},rt=bt(function(qe){var St,gn,un=ye;return(un==null?void 0:un.contains(qe))||((St=Oi(un))===null||St===void 0?void 0:St.host)===qe||qe===un||(oe==null?void 0:oe.contains(qe))||((gn=Oi(oe))===null||gn===void 0?void 0:gn.host)===qe||qe===oe||Object.values(ve.current).some(function(Kt){return(Kt==null?void 0:Kt.contains(qe))||qe===Kt})}),at=Vf(a,z,Z,q),pt=Vf(a,V,J,G),Ne=u.useState(p||!1),Be=Q(Ne,2),Re=Be[0],Xe=Be[1],Ue=f??Re,lt=bt(function(qe){f===void 0&&Xe(qe)});wt(function(){Xe(f||!1)},[f]);var ct=u.useRef(Ue);ct.current=Ue;var Ve=u.useRef([]);Ve.current=[];var tt=bt(function(qe){var St;lt(qe),((St=Ve.current[Ve.current.length-1])!==null&&St!==void 0?St:Ue)!==qe&&(Ve.current.push(qe),v==null||v(qe))}),st=u.useRef(),Oe=function(){clearTimeout(st.current)},xe=function(qe){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Oe(),St===0?tt(qe):st.current=setTimeout(function(){tt(qe)},St*1e3)};u.useEffect(function(){return Oe},[]);var ge=u.useState(!1),Se=Q(ge,2),We=Se[0],Ze=Se[1];wt(function(qe){(!qe||Ue)&&Ze(!0)},[Ue]);var ot=u.useState(null),mt=Q(ot,2),vt=mt[0],ut=mt[1],jt=u.useState(null),Ot=Q(jt,2),gt=Ot[0],At=Ot[1],Ft=function(qe){At([qe.clientX,qe.clientY])},tn=Y$(Ue,oe,N&>!==null?gt:ye,D,R,H,A),$e=Q(tn,11),_e=$e[0],De=$e[1],He=$e[2],Le=$e[3],Pt=$e[4],Ct=$e[5],qt=$e[6],Gt=$e[7],Dt=$e[8],Bt=$e[9],sn=$e[10],Yt=W$(se,s,c,d),wn=Q(Yt,2),Cn=wn[0],yn=wn[1],Mn=Cn.has("click"),In=yn.has("click")||yn.has("contextMenu"),Nn=bt(function(){We||sn()}),zn=function(){ct.current&&N&&In&&xe(!1)};X$(Ue,ye,oe,Nn,zn),wt(function(){Nn()},[gt,D]),wt(function(){Ue&&!(R!=null&&R[D])&&Nn()},[JSON.stringify(H)]);var Zn=u.useMemo(function(){var qe=q$(R,a,Bt,N);return ae(qe,W==null?void 0:W(Bt))},[Bt,W,R,a,N]);u.useImperativeHandle(r,function(){return{nativeElement:he.current,popupElement:ke.current,forceAlign:Nn}});var Je=u.useState(0),It=Q(Je,2),Xt=It[0],ze=It[1],ht=u.useState(0),Wt=Q(ht,2),nn=Wt[0],Pn=Wt[1],Rn=function(){if(_&&ye){var qe=ye.getBoundingClientRect();ze(qe.width),Pn(qe.height)}},An=function(){Rn(),Nn()},lr=function(qe){Ze(!1),sn(),h==null||h(qe)},et=function(){return new Promise(function(qe){Rn(),ut(function(){return qe})})};wt(function(){vt&&(sn(),vt(),ut(null))},[vt]);function it(qe,St,gn,un){Ge[qe]=function(Kt){var Ha;un==null||un(Kt),xe(St,gn);for(var $l=arguments.length,ed=new Array($l>1?$l-1:0),za=1;za<$l;za++)ed[za-1]=arguments[za];(Ha=ce[qe])===null||Ha===void 0||Ha.call.apply(Ha,[ce,Kt].concat(ed))}}(Mn||In)&&(Ge.onClick=function(qe){var St;ct.current&&In?xe(!1):!ct.current&&Mn&&(Ft(qe),xe(!0));for(var gn=arguments.length,un=new Array(gn>1?gn-1:0),Kt=1;Kt<gn;Kt++)un[Kt-1]=arguments[Kt];(St=ce.onClick)===null||St===void 0||St.call.apply(St,[ce,qe].concat(un))});var Lt=U$(Ue,In,ye,oe,w,S,rt,xe),Vt=Cn.has("hover"),cn=yn.has("hover"),mo,wr;Vt&&(it("onMouseEnter",!0,m,function(qe){Ft(qe)}),it("onPointerEnter",!0,m,function(qe){Ft(qe)}),mo=function(qe){(Ue||We)&&oe!==null&&oe!==void 0&&oe.contains(qe.target)&&xe(!0,m)},N&&(Ge.onMouseMove=function(qe){var St;(St=ce.onMouseMove)===null||St===void 0||St.call(ce,qe)})),cn&&(it("onMouseLeave",!1,b),it("onPointerLeave",!1,b),wr=function(){xe(!1,b)}),Cn.has("focus")&&it("onFocus",!0,y),yn.has("focus")&&it("onBlur",!1,x),Cn.has("contextMenu")&&(Ge.onContextMenu=function(qe){var St;ct.current&&yn.has("contextMenu")?xe(!1):(Ft(qe),xe(!0)),qe.preventDefault();for(var gn=arguments.length,un=new Array(gn>1?gn-1:0),Kt=1;Kt<gn;Kt++)un[Kt-1]=arguments[Kt];(St=ce.onContextMenu)===null||St===void 0||St.call.apply(St,[ce,qe].concat(un))}),K&&(Ge.className=ae(ce.className,K));var Go=u.useRef(!1);Go.current||(Go.current=$||Ue||We);var Cr=U(U({},ce),Ge),Ko={},Ba=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ba.forEach(function(qe){ne[qe]&&(Ko[qe]=function(){for(var St,gn=arguments.length,un=new Array(gn),Kt=0;Kt<gn;Kt++)un[Kt]=arguments[Kt];(St=Cr[qe])===null||St===void 0||St.call.apply(St,[Cr].concat(un)),ne[qe].apply(ne,un)})});var Cl=u.cloneElement(Te,U(U({},Cr),Ko)),Sl={x:Ct,y:qt},El=T?U({},T!==!0?T:{}):null;return u.createElement(u.Fragment,null,u.createElement(mr,{disabled:!Ue,ref:we,onResize:An},u.createElement(L$,{getTriggerDOMNode:X},Cl)),Go.current&&u.createElement(Lf.Provider,{value:Ee},u.createElement(_$,{portal:e,ref:Fe,prefixCls:a,popup:I,className:ae(M,Zn),style:B,target:ye,onMouseEnter:mo,onMouseLeave:wr,onPointerEnter:mo,zIndex:j,open:Ue,keepDom:We,fresh:L,onClick:P,onPointerDownCapture:Lt,mask:w,motion:at,maskMotion:pt,onVisibleChanged:lr,onPrepare:et,forceRender:$,autoDestroy:te,getPopupContainer:E,align:Bt,arrow:El,arrowPos:Sl,ready:_e,offsetX:De,offsetY:He,offsetR:Le,offsetB:Pt,onAlign:Nn,stretch:_,targetWidth:Xt/Gt,targetHeight:nn/Dt})))});return t}const ku=K$(ih);var Q$=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Z$=function(e){var t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},J$=function(e,t){var n=e.prefixCls,r=e.visible,o=e.children,a=e.popupElement,i=e.animation,l=e.transitionName,s=e.dropdownStyle,c=e.dropdownClassName,d=e.direction,f=d===void 0?"ltr":d,p=e.placement,v=e.builtinPlacements,h=e.dropdownMatchSelectWidth,m=e.dropdownRender,g=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,C=e.onPopupMouseEnter,S=ft(e,Q$),E="".concat(n,"-dropdown"),$=a;m&&($=m(a));var O=u.useMemo(function(){return v||Z$(h)},[v,h]),k=i?"".concat(E,"-").concat(i):l,I=typeof h=="number",M=u.useMemo(function(){return I?null:h===!1?"minWidth":"width"},[h,I]),B=s;I&&(B=U(U({},B),{},{width:h}));var D=u.useRef(null);return u.useImperativeHandle(t,function(){return{getPopupElement:function(){var F;return(F=D.current)===null||F===void 0?void 0:F.popupElement}}}),u.createElement(ku,Ae({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:E,popupTransitionName:k,popup:u.createElement("div",{onMouseEnter:C},$),ref:D,stretch:M,popupAlign:g,popupVisible:r,getPopupContainer:b,popupClassName:ae(c,Y({},"".concat(E,"-empty"),y)),popupStyle:B,getTriggerDOMNode:x,onPopupVisibleChange:w}),o)},ek=u.forwardRef(J$);function Gf(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function fc(e){return typeof e<"u"&&!Number.isNaN(e)}function kh(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function tk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=kh(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;function d(f,p){Array.isArray(f)&&f.forEach(function(v){if(p||!(s in v)){var h=v[l];o.push({key:Gf(v,o.length),groupOption:p,data:v,label:v[i],value:h})}else{var m=v[c];m===void 0&&r&&(m=v.label),o.push({key:Gf(v,o.length),group:!0,data:v,label:m}),d(v[s],!0)}})}return d(e,!1),o}function pc(e){var t=U({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return vn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var nk=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function i(l,s){var c=rg(s),d=c[0],f=c.slice(1);if(!d)return[l];var p=l.split(d);return r=r||p.length>1,p.reduce(function(v,h){return[].concat(Ce(v),Ce(i(h,f)))},[]).filter(Boolean)},a=o(e,t);return r?typeof n<"u"?a.slice(0,n):a:null},Ou=u.createContext(null);function rk(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(Qe(a))?a:i}).join(", ")),n.length>r?", ...":null)}var ok=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ak=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],mc=function(e){return e==="tags"||e==="multiple"},ik=u.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,m=e.onClear,g=e.mode,b=e.disabled,y=e.loading,x=e.getInputElement,w=e.getRawInputElement,C=e.open,S=e.defaultOpen,E=e.onDropdownVisibleChange,$=e.activeValue,O=e.onActiveValueChange,k=e.activeDescendantId,I=e.searchValue,M=e.autoClearSearchValue,B=e.onSearch,D=e.onSearchSplit,F=e.tokenSeparators,R=e.allowClear,H=e.prefix,j=e.suffixIcon,_=e.clearIcon,W=e.OptionList,L=e.animation,N=e.transitionName,P=e.dropdownStyle,A=e.dropdownClassName,T=e.dropdownMatchSelectWidth,z=e.dropdownRender,V=e.dropdownAlign,q=e.placement,Z=e.builtinPlacements,G=e.getPopupContainer,J=e.showAction,K=J===void 0?[]:J,X=e.onFocus,ne=e.onBlur,te=e.onKeyUp,ee=e.onKeyDown,ie=e.onMouseDown,se=ft(e,ok),fe=mc(g),ve=(i!==void 0?i:fe)||g==="combobox",me=U({},se);ak.forEach(function(Je){delete me[Je]}),c==null||c.forEach(function(Je){delete me[Je]});var Ee=u.useState(!1),le=Q(Ee,2),de=le[0],je=le[1];u.useEffect(function(){je($u())},[]);var oe=u.useRef(null),Me=u.useRef(null),ke=u.useRef(null),Fe=u.useRef(null),Pe=u.useRef(null),Ie=u.useRef(!1),ye=d$(),be=Q(ye,3),he=be[0],we=be[1],Te=be[2];u.useImperativeHandle(t,function(){var Je,It;return{focus:(Je=Fe.current)===null||Je===void 0?void 0:Je.focus,blur:(It=Fe.current)===null||It===void 0?void 0:It.blur,scrollTo:function(Xt){var ze;return(ze=Pe.current)===null||ze===void 0?void 0:ze.scrollTo(Xt)},nativeElement:oe.current||Me.current}});var ce=u.useMemo(function(){var Je;if(g!=="combobox")return I;var It=(Je=d[0])===null||Je===void 0?void 0:Je.value;return typeof It=="string"||typeof It=="number"?String(It):""},[I,g,d]),Ge=g==="combobox"&&typeof x=="function"&&x()||null,rt=typeof w=="function"&&w(),at=Ma(Me,rt==null||(n=rt.props)===null||n===void 0?void 0:n.ref),pt=u.useState(!1),Ne=Q(pt,2),Be=Ne[0],Re=Ne[1];wt(function(){Re(!0)},[]);var Xe=Qt(!1,{defaultValue:S,value:C}),Ue=Q(Xe,2),lt=Ue[0],ct=Ue[1],Ve=Be?lt:!1,tt=!h&&p;(b||tt&&Ve&&g==="combobox")&&(Ve=!1);var st=tt?!1:Ve,Oe=u.useCallback(function(Je){var It=Je!==void 0?Je:!Ve;b||(ct(It),Ve!==It&&(E==null||E(It)))},[b,Ve,ct,E]),xe=u.useMemo(function(){return(F||[]).some(function(Je){return[`
|
|
246
|
+
`,`\r
|
|
247
|
+
`].includes(Je)})},[F]),ge=u.useContext(Ou)||{},Se=ge.maxCount,We=ge.rawValues,Ze=function(Je,It,Xt){if(!(fe&&fc(Se)&&(We==null?void 0:We.size)>=Se)){var ze=!0,ht=Je;O==null||O(null);var Wt=nk(Je,F,fc(Se)?Se-We.size:void 0),nn=Xt?null:Wt;return g!=="combobox"&&nn&&(ht="",D==null||D(nn),Oe(!1),ze=!1),B&&ce!==ht&&B(ht,{source:It?"typing":"effect"}),ze}},ot=function(Je){!Je||!Je.trim()||B(Je,{source:"submit"})};u.useEffect(function(){!Ve&&!fe&&g!=="combobox"&&Ze("",!1,!1)},[Ve]),u.useEffect(function(){lt&&b&&ct(!1),b&&!Ie.current&&we(!1)},[b]);var mt=yh(),vt=Q(mt,2),ut=vt[0],jt=vt[1],Ot=u.useRef(!1),gt=function(Je){var It=ut(),Xt=Je.key,ze=Xt==="Enter";if(ze&&(g!=="combobox"&&Je.preventDefault(),Ve||Oe(!0)),jt(!!ce),Xt==="Backspace"&&!It&&fe&&!ce&&d.length){for(var ht=Ce(d),Wt=null,nn=ht.length-1;nn>=0;nn-=1){var Pn=ht[nn];if(!Pn.disabled){ht.splice(nn,1),Wt=Pn;break}}Wt&&f(ht,{type:"remove",values:[Wt]})}for(var Rn=arguments.length,An=new Array(Rn>1?Rn-1:0),lr=1;lr<Rn;lr++)An[lr-1]=arguments[lr];if(Ve&&(!ze||!Ot.current)){var et;ze&&(Ot.current=!0),(et=Pe.current)===null||et===void 0||et.onKeyDown.apply(et,[Je].concat(An))}ee==null||ee.apply(void 0,[Je].concat(An))},At=function(Je){for(var It=arguments.length,Xt=new Array(It>1?It-1:0),ze=1;ze<It;ze++)Xt[ze-1]=arguments[ze];if(Ve){var ht;(ht=Pe.current)===null||ht===void 0||ht.onKeyUp.apply(ht,[Je].concat(Xt))}Je.key==="Enter"&&(Ot.current=!1),te==null||te.apply(void 0,[Je].concat(Xt))},Ft=function(Je){var It=d.filter(function(Xt){return Xt!==Je});f(It,{type:"remove",values:[Je]})},tn=function(){Ot.current=!1},$e=u.useRef(!1),_e=function(){we(!0),b||(X&&!$e.current&&X.apply(void 0,arguments),K.includes("focus")&&Oe(!0)),$e.current=!0},De=function(){Ie.current=!0,we(!1,function(){$e.current=!1,Ie.current=!1,Oe(!1)}),!b&&(ce&&(g==="tags"?B(ce,{source:"submit"}):g==="multiple"&&B("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},He=[];u.useEffect(function(){return function(){He.forEach(function(Je){return clearTimeout(Je)}),He.splice(0,He.length)}},[]);var Le=function(Je){var It,Xt=Je.target,ze=(It=ke.current)===null||It===void 0?void 0:It.getPopupElement();if(ze&&ze.contains(Xt)){var ht=setTimeout(function(){var Rn=He.indexOf(ht);if(Rn!==-1&&He.splice(Rn,1),Te(),!de&&!ze.contains(document.activeElement)){var An;(An=Fe.current)===null||An===void 0||An.focus()}});He.push(ht)}for(var Wt=arguments.length,nn=new Array(Wt>1?Wt-1:0),Pn=1;Pn<Wt;Pn++)nn[Pn-1]=arguments[Pn];ie==null||ie.apply(void 0,[Je].concat(nn))},Pt=u.useState({}),Ct=Q(Pt,2),qt=Ct[1];function Gt(){qt({})}var Dt;rt&&(Dt=function(Je){Oe(Je)}),f$(function(){var Je;return[oe.current,(Je=ke.current)===null||Je===void 0?void 0:Je.getPopupElement()]},st,Oe,!!rt);var Bt=u.useMemo(function(){return U(U({},e),{},{notFoundContent:h,open:Ve,triggerOpen:st,id:r,showSearch:ve,multiple:fe,toggleOpen:Oe})},[e,h,st,Ve,r,ve,fe,Oe]),sn=!!j||y,Yt;sn&&(Yt=u.createElement(cl,{className:ae("".concat(o,"-arrow"),Y({},"".concat(o,"-arrow-loading"),y)),customizeIcon:j,customizeIconProps:{loading:y,searchValue:ce,open:Ve,focused:he,showSearch:ve}}));var wn=function(){var Je;m==null||m(),(Je=Fe.current)===null||Je===void 0||Je.focus(),f([],{type:"clear",values:d}),Ze("",!1,!1)},Cn=c$(o,wn,d,R,_,b,ce,g),yn=Cn.allowClear,Mn=Cn.clearIcon,In=u.createElement(W,{ref:Pe}),Nn=ae(o,a,Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},"".concat(o,"-focused"),he),"".concat(o,"-multiple"),fe),"".concat(o,"-single"),!fe),"".concat(o,"-allow-clear"),R),"".concat(o,"-show-arrow"),sn),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),y),"".concat(o,"-open"),Ve),"".concat(o,"-customize-input"),Ge),"".concat(o,"-show-search"),ve)),zn=u.createElement(ek,{ref:ke,disabled:b,prefixCls:o,visible:st,popupElement:In,animation:L,transitionName:N,dropdownStyle:P,dropdownClassName:A,direction:s,dropdownMatchSelectWidth:T,dropdownRender:z,dropdownAlign:V,placement:q,builtinPlacements:Z,getPopupContainer:G,empty:p,getTriggerDOMNode:function(Je){return Me.current||Je},onPopupVisibleChange:Dt,onPopupMouseEnter:Gt},rt?u.cloneElement(rt,{ref:at}):u.createElement(D$,Ae({},e,{domRef:Me,prefixCls:o,inputElement:Ge,ref:Fe,id:r,prefix:H,showSearch:ve,autoClearSearchValue:M,mode:g,activeDescendantId:k,tagRender:l,values:d,open:Ve,onToggleOpen:Oe,activeValue:$,searchValue:ce,onSearch:Ze,onSearchSubmit:ot,onRemove:Ft,tokenWithEnter:xe,onInputBlur:tn}))),Zn;return rt?Zn=zn:Zn=u.createElement("div",Ae({className:Nn},me,{ref:oe,onMouseDown:Le,onKeyDown:gt,onKeyUp:At,onFocus:_e,onBlur:De}),u.createElement(rk,{visible:he&&!Ve,values:d}),zn,Yt,yn&&Mn),u.createElement(bh.Provider,{value:Bt},Zn)}),Mu=function(){return null};Mu.isSelectOptGroup=!0;var Iu=function(){return null};Iu.isSelectOption=!0;var Oh=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},p=U(U({},p),{},Y(Y(Y(Y(Y({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:f},u.createElement(mr,{onResize:function(v){var h=v.offsetHeight;h&&l&&l()}},u.createElement("div",Ae({style:p,className:ae(Y({},"".concat(i,"-holder-inner"),i)),ref:t},s),a,d)))});Oh.displayName="Filler";function lk(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function sk(e,t,n,r,o,a,i,l){var s=l.getKey;return e.slice(t,n+1).map(function(c,d){var f=t+d,p=i(c,f,{style:{width:r},offsetX:o}),v=s(c);return u.createElement(lk,{key:v,setRef:function(h){return a(c,h)}},p)})}function ck(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var l={__EMPTY_ITEM__:!0};function s(h){return h!==void 0?n(h):l}for(var c=null,d=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var p=s(a[f]),v=s(i[f]);if(p!==v){c=f,d=d||p!==s(i[f+1]);break}}return c===null?null:{index:c,multiple:d}}function uk(e,t,n){var r=u.useState(e),o=Q(r,2),a=o[0],i=o[1],l=u.useState(null),s=Q(l,2),c=s[0],d=s[1];return u.useEffect(function(){var f=ck(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[c]}var Kf=(typeof navigator>"u"?"undefined":Qe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Mh=(function(e,t,n,r){var o=Ye(!1),a=Ye(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var l=Ye({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(s,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=s?c<0&&l.current.left||c>0&&l.current.right:c<0&&l.current.top||c>0&&l.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}});function dk(e,t,n,r,o,a,i){var l=Ye(0),s=Ye(null),c=Ye(null),d=Ye(!1),f=Mh(t,n,r,o);function p(y,x){if(dt.cancel(s.current),!f(!1,x)){var w=y;if(!w._virtualHandled)w._virtualHandled=!0;else return;l.current+=x,c.current=x,Kf||w.preventDefault(),s.current=dt(function(){var C=d.current?10:1;i(l.current*C,!1),l.current=0})}}function v(y,x){i(x,!0),Kf||y.preventDefault()}var h=Ye(null),m=Ye(null);function g(y){if(e){dt.cancel(m.current),m.current=dt(function(){h.current=null},2);var x=y.deltaX,w=y.deltaY,C=y.shiftKey,S=x,E=w;(h.current==="sx"||!h.current&&C&&w&&!x)&&(S=w,E=0,h.current="sx");var $=Math.abs(S),O=Math.abs(E);h.current===null&&(h.current=a&&$>O?"x":"y"),h.current==="y"?p(y,E):v(y,S)}}function b(y){e&&(d.current=y.detail===c.current)}return[g,b]}function fk(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Q(o,2),i=a[0],l=a[1],s=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,f=i.get(c),p=i.get(d);if(f===void 0||p===void 0)for(var v=e.length,h=l.length;h<v;h+=1){var m,g=e[h],b=t(g);i.set(b,h);var y=(m=n.get(b))!==null&&m!==void 0?m:r;if(l[h]=(l[h-1]||0)+y,b===c&&(f=h),b===d&&(p=h),f!==void 0&&p!==void 0)break}return{top:l[f-1]||0,bottom:l[p]}};return s}var pk=(function(){function e(){Jt(this,e),Y(this,"maps",void 0),Y(this,"id",0),Y(this,"diffRecords",new Map),this.maps=Object.create(null)}return en(e,[{key:"set",value:function(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}},{key:"get",value:function(t){return this.maps[t]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Qf(e){var t=parseFloat(e);return isNaN(t)?0:t}function mk(e,t,n){var r=u.useState(0),o=Q(r,2),a=o[0],i=o[1],l=Ye(new Map),s=Ye(new pk),c=Ye(0);function d(){c.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){var g=!1;l.current.forEach(function(b,y){if(b&&b.offsetParent){var x=b.offsetHeight,w=getComputedStyle(b),C=w.marginTop,S=w.marginBottom,E=Qf(C),$=Qf(S),O=x+E+$;s.current.get(y)!==O&&(s.current.set(y,O),g=!0)}}),g&&i(function(b){return b+1})};if(v)h();else{c.current+=1;var m=c.current;Promise.resolve().then(function(){m===c.current&&h()})}}function p(v,h){var m=e(v);l.current.get(m),h?(l.current.set(m,h),f()):l.current.delete(m)}return Mt(function(){return d},[]),[p,f,s.current,a]}var Zf=14/15;function gk(e,t,n){var r=Ye(!1),o=Ye(0),a=Ye(0),i=Ye(null),l=Ye(null),s,c=function(p){if(r.current){var v=Math.ceil(p.touches[0].pageX),h=Math.ceil(p.touches[0].pageY),m=o.current-v,g=a.current-h,b=Math.abs(m)>Math.abs(g);b?o.current=v:a.current=h;var y=n(b,b?m:g,!1,p);y&&p.preventDefault(),clearInterval(l.current),y&&(l.current=setInterval(function(){b?m*=Zf:g*=Zf;var x=Math.floor(b?m:g);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,s()},f=function(p){s(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",c,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};s=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",d))},wt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),s(),clearInterval(l.current)}},[e])}function Jf(e){return Math.floor(Math.pow(e,.5))}function gc(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function hk(e,t,n){u.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,l=function(){dt.cancel(a)},s=function p(){l(),a=dt(function(){n(i),p()})},c=function(){o=!1,l()},d=function(p){if(!(p.target.draggable||p.button!==0)){var v=p;v._virtualHandled||(v._virtualHandled=!0,o=!0)}},f=function(p){if(o){var v=gc(p,!1),h=r.getBoundingClientRect(),m=h.top,g=h.bottom;if(v<=m){var b=m-v;i=-Jf(b),s()}else if(v>=g){var y=v-g;i=Jf(y),s()}else l()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),l()}}},[e])}var vk=10;function bk(e,t,n,r,o,a,i,l){var s=u.useRef(),c=u.useState(null),d=Q(c,2),f=d[0],p=d[1];return wt(function(){if(f&&f.times<vk){if(!e.current){p(function(_){return U({},_)});return}a();var v=f.targetAlign,h=f.originAlign,m=f.index,g=f.offset,b=e.current.clientHeight,y=!1,x=v,w=null;if(b){for(var C=v||h,S=0,E=0,$=0,O=Math.min(t.length-1,m),k=0;k<=O;k+=1){var I=o(t[k]);E=S;var M=n.get(I);$=E+(M===void 0?r:M),S=$}for(var B=C==="top"?g:b-g,D=O;D>=0;D-=1){var F=o(t[D]),R=n.get(F);if(R===void 0){y=!0;break}if(B-=R,B<=0)break}switch(C){case"top":w=E-g;break;case"bottom":w=$-b+g;break;default:{var H=e.current.scrollTop,j=H+b;E<H?x="top":$>j&&(x="bottom")}}w!==null&&i(w),w!==f.lastTop&&(y=!0)}y&&p(U(U({},f),{},{times:f.times+1,targetAlign:x,lastTop:w}))}},[f,e.current]),function(v){if(v==null){l();return}if(dt.cancel(s.current),typeof v=="number")i(v);else if(v&&Qe(v)==="object"){var h,m=v.align;"index"in v?h=v.index:h=t.findIndex(function(y){return o(y)===v.key});var g=v.offset,b=g===void 0?0:g;p({times:0,index:h,offset:b,originAlign:m})}}}var ep=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,v=e.thumbStyle,h=e.showScrollBar,m=u.useState(!1),g=Q(m,2),b=g[0],y=g[1],x=u.useState(null),w=Q(x,2),C=w[0],S=w[1],E=u.useState(null),$=Q(E,2),O=$[0],k=$[1],I=!r,M=u.useRef(),B=u.useRef(),D=u.useState(h),F=Q(D,2),R=F[0],H=F[1],j=u.useRef(),_=function(){h===!0||h===!1||(clearTimeout(j.current),H(!0),j.current=setTimeout(function(){H(!1)},3e3))},W=a-f||0,L=f-d||0,N=u.useMemo(function(){if(o===0||W===0)return 0;var J=o/W;return J*L},[o,W,L]),P=function(J){J.stopPropagation(),J.preventDefault()},A=u.useRef({top:N,dragging:b,pageY:C,startTop:O});A.current={top:N,dragging:b,pageY:C,startTop:O};var T=function(J){y(!0),S(gc(J,c)),k(A.current.top),i(),J.stopPropagation(),J.preventDefault()};u.useEffect(function(){var J=function(ne){ne.preventDefault()},K=M.current,X=B.current;return K.addEventListener("touchstart",J,{passive:!1}),X.addEventListener("touchstart",T,{passive:!1}),function(){K.removeEventListener("touchstart",J),X.removeEventListener("touchstart",T)}},[]);var z=u.useRef();z.current=W;var V=u.useRef();V.current=L,u.useEffect(function(){if(b){var J,K=function(ne){var te=A.current,ee=te.dragging,ie=te.pageY,se=te.startTop;dt.cancel(J);var fe=M.current.getBoundingClientRect(),ve=f/(c?fe.width:fe.height);if(ee){var me=(gc(ne,c)-ie)*ve,Ee=se;!I&&c?Ee-=me:Ee+=me;var le=z.current,de=V.current,je=de?Ee/de:0,oe=Math.ceil(je*le);oe=Math.max(oe,0),oe=Math.min(oe,le),J=dt(function(){s(oe,c)})}},X=function(){y(!1),l()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),function(){window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),dt.cancel(J)}}},[b]),u.useEffect(function(){return _(),function(){clearTimeout(j.current)}},[o]),u.useImperativeHandle(t,function(){return{delayHidden:_}});var q="".concat(n,"-scrollbar"),Z={position:"absolute",visibility:R?null:"hidden"},G={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(Z,{height:8,left:0,right:0,bottom:0}),Object.assign(G,Y({height:"100%",width:d},I?"left":"right",N))):(Object.assign(Z,Y({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(G,{width:"100%",height:d,top:N})),u.createElement("div",{ref:M,className:ae(q,Y(Y(Y({},"".concat(q,"-horizontal"),c),"".concat(q,"-vertical"),!c),"".concat(q,"-visible"),R)),style:U(U({},Z),p),onMouseDown:P,onMouseMove:_},u.createElement("div",{ref:B,className:ae("".concat(q,"-thumb"),Y({},"".concat(q,"-thumb-moving"),b)),style:U(U({},G),v),onMouseDown:T}))}),yk=20;function tp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,yk),Math.floor(n)}var xk=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],wk=[],Ck={overflowY:"auto",overflowAnchor:"none"};function Sk(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,c=e.style,d=e.data,f=e.children,p=e.itemKey,v=e.virtual,h=e.direction,m=e.scrollWidth,g=e.component,b=g===void 0?"div":g,y=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,S=e.extraRender,E=e.styles,$=e.showScrollBar,O=$===void 0?"optional":$,k=ft(e,xk),I=u.useCallback(function($e){return typeof p=="function"?p($e):$e==null?void 0:$e[p]},[p]),M=mk(I),B=Q(M,4),D=B[0],F=B[1],R=B[2],H=B[3],j=!!(v!==!1&&a&&i),_=u.useMemo(function(){return Object.values(R.maps).reduce(function($e,_e){return $e+_e},0)},[R.id,R.maps]),W=j&&d&&(Math.max(i*d.length,_)>a||!!m),L=h==="rtl",N=ae(r,Y({},"".concat(r,"-rtl"),L),o),P=d||wk,A=Ye(),T=Ye(),z=Ye(),V=Nt(0),q=Q(V,2),Z=q[0],G=q[1],J=Nt(0),K=Q(J,2),X=K[0],ne=K[1],te=Nt(!1),ee=Q(te,2),ie=ee[0],se=ee[1],fe=function(){se(!0)},ve=function(){se(!1)},me={getKey:I};function Ee($e){G(function(_e){var De;typeof $e=="function"?De=$e(_e):De=$e;var He=Re(De);return A.current.scrollTop=He,He})}var le=Ye({start:0,end:P.length}),de=Ye(),je=uk(P,I),oe=Q(je,1),Me=oe[0];de.current=Me;var ke=u.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:P.length-1,offset:void 0};if(!W){var $e;return{scrollHeight:(($e=T.current)===null||$e===void 0?void 0:$e.offsetHeight)||0,start:0,end:P.length-1,offset:void 0}}for(var _e=0,De,He,Le,Pt=P.length,Ct=0;Ct<Pt;Ct+=1){var qt=P[Ct],Gt=I(qt),Dt=R.get(Gt),Bt=_e+(Dt===void 0?i:Dt);Bt>=Z&&De===void 0&&(De=Ct,He=_e),Bt>Z+a&&Le===void 0&&(Le=Ct),_e=Bt}return De===void 0&&(De=0,He=0,Le=Math.ceil(a/i)),Le===void 0&&(Le=P.length-1),Le=Math.min(Le+1,P.length-1),{scrollHeight:_e,start:De,end:Le,offset:He}},[W,j,Z,P,H,a]),Fe=ke.scrollHeight,Pe=ke.start,Ie=ke.end,ye=ke.offset;le.current.start=Pe,le.current.end=Ie,u.useLayoutEffect(function(){var $e=R.getRecord();if($e.size===1){var _e=Array.from($e.keys())[0],De=$e.get(_e),He=P[Pe];if(He&&De===void 0){var Le=I(He);if(Le===_e){var Pt=R.get(_e),Ct=Pt-i;Ee(function(qt){return qt+Ct})}}}R.resetRecord()},[Fe]);var be=u.useState({width:0,height:a}),he=Q(be,2),we=he[0],Te=he[1],ce=function($e){Te({width:$e.offsetWidth,height:$e.offsetHeight})},Ge=Ye(),rt=Ye(),at=u.useMemo(function(){return tp(we.width,m)},[we.width,m]),pt=u.useMemo(function(){return tp(we.height,Fe)},[we.height,Fe]),Ne=Fe-a,Be=Ye(Ne);Be.current=Ne;function Re($e){var _e=$e;return Number.isNaN(Be.current)||(_e=Math.min(_e,Be.current)),_e=Math.max(_e,0),_e}var Xe=Z<=0,Ue=Z>=Ne,lt=X<=0,ct=X>=m,Ve=Mh(Xe,Ue,lt,ct),tt=function(){return{x:L?-X:X,y:Z}},st=Ye(tt()),Oe=bt(function($e){if(x){var _e=U(U({},tt()),$e);(st.current.x!==_e.x||st.current.y!==_e.y)&&(x(_e),st.current=_e)}});function xe($e,_e){var De=$e;_e?(ms(function(){ne(De)}),Oe()):Ee(De)}function ge($e){var _e=$e.currentTarget.scrollTop;_e!==Z&&Ee(_e),y==null||y($e),Oe()}var Se=function($e){var _e=$e,De=m?m-we.width:0;return _e=Math.max(_e,0),_e=Math.min(_e,De),_e},We=bt(function($e,_e){_e?(ms(function(){ne(function(De){var He=De+(L?-$e:$e);return Se(He)})}),Oe()):Ee(function(De){var He=De+$e;return He})}),Ze=dk(j,Xe,Ue,lt,ct,!!m,We),ot=Q(Ze,2),mt=ot[0],vt=ot[1];gk(j,A,function($e,_e,De,He){var Le=He;return Ve($e,_e,De)?!1:!Le||!Le._virtualHandled?(Le&&(Le._virtualHandled=!0),mt({preventDefault:function(){},deltaX:$e?_e:0,deltaY:$e?0:_e}),!0):!1}),hk(W,A,function($e){Ee(function(_e){return _e+$e})}),wt(function(){function $e(De){var He=Xe&&De.detail<0,Le=Ue&&De.detail>0;j&&!He&&!Le&&De.preventDefault()}var _e=A.current;return _e.addEventListener("wheel",mt,{passive:!1}),_e.addEventListener("DOMMouseScroll",vt,{passive:!0}),_e.addEventListener("MozMousePixelScroll",$e,{passive:!1}),function(){_e.removeEventListener("wheel",mt),_e.removeEventListener("DOMMouseScroll",vt),_e.removeEventListener("MozMousePixelScroll",$e)}},[j,Xe,Ue]),wt(function(){if(m){var $e=Se(X);ne($e),Oe({x:$e})}},[we.width,m]);var ut=function(){var $e,_e;($e=Ge.current)===null||$e===void 0||$e.delayHidden(),(_e=rt.current)===null||_e===void 0||_e.delayHidden()},jt=bk(A,P,R,i,I,function(){return F(!0)},Ee,ut);u.useImperativeHandle(t,function(){return{nativeElement:z.current,getScrollInfo:tt,scrollTo:function($e){function _e(De){return De&&Qe(De)==="object"&&("left"in De||"top"in De)}_e($e)?($e.left!==void 0&&ne(Se($e.left)),jt($e.top)):jt($e)}}}),wt(function(){if(w){var $e=P.slice(Pe,Ie+1);w($e,P)}},[Pe,Ie,P]);var Ot=fk(P,I,R,i),gt=S==null?void 0:S({start:Pe,end:Ie,virtual:W,offsetX:X,offsetY:ye,rtl:L,getSize:Ot}),At=sk(P,Pe,Ie,m,X,D,f,me),Ft=null;a&&(Ft=U(Y({},s?"height":"maxHeight",a),Ck),j&&(Ft.overflowY="hidden",m&&(Ft.overflowX="hidden"),ie&&(Ft.pointerEvents="none")));var tn={};return L&&(tn.dir="rtl"),u.createElement("div",Ae({ref:z,style:U(U({},c),{},{position:"relative"}),className:N},tn,k),u.createElement(mr,{onResize:ce},u.createElement(b,{className:"".concat(r,"-holder"),style:Ft,ref:A,onScroll:ge,onMouseEnter:ut},u.createElement(Oh,{prefixCls:r,height:Fe,offsetX:X,offsetY:ye,scrollWidth:m,onInnerResize:F,ref:T,innerProps:C,rtl:L,extra:gt},At))),W&&Fe>a&&u.createElement(ep,{ref:Ge,prefixCls:r,scrollOffset:Z,scrollRange:Fe,rtl:L,onScroll:xe,onStartMove:fe,onStopMove:ve,spinSize:pt,containerSize:we.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb,showScrollBar:O}),W&&m>we.width&&u.createElement(ep,{ref:rt,prefixCls:r,scrollOffset:X,scrollRange:m,rtl:L,onScroll:xe,onStartMove:fe,onStopMove:ve,spinSize:at,containerSize:we.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb,showScrollBar:O}))}var Ih=u.forwardRef(Sk);Ih.displayName="List";function Ek(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var $k=["disabled","title","children","style","className"];function np(e){return typeof e=="string"||typeof e=="number"}var kk=function(e,t){var n=u$(),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,l=n.mode,s=n.searchValue,c=n.toggleOpen,d=n.notFoundContent,f=n.onPopupScroll,p=u.useContext(Ou),v=p.maxCount,h=p.flattenOptions,m=p.onActiveValue,g=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,w=p.fieldNames,C=p.virtual,S=p.direction,E=p.listHeight,$=p.listItemHeight,O=p.optionRender,k="".concat(r,"-item"),I=Li(function(){return h},[a,h],function(G,J){return J[0]&&G[1]!==J[1]}),M=u.useRef(null),B=u.useMemo(function(){return i&&fc(v)&&(x==null?void 0:x.size)>=v},[i,v,x==null?void 0:x.size]),D=function(G){G.preventDefault()},F=function(G){var J;(J=M.current)===null||J===void 0||J.scrollTo(typeof G=="number"?{index:G}:G)},R=u.useCallback(function(G){return l==="combobox"?!1:x.has(G)},[l,Ce(x).toString(),x.size]),H=function(G){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,K=I.length,X=0;X<K;X+=1){var ne=(G+X*J+K)%K,te=I[ne]||{},ee=te.group,ie=te.data;if(!ee&&!(ie!=null&&ie.disabled)&&(R(ie.value)||!B))return ne}return-1},j=u.useState(function(){return H(0)}),_=Q(j,2),W=_[0],L=_[1],N=function(G){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;L(G);var K={source:J?"keyboard":"mouse"},X=I[G];if(!X){m(null,-1,K);return}m(X.value,G,K)};Mt(function(){N(g!==!1?H(0):-1)},[I.length,s]);var P=u.useCallback(function(G){return l==="combobox"?String(G).toLowerCase()===s.toLowerCase():x.has(G)},[l,s,Ce(x).toString(),x.size]);Mt(function(){var G=setTimeout(function(){if(!i&&a&&x.size===1){var K=Array.from(x)[0],X=I.findIndex(function(ne){var te=ne.data;return s?String(te.value).startsWith(s):te.value===K});X!==-1&&(N(X),F(X))}});if(a){var J;(J=M.current)===null||J===void 0||J.scrollTo(void 0)}return function(){return clearTimeout(G)}},[a,s]);var A=function(G){G!==void 0&&b(G,{selected:!x.has(G)}),i||c(!1)};if(u.useImperativeHandle(t,function(){return{onKeyDown:function(G){var J=G.which,K=G.ctrlKey;switch(J){case Ke.N:case Ke.P:case Ke.UP:case Ke.DOWN:{var X=0;if(J===Ke.UP?X=-1:J===Ke.DOWN?X=1:Ek()&&K&&(J===Ke.N?X=1:J===Ke.P&&(X=-1)),X!==0){var ne=H(W+X,X);F(ne),N(ne,!0)}break}case Ke.TAB:case Ke.ENTER:{var te,ee=I[W];ee&&!(ee!=null&&(te=ee.data)!==null&&te!==void 0&&te.disabled)&&!B?A(ee.value):A(void 0),a&&G.preventDefault();break}case Ke.ESC:c(!1),a&&G.stopPropagation()}},onKeyUp:function(){},scrollTo:function(G){F(G)}}}),I.length===0)return u.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(k,"-empty"),onMouseDown:D},d);var T=Object.keys(w).map(function(G){return w[G]}),z=function(G){return G.label};function V(G,J){var K=G.group;return{role:K?"presentation":"option",id:"".concat(o,"_list_").concat(J)}}var q=function(G){var J=I[G];if(!J)return null;var K=J.data||{},X=K.value,ne=J.group,te=rr(K,!0),ee=z(J);return J?u.createElement("div",Ae({"aria-label":typeof ee=="string"&&!ne?ee:null},te,{key:G},V(J,G),{"aria-selected":P(X)}),X):null},Z={role:"listbox",id:"".concat(o,"_list")};return u.createElement(u.Fragment,null,C&&u.createElement("div",Ae({},Z,{style:{height:0,width:0,overflow:"hidden"}}),q(W-1),q(W),q(W+1)),u.createElement(Ih,{itemKey:"key",ref:M,data:I,height:E,itemHeight:$,fullHeight:!1,onMouseDown:D,onScroll:f,virtual:C,direction:S,innerProps:C?null:Z},function(G,J){var K=G.group,X=G.groupOption,ne=G.data,te=G.label,ee=G.value,ie=ne.key;if(K){var se,fe=(se=ne.title)!==null&&se!==void 0?se:np(te)?te.toString():void 0;return u.createElement("div",{className:ae(k,"".concat(k,"-group"),ne.className),title:fe},te!==void 0?te:ie)}var ve=ne.disabled,me=ne.title,Ee=ne.style,le=ne.className,de=ft(ne,$k),je=gr(de,T),oe=R(ee),Me=ve||!oe&&B,ke="".concat(k,"-option"),Fe=ae(k,ke,le,Y(Y(Y(Y({},"".concat(ke,"-grouped"),X),"".concat(ke,"-active"),W===J&&!Me),"".concat(ke,"-disabled"),Me),"".concat(ke,"-selected"),oe)),Pe=z(G),Ie=!y||typeof y=="function"||oe,ye=typeof Pe=="number"?Pe:Pe||ee,be=np(ye)?ye.toString():void 0;return me!==void 0&&(be=me),u.createElement("div",Ae({},rr(je),C?{}:V(G,J),{"aria-selected":P(ee),className:Fe,title:be,onMouseMove:function(){W===J||Me||N(J)},onClick:function(){Me||A(ee)},style:Ee}),u.createElement("div",{className:"".concat(ke,"-content")},typeof O=="function"?O(G,{index:J}):ye),u.isValidElement(y)||oe,Ie&&u.createElement(cl,{className:"".concat(k,"-option-state"),customizeIcon:y,customizeIconProps:{value:ee,disabled:Me,isSelected:oe}},oe?"\u2713":null))}))},Ok=u.forwardRef(kk);const Mk=(function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var a=n.current,i=a.values,l=a.options,s=e.map(function(f){if(f.label===void 0){var p;return U(U({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,d=new Map;return s.forEach(function(f){c.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=c,n.current.options=d,s},[e,t]),o=u.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]});function Kl(e,t){return Eh(e).join("").toUpperCase().includes(t)}const Ik=(function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,s=[],c=typeof r=="function",d=n.toUpperCase(),f=c?r:function(v,h){return o?Kl(h[o],d):h[a]?Kl(h[i!=="children"?i:"label"],d):Kl(h[l],d)},p=c?function(v){return pc(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var h=f(n,p(v));if(h)s.push(v);else{var m=v[a].filter(function(g){return f(n,p(g))});m.length&&s.push(U(U({},v),{},Y({},a,m)))}return}f(n,p(v))&&s.push(v)}),s},[e,r,o,n,t])});var rp=0,Nk=jn();function jk(){var e;return Nk?(e=rp,rp+=1):e="TEST_OR_SSR",e}function Pk(e){var t=u.useState(),n=Q(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(jk()))},[]),e||r}var Rk=["children","value"],Ak=["children"];function Fk(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=ft(r,Rk);return U({key:n,value:a!==void 0?a:n,children:o},i)}function Nh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return jo(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,c=ft(l,Ak);return t||!a?Fk(n):U(U({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:Nh(s)})}).filter(function(n){return n})}var Tk=function(e,t,n,r,o){return u.useMemo(function(){var a=e,i=!e;i&&(a=Nh(t));var l=new Map,s=new Map,c=function(f,p,v){v&&typeof v=="string"&&f.set(p[v],p)},d=function f(p){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<p.length;h+=1){var m=p[h];!m[n.options]||v?(l.set(m[n.value],m),c(s,m,n.label),c(s,m,r),c(s,m,o)):f(m[n.options],!0)}};return d(a),{options:a,valueOptions:l,labelOptions:s}},[e,t,n,r,o])};function op(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Dk=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Bk=["inputValue"];function Hk(e){return!e||Qe(e)!=="object"}var zk=u.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,v=e.onSelect,h=e.onDeselect,m=e.dropdownMatchSelectWidth,g=m===void 0?!0:m,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,C=e.options,S=e.optionRender,E=e.children,$=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,k=e.virtual,I=e.direction,M=e.listHeight,B=M===void 0?200:M,D=e.listItemHeight,F=D===void 0?20:D,R=e.labelRender,H=e.value,j=e.defaultValue,_=e.labelInValue,W=e.onChange,L=e.maxCount,N=ft(e,Dk),P=Pk(n),A=mc(r),T=!!(!C&&E),z=u.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),V=u.useMemo(function(){return kh(l,T)},[JSON.stringify(l),T]),q=Qt("",{value:c!==void 0?c:s,postState:function(Oe){return Oe||""}}),Z=Q(q,2),G=Z[0],J=Z[1],K=Tk(C,E,V,x,w),X=K.valueOptions,ne=K.labelOptions,te=K.options,ee=u.useCallback(function(Oe){var xe=Eh(Oe);return xe.map(function(ge){var Se,We,Ze,ot,mt;if(Hk(ge))Se=ge;else{var vt;Ze=ge.key,We=ge.label,Se=(vt=ge.value)!==null&&vt!==void 0?vt:Ze}var ut=X.get(Se);if(ut){var jt;We===void 0&&(We=ut==null?void 0:ut[w||V.label]),Ze===void 0&&(Ze=(jt=ut==null?void 0:ut.key)!==null&&jt!==void 0?jt:Se),ot=ut==null?void 0:ut.disabled,mt=ut==null?void 0:ut.title}return{label:We,value:Se,key:Ze,disabled:ot,title:mt}})},[V,w,X]),ie=Qt(j,{value:H}),se=Q(ie,2),fe=se[0],ve=se[1],me=u.useMemo(function(){var Oe,xe=A&&fe===null?[]:fe,ge=ee(xe);return r==="combobox"&&j$((Oe=ge[0])===null||Oe===void 0?void 0:Oe.value)?[]:ge},[fe,ee,r,A]),Ee=Mk(me,X),le=Q(Ee,2),de=le[0],je=le[1],oe=u.useMemo(function(){if(!r&&de.length===1){var Oe=de[0];if(Oe.value===null&&(Oe.label===null||Oe.label===void 0))return[]}return de.map(function(xe){var ge;return U(U({},xe),{},{label:(ge=typeof R=="function"?R(xe):xe.label)!==null&&ge!==void 0?ge:xe.value})})},[r,de,R]),Me=u.useMemo(function(){return new Set(de.map(function(Oe){return Oe.value}))},[de]);u.useEffect(function(){if(r==="combobox"){var Oe,xe=(Oe=de[0])===null||Oe===void 0?void 0:Oe.value;J(N$(xe)?String(xe):"")}},[de]);var ke=op(function(Oe,xe){var ge=xe??Oe;return Y(Y({},V.value,Oe),V.label,ge)}),Fe=u.useMemo(function(){if(r!=="tags")return te;var Oe=Ce(te),xe=function(ge){return X.has(ge)};return Ce(de).sort(function(ge,Se){return ge.value<Se.value?-1:1}).forEach(function(ge){var Se=ge.value;xe(Se)||Oe.push(ke(Se,ge.label))}),Oe},[ke,te,X,de,r]),Pe=Ik(Fe,V,G,z,x),Ie=u.useMemo(function(){return r!=="tags"||!G||Pe.some(function(Oe){return Oe[x||"value"]===G})||Pe.some(function(Oe){return Oe[V.value]===G})?Pe:[ke(G)].concat(Ce(Pe))},[ke,x,r,Pe,G,V]),ye=function Oe(xe){var ge=Ce(xe).sort(function(Se,We){return y(Se,We,{searchValue:G})});return ge.map(function(Se){return Array.isArray(Se.options)?U(U({},Se),{},{options:Se.options.length>0?Oe(Se.options):Se.options}):Se})},be=u.useMemo(function(){return y?ye(Ie):Ie},[Ie,y,G]),he=u.useMemo(function(){return tk(be,{fieldNames:V,childrenAsData:T})},[be,V,T]),we=function(Oe){var xe=ee(Oe);if(ve(xe),W&&(xe.length!==de.length||xe.some(function(We,Ze){var ot;return((ot=de[Ze])===null||ot===void 0?void 0:ot.value)!==(We==null?void 0:We.value)}))){var ge=_?xe:xe.map(function(We){return We.value}),Se=xe.map(function(We){return pc(je(We.value))});W(A?ge:ge[0],A?Se:Se[0])}},Te=u.useState(null),ce=Q(Te,2),Ge=ce[0],rt=ce[1],at=u.useState(0),pt=Q(at,2),Ne=pt[0],Be=pt[1],Re=$!==void 0?$:r!=="combobox",Xe=u.useCallback(function(Oe,xe){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=ge.source,We=Se===void 0?"keyboard":Se;Be(xe),i&&r==="combobox"&&Oe!==null&&We==="keyboard"&&rt(String(Oe))},[i,r]),Ue=function(Oe,xe,ge){var Se=function(){var gt,At=je(Oe);return[_?{label:At==null?void 0:At[V.label],value:Oe,key:(gt=At==null?void 0:At.key)!==null&>!==void 0?gt:Oe}:Oe,pc(At)]};if(xe&&v){var We=Se(),Ze=Q(We,2),ot=Ze[0],mt=Ze[1];v(ot,mt)}else if(!xe&&h&&ge!=="clear"){var vt=Se(),ut=Q(vt,2),jt=ut[0],Ot=ut[1];h(jt,Ot)}},lt=op(function(Oe,xe){var ge,Se=A?xe.selected:!0;Se?ge=A?[].concat(Ce(de),[Oe]):[Oe]:ge=de.filter(function(We){return We.value!==Oe}),we(ge),Ue(Oe,Se),r==="combobox"?rt(""):(!mc||p)&&(J(""),rt(""))}),ct=function(Oe,xe){we(Oe);var ge=xe.type,Se=xe.values;(ge==="remove"||ge==="clear")&&Se.forEach(function(We){Ue(We.value,!1,ge)})},Ve=function(Oe,xe){if(J(Oe),rt(null),xe.source==="submit"){var ge=(Oe||"").trim();if(ge){var Se=Array.from(new Set([].concat(Ce(Me),[ge])));we(Se),Ue(ge,!0),J("")}return}xe.source!=="blur"&&(r==="combobox"&&we(Oe),d==null||d(Oe))},tt=function(Oe){var xe=Oe;r!=="tags"&&(xe=Oe.map(function(Se){var We=ne.get(Se);return We==null?void 0:We.value}).filter(function(Se){return Se!==void 0}));var ge=Array.from(new Set([].concat(Ce(Me),Ce(xe))));we(ge),ge.forEach(function(Se){Ue(Se,!0)})},st=u.useMemo(function(){var Oe=k!==!1&&g!==!1;return U(U({},K),{},{flattenOptions:he,onActiveValue:Xe,defaultActiveFirstOption:Re,onSelect:lt,menuItemSelectedIcon:O,rawValues:Me,fieldNames:V,virtual:Oe,direction:I,listHeight:B,listItemHeight:F,childrenAsData:T,maxCount:L,optionRender:S})},[L,K,he,Xe,Re,lt,O,Me,V,k,g,I,B,F,T,S]);return u.createElement(Ou.Provider,{value:st},u.createElement(ik,Ae({},N,{id:P,prefixCls:a,ref:t,omitDomProps:Bk,mode:r,displayValues:oe,onDisplayValuesChange:ct,direction:I,searchValue:G,onSearch:Ve,autoClearSearchValue:p,onSearchSplit:tt,dropdownMatchSelectWidth:g,OptionList:Ok,emptyOptions:!he.length,activeValue:Ge,activeDescendantId:"".concat(P,"_list_").concat(Ne)})))}),Nu=zk;Nu.Option=Iu;Nu.OptGroup=Mu;function Tr(e,t,n){return ae({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const so=(e,t)=>t||e,_k=()=>{const[,e]=Kn(),[t]=ao("Empty"),n=new $t(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Lk=()=>{const[,e]=Kn(),[t]=ao("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=xn(()=>({borderColor:new $t(n).onBackground(a).toHexString(),shadowColor:new $t(r).onBackground(a).toHexString(),contentColor:new $t(o).onBackground(a).toHexString()}),[n,r,o,a]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:i},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},Wk=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Vk=ln("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Rt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Wk(o)});var qk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jh=u.createElement(_k,null),Ph=u.createElement(Lk,null),qr=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:l,imageStyle:s,style:c,classNames:d,styles:f}=e,p=qk(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:h,className:m,style:g,classNames:b,styles:y,image:x}=xr("empty"),w=v("empty",o),[C,S,E]=Vk(w),[$]=ao("Empty"),O=typeof i<"u"?i:$==null?void 0:$.description,k=typeof O=="string"?O:"empty",I=(t=a??x)!==null&&t!==void 0?t:jh;let M=null;return typeof I=="string"?M=u.createElement("img",{draggable:!1,alt:k,src:I}):M=I,C(u.createElement("div",Object.assign({className:ae(S,E,w,m,{[`${w}-normal`]:I===Ph,[`${w}-rtl`]:h==="rtl"},n,r,b.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),g),f==null?void 0:f.root),c)},p),u.createElement("div",{className:ae(`${w}-image`,b.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},s),y.image),f==null?void 0:f.image)},M),O&&u.createElement("div",{className:ae(`${w}-description`,b.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},y.description),f==null?void 0:f.description)},O),l&&u.createElement("div",{className:ae(`${w}-footer`,b.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},y.footer),f==null?void 0:f.footer)},l)))};qr.PRESENTED_IMAGE_DEFAULT=jh;qr.PRESENTED_IMAGE_SIMPLE=Ph;const Yk=e=>{const{componentName:t}=e,{getPrefixCls:n}=Ut(xt),r=n("empty");switch(t){case"Table":case"List":return pe.createElement(qr,{image:qr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement(qr,{image:qr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return pe.createElement(qr,null)}},Lo=(e,t,n=void 0)=>{var r,o;const{variant:a,[e]:i}=u.useContext(xt),l=u.useContext(vh),s=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=l??s)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=nx.includes(c);return[c,d]},Xk=e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};function Uk(e,t){return e||Xk(t)}const ap=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Gk=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Zt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
248
|
+
${o}${l}bottomLeft,
|
|
249
|
+
${a}${l}bottomLeft
|
|
250
|
+
`]:{animationName:pu},[`
|
|
251
|
+
${o}${l}topLeft,
|
|
252
|
+
${a}${l}topLeft,
|
|
253
|
+
${o}${l}topRight,
|
|
254
|
+
${a}${l}topRight
|
|
255
|
+
`]:{animationName:gu},[`${i}${l}bottomLeft`]:{animationName:mu},[`
|
|
256
|
+
${i}${l}topLeft,
|
|
257
|
+
${i}${l}topRight
|
|
258
|
+
`]:{animationName:hu},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},ap(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ki),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ap(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ji(e,"slide-up"),ji(e,"slide-down"),Ni(e,"move-up"),Ni(e,"move-down")]},Rh=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:ue(t),itemLineHeight:ue(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Kk=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Ah=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ja()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Qk=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=Kk(e),l=t?`${n}-${t}`:"",s=Rh(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},Ah(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ue(r)} 0`,lineHeight:ue(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:ue(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ue(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
259
|
+
${n}-prefix + ${n}-selection-wrap
|
|
260
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:ue(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Ql(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
261
|
+
&${n}-show-arrow ${n}-selector,
|
|
262
|
+
&${n}-allow-clear ${n}-selector
|
|
263
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Qk(e,t),o]}const Zk=e=>{const{componentCls:t}=e,n=Rt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Rt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ql(e),Ql(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ql(r,"lg")]};function Zl(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Zt(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ue(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
264
|
+
${n}-selection-item,
|
|
265
|
+
${n}-selection-placeholder
|
|
266
|
+
`]:{display:"block",padding:0,lineHeight:ue(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
267
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
268
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
269
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
270
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ue(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:ue(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ue(r)}`,"&:after":{display:"none"}}}}}}}function Jk(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Zl(e),Zl(Rt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ue(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
271
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
272
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
273
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Zl(Rt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const e2=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:v,colorBgContainer:h,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:x,controlOutline:w}=e,C=l*2,S=r*2,E=Math.min(o-C,o-S),$=Math.min(a-C,a-S),O=Math.min(i-C,i-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:$,multipleItemHeightLG:O,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:x,activeOutlineColor:w,selectAffixPadding:l}},Fh=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ue(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ue(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},ip=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Fh(e,t))}),t2=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),ip(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),ip(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Th=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ue(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},lp=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Th(e,t))}),n2=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Th(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),lp(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),lp(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),r2=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ue(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Dh=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ue(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},sp=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Dh(e,t))}),o2=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Dh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,color:e.colorText})),sp(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,color:e.colorError})),sp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),a2=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},t2(e)),n2(e)),r2(e)),o2(e))}),i2=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},l2=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},s2=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},i2(e)),l2(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ki),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ki),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ja()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},c2=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},s2(e),Jk(e),Zk(e),Gk(e),{[`${t}-rtl`]:{direction:"rtl"}},Aa(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},u2=ln("Select",(e,{rootPrefixCls:t})=>{const n=Rt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[c2(n),a2(n)]},e2,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var d2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},f2=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:d2}))},p2=u.forwardRef(f2),m2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},g2=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:m2}))},Bh=u.forwardRef(g2),h2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},v2=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:h2}))},Hh=u.forwardRef(v2);function zh({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:l,showSuffixIcon:s,feedbackIcon:c,showArrow:d,componentName:f}){const p=t??u.createElement(Qi,null),v=b=>e===null&&!i&&!d?null:u.createElement(u.Fragment,null,s!==!1&&b,i&&c);let h=null;if(e!==void 0)h=v(e);else if(o)h=v(u.createElement(Pa,{spin:!0}));else{const b=`${l}-suffix`;h=({open:y,showSearch:x})=>v(y&&x?u.createElement(Hh,{className:b}):u.createElement(Bh,{className:b}))}let m=null;n!==void 0?m=n:a?m=u.createElement(p2,null):m=null;let g=null;return r!==void 0?g=r:g=u.createElement(su,null),{clearIcon:p,suffixIcon:h,itemIcon:m,removeIcon:g}}function b2(e){return pe.useMemo(()=>{if(e)return(...t)=>pe.createElement(Fr,{space:!0},e.apply(void 0,t))},[e])}function y2(e,t){return t!==void 0?t:e!==null}var x2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _h="SECRET_COMBOBOX_MODE_DO_NOT_USE",w2=(e,t)=>{var n,r,o,a,i;const{prefixCls:l,bordered:s,className:c,rootClassName:d,getPopupContainer:f,popupClassName:p,dropdownClassName:v,listHeight:h=256,placement:m,listItemHeight:g,size:b,disabled:y,notFoundContent:x,status:w,builtinPlacements:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:E,direction:$,style:O,allowClear:k,variant:I,dropdownStyle:M,transitionName:B,tagRender:D,maxCount:F,prefix:R,dropdownRender:H,popupRender:j,onDropdownVisibleChange:_,onOpenChange:W,styles:L,classNames:N}=e,P=x2(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:A,getPrefixCls:T,renderEmpty:z,direction:V,virtual:q,popupMatchSelectWidth:Z,popupOverflow:G}=u.useContext(xt),{showSearch:J,style:K,styles:X,className:ne,classNames:te}=xr("select"),[,ee]=Kn(),ie=g??(ee==null?void 0:ee.controlHeight),se=T("select",l),fe=T(),ve=$??V,{compactSize:me,compactItemClassnames:Ee}=_r(se,ve),[le,de]=Lo("select",I,s),je=Hn(se),[oe,Me,ke]=u2(se,je),Fe=u.useMemo(()=>{const{mode:Se}=e;if(Se!=="combobox")return Se===_h?"combobox":Se},[e.mode]),Pe=Fe==="multiple"||Fe==="tags",Ie=y2(e.suffixIcon,e.showArrow),ye=(n=E??S)!==null&&n!==void 0?n:Z,be=((r=L==null?void 0:L.popup)===null||r===void 0?void 0:r.root)||((o=X.popup)===null||o===void 0?void 0:o.root)||M,he=b2(j||H),we=W||_,{status:Te,hasFeedback:ce,isFormItemInput:Ge,feedbackIcon:rt}=u.useContext(bn),at=so(Te,w);let pt;x!==void 0?pt=x:Fe==="combobox"?pt=null:pt=(z==null?void 0:z("Select"))||u.createElement(Yk,{componentName:"Select"});const{suffixIcon:Ne,itemIcon:Be,removeIcon:Re,clearIcon:Xe}=zh(Object.assign(Object.assign({},P),{multiple:Pe,hasFeedback:ce,feedbackIcon:rt,showSuffixIcon:Ie,prefixCls:se,componentName:"Select"})),Ue=k===!0?{clearIcon:Xe}:k,lt=gr(P,["suffixIcon","itemIcon"]),ct=ae(((a=N==null?void 0:N.popup)===null||a===void 0?void 0:a.root)||((i=te==null?void 0:te.popup)===null||i===void 0?void 0:i.root)||p||v,{[`${se}-dropdown-${ve}`]:ve==="rtl"},d,te.root,N==null?void 0:N.root,ke,je,Me),Ve=Qn(Se=>{var We;return(We=b??me)!==null&&We!==void 0?We:Se}),tt=u.useContext(On),st=y??tt,Oe=ae({[`${se}-lg`]:Ve==="large",[`${se}-sm`]:Ve==="small",[`${se}-rtl`]:ve==="rtl",[`${se}-${le}`]:de,[`${se}-in-form-item`]:Ge},Tr(se,at,ce),Ee,ne,c,te.root,N==null?void 0:N.root,d,ke,je,Me),xe=u.useMemo(()=>m!==void 0?m:ve==="rtl"?"bottomRight":"bottomLeft",[m,ve]),[ge]=Zi("SelectLike",be==null?void 0:be.zIndex);return oe(u.createElement(Nu,Object.assign({ref:t,virtual:q,showSearch:J},lt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},X.root),L==null?void 0:L.root),K),O),dropdownMatchSelectWidth:ye,transitionName:Jg(fe,"slide-up",B),builtinPlacements:Uk(C,G),listHeight:h,listItemHeight:ie,mode:Fe,prefixCls:se,placement:xe,direction:ve,prefix:R,suffixIcon:Ne,menuItemSelectedIcon:Be,removeIcon:Re,allowClear:Ue,notFoundContent:pt,className:Oe,getPopupContainer:f||A,dropdownClassName:ct,disabled:st,dropdownStyle:Object.assign(Object.assign({},be),{zIndex:ge}),maxCount:Pe?F:void 0,tagRender:Pe?D:void 0,dropdownRender:he,onDropdownVisibleChange:we})))},co=u.forwardRef(w2),C2=Eu(co,"dropdownAlign");co.SECRET_COMBOBOX_MODE_DO_NOT_USE=_h;co.Option=Iu;co.OptGroup=Mu;co._InternalPanelDoNotUseOrYouWillBeFired=C2;const S2=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},E2=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},$a=["xxl","xl","lg","md","sm","xs"],$2=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),k2=e=>{const t=e,n=[].concat($a).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,l=`screen${a}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o<n.length-1){const s=`screen${a}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const c=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`)}}),e},O2=()=>{const[,e]=Kn(),t=$2(k2(e));return pe.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const l=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},s=window.matchMedia(i);S2(s,l),this.matchHandlers[i]={mql:s,listener:l},l(s)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];E2(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[e])};function M2(){const[,e]=u.useReducer(t=>t+1,0);return e}function I2(e=!0,t={}){const n=Ye(t),r=M2(),o=O2();return wt(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}function Lh(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,l=e.style;return u.createElement("div",{className:ae("".concat(n,"-content"),i),style:l},u.createElement("div",{className:ae("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var xo={shiftX:64,adjustY:1},wo={adjustX:1,shiftY:!0},Wn=[0,0],N2={left:{points:["cr","cl"],overflow:wo,offset:[-4,0],targetOffset:Wn},right:{points:["cl","cr"],overflow:wo,offset:[4,0],targetOffset:Wn},top:{points:["bc","tc"],overflow:xo,offset:[0,-4],targetOffset:Wn},bottom:{points:["tc","bc"],overflow:xo,offset:[0,4],targetOffset:Wn},topLeft:{points:["bl","tl"],overflow:xo,offset:[0,-4],targetOffset:Wn},leftTop:{points:["tr","tl"],overflow:wo,offset:[-4,0],targetOffset:Wn},topRight:{points:["br","tr"],overflow:xo,offset:[0,-4],targetOffset:Wn},rightTop:{points:["tl","tr"],overflow:wo,offset:[4,0],targetOffset:Wn},bottomRight:{points:["tr","br"],overflow:xo,offset:[0,4],targetOffset:Wn},rightBottom:{points:["bl","br"],overflow:wo,offset:[4,0],targetOffset:Wn},bottomLeft:{points:["tl","bl"],overflow:xo,offset:[0,4],targetOffset:Wn},leftBottom:{points:["br","bl"],overflow:wo,offset:[-4,0],targetOffset:Wn}},j2=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],P2=function(e,t){var n=e.overlayClassName,r=e.trigger,o=r===void 0?["hover"]:r,a=e.mouseEnterDelay,i=a===void 0?0:a,l=e.mouseLeaveDelay,s=l===void 0?.1:l,c=e.overlayStyle,d=e.prefixCls,f=d===void 0?"rc-tooltip":d,p=e.children,v=e.onVisibleChange,h=e.afterVisibleChange,m=e.transitionName,g=e.animation,b=e.motion,y=e.placement,x=y===void 0?"right":y,w=e.align,C=w===void 0?{}:w,S=e.destroyTooltipOnHide,E=S===void 0?!1:S,$=e.defaultVisible,O=e.getTooltipContainer,k=e.overlayInnerStyle,I=e.overlay,M=e.id,B=e.showArrow,D=B===void 0?!0:B,F=e.classNames,R=e.styles,H=ft(e,j2),j=yu(M),_=Ye(null);To(t,function(){return _.current});var W=U({},H);"visible"in e&&(W.popupVisible=e.visible);var L=function(){return u.createElement(Lh,{key:"content",prefixCls:f,id:j,bodyClassName:F==null?void 0:F.body,overlayInnerStyle:U(U({},k),R==null?void 0:R.body)},I)},N=function(){var P=u.Children.only(p),A=(P==null?void 0:P.props)||{},T=U(U({},A),{},{"aria-describedby":I?j:null});return u.cloneElement(p,T)};return u.createElement(ku,Ae({popupClassName:ae(n,F==null?void 0:F.root),prefixCls:f,popup:L,action:o,builtinPlacements:N2,popupPlacement:x,ref:_,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:m,popupAnimation:g,popupMotion:b,defaultPopupVisible:$,autoDestroy:E,mouseLeaveDelay:s,popupStyle:U(U({},c),R==null?void 0:R.root),mouseEnterDelay:i,arrow:D},W),N())};const R2=or(P2);function Wh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,p=d,v=2*o-l,h=s,m=2*o-a,g=i,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),x=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,w=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${v} ${h} A ${r} ${r} 0 0 0 ${m} ${g} Z')`;return{arrowShadowWidth:b,arrowPath:w,arrowPolygon:x}}const Vh=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ue(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},qh=8;function Yh(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?qh:r}}function Ka(e,t){return e?t:{}}function A2(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Vh(e,t,o)),{"&:before":{background:t}})]},Ka(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ue(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ka(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ue(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ka(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Ka(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function F2(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const cp={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},T2={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},D2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function B2(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a}=e,i=t/2,l={},s=Yh({contentRadius:a,limitVerticalRadius:!0});return Object.keys(cp).forEach(c=>{const d=r&&T2[c]||cp[c],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,D2.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=i+o;break}if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-s.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":f.offset[0]=s.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":f.offset[1]=-s.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":f.offset[1]=s.arrowOffsetHorizontal*2-i;break}f.overflow=F2(c,s,t,n),f.htmlRegion="visibleFirst"}),l}const H2=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:v}=e,h=t(i).add(v).add(p).equal(),m=t(i).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:m,minHeight:s,padding:`${ue(e.calc(d).div(2).equal())} ${ue(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,qh)}},[`${n}-content`]:{position:"relative"}}),Ki(e,(g,{darkColor:b})=>({[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},A2(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},z2=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Yh({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Wh(Rt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Xh=(e,t=!0)=>ln("Tooltip",n=>{const{borderRadius:r,colorTextLightSolid:o,colorBgSpotlight:a}=n,i=Rt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:r,tooltipBg:a});return[H2(i),yS(n,"zoom-big-fast")]},z2,{resetStyle:!1,injectStyle:t})(e),_2=to.map(e=>`${e}-inverse`),L2=["success","processing","error","default","warning"];function ul(e,t=!0){return t?[].concat(Ce(_2),Ce(to)).includes(e):to.includes(e)}function W2(e){return L2.includes(e)}function Uh(e,t){const n=ul(t),r=ae({[`${e}-${t}`]:t&&n}),o={},a={},i=xS(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const V2=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=u.useContext(xt),s=l("tooltip",t),[c,d,f]=Xh(s),p=Uh(s,a),v=p.arrowStyle,h=Object.assign(Object.assign({},i),p.overlayStyle),m=ae(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,p.className);return c(u.createElement("div",{className:m,style:v},u.createElement("div",{className:`${s}-arrow`}),u.createElement(Lh,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:h}),o)))};var q2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y2=u.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:l,overlayInnerStyle:s,children:c,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:v,arrow:h=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0,getPopupContainer:w,placement:C="top",mouseEnterDelay:S=.1,mouseLeaveDelay:E=.1,overlayStyle:$,rootClassName:O,overlayClassName:k,styles:I,classNames:M}=e,B=q2(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),D=!!h,[,F]=Kn(),{getPopupContainer:R,getPrefixCls:H,direction:j,className:_,style:W,classNames:L,styles:N}=xr("tooltip"),P=Xi(),A=u.useRef(null),T=()=>{var Pe;(Pe=A.current)===null||Pe===void 0||Pe.forceAlign()};u.useImperativeHandle(t,()=>{var Pe,Ie;return{forceAlign:T,forcePopupAlign:()=>{P.deprecated(!1,"forcePopupAlign","forceAlign"),T()},nativeElement:(Pe=A.current)===null||Pe===void 0?void 0:Pe.nativeElement,popupElement:(Ie=A.current)===null||Ie===void 0?void 0:Ie.popupElement}});const[z,V]=Qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),q=!m&&!g&&m!==0,Z=Pe=>{var Ie,ye;V(q?!1:Pe),q||((Ie=e.onOpenChange)===null||Ie===void 0||Ie.call(e,Pe),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,Pe))},G=u.useMemo(()=>{var Pe,Ie;let ye=y;return typeof h=="object"&&(ye=(Ie=(Pe=h.pointAtCenter)!==null&&Pe!==void 0?Pe:h.arrowPointAtCenter)!==null&&Ie!==void 0?Ie:y),b||B2({arrowPointAtCenter:ye,autoAdjustOverflow:x,arrowWidth:D?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS})},[y,h,b,F]),J=u.useMemo(()=>m===0?m:g||m||"",[g,m]),K=u.createElement(Fr,{space:!0},typeof J=="function"?J():J),X=H("tooltip",o),ne=H(),te=e["data-popover-inject"];let ee=z;!("open"in e)&&!("visible"in e)&&q&&(ee=!1);const ie=u.isValidElement(c)&&!_g(c)?c:u.createElement("span",null,c),se=ie.props,fe=!se.className||typeof se.className=="string"?ae(se.className,a||`${X}-open`):se.className,[ve,me,Ee]=Xh(X,!te),le=Uh(X,l),de=le.arrowStyle,je=ae(k,{[`${X}-rtl`]:j==="rtl"},le.className,O,me,Ee,_,L.root,M==null?void 0:M.root),oe=ae(L.body,M==null?void 0:M.body),[Me,ke]=Zi("Tooltip",B.zIndex),Fe=u.createElement(R2,Object.assign({},B,{zIndex:Me,showArrow:D,placement:C,mouseEnterDelay:S,mouseLeaveDelay:E,prefixCls:X,classNames:{root:je,body:oe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},de),N.root),W),$),I==null?void 0:I.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},N.body),s),I==null?void 0:I.body),le.overlayStyle)},getTooltipContainer:w||i||R,ref:A,builtinPlacements:G,overlay:K,visible:ee,onVisibleChange:Z,afterVisibleChange:d??f,arrowContent:u.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:Jg(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!p}),ee?Ar(ie,{className:fe}):ie);return ve(u.createElement(qg.Provider,{value:ke},Fe))}),dl=Y2;dl._InternalPanelDoNotUseOrYouWillBeFired=V2;const X2=new kt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),U2=new kt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),G2=new kt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),K2=new kt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Q2=new kt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Z2=new kt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),J2=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:a,textFontSizeSM:i,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:v}=e,h=`${r}-scroll-number`,m=Ki(e,(g,{darkColor:b})=>({[`&${t} ${t}-color-${g}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:ue(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(d).div(2).equal(),boxShadow:`0 0 0 ${ue(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:i,lineHeight:ue(f),borderRadius:v(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ue(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ue(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Z2,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:X2,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:U2,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:G2,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:K2,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Q2,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Gh=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,l=e.colorTextLightSolid,s=e.colorError,c=e.colorErrorHover;return Rt(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Kh=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},eO=ln("Badge",e=>{const t=Gh(e);return J2(t)},Kh),tO=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Ki(e,(c,{darkColor:d})=>({[`&${i}-color-${c}`]:{background:d,color:d}}));return{[l]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{position:"absolute",top:r,padding:`0 ${ue(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ue(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${ue(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},nO=ln(["Badge","Ribbon"],e=>{const t=Gh(e);return tO(t)},Kh),rO=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:d}=u.useContext(xt),f=c("ribbon",n),p=`${f}-wrapper`,[v,h,m]=nO(f,p),g=ul(o,!1),b=ae(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:g},t),y={},x={};return o&&!g&&(y.background=o,x.color=o),v(u.createElement("div",{className:ae(p,s,h,m)},a,u.createElement("div",{className:ae(b,h),style:Object.assign(Object.assign({},y),r)},u.createElement("span",{className:`${f}-text`},i),u.createElement("div",{className:`${f}-corner`,style:x}))))},up=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),u.createElement("span",{style:a,className:ae(`${t}-only-unit`,{current:r})},n)};function oO(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const aO=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,l]=u.useState(o),[s,c]=u.useState(a),d=()=>{l(o),c(a)};u.useEffect(()=>{const v=setTimeout(d,1e3);return()=>clearTimeout(v)},[o]);let f,p;if(i===o||Number.isNaN(o)||Number.isNaN(i))f=[u.createElement(up,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{f=[];const v=o+10,h=[];for(let b=o;b<=v;b+=1)h.push(b);const m=s<a?1:-1,g=h.findIndex(b=>b%10===i);f=(m<0?h.slice(0,g+1):h.slice(g)).map((b,y)=>{const x=b%10;return u.createElement(up,Object.assign({},e,{key:b,value:x,offset:m<0?y-g:y,current:y===g}))}),p={transform:`translateY(${-oO(i,o,m)}00%)`}}return u.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:d},f)};var iO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lO=u.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:l,show:s,component:c="sup",children:d}=e,f=iO(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=u.useContext(xt),v=p("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":s,style:i,className:ae(v,o,a),title:l});let m=r;if(r&&Number(r)%1===0){const g=String(r).split("");m=u.createElement("bdi",null,g.map((b,y)=>u.createElement(aO,{prefixCls:v,count:Number(r),value:b,key:g.length-y})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?Ar(d,g=>({className:ae(`${v}-custom-component`,g==null?void 0:g.className,a)})):u.createElement(c,Object.assign({},h,{ref:t}),m)});var sO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cO=u.forwardRef((e,t)=>{var n,r,o,a,i;const{prefixCls:l,scrollNumberPrefixCls:s,children:c,status:d,text:f,color:p,count:v=null,overflowCount:h=99,dot:m=!1,size:g="default",title:b,offset:y,style:x,className:w,rootClassName:C,classNames:S,styles:E,showZero:$=!1}=e,O=sO(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:k,direction:I,badge:M}=u.useContext(xt),B=k("badge",l),[D,F,R]=eO(B),H=v>h?`${h}+`:v,j=H==="0"||H===0||f==="0"||f===0,_=v===null||j&&!$,W=(d!=null||p!=null)&&_,L=d!=null||!j,N=m&&!j,P=N?"":H,A=xn(()=>((P==null||P==="")&&(f==null||f==="")||j&&!$)&&!N,[P,j,$,N,f]),T=Ye(v);A||(T.current=v);const z=T.current,V=Ye(P);A||(V.current=P);const q=V.current,Z=Ye(N);A||(Z.current=N);const G=xn(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),x);const fe={marginTop:y[1]};return I==="rtl"?fe.left=Number.parseInt(y[0],10):fe.right=-Number.parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},fe),M==null?void 0:M.style),x)},[I,y,x,M==null?void 0:M.style]),J=b??(typeof z=="string"||typeof z=="number"?z:void 0),K=!A&&(f===0?$:!!f&&f!==!0),X=K?u.createElement("span",{className:`${B}-status-text`},f):null,ne=!z||typeof z!="object"?void 0:Ar(z,fe=>({style:Object.assign(Object.assign({},G),fe.style)})),te=ul(p,!1),ee=ae(S==null?void 0:S.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${B}-status-dot`]:W,[`${B}-status-${d}`]:!!d,[`${B}-color-${p}`]:te}),ie={};p&&!te&&(ie.color=p,ie.background=p);const se=ae(B,{[`${B}-status`]:W,[`${B}-not-a-wrapper`]:!c,[`${B}-rtl`]:I==="rtl"},w,C,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,F,R);if(!c&&W&&(f||L||!_)){const fe=G.color;return D(u.createElement("span",Object.assign({},O,{className:se,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),G)}),u.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.indicator),ie)}),K&&u.createElement("span",{style:{color:fe},className:`${B}-status-text`},f)))}return D(u.createElement("span",Object.assign({ref:t},O,{className:se,style:Object.assign(Object.assign({},(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),E==null?void 0:E.root)}),c,u.createElement(io,{visible:!A,motionName:`${B}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:fe})=>{var ve,me;const Ee=k("scroll-number",s),le=Z.current,de=ae(S==null?void 0:S.indicator,(ve=M==null?void 0:M.classNames)===null||ve===void 0?void 0:ve.indicator,{[`${B}-dot`]:le,[`${B}-count`]:!le,[`${B}-count-sm`]:g==="small",[`${B}-multiple-words`]:!le&&q&&q.toString().length>1,[`${B}-status-${d}`]:!!d,[`${B}-color-${p}`]:te});let je=Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(me=M==null?void 0:M.styles)===null||me===void 0?void 0:me.indicator),G);return p&&!te&&(je=je||{},je.background=p),u.createElement(lO,{prefixCls:Ee,show:!A,motionClassName:fe,className:de,count:q,title:J,style:je,key:"scrollNumber"},ne)}),X))}),Qh=cO;Qh.Ribbon=rO;var hc={exports:{}},uO=hc.exports,dp;function dO(){return dp||(dp=1,(function(e,t){(function(n,r){e.exports=r()})(uO,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",l="minute",s="hour",c="day",d="week",f="month",p="quarter",v="year",h="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var F=["th","st","nd","rd"],R=D%100;return"["+D+(F[(R-20)%10]||F[R]||F[0])+"]"}},x=function(D,F,R){var H=String(D);return!H||H.length>=F?D:""+Array(F+1-H.length).join(R)+D},w={s:x,z:function(D){var F=-D.utcOffset(),R=Math.abs(F),H=Math.floor(R/60),j=R%60;return(F<=0?"+":"-")+x(H,2,"0")+":"+x(j,2,"0")},m:function D(F,R){if(F.date()<R.date())return-D(R,F);var H=12*(R.year()-F.year())+(R.month()-F.month()),j=F.clone().add(H,f),_=R-j<0,W=F.clone().add(H+(_?-1:1),f);return+(-(H+(R-j)/(_?j-W:W-j))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:v,w:d,d:c,D:h,h:s,m:l,s:i,ms:a,Q:p}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},C="en",S={};S[C]=y;var E="$isDayjsObject",$=function(D){return D instanceof M||!(!D||!D[E])},O=function D(F,R,H){var j;if(!F)return C;if(typeof F=="string"){var _=F.toLowerCase();S[_]&&(j=_),R&&(S[_]=R,j=_);var W=F.split("-");if(!j&&W.length>1)return D(W[0])}else{var L=F.name;S[L]=F,j=L}return!H&&j&&(C=j),j||!H&&C},k=function(D,F){if($(D))return D.clone();var R=typeof F=="object"?F:{};return R.date=D,R.args=arguments,new M(R)},I=w;I.l=O,I.i=$,I.w=function(D,F){return k(D,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var M=(function(){function D(R){this.$L=O(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[E]=!0}var F=D.prototype;return F.parse=function(R){this.$d=(function(H){var j=H.date,_=H.utc;if(j===null)return new Date(NaN);if(I.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var W=j.match(g);if(W){var L=W[2]-1||0,N=(W[7]||"0").substring(0,3);return _?new Date(Date.UTC(W[1],L,W[3]||1,W[4]||0,W[5]||0,W[6]||0,N)):new Date(W[1],L,W[3]||1,W[4]||0,W[5]||0,W[6]||0,N)}}return new Date(j)})(R),this.init()},F.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},F.$utils=function(){return I},F.isValid=function(){return this.$d.toString()!==m},F.isSame=function(R,H){var j=k(R);return this.startOf(H)<=j&&j<=this.endOf(H)},F.isAfter=function(R,H){return k(R)<this.startOf(H)},F.isBefore=function(R,H){return this.endOf(H)<k(R)},F.$g=function(R,H,j){return I.u(R)?this[H]:this.set(j,R)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(R,H){var j=this,_=!!I.u(H)||H,W=I.p(R),L=function(Z,G){var J=I.w(j.$u?Date.UTC(j.$y,G,Z):new Date(j.$y,G,Z),j);return _?J:J.endOf(c)},N=function(Z,G){return I.w(j.toDate()[Z].apply(j.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(G)),j)},P=this.$W,A=this.$M,T=this.$D,z="set"+(this.$u?"UTC":"");switch(W){case v:return _?L(1,0):L(31,11);case f:return _?L(1,A):L(0,A+1);case d:var V=this.$locale().weekStart||0,q=(P<V?P+7:P)-V;return L(_?T-q:T+(6-q),A);case c:case h:return N(z+"Hours",0);case s:return N(z+"Minutes",1);case l:return N(z+"Seconds",2);case i:return N(z+"Milliseconds",3);default:return this.clone()}},F.endOf=function(R){return this.startOf(R,!1)},F.$set=function(R,H){var j,_=I.p(R),W="set"+(this.$u?"UTC":""),L=(j={},j[c]=W+"Date",j[h]=W+"Date",j[f]=W+"Month",j[v]=W+"FullYear",j[s]=W+"Hours",j[l]=W+"Minutes",j[i]=W+"Seconds",j[a]=W+"Milliseconds",j)[_],N=_===c?this.$D+(H-this.$W):H;if(_===f||_===v){var P=this.clone().set(h,1);P.$d[L](N),P.init(),this.$d=P.set(h,Math.min(this.$D,P.daysInMonth())).$d}else L&&this.$d[L](N);return this.init(),this},F.set=function(R,H){return this.clone().$set(R,H)},F.get=function(R){return this[I.p(R)]()},F.add=function(R,H){var j,_=this;R=Number(R);var W=I.p(H),L=function(A){var T=k(_);return I.w(T.date(T.date()+Math.round(A*R)),_)};if(W===f)return this.set(f,this.$M+R);if(W===v)return this.set(v,this.$y+R);if(W===c)return L(1);if(W===d)return L(7);var N=(j={},j[l]=r,j[s]=o,j[i]=n,j)[W]||1,P=this.$d.getTime()+R*N;return I.w(P,this)},F.subtract=function(R,H){return this.add(-1*R,H)},F.format=function(R){var H=this,j=this.$locale();if(!this.isValid())return j.invalidDate||m;var _=R||"YYYY-MM-DDTHH:mm:ssZ",W=I.z(this),L=this.$H,N=this.$m,P=this.$M,A=j.weekdays,T=j.months,z=j.meridiem,V=function(G,J,K,X){return G&&(G[J]||G(H,_))||K[J].slice(0,X)},q=function(G){return I.s(L%12||12,G,"0")},Z=z||function(G,J,K){var X=G<12?"AM":"PM";return K?X.toLowerCase():X};return _.replace(b,(function(G,J){return J||(function(K){switch(K){case"YY":return String(H.$y).slice(-2);case"YYYY":return I.s(H.$y,4,"0");case"M":return P+1;case"MM":return I.s(P+1,2,"0");case"MMM":return V(j.monthsShort,P,T,3);case"MMMM":return V(T,P);case"D":return H.$D;case"DD":return I.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return V(j.weekdaysMin,H.$W,A,2);case"ddd":return V(j.weekdaysShort,H.$W,A,3);case"dddd":return A[H.$W];case"H":return String(L);case"HH":return I.s(L,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return Z(L,N,!0);case"A":return Z(L,N,!1);case"m":return String(N);case"mm":return I.s(N,2,"0");case"s":return String(H.$s);case"ss":return I.s(H.$s,2,"0");case"SSS":return I.s(H.$ms,3,"0");case"Z":return W}return null})(G)||W.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(R,H,j){var _,W=this,L=I.p(H),N=k(R),P=(N.utcOffset()-this.utcOffset())*r,A=this-N,T=function(){return I.m(W,N)};switch(L){case v:_=T()/12;break;case f:_=T();break;case p:_=T()/3;break;case d:_=(A-P)/6048e5;break;case c:_=(A-P)/864e5;break;case s:_=A/o;break;case l:_=A/r;break;case i:_=A/n;break;default:_=A}return j?_:I.a(_)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return S[this.$L]},F.locale=function(R,H){if(!R)return this.$L;var j=this.clone(),_=O(R,H,!0);return _&&(j.$L=_),j},F.clone=function(){return I.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},D})(),B=M.prototype;return k.prototype=B,[["$ms",a],["$s",i],["$m",l],["$H",s],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(D){B[D[1]]=function(F){return this.$g(F,D[0],D[1])}})),k.extend=function(D,F){return D.$i||(D(F,M,k),D.$i=!0),k},k.locale=O,k.isDayjs=$,k.unix=function(D){return k(1e3*D)},k.en=S[C],k.Ls=S,k.p={},k}))})(hc)),hc.exports}var fO=dO();const En=yr(fO);var vc={exports:{}},pO=vc.exports,fp;function mO(){return fp||(fp=1,(function(e,t){(function(n,r){e.exports=r()})(pO,(function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,l=(i<a?i+7:i)-a;return this.$utils().u(o)?l:this.subtract(l,"day").add(o,"day")}}}))})(vc)),vc.exports}var gO=mO();const hO=yr(gO);var bc={exports:{}},vO=bc.exports,pp;function bO(){return pp||(pp=1,(function(e,t){(function(n,r){e.exports=r()})(vO,(function(){return function(n,r,o){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,p,v,h,m){var g=f.name?f:f.$locale(),b=i(g[p]),y=i(g[v]),x=b||y.map((function(C){return C.slice(0,h)}));if(!m)return x;var w=g.weekStart;return x.map((function(C,S){return x[(S+(w||0))%7]}))},s=function(){return o.Ls[o.locale()]},c=function(f,p){return f.formats[p]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(h,m,g){return m||g.slice(1)}))})(f.formats[p.toUpperCase()])},d=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):l(f,"months")},monthsShort:function(p){return p?p.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):l(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=s();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return c(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(s(),"months")},o.monthsShort=function(){return l(s(),"monthsShort","months",3)},o.weekdays=function(f){return l(s(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(s(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(s(),"weekdaysMin","weekdays",2,f)}}}))})(bc)),bc.exports}var yO=bO();const xO=yr(yO);var yc={exports:{}},wO=yc.exports,mp;function CO(){return mp||(mp=1,(function(e,t){(function(n,r){e.exports=r()})(wO,(function(){var n="week",r="year";return function(o,a,i){var l=a.prototype;l.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(d.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(p,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})(yc)),yc.exports}var SO=CO();const EO=yr(SO);var xc={exports:{}},$O=xc.exports,gp;function kO(){return gp||(gp=1,(function(e,t){(function(n,r){e.exports=r()})($O,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}}))})(xc)),xc.exports}var OO=kO();const MO=yr(OO);var wc={exports:{}},IO=wc.exports,hp;function NO(){return hp||(hp=1,(function(e,t){(function(n,r){e.exports=r()})(IO,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}}));return a.bind(this)(d)}}}))})(wc)),wc.exports}var jO=NO();const PO=yr(jO);var Cc={exports:{}},RO=Cc.exports,vp;function AO(){return vp||(vp=1,(function(e,t){(function(n,r){e.exports=r()})(RO,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,s={},c=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(b){this[g]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),x=60*y[1]+(+y[2]||0);return x===0?0:y[0]==="+"?-x:x})(g)}],p=function(g){var b=s[g];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(g,b){var y,x=s.meridiem;if(x){for(var w=1;w<=24;w+=1)if(g.indexOf(x(w,0,b))>-1){y=w>12;break}}else y=g===(b?"pm":"PM");return y},h={A:[l,function(g){this.afternoon=v(g,!1)}],a:[l,function(g){this.afternoon=v(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[a,d("day")],Do:[l,function(g){var b=s.ordinal,y=g.match(/\d+/);if(this.day=y[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===g&&(this.day=x)}],w:[i,d("week")],ww:[a,d("week")],M:[i,d("month")],MM:[a,d("month")],MMM:[l,function(g){var b=p("months"),y=(p("monthsShort")||b.map((function(x){return x.slice(0,3)}))).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[l,function(g){var b=p("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=c(g)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(g){var b,y;b=g,y=s&&s.formats;for(var x=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(k,I,M){var B=M&&M.toUpperCase();return I||y[M]||n[M]||y[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,F,R){return F||R.slice(1)}))}))).match(r),w=x.length,C=0;C<w;C+=1){var S=x[C],E=h[S],$=E&&E[0],O=E&&E[1];x[C]=O?{regex:$,parser:O}:S.replace(/^\[|\]$/g,"")}return function(k){for(var I={},M=0,B=0;M<w;M+=1){var D=x[M];if(typeof D=="string")B+=D.length;else{var F=D.regex,R=D.parser,H=k.slice(B),j=F.exec(H)[0];R.call(I,j),k=k.replace(j,"")}}return(function(_){var W=_.afternoon;if(W!==void 0){var L=_.hours;W?L<12&&(_.hours+=12):L===12&&(_.hours=0),delete _.afternoon}})(I),I}}return function(g,b,y){y.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var x=b.prototype,w=x.parse;x.parse=function(C){var S=C.date,E=C.utc,$=C.args;this.$u=E;var O=$[1];if(typeof O=="string"){var k=$[2]===!0,I=$[3]===!0,M=k||I,B=$[2];I&&(B=$[2]),s=this.$locale(),!k&&B&&(s=y.Ls[B]),this.$d=(function(H,j,_,W){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*H);var L=m(j)(H),N=L.year,P=L.month,A=L.day,T=L.hours,z=L.minutes,V=L.seconds,q=L.milliseconds,Z=L.zone,G=L.week,J=new Date,K=A||(N||P?1:J.getDate()),X=N||J.getFullYear(),ne=0;N&&!P||(ne=P>0?P-1:J.getMonth());var te,ee=T||0,ie=z||0,se=V||0,fe=q||0;return Z?new Date(Date.UTC(X,ne,K,ee,ie,se,fe+60*Z.offset*1e3)):_?new Date(Date.UTC(X,ne,K,ee,ie,se,fe)):(te=new Date(X,ne,K,ee,ie,se,fe),G&&(te=W(te).week(G).toDate()),te)}catch{return new Date("")}})(S,O,E,y),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),M&&S!=this.format(O)&&(this.$d=new Date("")),s={}}else if(O instanceof Array)for(var D=O.length,F=1;F<=D;F+=1){$[1]=O[F-1];var R=y.apply(this,$);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}F===D&&(this.$d=new Date(""))}else w.call(this,C)}}}))})(Cc)),Cc.exports}var FO=AO();const TO=yr(FO);En.extend(TO);En.extend(PO);En.extend(hO);En.extend(xO);En.extend(EO);En.extend(MO);En.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});var DO={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Wr=function(e){var t=DO[e];return t||e.split("_")[0]},BO={getNow:function(){var e=En();return typeof e.tz=="function"?e.tz():e},getFixedDate:function(e){return En(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return En().locale(Wr(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(Wr(e)).weekday(0)},getWeek:function(e,t){return t.locale(Wr(e)).week()},getShortWeekDays:function(e){return En().locale(Wr(e)).localeData().weekdaysMin()},getShortMonths:function(e){return En().locale(Wr(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(Wr(e)).format(n)},parse:function(e,t,n){for(var r=Wr(e),o=0;o<n.length;o+=1){var a=n[o],i=t;if(a.includes("wo")||a.includes("Wo")){for(var l=i.split("-")[0],s=i.split("-")[1],c=En(l,"YYYY").startOf("year").locale(r),d=0;d<=52;d+=1){var f=c.add(d,"week");if(f.format("Wo")===s)return f}return null}var p=En(i,a,!0).locale(r);if(p.isValid())return p}return null}}};function HO(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var ir=u.createContext(null),zO={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Zh(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,l=e.children,s=e.range,c=e.placement,d=e.builtinPlacements,f=d===void 0?zO:d,p=e.direction,v=e.visible,h=e.onClose,m=u.useContext(ir),g=m.prefixCls,b="".concat(g,"-dropdown"),y=HO(c,p==="rtl");return u.createElement(ku,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:b,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:v,popupClassName:ae(r,Y(Y({},"".concat(b,"-range"),s),"".concat(b,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(x){x||h()}},l)}function ju(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function uo(e){return e==null?[]:Array.isArray(e)?e:[e]}function da(e,t,n){var r=Ce(e);return r[t]=n,r}function fl(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function Jh(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function ev(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function tv(e){return fl(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Pu(e,t,n,r){var o=u.useMemo(function(){return e||function(i,l){var s=i;return t&&l.type==="date"?t(s,l.today):n&&l.type==="month"?n(s,l.locale):l.originNode}},[e,n,t]),a=u.useCallback(function(i,l){return o(i,U(U({},l),{},{range:r}))},[o,r]);return a}function nv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=u.useState([!1,!1]),o=Q(r,2),a=o[0],i=o[1],l=function(c,d){i(function(f){return da(f,d,c)})},s=u.useMemo(function(){return a.map(function(c,d){if(c)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[s,l]}function rv(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function _O(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,c=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,v=e.yearFormat,h=e.cellYearFormat,m=e.cellQuarterFormat,g=e.dayFormat,b=e.cellDateFormat,y=rv(t,n,r,o,a);return U(U({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:b||g||"D"})}function ov(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return pe.useMemo(function(){return _O(e,n,r,o,a,i)},[e,n,r,o,a,i])}function ta(e,t,n){return n??t.some(function(r){return e.includes(r)})}var LO=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function WO(e){var t=fl(e,LO),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=Qe(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function VO(e){return e&&typeof e=="string"}function av(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function iv(e,t,n,r,o){var a=t,i=n,l=r;if(!e&&!a&&!i&&!l&&!o)a=!0,i=!0,l=!0;else if(e){var s,c,d,f=[a,i,l].some(function(h){return h===!1}),p=[a,i,l].some(function(h){return h===!0}),v=f?!0:!p;a=(s=a)!==null&&s!==void 0?s:v,i=(c=i)!==null&&c!==void 0?c:v,l=(d=l)!==null&&d!==void 0?d:v}return[a,i,l,o]}function lv(e){var t=e.showTime,n=WO(e),r=Q(n,2),o=r[0],a=r[1],i=t&&Qe(t)==="object"?t:{},l=U(U({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),s=l.showMillisecond,c=l.showHour,d=l.showMinute,f=l.showSecond,p=av(c,d,f,s),v=iv(p,c,d,f,s),h=Q(v,3);return c=h[0],d=h[1],f=h[2],[l,U(U({},l),{},{showHour:c,showMinute:d,showSecond:f,showMillisecond:s}),l.format,a]}function sv(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,l=Jh(e,o,null),s=l,c=[t,n],d=0;d<c.length;d+=1){var f=uo(c[d])[0];if(VO(f)){s=f;break}}var p=i.showHour,v=i.showMinute,h=i.showSecond,m=i.showMillisecond,g=i.use12Hours,b=ta(s,["a","A","LT","LLL","LTS"],g),y=av(p,v,h,m);y||(p=ta(s,["H","h","k","LT","LLL"]),v=ta(s,["m","LT","LLL"]),h=ta(s,["s","LTS"]),m=ta(s,["SSS"]));var x=iv(y,p,v,h,m),w=Q(x,3);p=w[0],v=w[1],h=w[2];var C=t||rv(p,v,h,m,b);return U(U({},i),{},{format:C,showHour:p,showMinute:v,showSecond:h,showMillisecond:m,use12Hours:b})}return null}function qO(e,t,n){if(t===!1)return null;var r=t&&Qe(t)==="object"?t:{};return r.clearIcon||n||u.createElement("span",{className:"".concat(e,"-clear-btn")})}var Jl=7;function Lr(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Sc(e,t,n){return Lr(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function ro(e,t,n){return Lr(t,n,function(){return e.getYear(t)===e.getYear(n)})}function bp(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function YO(e,t,n){return Lr(t,n,function(){return ro(e,t,n)&&bp(e,t)===bp(e,n)})}function Ru(e,t,n){return Lr(t,n,function(){return ro(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Au(e,t,n){return Lr(t,n,function(){return ro(e,t,n)&&Ru(e,t,n)&&e.getDate(t)===e.getDate(n)})}function cv(e,t,n){return Lr(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function uv(e,t,n){return Lr(t,n,function(){return Au(e,t,n)&&cv(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function aa(e,t,n,r){return Lr(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return ro(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function $n(e,t,n,r,o){switch(o){case"date":return Au(e,n,r);case"week":return aa(e,t.locale,n,r);case"month":return Ru(e,n,r);case"quarter":return YO(e,n,r);case"year":return ro(e,n,r);case"decade":return Sc(e,n,r);case"time":return cv(e,n,r);default:return uv(e,n,r)}}function pl(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Qa(e,t,n,r,o){return $n(e,t,n,r,o)?!0:e.isAfter(n,r)}function XO(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function fn(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function Ri(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,l){n?r=e[i](r,e[o[l]](n)):r=e[i](r,0)}),r}function UO(e,t,n,r,o){var a=bt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!$n(e,t,r,i,l.type)||o&&e.isAfter(i,o)&&!$n(e,t,o,i,l.type))});return a}function GO(e,t,n){return u.useMemo(function(){var r=Jh(e,t,n),o=uo(r),a=o[0],i=Qe(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function KO(e,t,n){return typeof e[0]=="function"||n?!0:t}function QO(e,t,n,r){var o=bt(function(a,i){var l=U({type:t},i);if(delete l.activeIndex,!e.isValidate(a)||n&&n(a,l))return!0;if((t==="date"||t==="time")&&r){var s,c=i&&i.activeIndex===1?"end":"start",d=((s=r.disabledTime)===null||s===void 0?void 0:s.call(r,a,c,{from:l.from}))||{},f=d.disabledHours,p=d.disabledMinutes,v=d.disabledSeconds,h=d.disabledMilliseconds,m=r.disabledHours,g=r.disabledMinutes,b=r.disabledSeconds,y=f||m,x=p||g,w=v||b,C=e.getHour(a),S=e.getMinute(a),E=e.getSecond(a),$=e.getMillisecond(a);if(y&&y().includes(C)||x&&x(C).includes(S)||w&&w(C,S).includes(E)||h&&h(C,S,E).includes($))return!0}return!1});return o}function Za(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=u.useMemo(function(){var r=e&&uo(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function dv(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,l=i===void 0?"rc-picker":i,s=e.styles,c=s===void 0?{}:s,d=e.classNames,f=d===void 0?{}:d,p=e.order,v=p===void 0?!0:p,h=e.components,m=h===void 0?{}:h,g=e.inputRender,b=e.allowClear,y=e.clearIcon,x=e.needConfirm,w=e.multiple,C=e.format,S=e.inputReadOnly,E=e.disabledDate,$=e.minDate,O=e.maxDate,k=e.showTime,I=e.value,M=e.defaultValue,B=e.pickerValue,D=e.defaultPickerValue,F=Za(I),R=Za(M),H=Za(B),j=Za(D),_=a==="date"&&k?"datetime":a,W=_==="time"||_==="datetime",L=W||w,N=x??W,P=lv(e),A=Q(P,4),T=A[0],z=A[1],V=A[2],q=A[3],Z=ov(r,z),G=u.useMemo(function(){return sv(_,V,q,T,Z)},[_,V,q,T,Z]),J=u.useMemo(function(){return U(U({},e),{},{prefixCls:l,locale:Z,picker:a,styles:c,classNames:f,order:v,components:U({input:g},m),clearIcon:qO(l,b,y),showTime:G,value:F,defaultValue:R,pickerValue:H,defaultPickerValue:j},t==null?void 0:t())},[e]),K=GO(_,Z,C),X=Q(K,2),ne=X[0],te=X[1],ee=KO(ne,S,w),ie=UO(n,r,E,$,O),se=QO(n,a,ie,G),fe=u.useMemo(function(){return U(U({},J),{},{needConfirm:N,inputReadOnly:ee,disabledDate:ie})},[J,N,ee,ie]);return[fe,_,L,ne,te,se]}function ZO(e,t,n){var r=Qt(t,{value:e}),o=Q(r,2),a=o[0],i=o[1],l=pe.useRef(e),s=pe.useRef(),c=function(){dt.cancel(s.current)},d=bt(function(){i(l.current),n&&a!==l.current&&n(l.current)}),f=bt(function(p,v){c(),l.current=p,p||v?d():s.current=dt(d)});return pe.useEffect(function(){return c},[]),[a,f]}function fv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(d){return d})?!1:e,a=ZO(o,t||!1,r),i=Q(a,2),l=i[0],s=i[1];function c(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&s(d,f.force)}return[l,c]}function pv(e){var t=u.useRef();return u.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(r){var o;(o=t.current)===null||o===void 0||o.focus(r)},blur:function(){var r;(r=t.current)===null||r===void 0||r.blur()}}}),t}function mv(e,t){return u.useMemo(function(){return e||(t?(vn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Q(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function Fu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=u.useRef(t);r.current=t,Oo(function(){if(e)r.current(e);else{var o=dt(function(){r.current(e)},n);return function(){dt.cancel(o)}}},[e])}function gv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=u.useState(0),o=Q(r,2),a=o[0],i=o[1],l=u.useState(!1),s=Q(l,2),c=s[0],d=s[1],f=u.useRef([]),p=u.useRef(null),v=u.useRef(null),h=function(x){p.current=x},m=function(x){return p.current===x},g=function(x){d(x)},b=function(x){return x&&(v.current=x),v.current},y=function(x){var w=f.current,C=new Set(w.filter(function(E){return x[E]||t[E]})),S=w[w.length-1]===0?1:0;return C.size>=2||e[S]?null:S};return Fu(c||n,function(){c||(f.current=[],h(null))}),u.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,g,b,a,i,y,f.current,h,m]}function JO(e,t,n,r,o,a){var i=n[n.length-1],l=function(s,c){var d=Q(e,2),f=d[0],p=d[1],v=U(U({},c),{},{from:ev(e,n)});return i===1&&t[0]&&f&&!$n(r,o,f,s,v.type)&&r.isAfter(f,s)||i===0&&t[1]&&p&&!$n(r,o,p,s,v.type)&&r.isAfter(s,p)?!0:a==null?void 0:a(s,v)};return l}function ia(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var es=[];function hv(e,t,n,r,o,a,i,l){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:es,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:es,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:es,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,h=i==="time",m=a||0,g=function(R){var H=e.getNow();return h&&(H=Ri(e,H)),s[R]||n[R]||H},b=Q(c,2),y=b[0],x=b[1],w=Qt(function(){return g(0)},{value:y}),C=Q(w,2),S=C[0],E=C[1],$=Qt(function(){return g(1)},{value:x}),O=Q($,2),k=O[0],I=O[1],M=u.useMemo(function(){var R=[S,k][m];return h?R:Ri(e,R,d[m])},[h,S,k,m,e,d]),B=function(R){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",j=[E,I][m];j(R);var _=[S,k];_[m]=R,f&&(!$n(e,t,S,_[0],i)||!$n(e,t,k,_[1],i))&&f(_,{source:H,range:m===1?"end":"start",mode:r})},D=function(R,H){if(l){var j={date:"month",week:"month",month:"year",quarter:"year"},_=j[i];if(_&&!$n(e,t,R,H,_))return ia(e,i,H,-1);if(i==="year"&&R){var W=Math.floor(e.getYear(R)/10),L=Math.floor(e.getYear(H)/10);if(W!==L)return ia(e,i,H,-1)}}return H},F=u.useRef(null);return wt(function(){if(o&&!s[m]){var R=h?null:e.getNow();if(F.current!==null&&F.current!==m?R=[S,k][m^1]:n[m]?R=m===0?n[0]:D(n[0],n[1]):n[m^1]&&(R=n[m^1]),R){p&&e.isAfter(p,R)&&(R=p);var H=l?ia(e,i,R,1):R;v&&e.isAfter(H,v)&&(R=l?ia(e,i,v,-1):v),B(R,"reset")}}},[o,m,n[m]]),u.useEffect(function(){o?F.current=m:F.current=null},[o,m]),wt(function(){o&&s&&s[m]&&B(s[m],"reset")},[o,m]),[M,B]}function vv(e,t){var n=u.useRef(e),r=u.useState({}),o=Q(r,2),a=o[1],i=function(s){return s&&t!==void 0?t:n.current},l=function(s){n.current=s,a({})};return[i,l,i(!0)]}var eM=[];function bv(e,t,n){var r=function(a){return a.map(function(i){return fn(i,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,i){for(var l=Math.max(a.length,i.length),s=-1,c=0;c<l;c+=1){var d=a[c]||null,f=i[c]||null;if(d!==f&&!uv(e,d,f)){s=c;break}}return[s<0,s!==0]};return[r,o]}function yv(e,t){return Ce(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function tM(e){var t=vv(e),n=Q(t,2),r=n[0],o=n[1],a=bt(function(){o(e)});return u.useEffect(function(){a()},[e]),[r,o]}function xv(e,t,n,r,o,a,i,l,s){var c=Qt(a,{value:i}),d=Q(c,2),f=d[0],p=d[1],v=f||eM,h=tM(v),m=Q(h,2),g=m[0],b=m[1],y=bv(e,t,n),x=Q(y,2),w=x[0],C=x[1],S=bt(function($){var O=Ce($);if(r)for(var k=0;k<2;k+=1)O[k]=O[k]||null;else o&&(O=yv(O.filter(function(R){return R}),e));var I=C(g(),O),M=Q(I,2),B=M[0],D=M[1];if(!B&&(b(O),l)){var F=w(O);l(O,F,{range:D?"end":"start"})}}),E=function(){s&&s(g())};return[v,p,g,S,E]}function wv(e,t,n,r,o,a,i,l,s,c){var d=e.generateConfig,f=e.locale,p=e.picker,v=e.onChange,h=e.allowEmpty,m=e.order,g=a.some(function(B){return B})?!1:m,b=bv(d,f,i),y=Q(b,2),x=y[0],w=y[1],C=vv(t),S=Q(C,2),E=S[0],$=S[1],O=bt(function(){$(t)});u.useEffect(function(){O()},[t]);var k=bt(function(B){var D=B===null,F=Ce(B||E());if(D)for(var R=Math.max(a.length,F.length),H=0;H<R;H+=1)a[H]||(F[H]=null);g&&F[0]&&F[1]&&(F=yv(F,d)),o(F);var j=F,_=Q(j,2),W=_[0],L=_[1],N=!W,P=!L,A=h?(!N||h[0])&&(!P||h[1]):!0,T=!m||N||P||$n(d,f,W,L,p)||d.isAfter(L,W),z=(a[0]||!W||!c(W,{activeIndex:0}))&&(a[1]||!L||!c(L,{from:W,activeIndex:1})),V=D||A&&T&&z;if(V){n(F);var q=w(F,t),Z=Q(q,1),G=Z[0];v&&!G&&v(D&&F.every(function(J){return!J})?null:F,x(F))}return V}),I=bt(function(B,D){var F=da(E(),B,r()[B]);$(F),D&&k()}),M=!l&&!s;return Fu(!M,function(){M&&(k(),o(t),O())},2),[I,k]}function Cv(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function nM(e,t,n,r,o,a){var i=e;function l(f,p,v){var h=a[f](i),m=v.find(function(x){return x.value===h});if(!m||m.disabled){var g=v.filter(function(x){return!x.disabled}),b=Ce(g).reverse(),y=b.find(function(x){return x.value<=h})||g[0];y&&(h=y.value,i=a[p](i,h))}return h}var s=l("getHour","setHour",t()),c=l("getMinute","setMinute",n(s)),d=l("getSecond","setSecond",r(s,c));return l("getMillisecond","setMillisecond",o(s,c,d)),i}function Ja(){return[]}function ei(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,s=e;s<=t;s+=l){var c=o.includes(s);(!c||!r)&&i.push({label:ju(s,a),value:s,disabled:c})}return i}function Tu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,l=r.minuteStep,s=l===void 0?1:l,c=r.secondStep,d=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,v=r.hideDisabledOptions,h=r.disabledTime,m=r.disabledHours,g=r.disabledMinutes,b=r.disabledSeconds,y=u.useMemo(function(){return n||e.getNow()},[n,e]),x=u.useCallback(function(j){var _=(h==null?void 0:h(j))||{};return[_.disabledHours||m||Ja,_.disabledMinutes||g||Ja,_.disabledSeconds||b||Ja,_.disabledMilliseconds||Ja]},[h,m,g,b]),w=u.useMemo(function(){return x(y)},[y,x]),C=Q(w,4),S=C[0],E=C[1],$=C[2],O=C[3],k=u.useCallback(function(j,_,W,L){var N=ei(0,23,i,v,j()),P=o?N.map(function(V){return U(U({},V),{},{label:ju(V.value%12||12,2)})}):N,A=function(V){return ei(0,59,s,v,_(V))},T=function(V,q){return ei(0,59,d,v,W(V,q))},z=function(V,q,Z){return ei(0,999,p,v,L(V,q,Z),3)};return[P,A,T,z]},[v,i,o,p,s,d]),I=u.useMemo(function(){return k(S,E,$,O)},[k,S,E,$,O]),M=Q(I,4),B=M[0],D=M[1],F=M[2],R=M[3],H=function(j,_){var W=function(){return B},L=D,N=F,P=R;if(_){var A=x(_),T=Q(A,4),z=T[0],V=T[1],q=T[2],Z=T[3],G=k(z,V,q,Z),J=Q(G,4),K=J[0],X=J[1],ne=J[2],te=J[3];W=function(){return K},L=X,N=ne,P=te}var ee=nM(j,W,L,N,P,e);return ee};return[H,B,D,F,R]}function rM(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,l=e.onNow,s=e.invalid,c=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=u.useContext(ir),v=p.prefixCls,h=p.locale,m=p.button,g=m===void 0?"button":m,b=d.getNow(),y=Tu(d,a,b),x=Q(y,1),w=x[0],C=r==null?void 0:r(t),S=f(b,{type:t}),E=function(){if(!S){var B=w(b);l(B)}},$="".concat(v,"-now"),O="".concat($,"-btn"),k=o&&u.createElement("li",{className:$},u.createElement("a",{className:ae(O,S&&"".concat(O,"-disabled")),"aria-disabled":S,onClick:E},n==="date"?h.today:h.now)),I=c&&u.createElement("li",{className:"".concat(v,"-ok")},u.createElement(g,{disabled:s,onClick:i},h.ok)),M=(k||I)&&u.createElement("ul",{className:"".concat(v,"-ranges")},k,I);return!C&&!M?null:u.createElement("div",{className:"".concat(v,"-footer")},C&&u.createElement("div",{className:"".concat(v,"-footer-extra")},C),M)}function Sv(e,t,n){function r(o,a){var i=o.findIndex(function(s){return $n(e,t,s,a,n)});if(i===-1)return[].concat(Ce(o),[a]);var l=Ce(o);return l.splice(i,1),l}return r}var fo=u.createContext(null);function ml(){return u.useContext(fo)}function Wo(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,s=e.cellRender,c=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,p=e.values,v=e.pickerValue,h=e.onSelect,m=e.prevIcon,g=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,x=r.getNow(),w={now:x,values:p,pickerValue:v,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:s,hoverValue:c,hoverRangeValue:d,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:m,nextIcon:g,superPrevIcon:b,superNextIcon:y};return[w,x]}var Pr=u.createContext({});function Da(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,s=e.getCellText,c=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,v=e.disabledDate,h=ml(),m=h.prefixCls,g=h.panelType,b=h.now,y=h.disabledDate,x=h.cellRender,w=h.onHover,C=h.hoverValue,S=h.hoverRangeValue,E=h.generateConfig,$=h.values,O=h.locale,k=h.onSelect,I=v||y,M="".concat(m,"-cell"),B=u.useContext(Pr),D=B.onCellDblClick,F=function(N){return $.some(function(P){return P&&$n(E,O,N,P,g)})},R=[],H=0;H<t;H+=1){for(var j=[],_=void 0,W=function(){var N=H*n+L,P=o(r,N),A=I==null?void 0:I(P,{type:g});L===0&&(_=P,a&&j.push(a(_)));var T=!1,z=!1,V=!1;if(p&&S){var q=Q(S,2),Z=q[0],G=q[1];T=pl(E,Z,G,P),z=$n(E,O,P,Z,g),V=$n(E,O,P,G,g)}var J=l?fn(P,{locale:O,format:l,generateConfig:E}):void 0,K=u.createElement("div",{className:"".concat(M,"-inner")},s(P));j.push(u.createElement("td",{key:L,title:J,className:ae(M,U(Y(Y(Y(Y(Y(Y({},"".concat(M,"-disabled"),A),"".concat(M,"-hover"),(C||[]).some(function(X){return $n(E,O,P,X,g)})),"".concat(M,"-in-range"),T&&!z&&!V),"".concat(M,"-range-start"),z),"".concat(M,"-range-end"),V),"".concat(m,"-cell-selected"),!S&&g!=="week"&&F(P)),c(P))),onClick:function(){A||k(P)},onDoubleClick:function(){!A&&D&&D()},onMouseEnter:function(){A||(w==null||w(P))},onMouseLeave:function(){A||(w==null||w(null))}},x?x(P,{prefixCls:m,originNode:K,today:b,type:g,locale:O}):K))},L=0;L<n;L+=1)W();R.push(u.createElement("tr",{key:H,className:i==null?void 0:i(_)},j))}return u.createElement("div",{className:"".concat(m,"-body")},u.createElement("table",{className:"".concat(m,"-content")},d&&u.createElement("thead",null,u.createElement("tr",null,d)),u.createElement("tbody",null,R)))}var ti={visibility:"hidden"};function Vo(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,l=ml(),s=l.prefixCls,c=l.prevIcon,d=c===void 0?"\u2039":c,f=l.nextIcon,p=f===void 0?"\u203A":f,v=l.superPrevIcon,h=v===void 0?"\xAB":v,m=l.superNextIcon,g=m===void 0?"\xBB":m,b=l.minDate,y=l.maxDate,x=l.generateConfig,w=l.locale,C=l.pickerValue,S=l.panelType,E="".concat(s,"-header"),$=u.useContext(Pr),O=$.hidePrev,k=$.hideNext,I=$.hideHeader,M=u.useMemo(function(){if(!b||!t||!a)return!1;var N=a(t(-1,C));return!Qa(x,w,N,b,S)},[b,t,C,a,x,w,S]),B=u.useMemo(function(){if(!b||!n||!a)return!1;var N=a(n(-1,C));return!Qa(x,w,N,b,S)},[b,n,C,a,x,w,S]),D=u.useMemo(function(){if(!y||!t||!o)return!1;var N=o(t(1,C));return!Qa(x,w,y,N,S)},[y,t,C,o,x,w,S]),F=u.useMemo(function(){if(!y||!n||!o)return!1;var N=o(n(1,C));return!Qa(x,w,y,N,S)},[y,n,C,o,x,w,S]),R=function(N){t&&r(t(N,C))},H=function(N){n&&r(n(N,C))};if(I)return null;var j="".concat(E,"-prev-btn"),_="".concat(E,"-next-btn"),W="".concat(E,"-super-prev-btn"),L="".concat(E,"-super-next-btn");return u.createElement("div",{className:E},n&&u.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return H(-1)},tabIndex:-1,className:ae(W,B&&"".concat(W,"-disabled")),disabled:B,style:O?ti:{}},h),t&&u.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return R(-1)},tabIndex:-1,className:ae(j,M&&"".concat(j,"-disabled")),disabled:M,style:O?ti:{}},d),u.createElement("div",{className:"".concat(E,"-view")},i),t&&u.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return R(1)},tabIndex:-1,className:ae(_,D&&"".concat(_,"-disabled")),disabled:D,style:k?ti:{}},p),n&&u.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return H(1)},tabIndex:-1,className:ae(L,F&&"".concat(L,"-disabled")),disabled:F,style:k?ti:{}},g))}function gl(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,l=e.onPickerValueChange,s=e.onModeChange,c=e.mode,d=c===void 0?"date":c,f=e.disabledDate,p=e.onSelect,v=e.onHover,h=e.showWeek,m="".concat(t,"-").concat(r,"-panel"),g="".concat(t,"-cell"),b=d==="week",y=Wo(e,d),x=Q(y,2),w=x[0],C=x[1],S=a.locale.getWeekFirstDay(o.locale),E=a.setDate(i,1),$=XO(o.locale,a,E),O=a.getMonth(i),k=h===void 0?b:h,I=k?function(N){var P=f==null?void 0:f(N,{type:"week"});return u.createElement("td",{key:"week",className:ae(g,"".concat(g,"-week"),Y({},"".concat(g,"-disabled"),P)),onClick:function(){P||p(N)},onMouseEnter:function(){P||(v==null||v(N))},onMouseLeave:function(){P||(v==null||v(null))}},u.createElement("div",{className:"".concat(g,"-inner")},a.locale.getWeek(o.locale,N)))}:null,M=[],B=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);I&&M.push(u.createElement("th",{key:"empty"},u.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var D=0;D<Jl;D+=1)M.push(u.createElement("th",{key:D},B[(D+S)%Jl]));var F=function(N,P){return a.addDate(N,P)},R=function(N){return fn(N,{locale:o,format:o.cellDateFormat,generateConfig:a})},H=function(N){var P=Y(Y({},"".concat(t,"-cell-in-view"),Ru(a,N,i)),"".concat(t,"-cell-today"),Au(a,N,C));return P},j=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),_=u.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){s("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},fn(i,{locale:o,format:o.yearFormat,generateConfig:a})),W=u.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){s("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?fn(i,{locale:o,format:o.monthFormat,generateConfig:a}):j[O]),L=o.monthBeforeYear?[W,_]:[_,W];return u.createElement(fo.Provider,{value:w},u.createElement("div",{className:ae(m,h&&"".concat(m,"-show-week"))},u.createElement(Vo,{offset:function(N){return a.addMonth(i,N)},superOffset:function(N){return a.addYear(i,N)},onChange:l,getStart:function(N){return a.setDate(N,1)},getEnd:function(N){var P=a.setDate(N,1);return P=a.addMonth(P,1),a.addDate(P,-1)}},L),u.createElement(Da,Ae({titleFormat:o.fieldDateFormat},e,{colNum:Jl,rowNum:6,baseDate:$,headerCells:M,getCellDate:F,getCellText:R,getCellClassName:H,prefixColumn:I,cellSelection:!b}))))}var oM=1/3;function aM(e,t){var n=u.useRef(!1),r=u.useRef(null),o=u.useRef(null),a=function(){return n.current},i=function(){dt.cancel(r.current),n.current=!1},l=u.useRef(),s=function(){var d=e.current;if(o.current=null,l.current=0,d){var f=d.querySelector('[data-value="'.concat(t,'"]')),p=d.querySelector("li"),v=function h(){i(),n.current=!0,l.current+=1;var m=d.scrollTop,g=p.offsetTop,b=f.offsetTop,y=b-g;if(b===0&&f!==p||!el(d)){l.current<=5&&(r.current=dt(h));return}var x=m+(y-m)*oM,w=Math.abs(y-x);if(o.current!==null&&o.current<w){i();return}if(o.current=w,w<=1){d.scrollTop=y,i();return}d.scrollTop=x,r.current=dt(h)};f&&p&&v()}},c=bt(s);return[c,i,a]}var iM=300;function lM(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function na(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,l=e.onDblClick,s=e.changeOnScroll,c=ml(),d=c.prefixCls,f=c.cellRender,p=c.now,v=c.locale,h="".concat(d,"-time-panel"),m="".concat(d,"-time-panel-cell"),g=u.useRef(null),b=u.useRef(),y=function(){clearTimeout(b.current)},x=aM(g,n??r),w=Q(x,3),C=w[0],S=w[1],E=w[2];wt(function(){return C(),y(),function(){S(),y()}},[n,r,lM(t)]);var $=function(k){y();var I=k.target;!E()&&s&&(b.current=setTimeout(function(){var M=g.current,B=M.querySelector("li").offsetTop,D=Array.from(M.querySelectorAll("li")),F=D.map(function(W){return W.offsetTop-B}),R=F.map(function(W,L){return t[L].disabled?Number.MAX_SAFE_INTEGER:Math.abs(W-I.scrollTop)}),H=Math.min.apply(Math,Ce(R)),j=R.findIndex(function(W){return W===H}),_=t[j];_&&!_.disabled&&a(_.value)},iM))},O="".concat(h,"-column");return u.createElement("ul",{className:O,ref:g,"data-type":o,onScroll:$},t.map(function(k){var I=k.label,M=k.value,B=k.disabled,D=u.createElement("div",{className:"".concat(m,"-inner")},I);return u.createElement("li",{key:M,className:ae(m,Y(Y({},"".concat(m,"-selected"),n===M),"".concat(m,"-disabled"),B)),onClick:function(){B||a(M)},onDoubleClick:function(){!B&&l&&l()},onMouseEnter:function(){i(M)},onMouseLeave:function(){i(null)},"data-value":M},f?f(M,{prefixCls:d,originNode:D,today:p,type:"time",subType:o,locale:v}):D)}))}function Er(e){return e<12}function sM(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,l=ml(),s=l.prefixCls,c=l.values,d=l.generateConfig,f=l.locale,p=l.onSelect,v=l.onHover,h=v===void 0?function(){}:v,m=l.pickerValue,g=(c==null?void 0:c[0])||null,b=u.useContext(Pr),y=b.onCellDblClick,x=Tu(d,e,g),w=Q(x,5),C=w[0],S=w[1],E=w[2],$=w[3],O=w[4],k=function(ce){var Ge=g&&d[ce](g),rt=m&&d[ce](m);return[Ge,rt]},I=k("getHour"),M=Q(I,2),B=M[0],D=M[1],F=k("getMinute"),R=Q(F,2),H=R[0],j=R[1],_=k("getSecond"),W=Q(_,2),L=W[0],N=W[1],P=k("getMillisecond"),A=Q(P,2),T=A[0],z=A[1],V=B===null?null:Er(B)?"am":"pm",q=u.useMemo(function(){return a?Er(B)?S.filter(function(ce){return Er(ce.value)}):S.filter(function(ce){return!Er(ce.value)}):S},[B,S,a]),Z=function(ce,Ge){var rt,at=ce.filter(function(pt){return!pt.disabled});return Ge??(at==null||(rt=at[0])===null||rt===void 0?void 0:rt.value)},G=Z(S,B),J=u.useMemo(function(){return E(G)},[E,G]),K=Z(J,H),X=u.useMemo(function(){return $(G,K)},[$,G,K]),ne=Z(X,L),te=u.useMemo(function(){return O(G,K,ne)},[O,G,K,ne]),ee=Z(te,T),ie=u.useMemo(function(){if(!a)return[];var ce=d.getNow(),Ge=d.setHour(ce,6),rt=d.setHour(ce,18),at=function(pt,Ne){var Be=f.cellMeridiemFormat;return Be?fn(pt,{generateConfig:d,locale:f,format:Be}):Ne};return[{label:at(Ge,"AM"),value:"am",disabled:S.every(function(pt){return pt.disabled||!Er(pt.value)})},{label:at(rt,"PM"),value:"pm",disabled:S.every(function(pt){return pt.disabled||Er(pt.value)})}]},[S,a,d,f]),se=function(ce){var Ge=C(ce);p(Ge)},fe=u.useMemo(function(){var ce=g||m||d.getNow(),Ge=function(rt){return rt!=null};return Ge(B)?(ce=d.setHour(ce,B),ce=d.setMinute(ce,H),ce=d.setSecond(ce,L),ce=d.setMillisecond(ce,T)):Ge(D)?(ce=d.setHour(ce,D),ce=d.setMinute(ce,j),ce=d.setSecond(ce,N),ce=d.setMillisecond(ce,z)):Ge(G)&&(ce=d.setHour(ce,G),ce=d.setMinute(ce,K),ce=d.setSecond(ce,ne),ce=d.setMillisecond(ce,ee)),ce},[g,m,B,H,L,T,G,K,ne,ee,D,j,N,z,d]),ve=function(ce,Ge){return ce===null?null:d[Ge](fe,ce)},me=function(ce){return ve(ce,"setHour")},Ee=function(ce){return ve(ce,"setMinute")},le=function(ce){return ve(ce,"setSecond")},de=function(ce){return ve(ce,"setMillisecond")},je=function(ce){return ce===null?null:ce==="am"&&!Er(B)?d.setHour(fe,B-12):ce==="pm"&&Er(B)?d.setHour(fe,B+12):fe},oe=function(ce){se(me(ce))},Me=function(ce){se(Ee(ce))},ke=function(ce){se(le(ce))},Fe=function(ce){se(de(ce))},Pe=function(ce){se(je(ce))},Ie=function(ce){h(me(ce))},ye=function(ce){h(Ee(ce))},be=function(ce){h(le(ce))},he=function(ce){h(de(ce))},we=function(ce){h(je(ce))},Te={onDblClick:y,changeOnScroll:i};return u.createElement("div",{className:"".concat(s,"-content")},t&&u.createElement(na,Ae({units:q,value:B,optionalValue:D,type:"hour",onChange:oe,onHover:Ie},Te)),n&&u.createElement(na,Ae({units:J,value:H,optionalValue:j,type:"minute",onChange:Me,onHover:ye},Te)),r&&u.createElement(na,Ae({units:X,value:L,optionalValue:N,type:"second",onChange:ke,onHover:be},Te)),o&&u.createElement(na,Ae({units:te,value:T,optionalValue:z,type:"millisecond",onChange:Fe,onHover:he},Te)),a&&u.createElement(na,Ae({units:ie,value:V,type:"meridiem",onChange:Pe,onHover:we},Te)))}function Ev(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},l=i.format,s="".concat(t,"-time-panel"),c=Wo(e,"time"),d=Q(c,1),f=d[0];return u.createElement(fo.Provider,{value:f},u.createElement("div",{className:ae(s)},u.createElement(Vo,null,n?fn(n,{locale:r,format:l,generateConfig:o}):"\xA0"),u.createElement(sM,a)))}function cM(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,l=e.onHover,s="".concat(t,"-datetime-panel"),c=Tu(n,r),d=Q(c,1),f=d[0],p=function(m){return a?Ri(n,m,a):Ri(n,m,i)},v=function(m){l==null||l(m&&p(m))},h=function(m){var g=p(m);o(f(g,g))};return u.createElement("div",{className:s},u.createElement(gl,Ae({},e,{onSelect:h,onHover:v})),u.createElement(Ev,e))}function uM(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l="".concat(t,"-decade-panel"),s=Wo(e,"decade"),c=Q(s,1),d=c[0],f=function(C){var S=Math.floor(r.getYear(C)/100)*100;return r.setYear(C,S)},p=function(C){var S=f(C);return r.addYear(S,99)},v=f(o),h=p(o),m=r.addYear(v,-10),g=function(C,S){return r.addYear(C,S*10)},b=function(C){var S=n.cellYearFormat,E=fn(C,{locale:n,format:S,generateConfig:r}),$=fn(r.addYear(C,9),{locale:n,format:S,generateConfig:r});return"".concat(E,"-").concat($)},y=function(C){return Y({},"".concat(t,"-cell-in-view"),Sc(r,C,v)||Sc(r,C,h)||pl(r,v,h,C))},x=a?function(C,S){var E=r.setDate(C,1),$=r.setMonth(E,0),O=r.setYear($,Math.floor(r.getYear($)/10)*10),k=r.addYear(O,10),I=r.addDate(k,-1);return a(O,S)&&a(I,S)}:null,w="".concat(fn(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(fn(h,{locale:n,format:n.yearFormat,generateConfig:r}));return u.createElement(fo.Provider,{value:d},u.createElement("div",{className:l},u.createElement(Vo,{superOffset:function(C){return r.addYear(o,C*100)},onChange:i,getStart:f,getEnd:p},w),u.createElement(Da,Ae({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:m,getCellDate:g,getCellText:b,getCellClassName:y}))))}function dM(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-month-panel"),c=Wo(e,"month"),d=Q(c,1),f=d[0],p=r.setMonth(o,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(x,w){return r.addMonth(x,w)},m=function(x){var w=r.getMonth(x);return n.monthFormat?fn(x,{locale:n,format:n.monthFormat,generateConfig:r}):v[w]},g=function(){return Y({},"".concat(t,"-cell-in-view"),!0)},b=a?function(x,w){var C=r.setDate(x,1),S=r.setMonth(C,r.getMonth(C)+1),E=r.addDate(S,-1);return a(C,w)&&a(E,w)}:null,y=u.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},fn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return u.createElement(fo.Provider,{value:f},u.createElement("div",{className:s},u.createElement(Vo,{superOffset:function(x){return r.addYear(o,x)},onChange:i,getStart:function(x){return r.setMonth(x,0)},getEnd:function(x){return r.setMonth(x,11)}},y),u.createElement(Da,Ae({},e,{disabledDate:b,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:h,getCellText:m,getCellClassName:g}))))}function fM(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,l="".concat(t,"-quarter-panel"),s=Wo(e,"quarter"),c=Q(s,1),d=c[0],f=r.setMonth(o,0),p=function(g,b){return r.addMonth(g,b*3)},v=function(g){return fn(g,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return Y({},"".concat(t,"-cell-in-view"),!0)},m=u.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},fn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return u.createElement(fo.Provider,{value:d},u.createElement("div",{className:l},u.createElement(Vo,{superOffset:function(g){return r.addYear(o,g)},onChange:a,getStart:function(g){return r.setMonth(g,0)},getEnd:function(g){return r.setMonth(g,11)}},m),u.createElement(Da,Ae({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:p,getCellText:v,getCellClassName:h}))))}function pM(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,l=r.locale,s="".concat(t,"-week-panel-row"),c=function(d){var f={};if(i){var p=Q(i,2),v=p[0],h=p[1],m=aa(n,l,v,d),g=aa(n,l,h,d);f["".concat(s,"-range-start")]=m,f["".concat(s,"-range-end")]=g,f["".concat(s,"-range-hover")]=!m&&!g&&pl(n,v,h,d)}return a&&(f["".concat(s,"-hover")]=a.some(function(b){return aa(n,l,d,b)})),ae(s,Y({},"".concat(s,"-selected"),!i&&aa(n,l,o,d)),f)};return u.createElement(gl,Ae({},e,{mode:"week",panelName:"week",rowClassName:c}))}function mM(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-year-panel"),c=Wo(e,"year"),d=Q(c,1),f=d[0],p=function(S){var E=Math.floor(r.getYear(S)/10)*10;return r.setYear(S,E)},v=function(S){var E=p(S);return r.addYear(E,9)},h=p(o),m=v(o),g=r.addYear(h,-1),b=function(S,E){return r.addYear(S,E)},y=function(S){return fn(S,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(S){return Y({},"".concat(t,"-cell-in-view"),ro(r,S,h)||ro(r,S,m)||pl(r,h,m,S))},w=a?function(S,E){var $=r.setMonth(S,0),O=r.setDate($,1),k=r.addYear(O,1),I=r.addDate(k,-1);return a(O,E)&&a(I,E)}:null,C=u.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},fn(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",fn(m,{locale:n,format:n.yearFormat,generateConfig:r}));return u.createElement(fo.Provider,{value:f},u.createElement("div",{className:s},u.createElement(Vo,{superOffset:function(S){return r.addYear(o,S*10)},onChange:i,getStart:p,getEnd:v},C),u.createElement(Da,Ae({},e,{disabledDate:w,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:b,getCellText:y,getCellClassName:x}))))}var gM={date:gl,datetime:cM,week:pM,month:dM,quarter:fM,year:mM,decade:uM,time:Ev};function hM(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,l=e.tabIndex,s=l===void 0?0:l,c=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,v=e.onSelect,h=e.defaultPickerValue,m=e.pickerValue,g=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,w=x===void 0?"date":x,C=e.showTime,S=e.hoverValue,E=e.hoverRangeValue,$=e.cellRender,O=e.dateRender,k=e.monthCellRender,I=e.components,M=I===void 0?{}:I,B=e.hideHeader,D=((n=u.useContext(ir))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",F=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:F.current}});var R=lv(e),H=Q(R,4),j=H[0],_=H[1],W=H[2],L=H[3],N=ov(r,_),P=w==="date"&&C?"datetime":w,A=u.useMemo(function(){return sv(P,W,L,j,N)},[P,W,L,j,N]),T=o.getNow(),z=Qt(w,{value:b,postState:function(he){return he||"date"}}),V=Q(z,2),q=V[0],Z=V[1],G=q==="date"&&A?"datetime":q,J=Sv(o,r,P),K=Qt(d,{value:f}),X=Q(K,2),ne=X[0],te=X[1],ee=u.useMemo(function(){var he=uo(ne).filter(function(we){return we});return c?he:he.slice(0,1)},[ne,c]),ie=bt(function(he){te(he),p&&(he===null||ee.length!==he.length||ee.some(function(we,Te){return!$n(o,r,we,he[Te],P)}))&&(p==null||p(c?he:he[0]))}),se=bt(function(he){if(v==null||v(he),q===w){var we=c?J(ee,he):[he];ie(we)}}),fe=Qt(h||ee[0]||T,{value:m}),ve=Q(fe,2),me=ve[0],Ee=ve[1];u.useEffect(function(){ee[0]&&!m&&Ee(ee[0])},[ee[0]]);var le=function(he,we){y==null||y(he||m,we||q)},de=function(he){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ee(he),g==null||g(he),we&&le(he)},je=function(he,we){Z(he),we&&de(we),le(we,he)},oe=function(he){if(se(he),de(he),q!==w){var we=["decade","year"],Te=[].concat(we,["month"]),ce={quarter:[].concat(we,["quarter"]),week:[].concat(Ce(Te),["week"]),date:[].concat(Ce(Te),["date"])},Ge=ce[w]||Te,rt=Ge.indexOf(q),at=Ge[rt+1];at&&je(at,he)}},Me=u.useMemo(function(){var he,we;if(Array.isArray(E)){var Te=Q(E,2);he=Te[0],we=Te[1]}else he=E;return!he&&!we?null:(he=he||we,we=we||he,o.isAfter(he,we)?[we,he]:[he,we])},[E,o]),ke=Pu($,O,k),Fe=M[G]||gM[G]||gl,Pe=u.useContext(Pr),Ie=u.useMemo(function(){return U(U({},Pe),{},{hideHeader:B})},[Pe,B]),ye="".concat(D,"-panel"),be=fl(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return u.createElement(Pr.Provider,{value:Ie},u.createElement("div",{ref:F,tabIndex:s,className:ae(ye,Y({},"".concat(ye,"-rtl"),a==="rtl"))},u.createElement(Fe,Ae({},be,{showTime:A,prefixCls:D,locale:N,generateConfig:o,onModeChange:je,pickerValue:me,onPickerValueChange:function(he){de(he,!0)},value:ee[0],onSelect:oe,values:ee,cellRender:ke,hoverRangeValue:Me,hoverValue:S}))))}var ts=u.memo(u.forwardRef(hM));function vM(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,l=e.range,s=e.hoverValue,c=u.useContext(ir),d=c.prefixCls,f=c.generateConfig,p=u.useCallback(function(y,x){return ia(f,t,y,x)},[f,t]),v=u.useMemo(function(){return p(r,1)},[r,p]),h=function(y){o(p(y,-1))},m={onCellDblClick:function(){a&&i()}},g=t==="time",b=U(U({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return l?b.hoverRangeValue=s:b.hoverValue=s,n?u.createElement("div",{className:"".concat(d,"-panels")},u.createElement(Pr.Provider,{value:U(U({},m),{},{hideNext:!0})},u.createElement(ts,b)),u.createElement(Pr.Provider,{value:U(U({},m),{},{hidePrev:!0})},u.createElement(ts,Ae({},b,{pickerValue:v,onPickerValueChange:h})))):u.createElement(Pr.Provider,{value:U({},m)},u.createElement(ts,b))}function yp(e){return typeof e=="function"?e():e}function bM(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?u.createElement("div",{className:"".concat(t,"-presets")},u.createElement("ul",null,n.map(function(a,i){var l=a.label,s=a.value;return u.createElement("li",{key:i,onClick:function(){r(yp(s))},onMouseEnter:function(){o(yp(s))},onMouseLeave:function(){o(null)}},l)}))):null}function $v(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,l=e.activeInfo,s=l===void 0?[0,0,0]:l,c=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,m=e.direction,g=e.value,b=e.onSelect,y=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,S=u.useContext(ir),E=S.prefixCls,$="".concat(E,"-panel"),O=m==="rtl",k=u.useRef(null),I=u.useRef(null),M=u.useState(0),B=Q(M,2),D=B[0],F=B[1],R=u.useState(0),H=Q(R,2),j=H[0],_=H[1],W=u.useState(0),L=Q(W,2),N=L[0],P=L[1],A=function(je){je.width&&F(je.width)},T=Q(s,3),z=T[0],V=T[1],q=T[2],Z=u.useState(0),G=Q(Z,2),J=G[0],K=G[1];u.useEffect(function(){K(10)},[z]),u.useEffect(function(){if(a&&I.current){var je,oe=((je=k.current)===null||je===void 0?void 0:je.offsetWidth)||0,Me=I.current.getBoundingClientRect();if(!Me.height||Me.right<0){K(function(Ie){return Math.max(0,Ie-1)});return}var ke=(O?V-oe:z)-Me.left;if(P(ke),D&&D<q){var Fe=O?Me.right-(V-oe+D):z+oe-Me.left-D,Pe=Math.max(0,Fe);_(Pe)}else _(0)}},[J,O,D,z,V,q,a]);function X(je){return je.filter(function(oe){return oe})}var ne=u.useMemo(function(){return X(uo(g))},[g]),te=r==="time"&&!ne.length,ee=u.useMemo(function(){return te?X([x]):ne},[te,ne,x]),ie=te?x:ne,se=u.useMemo(function(){return ee.length?ee.some(function(je){return y(je)}):!0},[ee,y]),fe=function(){te&&b(x),w(),C()},ve=u.createElement("div",{className:"".concat(E,"-panel-layout")},u.createElement(bM,{prefixCls:E,presets:c,onClick:f,onHover:d}),u.createElement("div",null,u.createElement(vM,Ae({},e,{value:ie})),u.createElement(rM,Ae({},e,{showNow:i?!1:o,invalid:se,onSubmit:fe}))));t&&(ve=t(ve));var me="".concat($,"-container"),Ee="marginLeft",le="marginRight",de=u.createElement("div",{onMouseDown:h,tabIndex:-1,className:ae(me,"".concat(E,"-").concat(n,"-panel-container")),style:Y(Y({},O?le:Ee,j),O?Ee:le,"auto"),onFocus:p,onBlur:v},ve);return a&&(de=u.createElement("div",{onMouseDown:h,ref:I,className:ae("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},u.createElement("div",{ref:k,className:"".concat(E,"-range-arrow"),style:{left:N}}),u.createElement(mr,{onResize:A},de))),de}function kv(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,l=e.inputReadOnly,s=e.required,c=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,v=e.onInputChange,h=e.onInvalid,m=e.open,g=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,w=e.name,C=e.autoComplete,S=e.id,E=e.value,$=e.invalid,O=e.placeholder,k=e.disabled,I=e.activeIndex,M=e.allHelp,B=e.picker,D=function(L,N){var P=o.locale.parse(a.locale,L,[N]);return P&&o.isValidate(P)?P:null},F=n[0],R=u.useCallback(function(L){return fn(L,{locale:a,format:F,generateConfig:o})},[a,o,F]),H=u.useMemo(function(){return E.map(R)},[E,R]),j=u.useMemo(function(){var L=B==="time"?8:10,N=typeof F=="function"?F(o.getNow()).length:F.length;return Math.max(L,N)+2},[F,B,o]),_=function(L){for(var N=0;N<n.length;N+=1){var P=n[N];if(typeof P=="string"){var A=D(L,P);if(A)return A}}return!1},W=function(L){function N(T){return L!==void 0?T[L]:T}var P=rr(e,{aria:!0,data:!0}),A=U(U({},P),{},{format:r,validateFormat:function(T){return!!_(T)},preserveInvalidOnBlur:i,readOnly:l,required:s,"aria-required":c,name:w,autoComplete:C,size:j,id:N(S),value:N(H)||"",invalid:N($),placeholder:N(O),active:I===L,helped:M||x&&I===L,disabled:N(k),onFocus:function(T){f(T,L)},onBlur:function(T){p(T,L)},onSubmit:d,onChange:function(T){v();var z=_(T);if(z){h(!1,L),y(z,L);return}h(!!T,L)},onHelp:function(){g(!0,{index:L})},onKeyDown:function(T){var z=!1;if(b==null||b(T,function(){z=!0}),!T.defaultPrevented&&!z)switch(T.key){case"Escape":g(!1,{index:L});break;case"Enter":m||g(!0);break}}},t==null?void 0:t({valueTexts:H}));return Object.keys(A).forEach(function(T){A[T]===void 0&&delete A[T]}),A};return[W,R]}var yM=["onMouseEnter","onMouseLeave"];function Ov(e){return u.useMemo(function(){return fl(e,yM)},[e])}var xM=["icon","type"],wM=["onClear"];function hl(e){var t=e.icon,n=e.type,r=ft(e,xM),o=u.useContext(ir),a=o.prefixCls;return t?u.createElement("span",Ae({className:"".concat(a,"-").concat(n)},r),t):null}function Ec(e){var t=e.onClear,n=ft(e,wM);return u.createElement(hl,Ae({},n,{type:"clear",role:"button",onMouseDown:function(r){r.preventDefault()},onClick:function(r){r.stopPropagation(),t()}}))}var ns=["YYYY","MM","DD","HH","mm","ss","SSS"],xp="\u9867",CM=(function(){function e(t){Jt(this,e),Y(this,"format",void 0),Y(this,"maskFormat",void 0),Y(this,"cells",void 0),Y(this,"maskCells",void 0),this.format=t;var n=ns.map(function(l){return"(".concat(l,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(l){return xp.repeat(l.length)});var o=new RegExp("(".concat(ns.join("|"),")")),a=(t.split(o)||[]).filter(function(l){return l}),i=0;this.cells=a.map(function(l){var s=ns.includes(l),c=i,d=i+l.length;return i=d,{text:l,mask:s,start:c,end:d}}),this.maskCells=this.cells.filter(function(l){return l.mask})}return en(e,[{key:"getSelection",value:function(t){var n=this.maskCells[t]||{},r=n.start,o=n.end;return[r||0,o||0]}},{key:"match",value:function(t){for(var n=0;n<this.maskFormat.length;n+=1){var r=this.maskFormat[n],o=t[n];if(!o||r!==xp&&r!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(t){for(var n=Number.MAX_SAFE_INTEGER,r=0,o=0;o<this.maskCells.length;o+=1){var a=this.maskCells[o],i=a.start,l=a.end;if(t>=i&&t<=l)return o;var s=Math.min(Math.abs(t-i),Math.abs(t-l));s<n&&(n=s,r=o)}return r}}]),e})();function SM(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var EM=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],$c=u.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,l=e.validateFormat,s=e.onChange,c=e.helped,d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,v=e.preserveInvalidOnBlur,h=v===void 0?!1:v,m=e.invalid,g=e.clearIcon,b=ft(e,EM),y=e.value,x=e.onFocus,w=e.onBlur,C=e.onMouseUp,S=u.useContext(ir),E=S.prefixCls,$=S.input,O=$===void 0?"input":$,k="".concat(E,"-input"),I=u.useState(!1),M=Q(I,2),B=M[0],D=M[1],F=u.useState(y),R=Q(F,2),H=R[0],j=R[1],_=u.useState(""),W=Q(_,2),L=W[0],N=W[1],P=u.useState(null),A=Q(P,2),T=A[0],z=A[1],V=u.useState(null),q=Q(V,2),Z=q[0],G=q[1],J=H||"";u.useEffect(function(){j(y)},[y]);var K=u.useRef(),X=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:K.current,inputElement:X.current,focus:function(be){X.current.focus(be)},blur:function(){X.current.blur()}}});var ne=u.useMemo(function(){return new CM(i||"")},[i]),te=u.useMemo(function(){return c?[0,0]:ne.getSelection(T)},[ne,T,c]),ee=Q(te,2),ie=ee[0],se=ee[1],fe=function(be){be&&be!==i&&be!==y&&d()},ve=bt(function(be){l(be)&&s(be),j(be),fe(be)}),me=function(be){if(!i){var he=be.target.value;fe(he),j(he),s(he)}},Ee=function(be){var he=be.clipboardData.getData("text");l(he)&&ve(he)},le=u.useRef(!1),de=function(){le.current=!0},je=function(be){var he=be.target,we=he.selectionStart,Te=ne.getMaskCellIndex(we);z(Te),G({}),C==null||C(be),le.current=!1},oe=function(be){D(!0),z(0),N(""),x(be)},Me=function(be){w(be)},ke=function(be){D(!1),Me(be)};Fu(n,function(){!n&&!h&&j(y)});var Fe=function(be){be.key==="Enter"&&l(J)&&f(),p==null||p(be)},Pe=function(be){Fe(be);var he=be.key,we=null,Te=null,ce=se-ie,Ge=i.slice(ie,se),rt=function(Ne){z(function(Be){var Re=Be+Ne;return Re=Math.max(Re,0),Re=Math.min(Re,ne.size()-1),Re})},at=function(Ne){var Be=SM(Ge),Re=Q(Be,3),Xe=Re[0],Ue=Re[1],lt=Re[2],ct=J.slice(ie,se),Ve=Number(ct);if(isNaN(Ve))return String(lt||(Ne>0?Xe:Ue));var tt=Ve+Ne,st=Ue-Xe+1;return String(Xe+(st+tt-Xe)%st)};switch(he){case"Backspace":case"Delete":we="",Te=Ge;break;case"ArrowLeft":we="",rt(-1);break;case"ArrowRight":we="",rt(1);break;case"ArrowUp":we="",Te=at(1);break;case"ArrowDown":we="",Te=at(-1);break;default:isNaN(Number(he))||(we=L+he,Te=we);break}if(we!==null&&(N(we),we.length>=ce&&(rt(1),N(""))),Te!==null){var pt=J.slice(0,ie)+ju(Te,ce)+J.slice(se);ve(pt.slice(0,i.length))}G({})},Ie=u.useRef();wt(function(){if(!(!B||!i||le.current)){if(!ne.match(J)){ve(i);return}return X.current.setSelectionRange(ie,se),Ie.current=dt(function(){X.current.setSelectionRange(ie,se)}),function(){dt.cancel(Ie.current)}}},[ne,i,B,J,T,ie,se,Z,ve]);var ye=i?{onFocus:oe,onBlur:ke,onKeyDown:Pe,onMouseDown:de,onMouseUp:je,onPaste:Ee}:{};return u.createElement("div",{ref:K,className:ae(k,Y(Y({},"".concat(k,"-active"),n&&o),"".concat(k,"-placeholder"),c))},u.createElement(O,Ae({ref:X,"aria-invalid":m,autoComplete:"off"},b,{onKeyDown:Fe,onBlur:Me},ye,{value:J,onChange:me})),u.createElement(hl,{type:"suffix",icon:a}),g)}),$M=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],kM=["index"];function OM(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,l=i===void 0?"~":i,s=e.activeIndex,c=e.focused,d=e.placeholder,f=e.className,p=e.style,v=e.onClick,h=e.onClear,m=e.value,g=e.disabled,b=e.invalid,y=e.direction,x=e.onActiveInfo,w=e.onMouseDown,C=e.autoFocus,S=e.tabIndex,E=ft(e,$M),$=y==="rtl",O=u.useContext(ir),k=O.prefixCls,I=u.useMemo(function(){if(typeof n=="string")return[n];var Z=n||{};return[Z.start,Z.end]},[n]),M=u.useRef(),B=u.useRef(),D=u.useRef(),F=function(Z){var G;return(G=[B,D][Z])===null||G===void 0?void 0:G.current};u.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(Z){if(Qe(Z)==="object"){var G,J=Z||{},K=J.index,X=K===void 0?0:K,ne=ft(J,kM);(G=F(X))===null||G===void 0||G.focus(ne)}else{var te;(te=F(Z??0))===null||te===void 0||te.focus()}},blur:function(){var Z,G;(Z=F(0))===null||Z===void 0||Z.blur(),(G=F(1))===null||G===void 0||G.blur()}}});var R=Ov(E),H=u.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),j=kv(U(U({},e),{},{id:I,placeholder:H})),_=Q(j,1),W=_[0],L=u.useState({position:"absolute",width:0}),N=Q(L,2),P=N[0],A=N[1],T=bt(function(){var Z=F(s);if(Z){var G=Z.nativeElement.getBoundingClientRect(),J=M.current.getBoundingClientRect(),K=G.left-J.left;A(function(X){return U(U({},X),{},{width:G.width,left:K})}),x([G.left,G.right,J.width])}});u.useEffect(function(){T()},[s]);var z=o&&(m[0]&&!g[0]||m[1]&&!g[1]),V=C&&!g[0],q=C&&!V&&!g[1];return u.createElement(mr,{onResize:T},u.createElement("div",Ae({},R,{className:ae(k,"".concat(k,"-range"),Y(Y(Y(Y({},"".concat(k,"-focused"),c),"".concat(k,"-disabled"),g.every(function(Z){return Z})),"".concat(k,"-invalid"),b.some(function(Z){return Z})),"".concat(k,"-rtl"),$),f),style:p,ref:M,onClick:v,onMouseDown:function(Z){var G=Z.target;G!==B.current.inputElement&&G!==D.current.inputElement&&Z.preventDefault(),w==null||w(Z)}}),r&&u.createElement("div",{className:"".concat(k,"-prefix")},r),u.createElement($c,Ae({ref:B},W(0),{autoFocus:V,tabIndex:S,"date-range":"start"})),u.createElement("div",{className:"".concat(k,"-range-separator")},l),u.createElement($c,Ae({ref:D},W(1),{autoFocus:q,tabIndex:S,"date-range":"end"})),u.createElement("div",{className:"".concat(k,"-active-bar"),style:P}),u.createElement(hl,{type:"suffix",icon:a}),z&&u.createElement(Ec,{icon:o,onClear:h})))}var MM=u.forwardRef(OM);function wp(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function ni(e){return e===1?"end":"start"}function IM(e,t){var n=dv(e,function(){var et=e.disabled,it=e.allowEmpty,Lt=wp(et,!1),Vt=wp(it,!1);return{disabled:Lt,allowEmpty:Vt}}),r=Q(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],c=r[5],d=o.prefixCls,f=o.styles,p=o.classNames,v=o.defaultValue,h=o.value,m=o.needConfirm,g=o.onKeyDown,b=o.disabled,y=o.allowEmpty,x=o.disabledDate,w=o.minDate,C=o.maxDate,S=o.defaultOpen,E=o.open,$=o.onOpenChange,O=o.locale,k=o.generateConfig,I=o.picker,M=o.showNow,B=o.showToday,D=o.showTime,F=o.mode,R=o.onPanelChange,H=o.onCalendarChange,j=o.onOk,_=o.defaultPickerValue,W=o.pickerValue,L=o.onPickerValueChange,N=o.inputReadOnly,P=o.suffixIcon,A=o.onFocus,T=o.onBlur,z=o.presets,V=o.ranges,q=o.components,Z=o.cellRender,G=o.dateRender,J=o.monthCellRender,K=o.onClick,X=pv(t),ne=fv(E,S,b,$),te=Q(ne,2),ee=te[0],ie=te[1],se=function(et,it){(b.some(function(Lt){return!Lt})||!et)&&ie(et,it)},fe=xv(k,O,l,!0,!1,v,h,H,j),ve=Q(fe,5),me=ve[0],Ee=ve[1],le=ve[2],de=ve[3],je=ve[4],oe=le(),Me=gv(b,y,ee),ke=Q(Me,9),Fe=ke[0],Pe=ke[1],Ie=ke[2],ye=ke[3],be=ke[4],he=ke[5],we=ke[6],Te=ke[7],ce=ke[8],Ge=function(et,it){Pe(!0),A==null||A(et,{range:ni(it??ye)})},rt=function(et,it){Pe(!1),T==null||T(et,{range:ni(it??ye)})},at=u.useMemo(function(){if(!D)return null;var et=D.disabledTime,it=et?function(Lt){var Vt=ni(ye),cn=ev(oe,we,ye);return et(Lt,Vt,{from:cn})}:void 0;return U(U({},D),{},{disabledTime:it})},[D,ye,oe,we]),pt=Qt([I,I],{value:F}),Ne=Q(pt,2),Be=Ne[0],Re=Ne[1],Xe=Be[ye]||I,Ue=Xe==="date"&&at?"datetime":Xe,lt=Ue===I&&Ue!=="time",ct=Cv(I,Xe,M,B,!0),Ve=wv(o,me,Ee,le,de,b,l,Fe,ee,c),tt=Q(Ve,2),st=tt[0],Oe=tt[1],xe=JO(oe,b,we,k,O,x),ge=nv(oe,c,y),Se=Q(ge,2),We=Se[0],Ze=Se[1],ot=hv(k,O,oe,Be,ee,ye,a,lt,_,W,at==null?void 0:at.defaultOpenValue,L,w,C),mt=Q(ot,2),vt=mt[0],ut=mt[1],jt=bt(function(et,it,Lt){var Vt=da(Be,ye,it);if((Vt[0]!==Be[0]||Vt[1]!==Be[1])&&Re(Vt),R&&Lt!==!1){var cn=Ce(oe);et&&(cn[ye]=et),R(cn,Vt)}}),Ot=function(et,it){return da(oe,it,et)},gt=function(et,it){var Lt=oe;et&&(Lt=Ot(et,ye)),Te(ye);var Vt=he(Lt);de(Lt),st(ye,Vt===null),Vt===null?se(!1,{force:!0}):it||X.current.focus({index:Vt})},At=function(et){var it,Lt=et.target.getRootNode();if(!X.current.nativeElement.contains((it=Lt.activeElement)!==null&&it!==void 0?it:document.activeElement)){var Vt=b.findIndex(function(cn){return!cn});Vt>=0&&X.current.focus({index:Vt})}se(!0),K==null||K(et)},Ft=function(){Oe(null),se(!1,{force:!0})},tn=u.useState(null),$e=Q(tn,2),_e=$e[0],De=$e[1],He=u.useState(null),Le=Q(He,2),Pt=Le[0],Ct=Le[1],qt=u.useMemo(function(){return Pt||oe},[oe,Pt]);u.useEffect(function(){ee||Ct(null)},[ee]);var Gt=u.useState([0,0,0]),Dt=Q(Gt,2),Bt=Dt[0],sn=Dt[1],Yt=mv(z,V),wn=function(et){Ct(et),De("preset")},Cn=function(et){var it=Oe(et);it&&se(!1,{force:!0})},yn=function(et){gt(et)},Mn=function(et){Ct(et?Ot(et,ye):null),De("cell")},In=function(et){se(!0),Ge(et)},Nn=function(){Ie("panel")},zn=function(et){var it=da(oe,ye,et);de(it),!m&&!i&&a===Ue&>(et)},Zn=function(){se(!1)},Je=Pu(Z,G,J,ni(ye)),It=oe[ye]||null,Xt=bt(function(et){return c(et,{activeIndex:ye})}),ze=u.useMemo(function(){var et=rr(o,!1),it=gr(o,[].concat(Ce(Object.keys(et)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return it},[o]),ht=u.createElement($v,Ae({},ze,{showNow:ct,showTime:at,range:!0,multiplePanel:lt,activeInfo:Bt,disabledDate:xe,onFocus:In,onBlur:rt,onPanelMouseDown:Nn,picker:I,mode:Xe,internalMode:Ue,onPanelChange:jt,format:s,value:It,isInvalid:Xt,onChange:null,onSelect:zn,pickerValue:vt,defaultOpenValue:uo(D==null?void 0:D.defaultOpenValue)[ye],onPickerValueChange:ut,hoverValue:qt,onHover:Mn,needConfirm:m,onSubmit:gt,onOk:je,presets:Yt,onPresetHover:wn,onPresetSubmit:Cn,onNow:yn,cellRender:Je})),Wt=function(et,it){var Lt=Ot(et,it);de(Lt)},nn=function(){Ie("input")},Pn=function(et,it){var Lt=we.length,Vt=we[Lt-1];if(Lt&&Vt!==it&&m&&!y[Vt]&&!ce(Vt)&&oe[Vt]){X.current.focus({index:Vt});return}Ie("input"),se(!0,{inherit:!0}),ye!==it&&ee&&!m&&i&>(null,!0),be(it),Ge(et,it)},Rn=function(et,it){if(se(!1),!m&&Ie()==="input"){var Lt=he(oe);st(ye,Lt===null)}rt(et,it)},An=function(et,it){et.key==="Tab"&>(null,!0),g==null||g(et,it)},lr=u.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:k,button:q.button,input:q.input}},[d,O,k,q.button,q.input]);return wt(function(){ee&&ye!==void 0&&jt(null,I,!1)},[ee,ye,I]),wt(function(){var et=Ie();!ee&&et==="input"&&(se(!1),gt(null,!0)),!ee&&i&&!m&&et==="panel"&&(se(!0),gt())},[ee]),u.createElement(ir.Provider,{value:lr},u.createElement(Zh,Ae({},tv(o),{popupElement:ht,popupStyle:f.popup,popupClassName:p.popup,visible:ee,onClose:Zn,range:!0}),u.createElement(MM,Ae({},o,{ref:X,suffixIcon:P,activeIndex:Fe||ee?ye:null,activeHelp:!!Pt,allHelp:!!Pt&&_e==="preset",focused:Fe,onFocus:Pn,onBlur:Rn,onKeyDown:An,onSubmit:gt,value:qt,maskFormat:s,onChange:Wt,onInputChange:nn,format:l,inputReadOnly:N,disabled:b,open:ee,onOpenChange:se,onClick:At,onClear:Ft,invalid:We,onInvalid:Ze,onActiveInfo:sn}))))}var NM=u.forwardRef(IM);function jM(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"\xD7":o,i=e.formatDate,l=e.disabled,s=e.maxTagCount,c=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function v(g,b){return u.createElement("span",{className:ae("".concat(f,"-item")),title:typeof g=="string"?g:null},u.createElement("span",{className:"".concat(f,"-item-content")},g),!l&&b&&u.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},a))}function h(g){var b=i(g),y=function(x){x&&x.stopPropagation(),r(g)};return v(b,y)}function m(g){var b="+ ".concat(g.length," ...");return v(b)}return u.createElement("div",{className:d},u.createElement(_o,{prefixCls:p,data:n,renderItem:h,renderRest:m,itemKey:function(g){return i(g)},maxCount:s}),!n.length&&u.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var PM=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function RM(e,t){var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.focused,l=e.locale,s=e.generateConfig,c=e.placeholder,d=e.className,f=e.style,p=e.onClick,v=e.onClear,h=e.internalPicker,m=e.value,g=e.onChange,b=e.onSubmit,y=e.multiple,x=e.maxTagCount,w=e.disabled,C=e.invalid,S=e.direction,E=e.onMouseDown,$=e.autoFocus,O=e.tabIndex,k=e.removeIcon,I=ft(e,PM),M=S==="rtl",B=u.useContext(ir),D=B.prefixCls,F=u.useRef(),R=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(z){var V;(V=R.current)===null||V===void 0||V.focus(z)},blur:function(){var z;(z=R.current)===null||z===void 0||z.blur()}}});var H=Ov(I),j=function(z){g([z])},_=function(z){var V=m.filter(function(q){return q&&!$n(s,l,q,z,h)});g(V),n||b()},W=kv(U(U({},e),{},{onChange:j}),function(z){var V=z.valueTexts;return{value:V[0]||"",active:i}}),L=Q(W,2),N=L[0],P=L[1],A=!!(o&&m.length&&!w),T=y?u.createElement(u.Fragment,null,u.createElement(jM,{prefixCls:D,value:m,onRemove:_,formatDate:P,maxTagCount:x,disabled:w,removeIcon:k,placeholder:c}),u.createElement("input",{className:"".concat(D,"-multiple-input"),value:m.map(P).join(","),ref:R,readOnly:!0,autoFocus:$,tabIndex:O}),u.createElement(hl,{type:"suffix",icon:a}),A&&u.createElement(Ec,{icon:o,onClear:v})):u.createElement($c,Ae({ref:R},N(),{autoFocus:$,tabIndex:O,suffixIcon:a,clearIcon:A&&u.createElement(Ec,{icon:o,onClear:v}),showActiveCls:!1}));return u.createElement("div",Ae({},H,{className:ae(D,Y(Y(Y(Y(Y({},"".concat(D,"-multiple"),y),"".concat(D,"-focused"),i),"".concat(D,"-disabled"),w),"".concat(D,"-invalid"),C),"".concat(D,"-rtl"),M),d),style:f,ref:F,onClick:p,onMouseDown:function(z){var V,q=z.target;q!==((V=R.current)===null||V===void 0?void 0:V.inputElement)&&z.preventDefault(),E==null||E(z)}}),r&&u.createElement("div",{className:"".concat(D,"-prefix")},r),T)}var AM=u.forwardRef(RM);function FM(e,t){var n=dv(e),r=Q(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],c=r[5],d=o,f=d.prefixCls,p=d.styles,v=d.classNames,h=d.order,m=d.defaultValue,g=d.value,b=d.needConfirm,y=d.onChange,x=d.onKeyDown,w=d.disabled,C=d.disabledDate,S=d.minDate,E=d.maxDate,$=d.defaultOpen,O=d.open,k=d.onOpenChange,I=d.locale,M=d.generateConfig,B=d.picker,D=d.showNow,F=d.showToday,R=d.showTime,H=d.mode,j=d.onPanelChange,_=d.onCalendarChange,W=d.onOk,L=d.multiple,N=d.defaultPickerValue,P=d.pickerValue,A=d.onPickerValueChange,T=d.inputReadOnly,z=d.suffixIcon,V=d.removeIcon,q=d.onFocus,Z=d.onBlur,G=d.presets,J=d.components,K=d.cellRender,X=d.dateRender,ne=d.monthCellRender,te=d.onClick,ee=pv(t);function ie(ze){return ze===null?null:L?ze:ze[0]}var se=Sv(M,I,a),fe=fv(O,$,[w],k),ve=Q(fe,2),me=ve[0],Ee=ve[1],le=function(ze,ht,Wt){if(_){var nn=U({},Wt);delete nn.range,_(ie(ze),ie(ht),nn)}},de=function(ze){W==null||W(ie(ze))},je=xv(M,I,l,!1,h,m,g,le,de),oe=Q(je,5),Me=oe[0],ke=oe[1],Fe=oe[2],Pe=oe[3],Ie=oe[4],ye=Fe(),be=gv([w]),he=Q(be,4),we=he[0],Te=he[1],ce=he[2],Ge=he[3],rt=function(ze){Te(!0),q==null||q(ze,{})},at=function(ze){Te(!1),Z==null||Z(ze,{})},pt=Qt(B,{value:H}),Ne=Q(pt,2),Be=Ne[0],Re=Ne[1],Xe=Be==="date"&&R?"datetime":Be,Ue=Cv(B,Be,D,F),lt=y&&function(ze,ht){y(ie(ze),ie(ht))},ct=wv(U(U({},o),{},{onChange:lt}),Me,ke,Fe,Pe,[],l,we,me,c),Ve=Q(ct,2),tt=Ve[1],st=nv(ye,c),Oe=Q(st,2),xe=Oe[0],ge=Oe[1],Se=u.useMemo(function(){return xe.some(function(ze){return ze})},[xe]),We=function(ze,ht){if(A){var Wt=U(U({},ht),{},{mode:ht.mode[0]});delete Wt.range,A(ze[0],Wt)}},Ze=hv(M,I,ye,[Be],me,Ge,a,!1,N,P,uo(R==null?void 0:R.defaultOpenValue),We,S,E),ot=Q(Ze,2),mt=ot[0],vt=ot[1],ut=bt(function(ze,ht,Wt){if(Re(ht),j&&Wt!==!1){var nn=ze||ye[ye.length-1];j(nn,ht)}}),jt=function(){tt(Fe()),Ee(!1,{force:!0})},Ot=function(ze){!w&&!ee.current.nativeElement.contains(document.activeElement)&&ee.current.focus(),Ee(!0),te==null||te(ze)},gt=function(){tt(null),Ee(!1,{force:!0})},At=u.useState(null),Ft=Q(At,2),tn=Ft[0],$e=Ft[1],_e=u.useState(null),De=Q(_e,2),He=De[0],Le=De[1],Pt=u.useMemo(function(){var ze=[He].concat(Ce(ye)).filter(function(ht){return ht});return L?ze:ze.slice(0,1)},[ye,He,L]),Ct=u.useMemo(function(){return!L&&He?[He]:ye.filter(function(ze){return ze})},[ye,He,L]);u.useEffect(function(){me||Le(null)},[me]);var qt=mv(G),Gt=function(ze){Le(ze),$e("preset")},Dt=function(ze){var ht=L?se(Fe(),ze):[ze],Wt=tt(ht);Wt&&!L&&Ee(!1,{force:!0})},Bt=function(ze){Dt(ze)},sn=function(ze){Le(ze),$e("cell")},Yt=function(ze){Ee(!0),rt(ze)},wn=function(ze){if(ce("panel"),!(L&&Xe!==B)){var ht=L?se(Fe(),ze):[ze];Pe(ht),!b&&!i&&a===Xe&&jt()}},Cn=function(){Ee(!1)},yn=Pu(K,X,ne),Mn=u.useMemo(function(){var ze=rr(o,!1),ht=gr(o,[].concat(Ce(Object.keys(ze)),["onChange","onCalendarChange","style","className","onPanelChange"]));return U(U({},ht),{},{multiple:o.multiple})},[o]),In=u.createElement($v,Ae({},Mn,{showNow:Ue,showTime:R,disabledDate:C,onFocus:Yt,onBlur:at,picker:B,mode:Be,internalMode:Xe,onPanelChange:ut,format:s,value:ye,isInvalid:c,onChange:null,onSelect:wn,pickerValue:mt,defaultOpenValue:R==null?void 0:R.defaultOpenValue,onPickerValueChange:vt,hoverValue:Pt,onHover:sn,needConfirm:b,onSubmit:jt,onOk:Ie,presets:qt,onPresetHover:Gt,onPresetSubmit:Dt,onNow:Bt,cellRender:yn})),Nn=function(ze){Pe(ze)},zn=function(){ce("input")},Zn=function(ze){ce("input"),Ee(!0,{inherit:!0}),rt(ze)},Je=function(ze){Ee(!1),at(ze)},It=function(ze,ht){ze.key==="Tab"&&jt(),x==null||x(ze,ht)},Xt=u.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:M,button:J.button,input:J.input}},[f,I,M,J.button,J.input]);return wt(function(){me&&Ge!==void 0&&ut(null,B,!1)},[me,Ge,B]),wt(function(){var ze=ce();!me&&ze==="input"&&(Ee(!1),jt()),!me&&i&&!b&&ze==="panel"&&jt()},[me]),u.createElement(ir.Provider,{value:Xt},u.createElement(Zh,Ae({},tv(o),{popupElement:In,popupStyle:p.popup,popupClassName:v.popup,visible:me,onClose:Cn}),u.createElement(AM,Ae({},o,{ref:ee,suffixIcon:z,removeIcon:V,activeHelp:!!He,allHelp:!!He&&tn==="preset",focused:we,onFocus:Zn,onBlur:Je,onKeyDown:It,onSubmit:jt,value:Ct,maskFormat:s,onChange:Nn,onInputChange:zn,internalPicker:a,format:l,inputReadOnly:T,disabled:w,open:me,onOpenChange:Ee,onClick:Ot,onClear:gt,invalid:Se,onInvalid:function(ze){ge(ze,0)}}))))}var TM=u.forwardRef(FM);const Mv=u.createContext(null),DM=Mv.Provider,Iv=u.createContext(null),BM=Iv.Provider;var HM=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],zM=or(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,l=e.disabled,s=e.defaultChecked,c=s===void 0?!1:s,d=e.type,f=d===void 0?"checkbox":d,p=e.title,v=e.onChange,h=ft(e,HM),m=Ye(null),g=Ye(null),b=Qt(c,{value:i}),y=Q(b,2),x=y[0],w=y[1];To(t,function(){return{focus:function(E){var $;($=m.current)===null||$===void 0||$.focus(E)},blur:function(){var E;(E=m.current)===null||E===void 0||E.blur()},input:m.current,nativeElement:g.current}});var C=ae(r,o,Y(Y({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),l)),S=function(E){l||("checked"in e||w(E.target.checked),v==null||v({target:U(U({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return u.createElement("span",{className:C,title:p,style:a,ref:g},u.createElement("input",Ae({},h,{className:"".concat(r,"-input"),ref:m,onChange:S,disabled:l,checked:!!x,type:f})),u.createElement("span",{className:"".concat(r,"-inner")}))});function _M(e){const t=pe.useRef(null),n=()=>{dt.cancel(t.current),t.current=null};return[()=>{n(),t.current=dt(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e==null||e(r)}]}const LM=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Zt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},WM=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:v,dotColorDisabled:h,lineType:m,radioColor:g,radioBgColor:b,calc:y}=e,x=`${t}-inner`,w=y(o).sub(y(4).mul(2)),C=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Zt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ue(d)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
274
|
+
&:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:au(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},VM=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationMid:l,buttonPaddingInline:s,fontSize:c,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:v,paddingXS:h,borderRadius:m,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:E,colorPrimary:$,colorPrimaryHover:O,colorPrimaryActive:k,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:B,calc:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:ue(D(n).sub(D(o).mul(2)).equal()),background:d,border:`${ue(o)} ${a} ${i}`,borderBlockStartWidth:D(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:D(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${ue(o)} ${a} ${i}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:ue(D(p).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:D(h).sub(o).equal(),paddingBlock:0,lineHeight:ue(D(v).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":au(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:I,borderColor:I,"&:hover":{color:x,background:M,borderColor:M},"&:active":{color:x,background:B,borderColor:B}},"&-disabled":{color:w,backgroundColor:C,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:S,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},qM=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:v,colorWhite:h}=e,m=4,g=a,b=t?g-m*2:g-(m+o)*2;return{radioSize:g,dotSize:b,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:v,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}},Nv=ln("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ue(n)} ${t}`,o=Rt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[LM(o),WM(o),VM(o)]},qM,{unitless:{radioSize:!0,dotSize:!0}});var YM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XM=(e,t)=>{var n,r;const o=u.useContext(Mv),a=u.useContext(Iv),{getPrefixCls:i,direction:l,radio:s}=u.useContext(xt),c=u.useRef(null),d=Gn(t,c),{isFormItemInput:f}=u.useContext(bn),p=R=>{var H,j;(H=e.onChange)===null||H===void 0||H.call(e,R),(j=o==null?void 0:o.onChange)===null||j===void 0||j.call(o,R)},{prefixCls:v,className:h,rootClassName:m,children:g,style:b,title:y}=e,x=YM(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",v),C=((o==null?void 0:o.optionType)||a)==="button",S=C?`${w}-button`:w,E=Hn(w),[$,O,k]=Nv(w,E),I=Object.assign({},x),M=u.useContext(On);o&&(I.name=o.name,I.onChange=p,I.checked=e.value===o.value,I.disabled=(n=I.disabled)!==null&&n!==void 0?n:o.disabled),I.disabled=(r=I.disabled)!==null&&r!==void 0?r:M;const B=ae(`${S}-wrapper`,{[`${S}-wrapper-checked`]:I.checked,[`${S}-wrapper-disabled`]:I.disabled,[`${S}-wrapper-rtl`]:l==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(o!=null&&o.block)},s==null?void 0:s.className,h,m,O,k,E),[D,F]=_M(I.onClick);return $(u.createElement(tl,{component:"Radio",disabled:I.disabled},u.createElement("label",{className:B,style:Object.assign(Object.assign({},s==null?void 0:s.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:D},u.createElement(zM,Object.assign({},I,{className:ae(I.className,{[du]:!C}),type:"radio",prefixCls:S,ref:d,onClick:F})),g!==void 0?u.createElement("span",{className:`${S}-label`},g):null)))},Ai=u.forwardRef(XM),UM=["parentNode"],GM="form_item";function fa(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function jv(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:UM.includes(n)?`${GM}_${n}`:n}function Pv(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var KM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function kc(e){return fa(e).join("_")}function Cp(e,t){const n=t.getFieldInstance(e),r=Mm(n);if(r)return r;const o=jv(fa(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Rv(e){const[t]=Cu(),n=u.useRef({}),r=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=kc(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,l=KM(a,["focus"]),s=Cp(o,r);s&&(Bw(s,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),i&&r.focusField(o))},focusField:o=>{var a,i;const l=r.getFieldInstance(o);typeof(l==null?void 0:l.focus)=="function"?l.focus():(i=(a=Cp(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=kc(o);return n.current[a]}}),[e,t]);return[r]}const QM=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(xt),{name:o}=u.useContext(bn),a=yu(kc(o)),{prefixCls:i,className:l,rootClassName:s,options:c,buttonStyle:d="outline",disabled:f,children:p,size:v,style:h,id:m,optionType:g,name:b=a,defaultValue:y,value:x,block:w=!1,onChange:C,onMouseEnter:S,onMouseLeave:E,onFocus:$,onBlur:O}=e,[k,I]=Qt(y,{value:x}),M=u.useCallback(P=>{const A=k,T=P.target.value;"value"in e||I(T),T!==A&&(C==null||C(P))},[k,I,C]),B=n("radio",i),D=`${B}-group`,F=Hn(B),[R,H,j]=Nv(B,F);let _=p;c&&c.length>0&&(_=c.map(P=>typeof P=="string"||typeof P=="number"?u.createElement(Ai,{key:P.toString(),prefixCls:B,disabled:f,value:P,checked:k===P},P):u.createElement(Ai,{key:`radio-group-value-options-${P.value}`,prefixCls:B,disabled:P.disabled||f,value:P.value,checked:k===P.value,title:P.title,style:P.style,className:P.className,id:P.id,required:P.required},P.label)));const W=Qn(v),L=ae(D,`${D}-${d}`,{[`${D}-${W}`]:W,[`${D}-rtl`]:r==="rtl",[`${D}-block`]:w},l,s,H,j,F),N=u.useMemo(()=>({onChange:M,value:k,disabled:f,name:b,optionType:g,block:w}),[M,k,f,b,g,w]);return R(u.createElement("div",Object.assign({},rr(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:S,onMouseLeave:E,onFocus:$,onBlur:O,id:m,ref:t}),u.createElement(DM,{value:N},_)))}),ZM=u.memo(QM);var JM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eI=(e,t)=>{const{getPrefixCls:n}=u.useContext(xt),{prefixCls:r}=e,o=JM(e,["prefixCls"]),a=n("radio",r);return u.createElement(BM,{value:"button"},u.createElement(Ai,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},tI=u.forwardRef(eI),vl=Ai;vl.Button=tI;vl.Group=ZM;vl.__ANT_RADIO=!0;function qo(e){return Rt(e,{inputAffixPadding:e.paddingXXS})}const Yo=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:x,inputFontSize:w,inputFontSizeLG:C,inputFontSizeSM:S}=e,E=w||n,$=S||E,O=C||l,k=Math.round((t-E*r)/2*10)/10-o,I=Math.round((a-$*r)/2*10)/10-o,M=Math.ceil((i-O*s)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(M,0),paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${b}`,warningActiveShadow:`0 0 0 ${m}px ${y}`,hoverBg:x,activeBg:x,inputFontSize:E,inputFontSizeLG:O,inputFontSizeSM:$}},nI=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Du=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},nI(Rt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Av=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Sp=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Av(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Bu=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Av(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Du(e))}),Sp(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Sp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Ep=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Fv=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Ep(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Ep(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Du(e))}})}),Hu=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Tv=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},$p=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Tv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),zu=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Du(e))}),$p(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),$p(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),kp=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Dv=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},kp(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),kp(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Bv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ue(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Op=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Bv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),_u=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bv(e,{borderColor:e.colorBorder,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Op(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),Op(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),Lu=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Hv=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ue(t)} ${ue(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},zv=e=>({padding:`${ue(e.paddingBlockSM)} ${ue(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bl=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ue(e.paddingBlock)} ${ue(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Lu(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Hv(e)),"&-sm":Object.assign({},zv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),_v=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Hv(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},zv(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ue(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ue(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ue(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ue(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ue(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},$x()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
275
|
+
& > ${t}-affix-wrapper,
|
|
276
|
+
& > ${t}-number-affix-wrapper,
|
|
277
|
+
& > ${n}-picker-range
|
|
278
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
279
|
+
& > ${n}-select-auto-complete ${t},
|
|
280
|
+
& > ${n}-cascader-picker ${t},
|
|
281
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
282
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
283
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
284
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
285
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
286
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
287
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},rI=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),bl(e)),Bu(e)),zu(e)),Hu(e)),_u(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},oI=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ue(e.inputAffixPadding)}`}}}},aI=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},bl(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),oI(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},iI=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Zt(e)),_v(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Fv(e)),Dv(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},lI=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
288
|
+
> ${t},
|
|
289
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},sI=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Lv=ln(["Input","Shared"],e=>{const t=Rt(e,qo(e));return[rI(t),aI(t)]},Yo,{resetFont:!1}),Wv=ln(["Input","Component"],e=>{const t=Rt(e,qo(e));return[iI(t),lI(t),sI(t),Aa(t)]},Yo,{resetFont:!1}),rs=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=Rh(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:ue(a.itemLineHeight)}}}]},cI=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Rt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Rt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[rs(o,"small"),rs(e),rs(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},Ah(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},uI=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:l,lineType:s,colorPrimary:c,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:v,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ue(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
290
|
+
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ue(l)} ${s} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
|
|
291
|
+
&-in-view${t}-range-start,
|
|
292
|
+
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
|
|
293
|
+
&-in-view${t}-range-start,
|
|
294
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},dI=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:l,paddingXS:s,paddingXXS:c,colorBgContainer:d,lineWidth:f,lineType:p,borderRadiusLG:v,colorPrimary:h,colorTextHeading:m,colorSplit:g,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:x,motionDurationMid:w,colorIconHover:C,fontWeightStrong:S,cellHeight:E,pickerCellPaddingVertical:$,colorTextDisabled:O,colorText:k,fontSize:I,motionDurationSlow:M,withoutTimeCellHeight:B,pickerQuarterPanelContentHeight:D,borderRadiusSM:F,colorTextLightSolid:R,cellHoverBg:H,timeColumnHeight:j,timeColumnWidth:_,timeCellHeight:W,controlItemBgActive:L,marginXXS:N,pickerDatePanelPaddingHorizontal:P,pickerControlIconMargin:A}=e,T=e.calc(i).mul(7).add(e.calc(P).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:v,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
|
|
295
|
+
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
296
|
+
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:T},"&-header":{display:"flex",padding:`0 ${ue(s)}`,color:m,borderBottom:`${ue(f)} ${p} ${g}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:ue(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:ue(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:A,insetInlineStart:A,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc($).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ue($)} 0`,color:O,cursor:"pointer","&-in-view":{color:k}},uI(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(B).mul(4).equal()},[r]:{padding:`0 ${ue(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${ue(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ue(s)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${ue(s)} ${ue(P)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child:before":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td:before":{background:H},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new $t(R).setA(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ue(s)} ${ue(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ue(f)} ${p} ${g}`},[`${t}-date-panel,
|
|
297
|
+
${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel,
|
|
298
|
+
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:_,margin:`${ue(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ue(W)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ue(f)} ${p} ${g}`},"&-active":{background:new $t(L).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:N,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(_).sub(e.calc(N).mul(2)).equal(),height:W,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(_).sub(W).div(2).equal(),color:k,lineHeight:ue(W),borderRadius:F,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:H}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},fI=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:c,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ue(r)} ${c} ${d}`,"&-extra":{padding:`0 ${ue(o)}`,lineHeight:ue(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ue(r)} ${c} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ue(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ue(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},pI=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},mI=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,l=a*2,s=i*2,c=Math.min(n-l,n-s),d=Math.min(r-l,r-s),f=Math.min(o-l,o-s);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new $t(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new $t(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},gI=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Yo(e)),mI(e)),Wh(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),hI=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},Bu(e)),_u(e)),zu(e)),Hu(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},os=(e,t)=>({padding:`${ue(e)} ${ue(t)}`}),vI=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},bI=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:l,borderRadius:s,motionDurationMid:c,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:p,fontSizeLG:v,inputFontSizeLG:h,fontSizeSM:m,inputFontSizeSM:g,controlHeightSM:b,paddingInlineSM:y,paddingXS:x,marginXS:w,colorIcon:C,lineWidthBold:S,colorPrimary:E,motionDurationSlow:$,zIndexPopup:O,paddingXXS:k,sizePopupArrow:I,colorBgElevated:M,borderRadiusLG:B,boxShadowSecondary:D,borderRadiusSM:F,colorSplit:R,cellHoverBg:H,presetsWidth:j,presetsMaxWidth:_,boxShadowPopoverArrow:W,fontHeight:L,lineHeightLG:N}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},Zt(e)),os(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},Lu(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},os(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??v,lineHeight:N}}),"&-small":Object.assign(Object.assign({},os(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:g??m}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(x).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:C}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:p,fontSize:v,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:C},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:S,background:E,opacity:0,transition:`all ${$} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${ue(x)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:y}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Zt(e)),dI(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
|
|
299
|
+
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
|
300
|
+
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
301
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
302
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
303
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:gu},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
304
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
|
305
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
|
306
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:pu},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
307
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:hu},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
|
308
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:mu},[`${n}-panel > ${n}-time-panel`]:{paddingTop:k},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${$} ease-out`},Vh(e,M,W)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:M,borderRadius:B,boxShadow:D,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:j,maxWidth:_,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${ue(a)} ${i} ${R}`,li:Object.assign(Object.assign({},ki),{borderRadius:F,paddingInline:x,paddingBlock:e.calc(b).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:w},"&:hover":{background:H}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${ue(e.calc(I).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},ji(e,"slide-up"),ji(e,"slide-down"),Ni(e,"move-up"),Ni(e,"move-down")]},Vv=ln("DatePicker",e=>{const t=Rt(qo(e),pI(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[fI(t),bI(t),hI(t),vI(t),cI(t),Aa(e,{focusElCls:`${e.componentCls}-focused`})]},gI),qv=Dr({});var yI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Mp(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const xI=["xs","sm","md","lg","xl","xxl"],Fi=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(xt),{gutter:o,wrap:a}=u.useContext(qv),{prefixCls:i,span:l,order:s,offset:c,push:d,pull:f,className:p,children:v,flex:h,style:m}=e,g=yI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",i),[y,x,w]=i$(b),C={};let S={};xI.forEach(O=>{let k={};const I=e[O];typeof I=="number"?k.span=I:typeof I=="object"&&(k=I||{}),delete g[O],S=Object.assign(Object.assign({},S),{[`${b}-${O}-${k.span}`]:k.span!==void 0,[`${b}-${O}-order-${k.order}`]:k.order||k.order===0,[`${b}-${O}-offset-${k.offset}`]:k.offset||k.offset===0,[`${b}-${O}-push-${k.push}`]:k.push||k.push===0,[`${b}-${O}-pull-${k.pull}`]:k.pull||k.pull===0,[`${b}-rtl`]:r==="rtl"}),k.flex&&(S[`${b}-${O}-flex`]=!0,C[`--${b}-${O}-flex`]=Mp(k.flex))});const E=ae(b,{[`${b}-${l}`]:l!==void 0,[`${b}-order-${s}`]:s,[`${b}-offset-${c}`]:c,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},p,S,x,w),$={};if(o&&o[0]>0){const O=o[0]/2;$.paddingLeft=O,$.paddingRight=O}return h&&($.flex=Mp(h),a===!1&&!$.minWidth&&($.minWidth=0)),y(u.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},$),m),C),className:E,ref:t}),v))});function wI(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let l=0;l<$a.length;l++){const s=$a[l];if(o[s]&&a[s]!==void 0){n[i]=a[s];break}}else n[i]=a}),n}var CI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ip(e,t){const[n,r]=u.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<$a.length;a++){const i=$a[a];if(!t||!t[i])continue;const l=e[i];if(l!==void 0){r(l);return}}};return u.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const Yv=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:l,gutter:s=0,wrap:c}=e,d=CI(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=u.useContext(xt),v=I2(!0,null),h=Ip(o,v),m=Ip(r,v),g=f("row",n),[b,y,x]=o$(g),w=wI(s,v),C=ae(g,{[`${g}-no-wrap`]:c===!1,[`${g}-${m}`]:m,[`${g}-${h}`]:h,[`${g}-rtl`]:p==="rtl"},a,y,x),S={},E=w[0]!=null&&w[0]>0?w[0]/-2:void 0;E&&(S.marginLeft=E,S.marginRight=E);const[$,O]=w;S.rowGap=O;const k=u.useMemo(()=>({gutter:[$,O],wrap:c}),[$,O,c]);return b(u.createElement(qv.Provider,{value:k},u.createElement("div",Object.assign({},d,{className:C,style:Object.assign(Object.assign({},S),i),ref:t}),l)))});var SI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},EI=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:SI}))},$I=u.forwardRef(EI);function Oc(){return typeof BigInt=="function"}function Xv(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Jr(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function Wu(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Gr(e){var t=String(e);if(Wu(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Vu(t)?t.length-t.indexOf(".")-1:0}function yl(e){var t=String(e);if(Wu(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Oc()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Oc()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Gr(t))}return Jr(t).fullStr}function Vu(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var kI=(function(){function e(t){if(Jt(this,e),Y(this,"origin",""),Y(this,"negative",void 0),Y(this,"integer",void 0),Y(this,"decimal",void 0),Y(this,"decimalLen",void 0),Y(this,"empty",void 0),Y(this,"nan",void 0),Xv(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Wu(n)&&(n=Number(n)),n=typeof n=="string"?n:yl(n),Vu(n)){var r=Jr(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return en(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(n)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=this.alignDecimal(o),i=t.alignDecimal(o),l=n(a,i).toString(),s=r(o),c=Jr(l),d=c.negativeStr,f=c.trimStr,p="".concat(d).concat(f.padStart(s+1,"0"));return new e("".concat(p.slice(0,-s),".").concat(p.slice(-s)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(r,o){return r+o},function(r){return r})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(r,o){return r*o},function(r){return r*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":Jr("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),OI=(function(){function e(t){if(Jt(this,e),Y(this,"origin",""),Y(this,"number",void 0),Y(this,"empty",void 0),Xv(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return en(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Gr(this.number),Gr(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Gr(this.number),Gr(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toNumber()===(t==null?void 0:t.toNumber())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":yl(this.number):this.origin}}]),e})();function Jn(e){return Oc()?new kI(e):new OI(e)}function gi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Jr(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=Jn(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return gi(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?c:"".concat(c).concat(s)}function MI(e){return!!(e.addonBefore||e.addonAfter)}function II(e){return!!(e.prefix||e.suffix||e.allowClear)}function Np(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Ti(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Np(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Np(t,e,r),n(o);return}n(o)}}function qu(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Yu=pe.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,l=e.prefixCls,s=e.prefix,c=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,v=e.style,h=e.disabled,m=e.readOnly,g=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,w=e.handleReset,C=e.hidden,S=e.classes,E=e.classNames,$=e.dataAttrs,O=e.styles,k=e.components,I=e.onClear,M=i??a,B=(k==null?void 0:k.affixWrapper)||"span",D=(k==null?void 0:k.groupWrapper)||"span",F=(k==null?void 0:k.wrapper)||"span",R=(k==null?void 0:k.groupAddon)||"span",H=Ye(null),j=function(ne){var te;(te=H.current)!==null&&te!==void 0&&te.contains(ne.target)&&(b==null||b())},_=II(e),W=nm(M,{value:x,className:ae((n=M.props)===null||n===void 0?void 0:n.className,!_&&(E==null?void 0:E.variant))||null}),L=Ye(null);if(pe.useImperativeHandle(t,function(){return{nativeElement:L.current||H.current}}),_){var N=null;if(y){var P=!h&&!m&&x,A="".concat(l,"-clear-icon"),T=Qe(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"\u2716";N=pe.createElement("button",{type:"button",tabIndex:-1,onClick:function(ne){w==null||w(ne),I==null||I()},onMouseDown:function(ne){return ne.preventDefault()},className:ae(A,Y(Y({},"".concat(A,"-hidden"),!P),"".concat(A,"-has-suffix"),!!c))},T)}var z="".concat(l,"-affix-wrapper"),V=ae(z,Y(Y(Y(Y(Y({},"".concat(l,"-disabled"),h),"".concat(z,"-disabled"),h),"".concat(z,"-focused"),g),"".concat(z,"-readonly"),m),"".concat(z,"-input-with-clear-btn"),c&&y&&x),S==null?void 0:S.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),q=(c||y)&&pe.createElement("span",{className:ae("".concat(l,"-suffix"),E==null?void 0:E.suffix),style:O==null?void 0:O.suffix},N,c);W=pe.createElement(B,Ae({className:V,style:O==null?void 0:O.affixWrapper,onClick:j},$==null?void 0:$.affixWrapper,{ref:H}),s&&pe.createElement("span",{className:ae("".concat(l,"-prefix"),E==null?void 0:E.prefix),style:O==null?void 0:O.prefix},s),W,q)}if(MI(e)){var Z="".concat(l,"-group"),G="".concat(Z,"-addon"),J="".concat(Z,"-wrapper"),K=ae("".concat(l,"-wrapper"),Z,S==null?void 0:S.wrapper,E==null?void 0:E.wrapper),X=ae(J,Y({},"".concat(J,"-disabled"),h),S==null?void 0:S.group,E==null?void 0:E.groupWrapper);W=pe.createElement(D,{className:X,ref:L},pe.createElement(F,{className:K},d&&pe.createElement(R,{className:G},d),W,f&&pe.createElement(R,{className:G},f)))}return pe.cloneElement(W,{className:ae((r=W.props)===null||r===void 0?void 0:r.className,p)||null,style:U(U({},(o=W.props)===null||o===void 0?void 0:o.style),v),hidden:C})}),NI=["show"];function Uv(e,t){return u.useMemo(function(){var n={};t&&(n.show=Qe(t)==="object"&&t.formatter?t.formatter:!!t),n=U(U({},n),e);var r=n,o=r.show,a=ft(r,NI);return U(U({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var jI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],PI=or(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,c=e.prefixCls,d=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,v=e.className,h=e.maxLength,m=e.suffix,g=e.showCount,b=e.count,y=e.type,x=y===void 0?"text":y,w=e.classes,C=e.classNames,S=e.styles,E=e.onCompositionStart,$=e.onCompositionEnd,O=ft(e,jI),k=Nt(!1),I=Q(k,2),M=I[0],B=I[1],D=Ye(!1),F=Ye(!1),R=Ye(null),H=Ye(null),j=function(le){R.current&&qu(R.current,le)},_=Qt(e.defaultValue,{value:e.value}),W=Q(_,2),L=W[0],N=W[1],P=L==null?"":String(L),A=Nt(null),T=Q(A,2),z=T[0],V=T[1],q=Uv(b,g),Z=q.max||h,G=q.strategy(P),J=!!Z&&G>Z;To(t,function(){var le;return{focus:j,blur:function(){var de;(de=R.current)===null||de===void 0||de.blur()},setSelectionRange:function(de,je,oe){var Me;(Me=R.current)===null||Me===void 0||Me.setSelectionRange(de,je,oe)},select:function(){var de;(de=R.current)===null||de===void 0||de.select()},input:R.current,nativeElement:((le=H.current)===null||le===void 0?void 0:le.nativeElement)||R.current}}),Mt(function(){F.current&&(F.current=!1),B(function(le){return le&&f?!1:le})},[f]);var K=function(le,de,je){var oe=de;if(!D.current&&q.exceedFormatter&&q.max&&q.strategy(de)>q.max){if(oe=q.exceedFormatter(de,{max:q.max}),de!==oe){var Me,ke;V([((Me=R.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((ke=R.current)===null||ke===void 0?void 0:ke.selectionEnd)||0])}}else if(je.source==="compositionEnd")return;N(oe),R.current&&Ti(R.current,le,r,oe)};Mt(function(){if(z){var le;(le=R.current)===null||le===void 0||le.setSelectionRange.apply(le,Ce(z))}},[z]);var X=function(le){K(le,le.target.value,{source:"change"})},ne=function(le){D.current=!1,K(le,le.currentTarget.value,{source:"compositionEnd"}),$==null||$(le)},te=function(le){i&&le.key==="Enter"&&!F.current&&(F.current=!0,i(le)),l==null||l(le)},ee=function(le){le.key==="Enter"&&(F.current=!1),s==null||s(le)},ie=function(le){B(!0),o==null||o(le)},se=function(le){F.current&&(F.current=!1),B(!1),a==null||a(le)},fe=function(le){N(""),j(),R.current&&Ti(R.current,le,r)},ve=J&&"".concat(d,"-out-of-range"),me=function(){var le=gr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return pe.createElement("input",Ae({autoComplete:n},le,{onChange:X,onFocus:ie,onBlur:se,onKeyDown:te,onKeyUp:ee,className:ae(d,Y({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:S==null?void 0:S.input,ref:R,size:p,type:x,onCompositionStart:function(de){D.current=!0,E==null||E(de)},onCompositionEnd:ne}))},Ee=function(){var le=Number(Z)>0;if(m||q.show){var de=q.showFormatter?q.showFormatter({value:P,count:G,maxLength:Z}):"".concat(G).concat(le?" / ".concat(Z):"");return pe.createElement(pe.Fragment,null,q.show&&pe.createElement("span",{className:ae("".concat(d,"-show-count-suffix"),Y({},"".concat(d,"-show-count-has-suffix"),!!m),C==null?void 0:C.count),style:U({},S==null?void 0:S.count)},de),m)}return null};return pe.createElement(Yu,Ae({},O,{prefixCls:d,className:ae(v,ve),handleReset:fe,value:P,focused:M,triggerFocus:j,suffix:Ee(),disabled:f,classes:w,classNames:C,styles:S,ref:H}),me())});function RI(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,r){if(t[r])return t[r];var o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function AI(e,t){var n=Ye(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,l=e.value,s=l.substring(0,a),c=l.substring(i);n.current={start:a,end:i,value:l,beforeTxt:s,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,l=i.beforeTxt,s=i.afterTxt,c=i.start,d=a.length;if(a.startsWith(l))d=l.length;else if(a.endsWith(s))d=a.length-n.current.afterTxt.length;else{var f=l[c-1],p=a.indexOf(f,c-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(v){vn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var FI=function(){var e=Nt(!1),t=Q(e,2),n=t[0],r=t[1];return wt(function(){r($u())},[]),n},TI=200,DI=600;function BI(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,l=u.useRef(),s=u.useRef([]),c=u.useRef();c.current=i;var d=function(){clearTimeout(l.current)},f=function(y,x){y.preventDefault(),d(),c.current(x);function w(){c.current(x),l.current=setTimeout(w,TI)}l.current=setTimeout(w,DI)};u.useEffect(function(){return function(){d(),s.current.forEach(function(y){return dt.cancel(y)})}},[]);var p=FI();if(p)return null;var v="".concat(t,"-handler"),h=ae(v,"".concat(v,"-up"),Y({},"".concat(v,"-up-disabled"),o)),m=ae(v,"".concat(v,"-down"),Y({},"".concat(v,"-down-disabled"),a)),g=function(){return s.current.push(dt(d))},b={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return u.createElement("div",{className:"".concat(v,"-wrap")},u.createElement("span",Ae({},b,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||u.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),u.createElement("span",Ae({},b,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:m}),r||u.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function jp(e){var t=typeof e=="number"?yl(e):Jr(e).fullStr,n=t.includes(".");return n?Jr(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const HI=(function(){var e=Ye(0),t=function(){dt.cancel(e.current)};return Mt(function(){return t},[]),function(n){t(),e.current=dt(function(){n()})}});var zI=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],_I=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Pp=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Rp=function(e){var t=Jn(e);return t.isInvalidate()?null:t},LI=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,l=e.step,s=l===void 0?1:l,c=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,v=e.upHandler,h=e.downHandler,m=e.keyboard,g=e.changeOnWheel,b=g===void 0?!1:g,y=e.controls,x=y===void 0?!0:y,w=e.stringMode,C=e.parser,S=e.formatter,E=e.precision,$=e.decimalSeparator,O=e.onChange,k=e.onInput,I=e.onPressEnter,M=e.onStep,B=e.changeOnBlur,D=B===void 0?!0:B,F=e.domRef,R=ft(e,zI),H="".concat(n,"-input"),j=u.useRef(null),_=u.useState(!1),W=Q(_,2),L=W[0],N=W[1],P=u.useRef(!1),A=u.useRef(!1),T=u.useRef(!1),z=u.useState(function(){return Jn(d??c)}),V=Q(z,2),q=V[0],Z=V[1];function G(Ne){d===void 0&&Z(Ne)}var J=u.useCallback(function(Ne,Be){if(!Be)return E>=0?E:Math.max(Gr(Ne),Gr(s))},[E,s]),K=u.useCallback(function(Ne){var Be=String(Ne);if(C)return C(Be);var Re=Be;return $&&(Re=Re.replace($,".")),Re.replace(/[^\w.-]+/g,"")},[C,$]),X=u.useRef(""),ne=u.useCallback(function(Ne,Be){if(S)return S(Ne,{userTyping:Be,input:String(X.current)});var Re=typeof Ne=="number"?yl(Ne):Ne;if(!Be){var Xe=J(Re,Be);if(Vu(Re)&&($||Xe>=0)){var Ue=$||".";Re=gi(Re,Ue,Xe)}}return Re},[S,J,$]),te=u.useState(function(){var Ne=c??d;return q.isInvalidate()&&["string","number"].includes(Qe(Ne))?Number.isNaN(Ne)?"":Ne:ne(q.toString(),!1)}),ee=Q(te,2),ie=ee[0],se=ee[1];X.current=ie;function fe(Ne,Be){se(ne(Ne.isInvalidate()?Ne.toString(!1):Ne.toString(!Be),Be))}var ve=u.useMemo(function(){return Rp(i)},[i,E]),me=u.useMemo(function(){return Rp(a)},[a,E]),Ee=u.useMemo(function(){return!ve||!q||q.isInvalidate()?!1:ve.lessEquals(q)},[ve,q]),le=u.useMemo(function(){return!me||!q||q.isInvalidate()?!1:q.lessEquals(me)},[me,q]),de=AI(j.current,L),je=Q(de,2),oe=je[0],Me=je[1],ke=function(Ne){return ve&&!Ne.lessEquals(ve)?ve:me&&!me.lessEquals(Ne)?me:null},Fe=function(Ne){return!ke(Ne)},Pe=function(Ne,Be){var Re=Ne,Xe=Fe(Re)||Re.isEmpty();if(!Re.isEmpty()&&!Be&&(Re=ke(Re)||Re,Xe=!0),!p&&!f&&Xe){var Ue=Re.toString(),lt=J(Ue,Be);return lt>=0&&(Re=Jn(gi(Ue,".",lt)),Fe(Re)||(Re=Jn(gi(Ue,".",lt,!0)))),Re.equals(q)||(G(Re),O==null||O(Re.isEmpty()?null:Pp(w,Re)),d===void 0&&fe(Re,Be)),Re}return q},Ie=HI(),ye=function Ne(Be){if(oe(),X.current=Be,se(Be),!A.current){var Re=K(Be),Xe=Jn(Re);Xe.isNaN()||Pe(Xe,!0)}k==null||k(Be),Ie(function(){var Ue=Be;C||(Ue=Be.replace(/。/g,".")),Ue!==Be&&Ne(Ue)})},be=function(){A.current=!0},he=function(){A.current=!1,ye(j.current.value)},we=function(Ne){ye(Ne.target.value)},Te=function(Ne){var Be;if(!(Ne&&Ee||!Ne&&le)){P.current=!1;var Re=Jn(T.current?jp(s):s);Ne||(Re=Re.negate());var Xe=(q||Jn(0)).add(Re.toString()),Ue=Pe(Xe,!1);M==null||M(Pp(w,Ue),{offset:T.current?jp(s):s,type:Ne?"up":"down"}),(Be=j.current)===null||Be===void 0||Be.focus()}},ce=function(Ne){var Be=Jn(K(ie)),Re;Be.isNaN()?Re=Pe(q,Ne):Re=Pe(Be,Ne),d!==void 0?fe(q,!1):Re.isNaN()||fe(Re,!1)},Ge=function(){P.current=!0},rt=function(Ne){var Be=Ne.key,Re=Ne.shiftKey;P.current=!0,T.current=Re,Be==="Enter"&&(A.current||(P.current=!1),ce(!1),I==null||I(Ne)),m!==!1&&!A.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Be)&&(Te(Be==="Up"||Be==="ArrowUp"),Ne.preventDefault())},at=function(){P.current=!1,T.current=!1};u.useEffect(function(){if(b&&L){var Ne=function(Re){Te(Re.deltaY<0),Re.preventDefault()},Be=j.current;if(Be)return Be.addEventListener("wheel",Ne,{passive:!1}),function(){return Be.removeEventListener("wheel",Ne)}}});var pt=function(){D&&ce(!1),N(!1),P.current=!1};return Oo(function(){q.isInvalidate()||fe(q,!1)},[E,S]),Oo(function(){var Ne=Jn(d);Z(Ne);var Be=Jn(K(ie));(!Ne.equals(Be)||!P.current||S)&&fe(Ne,P.current)},[d]),Oo(function(){S&&Me()},[ie]),u.createElement("div",{ref:F,className:ae(n,r,Y(Y(Y(Y(Y({},"".concat(n,"-focused"),L),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),q.isNaN()),"".concat(n,"-out-of-range"),!q.isInvalidate()&&!Fe(q))),style:o,onFocus:function(){N(!0)},onBlur:pt,onKeyDown:rt,onKeyUp:at,onCompositionStart:be,onCompositionEnd:he,onBeforeInput:Ge},x&&u.createElement(BI,{prefixCls:n,upNode:v,downNode:h,upDisabled:Ee,downDisabled:le,onStep:Te}),u.createElement("div",{className:"".concat(H,"-wrap")},u.createElement("input",Ae({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:s},R,{ref:Gn(j,t),className:H,value:ie,onChange:we,disabled:f,readOnly:p}))))}),WI=u.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,l=e.prefix,s=e.suffix,c=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,v=ft(e,_I),h=u.useRef(null),m=u.useRef(null),g=u.useRef(null),b=function(y){g.current&&qu(g.current,y)};return u.useImperativeHandle(t,function(){return RI(g.current,{focus:b,nativeElement:h.current.nativeElement||m.current})}),u.createElement(Yu,{className:f,triggerFocus:b,prefixCls:a,value:i,disabled:n,style:r,prefix:l,suffix:s,addonAfter:d,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},u.createElement(LI,Ae({prefixCls:a,disabled:n,ref:g,domRef:m,className:p==null?void 0:p.input},v)))});const VI=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Yo(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new $t(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Ap=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},qI=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:v,colorIcon:h,motionDurationMid:m,handleHoverColor:g,handleOpacity:b,paddingInline:y,paddingBlock:x,handleBg:w,handleActiveBg:C,colorTextDisabled:S,borderRadiusSM:E,borderRadiusLG:$,controlWidth:O,handleBorderColor:k,filledHandleBg:I,lineHeightLG:M,calc:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),bl(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:o}),Bu(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${ue(n)} ${r} ${k}`}}})),zu(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${ue(n)} ${r} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),_u(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${ue(n)} ${r} ${k}`}}})),Hu(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:M,borderRadius:$,[`input${t}-input`]:{height:B(l).sub(B(n).mul(2)).equal(),padding:`${ue(p)} ${ue(v)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:E,[`input${t}-input`]:{height:B(s).sub(B(n).mul(2)).equal(),padding:`${ue(f)} ${ue(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Zt(e)),_v(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},Fv(e)),Dv(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{width:"100%",padding:`${ue(x)} ${ue(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),Lu(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
309
|
+
${t}-handler-up-inner,
|
|
310
|
+
${t}-handler-down-inner
|
|
311
|
+
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ue(n)} ${r} ${k}`,transition:`all ${m} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`
|
|
312
|
+
${t}-handler-up-inner,
|
|
313
|
+
${t}-handler-down-inner
|
|
314
|
+
`]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ja()),{color:h,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Ap(e,"lg")),Ap(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
315
|
+
${t}-handler-up-disabled,
|
|
316
|
+
${t}-handler-down-disabled
|
|
317
|
+
`]:{cursor:"not-allowed"},[`
|
|
318
|
+
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
319
|
+
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
320
|
+
`]:{color:S}})}]},YI=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ue(n)} 0`}},bl(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${t}-input`]:{padding:`${ue(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ue(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},XI=ln("InputNumber",e=>{const t=Rt(e,qo(e));return[qI(t),YI(t),Aa(t)]},VI,{unitless:{handleOpacity:!0},resetFont:!1});var UI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gv=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(xt),o=u.useRef(null);u.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:l,disabled:s,prefixCls:c,addonBefore:d,addonAfter:f,prefix:p,suffix:v,bordered:h,readOnly:m,status:g,controls:b,variant:y}=e,x=UI(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),C=Hn(w),[S,E,$]=XI(w,C),{compactSize:O,compactItemClassnames:k}=_r(w,r);let I=u.createElement($I,{className:`${w}-handler-up-inner`}),M=u.createElement(Bh,{className:`${w}-handler-down-inner`});const B=typeof b=="boolean"?b:void 0;typeof b=="object"&&(I=typeof b.upIcon>"u"?I:u.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),M=typeof b.downIcon>"u"?M:u.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:F,isFormItemInput:R,feedbackIcon:H}=u.useContext(bn),j=so(F,g),_=Qn(q=>{var Z;return(Z=l??O)!==null&&Z!==void 0?Z:q}),W=u.useContext(On),L=s??W,[N,P]=Lo("inputNumber",y,h),A=D&&u.createElement(u.Fragment,null,H),T=ae({[`${w}-lg`]:_==="large",[`${w}-sm`]:_==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:R},E),z=`${w}-group`,V=u.createElement(WI,Object.assign({ref:o,disabled:L,className:ae($,C,a,i,k),upHandler:I,downHandler:M,prefixCls:w,readOnly:m,controls:B,prefix:p,suffix:A||v,addonBefore:d&&u.createElement(Fr,{form:!0,space:!0},d),addonAfter:f&&u.createElement(Fr,{form:!0,space:!0},f),classNames:{input:T,variant:ae({[`${w}-${N}`]:P},Tr(w,j,D)),affixWrapper:ae({[`${w}-affix-wrapper-sm`]:_==="small",[`${w}-affix-wrapper-lg`]:_==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:b===!1||L||m},E),wrapper:ae({[`${z}-rtl`]:r==="rtl"},E),groupWrapper:ae({[`${w}-group-wrapper-sm`]:_==="small",[`${w}-group-wrapper-lg`]:_==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${N}`]:P},Tr(`${w}-group-wrapper`,j,D),E)}},x));return S(V)}),Mc=Gv,GI=e=>u.createElement(zr,{theme:{components:{InputNumber:{handleVisible:!0}}}},u.createElement(Gv,Object.assign({},e)));Mc._InternalPanelDoNotUseOrYouWillBeFired=GI;const Kv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:pe.createElement(Qi,null)}),t};function Qv(e,t){const n=Ye([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value")&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return Mt(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function KI(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var QI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xl=or((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:l,onFocus:s,suffix:c,allowClear:d,addonAfter:f,addonBefore:p,className:v,style:h,styles:m,rootClassName:g,onChange:b,classNames:y,variant:x}=e,w=QI(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:S,allowClear:E,autoComplete:$,className:O,style:k,classNames:I,styles:M}=xr("input"),B=C("input",n),D=Ye(null),F=Hn(B),[R,H,j]=Lv(B,g),[_]=Wv(B,F),{compactSize:W,compactItemClassnames:L}=_r(B,S),N=Qn(se=>{var fe;return(fe=a??W)!==null&&fe!==void 0?fe:se}),P=pe.useContext(On),A=i??P,{status:T,hasFeedback:z,feedbackIcon:V}=Ut(bn),q=so(T,o),Z=KI(e)||!!z;Ye(Z);const G=Qv(D,!0),J=se=>{G(),l==null||l(se)},K=se=>{G(),s==null||s(se)},X=se=>{G(),b==null||b(se)},ne=(z||c)&&pe.createElement(pe.Fragment,null,c,z&&V),te=Kv(d??E),[ee,ie]=Lo("input",x,r);return R(_(pe.createElement(PI,Object.assign({ref:Gn(t,D),prefixCls:B,autoComplete:$},w,{disabled:A,onBlur:J,onFocus:K,style:Object.assign(Object.assign({},k),h),styles:Object.assign(Object.assign({},M),m),suffix:ne,allowClear:te,className:ae(v,g,j,F,L,O),onChange:X,addonBefore:p&&pe.createElement(Fr,{form:!0,space:!0},p),addonAfter:f&&pe.createElement(Fr,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),I),{input:ae({[`${B}-sm`]:N==="small",[`${B}-lg`]:N==="large",[`${B}-rtl`]:S==="rtl"},y==null?void 0:y.input,I.input,H),variant:ae({[`${B}-${ee}`]:ie},Tr(B,q)),affixWrapper:ae({[`${B}-affix-wrapper-sm`]:N==="small",[`${B}-affix-wrapper-lg`]:N==="large",[`${B}-affix-wrapper-rtl`]:S==="rtl"},H),wrapper:ae({[`${B}-group-rtl`]:S==="rtl"},H),groupWrapper:ae({[`${B}-group-wrapper-sm`]:N==="small",[`${B}-group-wrapper-lg`]:N==="large",[`${B}-group-wrapper-rtl`]:S==="rtl",[`${B}-group-wrapper-${ee}`]:ie},Tr(`${B}-group-wrapper`,q,z),H)})}))))});function Ic(e,t,n){return(e-t)/(n-t)}function Xu(e,t,n,r){var o=Ic(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function Yr(e,t){return Array.isArray(e)?e[t]:e}var po=u.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),ZI=u.createContext({}),JI=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Fp=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,a=e.onStartMove,i=e.onDelete,l=e.style,s=e.render,c=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,v=e.onFocus,h=e.onMouseEnter,m=ft(e,JI),g=u.useContext(po),b=g.min,y=g.max,x=g.direction,w=g.disabled,C=g.keyboard,S=g.range,E=g.tabIndex,$=g.ariaLabelForHandle,O=g.ariaLabelledByForHandle,k=g.ariaRequired,I=g.ariaValueTextFormatterForHandle,M=g.styles,B=g.classNames,D="".concat(n,"-handle"),F=function(A){w||a(A,o)},R=function(A){v==null||v(A,o)},H=function(A){h(A,o)},j=function(A){if(!w&&C){var T=null;switch(A.which||A.keyCode){case Ke.LEFT:T=x==="ltr"||x==="btt"?-1:1;break;case Ke.RIGHT:T=x==="ltr"||x==="btt"?1:-1;break;case Ke.UP:T=x!=="ttb"?1:-1;break;case Ke.DOWN:T=x!=="ttb"?-1:1;break;case Ke.HOME:T="min";break;case Ke.END:T="max";break;case Ke.PAGE_UP:T=2;break;case Ke.PAGE_DOWN:T=-2;break;case Ke.BACKSPACE:case Ke.DELETE:i==null||i(o);break}T!==null&&(A.preventDefault(),f(T,o))}},_=function(A){switch(A.which||A.keyCode){case Ke.LEFT:case Ke.RIGHT:case Ke.UP:case Ke.DOWN:case Ke.HOME:case Ke.END:case Ke.PAGE_UP:case Ke.PAGE_DOWN:p==null||p();break}},W=Xu(x,r,b,y),L={};if(o!==null){var N;L={tabIndex:w?null:Yr(E,o),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":w,"aria-label":Yr($,o),"aria-labelledby":Yr(O,o),"aria-required":Yr(k,o),"aria-valuetext":(N=Yr(I,o))===null||N===void 0?void 0:N(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:F,onTouchStart:F,onFocus:R,onMouseEnter:H,onKeyDown:j,onKeyUp:_}}var P=u.createElement("div",Ae({ref:t,className:ae(D,Y(Y(Y({},"".concat(D,"-").concat(o+1),o!==null&&S),"".concat(D,"-dragging"),c),"".concat(D,"-dragging-delete"),d),B.handle),style:U(U(U({},W),l),M.handle)},L,m));return s&&(P=s(P,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:d})),P}),eN=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],tN=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,l=e.handleRender,s=e.activeHandleRender,c=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=ft(e,eN),v=u.useRef({}),h=u.useState(!1),m=Q(h,2),g=m[0],b=m[1],y=u.useState(-1),x=Q(y,2),w=x[0],C=x[1],S=function(k){C(k),b(!0)},E=function(k,I){S(I),f==null||f(k)},$=function(k,I){S(I)};u.useImperativeHandle(t,function(){return{focus:function(k){var I;(I=v.current[k])===null||I===void 0||I.focus()},hideHelp:function(){ms(function(){b(!1)})}}});var O=U({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:E,onMouseEnter:$},p);return u.createElement(u.Fragment,null,i.map(function(k,I){var M=c===I;return u.createElement(Fp,Ae({ref:function(B){B?v.current[I]=B:delete v.current[I]},dragging:M,draggingDelete:M&&d,style:Yr(r,I),key:I,value:k,valueIndex:I},O))}),s&&g&&u.createElement(Fp,Ae({key:"a11y"},O,{value:i[w],valueIndex:null,dragging:c!==-1,draggingDelete:d,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),nN=function(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=u.useContext(po),l=i.min,s=i.max,c=i.direction,d=i.includedStart,f=i.includedEnd,p=i.included,v="".concat(t,"-text"),h=Xu(c,o,l,s);return u.createElement("span",{className:ae(v,Y({},"".concat(v,"-active"),p&&d<=o&&o<=f)),style:U(U({},h),n),onMouseDown:function(m){m.stopPropagation()},onClick:function(){a(o)}},r)},rN=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?u.createElement("div",{className:o},n.map(function(a){var i=a.value,l=a.style,s=a.label;return u.createElement(nN,{key:i,prefixCls:o,style:l,value:i,onClick:r},s)})):null},oN=function(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=u.useContext(po),i=a.min,l=a.max,s=a.direction,c=a.included,d=a.includedStart,f=a.includedEnd,p="".concat(t,"-dot"),v=c&&d<=n&&n<=f,h=U(U({},Xu(s,n,i,l)),typeof r=="function"?r(n):r);return v&&(h=U(U({},h),typeof o=="function"?o(n):o)),u.createElement("span",{className:ae(p,Y({},"".concat(p,"-active"),v)),style:h})},aN=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=u.useContext(po),l=i.min,s=i.max,c=i.step,d=u.useMemo(function(){var f=new Set;if(n.forEach(function(v){f.add(v.value)}),r&&c!==null)for(var p=l;p<=s;)f.add(p),p+=c;return Array.from(f)},[l,s,c,r,n]);return u.createElement("div",{className:"".concat(t,"-step")},d.map(function(f){return u.createElement(oN,{prefixCls:t,key:f,value:f,style:o,activeStyle:a})}))},Tp=function(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,i=e.onStartMove,l=e.replaceCls,s=u.useContext(po),c=s.direction,d=s.min,f=s.max,p=s.disabled,v=s.range,h=s.classNames,m="".concat(t,"-track"),g=Ic(r,d,f),b=Ic(o,d,f),y=function(C){!p&&i&&i(C,-1)},x={};switch(c){case"rtl":x.right="".concat(g*100,"%"),x.width="".concat(b*100-g*100,"%");break;case"btt":x.bottom="".concat(g*100,"%"),x.height="".concat(b*100-g*100,"%");break;case"ttb":x.top="".concat(g*100,"%"),x.height="".concat(b*100-g*100,"%");break;default:x.left="".concat(g*100,"%"),x.width="".concat(b*100-g*100,"%")}var w=l||ae(m,Y(Y({},"".concat(m,"-").concat(a+1),a!==null&&v),"".concat(t,"-track-draggable"),i),h.track);return u.createElement("div",{className:w,style:U(U({},x),n),onMouseDown:y,onTouchStart:y})},iN=function(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=u.useContext(po),l=i.included,s=i.range,c=i.min,d=i.styles,f=i.classNames,p=u.useMemo(function(){if(!s){if(r.length===0)return[];var h=o??c,m=r[0];return[{start:Math.min(h,m),end:Math.max(h,m)}]}for(var g=[],b=0;b<r.length-1;b+=1)g.push({start:r[b],end:r[b+1]});return g},[r,s,o,c]);if(!l)return null;var v=p!=null&&p.length&&(f.tracks||d.tracks)?u.createElement(Tp,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:ae(f.tracks,"".concat(t,"-tracks")),style:d.tracks}):null;return u.createElement(u.Fragment,null,v,p.map(function(h,m){var g=h.start,b=h.end;return u.createElement(Tp,{index:m,prefixCls:t,style:U(U({},Yr(n,m)),d.track),start:g,end:b,key:m,onStartMove:a})}))},lN=130;function Dp(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function sN(e,t,n,r,o,a,i,l,s,c,d){var f=u.useState(null),p=Q(f,2),v=p[0],h=p[1],m=u.useState(-1),g=Q(m,2),b=g[0],y=g[1],x=u.useState(!1),w=Q(x,2),C=w[0],S=w[1],E=u.useState(n),$=Q(E,2),O=$[0],k=$[1],I=u.useState(n),M=Q(I,2),B=M[0],D=M[1],F=u.useRef(null),R=u.useRef(null),H=u.useRef(null),j=u.useContext(ZI),_=j.onDragStart,W=j.onDragChange;wt(function(){b===-1&&k(n)},[n,b]),u.useEffect(function(){return function(){document.removeEventListener("mousemove",F.current),document.removeEventListener("mouseup",R.current),H.current&&(H.current.removeEventListener("touchmove",F.current),H.current.removeEventListener("touchend",R.current))}},[]);var L=function(T,z,V){z!==void 0&&h(z),k(T);var q=T;V&&(q=T.filter(function(Z,G){return G!==b})),i(q),W&&W({rawValues:T,deleteIndex:V?b:-1,draggingIndex:b,draggingValue:z})},N=bt(function(T,z,V){if(T===-1){var q=B[0],Z=B[B.length-1],G=r-q,J=o-Z,K=z*(o-r);K=Math.max(K,G),K=Math.min(K,J);var X=a(q+K);K=X-q;var ne=B.map(function(se){return se+K});L(ne)}else{var te=(o-r)*z,ee=Ce(O);ee[T]=B[T];var ie=s(ee,te,T,"dist");L(ie.values,ie.value,V)}}),P=function(T,z,V){T.stopPropagation();var q=V||n,Z=q[z];y(z),h(Z),D(q),k(q),S(!1);var G=Dp(T),J=G.pageX,K=G.pageY,X=!1;_&&_({rawValues:q,draggingIndex:z,draggingValue:Z});var ne=function(ee){ee.preventDefault();var ie=Dp(ee),se=ie.pageX,fe=ie.pageY,ve=se-J,me=fe-K,Ee=e.current.getBoundingClientRect(),le=Ee.width,de=Ee.height,je,oe;switch(t){case"btt":je=-me/de,oe=ve;break;case"ttb":je=me/de,oe=ve;break;case"rtl":je=-ve/le,oe=me;break;default:je=ve/le,oe=me}X=c?Math.abs(oe)>lN&&d<O.length:!1,S(X),N(z,je,X)},te=function ee(ie){ie.preventDefault(),document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",ne),H.current&&(H.current.removeEventListener("touchmove",F.current),H.current.removeEventListener("touchend",R.current)),F.current=null,R.current=null,H.current=null,l(X),y(-1),S(!1)};document.addEventListener("mouseup",te),document.addEventListener("mousemove",ne),T.currentTarget.addEventListener("touchend",te),T.currentTarget.addEventListener("touchmove",ne),F.current=ne,R.current=te,H.current=T.currentTarget},A=u.useMemo(function(){var T=Ce(n).sort(function(G,J){return G-J}),z=Ce(O).sort(function(G,J){return G-J}),V={};z.forEach(function(G){V[G]=(V[G]||0)+1}),T.forEach(function(G){V[G]=(V[G]||0)-1});var q=c?1:0,Z=Object.values(V).reduce(function(G,J){return G+Math.abs(J)},0);return Z<=q?O:n},[n,O,c]);return[b,v,C,A,P]}function cN(e,t,n,r,o,a){var i=u.useCallback(function(v){return Math.max(e,Math.min(t,v))},[e,t]),l=u.useCallback(function(v){if(n!==null){var h=e+Math.round((i(v)-e)/n)*n,m=function(y){return(String(y).split(".")[1]||"").length},g=Math.max(m(n),m(t),m(e)),b=Number(h.toFixed(g));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),s=u.useCallback(function(v){var h=i(v),m=r.map(function(y){return y.value});n!==null&&m.push(l(v)),m.push(e,t);var g=m[0],b=t-e;return m.forEach(function(y){var x=Math.abs(h-y);x<=b&&(g=y,b=x)}),g},[e,t,r,n,i,l]),c=function v(h,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var y,x=h[g],w=x+m,C=[];r.forEach(function(k){C.push(k.value)}),C.push(e,t),C.push(l(x));var S=m>0?1:-1;b==="unit"?C.push(l(x+S*n)):C.push(l(w)),C=C.filter(function(k){return k!==null}).filter(function(k){return m<0?k<=x:k>=x}),b==="unit"&&(C=C.filter(function(k){return k!==x}));var E=b==="unit"?x:w;y=C[0];var $=Math.abs(y-E);if(C.forEach(function(k){var I=Math.abs(k-E);I<$&&(y=k,$=I)}),y===void 0)return m<0?e:t;if(b==="dist")return y;if(Math.abs(m)>1){var O=Ce(h);return O[g]=y,v(O,m-S,g,b)}return y}else{if(m==="min")return e;if(m==="max")return t}},d=function(v,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[m],y=c(v,h,m,g);return{value:y,changed:y!==b}},f=function(v){return a===null&&v===0||typeof a=="number"&&v<a},p=function(v,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(s),y=b[m],x=c(b,h,m,g);if(b[m]=x,o===!1){var w=a||0;m>0&&b[m-1]!==y&&(b[m]=Math.max(b[m],b[m-1]+w)),m<b.length-1&&b[m+1]!==y&&(b[m]=Math.min(b[m],b[m+1]-w))}else if(typeof a=="number"||a===null){for(var C=m+1;C<b.length;C+=1)for(var S=!0;f(b[C]-b[C-1])&&S;){var E=d(b,1,C);b[C]=E.value,S=E.changed}for(var $=m;$>0;$-=1)for(var O=!0;f(b[$]-b[$-1])&&O;){var k=d(b,-1,$-1);b[$-1]=k.value,O=k.changed}for(var I=b.length-1;I>0;I-=1)for(var M=!0;f(b[I]-b[I-1])&&M;){var B=d(b,-1,I-1);b[I-1]=B.value,M=B.changed}for(var D=0;D<b.length-1;D+=1)for(var F=!0;f(b[D+1]-b[D])&&F;){var R=d(b,1,D+1);b[D+1]=R.value,F=R.changed}}return{value:b[m],values:b}};return[s,p]}function uN(e){return xn(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,o=e.maxCount;return[!0,t,!t&&n,r||0,o]},[e])}var dN=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,o=e.className,a=e.style,i=e.classNames,l=e.styles,s=e.id,c=e.disabled,d=c===void 0?!1:c,f=e.keyboard,p=f===void 0?!0:f,v=e.autoFocus,h=e.onFocus,m=e.onBlur,g=e.min,b=g===void 0?0:g,y=e.max,x=y===void 0?100:y,w=e.step,C=w===void 0?1:w,S=e.value,E=e.defaultValue,$=e.range,O=e.count,k=e.onChange,I=e.onBeforeChange,M=e.onAfterChange,B=e.onChangeComplete,D=e.allowCross,F=D===void 0?!0:D,R=e.pushable,H=R===void 0?!1:R,j=e.reverse,_=e.vertical,W=e.included,L=W===void 0?!0:W,N=e.startPoint,P=e.trackStyle,A=e.handleStyle,T=e.railStyle,z=e.dotStyle,V=e.activeDotStyle,q=e.marks,Z=e.dots,G=e.handleRender,J=e.activeHandleRender,K=e.track,X=e.tabIndex,ne=X===void 0?0:X,te=e.ariaLabelForHandle,ee=e.ariaLabelledByForHandle,ie=e.ariaRequired,se=e.ariaValueTextFormatterForHandle,fe=u.useRef(null),ve=u.useRef(null),me=u.useMemo(function(){return _?j?"ttb":"btt":j?"rtl":"ltr"},[j,_]),Ee=uN($),le=Q(Ee,5),de=le[0],je=le[1],oe=le[2],Me=le[3],ke=le[4],Fe=u.useMemo(function(){return isFinite(b)?b:0},[b]),Pe=u.useMemo(function(){return isFinite(x)?x:100},[x]),Ie=u.useMemo(function(){return C!==null&&C<=0?1:C},[C]),ye=u.useMemo(function(){return typeof H=="boolean"?H?Ie:!1:H>=0?H:!1},[H,Ie]),be=u.useMemo(function(){return Object.keys(q||{}).map(function(De){var He=q[De],Le={value:Number(De)};return He&&Qe(He)==="object"&&!u.isValidElement(He)&&("label"in He||"style"in He)?(Le.style=He.style,Le.label=He.label):Le.label=He,Le}).filter(function(De){var He=De.label;return He||typeof He=="number"}).sort(function(De,He){return De.value-He.value})},[q]),he=cN(Fe,Pe,Ie,be,F,ye),we=Q(he,2),Te=we[0],ce=we[1],Ge=Qt(E,{value:S}),rt=Q(Ge,2),at=rt[0],pt=rt[1],Ne=u.useMemo(function(){var De=at==null?[]:Array.isArray(at)?at:[at],He=Q(De,1),Le=He[0],Pt=Le===void 0?Fe:Le,Ct=at===null?[]:[Pt];if(de){if(Ct=Ce(De),O||at===void 0){var qt=O>=0?O+1:2;for(Ct=Ct.slice(0,qt);Ct.length<qt;){var Gt;Ct.push((Gt=Ct[Ct.length-1])!==null&&Gt!==void 0?Gt:Fe)}}Ct.sort(function(Dt,Bt){return Dt-Bt})}return Ct.forEach(function(Dt,Bt){Ct[Bt]=Te(Dt)}),Ct},[at,de,Fe,O,Te]),Be=function(De){return de?De:De[0]},Re=bt(function(De){var He=Ce(De).sort(function(Le,Pt){return Le-Pt});k&&!Si(He,Ne,!0)&&k(Be(He)),pt(He)}),Xe=bt(function(De){De&&fe.current.hideHelp();var He=Be(Ne);M==null||M(He),vn(!M,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),B==null||B(He)}),Ue=function(De){if(!(d||!je||Ne.length<=Me)){var He=Ce(Ne);He.splice(De,1),I==null||I(Be(He)),Re(He);var Le=Math.max(0,De-1);fe.current.hideHelp(),fe.current.focus(Le)}},lt=sN(ve,me,Ne,Fe,Pe,Te,Re,Xe,ce,je,Me),ct=Q(lt,5),Ve=ct[0],tt=ct[1],st=ct[2],Oe=ct[3],xe=ct[4],ge=function(De,He){if(!d){var Le=Ce(Ne),Pt=0,Ct=0,qt=Pe-Fe;Ne.forEach(function(Yt,wn){var Cn=Math.abs(De-Yt);Cn<=qt&&(qt=Cn,Pt=wn),Yt<De&&(Ct=wn)});var Gt=Pt;je&&qt!==0&&(!ke||Ne.length<ke)?(Le.splice(Ct+1,0,De),Gt=Ct+1):Le[Pt]=De,de&&!Ne.length&&O===void 0&&Le.push(De);var Dt=Be(Le);if(I==null||I(Dt),Re(Le),He){var Bt,sn;(Bt=document.activeElement)===null||Bt===void 0||(sn=Bt.blur)===null||sn===void 0||sn.call(Bt),fe.current.focus(Gt),xe(He,Gt,Le)}else M==null||M(Dt),vn(!M,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),B==null||B(Dt)}},Se=function(De){De.preventDefault();var He=ve.current.getBoundingClientRect(),Le=He.width,Pt=He.height,Ct=He.left,qt=He.top,Gt=He.bottom,Dt=He.right,Bt=De.clientX,sn=De.clientY,Yt;switch(me){case"btt":Yt=(Gt-sn)/Pt;break;case"ttb":Yt=(sn-qt)/Pt;break;case"rtl":Yt=(Dt-Bt)/Le;break;default:Yt=(Bt-Ct)/Le}var wn=Fe+Yt*(Pe-Fe);ge(Te(wn),De)},We=u.useState(null),Ze=Q(We,2),ot=Ze[0],mt=Ze[1],vt=function(De,He){if(!d){var Le=ce(Ne,De,He);I==null||I(Be(Ne)),Re(Le.values),mt(Le.value)}};u.useEffect(function(){if(ot!==null){var De=Ne.indexOf(ot);De>=0&&fe.current.focus(De)}mt(null)},[ot]);var ut=u.useMemo(function(){return oe&&Ie===null?!1:oe},[oe,Ie]),jt=bt(function(De,He){xe(De,He),I==null||I(Be(Ne))}),Ot=Ve!==-1;u.useEffect(function(){if(!Ot){var De=Ne.lastIndexOf(tt);fe.current.focus(De)}},[Ot]);var gt=u.useMemo(function(){return Ce(Oe).sort(function(De,He){return De-He})},[Oe]),At=u.useMemo(function(){return de?[gt[0],gt[gt.length-1]]:[Fe,gt[0]]},[gt,de,Fe]),Ft=Q(At,2),tn=Ft[0],$e=Ft[1];u.useImperativeHandle(t,function(){return{focus:function(){fe.current.focus(0)},blur:function(){var De,He=document,Le=He.activeElement;(De=ve.current)!==null&&De!==void 0&&De.contains(Le)&&(Le==null||Le.blur())}}}),u.useEffect(function(){v&&fe.current.focus(0)},[]);var _e=u.useMemo(function(){return{min:Fe,max:Pe,direction:me,disabled:d,keyboard:p,step:Ie,included:L,includedStart:tn,includedEnd:$e,range:de,tabIndex:ne,ariaLabelForHandle:te,ariaLabelledByForHandle:ee,ariaRequired:ie,ariaValueTextFormatterForHandle:se,styles:l||{},classNames:i||{}}},[Fe,Pe,me,d,p,Ie,L,tn,$e,de,ne,te,ee,ie,se,l,i]);return u.createElement(po.Provider,{value:_e},u.createElement("div",{ref:ve,className:ae(r,o,Y(Y(Y(Y({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),_),"".concat(r,"-horizontal"),!_),"".concat(r,"-with-marks"),be.length)),style:a,onMouseDown:Se,id:s},u.createElement("div",{className:ae("".concat(r,"-rail"),i==null?void 0:i.rail),style:U(U({},T),l==null?void 0:l.rail)}),K!==!1&&u.createElement(iN,{prefixCls:r,style:P,values:Ne,startPoint:N,onStartMove:ut?jt:void 0}),u.createElement(aN,{prefixCls:r,marks:be,dots:Z,style:z,activeStyle:V}),u.createElement(tN,{ref:fe,prefixCls:r,style:A,values:Oe,draggingIndex:Ve,draggingDelete:st,onStartMove:jt,onOffsetChange:vt,onFocus:h,onBlur:m,handleRender:G,activeHandleRender:J,onChangeComplete:Xe,onDelete:je?Ue:void 0}),u.createElement(rN,{prefixCls:r,marks:be,onClick:ge})))});const fN=Dr({}),Bp=u.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,a=Ye(null),i=n&&!r,l=Ye(null);function s(){dt.cancel(l.current),l.current=null}function c(){l.current=dt(()=>{var d;(d=a.current)===null||d===void 0||d.forceAlign(),l.current=null})}return u.useEffect(()=>(i?c():s(),s),[i,e.title,o]),u.createElement(dl,Object.assign({ref:Gn(a,t)},e,{open:i}))}),pN=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:l,handleColorDisabled:s,calc:c,handleSize:d,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:v,handleLineWidth:h,handleLineWidthHover:m,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",height:r,margin:`${ue(i)} ${ue(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ue(a)} ${ue(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ue(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(d).add(c(h).mul(2)).equal(),height:c(d).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ue(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
321
|
+
inset-inline-start ${g},
|
|
322
|
+
inset-block-start ${g},
|
|
323
|
+
width ${g},
|
|
324
|
+
height ${g},
|
|
325
|
+
box-shadow ${g},
|
|
326
|
+
outline ${g}
|
|
327
|
+
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(d).div(2).add(m).mul(-1).equal(),insetBlockStart:c(f).sub(d).div(2).add(m).mul(-1).equal(),width:c(f).add(c(m).mul(2)).equal(),height:c(f).add(c(m).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ue(m)} ${p}`,outline:`6px solid ${v}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${ue(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
328
|
+
${t}-dot
|
|
329
|
+
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${ue(h)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
330
|
+
${t}-mark-text,
|
|
331
|
+
${t}-dot
|
|
332
|
+
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Zv=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:l}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",v=l(r).mul(3).sub(o).div(2).equal(),h=l(o).sub(r).div(2).equal(),m=t?{borderWidth:`${ue(h)} 0`,transform:`translateY(${ue(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${ue(h)}`,transform:`translateX(${ue(e.calc(h).mul(-1).equal())})`};return{[s]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[f]:v},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:l(r).mul(3).add(t?0:i).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(a).div(2).equal()}}},mN=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Zv(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},gN=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Zv(e,!1)),{height:"100%"})}},hN=e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,i=new $t(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:i,handleColorDisabled:new $t(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},vN=ln("Slider",e=>{const t=Rt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[pN(t),mN(t),gN(t)]},hN);function as(){const[e,t]=u.useState(!1),n=u.useRef(null),r=()=>{dt.cancel(n.current)},o=a=>{r(),a?t(a):n.current=dt(()=>{t(a)})};return u.useEffect(()=>r,[]),[e,o]}var bN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function yN(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const xN=pe.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:v={},onChangeComplete:h,classNames:m,styles:g}=e,b=bN(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:x,direction:w,className:C,style:S,classNames:E,styles:$,getPopupContainer:O}=xr("slider"),k=pe.useContext(On),I=l??k,{handleRender:M,direction:B}=pe.useContext(fN),D=(B||w)==="rtl",[F,R]=as(),[H,j]=as(),_=Object.assign({},v),{open:W,placement:L,getPopupContainer:N,prefixCls:P,formatter:A}=_,T=W??d,z=(F||H)&&T!==!1,V=yN(A,c),[q,Z]=as(),G=le=>{h==null||h(le),Z(!1)},J=(le,de)=>le||(de?D?"left":"right":"top"),K=x("slider",n),[X,ne,te]=vN(K),ee=ae(o,C,E.root,m==null?void 0:m.root,a,{[`${K}-rtl`]:D,[`${K}-lock`]:q},ne,te);D&&!b.vertical&&(b.reverse=!b.reverse),pe.useEffect(()=>{const le=()=>{dt(()=>{j(!1)},1)};return document.addEventListener("mouseup",le),()=>{document.removeEventListener("mouseup",le)}},[]);const ie=r&&!T,se=M||((le,de)=>{const{index:je}=de,oe=le.props;function Me(Ie,ye,be){var he,we,Te,ce;be&&((we=(he=b)[Ie])===null||we===void 0||we.call(he,ye)),(ce=(Te=oe)[Ie])===null||ce===void 0||ce.call(Te,ye)}const ke=Object.assign(Object.assign({},oe),{onMouseEnter:Ie=>{R(!0),Me("onMouseEnter",Ie)},onMouseLeave:Ie=>{R(!1),Me("onMouseLeave",Ie)},onMouseDown:Ie=>{j(!0),Z(!0),Me("onMouseDown",Ie)},onFocus:Ie=>{var ye;j(!0),(ye=b.onFocus)===null||ye===void 0||ye.call(b,Ie),Me("onFocus",Ie,!0)},onBlur:Ie=>{var ye;j(!1),(ye=b.onBlur)===null||ye===void 0||ye.call(b,Ie),Me("onBlur",Ie,!0)}}),Fe=pe.cloneElement(le,ke),Pe=(!!T||z)&&V!==null;return ie?Fe:pe.createElement(Bp,Object.assign({},_,{prefixCls:x("tooltip",P??s),title:V?V(de.value):"",value:de.value,open:Pe,placement:J(L??p,y),key:je,classNames:{root:`${K}-tooltip`},getPopupContainer:N||f||O}),Fe)}),fe=ie?(le,de)=>{const je=pe.cloneElement(le,{style:Object.assign(Object.assign({},le.props.style),{visibility:"hidden"})});return pe.createElement(Bp,Object.assign({},_,{prefixCls:x("tooltip",P??s),title:V?V(de.value):"",open:V!==null&&z,placement:J(L??p,y),key:"tooltip",classNames:{root:`${K}-tooltip`},getPopupContainer:N||f||O,draggingDelete:de.draggingDelete}),je)}:void 0,ve=Object.assign(Object.assign(Object.assign(Object.assign({},$.root),S),g==null?void 0:g.root),i),me=Object.assign(Object.assign({},$.tracks),g==null?void 0:g.tracks),Ee=ae(E.tracks,m==null?void 0:m.tracks);return X(pe.createElement(dN,Object.assign({},b,{classNames:Object.assign({handle:ae(E.handle,m==null?void 0:m.handle),rail:ae(E.rail,m==null?void 0:m.rail),track:ae(E.track,m==null?void 0:m.track)},Ee?{tracks:Ee}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},$.handle),g==null?void 0:g.handle),rail:Object.assign(Object.assign({},$.rail),g==null?void 0:g.rail),track:Object.assign(Object.assign({},$.track),g==null?void 0:g.track)},Object.keys(me).length?{tracks:me}:{}),step:b.step,range:r,className:ee,style:ve,disabled:I,ref:t,prefixCls:K,handleRender:se,activeHandleRender:fe,onChangeComplete:G})))});var wN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},CN=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:wN}))},Jv=u.forwardRef(CN),SN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},EN=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:SN}))},e0=u.forwardRef(EN),$N={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},kN=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:$N}))},ON=u.forwardRef(kN);function MN(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function IN(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function t0(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=zh(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[u.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[NN,jN]=["week","WeekPicker"],[PN,RN]=["month","MonthPicker"],[AN,FN]=["year","YearPicker"],[TN,DN]=["quarter","QuarterPicker"],[Nc,Hp]=["time","TimePicker"],BN=e=>u.createElement(sl,Object.assign({size:"small",type:"primary"},e));function n0(e){return xn(()=>Object.assign({button:BN},e),[e])}function r0(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],l=o[a];if(i&&typeof i=="object")if(l&&typeof l=="object")r[a]=r0(i,r[a],l);else{const{_default:s}=i;s&&(r[a]=r[a]||{},r[a][s]=ae(r[a][s],l))}else r[a]=ae(r[a],l)}),r),{})}function HN(e,...t){return u.useMemo(()=>r0.apply(void 0,[e].concat(t)),[t,e])}function zN(...e){return u.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function jc(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?jc(a,o):a}}),n}function _N(e,t,n){const r=HN.apply(void 0,[n].concat(Ce(e))),o=zN.apply(void 0,Ce(t));return u.useMemo(()=>[jc(r,n),jc(o,n)],[r,o,n])}const o0=(e,t,n,r,o)=>{const{classNames:a,styles:i}=xr(e),[l,s]=_N([a,t],[i,n],{popup:{_default:"root"}});return u.useMemo(()=>{var c,d;const f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:ae((c=l.popup)===null||c===void 0?void 0:c.root,r)})}),p=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Object.assign(Object.assign({},(d=s.popup)===null||d===void 0?void 0:d.root),o)})});return[f,p]},[l,s,r,o])};var LN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WN=e=>or((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:l,className:s,style:c,placement:d,size:f,disabled:p,bordered:v=!0,placeholder:h,popupStyle:m,popupClassName:g,dropdownClassName:b,status:y,rootClassName:x,variant:w,picker:C,styles:S,classNames:E}=n,$=LN(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),O=C===Nc?"timePicker":"datePicker",k=u.useRef(null),{getPrefixCls:I,direction:M,getPopupContainer:B,rangePicker:D}=Ut(xt),F=I("picker",a),{compactSize:R,compactItemClassnames:H}=_r(F,M),j=I(),[_,W]=Lo("rangePicker",w,v),L=Hn(F),[N,P,A]=Vv(F,L),[T,z]=o0(O,E,S,g||b,m),[V]=t0(n,F),q=n0(l),Z=Qn(ve=>{var me;return(me=f??R)!==null&&me!==void 0?me:ve}),G=u.useContext(On),J=p??G,K=Ut(bn),{hasFeedback:X,status:ne,feedbackIcon:te}=K,ee=u.createElement(u.Fragment,null,C===Nc?u.createElement(e0,null):u.createElement(Jv,null),X&&te);To(r,()=>k.current);const[ie]=ao("Calendar",Ei),se=Object.assign(Object.assign({},ie),n.locale),[fe]=Zi("DatePicker",(o=z.popup.root)===null||o===void 0?void 0:o.zIndex);return N(u.createElement(Fr,{space:!0},u.createElement(NM,Object.assign({separator:u.createElement("span",{"aria-label":"to",className:`${F}-separator`},u.createElement(ON,null)),disabled:J,ref:k,placement:d,placeholder:IN(se,C,h),suffixIcon:ee,prevIcon:u.createElement("span",{className:`${F}-prev-icon`}),nextIcon:u.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:u.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:u.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:C},$,{className:ae({[`${F}-${Z}`]:Z,[`${F}-${_}`]:W},Tr(F,so(ne,y),X),P,H,s,D==null?void 0:D.className,A,L,x,T.root),style:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),c),z.root),locale:se.lang,prefixCls:F,getPopupContainer:i||B,generateConfig:e,components:q,direction:M,classNames:{popup:ae(P,A,L,x,T.popup.root)},styles:{popup:Object.assign(Object.assign({},z.popup.root),{zIndex:fe})},allowClear:V}))))});var VN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qN=e=>{const t=(s,c)=>{const d=c===Hp?"timePicker":"datePicker";return or((p,v)=>{var h;const{prefixCls:m,getPopupContainer:g,components:b,style:y,className:x,rootClassName:w,size:C,bordered:S,placement:E,placeholder:$,popupStyle:O,popupClassName:k,dropdownClassName:I,disabled:M,status:B,variant:D,onCalendarChange:F,styles:R,classNames:H}=p,j=VN(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:_,direction:W,getPopupContainer:L,[d]:N}=Ut(xt),P=_("picker",m),{compactSize:A,compactItemClassnames:T}=_r(P,W),z=u.useRef(null),[V,q]=Lo("datePicker",D,S),Z=Hn(P),[G,J,K]=Vv(P,Z);To(v,()=>z.current);const X={showToday:!0},ne=s||p.picker,te=_(),{onSelect:ee,multiple:ie}=j,se=ee&&s==="time"&&!ie,fe=(Te,ce,Ge)=>{F==null||F(Te,ce,Ge),se&&ee(Te)},[ve,me]=o0(d,H,R,k||I,O),[Ee,le]=t0(p,P),de=n0(b),je=Qn(Te=>{var ce;return(ce=C??A)!==null&&ce!==void 0?ce:Te}),oe=u.useContext(On),Me=M??oe,ke=Ut(bn),{hasFeedback:Fe,status:Pe,feedbackIcon:Ie}=ke,ye=u.createElement(u.Fragment,null,ne==="time"?u.createElement(e0,null):u.createElement(Jv,null),Fe&&Ie),[be]=ao("DatePicker",Ei),he=Object.assign(Object.assign({},be),p.locale),[we]=Zi("DatePicker",(h=me.popup.root)===null||h===void 0?void 0:h.zIndex);return G(u.createElement(Fr,{space:!0},u.createElement(TM,Object.assign({ref:z,placeholder:MN(he,ne,$),suffixIcon:ye,placement:E,prevIcon:u.createElement("span",{className:`${P}-prev-icon`}),nextIcon:u.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:u.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:u.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${te}-slide-up`,picker:s,onCalendarChange:fe},X,j,{locale:he.lang,className:ae({[`${P}-${je}`]:je,[`${P}-${V}`]:q},Tr(P,so(Pe,B),Fe),J,T,N==null?void 0:N.className,x,K,Z,w,ve.root),style:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),y),me.root),prefixCls:P,getPopupContainer:g||L,generateConfig:e,components:de,direction:W,disabled:Me,classNames:{popup:ae(J,K,Z,w,ve.popup.root)},styles:{popup:Object.assign(Object.assign({},me.popup.root),{zIndex:we})},allowClear:Ee,removeIcon:le}))))})},n=t(),r=t(NN,jN),o=t(PN,RN),a=t(AN,FN),i=t(TN,DN),l=t(Nc,Hp);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:l,QuarterPicker:i}},a0=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=qN(e),l=WN(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=o,s.RangePicker=l,s.TimePicker=a,s.QuarterPicker=i,s},Xo=a0(BO),YN=Eu(Xo,"popupAlign",void 0,"picker");Xo._InternalPanelDoNotUseOrYouWillBeFired=YN;const XN=Eu(Xo.RangePicker,"popupAlign",void 0,"picker");Xo._InternalRangePanelDoNotUseOrYouWillBeFired=XN;Xo.generatePicker=a0;function UN(e){return e==null?null:typeof e=="object"&&!rm(e)?e:{title:e}}function Di(e){const[t,n]=u.useState(e);return u.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const GN=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
333
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
334
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},KN=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ue(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zp=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},QN=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Zt(e)),KN(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},zp(e,e.controlHeightSM)),"&-large":Object.assign({},zp(e,e.controlHeightLG))})}},ZN=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Zt(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
335
|
+
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:vu,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Xr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),JN=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
336
|
+
${t}-col-xl-24${n}-label`]:Xr(e)}}},ej=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
337
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},tj=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Xr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},nj=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
338
|
+
${r}-col-24${n}-label,
|
|
339
|
+
${r}-col-xl-24${n}-label`]:Xr(e)},[`@media (max-width: ${ue(e.screenXSMax)})`]:[tj(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Xr(e)}}}],[`@media (max-width: ${ue(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Xr(e)}}},[`@media (max-width: ${ue(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Xr(e)}}},[`@media (max-width: ${ue(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Xr(e)}}}}},rj=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),i0=(e,t)=>Rt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Uu=ln("Form",(e,{rootPrefixCls:t})=>{const n=i0(e,t);return[QN(n),ZN(n),GN(n),JN(n),ej(n),nj(n),YC(n),vu]},rj,{order:-1e3}),_p=[];function is(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const l0=({help:e,helpStatus:t,errors:n=_p,warnings:r=_p,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:l}=u.useContext(Su),s=`${l}-item-explain`,c=Hn(l),[d,f,p]=Uu(l,c),v=u.useMemo(()=>gf(l),[l]),h=Di(n),m=Di(r),g=u.useMemo(()=>e!=null?[is(e,"help",t)]:[].concat(Ce(h.map((x,w)=>is(x,"error","error",w))),Ce(m.map((x,w)=>is(x,"warning","warning",w)))),[e,t,h,m]),b=u.useMemo(()=>{const x={};return g.forEach(({key:w})=>{x[w]=(x[w]||0)+1}),g.map((w,C)=>Object.assign(Object.assign({},w),{key:x[w.key]>1?`${w.key}-fallback-${C}`:w.key}))},[g]),y={};return a&&(y.id=`${a}_help`),d(u.createElement(io,{motionDeadline:v.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:i},x=>{const{className:w,style:C}=x;return u.createElement("div",Object.assign({},y,{className:ae(s,w,p,c,o,f),style:C}),u.createElement(jg,Object.assign({keys:b},gf(l),{motionName:`${l}-show-help-item`,component:!1}),S=>{const{key:E,error:$,errorStatus:O,className:k,style:I}=S;return u.createElement("div",{key:E,className:ae(k,{[`${s}-${O}`]:O}),style:I},$)}))}))};var oj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aj=(e,t)=>{const n=u.useContext(On),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:l,className:s,style:c}=xr("form"),{prefixCls:d,className:f,rootClassName:p,size:v,disabled:h=n,form:m,colon:g,labelAlign:b,labelWrap:y,labelCol:x,wrapperCol:w,hideRequiredMark:C,layout:S="horizontal",scrollToFirstError:E,requiredMark:$,onFinishFailed:O,name:k,style:I,feedbackIcons:M,variant:B}=e,D=oj(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),F=Qn(v),R=u.useContext(ag),H=u.useMemo(()=>$!==void 0?$:C?!1:a!==void 0?a:!0,[C,$,a]),j=g??i,_=r("form",d),W=Hn(_),[L,N,P]=Uu(_,W),A=ae(_,`${_}-${S}`,{[`${_}-hide-required-mark`]:H===!1,[`${_}-rtl`]:o==="rtl",[`${_}-${F}`]:F},P,W,N,s,f,p),[T]=Rv(m),{__INTERNAL__:z}=T;z.name=k;const V=u.useMemo(()=>({name:k,labelAlign:b,labelCol:x,labelWrap:y,wrapperCol:w,layout:S,colon:j,requiredMark:H,itemRef:z.itemRef,form:T,feedbackIcons:M}),[k,b,x,w,S,j,H,T,M]),q=u.useRef(null);u.useImperativeHandle(t,()=>{var J;return Object.assign(Object.assign({},T),{nativeElement:(J=q.current)===null||J===void 0?void 0:J.nativeElement})});const Z=(J,K)=>{if(J){let X={block:"nearest"};typeof J=="object"&&(X=Object.assign(Object.assign({},X),J)),T.scrollToField(K,X)}},G=J=>{if(O==null||O(J),J.errorFields.length){const K=J.errorFields[0].name;if(E!==void 0){Z(E,K);return}l!==void 0&&Z(l,K)}};return L(u.createElement(vh.Provider,{value:B},u.createElement(fg,{disabled:h},u.createElement(eo.Provider,{value:F},u.createElement(gh,{validateMessages:R},u.createElement(br.Provider,{value:V},u.createElement(hh,{status:!0},u.createElement(zo,Object.assign({id:k},D,{name:k,onFinishFailed:G,form:T,ref:q,style:Object.assign(Object.assign({},c),I),className:A})))))))))},ij=u.forwardRef(aj);function lj(e){if(typeof e=="function")return e;const t=jo(e);return t.length<=1?t[0]:t}const s0=()=>{const{status:e,errors:t=[],warnings:n=[]}=u.useContext(bn);return{status:e,errors:t,warnings:n}};s0.Context=bn;function sj(e){const[t,n]=u.useState(e),r=u.useRef(null),o=u.useRef([]),a=u.useRef(!1);u.useEffect(()=>(a.current=!1,()=>{a.current=!0,dt.cancel(r.current),r.current=null}),[]);function i(l){a.current||(r.current===null&&(o.current=[],r.current=dt(()=>{r.current=null,n(s=>{let c=s;return o.current.forEach(d=>{c=d(c)}),c})})),o.current.push(l))}return[t,i]}function cj(){const{itemRef:e}=u.useContext(br),t=u.useRef({});function n(r,o){const a=o&&typeof o=="object"&&Ia(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=Gn(e(r),a)),t.current.ref}return n}const uj=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},dj=Gi(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=i0(e,t);return uj(n)});var fj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const pj=24,mj=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:l,_internalItemRender:s,extra:c,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:v,label:h}=e,m=`${t}-item`,g=u.useContext(br),b=u.useMemo(()=>{let D=Object.assign({},o||g.wrapperCol||{});return h===null&&!r&&!o&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(F=>{const R=F?[F]:[],H=Xn(g.labelCol,R),j=typeof H=="object"?H:{},_=Xn(D,R),W=typeof _=="object"?_:{};"span"in j&&!("offset"in W)&&j.span<pj&&(D=Yn(D,[].concat(R,["offset"]),j.span))}),D},[o,g.wrapperCol,g.labelCol,h,r]),y=ae(`${m}-control`,b.className),x=u.useMemo(()=>fj(g,["labelCol","wrapperCol"]),[g]),w=u.useRef(null),[C,S]=u.useState(0);wt(()=>{c&&w.current?S(w.current.clientHeight):S(0)},[c]);const E=u.createElement("div",{className:`${m}-control-input`},u.createElement("div",{className:`${m}-control-input-content`},a)),$=u.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=p!==null||i.length||l.length?u.createElement(Su.Provider,{value:$},u.createElement(l0,{fieldId:f,errors:i,warnings:l,help:d,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:v})):null,k={};f&&(k.id=`${f}_extra`);const I=c?u.createElement("div",Object.assign({},k,{className:`${m}-extra`,ref:w}),c):null,M=O||I?u.createElement("div",{className:`${m}-additional`,style:p?{minHeight:p+C}:{}},O,I):null,B=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:E,errorList:O,extra:I}):u.createElement(u.Fragment,null,E,M);return u.createElement(br.Provider,{value:x},u.createElement(Fi,Object.assign({},b,{className:y}),B),u.createElement(dj,{prefixCls:t}))};var gj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},hj=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:gj}))},vj=u.forwardRef(hj),bj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yj=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:l,tooltip:s,vertical:c})=>{var d;const[f]=ao("Form"),{labelAlign:p,labelCol:v,labelWrap:h,colon:m}=u.useContext(br);if(!t)return null;const g=r||v||{},b=o||p,y=`${e}-item-label`,x=ae(y,b==="left"&&`${y}-left`,g.className,{[`${y}-wrap`]:!!h});let w=t;const C=a===!0||m!==!1&&a!==!1;C&&!c&&typeof t=="string"&&t.trim()&&(w=t.replace(/[:|:]\s*$/,""));const S=UN(s);if(S){const{icon:M=u.createElement(vj,null)}=S,B=bj(S,["icon"]),D=u.createElement(dl,Object.assign({},B),u.cloneElement(M,{className:`${e}-item-tooltip`,title:"",onClick:F=>{F.preventDefault()},tabIndex:null}));w=u.createElement(u.Fragment,null,w,D)}const E=l==="optional",$=typeof l=="function",O=l===!1;$?w=l(w,{required:!!i}):E&&!i&&(w=u.createElement(u.Fragment,null,w,u.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Rr.Form)===null||d===void 0?void 0:d.optional))));let k;O?k="hidden":(E||$)&&(k="optional");const I=ae({[`${e}-item-required`]:i,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!C});return u.createElement(Fi,Object.assign({},g,{className:x}),u.createElement("label",{htmlFor:n,className:I,title:typeof t=="string"?t:""},w))},xj={success:Hg,warning:zg,error:Qi,validating:Pa};function c0({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:l,name:s}){const c=`${a}-item`,{feedbackIcons:d}=u.useContext(br),f=Pv(t,n,i,null,!!r,o),{isFormItemInput:p,status:v,hasFeedback:h,feedbackIcon:m,name:g}=u.useContext(bn),b=u.useMemo(()=>{var y;let x;if(r){const C=r!==!0&&r.icons||d,S=f&&((y=C==null?void 0:C({status:f,errors:t,warnings:n}))===null||y===void 0?void 0:y[f]),E=f?xj[f]:null;x=S!==!1&&E?u.createElement("span",{className:ae(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},S||u.createElement(E,null)):null}const w={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:x,isFormItemInput:!0,name:s};return l&&(w.status=(f??v)||"",w.isFormItemInput=p,w.hasFeedback=!!(r??h),w.feedbackIcon=r!==void 0?w.feedbackIcon:m,w.name=s??g),w},[f,r,l,p,v]);return u.createElement(bn.Provider,{value:b},e)}var wj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Cj(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:l,validateStatus:s,meta:c,hasFeedback:d,hidden:f,children:p,fieldId:v,required:h,isRequired:m,onSubItemMetaChange:g,layout:b,name:y}=e,x=wj(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),w=`${t}-item`,{requiredMark:C,layout:S}=u.useContext(br),E=b||S,$=E==="vertical",O=u.useRef(null),k=Di(i),I=Di(l),M=a!=null,B=!!(M||i.length||l.length),D=!!O.current&&el(O.current),[F,R]=u.useState(null);wt(()=>{if(B&&O.current){const W=getComputedStyle(O.current);R(Number.parseInt(W.marginBottom,10))}},[B,D]);const H=W=>{W||R(null)},j=((W=!1)=>{const L=W?k:c.errors,N=W?I:c.warnings;return Pv(L,N,c,"",!!d,s)})(),_=ae(w,n,r,{[`${w}-with-help`]:M||k.length||I.length,[`${w}-has-feedback`]:j&&d,[`${w}-has-success`]:j==="success",[`${w}-has-warning`]:j==="warning",[`${w}-has-error`]:j==="error",[`${w}-is-validating`]:j==="validating",[`${w}-hidden`]:f,[`${w}-${E}`]:E});return u.createElement("div",{className:_,style:o,ref:O},u.createElement(Yv,Object.assign({className:`${w}-row`},gr(x,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),u.createElement(yj,Object.assign({htmlFor:v},e,{requiredMark:C,required:h??m,prefixCls:t,vertical:$})),u.createElement(mj,Object.assign({},e,c,{errors:k,warnings:I,prefixCls:t,status:j,help:a,marginBottom:F,onErrorVisibleChanged:H}),u.createElement(mh.Provider,{value:g},u.createElement(c0,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:d,validateStatus:j,name:y},p)))),!!F&&u.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-F}}))}const Sj="__SPLIT__";function Ej(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const $j=u.memo(({children:e})=>e,(e,t)=>Ej(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Lp(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function kj(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:s,required:c,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:v,hidden:h,help:m,layout:g}=e,{getPrefixCls:b}=u.useContext(xt),{name:y}=u.useContext(br),x=lj(s),w=typeof x=="function",C=u.useContext(mh),{validateTrigger:S}=u.useContext(no),E=v!==void 0?v:S,$=t!=null,O=b("form",a),k=Hn(O),[I,M,B]=Uu(O,k);Xi();const D=u.useContext(Sa),F=u.useRef(null),[R,H]=sj({}),[j,_]=Fo(()=>Lp()),W=V=>{const q=D==null?void 0:D.getKey(V.name);if(_(V.destroy?Lp():V,!0),n&&m!==!1&&C){let Z=V.name;if(V.destroy)Z=F.current||Z;else if(q!==void 0){const[G,J]=q;Z=[G].concat(Ce(J)),F.current=Z}C(V,Z)}},L=(V,q)=>{H(Z=>{const G=Object.assign({},Z),J=[].concat(Ce(V.name.slice(0,-1)),Ce(q)).join(Sj);return V.destroy?delete G[J]:G[J]=V,G})},[N,P]=u.useMemo(()=>{const V=Ce(j.errors),q=Ce(j.warnings);return Object.values(R).forEach(Z=>{V.push.apply(V,Ce(Z.errors||[])),q.push.apply(q,Ce(Z.warnings||[]))}),[V,q]},[R,j.errors,j.warnings]),A=cj();function T(V,q,Z){return n&&!h?u.createElement(c0,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:j,errors:N,warnings:P,noStyle:!0,name:t},V):u.createElement(Cj,Object.assign({key:"row"},e,{className:ae(r,B,k,M),prefixCls:O,fieldId:q,isRequired:Z,errors:N,warnings:P,meta:j,onSubItemMetaChange:L,layout:g,name:t}),V)}if(!$&&!w&&!o)return I(T(x));let z={};return typeof d=="string"?z.label=d:t&&(z.label=String(t)),f&&(z=Object.assign(Object.assign({},z),f)),I(u.createElement(wu,Object.assign({},e,{messageVariables:z,trigger:p,validateTrigger:E,onMetaChange:W}),(V,q,Z)=>{const G=fa(t).length&&q?q.name:[],J=jv(G,y),K=c!==void 0?c:!!(l!=null&&l.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const ee=te(Z);return(ee==null?void 0:ee.required)&&!(ee!=null&&ee.warningOnly)}return!1})),X=Object.assign({},V);let ne=null;if(Array.isArray(x)&&$)ne=x;else if(!(w&&(!(i||o)||$))){if(!(o&&!w&&!$))if(u.isValidElement(x)){const te=Object.assign(Object.assign({},x.props),X);if(te.id||(te.id=J),m||N.length>0||P.length>0||e.extra){const ie=[];(m||N.length>0)&&ie.push(`${J}_help`),e.extra&&ie.push(`${J}_extra`),te["aria-describedby"]=ie.join(" ")}N.length>0&&(te["aria-invalid"]="true"),K&&(te["aria-required"]="true"),Do(x)&&(te.ref=A(G,x)),new Set([].concat(Ce(fa(p)),Ce(fa(E)))).forEach(ie=>{te[ie]=(...se)=>{var fe,ve,me,Ee,le;(me=X[ie])===null||me===void 0||(fe=me).call.apply(fe,[X].concat(se)),(le=(Ee=x.props)[ie])===null||le===void 0||(ve=le).call.apply(ve,[Ee].concat(se))}});const ee=[te["aria-required"],te["aria-invalid"],te["aria-describedby"]];ne=u.createElement($j,{control:X,update:x,childProps:ee},Ar(x,te))}else w&&(i||o)&&!$?ne=x(Z):ne=x}return T(ne,J,K)}))}const u0=kj;u0.useStatus=s0;var Oj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Mj=e=>{var{prefixCls:t,children:n}=e,r=Oj(e,["prefixCls","children"]);const{getPrefixCls:o}=u.useContext(xt),a=o("form",t),i=u.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return u.createElement(uh,Object.assign({},r),(l,s,c)=>u.createElement(Su.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),s,{errors:c.errors,warnings:c.warnings})))};function Ij(){const{form:e}=u.useContext(br);return e}const on=ij;on.Item=u0;on.List=Mj;on.ErrorList=l0;on.useForm=Rv;on.useFormInstance=Ij;on.useWatch=ph;on.Provider=gh;on.create=()=>{};var Nj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},jj=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:Nj}))},Pj=u.forwardRef(jj);const Rj=e=>{const{getPrefixCls:t,direction:n}=Ut(xt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s,c]=Wv(i),d=ae(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},s,o),f=Ut(bn),p=xn(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(u.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(bn.Provider,{value:p},e.children)))},Aj=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Fj=ln(["Input","OTP"],e=>{const t=Rt(e,qo(e));return Aj(t)},Yo);var Tj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Dj=u.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:l}=e,s=Tj(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=u.useContext(xt),d=c("otp"),f=typeof l=="string"?l:r,p=u.useRef(null);u.useImperativeHandle(t,()=>p.current);const v=g=>{o(i,g.target.value)},h=()=>{dt(()=>{var g;const b=(g=p.current)===null||g===void 0?void 0:g.input;document.activeElement===b&&b&&b.select()})},m=g=>{const{key:b,ctrlKey:y,metaKey:x}=g;b==="ArrowLeft"?a(i-1):b==="ArrowRight"?a(i+1):b==="z"&&(y||x)?g.preventDefault():b==="Backspace"&&!r&&a(i-1),h()};return u.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&u.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),u.createElement(xl,Object.assign({"aria-label":`OTP Input ${i+1}`,type:l===!0?"password":"text"},s,{ref:p,value:r,onInput:v,onFocus:h,onKeyDown:m,onMouseDown:h,onMouseUp:h,className:ae(n,{[`${d}-mask-input`]:l})})))});var Bj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ri(e){return(e||"").split("")}const Hj=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?u.createElement("span",{className:`${n}-separator`},o):null},zj=u.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:l,formatter:s,separator:c,variant:d,disabled:f,status:p,autoFocus:v,mask:h,type:m,onInput:g,inputMode:b}=e,y=Bj(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:w}=u.useContext(xt),C=x("otp",n),S=rr(y,{aria:!0,data:!0,attr:!0}),[E,$,O]=Fj(C),k=Qn(A=>o??A),I=u.useContext(bn),M=so(I.status,p),B=u.useMemo(()=>Object.assign(Object.assign({},I),{status:M,hasFeedback:!1,feedbackIcon:null}),[I,M]),D=u.useRef(null),F=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var A;(A=F.current[0])===null||A===void 0||A.focus()},blur:()=>{var A;for(let T=0;T<r;T+=1)(A=F.current[T])===null||A===void 0||A.blur()},nativeElement:D.current}));const R=A=>s?s(A):A,[H,j]=u.useState(()=>ri(R(a||"")));u.useEffect(()=>{i!==void 0&&j(ri(i))},[i]);const _=bt(A=>{j(A),g&&g(A),l&&A.length===r&&A.every(T=>T)&&A.some((T,z)=>H[z]!==T)&&l(A.join(""))}),W=bt((A,T)=>{let z=Ce(H);for(let q=0;q<A;q+=1)z[q]||(z[q]="");T.length<=1?z[A]=T:z=z.slice(0,A).concat(ri(T)),z=z.slice(0,r);for(let q=z.length-1;q>=0&&!z[q];q-=1)z.pop();const V=R(z.map(q=>q||" ").join(""));return z=ri(V).map((q,Z)=>q===" "&&!z[Z]?z[Z]:q),z}),L=(A,T)=>{var z;const V=W(A,T),q=Math.min(A+T.length,r-1);q!==A&&V[A]!==void 0&&((z=F.current[q])===null||z===void 0||z.focus()),_(V)},N=A=>{var T;(T=F.current[A])===null||T===void 0||T.focus()},P={variant:d,disabled:f,status:M,mask:h,type:m,inputMode:b};return E(u.createElement("div",Object.assign({},S,{ref:D,className:ae(C,{[`${C}-sm`]:k==="small",[`${C}-lg`]:k==="large",[`${C}-rtl`]:w==="rtl"},O,$),role:"group"}),u.createElement(bn.Provider,{value:B},Array.from({length:r}).map((A,T)=>{const z=`otp-${T}`,V=H[T]||"";return u.createElement(u.Fragment,{key:z},u.createElement(Dj,Object.assign({ref:q=>{F.current[T]=q},index:T,size:k,htmlSize:1,className:`${C}-input`,onChange:L,value:V,onActiveChange:N,autoFocus:T===0&&v},P)),T<r-1&&u.createElement(Hj,{separator:c,index:T,prefixCls:C}))}))))});var _j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Lj=function(e,t){return u.createElement(mn,Ae({},e,{ref:t,icon:_j}))},Wj=u.forwardRef(Lj),Vj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qj=e=>e?u.createElement(Pj,null):u.createElement(Wj,null),Yj={click:"onClick",hover:"onMouseOver"},Xj=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=qj,suffix:i}=e,l=u.useContext(On),s=n??l,c=typeof o=="object"&&o.visible!==void 0,[d,f]=Nt(()=>c?o.visible:!1),p=Ye(null);u.useEffect(()=>{c&&f(o.visible)},[c,o]);const v=Qv(p),h=()=>{var I;if(s)return;d&&v();const M=!d;f(M),typeof o=="object"&&((I=o.onVisibleChange)===null||I===void 0||I.call(o,M))},m=I=>{const M=Yj[r]||"",B=a(d),D={[M]:h,className:`${I}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return u.cloneElement(u.isValidElement(B)?B:u.createElement("span",null,B),D)},{className:g,prefixCls:b,inputPrefixCls:y,size:x}=e,w=Vj(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=u.useContext(xt),S=C("input",y),E=C("input-password",b),$=o&&m(E),O=ae(E,g,{[`${E}-${x}`]:!!x}),k=Object.assign(Object.assign({},gr(w,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:O,prefixCls:S,suffix:u.createElement(u.Fragment,null,$,i)});return x&&(k.size=x),u.createElement(xl,Object.assign({ref:Gn(t,p)},k))});var Uj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gj=u.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:s,loading:c,disabled:d,onSearch:f,onChange:p,onCompositionStart:v,onCompositionEnd:h,variant:m,onPressEnter:g}=e,b=Uj(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:x}=u.useContext(xt),w=u.useRef(!1),C=y("input-search",n),S=y("input",r),{compactSize:E}=_r(C,x),$=Qn(P=>{var A;return(A=a??E)!==null&&A!==void 0?A:P}),O=u.useRef(null),k=P=>{P!=null&&P.target&&P.type==="click"&&f&&f(P.target.value,P,{source:"clear"}),p==null||p(P)},I=P=>{var A;document.activeElement===((A=O.current)===null||A===void 0?void 0:A.input)&&P.preventDefault()},M=P=>{var A,T;f&&f((T=(A=O.current)===null||A===void 0?void 0:A.input)===null||T===void 0?void 0:T.value,P,{source:"input"})},B=P=>{w.current||c||(g==null||g(P),M(P))},D=typeof l=="boolean"?u.createElement(Hh,null):null,F=`${C}-button`;let R;const H=l||{},j=H.type&&H.type.__ANT_BUTTON===!0;j||H.type==="button"?R=Ar(H,Object.assign({onMouseDown:I,onClick:P=>{var A,T;(T=(A=H==null?void 0:H.props)===null||A===void 0?void 0:A.onClick)===null||T===void 0||T.call(A,P),M(P)},key:"enterButton"},j?{className:F,size:$}:{})):R=u.createElement(sl,{className:F,color:l?"primary":"default",size:$,disabled:d,key:"enterButton",onMouseDown:I,onClick:M,loading:c,icon:D,variant:m==="borderless"||m==="filled"||m==="underlined"?"text":l?"solid":void 0},l),s&&(R=[R,Ar(s,{key:"addonAfter"})]);const _=ae(C,{[`${C}-rtl`]:x==="rtl",[`${C}-${$}`]:!!$,[`${C}-with-button`]:!!l},o),W=P=>{w.current=!0,v==null||v(P)},L=P=>{w.current=!1,h==null||h(P)},N=Object.assign(Object.assign({},b),{className:_,prefixCls:S,type:"search",size:$,variant:m,onPressEnter:B,onCompositionStart:W,onCompositionEnd:L,addonAfter:R,suffix:i,onChange:k,disabled:d});return u.createElement(xl,Object.assign({ref:Gn(O,t)},N))});var Kj=`
|
|
340
|
+
min-height:0 !important;
|
|
341
|
+
max-height:none !important;
|
|
342
|
+
height:0 !important;
|
|
343
|
+
visibility:hidden !important;
|
|
344
|
+
overflow:hidden !important;
|
|
345
|
+
position:absolute !important;
|
|
346
|
+
z-index:-1000 !important;
|
|
347
|
+
top:0 !important;
|
|
348
|
+
right:0 !important;
|
|
349
|
+
pointer-events: none !important;
|
|
350
|
+
`,Qj=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ls={},Dn;function Zj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ls[n])return ls[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Qj.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(ls[n]=s),s}function Jj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Dn||(Dn=document.createElement("textarea"),Dn.setAttribute("tab-index","-1"),Dn.setAttribute("aria-hidden","true"),Dn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Dn)),e.getAttribute("wrap")?Dn.setAttribute("wrap",e.getAttribute("wrap")):Dn.removeAttribute("wrap");var o=Zj(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Dn.setAttribute("style","".concat(s,";").concat(Kj)),Dn.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,p=Dn.scrollHeight;if(l==="border-box"?p+=i:l==="content-box"&&(p-=a),n!==null||r!==null){Dn.value=" ";var v=Dn.scrollHeight-a;n!==null&&(c=v*n,l==="border-box"&&(c=c+a+i),p=Math.max(c,p)),r!==null&&(d=v*r,l==="border-box"&&(d=d+a+i),f=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:f,resize:"none"};return c&&(h.minHeight=c),d&&(h.maxHeight=d),h}var eP=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ss=0,cs=1,us=2,tP=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=ft(n,eP),v=Qt(o,{value:a,postState:function(N){return N??""}}),h=Q(v,2),m=h[0],g=h[1],b=function(N){g(N.target.value),f==null||f(N)},y=u.useRef();u.useImperativeHandle(t,function(){return{textArea:y.current}});var x=u.useMemo(function(){return i&&Qe(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=Q(x,2),C=w[0],S=w[1],E=!!i,$=u.useState(us),O=Q($,2),k=O[0],I=O[1],M=u.useState(),B=Q(M,2),D=B[0],F=B[1],R=function(){I(ss)};wt(function(){E&&R()},[a,C,S,E]),wt(function(){if(k===ss)I(cs);else if(k===cs){var N=Jj(y.current,!1,C,S);I(us),F(N)}},[k]);var H=u.useRef(),j=function(){dt.cancel(H.current)},_=function(N){k===us&&(l==null||l(N),i&&(j(),H.current=dt(function(){R()})))};u.useEffect(function(){return j},[]);var W=E?D:null,L=U(U({},c),W);return(k===ss||k===cs)&&(L.overflowY="hidden",L.overflowX="hidden"),u.createElement(mr,{onResize:_,disabled:!(i||l)},u.createElement("textarea",Ae({},p,{ref:y,style:L,className:ae(r,s,Y({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:b})))}),nP=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],rP=pe.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,m=e.showCount,g=e.count,b=e.className,y=e.style,x=e.disabled,w=e.hidden,C=e.classNames,S=e.styles,E=e.onResize,$=e.onClear,O=e.onPressEnter,k=e.readOnly,I=e.autoSize,M=e.onKeyDown,B=ft(e,nP),D=Qt(r,{value:o,defaultValue:r}),F=Q(D,2),R=F[0],H=F[1],j=R==null?"":String(R),_=pe.useState(!1),W=Q(_,2),L=W[0],N=W[1],P=pe.useRef(!1),A=pe.useState(null),T=Q(A,2),z=T[0],V=T[1],q=Ye(null),Z=Ye(null),G=function(){var be;return(be=Z.current)===null||be===void 0?void 0:be.textArea},J=function(){G().focus()};To(t,function(){var be;return{resizableTextArea:Z.current,focus:J,blur:function(){G().blur()},nativeElement:((be=q.current)===null||be===void 0?void 0:be.nativeElement)||G()}}),Mt(function(){N(function(be){return!x&&be})},[x]);var K=pe.useState(null),X=Q(K,2),ne=X[0],te=X[1];pe.useEffect(function(){if(ne){var be;(be=G()).setSelectionRange.apply(be,Ce(ne))}},[ne]);var ee=Uv(g,m),ie=(n=ee.max)!==null&&n!==void 0?n:c,se=Number(ie)>0,fe=ee.strategy(j),ve=!!ie&&fe>ie,me=function(be,he){var we=he;!P.current&&ee.exceedFormatter&&ee.max&&ee.strategy(he)>ee.max&&(we=ee.exceedFormatter(he,{max:ee.max}),he!==we&&te([G().selectionStart||0,G().selectionEnd||0])),H(we),Ti(be.currentTarget,be,l,we)},Ee=function(be){P.current=!0,d==null||d(be)},le=function(be){P.current=!1,me(be,be.currentTarget.value),f==null||f(be)},de=function(be){me(be,be.target.value)},je=function(be){be.key==="Enter"&&O&&O(be),M==null||M(be)},oe=function(be){N(!0),a==null||a(be)},Me=function(be){N(!1),i==null||i(be)},ke=function(be){H(""),J(),Ti(G(),be,l)},Fe=p,Pe;ee.show&&(ee.showFormatter?Pe=ee.showFormatter({value:j,count:fe,maxLength:ie}):Pe="".concat(fe).concat(se?" / ".concat(ie):""),Fe=pe.createElement(pe.Fragment,null,Fe,pe.createElement("span",{className:ae("".concat(h,"-data-count"),C==null?void 0:C.count),style:S==null?void 0:S.count},Pe)));var Ie=function(be){var he;E==null||E(be),(he=G())!==null&&he!==void 0&&he.style.height&&V(!0)},ye=!I&&!m&&!s;return pe.createElement(Yu,{ref:q,value:j,allowClear:s,handleReset:ke,suffix:Fe,prefixCls:h,classNames:U(U({},C),{},{affixWrapper:ae(C==null?void 0:C.affixWrapper,Y(Y({},"".concat(h,"-show-count"),m),"".concat(h,"-textarea-allow-clear"),s))}),disabled:x,focused:L,className:ae(b,ve&&"".concat(h,"-out-of-range")),style:U(U({},y),z&&!ye?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pe=="string"?Pe:void 0}},hidden:w,readOnly:k,onClear:$},pe.createElement(tP,Ae({},B,{autoSize:I,maxLength:c,onKeyDown:je,onChange:de,onFocus:oe,onBlur:Me,onCompositionStart:Ee,onCompositionEnd:le,className:ae(C==null?void 0:C.textarea),style:U(U({},S==null?void 0:S.textarea),{},{resize:y==null?void 0:y.resize}),disabled:x,prefixCls:h,onResize:Ie,ref:Z,readOnly:k})))});const oP=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
351
|
+
&-allow-clear > ${t},
|
|
352
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
353
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},aP=ln(["Input","TextArea"],e=>{const t=Rt(e,qo(e));return oP(t)},Yo,{resetFont:!1});var iP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lP=or((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:l,allowClear:s,classNames:c,rootClassName:d,className:f,style:p,styles:v,variant:h,showCount:m,onMouseDown:g,onResize:b}=e,y=iP(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:w,allowClear:C,autoComplete:S,className:E,style:$,classNames:O,styles:k}=xr("textArea"),I=u.useContext(On),M=i??I,{status:B,hasFeedback:D,feedbackIcon:F}=u.useContext(bn),R=so(B,l),H=u.useRef(null);u.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=H.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:ie=>{var se,fe;qu((fe=(se=H.current)===null||se===void 0?void 0:se.resizableTextArea)===null||fe===void 0?void 0:fe.textArea,ie)},blur:()=>{var ie;return(ie=H.current)===null||ie===void 0?void 0:ie.blur()}}});const j=x("input",r),_=Hn(j),[W,L,N]=Lv(j,d),[P]=aP(j,_),{compactSize:A,compactItemClassnames:T}=_r(j,w),z=Qn(ee=>{var ie;return(ie=a??A)!==null&&ie!==void 0?ie:ee}),[V,q]=Lo("textArea",h,o),Z=Kv(s??C),[G,J]=u.useState(!1),[K,X]=u.useState(!1),ne=ee=>{J(!0),g==null||g(ee);const ie=()=>{J(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},te=ee=>{var ie,se;if(b==null||b(ee),G&&typeof getComputedStyle=="function"){const fe=(se=(ie=H.current)===null||ie===void 0?void 0:ie.nativeElement)===null||se===void 0?void 0:se.querySelector("textarea");fe&&getComputedStyle(fe).resize==="both"&&X(!0)}};return W(P(u.createElement(rP,Object.assign({autoComplete:S},y,{style:Object.assign(Object.assign({},$),p),styles:Object.assign(Object.assign({},k),v),disabled:M,allowClear:Z,className:ae(N,_,f,d,T,E,K&&`${j}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:ae({[`${j}-sm`]:z==="small",[`${j}-lg`]:z==="large"},L,c==null?void 0:c.textarea,O.textarea,G&&`${j}-mouse-active`),variant:ae({[`${j}-${V}`]:q},Tr(j,R)),affixWrapper:ae(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:w==="rtl",[`${j}-affix-wrapper-sm`]:z==="small",[`${j}-affix-wrapper-lg`]:z==="large",[`${j}-textarea-show-count`]:m||((n=e.count)===null||n===void 0?void 0:n.show)},L)}),prefixCls:j,suffix:D&&u.createElement("span",{className:`${j}-textarea-suffix`},F),showCount:m,ref:H,onResize:te,onMouseDown:ne}))))}),oo=xl;oo.Group=Rj;oo.Search=Gj;oo.TextArea=lP;oo.Password=Xj;oo.OTP=zj;let qn=null,Kr=e=>e(),ka=[],Oa={};function Wp(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Oa,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const sP=pe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=Ut(xt),a=Oa.prefixCls||o("message"),i=Ut(l$),[l,s]=Gg(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return pe.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(d=>{c[d]=(...f)=>(r(),l[d].apply(l,f))}),{instance:c,sync:r}}),s}),cP=pe.forwardRef((e,t)=>{const[n,r]=pe.useState(Wp),o=()=>{r(Wp)};pe.useEffect(o,[]);const a=sw(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),s=a.getTheme(),c=pe.createElement(sP,{ref:t,sync:o,messageConfig:n});return pe.createElement(zr,{prefixCls:i,iconPrefixCls:l,theme:s},a.holderRender?a.holderRender(c):c)}),wl=()=>{if(!qn){const e=document.createDocumentFragment(),t={fragment:e};qn=t,Kr(()=>{Zg()(pe.createElement(cP,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,wl())})}}),e)});return}qn.instance&&(ka.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Kr(()=>{const r=qn.instance.open(Object.assign(Object.assign({},Oa),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Kr(()=>{qn==null||qn.instance.destroy(e.key)});break;default:Kr(()=>{var r;const o=(r=qn.instance)[t].apply(r,Ce(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),ka=[])};function uP(e){Oa=Object.assign(Object.assign({},Oa),e),Kr(()=>{var t;(t=qn==null?void 0:qn.sync)===null||t===void 0||t.call(qn)})}function dP(e){const t=cu(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return ka.push(o),()=>{r?Kr(()=>{r()}):o.skipped=!0}});return wl(),t}function fP(e,t){const n=cu(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return ka.push(a),()=>{o?Kr(()=>{o()}):a.skipped=!0}});return wl(),n}const pP=e=>{ka.push({type:"destroy",key:e}),wl()},mP=["success","info","warning","error","loading"],gP={open:dP,destroy:pP,config:uP,useMessage:fC,_InternalPanelDoNotUseOrYouWillBeFired:oC},hi=gP;mP.forEach(e=>{hi[e]=(...t)=>fP(e,t)});var hP=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],d0=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,v=e.onChange,h=e.onKeyDown,m=ft(e,hP),g=Qt(!1,{value:i,defaultValue:l}),b=Q(g,2),y=b[0],x=b[1];function w($,O){var k=y;return s||(k=$,x(k),v==null||v(k,O)),k}function C($){$.which===Ke.LEFT?w(!1,$):$.which===Ke.RIGHT&&w(!0,$),h==null||h($)}function S($){var O=w(!y,$);p==null||p(O,$)}var E=ae(o,a,(n={},Y(n,"".concat(o,"-checked"),y),Y(n,"".concat(o,"-disabled"),s),n));return u.createElement("button",Ae({},m,{type:"button",role:"switch","aria-checked":y,disabled:s,className:E,ref:t,onKeyDown:C,onClick:S}),c,u.createElement("span",{className:"".concat(o,"-inner")},u.createElement("span",{className:"".concat(o,"-inner-checked")},d),u.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});d0.displayName="Switch";const vP=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,d=ue(s(l).add(s(r).mul(2)).equal()),f=ue(s(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:ue(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ue(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},bP=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},yP=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${ue(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},xP=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:l}=e,s=`${t}-inner`,c=ue(l(i).add(l(r).mul(2)).equal()),d=ue(l(a).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},wP=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ue(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),yg(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},CP=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,l=2,s=a-l*2,c=i-l*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:o,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new $t("#00230b").setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},SP=ln("Switch",e=>{const t=Rt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[wP(t),xP(t),yP(t),bP(t),vP(t)]},CP);var EP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $P=u.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:l,style:s,checked:c,value:d,defaultChecked:f,defaultValue:p,onChange:v}=e,h=EP(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,g]=Qt(!1,{value:c??d,defaultValue:f??p}),{getPrefixCls:b,direction:y,switch:x}=u.useContext(xt),w=u.useContext(On),C=(o??w)||a,S=b("switch",n),E=u.createElement("div",{className:`${S}-handle`},a&&u.createElement(Pa,{className:`${S}-loading-icon`})),[$,O,k]=SP(S),I=Qn(r),M=ae(x==null?void 0:x.className,{[`${S}-small`]:I==="small",[`${S}-loading`]:a,[`${S}-rtl`]:y==="rtl"},i,l,O,k),B=Object.assign(Object.assign({},x==null?void 0:x.style),s),D=(...F)=>{g(F[0]),v==null||v.apply(void 0,F)};return $(u.createElement(tl,{component:"Switch",disabled:C},u.createElement(d0,Object.assign({},h,{checked:m,onChange:D,prefixCls:S,className:M,style:B,disabled:C,ref:t,loadingIcon:E}))))}),f0=$P;f0.__ANT_SWITCH=!0;const kP=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),l=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Zt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Gu=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Rt(e,{tagFontSize:o,tagLineHeight:ue(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Ku=e=>({defaultBg:new $t(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),p0=ln("Tag",e=>{const t=Gu(e);return kP(t)},Ku);var OP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const MP=u.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:i,icon:l,onChange:s,onClick:c}=e,d=OP(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:p}=u.useContext(xt),v=x=>{s==null||s(!a),c==null||c(x)},h=f("tag",n),[m,g,b]=p0(h),y=ae(h,`${h}-checkable`,{[`${h}-checkable-checked`]:a},p==null?void 0:p.className,o,g,b);return m(u.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:y,onClick:v}),l,u.createElement("span",null,i)))}),IP=e=>Ki(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),NP=Gi(["Tag","preset"],e=>{const t=Gu(e);return IP(t)},Ku);function jP(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const oi=(e,t,n)=>{const r=jP(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},PP=Gi(["Tag","status"],e=>{const t=Gu(e);return[oi(t,"success","Success"),oi(t,"processing","Info"),oi(t,"error","Error"),oi(t,"warning","Warning")]},Ku);var RP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AP=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:l,color:s,onClose:c,bordered:d=!0,visible:f}=e,p=RP(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:h,tag:m}=u.useContext(xt),[g,b]=u.useState(!0),y=gr(p,["closeIcon","closable"]);u.useEffect(()=>{f!==void 0&&b(f)},[f]);const x=ul(s),w=W2(s),C=x||w,S=Object.assign(Object.assign({backgroundColor:s&&!C?s:void 0},m==null?void 0:m.style),a),E=v("tag",n),[$,O,k]=p0(E),I=ae(E,m==null?void 0:m.className,{[`${E}-${s}`]:C,[`${E}-has-color`]:s&&!C,[`${E}-hidden`]:!g,[`${E}-rtl`]:h==="rtl",[`${E}-borderless`]:!d},r,o,O,k),M=j=>{j.stopPropagation(),c==null||c(j),!j.defaultPrevented&&b(!1)},[,B]=QE(Bf(e),Bf(m),{closable:!1,closeIconRender:j=>{const _=u.createElement("span",{className:`${E}-close-icon`,onClick:M},j);return Lg(j,_,W=>({onClick:L=>{var N;(N=W==null?void 0:W.onClick)===null||N===void 0||N.call(W,L),M(L)},className:ae(W==null?void 0:W.className,`${E}-close-icon`)}))}}),D=typeof p.onClick=="function"||i&&i.type==="a",F=l||null,R=F?u.createElement(u.Fragment,null,F,i&&u.createElement("span",null,i)):i,H=u.createElement("span",Object.assign({},y,{ref:t,className:I,style:S}),R,B,x&&u.createElement(NP,{key:"preset",prefixCls:E}),w&&u.createElement(PP,{key:"status",prefixCls:E}));return $(D?u.createElement(tl,{component:"Tag"},H):H)}),m0=AP;m0.CheckableTag=MP;function FP(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?re.jsx("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?re.jsx("img",{src:n.image,alt:"image",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?re.jsx("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?re.jsx("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/excel",size:18});case"pdf":return n.pdf?re.jsx("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/pdf",size:18});case"txt":return n.txt?re.jsx("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/txt",size:18});case"md":return n.md?re.jsx("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/document",size:18});case"json":return n.json?re.jsx("img",{src:n.json,alt:"json",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/json",size:18});case"html":case"htm":return n.html?re.jsx("img",{src:n.html,alt:"html",style:{width:20,height:20}}):re.jsx(sr,{type:"rag/url",size:18});case"xml":default:return re.jsx(sr,{type:"rag/file",size:18})}}const TP=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",DP=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:l={},cardId:s,showRemove:c=!0,disabledRemove:d=!1,onRemoveWithAnim:f,extra:p,style:v})=>re.jsxs("div",{id:s,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:v,children:[re.jsx("div",{className:"pt-1",children:n}),re.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[re.jsxs("div",{className:"flex items-center justify-between gap-1",children:[re.jsx("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),re.jsx("span",{className:"ml-1 text-[11px] text-gray-400",children:TP(t)})]}),re.jsxs("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,re.jsx("span",{children:r})]})]}),p,c&&!d&&re.jsx("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{f&&s?f(s):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:l.error||"#FF0000"},children:re.jsx(lm,{className:"w-3.5 h-3.5"})})]});function BP({uploadedFiles:e,onRemoveFile:t,eventsEmit:n,styles:r}){return Mt(()=>{e.forEach((o,a)=>{o&&console.log("FilesDisplay currentStatus",o.status)})},[e]),Mt(()=>{e.length>0&&e.every(o=>o.status==="finished")&&_t({targets:".file-display-card",opacity:0,scale:.8,delay:_t.stagger(100),duration:400,easing:"easeOutExpo",complete:()=>{n==null||n("files:finished_animation_complete")}})},[e,n]),re.jsx("div",{className:"flex overflow-x-auto gap-2 pb-2 px-1",children:e.filter(Boolean).map((o,a)=>{var p,v;if(!o||!o.file)return null;const i=o.name||o.file.name,l=(p=o.file)==null?void 0:p.size;let{status:s}=o;s==="finished"&&(s="done");const c={pending:{text:"\u5F85\u53D1\u9001",icon:null,color:"text-gray-400"},uploading:{text:"\u4E0A\u4F20\u4E2D",icon:re.jsx(id,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},parsing:{text:"\u89E3\u6790\u4E2D",icon:re.jsx(id,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},done:{text:"\u5DF2\u5C31\u7EEA",icon:re.jsx(eb,{className:"w-3 h-3"}),color:"text-green-500"},error:{text:"\u5931\u8D25",icon:re.jsx(J0,{className:"w-3 h-3"}),color:"text-red-500"}}[s||"pending"]||{text:"\u672A\u77E5",icon:null,color:"text-gray-400"},d=i.split(".").pop()||"",f=FP(d,r);return re.jsx(DP,{cardId:`file-card-${a}`,fileName:i,fileSize:l,icon:f,statusText:c.text||"\u672A\u77E5",statusColor:c.color||"text-gray-400",statusIcon:c.icon||null,showRemove:s!=="parsing"&&s!=="uploading",onRemoveWithAnim:h=>{_t({targets:`#${h}`,opacity:0,scale:.8,duration:300,easing:"easeOutExpo",complete:()=>{t==null||t(a)}})},themeColors:(v=r==null?void 0:r.theme)==null?void 0:v.colors},i+a)})})}function HP({checked:e,onChange:t,icon:n,children:r,styles:o,disabled:a}){var v,h,m,g,b,y,x,w,C,S,E,$,O,k;const i=((h=(v=o==null?void 0:o.theme)==null?void 0:v.colors)==null?void 0:h.primary)||"#00C26A",l=((g=(m=o==null?void 0:o.theme)==null?void 0:m.colors)==null?void 0:g.text)||"#343a40",s=((y=(b=o==null?void 0:o.theme)==null?void 0:b.colors)==null?void 0:y.background)||"#fff",c=((w=(x=o==null?void 0:o.theme)==null?void 0:x.colors)==null?void 0:w.border)||"#dee2e6",d=((S=(C=o==null?void 0:o.theme)==null?void 0:C.colors)==null?void 0:S.disabledBackground)||"#F5F5F5",f=(($=(E=o==null?void 0:o.theme)==null?void 0:E.colors)==null?void 0:$.disabledText)||"#808080",p=((k=(O=o==null?void 0:o.theme)==null?void 0:O.colors)==null?void 0:k.disabled)||"#808080";return re.jsxs("button",{type:"button",onClick:()=>t(!e),disabled:a,className:"flex items-center gap-1 bg-white px-3 py-1 rounded-full border transition-all duration-200 text-xs select-none",style:{borderWidth:1.5,outline:"none",cursor:a?"not-allowed":"pointer",minWidth:0,background:a?d:e?i:"transparent",color:a?f:e?s:l,borderColor:a?p:e?i:c},children:[n,re.jsx("span",{children:r})]})}function zP({value:e,onChange:t,options:n,styles:r,disabled:o,placeholder:a="\u8BF7\u9009\u62E9"}){var f,p,v,h,m,g,b,y,x,w;const i=((p=(f=r==null?void 0:r.theme)==null?void 0:f.colors)==null?void 0:p.text)||"#343a40",l=((h=(v=r==null?void 0:r.theme)==null?void 0:v.colors)==null?void 0:h.border)||"#dee2e6",s=((g=(m=r==null?void 0:r.theme)==null?void 0:m.colors)==null?void 0:g.disabledBackground)||"#F5F5F5",c=((y=(b=r==null?void 0:r.theme)==null?void 0:b.colors)==null?void 0:y.disabledText)||"#808080",d=((w=(x=r==null?void 0:r.theme)==null?void 0:x.colors)==null?void 0:w.disabled)||"#808080";return re.jsx("div",{style:{display:"inline-block"},children:re.jsx(co,{value:e,onChange:t,disabled:o,placeholder:a,size:"small",style:{minWidth:120,fontSize:"12px !important",height:"28px",borderRadius:"14px",border:`1.5px solid ${o?d:l}`,backgroundColor:o?s:"white",color:o?c:i,fontWeight:"500",transition:"all 0.2s ease"},className:"yuanbao-select",styles:{popup:{root:{fontSize:"12px",borderRadius:"8px"}}},options:n})})}function _P({value:e,eventsEmit:t,styles:n,status:r,onUpload:o,onVoice:a,uploadedFiles:i,onRemoveFile:l,senderConfig:s={},recommandQuestions:c=[],fileUploadStatus:d=[]}={}){var T;const{badgeCounts:f}=Db(),p=Ye(null),v=s.switchs||[],[h,m]=Nt(()=>{const z={};return v.forEach(V=>{var q,Z;V.type==="switch"?z[V.name]=V.defaultValue??!1:V.type==="select"&&(z[V.name]=V.defaultValue??((Z=(q=V.options)==null?void 0:q[0])==null?void 0:Z.value)??"")}),z});Mt(()=>{t&&t("sender:configChange",{all:h})},[h]);const[g,b]=Nt(e||"");Mt(()=>{b(e||"")},[e]);const y=()=>{const z=p.current;if(z){z.style.height="auto";const V=144,q=z.scrollHeight;q<=V?(z.style.height=`${q}px`,z.style.overflowY="hidden"):(z.style.height=`${V}px`,z.style.overflowY="auto")}},x=z=>{b(z.target.value),t&&t("sender:change",z.target.value),y()},w=z=>{z.key==="Enter"&&!z.shiftKey&&(console.log("enter"),z.preventDefault(),t&&t("sender:send"))};Mt(()=>{y()},[g]),Mt(()=>{let z;try{z=typeof c=="string"?JSON.parse(c):c}catch{z=[]}},[c]);const C=xn(()=>{if(c==null||c==="")return[];if(typeof c=="string")try{const z=JSON.parse(c);return Array.isArray(z)?z:[]}catch{return[]}return Array.isArray(c)?c:[]},[c]),[S,E]=Nt(!1);Mt(()=>{if(!C||C.length===0){E(!1);return}E(!1),setTimeout(()=>{E(!0)},0)},[C]),Mt(()=>{if(!S)return;const z=document.querySelectorAll(".recommand-question-btn");z.forEach(V=>{const q=V;q.style.visibility="visible",q.style.opacity="0",q.style.transform="translateY(20px)"}),_t.remove(z),_t({targets:z,opacity:[0,1],translateY:[20,0],delay:_t.stagger(120),duration:400,easing:"easeOutCubic",complete:()=>{z.forEach(V=>{const q=V;q.removeAttribute("style"),q.style.color=L})}})},[S,C]);const $=xn(()=>d&&d.length>0?d:i||[],[d,i]),O=xn(()=>g&&g.trim().length>0,[g]),k=xn(()=>{const z=g&&g.trim().length>0,V=$&&$.length>0;return z||V},[g,$]),I=xn(()=>{const z=k?[{icon:re.jsx(lm,{className:"w-[18px] h-[18px] text-gray-500 group-hover:text-gray-700"}),name:"clear",tip:"\u6E05\u7A7A\u8F93\u5165\u548C\u6587\u4EF6"}]:[],V=(s.actions||[]).map(q=>({...q,badgeCount:f[q.name]??q.badgeCount??0}));return[...z,...V]},[k,s.actions,f]),M=(T=n==null?void 0:n.theme)==null?void 0:T.colors,B=(M==null?void 0:M.primary)||"#007bff",D=(M==null?void 0:M.text)||"#343a40",F=(M==null?void 0:M.background)||"#ffffff",R=(M==null?void 0:M.border)||"#dee2e6",H=(M==null?void 0:M.background)||"#ffffff",j=(M==null?void 0:M.disabled)||"#808080",_=(M==null?void 0:M.disabledBackground)||"#F5F5F5",W=(M==null?void 0:M.error)||"#FF0000",L=(M==null?void 0:M.disabledText)||"#808080",N="rgba(255, 255, 255, 0.9)",P=(M==null?void 0:M.text)||"#000",A="dynamic-placeholder-style";return Mt(()=>{const z=document.getElementById(A)||document.createElement("style");z.id=A,z.innerHTML=`
|
|
354
|
+
.dynamic-placeholder::placeholder {
|
|
355
|
+
color: ${j};
|
|
356
|
+
opacity: 1; /* Firefox */
|
|
357
|
+
}
|
|
358
|
+
.dynamic-placeholder:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
359
|
+
color: ${j};
|
|
360
|
+
}
|
|
361
|
+
.dynamic-placeholder::-ms-input-placeholder { /* Microsoft Edge */
|
|
362
|
+
color: ${j};
|
|
363
|
+
}
|
|
364
|
+
.yuanbao-select .ant-select-selection-item {
|
|
365
|
+
font-size: 12px !important;
|
|
366
|
+
}
|
|
367
|
+
.yuanbao-select .ant-select-selection-placeholder {
|
|
368
|
+
font-size: 12px !important;
|
|
369
|
+
}
|
|
370
|
+
`,document.head.appendChild(z)},[j]),re.jsxs("div",{className:" absolute left-0 bottom-0 w-[90%] z-10 mx-[6.5%] px-5 bg-transparent!",children:[re.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),re.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),re.jsxs("div",{className:"relative max-w-[1000px] mx-auto p-3",children:[re.jsx("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:S&&C.map((z,V)=>re.jsx("button",{onClick:()=>{t&&t("sender:send_recommandQuestion",{content:z,clearFn:()=>{t&&t("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:N,color:L,border:"none"},onMouseEnter:q=>{q.currentTarget.style.color=P},onMouseOut:q=>{q.currentTarget.style.color=L},children:z},V))}),$.length>0&&re.jsx(BP,{styles:n,uploadedFiles:$,onRemoveFile:l||(()=>{}),eventsEmit:t}),re.jsxs("div",{className:"flex items-end w-full rounded-2xl shadow-sm",style:{backgroundColor:H,border:`1px solid ${R}`,padding:"0 12px 8px 12px"},children:[re.jsx("textarea",{ref:p,value:g,onChange:x,onKeyDown:w,rows:1,placeholder:"\u6211\u53EF\u4EE5\u9605\u8BFB\u77E5\u8BC6\u5E93\u7684\u8D44\u6599\u5E76\u4F7F\u7528\u81EA\u7136\u8BED\u8A00\u56DE\u7B54\u4F60\u7684\u95EE\u9898...",className:`flex-1 py-2 resize-none outline-none border-none min-h-[85px]
|
|
371
|
+
max-h-[180px] text-[14px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:D}}),re.jsxs("div",{className:"flex items-center ml-2 space-x-1.5",children:[I.filter(z=>z.enabled!==!1).map((z,V)=>re.jsx(Qh,{count:z.badgeCount,size:"small",style:{backgroundColor:B,color:F,fontWeight:500,fontSize:9,minWidth:16,height:16,lineHeight:"19px",borderRadius:9,marginLeft:8,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 5px"},offset:[-2,10],showZero:!0,children:re.jsx("button",{type:"button",className:"relative w-8 h-8 flex items-center justify-center rounded-lg cursor-pointer group hover:bg-blue-50 active:bg-blue-100 transition-colors",style:{border:"none",background:"transparent",color:D,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},title:z.tip||z.name,onClick:()=>{z.name==="clear"?t&&t("sender:clear"):t&&t(`sender:action_${z.name}`)},children:z.icon})},z.name||V)),re.jsx("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:R}}),re.jsx("div",{className:`
|
|
372
|
+
relative w-[85px] h-8 flex items-center justify-center rounded-lg group overflow-hidden shadow-sm
|
|
373
|
+
transition-all duration-200
|
|
374
|
+
${r==="processing"?"animate-pulse":""}
|
|
375
|
+
`,style:{cursor:r==="processing"||O?"pointer":"not-allowed",background:r==="processing"?`linear-gradient(to bottom right, ${W}, ${(M==null?void 0:M.error)||"#d9534f"})`:O?`linear-gradient(to bottom right, ${B}, ${(M==null?void 0:M.primary)||"#0275d8"})`:_},onClick:()=>{r==="processing"?t&&t("sender:stop",{}):O&&t&&t("sender:send")},title:r==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:re.jsx("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!O&&r!=="processing"?L:F},children:r==="processing"?re.jsxs(re.Fragment,{children:[re.jsx(nb,{className:"w-[18px] h-[18px]"}),re.jsx("span",{className:"ml-1 text-[13px]",children:"\u505C\u6B62"})]}):re.jsxs(re.Fragment,{children:[re.jsx(ab,{size:12}),re.jsx("span",{className:"ml-1 text-[13px]",children:"\u53D1\u9001"})]})})})]})]}),re.jsxs("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:[re.jsx("span",{className:"text-[10px]",style:{color:j}}),re.jsx("div",{className:"flex items-center gap-4",children:v.filter(z=>z.enabled!==!1).map(z=>z.type==="select"?re.jsxs("div",{className:"flex items-center gap-2",children:[re.jsxs("span",{className:"text-xs",style:{color:j},children:[z.label,":"]}),re.jsx(zP,{value:h[z.name],onChange:V=>{m(q=>({...q,[z.name]:V}))},options:z.options||[],styles:n,disabled:!z.enabled,placeholder:z.label})]},z.name):re.jsx(HP,{styles:n,checked:h[z.name],disabled:!z.enabled,onChange:V=>{m(q=>({...q,[z.name]:V}))},icon:z.icon,children:z.label},z.name))})]})]})]})}function LP({content:e,time:t,sessionContext:n,eventsEmit:r}){const o=()=>{r==null||r("action_retry",{content:e,sessionContext:n})};return re.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[re.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-blue-400 to-blue-500 flex items-center justify-center mr-3 shadow-sm",children:re.jsx("span",{className:"text-white text-xs",children:"\u6211"})}),re.jsx("div",{className:"flex-1",children:re.jsxs("div",{className:"flex-col",children:[re.jsx("div",{className:"text-xs text-gray-400 mb-3",children:En(t).format("YYYY-MM-DD HH:mm:ss")}),re.jsx("div",{className:"bg-gradient-to-r from-blue-50 to-blue-100 rounded-lg p-4 inline-block max-w-[80%] shadow-sm relative prose prose-sm",children:re.jsx("span",{className:"text-gray-700 break-words",children:e})}),re.jsx("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:re.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:o,title:"\u91CD\u53D1",children:[re.jsx(ob,{className:"w-4 h-4"}),re.jsx("span",{className:"hidden sm:inline",children:"\u91CD\u53D1"})]})})]})})]})}function WP({content:e,time:t,sessionContext:n,eventsEmit:r,feedbackResult:o}){const a=s=>{r==null||r("action_copy:click",{content:e,event:s})},i=()=>{r==null||r("action_thumbsup",{result:o,sessionContext:n})},l=()=>{r==null||r("action_thumbsdown",{content:e,sessionContext:n})};return re.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[re.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-purple-400 to-purple-500 flex items-center justify-center mr-3 shadow-sm",children:re.jsx("span",{className:"text-white w-8 h-8 flex items-center justify-center text-xs",children:"AI"})}),re.jsx("div",{className:"flex-1 w-[calc(100%-40px)]",children:re.jsxs("div",{className:"flex flex-col w-full relative",children:[re.jsx("div",{className:"text-xs text-gray-400 mb-3",children:En(t).format("YYYY-MM-DD HH:mm:ss")}),re.jsx("div",{className:"bg-white rounded-lg shadow-md w-full overflow-hidden border border-gray-100 p-4 relative prose prose-sm",children:re.jsx("span",{className:"text-gray-800 w-full leading-relaxed break-words",children:e})}),re.jsxs("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:[re.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:a,title:"\u590D\u5236",children:[re.jsx(rb,{className:"w-4 h-4"}),re.jsx("span",{className:"hidden sm:inline",children:"\u590D\u5236"})]}),re.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===1?"text-blue-700":""}`,onClick:i,title:"\u70B9\u8D5E",children:[re.jsx(lb,{className:"w-4 h-4"}),re.jsx("span",{className:"hidden sm:inline",children:"\u8D5E"})]}),re.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===0?"text-blue-700":""}`,onClick:l,title:"\u70B9\u8E29",children:[re.jsx(ib,{className:"w-4 h-4"}),re.jsx("span",{className:"hidden sm:inline",children:"\u8E29"})]})]})]})})]})}function VP({messages:e=[],renderAiChatBox:t,renderUserChatBox:n,sessionContext:r,status:o,eventsEmit:a,scrollOld:i}){const l=Ye(null);return re.jsxs("div",{style:{direction:i?"ltr":"rtl",transform:i?"":"rotate(180deg)"},className:" max-w-[1000px] min-w-[650px] mx-auto",children:[e.map((s,c)=>re.jsx("div",{className:"mb-6",children:s.istype==="user"?n?re.jsx("div",{style:{direction:"ltr"},children:n(s,c)}):re.jsx("div",{style:{direction:"ltr"},children:re.jsx(LP,{...s,sessionContext:r,eventsEmit:a})}):t?re.jsx("div",{style:{direction:"ltr"},children:t(s,c)}):re.jsx("div",{style:{direction:"ltr"},children:re.jsx(WP,{...s,sessionContext:r,eventsEmit:a})})},s.istype==="user"?s.queryId:"relatedTo-"+s.queryId)),re.jsx("div",{ref:l})]})}var Qr=256,g0=[],Vp=256,ai;for(;Qr--;)g0[Qr]=(Qr+256).toString(16).substring(1);function qP(e){var t=0,n=e;if(!ai||Qr+n>Vp*2)for(ai="",Qr=0;t<Vp;t++)ai+=g0[Math.random()*256|0];return ai.substring(Qr,Qr+++n)}var Pc={exports:{}};/*!
|
|
376
|
+
* clipboard.js v2.0.11
|
|
377
|
+
* https://clipboardjs.com/
|
|
378
|
+
*
|
|
379
|
+
* Licensed MIT © Zeno Rocha
|
|
380
|
+
*/var YP=Pc.exports,qp;function XP(){return qp||(qp=1,(function(e,t){(function(n,r){e.exports=r()})(YP,function(){return(function(){var n={686:(function(a,i,l){l.d(i,{default:function(){return L}});var s=l(279),c=l.n(s),d=l(370),f=l.n(d),p=l(817),v=l.n(p);function h(N){try{return document.execCommand(N)}catch{return!1}}var m=function(N){var P=v()(N);return h("cut"),P},g=m;function b(N){var P=document.documentElement.getAttribute("dir")==="rtl",A=document.createElement("textarea");A.style.fontSize="12pt",A.style.border="0",A.style.padding="0",A.style.margin="0",A.style.position="absolute",A.style[P?"right":"left"]="-9999px";var T=window.pageYOffset||document.documentElement.scrollTop;return A.style.top="".concat(T,"px"),A.setAttribute("readonly",""),A.value=N,A}var y=function(N,P){var A=b(N);P.container.appendChild(A);var T=v()(A);return h("copy"),A.remove(),T},x=function(N){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},A="";return typeof N=="string"?A=y(N,P):N instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(N==null?void 0:N.type)?A=y(N.value,P):(A=v()(N),h("copy")),A},w=x;function C(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(P){return typeof P}:C=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},C(N)}var S=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=N.action,A=P===void 0?"copy":P,T=N.container,z=N.target,V=N.text;if(A!=="copy"&&A!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(z!==void 0)if(z&&C(z)==="object"&&z.nodeType===1){if(A==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(A==="cut"&&(z.hasAttribute("readonly")||z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(V)return w(V,{container:T});if(z)return A==="cut"?g(z):w(z,{container:T})},E=S;function $(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(P){return typeof P}:$=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},$(N)}function O(N,P){if(!(N instanceof P))throw new TypeError("Cannot call a class as a function")}function k(N,P){for(var A=0;A<P.length;A++){var T=P[A];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(N,T.key,T)}}function I(N,P,A){return P&&k(N.prototype,P),A&&k(N,A),N}function M(N,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(P&&P.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),P&&B(N,P)}function B(N,P){return B=Object.setPrototypeOf||function(A,T){return A.__proto__=T,A},B(N,P)}function D(N){var P=H();return function(){var A=j(N),T;if(P){var z=j(this).constructor;T=Reflect.construct(A,arguments,z)}else T=A.apply(this,arguments);return F(this,T)}}function F(N,P){return P&&($(P)==="object"||typeof P=="function")?P:R(N)}function R(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function j(N){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},j(N)}function _(N,P){var A="data-clipboard-".concat(N);if(P.hasAttribute(A))return P.getAttribute(A)}var W=(function(N){M(A,N);var P=D(A);function A(T,z){var V;return O(this,A),V=P.call(this),V.resolveOptions(z),V.listenClick(T),V}return I(A,[{key:"resolveOptions",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof T.action=="function"?T.action:this.defaultAction,this.target=typeof T.target=="function"?T.target:this.defaultTarget,this.text=typeof T.text=="function"?T.text:this.defaultText,this.container=$(T.container)==="object"?T.container:document.body}},{key:"listenClick",value:function(T){var z=this;this.listener=f()(T,"click",function(V){return z.onClick(V)})}},{key:"onClick",value:function(T){var z=T.delegateTarget||T.currentTarget,V=this.action(z)||"copy",q=E({action:V,container:this.container,target:this.target(z),text:this.text(z)});this.emit(q?"success":"error",{action:V,text:q,trigger:z,clearSelection:function(){z&&z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(T){return _("action",T)}},{key:"defaultTarget",value:function(T){var z=_("target",T);if(z)return document.querySelector(z)}},{key:"defaultText",value:function(T){return _("text",T)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(T){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(T,z)}},{key:"cut",value:function(T){return g(T)}},{key:"isSupported",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],z=typeof T=="string"?[T]:T,V=!!document.queryCommandSupported;return z.forEach(function(q){V=V&&!!document.queryCommandSupported(q)}),V}}]),A})(c()),L=W}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function s(c,d){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(d))return c;c=c.parentNode}}a.exports=s}),438:(function(a,i,l){var s=l(828);function c(p,v,h,m,g){var b=f.apply(this,arguments);return p.addEventListener(h,b,g),{destroy:function(){p.removeEventListener(h,b,g)}}}function d(p,v,h,m,g){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,m,g)}))}function f(p,v,h,m){return function(g){g.delegateTarget=s(g.target,v),g.delegateTarget&&m.call(p,g)}}a.exports=d}),879:(function(a,i){i.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},i.nodeList=function(l){var s=Object.prototype.toString.call(l);return l!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in l&&(l.length===0||i.node(l[0]))},i.string=function(l){return typeof l=="string"||l instanceof String},i.fn=function(l){var s=Object.prototype.toString.call(l);return s==="[object Function]"}}),370:(function(a,i,l){var s=l(879),c=l(438);function d(h,m,g){if(!h&&!m&&!g)throw new Error("Missing required arguments");if(!s.string(m))throw new TypeError("Second argument must be a String");if(!s.fn(g))throw new TypeError("Third argument must be a Function");if(s.node(h))return f(h,m,g);if(s.nodeList(h))return p(h,m,g);if(s.string(h))return v(h,m,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,m,g){return h.addEventListener(m,g),{destroy:function(){h.removeEventListener(m,g)}}}function p(h,m,g){return Array.prototype.forEach.call(h,function(b){b.addEventListener(m,g)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(m,g)})}}}function v(h,m,g){return c(document.body,h,m,g)}a.exports=d}),817:(function(a){function i(l){var s;if(l.nodeName==="SELECT")l.focus(),s=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var c=l.hasAttribute("readonly");c||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),c||l.removeAttribute("readonly"),s=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var d=window.getSelection(),f=document.createRange();f.selectNodeContents(l),d.removeAllRanges(),d.addRange(f),s=d.toString()}return s}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(l,s,c){var d=this.e||(this.e={});return(d[l]||(d[l]=[])).push({fn:s,ctx:c}),this},once:function(l,s,c){var d=this;function f(){d.off(l,f),s.apply(c,arguments)}return f._=s,this.on(l,f,c)},emit:function(l){var s=[].slice.call(arguments,1),c=((this.e||(this.e={}))[l]||[]).slice(),d=0,f=c.length;for(d;d<f;d++)c[d].fn.apply(c[d].ctx,s);return this},off:function(l,s){var c=this.e||(this.e={}),d=c[l],f=[];if(d&&s)for(var p=0,v=d.length;p<v;p++)d[p].fn!==s&&d[p].fn._!==s&&f.push(d[p]);return f.length?c[l]=f:delete c[l],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?(function(){return a.default}):(function(){return a});return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var l in i)o.o(i,l)&&!o.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:i[l]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(Pc)),Pc.exports}var UP=XP();const GP=yr(UP),KP=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new GP(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{hi.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{hi.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),hi.error("\u590D\u5236\u5931\u8D25: "+o,2)}};function $r(e){return re.jsxs("span",{className:"flex items-center gap-1",children:[re.jsx("span",{className:"font-medium text-gray-800",children:e.label}),e.description&&re.jsx(dl,{title:e.description,className:" cursor-help",children:re.jsx(tb,{className:"ml-0.5 text-gray-400",size:12})}),e.required&&re.jsx(m0,{className:"text-[9px]",bordered:!1,color:"warning",children:"\u5FC5\u586B"})]})}function QP(e=[],t,n={}){const[r,o]=pe.useState(()=>{const c={};return e.forEach(d=>{d.type==="switch"&&(c[d.name]=n[d.name]??d.defaultValue??!1)}),c}),a=pe.useRef(),i=(c,d,f)=>{o(p=>({...p,[c]:d})),a.current&&f&&(d||f.forEach(p=>{a.current.setFieldsValue({[p]:void 0})}))},l=new Set;e.forEach(c=>{c.type==="switch"&&c.controlledItems&&r[c.name]===!1&&c.controlledItems.forEach(d=>l.add(d))});const s=e.map(c=>{var d,f,p,v,h,m;return l.has(c.name)?null:c.type==="divider"?re.jsx("div",{className:"my-3 border-b border-solid border-gray-200"},c.name||Math.random()):c.type==="input"?re.jsx(on.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:re.jsx(oo,{placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="select"?re.jsx(on.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:re.jsx(co,{options:c.options,placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="number"?re.jsx(on.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:re.jsx(Mc,{addonAfter:c.unit?re.jsx("span",{className:"text-[10px] text-gray-300",children:c.unit}):null,min:(d=c.range)==null?void 0:d.min,max:(f=c.range)==null?void 0:f.max,step:c.step,placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="slider"?re.jsxs("div",{className:"mb-6",children:[re.jsxs("div",{className:"flex items-center justify-between mb-3",children:[re.jsx("div",{className:"flex items-center text-sm",children:$r(c)}),re.jsx(on.Item,{name:c.name,noStyle:!0,children:re.jsx(Mc,{min:(p=c.range)==null?void 0:p.min,max:(v=c.range)==null?void 0:v.max,step:c.step,disabled:c.disabled,style:{width:80,marginLeft:8}})}),c.unit&&re.jsx("span",{className:"ml-2",children:c.unit})]}),re.jsx(on.Item,{name:c.name,noStyle:!0,children:re.jsx(xN,{min:(h=c.range)==null?void 0:h.min,max:(m=c.range)==null?void 0:m.max,step:c.step,disabled:c.disabled,className:c.className})})]},c.name):c.type==="switch"?re.jsx(on.Item,{label:null,colon:!1,style:{marginBottom:16},children:re.jsxs(Yv,{align:"middle",justify:"space-between",children:[re.jsx(Fi,{children:$r(c)}),re.jsx(Fi,{children:re.jsx(on.Item,{name:c.name,valuePropName:"checked",noStyle:!0,children:re.jsx(f0,{disabled:c.disabled,checked:r[c.name],onChange:g=>i(c.name,g,c.controlledItems)})})})]})},c.name):c.type==="textarea"?re.jsx(on.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:re.jsx(oo.TextArea,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,autoSize:{minRows:2,maxRows:6}})},c.name):c.type==="date"?re.jsx(on.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:re.jsx(Xo,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="radio"?re.jsx(on.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:re.jsx(vl.Group,{options:c.options,disabled:c.disabled,className:c.className})},c.name):null});return pe.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(a)},[t]),s}function ZP({config:e=[],initialValues:t={},onChange:n,styles:r}){const o=QP(e,r,t),[a]=on.useForm();return re.jsx(on,{form:a,layout:"vertical",size:(r==null?void 0:r.formSize)||"middle",initialValues:t,onValuesChange:(i,l)=>n==null?void 0:n(l),requiredMark:!1,style:{padding:16},children:o})}function JP(){return re.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:re.jsx("div",{className:"text-2xl font-bold",children:"app loading..."})})}function eR(){return re.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:re.jsx("div",{className:"text-2xl font-bold",children:"display loading..."})})}function tR(){return re.jsx("div",{className:"main relative h-full w-full bg-transparent! flex items-center justify-center",children:re.jsx("div",{className:"text-2xl font-bold",children:"app error..."})})}function nR(){return re.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:re.jsx("div",{className:"text-2xl font-bold",children:"display error..."})})}function rR(){return re.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[re.jsx("div",{className:"text-2xl text-blue-500 font-bold mb-4",children:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u4E13\u5C5EAI\u52A9\u7406\u3010\u5C0F\u9CB8\u3011"}),re.jsx("div",{className:"text-zinc-500",children:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898\u6216\u9700\u6C42\uFF0C\u6211\u4F1A\u5C3D\u529B\u4E3A\u60A8\u89E3\u7B54\u3002"})]})}function oR(e,t){return t?{...e,...t,colors:{...e.colors,...t.colors},space:{...e.space,...t.space},icons:{...e.icons,...t.icons},others:{...e.others,...t.others}}:e}function aR(e){return{...e,size:gs[e.size]||e.size,radius:am[e.radius]||e.radius,padding:Y0[e.padding]||e.padding,margin:X0[e.margin]||e.margin,shadow:U0[e.shadow]||e.shadow,lineHeight:G0[e.lineHeight]||e.lineHeight,sidebar:q0[e.sidebar]||e.sidebar}}function BR({chatData:e,sidebar:t,eventsEmit:n,status:r,CustomComponents:o,recommandQuestions:a=[],styles:i,senderConfig:l,fileUploadStatus:s,onSenderConfigChange:c,activeSessionId:d,scrollOld:f}){const p=Ye(null),[v,h]=Nt(""),[m,g]=Nt([]),[b,y]=Nt(!1),x=(t&&t.length>0?t:[]).filter(K=>K.enabled!==!1),[w,C]=Nt(()=>{var K;return(K=x[0])==null?void 0:K.key}),S=Ye({}),[E]=Nt(0),$=(e==null?void 0:e.messages)||[],[O,k]=Nt({});Mt(()=>{n==null||n("fileManager:change",{uploadedFiles:m,removeFile:(K,X,ne)=>{g(te=>te.filter((ee,ie)=>ie!==X))},setUploadedFiles:K=>{g(X=>typeof K=="function"?K(X):[...X,...K])}})},[m]);const I=()=>{h(""),g([])},M=(K,X)=>{if(n)switch(console.log(K,X,"core\u5185\u90E8\u8F6C\u53D1"),K){case"action_copy:click":X&&KP(X.content,X.event);break;case"sender:configChange":k(X.all),c==null||c(X),n(K,X);break;case"conversation:create":const ne=qP(3);n==null||n("conversation:create",{id:ne});break;case"sender:change":X&&h(X);break;case"sender:clear":I();break;case"sender:send_recommandQuestion":{const te={};x.forEach(ee=>{ee.type==="form"&&(te[ee.key]=S.current[ee.key]??ee.initialValues??{})}),n==null||n("sender:send",{content:X.content,files:m,status:r,currentData:e,senderConfig:O,formData:te,clearFn:I}),setTimeout(()=>{p.current&&p.current.scrollTo&&p.current.scrollTo({top:0,behavior:"smooth"})},120);break}case"sender:send":{const te={};x.forEach(ee=>{ee.type==="form"&&(te[ee.key]=S.current[ee.key]??ee.initialValues??{})}),n==null||n("sender:send",{content:v,files:m,status:r,currentData:e,senderConfig:O,formData:te,clearFn:I});break}default:n(K,X)}},B=K=>{K.preventDefault(),y(!1);const X=Array.from(K.dataTransfer.files||[]);if(X.length>0){const ne=X.filter(te=>/image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md/.test(te.type)||/\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md)$/i.test(te.name));ne.length>0&&g(te=>[...te,...ne.map(ee=>({file:ee,type:R(ee)}))])}},D=K=>{K.preventDefault(),b||y(!0)},F=K=>{K.preventDefault(),y(!1)};function R(K){return K.type.startsWith("image")?"image":"document"}const H=K=>{k(K.all),c==null||c(K)},j=()=>{p.current.addEventListener("wheel",K=>{K.preventDefault();const{deltaY:X}=K;p.current.scrollTop-=X})},_=Ye(null);Mt(()=>{if(!f&&!_.current)return _.current=setInterval(()=>{var K;(K=p==null?void 0:p.current)!=null&&K.scrollTo&&(j(),clearInterval(_.current),_.current=null)},100),()=>{var K;clearInterval(_.current),_.current=null,(K=p==null?void 0:p.current)!=null&&K.removeEventListener&&p.current.removeEventListener("wheel",j)}},[d]),Mt(()=>{var K;!f||!((K=p==null?void 0:p.current)!=null&&K.scrollTo)||!p.current.scrollHeight||p.current.scrollTo({top:p.current.scrollHeight,behavior:"smooth"})},[$]);const W=oR(V0,i==null?void 0:i.theme),L=aR(W.space),N={...W,space:L,colors:{...W.colors,info:W.colors.info||"#0000FF",background:W.colors.background||"#ffffff",text:W.colors.text||"#343a40",border:W.colors.border||"#dee2e6",disabled:W.colors.disabled||"#808080",disabledBackground:W.colors.disabledBackground||"#F5F5F5",disabledText:W.colors.disabledText||"#808080"}},P={...i,theme:N},A=N.space.radius,T=N.colors.appBackground,z="",V=N.space.shadow,q=x.length===0?0:N.space.sidebar,Z=N.space.size,G=N.space.padding,J=N.colors.text;return re.jsxs(re.Fragment,{children:[r.app==="initializing"&&(o!=null&&o.AppLoading?re.jsx(o.AppLoading,{}):re.jsx(JP,{})),r.app==="error"&&(o!=null&&o.AppError?re.jsx(o.AppError,{}):re.jsx(tR,{})),r.app==="ready"&&re.jsxs("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex"},children:[x.length===0?null:re.jsxs("div",{style:{width:q,borderRadius:A,boxShadow:V,background:z,display:"flex",flexDirection:"column",height:"100%"},children:[(o==null?void 0:o.LogoBox)&&re.jsx("header",{style:{display:"flex",alignItems:"center",height:55,width:"100%",borderBottom:`1px solid ${W.colors.border}`,padding:G,fontSize:gs.lg,fontWeight:700,color:W.colors.primary,background:z,borderTopLeftRadius:A,borderTopRightRadius:A},children:re.jsx(o.LogoBox,{})}),re.jsxs("div",{style:{width:q,borderRadius:A,background:z,flex:1,display:"flex",flexDirection:"column",position:"relative",marginBottom:x.length>1?55:0,borderBottomRightRadius:A},children:[(()=>{const K=x.find(X=>X.key===w);if(!K)return null;if(K.type==="custom")return K.component;if(K.type==="form"){const X=S.current[K.key]||K.initialValues||{};return re.jsx(ZP,{config:K.formConfig,initialValues:X,onChange:ne=>{var te;S.current[K.key]=ne,(te=K.onChange)==null||te.call(K,ne),typeof n=="function"&&n("form:change",{...S.current})},styles:i},K.key+"_"+E)}return null})(),x.length>1&&re.jsx("div",{style:{display:"flex",gap:12,margin:"0 auto",width:"100%",alignItems:"center",justifyContent:"end",padding:"8px 12px",position:"absolute",bottom:0,borderBottom:`1px solid ${W.colors.border}`,borderTop:`1px solid ${W.colors.border}`,borderBottomRightRadius:A,background:z},children:x.map(K=>{const X=K.icon,ne=w===K.key;return re.jsx("button",{onClick:()=>C(K.key),style:{padding:8,borderRadius:am.md,background:ne?W.colors.primary+"22":"transparent",color:ne?W.colors.primary:"#888",border:"none",cursor:"pointer",fontWeight:ne?600:400,transition:"all 0.2s"},title:K.label,children:X},K.key)})})]})]}),re.jsxs("div",{className:"relative ",style:{width:q===0?"100%":`calc(100% - ${q})`,borderRadius:A,background:T,fontSize:Z,color:J,position:"relative",height:"100%",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},onDrop:B,onDragOver:D,onDragLeave:F,children:[b&&re.jsx("div",{style:{position:"absolute",inset:0,background:W.colors.primary+"14",border:`4px dashed ${W.colors.primary}`,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,pointerEvents:"none",userSelect:"none",borderRadius:A},children:re.jsx("div",{style:{color:W.colors.primary,fontSize:gs.lg,fontWeight:700},children:"\u677E\u5F00\u6587\u4EF6\u4EE5\u4E0A\u4F20"})}),re.jsx("div",{style:{width:"100%",position:"relative",height:"calc(100% - 155px)",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},children:re.jsx("div",{style:{width:"100%",minWidth:520,margin:"0 auto",flex:1,display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:e.isNew?o!=null&&o.WelcomeComponent?re.jsx(o.WelcomeComponent,{}):re.jsx(rR,{}):r.display==="loading"?o!=null&&o.DisplayLoading?re.jsx(o.DisplayLoading,{}):re.jsx(eR,{}):r.display==="error"?o!=null&&o.DisplayError?re.jsx(o.DisplayError,{}):re.jsx(nR,{}):re.jsxs("div",{ref:p,className:"relative px-8",style:{direction:f?"ltr":"rtl",transform:f?"":"rotate(180deg)",flex:1,overflowY:"scroll",paddingTop:230,paddingBottom:20,display:"flex",flexDirection:"column",alignItems:"center"},children:[re.jsx("div",{style:{flexGrow:1,flexShrink:1,flex:1}}),re.jsx("div",{style:{width:"100%",maxWidth:1200},children:re.jsx(VP,{status:r.display,messages:$,eventsEmit:n,renderAiChatBox:o==null?void 0:o.AiChatBox,renderUserChatBox:o==null?void 0:o.UserChatBox,scrollOld:f})})]})})}),re.jsx(_P,{value:v,status:r.sender,styles:P,recommandQuestions:a,eventsEmit:(K,X)=>{M(K,X)},uploadedFiles:m,fileUploadStatus:s,onUpload:K=>{K&&K.length>0&&g(X=>[...X,...Array.from(K).map(ne=>({file:ne,type:R(ne)}))])},onRemoveFile:K=>{g(X=>X.filter((ne,te)=>te!==K))},senderConfig:l,onSenderConfigChange:H})]})]})]})}/*! @license Rematrix v0.2.2
|
|
381
|
+
|
|
382
|
+
Copyright 2018 Fisssion LLC.
|
|
383
|
+
|
|
384
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
385
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
386
|
+
in the Software without restriction, including without limitation the rights
|
|
387
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
388
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
389
|
+
furnished to do so, subject to the following conditions:
|
|
390
|
+
|
|
391
|
+
The above copyright notice and this permission notice shall be included in
|
|
392
|
+
all copies or substantial portions of the Software.
|
|
393
|
+
|
|
394
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
395
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
396
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
397
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
398
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
399
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
400
|
+
THE SOFTWARE.
|
|
401
|
+
*/function Rc(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(e.length===16)return e;if(e.length===6){var t=Uo();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function Uo(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function iR(e,t){for(var n=Rc(e),r=Rc(t),o=[],a=0;a<4;a++)for(var i=[n[a],n[a+4],n[a+8],n[a+12]],l=0;l<4;l++){var s=l*4,c=[r[s],r[s+1],r[s+2],r[s+3]],d=i[0]*c[0]+i[1]*c[1]+i[2]*c[2]+i[3]*c[3];o[a+s]=d}return o}function lR(e){if(typeof e=="string"){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t){var n=t[2].split(", ").map(parseFloat);return Rc(n)}}return Uo()}function sR(e){var t=Uo();return t[0]=e,t}function cR(e){var t=Uo();return t[5]=e,t}function uR(e){var t=Uo();return t[12]=e,t}function dR(e){var t=Uo();return t[13]=e,t}var vi=function(e){return typeof e=="number"},h0=function(e){return typeof e=="function"},v0=function(e){return Object.prototype.toString.call(e)==="[object Object]"},No=function(e){return Array.prototype.slice.apply(e)},b0=function(e){var t=e.reduce(function(n,r){return n[r]=(n[r]||0)+1,n},{});return Object.keys(t).filter(function(n){return t[n]>1})};function Mr(e){return[].slice.call(arguments,1).forEach(function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}var Ac,Fc=function(e,t,n){return e+(t-e)*n},y0={__proto__:null,isNumber:vi,isFunction:h0,isObject:v0,toArray:No,getDuplicateValsAsStrings:b0,assign:Mr,tweenProp:Fc},Qu="data-flip-id",Zu="data-inverse-flip-id",Ju="data-portal-key",fR="data-exit-container",ii={__proto__:null,DATA_FLIP_ID:Qu,DATA_INVERSE_FLIP_ID:Zu,DATA_FLIP_CONFIG:"data-flip-config",DATA_PORTAL_KEY:Ju},Tc={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},Yp=function(e){return v0(e)?e:Object.keys(Tc).indexOf(e)>-1?Tc[e]:{}};typeof window<"u"&&(Ac=window.requestAnimationFrame);var pR=Ac=Ac||function(e){window.setTimeout(e,1e3/60)},mR=Date.now(),gR=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-mR};function x0(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var hR=(function(){function e(){}return e.prototype.run=function(){var t=this;pR(function(){t.springSystem.loop(gR())})},e})(),ds=function(){this.position=0,this.velocity=0},vR=0,Vn=.001,bR=(function(){function e(n){this._id="s"+vR++,this._springSystem=n,this.listeners=[],this._startValue=0,this._currentState=new ds,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new ds,this._restSpeedThreshold=.001,this._tempState=new ds,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(n){return this._springConfig=n,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(n){return Math.abs(this._endValue-n.position)},t.setEndValue=function(n){if(n===this._endValue)return this;if(this.prevEndValue=n,this._endValue===n&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=n,this._springSystem.activateSpring(this.getId());for(var r=0,o=this.listeners.length;r<o;r++){var a=this.listeners[r].onSpringEndStateChange;a&&a(this)}return this},t.setVelocity=function(n){return n===this._currentState.velocity||(this._currentState.velocity=n,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(n){this._startValue=n,this._currentState.position=n;for(var r=0,o=this.listeners.length;r<o;r++){var a=this.listeners[r];a.onSpringUpdate&&a.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(n){return this._overshootClampingEnabled=n,this},t.isOvershooting=function(){var n=this._startValue,r=this._endValue;return this._springConfig.tension>0&&(n<r&&this.getCurrentValue()>r||n>r&&this.getCurrentValue()<r)},t.advance=function(n,r){var o=this.isAtRest();if(!o||!this._wasAtRest){var a=r;r>.064&&(a=.064),this._timeAccumulator+=a;for(var i,l,s,c,d,f,p=this._springConfig.tension,v=this._springConfig.friction,h=this._currentState.position,m=this._currentState.velocity,g=this._tempState.position,b=this._tempState.velocity;this._timeAccumulator>=Vn;)this._timeAccumulator-=Vn,this._timeAccumulator<Vn&&(this._previousState.position=h,this._previousState.velocity=m),l=p*(this._endValue-g)-v*m,c=p*(this._endValue-(g=h+(i=m)*Vn*.5))-v*(b=m+l*Vn*.5),f=p*(this._endValue-(g=h+(s=b)*Vn*.5))-v*(b=m+c*Vn*.5),g=h+(d=b)*Vn,h+=1/6*(i+2*(s+d)+(b=m+f*Vn))*Vn,m+=1/6*(l+2*(c+f)+(p*(this._endValue-g)-v*b))*Vn;this._tempState.position=g,this._tempState.velocity=b,this._currentState.position=h,this._currentState.velocity=m,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/Vn),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),o=!0);var y=!1;this._wasAtRest&&(this._wasAtRest=!1,y=!0);var x=!1;o&&(this._wasAtRest=!0,x=!0),this.notifyPositionUpdated(y,x)}},t.notifyPositionUpdated=function(n,r){var o=this;this.listeners.filter(Boolean).forEach(function(a){n&&a.onSpringActivate&&!o._onActivateCalled&&(a.onSpringActivate(o),o._onActivateCalled=!0),a.onSpringUpdate&&a.onSpringUpdate(o),r&&a.onSpringAtRest&&a.onSpringAtRest(o)})},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||this._springConfig.tension===0)},t._interpolate=function(n){this._currentState.position=this._currentState.position*n+this._previousState.position*(1-n),this._currentState.velocity=this._currentState.velocity*n+this._previousState.velocity*(1-n)},t.addListener=function(n){return this.listeners.push(n),this},t.addOneTimeListener=function(n){var r=this;return Object.keys(n).forEach(function(o){var a;n[o]=(a=n[o],function(){a.apply(void 0,[].slice.call(arguments)),r.removeListener(n)})}),this.listeners.push(n),this},t.removeListener=function(n){return x0(this.listeners,n),this},e})(),w0=(function(){function e(n){this.looper=n||new hR,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(n,r){return this.createSpringWithConfig({tension:n,friction:r})},t.createSpringWithConfig=function(n){var r=new bR(this);return this.registerSpring(r),r.setSpringConfig(n),r},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(n){this._springRegistry[n.getId()]=n},t.deregisterSpring=function(n){x0(this._activeSprings,n),delete this._springRegistry[n.getId()]},t.advance=function(n,r){for(var o=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(i){i.systemShouldAdvance()?i.advance(n/1e3,r/1e3):o._idleSpringIndices.push(o._activeSprings.indexOf(i))});this._idleSpringIndices.length>0;){var a=this._idleSpringIndices.pop();a>=0&&this._activeSprings.splice(a,1)}},t.loop=function(n){var r;this._lastTimeMillis===-1&&(this._lastTimeMillis=n-1);var o=n-this._lastTimeMillis;this._lastTimeMillis=n;var a=0,i=this.listeners.length;for(a=0;a<i;a++)(r=this.listeners[a]).onBeforeIntegrate&&r.onBeforeIntegrate(this);for(this.advance(n,o),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),a=0;a<i;a++)(r=this.listeners[a]).onAfterIntegrate&&r.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(n){var r=this._springRegistry[n];this._activeSprings.indexOf(r)===-1&&this._activeSprings.push(r),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e})(),yR=new w0,C0=function(e){var t=e.springConfig,n=t.overshootClamping,r=e.getOnUpdateFunc,o=e.onAnimationEnd,a=e.onSpringActivate,i=yR.createSpring(t.stiffness,t.damping);i.setOvershootClampingEnabled(!!n);var l={onSpringActivate:a,onSpringAtRest:function(){i.destroy(),o()},onSpringUpdate:r({spring:i,onAnimationEnd:o})};return i.addListener(l),i},Xp=function(e){var t=C0(e);return t.setEndValue(1),t},Up=function(e,t){if(t===void 0&&(t={}),e&&e.length){t.reverse&&e.reverse();var n,r=typeof(n=t.speed)!="number"?1.1:1+Math.min(Math.max(5*n,0),5),o=1/Math.max(Math.min(e.length,100),10),a=e.map(function(i,l){var s=i.getOnUpdateFunc;return i.getOnUpdateFunc=function(c){var d=s(c);return function(f){var p=f.getCurrentValue();(p=p<.01?0:p>.99?1:p)>=o&&a[l+1]&&a[l+1](Math.max(Math.min(p*r,1),0)),d(f)}},i}).map(function(i){var l=C0(i);if(l)return l.setEndValue.bind(l)}).filter(Boolean);a[0]&&a[0](1)}},Gp=function(e){return[0,1,4,5,12,13].map(function(t){return e[t]})},Kp=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function Qp(e){return JSON.parse(e.dataset.flipConfig||"{}")}var S0=function(e,t){var n;return Mr(e,((n={})[t[0]]=t[1],n))},E0=function(e,t){return No(t?document.querySelectorAll("["+Ju+'="'+t+'"]'):e.querySelectorAll("["+Qu+"]"))},$0=function(e){return e.map(function(t){return[t,t.getBoundingClientRect()]})},xR=function(e){var t=e.cachedOrderedFlipIds,n=t===void 0?[]:t,r=e.inProgressAnimations,o=r===void 0?{}:r,a=e.flippedElementPositionsBeforeUpdate,i=a===void 0?{}:a,l=e.flipCallbacks,s=l===void 0?{}:l,c=e.containerEl,d=e.applyTransformOrigin,f=e.spring,p=e.debug,v=e.portalKey,h=e.staggerConfig,m=h===void 0?{}:h,g=e.decisionData,b=g===void 0?{}:g,y=e.handleEnterUpdateDelete,x=e.onComplete,w=e.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var C,S=$0(E0((C={element:c,portalKey:v}).element,C.portalKey)).map(function(j){var _=j[0],W=j[1],L=window.getComputedStyle(_);return[_.dataset.flipId,{element:_,rect:W,opacity:parseFloat(L.opacity),transform:L.transform}]}).reduce(S0,{}),E=(function(j){var _=j.containerEl,W=j.portalKey;return W?(function(L){return function(N){return No(document.querySelectorAll("["+Ju+'="'+L+'"]'+N))}})(W):_?(function(L){var N=Math.random().toFixed(5);return L.dataset.flipperId=N,function(P){return No(L.querySelectorAll('[data-flipper-id="'+N+'"] '+P))}})(_):function(){return[]}})({containerEl:c,portalKey:v}),$=(function(j){return function(_){return j("["+Qu+'="'+_+'"]')[0]}})(E),O=function(j){return i[j]&&S[j]},k=Object.keys(i).concat(Object.keys(S)).filter(function(j){return!O(j)}),I={flipCallbacks:s,getElement:$,flippedElementPositionsBeforeUpdate:i,flippedElementPositionsAfterUpdate:S,inProgressAnimations:o,decisionData:b},M=(function(j){var _,W=j.unflippedIds,L=j.flipCallbacks,N=j.getElement,P=j.flippedElementPositionsBeforeUpdate,A=j.flippedElementPositionsAfterUpdate,T=j.inProgressAnimations,z=j.decisionData,V=W.filter(function(X){return A[X]}).filter(function(X){return L[X]&&L[X].onAppear}),q=W.filter(function(X){return P[X]&&L[X]&&L[X].onExit}),Z=new Promise(function(X){_=X}),G=[],J=0,K=q.map(function(X,ne){var te=P[X].domDataForExitAnimations,ee=te.element,ie=te.parent,se=te.childPosition,fe=se.top,ve=se.left,me=se.width,Ee=se.height;getComputedStyle(ie).position==="static"&&(ie.style.position="relative"),ee.style.transform="matrix(1, 0, 0, 1, 0, 0)",ee.style.position="absolute",ee.style.top=fe+"px",ee.style.left=ve+"px",ee.style.height=Ee+"px",ee.style.width=me+"px";var le=G.filter(function(je){return je[0]===ie})[0];le||(le=[ie,document.createDocumentFragment()],G.push(le)),le[1].appendChild(ee),J+=1;var de=function(){try{ie.removeChild(ee)}catch{}finally{(J-=1)==0&&_()}};return T[X]={stop:de},function(){return L[X].onExit(ee,ne,de,z)}});return G.forEach(function(X){X[0].appendChild(X[1])}),K.length||_(),{hideEnteringElements:function(){V.forEach(function(X){var ne=N(X);ne&&(ne.style.opacity="0")})},animateEnteringElements:function(){V.forEach(function(X,ne){var te=N(X);te&&L[X].onAppear(te,ne,z)})},animateExitingElements:function(){return K.forEach(function(X){return X()}),Z}}})(Mr({},I,{unflippedIds:k})),B=M.hideEnteringElements,D=M.animateEnteringElements,F=M.animateExitingElements,R=Mr({},I,{containerEl:c,flippedIds:n.filter(O),applyTransformOrigin:d,spring:f,debug:p,staggerConfig:m,scopedSelector:E,onComplete:x});w&&w(c,b);var H=(function(j){var _,W=j.flippedIds,L=j.flipCallbacks,N=j.inProgressAnimations,P=j.flippedElementPositionsBeforeUpdate,A=j.flippedElementPositionsAfterUpdate,T=j.applyTransformOrigin,z=j.spring,V=j.getElement,q=j.debug,Z=j.staggerConfig,G=Z===void 0?{}:Z,J=j.decisionData,K=J===void 0?{}:J,X=j.onComplete,ne=j.containerEl,te=new Promise(function(oe){_=oe});if(X&&te.then(function(){return X(ne,K)}),!W.length)return function(){return _([]),te};var ee=[],ie=V(W[0]),se=ie?ie.ownerDocument.querySelector("body"):document.querySelector("body");b0(W);var fe=W.map(function(oe){var Me=P[oe].rect,ke=A[oe].rect,Fe=P[oe].opacity,Pe=A[oe].opacity,Ie=ke.width<1||ke.height<1,ye=A[oe].element;if(!Kp(Me)&&!Kp(ke)||!ye)return!1;var be,he,we,Te=Qp(ye),ce=(we=(he=(be={flipperSpring:z,flippedSpring:Te.spring})===void 0?{}:be).flippedSpring,Mr({},Tc.noWobble,Yp(he.flipperSpring),Yp(we))),Ge=Te.stagger===!0?"default":Te.stagger,rt={element:ye,id:oe,stagger:Ge,springConfig:ce};if(L[oe]&&L[oe].shouldFlip&&!L[oe].shouldFlip(K.previous,K.current))return!1;var at=Math.abs(Me.left-ke.left)+Math.abs(Me.top-ke.top),pt=Math.abs(Me.width-ke.width)+Math.abs(Me.height-ke.height),Ne=Math.abs(Pe-Fe);if(Me.height===0&&ke.height===0||Me.width===0&&ke.width===0||at<.5&&pt<.5&&Ne<.01)return!1;var Be=lR(A[oe].transform),Re={matrix:Be},Xe={matrix:[]},Ue=[Be];Te.translate&&(Ue.push(uR(Me.left-ke.left)),Ue.push(dR(Me.top-ke.top))),Te.scale&&(Ue.push(sR(Math.max(Me.width,1)/Math.max(ke.width,1))),Ue.push(cR(Math.max(Me.height,1)/Math.max(ke.height,1)))),Te.opacity&&(Xe.opacity=Fe,Re.opacity=Pe);var lt=[];if(!L[oe]||!L[oe].shouldInvert||L[oe].shouldInvert(K.previous,K.current)){var ct=(function(ge,Se){return No(ge.querySelectorAll("["+Zu+'="'+Se+'"]'))})(ye,oe);lt=ct.map(function(ge){return[ge,Qp(ge)]})}Xe.matrix=Gp(Ue.reduce(iR)),Re.matrix=Gp(Re.matrix);var Ve,tt=(function(ge){var Se=ge.element,We=ge.invertedChildren,Ze=ge.body;return function(ot){var mt=ot.matrix,vt=ot.opacity,ut=ot.forceMinVals;if(vi(vt)&&(Se.style.opacity=vt+""),ut&&(Se.style.minHeight="1px",Se.style.minWidth="1px"),mt){var jt=(function(Ot){return"matrix("+Ot.join(", ")+")"})(mt);Se.style.transform=jt,We&&(function(Ot){var gt=Ot.matrix,At=Ot.body;Ot.invertedChildren.forEach(function(Ft){var tn=Ft[0],$e=Ft[1];if(At.contains(tn)){var _e=gt[0],De=gt[3],He=gt[5],Le={translateX:0,translateY:0,scaleX:1,scaleY:1},Pt="";$e.translate&&(Le.translateX=-gt[4]/_e,Le.translateY=-He/De,Pt+="translate("+Le.translateX+"px, "+Le.translateY+"px)"),$e.scale&&(Le.scaleX=1/_e,Le.scaleY=1/De,Pt+=" scale("+Le.scaleX+", "+Le.scaleY+")"),tn.style.transform=Pt}})})({invertedChildren:We,matrix:mt,body:Ze})}}})({element:ye,invertedChildren:lt,body:se});if(L[oe]&&L[oe].onComplete){var st=L[oe].onComplete;Ve=function(){return st(ye,K)}}var Oe=vi(Xe.opacity)&&vi(Re.opacity)&&Xe.opacity!==Re.opacity,xe=!1;return Mr({},rt,{stagger:Ge,springConfig:ce,getOnUpdateFunc:function(ge){var Se=ge.spring,We=ge.onAnimationEnd;return N[oe]={destroy:Se.destroy.bind(Se),onAnimationEnd:We},function(Ze){L[oe]&&L[oe].onSpringUpdate&&L[oe].onSpringUpdate(Ze.getCurrentValue()),xe||(xe=!0,L[oe]&&L[oe].onStart&&L[oe].onStart(ye,K));var ot=Ze.getCurrentValue();if(se.contains(ye)){var mt={matrix:[]};mt.matrix=Xe.matrix.map(function(vt,ut){return Fc(vt,Re.matrix[ut],ot)}),Oe&&(mt.opacity=Fc(Xe.opacity,Re.opacity,ot)),tt(mt)}else Ze.destroy()}},initializeFlip:function(){tt({matrix:Xe.matrix,opacity:Oe?Xe.opacity:void 0,forceMinVals:Ie}),L[oe]&&L[oe].onStartImmediate&&L[oe].onStartImmediate(ye,K),Te.transformOrigin?ye.style.transformOrigin=Te.transformOrigin:T&&(ye.style.transformOrigin="0 0"),lt.forEach(function(ge){var Se=ge[0],We=ge[1];We.transformOrigin?Se.style.transformOrigin=We.transformOrigin:T&&(Se.style.transformOrigin="0 0")})},onAnimationEnd:function(ge){delete N[oe],h0(Ve)&&Ve(),ye.style.transform="",lt.forEach(function(Se){Se[0].style.transform=""}),Ie&&ye&&(ye.style.minHeight="",ye.style.minWidth=""),ge||(ee.push(oe),ee.length>=fe.length&&_(ee))},delayUntil:Te.delayUntil})}).filter(Boolean);if(fe.forEach(function(oe){return(0,oe.initializeFlip)()}),q)return function(){};var ve=fe.filter(function(oe){return oe.delayUntil&&(Me=oe.delayUntil,fe.filter(function(ke){return ke.id===Me}).length);var Me}),me={},Ee={},le={};ve.forEach(function(oe){oe.stagger?(le[oe.stagger]=!0,Ee[oe.delayUntil]?Ee[oe.delayUntil].push(oe.stagger):Ee[oe.delayUntil]=[oe.stagger]):me[oe.delayUntil]?me[oe.delayUntil].push(oe):me[oe.delayUntil]=[oe]});var de=fe.filter(function(oe){return oe.stagger}).reduce(function(oe,Me){return oe[Me.stagger]?oe[Me.stagger].push(Me):oe[Me.stagger]=[Me],oe},{}),je=fe.filter(function(oe){return ve.indexOf(oe)===-1});return je.forEach(function(oe){oe.onSpringActivate=function(){me[oe.id]&&me[oe.id].forEach(Xp),Ee[oe.id]&&Object.keys(Ee[oe.id].reduce(function(Me,ke){var Fe;return Mr(Me,((Fe={})[ke]=!0,Fe))},{})).forEach(function(Me){Up(de[Me],G[Me])})}}),function(){return fe.length||_([]),je.filter(function(oe){return!oe.stagger}).forEach(Xp),Object.keys(de).forEach(function(oe){le[oe]||Up(de[oe],G[oe])}),te}})(R);y?y({hideEnteringElements:B,animateEnteringElements:D,animateExitingElements:F,animateFlippedElements:H}):(B(),F().then(D),H())}},wR=function(e){var t=e.element,n=e.flipCallbacks,r=n===void 0?{}:n,o=e.inProgressAnimations,a=o===void 0?{}:o,i=E0(t,e.portalKey),l=No(t.querySelectorAll("["+Zu+"]")),s={},c=[],d={};i.filter(function(v){return r&&r[v.dataset.flipId]&&r[v.dataset.flipId].onExit}).forEach(function(v){var h=v.parentNode;if(v.closest){var m=v.closest("["+fR+"]");m&&(h=m)}var g=c.findIndex(function(b){return b[0]===h});g===-1&&(c.push([h,h.getBoundingClientRect()]),g=c.length-1),s[v.dataset.flipId]=c[g][1],d[v.dataset.flipId]=h});var f=$0(i),p=f.map(function(v){var h=v[0],m=v[1],g={};if(r&&r[h.dataset.flipId]&&r[h.dataset.flipId].onExit){var b=s[h.dataset.flipId];Mr(g,{element:h,parent:d[h.dataset.flipId],childPosition:{top:m.top-b.top,left:m.left-b.left,width:m.width,height:m.height}})}return[h.dataset.flipId,{rect:m,opacity:parseFloat(window.getComputedStyle(h).opacity||"1"),domDataForExitAnimations:g}]}).reduce(S0,{});return(function(v,h){Object.keys(v).forEach(function(m){v[m].destroy&&v[m].destroy(),v[m].onAnimationEnd&&v[m].onAnimationEnd(!0),delete v[m]}),h.forEach(function(m){m.style.transform="",m.style.opacity=""})})(a,i.concat(l)),{flippedElementPositions:p,cachedOrderedFlipIds:f.map(function(v){return v[0].dataset.flipId})}};new w0;function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bi.apply(this,arguments)}function Dc(e,t){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Dc(e,t)}function k0(e,t){if(e==null)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var O0=Dr({}),M0=Dr("portal"),CR=(function(e){var t,n;function r(){for(var a,i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return(a=e.call.apply(e,[this].concat(l))||this).inProgressAnimations={},a.flipCallbacks={},a.el=void 0,a}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Dc(t,n);var o=r.prototype;return o.getSnapshotBeforeUpdate=function(a){return a.flipKey!==this.props.flipKey&&this.el?wR({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},o.componentDidUpdate=function(a,i,l){this.props.flipKey!==a.flipKey&&this.el&&xR({flippedElementPositionsBeforeUpdate:l.flippedElementPositions,cachedOrderedFlipIds:l.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:a.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},o.render=function(){var a=this,i=this.props,l=i.portalKey,s=pe.createElement(O0.Provider,{value:this.flipCallbacks},pe.createElement(i.element,{className:i.className,ref:function(c){return a.el=c}},this.props.children));return l&&(s=pe.createElement(M0.Provider,{value:l},s)),s},r})(R0);CR.defaultProps={applyTransformOrigin:!0,element:"div"};var SR=["children","flipId","inverseFlipId","portalKey"],ER=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],Zp=function(e){var t,n=e.children,r=e.flipId,o=e.inverseFlipId,a=e.portalKey,i=k0(e,SR),l=n,s=(function(d){return typeof d=="function"})(l);if(!s)try{l=tm.only(n)}catch{throw new Error("Each Flipped component must wrap a single child")}i.scale||i.translate||i.opacity||y0.assign(i,{translate:!0,scale:!0,opacity:!0});var c=((t={})[ii.DATA_FLIP_CONFIG]=JSON.stringify(i),t);return r!==void 0?c[ii.DATA_FLIP_ID]=String(r):o&&(c[ii.DATA_INVERSE_FLIP_ID]=String(o)),a!==void 0&&(c[ii.DATA_PORTAL_KEY]=a),s?l(c):nm(l,c)},$R=function(e){var t=e.children,n=e.flipId,r=e.shouldFlip,o=e.shouldInvert,a=e.onAppear,i=e.onStart,l=e.onStartImmediate,s=e.onComplete,c=e.onExit,d=e.onSpringUpdate,f=k0(e,ER);return t?f.inverseFlipId?pe.createElement(Zp,Bi({},f),t):pe.createElement(M0.Consumer,null,function(p){return pe.createElement(O0.Consumer,null,function(v){return y0.isObject(v)&&n&&(v[n]={shouldFlip:r,shouldInvert:o,onAppear:a,onStart:i,onStartImmediate:l,onComplete:s,onExit:c,onSpringUpdate:d}),pe.createElement(Zp,Bi({flipId:n},f,{portalKey:p}),t)})}):null};$R.displayName="Flipped";var bi={exports:{}};/*!
|
|
402
|
+
* clipboard.js v2.0.11
|
|
403
|
+
* https://clipboardjs.com/
|
|
404
|
+
*
|
|
405
|
+
* Licensed MIT © Zeno Rocha
|
|
406
|
+
*/var kR=bi.exports,Jp;function OR(){return Jp||(Jp=1,(function(e,t){(function(r,o){e.exports=o()})(kR,function(){return(function(){var n={686:(function(a,i,l){l.d(i,{default:function(){return L}});var s=l(279),c=l.n(s),d=l(370),f=l.n(d),p=l(817),v=l.n(p);function h(N){try{return document.execCommand(N)}catch{return!1}}var m=function(P){var A=v()(P);return h("cut"),A},g=m;function b(N){var P=document.documentElement.getAttribute("dir")==="rtl",A=document.createElement("textarea");A.style.fontSize="12pt",A.style.border="0",A.style.padding="0",A.style.margin="0",A.style.position="absolute",A.style[P?"right":"left"]="-9999px";var T=window.pageYOffset||document.documentElement.scrollTop;return A.style.top="".concat(T,"px"),A.setAttribute("readonly",""),A.value=N,A}var y=function(P,A){var T=b(P);A.container.appendChild(T);var z=v()(T);return h("copy"),T.remove(),z},x=function(P){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},T="";return typeof P=="string"?T=y(P,A):P instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(P==null?void 0:P.type)?T=y(P.value,A):(T=v()(P),h("copy")),T},w=x;function C(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(A){return typeof A}:C=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},C(N)}var S=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=P.action,T=A===void 0?"copy":A,z=P.container,V=P.target,q=P.text;if(T!=="copy"&&T!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(V!==void 0)if(V&&C(V)==="object"&&V.nodeType===1){if(T==="copy"&&V.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(T==="cut"&&(V.hasAttribute("readonly")||V.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(q)return w(q,{container:z});if(V)return T==="cut"?g(V):w(V,{container:z})},E=S;function $(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(A){return typeof A}:$=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},$(N)}function O(N,P){if(!(N instanceof P))throw new TypeError("Cannot call a class as a function")}function k(N,P){for(var A=0;A<P.length;A++){var T=P[A];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(N,T.key,T)}}function I(N,P,A){return P&&k(N.prototype,P),A&&k(N,A),N}function M(N,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(P&&P.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),P&&B(N,P)}function B(N,P){return B=Object.setPrototypeOf||function(T,z){return T.__proto__=z,T},B(N,P)}function D(N){var P=H();return function(){var T=j(N),z;if(P){var V=j(this).constructor;z=Reflect.construct(T,arguments,V)}else z=T.apply(this,arguments);return F(this,z)}}function F(N,P){return P&&($(P)==="object"||typeof P=="function")?P:R(N)}function R(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function j(N){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},j(N)}function _(N,P){var A="data-clipboard-".concat(N);if(P.hasAttribute(A))return P.getAttribute(A)}var W=(function(N){M(A,N);var P=D(A);function A(T,z){var V;return O(this,A),V=P.call(this),V.resolveOptions(z),V.listenClick(T),V}return I(A,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof z.action=="function"?z.action:this.defaultAction,this.target=typeof z.target=="function"?z.target:this.defaultTarget,this.text=typeof z.text=="function"?z.text:this.defaultText,this.container=$(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var V=this;this.listener=f()(z,"click",function(q){return V.onClick(q)})}},{key:"onClick",value:function(z){var V=z.delegateTarget||z.currentTarget,q=this.action(V)||"copy",Z=E({action:q,container:this.container,target:this.target(V),text:this.text(V)});this.emit(Z?"success":"error",{action:q,text:Z,trigger:V,clearSelection:function(){V&&V.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return _("action",z)}},{key:"defaultTarget",value:function(z){var V=_("target",z);if(V)return document.querySelector(V)}},{key:"defaultText",value:function(z){return _("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(z,V)}},{key:"cut",value:function(z){return g(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],V=typeof z=="string"?[z]:z,q=!!document.queryCommandSupported;return V.forEach(function(Z){q=q&&!!document.queryCommandSupported(Z)}),q}}]),A})(c()),L=W}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function s(c,d){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(d))return c;c=c.parentNode}}a.exports=s}),438:(function(a,i,l){var s=l(828);function c(p,v,h,m,g){var b=f.apply(this,arguments);return p.addEventListener(h,b,g),{destroy:function(){p.removeEventListener(h,b,g)}}}function d(p,v,h,m,g){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,m,g)}))}function f(p,v,h,m){return function(g){g.delegateTarget=s(g.target,v),g.delegateTarget&&m.call(p,g)}}a.exports=d}),879:(function(a,i){i.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},i.nodeList=function(l){var s=Object.prototype.toString.call(l);return l!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in l&&(l.length===0||i.node(l[0]))},i.string=function(l){return typeof l=="string"||l instanceof String},i.fn=function(l){var s=Object.prototype.toString.call(l);return s==="[object Function]"}}),370:(function(a,i,l){var s=l(879),c=l(438);function d(h,m,g){if(!h&&!m&&!g)throw new Error("Missing required arguments");if(!s.string(m))throw new TypeError("Second argument must be a String");if(!s.fn(g))throw new TypeError("Third argument must be a Function");if(s.node(h))return f(h,m,g);if(s.nodeList(h))return p(h,m,g);if(s.string(h))return v(h,m,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,m,g){return h.addEventListener(m,g),{destroy:function(){h.removeEventListener(m,g)}}}function p(h,m,g){return Array.prototype.forEach.call(h,function(b){b.addEventListener(m,g)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(m,g)})}}}function v(h,m,g){return c(document.body,h,m,g)}a.exports=d}),817:(function(a){function i(l){var s;if(l.nodeName==="SELECT")l.focus(),s=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var c=l.hasAttribute("readonly");c||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),c||l.removeAttribute("readonly"),s=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var d=window.getSelection(),f=document.createRange();f.selectNodeContents(l),d.removeAllRanges(),d.addRange(f),s=d.toString()}return s}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(l,s,c){var d=this.e||(this.e={});return(d[l]||(d[l]=[])).push({fn:s,ctx:c}),this},once:function(l,s,c){var d=this;function f(){d.off(l,f),s.apply(c,arguments)}return f._=s,this.on(l,f,c)},emit:function(l){var s=[].slice.call(arguments,1),c=((this.e||(this.e={}))[l]||[]).slice(),d=0,f=c.length;for(d;d<f;d++)c[d].fn.apply(c[d].ctx,s);return this},off:function(l,s){var c=this.e||(this.e={}),d=c[l],f=[];if(d&&s)for(var p=0,v=d.length;p<v;p++)d[p].fn!==s&&d[p].fn._!==s&&f.push(d[p]);return f.length?c[l]=f:delete c[l],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var l in i)o.o(i,l)&&!o.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:i[l]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(bi)),bi.exports}var MR=OR();const HR=A0(MR),IR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACRSURBVHgB7ZJBCsQgDEWTmQvMncT7dOuqmY3iai6kMN31UmIjdNFFKuk+DwKahP9ABDAMQyTnvHCtT/ZjjIs0e0nN1hr03kkjGTu8+0PEjzR/S81a6+6cQz6S9x5KKdsknLi+IQRSC07JfybRhE8FM4k2fICgIKVE/MYrF427NlwtuEpOgSr8MUNy9x0Nw7jnAFsnZ7Uu5CkqAAAAAElFTkSuQmCC",{TextArea:em}=ps,{useForm:NR}=Co,I0={\u56DE\u7B54\u4E0D\u4F73:"ansPoor",\u683C\u5F0F\u95EE\u9898:"formatError",\u7406\u89E3\u95EE\u9898\u6709\u8BEF:"harmfulInfo",\u5176\u4ED6:"othres"},zR=({open:e,setOpen:t,feedBackList:n,handleConfirm:r})=>{const o={header:{padding:"20px 24px",borderBottom:"1px solid #F0F0F0",margin:0},body:{padding:"16px 24px 20px 24px",borderBottom:"1px solid #F0F0F0"},mask:{},footer:{padding:"16px 24px",margin:0},content:{padding:0,borderRadius:"4px",width:"563px"}},[a]=NR(),[i,l]=Nt({}),s=async()=>{try{const c=await a.validateFields();t(!1);const d={...c};Object.entries(i||{}).forEach(f=>{const[p,v]=f;v&&(d[I0[p]]=v)}),r(d)}catch(c){console.log(c);return}};return Mt(()=>{e||(a.resetFields(),l(null))},[e]),Ht(F0,{modal:{styles:o},children:dn(z0,{open:e,onCancel:()=>t(!1),title:Ht("div",{className:"text-[16px] text-[#2A2A2A] font-bold leading-[1]",children:"\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01\u8FD9\u5C06\u5E2E\u52A9\u6211\u4EEC\u4E0D\u65AD\u4F18\u5316\u4E0E\u63D0\u5347\u3002"}),footer:dn("div",{children:[Ht(yi,{className:"mr-[16px] w-[76px]",onClick:()=>{t(!1)},children:"\u53D6\u6D88"}),Ht(yi,{type:"primary",className:"w-[76px] border-none",onClick:s,children:"\u786E\u8BA4"})]}),children:[Ht(jR,{feedBackList:n,treeSelectResult:i,setTreeSelectResult:l}),dn(Co,{form:a,layout:"vertical",children:[Ht(Co.Item,{name:"supplementExplain",label:"\u8865\u5145\u63CF\u8FF0",children:Ht(em,{})})," ",Ht(Co.Item,{name:"idealAnswer",label:"\u60A8\u89C9\u5F97\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48\uFF1F",children:Ht(em,{})}),Ht(Co.Item,{name:"userPhone",label:"\u8054\u7CFB\u7535\u8BDD",children:Ht(ps,{})}),Ht(Co.Item,{name:"deptName",label:"\u90E8\u95E8",children:Ht(ps,{})})]})]})})},jR=({feedBackList:e,treeSelectResult:t,setTreeSelectResult:n})=>{const[r,o]=Nt(!1),[a,i]=Nt([]),[l,s]=Nt([]),[c,d]=Nt([]),[f,p]=Nt(null),v=xn(()=>(s([]),f!=null&&f.items?[{title:"\u5168\u9009",key:"\u5168\u9009",children:f.items.map(m=>({title:m,key:m}))}]:[]),[f]),h=m=>{d(g=>Array.isArray(g)&&Array.isArray(l)?Object.entries(t).reduce((y,x)=>{const[w,C]=x,E=(C?C.split(";"):[]).filter($=>$!==m);return n($=>({...$||{},[w]:E.join(";")})),[...y,...E]},[]):g)};return Mt(()=>{if(i(["\u5168\u9009"]),!t||!(f!=null&&f.que_name))return;const m=t[f.que_name]||"",g=m?m.split(";"):[];s(g)},[v,r]),Mt(()=>{t===null&&(d([]),p(null),s([]))},[t]),Mt(()=>{console.log("treeSelectResult",t),console.log("selectedValue",c),console.log("feedBackList",e),console.log("pKey",I0),console.log("selectedParent",f)},[t,c]),dn("div",{className:"relative mb-[24px] z-20",children:[dn("div",{className:"absolute w-full z-10",children:[dn("div",{className:"h-[32px] box-border flex items-center justify-between border-[1px] border-solid border-[#D9D9D9] rounded-[4px] cursor-pointer",onClick:()=>o(!r),children:[Ht("div",{className:"ml-[16px]",children:"\u95EE\u9898\u7C7B\u578B"}),Ht("img",{src:IR,width:24,height:24,className:"mr-[16px]"})]}),dn("div",{style:{display:r?"":"none"},className:"h-[288px] rounded-[4px] shadow-md mt-[4px] bg-white",children:[dn("div",{className:"h-[248px] flex",style:{borderBottom:"1px solid #F0F0F0"},children:[Ht("div",{className:"w-[203px] px-[8px] py-[8px]",style:{borderRight:"1px solid #F0F0F0"},children:e.map((m,g)=>{var b;return dn("div",{className:"rounded-[4px] h-[32px] cursor-pointer flex items-center",style:{backgroundColor:(f==null?void 0:f.que_name)===m.que_name?"#E6F4FF":""},children:[Ht("div",{className:"h-full w-full leading-[32px]",onClick:()=>{p(m)},children:dn("div",{className:"ml-[8px] text-[14px] text-[#2A2A2A]",children:[m.que_name,"(",t&&t[m.que_name]?t[m.que_name].split(";").length:0,"/",(b=m==null?void 0:m.items)==null?void 0:b.length,")"]})}),Ht(T0,{className:"mr-[8px] w-3 h-3 text-[rgba(0,0,0,0.45)]"})]},g)})}),Ht("div",{className:"selfTree h-full flex-1 mt-[8px] ml-[16px]",children:Ht(_0,{checkable:!0,defaultSelectedKeys:["0-1"],treeData:v,blockNode:!0,checkedKeys:l,expandedKeys:a,onCheck:m=>{Array.isArray(m)&&n(g=>({...g||{},[(f==null?void 0:f.que_name)||""]:(m||[]).filter(b=>b!=="\u5168\u9009").join(";")})),s(m)}})})]}),dn("div",{className:"flex justify-end h-[40px] items-center",children:[Ht(yi,{size:"small",className:"mr-[8px]",onClick:()=>o(!1),children:"\u53D6\u6D88"}),Ht(yi,{size:"small",type:"primary",className:"border-none mr-[16px]",onClick:()=>{d(m=>Array.isArray(m)&&Array.isArray(l)?Object.values(t).reduce((b,y)=>[...b,...y?y.split(";"):[]],[]):m),o(!1)},children:"\u786E\u8BA4"})]})]})]}),Ht("div",{className:"h-[32px]"}),!!(c!=null&&c.length)&&dn("div",{children:[dn("div",{className:"mt-[5px] text-[12px] text-[#555555]",children:["\u5DF2\u9009\u62E9 ",c.length," \u4E2A"]}),(c||[]).map(m=>{let g="";return Object.entries(t||{}).forEach(b=>{const[y,x]=b;x.indexOf(m)>-1&&(g=y)}),dn(D0,{closable:!0,className:"mt-[5px]",onClose:()=>h(m),children:[g,"\uFF08",m,"\uFF09"]},m)})]})]})};function _R({title:e,subtitle:t}){const[n,r]=Nt(0);return Mt(()=>{let o;return n<98?o=setTimeout(()=>{r(a=>a+Math.random()*6+1)},80):n<100&&(o=setTimeout(()=>r(100),400)),()=>clearTimeout(o)},[n]),dn("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[dn("div",{className:"mb-8 flex flex-col items-center",children:[Ht("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:e||"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),Ht("div",{className:"mt-2 text-sm text-[#555555]",children:t||"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),dn("div",{className:"relative w-80 max-w-sm",children:[Ht("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:Ht("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(n,100)}%`}})}),dn("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(n),100),"%"]})]}),dn("div",{className:"mt-8 flex flex-col items-center gap-2",children:[Ht("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),Ht("div",{className:"text-xs text-[#888888]",children:"\u9996\u6B21\u52A0\u8F7D\u53EF\u80FD\u9700\u8981\u4E00\u4E9B\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"})]})]})}const N0=document.createElement("style");N0.textContent=`
|
|
407
|
+
.animate-bounce-slow {
|
|
408
|
+
animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
409
|
+
}
|
|
410
|
+
@keyframes bounce {
|
|
411
|
+
0%, 100% { transform: translateY(0); }
|
|
412
|
+
50% { transform: translateY(-12px); }
|
|
413
|
+
}
|
|
414
|
+
`;document.head.appendChild(N0);export{_R as A,HR as C,zR as F,BR as H,CR as h,$R as v};
|