cc-viewer 0.1.6 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -21
- package/cli.js +136 -24
- package/i18n.js +85 -0
- package/lib/assets/index-DfxlBPQC.js +555 -0
- package/lib/index.html +1 -1
- package/lib/server.js +6 -5
- package/locales/ar.json +65 -0
- package/locales/da.json +65 -0
- package/locales/de.json +65 -0
- package/locales/en.json +65 -0
- package/locales/es.json +65 -0
- package/locales/fr.json +65 -0
- package/locales/it.json +65 -0
- package/locales/ja.json +65 -0
- package/locales/ko.json +65 -0
- package/locales/no.json +65 -0
- package/locales/pl.json +65 -0
- package/locales/pt-BR.json +65 -0
- package/locales/ru.json +65 -0
- package/locales/th.json +65 -0
- package/locales/tr.json +65 -0
- package/locales/uk.json +65 -0
- package/locales/zh-TW.json +65 -0
- package/locales/zh.json +65 -0
- package/package.json +4 -2
- package/lib/assets/index-B_2FZecC.js +0 -443
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
var XE=Object.defineProperty;var QE=(e,t,n)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kt=(e,t,n)=>QE(e,typeof t!="symbol"?t+"":t,n);function o1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var um={exports:{}},Kl={},dm={exports:{}},Vt={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.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 V0;function YE(){if(V0)return Vt;V0=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"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function h(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function b(k,F,Q){this.props=k,this.context=F,this.refs=S,this.updater=Q||y}b.prototype.isReactComponent={},b.prototype.setState=function(k,F){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,F,"setState")},b.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function $(){}$.prototype=b.prototype;function w(k,F,Q){this.props=k,this.context=F,this.refs=S,this.updater=Q||y}var O=w.prototype=new $;O.constructor=w,x(O,b.prototype),O.isPureReactComponent=!0;var I=Array.isArray,R=Object.prototype.hasOwnProperty,P={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function N(k,F,Q){var ne,ee={},oe=null,fe=null;if(F!=null)for(ne in F.ref!==void 0&&(fe=F.ref),F.key!==void 0&&(oe=""+F.key),F)R.call(F,ne)&&!T.hasOwnProperty(ne)&&(ee[ne]=F[ne]);var me=arguments.length-2;if(me===1)ee.children=Q;else if(1<me){for(var ue=Array(me),Se=0;Se<me;Se++)ue[Se]=arguments[Se+2];ee.children=ue}if(k&&k.defaultProps)for(ne in me=k.defaultProps,me)ee[ne]===void 0&&(ee[ne]=me[ne]);return{$$typeof:e,type:k,key:oe,ref:fe,props:ee,_owner:P.current}}function M(k,F){return{$$typeof:e,type:k.type,key:F,ref:k.ref,props:k.props,_owner:k._owner}}function _(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function L(k){var F={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(Q){return F[Q]})}var z=/\/+/g;function A(k,F){return typeof k=="object"&&k!==null&&k.key!=null?L(""+k.key):F.toString(36)}function B(k,F,Q,ne,ee){var oe=typeof k;(oe==="undefined"||oe==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(oe){case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0}}if(fe)return fe=k,ee=ee(fe),k=ne===""?"."+A(fe,0):ne,I(ee)?(Q="",k!=null&&(Q=k.replace(z,"$&/")+"/"),B(ee,F,Q,"",function(Se){return Se})):ee!=null&&(_(ee)&&(ee=M(ee,Q+(!ee.key||fe&&fe.key===ee.key?"":(""+ee.key).replace(z,"$&/")+"/")+k)),F.push(ee)),1;if(fe=0,ne=ne===""?".":ne+":",I(k))for(var me=0;me<k.length;me++){oe=k[me];var ue=ne+A(oe,me);fe+=B(oe,F,Q,ue,ee)}else if(ue=h(k),typeof ue=="function")for(k=ue.call(k),me=0;!(oe=k.next()).done;)oe=oe.value,ue=ne+A(oe,me++),fe+=B(oe,F,Q,ue,ee);else if(oe==="object")throw F=String(k),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return fe}function G(k,F,Q){if(k==null)return k;var ne=[],ee=0;return B(k,ne,"","",function(oe){return F.call(Q,oe,ee++)}),ne}function V(k){if(k._status===-1){var F=k._result;F=F(),F.then(function(Q){(k._status===0||k._status===-1)&&(k._status=1,k._result=Q)},function(Q){(k._status===0||k._status===-1)&&(k._status=2,k._result=Q)}),k._status===-1&&(k._status=0,k._result=F)}if(k._status===1)return k._result.default;throw k._result}var H={current:null},D={transition:null},Z={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:D,ReactCurrentOwner:P};function W(){throw Error("act(...) is not supported in production builds of React.")}return Vt.Children={map:G,forEach:function(k,F,Q){G(k,function(){F.apply(this,arguments)},Q)},count:function(k){var F=0;return G(k,function(){F++}),F},toArray:function(k){return G(k,function(F){return F})||[]},only:function(k){if(!_(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Vt.Component=b,Vt.Fragment=n,Vt.Profiler=o,Vt.PureComponent=w,Vt.StrictMode=r,Vt.Suspense=f,Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Vt.act=W,Vt.cloneElement=function(k,F,Q){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var ne=x({},k.props),ee=k.key,oe=k.ref,fe=k._owner;if(F!=null){if(F.ref!==void 0&&(oe=F.ref,fe=P.current),F.key!==void 0&&(ee=""+F.key),k.type&&k.type.defaultProps)var me=k.type.defaultProps;for(ue in F)R.call(F,ue)&&!T.hasOwnProperty(ue)&&(ne[ue]=F[ue]===void 0&&me!==void 0?me[ue]:F[ue])}var ue=arguments.length-2;if(ue===1)ne.children=Q;else if(1<ue){me=Array(ue);for(var Se=0;Se<ue;Se++)me[Se]=arguments[Se+2];ne.children=me}return{$$typeof:e,type:k.type,key:ee,ref:oe,props:ne,_owner:fe}},Vt.createContext=function(k){return k={$$typeof:s,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:l,_context:k},k.Consumer=k},Vt.createElement=N,Vt.createFactory=function(k){var F=N.bind(null,k);return F.type=k,F},Vt.createRef=function(){return{current:null}},Vt.forwardRef=function(k){return{$$typeof:u,render:k}},Vt.isValidElement=_,Vt.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:V}},Vt.memo=function(k,F){return{$$typeof:m,type:k,compare:F===void 0?null:F}},Vt.startTransition=function(k){var F=D.transition;D.transition={};try{k()}finally{D.transition=F}},Vt.unstable_act=W,Vt.useCallback=function(k,F){return H.current.useCallback(k,F)},Vt.useContext=function(k){return H.current.useContext(k)},Vt.useDebugValue=function(){},Vt.useDeferredValue=function(k){return H.current.useDeferredValue(k)},Vt.useEffect=function(k,F){return H.current.useEffect(k,F)},Vt.useId=function(){return H.current.useId()},Vt.useImperativeHandle=function(k,F,Q){return H.current.useImperativeHandle(k,F,Q)},Vt.useInsertionEffect=function(k,F){return H.current.useInsertionEffect(k,F)},Vt.useLayoutEffect=function(k,F){return H.current.useLayoutEffect(k,F)},Vt.useMemo=function(k,F){return H.current.useMemo(k,F)},Vt.useReducer=function(k,F,Q){return H.current.useReducer(k,F,Q)},Vt.useRef=function(k){return H.current.useRef(k)},Vt.useState=function(k){return H.current.useState(k)},Vt.useSyncExternalStore=function(k,F,Q){return H.current.useSyncExternalStore(k,F,Q)},Vt.useTransition=function(){return H.current.useTransition()},Vt.version="18.3.1",Vt}var W0;function yg(){return W0||(W0=1,dm.exports=YE()),dm.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var U0;function ZE(){if(U0)return Kl;U0=1;var e=yg(),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,l={key:!0,ref:!0,__self:!0,__source:!0};function s(u,f,m){var p,g={},h=null,y=null;m!==void 0&&(h=""+m),f.key!==void 0&&(h=""+f.key),f.ref!==void 0&&(y=f.ref);for(p in f)r.call(f,p)&&!l.hasOwnProperty(p)&&(g[p]=f[p]);if(u&&u.defaultProps)for(p in f=u.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:u,key:h,ref:y,props:g,_owner:o.current}}return Kl.Fragment=n,Kl.jsx=s,Kl.jsxs=s,Kl}var G0;function JE(){return G0||(G0=1,um.exports=ZE()),um.exports}var q=JE(),c=yg();const Y=Rs(c),Ku=o1({__proto__:null,default:Y},[c]);var Hc={},fm={exports:{}},kr={},mm={exports:{}},pm={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var q0;function e2(){return q0||(q0=1,(function(e){function t(D,Z){var W=D.length;D.push(Z);e:for(;0<W;){var k=W-1>>>1,F=D[k];if(0<o(F,Z))D[k]=Z,D[W]=F,W=k;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var Z=D[0],W=D.pop();if(W!==Z){D[0]=W;e:for(var k=0,F=D.length,Q=F>>>1;k<Q;){var ne=2*(k+1)-1,ee=D[ne],oe=ne+1,fe=D[oe];if(0>o(ee,W))oe<F&&0>o(fe,ee)?(D[k]=fe,D[oe]=W,k=oe):(D[k]=ee,D[ne]=W,k=ne);else if(oe<F&&0>o(fe,W))D[k]=fe,D[oe]=W,k=oe;else break e}}return Z}function o(D,Z){var W=D.sortIndex-Z.sortIndex;return W!==0?W:D.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var f=[],m=[],p=1,g=null,h=3,y=!1,x=!1,S=!1,b=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(D){for(var Z=n(m);Z!==null;){if(Z.callback===null)r(m);else if(Z.startTime<=D)r(m),Z.sortIndex=Z.expirationTime,t(f,Z);else break;Z=n(m)}}function I(D){if(S=!1,O(D),!x)if(n(f)!==null)x=!0,V(R);else{var Z=n(m);Z!==null&&H(I,Z.startTime-D)}}function R(D,Z){x=!1,S&&(S=!1,$(N),N=-1),y=!0;var W=h;try{for(O(Z),g=n(f);g!==null&&(!(g.expirationTime>Z)||D&&!L());){var k=g.callback;if(typeof k=="function"){g.callback=null,h=g.priorityLevel;var F=k(g.expirationTime<=Z);Z=e.unstable_now(),typeof F=="function"?g.callback=F:g===n(f)&&r(f),O(Z)}else r(f);g=n(f)}if(g!==null)var Q=!0;else{var ne=n(m);ne!==null&&H(I,ne.startTime-Z),Q=!1}return Q}finally{g=null,h=W,y=!1}}var P=!1,T=null,N=-1,M=5,_=-1;function L(){return!(e.unstable_now()-_<M)}function z(){if(T!==null){var D=e.unstable_now();_=D;var Z=!0;try{Z=T(!0,D)}finally{Z?A():(P=!1,T=null)}}else P=!1}var A;if(typeof w=="function")A=function(){w(z)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,G=B.port2;B.port1.onmessage=z,A=function(){G.postMessage(null)}}else A=function(){b(z,0)};function V(D){T=D,P||(P=!0,A())}function H(D,Z){N=b(function(){D(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,V(R))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(D){switch(h){case 1:case 2:case 3:var Z=3;break;default:Z=h}var W=h;h=Z;try{return D()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=h;h=D;try{return Z()}finally{h=W}},e.unstable_scheduleCallback=function(D,Z,W){var k=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?k+W:k):W=k,D){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=W+F,D={id:p++,callback:Z,priorityLevel:D,startTime:W,expirationTime:F,sortIndex:-1},W>k?(D.sortIndex=W,t(m,D),n(f)===null&&D===n(m)&&(S?($(N),N=-1):S=!0,H(I,W-k))):(D.sortIndex=F,t(f,D),x||y||(x=!0,V(R))),D},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(D){var Z=h;return function(){var W=h;h=Z;try{return D.apply(this,arguments)}finally{h=W}}}})(pm)),pm}var K0;function t2(){return K0||(K0=1,mm.exports=e2()),mm.exports}/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var X0;function n2(){if(X0)return kr;X0=1;var e=yg(),t=t2();function n(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,d=1;d<arguments.length;d++)a+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function l(i,a){s(i,a),s(i+"Capture",a)}function s(i,a){for(o[i]=a,i=0;i<a.length;i++)r.add(a[i])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},g={};function h(i){return f.call(g,i)?!0:f.call(p,i)?!1:m.test(i)?g[i]=!0:(p[i]=!0,!1)}function y(i,a,d,v){if(d!==null&&d.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return v?!1:d!==null?!d.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function x(i,a,d,v){if(a===null||typeof a>"u"||y(i,a,d,v))return!0;if(v)return!1;if(d!==null)switch(d.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function S(i,a,d,v,C,E,j){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=v,this.attributeNamespace=C,this.mustUseProperty=d,this.propertyName=i,this.type=a,this.sanitizeURL=E,this.removeEmptyString=j}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){b[i]=new S(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];b[a]=new S(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){b[i]=new S(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){b[i]=new S(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){b[i]=new S(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){b[i]=new S(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){b[i]=new S(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){b[i]=new S(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){b[i]=new S(i,5,!1,i.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function w(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var a=i.replace($,w);b[a]=new S(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace($,w);b[a]=new S(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace($,w);b[a]=new S(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){b[i]=new S(i,1,!1,i.toLowerCase(),null,!1,!1)}),b.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){b[i]=new S(i,1,!1,i.toLowerCase(),null,!0,!0)});function O(i,a,d,v){var C=b.hasOwnProperty(a)?b[a]:null;(C!==null?C.type!==0:v||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(x(a,d,C,v)&&(d=null),v||C===null?h(a)&&(d===null?i.removeAttribute(a):i.setAttribute(a,""+d)):C.mustUseProperty?i[C.propertyName]=d===null?C.type===3?!1:"":d:(a=C.attributeName,v=C.attributeNamespace,d===null?i.removeAttribute(a):(C=C.type,d=C===3||C===4&&d===!0?"":""+d,v?i.setAttributeNS(v,a,d):i.setAttribute(a,d))))}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),P=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),D=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=D&&i[D]||i["@@iterator"],typeof i=="function"?i:null)}var W=Object.assign,k;function F(i){if(k===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);k=a&&a[1]||""}return`
|
|
34
|
-
`+k+i}var Q=!1;function ne(i,a){if(!i||Q)return"";Q=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(he){var v=he}Reflect.construct(i,[],a)}else{try{a.call()}catch(he){v=he}i.call(a.prototype)}else{try{throw Error()}catch(he){v=he}i()}}catch(he){if(he&&v&&typeof he.stack=="string"){for(var C=he.stack.split(`
|
|
35
|
-
`),E=v.stack.split(`
|
|
36
|
-
`),j=C.length-1,K=E.length-1;1<=j&&0<=K&&C[j]!==E[K];)K--;for(;1<=j&&0<=K;j--,K--)if(C[j]!==E[K]){if(j!==1||K!==1)do if(j--,K--,0>K||C[j]!==E[K]){var te=`
|
|
37
|
-
`+C[j].replace(" at new "," at ");return i.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",i.displayName)),te}while(1<=j&&0<=K);break}}}finally{Q=!1,Error.prepareStackTrace=d}return(i=i?i.displayName||i.name:"")?F(i):""}function ee(i){switch(i.tag){case 5:return F(i.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return i=ne(i.type,!1),i;case 11:return i=ne(i.type.render,!1),i;case 1:return i=ne(i.type,!0),i;default:return""}}function oe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case P:return"Portal";case M:return"Profiler";case N:return"StrictMode";case A:return"Suspense";case B:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case L:return(i.displayName||"Context")+".Consumer";case _:return(i._context.displayName||"Context")+".Provider";case z:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return a=i.displayName||null,a!==null?a:oe(i.type)||"Memo";case V:a=i._payload,i=i._init;try{return oe(i(a))}catch{}}return null}function fe(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(a);case 8:return a===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function me(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ue(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Se(i){var a=ue(i)?"checked":"value",d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),v=""+i[a];if(!i.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var C=d.get,E=d.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return C.call(this)},set:function(j){v=""+j,E.call(this,j)}}),Object.defineProperty(i,a,{enumerable:d.enumerable}),{getValue:function(){return v},setValue:function(j){v=""+j},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function pe(i){i._valueTracker||(i._valueTracker=Se(i))}function se(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var d=a.getValue(),v="";return i&&(v=ue(i)?i.checked?"true":"false":i.value),i=v,i!==d?(a.setValue(i),!0):!1}function ye(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function ve(i,a){var d=a.checked;return W({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??i._wrapperState.initialChecked})}function ce(i,a){var d=a.defaultValue==null?"":a.defaultValue,v=a.checked!=null?a.checked:a.defaultChecked;d=me(a.value!=null?a.value:d),i._wrapperState={initialChecked:v,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function le(i,a){a=a.checked,a!=null&&O(i,"checked",a,!1)}function be(i,a){le(i,a);var d=me(a.value),v=a.type;if(d!=null)v==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+d):i.value!==""+d&&(i.value=""+d);else if(v==="submit"||v==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?$e(i,a.type,d):a.hasOwnProperty("defaultValue")&&$e(i,a.type,me(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function xe(i,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var v=a.type;if(!(v!=="submit"&&v!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,d||a===i.value||(i.value=a),i.defaultValue=a}d=i.name,d!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,d!==""&&(i.name=d)}function $e(i,a,d){(a!=="number"||ye(i.ownerDocument)!==i)&&(d==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+d&&(i.defaultValue=""+d))}var Ne=Array.isArray;function Le(i,a,d,v){if(i=i.options,a){a={};for(var C=0;C<d.length;C++)a["$"+d[C]]=!0;for(d=0;d<i.length;d++)C=a.hasOwnProperty("$"+i[d].value),i[d].selected!==C&&(i[d].selected=C),C&&v&&(i[d].defaultSelected=!0)}else{for(d=""+me(d),a=null,C=0;C<i.length;C++){if(i[C].value===d){i[C].selected=!0,v&&(i[C].defaultSelected=!0);return}a!==null||i[C].disabled||(a=i[C])}a!==null&&(a.selected=!0)}}function Pe(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return W({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Be(i,a){var d=a.value;if(d==null){if(d=a.children,a=a.defaultValue,d!=null){if(a!=null)throw Error(n(92));if(Ne(d)){if(1<d.length)throw Error(n(93));d=d[0]}a=d}a==null&&(a=""),d=a}i._wrapperState={initialValue:me(d)}}function Oe(i,a){var d=me(a.value),v=me(a.defaultValue);d!=null&&(d=""+d,d!==i.value&&(i.value=d),a.defaultValue==null&&i.defaultValue!==d&&(i.defaultValue=d)),v!=null&&(i.defaultValue=""+v)}function tt(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function lt(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bt(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?lt(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var st,Ge=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,d,v,C){MSApp.execUnsafeLocalFunction(function(){return i(a,d,v,C)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(st=st||document.createElement("div"),st.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=st.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function it(i,a){if(a){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===3){d.nodeValue=a;return}}i.textContent=a}var Ve={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dt=["Webkit","ms","Moz","O"];Object.keys(Ve).forEach(function(i){dt.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),Ve[a]=Ve[i]})});function Xe(i,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||Ve.hasOwnProperty(i)&&Ve[i]?(""+a).trim():a+"px"}function _e(i,a){i=i.style;for(var d in a)if(a.hasOwnProperty(d)){var v=d.indexOf("--")===0,C=Xe(d,a[d],v);d==="float"&&(d="cssFloat"),v?i.setProperty(d,C):i[d]=C}}var Ye=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Te(i,a){if(a){if(Ye[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function Fe(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wt=null;function pt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ht=null,Dt=null,on=null;function hn(i){if(i=_l(i)){if(typeof Ht!="function")throw Error(n(280));var a=i.stateNode;a&&(a=rc(a),Ht(i.stateNode,i.type,a))}}function Wt(i){Dt?on?on.push(i):on=[i]:Dt=i}function Mt(){if(Dt){var i=Dt,a=on;if(on=Dt=null,hn(i),a)for(i=0;i<a.length;i++)hn(a[i])}}function St(i,a){return i(a)}function Ut(){}var Bt=!1;function Ze(i,a,d){if(Bt)return i(a,d);Bt=!0;try{return St(i,a,d)}finally{Bt=!1,(Dt!==null||on!==null)&&(Ut(),Mt())}}function yt(i,a){var d=i.stateNode;if(d===null)return null;var v=rc(d);if(v===null)return null;d=v[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(i=i.type,v=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!v;break e;default:i=!1}if(i)return null;if(d&&typeof d!="function")throw Error(n(231,a,typeof d));return d}var at=!1;if(u)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){at=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch{at=!1}function we(i,a,d,v,C,E,j,K,te){var he=Array.prototype.slice.call(arguments,3);try{a.apply(d,he)}catch(Me){this.onError(Me)}}var Ce=!1,je=null,Ke=!1,Qe=null,_t={onError:function(i){Ce=!0,je=i}};function kt(i,a,d,v,C,E,j,K,te){Ce=!1,je=null,we.apply(_t,arguments)}function It(i,a,d,v,C,E,j,K,te){if(kt.apply(this,arguments),Ce){if(Ce){var he=je;Ce=!1,je=null}else throw Error(n(198));Ke||(Ke=!0,Qe=he)}}function Pt(i){var a=i,d=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(d=a.return),i=a.return;while(i)}return a.tag===3?d:null}function gn(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function un(i){if(Pt(i)!==i)throw Error(n(188))}function yn(i){var a=i.alternate;if(!a){if(a=Pt(i),a===null)throw Error(n(188));return a!==i?null:i}for(var d=i,v=a;;){var C=d.return;if(C===null)break;var E=C.alternate;if(E===null){if(v=C.return,v!==null){d=v;continue}break}if(C.child===E.child){for(E=C.child;E;){if(E===d)return un(C),i;if(E===v)return un(C),a;E=E.sibling}throw Error(n(188))}if(d.return!==v.return)d=C,v=E;else{for(var j=!1,K=C.child;K;){if(K===d){j=!0,d=C,v=E;break}if(K===v){j=!0,v=C,d=E;break}K=K.sibling}if(!j){for(K=E.child;K;){if(K===d){j=!0,d=E,v=C;break}if(K===v){j=!0,v=E,d=C;break}K=K.sibling}if(!j)throw Error(n(189))}}if(d.alternate!==v)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?i:a}function On(i){return i=yn(i),i!==null?qt(i):null}function qt(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=qt(i);if(a!==null)return a;i=i.sibling}return null}var Jt=t.unstable_scheduleCallback,ze=t.unstable_cancelCallback,We=t.unstable_shouldYield,Ct=t.unstable_requestPaint,ct=t.unstable_now,et=t.unstable_getCurrentPriorityLevel,qe=t.unstable_ImmediatePriority,xt=t.unstable_UserBlockingPriority,Lt=t.unstable_NormalPriority,He=t.unstable_LowPriority,ut=t.unstable_IdlePriority,$t=null,tn=null;function zn(i){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot($t,i,void 0,(i.current.flags&128)===128)}catch{}}var wn=Math.clz32?Math.clz32:ur,cr=Math.log,Gn=Math.LN2;function ur(i){return i>>>=0,i===0?32:31-(cr(i)/Gn|0)|0}var qn=64,or=4194304;function dr(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Yt(i,a){var d=i.pendingLanes;if(d===0)return 0;var v=0,C=i.suspendedLanes,E=i.pingedLanes,j=d&268435455;if(j!==0){var K=j&~C;K!==0?v=dr(K):(E&=j,E!==0&&(v=dr(E)))}else j=d&~C,j!==0?v=dr(j):E!==0&&(v=dr(E));if(v===0)return 0;if(a!==0&&a!==v&&(a&C)===0&&(C=v&-v,E=a&-a,C>=E||C===16&&(E&4194240)!==0))return a;if((v&4)!==0&&(v|=d&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=v;0<a;)d=31-wn(a),C=1<<d,v|=i[d],a&=~C;return v}function nt(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(i,a){for(var d=i.suspendedLanes,v=i.pingedLanes,C=i.expirationTimes,E=i.pendingLanes;0<E;){var j=31-wn(E),K=1<<j,te=C[j];te===-1?((K&d)===0||(K&v)!==0)&&(C[j]=nt(K,a)):te<=a&&(i.expiredLanes|=K),E&=~K}}function Gt(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Zt(){var i=qn;return qn<<=1,(qn&4194240)===0&&(qn=64),i}function an(i){for(var a=[],d=0;31>d;d++)a.push(i);return a}function cn(i,a,d){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-wn(a),i[a]=d}function ir(i,a){var d=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var v=i.eventTimes;for(i=i.expirationTimes;0<d;){var C=31-wn(d),E=1<<C;a[C]=0,v[C]=-1,i[C]=-1,d&=~E}}function kn(i,a){var d=i.entangledLanes|=a;for(i=i.entanglements;d;){var v=31-wn(d),C=1<<v;C&a|i[v]&a&&(i[v]|=a),d&=~C}}var zt=0;function Kn(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Zn,Pr,Jn,oi,la,sa=!1,Ao=[],Tn=null,fr=null,xr=null,Tr=new Map,Gr=new Map,Lr=[],ca="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ua(i,a){switch(i){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":Tr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(a.pointerId)}}function rt(i,a,d,v,C,E){return i===null||i.nativeEvent!==E?(i={blockedOn:a,domEventName:d,eventSystemFlags:v,nativeEvent:E,targetContainers:[C]},a!==null&&(a=_l(a),a!==null&&Pr(a)),i):(i.eventSystemFlags|=v,a=i.targetContainers,C!==null&&a.indexOf(C)===-1&&a.push(C),i)}function Tt(i,a,d,v,C){switch(a){case"focusin":return Tn=rt(Tn,i,a,d,v,C),!0;case"dragenter":return fr=rt(fr,i,a,d,v,C),!0;case"mouseover":return xr=rt(xr,i,a,d,v,C),!0;case"pointerover":var E=C.pointerId;return Tr.set(E,rt(Tr.get(E)||null,i,a,d,v,C)),!0;case"gotpointercapture":return E=C.pointerId,Gr.set(E,rt(Gr.get(E)||null,i,a,d,v,C)),!0}return!1}function xn(i){var a=ji(i.target);if(a!==null){var d=Pt(a);if(d!==null){if(a=d.tag,a===13){if(a=gn(d),a!==null){i.blockedOn=a,la(i.priority,function(){Jn(d)});return}}else if(a===3&&d.stateNode.current.memoizedState.isDehydrated){i.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}i.blockedOn=null}function $n(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var d=kd(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(d===null){d=i.nativeEvent;var v=new d.constructor(d.type,d);wt=v,d.target.dispatchEvent(v),wt=null}else return a=_l(d),a!==null&&Pr(a),i.blockedOn=d,!1;a.shift()}return!0}function Cn(i,a,d){$n(i)&&d.delete(a)}function da(){sa=!1,Tn!==null&&$n(Tn)&&(Tn=null),fr!==null&&$n(fr)&&(fr=null),xr!==null&&$n(xr)&&(xr=null),Tr.forEach(Cn),Gr.forEach(Cn)}function Do(i,a){i.blockedOn===a&&(i.blockedOn=null,sa||(sa=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,da)))}function ii(i){function a(C){return Do(C,i)}if(0<Ao.length){Do(Ao[0],i);for(var d=1;d<Ao.length;d++){var v=Ao[d];v.blockedOn===i&&(v.blockedOn=null)}}for(Tn!==null&&Do(Tn,i),fr!==null&&Do(fr,i),xr!==null&&Do(xr,i),Tr.forEach(a),Gr.forEach(a),d=0;d<Lr.length;d++)v=Lr[d],v.blockedOn===i&&(v.blockedOn=null);for(;0<Lr.length&&(d=Lr[0],d.blockedOn===null);)xn(d),d.blockedOn===null&&Lr.shift()}var lo=I.ReactCurrentBatchConfig,Ws=!0;function S$(i,a,d,v){var C=zt,E=lo.transition;lo.transition=null;try{zt=1,zd(i,a,d,v)}finally{zt=C,lo.transition=E}}function x$(i,a,d,v){var C=zt,E=lo.transition;lo.transition=null;try{zt=4,zd(i,a,d,v)}finally{zt=C,lo.transition=E}}function zd(i,a,d,v){if(Ws){var C=kd(i,a,d,v);if(C===null)Jd(i,a,v,Us,d),ua(i,v);else if(Tt(C,i,a,d,v))v.stopPropagation();else if(ua(i,v),a&4&&-1<ca.indexOf(i)){for(;C!==null;){var E=_l(C);if(E!==null&&Zn(E),E=kd(i,a,d,v),E===null&&Jd(i,a,v,Us,d),E===C)break;C=E}C!==null&&v.stopPropagation()}else Jd(i,a,v,null,d)}}var Us=null;function kd(i,a,d,v){if(Us=null,i=pt(v),i=ji(i),i!==null)if(a=Pt(i),a===null)i=null;else if(d=a.tag,d===13){if(i=gn(a),i!==null)return i;i=null}else if(d===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return Us=i,null}function Pv(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(et()){case qe:return 1;case xt:return 4;case Lt:case He:return 16;case ut:return 536870912;default:return 16}default:return 16}}var ai=null,Ld=null,Gs=null;function Tv(){if(Gs)return Gs;var i,a=Ld,d=a.length,v,C="value"in ai?ai.value:ai.textContent,E=C.length;for(i=0;i<d&&a[i]===C[i];i++);var j=d-i;for(v=1;v<=j&&a[d-v]===C[E-v];v++);return Gs=C.slice(i,1<v?1-v:void 0)}function qs(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function Ks(){return!0}function Mv(){return!1}function Br(i){function a(d,v,C,E,j){this._reactName=d,this._targetInst=C,this.type=v,this.nativeEvent=E,this.target=j,this.currentTarget=null;for(var K in i)i.hasOwnProperty(K)&&(d=i[K],this[K]=d?d(E):E[K]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Ks:Mv,this.isPropagationStopped=Mv,this}return W(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Ks)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),a}var fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bd=Br(fa),Cl=W({},fa,{view:0,detail:0}),C$=Br(Cl),Ad,Dd,wl,Xs=W({},Cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==wl&&(wl&&i.type==="mousemove"?(Ad=i.screenX-wl.screenX,Dd=i.screenY-wl.screenY):Dd=Ad=0,wl=i),Ad)},movementY:function(i){return"movementY"in i?i.movementY:Dd}}),Nv=Br(Xs),w$=W({},Xs,{dataTransfer:0}),$$=Br(w$),E$=W({},Cl,{relatedTarget:0}),Fd=Br(E$),O$=W({},fa,{animationName:0,elapsedTime:0,pseudoElement:0}),I$=Br(O$),R$=W({},fa,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),P$=Br(R$),T$=W({},fa,{data:0}),_v=Br(T$),M$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j$(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=_$[i])?!!a[i]:!1}function Hd(){return j$}var z$=W({},Cl,{key:function(i){if(i.key){var a=M$[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=qs(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?N$[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hd,charCode:function(i){return i.type==="keypress"?qs(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?qs(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),k$=Br(z$),L$=W({},Xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jv=Br(L$),B$=W({},Cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hd}),A$=Br(B$),D$=W({},fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),F$=Br(D$),H$=W({},Xs,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),V$=Br(H$),W$=[9,13,27,32],Vd=u&&"CompositionEvent"in window,$l=null;u&&"documentMode"in document&&($l=document.documentMode);var U$=u&&"TextEvent"in window&&!$l,zv=u&&(!Vd||$l&&8<$l&&11>=$l),kv=" ",Lv=!1;function Bv(i,a){switch(i){case"keyup":return W$.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Av(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ma=!1;function G$(i,a){switch(i){case"compositionend":return Av(a);case"keypress":return a.which!==32?null:(Lv=!0,kv);case"textInput":return i=a.data,i===kv&&Lv?null:i;default:return null}}function q$(i,a){if(ma)return i==="compositionend"||!Vd&&Bv(i,a)?(i=Tv(),Gs=Ld=ai=null,ma=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return zv&&a.locale!=="ko"?null:a.data;default:return null}}var K$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dv(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!K$[i.type]:a==="textarea"}function Fv(i,a,d,v){Wt(v),a=ec(a,"onChange"),0<a.length&&(d=new Bd("onChange","change",null,d,v),i.push({event:d,listeners:a}))}var El=null,Ol=null;function X$(i){ih(i,0)}function Qs(i){var a=ya(i);if(se(a))return i}function Q$(i,a){if(i==="change")return a}var Hv=!1;if(u){var Wd;if(u){var Ud="oninput"in document;if(!Ud){var Vv=document.createElement("div");Vv.setAttribute("oninput","return;"),Ud=typeof Vv.oninput=="function"}Wd=Ud}else Wd=!1;Hv=Wd&&(!document.documentMode||9<document.documentMode)}function Wv(){El&&(El.detachEvent("onpropertychange",Uv),Ol=El=null)}function Uv(i){if(i.propertyName==="value"&&Qs(Ol)){var a=[];Fv(a,Ol,i,pt(i)),Ze(X$,a)}}function Y$(i,a,d){i==="focusin"?(Wv(),El=a,Ol=d,El.attachEvent("onpropertychange",Uv)):i==="focusout"&&Wv()}function Z$(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Qs(Ol)}function J$(i,a){if(i==="click")return Qs(a)}function eE(i,a){if(i==="input"||i==="change")return Qs(a)}function tE(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var so=typeof Object.is=="function"?Object.is:tE;function Il(i,a){if(so(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var d=Object.keys(i),v=Object.keys(a);if(d.length!==v.length)return!1;for(v=0;v<d.length;v++){var C=d[v];if(!f.call(a,C)||!so(i[C],a[C]))return!1}return!0}function Gv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function qv(i,a){var d=Gv(i);i=0;for(var v;d;){if(d.nodeType===3){if(v=i+d.textContent.length,i<=a&&v>=a)return{node:d,offset:a-i};i=v}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Gv(d)}}function Kv(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?Kv(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function Xv(){for(var i=window,a=ye();a instanceof i.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)i=a.contentWindow;else break;a=ye(i.document)}return a}function Gd(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function nE(i){var a=Xv(),d=i.focusedElem,v=i.selectionRange;if(a!==d&&d&&d.ownerDocument&&Kv(d.ownerDocument.documentElement,d)){if(v!==null&&Gd(d)){if(a=v.start,i=v.end,i===void 0&&(i=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(i,d.value.length);else if(i=(a=d.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var C=d.textContent.length,E=Math.min(v.start,C);v=v.end===void 0?E:Math.min(v.end,C),!i.extend&&E>v&&(C=v,v=E,E=C),C=qv(d,E);var j=qv(d,v);C&&j&&(i.rangeCount!==1||i.anchorNode!==C.node||i.anchorOffset!==C.offset||i.focusNode!==j.node||i.focusOffset!==j.offset)&&(a=a.createRange(),a.setStart(C.node,C.offset),i.removeAllRanges(),E>v?(i.addRange(a),i.extend(j.node,j.offset)):(a.setEnd(j.node,j.offset),i.addRange(a)))}}for(a=[],i=d;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<a.length;d++)i=a[d],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var rE=u&&"documentMode"in document&&11>=document.documentMode,pa=null,qd=null,Rl=null,Kd=!1;function Qv(i,a,d){var v=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Kd||pa==null||pa!==ye(v)||(v=pa,"selectionStart"in v&&Gd(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Rl&&Il(Rl,v)||(Rl=v,v=ec(qd,"onSelect"),0<v.length&&(a=new Bd("onSelect","select",null,a,d),i.push({event:a,listeners:v}),a.target=pa)))}function Ys(i,a){var d={};return d[i.toLowerCase()]=a.toLowerCase(),d["Webkit"+i]="webkit"+a,d["Moz"+i]="moz"+a,d}var ga={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},Xd={},Yv={};u&&(Yv=document.createElement("div").style,"AnimationEvent"in window||(delete ga.animationend.animation,delete ga.animationiteration.animation,delete ga.animationstart.animation),"TransitionEvent"in window||delete ga.transitionend.transition);function Zs(i){if(Xd[i])return Xd[i];if(!ga[i])return i;var a=ga[i],d;for(d in a)if(a.hasOwnProperty(d)&&d in Yv)return Xd[i]=a[d];return i}var Zv=Zs("animationend"),Jv=Zs("animationiteration"),eh=Zs("animationstart"),th=Zs("transitionend"),nh=new Map,rh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function li(i,a){nh.set(i,a),l(a,[i])}for(var Qd=0;Qd<rh.length;Qd++){var Yd=rh[Qd],oE=Yd.toLowerCase(),iE=Yd[0].toUpperCase()+Yd.slice(1);li(oE,"on"+iE)}li(Zv,"onAnimationEnd"),li(Jv,"onAnimationIteration"),li(eh,"onAnimationStart"),li("dblclick","onDoubleClick"),li("focusin","onFocus"),li("focusout","onBlur"),li(th,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pl));function oh(i,a,d){var v=i.type||"unknown-event";i.currentTarget=d,It(v,a,void 0,i),i.currentTarget=null}function ih(i,a){a=(a&4)!==0;for(var d=0;d<i.length;d++){var v=i[d],C=v.event;v=v.listeners;e:{var E=void 0;if(a)for(var j=v.length-1;0<=j;j--){var K=v[j],te=K.instance,he=K.currentTarget;if(K=K.listener,te!==E&&C.isPropagationStopped())break e;oh(C,K,he),E=te}else for(j=0;j<v.length;j++){if(K=v[j],te=K.instance,he=K.currentTarget,K=K.listener,te!==E&&C.isPropagationStopped())break e;oh(C,K,he),E=te}}}if(Ke)throw i=Qe,Ke=!1,Qe=null,i}function In(i,a){var d=a[af];d===void 0&&(d=a[af]=new Set);var v=i+"__bubble";d.has(v)||(ah(a,i,2,!1),d.add(v))}function Zd(i,a,d){var v=0;a&&(v|=4),ah(d,i,v,a)}var Js="_reactListening"+Math.random().toString(36).slice(2);function Tl(i){if(!i[Js]){i[Js]=!0,r.forEach(function(d){d!=="selectionchange"&&(aE.has(d)||Zd(d,!1,i),Zd(d,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Js]||(a[Js]=!0,Zd("selectionchange",!1,a))}}function ah(i,a,d,v){switch(Pv(a)){case 1:var C=S$;break;case 4:C=x$;break;default:C=zd}d=C.bind(null,a,d,i),C=void 0,!at||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(C=!0),v?C!==void 0?i.addEventListener(a,d,{capture:!0,passive:C}):i.addEventListener(a,d,!0):C!==void 0?i.addEventListener(a,d,{passive:C}):i.addEventListener(a,d,!1)}function Jd(i,a,d,v,C){var E=v;if((a&1)===0&&(a&2)===0&&v!==null)e:for(;;){if(v===null)return;var j=v.tag;if(j===3||j===4){var K=v.stateNode.containerInfo;if(K===C||K.nodeType===8&&K.parentNode===C)break;if(j===4)for(j=v.return;j!==null;){var te=j.tag;if((te===3||te===4)&&(te=j.stateNode.containerInfo,te===C||te.nodeType===8&&te.parentNode===C))return;j=j.return}for(;K!==null;){if(j=ji(K),j===null)return;if(te=j.tag,te===5||te===6){v=E=j;continue e}K=K.parentNode}}v=v.return}Ze(function(){var he=E,Me=pt(d),ke=[];e:{var Re=nh.get(i);if(Re!==void 0){var ot=Bd,gt=i;switch(i){case"keypress":if(qs(d)===0)break e;case"keydown":case"keyup":ot=k$;break;case"focusin":gt="focus",ot=Fd;break;case"focusout":gt="blur",ot=Fd;break;case"beforeblur":case"afterblur":ot=Fd;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ot=Nv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ot=$$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ot=A$;break;case Zv:case Jv:case eh:ot=I$;break;case th:ot=F$;break;case"scroll":ot=C$;break;case"wheel":ot=V$;break;case"copy":case"cut":case"paste":ot=P$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ot=jv}var vt=(a&4)!==0,Ln=!vt&&i==="scroll",de=vt?Re!==null?Re+"Capture":null:Re;vt=[];for(var ie=he,ge;ie!==null;){ge=ie;var De=ge.stateNode;if(ge.tag===5&&De!==null&&(ge=De,de!==null&&(De=yt(ie,de),De!=null&&vt.push(Ml(ie,De,ge)))),Ln)break;ie=ie.return}0<vt.length&&(Re=new ot(Re,gt,null,d,Me),ke.push({event:Re,listeners:vt}))}}if((a&7)===0){e:{if(Re=i==="mouseover"||i==="pointerover",ot=i==="mouseout"||i==="pointerout",Re&&d!==wt&&(gt=d.relatedTarget||d.fromElement)&&(ji(gt)||gt[Fo]))break e;if((ot||Re)&&(Re=Me.window===Me?Me:(Re=Me.ownerDocument)?Re.defaultView||Re.parentWindow:window,ot?(gt=d.relatedTarget||d.toElement,ot=he,gt=gt?ji(gt):null,gt!==null&&(Ln=Pt(gt),gt!==Ln||gt.tag!==5&>.tag!==6)&&(gt=null)):(ot=null,gt=he),ot!==gt)){if(vt=Nv,De="onMouseLeave",de="onMouseEnter",ie="mouse",(i==="pointerout"||i==="pointerover")&&(vt=jv,De="onPointerLeave",de="onPointerEnter",ie="pointer"),Ln=ot==null?Re:ya(ot),ge=gt==null?Re:ya(gt),Re=new vt(De,ie+"leave",ot,d,Me),Re.target=Ln,Re.relatedTarget=ge,De=null,ji(Me)===he&&(vt=new vt(de,ie+"enter",gt,d,Me),vt.target=ge,vt.relatedTarget=Ln,De=vt),Ln=De,ot&>)t:{for(vt=ot,de=gt,ie=0,ge=vt;ge;ge=va(ge))ie++;for(ge=0,De=de;De;De=va(De))ge++;for(;0<ie-ge;)vt=va(vt),ie--;for(;0<ge-ie;)de=va(de),ge--;for(;ie--;){if(vt===de||de!==null&&vt===de.alternate)break t;vt=va(vt),de=va(de)}vt=null}else vt=null;ot!==null&&lh(ke,Re,ot,vt,!1),gt!==null&&Ln!==null&&lh(ke,Ln,gt,vt,!0)}}e:{if(Re=he?ya(he):window,ot=Re.nodeName&&Re.nodeName.toLowerCase(),ot==="select"||ot==="input"&&Re.type==="file")var ht=Q$;else if(Dv(Re))if(Hv)ht=eE;else{ht=Z$;var Et=Y$}else(ot=Re.nodeName)&&ot.toLowerCase()==="input"&&(Re.type==="checkbox"||Re.type==="radio")&&(ht=J$);if(ht&&(ht=ht(i,he))){Fv(ke,ht,d,Me);break e}Et&&Et(i,Re,he),i==="focusout"&&(Et=Re._wrapperState)&&Et.controlled&&Re.type==="number"&&$e(Re,"number",Re.value)}switch(Et=he?ya(he):window,i){case"focusin":(Dv(Et)||Et.contentEditable==="true")&&(pa=Et,qd=he,Rl=null);break;case"focusout":Rl=qd=pa=null;break;case"mousedown":Kd=!0;break;case"contextmenu":case"mouseup":case"dragend":Kd=!1,Qv(ke,d,Me);break;case"selectionchange":if(rE)break;case"keydown":case"keyup":Qv(ke,d,Me)}var Ot;if(Vd)e:{switch(i){case"compositionstart":var jt="onCompositionStart";break e;case"compositionend":jt="onCompositionEnd";break e;case"compositionupdate":jt="onCompositionUpdate";break e}jt=void 0}else ma?Bv(i,d)&&(jt="onCompositionEnd"):i==="keydown"&&d.keyCode===229&&(jt="onCompositionStart");jt&&(zv&&d.locale!=="ko"&&(ma||jt!=="onCompositionStart"?jt==="onCompositionEnd"&&ma&&(Ot=Tv()):(ai=Me,Ld="value"in ai?ai.value:ai.textContent,ma=!0)),Et=ec(he,jt),0<Et.length&&(jt=new _v(jt,i,null,d,Me),ke.push({event:jt,listeners:Et}),Ot?jt.data=Ot:(Ot=Av(d),Ot!==null&&(jt.data=Ot)))),(Ot=U$?G$(i,d):q$(i,d))&&(he=ec(he,"onBeforeInput"),0<he.length&&(Me=new _v("onBeforeInput","beforeinput",null,d,Me),ke.push({event:Me,listeners:he}),Me.data=Ot))}ih(ke,a)})}function Ml(i,a,d){return{instance:i,listener:a,currentTarget:d}}function ec(i,a){for(var d=a+"Capture",v=[];i!==null;){var C=i,E=C.stateNode;C.tag===5&&E!==null&&(C=E,E=yt(i,d),E!=null&&v.unshift(Ml(i,E,C)),E=yt(i,a),E!=null&&v.push(Ml(i,E,C))),i=i.return}return v}function va(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function lh(i,a,d,v,C){for(var E=a._reactName,j=[];d!==null&&d!==v;){var K=d,te=K.alternate,he=K.stateNode;if(te!==null&&te===v)break;K.tag===5&&he!==null&&(K=he,C?(te=yt(d,E),te!=null&&j.unshift(Ml(d,te,K))):C||(te=yt(d,E),te!=null&&j.push(Ml(d,te,K)))),d=d.return}j.length!==0&&i.push({event:a,listeners:j})}var lE=/\r\n?/g,sE=/\u0000|\uFFFD/g;function sh(i){return(typeof i=="string"?i:""+i).replace(lE,`
|
|
38
|
-
`).replace(sE,"")}function tc(i,a,d){if(a=sh(a),sh(i)!==a&&d)throw Error(n(425))}function nc(){}var ef=null,tf=null;function nf(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var rf=typeof setTimeout=="function"?setTimeout:void 0,cE=typeof clearTimeout=="function"?clearTimeout:void 0,ch=typeof Promise=="function"?Promise:void 0,uE=typeof queueMicrotask=="function"?queueMicrotask:typeof ch<"u"?function(i){return ch.resolve(null).then(i).catch(dE)}:rf;function dE(i){setTimeout(function(){throw i})}function of(i,a){var d=a,v=0;do{var C=d.nextSibling;if(i.removeChild(d),C&&C.nodeType===8)if(d=C.data,d==="/$"){if(v===0){i.removeChild(C),ii(a);return}v--}else d!=="$"&&d!=="$?"&&d!=="$!"||v++;d=C}while(d);ii(a)}function si(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function uh(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="$"||d==="$!"||d==="$?"){if(a===0)return i;a--}else d==="/$"&&a++}i=i.previousSibling}return null}var ha=Math.random().toString(36).slice(2),$o="__reactFiber$"+ha,Nl="__reactProps$"+ha,Fo="__reactContainer$"+ha,af="__reactEvents$"+ha,fE="__reactListeners$"+ha,mE="__reactHandles$"+ha;function ji(i){var a=i[$o];if(a)return a;for(var d=i.parentNode;d;){if(a=d[Fo]||d[$o]){if(d=a.alternate,a.child!==null||d!==null&&d.child!==null)for(i=uh(i);i!==null;){if(d=i[$o])return d;i=uh(i)}return a}i=d,d=i.parentNode}return null}function _l(i){return i=i[$o]||i[Fo],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ya(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function rc(i){return i[Nl]||null}var lf=[],ba=-1;function ci(i){return{current:i}}function Rn(i){0>ba||(i.current=lf[ba],lf[ba]=null,ba--)}function En(i,a){ba++,lf[ba]=i.current,i.current=a}var ui={},mr=ci(ui),Mr=ci(!1),zi=ui;function Sa(i,a){var d=i.type.contextTypes;if(!d)return ui;var v=i.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===a)return v.__reactInternalMemoizedMaskedChildContext;var C={},E;for(E in d)C[E]=a[E];return v&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=C),C}function Nr(i){return i=i.childContextTypes,i!=null}function oc(){Rn(Mr),Rn(mr)}function dh(i,a,d){if(mr.current!==ui)throw Error(n(168));En(mr,a),En(Mr,d)}function fh(i,a,d){var v=i.stateNode;if(a=a.childContextTypes,typeof v.getChildContext!="function")return d;v=v.getChildContext();for(var C in v)if(!(C in a))throw Error(n(108,fe(i)||"Unknown",C));return W({},d,v)}function ic(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ui,zi=mr.current,En(mr,i),En(Mr,Mr.current),!0}function mh(i,a,d){var v=i.stateNode;if(!v)throw Error(n(169));d?(i=fh(i,a,zi),v.__reactInternalMemoizedMergedChildContext=i,Rn(Mr),Rn(mr),En(mr,i)):Rn(Mr),En(Mr,d)}var Ho=null,ac=!1,sf=!1;function ph(i){Ho===null?Ho=[i]:Ho.push(i)}function pE(i){ac=!0,ph(i)}function di(){if(!sf&&Ho!==null){sf=!0;var i=0,a=zt;try{var d=Ho;for(zt=1;i<d.length;i++){var v=d[i];do v=v(!0);while(v!==null)}Ho=null,ac=!1}catch(C){throw Ho!==null&&(Ho=Ho.slice(i+1)),Jt(qe,di),C}finally{zt=a,sf=!1}}return null}var xa=[],Ca=0,lc=null,sc=0,qr=[],Kr=0,ki=null,Vo=1,Wo="";function Li(i,a){xa[Ca++]=sc,xa[Ca++]=lc,lc=i,sc=a}function gh(i,a,d){qr[Kr++]=Vo,qr[Kr++]=Wo,qr[Kr++]=ki,ki=i;var v=Vo;i=Wo;var C=32-wn(v)-1;v&=~(1<<C),d+=1;var E=32-wn(a)+C;if(30<E){var j=C-C%5;E=(v&(1<<j)-1).toString(32),v>>=j,C-=j,Vo=1<<32-wn(a)+C|d<<C|v,Wo=E+i}else Vo=1<<E|d<<C|v,Wo=i}function cf(i){i.return!==null&&(Li(i,1),gh(i,1,0))}function uf(i){for(;i===lc;)lc=xa[--Ca],xa[Ca]=null,sc=xa[--Ca],xa[Ca]=null;for(;i===ki;)ki=qr[--Kr],qr[Kr]=null,Wo=qr[--Kr],qr[Kr]=null,Vo=qr[--Kr],qr[Kr]=null}var Ar=null,Dr=null,Pn=!1,co=null;function vh(i,a){var d=Zr(5,null,null,0);d.elementType="DELETED",d.stateNode=a,d.return=i,a=i.deletions,a===null?(i.deletions=[d],i.flags|=16):a.push(d)}function hh(i,a){switch(i.tag){case 5:var d=i.type;return a=a.nodeType!==1||d.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,Ar=i,Dr=si(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,Ar=i,Dr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(d=ki!==null?{id:Vo,overflow:Wo}:null,i.memoizedState={dehydrated:a,treeContext:d,retryLane:1073741824},d=Zr(18,null,null,0),d.stateNode=a,d.return=i,i.child=d,Ar=i,Dr=null,!0):!1;default:return!1}}function df(i){return(i.mode&1)!==0&&(i.flags&128)===0}function ff(i){if(Pn){var a=Dr;if(a){var d=a;if(!hh(i,a)){if(df(i))throw Error(n(418));a=si(d.nextSibling);var v=Ar;a&&hh(i,a)?vh(v,d):(i.flags=i.flags&-4097|2,Pn=!1,Ar=i)}}else{if(df(i))throw Error(n(418));i.flags=i.flags&-4097|2,Pn=!1,Ar=i}}}function yh(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Ar=i}function cc(i){if(i!==Ar)return!1;if(!Pn)return yh(i),Pn=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!nf(i.type,i.memoizedProps)),a&&(a=Dr)){if(df(i))throw bh(),Error(n(418));for(;a;)vh(i,a),a=si(a.nextSibling)}if(yh(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="/$"){if(a===0){Dr=si(i.nextSibling);break e}a--}else d!=="$"&&d!=="$!"&&d!=="$?"||a++}i=i.nextSibling}Dr=null}}else Dr=Ar?si(i.stateNode.nextSibling):null;return!0}function bh(){for(var i=Dr;i;)i=si(i.nextSibling)}function wa(){Dr=Ar=null,Pn=!1}function mf(i){co===null?co=[i]:co.push(i)}var gE=I.ReactCurrentBatchConfig;function jl(i,a,d){if(i=d.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(n(309));var v=d.stateNode}if(!v)throw Error(n(147,i));var C=v,E=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===E?a.ref:(a=function(j){var K=C.refs;j===null?delete K[E]:K[E]=j},a._stringRef=E,a)}if(typeof i!="string")throw Error(n(284));if(!d._owner)throw Error(n(290,i))}return i}function uc(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function Sh(i){var a=i._init;return a(i._payload)}function xh(i){function a(de,ie){if(i){var ge=de.deletions;ge===null?(de.deletions=[ie],de.flags|=16):ge.push(ie)}}function d(de,ie){if(!i)return null;for(;ie!==null;)a(de,ie),ie=ie.sibling;return null}function v(de,ie){for(de=new Map;ie!==null;)ie.key!==null?de.set(ie.key,ie):de.set(ie.index,ie),ie=ie.sibling;return de}function C(de,ie){return de=bi(de,ie),de.index=0,de.sibling=null,de}function E(de,ie,ge){return de.index=ge,i?(ge=de.alternate,ge!==null?(ge=ge.index,ge<ie?(de.flags|=2,ie):ge):(de.flags|=2,ie)):(de.flags|=1048576,ie)}function j(de){return i&&de.alternate===null&&(de.flags|=2),de}function K(de,ie,ge,De){return ie===null||ie.tag!==6?(ie=om(ge,de.mode,De),ie.return=de,ie):(ie=C(ie,ge),ie.return=de,ie)}function te(de,ie,ge,De){var ht=ge.type;return ht===T?Me(de,ie,ge.props.children,De,ge.key):ie!==null&&(ie.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===V&&Sh(ht)===ie.type)?(De=C(ie,ge.props),De.ref=jl(de,ie,ge),De.return=de,De):(De=jc(ge.type,ge.key,ge.props,null,de.mode,De),De.ref=jl(de,ie,ge),De.return=de,De)}function he(de,ie,ge,De){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==ge.containerInfo||ie.stateNode.implementation!==ge.implementation?(ie=im(ge,de.mode,De),ie.return=de,ie):(ie=C(ie,ge.children||[]),ie.return=de,ie)}function Me(de,ie,ge,De,ht){return ie===null||ie.tag!==7?(ie=Ui(ge,de.mode,De,ht),ie.return=de,ie):(ie=C(ie,ge),ie.return=de,ie)}function ke(de,ie,ge){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return ie=om(""+ie,de.mode,ge),ie.return=de,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case R:return ge=jc(ie.type,ie.key,ie.props,null,de.mode,ge),ge.ref=jl(de,null,ie),ge.return=de,ge;case P:return ie=im(ie,de.mode,ge),ie.return=de,ie;case V:var De=ie._init;return ke(de,De(ie._payload),ge)}if(Ne(ie)||Z(ie))return ie=Ui(ie,de.mode,ge,null),ie.return=de,ie;uc(de,ie)}return null}function Re(de,ie,ge,De){var ht=ie!==null?ie.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return ht!==null?null:K(de,ie,""+ge,De);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case R:return ge.key===ht?te(de,ie,ge,De):null;case P:return ge.key===ht?he(de,ie,ge,De):null;case V:return ht=ge._init,Re(de,ie,ht(ge._payload),De)}if(Ne(ge)||Z(ge))return ht!==null?null:Me(de,ie,ge,De,null);uc(de,ge)}return null}function ot(de,ie,ge,De,ht){if(typeof De=="string"&&De!==""||typeof De=="number")return de=de.get(ge)||null,K(ie,de,""+De,ht);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case R:return de=de.get(De.key===null?ge:De.key)||null,te(ie,de,De,ht);case P:return de=de.get(De.key===null?ge:De.key)||null,he(ie,de,De,ht);case V:var Et=De._init;return ot(de,ie,ge,Et(De._payload),ht)}if(Ne(De)||Z(De))return de=de.get(ge)||null,Me(ie,de,De,ht,null);uc(ie,De)}return null}function gt(de,ie,ge,De){for(var ht=null,Et=null,Ot=ie,jt=ie=0,nr=null;Ot!==null&&jt<ge.length;jt++){Ot.index>jt?(nr=Ot,Ot=null):nr=Ot.sibling;var ln=Re(de,Ot,ge[jt],De);if(ln===null){Ot===null&&(Ot=nr);break}i&&Ot&&ln.alternate===null&&a(de,Ot),ie=E(ln,ie,jt),Et===null?ht=ln:Et.sibling=ln,Et=ln,Ot=nr}if(jt===ge.length)return d(de,Ot),Pn&&Li(de,jt),ht;if(Ot===null){for(;jt<ge.length;jt++)Ot=ke(de,ge[jt],De),Ot!==null&&(ie=E(Ot,ie,jt),Et===null?ht=Ot:Et.sibling=Ot,Et=Ot);return Pn&&Li(de,jt),ht}for(Ot=v(de,Ot);jt<ge.length;jt++)nr=ot(Ot,de,jt,ge[jt],De),nr!==null&&(i&&nr.alternate!==null&&Ot.delete(nr.key===null?jt:nr.key),ie=E(nr,ie,jt),Et===null?ht=nr:Et.sibling=nr,Et=nr);return i&&Ot.forEach(function(Si){return a(de,Si)}),Pn&&Li(de,jt),ht}function vt(de,ie,ge,De){var ht=Z(ge);if(typeof ht!="function")throw Error(n(150));if(ge=ht.call(ge),ge==null)throw Error(n(151));for(var Et=ht=null,Ot=ie,jt=ie=0,nr=null,ln=ge.next();Ot!==null&&!ln.done;jt++,ln=ge.next()){Ot.index>jt?(nr=Ot,Ot=null):nr=Ot.sibling;var Si=Re(de,Ot,ln.value,De);if(Si===null){Ot===null&&(Ot=nr);break}i&&Ot&&Si.alternate===null&&a(de,Ot),ie=E(Si,ie,jt),Et===null?ht=Si:Et.sibling=Si,Et=Si,Ot=nr}if(ln.done)return d(de,Ot),Pn&&Li(de,jt),ht;if(Ot===null){for(;!ln.done;jt++,ln=ge.next())ln=ke(de,ln.value,De),ln!==null&&(ie=E(ln,ie,jt),Et===null?ht=ln:Et.sibling=ln,Et=ln);return Pn&&Li(de,jt),ht}for(Ot=v(de,Ot);!ln.done;jt++,ln=ge.next())ln=ot(Ot,de,jt,ln.value,De),ln!==null&&(i&&ln.alternate!==null&&Ot.delete(ln.key===null?jt:ln.key),ie=E(ln,ie,jt),Et===null?ht=ln:Et.sibling=ln,Et=ln);return i&&Ot.forEach(function(KE){return a(de,KE)}),Pn&&Li(de,jt),ht}function Ln(de,ie,ge,De){if(typeof ge=="object"&&ge!==null&&ge.type===T&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case R:e:{for(var ht=ge.key,Et=ie;Et!==null;){if(Et.key===ht){if(ht=ge.type,ht===T){if(Et.tag===7){d(de,Et.sibling),ie=C(Et,ge.props.children),ie.return=de,de=ie;break e}}else if(Et.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===V&&Sh(ht)===Et.type){d(de,Et.sibling),ie=C(Et,ge.props),ie.ref=jl(de,Et,ge),ie.return=de,de=ie;break e}d(de,Et);break}else a(de,Et);Et=Et.sibling}ge.type===T?(ie=Ui(ge.props.children,de.mode,De,ge.key),ie.return=de,de=ie):(De=jc(ge.type,ge.key,ge.props,null,de.mode,De),De.ref=jl(de,ie,ge),De.return=de,de=De)}return j(de);case P:e:{for(Et=ge.key;ie!==null;){if(ie.key===Et)if(ie.tag===4&&ie.stateNode.containerInfo===ge.containerInfo&&ie.stateNode.implementation===ge.implementation){d(de,ie.sibling),ie=C(ie,ge.children||[]),ie.return=de,de=ie;break e}else{d(de,ie);break}else a(de,ie);ie=ie.sibling}ie=im(ge,de.mode,De),ie.return=de,de=ie}return j(de);case V:return Et=ge._init,Ln(de,ie,Et(ge._payload),De)}if(Ne(ge))return gt(de,ie,ge,De);if(Z(ge))return vt(de,ie,ge,De);uc(de,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,ie!==null&&ie.tag===6?(d(de,ie.sibling),ie=C(ie,ge),ie.return=de,de=ie):(d(de,ie),ie=om(ge,de.mode,De),ie.return=de,de=ie),j(de)):d(de,ie)}return Ln}var $a=xh(!0),Ch=xh(!1),dc=ci(null),fc=null,Ea=null,pf=null;function gf(){pf=Ea=fc=null}function vf(i){var a=dc.current;Rn(dc),i._currentValue=a}function hf(i,a,d){for(;i!==null;){var v=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,v!==null&&(v.childLanes|=a)):v!==null&&(v.childLanes&a)!==a&&(v.childLanes|=a),i===d)break;i=i.return}}function Oa(i,a){fc=i,pf=Ea=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(_r=!0),i.firstContext=null)}function Xr(i){var a=i._currentValue;if(pf!==i)if(i={context:i,memoizedValue:a,next:null},Ea===null){if(fc===null)throw Error(n(308));Ea=i,fc.dependencies={lanes:0,firstContext:i}}else Ea=Ea.next=i;return a}var Bi=null;function yf(i){Bi===null?Bi=[i]:Bi.push(i)}function wh(i,a,d,v){var C=a.interleaved;return C===null?(d.next=d,yf(a)):(d.next=C.next,C.next=d),a.interleaved=d,Uo(i,v)}function Uo(i,a){i.lanes|=a;var d=i.alternate;for(d!==null&&(d.lanes|=a),d=i,i=i.return;i!==null;)i.childLanes|=a,d=i.alternate,d!==null&&(d.childLanes|=a),d=i,i=i.return;return d.tag===3?d.stateNode:null}var fi=!1;function bf(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $h(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Go(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function mi(i,a,d){var v=i.updateQueue;if(v===null)return null;if(v=v.shared,(nn&2)!==0){var C=v.pending;return C===null?a.next=a:(a.next=C.next,C.next=a),v.pending=a,Uo(i,d)}return C=v.interleaved,C===null?(a.next=a,yf(v)):(a.next=C.next,C.next=a),v.interleaved=a,Uo(i,d)}function mc(i,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var v=a.lanes;v&=i.pendingLanes,d|=v,a.lanes=d,kn(i,d)}}function Eh(i,a){var d=i.updateQueue,v=i.alternate;if(v!==null&&(v=v.updateQueue,d===v)){var C=null,E=null;if(d=d.firstBaseUpdate,d!==null){do{var j={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};E===null?C=E=j:E=E.next=j,d=d.next}while(d!==null);E===null?C=E=a:E=E.next=a}else C=E=a;d={baseState:v.baseState,firstBaseUpdate:C,lastBaseUpdate:E,shared:v.shared,effects:v.effects},i.updateQueue=d;return}i=d.lastBaseUpdate,i===null?d.firstBaseUpdate=a:i.next=a,d.lastBaseUpdate=a}function pc(i,a,d,v){var C=i.updateQueue;fi=!1;var E=C.firstBaseUpdate,j=C.lastBaseUpdate,K=C.shared.pending;if(K!==null){C.shared.pending=null;var te=K,he=te.next;te.next=null,j===null?E=he:j.next=he,j=te;var Me=i.alternate;Me!==null&&(Me=Me.updateQueue,K=Me.lastBaseUpdate,K!==j&&(K===null?Me.firstBaseUpdate=he:K.next=he,Me.lastBaseUpdate=te))}if(E!==null){var ke=C.baseState;j=0,Me=he=te=null,K=E;do{var Re=K.lane,ot=K.eventTime;if((v&Re)===Re){Me!==null&&(Me=Me.next={eventTime:ot,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var gt=i,vt=K;switch(Re=a,ot=d,vt.tag){case 1:if(gt=vt.payload,typeof gt=="function"){ke=gt.call(ot,ke,Re);break e}ke=gt;break e;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=vt.payload,Re=typeof gt=="function"?gt.call(ot,ke,Re):gt,Re==null)break e;ke=W({},ke,Re);break e;case 2:fi=!0}}K.callback!==null&&K.lane!==0&&(i.flags|=64,Re=C.effects,Re===null?C.effects=[K]:Re.push(K))}else ot={eventTime:ot,lane:Re,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Me===null?(he=Me=ot,te=ke):Me=Me.next=ot,j|=Re;if(K=K.next,K===null){if(K=C.shared.pending,K===null)break;Re=K,K=Re.next,Re.next=null,C.lastBaseUpdate=Re,C.shared.pending=null}}while(!0);if(Me===null&&(te=ke),C.baseState=te,C.firstBaseUpdate=he,C.lastBaseUpdate=Me,a=C.shared.interleaved,a!==null){C=a;do j|=C.lane,C=C.next;while(C!==a)}else E===null&&(C.shared.lanes=0);Fi|=j,i.lanes=j,i.memoizedState=ke}}function Oh(i,a,d){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var v=i[a],C=v.callback;if(C!==null){if(v.callback=null,v=d,typeof C!="function")throw Error(n(191,C));C.call(v)}}}var zl={},Eo=ci(zl),kl=ci(zl),Ll=ci(zl);function Ai(i){if(i===zl)throw Error(n(174));return i}function Sf(i,a){switch(En(Ll,a),En(kl,i),En(Eo,zl),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:bt(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=bt(a,i)}Rn(Eo),En(Eo,a)}function Ia(){Rn(Eo),Rn(kl),Rn(Ll)}function Ih(i){Ai(Ll.current);var a=Ai(Eo.current),d=bt(a,i.type);a!==d&&(En(kl,i),En(Eo,d))}function xf(i){kl.current===i&&(Rn(Eo),Rn(kl))}var Mn=ci(0);function gc(i){for(var a=i;a!==null;){if(a.tag===13){var d=a.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Cf=[];function wf(){for(var i=0;i<Cf.length;i++)Cf[i]._workInProgressVersionPrimary=null;Cf.length=0}var vc=I.ReactCurrentDispatcher,$f=I.ReactCurrentBatchConfig,Di=0,Nn=null,Xn=null,er=null,hc=!1,Bl=!1,Al=0,vE=0;function pr(){throw Error(n(321))}function Ef(i,a){if(a===null)return!1;for(var d=0;d<a.length&&d<i.length;d++)if(!so(i[d],a[d]))return!1;return!0}function Of(i,a,d,v,C,E){if(Di=E,Nn=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,vc.current=i===null||i.memoizedState===null?SE:xE,i=d(v,C),Bl){E=0;do{if(Bl=!1,Al=0,25<=E)throw Error(n(301));E+=1,er=Xn=null,a.updateQueue=null,vc.current=CE,i=d(v,C)}while(Bl)}if(vc.current=Sc,a=Xn!==null&&Xn.next!==null,Di=0,er=Xn=Nn=null,hc=!1,a)throw Error(n(300));return i}function If(){var i=Al!==0;return Al=0,i}function Oo(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return er===null?Nn.memoizedState=er=i:er=er.next=i,er}function Qr(){if(Xn===null){var i=Nn.alternate;i=i!==null?i.memoizedState:null}else i=Xn.next;var a=er===null?Nn.memoizedState:er.next;if(a!==null)er=a,Xn=i;else{if(i===null)throw Error(n(310));Xn=i,i={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},er===null?Nn.memoizedState=er=i:er=er.next=i}return er}function Dl(i,a){return typeof a=="function"?a(i):a}function Rf(i){var a=Qr(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=i;var v=Xn,C=v.baseQueue,E=d.pending;if(E!==null){if(C!==null){var j=C.next;C.next=E.next,E.next=j}v.baseQueue=C=E,d.pending=null}if(C!==null){E=C.next,v=v.baseState;var K=j=null,te=null,he=E;do{var Me=he.lane;if((Di&Me)===Me)te!==null&&(te=te.next={lane:0,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null}),v=he.hasEagerState?he.eagerState:i(v,he.action);else{var ke={lane:Me,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null};te===null?(K=te=ke,j=v):te=te.next=ke,Nn.lanes|=Me,Fi|=Me}he=he.next}while(he!==null&&he!==E);te===null?j=v:te.next=K,so(v,a.memoizedState)||(_r=!0),a.memoizedState=v,a.baseState=j,a.baseQueue=te,d.lastRenderedState=v}if(i=d.interleaved,i!==null){C=i;do E=C.lane,Nn.lanes|=E,Fi|=E,C=C.next;while(C!==i)}else C===null&&(d.lanes=0);return[a.memoizedState,d.dispatch]}function Pf(i){var a=Qr(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=i;var v=d.dispatch,C=d.pending,E=a.memoizedState;if(C!==null){d.pending=null;var j=C=C.next;do E=i(E,j.action),j=j.next;while(j!==C);so(E,a.memoizedState)||(_r=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),d.lastRenderedState=E}return[E,v]}function Rh(){}function Ph(i,a){var d=Nn,v=Qr(),C=a(),E=!so(v.memoizedState,C);if(E&&(v.memoizedState=C,_r=!0),v=v.queue,Tf(Nh.bind(null,d,v,i),[i]),v.getSnapshot!==a||E||er!==null&&er.memoizedState.tag&1){if(d.flags|=2048,Fl(9,Mh.bind(null,d,v,C,a),void 0,null),tr===null)throw Error(n(349));(Di&30)!==0||Th(d,a,C)}return C}function Th(i,a,d){i.flags|=16384,i={getSnapshot:a,value:d},a=Nn.updateQueue,a===null?(a={lastEffect:null,stores:null},Nn.updateQueue=a,a.stores=[i]):(d=a.stores,d===null?a.stores=[i]:d.push(i))}function Mh(i,a,d,v){a.value=d,a.getSnapshot=v,_h(a)&&jh(i)}function Nh(i,a,d){return d(function(){_h(a)&&jh(i)})}function _h(i){var a=i.getSnapshot;i=i.value;try{var d=a();return!so(i,d)}catch{return!0}}function jh(i){var a=Uo(i,1);a!==null&&po(a,i,1,-1)}function zh(i){var a=Oo();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dl,lastRenderedState:i},a.queue=i,i=i.dispatch=bE.bind(null,Nn,i),[a.memoizedState,i]}function Fl(i,a,d,v){return i={tag:i,create:a,destroy:d,deps:v,next:null},a=Nn.updateQueue,a===null?(a={lastEffect:null,stores:null},Nn.updateQueue=a,a.lastEffect=i.next=i):(d=a.lastEffect,d===null?a.lastEffect=i.next=i:(v=d.next,d.next=i,i.next=v,a.lastEffect=i)),i}function kh(){return Qr().memoizedState}function yc(i,a,d,v){var C=Oo();Nn.flags|=i,C.memoizedState=Fl(1|a,d,void 0,v===void 0?null:v)}function bc(i,a,d,v){var C=Qr();v=v===void 0?null:v;var E=void 0;if(Xn!==null){var j=Xn.memoizedState;if(E=j.destroy,v!==null&&Ef(v,j.deps)){C.memoizedState=Fl(a,d,E,v);return}}Nn.flags|=i,C.memoizedState=Fl(1|a,d,E,v)}function Lh(i,a){return yc(8390656,8,i,a)}function Tf(i,a){return bc(2048,8,i,a)}function Bh(i,a){return bc(4,2,i,a)}function Ah(i,a){return bc(4,4,i,a)}function Dh(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function Fh(i,a,d){return d=d!=null?d.concat([i]):null,bc(4,4,Dh.bind(null,a,i),d)}function Mf(){}function Hh(i,a){var d=Qr();a=a===void 0?null:a;var v=d.memoizedState;return v!==null&&a!==null&&Ef(a,v[1])?v[0]:(d.memoizedState=[i,a],i)}function Vh(i,a){var d=Qr();a=a===void 0?null:a;var v=d.memoizedState;return v!==null&&a!==null&&Ef(a,v[1])?v[0]:(i=i(),d.memoizedState=[i,a],i)}function Wh(i,a,d){return(Di&21)===0?(i.baseState&&(i.baseState=!1,_r=!0),i.memoizedState=d):(so(d,a)||(d=Zt(),Nn.lanes|=d,Fi|=d,i.baseState=!0),a)}function hE(i,a){var d=zt;zt=d!==0&&4>d?d:4,i(!0);var v=$f.transition;$f.transition={};try{i(!1),a()}finally{zt=d,$f.transition=v}}function Uh(){return Qr().memoizedState}function yE(i,a,d){var v=hi(i);if(d={lane:v,action:d,hasEagerState:!1,eagerState:null,next:null},Gh(i))qh(a,d);else if(d=wh(i,a,d,v),d!==null){var C=wr();po(d,i,v,C),Kh(d,a,v)}}function bE(i,a,d){var v=hi(i),C={lane:v,action:d,hasEagerState:!1,eagerState:null,next:null};if(Gh(i))qh(a,C);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var j=a.lastRenderedState,K=E(j,d);if(C.hasEagerState=!0,C.eagerState=K,so(K,j)){var te=a.interleaved;te===null?(C.next=C,yf(a)):(C.next=te.next,te.next=C),a.interleaved=C;return}}catch{}finally{}d=wh(i,a,C,v),d!==null&&(C=wr(),po(d,i,v,C),Kh(d,a,v))}}function Gh(i){var a=i.alternate;return i===Nn||a!==null&&a===Nn}function qh(i,a){Bl=hc=!0;var d=i.pending;d===null?a.next=a:(a.next=d.next,d.next=a),i.pending=a}function Kh(i,a,d){if((d&4194240)!==0){var v=a.lanes;v&=i.pendingLanes,d|=v,a.lanes=d,kn(i,d)}}var Sc={readContext:Xr,useCallback:pr,useContext:pr,useEffect:pr,useImperativeHandle:pr,useInsertionEffect:pr,useLayoutEffect:pr,useMemo:pr,useReducer:pr,useRef:pr,useState:pr,useDebugValue:pr,useDeferredValue:pr,useTransition:pr,useMutableSource:pr,useSyncExternalStore:pr,useId:pr,unstable_isNewReconciler:!1},SE={readContext:Xr,useCallback:function(i,a){return Oo().memoizedState=[i,a===void 0?null:a],i},useContext:Xr,useEffect:Lh,useImperativeHandle:function(i,a,d){return d=d!=null?d.concat([i]):null,yc(4194308,4,Dh.bind(null,a,i),d)},useLayoutEffect:function(i,a){return yc(4194308,4,i,a)},useInsertionEffect:function(i,a){return yc(4,2,i,a)},useMemo:function(i,a){var d=Oo();return a=a===void 0?null:a,i=i(),d.memoizedState=[i,a],i},useReducer:function(i,a,d){var v=Oo();return a=d!==void 0?d(a):a,v.memoizedState=v.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},v.queue=i,i=i.dispatch=yE.bind(null,Nn,i),[v.memoizedState,i]},useRef:function(i){var a=Oo();return i={current:i},a.memoizedState=i},useState:zh,useDebugValue:Mf,useDeferredValue:function(i){return Oo().memoizedState=i},useTransition:function(){var i=zh(!1),a=i[0];return i=hE.bind(null,i[1]),Oo().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,d){var v=Nn,C=Oo();if(Pn){if(d===void 0)throw Error(n(407));d=d()}else{if(d=a(),tr===null)throw Error(n(349));(Di&30)!==0||Th(v,a,d)}C.memoizedState=d;var E={value:d,getSnapshot:a};return C.queue=E,Lh(Nh.bind(null,v,E,i),[i]),v.flags|=2048,Fl(9,Mh.bind(null,v,E,d,a),void 0,null),d},useId:function(){var i=Oo(),a=tr.identifierPrefix;if(Pn){var d=Wo,v=Vo;d=(v&~(1<<32-wn(v)-1)).toString(32)+d,a=":"+a+"R"+d,d=Al++,0<d&&(a+="H"+d.toString(32)),a+=":"}else d=vE++,a=":"+a+"r"+d.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},xE={readContext:Xr,useCallback:Hh,useContext:Xr,useEffect:Tf,useImperativeHandle:Fh,useInsertionEffect:Bh,useLayoutEffect:Ah,useMemo:Vh,useReducer:Rf,useRef:kh,useState:function(){return Rf(Dl)},useDebugValue:Mf,useDeferredValue:function(i){var a=Qr();return Wh(a,Xn.memoizedState,i)},useTransition:function(){var i=Rf(Dl)[0],a=Qr().memoizedState;return[i,a]},useMutableSource:Rh,useSyncExternalStore:Ph,useId:Uh,unstable_isNewReconciler:!1},CE={readContext:Xr,useCallback:Hh,useContext:Xr,useEffect:Tf,useImperativeHandle:Fh,useInsertionEffect:Bh,useLayoutEffect:Ah,useMemo:Vh,useReducer:Pf,useRef:kh,useState:function(){return Pf(Dl)},useDebugValue:Mf,useDeferredValue:function(i){var a=Qr();return Xn===null?a.memoizedState=i:Wh(a,Xn.memoizedState,i)},useTransition:function(){var i=Pf(Dl)[0],a=Qr().memoizedState;return[i,a]},useMutableSource:Rh,useSyncExternalStore:Ph,useId:Uh,unstable_isNewReconciler:!1};function uo(i,a){if(i&&i.defaultProps){a=W({},a),i=i.defaultProps;for(var d in i)a[d]===void 0&&(a[d]=i[d]);return a}return a}function Nf(i,a,d,v){a=i.memoizedState,d=d(v,a),d=d==null?a:W({},a,d),i.memoizedState=d,i.lanes===0&&(i.updateQueue.baseState=d)}var xc={isMounted:function(i){return(i=i._reactInternals)?Pt(i)===i:!1},enqueueSetState:function(i,a,d){i=i._reactInternals;var v=wr(),C=hi(i),E=Go(v,C);E.payload=a,d!=null&&(E.callback=d),a=mi(i,E,C),a!==null&&(po(a,i,C,v),mc(a,i,C))},enqueueReplaceState:function(i,a,d){i=i._reactInternals;var v=wr(),C=hi(i),E=Go(v,C);E.tag=1,E.payload=a,d!=null&&(E.callback=d),a=mi(i,E,C),a!==null&&(po(a,i,C,v),mc(a,i,C))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var d=wr(),v=hi(i),C=Go(d,v);C.tag=2,a!=null&&(C.callback=a),a=mi(i,C,v),a!==null&&(po(a,i,v,d),mc(a,i,v))}};function Xh(i,a,d,v,C,E,j){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(v,E,j):a.prototype&&a.prototype.isPureReactComponent?!Il(d,v)||!Il(C,E):!0}function Qh(i,a,d){var v=!1,C=ui,E=a.contextType;return typeof E=="object"&&E!==null?E=Xr(E):(C=Nr(a)?zi:mr.current,v=a.contextTypes,E=(v=v!=null)?Sa(i,C):ui),a=new a(d,E),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=xc,i.stateNode=a,a._reactInternals=i,v&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=C,i.__reactInternalMemoizedMaskedChildContext=E),a}function Yh(i,a,d,v){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,v),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,v),a.state!==i&&xc.enqueueReplaceState(a,a.state,null)}function _f(i,a,d,v){var C=i.stateNode;C.props=d,C.state=i.memoizedState,C.refs={},bf(i);var E=a.contextType;typeof E=="object"&&E!==null?C.context=Xr(E):(E=Nr(a)?zi:mr.current,C.context=Sa(i,E)),C.state=i.memoizedState,E=a.getDerivedStateFromProps,typeof E=="function"&&(Nf(i,a,E,d),C.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(a=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),a!==C.state&&xc.enqueueReplaceState(C,C.state,null),pc(i,d,C,v),C.state=i.memoizedState),typeof C.componentDidMount=="function"&&(i.flags|=4194308)}function Ra(i,a){try{var d="",v=a;do d+=ee(v),v=v.return;while(v);var C=d}catch(E){C=`
|
|
39
|
-
Error generating stack: `+E.message+`
|
|
40
|
-
`+E.stack}return{value:i,source:a,stack:C,digest:null}}function jf(i,a,d){return{value:i,source:null,stack:d??null,digest:a??null}}function zf(i,a){try{console.error(a.value)}catch(d){setTimeout(function(){throw d})}}var wE=typeof WeakMap=="function"?WeakMap:Map;function Zh(i,a,d){d=Go(-1,d),d.tag=3,d.payload={element:null};var v=a.value;return d.callback=function(){Rc||(Rc=!0,Qf=v),zf(i,a)},d}function Jh(i,a,d){d=Go(-1,d),d.tag=3;var v=i.type.getDerivedStateFromError;if(typeof v=="function"){var C=a.value;d.payload=function(){return v(C)},d.callback=function(){zf(i,a)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(d.callback=function(){zf(i,a),typeof v!="function"&&(gi===null?gi=new Set([this]):gi.add(this));var j=a.stack;this.componentDidCatch(a.value,{componentStack:j!==null?j:""})}),d}function e0(i,a,d){var v=i.pingCache;if(v===null){v=i.pingCache=new wE;var C=new Set;v.set(a,C)}else C=v.get(a),C===void 0&&(C=new Set,v.set(a,C));C.has(d)||(C.add(d),i=LE.bind(null,i,a,d),a.then(i,i))}function t0(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function n0(i,a,d,v,C){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(a=Go(-1,1),a.tag=2,mi(d,a,1))),d.lanes|=1),i):(i.flags|=65536,i.lanes=C,i)}var $E=I.ReactCurrentOwner,_r=!1;function Cr(i,a,d,v){a.child=i===null?Ch(a,null,d,v):$a(a,i.child,d,v)}function r0(i,a,d,v,C){d=d.render;var E=a.ref;return Oa(a,C),v=Of(i,a,d,v,E,C),d=If(),i!==null&&!_r?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~C,qo(i,a,C)):(Pn&&d&&cf(a),a.flags|=1,Cr(i,a,v,C),a.child)}function o0(i,a,d,v,C){if(i===null){var E=d.type;return typeof E=="function"&&!rm(E)&&E.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(a.tag=15,a.type=E,i0(i,a,E,v,C)):(i=jc(d.type,null,v,a,a.mode,C),i.ref=a.ref,i.return=a,a.child=i)}if(E=i.child,(i.lanes&C)===0){var j=E.memoizedProps;if(d=d.compare,d=d!==null?d:Il,d(j,v)&&i.ref===a.ref)return qo(i,a,C)}return a.flags|=1,i=bi(E,v),i.ref=a.ref,i.return=a,a.child=i}function i0(i,a,d,v,C){if(i!==null){var E=i.memoizedProps;if(Il(E,v)&&i.ref===a.ref)if(_r=!1,a.pendingProps=v=E,(i.lanes&C)!==0)(i.flags&131072)!==0&&(_r=!0);else return a.lanes=i.lanes,qo(i,a,C)}return kf(i,a,d,v,C)}function a0(i,a,d){var v=a.pendingProps,C=v.children,E=i!==null?i.memoizedState:null;if(v.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},En(Ta,Fr),Fr|=d;else{if((d&1073741824)===0)return i=E!==null?E.baseLanes|d:d,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,En(Ta,Fr),Fr|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=E!==null?E.baseLanes:d,En(Ta,Fr),Fr|=v}else E!==null?(v=E.baseLanes|d,a.memoizedState=null):v=d,En(Ta,Fr),Fr|=v;return Cr(i,a,C,d),a.child}function l0(i,a){var d=a.ref;(i===null&&d!==null||i!==null&&i.ref!==d)&&(a.flags|=512,a.flags|=2097152)}function kf(i,a,d,v,C){var E=Nr(d)?zi:mr.current;return E=Sa(a,E),Oa(a,C),d=Of(i,a,d,v,E,C),v=If(),i!==null&&!_r?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~C,qo(i,a,C)):(Pn&&v&&cf(a),a.flags|=1,Cr(i,a,d,C),a.child)}function s0(i,a,d,v,C){if(Nr(d)){var E=!0;ic(a)}else E=!1;if(Oa(a,C),a.stateNode===null)wc(i,a),Qh(a,d,v),_f(a,d,v,C),v=!0;else if(i===null){var j=a.stateNode,K=a.memoizedProps;j.props=K;var te=j.context,he=d.contextType;typeof he=="object"&&he!==null?he=Xr(he):(he=Nr(d)?zi:mr.current,he=Sa(a,he));var Me=d.getDerivedStateFromProps,ke=typeof Me=="function"||typeof j.getSnapshotBeforeUpdate=="function";ke||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(K!==v||te!==he)&&Yh(a,j,v,he),fi=!1;var Re=a.memoizedState;j.state=Re,pc(a,v,j,C),te=a.memoizedState,K!==v||Re!==te||Mr.current||fi?(typeof Me=="function"&&(Nf(a,d,Me,v),te=a.memoizedState),(K=fi||Xh(a,d,K,v,Re,te,he))?(ke||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(a.flags|=4194308)):(typeof j.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=v,a.memoizedState=te),j.props=v,j.state=te,j.context=he,v=K):(typeof j.componentDidMount=="function"&&(a.flags|=4194308),v=!1)}else{j=a.stateNode,$h(i,a),K=a.memoizedProps,he=a.type===a.elementType?K:uo(a.type,K),j.props=he,ke=a.pendingProps,Re=j.context,te=d.contextType,typeof te=="object"&&te!==null?te=Xr(te):(te=Nr(d)?zi:mr.current,te=Sa(a,te));var ot=d.getDerivedStateFromProps;(Me=typeof ot=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(K!==ke||Re!==te)&&Yh(a,j,v,te),fi=!1,Re=a.memoizedState,j.state=Re,pc(a,v,j,C);var gt=a.memoizedState;K!==ke||Re!==gt||Mr.current||fi?(typeof ot=="function"&&(Nf(a,d,ot,v),gt=a.memoizedState),(he=fi||Xh(a,d,he,v,Re,gt,te)||!1)?(Me||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(v,gt,te),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(v,gt,te)),typeof j.componentDidUpdate=="function"&&(a.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof j.componentDidUpdate!="function"||K===i.memoizedProps&&Re===i.memoizedState||(a.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||K===i.memoizedProps&&Re===i.memoizedState||(a.flags|=1024),a.memoizedProps=v,a.memoizedState=gt),j.props=v,j.state=gt,j.context=te,v=he):(typeof j.componentDidUpdate!="function"||K===i.memoizedProps&&Re===i.memoizedState||(a.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||K===i.memoizedProps&&Re===i.memoizedState||(a.flags|=1024),v=!1)}return Lf(i,a,d,v,E,C)}function Lf(i,a,d,v,C,E){l0(i,a);var j=(a.flags&128)!==0;if(!v&&!j)return C&&mh(a,d,!1),qo(i,a,E);v=a.stateNode,$E.current=a;var K=j&&typeof d.getDerivedStateFromError!="function"?null:v.render();return a.flags|=1,i!==null&&j?(a.child=$a(a,i.child,null,E),a.child=$a(a,null,K,E)):Cr(i,a,K,E),a.memoizedState=v.state,C&&mh(a,d,!0),a.child}function c0(i){var a=i.stateNode;a.pendingContext?dh(i,a.pendingContext,a.pendingContext!==a.context):a.context&&dh(i,a.context,!1),Sf(i,a.containerInfo)}function u0(i,a,d,v,C){return wa(),mf(C),a.flags|=256,Cr(i,a,d,v),a.child}var Bf={dehydrated:null,treeContext:null,retryLane:0};function Af(i){return{baseLanes:i,cachePool:null,transitions:null}}function d0(i,a,d){var v=a.pendingProps,C=Mn.current,E=!1,j=(a.flags&128)!==0,K;if((K=j)||(K=i!==null&&i.memoizedState===null?!1:(C&2)!==0),K?(E=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(C|=1),En(Mn,C&1),i===null)return ff(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((a.mode&1)===0?a.lanes=1:i.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(j=v.children,i=v.fallback,E?(v=a.mode,E=a.child,j={mode:"hidden",children:j},(v&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=j):E=zc(j,v,0,null),i=Ui(i,v,d,null),E.return=a,i.return=a,E.sibling=i,a.child=E,a.child.memoizedState=Af(d),a.memoizedState=Bf,i):Df(a,j));if(C=i.memoizedState,C!==null&&(K=C.dehydrated,K!==null))return EE(i,a,j,v,K,C,d);if(E){E=v.fallback,j=a.mode,C=i.child,K=C.sibling;var te={mode:"hidden",children:v.children};return(j&1)===0&&a.child!==C?(v=a.child,v.childLanes=0,v.pendingProps=te,a.deletions=null):(v=bi(C,te),v.subtreeFlags=C.subtreeFlags&14680064),K!==null?E=bi(K,E):(E=Ui(E,j,d,null),E.flags|=2),E.return=a,v.return=a,v.sibling=E,a.child=v,v=E,E=a.child,j=i.child.memoizedState,j=j===null?Af(d):{baseLanes:j.baseLanes|d,cachePool:null,transitions:j.transitions},E.memoizedState=j,E.childLanes=i.childLanes&~d,a.memoizedState=Bf,v}return E=i.child,i=E.sibling,v=bi(E,{mode:"visible",children:v.children}),(a.mode&1)===0&&(v.lanes=d),v.return=a,v.sibling=null,i!==null&&(d=a.deletions,d===null?(a.deletions=[i],a.flags|=16):d.push(i)),a.child=v,a.memoizedState=null,v}function Df(i,a){return a=zc({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function Cc(i,a,d,v){return v!==null&&mf(v),$a(a,i.child,null,d),i=Df(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function EE(i,a,d,v,C,E,j){if(d)return a.flags&256?(a.flags&=-257,v=jf(Error(n(422))),Cc(i,a,j,v)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(E=v.fallback,C=a.mode,v=zc({mode:"visible",children:v.children},C,0,null),E=Ui(E,C,j,null),E.flags|=2,v.return=a,E.return=a,v.sibling=E,a.child=v,(a.mode&1)!==0&&$a(a,i.child,null,j),a.child.memoizedState=Af(j),a.memoizedState=Bf,E);if((a.mode&1)===0)return Cc(i,a,j,null);if(C.data==="$!"){if(v=C.nextSibling&&C.nextSibling.dataset,v)var K=v.dgst;return v=K,E=Error(n(419)),v=jf(E,v,void 0),Cc(i,a,j,v)}if(K=(j&i.childLanes)!==0,_r||K){if(v=tr,v!==null){switch(j&-j){case 4:C=2;break;case 16:C=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:C=32;break;case 536870912:C=268435456;break;default:C=0}C=(C&(v.suspendedLanes|j))!==0?0:C,C!==0&&C!==E.retryLane&&(E.retryLane=C,Uo(i,C),po(v,i,C,-1))}return nm(),v=jf(Error(n(421))),Cc(i,a,j,v)}return C.data==="$?"?(a.flags|=128,a.child=i.child,a=BE.bind(null,i),C._reactRetry=a,null):(i=E.treeContext,Dr=si(C.nextSibling),Ar=a,Pn=!0,co=null,i!==null&&(qr[Kr++]=Vo,qr[Kr++]=Wo,qr[Kr++]=ki,Vo=i.id,Wo=i.overflow,ki=a),a=Df(a,v.children),a.flags|=4096,a)}function f0(i,a,d){i.lanes|=a;var v=i.alternate;v!==null&&(v.lanes|=a),hf(i.return,a,d)}function Ff(i,a,d,v,C){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:v,tail:d,tailMode:C}:(E.isBackwards=a,E.rendering=null,E.renderingStartTime=0,E.last=v,E.tail=d,E.tailMode=C)}function m0(i,a,d){var v=a.pendingProps,C=v.revealOrder,E=v.tail;if(Cr(i,a,v.children,d),v=Mn.current,(v&2)!==0)v=v&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&f0(i,d,a);else if(i.tag===19)f0(i,d,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}v&=1}if(En(Mn,v),(a.mode&1)===0)a.memoizedState=null;else switch(C){case"forwards":for(d=a.child,C=null;d!==null;)i=d.alternate,i!==null&&gc(i)===null&&(C=d),d=d.sibling;d=C,d===null?(C=a.child,a.child=null):(C=d.sibling,d.sibling=null),Ff(a,!1,C,d,E);break;case"backwards":for(d=null,C=a.child,a.child=null;C!==null;){if(i=C.alternate,i!==null&&gc(i)===null){a.child=C;break}i=C.sibling,C.sibling=d,d=C,C=i}Ff(a,!0,d,null,E);break;case"together":Ff(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function wc(i,a){(a.mode&1)===0&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function qo(i,a,d){if(i!==null&&(a.dependencies=i.dependencies),Fi|=a.lanes,(d&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,d=bi(i,i.pendingProps),a.child=d,d.return=a;i.sibling!==null;)i=i.sibling,d=d.sibling=bi(i,i.pendingProps),d.return=a;d.sibling=null}return a.child}function OE(i,a,d){switch(a.tag){case 3:c0(a),wa();break;case 5:Ih(a);break;case 1:Nr(a.type)&&ic(a);break;case 4:Sf(a,a.stateNode.containerInfo);break;case 10:var v=a.type._context,C=a.memoizedProps.value;En(dc,v._currentValue),v._currentValue=C;break;case 13:if(v=a.memoizedState,v!==null)return v.dehydrated!==null?(En(Mn,Mn.current&1),a.flags|=128,null):(d&a.child.childLanes)!==0?d0(i,a,d):(En(Mn,Mn.current&1),i=qo(i,a,d),i!==null?i.sibling:null);En(Mn,Mn.current&1);break;case 19:if(v=(d&a.childLanes)!==0,(i.flags&128)!==0){if(v)return m0(i,a,d);a.flags|=128}if(C=a.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),En(Mn,Mn.current),v)break;return null;case 22:case 23:return a.lanes=0,a0(i,a,d)}return qo(i,a,d)}var p0,Hf,g0,v0;p0=function(i,a){for(var d=a.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},Hf=function(){},g0=function(i,a,d,v){var C=i.memoizedProps;if(C!==v){i=a.stateNode,Ai(Eo.current);var E=null;switch(d){case"input":C=ve(i,C),v=ve(i,v),E=[];break;case"select":C=W({},C,{value:void 0}),v=W({},v,{value:void 0}),E=[];break;case"textarea":C=Pe(i,C),v=Pe(i,v),E=[];break;default:typeof C.onClick!="function"&&typeof v.onClick=="function"&&(i.onclick=nc)}Te(d,v);var j;d=null;for(he in C)if(!v.hasOwnProperty(he)&&C.hasOwnProperty(he)&&C[he]!=null)if(he==="style"){var K=C[he];for(j in K)K.hasOwnProperty(j)&&(d||(d={}),d[j]="")}else he!=="dangerouslySetInnerHTML"&&he!=="children"&&he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&he!=="autoFocus"&&(o.hasOwnProperty(he)?E||(E=[]):(E=E||[]).push(he,null));for(he in v){var te=v[he];if(K=C!=null?C[he]:void 0,v.hasOwnProperty(he)&&te!==K&&(te!=null||K!=null))if(he==="style")if(K){for(j in K)!K.hasOwnProperty(j)||te&&te.hasOwnProperty(j)||(d||(d={}),d[j]="");for(j in te)te.hasOwnProperty(j)&&K[j]!==te[j]&&(d||(d={}),d[j]=te[j])}else d||(E||(E=[]),E.push(he,d)),d=te;else he==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,K=K?K.__html:void 0,te!=null&&K!==te&&(E=E||[]).push(he,te)):he==="children"?typeof te!="string"&&typeof te!="number"||(E=E||[]).push(he,""+te):he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&(o.hasOwnProperty(he)?(te!=null&&he==="onScroll"&&In("scroll",i),E||K===te||(E=[])):(E=E||[]).push(he,te))}d&&(E=E||[]).push("style",d);var he=E;(a.updateQueue=he)&&(a.flags|=4)}},v0=function(i,a,d,v){d!==v&&(a.flags|=4)};function Hl(i,a){if(!Pn)switch(i.tailMode){case"hidden":a=i.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i.tail=null:d.sibling=null;break;case"collapsed":d=i.tail;for(var v=null;d!==null;)d.alternate!==null&&(v=d),d=d.sibling;v===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:v.sibling=null}}function gr(i){var a=i.alternate!==null&&i.alternate.child===i.child,d=0,v=0;if(a)for(var C=i.child;C!==null;)d|=C.lanes|C.childLanes,v|=C.subtreeFlags&14680064,v|=C.flags&14680064,C.return=i,C=C.sibling;else for(C=i.child;C!==null;)d|=C.lanes|C.childLanes,v|=C.subtreeFlags,v|=C.flags,C.return=i,C=C.sibling;return i.subtreeFlags|=v,i.childLanes=d,a}function IE(i,a,d){var v=a.pendingProps;switch(uf(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gr(a),null;case 1:return Nr(a.type)&&oc(),gr(a),null;case 3:return v=a.stateNode,Ia(),Rn(Mr),Rn(mr),wf(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(i===null||i.child===null)&&(cc(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,co!==null&&(Jf(co),co=null))),Hf(i,a),gr(a),null;case 5:xf(a);var C=Ai(Ll.current);if(d=a.type,i!==null&&a.stateNode!=null)g0(i,a,d,v,C),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!v){if(a.stateNode===null)throw Error(n(166));return gr(a),null}if(i=Ai(Eo.current),cc(a)){v=a.stateNode,d=a.type;var E=a.memoizedProps;switch(v[$o]=a,v[Nl]=E,i=(a.mode&1)!==0,d){case"dialog":In("cancel",v),In("close",v);break;case"iframe":case"object":case"embed":In("load",v);break;case"video":case"audio":for(C=0;C<Pl.length;C++)In(Pl[C],v);break;case"source":In("error",v);break;case"img":case"image":case"link":In("error",v),In("load",v);break;case"details":In("toggle",v);break;case"input":ce(v,E),In("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!E.multiple},In("invalid",v);break;case"textarea":Be(v,E),In("invalid",v)}Te(d,E),C=null;for(var j in E)if(E.hasOwnProperty(j)){var K=E[j];j==="children"?typeof K=="string"?v.textContent!==K&&(E.suppressHydrationWarning!==!0&&tc(v.textContent,K,i),C=["children",K]):typeof K=="number"&&v.textContent!==""+K&&(E.suppressHydrationWarning!==!0&&tc(v.textContent,K,i),C=["children",""+K]):o.hasOwnProperty(j)&&K!=null&&j==="onScroll"&&In("scroll",v)}switch(d){case"input":pe(v),xe(v,E,!0);break;case"textarea":pe(v),tt(v);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(v.onclick=nc)}v=C,a.updateQueue=v,v!==null&&(a.flags|=4)}else{j=C.nodeType===9?C:C.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=lt(d)),i==="http://www.w3.org/1999/xhtml"?d==="script"?(i=j.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof v.is=="string"?i=j.createElement(d,{is:v.is}):(i=j.createElement(d),d==="select"&&(j=i,v.multiple?j.multiple=!0:v.size&&(j.size=v.size))):i=j.createElementNS(i,d),i[$o]=a,i[Nl]=v,p0(i,a,!1,!1),a.stateNode=i;e:{switch(j=Fe(d,v),d){case"dialog":In("cancel",i),In("close",i),C=v;break;case"iframe":case"object":case"embed":In("load",i),C=v;break;case"video":case"audio":for(C=0;C<Pl.length;C++)In(Pl[C],i);C=v;break;case"source":In("error",i),C=v;break;case"img":case"image":case"link":In("error",i),In("load",i),C=v;break;case"details":In("toggle",i),C=v;break;case"input":ce(i,v),C=ve(i,v),In("invalid",i);break;case"option":C=v;break;case"select":i._wrapperState={wasMultiple:!!v.multiple},C=W({},v,{value:void 0}),In("invalid",i);break;case"textarea":Be(i,v),C=Pe(i,v),In("invalid",i);break;default:C=v}Te(d,C),K=C;for(E in K)if(K.hasOwnProperty(E)){var te=K[E];E==="style"?_e(i,te):E==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,te!=null&&Ge(i,te)):E==="children"?typeof te=="string"?(d!=="textarea"||te!=="")&&it(i,te):typeof te=="number"&&it(i,""+te):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?te!=null&&E==="onScroll"&&In("scroll",i):te!=null&&O(i,E,te,j))}switch(d){case"input":pe(i),xe(i,v,!1);break;case"textarea":pe(i),tt(i);break;case"option":v.value!=null&&i.setAttribute("value",""+me(v.value));break;case"select":i.multiple=!!v.multiple,E=v.value,E!=null?Le(i,!!v.multiple,E,!1):v.defaultValue!=null&&Le(i,!!v.multiple,v.defaultValue,!0);break;default:typeof C.onClick=="function"&&(i.onclick=nc)}switch(d){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return gr(a),null;case 6:if(i&&a.stateNode!=null)v0(i,a,i.memoizedProps,v);else{if(typeof v!="string"&&a.stateNode===null)throw Error(n(166));if(d=Ai(Ll.current),Ai(Eo.current),cc(a)){if(v=a.stateNode,d=a.memoizedProps,v[$o]=a,(E=v.nodeValue!==d)&&(i=Ar,i!==null))switch(i.tag){case 3:tc(v.nodeValue,d,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&tc(v.nodeValue,d,(i.mode&1)!==0)}E&&(a.flags|=4)}else v=(d.nodeType===9?d:d.ownerDocument).createTextNode(v),v[$o]=a,a.stateNode=v}return gr(a),null;case 13:if(Rn(Mn),v=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(Pn&&Dr!==null&&(a.mode&1)!==0&&(a.flags&128)===0)bh(),wa(),a.flags|=98560,E=!1;else if(E=cc(a),v!==null&&v.dehydrated!==null){if(i===null){if(!E)throw Error(n(318));if(E=a.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(n(317));E[$o]=a}else wa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;gr(a),E=!1}else co!==null&&(Jf(co),co=null),E=!0;if(!E)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=d,a):(v=v!==null,v!==(i!==null&&i.memoizedState!==null)&&v&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(Mn.current&1)!==0?Qn===0&&(Qn=3):nm())),a.updateQueue!==null&&(a.flags|=4),gr(a),null);case 4:return Ia(),Hf(i,a),i===null&&Tl(a.stateNode.containerInfo),gr(a),null;case 10:return vf(a.type._context),gr(a),null;case 17:return Nr(a.type)&&oc(),gr(a),null;case 19:if(Rn(Mn),E=a.memoizedState,E===null)return gr(a),null;if(v=(a.flags&128)!==0,j=E.rendering,j===null)if(v)Hl(E,!1);else{if(Qn!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(j=gc(i),j!==null){for(a.flags|=128,Hl(E,!1),v=j.updateQueue,v!==null&&(a.updateQueue=v,a.flags|=4),a.subtreeFlags=0,v=d,d=a.child;d!==null;)E=d,i=v,E.flags&=14680066,j=E.alternate,j===null?(E.childLanes=0,E.lanes=i,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=j.childLanes,E.lanes=j.lanes,E.child=j.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=j.memoizedProps,E.memoizedState=j.memoizedState,E.updateQueue=j.updateQueue,E.type=j.type,i=j.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),d=d.sibling;return En(Mn,Mn.current&1|2),a.child}i=i.sibling}E.tail!==null&&ct()>Ma&&(a.flags|=128,v=!0,Hl(E,!1),a.lanes=4194304)}else{if(!v)if(i=gc(j),i!==null){if(a.flags|=128,v=!0,d=i.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),Hl(E,!0),E.tail===null&&E.tailMode==="hidden"&&!j.alternate&&!Pn)return gr(a),null}else 2*ct()-E.renderingStartTime>Ma&&d!==1073741824&&(a.flags|=128,v=!0,Hl(E,!1),a.lanes=4194304);E.isBackwards?(j.sibling=a.child,a.child=j):(d=E.last,d!==null?d.sibling=j:a.child=j,E.last=j)}return E.tail!==null?(a=E.tail,E.rendering=a,E.tail=a.sibling,E.renderingStartTime=ct(),a.sibling=null,d=Mn.current,En(Mn,v?d&1|2:d&1),a):(gr(a),null);case 22:case 23:return tm(),v=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==v&&(a.flags|=8192),v&&(a.mode&1)!==0?(Fr&1073741824)!==0&&(gr(a),a.subtreeFlags&6&&(a.flags|=8192)):gr(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function RE(i,a){switch(uf(a),a.tag){case 1:return Nr(a.type)&&oc(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return Ia(),Rn(Mr),Rn(mr),wf(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return xf(a),null;case 13:if(Rn(Mn),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));wa()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return Rn(Mn),null;case 4:return Ia(),null;case 10:return vf(a.type._context),null;case 22:case 23:return tm(),null;case 24:return null;default:return null}}var $c=!1,vr=!1,PE=typeof WeakSet=="function"?WeakSet:Set,ft=null;function Pa(i,a){var d=i.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(v){jn(i,a,v)}else d.current=null}function Vf(i,a,d){try{d()}catch(v){jn(i,a,v)}}var h0=!1;function TE(i,a){if(ef=Ws,i=Xv(),Gd(i)){if("selectionStart"in i)var d={start:i.selectionStart,end:i.selectionEnd};else e:{d=(d=i.ownerDocument)&&d.defaultView||window;var v=d.getSelection&&d.getSelection();if(v&&v.rangeCount!==0){d=v.anchorNode;var C=v.anchorOffset,E=v.focusNode;v=v.focusOffset;try{d.nodeType,E.nodeType}catch{d=null;break e}var j=0,K=-1,te=-1,he=0,Me=0,ke=i,Re=null;t:for(;;){for(var ot;ke!==d||C!==0&&ke.nodeType!==3||(K=j+C),ke!==E||v!==0&&ke.nodeType!==3||(te=j+v),ke.nodeType===3&&(j+=ke.nodeValue.length),(ot=ke.firstChild)!==null;)Re=ke,ke=ot;for(;;){if(ke===i)break t;if(Re===d&&++he===C&&(K=j),Re===E&&++Me===v&&(te=j),(ot=ke.nextSibling)!==null)break;ke=Re,Re=ke.parentNode}ke=ot}d=K===-1||te===-1?null:{start:K,end:te}}else d=null}d=d||{start:0,end:0}}else d=null;for(tf={focusedElem:i,selectionRange:d},Ws=!1,ft=a;ft!==null;)if(a=ft,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,ft=i;else for(;ft!==null;){a=ft;try{var gt=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(gt!==null){var vt=gt.memoizedProps,Ln=gt.memoizedState,de=a.stateNode,ie=de.getSnapshotBeforeUpdate(a.elementType===a.type?vt:uo(a.type,vt),Ln);de.__reactInternalSnapshotBeforeUpdate=ie}break;case 3:var ge=a.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(De){jn(a,a.return,De)}if(i=a.sibling,i!==null){i.return=a.return,ft=i;break}ft=a.return}return gt=h0,h0=!1,gt}function Vl(i,a,d){var v=a.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var C=v=v.next;do{if((C.tag&i)===i){var E=C.destroy;C.destroy=void 0,E!==void 0&&Vf(a,d,E)}C=C.next}while(C!==v)}}function Ec(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&i)===i){var v=d.create;d.destroy=v()}d=d.next}while(d!==a)}}function Wf(i){var a=i.ref;if(a!==null){var d=i.stateNode;switch(i.tag){case 5:i=d;break;default:i=d}typeof a=="function"?a(i):a.current=i}}function y0(i){var a=i.alternate;a!==null&&(i.alternate=null,y0(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[$o],delete a[Nl],delete a[af],delete a[fE],delete a[mE])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function b0(i){return i.tag===5||i.tag===3||i.tag===4}function S0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||b0(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Uf(i,a,d){var v=i.tag;if(v===5||v===6)i=i.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(i,a):d.insertBefore(i,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(i,d)):(a=d,a.appendChild(i)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=nc));else if(v!==4&&(i=i.child,i!==null))for(Uf(i,a,d),i=i.sibling;i!==null;)Uf(i,a,d),i=i.sibling}function Gf(i,a,d){var v=i.tag;if(v===5||v===6)i=i.stateNode,a?d.insertBefore(i,a):d.appendChild(i);else if(v!==4&&(i=i.child,i!==null))for(Gf(i,a,d),i=i.sibling;i!==null;)Gf(i,a,d),i=i.sibling}var ar=null,fo=!1;function pi(i,a,d){for(d=d.child;d!==null;)x0(i,a,d),d=d.sibling}function x0(i,a,d){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount($t,d)}catch{}switch(d.tag){case 5:vr||Pa(d,a);case 6:var v=ar,C=fo;ar=null,pi(i,a,d),ar=v,fo=C,ar!==null&&(fo?(i=ar,d=d.stateNode,i.nodeType===8?i.parentNode.removeChild(d):i.removeChild(d)):ar.removeChild(d.stateNode));break;case 18:ar!==null&&(fo?(i=ar,d=d.stateNode,i.nodeType===8?of(i.parentNode,d):i.nodeType===1&&of(i,d),ii(i)):of(ar,d.stateNode));break;case 4:v=ar,C=fo,ar=d.stateNode.containerInfo,fo=!0,pi(i,a,d),ar=v,fo=C;break;case 0:case 11:case 14:case 15:if(!vr&&(v=d.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){C=v=v.next;do{var E=C,j=E.destroy;E=E.tag,j!==void 0&&((E&2)!==0||(E&4)!==0)&&Vf(d,a,j),C=C.next}while(C!==v)}pi(i,a,d);break;case 1:if(!vr&&(Pa(d,a),v=d.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=d.memoizedProps,v.state=d.memoizedState,v.componentWillUnmount()}catch(K){jn(d,a,K)}pi(i,a,d);break;case 21:pi(i,a,d);break;case 22:d.mode&1?(vr=(v=vr)||d.memoizedState!==null,pi(i,a,d),vr=v):pi(i,a,d);break;default:pi(i,a,d)}}function C0(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var d=i.stateNode;d===null&&(d=i.stateNode=new PE),a.forEach(function(v){var C=AE.bind(null,i,v);d.has(v)||(d.add(v),v.then(C,C))})}}function mo(i,a){var d=a.deletions;if(d!==null)for(var v=0;v<d.length;v++){var C=d[v];try{var E=i,j=a,K=j;e:for(;K!==null;){switch(K.tag){case 5:ar=K.stateNode,fo=!1;break e;case 3:ar=K.stateNode.containerInfo,fo=!0;break e;case 4:ar=K.stateNode.containerInfo,fo=!0;break e}K=K.return}if(ar===null)throw Error(n(160));x0(E,j,C),ar=null,fo=!1;var te=C.alternate;te!==null&&(te.return=null),C.return=null}catch(he){jn(C,a,he)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)w0(a,i),a=a.sibling}function w0(i,a){var d=i.alternate,v=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(mo(a,i),Io(i),v&4){try{Vl(3,i,i.return),Ec(3,i)}catch(vt){jn(i,i.return,vt)}try{Vl(5,i,i.return)}catch(vt){jn(i,i.return,vt)}}break;case 1:mo(a,i),Io(i),v&512&&d!==null&&Pa(d,d.return);break;case 5:if(mo(a,i),Io(i),v&512&&d!==null&&Pa(d,d.return),i.flags&32){var C=i.stateNode;try{it(C,"")}catch(vt){jn(i,i.return,vt)}}if(v&4&&(C=i.stateNode,C!=null)){var E=i.memoizedProps,j=d!==null?d.memoizedProps:E,K=i.type,te=i.updateQueue;if(i.updateQueue=null,te!==null)try{K==="input"&&E.type==="radio"&&E.name!=null&&le(C,E),Fe(K,j);var he=Fe(K,E);for(j=0;j<te.length;j+=2){var Me=te[j],ke=te[j+1];Me==="style"?_e(C,ke):Me==="dangerouslySetInnerHTML"?Ge(C,ke):Me==="children"?it(C,ke):O(C,Me,ke,he)}switch(K){case"input":be(C,E);break;case"textarea":Oe(C,E);break;case"select":var Re=C._wrapperState.wasMultiple;C._wrapperState.wasMultiple=!!E.multiple;var ot=E.value;ot!=null?Le(C,!!E.multiple,ot,!1):Re!==!!E.multiple&&(E.defaultValue!=null?Le(C,!!E.multiple,E.defaultValue,!0):Le(C,!!E.multiple,E.multiple?[]:"",!1))}C[Nl]=E}catch(vt){jn(i,i.return,vt)}}break;case 6:if(mo(a,i),Io(i),v&4){if(i.stateNode===null)throw Error(n(162));C=i.stateNode,E=i.memoizedProps;try{C.nodeValue=E}catch(vt){jn(i,i.return,vt)}}break;case 3:if(mo(a,i),Io(i),v&4&&d!==null&&d.memoizedState.isDehydrated)try{ii(a.containerInfo)}catch(vt){jn(i,i.return,vt)}break;case 4:mo(a,i),Io(i);break;case 13:mo(a,i),Io(i),C=i.child,C.flags&8192&&(E=C.memoizedState!==null,C.stateNode.isHidden=E,!E||C.alternate!==null&&C.alternate.memoizedState!==null||(Xf=ct())),v&4&&C0(i);break;case 22:if(Me=d!==null&&d.memoizedState!==null,i.mode&1?(vr=(he=vr)||Me,mo(a,i),vr=he):mo(a,i),Io(i),v&8192){if(he=i.memoizedState!==null,(i.stateNode.isHidden=he)&&!Me&&(i.mode&1)!==0)for(ft=i,Me=i.child;Me!==null;){for(ke=ft=Me;ft!==null;){switch(Re=ft,ot=Re.child,Re.tag){case 0:case 11:case 14:case 15:Vl(4,Re,Re.return);break;case 1:Pa(Re,Re.return);var gt=Re.stateNode;if(typeof gt.componentWillUnmount=="function"){v=Re,d=Re.return;try{a=v,gt.props=a.memoizedProps,gt.state=a.memoizedState,gt.componentWillUnmount()}catch(vt){jn(v,d,vt)}}break;case 5:Pa(Re,Re.return);break;case 22:if(Re.memoizedState!==null){O0(ke);continue}}ot!==null?(ot.return=Re,ft=ot):O0(ke)}Me=Me.sibling}e:for(Me=null,ke=i;;){if(ke.tag===5){if(Me===null){Me=ke;try{C=ke.stateNode,he?(E=C.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(K=ke.stateNode,te=ke.memoizedProps.style,j=te!=null&&te.hasOwnProperty("display")?te.display:null,K.style.display=Xe("display",j))}catch(vt){jn(i,i.return,vt)}}}else if(ke.tag===6){if(Me===null)try{ke.stateNode.nodeValue=he?"":ke.memoizedProps}catch(vt){jn(i,i.return,vt)}}else if((ke.tag!==22&&ke.tag!==23||ke.memoizedState===null||ke===i)&&ke.child!==null){ke.child.return=ke,ke=ke.child;continue}if(ke===i)break e;for(;ke.sibling===null;){if(ke.return===null||ke.return===i)break e;Me===ke&&(Me=null),ke=ke.return}Me===ke&&(Me=null),ke.sibling.return=ke.return,ke=ke.sibling}}break;case 19:mo(a,i),Io(i),v&4&&C0(i);break;case 21:break;default:mo(a,i),Io(i)}}function Io(i){var a=i.flags;if(a&2){try{e:{for(var d=i.return;d!==null;){if(b0(d)){var v=d;break e}d=d.return}throw Error(n(160))}switch(v.tag){case 5:var C=v.stateNode;v.flags&32&&(it(C,""),v.flags&=-33);var E=S0(i);Gf(i,E,C);break;case 3:case 4:var j=v.stateNode.containerInfo,K=S0(i);Uf(i,K,j);break;default:throw Error(n(161))}}catch(te){jn(i,i.return,te)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function ME(i,a,d){ft=i,$0(i)}function $0(i,a,d){for(var v=(i.mode&1)!==0;ft!==null;){var C=ft,E=C.child;if(C.tag===22&&v){var j=C.memoizedState!==null||$c;if(!j){var K=C.alternate,te=K!==null&&K.memoizedState!==null||vr;K=$c;var he=vr;if($c=j,(vr=te)&&!he)for(ft=C;ft!==null;)j=ft,te=j.child,j.tag===22&&j.memoizedState!==null?I0(C):te!==null?(te.return=j,ft=te):I0(C);for(;E!==null;)ft=E,$0(E),E=E.sibling;ft=C,$c=K,vr=he}E0(i)}else(C.subtreeFlags&8772)!==0&&E!==null?(E.return=C,ft=E):E0(i)}}function E0(i){for(;ft!==null;){var a=ft;if((a.flags&8772)!==0){var d=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:vr||Ec(5,a);break;case 1:var v=a.stateNode;if(a.flags&4&&!vr)if(d===null)v.componentDidMount();else{var C=a.elementType===a.type?d.memoizedProps:uo(a.type,d.memoizedProps);v.componentDidUpdate(C,d.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var E=a.updateQueue;E!==null&&Oh(a,E,v);break;case 3:var j=a.updateQueue;if(j!==null){if(d=null,a.child!==null)switch(a.child.tag){case 5:d=a.child.stateNode;break;case 1:d=a.child.stateNode}Oh(a,j,d)}break;case 5:var K=a.stateNode;if(d===null&&a.flags&4){d=K;var te=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":te.autoFocus&&d.focus();break;case"img":te.src&&(d.src=te.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var he=a.alternate;if(he!==null){var Me=he.memoizedState;if(Me!==null){var ke=Me.dehydrated;ke!==null&&ii(ke)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}vr||a.flags&512&&Wf(a)}catch(Re){jn(a,a.return,Re)}}if(a===i){ft=null;break}if(d=a.sibling,d!==null){d.return=a.return,ft=d;break}ft=a.return}}function O0(i){for(;ft!==null;){var a=ft;if(a===i){ft=null;break}var d=a.sibling;if(d!==null){d.return=a.return,ft=d;break}ft=a.return}}function I0(i){for(;ft!==null;){var a=ft;try{switch(a.tag){case 0:case 11:case 15:var d=a.return;try{Ec(4,a)}catch(te){jn(a,d,te)}break;case 1:var v=a.stateNode;if(typeof v.componentDidMount=="function"){var C=a.return;try{v.componentDidMount()}catch(te){jn(a,C,te)}}var E=a.return;try{Wf(a)}catch(te){jn(a,E,te)}break;case 5:var j=a.return;try{Wf(a)}catch(te){jn(a,j,te)}}}catch(te){jn(a,a.return,te)}if(a===i){ft=null;break}var K=a.sibling;if(K!==null){K.return=a.return,ft=K;break}ft=a.return}}var NE=Math.ceil,Oc=I.ReactCurrentDispatcher,qf=I.ReactCurrentOwner,Yr=I.ReactCurrentBatchConfig,nn=0,tr=null,Dn=null,lr=0,Fr=0,Ta=ci(0),Qn=0,Wl=null,Fi=0,Ic=0,Kf=0,Ul=null,jr=null,Xf=0,Ma=1/0,Ko=null,Rc=!1,Qf=null,gi=null,Pc=!1,vi=null,Tc=0,Gl=0,Yf=null,Mc=-1,Nc=0;function wr(){return(nn&6)!==0?ct():Mc!==-1?Mc:Mc=ct()}function hi(i){return(i.mode&1)===0?1:(nn&2)!==0&&lr!==0?lr&-lr:gE.transition!==null?(Nc===0&&(Nc=Zt()),Nc):(i=zt,i!==0||(i=window.event,i=i===void 0?16:Pv(i.type)),i)}function po(i,a,d,v){if(50<Gl)throw Gl=0,Yf=null,Error(n(185));cn(i,d,v),((nn&2)===0||i!==tr)&&(i===tr&&((nn&2)===0&&(Ic|=d),Qn===4&&yi(i,lr)),zr(i,v),d===1&&nn===0&&(a.mode&1)===0&&(Ma=ct()+500,ac&&di()))}function zr(i,a){var d=i.callbackNode;Je(i,a);var v=Yt(i,i===tr?lr:0);if(v===0)d!==null&&ze(d),i.callbackNode=null,i.callbackPriority=0;else if(a=v&-v,i.callbackPriority!==a){if(d!=null&&ze(d),a===1)i.tag===0?pE(P0.bind(null,i)):ph(P0.bind(null,i)),uE(function(){(nn&6)===0&&di()}),d=null;else{switch(Kn(v)){case 1:d=qe;break;case 4:d=xt;break;case 16:d=Lt;break;case 536870912:d=ut;break;default:d=Lt}d=L0(d,R0.bind(null,i))}i.callbackPriority=a,i.callbackNode=d}}function R0(i,a){if(Mc=-1,Nc=0,(nn&6)!==0)throw Error(n(327));var d=i.callbackNode;if(Na()&&i.callbackNode!==d)return null;var v=Yt(i,i===tr?lr:0);if(v===0)return null;if((v&30)!==0||(v&i.expiredLanes)!==0||a)a=_c(i,v);else{a=v;var C=nn;nn|=2;var E=M0();(tr!==i||lr!==a)&&(Ko=null,Ma=ct()+500,Vi(i,a));do try{zE();break}catch(K){T0(i,K)}while(!0);gf(),Oc.current=E,nn=C,Dn!==null?a=0:(tr=null,lr=0,a=Qn)}if(a!==0){if(a===2&&(C=Gt(i),C!==0&&(v=C,a=Zf(i,C))),a===1)throw d=Wl,Vi(i,0),yi(i,v),zr(i,ct()),d;if(a===6)yi(i,v);else{if(C=i.current.alternate,(v&30)===0&&!_E(C)&&(a=_c(i,v),a===2&&(E=Gt(i),E!==0&&(v=E,a=Zf(i,E))),a===1))throw d=Wl,Vi(i,0),yi(i,v),zr(i,ct()),d;switch(i.finishedWork=C,i.finishedLanes=v,a){case 0:case 1:throw Error(n(345));case 2:Wi(i,jr,Ko);break;case 3:if(yi(i,v),(v&130023424)===v&&(a=Xf+500-ct(),10<a)){if(Yt(i,0)!==0)break;if(C=i.suspendedLanes,(C&v)!==v){wr(),i.pingedLanes|=i.suspendedLanes&C;break}i.timeoutHandle=rf(Wi.bind(null,i,jr,Ko),a);break}Wi(i,jr,Ko);break;case 4:if(yi(i,v),(v&4194240)===v)break;for(a=i.eventTimes,C=-1;0<v;){var j=31-wn(v);E=1<<j,j=a[j],j>C&&(C=j),v&=~E}if(v=C,v=ct()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*NE(v/1960))-v,10<v){i.timeoutHandle=rf(Wi.bind(null,i,jr,Ko),v);break}Wi(i,jr,Ko);break;case 5:Wi(i,jr,Ko);break;default:throw Error(n(329))}}}return zr(i,ct()),i.callbackNode===d?R0.bind(null,i):null}function Zf(i,a){var d=Ul;return i.current.memoizedState.isDehydrated&&(Vi(i,a).flags|=256),i=_c(i,a),i!==2&&(a=jr,jr=d,a!==null&&Jf(a)),i}function Jf(i){jr===null?jr=i:jr.push.apply(jr,i)}function _E(i){for(var a=i;;){if(a.flags&16384){var d=a.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var v=0;v<d.length;v++){var C=d[v],E=C.getSnapshot;C=C.value;try{if(!so(E(),C))return!1}catch{return!1}}}if(d=a.child,a.subtreeFlags&16384&&d!==null)d.return=a,a=d;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function yi(i,a){for(a&=~Kf,a&=~Ic,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var d=31-wn(a),v=1<<d;i[d]=-1,a&=~v}}function P0(i){if((nn&6)!==0)throw Error(n(327));Na();var a=Yt(i,0);if((a&1)===0)return zr(i,ct()),null;var d=_c(i,a);if(i.tag!==0&&d===2){var v=Gt(i);v!==0&&(a=v,d=Zf(i,v))}if(d===1)throw d=Wl,Vi(i,0),yi(i,a),zr(i,ct()),d;if(d===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,Wi(i,jr,Ko),zr(i,ct()),null}function em(i,a){var d=nn;nn|=1;try{return i(a)}finally{nn=d,nn===0&&(Ma=ct()+500,ac&&di())}}function Hi(i){vi!==null&&vi.tag===0&&(nn&6)===0&&Na();var a=nn;nn|=1;var d=Yr.transition,v=zt;try{if(Yr.transition=null,zt=1,i)return i()}finally{zt=v,Yr.transition=d,nn=a,(nn&6)===0&&di()}}function tm(){Fr=Ta.current,Rn(Ta)}function Vi(i,a){i.finishedWork=null,i.finishedLanes=0;var d=i.timeoutHandle;if(d!==-1&&(i.timeoutHandle=-1,cE(d)),Dn!==null)for(d=Dn.return;d!==null;){var v=d;switch(uf(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&oc();break;case 3:Ia(),Rn(Mr),Rn(mr),wf();break;case 5:xf(v);break;case 4:Ia();break;case 13:Rn(Mn);break;case 19:Rn(Mn);break;case 10:vf(v.type._context);break;case 22:case 23:tm()}d=d.return}if(tr=i,Dn=i=bi(i.current,null),lr=Fr=a,Qn=0,Wl=null,Kf=Ic=Fi=0,jr=Ul=null,Bi!==null){for(a=0;a<Bi.length;a++)if(d=Bi[a],v=d.interleaved,v!==null){d.interleaved=null;var C=v.next,E=d.pending;if(E!==null){var j=E.next;E.next=C,v.next=j}d.pending=v}Bi=null}return i}function T0(i,a){do{var d=Dn;try{if(gf(),vc.current=Sc,hc){for(var v=Nn.memoizedState;v!==null;){var C=v.queue;C!==null&&(C.pending=null),v=v.next}hc=!1}if(Di=0,er=Xn=Nn=null,Bl=!1,Al=0,qf.current=null,d===null||d.return===null){Qn=1,Wl=a,Dn=null;break}e:{var E=i,j=d.return,K=d,te=a;if(a=lr,K.flags|=32768,te!==null&&typeof te=="object"&&typeof te.then=="function"){var he=te,Me=K,ke=Me.tag;if((Me.mode&1)===0&&(ke===0||ke===11||ke===15)){var Re=Me.alternate;Re?(Me.updateQueue=Re.updateQueue,Me.memoizedState=Re.memoizedState,Me.lanes=Re.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var ot=t0(j);if(ot!==null){ot.flags&=-257,n0(ot,j,K,E,a),ot.mode&1&&e0(E,he,a),a=ot,te=he;var gt=a.updateQueue;if(gt===null){var vt=new Set;vt.add(te),a.updateQueue=vt}else gt.add(te);break e}else{if((a&1)===0){e0(E,he,a),nm();break e}te=Error(n(426))}}else if(Pn&&K.mode&1){var Ln=t0(j);if(Ln!==null){(Ln.flags&65536)===0&&(Ln.flags|=256),n0(Ln,j,K,E,a),mf(Ra(te,K));break e}}E=te=Ra(te,K),Qn!==4&&(Qn=2),Ul===null?Ul=[E]:Ul.push(E),E=j;do{switch(E.tag){case 3:E.flags|=65536,a&=-a,E.lanes|=a;var de=Zh(E,te,a);Eh(E,de);break e;case 1:K=te;var ie=E.type,ge=E.stateNode;if((E.flags&128)===0&&(typeof ie.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(gi===null||!gi.has(ge)))){E.flags|=65536,a&=-a,E.lanes|=a;var De=Jh(E,K,a);Eh(E,De);break e}}E=E.return}while(E!==null)}_0(d)}catch(ht){a=ht,Dn===d&&d!==null&&(Dn=d=d.return);continue}break}while(!0)}function M0(){var i=Oc.current;return Oc.current=Sc,i===null?Sc:i}function nm(){(Qn===0||Qn===3||Qn===2)&&(Qn=4),tr===null||(Fi&268435455)===0&&(Ic&268435455)===0||yi(tr,lr)}function _c(i,a){var d=nn;nn|=2;var v=M0();(tr!==i||lr!==a)&&(Ko=null,Vi(i,a));do try{jE();break}catch(C){T0(i,C)}while(!0);if(gf(),nn=d,Oc.current=v,Dn!==null)throw Error(n(261));return tr=null,lr=0,Qn}function jE(){for(;Dn!==null;)N0(Dn)}function zE(){for(;Dn!==null&&!We();)N0(Dn)}function N0(i){var a=k0(i.alternate,i,Fr);i.memoizedProps=i.pendingProps,a===null?_0(i):Dn=a,qf.current=null}function _0(i){var a=i;do{var d=a.alternate;if(i=a.return,(a.flags&32768)===0){if(d=IE(d,a,Fr),d!==null){Dn=d;return}}else{if(d=RE(d,a),d!==null){d.flags&=32767,Dn=d;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Qn=6,Dn=null;return}}if(a=a.sibling,a!==null){Dn=a;return}Dn=a=i}while(a!==null);Qn===0&&(Qn=5)}function Wi(i,a,d){var v=zt,C=Yr.transition;try{Yr.transition=null,zt=1,kE(i,a,d,v)}finally{Yr.transition=C,zt=v}return null}function kE(i,a,d,v){do Na();while(vi!==null);if((nn&6)!==0)throw Error(n(327));d=i.finishedWork;var C=i.finishedLanes;if(d===null)return null;if(i.finishedWork=null,i.finishedLanes=0,d===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var E=d.lanes|d.childLanes;if(ir(i,E),i===tr&&(Dn=tr=null,lr=0),(d.subtreeFlags&2064)===0&&(d.flags&2064)===0||Pc||(Pc=!0,L0(Lt,function(){return Na(),null})),E=(d.flags&15990)!==0,(d.subtreeFlags&15990)!==0||E){E=Yr.transition,Yr.transition=null;var j=zt;zt=1;var K=nn;nn|=4,qf.current=null,TE(i,d),w0(d,i),nE(tf),Ws=!!ef,tf=ef=null,i.current=d,ME(d),Ct(),nn=K,zt=j,Yr.transition=E}else i.current=d;if(Pc&&(Pc=!1,vi=i,Tc=C),E=i.pendingLanes,E===0&&(gi=null),zn(d.stateNode),zr(i,ct()),a!==null)for(v=i.onRecoverableError,d=0;d<a.length;d++)C=a[d],v(C.value,{componentStack:C.stack,digest:C.digest});if(Rc)throw Rc=!1,i=Qf,Qf=null,i;return(Tc&1)!==0&&i.tag!==0&&Na(),E=i.pendingLanes,(E&1)!==0?i===Yf?Gl++:(Gl=0,Yf=i):Gl=0,di(),null}function Na(){if(vi!==null){var i=Kn(Tc),a=Yr.transition,d=zt;try{if(Yr.transition=null,zt=16>i?16:i,vi===null)var v=!1;else{if(i=vi,vi=null,Tc=0,(nn&6)!==0)throw Error(n(331));var C=nn;for(nn|=4,ft=i.current;ft!==null;){var E=ft,j=E.child;if((ft.flags&16)!==0){var K=E.deletions;if(K!==null){for(var te=0;te<K.length;te++){var he=K[te];for(ft=he;ft!==null;){var Me=ft;switch(Me.tag){case 0:case 11:case 15:Vl(8,Me,E)}var ke=Me.child;if(ke!==null)ke.return=Me,ft=ke;else for(;ft!==null;){Me=ft;var Re=Me.sibling,ot=Me.return;if(y0(Me),Me===he){ft=null;break}if(Re!==null){Re.return=ot,ft=Re;break}ft=ot}}}var gt=E.alternate;if(gt!==null){var vt=gt.child;if(vt!==null){gt.child=null;do{var Ln=vt.sibling;vt.sibling=null,vt=Ln}while(vt!==null)}}ft=E}}if((E.subtreeFlags&2064)!==0&&j!==null)j.return=E,ft=j;else e:for(;ft!==null;){if(E=ft,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:Vl(9,E,E.return)}var de=E.sibling;if(de!==null){de.return=E.return,ft=de;break e}ft=E.return}}var ie=i.current;for(ft=ie;ft!==null;){j=ft;var ge=j.child;if((j.subtreeFlags&2064)!==0&&ge!==null)ge.return=j,ft=ge;else e:for(j=ie;ft!==null;){if(K=ft,(K.flags&2048)!==0)try{switch(K.tag){case 0:case 11:case 15:Ec(9,K)}}catch(ht){jn(K,K.return,ht)}if(K===j){ft=null;break e}var De=K.sibling;if(De!==null){De.return=K.return,ft=De;break e}ft=K.return}}if(nn=C,di(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot($t,i)}catch{}v=!0}return v}finally{zt=d,Yr.transition=a}}return!1}function j0(i,a,d){a=Ra(d,a),a=Zh(i,a,1),i=mi(i,a,1),a=wr(),i!==null&&(cn(i,1,a),zr(i,a))}function jn(i,a,d){if(i.tag===3)j0(i,i,d);else for(;a!==null;){if(a.tag===3){j0(a,i,d);break}else if(a.tag===1){var v=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(gi===null||!gi.has(v))){i=Ra(d,i),i=Jh(a,i,1),a=mi(a,i,1),i=wr(),a!==null&&(cn(a,1,i),zr(a,i));break}}a=a.return}}function LE(i,a,d){var v=i.pingCache;v!==null&&v.delete(a),a=wr(),i.pingedLanes|=i.suspendedLanes&d,tr===i&&(lr&d)===d&&(Qn===4||Qn===3&&(lr&130023424)===lr&&500>ct()-Xf?Vi(i,0):Kf|=d),zr(i,a)}function z0(i,a){a===0&&((i.mode&1)===0?a=1:(a=or,or<<=1,(or&130023424)===0&&(or=4194304)));var d=wr();i=Uo(i,a),i!==null&&(cn(i,a,d),zr(i,d))}function BE(i){var a=i.memoizedState,d=0;a!==null&&(d=a.retryLane),z0(i,d)}function AE(i,a){var d=0;switch(i.tag){case 13:var v=i.stateNode,C=i.memoizedState;C!==null&&(d=C.retryLane);break;case 19:v=i.stateNode;break;default:throw Error(n(314))}v!==null&&v.delete(a),z0(i,d)}var k0;k0=function(i,a,d){if(i!==null)if(i.memoizedProps!==a.pendingProps||Mr.current)_r=!0;else{if((i.lanes&d)===0&&(a.flags&128)===0)return _r=!1,OE(i,a,d);_r=(i.flags&131072)!==0}else _r=!1,Pn&&(a.flags&1048576)!==0&&gh(a,sc,a.index);switch(a.lanes=0,a.tag){case 2:var v=a.type;wc(i,a),i=a.pendingProps;var C=Sa(a,mr.current);Oa(a,d),C=Of(null,a,v,i,C,d);var E=If();return a.flags|=1,typeof C=="object"&&C!==null&&typeof C.render=="function"&&C.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Nr(v)?(E=!0,ic(a)):E=!1,a.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,bf(a),C.updater=xc,a.stateNode=C,C._reactInternals=a,_f(a,v,i,d),a=Lf(null,a,v,!0,E,d)):(a.tag=0,Pn&&E&&cf(a),Cr(null,a,C,d),a=a.child),a;case 16:v=a.elementType;e:{switch(wc(i,a),i=a.pendingProps,C=v._init,v=C(v._payload),a.type=v,C=a.tag=FE(v),i=uo(v,i),C){case 0:a=kf(null,a,v,i,d);break e;case 1:a=s0(null,a,v,i,d);break e;case 11:a=r0(null,a,v,i,d);break e;case 14:a=o0(null,a,v,uo(v.type,i),d);break e}throw Error(n(306,v,""))}return a;case 0:return v=a.type,C=a.pendingProps,C=a.elementType===v?C:uo(v,C),kf(i,a,v,C,d);case 1:return v=a.type,C=a.pendingProps,C=a.elementType===v?C:uo(v,C),s0(i,a,v,C,d);case 3:e:{if(c0(a),i===null)throw Error(n(387));v=a.pendingProps,E=a.memoizedState,C=E.element,$h(i,a),pc(a,v,null,d);var j=a.memoizedState;if(v=j.element,E.isDehydrated)if(E={element:v,isDehydrated:!1,cache:j.cache,pendingSuspenseBoundaries:j.pendingSuspenseBoundaries,transitions:j.transitions},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){C=Ra(Error(n(423)),a),a=u0(i,a,v,d,C);break e}else if(v!==C){C=Ra(Error(n(424)),a),a=u0(i,a,v,d,C);break e}else for(Dr=si(a.stateNode.containerInfo.firstChild),Ar=a,Pn=!0,co=null,d=Ch(a,null,v,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(wa(),v===C){a=qo(i,a,d);break e}Cr(i,a,v,d)}a=a.child}return a;case 5:return Ih(a),i===null&&ff(a),v=a.type,C=a.pendingProps,E=i!==null?i.memoizedProps:null,j=C.children,nf(v,C)?j=null:E!==null&&nf(v,E)&&(a.flags|=32),l0(i,a),Cr(i,a,j,d),a.child;case 6:return i===null&&ff(a),null;case 13:return d0(i,a,d);case 4:return Sf(a,a.stateNode.containerInfo),v=a.pendingProps,i===null?a.child=$a(a,null,v,d):Cr(i,a,v,d),a.child;case 11:return v=a.type,C=a.pendingProps,C=a.elementType===v?C:uo(v,C),r0(i,a,v,C,d);case 7:return Cr(i,a,a.pendingProps,d),a.child;case 8:return Cr(i,a,a.pendingProps.children,d),a.child;case 12:return Cr(i,a,a.pendingProps.children,d),a.child;case 10:e:{if(v=a.type._context,C=a.pendingProps,E=a.memoizedProps,j=C.value,En(dc,v._currentValue),v._currentValue=j,E!==null)if(so(E.value,j)){if(E.children===C.children&&!Mr.current){a=qo(i,a,d);break e}}else for(E=a.child,E!==null&&(E.return=a);E!==null;){var K=E.dependencies;if(K!==null){j=E.child;for(var te=K.firstContext;te!==null;){if(te.context===v){if(E.tag===1){te=Go(-1,d&-d),te.tag=2;var he=E.updateQueue;if(he!==null){he=he.shared;var Me=he.pending;Me===null?te.next=te:(te.next=Me.next,Me.next=te),he.pending=te}}E.lanes|=d,te=E.alternate,te!==null&&(te.lanes|=d),hf(E.return,d,a),K.lanes|=d;break}te=te.next}}else if(E.tag===10)j=E.type===a.type?null:E.child;else if(E.tag===18){if(j=E.return,j===null)throw Error(n(341));j.lanes|=d,K=j.alternate,K!==null&&(K.lanes|=d),hf(j,d,a),j=E.sibling}else j=E.child;if(j!==null)j.return=E;else for(j=E;j!==null;){if(j===a){j=null;break}if(E=j.sibling,E!==null){E.return=j.return,j=E;break}j=j.return}E=j}Cr(i,a,C.children,d),a=a.child}return a;case 9:return C=a.type,v=a.pendingProps.children,Oa(a,d),C=Xr(C),v=v(C),a.flags|=1,Cr(i,a,v,d),a.child;case 14:return v=a.type,C=uo(v,a.pendingProps),C=uo(v.type,C),o0(i,a,v,C,d);case 15:return i0(i,a,a.type,a.pendingProps,d);case 17:return v=a.type,C=a.pendingProps,C=a.elementType===v?C:uo(v,C),wc(i,a),a.tag=1,Nr(v)?(i=!0,ic(a)):i=!1,Oa(a,d),Qh(a,v,C),_f(a,v,C,d),Lf(null,a,v,!0,i,d);case 19:return m0(i,a,d);case 22:return a0(i,a,d)}throw Error(n(156,a.tag))};function L0(i,a){return Jt(i,a)}function DE(i,a,d,v){this.tag=i,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zr(i,a,d,v){return new DE(i,a,d,v)}function rm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function FE(i){if(typeof i=="function")return rm(i)?1:0;if(i!=null){if(i=i.$$typeof,i===z)return 11;if(i===G)return 14}return 2}function bi(i,a){var d=i.alternate;return d===null?(d=Zr(i.tag,a,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d.alternate=i,i.alternate=d):(d.pendingProps=a,d.type=i.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=i.flags&14680064,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue,a=i.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d}function jc(i,a,d,v,C,E){var j=2;if(v=i,typeof i=="function")rm(i)&&(j=1);else if(typeof i=="string")j=5;else e:switch(i){case T:return Ui(d.children,C,E,a);case N:j=8,C|=8;break;case M:return i=Zr(12,d,a,C|2),i.elementType=M,i.lanes=E,i;case A:return i=Zr(13,d,a,C),i.elementType=A,i.lanes=E,i;case B:return i=Zr(19,d,a,C),i.elementType=B,i.lanes=E,i;case H:return zc(d,C,E,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case _:j=10;break e;case L:j=9;break e;case z:j=11;break e;case G:j=14;break e;case V:j=16,v=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=Zr(j,d,a,C),a.elementType=i,a.type=v,a.lanes=E,a}function Ui(i,a,d,v){return i=Zr(7,i,v,a),i.lanes=d,i}function zc(i,a,d,v){return i=Zr(22,i,v,a),i.elementType=H,i.lanes=d,i.stateNode={isHidden:!1},i}function om(i,a,d){return i=Zr(6,i,null,a),i.lanes=d,i}function im(i,a,d){return a=Zr(4,i.children!==null?i.children:[],i.key,a),a.lanes=d,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function HE(i,a,d,v,C){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=an(0),this.expirationTimes=an(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=an(0),this.identifierPrefix=v,this.onRecoverableError=C,this.mutableSourceEagerHydrationData=null}function am(i,a,d,v,C,E,j,K,te){return i=new HE(i,a,d,K,te),a===1?(a=1,E===!0&&(a|=8)):a=0,E=Zr(3,null,null,a),i.current=E,E.stateNode=i,E.memoizedState={element:v,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},bf(E),i}function VE(i,a,d){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:v==null?null:""+v,children:i,containerInfo:a,implementation:d}}function B0(i){if(!i)return ui;i=i._reactInternals;e:{if(Pt(i)!==i||i.tag!==1)throw Error(n(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Nr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var d=i.type;if(Nr(d))return fh(i,d,a)}return a}function A0(i,a,d,v,C,E,j,K,te){return i=am(d,v,!0,i,C,E,j,K,te),i.context=B0(null),d=i.current,v=wr(),C=hi(d),E=Go(v,C),E.callback=a??null,mi(d,E,C),i.current.lanes=C,cn(i,C,v),zr(i,v),i}function kc(i,a,d,v){var C=a.current,E=wr(),j=hi(C);return d=B0(d),a.context===null?a.context=d:a.pendingContext=d,a=Go(E,j),a.payload={element:i},v=v===void 0?null:v,v!==null&&(a.callback=v),i=mi(C,a,j),i!==null&&(po(i,C,j,E),mc(i,C,j)),j}function Lc(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function D0(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var d=i.retryLane;i.retryLane=d!==0&&d<a?d:a}}function lm(i,a){D0(i,a),(i=i.alternate)&&D0(i,a)}function WE(){return null}var F0=typeof reportError=="function"?reportError:function(i){console.error(i)};function sm(i){this._internalRoot=i}Bc.prototype.render=sm.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));kc(i,a,null,null)},Bc.prototype.unmount=sm.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;Hi(function(){kc(null,i,null,null)}),a[Fo]=null}};function Bc(i){this._internalRoot=i}Bc.prototype.unstable_scheduleHydration=function(i){if(i){var a=oi();i={blockedOn:null,target:i,priority:a};for(var d=0;d<Lr.length&&a!==0&&a<Lr[d].priority;d++);Lr.splice(d,0,i),d===0&&xn(i)}};function cm(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Ac(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function H0(){}function UE(i,a,d,v,C){if(C){if(typeof v=="function"){var E=v;v=function(){var he=Lc(j);E.call(he)}}var j=A0(a,v,i,0,null,!1,!1,"",H0);return i._reactRootContainer=j,i[Fo]=j.current,Tl(i.nodeType===8?i.parentNode:i),Hi(),j}for(;C=i.lastChild;)i.removeChild(C);if(typeof v=="function"){var K=v;v=function(){var he=Lc(te);K.call(he)}}var te=am(i,0,!1,null,null,!1,!1,"",H0);return i._reactRootContainer=te,i[Fo]=te.current,Tl(i.nodeType===8?i.parentNode:i),Hi(function(){kc(a,te,d,v)}),te}function Dc(i,a,d,v,C){var E=d._reactRootContainer;if(E){var j=E;if(typeof C=="function"){var K=C;C=function(){var te=Lc(j);K.call(te)}}kc(a,j,i,C)}else j=UE(d,a,i,C,v);return Lc(j)}Zn=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var d=dr(a.pendingLanes);d!==0&&(kn(a,d|1),zr(a,ct()),(nn&6)===0&&(Ma=ct()+500,di()))}break;case 13:Hi(function(){var v=Uo(i,1);if(v!==null){var C=wr();po(v,i,1,C)}}),lm(i,1)}},Pr=function(i){if(i.tag===13){var a=Uo(i,134217728);if(a!==null){var d=wr();po(a,i,134217728,d)}lm(i,134217728)}},Jn=function(i){if(i.tag===13){var a=hi(i),d=Uo(i,a);if(d!==null){var v=wr();po(d,i,a,v)}lm(i,a)}},oi=function(){return zt},la=function(i,a){var d=zt;try{return zt=i,a()}finally{zt=d}},Ht=function(i,a,d){switch(a){case"input":if(be(i,d),a=d.name,d.type==="radio"&&a!=null){for(d=i;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<d.length;a++){var v=d[a];if(v!==i&&v.form===i.form){var C=rc(v);if(!C)throw Error(n(90));se(v),be(v,C)}}}break;case"textarea":Oe(i,d);break;case"select":a=d.value,a!=null&&Le(i,!!d.multiple,a,!1)}},St=em,Ut=Hi;var GE={usingClientEntryPoint:!1,Events:[_l,ya,rc,Wt,Mt,em]},ql={findFiberByHostInstance:ji,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qE={bundleType:ql.bundleType,version:ql.version,rendererPackageName:ql.rendererPackageName,rendererConfig:ql.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=On(i),i===null?null:i.stateNode},findFiberByHostInstance:ql.findFiberByHostInstance||WE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fc.isDisabled&&Fc.supportsFiber)try{$t=Fc.inject(qE),tn=Fc}catch{}}return kr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GE,kr.createPortal=function(i,a){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cm(a))throw Error(n(200));return VE(i,a,null,d)},kr.createRoot=function(i,a){if(!cm(i))throw Error(n(299));var d=!1,v="",C=F0;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(v=a.identifierPrefix),a.onRecoverableError!==void 0&&(C=a.onRecoverableError)),a=am(i,1,!1,null,null,d,!1,v,C),i[Fo]=a.current,Tl(i.nodeType===8?i.parentNode:i),new sm(a)},kr.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=On(a),i=i===null?null:i.stateNode,i},kr.flushSync=function(i){return Hi(i)},kr.hydrate=function(i,a,d){if(!Ac(a))throw Error(n(200));return Dc(null,i,a,!0,d)},kr.hydrateRoot=function(i,a,d){if(!cm(i))throw Error(n(405));var v=d!=null&&d.hydratedSources||null,C=!1,E="",j=F0;if(d!=null&&(d.unstable_strictMode===!0&&(C=!0),d.identifierPrefix!==void 0&&(E=d.identifierPrefix),d.onRecoverableError!==void 0&&(j=d.onRecoverableError)),a=A0(a,null,i,1,d??null,C,!1,E,j),i[Fo]=a.current,Tl(i),v)for(i=0;i<v.length;i++)d=v[i],C=d._getVersion,C=C(d._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[d,C]:a.mutableSourceEagerHydrationData.push(d,C);return new Bc(a)},kr.render=function(i,a,d){if(!Ac(a))throw Error(n(200));return Dc(null,i,a,!1,d)},kr.unmountComponentAtNode=function(i){if(!Ac(i))throw Error(n(40));return i._reactRootContainer?(Hi(function(){Dc(null,null,i,!1,function(){i._reactRootContainer=null,i[Fo]=null})}),!0):!1},kr.unstable_batchedUpdates=em,kr.unstable_renderSubtreeIntoContainer=function(i,a,d,v){if(!Ac(d))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Dc(i,a,d,!1,v)},kr.version="18.3.1-next-f1338f8080-20240426",kr}var Q0;function i1(){if(Q0)return fm.exports;Q0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fm.exports=n2(),fm.exports}var Y0;function r2(){if(Y0)return Hc;Y0=1;var e=i1();return Hc.createRoot=e.createRoot,Hc.hydrateRoot=e.hydrateRoot,Hc}var o2=r2();const i2=Rs(o2);var gm={exports:{}};/*!
|
|
41
|
-
Copyright (c) 2018 Jed Watson.
|
|
42
|
-
Licensed under the MIT License (MIT), see
|
|
43
|
-
http://jedwatson.github.io/classnames
|
|
44
|
-
*/var Z0;function a2(){return Z0||(Z0=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(l=o(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var s="";for(var u in l)t.call(l,u)&&l[u]&&(s=o(s,u));return s}function o(l,s){return s?l?l+" "+s:l+s:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(gm)),gm.exports}var l2=a2();const re=Rs(l2);function Ee(){return Ee=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},Ee.apply(null,arguments)}function mt(e){"@babel/helpers - typeof";return mt=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},mt(e)}var s2=Symbol.for("react.element"),c2=Symbol.for("react.transitional.element"),u2=Symbol.for("react.fragment");function a1(e){return e&&mt(e)==="object"&&(e.$$typeof===s2||e.$$typeof===c2)&&e.type===u2}function Er(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Y.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Er(r)):a1(r)&&r.props?n=n.concat(Er(r.props.children,t)):n.push(r))}),n}var cp={},d2=function(t){};function f2(e,t){}function m2(e,t){}function p2(){cp={}}function l1(e,t,n){!t&&!cp[n]&&(e(!1,n),cp[n]=!0)}function sr(e,t){l1(f2,e,t)}function g2(e,t){l1(m2,e,t)}sr.preMessage=d2;sr.resetWarned=p2;sr.noteOnce=g2;function v2(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s1(e){var t=v2(e,"string");return mt(t)=="symbol"?t:t+""}function U(e,t,n){return(t=s1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J0(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 X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J0(Object(n),!0).forEach(function(r){U(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ri=i1();const up=Rs(Ri),h2=o1({__proto__:null,default:up},[Ri]);function ds(e){return e instanceof HTMLElement||e instanceof SVGElement}function y2(e){return e&&mt(e)==="object"&&ds(e.nativeElement)?e.nativeElement:ds(e)?e:null}function cu(e){var t=y2(e);if(t)return t;if(e instanceof Y.Component){var n;return(n=up.findDOMNode)===null||n===void 0?void 0:n.call(up,e)}return null}var vm={exports:{}},dn={};/**
|
|
45
|
-
* @license React
|
|
46
|
-
* react-is.production.min.js
|
|
47
|
-
*
|
|
48
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the MIT license found in the
|
|
51
|
-
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var ey;function b2(){if(ey)return dn;ey=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"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function S(b){if(typeof b=="object"&&b!==null){var $=b.$$typeof;switch($){case e:switch(b=b.type,b){case n:case o:case r:case m:case p:return b;default:switch(b=b&&b.$$typeof,b){case u:case s:case f:case h:case g:case l:return b;default:return $}}case t:return $}}}return dn.ContextConsumer=s,dn.ContextProvider=l,dn.Element=e,dn.ForwardRef=f,dn.Fragment=n,dn.Lazy=h,dn.Memo=g,dn.Portal=t,dn.Profiler=o,dn.StrictMode=r,dn.Suspense=m,dn.SuspenseList=p,dn.isAsyncMode=function(){return!1},dn.isConcurrentMode=function(){return!1},dn.isContextConsumer=function(b){return S(b)===s},dn.isContextProvider=function(b){return S(b)===l},dn.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},dn.isForwardRef=function(b){return S(b)===f},dn.isFragment=function(b){return S(b)===n},dn.isLazy=function(b){return S(b)===h},dn.isMemo=function(b){return S(b)===g},dn.isPortal=function(b){return S(b)===t},dn.isProfiler=function(b){return S(b)===o},dn.isStrictMode=function(b){return S(b)===r},dn.isSuspense=function(b){return S(b)===m},dn.isSuspenseList=function(b){return S(b)===p},dn.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===m||b===p||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===g||b.$$typeof===l||b.$$typeof===s||b.$$typeof===f||b.$$typeof===x||b.getModuleId!==void 0)},dn.typeOf=S,dn}var ty;function S2(){return ty||(ty=1,vm.exports=b2()),vm.exports}var hm=S2();function Ps(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var x2=Number(c.version.split(".")[0]),bg=function(t,n){typeof t=="function"?t(n):mt(t)==="object"&&t&&"current"in t&&(t.current=n)},ko=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(l){n.forEach(function(s){bg(s,l)})}},Zo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ps(function(){return ko.apply(void 0,n)},n,function(o,l){return o.length!==l.length||o.every(function(s,u){return s!==l[u]})})},_i=function(t){var n,r;if(!t)return!1;if(Sg(t)&&x2>=19)return!0;var o=hm.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==hm.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==hm.ForwardRef)};function Sg(e){return c.isValidElement(e)&&!a1(e)}var C2=function(t){return Sg(t)&&_i(t)},oa=function(t){if(t&&Sg(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},dp=c.createContext(null);function w2(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),l=c.useContext(dp),s=c.useCallback(function(u,f,m){r.current+=1;var p=r.current;o.current.push({size:u,element:f,data:m}),Promise.resolve().then(function(){p===r.current&&(n==null||n(o.current),o.current=[])}),l==null||l(u,f,m)},[n,l]);return c.createElement(dp.Provider,{value:s},t)}var c1=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,l){return o[0]===n?(r=l,!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,l=this.__entries__;o<l.length;o++){var s=l[o];n.call(r,s[1],s[0])}},t})()})(),fp=typeof window<"u"&&typeof document<"u"&&window.document===document,Cu=(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")()})(),$2=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Cu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),E2=2;function O2(e,t){var n=!1,r=!1,o=0;function l(){n&&(n=!1,e()),r&&u()}function s(){$2(l)}function u(){var f=Date.now();if(n){if(f-o<E2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=f}return u}var I2=20,R2=["top","right","bottom","left","width","height","size","weight"],P2=typeof MutationObserver<"u",T2=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=O2(this.refresh.bind(this),I2)}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(){!fp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),P2?(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(){!fp||!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=R2.some(function(l){return!!~r.indexOf(l)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),u1=(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}),tl=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Cu}),d1=Xu(0,0,0,0);function wu(e){return parseFloat(e)||0}function ny(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var l=e["border-"+o+"-width"];return r+wu(l)},0)}function M2(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var l=o[r],s=e["padding-"+l];n[l]=wu(s)}return n}function N2(e){var t=e.getBBox();return Xu(0,0,t.width,t.height)}function _2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d1;var r=tl(e).getComputedStyle(e),o=M2(r),l=o.left+o.right,s=o.top+o.bottom,u=wu(r.width),f=wu(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=ny(r,"left","right")+l),Math.round(f+s)!==n&&(f-=ny(r,"top","bottom")+s)),!z2(e)){var m=Math.round(u+l)-t,p=Math.round(f+s)-n;Math.abs(m)!==1&&(u-=m),Math.abs(p)!==1&&(f-=p)}return Xu(o.left,o.top,u,f)}var j2=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof tl(e).SVGGraphicsElement}:function(e){return e instanceof tl(e).SVGElement&&typeof e.getBBox=="function"}})();function z2(e){return e===tl(e).document.documentElement}function k2(e){return fp?j2(e)?N2(e):_2(e):d1}function L2(e){var t=e.x,n=e.y,r=e.width,o=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(l.prototype);return u1(s,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),s}function Xu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var B2=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Xu(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=k2(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})(),A2=(function(){function e(t,n){var r=L2(n);u1(this,{target:t,contentRect:r})}return e})(),D2=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new c1,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 tl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new B2(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 tl(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 A2(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})(),f1=typeof WeakMap<"u"?new WeakMap:new c1,m1=(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=T2.getInstance(),r=new D2(t,n,this);f1.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){m1.prototype[e]=function(){var t;return(t=f1.get(this))[e].apply(t,arguments)}});var F2=(function(){return typeof Cu.ResizeObserver<"u"?Cu.ResizeObserver:m1})(),$i=new Map;function H2(e){e.forEach(function(t){var n,r=t.target;(n=$i.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var p1=new F2(H2);function V2(e,t){$i.has(e)||($i.set(e,new Set),p1.observe(e)),$i.get(e).add(t)}function W2(e,t){$i.has(e)&&($i.get(e).delete(t),$i.get(e).size||(p1.unobserve(e),$i.delete(e)))}function Wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ry(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,s1(r.key),r)}}function Un(e,t,n){return t&&ry(e.prototype,t),n&&ry(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fs(e,t)}function Jo(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&&fs(e,t)}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ms(e)}function xg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xg=function(){return!!e})()}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U2(e,t){if(t&&(mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ft(e)}function ei(e){var t=xg();return function(){var n,r=ms(e);if(t){var o=ms(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return U2(this,n)}}var G2=(function(e){Jo(n,e);var t=ei(n);function n(){return Wn(this,n),t.apply(this,arguments)}return Un(n,[{key:"render",value:function(){return this.props.children}}]),n})(c.Component);function q2(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),l=c.useRef(null),s=c.useContext(dp),u=typeof n=="function",f=u?n(o):n,m=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!u&&c.isValidElement(f)&&_i(f),g=p?oa(f):null,h=Zo(g,o),y=function(){var $;return cu(o.current)||(o.current&&mt(o.current)==="object"?cu(($=o.current)===null||$===void 0?void 0:$.nativeElement):null)||cu(l.current)};c.useImperativeHandle(t,function(){return y()});var x=c.useRef(e);x.current=e;var S=c.useCallback(function(b){var $=x.current,w=$.onResize,O=$.data,I=b.getBoundingClientRect(),R=I.width,P=I.height,T=b.offsetWidth,N=b.offsetHeight,M=Math.floor(R),_=Math.floor(P);if(m.current.width!==M||m.current.height!==_||m.current.offsetWidth!==T||m.current.offsetHeight!==N){var L={width:M,height:_,offsetWidth:T,offsetHeight:N};m.current=L;var z=T===Math.round(R)?R:T,A=N===Math.round(P)?P:N,B=X(X({},L),{},{offsetWidth:z,offsetHeight:A});s==null||s(B,b,O),w&&Promise.resolve().then(function(){w(B,b)})}},[]);return c.useEffect(function(){var b=y();return b&&!r&&V2(b,S),function(){return W2(b,S)}},[o.current,r]),c.createElement(G2,{ref:l},p?c.cloneElement(f,{ref:h}):f)}var K2=c.forwardRef(q2),X2="rc-observer-key";function Q2(e,t){var n=e.children,r=typeof n=="function"?[n]:Er(n);return r.map(function(o,l){var s=(o==null?void 0:o.key)||"".concat(X2,"-").concat(l);return c.createElement(K2,Ee({},e,{key:s,ref:l===0?t:void 0}),o)})}var oo=c.forwardRef(Q2);oo.Collection=w2;function mp(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 Y2(e){if(Array.isArray(e))return mp(e)}function g1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cg(e,t){if(e){if(typeof e=="string")return mp(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)?mp(e,t):void 0}}function Z2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
53
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ae(e){return Y2(e)||g1(e)||Cg(e)||Z2()}var v1=function(t){return+setTimeout(t,16)},h1=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(v1=function(t){return window.requestAnimationFrame(t)},h1=function(t){return window.cancelAnimationFrame(t)});var oy=0,wg=new Map;function y1(e){wg.delete(e)}var Sn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;oy+=1;var r=oy;function o(l){if(l===0)y1(r),t();else{var s=v1(function(){o(l-1)});wg.set(r,s)}}return o(n),r};Sn.cancel=function(e){var t=wg.get(e);return y1(e),h1(t)};function b1(e){if(Array.isArray(e))return e}function J2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,u=[],f=!0,m=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){m=!0,o=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(m)throw o}}return u}}function S1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
54
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e,t){return b1(e)||J2(e,t)||Cg(e,t)||S1()}function ps(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 br(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pp(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 iy="data-rc-order",ay="data-rc-priority",eO="rc-util-key",gp=new Map;function x1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):eO}function Qu(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function tO(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $g(e){return Array.from((gp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function C1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!br())return null;var n=t.csp,r=t.prepend,o=t.priority,l=o===void 0?0:o,s=tO(r),u=s==="prependQueue",f=document.createElement("style");f.setAttribute(iy,s),u&&l&&f.setAttribute(ay,"".concat(l)),n!=null&&n.nonce&&(f.nonce=n==null?void 0:n.nonce),f.innerHTML=e;var m=Qu(t),p=m.firstChild;if(r){if(u){var g=(t.styles||$g(m)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(iy)))return!1;var y=Number(h.getAttribute(ay)||0);return l>=y});if(g.length)return m.insertBefore(f,g[g.length-1].nextSibling),f}m.insertBefore(f,p)}else m.appendChild(f);return f}function w1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Qu(t);return(t.styles||$g(n)).find(function(r){return r.getAttribute(x1(t))===e})}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=w1(e,t);if(n){var r=Qu(t);r.removeChild(n)}}function nO(e,t){var n=gp.get(e);if(!n||!pp(document,n)){var r=C1("",t),o=r.parentNode;gp.set(e,o),e.removeChild(r)}}function Yo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Qu(n),o=$g(r),l=X(X({},n),{},{styles:o});nO(r,l);var s=w1(t,l);if(s){var u,f;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((f=l.csp)===null||f===void 0?void 0:f.nonce)){var m;s.nonce=(m=l.csp)===null||m===void 0?void 0:m.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var p=C1(e,l);return p.setAttribute(x1(l),t),p}function rO(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 Nt(e,t){if(e==null)return{};var n,r,o=rO(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(l,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=r.has(l);if(sr(!f,"Warning: There may be circular references"),f)return!1;if(l===s)return!0;if(n&&u>1)return!1;r.add(l);var m=u+1;if(Array.isArray(l)){if(!Array.isArray(s)||l.length!==s.length)return!1;for(var p=0;p<l.length;p++)if(!o(l[p],s[p],m))return!1;return!0}if(l&&s&&mt(l)==="object"&&mt(s)==="object"){var g=Object.keys(l);return g.length!==Object.keys(s).length?!1:g.every(function(h){return o(l[h],s[h],m)})}return!1}return o(e,t)}var oO="%";function vp(e){return e.join(oO)}var iO=(function(){function e(t){Wn(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),U(this,"extracted",new Set),this.instanceId=t}return Un(e,[{key:"get",value:function(n){return this.opGet(vp(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(vp(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),l=r(o);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e})(),nl="data-token-hash",So="data-css-hash",Ei="__cssinjs_instance__";function aO(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(So,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ei]=o[Ei]||e,o[Ei]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(So,"]"))).forEach(function(o){var l=o.getAttribute(So);if(r[l]){if(o[Ei]===e){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else r[l]=!0})}return new iO(e)}var Ts=c.createContext({hashPriority:"low",cache:aO(),defaultCache:!0});function lO(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 Eg=(function(){function e(){Wn(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Un(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return n.forEach(function(u){if(!s)s=void 0;else{var f;s=(f=s)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(u)}}),(r=s)!==null&&r!==void 0&&r.value&&l&&(s.value[1]=this.cacheCallTimes++),(o=s)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(m,p){var g=ae(m,2),h=g[1];return o.internalGet(p)[1]<h?[p,o.internalGet(p)[1]]:m},[this.keys[0],this.cacheCallTimes]),s=ae(l,1),u=s[0];this.delete(u)}this.keys.push(n)}var f=this.cache;n.forEach(function(m,p){if(p===n.length-1)f.set(m,{value:[r,o.cacheCallTimes++]});else{var g=f.get(m);g?g.map||(g.map=new Map):f.set(m,{map:new Map}),f=f.get(m).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var l;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(l=o.value)===null||l===void 0?void 0:l[0]}var s=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),s}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!lO(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();U(Eg,"MAX_CACHE_SIZE",20);U(Eg,"MAX_CACHE_OFFSET",5);var ly=0,$1=(function(){function e(t){Wn(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ly,t.length===0&&(t.length>0,void 0),ly+=1}return Un(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),ym=new Eg;function hp(e){var t=Array.isArray(e)?e:[e];return ym.has(t)||ym.set(t,new $1(t)),ym.get(t)}var sO=new WeakMap,bm={};function cO(e,t){for(var n=sO,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(bm)||n.set(bm,e()),n.get(bm)}var sy=new WeakMap;function ls(e){var t=sy.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof $1?t+=r.id:r&&mt(r)==="object"?t+=ls(r):t+=r}),t=ps(t),sy.set(e,t)),t}function cy(e,t){return ps("".concat(t,"_").concat(ls(e)))}var yp=br();function J(e){return typeof e=="number"?"".concat(e,"px"):e}function $u(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var l=X(X({},r),{},U(U({},nl,t),So,n)),s=Object.keys(l).map(function(u){var f=l[u];return f?"".concat(u,'="').concat(f,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var uu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},uO=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var l=ae(o,2),s=l[0],u=l[1];return"".concat(s,":").concat(u,";")}).join(""),"}"):""},E1=function(t,n,r){var o={},l={};return Object.entries(t).forEach(function(s){var u,f,m=ae(s,2),p=m[0],g=m[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[p])l[p]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(f=r.ignore)!==null&&f!==void 0&&f[p])){var h,y=uu(p,r==null?void 0:r.prefix);o[y]=typeof g=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[p])?"".concat(g,"px"):String(g),l[p]="var(".concat(y,")")}}),[l,uO(o,n,{scope:r==null?void 0:r.scope})]},uy=br()?c.useLayoutEffect:c.useEffect,rn=function(t,n){var r=c.useRef(!0);uy(function(){return t(r.current)},n),uy(function(){return r.current=!1,function(){r.current=!0}},[])},bp=function(t,n){rn(function(r){if(!r)return t()},n)},dO=X({},Ku),dy=dO.useInsertionEffect,fO=function(t,n,r){c.useMemo(t,r),rn(function(){return n(!0)},r)},mO=dy?function(e,t,n){return dy(function(){return e(),t()},n)}:fO,pO=X({},Ku),gO=pO.useInsertionEffect,vO=function(t){var n=[],r=!1;function o(l){r||n.push(l)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),o},hO=function(){return function(t){t()}},yO=typeof gO<"u"?vO:hO;function Og(e,t,n,r,o){var l=c.useContext(Ts),s=l.cache,u=[e].concat(Ae(t)),f=vp(u),m=yO([f]),p=function(x){s.opUpdate(f,function(S){var b=S||[void 0,void 0],$=ae(b,2),w=$[0],O=w===void 0?0:w,I=$[1],R=I,P=R||n(),T=[O,P];return x?x(T):T})};c.useMemo(function(){p()},[f]);var g=s.opGet(f),h=g[1];return mO(function(){o==null||o(h)},function(y){return p(function(x){var S=ae(x,2),b=S[0],$=S[1];return y&&b===0&&(o==null||o(h)),[b+1,$]}),function(){s.opUpdate(f,function(x){var S=x||[],b=ae(S,2),$=b[0],w=$===void 0?0:$,O=b[1],I=w-1;return I===0?(m(function(){(y||!s.opGet(f))&&(r==null||r(O,!1))}),null):[w-1,O]})}},[f]),h}var bO={},SO="css",Ki=new Map;function xO(e){Ki.set(e,(Ki.get(e)||0)+1)}function CO(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(nl,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ei]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var wO=0;function $O(e,t){Ki.set(e,(Ki.get(e)||0)-1);var n=new Set;Ki.forEach(function(r,o){r<=0&&n.add(o)}),Ki.size-n.size>wO&&n.forEach(function(r){CO(r,t),Ki.delete(r)})}var EO=function(t,n,r,o){var l=r.getDerivativeToken(t),s=X(X({},l),n);return o&&(s=o(s)),s},O1="token";function OO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(Ts),o=r.cache.instanceId,l=r.container,s=n.salt,u=s===void 0?"":s,f=n.override,m=f===void 0?bO:f,p=n.formatToken,g=n.getComputedToken,h=n.cssVar,y=cO(function(){return Object.assign.apply(Object,[{}].concat(Ae(t)))},t),x=ls(y),S=ls(m),b=h?ls(h):"",$=Og(O1,[u,e.id,x,S,b],function(){var w,O=g?g(y,m,e):EO(y,m,e,p),I=X({},O),R="";if(h){var P=E1(O,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),T=ae(P,2);O=T[0],R=T[1]}var N=cy(O,u);O._tokenKey=N,I._tokenKey=cy(I,u);var M=(w=h==null?void 0:h.key)!==null&&w!==void 0?w:N;O._themeKey=M,xO(M);var _="".concat(SO,"-").concat(ps(N));return O._hashId=_,[O,_,I,R,(h==null?void 0:h.key)||""]},function(w){$O(w[0]._themeKey,o)},function(w){var O=ae(w,4),I=O[0],R=O[3];if(h&&R){var P=Yo(R,ps("css-variables-".concat(I._themeKey)),{mark:So,prepend:"queue",attachTo:l,priority:-999});P[Ei]=o,P.setAttribute(nl,I._themeKey)}});return $}var IO=function(t,n,r){var o=ae(t,5),l=o[2],s=o[3],u=o[4],f=r||{},m=f.plain;if(!s)return null;var p=l._tokenKey,g=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=$u(s,u,p,h,m);return[g,p,y]},RO={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},I1="comm",R1="rule",P1="decl",PO="@import",TO="@namespace",MO="@keyframes",NO="@layer",T1=Math.abs,Ig=String.fromCharCode;function M1(e){return e.trim()}function du(e,t,n){return e.replace(t,n)}function _O(e,t,n){return e.indexOf(t,n)}function Za(e,t){return e.charCodeAt(t)|0}function rl(e,t,n){return e.slice(t,n)}function Ro(e){return e.length}function jO(e){return e.length}function Vc(e,t){return t.push(e),e}var Yu=1,ol=1,N1=0,io=0,Fn=0,fl="";function Rg(e,t,n,r,o,l,s,u){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:Yu,column:ol,length:s,return:"",siblings:u}}function zO(){return Fn}function kO(){return Fn=io>0?Za(fl,--io):0,ol--,Fn===10&&(ol=1,Yu--),Fn}function xo(){return Fn=io<N1?Za(fl,io++):0,ol++,Fn===10&&(ol=1,Yu++),Fn}function Oi(){return Za(fl,io)}function fu(){return io}function Zu(e,t){return rl(fl,e,t)}function hs(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 LO(e){return Yu=ol=1,N1=Ro(fl=e),io=0,[]}function BO(e){return fl="",e}function Sm(e){return M1(Zu(io-1,Sp(e===91?e+2:e===40?e+1:e)))}function AO(e){for(;(Fn=Oi())&&Fn<33;)xo();return hs(e)>2||hs(Fn)>3?"":" "}function DO(e,t){for(;--t&&xo()&&!(Fn<48||Fn>102||Fn>57&&Fn<65||Fn>70&&Fn<97););return Zu(e,fu()+(t<6&&Oi()==32&&xo()==32))}function Sp(e){for(;xo();)switch(Fn){case e:return io;case 34:case 39:e!==34&&e!==39&&Sp(Fn);break;case 40:e===41&&Sp(e);break;case 92:xo();break}return io}function FO(e,t){for(;xo()&&e+Fn!==57;)if(e+Fn===84&&Oi()===47)break;return"/*"+Zu(t,io-1)+"*"+Ig(e===47?e:xo())}function HO(e){for(;!hs(Oi());)xo();return Zu(e,io)}function VO(e){return BO(mu("",null,null,null,[""],e=LO(e),0,[0],e))}function mu(e,t,n,r,o,l,s,u,f){for(var m=0,p=0,g=s,h=0,y=0,x=0,S=1,b=1,$=1,w=0,O="",I=o,R=l,P=r,T=O;b;)switch(x=w,w=xo()){case 40:if(x!=108&&Za(T,g-1)==58){_O(T+=du(Sm(w),"&","&\f"),"&\f",T1(m?u[m-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:T+=Sm(w);break;case 9:case 10:case 13:case 32:T+=AO(x);break;case 92:T+=DO(fu()-1,7);continue;case 47:switch(Oi()){case 42:case 47:Vc(WO(FO(xo(),fu()),t,n,f),f),(hs(x||1)==5||hs(Oi()||1)==5)&&Ro(T)&&rl(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*S:u[m++]=Ro(T)*$;case 125*S:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+p:$==-1&&(T=du(T,/\f/g,"")),y>0&&(Ro(T)-g||S===0&&x===47)&&Vc(y>32?my(T+";",r,n,g-1,f):my(du(T," ","")+";",r,n,g-2,f),f);break;case 59:T+=";";default:if(Vc(P=fy(T,t,n,m,p,o,u,O,I=[],R=[],g,l),l),w===123)if(p===0)mu(T,t,P,P,I,l,g,u,R);else{switch(h){case 99:if(Za(T,3)===110)break;case 108:if(Za(T,2)===97)break;default:p=0;case 100:case 109:case 115:}p?mu(e,P,P,r&&Vc(fy(e,P,P,0,0,o,u,O,o,I=[],g,R),R),o,R,g,u,r?I:R):mu(T,P,P,P,[""],R,0,u,R)}}m=p=y=0,S=$=1,O=T="",g=s;break;case 58:g=1+Ro(T),y=x;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&kO()==125)continue}switch(T+=Ig(w),w*S){case 38:$=p>0?1:(T+="\f",-1);break;case 44:u[m++]=(Ro(T)-1)*$,$=1;break;case 64:Oi()===45&&(T+=Sm(xo())),h=Oi(),p=g=Ro(O=T+=HO(fu())),w++;break;case 45:x===45&&Ro(T)==2&&(S=0)}}return l}function fy(e,t,n,r,o,l,s,u,f,m,p,g){for(var h=o-1,y=o===0?l:[""],x=jO(y),S=0,b=0,$=0;S<r;++S)for(var w=0,O=rl(e,h+1,h=T1(b=s[S])),I=e;w<x;++w)(I=M1(b>0?y[w]+" "+O:du(O,/&\f/g,y[w])))&&(f[$++]=I);return Rg(e,t,n,o===0?R1:u,f,m,p,g)}function WO(e,t,n,r){return Rg(e,t,n,I1,Ig(zO()),rl(e,2,-2),0,r)}function my(e,t,n,r,o){return Rg(e,t,n,P1,rl(e,0,r),rl(e,r+1,-1),r,o)}function xp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function UO(e,t,n,r){switch(e.type){case NO:if(e.children.length)break;case PO:case TO:case P1:return e.return=e.return||e.value;case I1:return"";case MO:return e.return=e.value+"{"+xp(e.children,r)+"}";case R1:if(!Ro(e.value=e.props.join(",")))return""}return Ro(n=xp(e.children,r))?e.return=e.value+"{"+n+"}":""}var py="data-ant-cssinjs-cache-path",_1="_FILE_STYLE__",Ji,j1=!0;function GO(){if(!Ji&&(Ji={},br())){var e=document.createElement("div");e.className=py,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 l=o.split(":"),s=ae(l,2),u=s[0],f=s[1];Ji[u]=f});var n=document.querySelector("style[".concat(py,"]"));if(n){var r;j1=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function qO(e){return GO(),!!Ji[e]}function KO(e){var t=Ji[e],n=null;if(t&&br())if(j1)n=_1;else{var r=document.querySelector("style[".concat(So,'="').concat(Ji[e],'"]'));r?n=r.innerHTML:delete Ji[e]}return[n,t]}var XO="_skip_check_",z1="_multi_value_";function pu(e){var t=xp(VO(e),UO);return t.replace(/\{%%%\:[^;];}/g,";")}function QO(e){return mt(e)==="object"&&e&&(XO in e||z1 in e)}function gy(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(s){var u,f=s.trim().split(/\s+/),m=f[0]||"",p=((u=m.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return m="".concat(p).concat(o).concat(m.slice(p.length)),[m].concat(Ae(f.slice(1))).join(" ")});return l.join(",")}var YO=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,l=r.injectHash,s=r.parentSelectors,u=n.hashId,f=n.layer;n.path;var m=n.hashPriority,p=n.transformers,g=p===void 0?[]:p;n.linters;var h="",y={};function x($){var w=$.getName(u);if(!y[w]){var O=e($.style,n,{root:!1,parentSelectors:s}),I=ae(O,1),R=I[0];y[w]="@keyframes ".concat($.getName(u)).concat(R)}}function S($){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(O){Array.isArray(O)?S(O,w):O&&w.push(O)}),w}var b=S(Array.isArray(t)?t:[t]);return b.forEach(function($){var w=typeof $=="string"&&!o?{}:$;if(typeof w=="string")h+="".concat(w,`
|
|
55
|
-
`);else if(w._keyframe)x(w);else{var O=g.reduce(function(I,R){var P;return(R==null||(P=R.visit)===null||P===void 0?void 0:P.call(R,I))||I},w);Object.keys(O).forEach(function(I){var R=O[I];if(mt(R)==="object"&&R&&(I!=="animationName"||!R._keyframe)&&!QO(R)){var P=!1,T=I.trim(),N=!1;(o||l)&&u?T.startsWith("@")?P=!0:T==="&"?T=gy("",u,m):T=gy(I,u,m):o&&!u&&(T==="&"||T==="")&&(T="",N=!0);var M=e(R,n,{root:N,injectHash:P,parentSelectors:[].concat(Ae(s),[T])}),_=ae(M,2),L=_[0],z=_[1];y=X(X({},y),z),h+="".concat(T).concat(L)}else{let G=function(V,H){var D=V.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),Z=H;!RO[V]&&typeof Z=="number"&&Z!==0&&(Z="".concat(Z,"px")),V==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(x(H),Z=H.getName(u)),h+="".concat(D,":").concat(Z,";")};var A,B=(A=R==null?void 0:R.value)!==null&&A!==void 0?A:R;mt(R)==="object"&&R!==null&&R!==void 0&&R[z1]&&Array.isArray(B)?B.forEach(function(V){G(I,V)}):G(I,B)}})}}),o?f&&(h&&(h="@layer ".concat(f.name," {").concat(h,"}")),f.dependencies&&(y["@layer ".concat(f.name)]=f.dependencies.map(function($){return"@layer ".concat($,", ").concat(f.name,";")}).join(`
|
|
56
|
-
`))):h="{".concat(h,"}"),[h,y]};function k1(e,t){return ps("".concat(e.join("%")).concat(t))}function ZO(){return null}var L1="style";function Cp(e,t){var n=e.token,r=e.path,o=e.hashId,l=e.layer,s=e.nonce,u=e.clientOnly,f=e.order,m=f===void 0?0:f,p=c.useContext(Ts),g=p.autoClear;p.mock;var h=p.defaultCache,y=p.hashPriority,x=p.container,S=p.ssrInline,b=p.transformers,$=p.linters,w=p.cache,O=p.layer,I=n._tokenKey,R=[I];O&&R.push("layer"),R.push.apply(R,Ae(r));var P=yp,T=Og(L1,R,function(){var z=R.join("|");if(qO(z)){var A=KO(z),B=ae(A,2),G=B[0],V=B[1];if(G)return[G,I,V,{},u,m]}var H=t(),D=YO(H,{hashId:o,hashPriority:y,layer:O?l:void 0,path:r.join("-"),transformers:b,linters:$}),Z=ae(D,2),W=Z[0],k=Z[1],F=pu(W),Q=k1(R,F);return[F,I,Q,k,u,m]},function(z,A){var B=ae(z,3),G=B[2];(A||g)&&yp&&gs(G,{mark:So,attachTo:x})},function(z){var A=ae(z,4),B=A[0];A[1];var G=A[2],V=A[3];if(P&&B!==_1){var H={mark:So,prepend:O?!1:"queue",attachTo:x,priority:m},D=typeof s=="function"?s():s;D&&(H.csp={nonce:D});var Z=[],W=[];Object.keys(V).forEach(function(F){F.startsWith("@layer")?Z.push(F):W.push(F)}),Z.forEach(function(F){Yo(pu(V[F]),"_layer-".concat(F),X(X({},H),{},{prepend:!0}))});var k=Yo(B,G,H);k[Ei]=w.instanceId,k.setAttribute(nl,I),W.forEach(function(F){Yo(pu(V[F]),"_effect-".concat(F),H)})}}),N=ae(T,3),M=N[0],_=N[1],L=N[2];return function(z){var A;return!S||P||!h?A=c.createElement(ZO,null):A=c.createElement("style",Ee({},U(U({},nl,_),So,L),{dangerouslySetInnerHTML:{__html:M}})),c.createElement(c.Fragment,null,A,z)}}var JO=function(t,n,r){var o=ae(t,6),l=o[0],s=o[1],u=o[2],f=o[3],m=o[4],p=o[5],g=r||{},h=g.plain;if(m)return null;var y=l,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)};return y=$u(l,s,u,x,h),f&&Object.keys(f).forEach(function(S){if(!n[S]){n[S]=!0;var b=pu(f[S]),$=$u(b,s,"_effect-".concat(S),x,h);S.startsWith("@layer")?y=$+y:y+=$}}),[p,u,y]},B1="cssVar",eI=function(t,n){var r=t.key,o=t.prefix,l=t.unitless,s=t.ignore,u=t.token,f=t.scope,m=f===void 0?"":f,p=c.useContext(Ts),g=p.cache.instanceId,h=p.container,y=u._tokenKey,x=[].concat(Ae(t.path),[r,m,y]),S=Og(B1,x,function(){var b=n(),$=E1(b,r,{prefix:o,unitless:l,ignore:s,scope:m}),w=ae($,2),O=w[0],I=w[1],R=k1(x,I);return[O,I,R,r]},function(b){var $=ae(b,3),w=$[2];yp&&gs(w,{mark:So,attachTo:h})},function(b){var $=ae(b,3),w=$[1],O=$[2];if(w){var I=Yo(w,O,{mark:So,prepend:"queue",attachTo:h,priority:-999});I[Ei]=g,I.setAttribute(nl,r)}});return S},tI=function(t,n,r){var o=ae(t,4),l=o[1],s=o[2],u=o[3],f=r||{},m=f.plain;if(!l)return null;var p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},h=$u(l,u,s,g,m);return[p,s,h]};U(U(U({},L1,JO),O1,IO),B1,tI);var At=(function(){function e(t,n){Wn(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n}return Un(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function _a(e){return e.notSplit=!0,e}_a(["borderTop","borderBottom"]),_a(["borderTop"]),_a(["borderBottom"]),_a(["borderLeft","borderRight"]),_a(["borderLeft"]),_a(["borderRight"]);var Pg=c.createContext({});function A1(e){return b1(e)||g1(e)||Cg(e)||S1()}function Po(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function D1(e,t,n,r){if(!t.length)return n;var o=A1(t),l=o[0],s=o.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=Ae(e):u=X({},e),r&&n===void 0&&s.length===1?delete u[l][s[0]]:u[l]=D1(u[l],s,n,r),u}function go(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Po(e,t.slice(0,-1))?e:D1(e,t,n,r)}function nI(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function vy(e){return Array.isArray(e)?[]:{}}var rI=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ka(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=vy(t[0]);return t.forEach(function(o){function l(s,u){var f=new Set(u),m=Po(o,s),p=Array.isArray(m);if(p||nI(m)){if(!f.has(m)){f.add(m);var g=Po(r,s);p?r=go(r,s,[]):(!g||mt(g)!=="object")&&(r=go(r,s,vy(m))),rI(m).forEach(function(h){l([].concat(Ae(s),[h]),f)})}}else r=go(r,s,m)}l([])}),r}function oI(){}const iI=c.createContext({}),Ju=()=>{const e=()=>{};return e.deprecated=oI,e},aI=c.createContext(void 0);var F1={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"},lI={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},sI=X(X({},lI),{},{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 H1={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},hy={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},sI),timePickerLocale:Object.assign({},H1)},Hr="${label} is not a valid ${type}",Pi={locale:"en",Pagination:F1,DatePicker:hy,TimePicker:H1,Calendar:hy,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Hr,method:Hr,array:Hr,object:Hr,number:Hr,date:Hr,boolean:Hr,integer:Hr,float:Hr,regexp:Hr,email:Hr,url:Hr,hex:Hr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let gu=Object.assign({},Pi.Modal),vu=[];const yy=()=>vu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Pi.Modal);function cI(e){if(e){const t=Object.assign({},e);return vu.push(t),gu=yy(),()=>{vu=vu.filter(n=>n!==t),gu=yy()}}gu=Object.assign({},Pi.Modal)}function V1(){return gu}const Tg=c.createContext(void 0),ti=(e,t)=>{const n=c.useContext(Tg),r=c.useMemo(()=>{var l;const s=t||Pi[e],u=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),u||{})},[e,t,n]),o=c.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?Pi.locale:l},[n]);return[r,o]},uI="internalMark",dI=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>cI(t==null?void 0:t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(Tg.Provider,{value:o},n)},Mg={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"},ys=Object.assign(Object.assign({},Mg),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
57
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
58
|
-
'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}),rr=Math.round;function xm(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 by=(e,t,n)=>n===0?e:e/100;function Xl(e,t){const n=t||255;return e>n?n:e<0?0:e}class sn{constructor(t){U(this,"isValid",!0),U(this,"r",0),U(this,"g",0),U(this,"b",0),U(this,"a",1),U(this,"_h",void 0),U(this,"_s",void 0),U(this,"_l",void 0),U(this,"_v",void 0),U(this,"_max",void 0),U(this,"_min",void 0),U(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let l=function(s){return o.startsWith(s)};var r=l;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):l("rgb")?this.fromRgbString(o):l("hsl")?this.fromHslString(o):(l("hsv")||l("hsb"))&&this.fromHsvString(o)}else if(t instanceof sn)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=Xl(t.r),this.g=Xl(t.g),this.b=Xl(t.b),this.a=typeof t.a=="number"?Xl(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(l){const s=l/255;return s<=.03928?s/12.92:Math.pow((s+.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=rr(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,l=u=>(r[u]-this[u])*o+this[u],s={r:rr(l("r")),g:rr(l("g")),b:rr(l("b")),a:rr(l("a")*100)/100};return this._c(s)}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=l=>rr((this[l]*this.a+n[l]*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 l=rr(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=rr(this.getSaturation()*100),r=rr(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]=Xl(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,l){return parseInt(n[o]+n[l||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 h=rr(r*255);this.r=h,this.g=h,this.b=h}let l=0,s=0,u=0;const f=t/60,m=(1-Math.abs(2*r-1))*n,p=m*(1-Math.abs(f%2-1));f>=0&&f<1?(l=m,s=p):f>=1&&f<2?(l=p,s=m):f>=2&&f<3?(s=m,u=p):f>=3&&f<4?(s=p,u=m):f>=4&&f<5?(l=p,u=m):f>=5&&f<6&&(l=m,u=p);const g=r-m/2;this.r=rr((l+g)*255),this.g=rr((s+g)*255),this.b=rr((u+g)*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 l=rr(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const s=t/60,u=Math.floor(s),f=s-u,m=rr(r*(1-n)*255),p=rr(r*(1-n*f)*255),g=rr(r*(1-n*(1-f))*255);switch(u){case 0:this.g=g,this.b=m;break;case 1:this.r=p,this.b=m;break;case 2:this.r=m,this.b=g;break;case 3:this.r=m,this.g=p;break;case 4:this.r=g,this.g=m;break;case 5:default:this.g=m,this.b=p;break}}fromHsvString(t){const n=xm(t,by);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=xm(t,by);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=xm(t,(r,o)=>o.includes("%")?rr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Wc=2,Sy=.16,fI=.05,mI=.05,pI=.15,W1=5,U1=4,gI=[{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 xy(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Wc*t:Math.round(e.h)+Wc*t:r=n?Math.round(e.h)+Wc*t:Math.round(e.h)-Wc*t,r<0?r+=360:r>=360&&(r-=360),r}function Cy(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Sy*t:t===U1?r=e.s+Sy:r=e.s+fI*t,r>1&&(r=1),n&&t===W1&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function wy(e,t,n){var r;return n?r=e.v+mI*t:r=e.v-pI*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ea(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new sn(e),o=r.toHsv(),l=W1;l>0;l-=1){var s=new sn({h:xy(o,l,!0),s:Cy(o,l,!0),v:wy(o,l,!0)});n.push(s)}n.push(r);for(var u=1;u<=U1;u+=1){var f=new sn({h:xy(o,u),s:Cy(o,u),v:wy(o,u)});n.push(f)}return t.theme==="dark"?gI.map(function(m){var p=m.index,g=m.amount;return new sn(t.backgroundColor||"#141414").mix(n[p],g).toHexString()}):n.map(function(m){return m.toHexString()})}var Cm={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"},wp=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];wp.primary=wp[5];var $p=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];$p.primary=$p[5];var Ep=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ep.primary=Ep[5];var Eu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Eu.primary=Eu[5];var Op=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Op.primary=Op[5];var Ip=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ip.primary=Ip[5];var Rp=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Rp.primary=Rp[5];var Pp=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Pp.primary=Pp[5];var Ou=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ou.primary=Ou[5];var Tp=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Tp.primary=Tp[5];var Mp=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Mp.primary=Mp[5];var Np=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Np.primary=Np[5];var _p=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];_p.primary=_p[5];var wm={red:wp,volcano:$p,orange:Ep,gold:Eu,yellow:Op,lime:Ip,green:Rp,cyan:Pp,blue:Ou,geekblue:Tp,purple:Mp,magenta:Np,grey:_p};function G1(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:l,colorInfo:s,colorPrimary:u,colorBgBase:f,colorTextBase:m}=e,p=t(u),g=t(r),h=t(o),y=t(l),x=t(s),S=n(f,m),b=e.colorLink||e.colorInfo,$=t(b),w=new sn(y[1]).mix(new sn(y[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:w,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new sn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const vI=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 hI(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},vI(r))}const yI=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function hu(e){return(e+8)/e}function bI(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,l=e*Math.pow(Math.E,o/5),s=r>1?Math.floor(l):Math.ceil(l);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:hu(n)}))}const SI=e=>{const t=bI(e),n=t.map(p=>p.size),r=t.map(p=>p.lineHeight),o=n[1],l=n[0],s=n[2],u=r[1],f=r[0],m=r[2];return{fontSizeSM:l,fontSize:o,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:m,lineHeightSM:f,fontHeight:Math.round(u*o),fontHeightLG:Math.round(m*s),fontHeightSM:Math.round(f*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function xI(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 Jr=(e,t)=>new sn(e).setA(t).toRgbString(),Ql=(e,t)=>new sn(e).darken(t).toHexString(),CI=e=>{const t=ea(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]}},wI=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Jr(r,.88),colorTextSecondary:Jr(r,.65),colorTextTertiary:Jr(r,.45),colorTextQuaternary:Jr(r,.25),colorFill:Jr(r,.15),colorFillSecondary:Jr(r,.06),colorFillTertiary:Jr(r,.04),colorFillQuaternary:Jr(r,.02),colorBgSolid:Jr(r,1),colorBgSolidHover:Jr(r,.75),colorBgSolidActive:Jr(r,.95),colorBgLayout:Ql(n,4),colorBgContainer:Ql(n,0),colorBgElevated:Ql(n,0),colorBgSpotlight:Jr(r,.85),colorBgBlur:"transparent",colorBorder:Ql(n,15),colorBorderSecondary:Ql(n,6)}};function q1(e){Cm.pink=Cm.magenta,wm.pink=wm.magenta;const t=Object.keys(Mg).map(n=>{const r=e[n]===Cm[n]?wm[n]:ea(e[n]);return Array.from({length:10},()=>1).reduce((o,l,s)=>(o[`${n}-${s+1}`]=r[s],o[`${n}${s+1}`]=r[s],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),G1(e,{generateColorPalettes:CI,generateNeutralColorPalettes:wI})),SI(e.fontSize)),xI(e)),yI(e)),hI(e))}const K1=hp(q1),Iu={token:ys,override:{override:ys},hashed:!0},X1=Y.createContext(Iu),bs="ant",ed="anticon",$I=["outlined","borderless","filled","underlined"],EI=(e,t)=>t||(e?`${bs}-${e}`:bs),Rt=c.createContext({getPrefixCls:EI,iconPrefixCls:ed}),{Consumer:w8}=Rt,$y={};function Ir(e){const t=c.useContext(Rt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,l=t[e];return Object.assign(Object.assign({classNames:$y,styles:$y},l),{getPrefixCls:n,direction:r,getPopupContainer:o})}const OI=`-ant-${Date.now()}-${Math.random()}`;function II(e,t){const n={},r=(s,u)=>{let f=s.clone();return f=(u==null?void 0:u(f))||f,f.toRgbString()},o=(s,u)=>{const f=new sn(s),m=ea(f.toRgbString());n[`${u}-color`]=r(f),n[`${u}-color-disabled`]=m[1],n[`${u}-color-hover`]=m[4],n[`${u}-color-active`]=m[6],n[`${u}-color-outline`]=f.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=m[0],n[`${u}-color-deprecated-border`]=m[2]};if(t.primaryColor){o(t.primaryColor,"primary");const s=new sn(t.primaryColor),u=ea(s.toRgbString());u.forEach((m,p)=>{n[`primary-${p+1}`]=m}),n["primary-color-deprecated-l-35"]=r(s,m=>m.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,m=>m.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,m=>m.tint(20)),n["primary-color-deprecated-t-50"]=r(s,m=>m.tint(50)),n["primary-color-deprecated-f-12"]=r(s,m=>m.setA(m.a*.12));const f=new sn(u[0]);n["primary-color-active-deprecated-f-30"]=r(f,m=>m.setA(m.a*.3)),n["primary-color-active-deprecated-d-02"]=r(f,m=>m.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"),`
|
|
59
|
-
:root {
|
|
60
|
-
${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
|
|
61
|
-
`)}
|
|
62
|
-
}
|
|
63
|
-
`.trim()}function RI(e,t){const n=II(e,t);br()&&Yo(n,`${OI}-dynamic-theme`)}const il=c.createContext(!1),Q1=({children:e,disabled:t})=>{const n=c.useContext(il);return c.createElement(il.Provider,{value:t??n},e)},al=c.createContext(void 0),PI=({children:e,size:t})=>{const n=c.useContext(al);return c.createElement(al.Provider,{value:t||n},e)};function TI(){const e=c.useContext(il),t=c.useContext(al);return{componentDisabled:e,componentSize:t}}var Y1=Un(function e(){Wn(this,e)}),Z1="CALC_UNIT",MI=new RegExp(Z1,"g");function $m(e){return typeof e=="number"?"".concat(e).concat(Z1):e}var NI=(function(e){Jo(n,e);var t=ei(n);function n(r,o){var l;Wn(this,n),l=t.call(this),U(Ft(l),"result",""),U(Ft(l),"unitlessCssVar",void 0),U(Ft(l),"lowPriority",void 0);var s=mt(r);return l.unitlessCssVar=o,r instanceof n?l.result="(".concat(r.result,")"):s==="number"?l.result=$m(r):s==="string"&&(l.result=r),l}return Un(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat($m(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat($m(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var l=this,s=o||{},u=s.unit,f=!0;return typeof u=="boolean"?f=u:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(f=!1),this.result=this.result.replace(MI,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Y1),_I=(function(e){Jo(n,e);var t=ei(n);function n(r){var o;return Wn(this,n),o=t.call(this),U(Ft(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Un(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(Y1),jI=function(t,n){var r=t==="css"?NI:_I;return function(o){return new r(o,n)}},Ey=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function _n(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return n}function ll(e){var t=c.useRef(!1),n=c.useState(e),r=ae(n,2),o=r[0],l=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(u,f){f&&t.current||l(u)}return[o,s]}function Em(e){return e!==void 0}function Hn(e,t){var n=t||{},r=n.defaultValue,o=n.value,l=n.onChange,s=n.postState,u=ll(function(){return Em(o)?o:Em(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=ae(u,2),m=f[0],p=f[1],g=o!==void 0?o:m,h=s?s(g):g,y=_n(l),x=ll([g]),S=ae(x,2),b=S[0],$=S[1];bp(function(){var O=b[0];m!==O&&y(m,O)},[b]),bp(function(){Em(o)||p(o)},[o]);var w=_n(function(O,I){p(O,I),$([g],I)});return[h,w]}function Oy(e,t,n,r){var o=X({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var f=ae(u,2),m=f[0],p=f[1];if(o!=null&&o[m]||o!=null&&o[p]){var g;(g=o[p])!==null&&g!==void 0||(o[p]=o==null?void 0:o[m])}})}var s=X(X({},n),o);return Object.keys(s).forEach(function(u){s[u]===t[u]&&delete s[u]}),s}var J1=typeof CSSINJS_STATISTIC<"u",jp=!0;function Qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!J1)return Object.assign.apply(Object,[{}].concat(t));jp=!1;var r={};return t.forEach(function(o){if(mt(o)==="object"){var l=Object.keys(o);l.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),jp=!0,r}var Iy={};function zI(){}var kI=function(t){var n,r=t,o=zI;return J1&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,u){if(jp){var f;(f=n)===null||f===void 0||f.add(u)}return s[u]}}),o=function(s,u){var f;Iy[s]={global:Array.from(n),component:X(X({},(f=Iy[s])===null||f===void 0?void 0:f.component),u)}}),{token:r,keys:n,flush:o}};function Ry(e,t,n){if(typeof n=="function"){var r;return n(Qt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function LI(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(l){return J(l)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(l){return J(l)}).join(","),")")}}}var BI=1e3*60*10,AI=(function(){function e(){Wn(this,e),U(this,"map",new Map),U(this,"objectIDMap",new WeakMap),U(this,"nextID",0),U(this,"lastAccessBeat",new Map),U(this,"accessBeat",0)}return Un(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(l){return l&&mt(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(mt(l),"_").concat(l)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,l){r-o>BI&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),Py=new AI;function DI(e,t){return Y.useMemo(function(){var n=Py.get(t);if(n)return n;var r=e();return Py.set(t,r),r},t)}var FI=function(){return{}};function HI(e){var t=e.useCSP,n=t===void 0?FI:t,r=e.useToken,o=e.usePrefix,l=e.getResetStyles,s=e.getCommonStyle,u=e.getCompUnitless;function f(h,y,x,S){var b=Array.isArray(h)?h[0]:h;function $(N){return"".concat(String(b)).concat(N.slice(0,1).toUpperCase()).concat(N.slice(1))}var w=(S==null?void 0:S.unitless)||{},O=typeof u=="function"?u(h):{},I=X(X({},O),{},U({},$("zIndexPopup"),!0));Object.keys(w).forEach(function(N){I[$(N)]=w[N]});var R=X(X({},S),{},{unitless:I,prefixToken:$}),P=p(h,y,x,R),T=m(b,x,R);return function(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,_=P(N,M),L=ae(_,2),z=L[1],A=T(M),B=ae(A,2),G=B[0],V=B[1];return[G,z,V]}}function m(h,y,x){var S=x.unitless,b=x.injectStyle,$=b===void 0?!0:b,w=x.prefixToken,O=x.ignore,I=function(T){var N=T.rootCls,M=T.cssVar,_=M===void 0?{}:M,L=r(),z=L.realToken;return eI({path:[h],prefix:_.prefix,key:_.key,unitless:S,ignore:O,token:z,scope:N},function(){var A=Ry(h,z,y),B=Oy(h,z,A,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(A).forEach(function(G){B[w(G)]=B[G],delete B[G]}),B}),null},R=function(T){var N=r(),M=N.cssVar;return[function(_){return $&&M?Y.createElement(Y.Fragment,null,Y.createElement(I,{rootCls:T,cssVar:M,component:h}),_):_},M==null?void 0:M.key]};return R}function p(h,y,x){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(h)?h:[h,h],$=ae(b,1),w=$[0],O=b.join("-"),I=e.layer||{name:"antd"};return function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,T=r(),N=T.theme,M=T.realToken,_=T.hashId,L=T.token,z=T.cssVar,A=o(),B=A.rootPrefixCls,G=A.iconPrefixCls,V=n(),H=z?"css":"js",D=DI(function(){var ne=new Set;return z&&Object.keys(S.unitless||{}).forEach(function(ee){ne.add(uu(ee,z.prefix)),ne.add(uu(ee,Ey(w,z.prefix)))}),jI(H,ne)},[H,w,z==null?void 0:z.prefix]),Z=LI(H),W=Z.max,k=Z.min,F={theme:N,token:L,hashId:_,nonce:function(){return V.nonce},clientOnly:S.clientOnly,layer:I,order:S.order||-999};typeof l=="function"&&Cp(X(X({},F),{},{clientOnly:!1,path:["Shared",B]}),function(){return l(L,{prefix:{rootPrefixCls:B,iconPrefixCls:G},csp:V})});var Q=Cp(X(X({},F),{},{path:[O,R,G]}),function(){if(S.injectStyle===!1)return[];var ne=kI(L),ee=ne.token,oe=ne.flush,fe=Ry(w,M,x),me=".".concat(R),ue=Oy(w,M,fe,{deprecatedTokens:S.deprecatedTokens});z&&fe&&mt(fe)==="object"&&Object.keys(fe).forEach(function(ye){fe[ye]="var(".concat(uu(ye,Ey(w,z.prefix)),")")});var Se=Qt(ee,{componentCls:me,prefixCls:R,iconCls:".".concat(G),antCls:".".concat(B),calc:D,max:W,min:k},z?fe:ue),pe=y(Se,{hashId:_,prefixCls:R,rootPrefixCls:B,iconPrefixCls:G});oe(w,ue);var se=typeof s=="function"?s(Se,R,P,S.resetFont):null;return[S.resetStyle===!1?null:se,pe]});return[Q,_]}}function g(h,y,x){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=p(h,y,x,X({resetStyle:!1,order:-998},S)),$=function(O){var I=O.prefixCls,R=O.rootCls,P=R===void 0?I:R;return b(I,P),null};return $}return{genStyleHooks:f,genSubStyleComponent:g,genComponentStyleHook:p}}const Ti=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],VI="5.29.3";function Om(e){return e>=0&&e<=255}function rs(e,t){const{r:n,g:r,b:o,a:l}=new sn(e).toRgb();if(l<1)return e;const{r:s,g:u,b:f}=new sn(t).toRgb();for(let m=.01;m<=1;m+=.01){const p=Math.round((n-s*(1-m))/m),g=Math.round((r-u*(1-m))/m),h=Math.round((o-f*(1-m))/m);if(Om(p)&&Om(g)&&Om(h))return new sn({r:p,g,b:h,a:Math.round(m*100)/100}).toRgbString()}return new sn({r:n,g:r,b:o,a:1}).toRgbString()}var WI=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 ex(e){const{override:t}=e,n=WI(e,["override"]),r=Object.assign({},t);Object.keys(ys).forEach(h=>{delete r[h]});const o=Object.assign(Object.assign({},n),r),l=480,s=576,u=768,f=992,m=1200,p=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:rs(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:rs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:rs(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:rs(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:`
|
|
64
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
65
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
66
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
67
|
-
`,boxShadowSecondary:`
|
|
68
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
69
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
70
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
71
|
-
`,boxShadowTertiary:`
|
|
72
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
73
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
74
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
75
|
-
`,screenXS:l,screenXSMin:l,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
76
|
-
0 1px 2px -2px ${new sn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
77
|
-
0 3px 6px 0 ${new sn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
78
|
-
0 5px 12px 4px ${new sn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
79
|
-
`,boxShadowDrawerRight:`
|
|
80
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
81
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
82
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
83
|
-
`,boxShadowDrawerLeft:`
|
|
84
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
85
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
86
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
87
|
-
`,boxShadowDrawerUp:`
|
|
88
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
89
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
90
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
91
|
-
`,boxShadowDrawerDown:`
|
|
92
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
93
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
94
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
95
|
-
`,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 Ty=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 tx={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},UI={motionBase:!0,motionUnit:!0},GI={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},nx=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,l=Ty(t,["override"]);let s=Object.assign(Object.assign({},r),{override:o});return s=ex(s),l&&Object.entries(l).forEach(([u,f])=>{const{theme:m}=f,p=Ty(f,["theme"]);let g=p;m&&(g=nx(Object.assign(Object.assign({},s),p),{override:p},m)),s[u]=g}),s};function Rr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=Y.useContext(X1),l=`${VI}-${t||""}`,s=n||K1,[u,f,m]=OO(s,[ys,e],{salt:l,override:r,getComputedToken:nx,formatToken:ex,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:tx,ignore:UI,preserve:GI}});return[s,m,t?f:"",u,o]}const Ss={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},An=(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}),ml=()=>({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"}}),Ru=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),qI=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"}}}),KI=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},u),s),{[o]:s})}},sl=(e,t)=>({outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),No=(e,t)=>({"&:focus-visible":sl(e,t)}),rx=e=>({[`.${e}`]:Object.assign(Object.assign({},ml()),{[`.${e} .${e}-icon`]:{display:"block"}})}),ox=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},No(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:mn,genComponentStyleHook:XI,genSubStyleComponent:Ms}=HI({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(Rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Rr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=c.useContext(Rt);return e??{}},getResetStyles:(e,t)=>{var n;const r=qI(e);return[r,{"&":r},rx((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:ed)]},getCommonStyle:KI,getCompUnitless:()=>tx});function td(e,t){return Ti.reduce((n,r)=>{const o=e[`${r}1`],l=e[`${r}3`],s=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:l,darkColor:s,textColor:u}))},{})}const QI=(e,t)=>{const[n,r]=Rr();return Cp({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>rx(e))},YI=Object.assign({},Ku),{useId:My}=YI,ZI=()=>"",JI=typeof My>"u"?ZI:My;function eR(e,t,n){var r;Ju();const o=e||{},l=o.inherit===!1||!t?Object.assign(Object.assign({},Iu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Iu.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=JI();return Ps(()=>{var u,f;if(!e)return t;const m=Object.assign({},l.components);Object.keys(e.components||{}).forEach(h=>{m[h]=Object.assign(Object.assign({},m[h]),e.components[h])});const p=`css-var-${s.replace(/:/g,"")}`,g=((u=o.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((f=o.cssVar)===null||f===void 0?void 0:f.key)||p});return Object.assign(Object.assign(Object.assign({},l),o),{token:Object.assign(Object.assign({},l.token),o.token),components:m,cssVar:g})},[o,l],(u,f)=>u.some((m,p)=>{const g=f[p];return!vs(m,g,!0)}))}var tR=["children"],ix=c.createContext({});function nR(e){var t=e.children,n=Nt(e,tR);return c.createElement(ix.Provider,{value:n},t)}var rR=(function(e){Jo(n,e);var t=ei(n);function n(){return Wn(this,n),t.apply(this,arguments)}return Un(n,[{key:"render",value:function(){return this.props.children}}]),n})(c.Component);function oR(e){var t=c.useReducer(function(u){return u+1},0),n=ae(t,2),r=n[1],o=c.useRef(e),l=_n(function(){return o.current}),s=_n(function(u){o.current=typeof u=="function"?u(o.current):u,r()});return[l,s]}var Ci="none",Uc="appear",Gc="enter",qc="leave",Ny="none",vo="prepare",Xa="start",Qa="active",Ng="end",ax="prepared";function _y(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 iR(e,t){var n={animationend:_y("Animation","AnimationEnd"),transitionend:_y("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var aR=iR(br(),typeof window<"u"?window:{}),lx={};if(br()){var lR=document.createElement("div");lx=lR.style}var Kc={};function sx(e){if(Kc[e])return Kc[e];var t=aR[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var l=n[o];if(Object.prototype.hasOwnProperty.call(t,l)&&l in lx)return Kc[e]=t[l],Kc[e]}return""}var cx=sx("animationend"),ux=sx("transitionend"),dx=!!(cx&&ux),jy=cx||"animationend",zy=ux||"transitionend";function ky(e,t){if(!e)return null;if(mt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const sR=(function(e){var t=c.useRef();function n(o){o&&(o.removeEventListener(zy,e),o.removeEventListener(jy,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(zy,e),o.addEventListener(jy,e),t.current=o)}return c.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var fx=br()?c.useLayoutEffect:c.useEffect;const cR=(function(){var e=c.useRef(null);function t(){Sn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=Sn(function(){o<=1?r({isCanceled:function(){return l!==e.current}}):n(r,o-1)});e.current=l}return c.useEffect(function(){return function(){t()}},[]),[n,t]});var uR=[vo,Xa,Qa,Ng],dR=[vo,ax],mx=!1,fR=!0;function px(e){return e===Qa||e===Ng}const mR=(function(e,t,n){var r=ll(Ny),o=ae(r,2),l=o[0],s=o[1],u=cR(),f=ae(u,2),m=f[0],p=f[1];function g(){s(vo,!0)}var h=t?dR:uR;return fx(function(){if(l!==Ny&&l!==Ng){var y=h.indexOf(l),x=h[y+1],S=n(l);S===mx?s(x,!0):x&&m(function(b){function $(){b.isCanceled()||s(x,!0)}S===!0?$():Promise.resolve(S).then($)})}},[e,l]),c.useEffect(function(){return function(){p()}},[]),[g,l]});function pR(e,t,n,r){var o=r.motionEnter,l=o===void 0?!0:o,s=r.motionAppear,u=s===void 0?!0:s,f=r.motionLeave,m=f===void 0?!0:f,p=r.motionDeadline,g=r.motionLeaveImmediately,h=r.onAppearPrepare,y=r.onEnterPrepare,x=r.onLeavePrepare,S=r.onAppearStart,b=r.onEnterStart,$=r.onLeaveStart,w=r.onAppearActive,O=r.onEnterActive,I=r.onLeaveActive,R=r.onAppearEnd,P=r.onEnterEnd,T=r.onLeaveEnd,N=r.onVisibleChanged,M=ll(),_=ae(M,2),L=_[0],z=_[1],A=oR(Ci),B=ae(A,2),G=B[0],V=B[1],H=ll(null),D=ae(H,2),Z=D[0],W=D[1],k=G(),F=c.useRef(!1),Q=c.useRef(null);function ne(){return n()}var ee=c.useRef(!1);function oe(){V(Ci),W(null,!0)}var fe=_n(function(Le){var Pe=G();if(Pe!==Ci){var Be=ne();if(!(Le&&!Le.deadline&&Le.target!==Be)){var Oe=ee.current,tt;Pe===Uc&&Oe?tt=R==null?void 0:R(Be,Le):Pe===Gc&&Oe?tt=P==null?void 0:P(Be,Le):Pe===qc&&Oe&&(tt=T==null?void 0:T(Be,Le)),Oe&&tt!==!1&&oe()}}}),me=sR(fe),ue=ae(me,1),Se=ue[0],pe=function(Pe){switch(Pe){case Uc:return U(U(U({},vo,h),Xa,S),Qa,w);case Gc:return U(U(U({},vo,y),Xa,b),Qa,O);case qc:return U(U(U({},vo,x),Xa,$),Qa,I);default:return{}}},se=c.useMemo(function(){return pe(k)},[k]),ye=mR(k,!e,function(Le){if(Le===vo){var Pe=se[vo];return Pe?Pe(ne()):mx}if(le in se){var Be;W(((Be=se[le])===null||Be===void 0?void 0:Be.call(se,ne(),null))||null)}return le===Qa&&k!==Ci&&(Se(ne()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){fe({deadline:!0})},p))),le===ax&&oe(),fR}),ve=ae(ye,2),ce=ve[0],le=ve[1],be=px(le);ee.current=be;var xe=c.useRef(null);fx(function(){if(!(F.current&&xe.current===t)){z(t);var Le=F.current;F.current=!0;var Pe;!Le&&t&&u&&(Pe=Uc),Le&&t&&l&&(Pe=Gc),(Le&&!t&&m||!Le&&g&&!t&&m)&&(Pe=qc);var Be=pe(Pe);Pe&&(e||Be[vo])?(V(Pe),ce()):V(Ci),xe.current=t}},[t]),c.useEffect(function(){(k===Uc&&!u||k===Gc&&!l||k===qc&&!m)&&V(Ci)},[u,l,m]),c.useEffect(function(){return function(){F.current=!1,clearTimeout(Q.current)}},[]);var $e=c.useRef(!1);c.useEffect(function(){L&&($e.current=!0),L!==void 0&&k===Ci&&(($e.current||L)&&(N==null||N(L)),$e.current=!0)},[L,k]);var Ne=Z;return se[vo]&&le===Xa&&(Ne=X({transition:"none"},Ne)),[k,le,Ne,L??t]}function gR(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(o,l){return!!(o.motionName&&t&&l!==!1)}var r=c.forwardRef(function(o,l){var s=o.visible,u=s===void 0?!0:s,f=o.removeOnLeave,m=f===void 0?!0:f,p=o.forceRender,g=o.children,h=o.motionName,y=o.leavedClassName,x=o.eventProps,S=c.useContext(ix),b=S.motion,$=n(o,b),w=c.useRef(),O=c.useRef();function I(){try{return w.current instanceof HTMLElement?w.current:cu(O.current)}catch{return null}}var R=pR($,u,I,o),P=ae(R,4),T=P[0],N=P[1],M=P[2],_=P[3],L=c.useRef(_);_&&(L.current=!0);var z=c.useCallback(function(D){w.current=D,bg(l,D)},[l]),A,B=X(X({},x),{},{visible:u});if(!g)A=null;else if(T===Ci)_?A=g(X({},B),z):!m&&L.current&&y?A=g(X(X({},B),{},{className:y}),z):p||!m&&!y?A=g(X(X({},B),{},{style:{display:"none"}}),z):A=null;else{var G;N===vo?G="prepare":px(N)?G="active":N===Xa&&(G="start");var V=ky(h,"".concat(T,"-").concat(G));A=g(X(X({},B),{},{className:re(ky(h,T),U(U({},V,V&&G),h,typeof h=="string")),style:M}),z)}if(c.isValidElement(A)&&_i(A)){var H=oa(A);H||(A=c.cloneElement(A,{ref:z}))}return c.createElement(rR,{ref:O},A)});return r.displayName="CSSMotion",r}const wo=gR(dx);var zp="add",kp="keep",Lp="remove",Im="removed";function vR(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},X(X({},t),{},{key:String(t.key)})}function Bp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(vR)}function hR(){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,l=Bp(e),s=Bp(t);l.forEach(function(m){for(var p=!1,g=r;g<o;g+=1){var h=s[g];if(h.key===m.key){r<g&&(n=n.concat(s.slice(r,g).map(function(y){return X(X({},y),{},{status:zp})})),r=g),n.push(X(X({},h),{},{status:kp})),r+=1,p=!0;break}}p||n.push(X(X({},m),{},{status:Lp}))}),r<o&&(n=n.concat(s.slice(r).map(function(m){return X(X({},m),{},{status:zp})})));var u={};n.forEach(function(m){var p=m.key;u[p]=(u[p]||0)+1});var f=Object.keys(u).filter(function(m){return u[m]>1});return f.forEach(function(m){n=n.filter(function(p){var g=p.key,h=p.status;return g!==m||h!==Lp}),n.forEach(function(p){p.key===m&&(p.status=kp)})}),n}var yR=["component","children","onVisibleChanged","onAllRemoved"],bR=["status"],SR=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function xR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wo,n=(function(r){Jo(l,r);var o=ei(l);function l(){var s;Wn(this,l);for(var u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];return s=o.call.apply(o,[this].concat(f)),U(Ft(s),"state",{keyEntities:[]}),U(Ft(s),"removeKey",function(p){s.setState(function(g){var h=g.keyEntities.map(function(y){return y.key!==p?y:X(X({},y),{},{status:Im})});return{keyEntities:h}},function(){var g=s.state.keyEntities,h=g.filter(function(y){var x=y.status;return x!==Im}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Un(l,[{key:"render",value:function(){var u=this,f=this.state.keyEntities,m=this.props,p=m.component,g=m.children,h=m.onVisibleChanged;m.onAllRemoved;var y=Nt(m,yR),x=p||c.Fragment,S={};return SR.forEach(function(b){S[b]=y[b],delete y[b]}),delete y.keys,c.createElement(x,y,f.map(function(b,$){var w=b.status,O=Nt(b,bR),I=w===zp||w===kp;return c.createElement(t,Ee({},S,{key:O.key,visible:I,eventProps:O,onVisibleChanged:function(P){h==null||h(P,{key:O.key}),P||u.removeKey(O.key)}}),function(R,P){return g(X(X({},R),{},{index:$}),P)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,f){var m=u.keys,p=f.keyEntities,g=Bp(m),h=hR(p,g);return{keyEntities:h.filter(function(y){var x=p.find(function(S){var b=S.key;return y.key===b});return!(x&&x.status===Im&&y.status===Lp)})}}}]),l})(c.Component);return U(n,"defaultProps",{component:"div"}),n}const CR=xR(dx),Ly=c.createContext(!0);function wR(e){const t=c.useContext(Ly),{children:n}=e,[,r]=Rr(),{motion:o}=r,l=c.useRef(!1);return l.current||(l.current=t!==o),l.current?c.createElement(Ly.Provider,{value:o},c.createElement(nR,{motion:o},n)):n}const $R=()=>null;var ER=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 OR=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Pu,gx,vx,hx;function yu(){return Pu||bs}function IR(){return gx||ed}function RR(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const PR=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Pu=t),n!==void 0&&(gx=n),"holderRender"in e&&(hx=o),r&&(RR(r)?RI(yu(),r):vx=r)},yx=()=>({getPrefixCls:(e,t)=>t||(e?`${yu()}-${e}`:yu()),getIconPrefixCls:IR,getRootPrefixCls:()=>Pu||yu(),getTheme:()=>vx,holderRender:hx}),TR=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:l,form:s,locale:u,componentSize:f,direction:m,space:p,splitter:g,virtual:h,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,popupOverflow:S,legacyLocale:b,parentContext:$,iconPrefixCls:w,theme:O,componentDisabled:I,segmented:R,statistic:P,spin:T,calendar:N,carousel:M,cascader:_,collapse:L,typography:z,checkbox:A,descriptions:B,divider:G,drawer:V,skeleton:H,steps:D,image:Z,layout:W,list:k,mentions:F,modal:Q,progress:ne,result:ee,slider:oe,breadcrumb:fe,menu:me,pagination:ue,input:Se,textArea:pe,empty:se,badge:ye,radio:ve,rate:ce,switch:le,transfer:be,avatar:xe,message:$e,tag:Ne,table:Le,card:Pe,tabs:Be,timeline:Oe,timePicker:tt,upload:lt,notification:bt,tree:st,colorPicker:Ge,datePicker:it,rangePicker:Ve,flex:dt,wave:Xe,dropdown:_e,warning:Ye,tour:Te,tooltip:Fe,popover:wt,popconfirm:pt,floatButton:Ht,floatButtonGroup:Dt,variant:on,inputNumber:hn,treeSelect:Wt}=e,Mt=c.useCallback((Qe,_t)=>{const{prefixCls:kt}=e;if(_t)return _t;const It=kt||$.getPrefixCls("");return Qe?`${It}-${Qe}`:It},[$.getPrefixCls,e.prefixCls]),St=w||$.iconPrefixCls||ed,Ut=n||$.csp;QI(St,Ut);const Bt=eR(O,$.theme,{prefixCls:Mt("")}),Ze={csp:Ut,autoInsertSpaceInButton:r,alert:o,anchor:l,locale:u||b,direction:m,space:p,splitter:g,virtual:h,popupMatchSelectWidth:x??y,popupOverflow:S,getPrefixCls:Mt,iconPrefixCls:St,theme:Bt,segmented:R,statistic:P,spin:T,calendar:N,carousel:M,cascader:_,collapse:L,typography:z,checkbox:A,descriptions:B,divider:G,drawer:V,skeleton:H,steps:D,image:Z,input:Se,textArea:pe,layout:W,list:k,mentions:F,modal:Q,progress:ne,result:ee,slider:oe,breadcrumb:fe,menu:me,pagination:ue,empty:se,badge:ye,radio:ve,rate:ce,switch:le,transfer:be,avatar:xe,message:$e,tag:Ne,table:Le,card:Pe,tabs:Be,timeline:Oe,timePicker:tt,upload:lt,notification:bt,tree:st,colorPicker:Ge,datePicker:it,rangePicker:Ve,flex:dt,wave:Xe,dropdown:_e,warning:Ye,tour:Te,tooltip:Fe,popover:wt,popconfirm:pt,floatButton:Ht,floatButtonGroup:Dt,variant:on,inputNumber:hn,treeSelect:Wt},yt=Object.assign({},$);Object.keys(Ze).forEach(Qe=>{Ze[Qe]!==void 0&&(yt[Qe]=Ze[Qe])}),OR.forEach(Qe=>{const _t=e[Qe];_t&&(yt[Qe]=_t)}),typeof r<"u"&&(yt.button=Object.assign({autoInsertSpace:r},yt.button));const at=Ps(()=>yt,yt,(Qe,_t)=>{const kt=Object.keys(Qe),It=Object.keys(_t);return kt.length!==It.length||kt.some(Pt=>Qe[Pt]!==_t[Pt])}),{layer:Ie}=c.useContext(Ts),we=c.useMemo(()=>({prefixCls:St,csp:Ut,layer:Ie?"antd":void 0}),[St,Ut,Ie]);let Ce=c.createElement(c.Fragment,null,c.createElement($R,{dropdownMatchSelectWidth:y}),t);const je=c.useMemo(()=>{var Qe,_t,kt,It;return Ka(((Qe=Pi.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((kt=(_t=at.locale)===null||_t===void 0?void 0:_t.Form)===null||kt===void 0?void 0:kt.defaultValidateMessages)||{},((It=at.form)===null||It===void 0?void 0:It.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[at,s==null?void 0:s.validateMessages]);Object.keys(je).length>0&&(Ce=c.createElement(aI.Provider,{value:je},Ce)),u&&(Ce=c.createElement(dI,{locale:u,_ANT_MARK__:uI},Ce)),Ce=c.createElement(Pg.Provider,{value:we},Ce),f&&(Ce=c.createElement(PI,{size:f},Ce)),Ce=c.createElement(wR,null,Ce);const Ke=c.useMemo(()=>{const Qe=Bt||{},{algorithm:_t,token:kt,components:It,cssVar:Pt}=Qe,gn=ER(Qe,["algorithm","token","components","cssVar"]),un=_t&&(!Array.isArray(_t)||_t.length>0)?hp(_t):K1,yn={};Object.entries(It||{}).forEach(([qt,Jt])=>{const ze=Object.assign({},Jt);"algorithm"in ze&&(ze.algorithm===!0?ze.theme=un:(Array.isArray(ze.algorithm)||typeof ze.algorithm=="function")&&(ze.theme=hp(ze.algorithm)),delete ze.algorithm),yn[qt]=ze});const On=Object.assign(Object.assign({},ys),kt);return Object.assign(Object.assign({},gn),{theme:un,token:On,components:yn,override:Object.assign({override:On},yn),cssVar:Pt})},[Bt]);return O&&(Ce=c.createElement(X1.Provider,{value:Ke},Ce)),at.warning&&(Ce=c.createElement(iI.Provider,{value:at.warning},Ce)),I!==void 0&&(Ce=c.createElement(Q1,{disabled:I},Ce)),c.createElement(Rt.Provider,{value:at},Ce)},Lo=e=>{const t=c.useContext(Rt),n=c.useContext(Tg);return c.createElement(TR,Object.assign({parentContext:t,legacyLocale:n},e))};Lo.ConfigContext=Rt;Lo.SizeContext=al;Lo.config=PR;Lo.useConfig=TI;Object.defineProperty(Lo,"SizeContext",{get:()=>al});var MR={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 bx(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function NR(e){return bx(e)instanceof ShadowRoot}function Tu(e){return NR(e)?bx(e):null}function _R(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function jR(e,t){sr(e,"[@ant-design/icons] ".concat(t))}function By(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function Ay(){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[_R(n)]=r}return t},{})}function Ap(e,t,n){return n?Y.createElement(e.tag,X(X({key:t},Ay(e.attrs)),n),(e.children||[]).map(function(r,o){return Ap(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Y.createElement(e.tag,X({key:t},Ay(e.attrs)),(e.children||[]).map(function(r,o){return Ap(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Sx(e){return ea(e)[0]}function xx(e){return e?Array.isArray(e)?e:[e]:[]}var zR=`
|
|
96
|
-
.anticon {
|
|
97
|
-
display: inline-flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
color: inherit;
|
|
100
|
-
font-style: normal;
|
|
101
|
-
line-height: 0;
|
|
102
|
-
text-align: center;
|
|
103
|
-
text-transform: none;
|
|
104
|
-
vertical-align: -0.125em;
|
|
105
|
-
text-rendering: optimizeLegibility;
|
|
106
|
-
-webkit-font-smoothing: antialiased;
|
|
107
|
-
-moz-osx-font-smoothing: grayscale;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.anticon > * {
|
|
111
|
-
line-height: 1;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.anticon svg {
|
|
115
|
-
display: inline-block;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.anticon::before {
|
|
119
|
-
display: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.anticon .anticon-icon {
|
|
123
|
-
display: block;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.anticon[tabindex] {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.anticon-spin::before,
|
|
131
|
-
.anticon-spin {
|
|
132
|
-
display: inline-block;
|
|
133
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
134
|
-
animation: loadingCircle 1s infinite linear;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@-webkit-keyframes loadingCircle {
|
|
138
|
-
100% {
|
|
139
|
-
-webkit-transform: rotate(360deg);
|
|
140
|
-
transform: rotate(360deg);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@keyframes loadingCircle {
|
|
145
|
-
100% {
|
|
146
|
-
-webkit-transform: rotate(360deg);
|
|
147
|
-
transform: rotate(360deg);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
`,kR=function(t){var n=c.useContext(Pg),r=n.csp,o=n.prefixCls,l=n.layer,s=zR;o&&(s=s.replace(/anticon/g,o)),l&&(s="@layer ".concat(l,` {
|
|
151
|
-
`).concat(s,`
|
|
152
|
-
}`)),c.useEffect(function(){var u=t.current,f=Tu(u);Yo(s,"@ant-design-icons",{prepend:!l,csp:r,attachTo:f})},[])},LR=["icon","className","onClick","style","primaryColor","secondaryColor"],ss={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function BR(e){var t=e.primaryColor,n=e.secondaryColor;ss.primaryColor=t,ss.secondaryColor=n||Sx(t),ss.calculated=!!n}function AR(){return X({},ss)}var pl=function(t){var n=t.icon,r=t.className,o=t.onClick,l=t.style,s=t.primaryColor,u=t.secondaryColor,f=Nt(t,LR),m=c.useRef(),p=ss;if(s&&(p={primaryColor:s,secondaryColor:u||Sx(s)}),kR(m),jR(By(n),"icon should be icon definiton, but got ".concat(n)),!By(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=X(X({},g),{},{icon:g.icon(p.primaryColor,p.secondaryColor)})),Ap(g.icon,"svg-".concat(g.name),X(X({className:r,onClick:o,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:m}))};pl.displayName="IconReact";pl.getTwoToneColors=AR;pl.setTwoToneColors=BR;function Cx(e){var t=xx(e),n=ae(t,2),r=n[0],o=n[1];return pl.setTwoToneColors({primaryColor:r,secondaryColor:o})}function DR(){var e=pl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var FR=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Cx(Ou.primary);var pn=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,l=e.rotate,s=e.tabIndex,u=e.onClick,f=e.twoToneColor,m=Nt(e,FR),p=c.useContext(Pg),g=p.prefixCls,h=g===void 0?"anticon":g,y=p.rootClassName,x=re(y,h,U(U({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),S=s;S===void 0&&u&&(S=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,$=xx(f),w=ae($,2),O=w[0],I=w[1];return c.createElement("span",Ee({role:"img","aria-label":r.name},m,{ref:t,tabIndex:S,onClick:u,className:x}),c.createElement(pl,{icon:r,primaryColor:O,secondaryColor:I,style:b}))});pn.displayName="AntdIcon";pn.getTwoToneColor=DR;pn.setTwoToneColor=Cx;var HR=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:MR}))},wx=c.forwardRef(HR),VR={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"},WR=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:VR}))},nd=c.forwardRef(WR),UR={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"},GR=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:UR}))},gl=c.forwardRef(GR),qR={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"},KR=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:qR}))},$x=c.forwardRef(KR),XR={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"},QR=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:XR}))},Ex=c.forwardRef(QR),YR=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
153
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
154
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
155
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
156
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
157
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
158
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
159
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
160
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
161
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
162
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
163
|
-
summary tabIndex target title type useMap value width wmode wrap`,ZR=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
164
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
165
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
166
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
167
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
168
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
169
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,JR="".concat(YR," ").concat(ZR).split(/[\s\n]+/),eP="aria-",tP="data-";function Dy(e,t){return e.indexOf(t)===0}function _o(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=X({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Dy(o,eP))||n.data&&Dy(o,tP)||n.attr&&JR.includes(o))&&(r[o]=e[o])}),r}function Ox(e){return e&&Y.isValidElement(e)&&e.type===Y.Fragment}const Ix=(e,t,n)=>Y.isValidElement(e)?Y.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Or(e,t){return Ix(e,e,t)}const ni=e=>{const[,,,,t]=Rr();return t?`${e}-css-var`:""};var Ue={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Rx=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,l=e.duration,s=l===void 0?4.5:l,u=e.showProgress,f=e.pauseOnHover,m=f===void 0?!0:f,p=e.eventKey,g=e.content,h=e.closable,y=e.closeIcon,x=y===void 0?"x":y,S=e.props,b=e.onClick,$=e.onNoticeClose,w=e.times,O=e.hovering,I=c.useState(!1),R=ae(I,2),P=R[0],T=R[1],N=c.useState(0),M=ae(N,2),_=M[0],L=M[1],z=c.useState(0),A=ae(z,2),B=A[0],G=A[1],V=O||P,H=s>0&&u,D=function(){$(p)},Z=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===Ue.ENTER)&&D()};c.useEffect(function(){if(!V&&s>0){var ne=Date.now()-B,ee=setTimeout(function(){D()},s*1e3-B);return function(){m&&clearTimeout(ee),G(Date.now()-ne)}}},[s,V,w]),c.useEffect(function(){if(!V&&H&&(m||B===0)){var ne=performance.now(),ee,oe=function fe(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(me){var ue=me+B-ne,Se=Math.min(ue/(s*1e3),1);L(Se*100),Se<1&&fe()})};return oe(),function(){m&&cancelAnimationFrame(ee)}}},[s,B,V,H,w]);var W=c.useMemo(function(){return mt(h)==="object"&&h!==null?h:h?{closeIcon:x}:{}},[h,x]),k=_o(W,!0),F=100-(!_||_<0?0:_>100?100:_),Q="".concat(n,"-notice");return c.createElement("div",Ee({},S,{ref:t,className:re(Q,o,U({},"".concat(Q,"-closable"),h)),style:r,onMouseEnter:function(ee){var oe;T(!0),S==null||(oe=S.onMouseEnter)===null||oe===void 0||oe.call(S,ee)},onMouseLeave:function(ee){var oe;T(!1),S==null||(oe=S.onMouseLeave)===null||oe===void 0||oe.call(S,ee)},onClick:b}),c.createElement("div",{className:"".concat(Q,"-content")},g),h&&c.createElement("a",Ee({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:Z,"aria-label":"Close"},k,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),D()}}),W.closeIcon),H&&c.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:F},F+"%"))}),Px=Y.createContext({}),nP=function(t){var n=t.children,r=t.classNames;return Y.createElement(Px.Provider,{value:{classNames:r}},n)},Fy=8,Hy=3,Vy=16,rP=function(t){var n={offset:Fy,threshold:Hy,gap:Vy};if(t&&mt(t)==="object"){var r,o,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:Fy,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Hy,n.gap=(l=t.gap)!==null&&l!==void 0?l:Vy}return[!!t,n]},oP=["className","style","classNames","styles"],iP=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,l=t.className,s=t.style,u=t.motion,f=t.onAllNoticeRemoved,m=t.onNoticeClose,p=t.stack,g=c.useContext(Px),h=g.classNames,y=c.useRef({}),x=c.useState(null),S=ae(x,2),b=S[0],$=S[1],w=c.useState([]),O=ae(w,2),I=O[0],R=O[1],P=n.map(function(V){return{config:V,key:String(V.key)}}),T=rP(p),N=ae(T,2),M=N[0],_=N[1],L=_.offset,z=_.threshold,A=_.gap,B=M&&(I.length>0||P.length<=z),G=typeof u=="function"?u(r):u;return c.useEffect(function(){M&&I.length>1&&R(function(V){return V.filter(function(H){return P.some(function(D){var Z=D.key;return H===Z})})})},[I,P,M]),c.useEffect(function(){var V;if(M&&y.current[(V=P[P.length-1])===null||V===void 0?void 0:V.key]){var H;$(y.current[(H=P[P.length-1])===null||H===void 0?void 0:H.key])}},[P,M]),Y.createElement(CR,Ee({key:r,className:re(o,"".concat(o,"-").concat(r),h==null?void 0:h.list,l,U(U({},"".concat(o,"-stack"),!!M),"".concat(o,"-stack-expanded"),B)),style:s,keys:P,motionAppear:!0},G,{onAllRemoved:function(){f(r)}}),function(V,H){var D=V.config,Z=V.className,W=V.style,k=V.index,F=D,Q=F.key,ne=F.times,ee=String(Q),oe=D,fe=oe.className,me=oe.style,ue=oe.classNames,Se=oe.styles,pe=Nt(oe,oP),se=P.findIndex(function(Oe){return Oe.key===ee}),ye={};if(M){var ve=P.length-1-(se>-1?se:k-1),ce=r==="top"||r==="bottom"?"-50%":"0";if(ve>0){var le,be,xe;ye.height=B?(le=y.current[ee])===null||le===void 0?void 0:le.offsetHeight:b==null?void 0:b.offsetHeight;for(var $e=0,Ne=0;Ne<ve;Ne++){var Le;$e+=((Le=y.current[P[P.length-1-Ne].key])===null||Le===void 0?void 0:Le.offsetHeight)+A}var Pe=(B?$e:ve*L)*(r.startsWith("top")?1:-1),Be=!B&&b!==null&&b!==void 0&&b.offsetWidth&&(be=y.current[ee])!==null&&be!==void 0&&be.offsetWidth?((b==null?void 0:b.offsetWidth)-L*2*(ve<3?ve:3))/((xe=y.current[ee])===null||xe===void 0?void 0:xe.offsetWidth):1;ye.transform="translate3d(".concat(ce,", ").concat(Pe,"px, 0) scaleX(").concat(Be,")")}else ye.transform="translate3d(".concat(ce,", 0, 0)")}return Y.createElement("div",{ref:H,className:re("".concat(o,"-notice-wrapper"),Z,ue==null?void 0:ue.wrapper),style:X(X(X({},W),ye),Se==null?void 0:Se.wrapper),onMouseEnter:function(){return R(function(tt){return tt.includes(ee)?tt:[].concat(Ae(tt),[ee])})},onMouseLeave:function(){return R(function(tt){return tt.filter(function(lt){return lt!==ee})})}},Y.createElement(Rx,Ee({},pe,{ref:function(tt){se>-1?y.current[ee]=tt:delete y.current[ee]},prefixCls:o,classNames:ue,styles:Se,className:re(fe,h==null?void 0:h.notice),style:me,times:ne,key:Q,eventKey:Q,onNoticeClose:m,hovering:M&&I.length>0})))})},aP=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,l=e.motion,s=e.maxCount,u=e.className,f=e.style,m=e.onAllRemoved,p=e.stack,g=e.renderNotifications,h=c.useState([]),y=ae(h,2),x=y[0],S=y[1],b=function(M){var _,L=x.find(function(z){return z.key===M});L==null||(_=L.onClose)===null||_===void 0||_.call(L),S(function(z){return z.filter(function(A){return A.key!==M})})};c.useImperativeHandle(t,function(){return{open:function(M){S(function(_){var L=Ae(_),z=L.findIndex(function(G){return G.key===M.key}),A=X({},M);if(z>=0){var B;A.times=(((B=_[z])===null||B===void 0?void 0:B.times)||0)+1,L[z]=A}else A.times=0,L.push(A);return s>0&&L.length>s&&(L=L.slice(-s)),L})},close:function(M){b(M)},destroy:function(){S([])}}});var $=c.useState({}),w=ae($,2),O=w[0],I=w[1];c.useEffect(function(){var N={};x.forEach(function(M){var _=M.placement,L=_===void 0?"topRight":_;L&&(N[L]=N[L]||[],N[L].push(M))}),Object.keys(O).forEach(function(M){N[M]=N[M]||[]}),I(N)},[x]);var R=function(M){I(function(_){var L=X({},_),z=L[M]||[];return z.length||delete L[M],L})},P=c.useRef(!1);if(c.useEffect(function(){Object.keys(O).length>0?P.current=!0:P.current&&(m==null||m(),P.current=!1)},[O]),!o)return null;var T=Object.keys(O);return Ri.createPortal(c.createElement(c.Fragment,null,T.map(function(N){var M=O[N],_=c.createElement(iP,{key:N,configList:M,placement:N,prefixCls:r,className:u==null?void 0:u(N),style:f==null?void 0:f(N),motion:l,onNoticeClose:b,onAllNoticeRemoved:R,stack:p});return g?g(_,{prefixCls:r,key:N}):_})),o)}),lP=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],sP=function(){return document.body},Wy=0;function cP(){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(l){var s=o[l];s!==void 0&&(e[l]=s)})}),e}function uP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?sP:t,r=e.motion,o=e.prefixCls,l=e.maxCount,s=e.className,u=e.style,f=e.onAllRemoved,m=e.stack,p=e.renderNotifications,g=Nt(e,lP),h=c.useState(),y=ae(h,2),x=y[0],S=y[1],b=c.useRef(),$=c.createElement(aP,{container:x,ref:b,prefixCls:o,motion:r,maxCount:l,className:s,style:u,onAllRemoved:f,stack:m,renderNotifications:p}),w=c.useState([]),O=ae(w,2),I=O[0],R=O[1],P=_n(function(N){var M=cP(g,N);(M.key===null||M.key===void 0)&&(M.key="rc-notification-".concat(Wy),Wy+=1),R(function(_){return[].concat(Ae(_),[{type:"open",config:M}])})}),T=c.useMemo(function(){return{open:P,close:function(M){R(function(_){return[].concat(Ae(_),[{type:"close",key:M}])})},destroy:function(){R(function(M){return[].concat(Ae(M),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){S(n())}),c.useEffect(function(){if(b.current&&I.length){I.forEach(function(_){switch(_.type){case"open":b.current.open(_.config);break;case"close":b.current.close(_.key);break;case"destroy":b.current.destroy();break}});var N,M;R(function(_){return(N!==_||!M)&&(N=_,M=_.filter(function(L){return!I.includes(L)})),M})}},[I]),[T,$]}var dP={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"},fP=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:dP}))},rd=c.forwardRef(fP);function Dp(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Mu(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Uy(e){const{closable:t,closeIcon:n}=e||{};return Y.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 mP={},Tx=(e,t,n=mP)=>{const r=Uy(e),o=Uy(t),[l]=ti("global",Pi.global),s=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=Y.useMemo(()=>Object.assign({closeIcon:Y.createElement(gl,null)},n),[n]),f=Y.useMemo(()=>r===!1?!1:r?Dp(u,o,r):o===!1?!1:o?Dp(u,o):u.closable?u:!1,[r,o,u]);return Y.useMemo(()=>{var m,p;if(f===!1)return[!1,null,s,{}];const{closeIconRender:g}=u,{closeIcon:h}=f;let y=h;const x=_o(f,!0);return y!=null&&(g&&(y=g(h)),y=Y.isValidElement(y)?Y.cloneElement(y,Object.assign(Object.assign(Object.assign({},y.props),{"aria-label":(p=(m=y.props)===null||m===void 0?void 0:m["aria-label"])!==null&&p!==void 0?p:l.close}),x)):Y.createElement("span",Object.assign({"aria-label":l.close},x),y)),[!0,y,s,x]},[s,l.close,f,u])},pP=()=>Y.useReducer(e=>e+1,0),gP=()=>{const[e,t]=c.useState([]),n=c.useCallback(r=>(t(o=>[].concat(Ae(o),[r])),()=>{t(o=>o.filter(l=>l!==r))}),[]);return[e,n]},od=Y.createContext(void 0),wi=100,vP=10,Mx=wi*vP,Nx={Modal:wi,Drawer:wi,Popover:wi,Popconfirm:wi,Tooltip:wi,Tour:wi,FloatButton:wi},hP={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function yP(e){return e in Nx}const Ns=(e,t)=>{const[,n]=Rr(),r=Y.useContext(od),o=yP(e);let l;if(t!==void 0)l=[t,t];else{let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+Nx[e]:s+=hP[e],l=[r===void 0?t:s,s]}return l},bP=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:l,colorError:s,colorWarning:u,colorInfo:f,fontSizeLG:m,motionEaseInOutCirc:p,motionDurationSlow:g,marginXS:h,paddingXS:y,borderRadiusLG:x,zIndexPopup:S,contentPadding:b,contentBg:$}=e,w=`${t}-notice`,O=new At("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),I=new At("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),R={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:m},[`${w}-content`]:{display:"inline-block",padding:b,background:$,borderRadius:x,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
|
|
170
|
-
${t}-loading > ${n}`]:{color:f}};return[{[t]:Object.assign(Object.assign({},An(e)),{color:o,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
171
|
-
${t}-move-up-appear,
|
|
172
|
-
${t}-move-up-enter
|
|
173
|
-
`]:{animationName:O,animationDuration:g,animationPlayState:"paused",animationTimingFunction:p},[`
|
|
174
|
-
${t}-move-up-appear${t}-move-up-appear-active,
|
|
175
|
-
${t}-move-up-enter${t}-move-up-enter-active
|
|
176
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:I,animationDuration:g,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},R)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},R),{padding:0,textAlign:"start"})}]},SP=e=>({zIndexPopup:e.zIndexPopupBase+Mx+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),_x=mn("Message",e=>{const t=Qt(e,{height:150});return bP(t)},SP);var xP=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 CP={info:c.createElement(Ex,null),success:c.createElement(wx,null),error:c.createElement(nd,null),warning:c.createElement($x,null),loading:c.createElement(rd,null)},jx=({prefixCls:e,type:t,icon:n,children:r})=>c.createElement("div",{className:re(`${e}-custom-content`,`${e}-${t}`)},n||CP[t],c.createElement("span",null,r)),wP=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:l}=e,s=xP(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=c.useContext(Rt),f=t||u("message"),m=ni(f),[p,g,h]=_x(f,m);return p(c.createElement(Rx,Object.assign({},s,{prefixCls:f,className:re(n,g,`${f}-notice-pure-panel`,h,m),eventKey:"pure",duration:null,content:c.createElement(jx,{prefixCls:f,type:r,icon:o},l)})))};function $P(e,t){return{motionName:t??`${e}-move-up`}}function _g(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,l)=>n.then(o,l),r.promise=n,r}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 OP=8,IP=3,RP=({children:e,prefixCls:t})=>{const n=ni(t),[r,o,l]=_x(t,n);return r(c.createElement(nP,{classNames:{list:re(o,l,n)}},e))},PP=(e,{prefixCls:t,key:n})=>c.createElement(RP,{prefixCls:t,key:n},e),TP=c.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:l,duration:s=IP,rtl:u,transitionName:f,onAllRemoved:m}=e,{getPrefixCls:p,getPopupContainer:g,message:h,direction:y}=c.useContext(Rt),x=r||p("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??OP}),b=()=>re({[`${x}-rtl`]:u??y==="rtl"}),$=()=>$P(x,f),w=c.createElement("span",{className:`${x}-close-x`},c.createElement(gl,{className:`${x}-close-icon`})),[O,I]=uP({prefixCls:x,style:S,className:b,motion:$,closable:!1,closeIcon:w,duration:s,getContainer:()=>(o==null?void 0:o())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:m,renderNotifications:PP});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},O),{prefixCls:x,message:h})),I});let Gy=0;function zx(e){const t=c.useRef(null);return Ju(),[c.useMemo(()=>{const r=f=>{var m;(m=t.current)===null||m===void 0||m.close(f)},o=f=>{if(!t.current){const P=()=>{};return P.then=()=>{},P}const{open:m,prefixCls:p,message:g}=t.current,h=`${p}-notice`,{content:y,icon:x,type:S,key:b,className:$,style:w,onClose:O}=f,I=EP(f,["content","icon","type","key","className","style","onClose"]);let R=b;return R==null&&(Gy+=1,R=`antd-message-${Gy}`),_g(P=>(m(Object.assign(Object.assign({},I),{key:R,content:c.createElement(jx,{prefixCls:p,type:S,icon:x},y),placement:"top",className:re(S&&`${h}-${S}`,$,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),w),onClose:()=>{O==null||O(),P()}})),()=>{r(R)}))},s={open:o,destroy:f=>{var m;f!==void 0?r(f):(m=t.current)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const m=(p,g,h)=>{let y;p&&typeof p=="object"&&"content"in p?y=p:y={content:p};let x,S;typeof g=="function"?S=g:(x=g,S=h);const b=Object.assign(Object.assign({onClose:S,duration:x},y),{type:f});return o(b)};s[f]=m}),s},[]),c.createElement(TP,Object.assign({key:"message-holder"},e,{ref:t}))]}function MP(e){return zx(e)}function kx(e,t){this.v=e,this.k=t}function hr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}hr=function(s,u,f,m){function p(g,h){hr(s,g,function(y){return this._invoke(g,h,y)})}u?o?o(s,u,{value:f,enumerable:!m,configurable:!m,writable:!m}):s[u]=f:(p("next",0),p("throw",1),p("return",2))},hr(e,t,n,r)}function jg(){/*! 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 l(y,x,S,b){var $=x&&x.prototype instanceof u?x:u,w=Object.create($.prototype);return hr(w,"_invoke",(function(O,I,R){var P,T,N,M=0,_=R||[],L=!1,z={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(G,V){return P=G,T=0,N=e,z.n=V,s}};function A(B,G){for(T=B,N=G,t=0;!L&&M&&!V&&t<_.length;t++){var V,H=_[t],D=z.p,Z=H[2];B>3?(V=Z===G)&&(N=H[(T=H[4])?5:(T=3,3)],H[4]=H[5]=e):H[0]<=D&&((V=B<2&&D<H[1])?(T=0,z.v=G,z.n=H[1]):D<Z&&(V=B<3||H[0]>G||G>Z)&&(H[4]=B,H[5]=G,z.n=Z,T=0))}if(V||B>1)return s;throw L=!0,G}return function(B,G,V){if(M>1)throw TypeError("Generator is already running");for(L&&G===1&&A(G,V),T=G,N=V;(t=T<2?e:N)||!L;){P||(T?T<3?(T>1&&(z.n=-1),A(T,N)):z.n=N:z.v=N);try{if(M=2,P){if(T||(B="next"),t=P[B]){if(!(t=t.call(P,N)))throw TypeError("iterator result is not an object");if(!t.done)return t;N=t.value,T<2&&(T=0)}else T===1&&(t=P.return)&&t.call(P),T<2&&(N=TypeError("The iterator does not provide a '"+B+"' method"),T=1);P=e}else if((t=(L=z.n<0)?N:O.call(I,z))!==s)break}catch(H){P=e,T=1,N=H}finally{M=1}}return{value:t,done:L}}})(y,S,b),!0),w}var s={};function u(){}function f(){}function m(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(hr(t={},r,function(){return this}),t),g=m.prototype=u.prototype=Object.create(p);function h(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,m):(y.__proto__=m,hr(y,o,"GeneratorFunction")),y.prototype=Object.create(g),y}return f.prototype=m,hr(g,"constructor",m),hr(m,"constructor",f),f.displayName="GeneratorFunction",hr(m,o,"GeneratorFunction"),hr(g),hr(g,o,"Generator"),hr(g,r,function(){return this}),hr(g,"toString",function(){return"[object Generator]"}),(jg=function(){return{w:l,m:h}})()}function Nu(e,t){function n(o,l,s,u){try{var f=e[o](l),m=f.value;return m instanceof kx?t.resolve(m.v).then(function(p){n("next",p,s,u)},function(p){n("throw",p,s,u)}):t.resolve(m).then(function(p){f.value=p,s(f)},function(p){return n("throw",p,s,u)})}catch(p){u(p)}}var r;this.next||(hr(Nu.prototype),hr(Nu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),hr(this,"_invoke",function(o,l,s){function u(){return new t(function(f,m){n(o,s,f,m)})}return r=r?r.then(u,u):u()},!0)}function Lx(e,t,n,r,o){return new Nu(jg().w(e,t,n,r),o||Promise)}function NP(e,t,n,r,o){var l=Lx(e,t,n,r,o);return l.next().then(function(s){return s.done?s.value:l.next()})}function _P(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 qy(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(mt(e)+" is not iterable")}function Sr(){var e=jg(),t=e.m(Sr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(s){var u=typeof s=="function"&&s.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function l(s){var u,f;return function(m){u||(u={stop:function(){return f(m.a,2)},catch:function(){return m.v},abrupt:function(g,h){return f(m.a,o[g],h)},delegateYield:function(g,h,y){return u.resultName=h,f(m.d,qy(g),y)},finish:function(g){return f(m.f,g)}},f=function(g,h,y){m.p=u.prev,m.n=u.next;try{return g(h,y)}finally{u.next=m.n}}),u.resultName&&(u[u.resultName]=m.v,u.resultName=void 0),u.sent=m.v,u.next=m.n;try{return s.call(this,u)}finally{m.p=u.prev,m.n=u.next}}}return(Sr=function(){return{wrap:function(f,m,p,g){return e.w(l(f),m,p,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(f,m){return new kx(f,m)},AsyncIterator:Nu,async:function(f,m,p,g,h){return(r(m)?Lx:NP)(l(f),m,p,g,h)},keys:_P,values:qy}})()}function Ky(e,t,n,r,o,l,s){try{var u=e[l](s),f=u.value}catch(m){return void n(m)}u.done?t(f):Promise.resolve(f).then(r,o)}function ia(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function s(f){Ky(l,r,o,s,u,"next",f)}function u(f){Ky(l,r,o,s,u,"throw",f)}s(void 0)})}}var _s=X({},h2),jP=_s.version,Rm=_s.render,zP=_s.unmountComponentAtNode,id;try{var kP=Number((jP||"").split(".")[0]);kP>=18&&(id=_s.createRoot)}catch{}function Xy(e){var t=_s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var _u="__rc_react_root__";function LP(e,t){Xy(!0);var n=t[_u]||id(t);Xy(!1),n.render(e),t[_u]=n}function BP(e,t){Rm==null||Rm(e,t)}function AP(e,t){if(id){LP(e,t);return}BP(e,t)}function DP(e){return Fp.apply(this,arguments)}function Fp(){return Fp=ia(Sr().mark(function e(t){return Sr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[_u])===null||o===void 0||o.unmount(),delete t[_u]}));case 1:case"end":return r.stop()}},e)})),Fp.apply(this,arguments)}function FP(e){zP(e)}function HP(e){return Hp.apply(this,arguments)}function Hp(){return Hp=ia(Sr().mark(function e(t){return Sr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(id===void 0){r.next=2;break}return r.abrupt("return",DP(t));case 2:FP(t);case 3:case"end":return r.stop()}},e)})),Hp.apply(this,arguments)}const VP=(e,t)=>(AP(e,t),()=>HP(t));let WP=VP;function zg(e){return WP}const Pm=()=>({height:0,opacity:0}),Qy=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},UP=e=>({height:e?e.offsetHeight:0}),Tm=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Bx=(e=bs)=>({motionName:`${e}-motion-collapse`,onAppearStart:Pm,onEnterStart:Pm,onAppearActive:Qy,onEnterActive:Qy,onLeaveStart:UP,onLeaveActive:Pm,onAppearEnd:Tm,onEnterEnd:Tm,onLeaveEnd:Tm,motionDeadline:500}),Mi=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Vn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const kg=(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(),l=o.width,s=o.height;if(l||s)return!0}}return!1}),GP=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(",")}}}}},qP=XI("Wave",GP),Ax=`${bs}-wave-target`;function KP(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 XP(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(KP))!==null&&t!==void 0?t:null}function Mm(e){return Number.isNaN(e)?0:e}const QP=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,l=c.useRef(null),s=c.useRef(null);c.useEffect(()=>{s.current=o()},[]);const[u,f]=c.useState(null),[m,p]=c.useState([]),[g,h]=c.useState(0),[y,x]=c.useState(0),[S,b]=c.useState(0),[$,w]=c.useState(0),[O,I]=c.useState(!1),R={left:g,top:y,width:S,height:$,borderRadius:m.map(N=>`${N}px`).join(" ")};u&&(R["--wave-color"]=u);function P(){const N=getComputedStyle(n);f(XP(n));const M=N.position==="static",{borderLeftWidth:_,borderTopWidth:L}=N;h(M?n.offsetLeft:Mm(-Number.parseFloat(_))),x(M?n.offsetTop:Mm(-Number.parseFloat(L))),b(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:z,borderTopRightRadius:A,borderBottomLeftRadius:B,borderBottomRightRadius:G}=N;p([z,A,G,B].map(V=>Mm(Number.parseFloat(V))))}if(c.useEffect(()=>{if(n){const N=Sn(()=>{P(),I(!0)});let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(P),M.observe(n)),()=>{Sn.cancel(N),M==null||M.disconnect()}}},[n]),!O)return null;const T=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Ax));return c.createElement(wo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(N,M)=>{var _,L;if(M.deadline||M.propertyName==="opacity"){const z=(_=l.current)===null||_===void 0?void 0:_.parentElement;(L=s.current)===null||L===void 0||L.call(s).then(()=>{z==null||z.remove()})}return!1}},({className:N},M)=>c.createElement("div",{ref:ko(l,M),className:re(t,N,{"wave-quick":T}),style:R}))},YP=(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 l=zg();let s=null;function u(){return s}s=l(c.createElement(QP,Object.assign({},t,{target:e,registerUnmount:u})),o)},ZP=(e,t,n)=>{const{wave:r}=c.useContext(Rt),[,o,l]=Rr(),s=_n(m=>{const p=e.current;if(r!=null&&r.disabled||!p)return;const g=p.querySelector(`.${Ax}`)||p,{showEffect:h}=r||{};(h||YP)(g,{className:t,token:o,component:n,event:m,hashId:l})}),u=c.useRef(null);return m=>{Sn.cancel(u.current),u.current=Sn(()=>{s(m)})}},Dx=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(Rt),l=c.useRef(null),s=o("wave"),[,u]=qP(s),f=ZP(l,re(s,u),r);if(Y.useEffect(()=>{const p=l.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=h=>{!kg(h.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")&&!p.className.includes("disabled:")||p.getAttribute("aria-disabled")==="true"||p.className.includes("-leave")||f(h)};return p.addEventListener("click",g,!0),()=>{p.removeEventListener("click",g,!0)}},[n]),!Y.isValidElement(t))return t??null;const m=_i(t)?ko(oa(t),l):l;return Or(t,{ref:m})},ri=e=>{const t=Y.useContext(al);return Y.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},JP=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},eT=mn(["Space","Compact"],e=>[JP(e)],()=>({}),{resetStyle:!1});var Fx=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 ad=c.createContext(null),js=(e,t)=>{const n=c.useContext(ad),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:l,isLastItem:s}=n,u=o==="vertical"?"-vertical-":"-";return re(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:l,[`${e}-compact${u}last-item`]:s,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},tT=e=>{const{children:t}=e;return c.createElement(ad.Provider,{value:null},t)},nT=e=>{const{children:t}=e,n=Fx(e,["children"]);return c.createElement(ad.Provider,{value:c.useMemo(()=>n,[n])},t)},rT=e=>{const{getPrefixCls:t,direction:n}=c.useContext(Rt),{size:r,direction:o,block:l,prefixCls:s,className:u,rootClassName:f,children:m}=e,p=Fx(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=ri(O=>r??O),h=t("space-compact",s),[y,x]=eT(h),S=re(h,x,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:l,[`${h}-vertical`]:o==="vertical"},u,f),b=c.useContext(ad),$=Er(m),w=c.useMemo(()=>$.map((O,I)=>{const R=(O==null?void 0:O.key)||`${h}-item-${I}`;return c.createElement(nT,{key:R,compactSize:g,compactDirection:o,isFirstItem:I===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:I===$.length-1&&(!b||(b==null?void 0:b.isLastItem))},O)}),[$,b,o,g,h]);return $.length===0?null:y(c.createElement("div",Object.assign({className:S},p),w))};var oT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hx=c.createContext(void 0),iT=e=>{const{getPrefixCls:t,direction:n}=c.useContext(Rt),{prefixCls:r,size:o,className:l}=e,s=oT(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,f]=Rr(),m=c.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),p=re(u,{[`${u}-${m}`]:m,[`${u}-rtl`]:n==="rtl"},l,f);return c.createElement(Hx.Provider,{value:o},c.createElement("div",Object.assign({},s,{className:p})))},Yy=/^[\u4E00-\u9FA5]{2}$/,Vp=Yy.test.bind(Yy);function Vx(e){return e==="danger"?{danger:!0}:{type:e}}function Zy(e){return typeof e=="string"}function Nm(e){return e==="text"||e==="link"}function aT(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Zy(e.type)&&Vp(e.props.children)?Or(e,{children:e.props.children.split("").join(n)}):Zy(e)?Vp(e)?Y.createElement("span",null,e.split("").join(n)):Y.createElement("span",null,e):Ox(e)?Y.createElement("span",null,e):e}function lT(e,t){let n=!1;const r=[];return Y.Children.forEach(e,o=>{const l=typeof o,s=l==="string"||l==="number";if(n&&s){const u=r.length-1,f=r[u];r[u]=`${f}${o}`}else r.push(o);n=s}),Y.Children.map(r,o=>aT(o,t))}["default","primary","danger"].concat(Ae(Ti));const Wx=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:l}=e,s=re(`${l}-icon`,n);return Y.createElement("span",{ref:t,className:s,style:r},o)}),Jy=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:l}=e,s=re(`${n}-loading-icon`,r);return Y.createElement(Wx,{prefixCls:n,className:s,style:o,ref:t},Y.createElement(rd,{className:l}))}),_m=()=>({width:0,opacity:0,transform:"scale(0)"}),jm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),sT=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:l,mount:s}=e,u=!!n;return r?Y.createElement(Jy,{prefixCls:t,className:o,style:l}):Y.createElement(wo,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:_m,onAppearActive:jm,onEnterStart:_m,onEnterActive:jm,onLeaveStart:jm,onLeaveActive:_m},({className:f,style:m},p)=>{const g=Object.assign(Object.assign({},l),m);return Y.createElement(Jy,{prefixCls:t,className:re(o,f),style:g,ref:p})})},eb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),cT=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:l}=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}},eb(`${t}-primary`,o),eb(`${t}-danger`,l)]}};var uT=["b"],dT=["v"],zm=function(t){return Math.round(Number(t||0))},fT=function(t){if(t instanceof sn)return t;if(t&&mt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Nt(n,uT);return X(X({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},xs=(function(e){Jo(n,e);var t=ei(n);function n(r){return Wn(this,n),t.call(this,fT(r))}return Un(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),l=zm(o.s*100),s=zm(o.b*100),u=zm(o.h),f=o.a,m="hsb(".concat(u,", ").concat(l,"%, ").concat(s,"%)"),p="hsba(".concat(u,", ").concat(l,"%, ").concat(s,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?m:p}},{key:"toHsb",value:function(){var o=this.toHsv(),l=o.v,s=Nt(o,dT);return X(X({},s),{},{b:l,a:this.a})}}]),n})(sn),mT=function(t){return t instanceof xs?t:new xs(t)};mT("#1677ff");const pT=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",gT=(e,t)=>e?pT(e,t):"";let Wp=(function(){function e(t){Wn(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:l})=>({color:new e(o),percent:l})),this.metaColor=new xs(this.colors[0].color.metaColor)):this.metaColor=new xs(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Un(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return gT(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const l=n.colors[o];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])})();var vT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},hT=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:vT}))},cl=c.forwardRef(hT),Ux=Y.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,l=e.style,s=e.children,u=e.isActive,f=e.role,m=e.classNames,p=e.styles,g=Y.useState(u||r),h=ae(g,2),y=h[0],x=h[1];return Y.useEffect(function(){(r||u)&&x(!0)},[r,u]),y?Y.createElement("div",{ref:t,className:re("".concat(n,"-content"),U(U({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),o),style:l,role:f},Y.createElement("div",{className:re("".concat(n,"-content-box"),m==null?void 0:m.body),style:p==null?void 0:p.body},s)):null});Ux.displayName="PanelContent";var yT=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Gx=Y.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,l=e.isActive,s=e.onItemClick,u=e.forceRender,f=e.className,m=e.classNames,p=m===void 0?{}:m,g=e.styles,h=g===void 0?{}:g,y=e.prefixCls,x=e.collapsible,S=e.accordion,b=e.panelKey,$=e.extra,w=e.header,O=e.expandIcon,I=e.openMotion,R=e.destroyInactivePanel,P=e.children,T=Nt(e,yT),N=x==="disabled",M=$!=null&&typeof $!="boolean",_=U(U(U({onClick:function(){s==null||s(b)},onKeyDown:function(H){(H.key==="Enter"||H.keyCode===Ue.ENTER||H.which===Ue.ENTER)&&(s==null||s(b))},role:S?"tab":"button"},"aria-expanded",l),"aria-disabled",N),"tabIndex",N?-1:0),L=typeof O=="function"?O(e):Y.createElement("i",{className:"arrow"}),z=L&&Y.createElement("div",Ee({className:"".concat(y,"-expand-icon")},["header","icon"].includes(x)?_:{}),L),A=re("".concat(y,"-item"),U(U({},"".concat(y,"-item-active"),l),"".concat(y,"-item-disabled"),N),f),B=re(o,"".concat(y,"-header"),U({},"".concat(y,"-collapsible-").concat(x),!!x),p.header),G=X({className:B,style:h.header},["header","icon"].includes(x)?{}:_);return Y.createElement("div",Ee({},T,{ref:t,className:A}),Y.createElement("div",G,r&&z,Y.createElement("span",Ee({className:"".concat(y,"-header-text")},x==="header"?_:{}),w),M&&Y.createElement("div",{className:"".concat(y,"-extra")},$)),Y.createElement(wo,Ee({visible:l,leavedClassName:"".concat(y,"-content-hidden")},I,{forceRender:u,removeOnLeave:R}),function(V,H){var D=V.className,Z=V.style;return Y.createElement(Ux,{ref:H,prefixCls:y,className:D,classNames:p,style:Z,styles:h,isActive:l,forceRender:u,role:S?"tabpanel":void 0},P)}))}),bT=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ST=function(t,n){var r=n.prefixCls,o=n.accordion,l=n.collapsible,s=n.destroyInactivePanel,u=n.onItemClick,f=n.activeKey,m=n.openMotion,p=n.expandIcon;return t.map(function(g,h){var y=g.children,x=g.label,S=g.key,b=g.collapsible,$=g.onItemClick,w=g.destroyInactivePanel,O=Nt(g,bT),I=String(S??h),R=b??l,P=w??s,T=function(_){R!=="disabled"&&(u(_),$==null||$(_))},N=!1;return o?N=f[0]===I:N=f.indexOf(I)>-1,Y.createElement(Gx,Ee({},O,{prefixCls:r,key:I,panelKey:I,isActive:N,accordion:o,openMotion:m,expandIcon:p,header:x,collapsible:R,onItemClick:T,destroyInactivePanel:P}),y)})},xT=function(t,n,r){if(!t)return null;var o=r.prefixCls,l=r.accordion,s=r.collapsible,u=r.destroyInactivePanel,f=r.onItemClick,m=r.activeKey,p=r.openMotion,g=r.expandIcon,h=t.key||String(n),y=t.props,x=y.header,S=y.headerClass,b=y.destroyInactivePanel,$=y.collapsible,w=y.onItemClick,O=!1;l?O=m[0]===h:O=m.indexOf(h)>-1;var I=$??s,R=function(N){I!=="disabled"&&(f(N),w==null||w(N))},P={key:h,panelKey:h,header:x,headerClass:S,isActive:O,prefixCls:o,destroyInactivePanel:b??u,openMotion:p,accordion:l,children:t.props.children,onItemClick:R,expandIcon:g,collapsible:I};return typeof t.type=="string"?t:(Object.keys(P).forEach(function(T){typeof P[T]>"u"&&delete P[T]}),Y.cloneElement(t,P))};function CT(e,t,n){return Array.isArray(e)?ST(e,n):Er(t).map(function(r,o){return xT(r,o,n)})}function wT(e){var t=e;if(!Array.isArray(t)){var n=mt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var $T=Y.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,l=o===void 0?!1:o,s=e.style,u=e.accordion,f=e.className,m=e.children,p=e.collapsible,g=e.openMotion,h=e.expandIcon,y=e.activeKey,x=e.defaultActiveKey,S=e.onChange,b=e.items,$=re(r,f),w=Hn([],{value:y,onChange:function(M){return S==null?void 0:S(M)},defaultValue:x,postState:wT}),O=ae(w,2),I=O[0],R=O[1],P=function(M){return R(function(){if(u)return I[0]===M?[]:[M];var _=I.indexOf(M),L=_>-1;return L?I.filter(function(z){return z!==M}):[].concat(Ae(I),[M])})};sr(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var T=CT(b,m,{prefixCls:r,accordion:u,openMotion:g,expandIcon:h,collapsible:p,destroyInactivePanel:l,onItemClick:P,activeKey:I});return Y.createElement("div",Ee({ref:t,className:$,style:s,role:u?"tablist":void 0},_o(e,{aria:!0,data:!0})),T)});const Lg=Object.assign($T,{Panel:Gx});Lg.Panel;const ET=c.forwardRef((e,t)=>{const{getPrefixCls:n}=c.useContext(Rt),{prefixCls:r,className:o,showArrow:l=!0}=e,s=n("collapse",r),u=re({[`${s}-no-arrow`]:!l},o);return c.createElement(Lg.Panel,Object.assign({ref:t},e,{prefixCls:s,className:u}))}),qx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
177
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
178
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),OT=e=>({animationDuration:e,animationFillMode:"both"}),IT=e=>({animationDuration:e,animationFillMode:"both"}),ld=(e,t,n,r,o=!1)=>{const l=o?"&":"";return{[`
|
|
179
|
-
${l}${e}-enter,
|
|
180
|
-
${l}${e}-appear
|
|
181
|
-
`]:Object.assign(Object.assign({},OT(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},IT(r)),{animationPlayState:"paused"}),[`
|
|
182
|
-
${l}${e}-enter${e}-enter-active,
|
|
183
|
-
${l}${e}-appear${e}-appear-active
|
|
184
|
-
`]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},RT=new At("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),PT=new At("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),TT=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[ld(r,RT,PT,e.motionDurationMid,t),{[`
|
|
185
|
-
${o}${r}-enter,
|
|
186
|
-
${o}${r}-appear
|
|
187
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},MT=new At("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NT=new At("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),_T=new At("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jT=new At("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zT=new At("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kT=new At("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),LT=new At("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BT=new At("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),AT={"move-up":{inKeyframes:LT,outKeyframes:BT},"move-down":{inKeyframes:MT,outKeyframes:NT},"move-left":{inKeyframes:_T,outKeyframes:jT},"move-right":{inKeyframes:zT,outKeyframes:kT}},ju=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=AT[t];return[ld(r,o,l,e.motionDurationMid),{[`
|
|
188
|
-
${r}-enter,
|
|
189
|
-
${r}-appear
|
|
190
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Bg=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ag=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dg=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Fg=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),DT=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),FT=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),HT=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),VT=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),WT={"slide-up":{inKeyframes:Bg,outKeyframes:Ag},"slide-down":{inKeyframes:Dg,outKeyframes:Fg},"slide-left":{inKeyframes:DT,outKeyframes:FT},"slide-right":{inKeyframes:HT,outKeyframes:VT}},Ni=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=WT[t];return[ld(r,o,l,e.motionDurationMid),{[`
|
|
191
|
-
${r}-enter,
|
|
192
|
-
${r}-appear
|
|
193
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},UT=new At("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GT=new At("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),tb=new At("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),nb=new At("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),qT=new At("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),KT=new At("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),XT=new At("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),QT=new At("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),YT=new At("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ZT=new At("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),JT=new At("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),eM=new At("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),tM={zoom:{inKeyframes:UT,outKeyframes:GT},"zoom-big":{inKeyframes:tb,outKeyframes:nb},"zoom-big-fast":{inKeyframes:tb,outKeyframes:nb},"zoom-left":{inKeyframes:XT,outKeyframes:QT},"zoom-right":{inKeyframes:YT,outKeyframes:ZT},"zoom-up":{inKeyframes:qT,outKeyframes:KT},"zoom-down":{inKeyframes:JT,outKeyframes:eM}},zs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=tM[t];return[ld(r,o,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
194
|
-
${r}-enter,
|
|
195
|
-
${r}-appear
|
|
196
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},nM=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:l,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:f,lineWidth:m,lineType:p,colorBorder:g,colorText:h,colorTextHeading:y,colorTextDisabled:x,fontSizeLG:S,lineHeight:b,lineHeightLG:$,marginSM:w,paddingSM:O,paddingLG:I,paddingXS:R,motionDurationSlow:P,fontSizeIcon:T,contentPadding:N,fontHeight:M,fontHeightLG:_}=e,L=`${J(m)} ${p} ${g}`;return{[t]:Object.assign(Object.assign({},An(e)),{backgroundColor:o,border:L,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
|
|
197
|
-
&,
|
|
198
|
-
& > ${t}-header`]:{borderRadius:`${J(f)} ${J(f)} 0 0`}},"&:last-child":{[`
|
|
199
|
-
&,
|
|
200
|
-
& > ${t}-header`]:{borderRadius:`0 0 ${J(f)} ${J(f)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:y,lineHeight:b,cursor:"pointer",transition:`all ${P}, visibility 0s`},No(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:M,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},ml()),{fontSize:T,transition:`transform ${P}`,svg:{transition:`transform ${P}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:L,[`& > ${t}-content-box`]:{padding:N},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:R,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(O).sub(R).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:$,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:_,marginInlineStart:e.calc(I).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:I}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${J(f)} ${J(f)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:x,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},rM=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},oM=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:l}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${l}`},[`
|
|
201
|
-
> ${t}-item:last-child,
|
|
202
|
-
> ${t}-item:last-child ${t}-header
|
|
203
|
-
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},iM=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},aM=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),lM=mn("Collapse",e=>{const t=Qt(e,{collapseHeaderPaddingSM:`${J(e.paddingXS)} ${J(e.paddingSM)}`,collapseHeaderPaddingLG:`${J(e.padding)} ${J(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[nM(t),oM(t),iM(t),rM(t),qx(t)]},aM),sM=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:l,style:s}=Ir("collapse"),{prefixCls:u,className:f,rootClassName:m,style:p,bordered:g=!0,ghost:h,size:y,expandIconPosition:x="start",children:S,destroyInactivePanel:b,destroyOnHidden:$,expandIcon:w}=e,O=ri(G=>{var V;return(V=y??G)!==null&&V!==void 0?V:"middle"}),I=n("collapse",u),R=n(),[P,T,N]=lM(I),M=c.useMemo(()=>x==="left"?"start":x==="right"?"end":x,[x]),_=w??o,L=c.useCallback((G={})=>{const V=typeof _=="function"?_(G):c.createElement(cl,{rotate:G.isActive?r==="rtl"?-90:90:void 0,"aria-label":G.isActive?"expanded":"collapsed"});return Or(V,()=>{var H;return{className:re((H=V.props)===null||H===void 0?void 0:H.className,`${I}-arrow`)}})},[_,I,r]),z=re(`${I}-icon-position-${M}`,{[`${I}-borderless`]:!g,[`${I}-rtl`]:r==="rtl",[`${I}-ghost`]:!!h,[`${I}-${O}`]:O!=="middle"},l,f,m,T,N),A=c.useMemo(()=>Object.assign(Object.assign({},Bx(R)),{motionAppear:!1,leavedClassName:`${I}-content-hidden`}),[R,I]),B=c.useMemo(()=>S?Er(S).map((G,V)=>{var H,D;const Z=G.props;if(Z!=null&&Z.disabled){const W=(H=G.key)!==null&&H!==void 0?H:String(V),k=Object.assign(Object.assign({},Vn(G.props,["disabled"])),{key:W,collapsible:(D=Z.collapsible)!==null&&D!==void 0?D:"disabled"});return Or(G,k)}return G}):null,[S]);return P(c.createElement(Lg,Object.assign({ref:t,openMotion:A},Vn(e,["rootClassName"]),{expandIcon:L,prefixCls:I,className:z,style:Object.assign(Object.assign({},s),p),destroyInactivePanel:$??b}),B))}),ta=Object.assign(sM,{Panel:ET}),cM=e=>e instanceof Wp?e:new Wp(e),uM=(e,t)=>{const{r:n,g:r,b:o,a:l}=e.toRgb(),s=new xs(e.toRgbString()).onBackground(t).toHsv();return l<=.5?s.v>.5:n*.299+r*.587+o*.114>192},Kx=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Qt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Xx=e=>{var t,n,r,o,l,s;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,f=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,m=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,p=(o=e.contentLineHeight)!==null&&o!==void 0?o:hu(u),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:hu(f),h=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:hu(m),y=uM(new Wp(e.colorBgSolid),"#fff")?"#000":"#fff",x=Ti.reduce((S,b)=>Object.assign(Object.assign({},S),{[`${b}ShadowColor`]:`0 ${J(e.controlOutlineWidth)} 0 ${rs(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},x),{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:y,contentFontSize:u,contentFontSizeSM:f,contentFontSizeLG:m,contentLineHeight:p,contentLineHeightSM:g,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-u*p)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-f*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-m*h)/2-e.lineWidth,0)})},dM=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:l,motionEaseInOut:s,iconGap:u,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:u,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${J(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`]:ml(),"> a":{color:"currentColor"},"&:not(:disabled)":No(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(m=>`${m} ${l} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(u).mul(-1).equal()}}}}}},Qx=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),fM=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),mM=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),sd=(e,t,n,r,o,l,s,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Qx(e,Object.assign({background:t},s),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:l||void 0}})}),pM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mM(e))}),gM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),cd=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?gM:pM;return Object.assign(Object.assign({},l(e)),Qx(e.componentCls,t,n))},ud=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},cd(e,r,o))}),dd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},cd(e,r,o))}),fd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),md=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},cd(e,n,r))}),jo=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},cd(e,r,o,n))}),vM=e=>{const{componentCls:t}=e;return Ti.reduce((n,r)=>{const o=e[`${r}6`],l=e[`${r}1`],s=e[`${r}5`],u=e[`${r}2`],f=e[`${r}3`],m=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`]},ud(e,e.colorTextLightSolid,o,{background:s},{background:m})),dd(e,o,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),fd(e)),md(e,l,{color:o,background:u},{color:o,background:f})),jo(e,o,"link",{color:s},{color:m})),jo(e,o,"text",{color:s,background:l},{color:m,background:f}))})},{})},hM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ud(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),fd(e)),md(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),sd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),jo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),yM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},dd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),fd(e)),md(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),jo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),jo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),sd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),bM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ud(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),dd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fd(e)),md(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),jo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),jo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),sd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),SM=e=>Object.assign(Object.assign({},jo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),sd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),xM=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:hM(e),[`${t}-color-primary`]:yM(e),[`${t}-color-dangerous`]:bM(e),[`${t}-color-link`]:SM(e)},vM(e))},CM=e=>Object.assign(Object.assign(Object.assign(Object.assign({},dd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),jo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ud(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),jo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Hg=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:l,buttonPaddingHorizontal:s,iconCls:u,buttonPaddingVertical:f,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:o,height:r,padding:`${J(f)} ${J(s)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:fM(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},wM=e=>{const t=Qt(e,{fontSize:e.contentFontSize});return Hg(t,e.componentCls)},$M=e=>{const t=Qt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Hg(t,`${e.componentCls}-sm`)},EM=e=>{const t=Qt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Hg(t,`${e.componentCls}-lg`)},OM=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},IM=mn("Button",e=>{const t=Kx(e);return[dM(t),wM(t),$M(t),EM(t),OM(t),xM(t),CM(t),cT(t)]},Xx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function RM(e,t,n,r){const{focusElCls:o,focus:l,borderElCls:s}=n,u=s?"> *":"",f=["hover",l?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${u}`).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({[f]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function PM(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 pd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,l=`${o}-compact`;return{[l]:Object.assign(Object.assign({},RM(e,l,t,o)),PM(o,l,t))}}function TM(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 MM(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 NM(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},TM(e,t,e.componentCls)),MM(e.componentCls,t))}}const _M=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,l=o(r).mul(-1).equal(),s=u=>{const f=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${f} + ${f}::before`]:{position:"absolute",top:u?l:0,insetInlineStart:u?0:l,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},jM=Ms(["Button","compact"],e=>{const t=Kx(e);return[pd(t),NM(t),_M(t)]},Xx);var zM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function kM(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 LM={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},BM=Y.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:l,color:s,variant:u,type:f,danger:m=!1,shape:p,size:g,styles:h,disabled:y,className:x,rootClassName:S,children:b,icon:$,iconPosition:w="start",ghost:O=!1,block:I=!1,htmlType:R="button",classNames:P,style:T={},autoInsertSpace:N,autoFocus:M}=e,_=zM(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=f||"default",{button:z}=Y.useContext(Rt),A=p||(z==null?void 0:z.shape)||"default",[B,G]=c.useMemo(()=>{if(s&&u)return[s,u];if(f||m){const pt=LM[L]||[];return m?["danger",pt[1]]:pt}return z!=null&&z.color&&(z!=null&&z.variant)?[z.color,z.variant]:["default","outlined"]},[s,u,f,m,z==null?void 0:z.color,z==null?void 0:z.variant,L]),H=B==="danger"?"dangerous":B,{getPrefixCls:D,direction:Z,autoInsertSpace:W,className:k,style:F,classNames:Q,styles:ne}=Ir("button"),ee=(n=N??W)!==null&&n!==void 0?n:!0,oe=D("btn",l),[fe,me,ue]=IM(oe),Se=c.useContext(il),pe=y??Se,se=c.useContext(Hx),ye=c.useMemo(()=>kM(o),[o]),[ve,ce]=c.useState(ye.loading),[le,be]=c.useState(!1),xe=c.useRef(null),$e=Zo(t,xe),Ne=c.Children.count(b)===1&&!$&&!Nm(G),Le=c.useRef(!0);Y.useEffect(()=>(Le.current=!1,()=>{Le.current=!0}),[]),rn(()=>{let pt=null;ye.delay>0?pt=setTimeout(()=>{pt=null,ce(!0)},ye.delay):ce(ye.loading);function Ht(){pt&&(clearTimeout(pt),pt=null)}return Ht},[ye.delay,ye.loading]),c.useEffect(()=>{if(!xe.current||!ee)return;const pt=xe.current.textContent||"";Ne&&Vp(pt)?le||be(!0):le&&be(!1)}),c.useEffect(()=>{M&&xe.current&&xe.current.focus()},[]);const Pe=Y.useCallback(pt=>{var Ht;if(ve||pe){pt.preventDefault();return}(Ht=e.onClick)===null||Ht===void 0||Ht.call(e,("href"in e,pt))},[e.onClick,ve,pe]),{compactSize:Be,compactItemClassnames:Oe}=js(oe,Z),tt={large:"lg",small:"sm",middle:void 0},lt=ri(pt=>{var Ht,Dt;return(Dt=(Ht=g??Be)!==null&&Ht!==void 0?Ht:se)!==null&&Dt!==void 0?Dt:pt}),bt=lt&&(r=tt[lt])!==null&&r!==void 0?r:"",st=ve?"loading":$,Ge=Vn(_,["navigate"]),it=re(oe,me,ue,{[`${oe}-${A}`]:A!=="default"&&A,[`${oe}-${L}`]:L,[`${oe}-dangerous`]:m,[`${oe}-color-${H}`]:H,[`${oe}-variant-${G}`]:G,[`${oe}-${bt}`]:bt,[`${oe}-icon-only`]:!b&&b!==0&&!!st,[`${oe}-background-ghost`]:O&&!Nm(G),[`${oe}-loading`]:ve,[`${oe}-two-chinese-chars`]:le&&ee&&!ve,[`${oe}-block`]:I,[`${oe}-rtl`]:Z==="rtl",[`${oe}-icon-end`]:w==="end"},Oe,x,S,k),Ve=Object.assign(Object.assign({},F),T),dt=re(P==null?void 0:P.icon,Q.icon),Xe=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),ne.icon||{}),_e=pt=>Y.createElement(Wx,{prefixCls:oe,className:dt,style:Xe},pt),Ye=()=>Y.createElement(sT,{existIcon:!!$,prefixCls:oe,loading:ve,mount:Le.current});let Te;$&&!ve?Te=_e($):o&&typeof o=="object"&&o.icon?Te=_e(o.icon):Te=Ye();const Fe=b||b===0?lT(b,Ne&&ee):null;if(Ge.href!==void 0)return fe(Y.createElement("a",Object.assign({},Ge,{className:re(it,{[`${oe}-disabled`]:pe}),href:pe?void 0:Ge.href,style:Ve,onClick:Pe,ref:$e,tabIndex:pe?-1:0,"aria-disabled":pe}),Te,Fe));let wt=Y.createElement("button",Object.assign({},_,{type:R,className:it,style:Ve,onClick:Pe,disabled:pe,ref:$e}),Te,Fe,Oe&&Y.createElement(jM,{prefixCls:oe}));return Nm(G)||(wt=Y.createElement(Dx,{component:"Button",disabled:ve},wt)),fe(wt)}),zo=BM;zo.Group=iT;zo.__ANT_BUTTON=!0;const km=e=>typeof(e==null?void 0:e.then)=="function",Yx=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:l,autoFocus:s,emitEvent:u,isSilent:f,quitOnNullishReturnValue:m,actionFn:p}=e,g=c.useRef(!1),h=c.useRef(null),[y,x]=ll(!1),S=(...w)=>{l==null||l.apply(void 0,w)};c.useEffect(()=>{let w=null;return s&&(w=setTimeout(()=>{var O;(O=h.current)===null||O===void 0||O.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[s]);const b=w=>{km(w)&&(x(!0),w.then((...O)=>{x(!1,!0),S.apply(void 0,O),g.current=!1},O=>{if(x(!1,!0),g.current=!1,!(f!=null&&f()))return Promise.reject(O)}))},$=w=>{if(g.current)return;if(g.current=!0,!p){S();return}let O;if(u){if(O=p(w),m&&!km(O)){g.current=!1,S(w);return}}else if(p.length)O=p(l),g.current=!1;else if(O=p(),!km(O)){S();return}b(O)};return c.createElement(zo,Object.assign({},Vx(t),{onClick:$,loading:y,prefixCls:r},o,{ref:h}),n)},ks=Y.createContext({}),{Provider:Zx}=ks,rb=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:l,close:s,onCancel:u,onConfirm:f}=c.useContext(ks);return o?Y.createElement(Yx,{isSilent:r,actionFn:u,close:(...m)=>{s==null||s.apply(void 0,m),f==null||f(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},n):null},ob=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:l,okType:s,onConfirm:u,onOk:f}=c.useContext(ks);return Y.createElement(Yx,{isSilent:n,type:s||"primary",actionFn:f,close:(...m)=>{t==null||t.apply(void 0,m),u==null||u(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},l)};var Jx=c.createContext(null),ib=[];function AM(e,t){var n=c.useState(function(){if(!br())return null;var x=document.createElement("div");return x}),r=ae(n,1),o=r[0],l=c.useRef(!1),s=c.useContext(Jx),u=c.useState(ib),f=ae(u,2),m=f[0],p=f[1],g=s||(l.current?void 0:function(x){p(function(S){var b=[x].concat(Ae(S));return b})});function h(){o.parentElement||document.body.appendChild(o),l.current=!0}function y(){var x;(x=o.parentElement)===null||x===void 0||x.removeChild(o),l.current=!1}return rn(function(){return e?s?s(h):h():y(),y},[e]),rn(function(){m.length&&(m.forEach(function(x){return x()}),p(ib))},[m]),[o,g]}function DM(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,l;if(e){var s=getComputedStyle(e);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(u.width,10),m=parseInt(u.height,10);try{var p=f?"width: ".concat(u.width,";"):"",g=m?"height: ".concat(u.height,";"):"";Yo(`
|
|
204
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
205
|
-
`).concat(p,`
|
|
206
|
-
`).concat(g,`
|
|
207
|
-
}`),t)}catch(x){console.error(x),o=f,l=m}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),gs(t),{width:h,height:y}}function FM(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:DM(e)}function HM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var VM="rc-util-locker-".concat(Date.now()),ab=0;function WM(e){var t=!!e,n=c.useState(function(){return ab+=1,"".concat(VM,"_").concat(ab)}),r=ae(n,1),o=r[0];rn(function(){if(t){var l=FM(document.body).width,s=HM();Yo(`
|
|
208
|
-
html body {
|
|
209
|
-
overflow-y: hidden;
|
|
210
|
-
`.concat(s?"width: calc(100% - ".concat(l,"px);"):"",`
|
|
211
|
-
}`),o)}else gs(o);return function(){gs(o)}},[t,o])}var UM=!1;function GM(e){return UM}var lb=function(t){return t===!1?!1:!br()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Vg=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var l=e.autoDestroy,s=l===void 0?!0:l,u=e.children,f=c.useState(n),m=ae(f,2),p=m[0],g=m[1],h=p||n;c.useEffect(function(){(s||n)&&g(n)},[n,s]);var y=c.useState(function(){return lb(o)}),x=ae(y,2),S=x[0],b=x[1];c.useEffect(function(){var L=lb(o);b(L??null)});var $=AM(h&&!S),w=ae($,2),O=w[0],I=w[1],R=S??O;WM(r&&n&&br()&&(R===O||R===document.body));var P=null;if(u&&_i(u)&&t){var T=u;P=T.ref}var N=Zo(P,t);if(!h||!br()||S===void 0)return null;var M=R===!1||GM(),_=u;return t&&(_=c.cloneElement(u,{ref:N})),c.createElement(Jx.Provider,{value:I},M?_:Ri.createPortal(_,R))}),eC=c.createContext({});function qM(){var e=X({},Ku);return e.useId}var sb=0,cb=qM();const Wg=cb?(function(t){var n=cb();return t||n}):(function(t){var n=c.useState("ssr-id"),r=ae(n,2),o=r[0],l=r[1];return c.useEffect(function(){var s=sb;sb+=1,l("rc_unique_".concat(s))},[]),t||o});function ub(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function db(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function KM(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=db(o),n.top+=db(o,!0),n}const XM=c.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var QM={width:0,height:0,overflow:"hidden",outline:"none"},YM={outline:"none"},tC=Y.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.title,s=e.ariaId,u=e.footer,f=e.closable,m=e.closeIcon,p=e.onClose,g=e.children,h=e.bodyStyle,y=e.bodyProps,x=e.modalRender,S=e.onMouseDown,b=e.onMouseUp,$=e.holderRef,w=e.visible,O=e.forceRender,I=e.width,R=e.height,P=e.classNames,T=e.styles,N=Y.useContext(eC),M=N.panel,_=Zo($,M),L=c.useRef(),z=c.useRef();Y.useImperativeHandle(t,function(){return{focus:function(){var F;(F=L.current)===null||F===void 0||F.focus({preventScroll:!0})},changeActive:function(F){var Q=document,ne=Q.activeElement;F&&ne===z.current?L.current.focus({preventScroll:!0}):!F&&ne===L.current&&z.current.focus({preventScroll:!0})}}});var A={};I!==void 0&&(A.width=I),R!==void 0&&(A.height=R);var B=u?Y.createElement("div",{className:re("".concat(n,"-footer"),P==null?void 0:P.footer),style:X({},T==null?void 0:T.footer)},u):null,G=l?Y.createElement("div",{className:re("".concat(n,"-header"),P==null?void 0:P.header),style:X({},T==null?void 0:T.header)},Y.createElement("div",{className:"".concat(n,"-title"),id:s},l)):null,V=c.useMemo(function(){return mt(f)==="object"&&f!==null?f:f?{closeIcon:m??Y.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[f,m,n]),H=_o(V,!0),D=mt(f)==="object"&&f.disabled,Z=f?Y.createElement("button",Ee({type:"button",onClick:p,"aria-label":"Close"},H,{className:"".concat(n,"-close"),disabled:D}),V.closeIcon):null,W=Y.createElement("div",{className:re("".concat(n,"-content"),P==null?void 0:P.content),style:T==null?void 0:T.content},Z,G,Y.createElement("div",Ee({className:re("".concat(n,"-body"),P==null?void 0:P.body),style:X(X({},h),T==null?void 0:T.body)},y),g),B);return Y.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?s:null,"aria-modal":"true",ref:_,style:X(X({},o),A),className:re(n,r),onMouseDown:S,onMouseUp:b},Y.createElement("div",{ref:L,tabIndex:0,style:YM},Y.createElement(XM,{shouldUpdate:w||O},x?x(W):W)),Y.createElement("div",{tabIndex:0,ref:z,style:QM}))}),nC=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,l=e.className,s=e.visible,u=e.forceRender,f=e.destroyOnClose,m=e.motionName,p=e.ariaId,g=e.onVisibleChanged,h=e.mousePosition,y=c.useRef(),x=c.useState(),S=ae(x,2),b=S[0],$=S[1],w={};b&&(w.transformOrigin=b);function O(){var I=KM(y.current);$(h&&(h.x||h.y)?"".concat(h.x-I.left,"px ").concat(h.y-I.top,"px"):"")}return c.createElement(wo,{visible:s,onVisibleChanged:g,onAppearPrepare:O,onEnterPrepare:O,forceRender:u,motionName:m,removeOnLeave:f,ref:y},function(I,R){var P=I.className,T=I.style;return c.createElement(tC,Ee({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:R,style:X(X(X({},T),o),w),className:re(l,P)}))})});nC.displayName="Content";var ZM=function(t){var n=t.prefixCls,r=t.style,o=t.visible,l=t.maskProps,s=t.motionName,u=t.className;return c.createElement(wo,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(n,"-mask-hidden")},function(f,m){var p=f.className,g=f.style;return c.createElement("div",Ee({ref:m,style:X(X({},g),r),className:re("".concat(n,"-mask"),p,u)},l))})},JM=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,l=t.visible,s=l===void 0?!1:l,u=t.keyboard,f=u===void 0?!0:u,m=t.focusTriggerAfterClose,p=m===void 0?!0:m,g=t.wrapStyle,h=t.wrapClassName,y=t.wrapProps,x=t.onClose,S=t.afterOpenChange,b=t.afterClose,$=t.transitionName,w=t.animation,O=t.closable,I=O===void 0?!0:O,R=t.mask,P=R===void 0?!0:R,T=t.maskTransitionName,N=t.maskAnimation,M=t.maskClosable,_=M===void 0?!0:M,L=t.maskStyle,z=t.maskProps,A=t.rootClassName,B=t.classNames,G=t.styles,V=c.useRef(),H=c.useRef(),D=c.useRef(),Z=c.useState(s),W=ae(Z,2),k=W[0],F=W[1],Q=Wg();function ne(){pp(H.current,document.activeElement)||(V.current=document.activeElement)}function ee(){if(!pp(H.current,document.activeElement)){var ce;(ce=D.current)===null||ce===void 0||ce.focus()}}function oe(ce){if(ce)ee();else{if(F(!1),P&&V.current&&p){try{V.current.focus({preventScroll:!0})}catch{}V.current=null}k&&(b==null||b())}S==null||S(ce)}function fe(ce){x==null||x(ce)}var me=c.useRef(!1),ue=c.useRef(),Se=function(){clearTimeout(ue.current),me.current=!0},pe=function(){ue.current=setTimeout(function(){me.current=!1})},se=null;_&&(se=function(le){me.current?me.current=!1:H.current===le.target&&fe(le)});function ye(ce){if(f&&ce.keyCode===Ue.ESC){ce.stopPropagation(),fe(ce);return}s&&ce.keyCode===Ue.TAB&&D.current.changeActive(!ce.shiftKey)}c.useEffect(function(){s&&(F(!0),ne())},[s]),c.useEffect(function(){return function(){clearTimeout(ue.current)}},[]);var ve=X(X(X({zIndex:o},g),G==null?void 0:G.wrapper),{},{display:k?null:"none"});return c.createElement("div",Ee({className:re("".concat(r,"-root"),A)},_o(t,{data:!0})),c.createElement(ZM,{prefixCls:r,visible:P&&s,motionName:ub(r,T,N),style:X(X({zIndex:o},L),G==null?void 0:G.mask),maskProps:z,className:B==null?void 0:B.mask}),c.createElement("div",Ee({tabIndex:-1,onKeyDown:ye,className:re("".concat(r,"-wrap"),h,B==null?void 0:B.wrapper),ref:H,onClick:se,style:ve},y),c.createElement(nC,Ee({},t,{onMouseDown:Se,onMouseUp:pe,ref:D,closable:I,ariaId:Q,prefixCls:r,visible:s&&k,onClose:fe,onVisibleChanged:oe,motionName:ub(r,$,w)}))))},rC=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,l=t.destroyOnClose,s=l===void 0?!1:l,u=t.afterClose,f=t.panelRef,m=c.useState(n),p=ae(m,2),g=p[0],h=p[1],y=c.useMemo(function(){return{panel:f}},[f]);return c.useEffect(function(){n&&h(!0)},[n]),!o&&s&&!g?null:c.createElement(eC.Provider,{value:y},c.createElement(Vg,{open:n||o||g,autoDestroy:!1,getContainer:r,autoLock:n||g},c.createElement(JM,Ee({},t,{destroyOnClose:s,afterClose:function(){u==null||u(),h(!1)}}))))};rC.displayName="Dialog";var Qi="RC_FORM_INTERNAL_HOOKS",bn=function(){sr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ul=c.createContext({getFieldValue:bn,getFieldsValue:bn,getFieldError:bn,getFieldWarning:bn,getFieldsError:bn,isFieldsTouched:bn,isFieldTouched:bn,isFieldValidating:bn,isFieldsValidating:bn,resetFields:bn,setFields:bn,setFieldValue:bn,setFieldsValue:bn,validateFields:bn,submit:bn,getInternalHooks:function(){return bn(),{dispatch:bn,initEntityValue:bn,registerField:bn,useSubscribe:bn,setInitialValues:bn,destroyForm:bn,setCallbacks:bn,registerWatch:bn,getFields:bn,setValidateMessages:bn,setPreserve:bn,getInitialValue:bn}}}),zu=c.createContext(null);function Up(e){return e==null?[]:Array.isArray(e)?e:[e]}function eN(e){return e&&!!e._init}function Gp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var qp=Gp();function tN(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function nN(e,t,n){if(xg())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&fs(o,n.prototype),o}function Kp(e){var t=typeof Map=="function"?new Map:void 0;return Kp=function(r){if(r===null||!tN(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return nN(r,arguments,ms(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),fs(o,r)},Kp(e)}var rN=/%[sdj%]/g,oN=function(){};function Xp(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 Ur(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,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(rN,function(u){if(u==="%%")return"%";if(o>=l)return u;switch(u){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 u}});return s}return e}function iN(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Yn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||iN(t)&&typeof e=="string"&&!e)}function aN(e,t,n){var r=[],o=0,l=e.length;function s(u){r.push.apply(r,Ae(u||[])),o++,o===l&&n(r)}e.forEach(function(u){t(u,s)})}function fb(e,t,n){var r=0,o=e.length;function l(s){if(s&&s.length){n(s);return}var u=r;r=r+1,u<o?t(e[u],l):n([])}l([])}function lN(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ae(e[n]||[]))}),t}var mb=(function(e){Jo(n,e);var t=ei(n);function n(r,o){var l;return Wn(this,n),l=t.call(this,"Async Validation Error"),U(Ft(l),"errors",void 0),U(Ft(l),"fields",void 0),l.errors=r,l.fields=o,l}return Un(n)})(Kp(Error));function sN(e,t,n,r,o){if(t.first){var l=new Promise(function(h,y){var x=function($){return r($),$.length?y(new mb($,Xp($))):h(o)},S=lN(e);fb(S,n,x)});return l.catch(function(h){return h}),l}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),f=u.length,m=0,p=[],g=new Promise(function(h,y){var x=function(b){if(p.push.apply(p,b),m++,m===f)return r(p),p.length?y(new mb(p,Xp(p))):h(o)};u.length||(r(p),h(o)),u.forEach(function(S){var b=e[S];s.indexOf(S)!==-1?fb(b,n,x):aN(b,n,x)})});return g.catch(function(h){return h}),g}function cN(e){return!!(e&&e.message!==void 0)}function uN(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function pb(e,t){return function(n){var r;return e.fullFields?r=uN(t,e.fullFields):r=t[n.field||e.fullField],cN(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 gb(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];mt(r)==="object"&&mt(e[n])==="object"?e[n]=X(X({},e[n]),r):e[n]=r}}return e}var ja="enum",dN=function(t,n,r,o,l){t[ja]=Array.isArray(t[ja])?t[ja]:[],t[ja].indexOf(n)===-1&&o.push(Ur(l.messages[ja],t.fullField,t[ja].join(", ")))},fN=function(t,n,r,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ur(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(Ur(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},mN=function(t,n,r,o,l){var s=typeof t.len=="number",u=typeof t.min=="number",f=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,g=null,h=typeof n=="number",y=typeof n=="string",x=Array.isArray(n);if(h?g="number":y?g="string":x&&(g="array"),!g)return!1;x&&(p=n.length),y&&(p=n.replace(m,"_").length),s?p!==t.len&&o.push(Ur(l.messages[g].len,t.fullField,t.len)):u&&!f&&p<t.min?o.push(Ur(l.messages[g].min,t.fullField,t.min)):f&&!u&&p>t.max?o.push(Ur(l.messages[g].max,t.fullField,t.max)):u&&f&&(p<t.min||p>t.max)&&o.push(Ur(l.messages[g].range,t.fullField,t.min,t.max))},oC=function(t,n,r,o,l,s){t.required&&(!r.hasOwnProperty(t.field)||Yn(n,s||t.type))&&o.push(Ur(l.messages.required,t.fullField))},Xc;const pN=(function(){if(Xc)return Xc;var e="[a-fA-F\\d:]",t=function(P){return P&&P.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}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(l),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),f=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(s,"$")),p=function(P){return P&&P.exact?u:new RegExp("(?:".concat(t(P)).concat(n).concat(t(P),")|(?:").concat(t(P)).concat(s).concat(t(P),")"),"g")};p.v4=function(R){return R&&R.exact?f:new RegExp("".concat(t(R)).concat(n).concat(t(R)),"g")},p.v6=function(R){return R&&R.exact?m:new RegExp("".concat(t(R)).concat(s).concat(t(R)),"g")};var g="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",y=p.v4().source,x=p.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",O='(?:[/?#][^\\s"]*)?',I="(?:".concat(g,"|www\\.)").concat(h,"(?:localhost|").concat(y,"|").concat(x,"|").concat(S).concat(b).concat($,")").concat(w).concat(O);return Xc=new RegExp("(?:^".concat(I,"$)"),"i"),Xc});var Lm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},os={integer:function(t){return os.number(t)&&parseInt(t,10)===t},float:function(t){return os.number(t)&&!os.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return mt(t)==="object"&&!os.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Lm.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Lm.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(pN())},hex:function(t){return typeof t=="string"&&!!t.match(Lm.hex)}},gN=function(t,n,r,o,l){if(t.required&&n===void 0){oC(t,n,r,o,l);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;s.indexOf(u)>-1?os[u](n)||o.push(Ur(l.messages.types[u],t.fullField,t.type)):u&&mt(n)!==t.type&&o.push(Ur(l.messages.types[u],t.fullField,t.type))},vN=function(t,n,r,o,l){(/^\s+$/.test(n)||n==="")&&o.push(Ur(l.messages.whitespace,t.fullField))};const Xt={required:oC,whitespace:vN,type:gN,range:mN,enum:dN,pattern:fN};var hN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l)}r(s)},yN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();Xt.required(t,n,o,s,l,"array"),n!=null&&(Xt.type(t,n,o,s,l),Xt.range(t,n,o,s,l))}r(s)},bN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l),n!==void 0&&Xt.type(t,n,o,s,l)}r(s)},SN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n,"date")&&!t.required)return r();if(Xt.required(t,n,o,s,l),!Yn(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Xt.type(t,f,o,s,l),f&&Xt.range(t,f.getTime(),o,s,l)}}r(s)},xN="enum",CN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l),n!==void 0&&Xt[xN](t,n,o,s,l)}r(s)},wN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l),n!==void 0&&(Xt.type(t,n,o,s,l),Xt.range(t,n,o,s,l))}r(s)},$N=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l),n!==void 0&&(Xt.type(t,n,o,s,l),Xt.range(t,n,o,s,l))}r(s)},EN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l),n!==void 0&&Xt.type(t,n,o,s,l)}r(s)},ON=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l),n!==void 0&&(Xt.type(t,n,o,s,l),Xt.range(t,n,o,s,l))}r(s)},IN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l),n!==void 0&&Xt.type(t,n,o,s,l)}r(s)},RN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n,"string")&&!t.required)return r();Xt.required(t,n,o,s,l),Yn(n,"string")||Xt.pattern(t,n,o,s,l)}r(s)},PN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n)&&!t.required)return r();Xt.required(t,n,o,s,l),Yn(n)||Xt.type(t,n,o,s,l)}r(s)},TN=function(t,n,r,o,l){var s=[],u=Array.isArray(n)?"array":mt(n);Xt.required(t,n,o,s,l,u),r(s)},MN=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Yn(n,"string")&&!t.required)return r();Xt.required(t,n,o,s,l,"string"),Yn(n,"string")||(Xt.type(t,n,o,s,l),Xt.range(t,n,o,s,l),Xt.pattern(t,n,o,s,l),t.whitespace===!0&&Xt.whitespace(t,n,o,s,l))}r(s)},Qc=function(t,n,r,o,l){var s=t.type,u=[],f=t.required||!t.required&&o.hasOwnProperty(t.field);if(f){if(Yn(n,s)&&!t.required)return r();Xt.required(t,n,o,u,l,s),Yn(n,s)||Xt.type(t,n,o,u,l)}r(u)};const cs={string:MN,method:EN,number:ON,boolean:bN,regexp:PN,integer:$N,float:wN,array:yN,object:IN,enum:CN,pattern:RN,date:SN,url:Qc,hex:Qc,email:Qc,tel:Qc,required:TN,any:hN};var Ls=(function(){function e(t){Wn(this,e),U(this,"rules",null),U(this,"_messages",qp),this.define(t)}return Un(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(mt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var l=n[o];r.rules[o]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=gb(Gp(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,u=o,f=l;if(typeof u=="function"&&(f=u,u={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,s),Promise.resolve(s);function m(x){var S=[],b={};function $(O){if(Array.isArray(O)){var I;S=(I=S).concat.apply(I,Ae(O))}else S.push(O)}for(var w=0;w<x.length;w++)$(x[w]);S.length?(b=Xp(S),f(S,b)):f(null,s)}if(u.messages){var p=this.messages();p===qp&&(p=Gp()),gb(p,u.messages),u.messages=p}else u.messages=this.messages();var g={},h=u.keys||Object.keys(this.rules);h.forEach(function(x){var S=r.rules[x],b=s[x];S.forEach(function($){var w=$;typeof w.transform=="function"&&(s===n&&(s=X({},s)),b=s[x]=w.transform(b),b!=null&&(w.type=w.type||(Array.isArray(b)?"array":mt(b)))),typeof w=="function"?w={validator:w}:w=X({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=x,w.fullField=w.fullField||x,w.type=r.getType(w),g[x]=g[x]||[],g[x].push({rule:w,value:b,source:s,field:x}))})});var y={};return sN(g,u,function(x,S){var b=x.rule,$=(b.type==="object"||b.type==="array")&&(mt(b.fields)==="object"||mt(b.defaultField)==="object");$=$&&(b.required||!b.required&&x.value),b.field=x.field;function w(T,N){return X(X({},N),{},{fullField:"".concat(b.fullField,".").concat(T),fullFields:b.fullFields?[].concat(Ae(b.fullFields),[T]):[T]})}function O(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=Array.isArray(T)?T:[T];!u.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&b.message!==void 0&&b.message!==null&&(N=[].concat(b.message));var M=N.map(pb(b,s));if(u.first&&M.length)return y[b.field]=1,S(M);if(!$)S(M);else{if(b.required&&!x.value)return b.message!==void 0?M=[].concat(b.message).map(pb(b,s)):u.error&&(M=[u.error(b,Ur(u.messages.required,b.field))]),S(M);var _={};b.defaultField&&Object.keys(x.value).map(function(A){_[A]=b.defaultField}),_=X(X({},_),x.rule.fields);var L={};Object.keys(_).forEach(function(A){var B=_[A],G=Array.isArray(B)?B:[B];L[A]=G.map(w.bind(null,A))});var z=new e(L);z.messages(u.messages),x.rule.options&&(x.rule.options.messages=u.messages,x.rule.options.error=u.error),z.validate(x.value,x.rule.options||u,function(A){var B=[];M&&M.length&&B.push.apply(B,Ae(M)),A&&A.length&&B.push.apply(B,Ae(A)),S(B.length?B:null)})}}var I;if(b.asyncValidator)I=b.asyncValidator(b,x.value,O,x.source,u);else if(b.validator){try{I=b.validator(b,x.value,O,x.source,u)}catch(T){var R,P;(R=(P=console).error)===null||R===void 0||R.call(P,T),u.suppressValidatorError||setTimeout(function(){throw T},0),O(T.message)}I===!0?O():I===!1?O(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):I instanceof Array?O(I):I instanceof Error&&O(I.message)}I&&I.then&&I.then(function(){return O()},function(T){return O(T)})},function(x){m(x)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!cs.hasOwnProperty(n.type))throw new Error(Ur("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?cs.required:cs[this.getType(n)]||void 0}}]),e})();U(Ls,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");cs[t]=n});U(Ls,"warning",oN);U(Ls,"messages",qp);U(Ls,"validators",cs);var Vr="'${name}' is not a valid ${type}",iC={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:Vr,method:Vr,array:Vr,object:Vr,number:Vr,date:Vr,boolean:Vr,integer:Vr,float:Vr,regexp:Vr,email:Vr,url:Vr,hex:Vr},string:{len:"'${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}"}},vb=Ls;function NN(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 hb="CODE_LOGIC_ERROR";function Qp(e,t,n,r,o){return Yp.apply(this,arguments)}function Yp(){return Yp=ia(Sr().mark(function e(t,n,r,o,l){var s,u,f,m,p,g,h,y,x;return Sr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=X({},r),delete s.ruleIndex,vb.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch($){return console.error($),Promise.reject(hb)}}),f=null,s&&s.type==="array"&&s.defaultField&&(f=s.defaultField,delete s.defaultField),m=new vb(U({},t,[s])),p=Ka(iC,o.validateMessages),m.messages(p),g=[],b.prev=10,b.next=13,Promise.resolve(m.validate(U({},t,n),X({},o)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(g=b.t0.errors.map(function($,w){var O=$.message,I=O===hb?p.default:O;return c.isValidElement(I)?c.cloneElement(I,{key:"error_".concat(w)}):I}));case 18:if(!(!g.length&&f&&Array.isArray(n)&&n.length>0)){b.next=23;break}return b.next=21,Promise.all(n.map(function($,w){return Qp("".concat(t,".").concat(w),$,f,o,l)}));case 21:return h=b.sent,b.abrupt("return",h.reduce(function($,w){return[].concat(Ae($),Ae(w))},[]));case 23:return y=X(X({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),x=g.map(function($){return typeof $=="string"?NN($,y):$}),b.abrupt("return",x);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Yp.apply(this,arguments)}function _N(e,t,n,r,o,l){var s=e.join("."),u=n.map(function(p,g){var h=p.validator,y=X(X({},p),{},{ruleIndex:g});return h&&(y.validator=function(x,S,b){var $=!1,w=function(){for(var R=arguments.length,P=new Array(R),T=0;T<R;T++)P[T]=arguments[T];Promise.resolve().then(function(){sr(!$,"Your validator function has already return a promise. `callback` will be ignored."),$||b.apply(void 0,P)})},O=h(x,S,w);$=O&&typeof O.then=="function"&&typeof O.catch=="function",sr($,"`callback` is deprecated. Please return a promise instead."),$&&O.then(function(){b()}).catch(function(I){b(I||" ")})}),y}).sort(function(p,g){var h=p.warningOnly,y=p.ruleIndex,x=g.warningOnly,S=g.ruleIndex;return!!h==!!x?y-S:h?1:-1}),f;if(o===!0)f=new Promise((function(){var p=ia(Sr().mark(function g(h,y){var x,S,b;return Sr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:x=0;case 1:if(!(x<u.length)){w.next=12;break}return S=u[x],w.next=5,Qp(s,t,S,r,l);case 5:if(b=w.sent,!b.length){w.next=9;break}return y([{errors:b,rule:S}]),w.abrupt("return");case 9:x+=1,w.next=1;break;case 12:h([]);case 13:case"end":return w.stop()}},g)}));return function(g,h){return p.apply(this,arguments)}})());else{var m=u.map(function(p){return Qp(s,t,p,r,l).then(function(g){return{errors:g,rule:p}})});f=(o?zN(m):jN(m)).then(function(p){return Promise.reject(p)})}return f.catch(function(p){return p}),f}function jN(e){return Zp.apply(this,arguments)}function Zp(){return Zp=ia(Sr().mark(function e(t){return Sr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var l,s=(l=[]).concat.apply(l,Ae(o));return s}));case 1:case"end":return r.stop()}},e)})),Zp.apply(this,arguments)}function zN(e){return Jp.apply(this,arguments)}function Jp(){return Jp=ia(Sr().mark(function e(t){var n;return Sr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(l){t.forEach(function(s){s.then(function(u){u.errors.length&&l([u]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return o.stop()}},e)})),Jp.apply(this,arguments)}function Bn(e){return Up(e)}function yb(e,t){var n={};return t.forEach(function(r){var o=Po(e,r);n=go(n,r,o)}),n}function Ja(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return aC(t,r,n)})}function aC(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 kN(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ae(o).every(function(l){var s=e[l],u=t[l];return typeof s=="function"&&typeof u=="function"?!0:s===u})}function LN(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function bb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],l=t-n;return l>0?[].concat(Ae(e.slice(0,n)),[o],Ae(e.slice(n,t)),Ae(e.slice(t+1,r))):l<0?[].concat(Ae(e.slice(0,t)),Ae(e.slice(t+1,n+1)),[o],Ae(e.slice(n+1,r))):e}var BN=["name"],eo=[];function Bm(e,t,n,r,o,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==o}var Ug=(function(e){Jo(n,e);var t=ei(n);function n(r){var o;if(Wn(this,n),o=t.call(this,r),U(Ft(o),"state",{resetCount:0}),U(Ft(o),"cancelRegisterFunc",null),U(Ft(o),"mounted",!1),U(Ft(o),"touched",!1),U(Ft(o),"dirty",!1),U(Ft(o),"validatePromise",void 0),U(Ft(o),"prevValidating",void 0),U(Ft(o),"errors",eo),U(Ft(o),"warnings",eo),U(Ft(o),"cancelRegister",function(){var f=o.props,m=f.preserve,p=f.isListField,g=f.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(p,m,Bn(g)),o.cancelRegisterFunc=null}),U(Ft(o),"getNamePath",function(){var f=o.props,m=f.name,p=f.fieldContext,g=p.prefixName,h=g===void 0?[]:g;return m!==void 0?[].concat(Ae(h),Ae(m)):[]}),U(Ft(o),"getRules",function(){var f=o.props,m=f.rules,p=m===void 0?[]:m,g=f.fieldContext;return p.map(function(h){return typeof h=="function"?h(g):h})}),U(Ft(o),"refresh",function(){o.mounted&&o.setState(function(f){var m=f.resetCount;return{resetCount:m+1}})}),U(Ft(o),"metaCache",null),U(Ft(o),"triggerMetaEvent",function(f){var m=o.props.onMetaChange;if(m){var p=X(X({},o.getMeta()),{},{destroy:f});vs(o.metaCache,p)||m(p),o.metaCache=p}else o.metaCache=null}),U(Ft(o),"onStoreChange",function(f,m,p){var g=o.props,h=g.shouldUpdate,y=g.dependencies,x=y===void 0?[]:y,S=g.onReset,b=p.store,$=o.getNamePath(),w=o.getValue(f),O=o.getValue(b),I=m&&Ja(m,$);switch(p.type==="valueUpdate"&&p.source==="external"&&!vs(w,O)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=eo,o.warnings=eo,o.triggerMetaEvent()),p.type){case"reset":if(!m||I){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=eo,o.warnings=eo,o.triggerMetaEvent(),S==null||S(),o.refresh();return}break;case"remove":{if(h&&Bm(h,f,b,w,O,p)){o.reRender();return}break}case"setField":{var R=p.data;if(I){"touched"in R&&(o.touched=R.touched),"validating"in R&&!("originRCField"in R)&&(o.validatePromise=R.validating?Promise.resolve([]):null),"errors"in R&&(o.errors=R.errors||eo),"warnings"in R&&(o.warnings=R.warnings||eo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in R&&Ja(m,$,!0)){o.reRender();return}if(h&&!$.length&&Bm(h,f,b,w,O,p)){o.reRender();return}break}case"dependenciesUpdate":{var P=x.map(Bn);if(P.some(function(T){return Ja(p.relatedFields,T)})){o.reRender();return}break}default:if(I||(!x.length||$.length||h)&&Bm(h,f,b,w,O,p)){o.reRender();return}break}h===!0&&o.reRender()}),U(Ft(o),"validateRules",function(f){var m=o.getNamePath(),p=o.getValue(),g=f||{},h=g.triggerName,y=g.validateOnly,x=y===void 0?!1:y,S=Promise.resolve().then(ia(Sr().mark(function b(){var $,w,O,I,R,P,T;return Sr().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(o.mounted){M.next=2;break}return M.abrupt("return",[]);case 2:if($=o.props,w=$.validateFirst,O=w===void 0?!1:w,I=$.messageVariables,R=$.validateDebounce,P=o.getRules(),h&&(P=P.filter(function(_){return _}).filter(function(_){var L=_.validateTrigger;if(!L)return!0;var z=Up(L);return z.includes(h)})),!(R&&h)){M.next=10;break}return M.next=8,new Promise(function(_){setTimeout(_,R)});case 8:if(o.validatePromise===S){M.next=10;break}return M.abrupt("return",[]);case 10:return T=_N(m,p,P,f,O,I),T.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eo;if(o.validatePromise===S){var L;o.validatePromise=null;var z=[],A=[];(L=_.forEach)===null||L===void 0||L.call(_,function(B){var G=B.rule.warningOnly,V=B.errors,H=V===void 0?eo:V;G?A.push.apply(A,Ae(H)):z.push.apply(z,Ae(H))}),o.errors=z,o.warnings=A,o.triggerMetaEvent(),o.reRender()}}),M.abrupt("return",T);case 13:case"end":return M.stop()}},b)})));return x||(o.validatePromise=S,o.dirty=!0,o.errors=eo,o.warnings=eo,o.triggerMetaEvent(),o.reRender()),S}),U(Ft(o),"isFieldValidating",function(){return!!o.validatePromise}),U(Ft(o),"isFieldTouched",function(){return o.touched}),U(Ft(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var f=o.props.fieldContext,m=f.getInternalHooks(Qi),p=m.getInitialValue;return p(o.getNamePath())!==void 0}),U(Ft(o),"getErrors",function(){return o.errors}),U(Ft(o),"getWarnings",function(){return o.warnings}),U(Ft(o),"isListField",function(){return o.props.isListField}),U(Ft(o),"isList",function(){return o.props.isList}),U(Ft(o),"isPreserve",function(){return o.props.preserve}),U(Ft(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var f={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return f}),U(Ft(o),"getOnlyChild",function(f){if(typeof f=="function"){var m=o.getMeta();return X(X({},o.getOnlyChild(f(o.getControlled(),m,o.props.fieldContext))),{},{isFunction:!0})}var p=Er(f);return p.length!==1||!c.isValidElement(p[0])?{child:p,isFunction:!1}:{child:p[0],isFunction:!1}}),U(Ft(o),"getValue",function(f){var m=o.props.fieldContext.getFieldsValue,p=o.getNamePath();return Po(f||m(!0),p)}),U(Ft(o),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o.props,p=m.name,g=m.trigger,h=m.validateTrigger,y=m.getValueFromEvent,x=m.normalize,S=m.valuePropName,b=m.getValueProps,$=m.fieldContext,w=h!==void 0?h:$.validateTrigger,O=o.getNamePath(),I=$.getInternalHooks,R=$.getFieldsValue,P=I(Qi),T=P.dispatch,N=o.getValue(),M=b||function(B){return U({},S,B)},_=f[g],L=p!==void 0?M(N):{},z=X(X({},f),L);z[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var B,G=arguments.length,V=new Array(G),H=0;H<G;H++)V[H]=arguments[H];y?B=y.apply(void 0,V):B=LN.apply(void 0,[S].concat(V)),x&&(B=x(B,N,R(!0))),B!==N&&T({type:"updateValue",namePath:O,value:B}),_&&_.apply(void 0,V)};var A=Up(w||[]);return A.forEach(function(B){var G=z[B];z[B]=function(){G&&G.apply(void 0,arguments);var V=o.props.rules;V&&V.length&&T({type:"validateField",namePath:O,triggerName:B})}}),z}),r.fieldContext){var l=r.fieldContext.getInternalHooks,s=l(Qi),u=s.initEntityValue;u(Ft(o))}return o}return Un(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.shouldUpdate,s=o.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,f=u(Qi),m=f.registerField;this.cancelRegisterFunc=m(this)}l===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,l=this.props.children,s=this.getOnlyChild(l),u=s.child,f=s.isFunction,m;return f?m=u:c.isValidElement(u)?m=c.cloneElement(u,this.getControlled(u.props)):(sr(!u,"`children` of Field is not validate ReactElement."),m=u),c.createElement(c.Fragment,{key:o},m)}}]),n})(c.Component);U(Ug,"contextType",ul);U(Ug,"defaultProps",{trigger:"onChange",valuePropName:"value"});function lC(e){var t,n=e.name,r=Nt(e,BN),o=c.useContext(ul),l=c.useContext(zu),s=n!==void 0?Bn(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,f="keep";return u||(f="_".concat((s||[]).join("_"))),c.createElement(Ug,Ee({key:f,name:s,isListField:u},r,{fieldContext:o}))}function AN(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,l=e.validateTrigger,s=e.isListField,u=c.useContext(ul),f=c.useContext(zu),m=c.useRef({keys:[],id:0}),p=m.current,g=c.useMemo(function(){var S=Bn(u.prefixName)||[];return[].concat(Ae(S),Ae(Bn(t)))},[u.prefixName,t]),h=c.useMemo(function(){return X(X({},u),{},{prefixName:g})},[u,g]),y=c.useMemo(function(){return{getKey:function(b){var $=g.length,w=b[$];return[p.keys[w],b.slice($+1)]}}},[g]);if(typeof r!="function")return sr(!1,"Form.List only accepts function as children."),null;var x=function(b,$,w){var O=w.source;return O==="internal"?!1:b!==$};return c.createElement(zu.Provider,{value:y},c.createElement(ul.Provider,{value:h},c.createElement(lC,{name:[],shouldUpdate:x,rules:o,validateTrigger:l,initialValue:n,isList:!0,isListField:s??!!f},function(S,b){var $=S.value,w=$===void 0?[]:$,O=S.onChange,I=u.getFieldValue,R=function(){var M=I(g||[]);return M||[]},P={add:function(M,_){var L=R();_>=0&&_<=L.length?(p.keys=[].concat(Ae(p.keys.slice(0,_)),[p.id],Ae(p.keys.slice(_))),O([].concat(Ae(L.slice(0,_)),[M],Ae(L.slice(_))))):(p.keys=[].concat(Ae(p.keys),[p.id]),O([].concat(Ae(L),[M]))),p.id+=1},remove:function(M){var _=R(),L=new Set(Array.isArray(M)?M:[M]);L.size<=0||(p.keys=p.keys.filter(function(z,A){return!L.has(A)}),O(_.filter(function(z,A){return!L.has(A)})))},move:function(M,_){if(M!==_){var L=R();M<0||M>=L.length||_<0||_>=L.length||(p.keys=bb(p.keys,M,_),O(bb(L,M,_)))}}},T=w||[];return Array.isArray(T)||(T=[]),r(T.map(function(N,M){var _=p.keys[M];return _===void 0&&(p.keys[M]=p.id,_=p.keys[M],p.id+=1),{name:M,key:_,isListField:!0}}),P,b)})))}function DN(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,l){e.forEach(function(s,u){s.catch(function(f){return t=!0,f}).then(function(f){n-=1,r[u]=f,!(n>0)&&(t&&l(r),o(r))})})}):Promise.resolve([])}var sC="__@field_split__";function Am(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(sC)}var za=(function(){function e(){Wn(this,e),U(this,"kvs",new Map)}return Un(e,[{key:"set",value:function(n,r){this.kvs.set(Am(n),r)}},{key:"get",value:function(n){return this.kvs.get(Am(n))}},{key:"update",value:function(n,r){var o=this.get(n),l=r(o);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Am(n))}},{key:"map",value:function(n){return Ae(this.kvs.entries()).map(function(r){var o=ae(r,2),l=o[0],s=o[1],u=l.split(sC);return n({key:u.map(function(f){var m=f.match(/^([^:]*):(.*)$/),p=ae(m,3),g=p[1],h=p[2];return g==="number"?Number(h):h}),value:s})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,l=r.value;return n[o.join(".")]=l,null}),n}}]),e})(),FN=["name"],HN=Un(function e(t){var n=this;Wn(this,e),U(this,"formHooked",!1),U(this,"forceRootUpdate",void 0),U(this,"subscribable",!0),U(this,"store",{}),U(this,"fieldEntities",[]),U(this,"initialValues",{}),U(this,"callbacks",{}),U(this,"validateMessages",null),U(this,"preserve",null),U(this,"lastValidatePromise",null),U(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}}),U(this,"getInternalHooks",function(r){return r===Qi?(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}):(sr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),U(this,"useSubscribe",function(r){n.subscribable=r}),U(this,"prevWithoutPreserves",null),U(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var l,s=Ka(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var f=u.key;s=go(s,f,Po(r,f))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),U(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new za;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||o.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),U(this,"getInitialValue",function(r){var o=Po(n.initialValues,r);return r.length?Ka(o):o}),U(this,"setCallbacks",function(r){n.callbacks=r}),U(this,"setValidateMessages",function(r){n.validateMessages=r}),U(this,"setPreserve",function(r){n.preserve=r}),U(this,"watchList",[]),U(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),U(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(s){s(o,l,r)})}}),U(this,"timeoutId",null),U(this,"warningUnhooked",function(){}),U(this,"updateStore",function(r){n.store=r}),U(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}),U(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new za;return n.getFieldEntities(r).forEach(function(l){var s=l.getNamePath();o.set(s,l)}),o}),U(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(l){var s=Bn(l);return o.get(s)||{INVALIDATE_NAME_PATH:Bn(l)}})}),U(this,"getFieldsValue",function(r,o){n.warningUnhooked();var l,s,u;if(r===!0||Array.isArray(r)?(l=r,s=o):r&&mt(r)==="object"&&(u=r.strict,s=r.filter),l===!0&&!s)return n.store;var f=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),m=[];return f.forEach(function(p){var g,h,y="INVALIDATE_NAME_PATH"in p?p.INVALIDATE_NAME_PATH:p.getNamePath();if(u){var x,S;if((x=(S=p).isList)!==null&&x!==void 0&&x.call(S))return}else if(!l&&(g=(h=p).isListField)!==null&&g!==void 0&&g.call(h))return;if(!s)m.push(y);else{var b="getMeta"in p?p.getMeta():null;s(b)&&m.push(y)}}),yb(n.store,m.map(Bn))}),U(this,"getFieldValue",function(r){n.warningUnhooked();var o=Bn(r);return Po(n.store,o)}),U(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(l,s){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:Bn(r[s]),errors:[],warnings:[]}})}),U(this,"getFieldError",function(r){n.warningUnhooked();var o=Bn(r),l=n.getFieldsError([o])[0];return l.errors}),U(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Bn(r),l=n.getFieldsError([o])[0];return l.warnings}),U(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var s=o[0],u=o[1],f,m=!1;o.length===0?f=null:o.length===1?Array.isArray(s)?(f=s.map(Bn),m=!1):(f=null,m=s):(f=s.map(Bn),m=u);var p=n.getFieldEntities(!0),g=function(b){return b.isFieldTouched()};if(!f)return m?p.every(function(S){return g(S)||S.isList()}):p.some(g);var h=new za;f.forEach(function(S){h.set(S,[])}),p.forEach(function(S){var b=S.getNamePath();f.forEach(function($){$.every(function(w,O){return b[O]===w})&&h.update($,function(w){return[].concat(Ae(w),[S])})})});var y=function(b){return b.some(g)},x=h.map(function(S){var b=S.value;return b});return m?x.every(y):x.some(y)}),U(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),U(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(s){return s.isFieldValidating()});var l=r.map(Bn);return o.some(function(s){var u=s.getNamePath();return Ja(l,u)&&s.isFieldValidating()})}),U(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),U(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new za,l=n.getFieldEntities(!0);l.forEach(function(f){var m=f.props.initialValue,p=f.getNamePath();if(m!==void 0){var g=o.get(p)||new Set;g.add({entity:f,value:m}),o.set(p,g)}});var s=function(m){m.forEach(function(p){var g=p.props.initialValue;if(g!==void 0){var h=p.getNamePath(),y=n.getInitialValue(h);if(y!==void 0)sr(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var x=o.get(h);if(x&&x.size>1)sr(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(x){var S=n.getFieldValue(h),b=p.isListField();!b&&(!r.skipExist||S===void 0)&&n.updateStore(go(n.store,h,Ae(x)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(f){var m=o.get(f);if(m){var p;(p=u).push.apply(p,Ae(Ae(m).map(function(g){return g.entity})))}})):u=l,s(u)}),U(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ka(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Bn);l.forEach(function(s){var u=n.getInitialValue(s);n.updateStore(go(n.store,s,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(o,l,{type:"reset"}),n.notifyWatch(l)}),U(this,"setFields",function(r){n.warningUnhooked();var o=n.store,l=[];r.forEach(function(s){var u=s.name,f=Nt(s,FN),m=Bn(u);l.push(m),"value"in f&&n.updateStore(go(n.store,m,f.value)),n.notifyObservers(o,[m],{type:"setField",data:s})}),n.notifyWatch(l)}),U(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(l){var s=l.getNamePath(),u=l.getMeta(),f=X(X({},u),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return o}),U(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var l=r.getNamePath(),s=Po(n.store,l);s===void 0&&n.updateStore(go(n.store,l,o))}}),U(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),U(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!s||f.length>1)){var m=s?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==m&&n.fieldEntities.every(function(g){return!aC(g.getNamePath(),o)})){var p=n.store;n.updateStore(go(p,o,m,!0)),n.notifyObservers(p,[o],{type:"remove"}),n.triggerDependenciesUpdate(p,o)}}n.notifyWatch([o])}}),U(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,l=r.value;n.updateValue(o,l);break}case"validateField":{var s=r.namePath,u=r.triggerName;n.validateFields([s],{triggerName:u});break}}}),U(this,"notifyObservers",function(r,o,l){if(n.subscribable){var s=X(X({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var f=u.onStoreChange;f(r,o,s)})}else n.forceRootUpdate()}),U(this,"triggerDependenciesUpdate",function(r,o){var l=n.getDependencyChildrenFields(o);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[o].concat(Ae(l))}),l}),U(this,"updateValue",function(r,o){var l=Bn(r),s=n.store;n.updateStore(go(n.store,l,o)),n.notifyObservers(s,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(s,l),f=n.callbacks.onValuesChange;if(f){var m=yb(n.store,[l]);f(m,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Ae(u)))}),U(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var l=Ka(n.store,r);n.updateStore(l)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),U(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),U(this,"getDependencyChildrenFields",function(r){var o=new Set,l=[],s=new za;n.getFieldEntities().forEach(function(f){var m=f.props.dependencies;(m||[]).forEach(function(p){var g=Bn(p);s.update(g,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(f),h})})});var u=function f(m){var p=s.get(m)||new Set;p.forEach(function(g){if(!o.has(g)){o.add(g);var h=g.getNamePath();g.isFieldDirty()&&h.length&&(l.push(h),f(h))}})};return u(r),l}),U(this,"triggerOnFieldsChange",function(r,o){var l=n.callbacks.onFieldsChange;if(l){var s=n.getFields();if(o){var u=new za;o.forEach(function(m){var p=m.name,g=m.errors;u.set(p,g)}),s.forEach(function(m){m.errors=u.get(m.name)||m.errors})}var f=s.filter(function(m){var p=m.name;return Ja(r,p)});f.length&&l(f,s)}}),U(this,"validateFields",function(r,o){n.warningUnhooked();var l,s;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(l=r,s=o):s=r;var u=!!l,f=u?l.map(Bn):[],m=[],p=String(Date.now()),g=new Set,h=s||{},y=h.recursive,x=h.dirty;n.getFieldEntities(!0).forEach(function(w){if(u||f.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(x&&!w.isFieldDirty())){var O=w.getNamePath();if(g.add(O.join(p)),!u||Ja(f,O,y)){var I=w.validateRules(X({validateMessages:X(X({},iC),n.validateMessages)},s));m.push(I.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(R){var P,T=[],N=[];return(P=R.forEach)===null||P===void 0||P.call(R,function(M){var _=M.rule.warningOnly,L=M.errors;_?N.push.apply(N,Ae(L)):T.push.apply(T,Ae(L))}),T.length?Promise.reject({name:O,errors:T,warnings:N}):{name:O,errors:T,warnings:N}}))}}});var S=DN(m);n.lastValidatePromise=S,S.catch(function(w){return w}).then(function(w){var O=w.map(function(I){var R=I.name;return R});n.notifyObservers(n.store,O,{type:"validateFinish"}),n.triggerOnFieldsChange(O,w)});var b=S.then(function(){return n.lastValidatePromise===S?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function(w){var O=w.filter(function(I){return I&&I.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:O,outOfDate:n.lastValidatePromise!==S})});b.catch(function(w){return w});var $=f.filter(function(w){return g.has(w.join(p))});return n.triggerOnFieldsChange($),b}),U(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(l){console.error(l)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function cC(e){var t=c.useRef(),n=c.useState({}),r=ae(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){o({})},s=new HN(l);t.current=s.getForm()}return[t.current]}var eg=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),VN=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,l=t.children,s=c.useContext(eg),u=c.useRef({});return c.createElement(eg.Provider,{value:X(X({},s),{},{validateMessages:X(X({},s.validateMessages),n),triggerFormChange:function(m,p){r&&r(m,{changedFields:p,forms:u.current}),s.triggerFormChange(m,p)},triggerFormFinish:function(m,p){o&&o(m,{values:p,forms:u.current}),s.triggerFormFinish(m,p)},registerForm:function(m,p){m&&(u.current=X(X({},u.current),{},U({},m,p))),s.registerForm(m,p)},unregisterForm:function(m){var p=X({},u.current);delete p[m],u.current=p,s.unregisterForm(m)}})},l)},WN=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],UN=function(t,n){var r=t.name,o=t.initialValues,l=t.fields,s=t.form,u=t.preserve,f=t.children,m=t.component,p=m===void 0?"form":m,g=t.validateMessages,h=t.validateTrigger,y=h===void 0?"onChange":h,x=t.onValuesChange,S=t.onFieldsChange,b=t.onFinish,$=t.onFinishFailed,w=t.clearOnDestroy,O=Nt(t,WN),I=c.useRef(null),R=c.useContext(eg),P=cC(s),T=ae(P,1),N=T[0],M=N.getInternalHooks(Qi),_=M.useSubscribe,L=M.setInitialValues,z=M.setCallbacks,A=M.setValidateMessages,B=M.setPreserve,G=M.destroyForm;c.useImperativeHandle(n,function(){return X(X({},N),{},{nativeElement:I.current})}),c.useEffect(function(){return R.registerForm(r,N),function(){R.unregisterForm(r)}},[R,N,r]),A(X(X({},R.validateMessages),g)),z({onValuesChange:x,onFieldsChange:function(ne){if(R.triggerFormChange(r,ne),S){for(var ee=arguments.length,oe=new Array(ee>1?ee-1:0),fe=1;fe<ee;fe++)oe[fe-1]=arguments[fe];S.apply(void 0,[ne].concat(oe))}},onFinish:function(ne){R.triggerFormFinish(r,ne),b&&b(ne)},onFinishFailed:$}),B(u);var V=c.useRef(null);L(o,!V.current),V.current||(V.current=!0),c.useEffect(function(){return function(){return G(w)}},[]);var H,D=typeof f=="function";if(D){var Z=N.getFieldsValue(!0);H=f(Z,N)}else H=f;_(!D);var W=c.useRef();c.useEffect(function(){kN(W.current||[],l||[])||N.setFields(l||[]),W.current=l},[l,N]);var k=c.useMemo(function(){return X(X({},N),{},{validateTrigger:y})},[N,y]),F=c.createElement(zu.Provider,{value:null},c.createElement(ul.Provider,{value:k},H));return p===!1?F:c.createElement(p,Ee({},O,{ref:I,onSubmit:function(ne){ne.preventDefault(),ne.stopPropagation(),N.submit()},onReset:function(ne){var ee;ne.preventDefault(),N.resetFields(),(ee=O.onReset)===null||ee===void 0||ee.call(O,ne)}}),F)};function Sb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function GN(){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],l=o===void 0?{}:o,s=eN(l)?{form:l}:l,u=s.form,f=c.useState(),m=ae(f,2),p=m[0],g=m[1],h=c.useMemo(function(){return Sb(p)},[p]),y=c.useRef(h);y.current=h;var x=c.useContext(ul),S=u||x,b=S&&S._init,$=Bn(r),w=c.useRef($);return w.current=$,c.useEffect(function(){if(b){var O=S.getFieldsValue,I=S.getInternalHooks,R=I(Qi),P=R.registerWatch,T=function(L,z){var A=s.preserve?z:L;return typeof r=="function"?r(A):Po(A,w.current)},N=P(function(_,L){var z=T(_,L),A=Sb(z);y.current!==A&&(y.current=A,g(z))}),M=T(O(),O(!0));return p!==M&&g(M),N}},[b]),p}var qN=c.forwardRef(UN),Bs=qN;Bs.FormProvider=VN;Bs.Field=lC;Bs.List=AN;Bs.useForm=cC;Bs.useWatch=GN;const ku=c.createContext({}),KN=({children:e,status:t,override:n})=>{const r=c.useContext(ku),o=c.useMemo(()=>{const l=Object.assign({},r);return n&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,n,r]);return c.createElement(ku.Provider,{value:o},e)},XN=c.createContext(void 0),gd=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=Y.createElement(KN,{override:!0,status:!0},o)),t&&(o=Y.createElement(tT,null,o)),o};var QN=function(t){if(br()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1};function xb(e,t){return QN(e)}const YN=()=>br()&&window.document.documentElement,vd=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:l}=e,s=re({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),u=re({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),f=c.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return c.createElement("span",{className:re(t,s,u,n),style:Object.assign(Object.assign({},f),r)})},ZN=new At("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),hd=e=>({height:e,lineHeight:J(e)}),el=e=>Object.assign({width:e},hd(e)),JN=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ZN,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Dm=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},hd(e)),e_=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},el(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},el(o)),[`${t}${t}-sm`]:Object.assign({},el(l))}},t_=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:l,gradientFromColor:s,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},Dm(t,u)),[`${r}-lg`]:Object.assign({},Dm(o,u)),[`${r}-sm`]:Object.assign({},Dm(l,u))}},Cb=e=>Object.assign({width:e},hd(e)),n_=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:l}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Cb(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Cb(n)),{maxWidth:l(n).mul(4).equal(),maxHeight:l(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Fm=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Hm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},hd(e)),r_=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l,gradientFromColor:s,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},Hm(r,u))},Fm(e,r,n)),{[`${n}-lg`]:Object.assign({},Hm(o,u))}),Fm(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Hm(l,u))}),Fm(e,l,`${n}-sm`))},o_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:l,skeletonInputCls:s,skeletonImageCls:u,controlHeight:f,controlHeightLG:m,controlHeightSM:p,gradientFromColor:g,padding:h,marginSM:y,borderRadius:x,titleHeight:S,blockRadius:b,paragraphLiHeight:$,controlHeightXS:w,paragraphMarginTop:O}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},el(f)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},el(m)),[`${n}-sm`]:Object.assign({},el(p))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,background:g,borderRadius:b,[`+ ${o}`]:{marginBlockStart:p}},[o]:{padding:0,"> li":{width:"100%",height:$,listStyle:"none",background:g,borderRadius:b,"+ li":{marginBlockStart:w}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},r_(e)),e_(e)),t_(e)),n_(e)),[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
212
|
-
${r},
|
|
213
|
-
${o} > li,
|
|
214
|
-
${n},
|
|
215
|
-
${l},
|
|
216
|
-
${s},
|
|
217
|
-
${u}
|
|
218
|
-
`]:Object.assign({},JN(e))}}},i_=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},vl=mn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Qt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return o_(r)},i_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),a_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:l="circle",size:s="default"}=e,{getPrefixCls:u}=c.useContext(Rt),f=u("skeleton",t),[m,p,g]=vl(f),h=Vn(e,["prefixCls","className"]),y=re(f,`${f}-element`,{[`${f}-active`]:o},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(vd,Object.assign({prefixCls:`${f}-avatar`,shape:l,size:s},h))))},l_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l=!1,size:s="default"}=e,{getPrefixCls:u}=c.useContext(Rt),f=u("skeleton",t),[m,p,g]=vl(f),h=Vn(e,["prefixCls"]),y=re(f,`${f}-element`,{[`${f}-active`]:o,[`${f}-block`]:l},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(vd,Object.assign({prefixCls:`${f}-button`,size:s},h))))},s_="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",c_=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l}=e,{getPrefixCls:s}=c.useContext(Rt),u=s("skeleton",t),[f,m,p]=vl(u),g=re(u,`${u}-element`,{[`${u}-active`]:l},n,r,m,p);return f(c.createElement("div",{className:g},c.createElement("div",{className:re(`${u}-image`,n),style:o},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:s_,className:`${u}-image-path`})))))},u_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l,size:s="default"}=e,{getPrefixCls:u}=c.useContext(Rt),f=u("skeleton",t),[m,p,g]=vl(f),h=Vn(e,["prefixCls"]),y=re(f,`${f}-element`,{[`${f}-active`]:o,[`${f}-block`]:l},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(vd,Object.assign({prefixCls:`${f}-input`,size:s},h))))},d_=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l,children:s}=e,{getPrefixCls:u}=c.useContext(Rt),f=u("skeleton",t),[m,p,g]=vl(f),h=re(f,`${f}-element`,{[`${f}-active`]:l},p,n,r,g);return m(c.createElement("div",{className:h},c.createElement("div",{className:re(`${f}-image`,n),style:o},s)))},f_=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},m_=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,l=Array.from({length:o}).map((s,u)=>c.createElement("li",{key:u,style:{width:f_(u,e)}}));return c.createElement("ul",{className:re(t,n),style:r},l)},p_=({prefixCls:e,className:t,width:n,style:r})=>c.createElement("h3",{className:re(e,t),style:Object.assign({width:n},r)});function Vm(e){return e&&typeof e=="object"?e:{}}function g_(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function v_(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function h_(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const hl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:l,children:s,avatar:u=!1,title:f=!0,paragraph:m=!0,active:p,round:g}=e,{getPrefixCls:h,direction:y,className:x,style:S}=Ir("skeleton"),b=h("skeleton",t),[$,w,O]=vl(b);if(n||!("loading"in e)){const I=!!u,R=!!f,P=!!m;let T;if(I){const _=Object.assign(Object.assign({prefixCls:`${b}-avatar`},g_(R,P)),Vm(u));T=c.createElement("div",{className:`${b}-header`},c.createElement(vd,Object.assign({},_)))}let N;if(R||P){let _;if(R){const z=Object.assign(Object.assign({prefixCls:`${b}-title`},v_(I,P)),Vm(f));_=c.createElement(p_,Object.assign({},z))}let L;if(P){const z=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},h_(I,R)),Vm(m));L=c.createElement(m_,Object.assign({},z))}N=c.createElement("div",{className:`${b}-content`},_,L)}const M=re(b,{[`${b}-with-avatar`]:I,[`${b}-active`]:p,[`${b}-rtl`]:y==="rtl",[`${b}-round`]:g},x,r,o,w,O);return $(c.createElement("div",{className:M,style:Object.assign(Object.assign({},S),l)},T,N))}return s??null};hl.Button=l_;hl.Avatar=a_;hl.Input=u_;hl.Image=c_;hl.Node=d_;function wb(){}const y_=c.createContext({add:wb,remove:wb});function b_(e){const t=c.useContext(y_),n=c.useRef(null);return _n(o=>{if(o){const l=e?o.querySelector(e):o;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const $b=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=c.useContext(ks);return Y.createElement(zo,Object.assign({onClick:n},e),t)},Eb=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=c.useContext(ks);return Y.createElement(zo,Object.assign({},Vx(n),{loading:e,onClick:o},t),r)};function uC(e,t){return Y.createElement("span",{className:`${e}-close-x`},t||Y.createElement(gl,{className:`${e}-close-icon`}))}const dC=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:l,onCancel:s,okButtonProps:u,cancelButtonProps:f,footer:m}=e,[p]=ti("Modal",V1()),g=t||(p==null?void 0:p.okText),h=r||(p==null?void 0:p.cancelText),y=Y.useMemo(()=>({confirmLoading:o,okButtonProps:u,cancelButtonProps:f,okTextLocale:g,cancelTextLocale:h,okType:n,onOk:l,onCancel:s}),[o,u,f,g,h,n,l,s]);let x;return typeof m=="function"||typeof m>"u"?(x=Y.createElement(Y.Fragment,null,Y.createElement($b,null),Y.createElement(Eb,null)),typeof m=="function"&&(x=m(x,{OkBtn:Eb,CancelBtn:$b})),x=Y.createElement(Zx,{value:y},x)):x=m,Y.createElement(Q1,{disabled:!1},x)},S_=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"}}}},x_=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},C_=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,l={};for(let s=o;s>=0;s--)s===0?(l[`${r}${t}-${s}`]={display:"none"},l[`${r}-push-${s}`]={insetInlineStart:"auto"},l[`${r}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${s}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${s}`]={marginInlineStart:0},l[`${r}${t}-order-${s}`]={order:0}):(l[`${r}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/o*100}%`,maxWidth:`${s/o*100}%`}],l[`${r}${t}-push-${s}`]={insetInlineStart:`${s/o*100}%`},l[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/o*100}%`},l[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/o*100}%`},l[`${r}${t}-order-${s}`]={order:s});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},tg=(e,t)=>C_(e,t),w_=(e,t,n)=>({[`@media (min-width: ${J(t)})`]:Object.assign({},tg(e,n))}),$_=()=>({}),E_=()=>({}),O_=mn("Grid",S_,$_),fC=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),I_=mn("Grid",e=>{const t=Qt(e,{gridColumns:24}),n=fC(t);return delete n.xs,[x_(t),tg(t,""),tg(t,"-xs"),Object.keys(n).map(r=>w_(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},E_);function Ob(e){return{position:e,inset:0}}const R_=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Ob("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Ob("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:TT(e)}]},P_=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${J(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},An(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${J(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:J(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},No(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${J(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
219
|
-
${t}-body,
|
|
220
|
-
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},T_=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},M_=e=>{const{componentCls:t}=e,n=fC(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,l=Object.keys(r).map(s=>({[`@media (min-width: ${J(r[s])})`]:{width:`var(${o}${s}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ae(Object.keys(n).map((s,u)=>{const f=Object.keys(n)[u-1];return f?{[`${o}${s}-width`]:`var(${o}${f}-width)`}:null})),[{width:`var(${o}xs-width)`}],Ae(l))}}},mC=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Qt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},pC=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${J(e.paddingMD)} ${J(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${J(e.padding)} ${J(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${J(e.paddingXS)} ${J(e.padding)}`:0,footerBorderTop:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${J(e.padding*2)} ${J(e.padding*2)} ${J(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),gC=mn("Modal",e=>{const t=mC(e);return[P_(t),T_(t),R_(t),zs(t,"zoom"),M_(t)]},pC,{unitless:{titleLineHeight:!0}});var N_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ng;const __=e=>{ng={x:e.pageX,y:e.pageY},setTimeout(()=>{ng=null},100)};YN()&&document.documentElement.addEventListener("click",__,!0);const vC=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:l,centered:s,getContainer:u,focusTriggerAfterClose:f=!0,style:m,visible:p,width:g=520,footer:h,classNames:y,styles:x,children:S,loading:b,confirmLoading:$,zIndex:w,mousePosition:O,onOk:I,onCancel:R,destroyOnHidden:P,destroyOnClose:T,panelRef:N=null,modalRender:M}=e,_=N_(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:L,getPrefixCls:z,direction:A,modal:B}=c.useContext(Rt),G=xe=>{$||R==null||R(xe)},V=xe=>{I==null||I(xe)},H=z("modal",t),D=z(),Z=ni(H),[W,k,F]=gC(H,Z),Q=re(l,{[`${H}-centered`]:s??(B==null?void 0:B.centered),[`${H}-wrap-rtl`]:A==="rtl"}),ne=h!==null&&!b?c.createElement(dC,Object.assign({},e,{onOk:V,onCancel:G})):null,[ee,oe,fe,me]=Tx(Mu(e),Mu(B),{closable:!0,closeIcon:c.createElement(gl,{className:`${H}-close-icon`}),closeIconRender:xe=>uC(H,xe)}),ue=M?xe=>c.createElement("div",{className:`${H}-render`},M(xe)):void 0,Se=`.${H}-${M?"render":"content"}`,pe=b_(Se),se=ko(N,pe),[ye,ve]=Ns("Modal",w),[ce,le]=c.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),be=c.useMemo(()=>{const xe={};return le&&Object.keys(le).forEach($e=>{const Ne=le[$e];Ne!==void 0&&(xe[`--${H}-${$e}-width`]=typeof Ne=="number"?`${Ne}px`:Ne)}),xe},[H,le]);return W(c.createElement(gd,{form:!0,space:!0},c.createElement(od.Provider,{value:ve},c.createElement(rC,Object.assign({width:ce},_,{zIndex:ye,getContainer:u===void 0?L:u,prefixCls:H,rootClassName:re(k,r,F,Z),footer:ne,visible:o??p,mousePosition:O??ng,onClose:G,closable:ee&&Object.assign({disabled:fe,closeIcon:oe},me),closeIcon:oe,focusTriggerAfterClose:f,transitionName:Mi(D,"zoom",e.transitionName),maskTransitionName:Mi(D,"fade",e.maskTransitionName),className:re(k,n,B==null?void 0:B.className),style:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),m),be),classNames:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.classNames),y),{wrapper:re(Q,y==null?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},B==null?void 0:B.styles),x),panelRef:se,destroyOnClose:P??T,modalRender:ue}),b?c.createElement(hl,{active:!0,title:!1,paragraph:{rows:4},className:`${H}-body-skeleton`}):S))))},j_=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:l,lineHeight:s,modalTitleHeight:u,fontHeight:f,confirmBodyPadding:m}=e,p=`${t}-confirm`;return{[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:Object.assign({},Ru()),[`&${t} ${t}-body`]:{padding:m},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(o).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${J(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${J(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:l,lineHeight:s},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
|
|
221
|
-
${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},z_=Ms(["Modal","confirm"],e=>{const t=mC(e);return j_(t)},pC,{order:-1e3});var k_=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 hC=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:l,type:s,okCancel:u,footer:f,locale:m}=e,p=k_(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(s){case"info":g=c.createElement(Ex,null);break;case"success":g=c.createElement(wx,null);break;case"error":g=c.createElement(nd,null);break;default:g=c.createElement($x,null)}const h=u??s==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[x]=ti("Modal"),S=m||x,b=r||(h?S==null?void 0:S.okText:S==null?void 0:S.justOkText),$=o||(S==null?void 0:S.cancelText),w=c.useMemo(()=>Object.assign({autoFocusButton:y,cancelTextLocale:$,okTextLocale:b,mergedOkCancel:h},p),[y,$,b,h,p]),O=c.createElement(c.Fragment,null,c.createElement(rb,null),c.createElement(ob,null)),I=e.title!==void 0&&e.title!==null,R=`${l}-body`;return c.createElement("div",{className:`${l}-body-wrapper`},c.createElement("div",{className:re(R,{[`${R}-has-title`]:I})},g,c.createElement("div",{className:`${l}-paragraph`},I&&c.createElement("span",{className:`${l}-title`},e.title),c.createElement("div",{className:`${l}-content`},e.content))),f===void 0||typeof f=="function"?c.createElement(Zx,{value:w},c.createElement("div",{className:`${l}-btns`},typeof f=="function"?f(O,{OkBtn:ob,CancelBtn:rb}):O)):f,c.createElement(z_,{prefixCls:t}))},L_=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:l,wrapClassName:s,rootPrefixCls:u,bodyStyle:f,closable:m=!1,onConfirm:p,styles:g,title:h}=e,y=`${l}-confirm`,x=e.width||416,S=e.style||{},b=e.mask===void 0?!0:e.mask,$=e.maskClosable===void 0?!1:e.maskClosable,w=re(y,`${y}-${e.type}`,{[`${y}-rtl`]:o==="rtl"},e.className),[,O]=Rr(),I=c.useMemo(()=>n!==void 0?n:O.zIndexPopupBase+Mx,[n,O]);return c.createElement(vC,Object.assign({},e,{className:w,wrapClassName:re({[`${y}-centered`]:!!e.centered},s),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},title:h,footer:null,transitionName:Mi(u||"","zoom",e.transitionName),maskTransitionName:Mi(u||"","fade",e.maskTransitionName),mask:b,maskClosable:$,style:S,styles:Object.assign({body:f,mask:r},g),width:x,zIndex:I,closable:m}),c.createElement(hC,Object.assign({},e,{confirmPrefixCls:y})))},yC=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return c.createElement(Lo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},c.createElement(L_,Object.assign({},e)))},Yi=[];let bC="";function SC(){return bC}const B_=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:l}=e,s=V1(),u=c.useContext(Rt),f=SC()||u.getPrefixCls(),m=r||`${f}-modal`;let p=o;return p===!1&&(p=void 0),Y.createElement(yC,Object.assign({},e,{rootPrefixCls:f,prefixCls:m,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:l??u.direction,locale:(n=(t=u.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:s,getContainer:p}))};function As(e){const t=yx(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:f,open:!0}),o,l;function s(...p){var g;if(p.some(x=>x==null?void 0:x.triggerCancel)){var y;(g=e.onCancel)===null||g===void 0||(y=g).call.apply(y,[e,()=>{}].concat(Ae(p.slice(1))))}for(let x=0;x<Yi.length;x++)if(Yi[x]===f){Yi.splice(x,1);break}l()}const u=p=>{clearTimeout(o),o=setTimeout(()=>{const g=t.getPrefixCls(void 0,SC()),h=t.getIconPrefixCls(),y=t.getTheme(),x=Y.createElement(B_,Object.assign({},p));l=zg()(Y.createElement(Lo,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(x):x),n)})};function f(...p){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,p)}}),r.visible&&delete r.visible,u(r)}function m(p){typeof p=="function"?r=p(r):r=Object.assign(Object.assign({},r),p),u(r)}return u(r),Yi.push(f),{destroy:f,update:m}}function xC(e){return Object.assign(Object.assign({},e),{type:"warning"})}function CC(e){return Object.assign(Object.assign({},e),{type:"info"})}function wC(e){return Object.assign(Object.assign({},e),{type:"success"})}function $C(e){return Object.assign(Object.assign({},e),{type:"error"})}function EC(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function A_({rootPrefixCls:e}){bC=e}var D_=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 F_=(e,t)=>{var n,{afterClose:r,config:o}=e,l=D_(e,["afterClose","config"]);const[s,u]=c.useState(!0),[f,m]=c.useState(o),{direction:p,getPrefixCls:g}=c.useContext(Rt),h=g("modal"),y=g(),x=()=>{var w;r(),(w=f.afterClose)===null||w===void 0||w.call(f)},S=(...w)=>{var O;if(u(!1),w.some(P=>P==null?void 0:P.triggerCancel)){var R;(O=f.onCancel)===null||O===void 0||(R=O).call.apply(R,[f,()=>{}].concat(Ae(w.slice(1))))}};c.useImperativeHandle(t,()=>({destroy:S,update:w=>{m(O=>{const I=typeof w=="function"?w(O):w;return Object.assign(Object.assign({},O),I)})}}));const b=(n=f.okCancel)!==null&&n!==void 0?n:f.type==="confirm",[$]=ti("Modal",Pi.Modal);return c.createElement(yC,Object.assign({prefixCls:h,rootPrefixCls:y},f,{close:S,open:s,afterClose:x,okText:f.okText||(b?$==null?void 0:$.okText:$==null?void 0:$.justOkText),direction:f.direction||p,cancelText:f.cancelText||($==null?void 0:$.cancelText)},l))},H_=c.forwardRef(F_);let Ib=0;const V_=c.memo(c.forwardRef((e,t)=>{const[n,r]=gP();return c.useImperativeHandle(t,()=>({patchElement:r}),[r]),c.createElement(c.Fragment,null,n)}));function W_(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Ae(t).forEach(s=>{s()}),n([]))},[t]);const r=c.useCallback(l=>function(u){var f;Ib+=1;const m=c.createRef();let p;const g=new Promise(b=>{p=b});let h=!1,y;const x=c.createElement(H_,{key:`modal-${Ib}`,config:l(u),ref:m,afterClose:()=>{y==null||y()},isSilent:()=>h,onConfirm:b=>{p(b)}});return y=(f=e.current)===null||f===void 0?void 0:f.patchElement(x),y&&Yi.push(y),{destroy:()=>{function b(){var $;($=m.current)===null||$===void 0||$.destroy()}m.current?b():n($=>[].concat(Ae($),[b]))},update:b=>{function $(){var w;(w=m.current)===null||w===void 0||w.update(b)}m.current?$():n(w=>[].concat(Ae(w),[$]))},then:b=>(h=!0,g.then(b))}},[]);return[c.useMemo(()=>({info:r(CC),success:r(wC),error:r($C),warning:r(xC),confirm:r(EC)}),[r]),c.createElement(V_,{key:"modal-holder",ref:e})]}const U_=Y.createContext({});function OC(e){return t=>c.createElement(Lo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const IC=(e,t,n,r,o)=>OC(s=>{const{prefixCls:u,style:f}=s,m=c.useRef(null),[p,g]=c.useState(0),[h,y]=c.useState(0),[x,S]=Hn(!1,{value:s.open}),{getPrefixCls:b}=c.useContext(Rt),$=b(r||"select",u);c.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const I=new ResizeObserver(P=>{const T=P[0].target;g(T.offsetHeight+8),y(T.offsetWidth)}),R=setInterval(()=>{var P;const T=o?`.${o($)}`:`.${$}-dropdown`,N=(P=m.current)===null||P===void 0?void 0:P.querySelector(T);N&&(clearInterval(R),I.observe(N))},10);return()=>{clearInterval(R),I.disconnect()}}},[$]);let w=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},f),{margin:0}),open:x,visible:x,getPopupContainer:()=>m.current});t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const O={paddingBottom:p,position:"relative",minWidth:h};return c.createElement("div",{ref:m,style:O},c.createElement(e,Object.assign({},w)))}),Gg=(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 yd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,l=t.children,s=t.onMouseDown,u=t.onClick,f=typeof r=="function"?r(o):r;return c.createElement("span",{className:n,onMouseDown:function(p){p.preventDefault(),s==null||s(p)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},f!==void 0?f:c.createElement("span",{className:re(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},l))},G_=function(t,n,r,o,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,m=Y.useMemo(function(){if(mt(o)==="object")return o.clearIcon;if(l)return l},[o,l]),p=Y.useMemo(function(){return!!(!s&&o&&(r.length||u)&&!(f==="combobox"&&u===""))},[o,s,r.length,u,f]);return{allowClear:p,clearIcon:Y.createElement(yd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},RC=c.createContext(null);function q_(){return c.useContext(RC)}function K_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=ae(t,2),r=n[0],o=n[1],l=c.useRef(null),s=function(){window.clearTimeout(l.current)};c.useEffect(function(){return s},[]);var u=function(m,p){s(),l.current=window.setTimeout(function(){o(m),p&&p()},e)};return[r,u,s]}function PC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.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 X_(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function l(s){var u;if(!((u=o.current)!==null&&u!==void 0&&u.customizedTrigger)){var f=s.target;f.shadowRoot&&s.composed&&(f=s.composedPath()[0]||f),o.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(f)&&m!==f})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function Q_(e){return e&&![Ue.ESC,Ue.SHIFT,Ue.BACKSPACE,Ue.TAB,Ue.WIN_KEY,Ue.ALT,Ue.META,Ue.WIN_KEY_RIGHT,Ue.CTRL,Ue.SEMICOLON,Ue.EQUALS,Ue.CAPS_LOCK,Ue.CONTEXT_MENU,Ue.F1,Ue.F2,Ue.F3,Ue.F4,Ue.F5,Ue.F6,Ue.F7,Ue.F8,Ue.F9,Ue.F10,Ue.F11,Ue.F12].includes(e)}var Y_=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ka=void 0;function Z_(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,l=e.renderItem,s=e.responsive,u=e.responsiveDisabled,f=e.registerSize,m=e.itemKey,p=e.className,g=e.style,h=e.children,y=e.display,x=e.order,S=e.component,b=S===void 0?"div":S,$=Nt(e,Y_),w=s&&!y;function O(N){f(m,N)}c.useEffect(function(){return function(){O(null)}},[]);var I=l&&o!==ka?l(o,{index:x}):h,R;r||(R={opacity:w?0:1,height:w?0:ka,overflowY:w?"hidden":ka,order:s?x:ka,pointerEvents:w?"none":ka,position:w?"absolute":ka});var P={};w&&(P["aria-hidden"]=!0);var T=c.createElement(b,Ee({className:re(!r&&n,p),style:X(X({},R),g)},P,$,{ref:t}),I);return s&&(T=c.createElement(oo,{onResize:function(M){var _=M.offsetWidth;O(_)},disabled:u},T)),T}var Ya=c.forwardRef(Z_);Ya.displayName="Item";function J_(e){if(typeof MessageChannel>"u")Sn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function e4(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],J_(function(){Ri.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function La(e,t){var n=c.useState(t),r=ae(n,2),o=r[0],l=r[1],s=_n(function(u){e(function(){l(u)})});return[o,s]}var Lu=Y.createContext(null),t4=["component"],n4=["className"],r4=["className"],o4=function(t,n){var r=c.useContext(Lu);if(!r){var o=t.component,l=o===void 0?"div":o,s=Nt(t,t4);return c.createElement(l,Ee({},s,{ref:n}))}var u=r.className,f=Nt(r,n4),m=t.className,p=Nt(t,r4);return c.createElement(Lu.Provider,{value:null},c.createElement(Ya,Ee({ref:n,className:re(u,m)},f,p)))},TC=c.forwardRef(o4);TC.displayName="RawItem";var i4=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],MC="responsive",NC="invalidate";function a4(e){return"+ ".concat(e.length," ...")}function l4(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,l=o===void 0?[]:o,s=e.renderItem,u=e.renderRawItem,f=e.itemKey,m=e.itemWidth,p=m===void 0?10:m,g=e.ssr,h=e.style,y=e.className,x=e.maxCount,S=e.renderRest,b=e.renderRawRest,$=e.prefix,w=e.suffix,O=e.component,I=O===void 0?"div":O,R=e.itemComponent,P=e.onVisibleChange,T=Nt(e,i4),N=g==="full",M=e4(),_=La(M,null),L=ae(_,2),z=L[0],A=L[1],B=z||0,G=La(M,new Map),V=ae(G,2),H=V[0],D=V[1],Z=La(M,0),W=ae(Z,2),k=W[0],F=W[1],Q=La(M,0),ne=ae(Q,2),ee=ne[0],oe=ne[1],fe=La(M,0),me=ae(fe,2),ue=me[0],Se=me[1],pe=La(M,0),se=ae(pe,2),ye=se[0],ve=se[1],ce=c.useState(null),le=ae(ce,2),be=le[0],xe=le[1],$e=c.useState(null),Ne=ae($e,2),Le=Ne[0],Pe=Ne[1],Be=c.useMemo(function(){return Le===null&&N?Number.MAX_SAFE_INTEGER:Le||0},[Le,z]),Oe=c.useState(!1),tt=ae(Oe,2),lt=tt[0],bt=tt[1],st="".concat(r,"-item"),Ge=Math.max(k,ee),it=x===MC,Ve=l.length&&it,dt=x===NC,Xe=Ve||typeof x=="number"&&l.length>x,_e=c.useMemo(function(){var we=l;return Ve?z===null&&N?we=l:we=l.slice(0,Math.min(l.length,B/p)):typeof x=="number"&&(we=l.slice(0,x)),we},[l,p,z,x,Ve]),Ye=c.useMemo(function(){return Ve?l.slice(Be+1):l.slice(_e.length)},[l,_e,Ve,Be]),Te=c.useCallback(function(we,Ce){var je;return typeof f=="function"?f(we):(je=f&&(we==null?void 0:we[f]))!==null&&je!==void 0?je:Ce},[f]),Fe=c.useCallback(s||function(we){return we},[s]);function wt(we,Ce,je){Le===we&&(Ce===void 0||Ce===be)||(Pe(we),je||(bt(we<l.length-1),P==null||P(we)),Ce!==void 0&&xe(Ce))}function pt(we,Ce){A(Ce.clientWidth)}function Ht(we,Ce){D(function(je){var Ke=new Map(je);return Ce===null?Ke.delete(we):Ke.set(we,Ce),Ke})}function Dt(we,Ce){oe(Ce),F(ee)}function on(we,Ce){Se(Ce)}function hn(we,Ce){ve(Ce)}function Wt(we){return H.get(Te(_e[we],we))}rn(function(){if(B&&typeof Ge=="number"&&_e){var we=ue+ye,Ce=_e.length,je=Ce-1;if(!Ce){wt(0,null);return}for(var Ke=0;Ke<Ce;Ke+=1){var Qe=Wt(Ke);if(N&&(Qe=Qe||0),Qe===void 0){wt(Ke-1,void 0,!0);break}if(we+=Qe,je===0&&we<=B||Ke===je-1&&we+Wt(je)<=B){wt(je,null);break}else if(we+Ge>B){wt(Ke-1,we-Qe-ye+ee);break}}w&&Wt(0)+ye>B&&xe(null)}},[B,H,ee,ue,ye,Te,_e]);var Mt=lt&&!!Ye.length,St={};be!==null&&Ve&&(St={position:"absolute",left:be,top:0});var Ut={prefixCls:st,responsive:Ve,component:R,invalidate:dt},Bt=u?function(we,Ce){var je=Te(we,Ce);return c.createElement(Lu.Provider,{key:je,value:X(X({},Ut),{},{order:Ce,item:we,itemKey:je,registerSize:Ht,display:Ce<=Be})},u(we,Ce))}:function(we,Ce){var je=Te(we,Ce);return c.createElement(Ya,Ee({},Ut,{order:Ce,key:je,item:we,renderItem:Fe,itemKey:je,registerSize:Ht,display:Ce<=Be}))},Ze={order:Mt?Be:Number.MAX_SAFE_INTEGER,className:"".concat(st,"-rest"),registerSize:Dt,display:Mt},yt=S||a4,at=b?c.createElement(Lu.Provider,{value:X(X({},Ut),Ze)},b(Ye)):c.createElement(Ya,Ee({},Ut,Ze),typeof yt=="function"?yt(Ye):yt),Ie=c.createElement(I,Ee({className:re(!dt&&r,y),style:h,ref:t},T),$&&c.createElement(Ya,Ee({},Ut,{responsive:it,responsiveDisabled:!Ve,order:-1,className:"".concat(st,"-prefix"),registerSize:on,display:!0}),$),_e.map(Bt),Xe?at:null,w&&c.createElement(Ya,Ee({},Ut,{responsive:it,responsiveDisabled:!Ve,order:Be,className:"".concat(st,"-suffix"),registerSize:hn,display:!0,style:St}),w));return it?c.createElement(oo,{onResize:pt,disabled:!Ve},Ie):Ie}var To=c.forwardRef(l4);To.displayName="Overflow";To.Item=TC;To.RESPONSIVE=MC;To.INVALIDATE=NC;function s4(e,t,n){var r=X(X({},e),t);return Object.keys(t).forEach(function(o){var l=t[o];typeof l=="function"&&(r[o]=function(){for(var s,u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];return l.apply(void 0,f),(s=e[o])===null||s===void 0?void 0:s.call.apply(s,[e].concat(f))})}),r}var c4=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],u4=function(t,n){var r=t.prefixCls,o=t.id,l=t.inputElement,s=t.autoFocus,u=t.autoComplete,f=t.editable,m=t.activeDescendantId,p=t.value,g=t.open,h=t.attrs,y=Nt(t,c4),x=l||c.createElement("input",null),S=x,b=S.ref,$=S.props;return"maxLength"in x.props,x=c.cloneElement(x,X(X(X({type:"search"},s4(y,$)),{},{id:o,ref:ko(n,b),autoComplete:u||"off",autoFocus:s,className:re("".concat(r,"-selection-search-input"),$==null?void 0:$.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":g?m:void 0},h),{},{value:f?p:"",readOnly:!f,unselectable:f?null:"on",style:X(X({},$.style),{},{opacity:f?null:0})})),x},_C=c.forwardRef(u4);function jC(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var d4=typeof window<"u"&&window.document&&window.document.documentElement,f4=d4;function m4(e){return e!=null}function p4(e){return!e&&e!==0}function Rb(e){return["string","number"].includes(mt(e))}function zC(e){var t=void 0;return e&&(Rb(e.title)?t=e.title.toString():Rb(e.label)&&(t=e.label.toString())),t}function g4(e,t){f4?c.useLayoutEffect(e,t):c.useEffect(e,t)}function v4(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Pb=function(t){t.preventDefault(),t.stopPropagation()},h4=function(t){var n=t.id,r=t.prefixCls,o=t.values,l=t.open,s=t.searchValue,u=t.autoClearSearchValue,f=t.inputRef,m=t.placeholder,p=t.disabled,g=t.mode,h=t.showSearch,y=t.autoFocus,x=t.autoComplete,S=t.activeDescendantId,b=t.tabIndex,$=t.removeIcon,w=t.maxTagCount,O=t.maxTagTextLength,I=t.maxTagPlaceholder,R=I===void 0?function(ve){return"+ ".concat(ve.length," ...")}:I,P=t.tagRender,T=t.onToggleOpen,N=t.onRemove,M=t.onInputChange,_=t.onInputPaste,L=t.onInputKeyDown,z=t.onInputMouseDown,A=t.onInputCompositionStart,B=t.onInputCompositionEnd,G=t.onInputBlur,V=c.useRef(null),H=c.useState(0),D=ae(H,2),Z=D[0],W=D[1],k=c.useState(!1),F=ae(k,2),Q=F[0],ne=F[1],ee="".concat(r,"-selection"),oe=l||g==="multiple"&&u===!1||g==="tags"?s:"",fe=g==="tags"||g==="multiple"&&u===!1||h&&(l||Q);g4(function(){W(V.current.scrollWidth)},[oe]);var me=function(ce,le,be,xe,$e){return c.createElement("span",{title:zC(ce),className:re("".concat(ee,"-item"),U({},"".concat(ee,"-item-disabled"),be))},c.createElement("span",{className:"".concat(ee,"-item-content")},le),xe&&c.createElement(yd,{className:"".concat(ee,"-item-remove"),onMouseDown:Pb,onClick:$e,customizeIcon:$},"×"))},ue=function(ce,le,be,xe,$e,Ne){var Le=function(Be){Pb(Be),T(!l)};return c.createElement("span",{onMouseDown:Le},P({label:le,value:ce,disabled:be,closable:xe,onClose:$e,isMaxTag:!!Ne}))},Se=function(ce){var le=ce.disabled,be=ce.label,xe=ce.value,$e=!p&&!le,Ne=be;if(typeof O=="number"&&(typeof be=="string"||typeof be=="number")){var Le=String(Ne);Le.length>O&&(Ne="".concat(Le.slice(0,O),"..."))}var Pe=function(Oe){Oe&&Oe.stopPropagation(),N(ce)};return typeof P=="function"?ue(xe,Ne,le,$e,Pe):me(ce,Ne,le,$e,Pe)},pe=function(ce){if(!o.length)return null;var le=typeof R=="function"?R(ce):R;return typeof P=="function"?ue(void 0,le,!1,!1,void 0,!0):me({title:le},le,!1)},se=c.createElement("div",{className:"".concat(ee,"-search"),style:{width:Z},onFocus:function(){ne(!0)},onBlur:function(){ne(!1)}},c.createElement(_C,{ref:f,open:l,prefixCls:r,id:n,inputElement:null,disabled:p,autoFocus:y,autoComplete:x,editable:fe,activeDescendantId:S,value:oe,onKeyDown:L,onMouseDown:z,onChange:M,onPaste:_,onCompositionStart:A,onCompositionEnd:B,onBlur:G,tabIndex:b,attrs:_o(t,!0)}),c.createElement("span",{ref:V,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},oe," ")),ye=c.createElement(To,{prefixCls:"".concat(ee,"-overflow"),data:o,renderItem:Se,renderRest:pe,suffix:se,itemKey:v4,maxCount:w});return c.createElement("span",{className:"".concat(ee,"-wrap")},ye,!o.length&&!oe&&c.createElement("span",{className:"".concat(ee,"-placeholder")},m))},y4=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,l=t.inputRef,s=t.disabled,u=t.autoFocus,f=t.autoComplete,m=t.activeDescendantId,p=t.mode,g=t.open,h=t.values,y=t.placeholder,x=t.tabIndex,S=t.showSearch,b=t.searchValue,$=t.activeValue,w=t.maxLength,O=t.onInputKeyDown,I=t.onInputMouseDown,R=t.onInputChange,P=t.onInputPaste,T=t.onInputCompositionStart,N=t.onInputCompositionEnd,M=t.onInputBlur,_=t.title,L=c.useState(!1),z=ae(L,2),A=z[0],B=z[1],G=p==="combobox",V=G||S,H=h[0],D=b||"";G&&$&&!A&&(D=$),c.useEffect(function(){G&&B(!1)},[G,$]);var Z=p!=="combobox"&&!g&&!S?!1:!!D,W=_===void 0?zC(H):_,k=c.useMemo(function(){return H?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Z?{visibility:"hidden"}:void 0},y)},[H,Z,y,r]);return c.createElement("span",{className:"".concat(r,"-selection-wrap")},c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(_C,{ref:l,prefixCls:r,id:o,open:g,inputElement:n,disabled:s,autoFocus:u,autoComplete:f,editable:V,activeDescendantId:m,value:D,onKeyDown:O,onMouseDown:I,onChange:function(Q){B(!0),R(Q)},onPaste:P,onCompositionStart:T,onCompositionEnd:N,onBlur:M,tabIndex:x,attrs:_o(t,!0),maxLength:G?w:void 0})),!G&&H?c.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:Z?{visibility:"hidden"}:void 0},H.label):null,k)},b4=function(t,n){var r=c.useRef(null),o=c.useRef(!1),l=t.prefixCls,s=t.open,u=t.mode,f=t.showSearch,m=t.tokenWithEnter,p=t.disabled,g=t.prefix,h=t.autoClearSearchValue,y=t.onSearch,x=t.onSearchSubmit,S=t.onToggleOpen,b=t.onInputKeyDown,$=t.onInputBlur,w=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var O=PC(0),I=ae(O,2),R=I[0],P=I[1],T=function(W){var k=W.which,F=r.current instanceof HTMLTextAreaElement;!F&&s&&(k===Ue.UP||k===Ue.DOWN)&&W.preventDefault(),b&&b(W),k===Ue.ENTER&&u==="tags"&&!o.current&&!s&&(x==null||x(W.target.value)),!(F&&!s&&~[Ue.UP,Ue.DOWN,Ue.LEFT,Ue.RIGHT].indexOf(k))&&Q_(k)&&S(!0)},N=function(){P(!0)},M=c.useRef(null),_=function(W){y(W,!0,o.current)!==!1&&S(!0)},L=function(){o.current=!0},z=function(W){o.current=!1,u!=="combobox"&&_(W.target.value)},A=function(W){var k=W.target.value;if(m&&M.current&&/[\r\n]/.test(M.current)){var F=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");k=k.replace(F,M.current)}M.current=null,_(k)},B=function(W){var k=W.clipboardData,F=k==null?void 0:k.getData("text");M.current=F||""},G=function(W){var k=W.target;if(k!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},V=function(W){var k=R();W.target!==r.current&&!k&&!(u==="combobox"&&p)&&W.preventDefault(),(u!=="combobox"&&(!f||!k)||!s)&&(s&&h!==!1&&y("",!0,!1),S())},H={inputRef:r,onInputKeyDown:T,onInputMouseDown:N,onInputChange:A,onInputPaste:B,onInputCompositionStart:L,onInputCompositionEnd:z,onInputBlur:$},D=u==="multiple"||u==="tags"?c.createElement(h4,Ee({},t,H)):c.createElement(y4,Ee({},t,H));return c.createElement("div",{ref:w,className:"".concat(l,"-selector"),onClick:G,onMouseDown:V},g&&c.createElement("div",{className:"".concat(l,"-prefix")},g),D)},S4=c.forwardRef(b4);function x4(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,l=r||{},s=l.className,u=l.content,f=o.x,m=f===void 0?0:f,p=o.y,g=p===void 0?0:p,h=c.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var x=n.points[0],S=n.points[1],b=x[0],$=x[1],w=S[0],O=S[1];b===w||!["t","b"].includes(b)?y.top=g:b==="t"?y.top=0:y.bottom=0,$===O||!["l","r"].includes($)?y.left=m:$==="l"?y.left=0:y.right=0}return c.createElement("div",{ref:h,className:re("".concat(t,"-arrow"),s),style:y},u)}function C4(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,l=e.motion;return o?c.createElement(wo,Ee({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var u=s.className;return c.createElement("div",{style:{zIndex:r},className:re("".concat(t,"-mask"),u)})}):null}var w4=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),$4=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,l=e.style,s=e.target,u=e.onVisibleChanged,f=e.open,m=e.keepDom,p=e.fresh,g=e.onClick,h=e.mask,y=e.arrow,x=e.arrowPos,S=e.align,b=e.motion,$=e.maskMotion,w=e.forceRender,O=e.getPopupContainer,I=e.autoDestroy,R=e.portal,P=e.zIndex,T=e.onMouseEnter,N=e.onMouseLeave,M=e.onPointerEnter,_=e.onPointerDownCapture,L=e.ready,z=e.offsetX,A=e.offsetY,B=e.offsetR,G=e.offsetB,V=e.onAlign,H=e.onPrepare,D=e.stretch,Z=e.targetWidth,W=e.targetHeight,k=typeof n=="function"?n():n,F=f||m,Q=(O==null?void 0:O.length)>0,ne=c.useState(!O||!Q),ee=ae(ne,2),oe=ee[0],fe=ee[1];if(rn(function(){!oe&&Q&&s&&fe(!0)},[oe,Q,s]),!oe)return null;var me="auto",ue={left:"-1000vw",top:"-1000vh",right:me,bottom:me};if(L||!f){var Se,pe=S.points,se=S.dynamicInset||((Se=S._experimental)===null||Se===void 0?void 0:Se.dynamicInset),ye=se&&pe[0][1]==="r",ve=se&&pe[0][0]==="b";ye?(ue.right=B,ue.left=me):(ue.left=z,ue.right=me),ve?(ue.bottom=G,ue.top=me):(ue.top=A,ue.bottom=me)}var ce={};return D&&(D.includes("height")&&W?ce.height=W:D.includes("minHeight")&&W&&(ce.minHeight=W),D.includes("width")&&Z?ce.width=Z:D.includes("minWidth")&&Z&&(ce.minWidth=Z)),f||(ce.pointerEvents="none"),c.createElement(R,{open:w||F,getContainer:O&&function(){return O(s)},autoDestroy:I},c.createElement(C4,{prefixCls:o,open:f,zIndex:P,mask:h,motion:$}),c.createElement(oo,{onResize:V,disabled:!f},function(le){return c.createElement(wo,Ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:H,onEnterPrepare:H,visible:f,onVisibleChanged:function(xe){var $e;b==null||($e=b.onVisibleChanged)===null||$e===void 0||$e.call(b,xe),u(xe)}}),function(be,xe){var $e=be.className,Ne=be.style,Le=re(o,$e,r);return c.createElement("div",{ref:ko(le,t,xe),className:Le,style:X(X(X(X({"--arrow-x":"".concat(x.x||0,"px"),"--arrow-y":"".concat(x.y||0,"px")},ue),ce),Ne),{},{boxSizing:"border-box",zIndex:P},l),onMouseEnter:T,onMouseLeave:N,onPointerEnter:M,onClick:g,onPointerDownCapture:_},y&&c.createElement(x4,{prefixCls:o,arrow:y,arrowPos:x,align:S}),c.createElement(w4,{cache:!f&&!p},k))})}))}),E4=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=_i(n),l=c.useCallback(function(u){bg(t,r?r(u):u)},[r]),s=Zo(l,oa(n));return o?c.cloneElement(n,{ref:s}):n}),Tb=c.createContext(null);function Mb(e){return e?Array.isArray(e)?e:[e]:[]}function O4(e,t,n,r){return c.useMemo(function(){var o=Mb(n??t),l=Mb(r??t),s=new Set(o),u=new Set(l);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[s,u]},[e,t,n,r])}function I4(){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 R4(e,t,n,r){for(var o=n.points,l=Object.keys(e),s=0;s<l.length;s+=1){var u,f=l[s];if(I4((u=e[f])===null||u===void 0?void 0:u.points,o,r))return"".concat(t,"-placement-").concat(f)}return""}function Nb(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ds(e){return e.ownerDocument.defaultView}function rg(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ds(n).getComputedStyle(n),l=o.overflowX,s=o.overflowY,u=o.overflow;[l,s,u].some(function(f){return r.includes(f)})&&t.push(n),n=n.parentElement}return t}function Cs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Yl(e){return Cs(parseFloat(e),0)}function _b(e,t){var n=X({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ds(r).getComputedStyle(r),l=o.overflow,s=o.overflowClipMargin,u=o.borderTopWidth,f=o.borderBottomWidth,m=o.borderLeftWidth,p=o.borderRightWidth,g=r.getBoundingClientRect(),h=r.offsetHeight,y=r.clientHeight,x=r.offsetWidth,S=r.clientWidth,b=Yl(u),$=Yl(f),w=Yl(m),O=Yl(p),I=Cs(Math.round(g.width/x*1e3)/1e3),R=Cs(Math.round(g.height/h*1e3)/1e3),P=(x-S-w-O)*I,T=(h-y-b-$)*R,N=b*R,M=$*R,_=w*I,L=O*I,z=0,A=0;if(l==="clip"){var B=Yl(s);z=B*I,A=B*R}var G=g.x+_-z,V=g.y+N-A,H=G+g.width+2*z-_-L-P,D=V+g.height+2*A-N-M-T;n.left=Math.max(n.left,G),n.top=Math.max(n.top,V),n.right=Math.min(n.right,H),n.bottom=Math.min(n.bottom,D)}}),n}function jb(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 zb(e,t){var n=t||[],r=ae(n,2),o=r[0],l=r[1];return[jb(e.width,o),jb(e.height,l)]}function kb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ba(e,t){var n=t[0],r=t[1],o,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=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:l}}function xi(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 P4(e,t,n,r,o,l,s){var u=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),f=ae(u,2),m=f[0],p=f[1],g=c.useRef(0),h=c.useMemo(function(){return t?rg(t):[]},[t]),y=c.useRef({}),x=function(){y.current={}};e||x();var S=_n(function(){if(t&&n&&e){let Tn=function(xr,Tr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tt,Lr=F.x+xr,ca=F.y+Tr,ua=Lr+ve,rt=ca+ye,Tt=Math.max(Lr,Gr.left),xn=Math.max(ca,Gr.top),$n=Math.min(ua,Gr.right),Cn=Math.min(rt,Gr.bottom);return Math.max(0,($n-Tt)*(Cn-xn))},fr=function(){un=F.y+yt,yn=un+ye,On=F.x+Ze,qt=On+ve};var sa=Tn,Ao=fr,w,O,I,R,P=t,T=P.ownerDocument,N=Ds(P),M=N.getComputedStyle(P),_=M.position,L=P.style.left,z=P.style.top,A=P.style.right,B=P.style.bottom,G=P.style.overflow,V=X(X({},o[r]),l),H=T.createElement("div");(w=P.parentElement)===null||w===void 0||w.appendChild(H),H.style.left="".concat(P.offsetLeft,"px"),H.style.top="".concat(P.offsetTop,"px"),H.style.position=_,H.style.height="".concat(P.offsetHeight,"px"),H.style.width="".concat(P.offsetWidth,"px"),P.style.left="0",P.style.top="0",P.style.right="auto",P.style.bottom="auto",P.style.overflow="hidden";var D;if(Array.isArray(n))D={x:n[0],y:n[1],width:0,height:0};else{var Z,W,k=n.getBoundingClientRect();k.x=(Z=k.x)!==null&&Z!==void 0?Z:k.left,k.y=(W=k.y)!==null&&W!==void 0?W:k.top,D={x:k.x,y:k.y,width:k.width,height:k.height}}var F=P.getBoundingClientRect(),Q=N.getComputedStyle(P),ne=Q.height,ee=Q.width;F.x=(O=F.x)!==null&&O!==void 0?O:F.left,F.y=(I=F.y)!==null&&I!==void 0?I:F.top;var oe=T.documentElement,fe=oe.clientWidth,me=oe.clientHeight,ue=oe.scrollWidth,Se=oe.scrollHeight,pe=oe.scrollTop,se=oe.scrollLeft,ye=F.height,ve=F.width,ce=D.height,le=D.width,be={left:0,top:0,right:fe,bottom:me},xe={left:-se,top:-pe,right:ue-se,bottom:Se-pe},$e=V.htmlRegion,Ne="visible",Le="visibleFirst";$e!=="scroll"&&$e!==Le&&($e=Ne);var Pe=$e===Le,Be=_b(xe,h),Oe=_b(be,h),tt=$e===Ne?Oe:Be,lt=Pe?Oe:tt;P.style.left="auto",P.style.top="auto",P.style.right="0",P.style.bottom="0";var bt=P.getBoundingClientRect();P.style.left=L,P.style.top=z,P.style.right=A,P.style.bottom=B,P.style.overflow=G,(R=P.parentElement)===null||R===void 0||R.removeChild(H);var st=Cs(Math.round(ve/parseFloat(ee)*1e3)/1e3),Ge=Cs(Math.round(ye/parseFloat(ne)*1e3)/1e3);if(st===0||Ge===0||ds(n)&&!kg(n))return;var it=V.offset,Ve=V.targetOffset,dt=zb(F,it),Xe=ae(dt,2),_e=Xe[0],Ye=Xe[1],Te=zb(D,Ve),Fe=ae(Te,2),wt=Fe[0],pt=Fe[1];D.x-=wt,D.y-=pt;var Ht=V.points||[],Dt=ae(Ht,2),on=Dt[0],hn=Dt[1],Wt=kb(hn),Mt=kb(on),St=Ba(D,Wt),Ut=Ba(F,Mt),Bt=X({},V),Ze=St.x-Ut.x+_e,yt=St.y-Ut.y+Ye,at=Tn(Ze,yt),Ie=Tn(Ze,yt,Oe),we=Ba(D,["t","l"]),Ce=Ba(F,["t","l"]),je=Ba(D,["b","r"]),Ke=Ba(F,["b","r"]),Qe=V.overflow||{},_t=Qe.adjustX,kt=Qe.adjustY,It=Qe.shiftX,Pt=Qe.shiftY,gn=function(Tr){return typeof Tr=="boolean"?Tr:Tr>=0},un,yn,On,qt;fr();var Jt=gn(kt),ze=Mt[0]===Wt[0];if(Jt&&Mt[0]==="t"&&(yn>lt.bottom||y.current.bt)){var We=yt;ze?We-=ye-ce:We=we.y-Ke.y-Ye;var Ct=Tn(Ze,We),ct=Tn(Ze,We,Oe);Ct>at||Ct===at&&(!Pe||ct>=Ie)?(y.current.bt=!0,yt=We,Ye=-Ye,Bt.points=[xi(Mt,0),xi(Wt,0)]):y.current.bt=!1}if(Jt&&Mt[0]==="b"&&(un<lt.top||y.current.tb)){var et=yt;ze?et+=ye-ce:et=je.y-Ce.y-Ye;var qe=Tn(Ze,et),xt=Tn(Ze,et,Oe);qe>at||qe===at&&(!Pe||xt>=Ie)?(y.current.tb=!0,yt=et,Ye=-Ye,Bt.points=[xi(Mt,0),xi(Wt,0)]):y.current.tb=!1}var Lt=gn(_t),He=Mt[1]===Wt[1];if(Lt&&Mt[1]==="l"&&(qt>lt.right||y.current.rl)){var ut=Ze;He?ut-=ve-le:ut=we.x-Ke.x-_e;var $t=Tn(ut,yt),tn=Tn(ut,yt,Oe);$t>at||$t===at&&(!Pe||tn>=Ie)?(y.current.rl=!0,Ze=ut,_e=-_e,Bt.points=[xi(Mt,1),xi(Wt,1)]):y.current.rl=!1}if(Lt&&Mt[1]==="r"&&(On<lt.left||y.current.lr)){var zn=Ze;He?zn+=ve-le:zn=je.x-Ce.x-_e;var wn=Tn(zn,yt),cr=Tn(zn,yt,Oe);wn>at||wn===at&&(!Pe||cr>=Ie)?(y.current.lr=!0,Ze=zn,_e=-_e,Bt.points=[xi(Mt,1),xi(Wt,1)]):y.current.lr=!1}fr();var Gn=It===!0?0:It;typeof Gn=="number"&&(On<Oe.left&&(Ze-=On-Oe.left-_e,D.x+le<Oe.left+Gn&&(Ze+=D.x-Oe.left+le-Gn)),qt>Oe.right&&(Ze-=qt-Oe.right-_e,D.x>Oe.right-Gn&&(Ze+=D.x-Oe.right+Gn)));var ur=Pt===!0?0:Pt;typeof ur=="number"&&(un<Oe.top&&(yt-=un-Oe.top-Ye,D.y+ce<Oe.top+ur&&(yt+=D.y-Oe.top+ce-ur)),yn>Oe.bottom&&(yt-=yn-Oe.bottom-Ye,D.y>Oe.bottom-ur&&(yt+=D.y-Oe.bottom+ur)));var qn=F.x+Ze,or=qn+ve,dr=F.y+yt,Yt=dr+ye,nt=D.x,Je=nt+le,Gt=D.y,Zt=Gt+ce,an=Math.max(qn,nt),cn=Math.min(or,Je),ir=(an+cn)/2,kn=ir-qn,zt=Math.max(dr,Gt),Kn=Math.min(Yt,Zt),Zn=(zt+Kn)/2,Pr=Zn-dr;s==null||s(t,Bt);var Jn=bt.right-F.x-(Ze+F.width),oi=bt.bottom-F.y-(yt+F.height);st===1&&(Ze=Math.floor(Ze),Jn=Math.floor(Jn)),Ge===1&&(yt=Math.floor(yt),oi=Math.floor(oi));var la={ready:!0,offsetX:Ze/st,offsetY:yt/Ge,offsetR:Jn/st,offsetB:oi/Ge,arrowX:kn/st,arrowY:Pr/Ge,scaleX:st,scaleY:Ge,align:Bt};p(la)}}),b=function(){g.current+=1;var O=g.current;Promise.resolve().then(function(){g.current===O&&S()})},$=function(){p(function(O){return X(X({},O),{},{ready:!1})})};return rn($,[r]),rn(function(){e||$()},[e]),[m.ready,m.offsetX,m.offsetY,m.offsetR,m.offsetB,m.arrowX,m.arrowY,m.scaleX,m.scaleY,m.align,b]}function T4(e,t,n,r,o){rn(function(){if(e&&t&&n){let h=function(){r(),o()};var g=h,l=t,s=n,u=rg(l),f=rg(s),m=Ds(s),p=new Set([m].concat(Ae(u),Ae(f)));return p.forEach(function(y){y.addEventListener("scroll",h,{passive:!0})}),m.addEventListener("resize",h,{passive:!0}),r(),function(){p.forEach(function(y){y.removeEventListener("scroll",h),m.removeEventListener("resize",h)})}}},[e,t,n])}function M4(e,t,n,r,o,l,s,u){var f=c.useRef(e);f.current=e;var m=c.useRef(!1);c.useEffect(function(){if(t&&r&&(!o||l)){var g=function(){m.current=!1},h=function(b){var $;f.current&&!s((($=b.composedPath)===null||$===void 0||($=$.call(b))===null||$===void 0?void 0:$[0])||b.target)&&!m.current&&u(!1)},y=Ds(r);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",h,!0),y.addEventListener("contextmenu",h,!0);var x=Tu(n);return x&&(x.addEventListener("mousedown",h,!0),x.addEventListener("contextmenu",h,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",h,!0),y.removeEventListener("contextmenu",h,!0),x&&(x.removeEventListener("mousedown",h,!0),x.removeEventListener("contextmenu",h,!0))}}},[t,n,r,o,l]);function p(){m.current=!0}return p}var N4=["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 _4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vg,t=c.forwardRef(function(n,r){var o=n.prefixCls,l=o===void 0?"rc-trigger-popup":o,s=n.children,u=n.action,f=u===void 0?"hover":u,m=n.showAction,p=n.hideAction,g=n.popupVisible,h=n.defaultPopupVisible,y=n.onPopupVisibleChange,x=n.afterPopupVisibleChange,S=n.mouseEnterDelay,b=n.mouseLeaveDelay,$=b===void 0?.1:b,w=n.focusDelay,O=n.blurDelay,I=n.mask,R=n.maskClosable,P=R===void 0?!0:R,T=n.getPopupContainer,N=n.forceRender,M=n.autoDestroy,_=n.destroyPopupOnHide,L=n.popup,z=n.popupClassName,A=n.popupStyle,B=n.popupPlacement,G=n.builtinPlacements,V=G===void 0?{}:G,H=n.popupAlign,D=n.zIndex,Z=n.stretch,W=n.getPopupClassNameFromAlign,k=n.fresh,F=n.alignPoint,Q=n.onPopupClick,ne=n.onPopupAlign,ee=n.arrow,oe=n.popupMotion,fe=n.maskMotion,me=n.popupTransitionName,ue=n.popupAnimation,Se=n.maskTransitionName,pe=n.maskAnimation,se=n.className,ye=n.getTriggerDOMNode,ve=Nt(n,N4),ce=M||_||!1,le=c.useState(!1),be=ae(le,2),xe=be[0],$e=be[1];rn(function(){$e(Gg())},[]);var Ne=c.useRef({}),Le=c.useContext(Tb),Pe=c.useMemo(function(){return{registerSubPopup:function(Tt,xn){Ne.current[Tt]=xn,Le==null||Le.registerSubPopup(Tt,xn)}}},[Le]),Be=Wg(),Oe=c.useState(null),tt=ae(Oe,2),lt=tt[0],bt=tt[1],st=c.useRef(null),Ge=_n(function(rt){st.current=rt,ds(rt)&<!==rt&&bt(rt),Le==null||Le.registerSubPopup(Be,rt)}),it=c.useState(null),Ve=ae(it,2),dt=Ve[0],Xe=Ve[1],_e=c.useRef(null),Ye=_n(function(rt){ds(rt)&&dt!==rt&&(Xe(rt),_e.current=rt)}),Te=c.Children.only(s),Fe=(Te==null?void 0:Te.props)||{},wt={},pt=_n(function(rt){var Tt,xn,$n=dt;return($n==null?void 0:$n.contains(rt))||((Tt=Tu($n))===null||Tt===void 0?void 0:Tt.host)===rt||rt===$n||(lt==null?void 0:lt.contains(rt))||((xn=Tu(lt))===null||xn===void 0?void 0:xn.host)===rt||rt===lt||Object.values(Ne.current).some(function(Cn){return(Cn==null?void 0:Cn.contains(rt))||rt===Cn})}),Ht=Nb(l,oe,ue,me),Dt=Nb(l,fe,pe,Se),on=c.useState(h||!1),hn=ae(on,2),Wt=hn[0],Mt=hn[1],St=g??Wt,Ut=_n(function(rt){g===void 0&&Mt(rt)});rn(function(){Mt(g||!1)},[g]);var Bt=c.useRef(St);Bt.current=St;var Ze=c.useRef([]);Ze.current=[];var yt=_n(function(rt){var Tt;Ut(rt),((Tt=Ze.current[Ze.current.length-1])!==null&&Tt!==void 0?Tt:St)!==rt&&(Ze.current.push(rt),y==null||y(rt))}),at=c.useRef(),Ie=function(){clearTimeout(at.current)},we=function(Tt){var xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ie(),xn===0?yt(Tt):at.current=setTimeout(function(){yt(Tt)},xn*1e3)};c.useEffect(function(){return Ie},[]);var Ce=c.useState(!1),je=ae(Ce,2),Ke=je[0],Qe=je[1];rn(function(rt){(!rt||St)&&Qe(!0)},[St]);var _t=c.useState(null),kt=ae(_t,2),It=kt[0],Pt=kt[1],gn=c.useState(null),un=ae(gn,2),yn=un[0],On=un[1],qt=function(Tt){On([Tt.clientX,Tt.clientY])},Jt=P4(St,lt,F&&yn!==null?yn:dt,B,V,H,ne),ze=ae(Jt,11),We=ze[0],Ct=ze[1],ct=ze[2],et=ze[3],qe=ze[4],xt=ze[5],Lt=ze[6],He=ze[7],ut=ze[8],$t=ze[9],tn=ze[10],zn=O4(xe,f,m,p),wn=ae(zn,2),cr=wn[0],Gn=wn[1],ur=cr.has("click"),qn=Gn.has("click")||Gn.has("contextMenu"),or=_n(function(){Ke||tn()}),dr=function(){Bt.current&&F&&qn&&we(!1)};T4(St,dt,lt,or,dr),rn(function(){or()},[yn,B]),rn(function(){St&&!(V!=null&&V[B])&&or()},[JSON.stringify(H)]);var Yt=c.useMemo(function(){var rt=R4(V,l,$t,F);return re(rt,W==null?void 0:W($t))},[$t,W,V,l,F]);c.useImperativeHandle(r,function(){return{nativeElement:_e.current,popupElement:st.current,forceAlign:or}});var nt=c.useState(0),Je=ae(nt,2),Gt=Je[0],Zt=Je[1],an=c.useState(0),cn=ae(an,2),ir=cn[0],kn=cn[1],zt=function(){if(Z&&dt){var Tt=dt.getBoundingClientRect();Zt(Tt.width),kn(Tt.height)}},Kn=function(){zt(),or()},Zn=function(Tt){Qe(!1),tn(),x==null||x(Tt)},Pr=function(){return new Promise(function(Tt){zt(),Pt(function(){return Tt})})};rn(function(){It&&(tn(),It(),Pt(null))},[It]);function Jn(rt,Tt,xn,$n){wt[rt]=function(Cn){var da;$n==null||$n(Cn),we(Tt,xn);for(var Do=arguments.length,ii=new Array(Do>1?Do-1:0),lo=1;lo<Do;lo++)ii[lo-1]=arguments[lo];(da=Fe[rt])===null||da===void 0||da.call.apply(da,[Fe,Cn].concat(ii))}}(ur||qn)&&(wt.onClick=function(rt){var Tt;Bt.current&&qn?we(!1):!Bt.current&&ur&&(qt(rt),we(!0));for(var xn=arguments.length,$n=new Array(xn>1?xn-1:0),Cn=1;Cn<xn;Cn++)$n[Cn-1]=arguments[Cn];(Tt=Fe.onClick)===null||Tt===void 0||Tt.call.apply(Tt,[Fe,rt].concat($n))});var oi=M4(St,qn,dt,lt,I,P,pt,we),la=cr.has("hover"),sa=Gn.has("hover"),Ao,Tn;la&&(Jn("onMouseEnter",!0,S,function(rt){qt(rt)}),Jn("onPointerEnter",!0,S,function(rt){qt(rt)}),Ao=function(Tt){(St||Ke)&<!==null&<!==void 0&<.contains(Tt.target)&&we(!0,S)},F&&(wt.onMouseMove=function(rt){var Tt;(Tt=Fe.onMouseMove)===null||Tt===void 0||Tt.call(Fe,rt)})),sa&&(Jn("onMouseLeave",!1,$),Jn("onPointerLeave",!1,$),Tn=function(){we(!1,$)}),cr.has("focus")&&Jn("onFocus",!0,w),Gn.has("focus")&&Jn("onBlur",!1,O),cr.has("contextMenu")&&(wt.onContextMenu=function(rt){var Tt;Bt.current&&Gn.has("contextMenu")?we(!1):(qt(rt),we(!0)),rt.preventDefault();for(var xn=arguments.length,$n=new Array(xn>1?xn-1:0),Cn=1;Cn<xn;Cn++)$n[Cn-1]=arguments[Cn];(Tt=Fe.onContextMenu)===null||Tt===void 0||Tt.call.apply(Tt,[Fe,rt].concat($n))}),se&&(wt.className=re(Fe.className,se));var fr=c.useRef(!1);fr.current||(fr.current=N||St||Ke);var xr=X(X({},Fe),wt),Tr={},Gr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Gr.forEach(function(rt){ve[rt]&&(Tr[rt]=function(){for(var Tt,xn=arguments.length,$n=new Array(xn),Cn=0;Cn<xn;Cn++)$n[Cn]=arguments[Cn];(Tt=xr[rt])===null||Tt===void 0||Tt.call.apply(Tt,[xr].concat($n)),ve[rt].apply(ve,$n)})});var Lr=c.cloneElement(Te,X(X({},xr),Tr)),ca={x:xt,y:Lt},ua=ee?X({},ee!==!0?ee:{}):null;return c.createElement(c.Fragment,null,c.createElement(oo,{disabled:!St,ref:Ye,onResize:Kn},c.createElement(E4,{getTriggerDOMNode:ye},Lr)),fr.current&&c.createElement(Tb.Provider,{value:Pe},c.createElement($4,{portal:e,ref:Ge,prefixCls:l,popup:L,className:re(z,Yt),style:A,target:dt,onMouseEnter:Ao,onMouseLeave:Tn,onPointerEnter:Ao,zIndex:D,open:St,keepDom:Ke,fresh:k,onClick:Q,onPointerDownCapture:oi,mask:I,motion:Ht,maskMotion:Dt,onVisibleChanged:Zn,onPrepare:Pr,forceRender:N,autoDestroy:ce,getPopupContainer:T,align:$t,arrow:ua,arrowPos:ca,ready:We,offsetX:Ct,offsetY:ct,offsetR:et,offsetB:qe,onAlign:or,stretch:Z,targetWidth:Gt/He,targetHeight:ir/ut})))});return t}const bd=_4(Vg);var j4=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z4=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},k4=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,l=t.children,s=t.popupElement,u=t.animation,f=t.transitionName,m=t.dropdownStyle,p=t.dropdownClassName,g=t.direction,h=g===void 0?"ltr":g,y=t.placement,x=t.builtinPlacements,S=t.dropdownMatchSelectWidth,b=t.dropdownRender,$=t.dropdownAlign,w=t.getPopupContainer,O=t.empty,I=t.getTriggerDOMNode,R=t.onPopupVisibleChange,P=t.onPopupMouseEnter,T=Nt(t,j4),N="".concat(r,"-dropdown"),M=s;b&&(M=b(s));var _=c.useMemo(function(){return x||z4(S)},[x,S]),L=u?"".concat(N,"-").concat(u):f,z=typeof S=="number",A=c.useMemo(function(){return z?null:S===!1?"minWidth":"width"},[S,z]),B=m;z&&(B=X(X({},B),{},{width:S}));var G=c.useRef(null);return c.useImperativeHandle(n,function(){return{getPopupElement:function(){var H;return(H=G.current)===null||H===void 0?void 0:H.popupElement}}}),c.createElement(bd,Ee({},T,{showAction:R?["click"]:[],hideAction:R?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_,prefixCls:N,popupTransitionName:L,popup:c.createElement("div",{onMouseEnter:P},M),ref:G,stretch:A,popupAlign:$,popupVisible:o,getPopupContainer:w,popupClassName:re(p,U({},"".concat(N,"-empty"),O)),popupStyle:B,getTriggerDOMNode:I,onPopupVisibleChange:R}),l)},L4=c.forwardRef(k4);function Lb(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 og(e){return typeof e<"u"&&!Number.isNaN(e)}function kC(e,t){var n=e||{},r=n.label,o=n.value,l=n.options,s=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:o||"value",options:l||"options",groupLabel:s||u}}function B4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],l=kC(n,!1),s=l.label,u=l.value,f=l.options,m=l.groupLabel;function p(g,h){Array.isArray(g)&&g.forEach(function(y){if(h||!(f in y)){var x=y[u];o.push({key:Lb(y,o.length),groupOption:h,data:y,label:y[s],value:x})}else{var S=y[m];S===void 0&&r&&(S=y.label),o.push({key:Lb(y,o.length),group:!0,data:y,label:S}),p(y[f],!0)}})}return p(e,!1),o}function ig(e){var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return sr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var A4=function(t,n,r){if(!n||!n.length)return null;var o=!1,l=function u(f,m){var p=A1(m),g=p[0],h=p.slice(1);if(!g)return[f];var y=f.split(g);return o=o||y.length>1,y.reduce(function(x,S){return[].concat(Ae(x),Ae(u(S,h)))},[]).filter(Boolean)},s=l(t,n);return o?typeof r<"u"?s.slice(0,r):s:null},qg=c.createContext(null);function D4(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return c.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 l=o.label,s=o.value;return["number","string"].includes(mt(l))?l:s}).join(", ")),n.length>r?", ...":null)}var F4=["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"],H4=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ag=function(t){return t==="tags"||t==="multiple"},V4=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,l=e.className,s=e.showSearch,u=e.tagRender,f=e.direction,m=e.omitDomProps,p=e.displayValues,g=e.onDisplayValuesChange,h=e.emptyOptions,y=e.notFoundContent,x=y===void 0?"Not Found":y,S=e.onClear,b=e.mode,$=e.disabled,w=e.loading,O=e.getInputElement,I=e.getRawInputElement,R=e.open,P=e.defaultOpen,T=e.onDropdownVisibleChange,N=e.activeValue,M=e.onActiveValueChange,_=e.activeDescendantId,L=e.searchValue,z=e.autoClearSearchValue,A=e.onSearch,B=e.onSearchSplit,G=e.tokenSeparators,V=e.allowClear,H=e.prefix,D=e.suffixIcon,Z=e.clearIcon,W=e.OptionList,k=e.animation,F=e.transitionName,Q=e.dropdownStyle,ne=e.dropdownClassName,ee=e.dropdownMatchSelectWidth,oe=e.dropdownRender,fe=e.dropdownAlign,me=e.placement,ue=e.builtinPlacements,Se=e.getPopupContainer,pe=e.showAction,se=pe===void 0?[]:pe,ye=e.onFocus,ve=e.onBlur,ce=e.onKeyUp,le=e.onKeyDown,be=e.onMouseDown,xe=Nt(e,F4),$e=ag(b),Ne=(s!==void 0?s:$e)||b==="combobox",Le=X({},xe);H4.forEach(function(nt){delete Le[nt]}),m==null||m.forEach(function(nt){delete Le[nt]});var Pe=c.useState(!1),Be=ae(Pe,2),Oe=Be[0],tt=Be[1];c.useEffect(function(){tt(Gg())},[]);var lt=c.useRef(null),bt=c.useRef(null),st=c.useRef(null),Ge=c.useRef(null),it=c.useRef(null),Ve=c.useRef(!1),dt=K_(),Xe=ae(dt,3),_e=Xe[0],Ye=Xe[1],Te=Xe[2];c.useImperativeHandle(t,function(){var nt,Je;return{focus:(nt=Ge.current)===null||nt===void 0?void 0:nt.focus,blur:(Je=Ge.current)===null||Je===void 0?void 0:Je.blur,scrollTo:function(Zt){var an;return(an=it.current)===null||an===void 0?void 0:an.scrollTo(Zt)},nativeElement:lt.current||bt.current}});var Fe=c.useMemo(function(){var nt;if(b!=="combobox")return L;var Je=(nt=p[0])===null||nt===void 0?void 0:nt.value;return typeof Je=="string"||typeof Je=="number"?String(Je):""},[L,b,p]),wt=b==="combobox"&&typeof O=="function"&&O()||null,pt=typeof I=="function"&&I(),Ht=Zo(bt,pt==null||(n=pt.props)===null||n===void 0?void 0:n.ref),Dt=c.useState(!1),on=ae(Dt,2),hn=on[0],Wt=on[1];rn(function(){Wt(!0)},[]);var Mt=Hn(!1,{defaultValue:P,value:R}),St=ae(Mt,2),Ut=St[0],Bt=St[1],Ze=hn?Ut:!1,yt=!x&&h;($||yt&&Ze&&b==="combobox")&&(Ze=!1);var at=yt?!1:Ze,Ie=c.useCallback(function(nt){var Je=nt!==void 0?nt:!Ze;$||(Bt(Je),Ze!==Je&&(T==null||T(Je)))},[$,Ze,Bt,T]),we=c.useMemo(function(){return(G||[]).some(function(nt){return[`
|
|
222
|
-
`,`\r
|
|
223
|
-
`].includes(nt)})},[G]),Ce=c.useContext(qg)||{},je=Ce.maxCount,Ke=Ce.rawValues,Qe=function(Je,Gt,Zt){if(!($e&&og(je)&&(Ke==null?void 0:Ke.size)>=je)){var an=!0,cn=Je;M==null||M(null);var ir=A4(Je,G,og(je)?je-Ke.size:void 0),kn=Zt?null:ir;return b!=="combobox"&&kn&&(cn="",B==null||B(kn),Ie(!1),an=!1),A&&Fe!==cn&&A(cn,{source:Gt?"typing":"effect"}),an}},_t=function(Je){!Je||!Je.trim()||A(Je,{source:"submit"})};c.useEffect(function(){!Ze&&!$e&&b!=="combobox"&&Qe("",!1,!1)},[Ze]),c.useEffect(function(){Ut&&$&&Bt(!1),$&&!Ve.current&&Ye(!1)},[$]);var kt=PC(),It=ae(kt,2),Pt=It[0],gn=It[1],un=c.useRef(!1),yn=function(Je){var Gt=Pt(),Zt=Je.key,an=Zt==="Enter";if(an&&(b!=="combobox"&&Je.preventDefault(),Ze||Ie(!0)),gn(!!Fe),Zt==="Backspace"&&!Gt&&$e&&!Fe&&p.length){for(var cn=Ae(p),ir=null,kn=cn.length-1;kn>=0;kn-=1){var zt=cn[kn];if(!zt.disabled){cn.splice(kn,1),ir=zt;break}}ir&&g(cn,{type:"remove",values:[ir]})}for(var Kn=arguments.length,Zn=new Array(Kn>1?Kn-1:0),Pr=1;Pr<Kn;Pr++)Zn[Pr-1]=arguments[Pr];if(Ze&&(!an||!un.current)){var Jn;an&&(un.current=!0),(Jn=it.current)===null||Jn===void 0||Jn.onKeyDown.apply(Jn,[Je].concat(Zn))}le==null||le.apply(void 0,[Je].concat(Zn))},On=function(Je){for(var Gt=arguments.length,Zt=new Array(Gt>1?Gt-1:0),an=1;an<Gt;an++)Zt[an-1]=arguments[an];if(Ze){var cn;(cn=it.current)===null||cn===void 0||cn.onKeyUp.apply(cn,[Je].concat(Zt))}Je.key==="Enter"&&(un.current=!1),ce==null||ce.apply(void 0,[Je].concat(Zt))},qt=function(Je){var Gt=p.filter(function(Zt){return Zt!==Je});g(Gt,{type:"remove",values:[Je]})},Jt=function(){un.current=!1},ze=c.useRef(!1),We=function(){Ye(!0),$||(ye&&!ze.current&&ye.apply(void 0,arguments),se.includes("focus")&&Ie(!0)),ze.current=!0},Ct=function(){Ve.current=!0,Ye(!1,function(){ze.current=!1,Ve.current=!1,Ie(!1)}),!$&&(Fe&&(b==="tags"?A(Fe,{source:"submit"}):b==="multiple"&&A("",{source:"blur"})),ve&&ve.apply(void 0,arguments))},ct=[];c.useEffect(function(){return function(){ct.forEach(function(nt){return clearTimeout(nt)}),ct.splice(0,ct.length)}},[]);var et=function(Je){var Gt,Zt=Je.target,an=(Gt=st.current)===null||Gt===void 0?void 0:Gt.getPopupElement();if(an&&an.contains(Zt)){var cn=setTimeout(function(){var Kn=ct.indexOf(cn);if(Kn!==-1&&ct.splice(Kn,1),Te(),!Oe&&!an.contains(document.activeElement)){var Zn;(Zn=Ge.current)===null||Zn===void 0||Zn.focus()}});ct.push(cn)}for(var ir=arguments.length,kn=new Array(ir>1?ir-1:0),zt=1;zt<ir;zt++)kn[zt-1]=arguments[zt];be==null||be.apply(void 0,[Je].concat(kn))},qe=c.useState({}),xt=ae(qe,2),Lt=xt[1];function He(){Lt({})}var ut;pt&&(ut=function(Je){Ie(Je)}),X_(function(){var nt;return[lt.current,(nt=st.current)===null||nt===void 0?void 0:nt.getPopupElement()]},at,Ie,!!pt);var $t=c.useMemo(function(){return X(X({},e),{},{notFoundContent:x,open:Ze,triggerOpen:at,id:r,showSearch:Ne,multiple:$e,toggleOpen:Ie})},[e,x,at,Ze,r,Ne,$e,Ie]),tn=!!D||w,zn;tn&&(zn=c.createElement(yd,{className:re("".concat(o,"-arrow"),U({},"".concat(o,"-arrow-loading"),w)),customizeIcon:D,customizeIconProps:{loading:w,searchValue:Fe,open:Ze,focused:_e,showSearch:Ne}}));var wn=function(){var Je;S==null||S(),(Je=Ge.current)===null||Je===void 0||Je.focus(),g([],{type:"clear",values:p}),Qe("",!1,!1)},cr=G_(o,wn,p,V,Z,$,Fe,b),Gn=cr.allowClear,ur=cr.clearIcon,qn=c.createElement(W,{ref:it}),or=re(o,l,U(U(U(U(U(U(U(U(U(U({},"".concat(o,"-focused"),_e),"".concat(o,"-multiple"),$e),"".concat(o,"-single"),!$e),"".concat(o,"-allow-clear"),V),"".concat(o,"-show-arrow"),tn),"".concat(o,"-disabled"),$),"".concat(o,"-loading"),w),"".concat(o,"-open"),Ze),"".concat(o,"-customize-input"),wt),"".concat(o,"-show-search"),Ne)),dr=c.createElement(L4,{ref:st,disabled:$,prefixCls:o,visible:at,popupElement:qn,animation:k,transitionName:F,dropdownStyle:Q,dropdownClassName:ne,direction:f,dropdownMatchSelectWidth:ee,dropdownRender:oe,dropdownAlign:fe,placement:me,builtinPlacements:ue,getPopupContainer:Se,empty:h,getTriggerDOMNode:function(Je){return bt.current||Je},onPopupVisibleChange:ut,onPopupMouseEnter:He},pt?c.cloneElement(pt,{ref:Ht}):c.createElement(S4,Ee({},e,{domRef:bt,prefixCls:o,inputElement:wt,ref:Ge,id:r,prefix:H,showSearch:Ne,autoClearSearchValue:z,mode:b,activeDescendantId:_,tagRender:u,values:p,open:Ze,onToggleOpen:Ie,activeValue:N,searchValue:Fe,onSearch:Qe,onSearchSubmit:_t,onRemove:qt,tokenWithEnter:we,onInputBlur:Jt}))),Yt;return pt?Yt=dr:Yt=c.createElement("div",Ee({className:or},Le,{ref:lt,onMouseDown:et,onKeyDown:yn,onKeyUp:On,onFocus:We,onBlur:Ct}),c.createElement(D4,{visible:_e&&!Ze,values:p}),dr,zn,Gn&&ur),c.createElement(RC.Provider,{value:$t},Yt)}),Kg=function(){return null};Kg.isSelectOptGroup=!0;var Xg=function(){return null};Xg.isSelectOption=!0;var LC=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,l=e.children,s=e.prefixCls,u=e.onInnerResize,f=e.innerProps,m=e.rtl,p=e.extra,g={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},h=X(X({},h),{},U(U(U(U(U({transform:"translateY(".concat(r,"px)")},m?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:g},c.createElement(oo,{onResize:function(x){var S=x.offsetHeight;S&&u&&u()}},c.createElement("div",Ee({style:h,className:re(U({},"".concat(s,"-holder-inner"),s)),ref:t},f),l,p)))});LC.displayName="Filler";function W4(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function U4(e,t,n,r,o,l,s,u){var f=u.getKey;return e.slice(t,n+1).map(function(m,p){var g=t+p,h=s(m,g,{style:{width:r},offsetX:o}),y=f(m);return c.createElement(W4,{key:y,setRef:function(S){return l(m,S)}},h)})}function G4(e,t,n){var r=e.length,o=t.length,l,s;if(r===0&&o===0)return null;r<o?(l=e,s=t):(l=t,s=e);var u={__EMPTY_ITEM__:!0};function f(x){return x!==void 0?n(x):u}for(var m=null,p=Math.abs(r-o)!==1,g=0;g<s.length;g+=1){var h=f(l[g]),y=f(s[g]);if(h!==y){m=g,p=p||h!==f(s[g+1]);break}}return m===null?null:{index:m,multiple:p}}function q4(e,t,n){var r=c.useState(e),o=ae(r,2),l=o[0],s=o[1],u=c.useState(null),f=ae(u,2),m=f[0],p=f[1];return c.useEffect(function(){var g=G4(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&p(e[g.index]),s(e)},[e]),[m]}var Bb=(typeof navigator>"u"?"undefined":mt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const BC=(function(e,t,n,r){var o=c.useRef(!1),l=c.useRef(null);function s(){clearTimeout(l.current),o.current=!0,l.current=setTimeout(function(){o.current=!1},50)}var u=c.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(f,m){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=f?m<0&&u.current.left||m>0&&u.current.right:m<0&&u.current.top||m>0&&u.current.bottom;return p&&g?(clearTimeout(l.current),o.current=!1):(!g||o.current)&&s(),!o.current&&g}});function K4(e,t,n,r,o,l,s){var u=c.useRef(0),f=c.useRef(null),m=c.useRef(null),p=c.useRef(!1),g=BC(t,n,r,o);function h(w,O){if(Sn.cancel(f.current),!g(!1,O)){var I=w;if(!I._virtualHandled)I._virtualHandled=!0;else return;u.current+=O,m.current=O,Bb||I.preventDefault(),f.current=Sn(function(){var R=p.current?10:1;s(u.current*R,!1),u.current=0})}}function y(w,O){s(O,!0),Bb||w.preventDefault()}var x=c.useRef(null),S=c.useRef(null);function b(w){if(e){Sn.cancel(S.current),S.current=Sn(function(){x.current=null},2);var O=w.deltaX,I=w.deltaY,R=w.shiftKey,P=O,T=I;(x.current==="sx"||!x.current&&R&&I&&!O)&&(P=I,T=0,x.current="sx");var N=Math.abs(P),M=Math.abs(T);x.current===null&&(x.current=l&&N>M?"x":"y"),x.current==="y"?h(w,T):y(w,P)}}function $(w){e&&(p.current=w.detail===m.current)}return[b,$]}function X4(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=ae(o,2),s=l[0],u=l[1],f=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,h=s.get(p),y=s.get(g);if(h===void 0||y===void 0)for(var x=e.length,S=u.length;S<x;S+=1){var b,$=e[S],w=t($);s.set(w,S);var O=(b=n.get(w))!==null&&b!==void 0?b:r;if(u[S]=(u[S-1]||0)+O,w===p&&(h=S),w===g&&(y=S),h!==void 0&&y!==void 0)break}return{top:u[h-1]||0,bottom:u[y]}};return f}var Q4=(function(){function e(){Wn(this,e),U(this,"maps",void 0),U(this,"id",0),U(this,"diffRecords",new Map),this.maps=Object.create(null)}return Un(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Ab(e){var t=parseFloat(e);return isNaN(t)?0:t}function Y4(e,t,n){var r=c.useState(0),o=ae(r,2),l=o[0],s=o[1],u=c.useRef(new Map),f=c.useRef(new Q4),m=c.useRef(0);function p(){m.current+=1}function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p();var x=function(){var $=!1;u.current.forEach(function(w,O){if(w&&w.offsetParent){var I=w.offsetHeight,R=getComputedStyle(w),P=R.marginTop,T=R.marginBottom,N=Ab(P),M=Ab(T),_=I+N+M;f.current.get(O)!==_&&(f.current.set(O,_),$=!0)}}),$&&s(function(w){return w+1})};if(y)x();else{m.current+=1;var S=m.current;Promise.resolve().then(function(){S===m.current&&x()})}}function h(y,x){var S=e(y);u.current.get(S),x?(u.current.set(S,x),g()):u.current.delete(S)}return c.useEffect(function(){return p},[]),[h,g,f.current,l]}var Db=14/15;function Z4(e,t,n){var r=c.useRef(!1),o=c.useRef(0),l=c.useRef(0),s=c.useRef(null),u=c.useRef(null),f,m=function(y){if(r.current){var x=Math.ceil(y.touches[0].pageX),S=Math.ceil(y.touches[0].pageY),b=o.current-x,$=l.current-S,w=Math.abs(b)>Math.abs($);w?o.current=x:l.current=S;var O=n(w,w?b:$,!1,y);O&&y.preventDefault(),clearInterval(u.current),O&&(u.current=setInterval(function(){w?b*=Db:$*=Db;var I=Math.floor(w?b:$);(!n(w,I,!0)||Math.abs(I)<=.1)&&clearInterval(u.current)},16))}},p=function(){r.current=!1,f()},g=function(y){f(),y.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(y.touches[0].pageX),l.current=Math.ceil(y.touches[0].pageY),s.current=y.target,s.current.addEventListener("touchmove",m,{passive:!1}),s.current.addEventListener("touchend",p,{passive:!0}))};f=function(){s.current&&(s.current.removeEventListener("touchmove",m),s.current.removeEventListener("touchend",p))},rn(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",g),f(),clearInterval(u.current)}},[e])}function Fb(e){return Math.floor(Math.pow(e,.5))}function lg(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function J4(e,t,n){c.useEffect(function(){var r=t.current;if(e&&r){var o=!1,l,s,u=function(){Sn.cancel(l)},f=function h(){u(),l=Sn(function(){n(s),h()})},m=function(){o=!1,u()},p=function(y){if(!(y.target.draggable||y.button!==0)){var x=y;x._virtualHandled||(x._virtualHandled=!0,o=!0)}},g=function(y){if(o){var x=lg(y,!1),S=r.getBoundingClientRect(),b=S.top,$=S.bottom;if(x<=b){var w=b-x;s=-Fb(w),f()}else if(x>=$){var O=x-$;s=Fb(O),f()}else u()}};return r.addEventListener("mousedown",p),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",m),function(){r.removeEventListener("mousedown",p),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",m),u()}}},[e])}var ej=10;function tj(e,t,n,r,o,l,s,u){var f=c.useRef(),m=c.useState(null),p=ae(m,2),g=p[0],h=p[1];return rn(function(){if(g&&g.times<ej){if(!e.current){h(function(Z){return X({},Z)});return}l();var y=g.targetAlign,x=g.originAlign,S=g.index,b=g.offset,$=e.current.clientHeight,w=!1,O=y,I=null;if($){for(var R=y||x,P=0,T=0,N=0,M=Math.min(t.length-1,S),_=0;_<=M;_+=1){var L=o(t[_]);T=P;var z=n.get(L);N=T+(z===void 0?r:z),P=N}for(var A=R==="top"?b:$-b,B=M;B>=0;B-=1){var G=o(t[B]),V=n.get(G);if(V===void 0){w=!0;break}if(A-=V,A<=0)break}switch(R){case"top":I=T-b;break;case"bottom":I=N-$+b;break;default:{var H=e.current.scrollTop,D=H+$;T<H?O="top":N>D&&(O="bottom")}}I!==null&&s(I),I!==g.lastTop&&(w=!0)}w&&h(X(X({},g),{},{times:g.times+1,targetAlign:O,lastTop:I}))}},[g,e.current]),function(y){if(y==null){u();return}if(Sn.cancel(f.current),typeof y=="number")s(y);else if(y&&mt(y)==="object"){var x,S=y.align;"index"in y?x=y.index:x=t.findIndex(function(w){return o(w)===y.key});var b=y.offset,$=b===void 0?0:b;h({times:0,index:x,offset:$,originAlign:S})}}}var Hb=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,u=e.onStopMove,f=e.onScroll,m=e.horizontal,p=e.spinSize,g=e.containerSize,h=e.style,y=e.thumbStyle,x=e.showScrollBar,S=c.useState(!1),b=ae(S,2),$=b[0],w=b[1],O=c.useState(null),I=ae(O,2),R=I[0],P=I[1],T=c.useState(null),N=ae(T,2),M=N[0],_=N[1],L=!r,z=c.useRef(),A=c.useRef(),B=c.useState(x),G=ae(B,2),V=G[0],H=G[1],D=c.useRef(),Z=function(){x===!0||x===!1||(clearTimeout(D.current),H(!0),D.current=setTimeout(function(){H(!1)},3e3))},W=l-g||0,k=g-p||0,F=c.useMemo(function(){if(o===0||W===0)return 0;var pe=o/W;return pe*k},[o,W,k]),Q=function(se){se.stopPropagation(),se.preventDefault()},ne=c.useRef({top:F,dragging:$,pageY:R,startTop:M});ne.current={top:F,dragging:$,pageY:R,startTop:M};var ee=function(se){w(!0),P(lg(se,m)),_(ne.current.top),s(),se.stopPropagation(),se.preventDefault()};c.useEffect(function(){var pe=function(ce){ce.preventDefault()},se=z.current,ye=A.current;return se.addEventListener("touchstart",pe,{passive:!1}),ye.addEventListener("touchstart",ee,{passive:!1}),function(){se.removeEventListener("touchstart",pe),ye.removeEventListener("touchstart",ee)}},[]);var oe=c.useRef();oe.current=W;var fe=c.useRef();fe.current=k,c.useEffect(function(){if($){var pe,se=function(ce){var le=ne.current,be=le.dragging,xe=le.pageY,$e=le.startTop;Sn.cancel(pe);var Ne=z.current.getBoundingClientRect(),Le=g/(m?Ne.width:Ne.height);if(be){var Pe=(lg(ce,m)-xe)*Le,Be=$e;!L&&m?Be-=Pe:Be+=Pe;var Oe=oe.current,tt=fe.current,lt=tt?Be/tt:0,bt=Math.ceil(lt*Oe);bt=Math.max(bt,0),bt=Math.min(bt,Oe),pe=Sn(function(){f(bt,m)})}},ye=function(){w(!1),u()};return window.addEventListener("mousemove",se,{passive:!0}),window.addEventListener("touchmove",se,{passive:!0}),window.addEventListener("mouseup",ye,{passive:!0}),window.addEventListener("touchend",ye,{passive:!0}),function(){window.removeEventListener("mousemove",se),window.removeEventListener("touchmove",se),window.removeEventListener("mouseup",ye),window.removeEventListener("touchend",ye),Sn.cancel(pe)}}},[$]),c.useEffect(function(){return Z(),function(){clearTimeout(D.current)}},[o]),c.useImperativeHandle(t,function(){return{delayHidden:Z}});var me="".concat(n,"-scrollbar"),ue={position:"absolute",visibility:V?null:"hidden"},Se={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(ue,{height:8,left:0,right:0,bottom:0}),Object.assign(Se,U({height:"100%",width:p},L?"left":"right",F))):(Object.assign(ue,U({width:8,top:0,bottom:0},L?"right":"left",0)),Object.assign(Se,{width:"100%",height:p,top:F})),c.createElement("div",{ref:z,className:re(me,U(U(U({},"".concat(me,"-horizontal"),m),"".concat(me,"-vertical"),!m),"".concat(me,"-visible"),V)),style:X(X({},ue),h),onMouseDown:Q,onMouseMove:Z},c.createElement("div",{ref:A,className:re("".concat(me,"-thumb"),U({},"".concat(me,"-thumb-moving"),$)),style:X(X({},Se),y),onMouseDown:ee}))}),nj=20;function Vb(){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,nj),Math.floor(n)}var rj=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],oj=[],ij={overflowY:"auto",overflowAnchor:"none"};function aj(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,l=e.height,s=e.itemHeight,u=e.fullHeight,f=u===void 0?!0:u,m=e.style,p=e.data,g=e.children,h=e.itemKey,y=e.virtual,x=e.direction,S=e.scrollWidth,b=e.component,$=b===void 0?"div":b,w=e.onScroll,O=e.onVirtualScroll,I=e.onVisibleChange,R=e.innerProps,P=e.extraRender,T=e.styles,N=e.showScrollBar,M=N===void 0?"optional":N,_=Nt(e,rj),L=c.useCallback(function(ze){return typeof h=="function"?h(ze):ze==null?void 0:ze[h]},[h]),z=Y4(L),A=ae(z,4),B=A[0],G=A[1],V=A[2],H=A[3],D=!!(y!==!1&&l&&s),Z=c.useMemo(function(){return Object.values(V.maps).reduce(function(ze,We){return ze+We},0)},[V.id,V.maps]),W=D&&p&&(Math.max(s*p.length,Z)>l||!!S),k=x==="rtl",F=re(r,U({},"".concat(r,"-rtl"),k),o),Q=p||oj,ne=c.useRef(),ee=c.useRef(),oe=c.useRef(),fe=c.useState(0),me=ae(fe,2),ue=me[0],Se=me[1],pe=c.useState(0),se=ae(pe,2),ye=se[0],ve=se[1],ce=c.useState(!1),le=ae(ce,2),be=le[0],xe=le[1],$e=function(){xe(!0)},Ne=function(){xe(!1)},Le={getKey:L};function Pe(ze){Se(function(We){var Ct;typeof ze=="function"?Ct=ze(We):Ct=ze;var ct=Wt(Ct);return ne.current.scrollTop=ct,ct})}var Be=c.useRef({start:0,end:Q.length}),Oe=c.useRef(),tt=q4(Q,L),lt=ae(tt,1),bt=lt[0];Oe.current=bt;var st=c.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:Q.length-1,offset:void 0};if(!W){var ze;return{scrollHeight:((ze=ee.current)===null||ze===void 0?void 0:ze.offsetHeight)||0,start:0,end:Q.length-1,offset:void 0}}for(var We=0,Ct,ct,et,qe=Q.length,xt=0;xt<qe;xt+=1){var Lt=Q[xt],He=L(Lt),ut=V.get(He),$t=We+(ut===void 0?s:ut);$t>=ue&&Ct===void 0&&(Ct=xt,ct=We),$t>ue+l&&et===void 0&&(et=xt),We=$t}return Ct===void 0&&(Ct=0,ct=0,et=Math.ceil(l/s)),et===void 0&&(et=Q.length-1),et=Math.min(et+1,Q.length-1),{scrollHeight:We,start:Ct,end:et,offset:ct}},[W,D,ue,Q,H,l]),Ge=st.scrollHeight,it=st.start,Ve=st.end,dt=st.offset;Be.current.start=it,Be.current.end=Ve,c.useLayoutEffect(function(){var ze=V.getRecord();if(ze.size===1){var We=Array.from(ze.keys())[0],Ct=ze.get(We),ct=Q[it];if(ct&&Ct===void 0){var et=L(ct);if(et===We){var qe=V.get(We),xt=qe-s;Pe(function(Lt){return Lt+xt})}}}V.resetRecord()},[Ge]);var Xe=c.useState({width:0,height:l}),_e=ae(Xe,2),Ye=_e[0],Te=_e[1],Fe=function(We){Te({width:We.offsetWidth,height:We.offsetHeight})},wt=c.useRef(),pt=c.useRef(),Ht=c.useMemo(function(){return Vb(Ye.width,S)},[Ye.width,S]),Dt=c.useMemo(function(){return Vb(Ye.height,Ge)},[Ye.height,Ge]),on=Ge-l,hn=c.useRef(on);hn.current=on;function Wt(ze){var We=ze;return Number.isNaN(hn.current)||(We=Math.min(We,hn.current)),We=Math.max(We,0),We}var Mt=ue<=0,St=ue>=on,Ut=ye<=0,Bt=ye>=S,Ze=BC(Mt,St,Ut,Bt),yt=function(){return{x:k?-ye:ye,y:ue}},at=c.useRef(yt()),Ie=_n(function(ze){if(O){var We=X(X({},yt()),ze);(at.current.x!==We.x||at.current.y!==We.y)&&(O(We),at.current=We)}});function we(ze,We){var Ct=ze;We?(Ri.flushSync(function(){ve(Ct)}),Ie()):Pe(Ct)}function Ce(ze){var We=ze.currentTarget.scrollTop;We!==ue&&Pe(We),w==null||w(ze),Ie()}var je=function(We){var Ct=We,ct=S?S-Ye.width:0;return Ct=Math.max(Ct,0),Ct=Math.min(Ct,ct),Ct},Ke=_n(function(ze,We){We?(Ri.flushSync(function(){ve(function(Ct){var ct=Ct+(k?-ze:ze);return je(ct)})}),Ie()):Pe(function(Ct){var ct=Ct+ze;return ct})}),Qe=K4(D,Mt,St,Ut,Bt,!!S,Ke),_t=ae(Qe,2),kt=_t[0],It=_t[1];Z4(D,ne,function(ze,We,Ct,ct){var et=ct;return Ze(ze,We,Ct)?!1:!et||!et._virtualHandled?(et&&(et._virtualHandled=!0),kt({preventDefault:function(){},deltaX:ze?We:0,deltaY:ze?0:We}),!0):!1}),J4(W,ne,function(ze){Pe(function(We){return We+ze})}),rn(function(){function ze(Ct){var ct=Mt&&Ct.detail<0,et=St&&Ct.detail>0;D&&!ct&&!et&&Ct.preventDefault()}var We=ne.current;return We.addEventListener("wheel",kt,{passive:!1}),We.addEventListener("DOMMouseScroll",It,{passive:!0}),We.addEventListener("MozMousePixelScroll",ze,{passive:!1}),function(){We.removeEventListener("wheel",kt),We.removeEventListener("DOMMouseScroll",It),We.removeEventListener("MozMousePixelScroll",ze)}},[D,Mt,St]),rn(function(){if(S){var ze=je(ye);ve(ze),Ie({x:ze})}},[Ye.width,S]);var Pt=function(){var We,Ct;(We=wt.current)===null||We===void 0||We.delayHidden(),(Ct=pt.current)===null||Ct===void 0||Ct.delayHidden()},gn=tj(ne,Q,V,s,L,function(){return G(!0)},Pe,Pt);c.useImperativeHandle(t,function(){return{nativeElement:oe.current,getScrollInfo:yt,scrollTo:function(We){function Ct(ct){return ct&&mt(ct)==="object"&&("left"in ct||"top"in ct)}Ct(We)?(We.left!==void 0&&ve(je(We.left)),gn(We.top)):gn(We)}}}),rn(function(){if(I){var ze=Q.slice(it,Ve+1);I(ze,Q)}},[it,Ve,Q]);var un=X4(Q,L,V,s),yn=P==null?void 0:P({start:it,end:Ve,virtual:W,offsetX:ye,offsetY:dt,rtl:k,getSize:un}),On=U4(Q,it,Ve,S,ye,B,g,Le),qt=null;l&&(qt=X(U({},f?"height":"maxHeight",l),ij),D&&(qt.overflowY="hidden",S&&(qt.overflowX="hidden"),be&&(qt.pointerEvents="none")));var Jt={};return k&&(Jt.dir="rtl"),c.createElement("div",Ee({ref:oe,style:X(X({},m),{},{position:"relative"}),className:F},Jt,_),c.createElement(oo,{onResize:Fe},c.createElement($,{className:"".concat(r,"-holder"),style:qt,ref:ne,onScroll:Ce,onMouseEnter:Pt},c.createElement(LC,{prefixCls:r,height:Ge,offsetX:ye,offsetY:dt,scrollWidth:S,onInnerResize:G,ref:ee,innerProps:R,rtl:k,extra:yn},On))),W&&Ge>l&&c.createElement(Hb,{ref:wt,prefixCls:r,scrollOffset:ue,scrollRange:Ge,rtl:k,onScroll:we,onStartMove:$e,onStopMove:Ne,spinSize:Dt,containerSize:Ye.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:M}),W&&S>Ye.width&&c.createElement(Hb,{ref:pt,prefixCls:r,scrollOffset:ye,scrollRange:S,rtl:k,onScroll:we,onStartMove:$e,onStopMove:Ne,spinSize:Ht,containerSize:Ye.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:M}))}var AC=c.forwardRef(aj);AC.displayName="List";function lj(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var sj=["disabled","title","children","style","className"];function Wb(e){return typeof e=="string"||typeof e=="number"}var cj=function(t,n){var r=q_(),o=r.prefixCls,l=r.id,s=r.open,u=r.multiple,f=r.mode,m=r.searchValue,p=r.toggleOpen,g=r.notFoundContent,h=r.onPopupScroll,y=c.useContext(qg),x=y.maxCount,S=y.flattenOptions,b=y.onActiveValue,$=y.defaultActiveFirstOption,w=y.onSelect,O=y.menuItemSelectedIcon,I=y.rawValues,R=y.fieldNames,P=y.virtual,T=y.direction,N=y.listHeight,M=y.listItemHeight,_=y.optionRender,L="".concat(o,"-item"),z=Ps(function(){return S},[s,S],function(pe,se){return se[0]&&pe[1]!==se[1]}),A=c.useRef(null),B=c.useMemo(function(){return u&&og(x)&&(I==null?void 0:I.size)>=x},[u,x,I==null?void 0:I.size]),G=function(se){se.preventDefault()},V=function(se){var ye;(ye=A.current)===null||ye===void 0||ye.scrollTo(typeof se=="number"?{index:se}:se)},H=c.useCallback(function(pe){return f==="combobox"?!1:I.has(pe)},[f,Ae(I).toString(),I.size]),D=function(se){for(var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=z.length,ce=0;ce<ve;ce+=1){var le=(se+ce*ye+ve)%ve,be=z[le]||{},xe=be.group,$e=be.data;if(!xe&&!($e!=null&&$e.disabled)&&(H($e.value)||!B))return le}return-1},Z=c.useState(function(){return D(0)}),W=ae(Z,2),k=W[0],F=W[1],Q=function(se){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(se);var ve={source:ye?"keyboard":"mouse"},ce=z[se];if(!ce){b(null,-1,ve);return}b(ce.value,se,ve)};c.useEffect(function(){Q($!==!1?D(0):-1)},[z.length,m]);var ne=c.useCallback(function(pe){return f==="combobox"?String(pe).toLowerCase()===m.toLowerCase():I.has(pe)},[f,m,Ae(I).toString(),I.size]);c.useEffect(function(){var pe=setTimeout(function(){if(!u&&s&&I.size===1){var ye=Array.from(I)[0],ve=z.findIndex(function(ce){var le=ce.data;return m?String(le.value).startsWith(m):le.value===ye});ve!==-1&&(Q(ve),V(ve))}});if(s){var se;(se=A.current)===null||se===void 0||se.scrollTo(void 0)}return function(){return clearTimeout(pe)}},[s,m]);var ee=function(se){se!==void 0&&w(se,{selected:!I.has(se)}),u||p(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(se){var ye=se.which,ve=se.ctrlKey;switch(ye){case Ue.N:case Ue.P:case Ue.UP:case Ue.DOWN:{var ce=0;if(ye===Ue.UP?ce=-1:ye===Ue.DOWN?ce=1:lj()&&ve&&(ye===Ue.N?ce=1:ye===Ue.P&&(ce=-1)),ce!==0){var le=D(k+ce,ce);V(le),Q(le,!0)}break}case Ue.TAB:case Ue.ENTER:{var be,xe=z[k];xe&&!(xe!=null&&(be=xe.data)!==null&&be!==void 0&&be.disabled)&&!B?ee(xe.value):ee(void 0),s&&se.preventDefault();break}case Ue.ESC:p(!1),s&&se.stopPropagation()}},onKeyUp:function(){},scrollTo:function(se){V(se)}}}),z.length===0)return c.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(L,"-empty"),onMouseDown:G},g);var oe=Object.keys(R).map(function(pe){return R[pe]}),fe=function(se){return se.label};function me(pe,se){var ye=pe.group;return{role:ye?"presentation":"option",id:"".concat(l,"_list_").concat(se)}}var ue=function(se){var ye=z[se];if(!ye)return null;var ve=ye.data||{},ce=ve.value,le=ye.group,be=_o(ve,!0),xe=fe(ye);return ye?c.createElement("div",Ee({"aria-label":typeof xe=="string"&&!le?xe:null},be,{key:se},me(ye,se),{"aria-selected":ne(ce)}),ce):null},Se={role:"listbox",id:"".concat(l,"_list")};return c.createElement(c.Fragment,null,P&&c.createElement("div",Ee({},Se,{style:{height:0,width:0,overflow:"hidden"}}),ue(k-1),ue(k),ue(k+1)),c.createElement(AC,{itemKey:"key",ref:A,data:z,height:N,itemHeight:M,fullHeight:!1,onMouseDown:G,onScroll:h,virtual:P,direction:T,innerProps:P?null:Se},function(pe,se){var ye=pe.group,ve=pe.groupOption,ce=pe.data,le=pe.label,be=pe.value,xe=ce.key;if(ye){var $e,Ne=($e=ce.title)!==null&&$e!==void 0?$e:Wb(le)?le.toString():void 0;return c.createElement("div",{className:re(L,"".concat(L,"-group"),ce.className),title:Ne},le!==void 0?le:xe)}var Le=ce.disabled,Pe=ce.title;ce.children;var Be=ce.style,Oe=ce.className,tt=Nt(ce,sj),lt=Vn(tt,oe),bt=H(be),st=Le||!bt&&B,Ge="".concat(L,"-option"),it=re(L,Ge,Oe,U(U(U(U({},"".concat(Ge,"-grouped"),ve),"".concat(Ge,"-active"),k===se&&!st),"".concat(Ge,"-disabled"),st),"".concat(Ge,"-selected"),bt)),Ve=fe(pe),dt=!O||typeof O=="function"||bt,Xe=typeof Ve=="number"?Ve:Ve||be,_e=Wb(Xe)?Xe.toString():void 0;return Pe!==void 0&&(_e=Pe),c.createElement("div",Ee({},_o(lt),P?{}:me(pe,se),{"aria-selected":ne(be),className:it,title:_e,onMouseMove:function(){k===se||st||Q(se)},onClick:function(){st||ee(be)},style:Be}),c.createElement("div",{className:"".concat(Ge,"-content")},typeof _=="function"?_(pe,{index:se}):Xe),c.isValidElement(O)||bt,dt&&c.createElement(yd,{className:"".concat(L,"-option-state"),customizeIcon:O,customizeIconProps:{value:be,disabled:st,isSelected:bt}},bt?"✓":null))}))},uj=c.forwardRef(cj);const dj=(function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var l=n.current,s=l.values,u=l.options,f=e.map(function(g){if(g.label===void 0){var h;return X(X({},g),{},{label:(h=s.get(g.value))===null||h===void 0?void 0:h.label})}return g}),m=new Map,p=new Map;return f.forEach(function(g){m.set(g.value,g),p.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=m,n.current.options=p,f},[e,t]),o=c.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,o]});function Wm(e,t){return jC(e).join("").toUpperCase().includes(t)}const fj=(function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var l=t.options,s=t.label,u=t.value,f=[],m=typeof r=="function",p=n.toUpperCase(),g=m?r:function(y,x){return o?Wm(x[o],p):x[l]?Wm(x[s!=="children"?s:"label"],p):Wm(x[u],p)},h=m?function(y){return ig(y)}:function(y){return y};return e.forEach(function(y){if(y[l]){var x=g(n,h(y));if(x)f.push(y);else{var S=y[l].filter(function(b){return g(n,h(b))});S.length&&f.push(X(X({},y),{},U({},l,S)))}return}g(n,h(y))&&f.push(y)}),f},[e,r,o,n,t])});var Ub=0,mj=br();function pj(){var e;return mj?(e=Ub,Ub+=1):e="TEST_OR_SSR",e}function gj(e){var t=c.useState(),n=ae(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(pj()))},[]),e||r}var vj=["children","value"],hj=["children"];function yj(e){var t=e,n=t.key,r=t.props,o=r.children,l=r.value,s=Nt(r,vj);return X({key:n,value:l!==void 0?l:n,children:o},s)}function DC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Er(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,l=o.type.isSelectOptGroup,s=o.key,u=o.props,f=u.children,m=Nt(u,hj);return t||!l?yj(n):X(X({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},m),{},{options:DC(f)})}).filter(function(n){return n})}var bj=function(t,n,r,o,l){return c.useMemo(function(){var s=t,u=!t;u&&(s=DC(n));var f=new Map,m=new Map,p=function(y,x,S){S&&typeof S=="string"&&y.set(x[S],x)},g=function h(y){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<y.length;S+=1){var b=y[S];!b[r.options]||x?(f.set(b[r.value],b),p(m,b,r.label),p(m,b,o),p(m,b,l)):h(b[r.options],!0)}};return g(s),{options:s,valueOptions:f,labelOptions:m}},[t,n,r,o,l])};function Gb(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Sj=["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"],xj=["inputValue"];function Cj(e){return!e||mt(e)!=="object"}var wj=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,l=o===void 0?"rc-select":o,s=e.backfill,u=e.fieldNames,f=e.inputValue,m=e.searchValue,p=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,y=e.onSelect,x=e.onDeselect,S=e.dropdownMatchSelectWidth,b=S===void 0?!0:S,$=e.filterOption,w=e.filterSort,O=e.optionFilterProp,I=e.optionLabelProp,R=e.options,P=e.optionRender,T=e.children,N=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,_=e.virtual,L=e.direction,z=e.listHeight,A=z===void 0?200:z,B=e.listItemHeight,G=B===void 0?20:B,V=e.labelRender,H=e.value,D=e.defaultValue,Z=e.labelInValue,W=e.onChange,k=e.maxCount,F=Nt(e,Sj),Q=gj(n),ne=ag(r),ee=!!(!R&&T),oe=c.useMemo(function(){return $===void 0&&r==="combobox"?!1:$},[$,r]),fe=c.useMemo(function(){return kC(u,ee)},[JSON.stringify(u),ee]),me=Hn("",{value:m!==void 0?m:f,postState:function(we){return we||""}}),ue=ae(me,2),Se=ue[0],pe=ue[1],se=bj(R,T,fe,O,I),ye=se.valueOptions,ve=se.labelOptions,ce=se.options,le=c.useCallback(function(Ie){var we=jC(Ie);return we.map(function(Ce){var je,Ke,Qe,_t,kt;if(Cj(Ce))je=Ce;else{var It;Qe=Ce.key,Ke=Ce.label,je=(It=Ce.value)!==null&&It!==void 0?It:Qe}var Pt=ye.get(je);if(Pt){var gn;Ke===void 0&&(Ke=Pt==null?void 0:Pt[I||fe.label]),Qe===void 0&&(Qe=(gn=Pt==null?void 0:Pt.key)!==null&&gn!==void 0?gn:je),_t=Pt==null?void 0:Pt.disabled,kt=Pt==null?void 0:Pt.title}return{label:Ke,value:je,key:Qe,disabled:_t,title:kt}})},[fe,I,ye]),be=Hn(D,{value:H}),xe=ae(be,2),$e=xe[0],Ne=xe[1],Le=c.useMemo(function(){var Ie,we=ne&&$e===null?[]:$e,Ce=le(we);return r==="combobox"&&p4((Ie=Ce[0])===null||Ie===void 0?void 0:Ie.value)?[]:Ce},[$e,le,r,ne]),Pe=dj(Le,ye),Be=ae(Pe,2),Oe=Be[0],tt=Be[1],lt=c.useMemo(function(){if(!r&&Oe.length===1){var Ie=Oe[0];if(Ie.value===null&&(Ie.label===null||Ie.label===void 0))return[]}return Oe.map(function(we){var Ce;return X(X({},we),{},{label:(Ce=typeof V=="function"?V(we):we.label)!==null&&Ce!==void 0?Ce:we.value})})},[r,Oe,V]),bt=c.useMemo(function(){return new Set(Oe.map(function(Ie){return Ie.value}))},[Oe]);c.useEffect(function(){if(r==="combobox"){var Ie,we=(Ie=Oe[0])===null||Ie===void 0?void 0:Ie.value;pe(m4(we)?String(we):"")}},[Oe]);var st=Gb(function(Ie,we){var Ce=we??Ie;return U(U({},fe.value,Ie),fe.label,Ce)}),Ge=c.useMemo(function(){if(r!=="tags")return ce;var Ie=Ae(ce),we=function(je){return ye.has(je)};return Ae(Oe).sort(function(Ce,je){return Ce.value<je.value?-1:1}).forEach(function(Ce){var je=Ce.value;we(je)||Ie.push(st(je,Ce.label))}),Ie},[st,ce,ye,Oe,r]),it=fj(Ge,fe,Se,oe,O),Ve=c.useMemo(function(){return r!=="tags"||!Se||it.some(function(Ie){return Ie[O||"value"]===Se})||it.some(function(Ie){return Ie[fe.value]===Se})?it:[st(Se)].concat(Ae(it))},[st,O,r,it,Se,fe]),dt=function Ie(we){var Ce=Ae(we).sort(function(je,Ke){return w(je,Ke,{searchValue:Se})});return Ce.map(function(je){return Array.isArray(je.options)?X(X({},je),{},{options:je.options.length>0?Ie(je.options):je.options}):je})},Xe=c.useMemo(function(){return w?dt(Ve):Ve},[Ve,w,Se]),_e=c.useMemo(function(){return B4(Xe,{fieldNames:fe,childrenAsData:ee})},[Xe,fe,ee]),Ye=function(we){var Ce=le(we);if(Ne(Ce),W&&(Ce.length!==Oe.length||Ce.some(function(Qe,_t){var kt;return((kt=Oe[_t])===null||kt===void 0?void 0:kt.value)!==(Qe==null?void 0:Qe.value)}))){var je=Z?Ce:Ce.map(function(Qe){return Qe.value}),Ke=Ce.map(function(Qe){return ig(tt(Qe.value))});W(ne?je:je[0],ne?Ke:Ke[0])}},Te=c.useState(null),Fe=ae(Te,2),wt=Fe[0],pt=Fe[1],Ht=c.useState(0),Dt=ae(Ht,2),on=Dt[0],hn=Dt[1],Wt=N!==void 0?N:r!=="combobox",Mt=c.useCallback(function(Ie,we){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},je=Ce.source,Ke=je===void 0?"keyboard":je;hn(we),s&&r==="combobox"&&Ie!==null&&Ke==="keyboard"&&pt(String(Ie))},[s,r]),St=function(we,Ce,je){var Ke=function(){var qt,Jt=tt(we);return[Z?{label:Jt==null?void 0:Jt[fe.label],value:we,key:(qt=Jt==null?void 0:Jt.key)!==null&&qt!==void 0?qt:we}:we,ig(Jt)]};if(Ce&&y){var Qe=Ke(),_t=ae(Qe,2),kt=_t[0],It=_t[1];y(kt,It)}else if(!Ce&&x&&je!=="clear"){var Pt=Ke(),gn=ae(Pt,2),un=gn[0],yn=gn[1];x(un,yn)}},Ut=Gb(function(Ie,we){var Ce,je=ne?we.selected:!0;je?Ce=ne?[].concat(Ae(Oe),[Ie]):[Ie]:Ce=Oe.filter(function(Ke){return Ke.value!==Ie}),Ye(Ce),St(Ie,je),r==="combobox"?pt(""):(!ag||h)&&(pe(""),pt(""))}),Bt=function(we,Ce){Ye(we);var je=Ce.type,Ke=Ce.values;(je==="remove"||je==="clear")&&Ke.forEach(function(Qe){St(Qe.value,!1,je)})},Ze=function(we,Ce){if(pe(we),pt(null),Ce.source==="submit"){var je=(we||"").trim();if(je){var Ke=Array.from(new Set([].concat(Ae(bt),[je])));Ye(Ke),St(je,!0),pe("")}return}Ce.source!=="blur"&&(r==="combobox"&&Ye(we),p==null||p(we))},yt=function(we){var Ce=we;r!=="tags"&&(Ce=we.map(function(Ke){var Qe=ve.get(Ke);return Qe==null?void 0:Qe.value}).filter(function(Ke){return Ke!==void 0}));var je=Array.from(new Set([].concat(Ae(bt),Ae(Ce))));Ye(je),je.forEach(function(Ke){St(Ke,!0)})},at=c.useMemo(function(){var Ie=_!==!1&&b!==!1;return X(X({},se),{},{flattenOptions:_e,onActiveValue:Mt,defaultActiveFirstOption:Wt,onSelect:Ut,menuItemSelectedIcon:M,rawValues:bt,fieldNames:fe,virtual:Ie,direction:L,listHeight:A,listItemHeight:G,childrenAsData:ee,maxCount:k,optionRender:P})},[k,se,_e,Mt,Wt,Ut,M,bt,fe,_,b,L,A,G,ee,P]);return c.createElement(qg.Provider,{value:at},c.createElement(V4,Ee({},F,{id:Q,prefixCls:l,ref:t,omitDomProps:xj,mode:r,displayValues:lt,onDisplayValuesChange:Bt,direction:L,searchValue:Se,onSearch:Ze,autoClearSearchValue:h,onSearchSplit:yt,dropdownMatchSelectWidth:b,OptionList:uj,emptyOptions:!_e.length,activeValue:wt,activeDescendantId:"".concat(Q,"_list_").concat(on)})))}),Qg=wj;Qg.Option=Xg;Qg.OptGroup=Kg;function FC(e,t,n){return re({[`${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 HC=(e,t)=>t||e,$j=()=>{const[,e]=Rr(),[t]=ti("Empty"),r=new sn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.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"}),c.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)"}),c.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"}),c.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"})),c.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"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ej=()=>{const[,e]=Rr(),[t]=ti("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:l}=e,{borderColor:s,shadowColor:u,contentColor:f}=c.useMemo(()=>({borderColor:new sn(n).onBackground(l).toHexString(),shadowColor:new sn(r).onBackground(l).toHexString(),contentColor:new sn(o).onBackground(l).toHexString()}),[n,r,o,l]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:s},c.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"}),c.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:f}))))},Oj=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:l,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:s,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}}}}},Ij=mn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Qt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Oj(o)});var Rj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const VC=c.createElement($j,null),WC=c.createElement(Ej,null),bo=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:l,description:s,children:u,imageStyle:f,style:m,classNames:p,styles:g}=e,h=Rj(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:x,className:S,style:b,classNames:$,styles:w,image:O}=Ir("empty"),I=y("empty",o),[R,P,T]=Ij(I),[N]=ti("Empty"),M=typeof s<"u"?s:N==null?void 0:N.description,_=typeof M=="string"?M:"empty",L=(t=l??O)!==null&&t!==void 0?t:VC;let z=null;return typeof L=="string"?z=c.createElement("img",{draggable:!1,alt:_,src:L}):z=L,R(c.createElement("div",Object.assign({className:re(P,T,I,S,{[`${I}-normal`]:L===WC,[`${I}-rtl`]:x==="rtl"},n,r,$.root,p==null?void 0:p.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),b),g==null?void 0:g.root),m)},h),c.createElement("div",{className:re(`${I}-image`,$.image,p==null?void 0:p.image),style:Object.assign(Object.assign(Object.assign({},f),w.image),g==null?void 0:g.image)},z),M&&c.createElement("div",{className:re(`${I}-description`,$.description,p==null?void 0:p.description),style:Object.assign(Object.assign({},w.description),g==null?void 0:g.description)},M),u&&c.createElement("div",{className:re(`${I}-footer`,$.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign({},w.footer),g==null?void 0:g.footer)},u)))};bo.PRESENTED_IMAGE_DEFAULT=VC;bo.PRESENTED_IMAGE_SIMPLE=WC;const UC=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(Rt),r=n("empty");switch(t){case"Table":case"List":return Y.createElement(bo,{image:bo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Y.createElement(bo,{image:bo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Y.createElement(bo,null)}},GC=(e,t,n)=>{var r,o;const{variant:l,[e]:s}=c.useContext(Rt),u=c.useContext(XN),f=s==null?void 0:s.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=(o=(r=u??f)!==null&&r!==void 0?r:l)!==null&&o!==void 0?o:"outlined";const p=$I.includes(m);return[m,p]},Pj=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Tj(e,t){return e||Pj(t)}const qb=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"}},Mj=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},An(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,[`
|
|
224
|
-
${o}${u}bottomLeft,
|
|
225
|
-
${l}${u}bottomLeft
|
|
226
|
-
`]:{animationName:Bg},[`
|
|
227
|
-
${o}${u}topLeft,
|
|
228
|
-
${l}${u}topLeft,
|
|
229
|
-
${o}${u}topRight,
|
|
230
|
-
${l}${u}topRight
|
|
231
|
-
`]:{animationName:Dg},[`${s}${u}bottomLeft`]:{animationName:Ag},[`
|
|
232
|
-
${s}${u}topLeft,
|
|
233
|
-
${s}${u}topRight
|
|
234
|
-
`]:{animationName:Fg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},qb(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"},Ss),"&-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({},qb(e)),{color:e.colorTextDisabled})}),[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Ni(e,"slide-up"),Ni(e,"slide-down"),ju(e,"move-up"),ju(e,"move-down")]},Nj=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,l=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(l).sub(o).equal(),0);return{basePadding:l,containerPadding:s,itemHeight:J(t),itemLineHeight:J(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},_j=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},jj=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:l,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:u,colorIcon:f,colorIconHover:m,INTERNAL_FIXED_ITEM_MARGIN:p}=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:p,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(p).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ml()),{display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},zj=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,s=_j(e),u=t?`${n}-${t}`:"",f=Nj(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},jj(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:f.basePadding,paddingBlock:f.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${J(r)} 0`,lineHeight:J(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:f.itemHeight,lineHeight:J(f.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:J(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
235
|
-
${n}-prefix + ${n}-selection-wrap
|
|
236
|
-
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:f.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:J(l),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(f.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Um(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
237
|
-
&${n}-show-arrow ${n}-selector,
|
|
238
|
-
&${n}-allow-clear ${n}-selector
|
|
239
|
-
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[zj(e,t),o]}const kj=e=>{const{componentCls:t}=e,n=Qt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Qt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Um(e),Um(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Um(r,"lg")]};function Gm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},An(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:J(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
240
|
-
${n}-selection-item,
|
|
241
|
-
${n}-selection-placeholder
|
|
242
|
-
`]:{display:"block",padding:0,lineHeight:J(l),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"'}}),[`
|
|
243
|
-
&${n}-show-arrow ${n}-selection-item,
|
|
244
|
-
&${n}-show-arrow ${n}-selection-search,
|
|
245
|
-
&${n}-show-arrow ${n}-selection-placeholder
|
|
246
|
-
`]:{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 ${J(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:J(l)}}},[`&${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 ${J(r)}`,"&:after":{display:"none"}}}}}}}function Lj(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Gm(e),Gm(Qt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${J(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
247
|
-
&${t}-show-arrow ${t}-selection-item,
|
|
248
|
-
&${t}-show-arrow ${t}-selection-placeholder
|
|
249
|
-
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Gm(Qt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Bj=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:l,controlHeightLG:s,paddingXXS:u,controlPaddingHorizontal:f,zIndexPopupBase:m,colorText:p,fontWeightStrong:g,controlItemBgActive:h,controlItemBgHover:y,colorBgContainer:x,colorFillSecondary:S,colorBgContainerDisabled:b,colorTextDisabled:$,colorPrimaryHover:w,colorPrimary:O,controlOutline:I}=e,R=u*2,P=r*2,T=Math.min(o-R,o-P),N=Math.min(l-R,l-P),M=Math.min(s-R,s-P);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:m+50,optionSelectedColor:p,optionSelectedFontWeight:g,optionSelectedBg:h,optionActiveBg:y,optionPadding:`${(o-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:x,clearBg:x,singleItemHeightLG:s,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:N,multipleItemHeightLG:M,multipleSelectorBgDisabled:b,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:O,activeOutlineColor:I,selectAffixPadding:u}},qC=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${J(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 ${J(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Kb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qC(e,t))}),Aj=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},qC(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Kb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Kb(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:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),KC=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${J(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}}}},Xb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},KC(e,t))}),Dj=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},KC(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Xb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Xb(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:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Fj=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${J(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:`${J(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}}}}),XC=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${J(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Qb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},XC(e,t))}),Hj=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},XC(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Qb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Qb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Vj=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Aj(e)),Dj(e)),Fj(e)),Hj(e))}),Wj=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"}}}},Uj=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"}}}},Gj=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,l={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},An(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Wj(e)),Uj(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ss),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ss),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ml()),{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)":l,"&:hover":l}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},qj=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Gj(e),Lj(e),kj(e),Mj(e),{[`${t}-rtl`]:{direction:"rtl"}},pd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Kj=mn("Select",(e,{rootPrefixCls:t})=>{const n=Qt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[qj(n),Vj(n)]},Bj,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Xj={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"},Qj=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:Xj}))},QC=c.forwardRef(Qj),Yj={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"},Zj=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:Yj}))},YC=c.forwardRef(Zj),Jj={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"},ez=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:Jj}))},tz=c.forwardRef(ez);function nz({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:l,hasFeedback:s,prefixCls:u,showSuffixIcon:f,feedbackIcon:m,showArrow:p,componentName:g}){const h=t??c.createElement(nd,null),y=$=>e===null&&!s&&!p?null:c.createElement(c.Fragment,null,f!==!1&&$,s&&m);let x=null;if(e!==void 0)x=y(e);else if(o)x=y(c.createElement(rd,{spin:!0}));else{const $=`${u}-suffix`;x=({open:w,showSearch:O})=>y(w&&O?c.createElement(tz,{className:$}):c.createElement(YC,{className:$}))}let S=null;n!==void 0?S=n:l?S=c.createElement(QC,null):S=null;let b=null;return r!==void 0?b=r:b=c.createElement(gl,null),{clearIcon:h,suffixIcon:x,itemIcon:S,removeIcon:b}}function rz(e){return Y.useMemo(()=>{if(e)return(...t)=>Y.createElement(gd,{space:!0},e.apply(void 0,t))},[e])}function oz(e,t){return t!==void 0?t:e!==null}var iz=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 ZC="SECRET_COMBOBOX_MODE_DO_NOT_USE",az=(e,t)=>{var n,r,o,l,s;const{prefixCls:u,bordered:f,className:m,rootClassName:p,getPopupContainer:g,popupClassName:h,dropdownClassName:y,listHeight:x=256,placement:S,listItemHeight:b,size:$,disabled:w,notFoundContent:O,status:I,builtinPlacements:R,dropdownMatchSelectWidth:P,popupMatchSelectWidth:T,direction:N,style:M,allowClear:_,variant:L,dropdownStyle:z,transitionName:A,tagRender:B,maxCount:G,prefix:V,dropdownRender:H,popupRender:D,onDropdownVisibleChange:Z,onOpenChange:W,styles:k,classNames:F}=e,Q=iz(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:ne,getPrefixCls:ee,renderEmpty:oe,direction:fe,virtual:me,popupMatchSelectWidth:ue,popupOverflow:Se}=c.useContext(Rt),{showSearch:pe,style:se,styles:ye,className:ve,classNames:ce}=Ir("select"),[,le]=Rr(),be=b??(le==null?void 0:le.controlHeight),xe=ee("select",u),$e=ee(),Ne=N??fe,{compactSize:Le,compactItemClassnames:Pe}=js(xe,Ne),[Be,Oe]=GC("select",L,f),tt=ni(xe),[lt,bt,st]=Kj(xe,tt),Ge=c.useMemo(()=>{const{mode:je}=e;if(je!=="combobox")return je===ZC?"combobox":je},[e.mode]),it=Ge==="multiple"||Ge==="tags",Ve=oz(e.suffixIcon,e.showArrow),dt=(n=T??P)!==null&&n!==void 0?n:ue,Xe=((r=k==null?void 0:k.popup)===null||r===void 0?void 0:r.root)||((o=ye.popup)===null||o===void 0?void 0:o.root)||z,_e=rz(D||H),Ye=W||Z,{status:Te,hasFeedback:Fe,isFormItemInput:wt,feedbackIcon:pt}=c.useContext(ku),Ht=HC(Te,I);let Dt;O!==void 0?Dt=O:Ge==="combobox"?Dt=null:Dt=(oe==null?void 0:oe("Select"))||c.createElement(UC,{componentName:"Select"});const{suffixIcon:on,itemIcon:hn,removeIcon:Wt,clearIcon:Mt}=nz(Object.assign(Object.assign({},Q),{multiple:it,hasFeedback:Fe,feedbackIcon:pt,showSuffixIcon:Ve,prefixCls:xe,componentName:"Select"})),St=_===!0?{clearIcon:Mt}:_,Ut=Vn(Q,["suffixIcon","itemIcon"]),Bt=re(((l=F==null?void 0:F.popup)===null||l===void 0?void 0:l.root)||((s=ce==null?void 0:ce.popup)===null||s===void 0?void 0:s.root)||h||y,{[`${xe}-dropdown-${Ne}`]:Ne==="rtl"},p,ce.root,F==null?void 0:F.root,st,tt,bt),Ze=ri(je=>{var Ke;return(Ke=$??Le)!==null&&Ke!==void 0?Ke:je}),yt=c.useContext(il),at=w??yt,Ie=re({[`${xe}-lg`]:Ze==="large",[`${xe}-sm`]:Ze==="small",[`${xe}-rtl`]:Ne==="rtl",[`${xe}-${Be}`]:Oe,[`${xe}-in-form-item`]:wt},FC(xe,Ht,Fe),Pe,ve,m,ce.root,F==null?void 0:F.root,p,st,tt,bt),we=c.useMemo(()=>S!==void 0?S:Ne==="rtl"?"bottomRight":"bottomLeft",[S,Ne]),[Ce]=Ns("SelectLike",Xe==null?void 0:Xe.zIndex);return lt(c.createElement(Qg,Object.assign({ref:t,virtual:me,showSearch:pe},Ut,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),k==null?void 0:k.root),se),M),dropdownMatchSelectWidth:dt,transitionName:Mi($e,"slide-up",A),builtinPlacements:Tj(R,Se),listHeight:x,listItemHeight:be,mode:Ge,prefixCls:xe,placement:we,direction:Ne,prefix:V,suffixIcon:on,menuItemSelectedIcon:hn,removeIcon:Wt,allowClear:St,notFoundContent:Dt,className:Ie,getPopupContainer:g||ne,dropdownClassName:Bt,disabled:at,dropdownStyle:Object.assign(Object.assign({},Xe),{zIndex:Ce}),maxCount:it?G:void 0,tagRender:it?B:void 0,dropdownRender:_e,onDropdownVisibleChange:Ye})))},yl=c.forwardRef(az),lz=IC(yl,"dropdownAlign");yl.SECRET_COMBOBOX_MODE_DO_NOT_USE=ZC;yl.Option=Xg;yl.OptGroup=Kg;yl._InternalPanelDoNotUseOrYouWillBeFired=lz;const JC=(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)},ew=(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)},na=["xxl","xl","lg","md","sm","xs"],sz=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)`}),cz=e=>{const t=e,n=[].concat(na).reverse();return n.forEach((r,o)=>{const l=r.toUpperCase(),s=`screen${l}Min`,u=`screen${l}`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`);if(o<n.length-1){const f=`screen${l}Max`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`);const p=`screen${n[o+1].toUpperCase()}Min`;if(!(t[f]<=t[p]))throw new Error(`${f}<=${p} fails : !(${t[f]}<=${t[p]})`)}}),e},uz=()=>{const[,e]=Rr(),t=sz(cz(e));return Y.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return o=l,n.forEach(s=>s(o)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(o),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.entries(t).forEach(([l,s])=>{const u=({matches:m})=>{this.dispatch(Object.assign(Object.assign({},o),{[l]:m}))},f=window.matchMedia(s);JC(f,u),this.matchHandlers[s]={mql:f,listener:u},u(f)})},unregister(){Object.values(t).forEach(l=>{const s=this.matchHandlers[l];ew(s==null?void 0:s.mql,s==null?void 0:s.listener)}),n.clear()}}},[t])};function Yg(e=!0,t={}){const n=c.useRef(t),[,r]=pP(),o=uz();return rn(()=>{const l=o.subscribe(s=>{n.current=s,e&&r()});return()=>o.unsubscribe(l)},[]),n.current}const Bu=e=>e?typeof e=="function"?e():e:null;function Zg(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,l=e.bodyClassName,s=e.className,u=e.style;return c.createElement("div",{className:re("".concat(n,"-content"),s),style:u},c.createElement("div",{className:re("".concat(n,"-inner"),l),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Aa={shiftX:64,adjustY:1},Da={adjustX:1,shiftY:!0},to=[0,0],dz={left:{points:["cr","cl"],overflow:Da,offset:[-4,0],targetOffset:to},right:{points:["cl","cr"],overflow:Da,offset:[4,0],targetOffset:to},top:{points:["bc","tc"],overflow:Aa,offset:[0,-4],targetOffset:to},bottom:{points:["tc","bc"],overflow:Aa,offset:[0,4],targetOffset:to},topLeft:{points:["bl","tl"],overflow:Aa,offset:[0,-4],targetOffset:to},leftTop:{points:["tr","tl"],overflow:Da,offset:[-4,0],targetOffset:to},topRight:{points:["br","tr"],overflow:Aa,offset:[0,-4],targetOffset:to},rightTop:{points:["tl","tr"],overflow:Da,offset:[4,0],targetOffset:to},bottomRight:{points:["tr","br"],overflow:Aa,offset:[0,4],targetOffset:to},rightBottom:{points:["bl","br"],overflow:Da,offset:[4,0],targetOffset:to},bottomLeft:{points:["tl","bl"],overflow:Aa,offset:[0,4],targetOffset:to},leftBottom:{points:["br","bl"],overflow:Da,offset:[-4,0],targetOffset:to}},fz=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],mz=function(t,n){var r=t.overlayClassName,o=t.trigger,l=o===void 0?["hover"]:o,s=t.mouseEnterDelay,u=s===void 0?0:s,f=t.mouseLeaveDelay,m=f===void 0?.1:f,p=t.overlayStyle,g=t.prefixCls,h=g===void 0?"rc-tooltip":g,y=t.children,x=t.onVisibleChange,S=t.afterVisibleChange,b=t.transitionName,$=t.animation,w=t.motion,O=t.placement,I=O===void 0?"right":O,R=t.align,P=R===void 0?{}:R,T=t.destroyTooltipOnHide,N=T===void 0?!1:T,M=t.defaultVisible,_=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,A=t.id,B=t.showArrow,G=B===void 0?!0:B,V=t.classNames,H=t.styles,D=Nt(t,fz),Z=Wg(A),W=c.useRef(null);c.useImperativeHandle(n,function(){return W.current});var k=X({},D);"visible"in t&&(k.popupVisible=t.visible);var F=function(){return c.createElement(Zg,{key:"content",prefixCls:h,id:Z,bodyClassName:V==null?void 0:V.body,overlayInnerStyle:X(X({},L),H==null?void 0:H.body)},z)},Q=function(){var ee=c.Children.only(y),oe=(ee==null?void 0:ee.props)||{},fe=X(X({},oe),{},{"aria-describedby":z?Z:null});return c.cloneElement(y,fe)};return c.createElement(bd,Ee({popupClassName:re(r,V==null?void 0:V.root),prefixCls:h,popup:F,action:l,builtinPlacements:dz,popupPlacement:I,ref:W,popupAlign:P,getPopupContainer:_,onPopupVisibleChange:x,afterPopupVisibleChange:S,popupTransitionName:b,popupAnimation:$,popupMotion:w,defaultPopupVisible:M,autoDestroy:N,mouseLeaveDelay:m,popupStyle:X(X({},p),H==null?void 0:H.root),mouseEnterDelay:u,arrow:G},k),Q())};const pz=c.forwardRef(mz);function Jg(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,l=0,s=o,u=r*1/Math.sqrt(2),f=o-r*(1-1/Math.sqrt(2)),m=o-n*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*o-m,h=p,y=2*o-u,x=f,S=2*o-l,b=s,$=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),O=`polygon(${w}px 100%, 50% ${w}px, ${2*o-w}px 100%, ${w}px 100%)`,I=`path('M ${l} ${s} A ${r} ${r} 0 0 0 ${u} ${f} L ${m} ${p} A ${n} ${n} 0 0 1 ${g} ${h} L ${y} ${x} A ${r} ${r} 0 0 0 ${S} ${b} Z')`;return{arrowShadowWidth:$,arrowPath:I,arrowPolygon:O}}const gz=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:l,arrowShadowWidth:s,borderRadiusXS:u,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${J(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},tw=8;function Sd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?tw:r}}function Yc(e,t){return e?t:{}}function ev(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},gz(e,t,o)),{"&:before":{background:t}})]},Yc(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,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":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${J(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Yc(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${J(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Yc(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},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:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),Yc(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},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:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function vz(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const s=Object.assign(Object.assign({},l),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const Yb={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"]}},hz={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"]}},yz=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function nw(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:l,visibleFirst:s}=e,u=t/2,f={},m=Sd({contentRadius:l,limitVerticalRadius:!0});return Object.keys(Yb).forEach(p=>{const g=r&&hz[p]||Yb[p],h=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(f[p]=h,yz.has(p)&&(h.autoArrow=!1),p){case"top":case"topLeft":case"topRight":h.offset[1]=-u-o;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=u+o;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-u-o;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=u+o;break}if(r)switch(p){case"topLeft":case"bottomLeft":h.offset[0]=-m.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":h.offset[0]=m.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":h.offset[1]=-m.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":h.offset[1]=m.arrowOffsetHorizontal*2-u;break}h.overflow=vz(p,m,t,n),s&&(h.htmlRegion="visibleFirst")}),f}const bz=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:l,tooltipBorderRadius:s,zIndexPopup:u,controlHeight:f,boxShadowSecondary:m,paddingSM:p,paddingXS:g,arrowOffsetHorizontal:h,sizePopupArrow:y}=e,x=t(s).add(y).add(h).equal(),S=t(s).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),{position:"absolute",zIndex:u,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":l,[`${n}-inner`]:{minWidth:S,minHeight:f,padding:`${J(e.calc(p).div(2).equal())} ${J(g)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:s,boxShadow:m,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:x},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,tw)}},[`${n}-content`]:{position:"relative"}}),td(e,(b,{darkColor:$})=>({[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}))),{"&-rtl":{direction:"rtl"}})},ev(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Sz=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Sd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Jg(Qt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),rw=(e,t=!0)=>mn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:l,colorBgSpotlight:s}=r,u=Qt(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:o,tooltipBg:s});return[bz(u),zs(r,"zoom-big-fast")]},Sz,{resetStyle:!1,injectStyle:t})(e),xz=Ti.map(e=>`${e}-inverse`),Cz=["success","processing","error","default","warning"];function xd(e,t=!0){return t?[].concat(Ae(xz),Ae(Ti)).includes(e):Ti.includes(e)}function wz(e){return Cz.includes(e)}function ow(e,t){const n=xd(t),r=re({[`${e}-${t}`]:t&&n}),o={},l={},s=cM(t).toRgb(),f=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=f,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:l}}const $z=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:s}=e,{getPrefixCls:u}=c.useContext(Rt),f=u("tooltip",t),[m,p,g]=rw(f),h=ow(f,l),y=h.arrowStyle,x=Object.assign(Object.assign({},s),h.overlayStyle),S=re(p,g,f,`${f}-pure`,`${f}-placement-${r}`,n,h.className);return m(c.createElement("div",{className:S,style:y},c.createElement("div",{className:`${f}-arrow`}),c.createElement(Zg,Object.assign({},e,{className:p,prefixCls:f,overlayInnerStyle:x}),o)))};var Ez=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 Oz=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:l,getTooltipContainer:s,color:u,overlayInnerStyle:f,children:m,afterOpenChange:p,afterVisibleChange:g,destroyTooltipOnHide:h,destroyOnHidden:y,arrow:x=!0,title:S,overlay:b,builtinPlacements:$,arrowPointAtCenter:w=!1,autoAdjustOverflow:O=!0,motion:I,getPopupContainer:R,placement:P="top",mouseEnterDelay:T=.1,mouseLeaveDelay:N=.1,overlayStyle:M,rootClassName:_,overlayClassName:L,styles:z,classNames:A}=e,B=Ez(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"]),G=!!x,[,V]=Rr(),{getPopupContainer:H,getPrefixCls:D,direction:Z,className:W,style:k,classNames:F,styles:Q}=Ir("tooltip"),ne=Ju(),ee=c.useRef(null),oe=()=>{var Ve;(Ve=ee.current)===null||Ve===void 0||Ve.forceAlign()};c.useImperativeHandle(t,()=>{var Ve,dt;return{forceAlign:oe,forcePopupAlign:()=>{ne.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:(Ve=ee.current)===null||Ve===void 0?void 0:Ve.nativeElement,popupElement:(dt=ee.current)===null||dt===void 0?void 0:dt.popupElement}});const[fe,me]=Hn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ue=!S&&!b&&S!==0,Se=Ve=>{var dt,Xe;me(ue?!1:Ve),ue||((dt=e.onOpenChange)===null||dt===void 0||dt.call(e,Ve),(Xe=e.onVisibleChange)===null||Xe===void 0||Xe.call(e,Ve))},pe=c.useMemo(()=>{var Ve,dt;let Xe=w;return typeof x=="object"&&(Xe=(dt=(Ve=x.pointAtCenter)!==null&&Ve!==void 0?Ve:x.arrowPointAtCenter)!==null&&dt!==void 0?dt:w),$||nw({arrowPointAtCenter:Xe,autoAdjustOverflow:O,arrowWidth:G?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS,visibleFirst:!0})},[w,x,$,V]),se=c.useMemo(()=>S===0?S:b||S||"",[b,S]),ye=c.createElement(gd,{space:!0},typeof se=="function"?se():se),ve=D("tooltip",o),ce=D(),le=e["data-popover-inject"];let be=fe;!("open"in e)&&!("visible"in e)&&ue&&(be=!1);const xe=c.isValidElement(m)&&!Ox(m)?m:c.createElement("span",null,m),$e=xe.props,Ne=!$e.className||typeof $e.className=="string"?re($e.className,l||`${ve}-open`):$e.className,[Le,Pe,Be]=rw(ve,!le),Oe=ow(ve,u),tt=Oe.arrowStyle,lt=re(L,{[`${ve}-rtl`]:Z==="rtl"},Oe.className,_,Pe,Be,W,F.root,A==null?void 0:A.root),bt=re(F.body,A==null?void 0:A.body),[st,Ge]=Ns("Tooltip",B.zIndex),it=c.createElement(pz,Object.assign({},B,{zIndex:st,showArrow:G,placement:P,mouseEnterDelay:T,mouseLeaveDelay:N,prefixCls:ve,classNames:{root:lt,body:bt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tt),Q.root),k),M),z==null?void 0:z.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Q.body),f),z==null?void 0:z.body),Oe.overlayStyle)},getTooltipContainer:R||s||H,ref:ee,builtinPlacements:pe,overlay:ye,visible:be,onVisibleChange:Se,afterVisibleChange:p??g,arrowContent:c.createElement("span",{className:`${ve}-arrow-content`}),motion:{motionName:Mi(ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!h}),be?Or(xe,{className:Ne}):xe);return Le(c.createElement(od.Provider,{value:Ge},it))}),bl=Oz;bl._InternalPanelDoNotUseOrYouWillBeFired=$z;const Iz=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:l,boxShadowSecondary:s,colorTextHeading:u,borderRadiusLG:f,zIndexPopup:m,titleMarginBottom:p,colorBgElevated:g,popoverBg:h,titleBorderBottom:y,innerContentPadding:x,titlePadding:S}=e;return[{[t]:Object.assign(Object.assign({},An(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:m,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:f,boxShadow:s,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:p,color:u,fontWeight:o,borderBottom:y,padding:S},[`${t}-inner-content`]:{color:n,padding:x}})},ev(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Rz=e=>{const{componentCls:t}=e;return{[t]:Ti.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Pz=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:l,zIndexPopupBase:s,borderRadiusLG:u,marginXS:f,lineType:m,colorSplit:p,paddingSM:g}=e,h=n-r,y=h/2,x=h/2-t,S=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},Jg(e)),Sd({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:f,titlePadding:l?`${y}px ${S}px ${x}px`:0,titleBorderBottom:l?`${t}px ${m} ${p}`:"none",innerContentPadding:l?`${g}px ${S}px`:0})},iw=mn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Qt(e,{popoverBg:t,popoverColor:n});return[Iz(r),Rz(r),zs(r,"zoom-big")]},Pz,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Tz=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 aw=({title:e,content:t,prefixCls:n})=>!e&&!t?null:c.createElement(c.Fragment,null,e&&c.createElement("div",{className:`${n}-title`},e),t&&c.createElement("div",{className:`${n}-inner-content`},t)),Mz=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:l="top",title:s,content:u,children:f}=e,m=Bu(s),p=Bu(u),g=re(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return c.createElement("div",{className:g,style:o},c.createElement("div",{className:`${n}-arrow`}),c.createElement(Zg,Object.assign({},e,{className:t,prefixCls:n}),f||c.createElement(aw,{prefixCls:n,title:m,content:p})))},Nz=e=>{const{prefixCls:t,className:n}=e,r=Tz(e,["prefixCls","className"]),{getPrefixCls:o}=c.useContext(Rt),l=o("popover",t),[s,u,f]=iw(l);return s(c.createElement(Mz,Object.assign({},r,{prefixCls:l,hashId:u,className:re(n,f)})))};var _z=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 jz=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:l,content:s,overlayClassName:u,placement:f="top",trigger:m="hover",children:p,mouseEnterDelay:g=.1,mouseLeaveDelay:h=.1,onOpenChange:y,overlayStyle:x={},styles:S,classNames:b}=e,$=_z(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:O,style:I,classNames:R,styles:P}=Ir("popover"),T=w("popover",o),[N,M,_]=iw(T),L=w(),z=re(u,M,_,O,R.root,b==null?void 0:b.root),A=re(R.body,b==null?void 0:b.body),[B,G]=Hn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),V=(k,F)=>{G(k,!0),y==null||y(k,F)},H=k=>{k.keyCode===Ue.ESC&&V(!1,k)},D=k=>{V(k)},Z=Bu(l),W=Bu(s);return N(c.createElement(bl,Object.assign({placement:f,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:h},$,{prefixCls:T,classNames:{root:z,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},P.root),I),x),S==null?void 0:S.root),body:Object.assign(Object.assign({},P.body),S==null?void 0:S.body)},ref:t,open:B,onOpenChange:D,overlay:Z||W?c.createElement(aw,{prefixCls:T,title:Z,content:W}):null,transitionName:Mi(L,"zoom-big",$.transitionName),"data-popover-inject":!0}),Or(p,{onKeyDown:k=>{var F,Q;c.isValidElement(p)&&((Q=p==null?void 0:(F=p.props).onKeyDown)===null||Q===void 0||Q.call(F,k)),H(k)}})))}),lw=jz;lw._InternalPanelDoNotUseOrYouWillBeFired=Nz;const zz=new At("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),kz=new At("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Lz=new At("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Bz=new At("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Az=new At("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Dz=new At("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Fz=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:l,textFontSizeSM:s,statusSize:u,dotSize:f,textFontWeight:m,indicatorHeight:p,indicatorHeightSM:g,marginXS:h,calc:y}=e,x=`${r}-scroll-number`,S=td(e,(b,{darkColor:$})=>({[`&${t} ${t}-color-${b}`]:{background:$,[`&:not(${t}-count)`]:{color:$},"a:hover &":{background:$}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:p,height:p,color:e.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:J(p),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(p).div(2).equal(),boxShadow:`0 0 0 ${J(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:g,height:g,fontSize:s,lineHeight:J(g),borderRadius:y(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${J(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:f,minWidth:f,height:f,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${J(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${x}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Dz,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,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:zz,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:h,color:e.colorText,fontSize:e.fontSize}}}),S),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:kz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Lz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Bz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Az,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${x}-custom-component, ${t}-count`]:{transform:"none"},[`${x}-custom-component, ${x}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[x]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${x}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${x}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${x}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${x}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},sw=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,l=t,s=n,u=e.colorTextLightSolid,f=e.colorError,m=e.colorErrorHover;return Qt(e,{badgeFontHeight:l,badgeShadowSize:s,badgeTextColor:u,badgeColor:f,badgeColorHover:m,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},cw=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}},Hz=mn("Badge",e=>{const t=sw(e);return Fz(t)},cw),Vz=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:l}=e,s=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,f=td(e,(m,{darkColor:p})=>({[`&${s}-color-${m}`]:{background:p,color:p}}));return{[u]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),{position:"absolute",top:r,padding:`0 ${J(e.paddingXS)}`,color:e.colorPrimary,lineHeight:J(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-text`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${J(l(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),f),{[`&${s}-placement-end`]:{insetInlineEnd:l(o).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:l(o).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Wz=mn(["Badge","Ribbon"],e=>{const t=sw(e);return Vz(t)},cw),Uz=e=>{const{className:t,prefixCls:n,style:r,color:o,children:l,text:s,placement:u="end",rootClassName:f}=e,{getPrefixCls:m,direction:p}=c.useContext(Rt),g=m("ribbon",n),h=`${g}-wrapper`,[y,x,S]=Wz(g,h),b=xd(o,!1),$=re(g,`${g}-placement-${u}`,{[`${g}-rtl`]:p==="rtl",[`${g}-color-${o}`]:b},t),w={},O={};return o&&!b&&(w.background=o,O.color=o),y(c.createElement("div",{className:re(h,f,x,S)},l,c.createElement("div",{className:re($,x),style:Object.assign(Object.assign({},w),r)},c.createElement("span",{className:`${g}-text`},s),c.createElement("div",{className:`${g}-corner`,style:O}))))},Zb=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let l;return o&&(l={position:"absolute",top:`${o}00%`,left:0}),c.createElement("span",{style:l,className:re(`${t}-only-unit`,{current:r})},n)};function Gz(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const qz=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),l=Math.abs(n),[s,u]=c.useState(o),[f,m]=c.useState(l),p=()=>{u(o),m(l)};c.useEffect(()=>{const y=setTimeout(p,1e3);return()=>clearTimeout(y)},[o]);let g,h;if(s===o||Number.isNaN(o)||Number.isNaN(s))g=[c.createElement(Zb,Object.assign({},e,{key:o,current:!0}))],h={transition:"none"};else{g=[];const y=o+10,x=[];for(let w=o;w<=y;w+=1)x.push(w);const S=f<l?1:-1,b=x.findIndex(w=>w%10===s);g=(S<0?x.slice(0,b+1):x.slice(b)).map((w,O)=>{const I=w%10;return c.createElement(Zb,Object.assign({},e,{key:w,value:I,offset:S<0?O-b:O,current:O===b}))}),h={transform:`translateY(${-Gz(s,o,S)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:p},g)};var Kz=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 Xz=c.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:l,style:s,title:u,show:f,component:m="sup",children:p}=e,g=Kz(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=c.useContext(Rt),y=h("scroll-number",n),x=Object.assign(Object.assign({},g),{"data-show":f,style:s,className:re(y,o,l),title:u});let S=r;if(r&&Number(r)%1===0){const b=String(r).split("");S=c.createElement("bdi",null,b.map(($,w)=>c.createElement(qz,{prefixCls:y,count:Number(r),value:$,key:b.length-w})))}return s!=null&&s.borderColor&&(x.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),p?Or(p,b=>({className:re(`${y}-custom-component`,b==null?void 0:b.className,l)})):c.createElement(m,Object.assign({},x,{ref:t}),S)});var Qz=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 Yz=c.forwardRef((e,t)=>{var n,r,o,l,s;const{prefixCls:u,scrollNumberPrefixCls:f,children:m,status:p,text:g,color:h,count:y=null,overflowCount:x=99,dot:S=!1,size:b="default",title:$,offset:w,style:O,className:I,rootClassName:R,classNames:P,styles:T,showZero:N=!1}=e,M=Qz(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:L,badge:z}=c.useContext(Rt),A=_("badge",u),[B,G,V]=Hz(A),H=y>x?`${x}+`:y,D=H==="0"||H===0||g==="0"||g===0,Z=y===null||D&&!N,W=(p!=null||h!=null)&&Z,k=p!=null||!D,F=S&&!D,Q=F?"":H,ne=c.useMemo(()=>((Q==null||Q==="")&&(g==null||g==="")||D&&!N)&&!F,[Q,D,N,F,g]),ee=c.useRef(y);ne||(ee.current=y);const oe=ee.current,fe=c.useRef(Q);ne||(fe.current=Q);const me=fe.current,ue=c.useRef(F);ne||(ue.current=F);const Se=c.useMemo(()=>{if(!w)return Object.assign(Object.assign({},z==null?void 0:z.style),O);const $e={marginTop:w[1]};return L==="rtl"?$e.left=Number.parseInt(w[0],10):$e.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},$e),z==null?void 0:z.style),O)},[L,w,O,z==null?void 0:z.style]),pe=$??(typeof oe=="string"||typeof oe=="number"?oe:void 0),se=!ne&&(g===0?N:!!g&&g!==!0),ye=se?c.createElement("span",{className:`${A}-status-text`},g):null,ve=!oe||typeof oe!="object"?void 0:Or(oe,$e=>({style:Object.assign(Object.assign({},Se),$e.style)})),ce=xd(h,!1),le=re(P==null?void 0:P.indicator,(n=z==null?void 0:z.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:W,[`${A}-status-${p}`]:!!p,[`${A}-color-${h}`]:ce}),be={};h&&!ce&&(be.color=h,be.background=h);const xe=re(A,{[`${A}-status`]:W,[`${A}-not-a-wrapper`]:!m,[`${A}-rtl`]:L==="rtl"},I,R,z==null?void 0:z.className,(r=z==null?void 0:z.classNames)===null||r===void 0?void 0:r.root,P==null?void 0:P.root,G,V);if(!m&&W&&(g||k||!Z)){const $e=Se.color;return B(c.createElement("span",Object.assign({},M,{className:xe,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.root),(o=z==null?void 0:z.styles)===null||o===void 0?void 0:o.root),Se)}),c.createElement("span",{className:le,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(l=z==null?void 0:z.styles)===null||l===void 0?void 0:l.indicator),be)}),se&&c.createElement("span",{style:{color:$e},className:`${A}-status-text`},g)))}return B(c.createElement("span",Object.assign({ref:t},M,{className:xe,style:Object.assign(Object.assign({},(s=z==null?void 0:z.styles)===null||s===void 0?void 0:s.root),T==null?void 0:T.root)}),m,c.createElement(wo,{visible:!ne,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:$e})=>{var Ne,Le;const Pe=_("scroll-number",f),Be=ue.current,Oe=re(P==null?void 0:P.indicator,(Ne=z==null?void 0:z.classNames)===null||Ne===void 0?void 0:Ne.indicator,{[`${A}-dot`]:Be,[`${A}-count`]:!Be,[`${A}-count-sm`]:b==="small",[`${A}-multiple-words`]:!Be&&me&&me.toString().length>1,[`${A}-status-${p}`]:!!p,[`${A}-color-${h}`]:ce});let tt=Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(Le=z==null?void 0:z.styles)===null||Le===void 0?void 0:Le.indicator),Se);return h&&!ce&&(tt=tt||{},tt.background=h),c.createElement(Xz,{prefixCls:Pe,show:!ne,motionClassName:$e,className:Oe,count:me,title:pe,style:tt,key:"scrollNumber"},ve)}),ye))}),uw=Yz;uw.Ribbon=Uz;var Zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Jz=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:Zz}))},ws=c.forwardRef(Jz),e3=Ue.ESC,t3=Ue.TAB;function n3(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,l=e.overlayRef,s=c.useRef(!1),u=function(){if(t){var g,h;(g=n.current)===null||g===void 0||(h=g.focus)===null||h===void 0||h.call(g),r==null||r(!1)}},f=function(){var g;return(g=l.current)!==null&&g!==void 0&&g.focus?(l.current.focus(),s.current=!0,!0):!1},m=function(g){switch(g.keyCode){case e3:u();break;case t3:{var h=!1;s.current||(h=f()),h?g.preventDefault():u();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",m),o&&Sn(f,3),function(){window.removeEventListener("keydown",m),s.current=!1}):function(){s.current=!1}},[t])}var r3=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,l=c.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),s=ko(t,oa(l));return Y.createElement(Y.Fragment,null,r&&Y.createElement("div",{className:"".concat(o,"-arrow")}),Y.cloneElement(l,{ref:_i(l)?s:void 0}))}),Fa={adjustX:1,adjustY:1},Ha=[0,0],o3={topLeft:{points:["bl","tl"],overflow:Fa,offset:[0,-4],targetOffset:Ha},top:{points:["bc","tc"],overflow:Fa,offset:[0,-4],targetOffset:Ha},topRight:{points:["br","tr"],overflow:Fa,offset:[0,-4],targetOffset:Ha},bottomLeft:{points:["tl","bl"],overflow:Fa,offset:[0,4],targetOffset:Ha},bottom:{points:["tc","bc"],overflow:Fa,offset:[0,4],targetOffset:Ha},bottomRight:{points:["tr","br"],overflow:Fa,offset:[0,4],targetOffset:Ha}},i3=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function a3(e,t){var n,r=e.arrow,o=r===void 0?!1:r,l=e.prefixCls,s=l===void 0?"rc-dropdown":l,u=e.transitionName,f=e.animation,m=e.align,p=e.placement,g=p===void 0?"bottomLeft":p,h=e.placements,y=h===void 0?o3:h,x=e.getPopupContainer,S=e.showAction,b=e.hideAction,$=e.overlayClassName,w=e.overlayStyle,O=e.visible,I=e.trigger,R=I===void 0?["hover"]:I,P=e.autoFocus,T=e.overlay,N=e.children,M=e.onVisibleChange,_=Nt(e,i3),L=Y.useState(),z=ae(L,2),A=z[0],B=z[1],G="visible"in e?O:A,V=Y.useRef(null),H=Y.useRef(null),D=Y.useRef(null);Y.useImperativeHandle(t,function(){return V.current});var Z=function(me){B(me),M==null||M(me)};n3({visible:G,triggerRef:D,onVisibleChange:Z,autoFocus:P,overlayRef:H});var W=function(me){var ue=e.onOverlayClick;B(!1),ue&&ue(me)},k=function(){return Y.createElement(r3,{ref:H,overlay:T,prefixCls:s,arrow:o})},F=function(){return typeof T=="function"?k:k()},Q=function(){var me=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?me:!ue},ne=function(){var me=e.openClassName;return me!==void 0?me:"".concat(s,"-open")},ee=Y.cloneElement(N,{className:re((n=N.props)===null||n===void 0?void 0:n.className,G&&ne()),ref:_i(N)?ko(D,oa(N)):void 0}),oe=b;return!oe&&R.indexOf("contextMenu")!==-1&&(oe=["click"]),Y.createElement(bd,Ee({builtinPlacements:y},_,{prefixCls:s,ref:V,popupClassName:re($,U({},"".concat(s,"-show-arrow"),o)),popupStyle:w,action:R,showAction:S,hideAction:oe,popupPlacement:g,popupAlign:m,popupTransitionName:u,popupAnimation:f,popupVisible:G,stretch:Q()?"minWidth":"",popup:F(),onPopupVisibleChange:Z,onPopupClick:W,getPopupContainer:x}),ee)}const dw=Y.forwardRef(a3),l3=e=>typeof e!="object"&&typeof e!="function"||e===null;var fw=c.createContext(null);function mw(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function pw(e){var t=c.useContext(fw);return mw(t,e)}var s3=["children","locked"],Co=c.createContext(null);function c3(e,t){var n=X({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function $s(e){var t=e.children,n=e.locked,r=Nt(e,s3),o=c.useContext(Co),l=Ps(function(){return c3(o,r)},[o,r],function(s,u){return!n&&(s[0]!==u[0]||!vs(s[1],u[1],!0))});return c.createElement(Co.Provider,{value:l},t)}var u3=[],gw=c.createContext(null);function Cd(){return c.useContext(gw)}var vw=c.createContext(u3);function Sl(e){var t=c.useContext(vw);return c.useMemo(function(){return e!==void 0?[].concat(Ae(t),[e]):t},[t,e])}var hw=c.createContext(null),tv=c.createContext({});function Jb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(kg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),l=Number(o),s=null;return o&&!Number.isNaN(l)?s=l:r&&s===null&&(s=0),r&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function d3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ae(e.querySelectorAll("*")).filter(function(r){return Jb(r,t)});return Jb(e,t)&&n.unshift(e),n}var sg=Ue.LEFT,cg=Ue.RIGHT,ug=Ue.UP,bu=Ue.DOWN,Su=Ue.ENTER,yw=Ue.ESC,Zl=Ue.HOME,Jl=Ue.END,eS=[ug,bu,sg,cg];function f3(e,t,n,r){var o,l="prev",s="next",u="children",f="parent";if(e==="inline"&&r===Su)return{inlineTrigger:!0};var m=U(U({},ug,l),bu,s),p=U(U(U(U({},sg,n?s:l),cg,n?l:s),bu,u),Su,u),g=U(U(U(U(U(U({},ug,l),bu,s),Su,u),yw,f),sg,n?u:f),cg,n?f:u),h={inline:m,horizontal:p,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},y=(o=h["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(y){case l:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function m3(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function p3(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function nv(e,t){var n=d3(e,!0);return n.filter(function(r){return t.has(r)})}function tS(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=nv(e,t),l=o.length,s=o.findIndex(function(u){return n===u});return r<0?s===-1?s=l-1:s-=1:r>0&&(s+=1),s=(s+l)%l,o[s]}var dg=function(t,n){var r=new Set,o=new Map,l=new Map;return t.forEach(function(s){var u=document.querySelector("[data-menu-id='".concat(mw(n,s),"']"));u&&(r.add(u),l.set(u,s),o.set(s,u))}),{elements:r,key2element:o,element2key:l}};function g3(e,t,n,r,o,l,s,u,f,m){var p=c.useRef(),g=c.useRef();g.current=t;var h=function(){Sn.cancel(p.current)};return c.useEffect(function(){return function(){h()}},[]),function(y){var x=y.which;if([].concat(eS,[Su,yw,Zl,Jl]).includes(x)){var S=l(),b=dg(S,r),$=b,w=$.elements,O=$.key2element,I=$.element2key,R=O.get(t),P=p3(R,w),T=I.get(P),N=f3(e,s(T,!0).length===1,n,x);if(!N&&x!==Zl&&x!==Jl)return;(eS.includes(x)||[Zl,Jl].includes(x))&&y.preventDefault();var M=function(H){if(H){var D=H,Z=H.querySelector("a");Z!=null&&Z.getAttribute("href")&&(D=Z);var W=I.get(H);u(W),h(),p.current=Sn(function(){g.current===W&&D.focus()})}};if([Zl,Jl].includes(x)||N.sibling||!P){var _;!P||e==="inline"?_=o.current:_=m3(P);var L,z=nv(_,w);x===Zl?L=z[0]:x===Jl?L=z[z.length-1]:L=tS(_,w,P,N.offset),M(L)}else if(N.inlineTrigger)f(T);else if(N.offset>0)f(T,!0),h(),p.current=Sn(function(){b=dg(S,r);var V=P.getAttribute("aria-controls"),H=document.getElementById(V),D=tS(H,b.elements);M(D)},5);else if(N.offset<0){var A=s(T,!0),B=A[A.length-2],G=O.get(B);f(B,!1),M(G)}}m==null||m(y)}}function v3(e){Promise.resolve().then(e)}var rv="__RC_UTIL_PATH_SPLIT__",nS=function(t){return t.join(rv)},h3=function(t){return t.split(rv)},fg="rc-menu-more";function y3(){var e=c.useState({}),t=ae(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),l=c.useState([]),s=ae(l,2),u=s[0],f=s[1],m=c.useRef(0),p=c.useRef(!1),g=function(){p.current||n({})},h=c.useCallback(function(O,I){var R=nS(I);o.current.set(R,O),r.current.set(O,R),m.current+=1;var P=m.current;v3(function(){P===m.current&&g()})},[]),y=c.useCallback(function(O,I){var R=nS(I);o.current.delete(R),r.current.delete(O)},[]),x=c.useCallback(function(O){f(O)},[]),S=c.useCallback(function(O,I){var R=r.current.get(O)||"",P=h3(R);return I&&u.includes(P[0])&&P.unshift(fg),P},[u]),b=c.useCallback(function(O,I){return O.filter(function(R){return R!==void 0}).some(function(R){var P=S(R,!0);return P.includes(I)})},[S]),$=function(){var I=Ae(r.current.keys());return u.length&&I.push(fg),I},w=c.useCallback(function(O){var I="".concat(r.current.get(O)).concat(rv),R=new Set;return Ae(o.current.keys()).forEach(function(P){P.startsWith(I)&&R.add(o.current.get(P))}),R},[]);return c.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:h,unregisterPath:y,refreshOverflowKeys:x,isSubPathKey:b,getKeyPath:S,getKeys:$,getSubPathKeys:w}}function is(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return e?n:void 0}var b3=Math.random().toFixed(5).toString().slice(2),rS=0;function S3(e){var t=Hn(e,{value:e}),n=ae(t,2),r=n[0],o=n[1];return c.useEffect(function(){rS+=1;var l="".concat(b3,"-").concat(rS);o("rc-menu-uuid-".concat(l))},[]),r}function bw(e,t,n,r){var o=c.useContext(Co),l=o.activeKey,s=o.onActive,u=o.onInactive,f={active:l===e};return t||(f.onMouseEnter=function(m){n==null||n({key:e,domEvent:m}),s(e)},f.onMouseLeave=function(m){r==null||r({key:e,domEvent:m}),u(e)}),f}function Sw(e){var t=c.useContext(Co),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*o}:{paddingLeft:l*o}}function xw(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=c.createElement(t,X({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var x3=["item"];function Au(e){var t=e.item,n=Nt(e,x3);return Object.defineProperty(n,"item",{get:function(){return sr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var C3=["title","attribute","elementRef"],w3=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],$3=["active"],E3=(function(e){Jo(n,e);var t=ei(n);function n(){return Wn(this,n),t.apply(this,arguments)}return Un(n,[{key:"render",value:function(){var o=this.props,l=o.title,s=o.attribute,u=o.elementRef,f=Nt(o,C3),m=Vn(f,["eventKey","popupClassName","popupOffset","onTitleClick"]);return sr(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(To.Item,Ee({},s,{title:typeof l=="string"?l:void 0},m,{ref:u}))}}]),n})(c.Component),O3=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var l=e.disabled,s=e.itemIcon,u=e.children,f=e.role,m=e.onMouseEnter,p=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,y=e.onFocus,x=Nt(e,w3),S=pw(o),b=c.useContext(Co),$=b.prefixCls,w=b.onItemClick,O=b.disabled,I=b.overflowDisabled,R=b.itemIcon,P=b.selectedKeys,T=b.onActive,N=c.useContext(tv),M=N._internalRenderMenuItem,_="".concat($,"-item"),L=c.useRef(),z=c.useRef(),A=O||l,B=Zo(t,z),G=Sl(o),V=function(ue){return{key:o,keyPath:Ae(G).reverse(),item:L.current,domEvent:ue}},H=s||R,D=bw(o,A,m,p),Z=D.active,W=Nt(D,$3),k=P.includes(o),F=Sw(G.length),Q=function(ue){if(!A){var Se=V(ue);g==null||g(Au(Se)),w(Se)}},ne=function(ue){if(h==null||h(ue),ue.which===Ue.ENTER){var Se=V(ue);g==null||g(Au(Se)),w(Se)}},ee=function(ue){T(o),y==null||y(ue)},oe={};e.role==="option"&&(oe["aria-selected"]=k);var fe=c.createElement(E3,Ee({ref:L,elementRef:B,role:f===null?"none":f||"menuitem",tabIndex:l?null:-1,"data-menu-id":I&&S?null:S},Vn(x,["extra"]),W,oe,{component:"li","aria-disabled":l,style:X(X({},F),n),className:re(_,U(U(U({},"".concat(_,"-active"),Z),"".concat(_,"-selected"),k),"".concat(_,"-disabled"),A),r),onClick:Q,onKeyDown:ne,onFocus:ee}),u,c.createElement(xw,{props:X(X({},e),{},{isSelected:k}),icon:H}));return M&&(fe=M(fe,e,{selected:k})),fe});function I3(e,t){var n=e.eventKey,r=Cd(),o=Sl(n);return c.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:c.createElement(O3,Ee({},e,{ref:t}))}const Fs=c.forwardRef(I3);var R3=["className","children"],P3=function(t,n){var r=t.className,o=t.children,l=Nt(t,R3),s=c.useContext(Co),u=s.prefixCls,f=s.mode,m=s.rtl;return c.createElement("ul",Ee({className:re(u,m&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(f==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),o)},ov=c.forwardRef(P3);ov.displayName="SubMenuList";function iv(e,t){return Er(e).map(function(n,r){if(c.isValidElement(n)){var o,l,s=n.key,u=(o=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&o!==void 0?o:s,f=u==null;f&&(u="tmp_key-".concat([].concat(Ae(t),[r]).join("-")));var m={key:u,eventKey:u};return c.cloneElement(n,m)}return n})}var yr={adjustX:1,adjustY:1},T3={topLeft:{points:["bl","tl"],overflow:yr},topRight:{points:["br","tr"],overflow:yr},bottomLeft:{points:["tl","bl"],overflow:yr},bottomRight:{points:["tr","br"],overflow:yr},leftTop:{points:["tr","tl"],overflow:yr},leftBottom:{points:["br","bl"],overflow:yr},rightTop:{points:["tl","tr"],overflow:yr},rightBottom:{points:["bl","br"],overflow:yr}},M3={topLeft:{points:["bl","tl"],overflow:yr},topRight:{points:["br","tr"],overflow:yr},bottomLeft:{points:["tl","bl"],overflow:yr},bottomRight:{points:["tr","br"],overflow:yr},rightTop:{points:["tr","tl"],overflow:yr},rightBottom:{points:["br","bl"],overflow:yr},leftTop:{points:["tl","tr"],overflow:yr},leftBottom:{points:["bl","br"],overflow:yr}};function Cw(e,t,n){if(t)return t;if(n)return n[e]||n.other}var N3={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function _3(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,l=e.popupStyle,s=e.popupClassName,u=e.popupOffset,f=e.disabled,m=e.mode,p=e.onVisibleChange,g=c.useContext(Co),h=g.getPopupContainer,y=g.rtl,x=g.subMenuOpenDelay,S=g.subMenuCloseDelay,b=g.builtinPlacements,$=g.triggerSubMenuAction,w=g.forceSubMenuRender,O=g.rootClassName,I=g.motion,R=g.defaultMotions,P=c.useState(!1),T=ae(P,2),N=T[0],M=T[1],_=X(y?X({},M3):X({},T3),b),L=N3[m],z=Cw(m,I,R),A=c.useRef(z);m!=="inline"&&(A.current=z);var B=X(X({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),G=c.useRef();return c.useEffect(function(){return G.current=Sn(function(){M(n)}),function(){Sn.cancel(G.current)}},[n]),c.createElement(bd,{prefixCls:t,popupClassName:re("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),y),s,O),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:_,popupPlacement:L,popupVisible:N,popup:o,popupStyle:l,popupAlign:u&&{offset:u},action:f?[]:[$],mouseEnterDelay:x,mouseLeaveDelay:S,onPopupVisibleChange:p,forceRender:w,popupMotion:B,fresh:!0},r)}function j3(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,l="inline",s=c.useContext(Co),u=s.prefixCls,f=s.forceSubMenuRender,m=s.motion,p=s.defaultMotions,g=s.mode,h=c.useRef(!1);h.current=g===l;var y=c.useState(!h.current),x=ae(y,2),S=x[0],b=x[1],$=h.current?n:!1;c.useEffect(function(){h.current&&b(!1)},[g]);var w=X({},Cw(l,m,p));r.length>1&&(w.motionAppear=!1);var O=w.onVisibleChanged;return w.onVisibleChanged=function(I){return!h.current&&!I&&b(!0),O==null?void 0:O(I)},S?null:c.createElement($s,{mode:l,locked:!h.current},c.createElement(wo,Ee({visible:$},w,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(I){var R=I.className,P=I.style;return c.createElement(ov,{id:t,className:R,style:P},o)}))}var z3=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],k3=["active"],L3=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,l=e.eventKey;e.warnKey;var s=e.disabled,u=e.internalPopupClose,f=e.children,m=e.itemIcon,p=e.expandIcon,g=e.popupClassName,h=e.popupOffset,y=e.popupStyle,x=e.onClick,S=e.onMouseEnter,b=e.onMouseLeave,$=e.onTitleClick,w=e.onTitleMouseEnter,O=e.onTitleMouseLeave,I=Nt(e,z3),R=pw(l),P=c.useContext(Co),T=P.prefixCls,N=P.mode,M=P.openKeys,_=P.disabled,L=P.overflowDisabled,z=P.activeKey,A=P.selectedKeys,B=P.itemIcon,G=P.expandIcon,V=P.onItemClick,H=P.onOpenChange,D=P.onActive,Z=c.useContext(tv),W=Z._internalRenderSubMenuItem,k=c.useContext(hw),F=k.isSubPathKey,Q=Sl(),ne="".concat(T,"-submenu"),ee=_||s,oe=c.useRef(),fe=c.useRef(),me=m??B,ue=p??G,Se=M.includes(l),pe=!L&&Se,se=F(A,l),ye=bw(l,ee,w,O),ve=ye.active,ce=Nt(ye,k3),le=c.useState(!1),be=ae(le,2),xe=be[0],$e=be[1],Ne=function(Te){ee||$e(Te)},Le=function(Te){Ne(!0),S==null||S({key:l,domEvent:Te})},Pe=function(Te){Ne(!1),b==null||b({key:l,domEvent:Te})},Be=c.useMemo(function(){return ve||(N!=="inline"?xe||F([z],l):!1)},[N,ve,z,xe,l,F]),Oe=Sw(Q.length),tt=function(Te){ee||($==null||$({key:l,domEvent:Te}),N==="inline"&&H(l,!Se))},lt=is(function(Ye){x==null||x(Au(Ye)),V(Ye)}),bt=function(Te){N!=="inline"&&H(l,Te)},st=function(){D(l)},Ge=R&&"".concat(R,"-popup"),it=c.useMemo(function(){return c.createElement(xw,{icon:N!=="horizontal"?ue:void 0,props:X(X({},e),{},{isOpen:pe,isSubMenu:!0})},c.createElement("i",{className:"".concat(ne,"-arrow")}))},[N,ue,e,pe,ne]),Ve=c.createElement("div",Ee({role:"menuitem",style:Oe,className:"".concat(ne,"-title"),tabIndex:ee?null:-1,ref:oe,title:typeof o=="string"?o:null,"data-menu-id":L&&R?null:R,"aria-expanded":pe,"aria-haspopup":!0,"aria-controls":Ge,"aria-disabled":ee,onClick:tt,onFocus:st},ce),o,it),dt=c.useRef(N);if(N!=="inline"&&Q.length>1?dt.current="vertical":dt.current=N,!L){var Xe=dt.current;Ve=c.createElement(_3,{mode:Xe,prefixCls:ne,visible:!u&&pe&&N!=="inline",popupClassName:g,popupOffset:h,popupStyle:y,popup:c.createElement($s,{mode:Xe==="horizontal"?"vertical":Xe},c.createElement(ov,{id:Ge,ref:fe},f)),disabled:ee,onVisibleChange:bt},Ve)}var _e=c.createElement(To.Item,Ee({ref:t,role:"none"},I,{component:"li",style:n,className:re(ne,"".concat(ne,"-").concat(N),r,U(U(U(U({},"".concat(ne,"-open"),pe),"".concat(ne,"-active"),Be),"".concat(ne,"-selected"),se),"".concat(ne,"-disabled"),ee)),onMouseEnter:Le,onMouseLeave:Pe}),Ve,!L&&c.createElement(j3,{id:Ge,open:pe,keyPath:Q},f));return W&&(_e=W(_e,e,{selected:se,active:Be,open:pe,disabled:ee})),c.createElement($s,{onItemClick:lt,mode:N==="horizontal"?"vertical":N,itemIcon:me,expandIcon:ue},_e)}),wd=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Sl(n),l=iv(r,o),s=Cd();c.useEffect(function(){if(s)return s.registerPath(n,o),function(){s.unregisterPath(n,o)}},[o]);var u;return s?u=l:u=c.createElement(L3,Ee({ref:t},e),l),c.createElement(vw.Provider,{value:o},u)});function av(e){var t=e.className,n=e.style,r=c.useContext(Co),o=r.prefixCls,l=Cd();return l?null:c.createElement("li",{role:"separator",className:re("".concat(o,"-item-divider"),t),style:n})}var B3=["className","title","eventKey","children"],A3=c.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,l=Nt(e,B3),s=c.useContext(Co),u=s.prefixCls,f="".concat(u,"-item-group");return c.createElement("li",Ee({ref:t,role:"presentation"},l,{onClick:function(p){return p.stopPropagation()},className:re(f,n)}),c.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(f,"-list")},o))}),lv=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Sl(n),l=iv(r,o),s=Cd();return s?l:c.createElement(A3,Ee({ref:t},Vn(e,["warnKey"])),l)}),D3=["label","children","key","type","extra"];function mg(e,t,n){var r=t.item,o=t.group,l=t.submenu,s=t.divider;return(e||[]).map(function(u,f){if(u&&mt(u)==="object"){var m=u,p=m.label,g=m.children,h=m.key,y=m.type,x=m.extra,S=Nt(m,D3),b=h??"tmp-".concat(f);return g||y==="group"?y==="group"?c.createElement(o,Ee({key:b},S,{title:p}),mg(g,t,n)):c.createElement(l,Ee({key:b},S,{title:p}),mg(g,t,n)):y==="divider"?c.createElement(s,Ee({key:b},S)):c.createElement(r,Ee({key:b},S,{extra:x}),p,(!!x||x===0)&&c.createElement("span",{className:"".concat(n,"-item-extra")},x))}return null}).filter(function(u){return u})}function oS(e,t,n,r,o){var l=e,s=X({divider:av,item:Fs,group:lv,submenu:wd},r);return t&&(l=mg(t,s,o)),iv(l,n)}var F3=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Gi=[],H3=c.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,l=o===void 0?"rc-menu":o,s=r.rootClassName,u=r.style,f=r.className,m=r.tabIndex,p=m===void 0?0:m,g=r.items,h=r.children,y=r.direction,x=r.id,S=r.mode,b=S===void 0?"vertical":S,$=r.inlineCollapsed,w=r.disabled,O=r.disabledOverflow,I=r.subMenuOpenDelay,R=I===void 0?.1:I,P=r.subMenuCloseDelay,T=P===void 0?.1:P,N=r.forceSubMenuRender,M=r.defaultOpenKeys,_=r.openKeys,L=r.activeKey,z=r.defaultActiveFirst,A=r.selectable,B=A===void 0?!0:A,G=r.multiple,V=G===void 0?!1:G,H=r.defaultSelectedKeys,D=r.selectedKeys,Z=r.onSelect,W=r.onDeselect,k=r.inlineIndent,F=k===void 0?24:k,Q=r.motion,ne=r.defaultMotions,ee=r.triggerSubMenuAction,oe=ee===void 0?"hover":ee,fe=r.builtinPlacements,me=r.itemIcon,ue=r.expandIcon,Se=r.overflowedIndicator,pe=Se===void 0?"...":Se,se=r.overflowedIndicatorPopupClassName,ye=r.getPopupContainer,ve=r.onClick,ce=r.onOpenChange,le=r.onKeyDown;r.openAnimation,r.openTransitionName;var be=r._internalRenderMenuItem,xe=r._internalRenderSubMenuItem,$e=r._internalComponents,Ne=Nt(r,F3),Le=c.useMemo(function(){return[oS(h,g,Gi,$e,l),oS(h,g,Gi,{},l)]},[h,g,$e]),Pe=ae(Le,2),Be=Pe[0],Oe=Pe[1],tt=c.useState(!1),lt=ae(tt,2),bt=lt[0],st=lt[1],Ge=c.useRef(),it=S3(x),Ve=y==="rtl",dt=Hn(M,{value:_,postState:function(nt){return nt||Gi}}),Xe=ae(dt,2),_e=Xe[0],Ye=Xe[1],Te=function(nt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Gt(){Ye(nt),ce==null||ce(nt)}Je?Ri.flushSync(Gt):Gt()},Fe=c.useState(_e),wt=ae(Fe,2),pt=wt[0],Ht=wt[1],Dt=c.useRef(!1),on=c.useMemo(function(){return(b==="inline"||b==="vertical")&&$?["vertical",$]:[b,!1]},[b,$]),hn=ae(on,2),Wt=hn[0],Mt=hn[1],St=Wt==="inline",Ut=c.useState(Wt),Bt=ae(Ut,2),Ze=Bt[0],yt=Bt[1],at=c.useState(Mt),Ie=ae(at,2),we=Ie[0],Ce=Ie[1];c.useEffect(function(){yt(Wt),Ce(Mt),Dt.current&&(St?Ye(pt):Te(Gi))},[Wt,Mt]);var je=c.useState(0),Ke=ae(je,2),Qe=Ke[0],_t=Ke[1],kt=Qe>=Be.length-1||Ze!=="horizontal"||O;c.useEffect(function(){St&&Ht(_e)},[_e]),c.useEffect(function(){return Dt.current=!0,function(){Dt.current=!1}},[]);var It=y3(),Pt=It.registerPath,gn=It.unregisterPath,un=It.refreshOverflowKeys,yn=It.isSubPathKey,On=It.getKeyPath,qt=It.getKeys,Jt=It.getSubPathKeys,ze=c.useMemo(function(){return{registerPath:Pt,unregisterPath:gn}},[Pt,gn]),We=c.useMemo(function(){return{isSubPathKey:yn}},[yn]);c.useEffect(function(){un(kt?Gi:Be.slice(Qe+1).map(function(Yt){return Yt.key}))},[Qe,kt]);var Ct=Hn(L||z&&((n=Be[0])===null||n===void 0?void 0:n.key),{value:L}),ct=ae(Ct,2),et=ct[0],qe=ct[1],xt=is(function(Yt){qe(Yt)}),Lt=is(function(){qe(void 0)});c.useImperativeHandle(t,function(){return{list:Ge.current,focus:function(nt){var Je,Gt=qt(),Zt=dg(Gt,it),an=Zt.elements,cn=Zt.key2element,ir=Zt.element2key,kn=nv(Ge.current,an),zt=et??(kn[0]?ir.get(kn[0]):(Je=Be.find(function(Pr){return!Pr.props.disabled}))===null||Je===void 0?void 0:Je.key),Kn=cn.get(zt);if(zt&&Kn){var Zn;Kn==null||(Zn=Kn.focus)===null||Zn===void 0||Zn.call(Kn,nt)}}}});var He=Hn(H||[],{value:D,postState:function(nt){return Array.isArray(nt)?nt:nt==null?Gi:[nt]}}),ut=ae(He,2),$t=ut[0],tn=ut[1],zn=function(nt){if(B){var Je=nt.key,Gt=$t.includes(Je),Zt;V?Gt?Zt=$t.filter(function(cn){return cn!==Je}):Zt=[].concat(Ae($t),[Je]):Zt=[Je],tn(Zt);var an=X(X({},nt),{},{selectedKeys:Zt});Gt?W==null||W(an):Z==null||Z(an)}!V&&_e.length&&Ze!=="inline"&&Te(Gi)},wn=is(function(Yt){ve==null||ve(Au(Yt)),zn(Yt)}),cr=is(function(Yt,nt){var Je=_e.filter(function(Zt){return Zt!==Yt});if(nt)Je.push(Yt);else if(Ze!=="inline"){var Gt=Jt(Yt);Je=Je.filter(function(Zt){return!Gt.has(Zt)})}vs(_e,Je,!0)||Te(Je,!0)}),Gn=function(nt,Je){var Gt=Je??!_e.includes(nt);cr(nt,Gt)},ur=g3(Ze,et,Ve,it,Ge,qt,On,qe,Gn,le);c.useEffect(function(){st(!0)},[]);var qn=c.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:xe}},[be,xe]),or=Ze!=="horizontal"||O?Be:Be.map(function(Yt,nt){return c.createElement($s,{key:Yt.key,overflowDisabled:nt>Qe},Yt)}),dr=c.createElement(To,Ee({id:x,ref:Ge,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Fs,className:re(l,"".concat(l,"-root"),"".concat(l,"-").concat(Ze),f,U(U({},"".concat(l,"-inline-collapsed"),we),"".concat(l,"-rtl"),Ve),s),dir:y,style:u,role:"menu",tabIndex:p,data:or,renderRawItem:function(nt){return nt},renderRawRest:function(nt){var Je=nt.length,Gt=Je?Be.slice(-Je):null;return c.createElement(wd,{eventKey:fg,title:pe,disabled:kt,internalPopupClose:Je===0,popupClassName:se},Gt)},maxCount:Ze!=="horizontal"||O?To.INVALIDATE:To.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nt){_t(nt)},onKeyDown:ur},Ne));return c.createElement(tv.Provider,{value:qn},c.createElement(fw.Provider,{value:it},c.createElement($s,{prefixCls:l,rootClassName:s,mode:Ze,openKeys:_e,rtl:Ve,disabled:w,motion:bt?Q:null,defaultMotions:bt?ne:null,activeKey:et,onActive:xt,onInactive:Lt,selectedKeys:$t,inlineIndent:F,subMenuOpenDelay:R,subMenuCloseDelay:T,forceSubMenuRender:N,builtinPlacements:fe,triggerSubMenuAction:oe,getPopupContainer:ye,itemIcon:me,expandIcon:ue,onItemClick:wn,onOpenChange:cr},c.createElement(hw.Provider,{value:We},dr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(gw.Provider,{value:ze},Oe)))))}),xl=H3;xl.Item=Fs;xl.SubMenu=wd;xl.ItemGroup=lv;xl.Divider=av;var V3={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},W3=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:V3}))},U3=c.forwardRef(W3);const ww=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),G3=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:f,fontSize:m,bodyBg:p,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:l,padding:s,color:u,lineHeight:J(l),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:m,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},$w=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:l,marginXXS:s,colorTextLightSolid:u,colorBgContainer:f}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${m}px`,headerColor:o,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:o}},Ew=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Ow=mn("Layout",G3,$w,{deprecatedTokens:Ew}),q3=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:l,triggerHeight:s,triggerColor:u,triggerBg:f,headerHeight:m,zeroTriggerWidth:p,zeroTriggerHeight:g,borderRadiusLG:h,lightSiderBg:y,lightTriggerColor:x,lightTriggerBg:S,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:u,lineHeight:J(s),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:g,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${J(h)} ${J(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderRadius:`${J(h)} 0 0 ${J(h)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:x,background:S},[`${t}-zero-width-trigger`]:{color:x,background:S,border:`1px solid ${b}`,borderInlineStart:0}}}}},K3=mn(["Layout","Sider"],q3,$w,{deprecatedTokens:Ew});var X3=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 iS={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Q3=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),$d=c.createContext({}),Y3=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Iw=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:l,defaultCollapsed:s=!1,theme:u="dark",style:f={},collapsible:m=!1,reverseArrow:p=!1,width:g=200,collapsedWidth:h=80,zeroWidthTriggerStyle:y,breakpoint:x,onCollapse:S,onBreakpoint:b}=e,$=X3(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=c.useContext(ww),[O,I]=c.useState("collapsed"in e?e.collapsed:s),[R,P]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&I(e.collapsed)},[e.collapsed]);const T=(me,ue)=>{"collapsed"in e||I(me),S==null||S(me,ue)},{getPrefixCls:N,direction:M}=c.useContext(Rt),_=N("layout-sider",n),[L,z,A]=K3(_),B=c.useRef(null);B.current=me=>{P(me.matches),b==null||b(me.matches),O!==me.matches&&T(me.matches,"responsive")},c.useEffect(()=>{function me(Se){var pe;return(pe=B.current)===null||pe===void 0?void 0:pe.call(B,Se)}let ue;return typeof(window==null?void 0:window.matchMedia)<"u"&&x&&x in iS&&(ue=window.matchMedia(`screen and (max-width: ${iS[x]})`),JC(ue,me),me(ue)),()=>{ew(ue,me)}},[x]),c.useEffect(()=>{const me=Y3("ant-sider-");return w.addSider(me),()=>w.removeSider(me)},[]);const G=()=>{T(!O,"clickTrigger")},V=Vn($,["collapsed"]),H=O?h:g,D=Q3(H)?`${H}px`:String(H),Z=Number.parseFloat(String(h||0))===0?c.createElement("span",{onClick:G,className:re(`${_}-zero-width-trigger`,`${_}-zero-width-trigger-${p?"right":"left"}`),style:y},o||c.createElement(U3,null)):null,W=M==="rtl"==!p,Q={expanded:W?c.createElement(cl,null):c.createElement(ws,null),collapsed:W?c.createElement(ws,null):c.createElement(cl,null)}[O?"collapsed":"expanded"],ne=o!==null?Z||c.createElement("div",{className:`${_}-trigger`,onClick:G,style:{width:D}},o||Q):null,ee=Object.assign(Object.assign({},f),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),oe=re(_,`${_}-${u}`,{[`${_}-collapsed`]:!!O,[`${_}-has-trigger`]:m&&o!==null&&!Z,[`${_}-below`]:!!R,[`${_}-zero-width`]:Number.parseFloat(D)===0},r,z,A),fe=c.useMemo(()=>({siderCollapsed:O}),[O]);return L(c.createElement($d.Provider,{value:fe},c.createElement("aside",Object.assign({className:oe},V,{style:ee,ref:t}),c.createElement("div",{className:`${_}-children`},l),m||R&&Z?ne:null)))});var Z3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},J3=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:Z3}))},sv=c.forwardRef(J3);const Du=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ek=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 Rw=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=ek(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=c.useContext(Rt),s=l("menu",t),u=re({[`${s}-item-divider-dashed`]:!!r},n);return c.createElement(av,Object.assign({className:u},o))},Pw=e=>{var t;const{className:n,children:r,icon:o,title:l,danger:s,extra:u}=e,{prefixCls:f,firstLevel:m,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:h}=c.useContext(Du),y=O=>{const I=r==null?void 0:r[0],R=c.createElement("span",{className:re(`${f}-title-content`,{[`${f}-title-content-with-extra`]:!!u||u===0})},r);return(!o||c.isValidElement(r)&&r.type==="span")&&r&&O&&m&&typeof I=="string"?c.createElement("div",{className:`${f}-inline-collapsed-noicon`},I.charAt(0)):R},{siderCollapsed:x}=c.useContext($d);let S=l;typeof l>"u"?S=m?r:"":l===!1&&(S="");const b={title:S};!x&&!h&&(b.title=null,b.open=!1);const $=Er(r).length;let w=c.createElement(Fs,Object.assign({},Vn(e,["title","icon","danger"]),{className:re({[`${f}-item-danger`]:s,[`${f}-item-only-child`]:(o?$+1:$)===1},n),title:typeof l=="string"?l:void 0}),Or(o,{className:re(c.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${f}-item-icon`)}),y(h));return g||(w=c.createElement(bl,Object.assign({},b,{placement:p==="rtl"?"left":"right",classNames:{root:`${f}-inline-collapsed-tooltip`}}),w)),w};var tk=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 Fu=c.createContext(null),nk=c.forwardRef((e,t)=>{const{children:n}=e,r=tk(e,["children"]),o=c.useContext(Fu),l=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=C2(n),u=Zo(t,s?oa(n):null);return c.createElement(Fu.Provider,{value:l},c.createElement(gd,{space:!0},s?c.cloneElement(n,{ref:u}):n))}),rk=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:l,lineType:s,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${J(l)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${t}-item:hover,
|
|
250
|
-
> ${t}-item-active,
|
|
251
|
-
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},ok=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
252
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${J(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${J(t)})`}}}}),aS=e=>sl(e),lS=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:l,groupTitleColor:s,itemBg:u,subMenuItemBg:f,itemSelectedBg:m,activeBarHeight:p,activeBarWidth:g,activeBarBorderWidth:h,motionDurationSlow:y,motionEaseInOut:x,motionEaseOut:S,itemPaddingInline:b,motionDurationMid:$,itemHoverColor:w,lineType:O,colorSplit:I,itemDisabledColor:R,dangerItemColor:P,dangerItemHoverColor:T,dangerItemSelectedColor:N,dangerItemActiveBg:M,dangerItemSelectedBg:_,popupBg:L,itemHoverBg:z,itemActiveBg:A,menuSubMenuBg:B,horizontalItemSelectedColor:G,horizontalItemSelectedBg:V,horizontalItemBorderRadius:H,horizontalItemHoverBg:D}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},aS(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:l},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},aS(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${R} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:z},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:z},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:P,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:M}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:N},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:m,[`&${n}-item-danger`]:{backgroundColor:_}},[`&${n}-submenu > ${n}`]:{backgroundColor:B},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:H,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${J(p)} solid transparent`,transition:`border-color ${y} ${x}`,content:'""'},"&:hover, &-active, &-open":{background:D,"&::after":{borderBottomWidth:p,borderBottomColor:G}},"&-selected":{color:G,backgroundColor:V,"&:hover":{backgroundColor:V},"&::after":{borderBottomWidth:p,borderBottomColor:G}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${J(h)} ${O} ${I}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${J(g)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$} ${S}`,`opacity ${$} ${S}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:N}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$} ${x}`,`opacity ${$} ${x}`].join(",")}}}}}},sS=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:l,marginXS:s,itemMarginBlock:u,itemWidth:f,itemPaddingInline:m}=e,p=e.calc(l).add(o).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:J(n),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:f},[`> ${t}-item,
|
|
253
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:J(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
254
|
-
${t}-submenu-title`]:{paddingInlineEnd:p}}},ik=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:l,controlHeightLG:s,motionEaseOut:u,paddingXL:f,itemMarginInline:m,fontSizeLG:p,motionDurationFast:g,motionDurationSlow:h,paddingXS:y,boxShadowSecondary:x,collapsedWidth:S,collapsedIconSize:b}=e,$={height:r,lineHeight:J(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},sS(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},sS(e)),{boxShadow:x})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${J(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${g} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:$,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:$}},{[`${t}-inline-collapsed`]:{width:S,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,
|
|
255
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
256
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
257
|
-
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${J(e.calc(b).div(2).equal())} - ${J(m)})`,textOverflow:"clip",[`
|
|
258
|
-
${t}-submenu-arrow,
|
|
259
|
-
${t}-submenu-expand-icon
|
|
260
|
-
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:b,lineHeight:J(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ss),{paddingInline:y})}}]},cS=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:l,iconCls:s,iconSize:u,iconMarginInlineEnd:f}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${l}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ml()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},uS=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:l,menuArrowOffset:s}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${J(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${J(s)})`}}}}},ak=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:s,paddingXS:u,padding:f,colorSplit:m,lineWidth:p,zIndexPopup:g,borderRadiusLG:h,subMenuItemBorderRadius:y,menuArrowSize:x,menuArrowOffset:S,lineType:b,groupTitleLineHeight:$,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},Ru()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),Ru()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${J(u)} ${J(f)}`,fontSize:w,lineHeight:$,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${l} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:b,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}}}),cS(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${J(e.calc(r).mul(2).equal())} ${J(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},cS(e)),uS(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),uS(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
261
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${J(S)})`},"&::after":{transform:`rotate(45deg) translateX(${J(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${J(e.calc(x).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${J(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${J(S)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},lk=e=>{var t,n,r;const{colorPrimary:o,colorError:l,colorTextDisabled:s,colorErrorBg:u,colorText:f,colorTextDescription:m,colorBgContainer:p,colorFillAlter:g,colorFillContent:h,lineWidth:y,lineWidthBold:x,controlItemBgActive:S,colorBgTextHover:b,controlHeightLG:$,lineHeight:w,colorBgElevated:O,marginXXS:I,padding:R,fontSize:P,controlHeightSM:T,fontSizeLG:N,colorTextLightSolid:M,colorErrorHover:_}=e,L=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,z=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,A=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,B=new sn(M).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:f,itemColor:f,colorItemTextHover:f,itemHoverColor:f,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:m,groupTitleColor:m,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:p,itemBg:p,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:h,itemActiveBg:S,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:L,colorActiveBarHeight:x,activeBarHeight:x,colorActiveBarBorderSize:y,activeBarBorderWidth:z,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$,groupTitleLineHeight:w,collapsedWidth:$*2,popupBg:O,itemMarginBlock:I,itemPaddingInline:R,horizontalLineHeight:`${$*1.15}px`,iconSize:P,iconMarginInlineEnd:T-P,collapsedIconSize:N,groupTitleFontSize:P,darkItemDisabledColor:new sn(M).setA(.25).toRgbString(),darkItemColor:B,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:M,darkItemSelectedBg:o,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:B,darkItemHoverColor:M,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:M,darkDangerItemActiveBg:l,itemWidth:L?`calc(100% + ${z}px)`:`calc(100% - ${A*2}px)`}},sk=(e,t=e,n=!0)=>mn("Menu",o=>{const{colorBgElevated:l,controlHeightLG:s,fontSize:u,darkItemColor:f,darkDangerItemColor:m,darkItemBg:p,darkSubMenuItemBg:g,darkItemSelectedColor:h,darkItemSelectedBg:y,darkDangerItemSelectedBg:x,darkItemHoverBg:S,darkGroupTitleColor:b,darkItemHoverColor:$,darkItemDisabledColor:w,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:R,popupBg:P,darkPopupBg:T}=o,N=o.calc(u).div(7).mul(5).equal(),M=Qt(o,{menuArrowSize:N,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(N).mul(.25).equal(),menuSubMenuBg:l,calc:o.calc,popupBg:P}),_=Qt(M,{itemColor:f,itemHoverColor:$,groupTitleColor:b,itemSelectedColor:h,subMenuItemSelectedColor:h,itemBg:p,popupBg:T,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:w,dangerItemColor:m,dangerItemHoverColor:O,dangerItemSelectedColor:I,dangerItemActiveBg:R,dangerItemSelectedBg:x,menuSubMenuBg:g,horizontalItemSelectedColor:h,horizontalItemSelectedBg:y});return[ak(M),rk(M),ik(M),lS(M,"light"),lS(_,"dark"),ok(M),qx(M),Ni(M,"slide-up"),Ni(M,"slide-down"),zs(M,"zoom-big")]},lk,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),Tw=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:l}=e,s=c.useContext(Du),{prefixCls:u,inlineCollapsed:f,theme:m}=s,p=Sl();let g;if(!r)g=f&&!p.length&&o&&typeof o=="string"?c.createElement("div",{className:`${u}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${u}-title-content`},o);else{const x=c.isValidElement(o)&&o.type==="span";g=c.createElement(c.Fragment,null,Or(r,{className:re(c.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),x?o:c.createElement("span",{className:`${u}-title-content`},o))}const h=c.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[y]=Ns("Menu");return c.createElement(Du.Provider,{value:h},c.createElement(wd,Object.assign({},Vn(e,["icon"]),{title:g,popupClassName:re(u,n,`${u}-${l||m}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var ck=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 qm(e){return e===null||e===!1}const uk={item:Pw,submenu:Tw,divider:Rw},dk=c.forwardRef((e,t)=>{var n;const r=c.useContext(Fu),o=r||{},{getPrefixCls:l,getPopupContainer:s,direction:u,menu:f}=c.useContext(Rt),m=l(),{prefixCls:p,className:g,style:h,theme:y="light",expandIcon:x,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:b,siderCollapsed:$,rootClassName:w,mode:O,selectable:I,onClick:R,overflowedIndicatorPopupClassName:P}=e,T=ck(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=Vn(T,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:O});const M=_n((...F)=>{var Q;R==null||R.apply(void 0,F),(Q=o.onClick)===null||Q===void 0||Q.call(o)}),_=o.mode||O,L=I??o.selectable,z=b??$,A={horizontal:{motionName:`${m}-slide-up`},inline:Bx(m),other:{motionName:`${m}-zoom-big`}},B=l("menu",p||o.prefixCls),G=ni(B),[V,H,D]=sk(B,G,!r),Z=re(`${B}-${y}`,f==null?void 0:f.className,g),W=c.useMemo(()=>{var F,Q;if(typeof x=="function"||qm(x))return x||null;if(typeof o.expandIcon=="function"||qm(o.expandIcon))return o.expandIcon||null;if(typeof(f==null?void 0:f.expandIcon)=="function"||qm(f==null?void 0:f.expandIcon))return(f==null?void 0:f.expandIcon)||null;const ne=(F=x??(o==null?void 0:o.expandIcon))!==null&&F!==void 0?F:f==null?void 0:f.expandIcon;return Or(ne,{className:re(`${B}-submenu-expand-icon`,c.isValidElement(ne)?(Q=ne.props)===null||Q===void 0?void 0:Q.className:void 0)})},[x,o==null?void 0:o.expandIcon,f==null?void 0:f.expandIcon,B]),k=c.useMemo(()=>({prefixCls:B,inlineCollapsed:z||!1,direction:u,firstLevel:!0,theme:y,mode:_,disableMenuItemTitleTooltip:S}),[B,z,u,S,y]);return V(c.createElement(Fu.Provider,{value:null},c.createElement(Du.Provider,{value:k},c.createElement(xl,Object.assign({getPopupContainer:s,overflowedIndicator:c.createElement(sv,null),overflowedIndicatorPopupClassName:re(B,`${B}-${y}`,P),mode:_,selectable:L,onClick:M},N,{inlineCollapsed:z,style:Object.assign(Object.assign({},f==null?void 0:f.style),h),className:Z,prefixCls:B,direction:u,defaultMotions:A,expandIcon:W,ref:t,rootClassName:re(w,H,o.rootClassName,D,G),_internalComponents:uk})))))}),Hs=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext($d);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var l;(l=n.current)===null||l===void 0||l.focus(o)}})),c.createElement(dk,Object.assign({ref:n},e,r))});Hs.Item=Pw;Hs.SubMenu=Tw;Hs.Divider=Rw;Hs.ItemGroup=lv;const fk=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},mk=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:l,antCls:s,iconCls:u,motionDurationMid:f,paddingBlock:m,fontSize:p,dropdownEdgeChildPadding:g,colorTextDisabled:h,fontSizeIcon:y,controlPaddingHorizontal:x,colorBgElevated:S}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${u}-down, & > ${s}-btn-icon > ${u}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${u}-down`]:{fontSize:y},[`${u}-down::before`]:{transition:`transform ${f}`}},[`${t}-wrap-open`]:{[`${u}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
262
|
-
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
263
|
-
&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,
|
|
264
|
-
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,
|
|
265
|
-
&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight,
|
|
266
|
-
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Bg},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft,
|
|
267
|
-
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft,
|
|
268
|
-
&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top,
|
|
269
|
-
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top,
|
|
270
|
-
&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight,
|
|
271
|
-
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Dg},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
272
|
-
&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom,
|
|
273
|
-
&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ag},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,
|
|
274
|
-
&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,
|
|
275
|
-
&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Fg}}},ev(e,S,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},An(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},No(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${J(m)} ${J(x)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${J(m)} ${J(x)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},No(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${J(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${J(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(x).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Ni(e,"slide-up"),Ni(e,"slide-down"),ju(e,"move-up"),ju(e,"move-down"),zs(e,"zoom-big")]]},pk=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Sd({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Jg(e)),gk=mn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,l=Qt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[mk(l),fk(l)]},pk,{resetStyle:!1}),Ed=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:l,trigger:s,disabled:u,dropdownRender:f,popupRender:m,getPopupContainer:p,overlayClassName:g,rootClassName:h,overlayStyle:y,open:x,onOpenChange:S,visible:b,onVisibleChange:$,mouseEnterDelay:w=.15,mouseLeaveDelay:O=.1,autoAdjustOverflow:I=!0,placement:R="",overlay:P,transitionName:T,destroyOnHidden:N,destroyPopupOnHide:M}=e,{getPopupContainer:_,getPrefixCls:L,direction:z,dropdown:A}=c.useContext(Rt),B=m||f;Ju();const G=c.useMemo(()=>{const be=L();return T!==void 0?T:R.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[L,R,T]),V=c.useMemo(()=>R?R.includes("Center")?R.slice(0,R.indexOf("Center")):R:z==="rtl"?"bottomRight":"bottomLeft",[R,z]),H=L("dropdown",o),D=ni(H),[Z,W,k]=gk(H,D),[,F]=Rr(),Q=c.Children.only(l3(l)?c.createElement("span",null,l):l),ne=Or(Q,{className:re(`${H}-trigger`,{[`${H}-rtl`]:z==="rtl"},Q.props.className),disabled:(t=Q.props.disabled)!==null&&t!==void 0?t:u}),ee=u?[]:s,oe=!!(ee!=null&&ee.includes("contextMenu")),[fe,me]=Hn(!1,{value:x??b}),ue=_n(be=>{S==null||S(be,{source:"trigger"}),$==null||$(be),me(be)}),Se=re(g,h,W,k,D,A==null?void 0:A.className,{[`${H}-rtl`]:z==="rtl"}),pe=nw({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:I,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),se=_n(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(S==null||S(!1,{source:"menu"}),me(!1))}),ye=()=>{let be;return n!=null&&n.items?be=c.createElement(Hs,Object.assign({},n)):typeof P=="function"?be=P():be=P,B&&(be=B(be)),be=c.Children.only(typeof be=="string"?c.createElement("span",null,be):be),c.createElement(nk,{prefixCls:`${H}-menu`,rootClassName:re(k,D),expandIcon:c.createElement("span",{className:`${H}-menu-submenu-arrow`},z==="rtl"?c.createElement(ws,{className:`${H}-menu-submenu-arrow-icon`}):c.createElement(cl,{className:`${H}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:se,validator:({mode:xe})=>{}},be)},[ve,ce]=Ns("Dropdown",y==null?void 0:y.zIndex);let le=c.createElement(dw,Object.assign({alignPoint:oe},Vn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:O,visible:fe,builtinPlacements:pe,arrow:!!r,overlayClassName:Se,prefixCls:H,getPopupContainer:p||_,transitionName:G,trigger:ee,overlay:ye,placement:V,onVisibleChange:ue,overlayStyle:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),y),{zIndex:ve}),autoDestroy:N??M}),ne);return ve&&(le=c.createElement(od.Provider,{value:ce},le)),Z(le)},vk=IC(Ed,"align",void 0,"dropdown",e=>e),hk=e=>c.createElement(vk,Object.assign({},e),c.createElement("span",null));Ed._InternalPanelDoNotUseOrYouWillBeFired=hk;function Od(e){return Qt(e,{inputAffixPadding:e.paddingXXS})}const Id=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:s,fontSizeLG:u,lineHeightLG:f,paddingSM:m,controlPaddingHorizontalSM:p,controlPaddingHorizontal:g,colorFillAlter:h,colorPrimaryHover:y,colorPrimary:x,controlOutlineWidth:S,controlOutline:b,colorErrorOutline:$,colorWarningOutline:w,colorBgContainer:O,inputFontSize:I,inputFontSizeLG:R,inputFontSizeSM:P}=e,T=I||n,N=P||T,M=R||u,_=Math.round((t-T*r)/2*10)/10-o,L=Math.round((l-N*r)/2*10)/10-o,z=Math.ceil((s-M*f)/2*10)/10-o;return{paddingBlock:Math.max(_,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(z,0),paddingInline:m-o,paddingInlineSM:p-o,paddingInlineLG:g-o,addonBg:h,activeBorderColor:x,hoverBorderColor:y,activeShadow:`0 0 0 ${S}px ${b}`,errorActiveShadow:`0 0 0 ${S}px ${$}`,warningActiveShadow:`0 0 0 ${S}px ${w}`,hoverBg:O,activeBg:O,inputFontSize:T,inputFontSizeLG:M,inputFontSizeSM:N}},yk=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Rd=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({},yk(Qt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),cv=(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}}),dS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),bk=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Rd(e))}),dS(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),dS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),fS=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Sk=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},fS(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),fS(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Rd(e))}})}),xk=(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)}},Mw=(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}}},mS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Mw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Ck=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Rd(e))}),mS(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),mS(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),pS=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),wk=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},pS(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),pS(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:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Nw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${J(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),gS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Nw(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`}}),$k=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),gS(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),gS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Ek=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),_w=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${J(t)} ${J(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},uv=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),dv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${J(e.paddingBlock)} ${J(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Ek(e.colorTextPlaceholder)),{"&-lg":Object.assign({},_w(e)),"&-sm":Object.assign({},uv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Ok=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({},_w(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},uv(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 ${J(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${J(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${J(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:`${J(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${J(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"},Ru()),{[`${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},[`
|
|
276
|
-
& > ${t}-affix-wrapper,
|
|
277
|
-
& > ${t}-number-affix-wrapper,
|
|
278
|
-
& > ${n}-picker-range
|
|
279
|
-
`]:{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,
|
|
280
|
-
& > ${n}-select-auto-complete ${t},
|
|
281
|
-
& > ${n}-cascader-picker ${t},
|
|
282
|
-
& > ${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,
|
|
283
|
-
& > ${n}-select:first-child > ${n}-select-selector,
|
|
284
|
-
& > ${n}-select-auto-complete:first-child ${t},
|
|
285
|
-
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
286
|
-
& > ${n}-select:last-child > ${n}-select-selector,
|
|
287
|
-
& > ${n}-cascader-picker:last-child ${t},
|
|
288
|
-
& > ${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}}}})}},Ik=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,s=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({},An(e)),dv(e)),bk(e)),Ck(e)),xk(e)),$k(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Rk=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 ${J(e.inputAffixPadding)}`}}}},Pk=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:l,colorIconHover:s,iconCls:u}=e,f=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},dv(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}}}),Rk(e)),{[`${u}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),[`${t}-underlined`]:{borderRadius:0},[m]:{[`${u}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},Tk=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},An(e)),Ok(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}}},Sk(e)),wk(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}}})})}},Mk=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,
|
|
289
|
-
> ${t},
|
|
290
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Nk=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_k=mn(["Input","Shared"],e=>{const t=Qt(e,Od(e));return[Ik(t),Pk(t)]},Id,{resetFont:!1});mn(["Input","Component"],e=>{const t=Qt(e,Od(e));return[Tk(t),Mk(t),Nk(t),pd(t)]},Id,{resetFont:!1});var jk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},zk=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:jk}))},kk=c.forwardRef(zk);const Pd=c.createContext(null);var Lk=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,l=t.indicator,s=l===void 0?{}:l,u=s.size,f=s.align,m=f===void 0?"center":f,p=c.useState(),g=ae(p,2),h=g[0],y=g[1],x=c.useRef(),S=Y.useCallback(function($){return typeof u=="function"?u($):typeof u=="number"?u:$},[u]);function b(){Sn.cancel(x.current)}return c.useEffect(function(){var $={};if(n)if(r){$.width=S(n.width);var w=o?"right":"left";m==="start"&&($[w]=n[w]),m==="center"&&($[w]=n[w]+n.width/2,$.transform=o?"translateX(50%)":"translateX(-50%)"),m==="end"&&($[w]=n[w]+n.width,$.transform="translateX(-100%)")}else $.height=S(n.height),m==="start"&&($.top=n.top),m==="center"&&($.top=n.top+n.height/2,$.transform="translateY(-50%)"),m==="end"&&($.top=n.top+n.height,$.transform="translateY(-100%)");return b(),x.current=Sn(function(){var O=h&&$&&Object.keys($).every(function(I){var R=$[I],P=h[I];return typeof R=="number"&&typeof P=="number"?Math.round(R)===Math.round(P):R===P});O||y($)}),b},[JSON.stringify(n),r,o,m,S]),{style:h}},vS={width:0,height:0,left:0,top:0};function Bk(e,t,n){return c.useMemo(function(){for(var r,o=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||vS,s=l.left+l.width,u=0;u<e.length;u+=1){var f=e[u].key,m=t.get(f);if(!m){var p;m=t.get((p=e[u-1])===null||p===void 0?void 0:p.key)||vS}var g=o.get(f)||X({},m);g.right=s-g.left-g.width,o.set(f,g)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function hS(e,t){var n=c.useRef(e),r=c.useState({}),o=ae(r,2),l=o[1];function s(u){var f=typeof u=="function"?u(n.current):u;f!==n.current&&t(f,n.current),n.current=f,l({})}return[n.current,s]}var Ak=.1,yS=.01,xu=20,bS=Math.pow(.995,xu);function Dk(e,t){var n=c.useState(),r=ae(n,2),o=r[0],l=r[1],s=c.useState(0),u=ae(s,2),f=u[0],m=u[1],p=c.useState(0),g=ae(p,2),h=g[0],y=g[1],x=c.useState(),S=ae(x,2),b=S[0],$=S[1],w=c.useRef();function O(M){var _=M.touches[0],L=_.screenX,z=_.screenY;l({x:L,y:z}),window.clearInterval(w.current)}function I(M){if(o){var _=M.touches[0],L=_.screenX,z=_.screenY;l({x:L,y:z});var A=L-o.x,B=z-o.y;t(A,B);var G=Date.now();m(G),y(G-f),$({x:A,y:B})}}function R(){if(o&&(l(null),$(null),b)){var M=b.x/h,_=b.y/h,L=Math.abs(M),z=Math.abs(_);if(Math.max(L,z)<Ak)return;var A=M,B=_;w.current=window.setInterval(function(){if(Math.abs(A)<yS&&Math.abs(B)<yS){window.clearInterval(w.current);return}A*=bS,B*=bS,t(A*xu,B*xu)},xu)}}var P=c.useRef();function T(M){var _=M.deltaX,L=M.deltaY,z=0,A=Math.abs(_),B=Math.abs(L);A===B?z=P.current==="x"?_:L:A>B?(z=_,P.current="x"):(z=L,P.current="y"),t(-z,-z)&&M.preventDefault()}var N=c.useRef(null);N.current={onTouchStart:O,onTouchMove:I,onTouchEnd:R,onWheel:T},c.useEffect(function(){function M(A){N.current.onTouchStart(A)}function _(A){N.current.onTouchMove(A)}function L(A){N.current.onTouchEnd(A)}function z(A){N.current.onWheel(A)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",M,{passive:!0}),e.current.addEventListener("wheel",z,{passive:!1}),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",L)}},[])}function jw(e){var t=c.useState(0),n=ae(t,2),r=n[0],o=n[1],l=c.useRef(0),s=c.useRef();return s.current=e,bp(function(){var u;(u=s.current)===null||u===void 0||u.call(s)},[r]),function(){l.current===r&&(l.current+=1,o(l.current))}}function Fk(e){var t=c.useRef([]),n=c.useState({}),r=ae(n,2),o=r[1],l=c.useRef(typeof e=="function"?e():e),s=jw(function(){var f=l.current;t.current.forEach(function(m){f=m(f)}),t.current=[],l.current=f,o({})});function u(f){t.current.push(f),s()}return[l.current,u]}var SS={width:0,height:0,left:0,top:0,right:0};function Hk(e,t,n,r,o,l,s){var u=s.tabs,f=s.tabPosition,m=s.rtl,p,g,h;return["top","bottom"].includes(f)?(p="width",g=m?"right":"left",h=Math.abs(n)):(p="height",g="top",h=-n),c.useMemo(function(){if(!u.length)return[0,0];for(var y=u.length,x=y,S=0;S<y;S+=1){var b=e.get(u[S].key)||SS;if(Math.floor(b[g]+b[p])>Math.floor(h+t)){x=S-1;break}}for(var $=0,w=y-1;w>=0;w-=1){var O=e.get(u[w].key)||SS;if(O[g]<h){$=w+1;break}}return $>x?[0,-1]:[$,x]},[e,t,r,o,l,h,f,u.map(function(y){return y.key}).join("_"),m])}function xS(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Vk="TABS_DQ";function zw(e){return String(e).replace(/"/g,Vk)}function fv(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var kw=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,l=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),CS=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var l,s={};return mt(o)==="object"&&!c.isValidElement(o)?s=o:s.right=o,n==="right"&&(l=s.right),n==="left"&&(l=s.left),l?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),Wk=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,l=e.locale,s=e.mobile,u=e.more,f=u===void 0?{}:u,m=e.style,p=e.className,g=e.editable,h=e.tabBarGutter,y=e.rtl,x=e.removeAriaLabel,S=e.onTabClick,b=e.getPopupContainer,$=e.popupClassName,w=c.useState(!1),O=ae(w,2),I=O[0],R=O[1],P=c.useState(null),T=ae(P,2),N=T[0],M=T[1],_=f.icon,L=_===void 0?"More":_,z="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),B=N!==null?"".concat(z,"-").concat(N):null,G=l==null?void 0:l.dropdownAriaLabel;function V(Q,ne){Q.preventDefault(),Q.stopPropagation(),g.onEdit("remove",{key:ne,event:Q})}var H=c.createElement(xl,{onClick:function(ne){var ee=ne.key,oe=ne.domEvent;S(ee,oe),R(!1)},prefixCls:"".concat(A,"-menu"),id:z,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[N],"aria-label":G!==void 0?G:"expanded dropdown"},o.map(function(Q){var ne=Q.closable,ee=Q.disabled,oe=Q.closeIcon,fe=Q.key,me=Q.label,ue=fv(ne,oe,g,ee);return c.createElement(Fs,{key:fe,id:"".concat(z,"-").concat(fe),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(fe),disabled:ee},c.createElement("span",null,me),ue&&c.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(pe){pe.stopPropagation(),V(pe,fe)}},oe||g.removeIcon||"×"))}));function D(Q){for(var ne=o.filter(function(ue){return!ue.disabled}),ee=ne.findIndex(function(ue){return ue.key===N})||0,oe=ne.length,fe=0;fe<oe;fe+=1){ee=(ee+Q+oe)%oe;var me=ne[ee];if(!me.disabled){M(me.key);return}}}function Z(Q){var ne=Q.which;if(!I){[Ue.DOWN,Ue.SPACE,Ue.ENTER].includes(ne)&&(R(!0),Q.preventDefault());return}switch(ne){case Ue.UP:D(-1),Q.preventDefault();break;case Ue.DOWN:D(1),Q.preventDefault();break;case Ue.ESC:R(!1);break;case Ue.SPACE:case Ue.ENTER:N!==null&&S(N,Q);break}}c.useEffect(function(){var Q=document.getElementById(B);Q&&Q.scrollIntoView&&Q.scrollIntoView(!1)},[N]),c.useEffect(function(){I||M(null)},[I]);var W=U({},y?"marginRight":"marginLeft",h);o.length||(W.visibility="hidden",W.order=1);var k=re(U({},"".concat(A,"-rtl"),y)),F=s?null:c.createElement(dw,Ee({prefixCls:A,overlay:H,visible:o.length?I:!1,onVisibleChange:R,overlayClassName:re(k,$),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f),c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,"aria-haspopup":"listbox","aria-controls":z,id:"".concat(r,"-more"),"aria-expanded":I,onKeyDown:Z},L));return c.createElement("div",{className:re("".concat(n,"-nav-operations"),p),style:m,ref:t},F,c.createElement(kw,{prefixCls:n,locale:l,editable:g}))});const Uk=c.memo(Wk,function(e,t){return t.tabMoving});var Gk=function(t){var n=t.prefixCls,r=t.id,o=t.active,l=t.focus,s=t.tab,u=s.key,f=s.label,m=s.disabled,p=s.closeIcon,g=s.icon,h=t.closable,y=t.renderWrapper,x=t.removeAriaLabel,S=t.editable,b=t.onClick,$=t.onFocus,w=t.onBlur,O=t.onKeyDown,I=t.onMouseDown,R=t.onMouseUp,P=t.style,T=t.tabCount,N=t.currentPosition,M="".concat(n,"-tab"),_=fv(h,p,S,m);function L(V){m||b(V)}function z(V){V.preventDefault(),V.stopPropagation(),S.onEdit("remove",{key:u,event:V})}var A=c.useMemo(function(){return g&&typeof f=="string"?c.createElement("span",null,f):f},[f,g]),B=c.useRef(null);c.useEffect(function(){l&&B.current&&B.current.focus()},[l]);var G=c.createElement("div",{key:u,"data-node-key":zw(u),className:re(M,U(U(U(U({},"".concat(M,"-with-remove"),_),"".concat(M,"-active"),o),"".concat(M,"-disabled"),m),"".concat(M,"-focus"),l)),style:P,onClick:L},c.createElement("div",{ref:B,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(u),className:"".concat(M,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(u),"aria-disabled":m,tabIndex:m?null:o?0:-1,onClick:function(H){H.stopPropagation(),L(H)},onKeyDown:O,onMouseDown:I,onMouseUp:R,onFocus:$,onBlur:w},l&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(N," of ").concat(T)),g&&c.createElement("span",{className:"".concat(M,"-icon")},g),f&&A),_&&c.createElement("button",{type:"button",role:"tab","aria-label":x||"remove",tabIndex:o?0:-1,className:"".concat(M,"-remove"),onClick:function(H){H.stopPropagation(),z(H)}},p||S.removeIcon||"×"));return y?y(G):G},qk=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,l=t.offsetTop,s=t.offsetLeft,u=t.getBoundingClientRect(),f=u.width,m=u.height,p=u.left,g=u.top;return Math.abs(f-r)<1?[f,m,p-n.left,g-n.top]:[r,o,s,l]},Va=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,l=n.offsetHeight,s=l===void 0?0:l;if(t.current){var u=t.current.getBoundingClientRect(),f=u.width,m=u.height;if(Math.abs(f-o)<1)return[f,m]}return[o,s]},Zc=function(t,n){return t[n?0:1]},wS=c.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,l=e.animated,s=e.activeKey,u=e.rtl,f=e.extra,m=e.editable,p=e.locale,g=e.tabPosition,h=e.tabBarGutter,y=e.children,x=e.onTabClick,S=e.onTabScroll,b=e.indicator,$=c.useContext(Pd),w=$.prefixCls,O=$.tabs,I=c.useRef(null),R=c.useRef(null),P=c.useRef(null),T=c.useRef(null),N=c.useRef(null),M=c.useRef(null),_=c.useRef(null),L=g==="top"||g==="bottom",z=hS(0,function(et,qe){L&&S&&S({direction:et>qe?"left":"right"})}),A=ae(z,2),B=A[0],G=A[1],V=hS(0,function(et,qe){!L&&S&&S({direction:et>qe?"top":"bottom"})}),H=ae(V,2),D=H[0],Z=H[1],W=c.useState([0,0]),k=ae(W,2),F=k[0],Q=k[1],ne=c.useState([0,0]),ee=ae(ne,2),oe=ee[0],fe=ee[1],me=c.useState([0,0]),ue=ae(me,2),Se=ue[0],pe=ue[1],se=c.useState([0,0]),ye=ae(se,2),ve=ye[0],ce=ye[1],le=Fk(new Map),be=ae(le,2),xe=be[0],$e=be[1],Ne=Bk(O,xe,oe[0]),Le=Zc(F,L),Pe=Zc(oe,L),Be=Zc(Se,L),Oe=Zc(ve,L),tt=Math.floor(Le)<Math.floor(Pe+Be),lt=tt?Le-Oe:Le-Be,bt="".concat(w,"-nav-operations-hidden"),st=0,Ge=0;L&&u?(st=0,Ge=Math.max(0,Pe-lt)):(st=Math.min(0,lt-Pe),Ge=0);function it(et){return et<st?st:et>Ge?Ge:et}var Ve=c.useRef(null),dt=c.useState(),Xe=ae(dt,2),_e=Xe[0],Ye=Xe[1];function Te(){Ye(Date.now())}function Fe(){Ve.current&&clearTimeout(Ve.current)}Dk(T,function(et,qe){function xt(Lt,He){Lt(function(ut){var $t=it(ut+He);return $t})}return tt?(L?xt(G,et):xt(Z,qe),Fe(),Te(),!0):!1}),c.useEffect(function(){return Fe(),_e&&(Ve.current=setTimeout(function(){Ye(0)},100)),Fe},[_e]);var wt=Hk(Ne,lt,L?B:D,Pe,Be,Oe,X(X({},e),{},{tabs:O})),pt=ae(wt,2),Ht=pt[0],Dt=pt[1],on=_n(function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,qe=Ne.get(et)||{width:0,height:0,left:0,right:0,top:0};if(L){var xt=B;u?qe.right<B?xt=qe.right:qe.right+qe.width>B+lt&&(xt=qe.right+qe.width-lt):qe.left<-B?xt=-qe.left:qe.left+qe.width>-B+lt&&(xt=-(qe.left+qe.width-lt)),Z(0),G(it(xt))}else{var Lt=D;qe.top<-D?Lt=-qe.top:qe.top+qe.height>-D+lt&&(Lt=-(qe.top+qe.height-lt)),G(0),Z(it(Lt))}}),hn=c.useState(),Wt=ae(hn,2),Mt=Wt[0],St=Wt[1],Ut=c.useState(!1),Bt=ae(Ut,2),Ze=Bt[0],yt=Bt[1],at=O.filter(function(et){return!et.disabled}).map(function(et){return et.key}),Ie=function(qe){var xt=at.indexOf(Mt||s),Lt=at.length,He=(xt+qe+Lt)%Lt,ut=at[He];St(ut)},we=function(qe,xt){var Lt=at.indexOf(qe),He=O.find(function($t){return $t.key===qe}),ut=fv(He==null?void 0:He.closable,He==null?void 0:He.closeIcon,m,He==null?void 0:He.disabled);ut&&(xt.preventDefault(),xt.stopPropagation(),m.onEdit("remove",{key:qe,event:xt}),Lt===at.length-1?Ie(-1):Ie(1))},Ce=function(qe,xt){yt(!0),xt.button===1&&we(qe,xt)},je=function(qe){var xt=qe.code,Lt=u&&L,He=at[0],ut=at[at.length-1];switch(xt){case"ArrowLeft":{L&&Ie(Lt?1:-1);break}case"ArrowRight":{L&&Ie(Lt?-1:1);break}case"ArrowUp":{qe.preventDefault(),L||Ie(-1);break}case"ArrowDown":{qe.preventDefault(),L||Ie(1);break}case"Home":{qe.preventDefault(),St(He);break}case"End":{qe.preventDefault(),St(ut);break}case"Enter":case"Space":{qe.preventDefault(),x(Mt??s,qe);break}case"Backspace":case"Delete":{we(Mt,qe);break}}},Ke={};L?Ke[u?"marginRight":"marginLeft"]=h:Ke.marginTop=h;var Qe=O.map(function(et,qe){var xt=et.key;return c.createElement(Gk,{id:o,prefixCls:w,key:xt,tab:et,style:qe===0?void 0:Ke,closable:et.closable,editable:m,active:xt===s,focus:xt===Mt,renderWrapper:y,removeAriaLabel:p==null?void 0:p.removeAriaLabel,tabCount:at.length,currentPosition:qe+1,onClick:function(He){x(xt,He)},onKeyDown:je,onFocus:function(){Ze||St(xt),on(xt),Te(),T.current&&(u||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:function(){St(void 0)},onMouseDown:function(He){return Ce(xt,He)},onMouseUp:function(){yt(!1)}})}),_t=function(){return $e(function(){var qe,xt=new Map,Lt=(qe=N.current)===null||qe===void 0?void 0:qe.getBoundingClientRect();return O.forEach(function(He){var ut,$t=He.key,tn=(ut=N.current)===null||ut===void 0?void 0:ut.querySelector('[data-node-key="'.concat(zw($t),'"]'));if(tn){var zn=qk(tn,Lt),wn=ae(zn,4),cr=wn[0],Gn=wn[1],ur=wn[2],qn=wn[3];xt.set($t,{width:cr,height:Gn,left:ur,top:qn})}}),xt})};c.useEffect(function(){_t()},[O.map(function(et){return et.key}).join("_")]);var kt=jw(function(){var et=Va(I),qe=Va(R),xt=Va(P);Q([et[0]-qe[0]-xt[0],et[1]-qe[1]-xt[1]]);var Lt=Va(_);pe(Lt);var He=Va(M);ce(He);var ut=Va(N);fe([ut[0]-Lt[0],ut[1]-Lt[1]]),_t()}),It=O.slice(0,Ht),Pt=O.slice(Dt+1),gn=[].concat(Ae(It),Ae(Pt)),un=Ne.get(s),yn=Lk({activeTabOffset:un,horizontal:L,indicator:b,rtl:u}),On=yn.style;c.useEffect(function(){on()},[s,st,Ge,xS(un),xS(Ne),L]),c.useEffect(function(){kt()},[u]);var qt=!!gn.length,Jt="".concat(w,"-nav-wrap"),ze,We,Ct,ct;return L?u?(We=B>0,ze=B!==Ge):(ze=B<0,We=B!==st):(Ct=D<0,ct=D!==st),c.createElement(oo,{onResize:kt},c.createElement("div",{ref:Zo(t,I),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:re("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Te()}},c.createElement(CS,{ref:R,position:"left",extra:f,prefixCls:w}),c.createElement(oo,{onResize:kt},c.createElement("div",{className:re(Jt,U(U(U(U({},"".concat(Jt,"-ping-left"),ze),"".concat(Jt,"-ping-right"),We),"".concat(Jt,"-ping-top"),Ct),"".concat(Jt,"-ping-bottom"),ct)),ref:T},c.createElement(oo,{onResize:kt},c.createElement("div",{ref:N,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(D,"px)"),transition:_e?"none":void 0}},Qe,c.createElement(kw,{ref:_,prefixCls:w,locale:p,editable:m,style:X(X({},Qe.length===0?void 0:Ke),{},{visibility:qt?"hidden":null})}),c.createElement("div",{className:re("".concat(w,"-ink-bar"),U({},"".concat(w,"-ink-bar-animated"),l.inkBar)),style:On}))))),c.createElement(Uk,Ee({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:M,prefixCls:w,tabs:gn,className:!qt&&bt,tabMoving:!!_e})),c.createElement(CS,{ref:P,position:"right",extra:f,prefixCls:w})))}),Lw=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.id,s=e.active,u=e.tabKey,f=e.children;return c.createElement("div",{id:l&&"".concat(l,"-panel-").concat(u),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(u),"aria-hidden":!s,style:o,className:re(n,s&&"".concat(n,"-active"),r),ref:t},f)}),Kk=["renderTabBar"],Xk=["label","key"],Qk=function(t){var n=t.renderTabBar,r=Nt(t,Kk),o=c.useContext(Pd),l=o.tabs;if(n){var s=X(X({},r),{},{panes:l.map(function(u){var f=u.label,m=u.key,p=Nt(u,Xk);return c.createElement(Lw,Ee({tab:f,key:m,tabKey:m},p))})});return n(s,wS)}return c.createElement(wS,r)},Yk=["key","forceRender","style","className","destroyInactiveTabPane"],Zk=function(t){var n=t.id,r=t.activeKey,o=t.animated,l=t.tabPosition,s=t.destroyInactiveTabPane,u=c.useContext(Pd),f=u.prefixCls,m=u.tabs,p=o.tabPane,g="".concat(f,"-tabpane");return c.createElement("div",{className:re("".concat(f,"-content-holder"))},c.createElement("div",{className:re("".concat(f,"-content"),"".concat(f,"-content-").concat(l),U({},"".concat(f,"-content-animated"),p))},m.map(function(h){var y=h.key,x=h.forceRender,S=h.style,b=h.className,$=h.destroyInactiveTabPane,w=Nt(h,Yk),O=y===r;return c.createElement(wo,Ee({key:y,visible:O,forceRender:x,removeOnLeave:!!(s||$),leavedClassName:"".concat(g,"-hidden")},o.tabPaneMotion),function(I,R){var P=I.style,T=I.className;return c.createElement(Lw,Ee({},w,{prefixCls:g,id:n,tabKey:y,animated:p,active:O,style:X(X({},S),P),className:re(b,T),ref:R}))})})))};function Jk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=X({inkBar:!0},mt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var e6=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],$S=0,t6=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,l=e.className,s=e.items,u=e.direction,f=e.activeKey,m=e.defaultActiveKey,p=e.editable,g=e.animated,h=e.tabPosition,y=h===void 0?"top":h,x=e.tabBarGutter,S=e.tabBarStyle,b=e.tabBarExtraContent,$=e.locale,w=e.more,O=e.destroyInactiveTabPane,I=e.renderTabBar,R=e.onChange,P=e.onTabClick,T=e.onTabScroll,N=e.getPopupContainer,M=e.popupClassName,_=e.indicator,L=Nt(e,e6),z=c.useMemo(function(){return(s||[]).filter(function(ve){return ve&&mt(ve)==="object"&&"key"in ve})},[s]),A=u==="rtl",B=Jk(g),G=c.useState(!1),V=ae(G,2),H=V[0],D=V[1];c.useEffect(function(){D(Gg())},[]);var Z=Hn(function(){var ve;return(ve=z[0])===null||ve===void 0?void 0:ve.key},{value:f,defaultValue:m}),W=ae(Z,2),k=W[0],F=W[1],Q=c.useState(function(){return z.findIndex(function(ve){return ve.key===k})}),ne=ae(Q,2),ee=ne[0],oe=ne[1];c.useEffect(function(){var ve=z.findIndex(function(le){return le.key===k});if(ve===-1){var ce;ve=Math.max(0,Math.min(ee,z.length-1)),F((ce=z[ve])===null||ce===void 0?void 0:ce.key)}oe(ve)},[z.map(function(ve){return ve.key}).join("_"),k,ee]);var fe=Hn(null,{value:n}),me=ae(fe,2),ue=me[0],Se=me[1];c.useEffect(function(){n||(Se("rc-tabs-".concat($S)),$S+=1)},[]);function pe(ve,ce){P==null||P(ve,ce);var le=ve!==k;F(ve),le&&(R==null||R(ve))}var se={id:ue,activeKey:k,animated:B,tabPosition:y,rtl:A,mobile:H},ye=X(X({},se),{},{editable:p,locale:$,more:w,tabBarGutter:x,onTabClick:pe,onTabScroll:T,extra:b,style:S,panes:null,getPopupContainer:N,popupClassName:M,indicator:_});return c.createElement(Pd.Provider,{value:{tabs:z,prefixCls:o}},c.createElement("div",Ee({ref:t,id:n,className:re(o,"".concat(o,"-").concat(y),U(U(U({},"".concat(o,"-mobile"),H),"".concat(o,"-editable"),p),"".concat(o,"-rtl"),A),l)},L),c.createElement(Qk,Ee({},ye,{renderTabBar:I})),c.createElement(Zk,Ee({destroyInactiveTabPane:O},se,{animated:B}))))});const n6={motionAppear:!1,motionEnter:!0,motionLeave:!0};function r6(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},n6),{motionName:Mi(e,"switch")})),n}var o6=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 i6(e){return e.filter(t=>t)}function a6(e,t){if(e)return e.map(r=>{var o;const l=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=Er(t).map(r=>{if(c.isValidElement(r)){const{key:o,props:l}=r,s=l||{},{tab:u}=s,f=o6(s,["tab"]);return Object.assign(Object.assign({key:String(o)},f),{label:u})}return null});return i6(n)}const l6=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ni(e,"slide-up"),Ni(e,"slide-down")]]},s6=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:l,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${J(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:sl(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:J(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:J(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadiusLG)} 0 0 ${J(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},c6=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},An(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${J(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ss),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${J(e.paddingXXS)} ${J(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},u6=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:l,verticalItemMargin:s,calc:u}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${J(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
291
|
-
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
292
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:J(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},d6=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:l,horizontalItemPaddingSM:s,horizontalItemPaddingLG:u}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadius)} ${J(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${J(e.borderRadius)} ${J(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadius)} ${J(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadius)} 0 0 ${J(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},f6=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:l,horizontalItemPadding:s,itemSelectedColor:u,itemColor:f}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:f,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},No(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn:focus-visible`]:sl(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},m6=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:J(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:J(e.marginXS)},marginLeft:{_skip_check_:!0,value:J(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},p6=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:l,itemActiveColor:s,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${J(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:s}},No(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),f6(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},No(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},g6=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:l}=e,s=t||l,u=n||o,f=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:u,cardHeightLG:f,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(f-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},v6=mn("Tabs",e=>{const t=Qt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${J(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${J(e.horizontalItemGutter)}`});return[d6(t),m6(t),u6(t),c6(t),s6(t),p6(t),l6(t)]},g6),h6=()=>null;var y6=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 b6=c.forwardRef((e,t)=>{var n,r,o,l,s,u,f,m,p,g,h;const{type:y,className:x,rootClassName:S,size:b,onEdit:$,hideAdd:w,centered:O,addIcon:I,removeIcon:R,moreIcon:P,more:T,popupClassName:N,children:M,items:_,animated:L,style:z,indicatorSize:A,indicator:B,destroyInactiveTabPane:G,destroyOnHidden:V}=e,H=y6(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:D}=H,{direction:Z,tabs:W,getPrefixCls:k,getPopupContainer:F}=c.useContext(Rt),Q=k("tabs",D),ne=ni(Q),[ee,oe,fe]=v6(Q,ne),me=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:me.current}));let ue;y==="editable-card"&&(ue={onEdit:(le,{key:be,event:xe})=>{$==null||$(le==="add"?xe:be,le)},removeIcon:(n=R??(W==null?void 0:W.removeIcon))!==null&&n!==void 0?n:c.createElement(gl,null),addIcon:(I??(W==null?void 0:W.addIcon))||c.createElement(kk,null),showAdd:w!==!0});const Se=k(),pe=ri(b),se=a6(_,M),ye=r6(Q,L),ve=Object.assign(Object.assign({},W==null?void 0:W.style),z),ce={align:(r=B==null?void 0:B.align)!==null&&r!==void 0?r:(o=W==null?void 0:W.indicator)===null||o===void 0?void 0:o.align,size:(f=(s=(l=B==null?void 0:B.size)!==null&&l!==void 0?l:A)!==null&&s!==void 0?s:(u=W==null?void 0:W.indicator)===null||u===void 0?void 0:u.size)!==null&&f!==void 0?f:W==null?void 0:W.indicatorSize};return ee(c.createElement(t6,Object.assign({ref:me,direction:Z,getPopupContainer:F},H,{items:se,className:re({[`${Q}-${pe}`]:pe,[`${Q}-card`]:["card","editable-card"].includes(y),[`${Q}-editable-card`]:y==="editable-card",[`${Q}-centered`]:O},W==null?void 0:W.className,x,S,oe,fe,ne),popupClassName:re(N,oe,fe,ne),style:ve,editable:ue,more:Object.assign({icon:(h=(g=(p=(m=W==null?void 0:W.more)===null||m===void 0?void 0:m.icon)!==null&&p!==void 0?p:W==null?void 0:W.moreIcon)!==null&&g!==void 0?g:P)!==null&&h!==void 0?h:c.createElement(sv,null),transitionName:`${Se}-slide-up`},T),prefixCls:Q,animated:ye,indicator:ce,destroyInactiveTabPane:V??G})))}),Bw=b6;Bw.TabPane=h6;function S6(e,t,n){var r=n||{},o=r.noTrailing,l=o===void 0?!1:o,s=r.noLeading,u=s===void 0?!1:s,f=r.debounceMode,m=f===void 0?void 0:f,p,g=!1,h=0;function y(){p&&clearTimeout(p)}function x(b){var $=b||{},w=$.upcomingOnly,O=w===void 0?!1:w;y(),g=!O}function S(){for(var b=arguments.length,$=new Array(b),w=0;w<b;w++)$[w]=arguments[w];var O=this,I=Date.now()-h;if(g)return;function R(){h=Date.now(),t.apply(O,$)}function P(){p=void 0}!u&&m&&!p&&R(),y(),m===void 0&&I>e?u?(h=Date.now(),l||(p=setTimeout(m?P:R,e))):R():l!==!0&&(p=setTimeout(m?P:R,m===void 0?e-I:e))}return S.cancel=x,S}function x6(e,t,n){var r={},o=r.atBegin,l=o===void 0?!1:o;return S6(e,t,{debounceMode:l!==!1})}const Aw=c.createContext({});var C6=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 ES(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const w6=["xs","sm","md","lg","xl","xxl"],$6=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(Rt),{gutter:o,wrap:l}=c.useContext(Aw),{prefixCls:s,span:u,order:f,offset:m,push:p,pull:g,className:h,children:y,flex:x,style:S}=e,b=C6(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",s),[w,O,I]=I_($),R={};let P={};w6.forEach(M=>{let _={};const L=e[M];typeof L=="number"?_.span=L:typeof L=="object"&&(_=L||{}),delete b[M],P=Object.assign(Object.assign({},P),{[`${$}-${M}-${_.span}`]:_.span!==void 0,[`${$}-${M}-order-${_.order}`]:_.order||_.order===0,[`${$}-${M}-offset-${_.offset}`]:_.offset||_.offset===0,[`${$}-${M}-push-${_.push}`]:_.push||_.push===0,[`${$}-${M}-pull-${_.pull}`]:_.pull||_.pull===0,[`${$}-rtl`]:r==="rtl"}),_.flex&&(P[`${$}-${M}-flex`]=!0,R[`--${$}-${M}-flex`]=ES(_.flex))});const T=re($,{[`${$}-${u}`]:u!==void 0,[`${$}-order-${f}`]:f,[`${$}-offset-${m}`]:m,[`${$}-push-${p}`]:p,[`${$}-pull-${g}`]:g},h,P,O,I),N={};if(o!=null&&o[0]){const M=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;N.paddingLeft=M,N.paddingRight=M}return x&&(N.flex=ES(x),l===!1&&!N.minWidth&&(N.minWidth=0)),w(c.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},N),S),R),className:T,ref:t}),y))});function E6(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((l,s)=>{if(typeof l=="object"&&l!==null)for(let u=0;u<na.length;u++){const f=na[u];if(o[f]&&l[f]!==void 0){n[s]=l[f];break}}else n[s]=l}),n}var O6=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 OS(e,t){const[n,r]=c.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<na.length;l++){const s=na[l];if(!t||!t[s])continue;const u=e[s];if(u!==void 0){r(u);return}}};return c.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const I6=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:l,style:s,children:u,gutter:f=0,wrap:m}=e,p=O6(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:h}=c.useContext(Rt),y=Yg(!0,null),x=OS(o,y),S=OS(r,y),b=g("row",n),[$,w,O]=O_(b),I=E6(f,y),R=re(b,{[`${b}-no-wrap`]:m===!1,[`${b}-${S}`]:S,[`${b}-${x}`]:x,[`${b}-rtl`]:h==="rtl"},l,w,O),P={};if(I!=null&&I[0]){const _=typeof I[0]=="number"?`${I[0]/-2}px`:`calc(${I[0]} / -2)`;P.marginLeft=_,P.marginRight=_}const[T,N]=I;P.rowGap=N;const M=c.useMemo(()=>({gutter:[T,N],wrap:m}),[T,N,m]);return $(c.createElement(Aw.Provider,{value:M},c.createElement("div",Object.assign({},p,{className:R,style:Object.assign(Object.assign({},P),s),ref:t}),u)))}),R6=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},P6=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:l,orientationMargin:s,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},An(e)),{borderBlockStart:`${J(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${J(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${J(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${J(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${J(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${J(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${J(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},T6=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),M6=mn("Divider",e=>{const t=Qt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[P6(t),R6(t)]},T6,{unitless:{orientationMargin:!0}});var N6=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 _6={small:"sm",middle:"md"},IS=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=Ir("divider"),{prefixCls:l,type:s="horizontal",orientation:u="center",orientationMargin:f,className:m,rootClassName:p,children:g,dashed:h,variant:y="solid",plain:x,style:S,size:b}=e,$=N6(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",l),[O,I,R]=M6(w),P=ri(b),T=_6[P],N=!!g,M=c.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),_=M==="start"&&f!=null,L=M==="end"&&f!=null,z=re(w,r,I,R,`${w}-${s}`,{[`${w}-with-text`]:N,[`${w}-with-text-${M}`]:N,[`${w}-dashed`]:!!h,[`${w}-${y}`]:y!=="solid",[`${w}-plain`]:!!x,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:_,[`${w}-no-default-orientation-margin-end`]:L,[`${w}-${T}`]:!!T},m,p),A=c.useMemo(()=>typeof f=="number"?f:/^\d+$/.test(f)?Number(f):f,[f]),B={marginInlineStart:_?A:void 0,marginInlineEnd:L?A:void 0};return O(c.createElement("div",Object.assign({className:z,style:Object.assign(Object.assign({},o),S)},$,{role:"separator"}),g&&s!=="vertical"&&c.createElement("span",{className:`${w}-inner-text`,style:B},g)))};function j6(e){return!!(e.addonBefore||e.addonAfter)}function z6(e){return!!(e.prefix||e.suffix||e.allowClear)}function RS(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 PS(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=RS(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=RS(t,e,r),n(o);return}n(o)}}function k6(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 L6=Y.forwardRef(function(e,t){var n,r,o,l=e.inputElement,s=e.children,u=e.prefixCls,f=e.prefix,m=e.suffix,p=e.addonBefore,g=e.addonAfter,h=e.className,y=e.style,x=e.disabled,S=e.readOnly,b=e.focused,$=e.triggerFocus,w=e.allowClear,O=e.value,I=e.handleReset,R=e.hidden,P=e.classes,T=e.classNames,N=e.dataAttrs,M=e.styles,_=e.components,L=e.onClear,z=s??l,A=(_==null?void 0:_.affixWrapper)||"span",B=(_==null?void 0:_.groupWrapper)||"span",G=(_==null?void 0:_.wrapper)||"span",V=(_==null?void 0:_.groupAddon)||"span",H=c.useRef(null),D=function(ce){var le;(le=H.current)!==null&&le!==void 0&&le.contains(ce.target)&&($==null||$())},Z=z6(e),W=c.cloneElement(z,{value:O,className:re((n=z.props)===null||n===void 0?void 0:n.className,!Z&&(T==null?void 0:T.variant))||null}),k=c.useRef(null);if(Y.useImperativeHandle(t,function(){return{nativeElement:k.current||H.current}}),Z){var F=null;if(w){var Q=!x&&!S&&O,ne="".concat(u,"-clear-icon"),ee=mt(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";F=Y.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){I==null||I(ce),L==null||L()},onMouseDown:function(ce){return ce.preventDefault()},className:re(ne,U(U({},"".concat(ne,"-hidden"),!Q),"".concat(ne,"-has-suffix"),!!m))},ee)}var oe="".concat(u,"-affix-wrapper"),fe=re(oe,U(U(U(U(U({},"".concat(u,"-disabled"),x),"".concat(oe,"-disabled"),x),"".concat(oe,"-focused"),b),"".concat(oe,"-readonly"),S),"".concat(oe,"-input-with-clear-btn"),m&&w&&O),P==null?void 0:P.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),me=(m||w)&&Y.createElement("span",{className:re("".concat(u,"-suffix"),T==null?void 0:T.suffix),style:M==null?void 0:M.suffix},F,m);W=Y.createElement(A,Ee({className:fe,style:M==null?void 0:M.affixWrapper,onClick:D},N==null?void 0:N.affixWrapper,{ref:H}),f&&Y.createElement("span",{className:re("".concat(u,"-prefix"),T==null?void 0:T.prefix),style:M==null?void 0:M.prefix},f),W,me)}if(j6(e)){var ue="".concat(u,"-group"),Se="".concat(ue,"-addon"),pe="".concat(ue,"-wrapper"),se=re("".concat(u,"-wrapper"),ue,P==null?void 0:P.wrapper,T==null?void 0:T.wrapper),ye=re(pe,U({},"".concat(pe,"-disabled"),x),P==null?void 0:P.group,T==null?void 0:T.groupWrapper);W=Y.createElement(B,{className:ye,ref:k},Y.createElement(G,{className:se},p&&Y.createElement(V,{className:Se},p),W,g&&Y.createElement(V,{className:Se},g)))}return Y.cloneElement(W,{className:re((r=W.props)===null||r===void 0?void 0:r.className,h)||null,style:X(X({},(o=W.props)===null||o===void 0?void 0:o.style),y),hidden:R})}),B6=["show"];function A6(e,t){return c.useMemo(function(){var n={};t&&(n.show=mt(t)==="object"&&t.formatter?t.formatter:!!t),n=X(X({},n),e);var r=n,o=r.show,l=Nt(r,B6);return X(X({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(s){return s.length}})},[e,t])}const D6=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Y.createElement(nd,null)}),t};function TS(e){return["small","middle","large"].includes(e)}function MS(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const F6=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:l,fontSizeLG:s,fontSizeSM:u,borderRadiusLG:f,borderRadiusSM:m,colorBgContainerDisabled:p,lineWidth:g}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:p,borderWidth:g,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:s,borderRadius:f},"&-small":{paddingInline:l,borderRadius:m,fontSize:u},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},pd(e,{focus:!1})]}},H6=mn(["Space","Addon"],e=>[F6(e)]);var V6=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 W6=Y.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:l}=e,s=V6(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:f}=Y.useContext(Rt),m=u("space-addon",l),[p,g,h]=H6(m),{compactItemClassnames:y,compactSize:x}=js(m,f),S=re(m,g,y,h,{[`${m}-${x}`]:x},n);return p(Y.createElement("div",Object.assign({ref:t,className:S,style:o},s),r))}),Dw=Y.createContext({latestIndex:0}),U6=Dw.Provider,G6=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:l}=c.useContext(Dw);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:e,style:o},n),t<l&&r&&c.createElement("span",{className:`${e}-split`},r))},q6=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},K6=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},X6=mn("Space",e=>{const t=Qt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[q6(t),K6(t)]},()=>({}),{resetStyle:!1});var Q6=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 Y6=c.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:l,className:s,style:u,classNames:f,styles:m}=Ir("space"),{size:p=l??"small",align:g,className:h,rootClassName:y,children:x,direction:S="horizontal",prefixCls:b,split:$,style:w,wrap:O=!1,classNames:I,styles:R}=e,P=Q6(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,N]=Array.isArray(p)?p:[p,p],M=TS(N),_=TS(T),L=MS(N),z=MS(T),A=Er(x,{keepEmpty:!0}),B=g===void 0&&S==="horizontal"?"center":g,G=r("space",b),[V,H,D]=X6(G),Z=re(G,s,H,`${G}-${S}`,{[`${G}-rtl`]:o==="rtl",[`${G}-align-${B}`]:B,[`${G}-gap-row-${N}`]:M,[`${G}-gap-col-${T}`]:_},h,y,D),W=re(`${G}-item`,(n=I==null?void 0:I.item)!==null&&n!==void 0?n:f.item),k=Object.assign(Object.assign({},m.item),R==null?void 0:R.item),F=A.map((ee,oe)=>{const fe=(ee==null?void 0:ee.key)||`${W}-${oe}`;return c.createElement(G6,{className:W,key:fe,index:oe,split:$,style:k},ee)}),Q=c.useMemo(()=>({latestIndex:A.reduce((oe,fe,me)=>fe!=null?me:oe,0)}),[A]);if(A.length===0)return null;const ne={};return O&&(ne.flexWrap="wrap"),!_&&z&&(ne.columnGap=T),!M&&L&&(ne.rowGap=N),V(c.createElement("div",Object.assign({ref:t,className:Z,style:Object.assign(Object.assign(Object.assign({},ne),u),w)},P),c.createElement(U6,{value:Q},F)))}),dl=Y6;dl.Compact=rT;dl.Addon=W6;var Z6=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 Fw=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(Rt),{prefixCls:o,type:l="default",danger:s,disabled:u,loading:f,onClick:m,htmlType:p,children:g,className:h,menu:y,arrow:x,autoFocus:S,overlay:b,trigger:$,align:w,open:O,onOpenChange:I,placement:R,getPopupContainer:P,href:T,icon:N=c.createElement(sv,null),title:M,buttonsRender:_=pe=>pe,mouseEnterDelay:L,mouseLeaveDelay:z,overlayClassName:A,overlayStyle:B,destroyOnHidden:G,destroyPopupOnHide:V,dropdownRender:H,popupRender:D}=e,Z=Z6(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),W=n("dropdown",o),k=`${W}-button`,Q={menu:y,arrow:x,autoFocus:S,align:w,disabled:u,trigger:u?[]:$,onOpenChange:I,getPopupContainer:P||t,mouseEnterDelay:L,mouseLeaveDelay:z,overlayClassName:A,overlayStyle:B,destroyOnHidden:G,popupRender:D||H},{compactSize:ne,compactItemClassnames:ee}=js(W,r),oe=re(k,ee,h);"destroyPopupOnHide"in e&&(Q.destroyPopupOnHide=V),"overlay"in e&&(Q.overlay=b),"open"in e&&(Q.open=O),"placement"in e?Q.placement=R:Q.placement=r==="rtl"?"bottomLeft":"bottomRight";const fe=c.createElement(zo,{type:l,danger:s,disabled:u,loading:f,onClick:m,htmlType:p,href:T,title:M},g),me=c.createElement(zo,{type:l,danger:s,icon:N}),[ue,Se]=_([fe,me]);return c.createElement(dl.Compact,Object.assign({className:oe,size:ne,block:!0},Z),ue,c.createElement(Ed,Object.assign({},Q),Se))};Fw.__ANT_BUTTON=!0;const Hw=Ed;Hw.Button=Fw;var J6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},eL=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:J6}))},mv=c.forwardRef(eL),tL=`
|
|
293
|
-
min-height:0 !important;
|
|
294
|
-
max-height:none !important;
|
|
295
|
-
height:0 !important;
|
|
296
|
-
visibility:hidden !important;
|
|
297
|
-
overflow:hidden !important;
|
|
298
|
-
position:absolute !important;
|
|
299
|
-
z-index:-1000 !important;
|
|
300
|
-
top:0 !important;
|
|
301
|
-
right:0 !important;
|
|
302
|
-
pointer-events: none !important;
|
|
303
|
-
`,nL=["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"],Km={},Wr;function rL(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&&Km[n])return Km[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=nL.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),f={sizingStyle:u,paddingSize:l,borderSize:s,boxSizing:o};return t&&n&&(Km[n]=f),f}function oL(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;Wr||(Wr=document.createElement("textarea"),Wr.setAttribute("tab-index","-1"),Wr.setAttribute("aria-hidden","true"),Wr.setAttribute("name","hiddenTextarea"),document.body.appendChild(Wr)),e.getAttribute("wrap")?Wr.setAttribute("wrap",e.getAttribute("wrap")):Wr.removeAttribute("wrap");var o=rL(e,t),l=o.paddingSize,s=o.borderSize,u=o.boxSizing,f=o.sizingStyle;Wr.setAttribute("style","".concat(f,";").concat(tL)),Wr.value=e.value||e.placeholder||"";var m=void 0,p=void 0,g,h=Wr.scrollHeight;if(u==="border-box"?h+=s:u==="content-box"&&(h-=l),n!==null||r!==null){Wr.value=" ";var y=Wr.scrollHeight-l;n!==null&&(m=y*n,u==="border-box"&&(m=m+l+s),h=Math.max(m,h)),r!==null&&(p=y*r,u==="border-box"&&(p=p+l+s),g=h>p?"":"hidden",h=Math.min(p,h))}var x={height:h,overflowY:g,resize:"none"};return m&&(x.minHeight=m),p&&(x.maxHeight=p),x}var iL=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Xm=0,Qm=1,Ym=2,aL=c.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,l=n.value,s=n.autoSize,u=n.onResize,f=n.className,m=n.style,p=n.disabled,g=n.onChange;n.onInternalAutoSize;var h=Nt(n,iL),y=Hn(o,{value:l,postState:function(Q){return Q??""}}),x=ae(y,2),S=x[0],b=x[1],$=function(Q){b(Q.target.value),g==null||g(Q)},w=c.useRef();c.useImperativeHandle(t,function(){return{textArea:w.current}});var O=c.useMemo(function(){return s&&mt(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),I=ae(O,2),R=I[0],P=I[1],T=!!s,N=c.useState(Ym),M=ae(N,2),_=M[0],L=M[1],z=c.useState(),A=ae(z,2),B=A[0],G=A[1],V=function(){L(Xm)};rn(function(){T&&V()},[l,R,P,T]),rn(function(){if(_===Xm)L(Qm);else if(_===Qm){var F=oL(w.current,!1,R,P);L(Ym),G(F)}},[_]);var H=c.useRef(),D=function(){Sn.cancel(H.current)},Z=function(Q){_===Ym&&(u==null||u(Q),s&&(D(),H.current=Sn(function(){V()})))};c.useEffect(function(){return D},[]);var W=T?B:null,k=X(X({},m),W);return(_===Xm||_===Qm)&&(k.overflowY="hidden",k.overflowX="hidden"),c.createElement(oo,{onResize:Z,disabled:!(s||u)},c.createElement("textarea",Ee({},h,{ref:w,style:k,className:re(r,f,U({},"".concat(r,"-disabled"),p)),disabled:p,value:S,onChange:$})))}),lL=["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"],sL=Y.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,l=e.onFocus,s=e.onBlur,u=e.onChange,f=e.allowClear,m=e.maxLength,p=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,y=e.prefixCls,x=y===void 0?"rc-textarea":y,S=e.showCount,b=e.count,$=e.className,w=e.style,O=e.disabled,I=e.hidden,R=e.classNames,P=e.styles,T=e.onResize,N=e.onClear,M=e.onPressEnter,_=e.readOnly,L=e.autoSize,z=e.onKeyDown,A=Nt(e,lL),B=Hn(r,{value:o,defaultValue:r}),G=ae(B,2),V=G[0],H=G[1],D=V==null?"":String(V),Z=Y.useState(!1),W=ae(Z,2),k=W[0],F=W[1],Q=Y.useRef(!1),ne=Y.useState(null),ee=ae(ne,2),oe=ee[0],fe=ee[1],me=c.useRef(null),ue=c.useRef(null),Se=function(){var _e;return(_e=ue.current)===null||_e===void 0?void 0:_e.textArea},pe=function(){Se().focus()};c.useImperativeHandle(t,function(){var Xe;return{resizableTextArea:ue.current,focus:pe,blur:function(){Se().blur()},nativeElement:((Xe=me.current)===null||Xe===void 0?void 0:Xe.nativeElement)||Se()}}),c.useEffect(function(){F(function(Xe){return!O&&Xe})},[O]);var se=Y.useState(null),ye=ae(se,2),ve=ye[0],ce=ye[1];Y.useEffect(function(){if(ve){var Xe;(Xe=Se()).setSelectionRange.apply(Xe,Ae(ve))}},[ve]);var le=A6(b,S),be=(n=le.max)!==null&&n!==void 0?n:m,xe=Number(be)>0,$e=le.strategy(D),Ne=!!be&&$e>be,Le=function(_e,Ye){var Te=Ye;!Q.current&&le.exceedFormatter&&le.max&&le.strategy(Ye)>le.max&&(Te=le.exceedFormatter(Ye,{max:le.max}),Ye!==Te&&ce([Se().selectionStart||0,Se().selectionEnd||0])),H(Te),PS(_e.currentTarget,_e,u,Te)},Pe=function(_e){Q.current=!0,p==null||p(_e)},Be=function(_e){Q.current=!1,Le(_e,_e.currentTarget.value),g==null||g(_e)},Oe=function(_e){Le(_e,_e.target.value)},tt=function(_e){_e.key==="Enter"&&M&&M(_e),z==null||z(_e)},lt=function(_e){F(!0),l==null||l(_e)},bt=function(_e){F(!1),s==null||s(_e)},st=function(_e){H(""),pe(),PS(Se(),_e,u)},Ge=h,it;le.show&&(le.showFormatter?it=le.showFormatter({value:D,count:$e,maxLength:be}):it="".concat($e).concat(xe?" / ".concat(be):""),Ge=Y.createElement(Y.Fragment,null,Ge,Y.createElement("span",{className:re("".concat(x,"-data-count"),R==null?void 0:R.count),style:P==null?void 0:P.count},it)));var Ve=function(_e){var Ye;T==null||T(_e),(Ye=Se())!==null&&Ye!==void 0&&Ye.style.height&&fe(!0)},dt=!L&&!S&&!f;return Y.createElement(L6,{ref:me,value:D,allowClear:f,handleReset:st,suffix:Ge,prefixCls:x,classNames:X(X({},R),{},{affixWrapper:re(R==null?void 0:R.affixWrapper,U(U({},"".concat(x,"-show-count"),S),"".concat(x,"-textarea-allow-clear"),f))}),disabled:O,focused:k,className:re($,Ne&&"".concat(x,"-out-of-range")),style:X(X({},w),oe&&!dt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof it=="string"?it:void 0}},hidden:I,readOnly:_,onClear:N},Y.createElement(aL,Ee({},A,{autoSize:L,maxLength:m,onKeyDown:tt,onChange:Oe,onFocus:lt,onBlur:bt,onCompositionStart:Pe,onCompositionEnd:Be,className:re(R==null?void 0:R.textarea),style:X(X({},P==null?void 0:P.textarea),{},{resize:w==null?void 0:w.resize}),disabled:O,prefixCls:x,onResize:Ve,ref:ue,readOnly:_})))});const cL=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"}},[`
|
|
304
|
-
&-allow-clear > ${t},
|
|
305
|
-
&-affix-wrapper${r}-has-feedback ${t}
|
|
306
|
-
`]:{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}}}}}},uL=mn(["Input","TextArea"],e=>{const t=Qt(e,Od(e));return cL(t)},Id,{resetFont:!1});var dL=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 fL=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:s,status:u,allowClear:f,classNames:m,rootClassName:p,className:g,style:h,styles:y,variant:x,showCount:S,onMouseDown:b,onResize:$}=e,w=dL(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:O,direction:I,allowClear:R,autoComplete:P,className:T,style:N,classNames:M,styles:_}=Ir("textArea"),L=c.useContext(il),z=s??L,{status:A,hasFeedback:B,feedbackIcon:G}=c.useContext(ku),V=HC(A,u),H=c.useRef(null);c.useImperativeHandle(t,()=>{var le;return{resizableTextArea:(le=H.current)===null||le===void 0?void 0:le.resizableTextArea,focus:be=>{var xe,$e;k6(($e=(xe=H.current)===null||xe===void 0?void 0:xe.resizableTextArea)===null||$e===void 0?void 0:$e.textArea,be)},blur:()=>{var be;return(be=H.current)===null||be===void 0?void 0:be.blur()}}});const D=O("input",r),Z=ni(D),[W,k,F]=_k(D,p),[Q]=uL(D,Z),{compactSize:ne,compactItemClassnames:ee}=js(D,I),oe=ri(le=>{var be;return(be=l??ne)!==null&&be!==void 0?be:le}),[fe,me]=GC("textArea",x,o),ue=D6(f??R),[Se,pe]=c.useState(!1),[se,ye]=c.useState(!1),ve=le=>{pe(!0),b==null||b(le);const be=()=>{pe(!1),document.removeEventListener("mouseup",be)};document.addEventListener("mouseup",be)},ce=le=>{var be,xe;if($==null||$(le),Se&&typeof getComputedStyle=="function"){const $e=(xe=(be=H.current)===null||be===void 0?void 0:be.nativeElement)===null||xe===void 0?void 0:xe.querySelector("textarea");$e&&getComputedStyle($e).resize==="both"&&ye(!0)}};return W(Q(c.createElement(sL,Object.assign({autoComplete:P},w,{style:Object.assign(Object.assign({},N),h),styles:Object.assign(Object.assign({},_),y),disabled:z,allowClear:ue,className:re(F,Z,g,p,ee,T,se&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),M),{textarea:re({[`${D}-sm`]:oe==="small",[`${D}-lg`]:oe==="large"},k,m==null?void 0:m.textarea,M.textarea,Se&&`${D}-mouse-active`),variant:re({[`${D}-${fe}`]:me},FC(D,V)),affixWrapper:re(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:I==="rtl",[`${D}-affix-wrapper-sm`]:oe==="small",[`${D}-affix-wrapper-lg`]:oe==="large",[`${D}-textarea-show-count`]:S||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:D,suffix:B&&c.createElement("span",{className:`${D}-textarea-suffix`},G),showCount:S,ref:H,onResize:ce,onMouseDown:ve}))))});function mL(e,t,n){return typeof n=="boolean"?n:e.length?!0:Er(t).some(o=>o.type===Iw)}var Vw=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 Td({suffixCls:e,tagName:t,displayName:n}){return r=>c.forwardRef((l,s)=>c.createElement(r,Object.assign({ref:s,suffixCls:e,tagName:t},l)))}const pv=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:l}=e,s=Vw(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=c.useContext(Rt),f=u("layout",n),[m,p,g]=Ow(f),h=r?`${f}-${r}`:f;return m(c.createElement(l,Object.assign({className:re(n||h,o,p,g),ref:t},s)))}),pL=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(Rt),[r,o]=c.useState([]),{prefixCls:l,className:s,rootClassName:u,children:f,hasSider:m,tagName:p,style:g}=e,h=Vw(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Vn(h,["suffixCls"]),{getPrefixCls:x,className:S,style:b}=Ir("layout"),$=x("layout",l),w=mL(r,f,m),[O,I,R]=Ow($),P=re($,{[`${$}-has-sider`]:w,[`${$}-rtl`]:n==="rtl"},S,s,u,I,R),T=c.useMemo(()=>({siderHook:{addSider:N=>{o(M=>[].concat(Ae(M),[N]))},removeSider:N=>{o(M=>M.filter(_=>_!==N))}}}),[]);return O(c.createElement(ww.Provider,{value:T},c.createElement(p,Object.assign({ref:t,className:P,style:Object.assign(Object.assign({},b),g)},y),f)))}),gL=Td({tagName:"div",displayName:"Layout"})(pL),vL=Td({suffixCls:"header",tagName:"header",displayName:"Header"})(pv),hL=Td({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(pv),yL=Td({suffixCls:"content",tagName:"main",displayName:"Content"})(pv),Ii=gL;Ii.Header=vL;Ii.Footer=hL;Ii.Content=yL;Ii.Sider=Iw;Ii._InternalSiderContext=$d;var bL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},SL=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:bL}))},NS=c.forwardRef(SL),xL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},CL=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:xL}))},_S=c.forwardRef(CL),wL={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},$L=[10,20,50,100],EL=function(t){var n=t.pageSizeOptions,r=n===void 0?$L:n,o=t.locale,l=t.changeSize,s=t.pageSize,u=t.goButton,f=t.quickGo,m=t.rootPrefixCls,p=t.disabled,g=t.buildOptionText,h=t.showSizeChanger,y=t.sizeChangerRender,x=Y.useState(""),S=ae(x,2),b=S[0],$=S[1],w=function(){return!b||Number.isNaN(b)?void 0:Number(b)},O=typeof g=="function"?g:function(z){return"".concat(z," ").concat(o.items_per_page)},I=function(A){$(A.target.value)},R=function(A){u||b===""||($(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(m,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&(f==null||f(w())))},P=function(A){b!==""&&(A.keyCode===Ue.ENTER||A.type==="click")&&($(""),f==null||f(w()))},T=function(){return r.some(function(A){return A.toString()===s.toString()})?r:r.concat([s]).sort(function(A,B){var G=Number.isNaN(Number(A))?0:Number(A),V=Number.isNaN(Number(B))?0:Number(B);return G-V})},N="".concat(m,"-options");if(!h&&!f)return null;var M=null,_=null,L=null;return h&&y&&(M=y({disabled:p,size:s,onSizeChange:function(A){l==null||l(Number(A))},"aria-label":o.page_size,className:"".concat(N,"-size-changer"),options:T().map(function(z){return{label:O(z),value:z}})})),f&&(u&&(L=typeof u=="boolean"?Y.createElement("button",{type:"button",onClick:P,onKeyUp:P,disabled:p,className:"".concat(N,"-quick-jumper-button")},o.jump_to_confirm):Y.createElement("span",{onClick:P,onKeyUp:P},u)),_=Y.createElement("div",{className:"".concat(N,"-quick-jumper")},o.jump_to,Y.createElement("input",{disabled:p,type:"text",value:b,onChange:I,onKeyUp:P,onBlur:R,"aria-label":o.page}),o.page,L)),Y.createElement("li",{className:N},M,_)},es=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,l=t.className,s=t.showTitle,u=t.onClick,f=t.onKeyPress,m=t.itemRender,p="".concat(n,"-item"),g=re(p,"".concat(p,"-").concat(r),U(U({},"".concat(p,"-active"),o),"".concat(p,"-disabled"),!r),l),h=function(){u(r)},y=function(b){f(b,u,r)},x=m(r,"page",Y.createElement("a",{rel:"nofollow"},r));return x?Y.createElement("li",{title:s?String(r):null,className:g,onClick:h,onKeyDown:y,tabIndex:0},x):null},OL=function(t,n,r){return r};function jS(){}function zS(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function qi(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var IL=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,l=o===void 0?"rc-select":o,s=t.className,u=t.current,f=t.defaultCurrent,m=f===void 0?1:f,p=t.total,g=p===void 0?0:p,h=t.pageSize,y=t.defaultPageSize,x=y===void 0?10:y,S=t.onChange,b=S===void 0?jS:S,$=t.hideOnSinglePage,w=t.align,O=t.showPrevNextJumpers,I=O===void 0?!0:O,R=t.showQuickJumper,P=t.showLessItems,T=t.showTitle,N=T===void 0?!0:T,M=t.onShowSizeChange,_=M===void 0?jS:M,L=t.locale,z=L===void 0?wL:L,A=t.style,B=t.totalBoundaryShowSizeChanger,G=B===void 0?50:B,V=t.disabled,H=t.simple,D=t.showTotal,Z=t.showSizeChanger,W=Z===void 0?g>G:Z,k=t.sizeChangerRender,F=t.pageSizeOptions,Q=t.itemRender,ne=Q===void 0?OL:Q,ee=t.jumpPrevIcon,oe=t.jumpNextIcon,fe=t.prevIcon,me=t.nextIcon,ue=Y.useRef(null),Se=Hn(10,{value:h,defaultValue:x}),pe=ae(Se,2),se=pe[0],ye=pe[1],ve=Hn(1,{value:u,defaultValue:m,postState:function(ut){return Math.max(1,Math.min(ut,qi(void 0,se,g)))}}),ce=ae(ve,2),le=ce[0],be=ce[1],xe=Y.useState(le),$e=ae(xe,2),Ne=$e[0],Le=$e[1];c.useEffect(function(){Le(le)},[le]);var Pe=Math.max(1,le-(P?3:5)),Be=Math.min(qi(void 0,se,g),le+(P?3:5));function Oe(He,ut){var $t=He||Y.createElement("button",{type:"button","aria-label":ut,className:"".concat(r,"-item-link")});return typeof He=="function"&&($t=Y.createElement(He,X({},t))),$t}function tt(He){var ut=He.target.value,$t=qi(void 0,se,g),tn;return ut===""?tn=ut:Number.isNaN(Number(ut))?tn=Ne:ut>=$t?tn=$t:tn=Number(ut),tn}function lt(He){return zS(He)&&He!==le&&zS(g)&&g>0}var bt=g>se?R:!1;function st(He){(He.keyCode===Ue.UP||He.keyCode===Ue.DOWN)&&He.preventDefault()}function Ge(He){var ut=tt(He);switch(ut!==Ne&&Le(ut),He.keyCode){case Ue.ENTER:dt(ut);break;case Ue.UP:dt(ut-1);break;case Ue.DOWN:dt(ut+1);break}}function it(He){dt(tt(He))}function Ve(He){var ut=qi(He,se,g),$t=le>ut&&ut!==0?ut:le;ye(He),Le($t),_==null||_(le,He),be($t),b==null||b($t,He)}function dt(He){if(lt(He)&&!V){var ut=qi(void 0,se,g),$t=He;return He>ut?$t=ut:He<1&&($t=1),$t!==Ne&&Le($t),be($t),b==null||b($t,se),$t}return le}var Xe=le>1,_e=le<qi(void 0,se,g);function Ye(){Xe&&dt(le-1)}function Te(){_e&&dt(le+1)}function Fe(){dt(Pe)}function wt(){dt(Be)}function pt(He,ut){if(He.key==="Enter"||He.charCode===Ue.ENTER||He.keyCode===Ue.ENTER){for(var $t=arguments.length,tn=new Array($t>2?$t-2:0),zn=2;zn<$t;zn++)tn[zn-2]=arguments[zn];ut.apply(void 0,tn)}}function Ht(He){pt(He,Ye)}function Dt(He){pt(He,Te)}function on(He){pt(He,Fe)}function hn(He){pt(He,wt)}function Wt(He){var ut=ne(He,"prev",Oe(fe,"prev page"));return Y.isValidElement(ut)?Y.cloneElement(ut,{disabled:!Xe}):ut}function Mt(He){var ut=ne(He,"next",Oe(me,"next page"));return Y.isValidElement(ut)?Y.cloneElement(ut,{disabled:!_e}):ut}function St(He){(He.type==="click"||He.keyCode===Ue.ENTER)&&dt(Ne)}var Ut=null,Bt=_o(t,{aria:!0,data:!0}),Ze=D&&Y.createElement("li",{className:"".concat(r,"-total-text")},D(g,[g===0?0:(le-1)*se+1,le*se>g?g:le*se])),yt=null,at=qi(void 0,se,g);if($&&g<=se)return null;var Ie=[],we={rootPrefixCls:r,onClick:dt,onKeyPress:pt,showTitle:N,itemRender:ne,page:-1},Ce=le-1>0?le-1:0,je=le+1<at?le+1:at,Ke=R&&R.goButton,Qe=mt(H)==="object"?H.readOnly:!H,_t=Ke,kt=null;H&&(Ke&&(typeof Ke=="boolean"?_t=Y.createElement("button",{type:"button",onClick:St,onKeyUp:St},z.jump_to_confirm):_t=Y.createElement("span",{onClick:St,onKeyUp:St},Ke),_t=Y.createElement("li",{title:N?"".concat(z.jump_to).concat(le,"/").concat(at):null,className:"".concat(r,"-simple-pager")},_t)),kt=Y.createElement("li",{title:N?"".concat(le,"/").concat(at):null,className:"".concat(r,"-simple-pager")},Qe?Ne:Y.createElement("input",{type:"text","aria-label":z.jump_to,value:Ne,disabled:V,onKeyDown:st,onKeyUp:Ge,onChange:Ge,onBlur:it,size:3}),Y.createElement("span",{className:"".concat(r,"-slash")},"/"),at));var It=P?1:2;if(at<=3+It*2){at||Ie.push(Y.createElement(es,Ee({},we,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Pt=1;Pt<=at;Pt+=1)Ie.push(Y.createElement(es,Ee({},we,{key:Pt,page:Pt,active:le===Pt})))}else{var gn=P?z.prev_3:z.prev_5,un=P?z.next_3:z.next_5,yn=ne(Pe,"jump-prev",Oe(ee,"prev page")),On=ne(Be,"jump-next",Oe(oe,"next page"));I&&(Ut=yn?Y.createElement("li",{title:N?gn:null,key:"prev",onClick:Fe,tabIndex:0,onKeyDown:on,className:re("".concat(r,"-jump-prev"),U({},"".concat(r,"-jump-prev-custom-icon"),!!ee))},yn):null,yt=On?Y.createElement("li",{title:N?un:null,key:"next",onClick:wt,tabIndex:0,onKeyDown:hn,className:re("".concat(r,"-jump-next"),U({},"".concat(r,"-jump-next-custom-icon"),!!oe))},On):null);var qt=Math.max(1,le-It),Jt=Math.min(le+It,at);le-1<=It&&(Jt=1+It*2),at-le<=It&&(qt=at-It*2);for(var ze=qt;ze<=Jt;ze+=1)Ie.push(Y.createElement(es,Ee({},we,{key:ze,page:ze,active:le===ze})));if(le-1>=It*2&&le!==3&&(Ie[0]=Y.cloneElement(Ie[0],{className:re("".concat(r,"-item-after-jump-prev"),Ie[0].props.className)}),Ie.unshift(Ut)),at-le>=It*2&&le!==at-2){var We=Ie[Ie.length-1];Ie[Ie.length-1]=Y.cloneElement(We,{className:re("".concat(r,"-item-before-jump-next"),We.props.className)}),Ie.push(yt)}qt!==1&&Ie.unshift(Y.createElement(es,Ee({},we,{key:1,page:1}))),Jt!==at&&Ie.push(Y.createElement(es,Ee({},we,{key:at,page:at})))}var Ct=Wt(Ce);if(Ct){var ct=!Xe||!at;Ct=Y.createElement("li",{title:N?z.prev_page:null,onClick:Ye,tabIndex:ct?null:0,onKeyDown:Ht,className:re("".concat(r,"-prev"),U({},"".concat(r,"-disabled"),ct)),"aria-disabled":ct},Ct)}var et=Mt(je);if(et){var qe,xt;H?(qe=!_e,xt=Xe?0:null):(qe=!_e||!at,xt=qe?null:0),et=Y.createElement("li",{title:N?z.next_page:null,onClick:Te,tabIndex:xt,onKeyDown:Dt,className:re("".concat(r,"-next"),U({},"".concat(r,"-disabled"),qe)),"aria-disabled":qe},et)}var Lt=re(r,s,U(U(U(U(U({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),H),"".concat(r,"-disabled"),V));return Y.createElement("ul",Ee({className:Lt,style:A,ref:ue},Bt),Ze,Ct,H?kt:Ie,et,Y.createElement(EL,{locale:z,rootPrefixCls:r,disabled:V,selectPrefixCls:l,changeSize:Ve,pageSize:se,pageSizeOptions:F,quickGo:bt?dt:null,goButton:_t,showSizeChanger:W,sizeChangerRender:k}))};const RL=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},PL=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:J(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:J(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
307
|
-
&${t}-mini ${t}-prev ${t}-item-link,
|
|
308
|
-
&${t}-mini ${t}-next ${t}-item-link
|
|
309
|
-
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:J(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM),input:Object.assign(Object.assign({},uv(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},TL=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:J(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:J(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${J(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${J(e.inputOutlineOffset)} 0 ${J(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},ML=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
310
|
-
${t}-prev,
|
|
311
|
-
${t}-jump-prev,
|
|
312
|
-
${t}-jump-next
|
|
313
|
-
`]:{marginInlineEnd:e.marginXS},[`
|
|
314
|
-
${t}-prev,
|
|
315
|
-
${t}-next,
|
|
316
|
-
${t}-jump-prev,
|
|
317
|
-
${t}-jump-next
|
|
318
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:J(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${J(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:J(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},dv(e)),cv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Rd(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},NL=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:J(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${J(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${J(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},_L=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:J(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),NL(e)),ML(e)),TL(e)),PL(e)),RL(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},jL=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},No(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},sl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:sl(e)}}}},Ww=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Id(e)),Uw=e=>Qt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Od(e)),zL=mn("Pagination",e=>{const t=Uw(e);return[_L(t),jL(t)]},Ww),kL=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},LL=Ms(["Pagination","bordered"],e=>{const t=Uw(e);return kL(t)},Ww);function kS(e){return c.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var BL=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 AL=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:l,style:s,size:u,locale:f,responsive:m,showSizeChanger:p,selectComponentClass:g,pageSizeOptions:h}=e,y=BL(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:x}=Yg(m),[,S]=Rr(),{getPrefixCls:b,direction:$,showSizeChanger:w,className:O,style:I}=Ir("pagination"),R=b("pagination",n),[P,T,N]=zL(R),M=ri(u),_=M==="small"||!!(x&&!M&&m),[L]=ti("Pagination",F1),z=Object.assign(Object.assign({},L),f),[A,B]=kS(p),[G,V]=kS(w),H=A??G,D=B??V,Z=g||yl,W=c.useMemo(()=>h?h.map(oe=>Number(oe)):void 0,[h]),k=oe=>{var fe;const{disabled:me,size:ue,onSizeChange:Se,"aria-label":pe,className:se,options:ye}=oe,{className:ve,onChange:ce}=D||{},le=(fe=ye.find(be=>String(be.value)===String(ue)))===null||fe===void 0?void 0:fe.value;return c.createElement(Z,Object.assign({disabled:me,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:be=>be.parentNode,"aria-label":pe,options:ye},D,{value:le,onChange:(be,xe)=>{Se==null||Se(be),ce==null||ce(be,xe)},size:_?"small":"middle",className:re(se,ve)}))},F=c.useMemo(()=>{const oe=c.createElement("span",{className:`${R}-item-ellipsis`},"•••"),fe=c.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},$==="rtl"?c.createElement(cl,null):c.createElement(ws,null)),me=c.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},$==="rtl"?c.createElement(ws,null):c.createElement(cl,null)),ue=c.createElement("a",{className:`${R}-item-link`},c.createElement("div",{className:`${R}-item-container`},$==="rtl"?c.createElement(_S,{className:`${R}-item-link-icon`}):c.createElement(NS,{className:`${R}-item-link-icon`}),oe)),Se=c.createElement("a",{className:`${R}-item-link`},c.createElement("div",{className:`${R}-item-container`},$==="rtl"?c.createElement(NS,{className:`${R}-item-link-icon`}):c.createElement(_S,{className:`${R}-item-link-icon`}),oe));return{prevIcon:fe,nextIcon:me,jumpPrevIcon:ue,jumpNextIcon:Se}},[$,R]),Q=b("select",r),ne=re({[`${R}-${t}`]:!!t,[`${R}-mini`]:_,[`${R}-rtl`]:$==="rtl",[`${R}-bordered`]:S.wireframe},O,o,l,T,N),ee=Object.assign(Object.assign({},I),s);return P(c.createElement(c.Fragment,null,S.wireframe&&c.createElement(LL,{prefixCls:R}),c.createElement(IL,Object.assign({},F,y,{style:ee,prefixCls:R,selectPrefixCls:Q,className:ne,locale:z,pageSizeOptions:W,showSizeChanger:H,sizeChangerRender:k}))))},Hu=100,Gw=Hu/5,qw=Hu/2-Gw/2,Zm=qw*2*Math.PI,LS=50,BS=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return c.createElement("circle",{className:re(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:qw,cx:LS,cy:LS,strokeWidth:Gw,style:n})},DL=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[l,s]=c.useState(!1);rn(()=>{e!==0&&s(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!l)return null;const f={strokeDashoffset:`${Zm/4}`,strokeDasharray:`${Zm*u/100} ${Zm*(100-u)/100}`};return c.createElement("span",{className:re(r,`${n}-progress`,u<=0&&o)},c.createElement("svg",{viewBox:`0 0 ${Hu} ${Hu}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},c.createElement(BS,{dotClassName:n,hasCircleCls:!0}),c.createElement(BS,{dotClassName:n,style:f})))};function FL(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,l=`${o}-hidden`;return c.createElement(c.Fragment,null,c.createElement("span",{className:re(o,n>0&&l)},c.createElement("span",{className:re(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>c.createElement("i",{className:`${t}-dot-item`,key:s})))),c.createElement(DL,{prefixCls:t,percent:n}))}function HL(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,l=`${n}-dot`;return r&&c.isValidElement(r)?Or(r,{className:re((t=r.props)===null||t===void 0?void 0:t.className,l),percent:o}):c.createElement(FL,{prefixCls:n,percent:o})}const VL=new At("antSpinMove",{to:{opacity:1}}),WL=new At("antRotate",{to:{transform:"rotate(405deg)"}}),UL=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},An(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:VL,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:WL,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},GL=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},qL=mn("Spin",e=>{const t=Qt(e,{spinDotDefault:e.colorTextDescription});return UL(t)},GL),KL=200,AS=[[30,.05],[70,.03],[96,.01]];function XL(e,t){const[n,r]=c.useState(0),o=c.useRef(null),l=t==="auto";return c.useEffect(()=>(l&&e&&(r(0),o.current=setInterval(()=>{r(s=>{const u=100-s;for(let f=0;f<AS.length;f+=1){const[m,p]=AS[f];if(s<=m)return s+u*p}return s})},KL)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[l,e]),l?n:t}var QL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Kw;function YL(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const gv=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:l,rootClassName:s,size:u="default",tip:f,wrapperClassName:m,style:p,children:g,fullscreen:h=!1,indicator:y,percent:x}=e,S=QL(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:$,className:w,style:O,indicator:I}=Ir("spin"),R=b("spin",n),[P,T,N]=qL(R),[M,_]=c.useState(()=>r&&!YL(r,o)),L=XL(M,x);c.useEffect(()=>{if(r){const D=x6(o,()=>{_(!0)});return D(),()=>{var Z;(Z=D==null?void 0:D.cancel)===null||Z===void 0||Z.call(D)}}_(!1)},[o,r]);const z=c.useMemo(()=>typeof g<"u"&&!h,[g,h]),A=re(R,w,{[`${R}-sm`]:u==="small",[`${R}-lg`]:u==="large",[`${R}-spinning`]:M,[`${R}-show-text`]:!!f,[`${R}-rtl`]:$==="rtl"},l,!h&&s,T,N),B=re(`${R}-container`,{[`${R}-blur`]:M}),G=(t=y??I)!==null&&t!==void 0?t:Kw,V=Object.assign(Object.assign({},O),p),H=c.createElement("div",Object.assign({},S,{style:V,className:A,"aria-live":"polite","aria-busy":M}),c.createElement(HL,{prefixCls:R,indicator:G,percent:L}),f&&(z||h)?c.createElement("div",{className:`${R}-text`},f):null);return P(z?c.createElement("div",Object.assign({},S,{className:re(`${R}-nested-loading`,m,T,N)}),M&&c.createElement("div",{key:"loading"},H),c.createElement("div",{className:B,key:"container"},g)):h?c.createElement("div",{className:re(`${R}-fullscreen`,{[`${R}-fullscreen-show`]:M},s,T,N)},H):H)};gv.setDefaultIndicator=e=>{Kw=e};const vv=Y.createContext({});vv.Consumer;var Xw=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 ZL=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:l}=e,s=Xw(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=c.useContext(Rt),f=u("list",t),m=re(`${f}-item-meta`,n),p=Y.createElement("div",{className:`${f}-item-meta-content`},o&&Y.createElement("h4",{className:`${f}-item-meta-title`},o),l&&Y.createElement("div",{className:`${f}-item-meta-description`},l));return Y.createElement("div",Object.assign({},s,{className:m}),r&&Y.createElement("div",{className:`${f}-item-meta-avatar`},r),(o||l)&&p)},JL=Y.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:l,styles:s,className:u,classNames:f,colStyle:m}=e,p=Xw(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:h}=c.useContext(vv),{getPrefixCls:y,list:x}=c.useContext(Rt),S=T=>{var N,M;return re((M=(N=x==null?void 0:x.item)===null||N===void 0?void 0:N.classNames)===null||M===void 0?void 0:M[T],f==null?void 0:f[T])},b=T=>{var N,M;return Object.assign(Object.assign({},(M=(N=x==null?void 0:x.item)===null||N===void 0?void 0:N.styles)===null||M===void 0?void 0:M[T]),s==null?void 0:s[T])},$=()=>{let T=!1;return c.Children.forEach(r,N=>{typeof N=="string"&&(T=!0)}),T&&c.Children.count(r)>1},w=()=>h==="vertical"?!!l:!$(),O=y("list",n),I=o&&o.length>0&&Y.createElement("ul",{className:re(`${O}-item-action`,S("actions")),key:"actions",style:b("actions")},o.map((T,N)=>Y.createElement("li",{key:`${O}-item-action-${N}`},T,N!==o.length-1&&Y.createElement("em",{className:`${O}-item-action-split`})))),R=g?"div":"li",P=Y.createElement(R,Object.assign({},p,g?{}:{ref:t},{className:re(`${O}-item`,{[`${O}-item-no-flex`]:!w()},u)}),h==="vertical"&&l?[Y.createElement("div",{className:`${O}-item-main`,key:"content"},r,I),Y.createElement("div",{className:re(`${O}-item-extra`,S("extra")),key:"extra",style:b("extra")},l)]:[r,I,Or(l,{key:"extra"})]);return g?Y.createElement($6,{ref:t,flex:1,style:m},P):P}),Qw=JL;Qw.Meta=ZL;const e5=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:l,itemPaddingLG:s,marginLG:u,borderRadiusLG:f}=e,m=J(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${m} ${m} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${m} ${m}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${J(o)} ${J(u)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}}}},t5=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:l,margin:s}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${J(s)}`}}}}}},n5=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:l,marginLG:s,padding:u,itemPadding:f,colorPrimary:m,itemPaddingSM:p,itemPaddingLG:g,paddingXS:h,margin:y,colorText:x,colorTextDescription:S,motionDurationSlow:b,lineWidth:$,headerBg:w,footerBg:O,emptyTextPadding:I,metaMarginBottom:R,avatarMarginRight:P,titleMarginBottom:T,descriptionFontSize:N}=e;return{[t]:Object.assign(Object.assign({},An(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:O},[`${t}-header, ${t}-footer`]:{paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:s,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:x,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:P},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:x},[`${t}-item-meta-title`]:{margin:`0 0 ${J(e.marginXXS)} 0`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:x,transition:`all ${b}`,"&:hover":{color:m}}},[`${t}-item-meta-description`]:{color:S,fontSize:N,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${J(h)}`,color:S,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:$,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${J(u)} 0`,color:S,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:I,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:y,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:s},[`${t}-item-meta`]:{marginBlockEnd:R,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:x,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:u,marginInlineStart:"auto","> li":{padding:`0 ${J(u)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:p},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},r5=e=>({contentWidth:220,itemPadding:`${J(e.paddingContentVertical)} 0`,itemPaddingSM:`${J(e.paddingContentVerticalSM)} ${J(e.paddingContentHorizontal)}`,itemPaddingLG:`${J(e.paddingContentVerticalLG)} ${J(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),o5=mn("List",e=>{const t=Qt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[n5(t),e5(t),t5(t)]},r5);var i5=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 a5(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:l=!0,className:s,rootClassName:u,style:f,children:m,itemLayout:p,loadMore:g,grid:h,dataSource:y=[],size:x,header:S,footer:b,loading:$=!1,rowKey:w,renderItem:O,locale:I}=e,R=i5(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),P=n&&typeof n=="object"?n:{},[T,N]=c.useState(P.defaultCurrent||1),[M,_]=c.useState(P.defaultPageSize||10),{getPrefixCls:L,direction:z,className:A,style:B}=Ir("list"),{renderEmpty:G}=c.useContext(Rt),V={current:1,total:0,position:"bottom"},H=Pe=>(Be,Oe)=>{var tt;N(Be),_(Oe),n&&((tt=n==null?void 0:n[Pe])===null||tt===void 0||tt.call(n,Be,Oe))},D=H("onChange"),Z=H("onShowSizeChange"),W=(Pe,Be)=>{if(!O)return null;let Oe;return typeof w=="function"?Oe=w(Pe):w?Oe=Pe[w]:Oe=Pe.key,Oe||(Oe=`list-item-${Be}`),c.createElement(c.Fragment,{key:Oe},O(Pe,Be))},k=!!(g||n||b),F=L("list",r),[Q,ne,ee]=o5(F);let oe=$;typeof oe=="boolean"&&(oe={spinning:oe});const fe=!!(oe!=null&&oe.spinning),me=ri(x);let ue="";switch(me){case"large":ue="lg";break;case"small":ue="sm";break}const Se=re(F,{[`${F}-vertical`]:p==="vertical",[`${F}-${ue}`]:ue,[`${F}-split`]:l,[`${F}-bordered`]:o,[`${F}-loading`]:fe,[`${F}-grid`]:!!h,[`${F}-something-after-last-item`]:k,[`${F}-rtl`]:z==="rtl"},A,s,u,ne,ee),pe=Dp(V,{total:y.length,current:T,pageSize:M},n||{}),se=Math.ceil(pe.total/pe.pageSize);pe.current=Math.min(pe.current,se);const ye=n&&c.createElement("div",{className:re(`${F}-pagination`)},c.createElement(AL,Object.assign({align:"end"},pe,{onChange:D,onShowSizeChange:Z})));let ve=Ae(y);n&&y.length>(pe.current-1)*pe.pageSize&&(ve=Ae(y).splice((pe.current-1)*pe.pageSize,pe.pageSize));const ce=Object.keys(h||{}).some(Pe=>["xs","sm","md","lg","xl","xxl"].includes(Pe)),le=Yg(ce),be=c.useMemo(()=>{for(let Pe=0;Pe<na.length;Pe+=1){const Be=na[Pe];if(le[Be])return Be}},[le]),xe=c.useMemo(()=>{if(!h)return;const Pe=be&&h[be]?h[be]:h.column;if(Pe)return{width:`${100/Pe}%`,maxWidth:`${100/Pe}%`}},[JSON.stringify(h),be]);let $e=fe&&c.createElement("div",{style:{minHeight:53}});if(ve.length>0){const Pe=ve.map(W);$e=h?c.createElement(I6,{gutter:h.gutter},c.Children.map(Pe,Be=>c.createElement("div",{key:Be==null?void 0:Be.key,style:xe},Be))):c.createElement("ul",{className:`${F}-items`},Pe)}else!m&&!fe&&($e=c.createElement("div",{className:`${F}-empty-text`},(I==null?void 0:I.emptyText)||(G==null?void 0:G("List"))||c.createElement(UC,{componentName:"List"})));const Ne=pe.position,Le=c.useMemo(()=>({grid:h,itemLayout:p}),[JSON.stringify(h),p]);return Q(c.createElement(vv.Provider,{value:Le},c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},B),f),className:Se},R),(Ne==="top"||Ne==="both")&&ye,S&&c.createElement("div",{className:`${F}-header`},S),c.createElement(gv,Object.assign({},oe),$e,m),b&&c.createElement("div",{className:`${F}-footer`},b),g||(Ne==="bottom"||Ne==="both")&&ye)))}const l5=c.forwardRef(a5),Es=l5;Es.Item=Qw;const s5=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let ro=null,Zi=e=>e(),Os=[],Is={};function DS(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Is,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:o}}const c5=Y.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=c.useContext(Rt),l=Is.prefixCls||o("message"),s=c.useContext(U_),[u,f]=zx(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),s.message));return Y.useImperativeHandle(t,()=>{const m=Object.assign({},u);return Object.keys(m).forEach(p=>{m[p]=(...g)=>(r(),u[p].apply(u,g))}),{instance:m,sync:r}}),f}),u5=Y.forwardRef((e,t)=>{const[n,r]=Y.useState(DS),o=()=>{r(DS)};Y.useEffect(o,[]);const l=yx(),s=l.getRootPrefixCls(),u=l.getIconPrefixCls(),f=l.getTheme(),m=Y.createElement(c5,{ref:t,sync:o,messageConfig:n});return Y.createElement(Lo,{prefixCls:s,iconPrefixCls:u,theme:f},l.holderRender?l.holderRender(m):m)}),Md=()=>{if(!ro){const e=document.createDocumentFragment(),t={fragment:e};ro=t,Zi(()=>{zg()(Y.createElement(u5,{ref:r=>{const{instance:o,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=l,Md())})}}),e)});return}ro.instance&&(Os.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Zi(()=>{const r=ro.instance.open(Object.assign(Object.assign({},Is),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Zi(()=>{ro==null||ro.instance.destroy(e.key)});break;default:Zi(()=>{var r;const o=(r=ro.instance)[t].apply(r,Ae(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Os=[])};function d5(e){Is=Object.assign(Object.assign({},Is),e),Zi(()=>{var t;(t=ro==null?void 0:ro.sync)===null||t===void 0||t.call(ro)})}function f5(e){const t=_g(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return Os.push(o),()=>{r?Zi(()=>{r()}):o.skipped=!0}});return Md(),t}function m5(e,t){const n=_g(r=>{let o;const l={type:e,args:t,resolve:r,setCloseFn:s=>{o=s}};return Os.push(l),()=>{o?Zi(()=>{o()}):l.skipped=!0}});return Md(),n}const p5=e=>{Os.push({type:"destroy",key:e}),Md()},g5=["success","info","warning","error","loading"],v5={open:f5,destroy:p5,config:d5,useMessage:MP,_InternalPanelDoNotUseOrYouWillBeFired:wP},Yw=v5;g5.forEach(e=>{Yw[e]=(...t)=>m5(e,t)});var h5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y5=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:l,title:s,children:u,footer:f}=e,m=h5(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=c.useContext(Rt),g=p(),h=t||p("modal"),y=ni(g),[x,S,b]=gC(h,y),$=`${h}-confirm`;let w={};return l?w={closable:o??!1,title:"",footer:"",children:c.createElement(hC,Object.assign({},e,{prefixCls:h,confirmPrefixCls:$,rootPrefixCls:g,content:u}))}:w={closable:o??!0,title:s,footer:f!==null&&c.createElement(dC,Object.assign({},e)),children:u},x(c.createElement(tC,Object.assign({prefixCls:h,className:re(S,`${h}-pure-panel`,l&&$,l&&`${$}-${l}`,n,b,y)},m,{closeIcon:uC(h,r),closable:o},w)))},b5=OC(y5);function Zw(e){return As(xC(e))}const ao=vC;ao.useModal=W_;ao.info=function(t){return As(CC(t))};ao.success=function(t){return As(wC(t))};ao.error=function(t){return As($C(t))};ao.warning=Zw;ao.warn=Zw;ao.confirm=function(t){return As(EC(t))};ao.destroyAll=function(){for(;Yi.length;){const t=Yi.pop();t&&t()}};ao.config=A_;ao._InternalPanelDoNotUseOrYouWillBeFired=b5;var S5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},x5=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:S5}))},C5=c.forwardRef(x5);const w5=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:l}=e,s=l(r).sub(n).equal(),u=l(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},An(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${J(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:u,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:s}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},hv=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Qt(e,{tagFontSize:o,tagLineHeight:J(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},yv=e=>({defaultBg:new sn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Jw=mn("Tag",e=>{const t=hv(e);return w5(t)},yv);var $5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const E5=c.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:l,children:s,icon:u,onChange:f,onClick:m}=e,p=$5(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:h}=c.useContext(Rt),y=O=>{f==null||f(!l),m==null||m(O)},x=g("tag",n),[S,b,$]=Jw(x),w=re(x,`${x}-checkable`,{[`${x}-checkable-checked`]:l},h==null?void 0:h.className,o,b,$);return S(c.createElement("span",Object.assign({},p,{ref:t,style:Object.assign(Object.assign({},r),h==null?void 0:h.style),className:w,onClick:y}),u,c.createElement("span",null,s)))}),O5=e=>td(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:l})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),I5=Ms(["Tag","preset"],e=>{const t=hv(e);return O5(t)},yv);function R5(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Jc=(e,t,n)=>{const r=R5(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"}}}},P5=Ms(["Tag","status"],e=>{const t=hv(e);return[Jc(t,"success","Success"),Jc(t,"processing","Info"),Jc(t,"error","Error"),Jc(t,"warning","Warning")]},yv);var T5=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 M5=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:l,children:s,icon:u,color:f,onClose:m,bordered:p=!0,visible:g}=e,h=T5(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:x,tag:S}=c.useContext(Rt),[b,$]=c.useState(!0),w=Vn(h,["closeIcon","closable"]);c.useEffect(()=>{g!==void 0&&$(g)},[g]);const O=xd(f),I=wz(f),R=O||I,P=Object.assign(Object.assign({backgroundColor:f&&!R?f:void 0},S==null?void 0:S.style),l),T=y("tag",n),[N,M,_]=Jw(T),L=re(T,S==null?void 0:S.className,{[`${T}-${f}`]:R,[`${T}-has-color`]:f&&!R,[`${T}-hidden`]:!b,[`${T}-rtl`]:x==="rtl",[`${T}-borderless`]:!p},r,o,M,_),z=D=>{D.stopPropagation(),m==null||m(D),!D.defaultPrevented&&$(!1)},[,A]=Tx(Mu(e),Mu(S),{closable:!1,closeIconRender:D=>{const Z=c.createElement("span",{className:`${T}-close-icon`,onClick:z},D);return Ix(D,Z,W=>({onClick:k=>{var F;(F=W==null?void 0:W.onClick)===null||F===void 0||F.call(W,k),z(k)},className:re(W==null?void 0:W.className,`${T}-close-icon`)}))}}),B=typeof h.onClick=="function"||s&&s.type==="a",G=u||null,V=G?c.createElement(c.Fragment,null,G,s&&c.createElement("span",null,s)):s,H=c.createElement("span",Object.assign({},w,{ref:t,className:L,style:P}),V,A,O&&c.createElement(I5,{key:"preset",prefixCls:T}),I&&c.createElement(P5,{key:"status",prefixCls:T}));return N(B?c.createElement(Dx,{component:"Tag"},H):H)}),Mo=M5;Mo.CheckableTag=E5;const no=(e,t)=>new sn(e).setA(t).toRgbString(),Wa=(e,t)=>new sn(e).lighten(t).toHexString(),N5=e=>{const t=ea(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},_5=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:no(r,.85),colorTextSecondary:no(r,.65),colorTextTertiary:no(r,.45),colorTextQuaternary:no(r,.25),colorFill:no(r,.18),colorFillSecondary:no(r,.12),colorFillTertiary:no(r,.08),colorFillQuaternary:no(r,.04),colorBgSolid:no(r,.95),colorBgSolidHover:no(r,1),colorBgSolidActive:no(r,.9),colorBgElevated:Wa(n,12),colorBgContainer:Wa(n,8),colorBgLayout:Wa(n,0),colorBgSpotlight:Wa(n,26),colorBgBlur:no(r,.04),colorBorder:Wa(n,26),colorBorderSecondary:Wa(n,19)}},j5=(e,t)=>{const n=Object.keys(Mg).map(l=>{const s=ea(e[l],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,f,m)=>(u[`${l}-${m+1}`]=s[m],u[`${l}${m+1}`]=s[m],u),{})}).reduce((l,s)=>(l=Object.assign(Object.assign({},l),s),l),{}),r=t??q1(e),o=G1(e,{generateColorPalettes:N5,generateNeutralColorPalettes:_5});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})},z5={defaultSeed:Iu.token,darkAlgorithm:j5};var k5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},L5=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:k5}))},B5=c.forwardRef(L5),A5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},D5=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:A5}))},F5=c.forwardRef(D5);const H5=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:l}=r;return{marginBottom:o,color:n,fontWeight:l,fontSize:e,lineHeight:t}},V5=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
319
|
-
h${r}&,
|
|
320
|
-
div&-h${r},
|
|
321
|
-
div&-h${r} > textarea,
|
|
322
|
-
h${r}
|
|
323
|
-
`]=H5(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},W5=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},ox(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},U5=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Eu[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),G5=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},q5=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),K5=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),X5=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},V5(e)),{[`
|
|
324
|
-
& + h1${t},
|
|
325
|
-
& + h2${t},
|
|
326
|
-
& + h3${t},
|
|
327
|
-
& + h4${t},
|
|
328
|
-
& + h5${t}
|
|
329
|
-
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),U5(e)),W5(e)),{[`
|
|
330
|
-
${t}-expand,
|
|
331
|
-
${t}-collapse,
|
|
332
|
-
${t}-edit,
|
|
333
|
-
${t}-copy
|
|
334
|
-
`]:Object.assign(Object.assign({},ox(e)),{marginInlineStart:e.marginXXS})}),G5(e)),q5(e)),K5()),{"&-rtl":{direction:"rtl"}})}},Q5=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),e$=mn("Typography",X5,Q5),Y5=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:l,maxLength:s,autoSize:u=!0,value:f,onSave:m,onCancel:p,onEnd:g,component:h,enterIcon:y=c.createElement(F5,null)}=e,x=c.useRef(null),S=c.useRef(!1),b=c.useRef(null),[$,w]=c.useState(f);c.useEffect(()=>{w(f)},[f]),c.useEffect(()=>{var B;if(!((B=x.current)===null||B===void 0)&&B.resizableTextArea){const{textArea:G}=x.current.resizableTextArea;G.focus();const{length:V}=G.value;G.setSelectionRange(V,V)}},[]);const O=({target:B})=>{w(B.value.replace(/[\n\r]/g,""))},I=()=>{S.current=!0},R=()=>{S.current=!1},P=({keyCode:B})=>{S.current||(b.current=B)},T=()=>{m($.trim())},N=({keyCode:B,ctrlKey:G,altKey:V,metaKey:H,shiftKey:D})=>{b.current!==B||S.current||G||V||H||D||(B===Ue.ENTER?(T(),g==null||g()):B===Ue.ESC&&p())},M=()=>{T()},[_,L,z]=e$(t),A=re(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${h}`]:!!h},r,L,z);return _(c.createElement("div",{className:A,style:o},c.createElement(fL,{ref:x,maxLength:s,value:$,onChange:O,onKeyDown:P,onKeyUp:N,onCompositionStart:I,onCompositionEnd:R,onBlur:M,"aria-label":n,rows:1,autoSize:u}),y!==null?Or(y,{className:`${t}-edit-content-confirm`}):null))};var Jm,FS;function Z5(){return FS||(FS=1,Jm=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Jm}var ep,HS;function J5(){if(HS)return ep;HS=1;var e=Z5(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function o(l,s){var u,f,m,p,g,h,y=!1;s||(s={}),u=s.debug||!1;try{m=e(),p=document.createRange(),g=document.getSelection(),h=document.createElement("span"),h.textContent=l,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(S){if(S.stopPropagation(),s.format)if(S.preventDefault(),typeof S.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=t[s.format]||t.default;window.clipboardData.setData(b,l)}else S.clipboardData.clearData(),S.clipboardData.setData(s.format,l);s.onCopy&&(S.preventDefault(),s.onCopy(S.clipboardData))}),document.body.appendChild(h),p.selectNodeContents(h),g.addRange(p);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");y=!0}catch(S){u&&console.error("unable to copy using execCommand: ",S),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(b){u&&console.error("unable to copy using clipboardData: ",b),u&&console.error("falling back to prompt"),f=r("message"in s?s.message:n),window.prompt(f,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(p):g.removeAllRanges()),h&&document.body.removeChild(h),m()}return y}return ep=o,ep}var eB=J5();const tB=Rs(eB);var nB=function(e,t,n,r){function o(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function u(p){try{m(r.next(p))}catch(g){s(g)}}function f(p){try{m(r.throw(p))}catch(g){s(g)}}function m(p){p.done?l(p.value):o(p.value).then(u,f)}m((r=r.apply(e,t||[])).next())})};const rB=({copyConfig:e,children:t})=>{const[n,r]=c.useState(!1),[o,l]=c.useState(!1),s=c.useRef(null),u=()=>{s.current&&clearTimeout(s.current)},f={};e.format&&(f.format=e.format),c.useEffect(()=>u,[]);const m=_n(p=>nB(void 0,void 0,void 0,function*(){var g;p==null||p.preventDefault(),p==null||p.stopPropagation(),l(!0);try{const h=typeof e.text=="function"?yield e.text():e.text;tB(h||s5(t,!0).join("")||"",f),l(!1),r(!0),u(),s.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,p)}catch(h){throw l(!1),h}}));return{copied:n,copyLoading:o,onClick:m}};function tp(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const oB=e=>{const t=c.useRef(void 0);return c.useEffect(()=>{t.current=e}),t.current},iB=(e,t,n)=>c.useMemo(()=>e===!0?{title:t??n}:c.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var aB=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 t$=c.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:s,children:u,direction:f,style:m}=e,p=aB(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:h,className:y,style:x}=Ir("typography"),S=f??h,b=s?ko(t,s):t,$=g("typography",n),[w,O,I]=e$($),R=re($,y,{[`${$}-rtl`]:S==="rtl"},o,l,O,I),P=Object.assign(Object.assign({},x),m);return w(c.createElement(r,Object.assign({className:R,style:P,ref:b},p),u))});var lB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},sB=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:lB}))},n$=c.forwardRef(sB);function VS(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function np(e,t,n){return e===!0||e===void 0?t:e||n&&t}function cB(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const bv=e=>["string","number"].includes(typeof e),uB=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:s,onCopy:u,loading:f})=>{const m=VS(o),p=VS(l),{copied:g,copy:h}=n??{},y=t?g:h,x=np(m[t?1:0],y),S=typeof x=="string"?x:y;return c.createElement(bl,{title:x},c.createElement("button",{type:"button",className:re(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":S,tabIndex:s},t?np(p[1],c.createElement(QC,null),!0):np(p[0],f?c.createElement(rd,null):c.createElement(n$,null),!0)))},eu=c.forwardRef(({style:e,children:t},n)=>{const r=c.useRef(null);return c.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),dB=e=>e.reduce((t,n)=>t+(bv(n)?String(n).length:1),0);function WS(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const l=e[o],u=bv(l)?String(l).length:1,f=n+u;if(f>t){const m=t-n;return r.push(String(l).slice(0,m)),r}r.push(l),n=f}return e}const rp=0,op=1,ip=2,ap=3,US=4,tu={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function fB(e){const{enableMeasure:t,width:n,text:r,children:o,rows:l,expanded:s,miscDeps:u,onEllipsis:f}=e,m=c.useMemo(()=>Er(r),[r]),p=c.useMemo(()=>dB(m),[r]),g=c.useMemo(()=>o(m,!1),[r]),[h,y]=c.useState(null),x=c.useRef(null),S=c.useRef(null),b=c.useRef(null),$=c.useRef(null),w=c.useRef(null),[O,I]=c.useState(!1),[R,P]=c.useState(rp),[T,N]=c.useState(0),[M,_]=c.useState(null);rn(()=>{P(t&&n&&p?op:rp)},[n,r,l,t,m]),rn(()=>{var B,G,V,H;if(R===op){P(ip);const D=S.current&&getComputedStyle(S.current).whiteSpace;_(D)}else if(R===ip){const D=!!(!((B=b.current)===null||B===void 0)&&B.isExceed());P(D?ap:US),y(D?[0,p]:null),I(D);const Z=((G=b.current)===null||G===void 0?void 0:G.getHeight())||0,W=l===1?0:((V=$.current)===null||V===void 0?void 0:V.getHeight())||0,k=((H=w.current)===null||H===void 0?void 0:H.getHeight())||0,F=Math.max(Z,W+k);N(F+1),f(D)}},[R]);const L=h?Math.ceil((h[0]+h[1])/2):0;rn(()=>{var B;const[G,V]=h||[0,0];if(G!==V){const D=(((B=x.current)===null||B===void 0?void 0:B.getHeight())||0)>T;let Z=L;V-G===1&&(Z=D?G:V),y(D?[G,Z]:[Z,V])}},[h,L]);const z=c.useMemo(()=>{if(!t)return o(m,!1);if(R!==ap||!h||h[0]!==h[1]){const B=o(m,!1);return[US,rp].includes(R)?B:c.createElement("span",{style:Object.assign(Object.assign({},tu),{WebkitLineClamp:l})},B)}return o(s?m:WS(m,h[0]),O)},[s,R,h,m].concat(Ae(u))),A={width:n,margin:0,padding:0,whiteSpace:M==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,z,R===ip&&c.createElement(c.Fragment,null,c.createElement(eu,{style:Object.assign(Object.assign(Object.assign({},A),tu),{WebkitLineClamp:l}),ref:b},g),c.createElement(eu,{style:Object.assign(Object.assign(Object.assign({},A),tu),{WebkitLineClamp:l-1}),ref:$},g),c.createElement(eu,{style:Object.assign(Object.assign(Object.assign({},A),tu),{WebkitLineClamp:1}),ref:w},o([],!0))),R===ap&&h&&h[0]!==h[1]&&c.createElement(eu,{style:Object.assign(Object.assign({},A),{top:400}),ref:x},o(WS(m,L),!0)),R===op&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const mB=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:c.createElement(bl,Object.assign({open:t?void 0:!1},r),n);var pB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gB({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:l,italic:s},u){let f=u;function m(p,g){g&&(f=c.createElement(p,{},f))}return m("strong",o),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",l),m("i",s),f}const vB="...",GS=["delete","mark","code","underline","strong","keyboard","italic"],Nd=c.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:l,type:s,disabled:u,children:f,ellipsis:m,editable:p,copyable:g,component:h,title:y}=e,x=pB(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:b}=c.useContext(Rt),[$]=ti("Text"),w=c.useRef(null),O=c.useRef(null),I=S("typography",r),R=Vn(x,GS),[P,T]=tp(p),[N,M]=Hn(!1,{value:T.editing}),{triggerType:_=["icon"]}=T,L=Te=>{var Fe;Te&&((Fe=T.onStart)===null||Fe===void 0||Fe.call(T)),M(Te)},z=oB(N);rn(()=>{var Te;!N&&z&&((Te=O.current)===null||Te===void 0||Te.focus())},[N]);const A=Te=>{Te==null||Te.preventDefault(),L(!0)},B=Te=>{var Fe;(Fe=T.onChange)===null||Fe===void 0||Fe.call(T,Te),L(!1)},G=()=>{var Te;(Te=T.onCancel)===null||Te===void 0||Te.call(T),L(!1)},[V,H]=tp(g),{copied:D,copyLoading:Z,onClick:W}=rB({copyConfig:H,children:f}),[k,F]=c.useState(!1),[Q,ne]=c.useState(!1),[ee,oe]=c.useState(!1),[fe,me]=c.useState(!1),[ue,Se]=c.useState(!0),[pe,se]=tp(m,{expandable:!1,symbol:Te=>Te?$==null?void 0:$.collapse:$==null?void 0:$.expand}),[ye,ve]=Hn(se.defaultExpanded||!1,{value:se.expanded}),ce=pe&&(!ye||se.expandable==="collapsible"),{rows:le=1}=se,be=c.useMemo(()=>ce&&(se.suffix!==void 0||se.onEllipsis||se.expandable||P||V),[ce,se,P,V]);rn(()=>{pe&&!be&&(F(xb("webkitLineClamp")),ne(xb("textOverflow")))},[be,pe]);const[xe,$e]=c.useState(ce),Ne=c.useMemo(()=>be?!1:le===1?Q:k,[be,Q,k]);rn(()=>{$e(Ne&&ce)},[Ne,ce]);const Le=ce&&(xe?fe:ee),Pe=ce&&le===1&&xe,Be=ce&&le>1&&xe,Oe=(Te,Fe)=>{var wt;ve(Fe.expanded),(wt=se.onExpand)===null||wt===void 0||wt.call(se,Te,Fe)},[tt,lt]=c.useState(0),bt=({offsetWidth:Te})=>{lt(Te)},st=Te=>{var Fe;oe(Te),ee!==Te&&((Fe=se.onEllipsis)===null||Fe===void 0||Fe.call(se,Te))};c.useEffect(()=>{const Te=w.current;if(pe&&xe&&Te){const Fe=cB(Te);fe!==Fe&&me(Fe)}},[pe,xe,f,Be,ue,tt]),c.useEffect(()=>{const Te=w.current;if(typeof IntersectionObserver>"u"||!Te||!xe||!ce)return;const Fe=new IntersectionObserver(()=>{Se(!!Te.offsetParent)});return Fe.observe(Te),()=>{Fe.disconnect()}},[xe,ce]);const Ge=iB(se.tooltip,T.text,f),it=c.useMemo(()=>{if(!(!pe||xe))return[T.text,f,y,Ge.title].find(bv)},[pe,xe,y,Ge.title,Le]);if(N)return c.createElement(Y5,{value:(n=T.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:B,onCancel:G,onEnd:T.onEnd,prefixCls:I,className:o,style:l,direction:b,component:h,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Ve=()=>{const{expandable:Te,symbol:Fe}=se;return Te?c.createElement("button",{type:"button",key:"expand",className:`${I}-${ye?"collapse":"expand"}`,onClick:wt=>Oe(wt,{expanded:!ye}),"aria-label":ye?$.collapse:$==null?void 0:$.expand},typeof Fe=="function"?Fe(ye):Fe):null},dt=()=>{if(!P)return;const{icon:Te,tooltip:Fe,tabIndex:wt}=T,pt=Er(Fe)[0]||($==null?void 0:$.edit),Ht=typeof pt=="string"?pt:"";return _.includes("icon")?c.createElement(bl,{key:"edit",title:Fe===!1?"":pt},c.createElement("button",{type:"button",ref:O,className:`${I}-edit`,onClick:A,"aria-label":Ht,tabIndex:wt},Te||c.createElement(B5,{role:"button"}))):null},Xe=()=>V?c.createElement(uB,Object.assign({key:"copy"},H,{prefixCls:I,copied:D,locale:$,onCopy:W,loading:Z,iconOnly:f==null})):null,_e=Te=>[Te&&Ve(),dt(),Xe()],Ye=Te=>[Te&&!ye&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},vB),se.suffix,_e(Te)];return c.createElement(oo,{onResize:bt,disabled:!ce},Te=>c.createElement(mB,{tooltipProps:Ge,enableEllipsis:ce,isEllipsis:Le},c.createElement(t$,Object.assign({className:re({[`${I}-${s}`]:s,[`${I}-disabled`]:u,[`${I}-ellipsis`]:pe,[`${I}-ellipsis-single-line`]:Pe,[`${I}-ellipsis-multiple-line`]:Be},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Be?le:void 0}),component:h,ref:ko(Te,w,t),direction:b,onClick:_.includes("text")?A:void 0,"aria-label":it==null?void 0:it.toString(),title:y},R),c.createElement(fB,{enableMeasure:ce&&!xe,text:f,rows:le,width:tt,onEllipsis:st,expanded:ye,miscDeps:[D,ye,Z,P,V,$].concat(Ae(GS.map(Fe=>e[Fe])))},(Fe,wt)=>gB(e,c.createElement(c.Fragment,null,Fe.length>0&&wt&&!ye&&it?c.createElement("span",{key:"show-content","aria-hidden":!0},Fe):Fe,Ye(wt)))))))});var hB=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 yB=c.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:l}=e,s=hB(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},s),{rel:r===void 0&&s.target==="_blank"?"noopener noreferrer":r});return c.createElement(Nd,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),o)});var bB=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 SB=c.forwardRef((e,t)=>{const{children:n}=e,r=bB(e,["children"]);return c.createElement(Nd,Object.assign({ref:t},r,{component:"div"}),n)});var xB=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 CB=(e,t)=>{const{ellipsis:n,children:r}=e,o=xB(e,["ellipsis","children"]),l=c.useMemo(()=>n&&typeof n=="object"?Vn(n,["expandable","rows"]):n,[n]);return c.createElement(Nd,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},wB=c.forwardRef(CB);var $B=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 EB=[1,2,3,4,5],OB=c.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=$B(e,["level","children"]),l=EB.includes(n)?`h${n}`:"h1";return c.createElement(Nd,Object.assign({ref:t},o,{component:l}),r)}),Bo=t$;Bo.Text=wB;Bo.Link=yB;Bo.Title=OB;Bo.Paragraph=SB;var IB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},RB=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:IB}))},PB=c.forwardRef(RB),TB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},MB=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:TB}))},NB=c.forwardRef(MB),_B={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},jB=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:_B}))},zB=c.forwardRef(jB),kB={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},LB=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:kB}))},BB=c.forwardRef(LB),AB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},DB=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:AB}))},FB=c.forwardRef(DB),HB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},VB=function(t,n){return c.createElement(pn,Ee({},t,{ref:n,icon:HB}))},WB=c.forwardRef(VB);function UB(e){return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):""}function qS(e){return e.content?typeof e.content=="string"?e.content:Array.isArray(e.content)?e.content.filter(t=>t.type==="text").map(t=>t.text).join(`
|
|
335
|
-
`):JSON.stringify(e.content):String(e.content??"")}function nu(e){return e==="user"?'<svg viewBox="0 0 24 24"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"/></svg>':e==="agent"?'<svg viewBox="0 0 24 24"><path d="M12 2a2 2 0 012 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 017 7h1a1 1 0 011 1v3a1 1 0 01-1 1h-1.17A7 7 0 0113 22h-2a7 7 0 01-6.83-3H3a1 1 0 01-1-1v-3a1 1 0 011-1h1a7 7 0 017-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 012-2zM9.5 13a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm5 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3z"/></svg>':'<svg viewBox="0 0 24 24"><path d="M12 15.5A3.5 3.5 0 018.5 12 3.5 3.5 0 0112 8.5a3.5 3.5 0 013.5 3.5 3.5 3.5 0 01-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97s-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0014 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1s.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.58 1.69-.98l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66z"/></svg>'}function Vu(e){if(!e)return!0;const t=e.trim();return!!(!t||/^<[a-zA-Z_][\w-]*[\s>]/i.test(t)||/^\[SUGGESTION MODE:/i.test(t))}const{Text:GB}=Bo;function ru(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function qB(e){var n,r,o;const t={};for(const l of e){const s=(r=(n=l.response)==null?void 0:n.body)==null?void 0:r.usage;if(!s)continue;const u=((o=l.body)==null?void 0:o.model)||"unknown";t[u]||(t[u]={input:0,output:0,cacheCreation:0,cacheRead:0});const f=t[u];f.input+=s.input_tokens||0,f.output+=s.output_tokens||0,f.cacheCreation+=s.cache_creation_input_tokens||0,f.cacheRead+=s.cache_read_input_tokens||0}return t}class us extends Y.Component{constructor(n){super(n);Kt(this,"handleShowPrompts",()=>{this.setState({promptModalVisible:!0,promptData:this.extractUserPrompts()})});this.state={countdownText:"",promptModalVisible:!1,promptData:[]},this._rafId=null,this._expiredTimer=null,this.updateCountdown=this.updateCountdown.bind(this)}componentDidMount(){this.startCountdown()}componentDidUpdate(n){n.cacheExpireAt!==this.props.cacheExpireAt&&this.startCountdown()}componentWillUnmount(){this._rafId&&cancelAnimationFrame(this._rafId),this._expiredTimer&&clearTimeout(this._expiredTimer)}startCountdown(){if(this._rafId&&cancelAnimationFrame(this._rafId),this._expiredTimer&&clearTimeout(this._expiredTimer),!this.props.cacheExpireAt){this.setState({countdownText:""});return}this._rafId=requestAnimationFrame(this.updateCountdown)}updateCountdown(){const{cacheExpireAt:n}=this.props;if(!n){this.setState({countdownText:""});return}const r=Math.max(0,n-Date.now());if(r<=0){this.setState({countdownText:"已失效"}),this._expiredTimer=setTimeout(()=>{this.setState({countdownText:""})},5e3);return}const o=Math.ceil(r/1e3);let l;if(o>=60){const s=Math.floor(o/60),u=o%60;l=`${s}分${String(u).padStart(2,"0")}秒`}else l=`${o}秒`;this.setState({countdownText:l}),this._rafId=requestAnimationFrame(this.updateCountdown)}static parseSegments(n){const r=[],o=/<system-reminder>([\s\S]*?)<\/system-reminder>/g;let l=0,s=0,u;for(;(u=o.exec(n))!==null;){const m=n.slice(l,u.index).trim();m&&r.push({type:"text",content:m}),s++,r.push({type:"system",content:u[1].trim(),label:`系统上下文_${s}`}),l=u.index+u[0].length}const f=n.slice(l).trim();return f&&r.push({type:"text",content:f}),r}static extractResponseContent(n){const r=n==null?void 0:n.content;if(!Array.isArray(r))return null;const o=[];let l="";for(const s of r)s.type==="thinking"?o.push(s.thinking||""):s.type==="text"&&(l=s.text||"");return{thinkingBlocks:o,questionText:l}}static extractAnswerText(n){const r=n==null?void 0:n.content;if(!Array.isArray(r))return"";for(const o of r)if(o.type==="text"&&o.text)return o.text;return""}extractUserPrompts(){var u,f,m,p;const{requests:n=[]}=this.props,r=[];let o=0,l="";const s=n.filter(g=>g.mainAgent);for(let g=0;g<s.length;g++){const h=s[g],y=((u=h.body)==null?void 0:u.messages)||[],x=h.timestamp||"",S=[],b=[];for(const O of y)if(O.role==="user"){if(typeof O.content=="string"){const I=O.content.trim();if(!I)continue;(!Vu(I)||/^\[SUGGESTION MODE:/i.test(I))&&(S.push(I),b.push(I))}else if(Array.isArray(O.content)){const I=O.content.filter(P=>{var T;return P.type==="text"&&((T=P.text)==null?void 0:T.trim())}).map(P=>P.text.trim()).join(`
|
|
336
|
-
`);let R=!1;for(const P of O.content){if(P.type!=="text"||!((f=P.text)!=null&&f.trim()))continue;const T=P.text.trim();if(!Vu(T)||/^\[SUGGESTION MODE:/i.test(T)){R=!0;break}}R&&I&&(S.push(I),b.push(I))}}const $=S.length>0?S[S.length-1]:"",w=b.length>0?b[b.length-1]:"";if(S.length>0&&(S.length>o||$!==l)){const O=w;if(/^\[SUGGESTION MODE:/i.test($.trim())){const I=g>0?s[g-1]:null,R=I?us.extractResponseContent((m=I.response)==null?void 0:m.body):null,P=us.extractAnswerText((p=h.response)==null?void 0:p.body);r.push({type:"selection",prevContent:R,answerText:P,timestamp:x})}else r.push({type:"prompt",segments:us.parseSegments(O),timestamp:x})}o=S.length,l=$}return r}renderTokenStats(){const{requests:n=[]}=this.props,r=qB(n),o=Object.keys(r);if(o.length===0)return q.jsx("div",{style:{padding:"8px 4px",color:"#999",fontSize:13},children:"暂无 token 数据"});const l={padding:"2px 12px",fontSize:12,fontFamily:"monospace",whiteSpace:"nowrap",color:"#888",fontWeight:"normal",textAlign:"right"},s={padding:"2px 12px",fontSize:12,fontFamily:"monospace",whiteSpace:"nowrap",color:"#e5e5e5",textAlign:"right"},u={...l,textAlign:"left",color:"#aaa"};return q.jsx("div",{style:{minWidth:240},children:o.map(f=>{const m=r[f],p=m.input+m.cacheCreation+m.cacheRead,g=p>0?(m.cacheRead/p*100).toFixed(1):"0.0";return q.jsxs("div",{style:{marginBottom:o.length>1?10:0,border:"1px solid #333",borderRadius:6,padding:"8px 10px"},children:[q.jsx("div",{style:{fontSize:13,fontWeight:600,color:"#e5e5e5",marginBottom:8,paddingBottom:4,borderBottom:"1px solid #333"},children:f}),q.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:q.jsxs("tbody",{children:[q.jsxs("tr",{children:[q.jsx("td",{style:u,children:"Token"}),q.jsx("td",{style:l,children:"input"}),q.jsx("td",{style:l,children:"output"})]}),q.jsxs("tr",{style:{borderBottom:"1px solid #2a2a2a"},children:[q.jsx("td",{style:u}),q.jsx("td",{style:s,children:ru(p)}),q.jsx("td",{style:s,children:ru(m.output)})]}),q.jsxs("tr",{children:[q.jsx("td",{style:u,children:"Cache"}),q.jsx("td",{style:l,children:"create"}),q.jsx("td",{style:l,children:"read"})]}),q.jsxs("tr",{style:{borderBottom:"1px solid #2a2a2a"},children:[q.jsx("td",{style:u}),q.jsx("td",{style:s,children:ru(m.cacheCreation)}),q.jsx("td",{style:s,children:ru(m.cacheRead)})]}),q.jsxs("tr",{children:[q.jsx("td",{style:u,children:"命中率"}),q.jsxs("td",{colSpan:2,style:s,children:[g,"%"]})]})]})})]},f)})})}renderTextPrompt(n){return q.jsx("div",{style:{margin:"4px 0",background:"#141414",borderRadius:6,border:"1px solid #303030",padding:"10px 14px"},children:n.segments.map((r,o)=>r.type==="text"?q.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:13,lineHeight:1.6,color:"#d9d9d9",margin:"4px 0"},children:r.content},o):q.jsx(ta,{size:"small",style:{margin:"4px 0",background:"#1a1a1a",border:"1px solid #303030",borderRadius:6},items:[{key:`sys-${o}`,label:q.jsx("span",{style:{color:"#888",fontSize:12},children:r.label}),children:q.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#999",margin:0},children:r.content})}]},o))})}renderSelectionPrompt(n){const{prevContent:r,answerText:o}=n;return q.jsxs("div",{style:{margin:"4px 0",background:"#141414",borderRadius:6,border:"1px solid #303030"},children:[r&&q.jsxs("div",{style:{padding:"10px 14px",borderBottom:"1px solid #252525"},children:[q.jsx("div",{style:{fontSize:12,color:"#888",marginBottom:6},children:"🤖 Claude"}),r.thinkingBlocks.length>0&&q.jsx(ta,{size:"small",style:{marginBottom:6,background:"#1a1a1a",border:"1px solid #303030",borderRadius:6},items:[{key:"thinking",label:q.jsx("span",{style:{color:"#888",fontSize:12},children:"thinking"}),children:q.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#999",margin:0},children:r.thinkingBlocks.join(`
|
|
337
|
-
|
|
338
|
-
`)})}]}),q.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:13,lineHeight:1.6,color:"#bbb",margin:0},children:r.questionText})]}),q.jsxs("div",{style:{padding:"10px 14px"},children:[q.jsx("div",{style:{fontSize:12,color:"#888",marginBottom:6},children:"👤 用户选择"}),q.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:13,lineHeight:1.6,color:"#d9d9d9",margin:0,fontWeight:600},children:o||"无回答"})]})]})}render(){const{requestCount:n,viewMode:r,cacheType:o,onToggleViewMode:l,onImportLocalLogs:s,isLocalLog:u,localLogFile:f}=this.props,{countdownText:m}=this.state,p=[{key:"import-local",icon:q.jsx(BB,{}),label:"导入本地日志",onClick:s},{key:"save-log",icon:q.jsx(WB,{}),label:"当前日志另存为",onClick:()=>{const g=document.createElement("a");g.href="/api/download-log",g.click()}},{key:"export-prompts",icon:q.jsx(zB,{}),label:"导出用户Prompt",onClick:this.handleShowPrompts}];return q.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%"},children:[q.jsxs(dl,{size:"middle",children:[q.jsx(Hw,{menu:{items:p},trigger:["hover"],children:q.jsxs(GB,{strong:!0,style:{color:"#fff",fontSize:18,cursor:"pointer"},children:["CC-Viewer ",q.jsx(YC,{style:{fontSize:12,marginLeft:4}})]})}),q.jsx(lw,{content:this.renderTokenStats(),trigger:"hover",placement:"bottomLeft",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px"},children:q.jsxs(Mo,{style:{borderRadius:12,cursor:"pointer",background:"#2a2a2a",border:"1px solid #3a3a3a",color:"#ccc"},children:[q.jsx(NB,{style:{marginRight:4}}),"Token 消耗统计"]})}),q.jsxs(Mo,{color:"green",style:{borderRadius:12},children:[q.jsx(uw,{status:"processing",color:"green"}),q.jsx("span",{style:{marginLeft:4},children:u?`历史日志: ${f}`:"实时监控中"})]})]}),q.jsxs(dl,{size:"middle",children:[m&&q.jsxs(Mo,{color:m==="已失效"?"red":"green",children:["MainAgent缓存",o?`(${o})`:"","失效倒计时:",q.jsx("strong",{style:{fontVariantNumeric:"tabular-nums"},children:m})]}),q.jsx(zo,{size:"small",icon:r==="raw"?q.jsx(FB,{}):q.jsx(mv,{}),onClick:l,children:r==="raw"?"对话模式":"原文模式"})]}),q.jsx(ao,{title:"用户 Prompt",open:this.state.promptModalVisible,onCancel:()=>this.setState({promptModalVisible:!1}),footer:null,width:700,children:q.jsxs("div",{style:{maxHeight:500,overflow:"auto"},children:[this.state.promptData.length===0&&q.jsx("div",{style:{color:"#999",padding:12},children:"暂无用户 Prompt"}),this.state.promptData.map((g,h)=>{const y=g.timestamp?new Date(g.timestamp).toLocaleString():"未知时间";return q.jsxs("div",{children:[q.jsxs("div",{style:{textAlign:"center",color:"#666",fontSize:12,margin:"12px 0 8px",borderBottom:"1px solid #303030",paddingBottom:6},children:["--- ",y," ---"]}),g.type==="selection"?this.renderSelectionPrompt(g):this.renderTextPrompt(g)]},h)})]})})]})}}function ou(e){return e==null||e===0?null:e>=1e3?(e/1e3).toFixed(1)+"k":String(e)}function KB(e){return e?e.replace(/^claude-/,"").replace(/-\d{8,}$/,""):null}function XB(e){const t=e.body||{},n=t.system;let r="";if(typeof n=="string")r=n;else if(Array.isArray(n))for(const l of n)l&&l.text&&(r+=l.text);if(/Extract any file paths/i.test(r)||/process Bash commands/i.test(r))return"Bash";if(/file search specialist/i.test(r))return"Task";const o=t.messages||[];for(let l=o.length-1;l>=0;l--){if(o[l].role!=="user")continue;const s=o[l].content;let u="";if(typeof s=="string")u=s;else if(Array.isArray(s)){for(const f of s)if(f.type==="text"){u=f.text||"";break}}if(/^Command:/m.test(u))return"Bash";break}return null}class QB extends Y.Component{render(){const{requests:t,selectedIndex:n,onSelect:r}=this.props;return t.length===0?q.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:q.jsx(bo,{description:"等待请求..."})}):q.jsx("div",{style:{overflow:"auto",height:"100%"},children:q.jsx(Es,{dataSource:t,size:"small",split:!1,renderItem:(o,l)=>{var w,O,I;const s=new Date(o.timestamp).toLocaleTimeString("zh-CN"),u=l===n,f=o.response&&o.response.status<400,m=o.response&&o.response.status>=400,p=KB((w=o.body)==null?void 0:w.model),g=o.mainAgent?null:XB(o),h=(I=(O=o.response)==null?void 0:O.body)==null?void 0:I.usage,y=h?(h.input_tokens||0)+(h.cache_read_input_tokens||0)+(h.cache_creation_input_tokens||0):null,x=(h==null?void 0:h.output_tokens)||null,S=(h==null?void 0:h.cache_read_input_tokens)||0,b=(h==null?void 0:h.cache_creation_input_tokens)||0;let $=o.url;try{const R=new URL(o.url);$=R.host+R.pathname}catch{}return q.jsx(Es.Item,{onClick:()=>r(l),style:{cursor:"pointer",padding:"8px 12px",background:u?"#1a2332":"transparent",borderLeft:u?"3px solid #3b82f6":"3px solid transparent",borderBottom:"1px solid #1f1f1f",transition:"background 0.15s"},onMouseEnter:R=>{u||(R.currentTarget.style.background="#151515")},onMouseLeave:R=>{u||(R.currentTarget.style.background="transparent")},children:q.jsxs("div",{style:{width:"100%",minWidth:0},children:[q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4,fontSize:12},children:[o.mainAgent?q.jsx(Mo,{color:"orange",style:{margin:0,fontSize:12},children:"MainAgent"}):q.jsxs(Mo,{style:{margin:0,fontSize:12},children:["SubAgent",g?":"+g:""]}),p&&q.jsx("span",{style:{fontSize:12,color:o.mainAgent?"#d4822d":"#8c8c8c"},children:p}),q.jsx("span",{style:{fontSize:12,color:"#6b7280",marginLeft:"auto"},children:s})]}),q.jsxs("div",{style:{display:"flex",gap:8,fontSize:12,alignItems:"center"},children:[q.jsx("span",{style:{color:"#555",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0},title:o.url,children:$}),o.duration&&q.jsxs("span",{style:{color:"#6b7280",flexShrink:0},children:[o.duration,"ms"]}),o.response&&q.jsx("span",{style:{color:f?"#10b981":m?"#ef4444":"#9ca3af",flexShrink:0},children:o.response.status})]}),h&&q.jsxs("div",{style:{background:"#111",borderRadius:4,padding:"3px 6px",marginTop:4,fontSize:12,color:"#6b7280",lineHeight:1.6},children:[q.jsxs("div",{children:["token: output:",ou(x)||0,", input: ",ou(y)||0]}),(S>0||b>0)&&q.jsxs("div",{children:["cache: ",S>0?`read:${ou(S)}`:"",S>0&&b>0?", ":"",b>0?`create:${ou(b)}`:""]})]})]})})}})})}}const YB=e=>typeof e=="boolean"||e instanceof Boolean,ZB=e=>typeof e=="number"||e instanceof Number,JB=e=>typeof e=="bigint"||e instanceof BigInt,r$=e=>!!e&&e instanceof Date,eA=e=>typeof e=="string"||e instanceof String,tA=e=>Array.isArray(e),o$=e=>typeof e=="object"&&e!==null,i$=e=>!!e&&e instanceof Object&&typeof e=="function";function Wu(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function nA(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function a$(e){let{field:t,value:n,data:r,lastElement:o,openBracket:l,closeBracket:s,level:u,style:f,shouldExpandNode:m,clickToExpandNode:p,outerRef:g,beforeExpandChange:h}=e;const y=c.useRef(!1),[x,S]=c.useState(()=>m(u,n,t)),b=c.useRef(null);c.useEffect(()=>{y.current?S(m(u,n,t)):y.current=!0},[m]);const $=c.useId();if(r.length===0)return rA({field:t,openBracket:l,closeBracket:s,lastElement:o,style:f});const w=x?f.collapseIcon:f.expandIcon,O=x?f.ariaLables.collapseJson:f.ariaLables.expandJson,I=u+1,R=r.length-1,P=M=>{x!==M&&(!h||h({level:u,value:n,field:t,newExpandValue:M}))&&S(M)},T=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),P(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const _=M.key==="ArrowUp"?-1:1;if(!g.current)return;const L=g.current.querySelectorAll("[role=button]");let z=-1;for(let B=0;B<L.length;B++)if(L[B].tabIndex===0){z=B;break}if(z<0)return;const A=(z+_+L.length)%L.length;L[z].tabIndex=-1,L[A].tabIndex=0,L[A].focus()}},N=()=>{var M;P(!x);const _=b.current;if(!_)return;const L=(M=g.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');L&&(L.tabIndex=-1),_.tabIndex=0,_.focus()};return c.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-expanded":x,"aria-selected":void 0},c.createElement("span",{className:w,onClick:N,onKeyDown:T,role:"button","aria-label":O,"aria-expanded":x,"aria-controls":x?$:void 0,ref:b,tabIndex:u===0?0:-1}),(t||t==="")&&(p?c.createElement("span",{className:f.clickableLabel,onClick:N,onKeyDown:T},Wu(t,f.quotesForFieldNames),":"):c.createElement("span",{className:f.label},Wu(t,f.quotesForFieldNames),":")),c.createElement("span",{className:f.punctuation},l),x?c.createElement("ul",{id:$,role:"group",className:f.childFieldsContainer},r.map((M,_)=>c.createElement(pg,{key:M[0]||_,field:M[0],value:M[1],style:f,lastElement:_===R,level:I,shouldExpandNode:m,clickToExpandNode:p,beforeExpandChange:h,outerRef:g}))):c.createElement("span",{className:f.collapsedContent,onClick:N,onKeyDown:T}),c.createElement("span",{className:f.punctuation},s),!o&&c.createElement("span",{className:f.punctuation},","))}function rA(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:l}=e;return c.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&c.createElement("span",{className:l.label},Wu(t,l.quotesForFieldNames),":"),c.createElement("span",{className:l.punctuation},n),c.createElement("span",{className:l.punctuation},r),!o&&c.createElement("span",{className:l.punctuation},","))}function oA(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:l,clickToExpandNode:s,level:u,outerRef:f,beforeExpandChange:m}=e;return a$({field:t,value:n,lastElement:o||!1,level:u,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:l,clickToExpandNode:s,data:Object.keys(n).map(p=>[p,n[p]]),outerRef:f,beforeExpandChange:m})}function iA(e){let{field:t,value:n,style:r,lastElement:o,level:l,shouldExpandNode:s,clickToExpandNode:u,outerRef:f,beforeExpandChange:m}=e;return a$({field:t,value:n,lastElement:o||!1,level:l,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:u,data:n.map(p=>[void 0,p]),outerRef:f,beforeExpandChange:m})}function aA(e){let{field:t,value:n,style:r,lastElement:o}=e,l,s=r.otherValue;return n===null?(l="null",s=r.nullValue):n===void 0?(l="undefined",s=r.undefinedValue):eA(n)?(l=nA(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):YB(n)?(l=n?"true":"false",s=r.booleanValue):ZB(n)?(l=n.toString(),s=r.numberValue):JB(n)?(l=`${n.toString()}n`,s=r.numberValue):r$(n)?l=n.toISOString():i$(n)?l="function() { }":l=n.toString(),c.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&c.createElement("span",{className:r.label},Wu(t,r.quotesForFieldNames),":"),c.createElement("span",{className:s},l),!o&&c.createElement("span",{className:r.punctuation},","))}function pg(e){const t=e.value;return tA(t)?c.createElement(iA,Object.assign({},e)):o$(t)&&!r$(t)&&!i$(t)?c.createElement(oA,Object.assign({},e)):c.createElement(aA,Object.assign({},e))}var fn={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const l$={collapseJson:"collapse JSON",expandJson:"expand JSON"},lp={container:fn["container-light"],basicChildStyle:fn["basic-element-style"],childFieldsContainer:fn["child-fields-container"],label:fn["label-light"],clickableLabel:fn["clickable-label-light"],nullValue:fn["value-null-light"],undefinedValue:fn["value-undefined-light"],stringValue:fn["value-string-light"],booleanValue:fn["value-boolean-light"],numberValue:fn["value-number-light"],otherValue:fn["value-other-light"],punctuation:fn["punctuation-light"],collapseIcon:fn["collapse-icon-light"],expandIcon:fn["expand-icon-light"],collapsedContent:fn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:l$,stringifyStringValues:!1},lA={container:fn["container-dark"],basicChildStyle:fn["basic-element-style"],childFieldsContainer:fn["child-fields-container"],label:fn["label-dark"],clickableLabel:fn["clickable-label-dark"],nullValue:fn["value-null-dark"],undefinedValue:fn["value-undefined-dark"],stringValue:fn["value-string-dark"],booleanValue:fn["value-boolean-dark"],numberValue:fn["value-number-dark"],otherValue:fn["value-other-dark"],punctuation:fn["punctuation-dark"],collapseIcon:fn["collapse-icon-dark"],expandIcon:fn["expand-icon-dark"],collapsedContent:fn["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:l$,stringifyStringValues:!1},sA=()=>!0,cA=e=>{let{data:t,style:n=lp,shouldExpandNode:r=sA,clickToExpandNode:o=!1,beforeExpandChange:l,compactTopLevel:s,...u}=e;const f=c.useRef(null);return c.createElement("div",Object.assign({"aria-label":"JSON view"},u,{className:n.container,ref:f,role:"tree"}),s&&o$(t)?Object.entries(t).map(m=>{let[p,g]=m;return c.createElement(pg,{key:p,field:p,value:g,style:{...lp,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:l,outerRef:f})}):c.createElement(pg,{value:t,style:{...lp,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:f,beforeExpandChange:l}))},uA={...lA,container:"rjv-container"};class dA extends Y.Component{render(){const{data:t,defaultExpand:n}=this.props;if(t==null)return null;const r=n==="all"?()=>!0:n==="root"?o=>o<2:o=>o<1;return q.jsx("div",{style:{background:"#0d1117",borderRadius:6,border:"1px solid #2a2a2a",padding:"12px",fontSize:13,fontFamily:"monospace",overflow:"auto"},children:q.jsx(cA,{data:t,shouldExpandNode:r,style:uA})})}}const{Text:Xo,Paragraph:fA}=Bo;class mA extends Y.Component{constructor(t){super(t),this.state={bodyViewMode:{request:"json",response:"json"}}}shouldComponentUpdate(t,n){return t.request!==this.props.request||t.currentTab!==this.props.currentTab||t.onTabChange!==this.props.onTabChange||n.bodyViewMode!==this.state.bodyViewMode}toggleBodyViewMode(t){this.setState(n=>({bodyViewMode:{...n.bodyViewMode,[t]:n.bodyViewMode[t]==="json"?"text":"json"}}))}copyBody(t){var l;const{request:n}=this.props;if(!n)return;const r=t==="request"?n.body:(l=n.response)==null?void 0:l.body;if(r==null)return;const o=typeof r=="string"?r:JSON.stringify(r,null,2);navigator.clipboard.writeText(o).then(()=>Yw.success("复制成功"))}renderHeaders(t){return!t||Object.keys(t).length===0?q.jsx(Xo,{type:"secondary",children:"无 Headers"}):q.jsx("div",{style:{fontSize:12},children:Object.entries(t).map(([n,r])=>q.jsxs("div",{style:{display:"flex",padding:"4px 0",borderBottom:"1px solid #1f1f1f"},children:[q.jsx(Xo,{code:!0,style:{minWidth:200,flexShrink:0},children:n}),q.jsx(Xo,{type:"secondary",style:{wordBreak:"break-all",marginLeft:8},children:String(r)})]},n))})}renderBody(t,n){const{bodyViewMode:r}=this.state;if(t==null)return q.jsx(Xo,{type:"secondary",children:"无 Body"});if(typeof t=="string"&&t.includes("Streaming Response"))return q.jsx("div",{style:{padding:20,background:"#1a1a1a",borderRadius:6,border:"1px solid #2a2a2a"},children:q.jsx(Xo,{type:"secondary",children:"⚡ 流式响应 — 此请求使用了流式传输(SSE),响应内容无法完整捕获。"})});const o=r[n]==="json";return q.jsxs("div",{children:[q.jsxs("div",{style:{display:"flex",gap:8,marginBottom:8},children:[q.jsx(zo,{size:"small",icon:o?q.jsx(mv,{}):q.jsx(PB,{}),onClick:()=>this.toggleBodyViewMode(n),children:o?"Text":"JSON"}),q.jsx(zo,{size:"small",icon:q.jsx(n$,{}),onClick:()=>this.copyBody(n),children:"复制"})]}),o?q.jsx(dA,{data:t,defaultExpand:n==="response"?"all":"root"}):q.jsx("pre",{style:{background:"#0d1117",border:"1px solid #2a2a2a",borderRadius:6,padding:12,fontSize:12,color:"#e5e7eb",overflow:"auto",maxHeight:600,whiteSpace:"pre-wrap",wordBreak:"break-all"},children:typeof t=="string"?t:JSON.stringify(t,null,2)})]})}render(){const{request:t,currentTab:n,onTabChange:r}=this.props;if(!t)return q.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:q.jsx(bo,{description:"选择一个请求查看详情"})});const o=new Date(t.timestamp).toLocaleString("zh-CN"),l=t.response&&t.response.status<400,s=[{key:"request",label:"Request",children:q.jsxs("div",{style:{padding:"12px 0"},children:[q.jsx(ta,{ghost:!0,defaultActiveKey:[],items:[{key:"headers",label:"Headers",children:this.renderHeaders(t.headers)}],style:{marginBottom:16}}),q.jsxs("div",{children:[q.jsx(Xo,{strong:!0,style:{display:"block",marginBottom:8},children:"Body"}),this.renderBody(t.body,"request")]})]})},{key:"response",label:"Response",children:q.jsx("div",{style:{padding:"12px 0"},children:t.response?q.jsxs(q.Fragment,{children:[q.jsx(ta,{ghost:!0,defaultActiveKey:[],items:[{key:"headers",label:"Headers",children:this.renderHeaders(t.response.headers)}],style:{marginBottom:16}}),q.jsxs("div",{children:[q.jsx(Xo,{strong:!0,style:{display:"block",marginBottom:8},children:"Body"}),this.renderBody(t.response.body,"response")]})]}):q.jsx(bo,{description:"响应数据未捕获"})})}];return q.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 16px"},children:[q.jsxs("div",{style:{padding:"12px 0",borderBottom:"1px solid #1f1f1f"},children:[q.jsx(fA,{style:{color:"#d1d5db",fontSize:13,marginBottom:8,wordBreak:"break-all"},ellipsis:{rows:2,expandable:!0},children:t.url}),q.jsxs(dl,{size:"small",wrap:!0,children:[q.jsx(Mo,{color:t.method==="POST"?"blue":"green",children:t.method}),q.jsxs(Xo,{type:"secondary",style:{fontSize:12},children:["🕐 ",o]}),t.duration&&q.jsxs(Xo,{type:"secondary",style:{fontSize:12},children:["⏱️ ",t.duration,"ms"]}),t.response&&q.jsxs(Mo,{color:l?"success":"error",children:["HTTP ",t.response.status]})]})]}),q.jsx(Bw,{activeKey:n,onChange:r,items:s,size:"small"})]})}}function Sv(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var aa=Sv();function s$(e){aa=e}var Xi={exec:()=>null};function en(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace($r.caret,"$1"),n=n.replace(o,s),r},getRegex:()=>new RegExp(n,t)};return r}var pA=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),$r={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},gA=/^(?:[ \t]*(?:\n|$))+/,vA=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hA=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,yA=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xv=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,c$=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,u$=en(c$).replace(/bull/g,xv).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),bA=en(c$).replace(/bull/g,xv).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Cv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,SA=/^[^\n]+/,wv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,xA=en(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),CA=en(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xv).getRegex(),_d="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$v=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wA=en("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",$v).replace("tag",_d).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),d$=en(Cv).replace("hr",Vs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_d).getRegex(),$A=en(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",d$).getRegex(),Ev={blockquote:$A,code:vA,def:xA,fences:hA,heading:yA,hr:Vs,html:wA,lheading:u$,list:CA,newline:gA,paragraph:d$,table:Xi,text:SA},KS=en("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_d).getRegex(),EA={...Ev,lheading:bA,table:KS,paragraph:en(Cv).replace("hr",Vs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",KS).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_d).getRegex()},OA={...Ev,html:en(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$v).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:en(Cv).replace("hr",Vs).replace("heading",` *#{1,6} *[^
|
|
339
|
-
]`).replace("lheading",u$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},IA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,RA=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,f$=/^( {2,}|\\)\n(?!\s*$)/,PA=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,jd=/[\p{P}\p{S}]/u,Ov=/[\s\p{P}\p{S}]/u,m$=/[^\s\p{P}\p{S}]/u,TA=en(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ov).getRegex(),p$=/(?!~)[\p{P}\p{S}]/u,MA=/(?!~)[\s\p{P}\p{S}]/u,NA=/(?:[^\s\p{P}\p{S}]|~)/u,g$=/(?![*_])[\p{P}\p{S}]/u,_A=/(?![*_])[\s\p{P}\p{S}]/u,jA=/(?:[^\s\p{P}\p{S}]|[*_])/u,zA=en(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",pA?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),v$=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,kA=en(v$,"u").replace(/punct/g,jd).getRegex(),LA=en(v$,"u").replace(/punct/g,p$).getRegex(),h$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",BA=en(h$,"gu").replace(/notPunctSpace/g,m$).replace(/punctSpace/g,Ov).replace(/punct/g,jd).getRegex(),AA=en(h$,"gu").replace(/notPunctSpace/g,NA).replace(/punctSpace/g,MA).replace(/punct/g,p$).getRegex(),DA=en("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,m$).replace(/punctSpace/g,Ov).replace(/punct/g,jd).getRegex(),FA=en(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,g$).getRegex(),HA="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",VA=en(HA,"gu").replace(/notPunctSpace/g,jA).replace(/punctSpace/g,_A).replace(/punct/g,g$).getRegex(),WA=en(/\\(punct)/,"gu").replace(/punct/g,jd).getRegex(),UA=en(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),GA=en($v).replace("(?:-->|$)","-->").getRegex(),qA=en("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",GA).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Uu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,KA=en(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Uu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),y$=en(/^!?\[(label)\]\[(ref)\]/).replace("label",Uu).replace("ref",wv).getRegex(),b$=en(/^!?\[(ref)\](?:\[\])?/).replace("ref",wv).getRegex(),XA=en("reflink|nolink(?!\\()","g").replace("reflink",y$).replace("nolink",b$).getRegex(),XS=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Iv={_backpedal:Xi,anyPunctuation:WA,autolink:UA,blockSkip:zA,br:f$,code:RA,del:Xi,delLDelim:Xi,delRDelim:Xi,emStrongLDelim:kA,emStrongRDelimAst:BA,emStrongRDelimUnd:DA,escape:IA,link:KA,nolink:b$,punctuation:TA,reflink:y$,reflinkSearch:XA,tag:qA,text:PA,url:Xi},QA={...Iv,link:en(/^!?\[(label)\]\((.*?)\)/).replace("label",Uu).getRegex(),reflink:en(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Uu).getRegex()},gg={...Iv,emStrongRDelimAst:AA,emStrongLDelim:LA,delLDelim:FA,delRDelim:VA,url:en(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",XS).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:en(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",XS).getRegex()},YA={...gg,br:en(f$).replace("{2,}","*").getRegex(),text:en(gg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},iu={normal:Ev,gfm:EA,pedantic:OA},ts={normal:Iv,gfm:gg,breaks:YA,pedantic:QA},ZA={"&":"&","<":"<",">":">",'"':""","'":"'"},QS=e=>ZA[e];function Qo(e,t){if(t){if($r.escapeTest.test(e))return e.replace($r.escapeReplace,QS)}else if($r.escapeTestNoEncode.test(e))return e.replace($r.escapeReplaceNoEncode,QS);return e}function YS(e){try{e=encodeURI(e).replace($r.percentDecode,"%")}catch{return null}return e}function ZS(e,t){var l;let n=e.replace($r.findPipe,(s,u,f)=>{let m=!1,p=u;for(;--p>=0&&f[p]==="\\";)m=!m;return m?"|":" |"}),r=n.split($r.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((l=r.at(-1))!=null&&l.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace($r.slashPipe,"|");return r}function ns(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function JA(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function e8(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let l=4-n%4;r+=" ".repeat(l),n+=l}else r+=o,n++;return r}function JS(e,t,n,r,o){let l=t.href,s=t.title||null,u=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:s,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,f}function t8(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
|
|
340
|
-
`).map(l=>{let s=l.match(n.other.beginningSpace);if(s===null)return l;let[u]=s;return u.length>=o.length?l.slice(o.length):l}).join(`
|
|
341
|
-
`)}var Gu=class{constructor(e){Kt(this,"options");Kt(this,"rules");Kt(this,"lexer");this.options=e||aa}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ns(n,`
|
|
342
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=t8(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=ns(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ns(t[0],`
|
|
343
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=ns(t[0],`
|
|
344
|
-
`).split(`
|
|
345
|
-
`),r="",o="",l=[];for(;n.length>0;){let s=!1,u=[],f;for(f=0;f<n.length;f++)if(this.rules.other.blockquoteStart.test(n[f]))u.push(n[f]),s=!0;else if(!s)u.push(n[f]);else break;n=n.slice(f);let m=u.join(`
|
|
346
|
-
`),p=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
347
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
348
|
-
${m}`:m,o=o?`${o}
|
|
349
|
-
${p}`:p;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,l,!0),this.lexer.state.top=g,n.length===0)break;let h=l.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let y=h,x=y.raw+`
|
|
350
|
-
`+n.join(`
|
|
351
|
-
`),S=this.blockquote(x);l[l.length-1]=S,r=r.substring(0,r.length-y.raw.length)+S.raw,o=o.substring(0,o.length-y.text.length)+S.text;break}else if((h==null?void 0:h.type)==="list"){let y=h,x=y.raw+`
|
|
352
|
-
`+n.join(`
|
|
353
|
-
`),S=this.list(x);l[l.length-1]=S,r=r.substring(0,r.length-h.raw.length)+S.raw,o=o.substring(0,o.length-y.raw.length)+S.raw,n=x.substring(l.at(-1).raw.length).split(`
|
|
354
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:l,text:o}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),l=o.length>1,s={type:"list",raw:"",ordered:l,start:l?+o.slice(0,-1):"",loose:!1,items:[]};o=l?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=l?o:"[*+-]");let u=this.rules.other.listItemRegex(o),f=!1;for(;e;){let p=!1,g="",h="";if(!(t=u.exec(e))||this.rules.block.hr.test(e))break;g=t[0],e=e.substring(g.length);let y=e8(t[2].split(`
|
|
355
|
-
`,1)[0],t[1].length),x=e.split(`
|
|
356
|
-
`,1)[0],S=!y.trim(),b=0;if(this.options.pedantic?(b=2,h=y.trimStart()):S?b=t[1].length+1:(b=y.search(this.rules.other.nonSpaceChar),b=b>4?1:b,h=y.slice(b),b+=t[1].length),S&&this.rules.other.blankLine.test(x)&&(g+=x+`
|
|
357
|
-
`,e=e.substring(x.length+1),p=!0),!p){let $=this.rules.other.nextBulletRegex(b),w=this.rules.other.hrRegex(b),O=this.rules.other.fencesBeginRegex(b),I=this.rules.other.headingBeginRegex(b),R=this.rules.other.htmlBeginRegex(b),P=this.rules.other.blockquoteBeginRegex(b);for(;e;){let T=e.split(`
|
|
358
|
-
`,1)[0],N;if(x=T,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),N=x):N=x.replace(this.rules.other.tabCharGlobal," "),O.test(x)||I.test(x)||R.test(x)||P.test(x)||$.test(x)||w.test(x))break;if(N.search(this.rules.other.nonSpaceChar)>=b||!x.trim())h+=`
|
|
359
|
-
`+N.slice(b);else{if(S||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(y)||I.test(y)||w.test(y))break;h+=`
|
|
360
|
-
`+x}S=!x.trim(),g+=T+`
|
|
361
|
-
`,e=e.substring(T.length+1),y=N.slice(b)}}s.loose||(f?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(f=!0)),s.items.push({type:"list_item",raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),s.raw+=g}let m=s.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let p of s.items){if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),p.task){if(p.text=p.text.replace(this.rules.other.listReplaceTask,""),((n=p.tokens[0])==null?void 0:n.type)==="text"||((r=p.tokens[0])==null?void 0:r.type)==="paragraph"){p.tokens[0].raw=p.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),p.tokens[0].text=p.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}}let g=this.rules.other.listTaskCheckbox.exec(p.raw);if(g){let h={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};p.checked=h.checked,s.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=h.raw+p.tokens[0].raw,p.tokens[0].text=h.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(h)):p.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):p.tokens.unshift(h)}}if(!s.loose){let g=p.tokens.filter(y=>y.type==="space"),h=g.length>0&&g.some(y=>this.rules.other.anyLine.test(y.raw));s.loose=h}}if(s.loose)for(let p of s.items){p.loose=!0;for(let g of p.tokens)g.type==="text"&&(g.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ZS(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
362
|
-
`):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let u of r)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of o)l.rows.push(ZS(u,l.header.length).map((f,m)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:l.align[m]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
363
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=ns(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=JA(t[2],"()");if(l===-2)return;if(l>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(r);l&&(r=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),JS(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return JS(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,l,s,u=o,f=0,m=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+o);(r=m.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(s=[...l].length,r[3]||r[4]){u+=s;continue}else if((r[5]||r[6])&&o%3&&!((o+s)%3)){f+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+f);let p=[...r[0]][0].length,g=e.slice(0,o+r.index+p+s);if(Math.min(o,s)%2){let y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}let h=g.slice(2,-2);return{type:"strong",raw:g,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,l,s,u=o,f=this.rules.inline.delRDelim;for(f.lastIndex=0,t=t.slice(-1*e.length+o);(r=f.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l||(s=[...l].length,s!==o))continue;if(r[3]||r[4]){u+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u);let m=[...r[0]][0].length,p=e.slice(0,o+r.index+m+s),g=p.slice(o,-o);return{type:"del",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let l;do l=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(l!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},ho=class vg{constructor(t){Kt(this,"tokens");Kt(this,"options");Kt(this,"state");Kt(this,"inlineQueue");Kt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||aa,this.options.tokenizer=this.options.tokenizer||new Gu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:$r,block:iu.normal,inline:ts.normal};this.options.pedantic?(n.block=iu.pedantic,n.inline=ts.pedantic):this.options.gfm&&(n.block=iu.gfm,this.options.breaks?n.inline=ts.breaks:n.inline=ts.gfm),this.tokenizer.rules=n}static get rules(){return{block:iu,inline:ts}}static lex(t,n){return new vg(n).lex(t)}static lexInline(t,n){return new vg(n).inlineTokens(t)}lex(t){t=t.replace($r.carriageReturn,`
|
|
364
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,l,s;for(this.options.pedantic&&(t=t.replace($r.tabCharGlobal," ").replace($r.spaceLine,""));t;){let u;if((l=(o=this.options.extensions)==null?void 0:o.block)!=null&&l.some(m=>(u=m.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.space(t)){t=t.substring(u.raw.length);let m=n.at(-1);u.raw.length===1&&m!==void 0?m.raw+=`
|
|
365
|
-
`:n.push(u);continue}if(u=this.tokenizer.code(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
366
|
-
`)?"":`
|
|
367
|
-
`)+u.raw,m.text+=`
|
|
368
|
-
`+u.text,this.inlineQueue.at(-1).src=m.text):n.push(u);continue}if(u=this.tokenizer.fences(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.heading(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.hr(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.blockquote(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.list(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.html(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.def(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
369
|
-
`)?"":`
|
|
370
|
-
`)+u.raw,m.text+=`
|
|
371
|
-
`+u.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title},n.push(u));continue}if(u=this.tokenizer.table(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.lheading(t)){t=t.substring(u.raw.length),n.push(u);continue}let f=t;if((s=this.options.extensions)!=null&&s.startBlock){let m=1/0,p=t.slice(1),g;this.options.extensions.startBlock.forEach(h=>{g=h.call({lexer:this},p),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(u=this.tokenizer.paragraph(f))){let m=n.at(-1);r&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
|
|
372
|
-
`)?"":`
|
|
373
|
-
`)+u.raw,m.text+=`
|
|
374
|
-
`+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(u),r=f.length!==t.length,t=t.substring(u.raw.length);continue}if(u=this.tokenizer.text(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
375
|
-
`)?"":`
|
|
376
|
-
`)+u.raw,m.text+=`
|
|
377
|
-
`+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(u);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var f,m,p,g,h;let r=t,o=null;if(this.tokens.links){let y=Object.keys(this.tokens.links);if(y.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)y.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)l=o[2]?o[2].length:0,r=r.slice(0,o.index+l)+"["+"a".repeat(o[0].length-l-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((m=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:m.call({lexer:this},r))??r;let s=!1,u="";for(;t;){s||(u=""),s=!1;let y;if((g=(p=this.options.extensions)==null?void 0:p.inline)!=null&&g.some(S=>(y=S.call({lexer:this},t,n))?(t=t.substring(y.raw.length),n.push(y),!0):!1))continue;if(y=this.tokenizer.escape(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.tag(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.link(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(y.raw.length);let S=n.at(-1);y.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=y.raw,S.text+=y.text):n.push(y);continue}if(y=this.tokenizer.emStrong(t,r,u)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.codespan(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.br(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.del(t,r,u)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.autolink(t)){t=t.substring(y.raw.length),n.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(t))){t=t.substring(y.raw.length),n.push(y);continue}let x=t;if((h=this.options.extensions)!=null&&h.startInline){let S=1/0,b=t.slice(1),$;this.options.extensions.startInline.forEach(w=>{$=w.call({lexer:this},b),typeof $=="number"&&$>=0&&(S=Math.min(S,$))}),S<1/0&&S>=0&&(x=t.substring(0,S+1))}if(y=this.tokenizer.inlineText(x)){t=t.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(u=y.raw.slice(-1)),s=!0;let S=n.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=y.raw,S.text+=y.text):n.push(y);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return n}},qu=class{constructor(e){Kt(this,"options");Kt(this,"parser");this.options=e||aa}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let r=(l=(t||"").match($r.notSpaceStart))==null?void 0:l[0],o=e.replace($r.endingNewline,"")+`
|
|
378
|
-
`;return r?'<pre><code class="language-'+Qo(r)+'">'+(n?o:Qo(o,!0))+`</code></pre>
|
|
379
|
-
`:"<pre><code>"+(n?o:Qo(o,!0))+`</code></pre>
|
|
380
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
381
|
-
${this.parser.parse(e)}</blockquote>
|
|
382
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
383
|
-
`}hr(e){return`<hr>
|
|
384
|
-
`}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let u=e.items[s];r+=this.listitem(u)}let o=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+o+l+`>
|
|
385
|
-
`+r+"</"+o+`>
|
|
386
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
387
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
388
|
-
`}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let r="";for(let o=0;o<e.rows.length;o++){let l=e.rows[o];n="";for(let s=0;s<l.length;s++)n+=this.tablecell(l[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
389
|
-
<thead>
|
|
390
|
-
`+t+`</thead>
|
|
391
|
-
`+r+`</table>
|
|
392
|
-
`}tablerow({text:e}){return`<tr>
|
|
393
|
-
${e}</tr>
|
|
394
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
395
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Qo(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=YS(e);if(o===null)return r;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+Qo(t)+'"'),l+=">"+r+"</a>",l}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=YS(e);if(o===null)return Qo(n);e=o;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${Qo(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Qo(e.text)}},Rv=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},yo=class hg{constructor(t){Kt(this,"options");Kt(this,"renderer");Kt(this,"textRenderer");this.options=t||aa,this.options.renderer=this.options.renderer||new qu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Rv}static parse(t,n){return new hg(n).parse(t)}static parseInline(t,n){return new hg(n).parseInline(t)}parse(t){var r,o;let n="";for(let l=0;l<t.length;l++){let s=t[l];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[s.type]){let f=s,m=this.options.extensions.renderers[f.type].call({parser:this},f);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){n+=m||"";continue}}let u=s;switch(u.type){case"space":{n+=this.renderer.space(u);break}case"hr":{n+=this.renderer.hr(u);break}case"heading":{n+=this.renderer.heading(u);break}case"code":{n+=this.renderer.code(u);break}case"table":{n+=this.renderer.table(u);break}case"blockquote":{n+=this.renderer.blockquote(u);break}case"list":{n+=this.renderer.list(u);break}case"checkbox":{n+=this.renderer.checkbox(u);break}case"html":{n+=this.renderer.html(u);break}case"def":{n+=this.renderer.def(u);break}case"paragraph":{n+=this.renderer.paragraph(u);break}case"text":{n+=this.renderer.text(u);break}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}parseInline(t,n=this.renderer){var o,l;let r="";for(let s=0;s<t.length;s++){let u=t[s];if((l=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&l[u.type]){let m=this.options.extensions.renderers[u.type].call({parser:this},u);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type)){r+=m||"";continue}}let f=u;switch(f.type){case"escape":{r+=n.text(f);break}case"html":{r+=n.html(f);break}case"link":{r+=n.link(f);break}case"image":{r+=n.image(f);break}case"checkbox":{r+=n.checkbox(f);break}case"strong":{r+=n.strong(f);break}case"em":{r+=n.em(f);break}case"codespan":{r+=n.codespan(f);break}case"br":{r+=n.br(f);break}case"del":{r+=n.del(f);break}case"text":{r+=n.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}},su,as=(su=class{constructor(e){Kt(this,"options");Kt(this,"block");this.options=e||aa}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ho.lex:ho.lexInline}provideParser(){return this.block?yo.parse:yo.parseInline}},Kt(su,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Kt(su,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),su),n8=class{constructor(...e){Kt(this,"defaults",Sv());Kt(this,"options",this.setOptions);Kt(this,"parse",this.parseMarkdown(!0));Kt(this,"parseInline",this.parseMarkdown(!1));Kt(this,"Parser",yo);Kt(this,"Renderer",qu);Kt(this,"TextRenderer",Rv);Kt(this,"Lexer",ho);Kt(this,"Tokenizer",Gu);Kt(this,"Hooks",as);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let s=l;for(let u of s.header)n=n.concat(this.walkTokens(u.tokens,t));for(let u of s.rows)for(let f of u)n=n.concat(this.walkTokens(f.tokens,t));break}case"list":{let s=l;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=l;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[s.type]?this.defaults.extensions.childTokens[s.type].forEach(u=>{let f=s[u].flat(1/0);n=n.concat(this.walkTokens(f,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let l=t.renderers[o.name];l?t.renderers[o.name]=function(...s){let u=o.renderer.apply(this,s);return u===!1&&(u=l.apply(this,s)),u}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=t[o.level];l?l.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new qu(this.defaults);for(let l in n.renderer){if(!(l in o))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let s=l,u=n.renderer[s],f=o[s];o[s]=(...m)=>{let p=u.apply(o,m);return p===!1&&(p=f.apply(o,m)),p||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new Gu(this.defaults);for(let l in n.tokenizer){if(!(l in o))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,u=n.tokenizer[s],f=o[s];o[s]=(...m)=>{let p=u.apply(o,m);return p===!1&&(p=f.apply(o,m)),p}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new as;for(let l in n.hooks){if(!(l in o))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let s=l,u=n.hooks[s],f=o[s];as.passThroughHooks.has(l)?o[s]=m=>{if(this.defaults.async&&as.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await u.call(o,m);return f.call(o,g)})();let p=u.call(o,m);return f.call(o,p)}:o[s]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await u.apply(o,m);return g===!1&&(g=await f.apply(o,m)),g})();let p=u.apply(o,m);return p===!1&&(p=f.apply(o,m)),p}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,l=n.walkTokens;r.walkTokens=function(s){let u=[];return u.push(l.call(this,s)),o&&(u=u.concat(o.call(this,s))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ho.lex(e,t??this.defaults)}parser(e,t){return yo.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let s=o.hooks?await o.hooks.preprocess(t):t,u=await(o.hooks?await o.hooks.provideLexer():e?ho.lex:ho.lexInline)(s,o),f=o.hooks?await o.hooks.processAllTokens(u):u;o.walkTokens&&await Promise.all(this.walkTokens(f,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():e?yo.parse:yo.parseInline)(f,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(l);try{o.hooks&&(t=o.hooks.preprocess(t));let s=(o.hooks?o.hooks.provideLexer():e?ho.lex:ho.lexInline)(t,o);o.hooks&&(s=o.hooks.processAllTokens(s)),o.walkTokens&&this.walkTokens(s,o.walkTokens);let u=(o.hooks?o.hooks.provideParser():e?yo.parse:yo.parseInline)(s,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(s){return l(s)}}}onError(e,t){return n=>{if(n.message+=`
|
|
396
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Qo(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},ra=new n8;function vn(e,t){return ra.parse(e,t)}vn.options=vn.setOptions=function(e){return ra.setOptions(e),vn.defaults=ra.defaults,s$(vn.defaults),vn};vn.getDefaults=Sv;vn.defaults=aa;vn.use=function(...e){return ra.use(...e),vn.defaults=ra.defaults,s$(vn.defaults),vn};vn.walkTokens=function(e,t){return ra.walkTokens(e,t)};vn.parseInline=ra.parseInline;vn.Parser=yo;vn.parser=yo.parse;vn.Renderer=qu;vn.TextRenderer=Rv;vn.Lexer=ho;vn.lexer=ho.lex;vn.Tokenizer=Gu;vn.Hooks=as;vn.parse=vn;vn.options;vn.setOptions;vn.use;vn.walkTokens;vn.parseInline;yo.parse;ho.lex;function r8(e){if(!e)return"";try{return vn.parse(e,{breaks:!0})}catch{return o8(e)}}function o8(e){return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):""}const i8=["system-reminder","local-command-caveat","project-reminder","important-instruction-reminders","file-modified-reminder","todo-reminder","user-prompt-submit-hook","local-command-stdout","command-name","task-notification","environment_details","context"];function a8(e){if(!e)return{segments:[]};const t=new RegExp("<("+i8.join("|")+")\\b[^>]*>([\\s\\S]*?)</\\1>","gi"),n=[];let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){const l=e.slice(r,o.index).trim();l&&n.push({type:"text",content:l})}n.push({type:"system-tag",tag:o[1],content:o[2].trim()}),r=o.index+o[0].length}if(r<e.length){const l=e.slice(r).trim();l&&n.push({type:"text",content:l})}return{segments:n}}function l8(e){const{segments:t}=a8(e);return t.length===0?{segments:[]}:{segments:t}}const{Text:e1}=Bo;function s8({file_path:e,old_string:t,new_string:n}){const[r,o]=c.useState(!1),l=t.split(`
|
|
397
|
-
`),s=n.split(`
|
|
398
|
-
`),u=[];return l.forEach(f=>{u.push({type:"del",text:f})}),s.forEach(f=>{u.push({type:"add",text:f})}),q.jsxs("div",{className:"diff-view",style:{margin:"6px 0"},children:[q.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[q.jsxs(e1,{style:{color:"#a78bfa",fontSize:12,fontWeight:600},children:["Edit: ",e]}),q.jsx(e1,{style:{color:"#6b7280",fontSize:11,cursor:"pointer",userSelect:"none"},onClick:()=>o(f=>!f),children:r?"▶ 展开":"▼ 收起"})]}),!r&&q.jsx("pre",{style:{margin:0,fontSize:12,lineHeight:1.5,overflow:"auto"},children:u.map((f,m)=>q.jsxs("div",{className:f.type==="del"?"diff-line-del":"diff-line-add",children:[f.type==="del"?"- ":"+ ",f.text]},m))})]})}const{Text:sp}=Bo,Ua={js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",css:"css",scss:"css",less:"css",html:"html",htm:"html",xml:"xml",svg:"xml",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",sh:"shell",bash:"shell",zsh:"shell",md:"markdown",sql:"sql"},c8=["Read","Grep","Glob","Bash","Write","Edit"];function u8(e,t,n){if(!t)return null;const r=t.file_path||"";if(r){const o=r.split(".").pop().toLowerCase();if(Ua[o])return Ua[o]}if(e==="Bash")return"shell-output";if(e==="Glob")return"file-list";if(e==="Grep"){const o=t.glob||"";if(o){const l=o.replace(/[{}*]/g,",").split(",").filter(Boolean);for(const s of l){const u=s.replace(/^\./,"").toLowerCase();if(Ua[u])return Ua[u]}}if(t.output_mode==="files_with_matches"||!t.output_mode)return"file-list";if(t.output_mode==="content"&&n){const l=n.match(/^[\w/.~-]+\.([\w]+):\d+/m);if(l&&Ua[l[1].toLowerCase()])return Ua[l[1].toLowerCase()]}return"shell-output"}return n?d8(n):null}function d8(e){const t=e.substring(0,2e3);return/^\s*[\[{]/.test(t)&&/[}\]]\s*$/.test(t.trimEnd())?"json":/^\s*<!DOCTYPE|^\s*<html|^\s*<\?xml/i.test(t)?"html":/^#!.*python/m.test(t)||/\bdef\s+\w+\s*\(.*\)\s*:/m.test(t)||/\bclass\s+\w+.*:/m.test(t)||/^\s*(from\s+\w+\s+import|import\s+\w+)/m.test(t)&&/:$/.test(t)?"python":/\bfn\s+\w+\s*\(/.test(t)&&/\blet\s+(mut\s+)?\w+/.test(t)?"rust":/^package\s+\w+/m.test(t)&&/\bfunc\s+/.test(t)?"go":/\bpublic\s+(class|interface|static)\b/.test(t)?"java":/\bdef\s+\w+/.test(t)&&/\bend\b/.test(t)&&!/;/.test(t)?"ruby":/^#!.*\b(bash|sh|zsh)\b/m.test(t)?"shell":/\b(const|let|var)\s+\w+\s*=/.test(t)&&(/=>/.test(t)||/\brequire\s*\(/.test(t))||/^\s*import\s+.*\s+from\s+['"]/.test(t)||/^\s*export\s+(default\s+)?(function|class|const)\b/m.test(t)?"javascript":/[.#][\w-]+\s*\{[\s\S]*?:\s*[\w#]/.test(t)?"css":/^[\w-]+\s*:(\s+\S|$)/m.test(t)&&!/[{;]/.test(t)?"yaml":/\b(SELECT|INSERT|UPDATE|DELETE|CREATE\s+TABLE)\b/i.test(t)?"sql":null}const f8={javascript:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(const|let|var|function|return|if|else|for|while|class|import|export|from|default|new|this|async|await|try|catch|throw|switch|case|break|continue|typeof|instanceof|in|of|null|undefined|true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],typescript:null,python:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('''[\s\S]*?'''|"""[\s\S]*?"""|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(def|class|return|if|elif|else|for|while|import|from|as|try|except|finally|raise|with|yield|lambda|pass|break|continue|and|or|not|in|is|None|True|False|self|async|await)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],go:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`[^`]*`)/g,cls:"hl-string"},{pattern:/\b(func|return|if|else|for|range|switch|case|default|break|continue|go|defer|select|chan|map|struct|interface|package|import|var|const|type|nil|true|false|make|new|append|len|cap)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],rust:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(fn|let|mut|return|if|else|for|while|loop|match|struct|enum|impl|trait|pub|use|mod|crate|self|super|where|async|await|move|ref|true|false|Some|None|Ok|Err)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],java:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(public|private|protected|class|interface|extends|implements|return|if|else|for|while|switch|case|break|continue|new|this|super|static|final|void|int|long|double|float|boolean|char|String|import|package|try|catch|throw|throws|null|true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*[fFdDlL]?)\b/g,cls:"hl-number"}],ruby:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(def|end|class|module|return|if|elsif|else|unless|for|while|do|begin|rescue|ensure|raise|yield|block_given\?|nil|true|false|self|require|include|attr_accessor|attr_reader)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],css:[{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/([.#][\w-]+)/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*(px|em|rem|%|vh|vw|s|ms)?)\b/g,cls:"hl-number"}],json:[{pattern:/("(?:[^"\\]|\\.)*")\s*:/g,cls:"hl-keyword"},{pattern:/:\s*("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(true|false|null)\b/g,cls:"hl-keyword"},{pattern:/\b(-?\d+\.?\d*([eE][+-]?\d+)?)\b/g,cls:"hl-number"}],shell:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(if|then|else|elif|fi|for|while|do|done|case|esac|function|return|exit|export|source|alias|cd|ls|grep|find|echo|cat|mkdir|rm|cp|mv|chmod|sudo|apt|npm|pip|git)\b/g,cls:"hl-keyword"}],sql:[{pattern:/(--.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/\b(SELECT|FROM|WHERE|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER|TABLE|INDEX|JOIN|LEFT|RIGHT|INNER|OUTER|ON|AND|OR|NOT|IN|IS|NULL|AS|ORDER|BY|GROUP|HAVING|LIMIT|OFFSET|UNION|SET|VALUES|INTO|DISTINCT|COUNT|SUM|AVG|MAX|MIN|LIKE|BETWEEN|EXISTS|CASE|WHEN|THEN|ELSE|END)\b/gi,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],html:[{pattern:/(<!--[\s\S]*?-->)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/(<\/?[\w-]+|\/?>)/g,cls:"hl-keyword"}],xml:null,yaml:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/^([\w.-]+)\s*:/gm,cls:"hl-keyword"},{pattern:/\b(true|false|null|yes|no)\b/gi,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],markdown:[{pattern:/^(#{1,6}\s.*$)/gm,cls:"hl-keyword"},{pattern:/(`[^`]+`)/g,cls:"hl-string"},{pattern:/(\*\*[^*]+\*\*|__[^_]+__)/g,cls:"hl-keyword"},{pattern:/(\[[^\]]+\]\([^)]+\))/g,cls:"hl-string"}],toml:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/^([\w.-]+)\s*=/gm,cls:"hl-keyword"},{pattern:/(\[[\w.-]+\])/g,cls:"hl-keyword"},{pattern:/\b(true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}]},m8=[{pattern:/(\/\/.*$|#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],p8=[{pattern:/^([\w/.~-]+:\d+[:-])/gm,cls:"hl-keyword"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],g8=[{pattern:/^(.*\.(jsx?|tsx?|mjs|cjs))$/gm,cls:"hl-string"},{pattern:/^(.*\.(py|rb|go|rs|java|c|cpp|h))$/gm,cls:"hl-keyword"},{pattern:/^(.*\.(json|ya?ml|toml|xml|html?|css|scss|less|md))$/gm,cls:"hl-number"},{pattern:/^(.*\.(log|txt|csv|jsonl))$/gm,cls:"hl-comment"}];function t1(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function v8(e,t){let n=t;n==="typescript"&&(n="javascript"),n==="xml"&&(n="html"),(n==="c"||n==="cpp")&&(n="javascript");let r;n==="shell-output"?r=p8:n==="file-list"?r=g8:r=f8[n]||m8;const o=/^(\s*\d+→)/gm,l=[];let s=e.replace(o,p=>{const g=l.length;return l.push(p),`L${g}`});const u=t1(s),f=[];let m=u;for(const p of r)p.pattern.lastIndex=0,m=m.replace(p.pattern,g=>{const h=f.length;return f.push(`<span class="${p.cls}">${g}</span>`),`P${h}`});return m=m.replace(/\x02P(\d+)\x02/g,(p,g)=>f[parseInt(g)]),m=m.replace(/\x01L(\d+)\x01/g,(p,g)=>`<span class="hl-linenum">${t1(l[parseInt(g)])}</span>`),m}function n1({toolName:e,toolInput:t,resultText:n}){const[r,o]=c.useState(!1),l=c8.includes(e),s=l?u8(e,t,n):null,u=n.length>5e3?n.substring(0,5e3)+`
|
|
399
|
-
... (truncated)`:n;let f=e?`${e} 返回`:"Result";if(t){const p=t.file_path||t.path||"";if(p){const g=p.split("/");f=`${e}: ${g[g.length-1]}`}}if(!l)return q.jsxs("div",{style:{background:"#111",borderRadius:6,padding:"8px 12px",fontSize:12},children:[q.jsx(sp,{type:"secondary",style:{fontSize:11,display:"block",marginBottom:4},children:f}),q.jsx("pre",{style:{color:"#d1d5db",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-all",fontSize:12},children:u})]});const m=v8(u,s||"fallback");return q.jsxs("div",{className:"tool-result-code",style:{background:"#0d1117",borderRadius:6,border:"1px solid #1e2a3a",overflow:"hidden"},children:[q.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 10px",background:"#161b22",borderBottom:"1px solid #1e2a3a"},children:[q.jsxs(sp,{style:{fontSize:11,color:"#8b949e"},children:[f,s?` (${s})`:""]}),q.jsx(sp,{style:{fontSize:11,color:"#484f58",cursor:"pointer",userSelect:"none"},onClick:()=>o(p=>!p),children:r?"▶ 展开":"▼ 收起"})]}),!r&&q.jsx("pre",{className:"code-highlight",style:{margin:0,padding:"8px 12px",fontSize:12,lineHeight:1.5,overflow:"auto",maxHeight:500},dangerouslySetInnerHTML:{__html:m}})]})}const{Text:Ga}=Bo,au={width:32,height:32,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},lu={borderRadius:12,padding:"10px 14px",maxWidth:"100%",fontSize:14,lineHeight:1.6,wordBreak:"break-word"};class qa extends Y.Component{formatTime(t){if(!t)return null;try{const n=new Date(t),r=o=>String(o).padStart(2,"0");return`${r(n.getMonth()+1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}:${r(n.getSeconds())}`}catch{return null}}renderLabel(t,n){const{timestamp:r}=this.props,o=this.formatTime(r);return q.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:2},children:[q.jsxs(Ga,{type:"secondary",style:{fontSize:11},children:[t,n||""]}),o&&q.jsx(Ga,{style:{fontSize:10,color:"#6b7280",flexShrink:0,marginLeft:8},children:o})]})}renderSegments(t){return t.map((n,r)=>n.type==="system-tag"?q.jsx(ta,{ghost:!0,size:"small",items:[{key:"1",label:q.jsx(Ga,{type:"secondary",style:{fontSize:12},children:n.tag}),children:q.jsx("pre",{style:{fontSize:12,color:"#9ca3af",whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:n.content})}],style:{margin:"4px 0"}},r):q.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:r8(n.content)}},r))}renderToolCall(t){if(typeof t.input=="string")try{const m=t.input.replace(/^\[object Object\]/,"");t={...t,input:JSON.parse(m)}}catch{}if(t.name==="Edit"&&t.input&&t.input.old_string!=null&&t.input.new_string!=null)return q.jsx(s8,{file_path:t.input.file_path||"",old_string:t.input.old_string,new_string:t.input.new_string},t.id);const n=t.input&&typeof t.input=="object"?t.input:{},r=(m,p)=>q.jsxs("div",{style:{background:"#1a1a2e",border:"1px solid #2a2a3e",borderRadius:8,padding:"8px 12px",margin:"6px 0",fontSize:12},children:[q.jsx(Ga,{strong:!0,style:{color:"#a78bfa"},children:m}),p]},t.id),o=(m,p)=>q.jsx("pre",{style:{color:p,fontSize:12,margin:"4px 0 0",whiteSpace:"pre-wrap",wordBreak:"break-all",background:"#0d1117",borderRadius:4,padding:"6px 8px"},children:m}),l=m=>q.jsx("span",{style:{color:"#7dd3fc",fontSize:11},children:m});if(t.name==="Bash"){const m=n.command||"",p=n.description||"";return r(q.jsxs(q.Fragment,{children:["Bash",p?q.jsxs("span",{style:{color:"#6b7280",fontWeight:400},children:[" — ",p]}):""]}),o(m,"#c9d1d9"))}if(t.name==="Read"){const m=n.file_path||"",p=[];n.offset&&p.push(`offset: ${n.offset}`),n.limit&&p.push(`limit: ${n.limit}`);const g=p.length?` (${p.join(", ")})`:"";return r(q.jsxs(q.Fragment,{children:["Read: ",l(m),q.jsx("span",{style:{color:"#6b7280"},children:g})]}),null)}if(t.name==="Write"){const m=n.file_path||"",p=n.content||"",g=p.split(`
|
|
400
|
-
`),h=g.length>20?g.slice(0,20).join(`
|
|
401
|
-
`)+`
|
|
402
|
-
... (${g.length} lines total)`:p;return r(q.jsxs(q.Fragment,{children:["Write: ",l(m)," ",q.jsxs("span",{style:{color:"#6b7280"},children:["(",g.length," lines)"]})]}),o(h,"#c9d1d9"))}if(t.name==="Glob"){const m=n.pattern||"",p=n.path||"";return r(q.jsxs(q.Fragment,{children:["Glob: ",q.jsx("span",{style:{color:"#fbbf24"},children:m}),p?q.jsxs("span",{style:{color:"#6b7280"},children:[" in ",p]}):""]}),null)}if(t.name==="Grep"){const m=n.pattern||"",p=n.path||"",g=[];n.glob&&g.push(`glob: ${n.glob}`),n.output_mode&&g.push(`mode: ${n.output_mode}`),n.head_limit&&g.push(`limit: ${n.head_limit}`);const h=g.length?` (${g.join(", ")})`:"";return r(q.jsxs(q.Fragment,{children:["Grep: ",q.jsxs("span",{style:{color:"#fbbf24"},children:["/",m,"/"]}),p?q.jsxs("span",{style:{color:"#6b7280"},children:[" in ",p]}):"",q.jsx("span",{style:{color:"#6b7280"},children:h})]}),null)}if(t.name==="Task"){const m=n.subagent_type||"",p=n.description||"";return r(q.jsxs(q.Fragment,{children:["Task(",m,p?": "+p:"",")"]}),null)}let s=t.name;const u=Object.keys(n);if(u.length===0)return r(s,null);const f=u.map(m=>{const p=n[m],g=typeof p=="string"?p:JSON.stringify(p),h=g.length>200?g.substring(0,200)+"...":g;return q.jsxs("div",{style:{margin:"2px 0"},children:[q.jsxs("span",{style:{color:"#7dd3fc"},children:[m,": "]}),q.jsx("span",{style:{color:"#9ca3af"},children:h})]},m)});return r(s,q.jsx("div",{style:{marginTop:4,fontSize:11},children:f}))}renderUserMessage(){const{text:t}=this.props;return q.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[q.jsx("div",{style:{...au,background:"#1e40af"},dangerouslySetInnerHTML:{__html:nu("user")}}),q.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel("User"),q.jsx("div",{style:{...lu,background:"#1e3a5f",color:"#e5e7eb"},children:UB(t)})]})]})}renderToolResult(t){return t?q.jsxs("div",{style:{background:"#111827",border:"1px solid #1e293b",borderRadius:6,padding:"6px 10px",margin:"2px 0 6px",fontSize:11},children:[q.jsx(Ga,{type:"secondary",style:{fontSize:11},children:t.label}),q.jsx(n1,{toolName:t.toolName,toolInput:t.toolInput,resultText:t.resultText})]}):null}renderAssistantMessage(){const{content:t,toolResultMap:n={}}=this.props,r=t.filter(u=>u.type==="thinking"),o=t.filter(u=>u.type==="text"),l=t.filter(u=>u.type==="tool_use");let s=[];return r.forEach((u,f)=>{s.push(q.jsx(ta,{ghost:!0,size:"small",items:[{key:"1",label:q.jsx(Ga,{type:"secondary",style:{fontSize:12},children:"思考过程"}),children:q.jsx("pre",{style:{fontSize:12,color:"#9ca3af",whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:u.thinking||""})}],style:{margin:"4px 0"}},`think-${f}`))}),o.forEach((u,f)=>{if(u.text){const{segments:m}=l8(u.text);s.push(q.jsx("div",{children:this.renderSegments(m)},`text-${f}`))}}),l.forEach(u=>{s.push(this.renderToolCall(u));const f=n[u.id];f&&s.push(q.jsx(Y.Fragment,{children:this.renderToolResult(f)},`tr-${u.id}`))}),s.length===0?null:q.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[q.jsx("div",{style:{...au,background:"#065f46"},dangerouslySetInnerHTML:{__html:nu("agent")}}),q.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel("MainAgent"),q.jsx("div",{style:{...lu,background:"#1a2332",color:"#e5e7eb"},children:s})]})]})}renderSubAgentMessage(){const{label:t,resultText:n,toolName:r,toolInput:o}=this.props;return q.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[q.jsx("div",{style:{...au,background:"#4a1d96"},dangerouslySetInnerHTML:{__html:nu("sub")}}),q.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel(t),q.jsx("div",{style:{...lu,background:"#1a1a2e",color:"#e5e7eb"},children:q.jsx(n1,{toolName:r,toolInput:o,resultText:n})})]})]})}renderUserSelectionMessage(){const{questions:t,answers:n}=this.props;return q.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0",justifyContent:"flex-end"},children:[q.jsxs("div",{style:{minWidth:0,maxWidth:"85%"},children:[this.renderLabel("User"," — 选择"),q.jsx("div",{style:{...lu,background:"#1a3a1a",color:"#e5e7eb"},children:t&&t.map((r,o)=>{const l=(n==null?void 0:n[r.question])||"未选择";return q.jsxs("div",{style:{marginBottom:o<t.length-1?10:0},children:[q.jsx("div",{style:{fontSize:13,color:"#ccc",marginBottom:4},children:r.question}),q.jsx("div",{style:{paddingLeft:8},children:r.options&&r.options.map((s,u)=>{const f=l===s.label;return q.jsxs("div",{style:{fontSize:12,padding:"1px 0",color:f?"#e5e5e5":"#666",fontWeight:f?600:"normal"},children:[f?"● ":"○ ",s.label,s.description&&q.jsxs("span",{style:{color:"#555",marginLeft:6,fontWeight:"normal"},children:["— ",s.description]})]},u)})})]},o)})})]}),q.jsx("div",{style:{...au,background:"#2ea043"},dangerouslySetInnerHTML:{__html:nu("user")}})]})}render(){const{role:t}=this.props;return t==="user"?this.renderUserMessage():t==="user-selection"?this.renderUserSelectionMessage():t==="assistant"?this.renderAssistantMessage():t==="sub-agent"?this.renderSubAgentMessage():null}}const{Text:r1}=Bo;class h8 extends Y.Component{constructor(t){super(t),this.containerRef=Y.createRef()}componentDidMount(){this.scrollToBottom()}componentDidUpdate(){this.scrollToBottom()}scrollToBottom(){const t=this.containerRef.current;t&&(t.scrollTop=t.scrollHeight)}renderSessionMessages(t,n,r){var u;const o={};for(const f of t)if(f.role==="assistant"&&Array.isArray(f.content))for(const m of f.content)m.type==="tool_use"&&(o[m.id]=m);const l={};for(const f of t)if(f.role==="user"&&Array.isArray(f.content)){for(const m of f.content)if(m.type==="tool_result"){const p=o[m.tool_use_id];let g="工具返回",h=null,y=null;if(p)if(h=p.name,y=p.input,p.name==="Task"&&p.input){const x=p.input.subagent_type||"",S=p.input.description||"";g=`SubAgent: ${x}${S?" — "+S:""}`}else g=p.name+" 返回";l[m.tool_use_id]={label:g,toolName:h,toolInput:y,resultText:qS(m)}}}const s=[];for(let f=0;f<t.length;f++){const m=t[f],p=m.content,g=r&&r[f]?r[f]:null;if(m.role==="user")if(Array.isArray(p)){const h=p.find(x=>x.type==="text"&&/^\[SUGGESTION MODE:/i.test((x.text||"").trim())),y=p.filter(x=>x.type==="tool_result");if(h&&y.length>0){let x=null,S={};for(const b of y){const $=o[b.tool_use_id];if($&&$.name==="AskUserQuestion"&&((u=$.input)!=null&&u.questions)){x=$.input.questions;const w=qS(b);try{S=JSON.parse(w).answers||{}}catch{}break}}x&&s.push(q.jsx(qa,{role:"user-selection",questions:x,answers:S,timestamp:g},`${n}-selection-${f}`))}else{const x=p.filter(S=>S.type==="text"&&!Vu(S.text));for(let S=0;S<x.length;S++)s.push(q.jsx(qa,{role:"user",text:x[S].text,timestamp:g},`${n}-user-${f}-${S}`))}}else typeof p=="string"&&!Vu(p)&&s.push(q.jsx(qa,{role:"user",text:p,timestamp:g},`${n}-user-${f}`));else m.role==="assistant"&&(Array.isArray(p)?s.push(q.jsx(qa,{role:"assistant",content:p,toolResultMap:l,timestamp:g},`${n}-asst-${f}`)):typeof p=="string"&&s.push(q.jsx(qa,{role:"assistant",content:[{type:"text",text:p}],toolResultMap:l,timestamp:g},`${n}-asst-${f}`)))}return s}render(){const{mainAgentSessions:t}=this.props;if(!t||t.length===0)return q.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:q.jsx(bo,{description:"暂无 mainAgent 对话数据"})});const n=[];return t.forEach((r,o)=>{var l,s;if(o>0&&n.push(q.jsx(IS,{style:{borderColor:"#333",margin:"16px 0"},children:q.jsx(r1,{style:{fontSize:11,color:"#555"},children:"此处基模出现userId切换会让上下文出现部分丢失"})},`session-div-${o}`)),n.push(...this.renderSessionMessages(r.messages,`s${o}`,r.msgTimestamps)),o===t.length-1&&((s=(l=r.response)==null?void 0:l.body)!=null&&s.content)){const u=r.response.body.content;Array.isArray(u)&&(n.push(q.jsx(Y.Fragment,{children:q.jsx(IS,{style:{borderColor:"#2a2a2a",margin:"8px 0"},children:q.jsx(r1,{type:"secondary",style:{fontSize:11},children:"Last Response"})})},"resp-divider")),n.push(q.jsx(qa,{role:"assistant",content:u},"resp-asst")))}}),q.jsx("div",{ref:this.containerRef,style:{height:"100%",overflow:"auto",padding:"16px 24px",display:"flex",flexDirection:"column"},children:n})}}class y8 extends Y.Component{constructor(t){super(t),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this)}handleMouseDown(t){t.preventDefault(),document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}handleMouseMove(t){this.props.onResize&&this.props.onResize(t.clientX)}handleMouseUp(){document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}render(){return q.jsx("div",{onMouseDown:this.handleMouseDown,style:{width:6,cursor:"col-resize",background:"#1f1f1f",flexShrink:0,transition:"background 0.2s"},onMouseEnter:t=>{t.currentTarget.style.background="#3b82f6"},onMouseLeave:t=>{t.currentTarget.style.background="#1f1f1f"}})}}const b8=`
|
|
403
|
-
.chat-md pre {
|
|
404
|
-
background: #0d1117;
|
|
405
|
-
border: 1px solid #2a2a2a;
|
|
406
|
-
border-radius: 6px;
|
|
407
|
-
padding: 12px;
|
|
408
|
-
overflow-x: auto;
|
|
409
|
-
font-size: 13px;
|
|
410
|
-
line-height: 1.5;
|
|
411
|
-
}
|
|
412
|
-
.chat-md code {
|
|
413
|
-
background: #1a1a2e;
|
|
414
|
-
padding: 2px 6px;
|
|
415
|
-
border-radius: 4px;
|
|
416
|
-
font-size: 13px;
|
|
417
|
-
color: #e5e7eb;
|
|
418
|
-
}
|
|
419
|
-
.chat-md pre code {
|
|
420
|
-
background: none;
|
|
421
|
-
padding: 0;
|
|
422
|
-
}
|
|
423
|
-
.chat-md p { margin: 6px 0; }
|
|
424
|
-
.chat-md ul, .chat-md ol { padding-left: 20px; margin: 6px 0; }
|
|
425
|
-
.chat-md li { margin: 2px 0; }
|
|
426
|
-
.chat-md h1, .chat-md h2, .chat-md h3 { margin: 12px 0 6px 0; color: #fff; }
|
|
427
|
-
.chat-md h1 { font-size: 1.3em; }
|
|
428
|
-
.chat-md h2 { font-size: 1.15em; }
|
|
429
|
-
.chat-md h3 { font-size: 1.05em; }
|
|
430
|
-
.chat-md blockquote {
|
|
431
|
-
border-left: 3px solid #3b82f6;
|
|
432
|
-
margin: 8px 0;
|
|
433
|
-
padding: 4px 12px;
|
|
434
|
-
color: #9ca3af;
|
|
435
|
-
}
|
|
436
|
-
.chat-md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
|
|
437
|
-
.chat-md th, .chat-md td { border: 1px solid #2a2a2a; padding: 6px 10px; }
|
|
438
|
-
.chat-md th { background: #1a1a1a; color: #fff; }
|
|
439
|
-
.chat-md a { color: #60a5fa; }
|
|
440
|
-
.chat-md hr { border: none; border-top: 1px solid #2a2a2a; margin: 12px 0; }
|
|
441
|
-
.chat-md strong { color: #f1f5f9; }
|
|
442
|
-
.chat-md em { color: #cbd5e1; }
|
|
443
|
-
`;class S8 extends Y.Component{constructor(n){super(n);Kt(this,"handleSelectRequest",n=>{this.setState({selectedIndex:n})});Kt(this,"handleToggleViewMode",()=>{this.setState(n=>({viewMode:n.viewMode==="raw"?"chat":"raw"}))});Kt(this,"handleTabChange",n=>{this.setState({currentTab:n})});Kt(this,"handleResize",n=>{const r=this.mainContainerRef.current;if(!r)return;const o=r.getBoundingClientRect(),l=n-o.left;l>=250&&l<=800&&this.setState({leftPanelWidth:l})});Kt(this,"handleImportLocalLogs",()=>{this.setState({importModalVisible:!0,localLogsLoading:!0}),fetch("/api/local-logs").then(n=>n.json()).then(n=>{this.setState({localLogs:n,localLogsLoading:!1})}).catch(()=>{this.setState({localLogs:{},localLogsLoading:!1})})});Kt(this,"handleCloseImportModal",()=>{this.setState({importModalVisible:!1})});Kt(this,"handleOpenLogFile",n=>{const r=window.location.port||window.location.host.split(":")[1]||"7008";window.open(`${window.location.protocol}//${window.location.hostname}:${r}?logfile=${encodeURIComponent(n)}`,"_blank"),this.setState({importModalVisible:!1})});this.state={requests:[],selectedIndex:null,viewMode:"raw",currentTab:"request",cacheExpireAt:null,cacheType:null,leftPanelWidth:380,mainAgentSessions:[],importModalVisible:!1,localLogs:{},localLogsLoading:!1,showAll:!1},this.eventSource=null,this._autoSelectTimer=null,this.mainContainerRef=Y.createRef()}componentDidMount(){fetch("/api/show-all").then(o=>o.json()).then(o=>this.setState({showAll:!!o.showAll})).catch(()=>{});const r=new URLSearchParams(window.location.search).get("logfile");r?this.loadLocalLogFile(r):this.initSSE()}componentWillUnmount(){this.eventSource&&this.eventSource.close(),this._autoSelectTimer&&clearTimeout(this._autoSelectTimer)}initSSE(){try{this.eventSource=new EventSource("/events"),this.eventSource.onmessage=n=>this.handleEventMessage(n),this.eventSource.onerror=()=>console.error("SSE连接错误")}catch(n){console.error("EventSource初始化失败:",n)}}loadLocalLogFile(n){this._isLocalLog=!0,this._localLogFile=n,fetch(`/api/local-log?file=${encodeURIComponent(n)}`).then(r=>r.json()).then(r=>{if(Array.isArray(r)){let o=[];for(const s of r)s.mainAgent&&s.body&&Array.isArray(s.body.messages)&&(o=this.mergeMainAgentSessions(o,s));const l=r.filter(s=>!s.isHeartbeat&&!/\/api\/eval\/sdk-/.test(s.url||"")&&!/\/messages\/count_tokens/.test(s.url||""));this.setState({requests:r,selectedIndex:l.length>0?l.length-1:null,mainAgentSessions:o})}}).catch(r=>console.error("加载日志文件失败:",r))}handleEventMessage(n){try{const r=JSON.parse(n.data);this.setState(o=>{var g,h;const l=[...o.requests],s=l.findIndex(y=>y.timestamp===r.timestamp&&y.url===r.url);s>=0?l[s]=r:l.push(r);let u=o.cacheExpireAt,f=o.cacheType;if(r.mainAgent){const y=(h=(g=r.response)==null?void 0:g.body)==null?void 0:h.usage;if(y!=null&&y.cache_creation){const x=y.cache_creation;x.ephemeral_1h_input_tokens>0?(u=Date.now()+3600*1e3,f="1h"):x.ephemeral_5m_input_tokens>0&&(u=Date.now()+300*1e3,f="5m")}}let m=o.mainAgentSessions;return r.mainAgent&&r.body&&Array.isArray(r.body.messages)&&(m=this.mergeMainAgentSessions(o.mainAgentSessions,r)),o.selectedIndex===null&&l.length>0&&(this._autoSelectTimer&&clearTimeout(this._autoSelectTimer),this._autoSelectTimer=setTimeout(()=>{this.setState(y=>{if(y.selectedIndex===null&&y.requests.length>0){const x=y.showAll?y.requests:y.requests.filter(S=>!S.isHeartbeat&&!/\/api\/eval\/sdk-/.test(S.url||"")&&!/\/messages\/count_tokens/.test(S.url||""));return x.length>0?{selectedIndex:x.length-1}:null}return null})},200)),{requests:l,cacheExpireAt:u,cacheType:f,mainAgentSessions:m}})}catch(r){console.error("处理事件消息失败:",r)}}mergeMainAgentSessions(n,r){var g;const o=r.body.messages,l=r.response,s=((g=r.body.metadata)==null?void 0:g.user_id)||null,u=r.timestamp||new Date().toISOString();if(n.length===0){const h=o.map(()=>u);return[{userId:s,messages:o,response:l,msgTimestamps:h}]}const f=n[n.length-1],m=f.messages?f.messages.length:0,p=m>0&&o.length<m*.5&&m-o.length>4;if(s&&s===f.userId&&!p){const h=f.msgTimestamps||[],y=f.messages||[],x=o.map((b,$)=>{if($>=h.length)return u;const w=y[$];if(w&&b.role==="user"&&w.role==="user"){const O=JSON.stringify(w.content),I=JSON.stringify(b.content);if(O!==I)return u}return h[$]}),S=[...n];return S[S.length-1]={userId:s,messages:o,response:l,msgTimestamps:x},S}else{const h=o.map(()=>u);return[...n,{userId:s,messages:o,response:l,msgTimestamps:h}]}}formatTimestamp(n){return!n||n.length<15?n:`${n.slice(0,4)}-${n.slice(4,6)}-${n.slice(6,8)} ${n.slice(9,11)}:${n.slice(11,13)}:${n.slice(13,15)}`}formatSize(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/(1024*1024)).toFixed(1)+" MB"}render(){const{requests:n,selectedIndex:r,viewMode:o,currentTab:l,cacheExpireAt:s,cacheType:u,leftPanelWidth:f,mainAgentSessions:m,showAll:p}=this.state,g=p?n:n.filter(y=>!y.isHeartbeat&&!/\/api\/eval\/sdk-/.test(y.url||"")&&!/\/messages\/count_tokens/.test(y.url||"")),h=r!==null?g[r]:null;return q.jsxs(Lo,{theme:{algorithm:z5.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:[q.jsx("style",{children:b8}),q.jsxs(Ii,{style:{height:"100vh",overflow:"hidden"},children:[q.jsx(Ii.Header,{style:{background:"#111",borderBottom:"1px solid #1f1f1f",padding:"0 24px",height:60,lineHeight:"60px"},children:q.jsx(us,{requestCount:g.length,requests:g,viewMode:o,cacheExpireAt:s,cacheType:u,onToggleViewMode:this.handleToggleViewMode,onImportLocalLogs:this.handleImportLocalLogs,isLocalLog:!!this._isLocalLog,localLogFile:this._localLogFile})}),q.jsx(Ii.Content,{style:{flex:1,overflow:"hidden"},children:o==="raw"?q.jsxs("div",{ref:this.mainContainerRef,style:{display:"flex",height:"100%"},children:[q.jsxs("div",{style:{width:f,flexShrink:0,borderRight:"1px solid #1f1f1f",display:"flex",flexDirection:"column",background:"#0a0a0a"},children:[q.jsxs("div",{style:{padding:"10px 16px",borderBottom:"1px solid #1f1f1f",fontSize:13,color:"#9ca3af",fontWeight:500,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[q.jsx("span",{children:"请求列表"}),q.jsxs("span",{style:{fontSize:12,color:"#555",fontWeight:400},children:["总请求数: ",g.length]})]}),q.jsx("div",{style:{flex:1,overflow:"hidden"},children:q.jsx(QB,{requests:g,selectedIndex:r,onSelect:this.handleSelectRequest})})]}),q.jsx(y8,{onResize:this.handleResize}),q.jsx("div",{style:{flex:1,overflow:"hidden",background:"#0d0d0d"},children:q.jsx(mA,{request:h,currentTab:l,onTabChange:this.handleTabChange})})]}):q.jsx(h8,{requests:g,mainAgentSessions:m})})]}),q.jsx(ao,{title:"导入本地日志",open:this.state.importModalVisible,onCancel:this.handleCloseImportModal,footer:null,width:600,styles:{body:{maxHeight:"60vh",overflow:"auto"}},children:this.state.localLogsLoading?q.jsx("div",{style:{textAlign:"center",padding:40},children:q.jsx(gv,{})}):Object.keys(this.state.localLogs).length===0?q.jsx("div",{style:{textAlign:"center",color:"#999",padding:40},children:"暂无日志文件"}):q.jsx(ta,{defaultActiveKey:Object.keys(this.state.localLogs),items:Object.entries(this.state.localLogs).map(([y,x])=>({key:y,label:q.jsxs("span",{children:[q.jsx(C5,{style:{marginRight:8}}),y,q.jsxs(Mo,{style:{marginLeft:8},children:[x.length," 个日志"]})]}),children:q.jsx(Es,{size:"small",dataSource:x,renderItem:S=>q.jsx(Es.Item,{style:{cursor:"pointer",padding:"8px 12px"},onClick:()=>this.handleOpenLogFile(S.file),children:q.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"},children:[q.jsxs("span",{children:[q.jsx(mv,{style:{marginRight:8,color:"#3b82f6"}}),this.formatTimestamp(S.timestamp)]}),q.jsx(Mo,{color:"blue",children:this.formatSize(S.size)})]})})})}))})})]})}}const x8=i2.createRoot(document.getElementById("root"));x8.render(q.jsx(S8,{}));
|