cc-viewer 1.0.13 → 1.0.15

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.
@@ -1,513 +0,0 @@
1
- var NE=Object.defineProperty;var kE=(e,t,n)=>t in e?NE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Dt=(e,t,n)=>kE(e,typeof t!="symbol"?t+"":t,n);function BC(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 Gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tm={exports:{}},cs={},Nm={exports:{}},Kt={};/**
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 py;function ME(){if(py)return Kt;py=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"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function b(z,F,Q){this.props=z,this.context=F,this.refs=S,this.updater=Q||y}b.prototype.isReactComponent={},b.prototype.setState=function(z,F){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,F,"setState")},b.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function $(){}$.prototype=b.prototype;function w(z,F,Q){this.props=z,this.context=F,this.refs=S,this.updater=Q||y}var O=w.prototype=new $;O.constructor=w,C(O,b.prototype),O.isPureReactComponent=!0;var R=Array.isArray,_=Object.prototype.hasOwnProperty,I={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function N(z,F,Q){var ne,te={},re=null,fe=null;if(F!=null)for(ne in F.ref!==void 0&&(fe=F.ref),F.key!==void 0&&(re=""+F.key),F)_.call(F,ne)&&!P.hasOwnProperty(ne)&&(te[ne]=F[ne]);var me=arguments.length-2;if(me===1)te.children=Q;else if(1<me){for(var ue=Array(me),Ce=0;Ce<me;Ce++)ue[Ce]=arguments[Ce+2];te.children=ue}if(z&&z.defaultProps)for(ne in me=z.defaultProps,me)te[ne]===void 0&&(te[ne]=me[ne]);return{$$typeof:e,type:z,key:re,ref:fe,props:te,_owner:I.current}}function T(z,F){return{$$typeof:e,type:z.type,key:F,ref:z.ref,props:z.props,_owner:z._owner}}function k(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function L(z){var F={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(Q){return F[Q]})}var j=/\/+/g;function D(z,F){return typeof z=="object"&&z!==null&&z.key!=null?L(""+z.key):F.toString(36)}function A(z,F,Q,ne,te){var re=typeof z;(re==="undefined"||re==="boolean")&&(z=null);var fe=!1;if(z===null)fe=!0;else switch(re){case"string":case"number":fe=!0;break;case"object":switch(z.$$typeof){case e:case t:fe=!0}}if(fe)return fe=z,te=te(fe),z=ne===""?"."+D(fe,0):ne,R(te)?(Q="",z!=null&&(Q=z.replace(j,"$&/")+"/"),A(te,F,Q,"",function(Ce){return Ce})):te!=null&&(k(te)&&(te=T(te,Q+(!te.key||fe&&fe.key===te.key?"":(""+te.key).replace(j,"$&/")+"/")+z)),F.push(te)),1;if(fe=0,ne=ne===""?".":ne+":",R(z))for(var me=0;me<z.length;me++){re=z[me];var ue=ne+D(re,me);fe+=A(re,F,Q,ue,te)}else if(ue=v(z),typeof ue=="function")for(z=ue.call(z),me=0;!(re=z.next()).done;)re=re.value,ue=ne+D(re,me++),fe+=A(re,F,Q,ue,te);else if(re==="object")throw F=String(z),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return fe}function q(z,F,Q){if(z==null)return z;var ne=[],te=0;return A(z,ne,"","",function(re){return F.call(Q,re,te++)}),ne}function W(z){if(z._status===-1){var F=z._result;F=F(),F.then(function(Q){(z._status===0||z._status===-1)&&(z._status=1,z._result=Q)},function(Q){(z._status===0||z._status===-1)&&(z._status=2,z._result=Q)}),z._status===-1&&(z._status=0,z._result=F)}if(z._status===1)return z._result.default;throw z._result}var V={current:null},H={transition:null},Y={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:H,ReactCurrentOwner:I};function U(){throw Error("act(...) is not supported in production builds of React.")}return Kt.Children={map:q,forEach:function(z,F,Q){q(z,function(){F.apply(this,arguments)},Q)},count:function(z){var F=0;return q(z,function(){F++}),F},toArray:function(z){return q(z,function(F){return F})||[]},only:function(z){if(!k(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Kt.Component=b,Kt.Fragment=n,Kt.Profiler=o,Kt.PureComponent=w,Kt.StrictMode=r,Kt.Suspense=d,Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Kt.act=U,Kt.cloneElement=function(z,F,Q){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var ne=C({},z.props),te=z.key,re=z.ref,fe=z._owner;if(F!=null){if(F.ref!==void 0&&(re=F.ref,fe=I.current),F.key!==void 0&&(te=""+F.key),z.type&&z.type.defaultProps)var me=z.type.defaultProps;for(ue in F)_.call(F,ue)&&!P.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 Ce=0;Ce<ue;Ce++)me[Ce]=arguments[Ce+2];ne.children=me}return{$$typeof:e,type:z.type,key:te,ref:re,props:ne,_owner:fe}},Kt.createContext=function(z){return z={$$typeof:s,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:l,_context:z},z.Consumer=z},Kt.createElement=N,Kt.createFactory=function(z){var F=N.bind(null,z);return F.type=z,F},Kt.createRef=function(){return{current:null}},Kt.forwardRef=function(z){return{$$typeof:u,render:z}},Kt.isValidElement=k,Kt.lazy=function(z){return{$$typeof:p,_payload:{_status:-1,_result:z},_init:W}},Kt.memo=function(z,F){return{$$typeof:m,type:z,compare:F===void 0?null:F}},Kt.startTransition=function(z){var F=H.transition;H.transition={};try{z()}finally{H.transition=F}},Kt.unstable_act=U,Kt.useCallback=function(z,F){return V.current.useCallback(z,F)},Kt.useContext=function(z){return V.current.useContext(z)},Kt.useDebugValue=function(){},Kt.useDeferredValue=function(z){return V.current.useDeferredValue(z)},Kt.useEffect=function(z,F){return V.current.useEffect(z,F)},Kt.useId=function(){return V.current.useId()},Kt.useImperativeHandle=function(z,F,Q){return V.current.useImperativeHandle(z,F,Q)},Kt.useInsertionEffect=function(z,F){return V.current.useInsertionEffect(z,F)},Kt.useLayoutEffect=function(z,F){return V.current.useLayoutEffect(z,F)},Kt.useMemo=function(z,F){return V.current.useMemo(z,F)},Kt.useReducer=function(z,F,Q){return V.current.useReducer(z,F,Q)},Kt.useRef=function(z){return V.current.useRef(z)},Kt.useState=function(z){return V.current.useState(z)},Kt.useSyncExternalStore=function(z,F,Q){return V.current.useSyncExternalStore(z,F,Q)},Kt.useTransition=function(){return V.current.useTransition()},Kt.version="18.3.1",Kt}var gy;function Hg(){return gy||(gy=1,Nm.exports=ME()),Nm.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 hy;function jE(){if(hy)return cs;hy=1;var e=Hg(),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,d,m){var p,g={},v=null,y=null;m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),d.ref!==void 0&&(y=d.ref);for(p in d)r.call(d,p)&&!l.hasOwnProperty(p)&&(g[p]=d[p]);if(u&&u.defaultProps)for(p in d=u.defaultProps,d)g[p]===void 0&&(g[p]=d[p]);return{$$typeof:t,type:u,key:v,ref:y,props:g,_owner:o.current}}return cs.Fragment=n,cs.jsx=s,cs.jsxs=s,cs}var vy;function zE(){return vy||(vy=1,Tm.exports=jE()),Tm.exports}var B=zE(),c=Hg();const Z=Gs(c),gd=BC({__proto__:null,default:Z},[c]);var cu={},km={exports:{}},Wr={},Mm={exports:{}},jm={};/**
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 yy;function LE(){return yy||(yy=1,(function(e){function t(H,Y){var U=H.length;H.push(Y);e:for(;0<U;){var z=U-1>>>1,F=H[z];if(0<o(F,Y))H[z]=Y,H[U]=F,U=z;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var Y=H[0],U=H.pop();if(U!==Y){H[0]=U;e:for(var z=0,F=H.length,Q=F>>>1;z<Q;){var ne=2*(z+1)-1,te=H[ne],re=ne+1,fe=H[re];if(0>o(te,U))re<F&&0>o(fe,te)?(H[z]=fe,H[re]=U,z=re):(H[z]=te,H[ne]=U,z=ne);else if(re<F&&0>o(fe,U))H[z]=fe,H[re]=U,z=re;else break e}}return Y}function o(H,Y){var U=H.sortIndex-Y.sortIndex;return U!==0?U:H.id-Y.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 d=[],m=[],p=1,g=null,v=3,y=!1,C=!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(H){for(var Y=n(m);Y!==null;){if(Y.callback===null)r(m);else if(Y.startTime<=H)r(m),Y.sortIndex=Y.expirationTime,t(d,Y);else break;Y=n(m)}}function R(H){if(S=!1,O(H),!C)if(n(d)!==null)C=!0,W(_);else{var Y=n(m);Y!==null&&V(R,Y.startTime-H)}}function _(H,Y){C=!1,S&&(S=!1,$(N),N=-1),y=!0;var U=v;try{for(O(Y),g=n(d);g!==null&&(!(g.expirationTime>Y)||H&&!L());){var z=g.callback;if(typeof z=="function"){g.callback=null,v=g.priorityLevel;var F=z(g.expirationTime<=Y);Y=e.unstable_now(),typeof F=="function"?g.callback=F:g===n(d)&&r(d),O(Y)}else r(d);g=n(d)}if(g!==null)var Q=!0;else{var ne=n(m);ne!==null&&V(R,ne.startTime-Y),Q=!1}return Q}finally{g=null,v=U,y=!1}}var I=!1,P=null,N=-1,T=5,k=-1;function L(){return!(e.unstable_now()-k<T)}function j(){if(P!==null){var H=e.unstable_now();k=H;var Y=!0;try{Y=P(!0,H)}finally{Y?D():(I=!1,P=null)}}else I=!1}var D;if(typeof w=="function")D=function(){w(j)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,q=A.port2;A.port1.onmessage=j,D=function(){q.postMessage(null)}}else D=function(){b(j,0)};function W(H){P=H,I||(I=!0,D())}function V(H,Y){N=b(function(){H(e.unstable_now())},Y)}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(H){H.callback=null},e.unstable_continueExecution=function(){C||y||(C=!0,W(_))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(H){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var U=v;v=Y;try{return H()}finally{v=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,Y){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var U=v;v=H;try{return Y()}finally{v=U}},e.unstable_scheduleCallback=function(H,Y,U){var z=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?z+U:z):U=z,H){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=U+F,H={id:p++,callback:Y,priorityLevel:H,startTime:U,expirationTime:F,sortIndex:-1},U>z?(H.sortIndex=U,t(m,H),n(d)===null&&H===n(m)&&(S?($(N),N=-1):S=!0,V(R,U-z))):(H.sortIndex=F,t(d,H),C||y||(C=!0,W(_))),H},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(H){var Y=v;return function(){var U=v;v=Y;try{return H.apply(this,arguments)}finally{v=U}}}})(jm)),jm}var by;function BE(){return by||(by=1,Mm.exports=LE()),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 Cy;function AE(){if(Cy)return Wr;Cy=1;var e=Hg(),t=BE();function n(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,f=1;f<arguments.length;f++)a+="&args[]="+encodeURIComponent(arguments[f]);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"),d=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 v(i){return d.call(g,i)?!0:d.call(p,i)?!1:m.test(i)?g[i]=!0:(p[i]=!0,!1)}function y(i,a,f,h){if(f!==null&&f.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return h?!1:f!==null?!f.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function C(i,a,f,h){if(a===null||typeof a>"u"||y(i,a,f,h))return!0;if(h)return!1;if(f!==null)switch(f.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,f,h,x,E,M){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=h,this.attributeNamespace=x,this.mustUseProperty=f,this.propertyName=i,this.type=a,this.sanitizeURL=E,this.removeEmptyString=M}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,f,h){var x=b.hasOwnProperty(a)?b[a]:null;(x!==null?x.type!==0:h||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(C(a,f,x,h)&&(f=null),h||x===null?v(a)&&(f===null?i.removeAttribute(a):i.setAttribute(a,""+f)):x.mustUseProperty?i[x.propertyName]=f===null?x.type===3?!1:"":f:(a=x.attributeName,h=x.attributeNamespace,f===null?i.removeAttribute(a):(x=x.type,f=x===3||x===4&&f===!0?"":""+f,h?i.setAttributeNS(h,a,f):i.setAttribute(a,f))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),I=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),L=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),H=Symbol.iterator;function Y(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var U=Object.assign,z;function F(i){if(z===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);z=a&&a[1]||""}return`
34
- `+z+i}var Q=!1;function ne(i,a){if(!i||Q)return"";Q=!0;var f=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(be){var h=be}Reflect.construct(i,[],a)}else{try{a.call()}catch(be){h=be}i.call(a.prototype)}else{try{throw Error()}catch(be){h=be}i()}}catch(be){if(be&&h&&typeof be.stack=="string"){for(var x=be.stack.split(`
35
- `),E=h.stack.split(`
36
- `),M=x.length-1,X=E.length-1;1<=M&&0<=X&&x[M]!==E[X];)X--;for(;1<=M&&0<=X;M--,X--)if(x[M]!==E[X]){if(M!==1||X!==1)do if(M--,X--,0>X||x[M]!==E[X]){var oe=`
37
- `+x[M].replace(" at new "," at ");return i.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",i.displayName)),oe}while(1<=M&&0<=X);break}}}finally{Q=!1,Error.prepareStackTrace=f}return(i=i?i.displayName||i.name:"")?F(i):""}function te(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 re(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 P:return"Fragment";case I:return"Portal";case T:return"Profiler";case N:return"StrictMode";case D:return"Suspense";case A:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case L:return(i.displayName||"Context")+".Consumer";case k:return(i._context.displayName||"Context")+".Provider";case j:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case q:return a=i.displayName||null,a!==null?a:re(i.type)||"Memo";case W:a=i._payload,i=i._init;try{return re(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 re(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 Ce(i){var a=ue(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),h=""+i[a];if(!i.hasOwnProperty(a)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var x=f.get,E=f.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return x.call(this)},set:function(M){h=""+M,E.call(this,M)}}),Object.defineProperty(i,a,{enumerable:f.enumerable}),{getValue:function(){return h},setValue:function(M){h=""+M},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function le(i){i._valueTracker||(i._valueTracker=Ce(i))}function ce(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var f=a.getValue(),h="";return i&&(h=ue(i)?i.checked?"true":"false":i.value),i=h,i!==f?(a.setValue(i),!0):!1}function he(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 ye(i,a){var f=a.checked;return U({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??i._wrapperState.initialChecked})}function de(i,a){var f=a.defaultValue==null?"":a.defaultValue,h=a.checked!=null?a.checked:a.defaultChecked;f=me(a.value!=null?a.value:f),i._wrapperState={initialChecked:h,initialValue:f,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function se(i,a){a=a.checked,a!=null&&O(i,"checked",a,!1)}function ve(i,a){se(i,a);var f=me(a.value),h=a.type;if(f!=null)h==="number"?(f===0&&i.value===""||i.value!=f)&&(i.value=""+f):i.value!==""+f&&(i.value=""+f);else if(h==="submit"||h==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?Re(i,a.type,f):a.hasOwnProperty("defaultValue")&&Re(i,a.type,me(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function Se(i,a,f){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type;if(!(h!=="submit"&&h!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,f||a===i.value||(i.value=a),i.defaultValue=a}f=i.name,f!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,f!==""&&(i.name=f)}function Re(i,a,f){(a!=="number"||he(i.ownerDocument)!==i)&&(f==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+f&&(i.defaultValue=""+f))}var Ne=Array.isArray;function we(i,a,f,h){if(i=i.options,a){a={};for(var x=0;x<f.length;x++)a["$"+f[x]]=!0;for(f=0;f<i.length;f++)x=a.hasOwnProperty("$"+i[f].value),i[f].selected!==x&&(i[f].selected=x),x&&h&&(i[f].defaultSelected=!0)}else{for(f=""+me(f),a=null,x=0;x<i.length;x++){if(i[x].value===f){i[x].selected=!0,h&&(i[x].defaultSelected=!0);return}a!==null||i[x].disabled||(a=i[x])}a!==null&&(a.selected=!0)}}function $e(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return U({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function ke(i,a){var f=a.value;if(f==null){if(f=a.children,a=a.defaultValue,f!=null){if(a!=null)throw Error(n(92));if(Ne(f)){if(1<f.length)throw Error(n(93));f=f[0]}a=f}a==null&&(a=""),f=a}i._wrapperState={initialValue:me(f)}}function Ie(i,a){var f=me(a.value),h=me(a.defaultValue);f!=null&&(f=""+f,f!==i.value&&(i.value=f),a.defaultValue==null&&i.defaultValue!==f&&(i.defaultValue=f)),h!=null&&(i.defaultValue=""+h)}function Ge(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function tt(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 St(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?tt(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var ct,qe=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,f,h,x){MSApp.execUnsafeLocalFunction(function(){return i(a,f,h,x)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(ct=ct||document.createElement("div"),ct.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=ct.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function at(i,a){if(a){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=a;return}}i.textContent=a}var We={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},mt=["Webkit","ms","Moz","O"];Object.keys(We).forEach(function(i){mt.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),We[a]=We[i]})});function Qe(i,a,f){return a==null||typeof a=="boolean"||a===""?"":f||typeof a!="number"||a===0||We.hasOwnProperty(i)&&We[i]?(""+a).trim():a+"px"}function je(i,a){i=i.style;for(var f in a)if(a.hasOwnProperty(f)){var h=f.indexOf("--")===0,x=Qe(f,a[f],h);f==="float"&&(f="cssFloat"),h?i.setProperty(f,x):i[f]=x}}var Je=U({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(Je[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 He(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 Ot=null;function ht(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Gt=null,Ut=null,dn=null;function Sn(i){if(i=Kl(i)){if(typeof Gt!="function")throw Error(n(280));var a=i.stateNode;a&&(a=$c(a),Gt(i.stateNode,i.type,a))}}function Qt(i){Ut?dn?dn.push(i):dn=[i]:Ut=i}function jt(){if(Ut){var i=Ut,a=dn;if(dn=Ut=null,Sn(i),a)for(i=0;i<a.length;i++)Sn(a[i])}}function xt(i,a){return i(a)}function Yt(){}var Vt=!1;function Ze(i,a,f){if(Vt)return i(a,f);Vt=!0;try{return xt(i,a,f)}finally{Vt=!1,(Ut!==null||dn!==null)&&(Yt(),jt())}}function Ct(i,a){var f=i.stateNode;if(f===null)return null;var h=$c(f);if(h===null)return null;f=h[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":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(f&&typeof f!="function")throw Error(n(231,a,typeof f));return f}var lt=!1;if(u)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){lt=!0}}),window.addEventListener("test",_e,_e),window.removeEventListener("test",_e,_e)}catch{lt=!1}function Ee(i,a,f,h,x,E,M,X,oe){var be=Array.prototype.slice.call(arguments,3);try{a.apply(f,be)}catch(Me){this.onError(Me)}}var xe=!1,ze=null,Xe=!1,Ye=null,zt={onError:function(i){xe=!0,ze=i}};function Ht(i,a,f,h,x,E,M,X,oe){xe=!1,ze=null,Ee.apply(zt,arguments)}function Pt(i,a,f,h,x,E,M,X,oe){if(Ht.apply(this,arguments),xe){if(xe){var be=ze;xe=!1,ze=null}else throw Error(n(198));Xe||(Xe=!0,Ye=be)}}function Tt(i){var a=i,f=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(f=a.return),i=a.return;while(i)}return a.tag===3?f:null}function bn(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 hn(i){if(Tt(i)!==i)throw Error(n(188))}function xn(i){var a=i.alternate;if(!a){if(a=Tt(i),a===null)throw Error(n(188));return a!==i?null:i}for(var f=i,h=a;;){var x=f.return;if(x===null)break;var E=x.alternate;if(E===null){if(h=x.return,h!==null){f=h;continue}break}if(x.child===E.child){for(E=x.child;E;){if(E===f)return hn(x),i;if(E===h)return hn(x),a;E=E.sibling}throw Error(n(188))}if(f.return!==h.return)f=x,h=E;else{for(var M=!1,X=x.child;X;){if(X===f){M=!0,f=x,h=E;break}if(X===h){M=!0,h=x,f=E;break}X=X.sibling}if(!M){for(X=E.child;X;){if(X===f){M=!0,f=E,h=x;break}if(X===h){M=!0,h=E,f=x;break}X=X.sibling}if(!M)throw Error(n(189))}}if(f.alternate!==h)throw Error(n(190))}if(f.tag!==3)throw Error(n(188));return f.stateNode.current===f?i:a}function Pn(i){return i=xn(i),i!==null?Zt(i):null}function Zt(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=Zt(i);if(a!==null)return a;i=i.sibling}return null}var on=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,Ue=t.unstable_shouldYield,$t=t.unstable_requestPaint,ut=t.unstable_now,nt=t.unstable_getCurrentPriorityLevel,Ke=t.unstable_ImmediatePriority,wt=t.unstable_UserBlockingPriority,Ft=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,dt=t.unstable_IdlePriority,Rt=null,ln=null;function Hn(i){if(ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(Rt,i,void 0,(i.current.flags&128)===128)}catch{}}var Rn=Math.clz32?Math.clz32:vr,hr=Math.log,Qn=Math.LN2;function vr(i){return i>>>=0,i===0?32:31-(hr(i)/Qn|0)|0}var Yn=64,dr=4194304;function yr(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 tn(i,a){var f=i.pendingLanes;if(f===0)return 0;var h=0,x=i.suspendedLanes,E=i.pingedLanes,M=f&268435455;if(M!==0){var X=M&~x;X!==0?h=yr(X):(E&=M,E!==0&&(h=yr(E)))}else M=f&~x,M!==0?h=yr(M):E!==0&&(h=yr(E));if(h===0)return 0;if(a!==0&&a!==h&&(a&x)===0&&(x=h&-h,E=a&-a,x>=E||x===16&&(E&4194240)!==0))return a;if((h&4)!==0&&(h|=f&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=h;0<a;)f=31-Rn(a),x=1<<f,h|=i[f],a&=~x;return h}function rt(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 et(i,a){for(var f=i.suspendedLanes,h=i.pingedLanes,x=i.expirationTimes,E=i.pendingLanes;0<E;){var M=31-Rn(E),X=1<<M,oe=x[M];oe===-1?((X&f)===0||(X&h)!==0)&&(x[M]=rt(X,a)):oe<=a&&(i.expiredLanes|=X),E&=~X}}function Jt(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function nn(){var i=Yn;return Yn<<=1,(Yn&4194240)===0&&(Yn=64),i}function fn(i){for(var a=[],f=0;31>f;f++)a.push(i);return a}function gn(i,a,f){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-Rn(a),i[a]=f}function fr(i,a){var f=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 h=i.eventTimes;for(i=i.expirationTimes;0<f;){var x=31-Rn(f),E=1<<x;a[x]=0,h[x]=-1,i[x]=-1,f&=~E}}function Fn(i,a){var f=i.entangledLanes|=a;for(i=i.entanglements;f;){var h=31-Rn(f),x=1<<h;x&a|i[h]&a&&(i[h]|=a),f&=~x}}var At=0;function Jn(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var or,Lr,ir,gi,wa,$a=!1,Zo=[],Mn=null,br=null,_r=null,Br=new Map,io=new Map,Gr=[],Ea="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 Oa(i,a){switch(i){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":br=null;break;case"mouseover":case"mouseout":_r=null;break;case"pointerover":case"pointerout":Br.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":io.delete(a.pointerId)}}function ot(i,a,f,h,x,E){return i===null||i.nativeEvent!==E?(i={blockedOn:a,domEventName:f,eventSystemFlags:h,nativeEvent:E,targetContainers:[x]},a!==null&&(a=Kl(a),a!==null&&Lr(a)),i):(i.eventSystemFlags|=h,a=i.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),i)}function Nt(i,a,f,h,x){switch(a){case"focusin":return Mn=ot(Mn,i,a,f,h,x),!0;case"dragenter":return br=ot(br,i,a,f,h,x),!0;case"mouseover":return _r=ot(_r,i,a,f,h,x),!0;case"pointerover":var E=x.pointerId;return Br.set(E,ot(Br.get(E)||null,i,a,f,h,x)),!0;case"gotpointercapture":return E=x.pointerId,io.set(E,ot(io.get(E)||null,i,a,f,h,x)),!0}return!1}function En(i){var a=Ki(i.target);if(a!==null){var f=Tt(a);if(f!==null){if(a=f.tag,a===13){if(a=bn(f),a!==null){i.blockedOn=a,wa(i.priority,function(){ir(f)});return}}else if(a===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function In(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var f=rf(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(f===null){f=i.nativeEvent;var h=new f.constructor(f.type,f);Ot=h,f.target.dispatchEvent(h),Ot=null}else return a=Kl(f),a!==null&&Lr(a),i.blockedOn=f,!1;a.shift()}return!0}function On(i,a,f){In(i)&&f.delete(a)}function Ra(){$a=!1,Mn!==null&&In(Mn)&&(Mn=null),br!==null&&In(br)&&(br=null),_r!==null&&In(_r)&&(_r=null),Br.forEach(On),io.forEach(On)}function ei(i,a){i.blockedOn===a&&(i.blockedOn=null,$a||($a=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ra)))}function hi(i){function a(x){return ei(x,i)}if(0<Zo.length){ei(Zo[0],i);for(var f=1;f<Zo.length;f++){var h=Zo[f];h.blockedOn===i&&(h.blockedOn=null)}}for(Mn!==null&&ei(Mn,i),br!==null&&ei(br,i),_r!==null&&ei(_r,i),Br.forEach(a),io.forEach(a),f=0;f<Gr.length;f++)h=Gr[f],h.blockedOn===i&&(h.blockedOn=null);for(;0<Gr.length&&(f=Gr[0],f.blockedOn===null);)En(f),f.blockedOn===null&&Gr.shift()}var wo=R.ReactCurrentBatchConfig,dc=!0;function r$(i,a,f,h){var x=At,E=wo.transition;wo.transition=null;try{At=1,nf(i,a,f,h)}finally{At=x,wo.transition=E}}function o$(i,a,f,h){var x=At,E=wo.transition;wo.transition=null;try{At=4,nf(i,a,f,h)}finally{At=x,wo.transition=E}}function nf(i,a,f,h){if(dc){var x=rf(i,a,f,h);if(x===null)Sf(i,a,h,fc,f),Oa(i,h);else if(Nt(x,i,a,f,h))h.stopPropagation();else if(Oa(i,h),a&4&&-1<Ea.indexOf(i)){for(;x!==null;){var E=Kl(x);if(E!==null&&or(E),E=rf(i,a,f,h),E===null&&Sf(i,a,h,fc,f),E===x)break;x=E}x!==null&&h.stopPropagation()}else Sf(i,a,h,null,f)}}var fc=null;function rf(i,a,f,h){if(fc=null,i=ht(h),i=Ki(i),i!==null)if(a=Tt(i),a===null)i=null;else if(f=a.tag,f===13){if(i=bn(a),i!==null)return i;i=null}else if(f===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return fc=i,null}function ev(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(nt()){case Ke:return 1;case wt:return 4;case Ft:case Fe:return 16;case dt:return 536870912;default:return 16}default:return 16}}var vi=null,of=null,mc=null;function tv(){if(mc)return mc;var i,a=of,f=a.length,h,x="value"in vi?vi.value:vi.textContent,E=x.length;for(i=0;i<f&&a[i]===x[i];i++);var M=f-i;for(h=1;h<=M&&a[f-h]===x[E-h];h++);return mc=x.slice(i,1<h?1-h:void 0)}function pc(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 gc(){return!0}function nv(){return!1}function Kr(i){function a(f,h,x,E,M){this._reactName=f,this._targetInst=x,this.type=h,this.nativeEvent=E,this.target=M,this.currentTarget=null;for(var X in i)i.hasOwnProperty(X)&&(f=i[X],this[X]=f?f(E):E[X]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?gc:nv,this.isPropagationStopped=nv,this}return U(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=gc)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=gc)},persist:function(){},isPersistent:gc}),a}var Ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},af=Kr(Ia),Ll=U({},Ia,{view:0,detail:0}),i$=Kr(Ll),lf,sf,Bl,hc=U({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uf,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!==Bl&&(Bl&&i.type==="mousemove"?(lf=i.screenX-Bl.screenX,sf=i.screenY-Bl.screenY):sf=lf=0,Bl=i),lf)},movementY:function(i){return"movementY"in i?i.movementY:sf}}),rv=Kr(hc),a$=U({},hc,{dataTransfer:0}),l$=Kr(a$),s$=U({},Ll,{relatedTarget:0}),cf=Kr(s$),c$=U({},Ia,{animationName:0,elapsedTime:0,pseudoElement:0}),u$=Kr(c$),d$=U({},Ia,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),f$=Kr(d$),m$=U({},Ia,{data:0}),ov=Kr(m$),p$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g$={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"},h$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v$(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=h$[i])?!!a[i]:!1}function uf(){return v$}var y$=U({},Ll,{key:function(i){if(i.key){var a=p$[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=pc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?g$[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uf,charCode:function(i){return i.type==="keypress"?pc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?pc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),b$=Kr(y$),C$=U({},hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),iv=Kr(C$),S$=U({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uf}),x$=Kr(S$),w$=U({},Ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),$$=Kr(w$),E$=U({},hc,{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}),O$=Kr(E$),R$=[9,13,27,32],df=u&&"CompositionEvent"in window,Al=null;u&&"documentMode"in document&&(Al=document.documentMode);var I$=u&&"TextEvent"in window&&!Al,av=u&&(!df||Al&&8<Al&&11>=Al),lv=" ",sv=!1;function cv(i,a){switch(i){case"keyup":return R$.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var _a=!1;function _$(i,a){switch(i){case"compositionend":return uv(a);case"keypress":return a.which!==32?null:(sv=!0,lv);case"textInput":return i=a.data,i===lv&&sv?null:i;default:return null}}function P$(i,a){if(_a)return i==="compositionend"||!df&&cv(i,a)?(i=tv(),mc=of=vi=null,_a=!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 av&&a.locale!=="ko"?null:a.data;default:return null}}var T$={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"?!!T$[i.type]:a==="textarea"}function fv(i,a,f,h){Qt(h),a=Sc(a,"onChange"),0<a.length&&(f=new af("onChange","change",null,f,h),i.push({event:f,listeners:a}))}var Dl=null,Hl=null;function N$(i){Pv(i,0)}function vc(i){var a=Ma(i);if(ce(a))return i}function k$(i,a){if(i==="change")return a}var mv=!1;if(u){var ff;if(u){var mf="oninput"in document;if(!mf){var pv=document.createElement("div");pv.setAttribute("oninput","return;"),mf=typeof pv.oninput=="function"}ff=mf}else ff=!1;mv=ff&&(!document.documentMode||9<document.documentMode)}function gv(){Dl&&(Dl.detachEvent("onpropertychange",hv),Hl=Dl=null)}function hv(i){if(i.propertyName==="value"&&vc(Hl)){var a=[];fv(a,Hl,i,ht(i)),Ze(N$,a)}}function M$(i,a,f){i==="focusin"?(gv(),Dl=a,Hl=f,Dl.attachEvent("onpropertychange",hv)):i==="focusout"&&gv()}function j$(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return vc(Hl)}function z$(i,a){if(i==="click")return vc(a)}function L$(i,a){if(i==="input"||i==="change")return vc(a)}function B$(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var $o=typeof Object.is=="function"?Object.is:B$;function Fl(i,a){if($o(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var f=Object.keys(i),h=Object.keys(a);if(f.length!==h.length)return!1;for(h=0;h<f.length;h++){var x=f[h];if(!d.call(a,x)||!$o(i[x],a[x]))return!1}return!0}function vv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function yv(i,a){var f=vv(i);i=0;for(var h;f;){if(f.nodeType===3){if(h=i+f.textContent.length,i<=a&&h>=a)return{node:f,offset:a-i};i=h}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=vv(f)}}function bv(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?bv(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function Cv(){for(var i=window,a=he();a instanceof i.HTMLIFrameElement;){try{var f=typeof a.contentWindow.location.href=="string"}catch{f=!1}if(f)i=a.contentWindow;else break;a=he(i.document)}return a}function pf(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 A$(i){var a=Cv(),f=i.focusedElem,h=i.selectionRange;if(a!==f&&f&&f.ownerDocument&&bv(f.ownerDocument.documentElement,f)){if(h!==null&&pf(f)){if(a=h.start,i=h.end,i===void 0&&(i=a),"selectionStart"in f)f.selectionStart=a,f.selectionEnd=Math.min(i,f.value.length);else if(i=(a=f.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var x=f.textContent.length,E=Math.min(h.start,x);h=h.end===void 0?E:Math.min(h.end,x),!i.extend&&E>h&&(x=h,h=E,E=x),x=yv(f,E);var M=yv(f,h);x&&M&&(i.rangeCount!==1||i.anchorNode!==x.node||i.anchorOffset!==x.offset||i.focusNode!==M.node||i.focusOffset!==M.offset)&&(a=a.createRange(),a.setStart(x.node,x.offset),i.removeAllRanges(),E>h?(i.addRange(a),i.extend(M.node,M.offset)):(a.setEnd(M.node,M.offset),i.addRange(a)))}}for(a=[],i=f;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<a.length;f++)i=a[f],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var D$=u&&"documentMode"in document&&11>=document.documentMode,Pa=null,gf=null,Vl=null,hf=!1;function Sv(i,a,f){var h=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;hf||Pa==null||Pa!==he(h)||(h=Pa,"selectionStart"in h&&pf(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Vl&&Fl(Vl,h)||(Vl=h,h=Sc(gf,"onSelect"),0<h.length&&(a=new af("onSelect","select",null,a,f),i.push({event:a,listeners:h}),a.target=Pa)))}function yc(i,a){var f={};return f[i.toLowerCase()]=a.toLowerCase(),f["Webkit"+i]="webkit"+a,f["Moz"+i]="moz"+a,f}var Ta={animationend:yc("Animation","AnimationEnd"),animationiteration:yc("Animation","AnimationIteration"),animationstart:yc("Animation","AnimationStart"),transitionend:yc("Transition","TransitionEnd")},vf={},xv={};u&&(xv=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function bc(i){if(vf[i])return vf[i];if(!Ta[i])return i;var a=Ta[i],f;for(f in a)if(a.hasOwnProperty(f)&&f in xv)return vf[i]=a[f];return i}var wv=bc("animationend"),$v=bc("animationiteration"),Ev=bc("animationstart"),Ov=bc("transitionend"),Rv=new Map,Iv="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 yi(i,a){Rv.set(i,a),l(a,[i])}for(var yf=0;yf<Iv.length;yf++){var bf=Iv[yf],H$=bf.toLowerCase(),F$=bf[0].toUpperCase()+bf.slice(1);yi(H$,"on"+F$)}yi(wv,"onAnimationEnd"),yi($v,"onAnimationIteration"),yi(Ev,"onAnimationStart"),yi("dblclick","onDoubleClick"),yi("focusin","onFocus"),yi("focusout","onBlur"),yi(Ov,"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 Wl="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(" "),V$=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wl));function _v(i,a,f){var h=i.type||"unknown-event";i.currentTarget=f,Pt(h,a,void 0,i),i.currentTarget=null}function Pv(i,a){a=(a&4)!==0;for(var f=0;f<i.length;f++){var h=i[f],x=h.event;h=h.listeners;e:{var E=void 0;if(a)for(var M=h.length-1;0<=M;M--){var X=h[M],oe=X.instance,be=X.currentTarget;if(X=X.listener,oe!==E&&x.isPropagationStopped())break e;_v(x,X,be),E=oe}else for(M=0;M<h.length;M++){if(X=h[M],oe=X.instance,be=X.currentTarget,X=X.listener,oe!==E&&x.isPropagationStopped())break e;_v(x,X,be),E=oe}}}if(Xe)throw i=Ye,Xe=!1,Ye=null,i}function Tn(i,a){var f=a[Rf];f===void 0&&(f=a[Rf]=new Set);var h=i+"__bubble";f.has(h)||(Tv(a,i,2,!1),f.add(h))}function Cf(i,a,f){var h=0;a&&(h|=4),Tv(f,i,h,a)}var Cc="_reactListening"+Math.random().toString(36).slice(2);function Ul(i){if(!i[Cc]){i[Cc]=!0,r.forEach(function(f){f!=="selectionchange"&&(V$.has(f)||Cf(f,!1,i),Cf(f,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Cc]||(a[Cc]=!0,Cf("selectionchange",!1,a))}}function Tv(i,a,f,h){switch(ev(a)){case 1:var x=r$;break;case 4:x=o$;break;default:x=nf}f=x.bind(null,a,f,i),x=void 0,!lt||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),h?x!==void 0?i.addEventListener(a,f,{capture:!0,passive:x}):i.addEventListener(a,f,!0):x!==void 0?i.addEventListener(a,f,{passive:x}):i.addEventListener(a,f,!1)}function Sf(i,a,f,h,x){var E=h;if((a&1)===0&&(a&2)===0&&h!==null)e:for(;;){if(h===null)return;var M=h.tag;if(M===3||M===4){var X=h.stateNode.containerInfo;if(X===x||X.nodeType===8&&X.parentNode===x)break;if(M===4)for(M=h.return;M!==null;){var oe=M.tag;if((oe===3||oe===4)&&(oe=M.stateNode.containerInfo,oe===x||oe.nodeType===8&&oe.parentNode===x))return;M=M.return}for(;X!==null;){if(M=Ki(X),M===null)return;if(oe=M.tag,oe===5||oe===6){h=E=M;continue e}X=X.parentNode}}h=h.return}Ze(function(){var be=E,Me=ht(f),Be=[];e:{var Pe=Rv.get(i);if(Pe!==void 0){var it=af,vt=i;switch(i){case"keypress":if(pc(f)===0)break e;case"keydown":case"keyup":it=b$;break;case"focusin":vt="focus",it=cf;break;case"focusout":vt="blur",it=cf;break;case"beforeblur":case"afterblur":it=cf;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":it=rv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":it=l$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":it=x$;break;case wv:case $v:case Ev:it=u$;break;case Ov:it=$$;break;case"scroll":it=i$;break;case"wheel":it=O$;break;case"copy":case"cut":case"paste":it=f$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":it=iv}var yt=(a&4)!==0,Vn=!yt&&i==="scroll",pe=yt?Pe!==null?Pe+"Capture":null:Pe;yt=[];for(var ie=be,ge;ie!==null;){ge=ie;var De=ge.stateNode;if(ge.tag===5&&De!==null&&(ge=De,pe!==null&&(De=Ct(ie,pe),De!=null&&yt.push(ql(ie,De,ge)))),Vn)break;ie=ie.return}0<yt.length&&(Pe=new it(Pe,vt,null,f,Me),Be.push({event:Pe,listeners:yt}))}}if((a&7)===0){e:{if(Pe=i==="mouseover"||i==="pointerover",it=i==="mouseout"||i==="pointerout",Pe&&f!==Ot&&(vt=f.relatedTarget||f.fromElement)&&(Ki(vt)||vt[ti]))break e;if((it||Pe)&&(Pe=Me.window===Me?Me:(Pe=Me.ownerDocument)?Pe.defaultView||Pe.parentWindow:window,it?(vt=f.relatedTarget||f.toElement,it=be,vt=vt?Ki(vt):null,vt!==null&&(Vn=Tt(vt),vt!==Vn||vt.tag!==5&&vt.tag!==6)&&(vt=null)):(it=null,vt=be),it!==vt)){if(yt=rv,De="onMouseLeave",pe="onMouseEnter",ie="mouse",(i==="pointerout"||i==="pointerover")&&(yt=iv,De="onPointerLeave",pe="onPointerEnter",ie="pointer"),Vn=it==null?Pe:Ma(it),ge=vt==null?Pe:Ma(vt),Pe=new yt(De,ie+"leave",it,f,Me),Pe.target=Vn,Pe.relatedTarget=ge,De=null,Ki(Me)===be&&(yt=new yt(pe,ie+"enter",vt,f,Me),yt.target=ge,yt.relatedTarget=Vn,De=yt),Vn=De,it&&vt)t:{for(yt=it,pe=vt,ie=0,ge=yt;ge;ge=Na(ge))ie++;for(ge=0,De=pe;De;De=Na(De))ge++;for(;0<ie-ge;)yt=Na(yt),ie--;for(;0<ge-ie;)pe=Na(pe),ge--;for(;ie--;){if(yt===pe||pe!==null&&yt===pe.alternate)break t;yt=Na(yt),pe=Na(pe)}yt=null}else yt=null;it!==null&&Nv(Be,Pe,it,yt,!1),vt!==null&&Vn!==null&&Nv(Be,Vn,vt,yt,!0)}}e:{if(Pe=be?Ma(be):window,it=Pe.nodeName&&Pe.nodeName.toLowerCase(),it==="select"||it==="input"&&Pe.type==="file")var bt=k$;else if(dv(Pe))if(mv)bt=L$;else{bt=j$;var It=M$}else(it=Pe.nodeName)&&it.toLowerCase()==="input"&&(Pe.type==="checkbox"||Pe.type==="radio")&&(bt=z$);if(bt&&(bt=bt(i,be))){fv(Be,bt,f,Me);break e}It&&It(i,Pe,be),i==="focusout"&&(It=Pe._wrapperState)&&It.controlled&&Pe.type==="number"&&Re(Pe,"number",Pe.value)}switch(It=be?Ma(be):window,i){case"focusin":(dv(It)||It.contentEditable==="true")&&(Pa=It,gf=be,Vl=null);break;case"focusout":Vl=gf=Pa=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":hf=!1,Sv(Be,f,Me);break;case"selectionchange":if(D$)break;case"keydown":case"keyup":Sv(Be,f,Me)}var _t;if(df)e:{switch(i){case"compositionstart":var Lt="onCompositionStart";break e;case"compositionend":Lt="onCompositionEnd";break e;case"compositionupdate":Lt="onCompositionUpdate";break e}Lt=void 0}else _a?cv(i,f)&&(Lt="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(Lt="onCompositionStart");Lt&&(av&&f.locale!=="ko"&&(_a||Lt!=="onCompositionStart"?Lt==="onCompositionEnd"&&_a&&(_t=tv()):(vi=Me,of="value"in vi?vi.value:vi.textContent,_a=!0)),It=Sc(be,Lt),0<It.length&&(Lt=new ov(Lt,i,null,f,Me),Be.push({event:Lt,listeners:It}),_t?Lt.data=_t:(_t=uv(f),_t!==null&&(Lt.data=_t)))),(_t=I$?_$(i,f):P$(i,f))&&(be=Sc(be,"onBeforeInput"),0<be.length&&(Me=new ov("onBeforeInput","beforeinput",null,f,Me),Be.push({event:Me,listeners:be}),Me.data=_t))}Pv(Be,a)})}function ql(i,a,f){return{instance:i,listener:a,currentTarget:f}}function Sc(i,a){for(var f=a+"Capture",h=[];i!==null;){var x=i,E=x.stateNode;x.tag===5&&E!==null&&(x=E,E=Ct(i,f),E!=null&&h.unshift(ql(i,E,x)),E=Ct(i,a),E!=null&&h.push(ql(i,E,x))),i=i.return}return h}function Na(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Nv(i,a,f,h,x){for(var E=a._reactName,M=[];f!==null&&f!==h;){var X=f,oe=X.alternate,be=X.stateNode;if(oe!==null&&oe===h)break;X.tag===5&&be!==null&&(X=be,x?(oe=Ct(f,E),oe!=null&&M.unshift(ql(f,oe,X))):x||(oe=Ct(f,E),oe!=null&&M.push(ql(f,oe,X)))),f=f.return}M.length!==0&&i.push({event:a,listeners:M})}var W$=/\r\n?/g,U$=/\u0000|\uFFFD/g;function kv(i){return(typeof i=="string"?i:""+i).replace(W$,`
38
- `).replace(U$,"")}function xc(i,a,f){if(a=kv(a),kv(i)!==a&&f)throw Error(n(425))}function wc(){}var xf=null,wf=null;function $f(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 Ef=typeof setTimeout=="function"?setTimeout:void 0,q$=typeof clearTimeout=="function"?clearTimeout:void 0,Mv=typeof Promise=="function"?Promise:void 0,G$=typeof queueMicrotask=="function"?queueMicrotask:typeof Mv<"u"?function(i){return Mv.resolve(null).then(i).catch(K$)}:Ef;function K$(i){setTimeout(function(){throw i})}function Of(i,a){var f=a,h=0;do{var x=f.nextSibling;if(i.removeChild(f),x&&x.nodeType===8)if(f=x.data,f==="/$"){if(h===0){i.removeChild(x),hi(a);return}h--}else f!=="$"&&f!=="$?"&&f!=="$!"||h++;f=x}while(f);hi(a)}function bi(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 jv(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(a===0)return i;a--}else f==="/$"&&a++}i=i.previousSibling}return null}var ka=Math.random().toString(36).slice(2),Ao="__reactFiber$"+ka,Gl="__reactProps$"+ka,ti="__reactContainer$"+ka,Rf="__reactEvents$"+ka,X$="__reactListeners$"+ka,Q$="__reactHandles$"+ka;function Ki(i){var a=i[Ao];if(a)return a;for(var f=i.parentNode;f;){if(a=f[ti]||f[Ao]){if(f=a.alternate,a.child!==null||f!==null&&f.child!==null)for(i=jv(i);i!==null;){if(f=i[Ao])return f;i=jv(i)}return a}i=f,f=i.parentNode}return null}function Kl(i){return i=i[Ao]||i[ti],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Ma(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function $c(i){return i[Gl]||null}var If=[],ja=-1;function Ci(i){return{current:i}}function Nn(i){0>ja||(i.current=If[ja],If[ja]=null,ja--)}function _n(i,a){ja++,If[ja]=i.current,i.current=a}var Si={},Cr=Ci(Si),Ar=Ci(!1),Xi=Si;function za(i,a){var f=i.type.contextTypes;if(!f)return Si;var h=i.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var x={},E;for(E in f)x[E]=a[E];return h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=x),x}function Dr(i){return i=i.childContextTypes,i!=null}function Ec(){Nn(Ar),Nn(Cr)}function zv(i,a,f){if(Cr.current!==Si)throw Error(n(168));_n(Cr,a),_n(Ar,f)}function Lv(i,a,f){var h=i.stateNode;if(a=a.childContextTypes,typeof h.getChildContext!="function")return f;h=h.getChildContext();for(var x in h)if(!(x in a))throw Error(n(108,fe(i)||"Unknown",x));return U({},f,h)}function Oc(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Si,Xi=Cr.current,_n(Cr,i),_n(Ar,Ar.current),!0}function Bv(i,a,f){var h=i.stateNode;if(!h)throw Error(n(169));f?(i=Lv(i,a,Xi),h.__reactInternalMemoizedMergedChildContext=i,Nn(Ar),Nn(Cr),_n(Cr,i)):Nn(Ar),_n(Ar,f)}var ni=null,Rc=!1,_f=!1;function Av(i){ni===null?ni=[i]:ni.push(i)}function Y$(i){Rc=!0,Av(i)}function xi(){if(!_f&&ni!==null){_f=!0;var i=0,a=At;try{var f=ni;for(At=1;i<f.length;i++){var h=f[i];do h=h(!0);while(h!==null)}ni=null,Rc=!1}catch(x){throw ni!==null&&(ni=ni.slice(i+1)),on(Ke,xi),x}finally{At=a,_f=!1}}return null}var La=[],Ba=0,Ic=null,_c=0,ao=[],lo=0,Qi=null,ri=1,oi="";function Yi(i,a){La[Ba++]=_c,La[Ba++]=Ic,Ic=i,_c=a}function Dv(i,a,f){ao[lo++]=ri,ao[lo++]=oi,ao[lo++]=Qi,Qi=i;var h=ri;i=oi;var x=32-Rn(h)-1;h&=~(1<<x),f+=1;var E=32-Rn(a)+x;if(30<E){var M=x-x%5;E=(h&(1<<M)-1).toString(32),h>>=M,x-=M,ri=1<<32-Rn(a)+x|f<<x|h,oi=E+i}else ri=1<<E|f<<x|h,oi=i}function Pf(i){i.return!==null&&(Yi(i,1),Dv(i,1,0))}function Tf(i){for(;i===Ic;)Ic=La[--Ba],La[Ba]=null,_c=La[--Ba],La[Ba]=null;for(;i===Qi;)Qi=ao[--lo],ao[lo]=null,oi=ao[--lo],ao[lo]=null,ri=ao[--lo],ao[lo]=null}var Xr=null,Qr=null,kn=!1,Eo=null;function Hv(i,a){var f=fo(5,null,null,0);f.elementType="DELETED",f.stateNode=a,f.return=i,a=i.deletions,a===null?(i.deletions=[f],i.flags|=16):a.push(f)}function Fv(i,a){switch(i.tag){case 5:var f=i.type;return a=a.nodeType!==1||f.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,Xr=i,Qr=bi(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,Xr=i,Qr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(f=Qi!==null?{id:ri,overflow:oi}:null,i.memoizedState={dehydrated:a,treeContext:f,retryLane:1073741824},f=fo(18,null,null,0),f.stateNode=a,f.return=i,i.child=f,Xr=i,Qr=null,!0):!1;default:return!1}}function Nf(i){return(i.mode&1)!==0&&(i.flags&128)===0}function kf(i){if(kn){var a=Qr;if(a){var f=a;if(!Fv(i,a)){if(Nf(i))throw Error(n(418));a=bi(f.nextSibling);var h=Xr;a&&Fv(i,a)?Hv(h,f):(i.flags=i.flags&-4097|2,kn=!1,Xr=i)}}else{if(Nf(i))throw Error(n(418));i.flags=i.flags&-4097|2,kn=!1,Xr=i}}}function Vv(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Xr=i}function Pc(i){if(i!==Xr)return!1;if(!kn)return Vv(i),kn=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!$f(i.type,i.memoizedProps)),a&&(a=Qr)){if(Nf(i))throw Wv(),Error(n(418));for(;a;)Hv(i,a),a=bi(a.nextSibling)}if(Vv(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 f=i.data;if(f==="/$"){if(a===0){Qr=bi(i.nextSibling);break e}a--}else f!=="$"&&f!=="$!"&&f!=="$?"||a++}i=i.nextSibling}Qr=null}}else Qr=Xr?bi(i.stateNode.nextSibling):null;return!0}function Wv(){for(var i=Qr;i;)i=bi(i.nextSibling)}function Aa(){Qr=Xr=null,kn=!1}function Mf(i){Eo===null?Eo=[i]:Eo.push(i)}var J$=R.ReactCurrentBatchConfig;function Xl(i,a,f){if(i=f.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(n(309));var h=f.stateNode}if(!h)throw Error(n(147,i));var x=h,E=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===E?a.ref:(a=function(M){var X=x.refs;M===null?delete X[E]:X[E]=M},a._stringRef=E,a)}if(typeof i!="string")throw Error(n(284));if(!f._owner)throw Error(n(290,i))}return i}function Tc(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function Uv(i){var a=i._init;return a(i._payload)}function qv(i){function a(pe,ie){if(i){var ge=pe.deletions;ge===null?(pe.deletions=[ie],pe.flags|=16):ge.push(ie)}}function f(pe,ie){if(!i)return null;for(;ie!==null;)a(pe,ie),ie=ie.sibling;return null}function h(pe,ie){for(pe=new Map;ie!==null;)ie.key!==null?pe.set(ie.key,ie):pe.set(ie.index,ie),ie=ie.sibling;return pe}function x(pe,ie){return pe=Pi(pe,ie),pe.index=0,pe.sibling=null,pe}function E(pe,ie,ge){return pe.index=ge,i?(ge=pe.alternate,ge!==null?(ge=ge.index,ge<ie?(pe.flags|=2,ie):ge):(pe.flags|=2,ie)):(pe.flags|=1048576,ie)}function M(pe){return i&&pe.alternate===null&&(pe.flags|=2),pe}function X(pe,ie,ge,De){return ie===null||ie.tag!==6?(ie=Em(ge,pe.mode,De),ie.return=pe,ie):(ie=x(ie,ge),ie.return=pe,ie)}function oe(pe,ie,ge,De){var bt=ge.type;return bt===P?Me(pe,ie,ge.props.children,De,ge.key):ie!==null&&(ie.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===W&&Uv(bt)===ie.type)?(De=x(ie,ge.props),De.ref=Xl(pe,ie,ge),De.return=pe,De):(De=tu(ge.type,ge.key,ge.props,null,pe.mode,De),De.ref=Xl(pe,ie,ge),De.return=pe,De)}function be(pe,ie,ge,De){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==ge.containerInfo||ie.stateNode.implementation!==ge.implementation?(ie=Om(ge,pe.mode,De),ie.return=pe,ie):(ie=x(ie,ge.children||[]),ie.return=pe,ie)}function Me(pe,ie,ge,De,bt){return ie===null||ie.tag!==7?(ie=ia(ge,pe.mode,De,bt),ie.return=pe,ie):(ie=x(ie,ge),ie.return=pe,ie)}function Be(pe,ie,ge){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return ie=Em(""+ie,pe.mode,ge),ie.return=pe,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case _:return ge=tu(ie.type,ie.key,ie.props,null,pe.mode,ge),ge.ref=Xl(pe,null,ie),ge.return=pe,ge;case I:return ie=Om(ie,pe.mode,ge),ie.return=pe,ie;case W:var De=ie._init;return Be(pe,De(ie._payload),ge)}if(Ne(ie)||Y(ie))return ie=ia(ie,pe.mode,ge,null),ie.return=pe,ie;Tc(pe,ie)}return null}function Pe(pe,ie,ge,De){var bt=ie!==null?ie.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return bt!==null?null:X(pe,ie,""+ge,De);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case _:return ge.key===bt?oe(pe,ie,ge,De):null;case I:return ge.key===bt?be(pe,ie,ge,De):null;case W:return bt=ge._init,Pe(pe,ie,bt(ge._payload),De)}if(Ne(ge)||Y(ge))return bt!==null?null:Me(pe,ie,ge,De,null);Tc(pe,ge)}return null}function it(pe,ie,ge,De,bt){if(typeof De=="string"&&De!==""||typeof De=="number")return pe=pe.get(ge)||null,X(ie,pe,""+De,bt);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case _:return pe=pe.get(De.key===null?ge:De.key)||null,oe(ie,pe,De,bt);case I:return pe=pe.get(De.key===null?ge:De.key)||null,be(ie,pe,De,bt);case W:var It=De._init;return it(pe,ie,ge,It(De._payload),bt)}if(Ne(De)||Y(De))return pe=pe.get(ge)||null,Me(ie,pe,De,bt,null);Tc(ie,De)}return null}function vt(pe,ie,ge,De){for(var bt=null,It=null,_t=ie,Lt=ie=0,sr=null;_t!==null&&Lt<ge.length;Lt++){_t.index>Lt?(sr=_t,_t=null):sr=_t.sibling;var mn=Pe(pe,_t,ge[Lt],De);if(mn===null){_t===null&&(_t=sr);break}i&&_t&&mn.alternate===null&&a(pe,_t),ie=E(mn,ie,Lt),It===null?bt=mn:It.sibling=mn,It=mn,_t=sr}if(Lt===ge.length)return f(pe,_t),kn&&Yi(pe,Lt),bt;if(_t===null){for(;Lt<ge.length;Lt++)_t=Be(pe,ge[Lt],De),_t!==null&&(ie=E(_t,ie,Lt),It===null?bt=_t:It.sibling=_t,It=_t);return kn&&Yi(pe,Lt),bt}for(_t=h(pe,_t);Lt<ge.length;Lt++)sr=it(_t,pe,Lt,ge[Lt],De),sr!==null&&(i&&sr.alternate!==null&&_t.delete(sr.key===null?Lt:sr.key),ie=E(sr,ie,Lt),It===null?bt=sr:It.sibling=sr,It=sr);return i&&_t.forEach(function(Ti){return a(pe,Ti)}),kn&&Yi(pe,Lt),bt}function yt(pe,ie,ge,De){var bt=Y(ge);if(typeof bt!="function")throw Error(n(150));if(ge=bt.call(ge),ge==null)throw Error(n(151));for(var It=bt=null,_t=ie,Lt=ie=0,sr=null,mn=ge.next();_t!==null&&!mn.done;Lt++,mn=ge.next()){_t.index>Lt?(sr=_t,_t=null):sr=_t.sibling;var Ti=Pe(pe,_t,mn.value,De);if(Ti===null){_t===null&&(_t=sr);break}i&&_t&&Ti.alternate===null&&a(pe,_t),ie=E(Ti,ie,Lt),It===null?bt=Ti:It.sibling=Ti,It=Ti,_t=sr}if(mn.done)return f(pe,_t),kn&&Yi(pe,Lt),bt;if(_t===null){for(;!mn.done;Lt++,mn=ge.next())mn=Be(pe,mn.value,De),mn!==null&&(ie=E(mn,ie,Lt),It===null?bt=mn:It.sibling=mn,It=mn);return kn&&Yi(pe,Lt),bt}for(_t=h(pe,_t);!mn.done;Lt++,mn=ge.next())mn=it(_t,pe,Lt,mn.value,De),mn!==null&&(i&&mn.alternate!==null&&_t.delete(mn.key===null?Lt:mn.key),ie=E(mn,ie,Lt),It===null?bt=mn:It.sibling=mn,It=mn);return i&&_t.forEach(function(TE){return a(pe,TE)}),kn&&Yi(pe,Lt),bt}function Vn(pe,ie,ge,De){if(typeof ge=="object"&&ge!==null&&ge.type===P&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case _:e:{for(var bt=ge.key,It=ie;It!==null;){if(It.key===bt){if(bt=ge.type,bt===P){if(It.tag===7){f(pe,It.sibling),ie=x(It,ge.props.children),ie.return=pe,pe=ie;break e}}else if(It.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===W&&Uv(bt)===It.type){f(pe,It.sibling),ie=x(It,ge.props),ie.ref=Xl(pe,It,ge),ie.return=pe,pe=ie;break e}f(pe,It);break}else a(pe,It);It=It.sibling}ge.type===P?(ie=ia(ge.props.children,pe.mode,De,ge.key),ie.return=pe,pe=ie):(De=tu(ge.type,ge.key,ge.props,null,pe.mode,De),De.ref=Xl(pe,ie,ge),De.return=pe,pe=De)}return M(pe);case I:e:{for(It=ge.key;ie!==null;){if(ie.key===It)if(ie.tag===4&&ie.stateNode.containerInfo===ge.containerInfo&&ie.stateNode.implementation===ge.implementation){f(pe,ie.sibling),ie=x(ie,ge.children||[]),ie.return=pe,pe=ie;break e}else{f(pe,ie);break}else a(pe,ie);ie=ie.sibling}ie=Om(ge,pe.mode,De),ie.return=pe,pe=ie}return M(pe);case W:return It=ge._init,Vn(pe,ie,It(ge._payload),De)}if(Ne(ge))return vt(pe,ie,ge,De);if(Y(ge))return yt(pe,ie,ge,De);Tc(pe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,ie!==null&&ie.tag===6?(f(pe,ie.sibling),ie=x(ie,ge),ie.return=pe,pe=ie):(f(pe,ie),ie=Em(ge,pe.mode,De),ie.return=pe,pe=ie),M(pe)):f(pe,ie)}return Vn}var Da=qv(!0),Gv=qv(!1),Nc=Ci(null),kc=null,Ha=null,jf=null;function zf(){jf=Ha=kc=null}function Lf(i){var a=Nc.current;Nn(Nc),i._currentValue=a}function Bf(i,a,f){for(;i!==null;){var h=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),i===f)break;i=i.return}}function Fa(i,a){kc=i,jf=Ha=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(Hr=!0),i.firstContext=null)}function so(i){var a=i._currentValue;if(jf!==i)if(i={context:i,memoizedValue:a,next:null},Ha===null){if(kc===null)throw Error(n(308));Ha=i,kc.dependencies={lanes:0,firstContext:i}}else Ha=Ha.next=i;return a}var Ji=null;function Af(i){Ji===null?Ji=[i]:Ji.push(i)}function Kv(i,a,f,h){var x=a.interleaved;return x===null?(f.next=f,Af(a)):(f.next=x.next,x.next=f),a.interleaved=f,ii(i,h)}function ii(i,a){i.lanes|=a;var f=i.alternate;for(f!==null&&(f.lanes|=a),f=i,i=i.return;i!==null;)i.childLanes|=a,f=i.alternate,f!==null&&(f.childLanes|=a),f=i,i=i.return;return f.tag===3?f.stateNode:null}var wi=!1;function Df(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xv(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 ai(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function $i(i,a,f){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(sn&2)!==0){var x=h.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),h.pending=a,ii(i,f)}return x=h.interleaved,x===null?(a.next=a,Af(h)):(a.next=x.next,x.next=a),h.interleaved=a,ii(i,f)}function Mc(i,a,f){if(a=a.updateQueue,a!==null&&(a=a.shared,(f&4194240)!==0)){var h=a.lanes;h&=i.pendingLanes,f|=h,a.lanes=f,Fn(i,f)}}function Qv(i,a){var f=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,f===h)){var x=null,E=null;if(f=f.firstBaseUpdate,f!==null){do{var M={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};E===null?x=E=M:E=E.next=M,f=f.next}while(f!==null);E===null?x=E=a:E=E.next=a}else x=E=a;f={baseState:h.baseState,firstBaseUpdate:x,lastBaseUpdate:E,shared:h.shared,effects:h.effects},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=a:i.next=a,f.lastBaseUpdate=a}function jc(i,a,f,h){var x=i.updateQueue;wi=!1;var E=x.firstBaseUpdate,M=x.lastBaseUpdate,X=x.shared.pending;if(X!==null){x.shared.pending=null;var oe=X,be=oe.next;oe.next=null,M===null?E=be:M.next=be,M=oe;var Me=i.alternate;Me!==null&&(Me=Me.updateQueue,X=Me.lastBaseUpdate,X!==M&&(X===null?Me.firstBaseUpdate=be:X.next=be,Me.lastBaseUpdate=oe))}if(E!==null){var Be=x.baseState;M=0,Me=be=oe=null,X=E;do{var Pe=X.lane,it=X.eventTime;if((h&Pe)===Pe){Me!==null&&(Me=Me.next={eventTime:it,lane:0,tag:X.tag,payload:X.payload,callback:X.callback,next:null});e:{var vt=i,yt=X;switch(Pe=a,it=f,yt.tag){case 1:if(vt=yt.payload,typeof vt=="function"){Be=vt.call(it,Be,Pe);break e}Be=vt;break e;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=yt.payload,Pe=typeof vt=="function"?vt.call(it,Be,Pe):vt,Pe==null)break e;Be=U({},Be,Pe);break e;case 2:wi=!0}}X.callback!==null&&X.lane!==0&&(i.flags|=64,Pe=x.effects,Pe===null?x.effects=[X]:Pe.push(X))}else it={eventTime:it,lane:Pe,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Me===null?(be=Me=it,oe=Be):Me=Me.next=it,M|=Pe;if(X=X.next,X===null){if(X=x.shared.pending,X===null)break;Pe=X,X=Pe.next,Pe.next=null,x.lastBaseUpdate=Pe,x.shared.pending=null}}while(!0);if(Me===null&&(oe=Be),x.baseState=oe,x.firstBaseUpdate=be,x.lastBaseUpdate=Me,a=x.shared.interleaved,a!==null){x=a;do M|=x.lane,x=x.next;while(x!==a)}else E===null&&(x.shared.lanes=0);ta|=M,i.lanes=M,i.memoizedState=Be}}function Yv(i,a,f){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var h=i[a],x=h.callback;if(x!==null){if(h.callback=null,h=f,typeof x!="function")throw Error(n(191,x));x.call(h)}}}var Ql={},Do=Ci(Ql),Yl=Ci(Ql),Jl=Ci(Ql);function Zi(i){if(i===Ql)throw Error(n(174));return i}function Hf(i,a){switch(_n(Jl,a),_n(Yl,i),_n(Do,Ql),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:St(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=St(a,i)}Nn(Do),_n(Do,a)}function Va(){Nn(Do),Nn(Yl),Nn(Jl)}function Jv(i){Zi(Jl.current);var a=Zi(Do.current),f=St(a,i.type);a!==f&&(_n(Yl,i),_n(Do,f))}function Ff(i){Yl.current===i&&(Nn(Do),Nn(Yl))}var jn=Ci(0);function zc(i){for(var a=i;a!==null;){if(a.tag===13){var f=a.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.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 Vf=[];function Wf(){for(var i=0;i<Vf.length;i++)Vf[i]._workInProgressVersionPrimary=null;Vf.length=0}var Lc=R.ReactCurrentDispatcher,Uf=R.ReactCurrentBatchConfig,ea=0,zn=null,Zn=null,ar=null,Bc=!1,Zl=!1,es=0,Z$=0;function Sr(){throw Error(n(321))}function qf(i,a){if(a===null)return!1;for(var f=0;f<a.length&&f<i.length;f++)if(!$o(i[f],a[f]))return!1;return!0}function Gf(i,a,f,h,x,E){if(ea=E,zn=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Lc.current=i===null||i.memoizedState===null?rE:oE,i=f(h,x),Zl){E=0;do{if(Zl=!1,es=0,25<=E)throw Error(n(301));E+=1,ar=Zn=null,a.updateQueue=null,Lc.current=iE,i=f(h,x)}while(Zl)}if(Lc.current=Hc,a=Zn!==null&&Zn.next!==null,ea=0,ar=Zn=zn=null,Bc=!1,a)throw Error(n(300));return i}function Kf(){var i=es!==0;return es=0,i}function Ho(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ar===null?zn.memoizedState=ar=i:ar=ar.next=i,ar}function co(){if(Zn===null){var i=zn.alternate;i=i!==null?i.memoizedState:null}else i=Zn.next;var a=ar===null?zn.memoizedState:ar.next;if(a!==null)ar=a,Zn=i;else{if(i===null)throw Error(n(310));Zn=i,i={memoizedState:Zn.memoizedState,baseState:Zn.baseState,baseQueue:Zn.baseQueue,queue:Zn.queue,next:null},ar===null?zn.memoizedState=ar=i:ar=ar.next=i}return ar}function ts(i,a){return typeof a=="function"?a(i):a}function Xf(i){var a=co(),f=a.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=i;var h=Zn,x=h.baseQueue,E=f.pending;if(E!==null){if(x!==null){var M=x.next;x.next=E.next,E.next=M}h.baseQueue=x=E,f.pending=null}if(x!==null){E=x.next,h=h.baseState;var X=M=null,oe=null,be=E;do{var Me=be.lane;if((ea&Me)===Me)oe!==null&&(oe=oe.next={lane:0,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),h=be.hasEagerState?be.eagerState:i(h,be.action);else{var Be={lane:Me,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};oe===null?(X=oe=Be,M=h):oe=oe.next=Be,zn.lanes|=Me,ta|=Me}be=be.next}while(be!==null&&be!==E);oe===null?M=h:oe.next=X,$o(h,a.memoizedState)||(Hr=!0),a.memoizedState=h,a.baseState=M,a.baseQueue=oe,f.lastRenderedState=h}if(i=f.interleaved,i!==null){x=i;do E=x.lane,zn.lanes|=E,ta|=E,x=x.next;while(x!==i)}else x===null&&(f.lanes=0);return[a.memoizedState,f.dispatch]}function Qf(i){var a=co(),f=a.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=i;var h=f.dispatch,x=f.pending,E=a.memoizedState;if(x!==null){f.pending=null;var M=x=x.next;do E=i(E,M.action),M=M.next;while(M!==x);$o(E,a.memoizedState)||(Hr=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),f.lastRenderedState=E}return[E,h]}function Zv(){}function e0(i,a){var f=zn,h=co(),x=a(),E=!$o(h.memoizedState,x);if(E&&(h.memoizedState=x,Hr=!0),h=h.queue,Yf(r0.bind(null,f,h,i),[i]),h.getSnapshot!==a||E||ar!==null&&ar.memoizedState.tag&1){if(f.flags|=2048,ns(9,n0.bind(null,f,h,x,a),void 0,null),lr===null)throw Error(n(349));(ea&30)!==0||t0(f,a,x)}return x}function t0(i,a,f){i.flags|=16384,i={getSnapshot:a,value:f},a=zn.updateQueue,a===null?(a={lastEffect:null,stores:null},zn.updateQueue=a,a.stores=[i]):(f=a.stores,f===null?a.stores=[i]:f.push(i))}function n0(i,a,f,h){a.value=f,a.getSnapshot=h,o0(a)&&i0(i)}function r0(i,a,f){return f(function(){o0(a)&&i0(i)})}function o0(i){var a=i.getSnapshot;i=i.value;try{var f=a();return!$o(i,f)}catch{return!0}}function i0(i){var a=ii(i,1);a!==null&&_o(a,i,1,-1)}function a0(i){var a=Ho();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:i},a.queue=i,i=i.dispatch=nE.bind(null,zn,i),[a.memoizedState,i]}function ns(i,a,f,h){return i={tag:i,create:a,destroy:f,deps:h,next:null},a=zn.updateQueue,a===null?(a={lastEffect:null,stores:null},zn.updateQueue=a,a.lastEffect=i.next=i):(f=a.lastEffect,f===null?a.lastEffect=i.next=i:(h=f.next,f.next=i,i.next=h,a.lastEffect=i)),i}function l0(){return co().memoizedState}function Ac(i,a,f,h){var x=Ho();zn.flags|=i,x.memoizedState=ns(1|a,f,void 0,h===void 0?null:h)}function Dc(i,a,f,h){var x=co();h=h===void 0?null:h;var E=void 0;if(Zn!==null){var M=Zn.memoizedState;if(E=M.destroy,h!==null&&qf(h,M.deps)){x.memoizedState=ns(a,f,E,h);return}}zn.flags|=i,x.memoizedState=ns(1|a,f,E,h)}function s0(i,a){return Ac(8390656,8,i,a)}function Yf(i,a){return Dc(2048,8,i,a)}function c0(i,a){return Dc(4,2,i,a)}function u0(i,a){return Dc(4,4,i,a)}function d0(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 f0(i,a,f){return f=f!=null?f.concat([i]):null,Dc(4,4,d0.bind(null,a,i),f)}function Jf(){}function m0(i,a){var f=co();a=a===void 0?null:a;var h=f.memoizedState;return h!==null&&a!==null&&qf(a,h[1])?h[0]:(f.memoizedState=[i,a],i)}function p0(i,a){var f=co();a=a===void 0?null:a;var h=f.memoizedState;return h!==null&&a!==null&&qf(a,h[1])?h[0]:(i=i(),f.memoizedState=[i,a],i)}function g0(i,a,f){return(ea&21)===0?(i.baseState&&(i.baseState=!1,Hr=!0),i.memoizedState=f):($o(f,a)||(f=nn(),zn.lanes|=f,ta|=f,i.baseState=!0),a)}function eE(i,a){var f=At;At=f!==0&&4>f?f:4,i(!0);var h=Uf.transition;Uf.transition={};try{i(!1),a()}finally{At=f,Uf.transition=h}}function h0(){return co().memoizedState}function tE(i,a,f){var h=Ii(i);if(f={lane:h,action:f,hasEagerState:!1,eagerState:null,next:null},v0(i))y0(a,f);else if(f=Kv(i,a,f,h),f!==null){var x=Tr();_o(f,i,h,x),b0(f,a,h)}}function nE(i,a,f){var h=Ii(i),x={lane:h,action:f,hasEagerState:!1,eagerState:null,next:null};if(v0(i))y0(a,x);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var M=a.lastRenderedState,X=E(M,f);if(x.hasEagerState=!0,x.eagerState=X,$o(X,M)){var oe=a.interleaved;oe===null?(x.next=x,Af(a)):(x.next=oe.next,oe.next=x),a.interleaved=x;return}}catch{}finally{}f=Kv(i,a,x,h),f!==null&&(x=Tr(),_o(f,i,h,x),b0(f,a,h))}}function v0(i){var a=i.alternate;return i===zn||a!==null&&a===zn}function y0(i,a){Zl=Bc=!0;var f=i.pending;f===null?a.next=a:(a.next=f.next,f.next=a),i.pending=a}function b0(i,a,f){if((f&4194240)!==0){var h=a.lanes;h&=i.pendingLanes,f|=h,a.lanes=f,Fn(i,f)}}var Hc={readContext:so,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useInsertionEffect:Sr,useLayoutEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useMutableSource:Sr,useSyncExternalStore:Sr,useId:Sr,unstable_isNewReconciler:!1},rE={readContext:so,useCallback:function(i,a){return Ho().memoizedState=[i,a===void 0?null:a],i},useContext:so,useEffect:s0,useImperativeHandle:function(i,a,f){return f=f!=null?f.concat([i]):null,Ac(4194308,4,d0.bind(null,a,i),f)},useLayoutEffect:function(i,a){return Ac(4194308,4,i,a)},useInsertionEffect:function(i,a){return Ac(4,2,i,a)},useMemo:function(i,a){var f=Ho();return a=a===void 0?null:a,i=i(),f.memoizedState=[i,a],i},useReducer:function(i,a,f){var h=Ho();return a=f!==void 0?f(a):a,h.memoizedState=h.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},h.queue=i,i=i.dispatch=tE.bind(null,zn,i),[h.memoizedState,i]},useRef:function(i){var a=Ho();return i={current:i},a.memoizedState=i},useState:a0,useDebugValue:Jf,useDeferredValue:function(i){return Ho().memoizedState=i},useTransition:function(){var i=a0(!1),a=i[0];return i=eE.bind(null,i[1]),Ho().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,f){var h=zn,x=Ho();if(kn){if(f===void 0)throw Error(n(407));f=f()}else{if(f=a(),lr===null)throw Error(n(349));(ea&30)!==0||t0(h,a,f)}x.memoizedState=f;var E={value:f,getSnapshot:a};return x.queue=E,s0(r0.bind(null,h,E,i),[i]),h.flags|=2048,ns(9,n0.bind(null,h,E,f,a),void 0,null),f},useId:function(){var i=Ho(),a=lr.identifierPrefix;if(kn){var f=oi,h=ri;f=(h&~(1<<32-Rn(h)-1)).toString(32)+f,a=":"+a+"R"+f,f=es++,0<f&&(a+="H"+f.toString(32)),a+=":"}else f=Z$++,a=":"+a+"r"+f.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},oE={readContext:so,useCallback:m0,useContext:so,useEffect:Yf,useImperativeHandle:f0,useInsertionEffect:c0,useLayoutEffect:u0,useMemo:p0,useReducer:Xf,useRef:l0,useState:function(){return Xf(ts)},useDebugValue:Jf,useDeferredValue:function(i){var a=co();return g0(a,Zn.memoizedState,i)},useTransition:function(){var i=Xf(ts)[0],a=co().memoizedState;return[i,a]},useMutableSource:Zv,useSyncExternalStore:e0,useId:h0,unstable_isNewReconciler:!1},iE={readContext:so,useCallback:m0,useContext:so,useEffect:Yf,useImperativeHandle:f0,useInsertionEffect:c0,useLayoutEffect:u0,useMemo:p0,useReducer:Qf,useRef:l0,useState:function(){return Qf(ts)},useDebugValue:Jf,useDeferredValue:function(i){var a=co();return Zn===null?a.memoizedState=i:g0(a,Zn.memoizedState,i)},useTransition:function(){var i=Qf(ts)[0],a=co().memoizedState;return[i,a]},useMutableSource:Zv,useSyncExternalStore:e0,useId:h0,unstable_isNewReconciler:!1};function Oo(i,a){if(i&&i.defaultProps){a=U({},a),i=i.defaultProps;for(var f in i)a[f]===void 0&&(a[f]=i[f]);return a}return a}function Zf(i,a,f,h){a=i.memoizedState,f=f(h,a),f=f==null?a:U({},a,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var Fc={isMounted:function(i){return(i=i._reactInternals)?Tt(i)===i:!1},enqueueSetState:function(i,a,f){i=i._reactInternals;var h=Tr(),x=Ii(i),E=ai(h,x);E.payload=a,f!=null&&(E.callback=f),a=$i(i,E,x),a!==null&&(_o(a,i,x,h),Mc(a,i,x))},enqueueReplaceState:function(i,a,f){i=i._reactInternals;var h=Tr(),x=Ii(i),E=ai(h,x);E.tag=1,E.payload=a,f!=null&&(E.callback=f),a=$i(i,E,x),a!==null&&(_o(a,i,x,h),Mc(a,i,x))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var f=Tr(),h=Ii(i),x=ai(f,h);x.tag=2,a!=null&&(x.callback=a),a=$i(i,x,h),a!==null&&(_o(a,i,h,f),Mc(a,i,h))}};function C0(i,a,f,h,x,E,M){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,E,M):a.prototype&&a.prototype.isPureReactComponent?!Fl(f,h)||!Fl(x,E):!0}function S0(i,a,f){var h=!1,x=Si,E=a.contextType;return typeof E=="object"&&E!==null?E=so(E):(x=Dr(a)?Xi:Cr.current,h=a.contextTypes,E=(h=h!=null)?za(i,x):Si),a=new a(f,E),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Fc,i.stateNode=a,a._reactInternals=i,h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=x,i.__reactInternalMemoizedMaskedChildContext=E),a}function x0(i,a,f,h){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(f,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(f,h),a.state!==i&&Fc.enqueueReplaceState(a,a.state,null)}function em(i,a,f,h){var x=i.stateNode;x.props=f,x.state=i.memoizedState,x.refs={},Df(i);var E=a.contextType;typeof E=="object"&&E!==null?x.context=so(E):(E=Dr(a)?Xi:Cr.current,x.context=za(i,E)),x.state=i.memoizedState,E=a.getDerivedStateFromProps,typeof E=="function"&&(Zf(i,a,E,f),x.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(a=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),a!==x.state&&Fc.enqueueReplaceState(x,x.state,null),jc(i,f,x,h),x.state=i.memoizedState),typeof x.componentDidMount=="function"&&(i.flags|=4194308)}function Wa(i,a){try{var f="",h=a;do f+=te(h),h=h.return;while(h);var x=f}catch(E){x=`
39
- Error generating stack: `+E.message+`
40
- `+E.stack}return{value:i,source:a,stack:x,digest:null}}function tm(i,a,f){return{value:i,source:null,stack:f??null,digest:a??null}}function nm(i,a){try{console.error(a.value)}catch(f){setTimeout(function(){throw f})}}var aE=typeof WeakMap=="function"?WeakMap:Map;function w0(i,a,f){f=ai(-1,f),f.tag=3,f.payload={element:null};var h=a.value;return f.callback=function(){Xc||(Xc=!0,vm=h),nm(i,a)},f}function $0(i,a,f){f=ai(-1,f),f.tag=3;var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var x=a.value;f.payload=function(){return h(x)},f.callback=function(){nm(i,a)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(f.callback=function(){nm(i,a),typeof h!="function"&&(Oi===null?Oi=new Set([this]):Oi.add(this));var M=a.stack;this.componentDidCatch(a.value,{componentStack:M!==null?M:""})}),f}function E0(i,a,f){var h=i.pingCache;if(h===null){h=i.pingCache=new aE;var x=new Set;h.set(a,x)}else x=h.get(a),x===void 0&&(x=new Set,h.set(a,x));x.has(f)||(x.add(f),i=CE.bind(null,i,a,f),a.then(i,i))}function O0(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 R0(i,a,f,h,x){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(a=ai(-1,1),a.tag=2,$i(f,a,1))),f.lanes|=1),i):(i.flags|=65536,i.lanes=x,i)}var lE=R.ReactCurrentOwner,Hr=!1;function Pr(i,a,f,h){a.child=i===null?Gv(a,null,f,h):Da(a,i.child,f,h)}function I0(i,a,f,h,x){f=f.render;var E=a.ref;return Fa(a,x),h=Gf(i,a,f,h,E,x),f=Kf(),i!==null&&!Hr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~x,li(i,a,x)):(kn&&f&&Pf(a),a.flags|=1,Pr(i,a,h,x),a.child)}function _0(i,a,f,h,x){if(i===null){var E=f.type;return typeof E=="function"&&!$m(E)&&E.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(a.tag=15,a.type=E,P0(i,a,E,h,x)):(i=tu(f.type,null,h,a,a.mode,x),i.ref=a.ref,i.return=a,a.child=i)}if(E=i.child,(i.lanes&x)===0){var M=E.memoizedProps;if(f=f.compare,f=f!==null?f:Fl,f(M,h)&&i.ref===a.ref)return li(i,a,x)}return a.flags|=1,i=Pi(E,h),i.ref=a.ref,i.return=a,a.child=i}function P0(i,a,f,h,x){if(i!==null){var E=i.memoizedProps;if(Fl(E,h)&&i.ref===a.ref)if(Hr=!1,a.pendingProps=h=E,(i.lanes&x)!==0)(i.flags&131072)!==0&&(Hr=!0);else return a.lanes=i.lanes,li(i,a,x)}return rm(i,a,f,h,x)}function T0(i,a,f){var h=a.pendingProps,x=h.children,E=i!==null?i.memoizedState:null;if(h.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},_n(qa,Yr),Yr|=f;else{if((f&1073741824)===0)return i=E!==null?E.baseLanes|f:f,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,_n(qa,Yr),Yr|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=E!==null?E.baseLanes:f,_n(qa,Yr),Yr|=h}else E!==null?(h=E.baseLanes|f,a.memoizedState=null):h=f,_n(qa,Yr),Yr|=h;return Pr(i,a,x,f),a.child}function N0(i,a){var f=a.ref;(i===null&&f!==null||i!==null&&i.ref!==f)&&(a.flags|=512,a.flags|=2097152)}function rm(i,a,f,h,x){var E=Dr(f)?Xi:Cr.current;return E=za(a,E),Fa(a,x),f=Gf(i,a,f,h,E,x),h=Kf(),i!==null&&!Hr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~x,li(i,a,x)):(kn&&h&&Pf(a),a.flags|=1,Pr(i,a,f,x),a.child)}function k0(i,a,f,h,x){if(Dr(f)){var E=!0;Oc(a)}else E=!1;if(Fa(a,x),a.stateNode===null)Wc(i,a),S0(a,f,h),em(a,f,h,x),h=!0;else if(i===null){var M=a.stateNode,X=a.memoizedProps;M.props=X;var oe=M.context,be=f.contextType;typeof be=="object"&&be!==null?be=so(be):(be=Dr(f)?Xi:Cr.current,be=za(a,be));var Me=f.getDerivedStateFromProps,Be=typeof Me=="function"||typeof M.getSnapshotBeforeUpdate=="function";Be||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(X!==h||oe!==be)&&x0(a,M,h,be),wi=!1;var Pe=a.memoizedState;M.state=Pe,jc(a,h,M,x),oe=a.memoizedState,X!==h||Pe!==oe||Ar.current||wi?(typeof Me=="function"&&(Zf(a,f,Me,h),oe=a.memoizedState),(X=wi||C0(a,f,X,h,Pe,oe,be))?(Be||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(a.flags|=4194308)):(typeof M.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=oe),M.props=h,M.state=oe,M.context=be,h=X):(typeof M.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{M=a.stateNode,Xv(i,a),X=a.memoizedProps,be=a.type===a.elementType?X:Oo(a.type,X),M.props=be,Be=a.pendingProps,Pe=M.context,oe=f.contextType,typeof oe=="object"&&oe!==null?oe=so(oe):(oe=Dr(f)?Xi:Cr.current,oe=za(a,oe));var it=f.getDerivedStateFromProps;(Me=typeof it=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(X!==Be||Pe!==oe)&&x0(a,M,h,oe),wi=!1,Pe=a.memoizedState,M.state=Pe,jc(a,h,M,x);var vt=a.memoizedState;X!==Be||Pe!==vt||Ar.current||wi?(typeof it=="function"&&(Zf(a,f,it,h),vt=a.memoizedState),(be=wi||C0(a,f,be,h,Pe,vt,oe)||!1)?(Me||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(h,vt,oe),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(h,vt,oe)),typeof M.componentDidUpdate=="function"&&(a.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof M.componentDidUpdate!="function"||X===i.memoizedProps&&Pe===i.memoizedState||(a.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||X===i.memoizedProps&&Pe===i.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=vt),M.props=h,M.state=vt,M.context=oe,h=be):(typeof M.componentDidUpdate!="function"||X===i.memoizedProps&&Pe===i.memoizedState||(a.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||X===i.memoizedProps&&Pe===i.memoizedState||(a.flags|=1024),h=!1)}return om(i,a,f,h,E,x)}function om(i,a,f,h,x,E){N0(i,a);var M=(a.flags&128)!==0;if(!h&&!M)return x&&Bv(a,f,!1),li(i,a,E);h=a.stateNode,lE.current=a;var X=M&&typeof f.getDerivedStateFromError!="function"?null:h.render();return a.flags|=1,i!==null&&M?(a.child=Da(a,i.child,null,E),a.child=Da(a,null,X,E)):Pr(i,a,X,E),a.memoizedState=h.state,x&&Bv(a,f,!0),a.child}function M0(i){var a=i.stateNode;a.pendingContext?zv(i,a.pendingContext,a.pendingContext!==a.context):a.context&&zv(i,a.context,!1),Hf(i,a.containerInfo)}function j0(i,a,f,h,x){return Aa(),Mf(x),a.flags|=256,Pr(i,a,f,h),a.child}var im={dehydrated:null,treeContext:null,retryLane:0};function am(i){return{baseLanes:i,cachePool:null,transitions:null}}function z0(i,a,f){var h=a.pendingProps,x=jn.current,E=!1,M=(a.flags&128)!==0,X;if((X=M)||(X=i!==null&&i.memoizedState===null?!1:(x&2)!==0),X?(E=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(x|=1),_n(jn,x&1),i===null)return kf(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):(M=h.children,i=h.fallback,E?(h=a.mode,E=a.child,M={mode:"hidden",children:M},(h&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=M):E=nu(M,h,0,null),i=ia(i,h,f,null),E.return=a,i.return=a,E.sibling=i,a.child=E,a.child.memoizedState=am(f),a.memoizedState=im,i):lm(a,M));if(x=i.memoizedState,x!==null&&(X=x.dehydrated,X!==null))return sE(i,a,M,h,X,x,f);if(E){E=h.fallback,M=a.mode,x=i.child,X=x.sibling;var oe={mode:"hidden",children:h.children};return(M&1)===0&&a.child!==x?(h=a.child,h.childLanes=0,h.pendingProps=oe,a.deletions=null):(h=Pi(x,oe),h.subtreeFlags=x.subtreeFlags&14680064),X!==null?E=Pi(X,E):(E=ia(E,M,f,null),E.flags|=2),E.return=a,h.return=a,h.sibling=E,a.child=h,h=E,E=a.child,M=i.child.memoizedState,M=M===null?am(f):{baseLanes:M.baseLanes|f,cachePool:null,transitions:M.transitions},E.memoizedState=M,E.childLanes=i.childLanes&~f,a.memoizedState=im,h}return E=i.child,i=E.sibling,h=Pi(E,{mode:"visible",children:h.children}),(a.mode&1)===0&&(h.lanes=f),h.return=a,h.sibling=null,i!==null&&(f=a.deletions,f===null?(a.deletions=[i],a.flags|=16):f.push(i)),a.child=h,a.memoizedState=null,h}function lm(i,a){return a=nu({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function Vc(i,a,f,h){return h!==null&&Mf(h),Da(a,i.child,null,f),i=lm(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function sE(i,a,f,h,x,E,M){if(f)return a.flags&256?(a.flags&=-257,h=tm(Error(n(422))),Vc(i,a,M,h)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(E=h.fallback,x=a.mode,h=nu({mode:"visible",children:h.children},x,0,null),E=ia(E,x,M,null),E.flags|=2,h.return=a,E.return=a,h.sibling=E,a.child=h,(a.mode&1)!==0&&Da(a,i.child,null,M),a.child.memoizedState=am(M),a.memoizedState=im,E);if((a.mode&1)===0)return Vc(i,a,M,null);if(x.data==="$!"){if(h=x.nextSibling&&x.nextSibling.dataset,h)var X=h.dgst;return h=X,E=Error(n(419)),h=tm(E,h,void 0),Vc(i,a,M,h)}if(X=(M&i.childLanes)!==0,Hr||X){if(h=lr,h!==null){switch(M&-M){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(h.suspendedLanes|M))!==0?0:x,x!==0&&x!==E.retryLane&&(E.retryLane=x,ii(i,x),_o(h,i,x,-1))}return wm(),h=tm(Error(n(421))),Vc(i,a,M,h)}return x.data==="$?"?(a.flags|=128,a.child=i.child,a=SE.bind(null,i),x._reactRetry=a,null):(i=E.treeContext,Qr=bi(x.nextSibling),Xr=a,kn=!0,Eo=null,i!==null&&(ao[lo++]=ri,ao[lo++]=oi,ao[lo++]=Qi,ri=i.id,oi=i.overflow,Qi=a),a=lm(a,h.children),a.flags|=4096,a)}function L0(i,a,f){i.lanes|=a;var h=i.alternate;h!==null&&(h.lanes|=a),Bf(i.return,a,f)}function sm(i,a,f,h,x){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:f,tailMode:x}:(E.isBackwards=a,E.rendering=null,E.renderingStartTime=0,E.last=h,E.tail=f,E.tailMode=x)}function B0(i,a,f){var h=a.pendingProps,x=h.revealOrder,E=h.tail;if(Pr(i,a,h.children,f),h=jn.current,(h&2)!==0)h=h&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&&L0(i,f,a);else if(i.tag===19)L0(i,f,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}h&=1}if(_n(jn,h),(a.mode&1)===0)a.memoizedState=null;else switch(x){case"forwards":for(f=a.child,x=null;f!==null;)i=f.alternate,i!==null&&zc(i)===null&&(x=f),f=f.sibling;f=x,f===null?(x=a.child,a.child=null):(x=f.sibling,f.sibling=null),sm(a,!1,x,f,E);break;case"backwards":for(f=null,x=a.child,a.child=null;x!==null;){if(i=x.alternate,i!==null&&zc(i)===null){a.child=x;break}i=x.sibling,x.sibling=f,f=x,x=i}sm(a,!0,f,null,E);break;case"together":sm(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 li(i,a,f){if(i!==null&&(a.dependencies=i.dependencies),ta|=a.lanes,(f&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,f=Pi(i,i.pendingProps),a.child=f,f.return=a;i.sibling!==null;)i=i.sibling,f=f.sibling=Pi(i,i.pendingProps),f.return=a;f.sibling=null}return a.child}function cE(i,a,f){switch(a.tag){case 3:M0(a),Aa();break;case 5:Jv(a);break;case 1:Dr(a.type)&&Oc(a);break;case 4:Hf(a,a.stateNode.containerInfo);break;case 10:var h=a.type._context,x=a.memoizedProps.value;_n(Nc,h._currentValue),h._currentValue=x;break;case 13:if(h=a.memoizedState,h!==null)return h.dehydrated!==null?(_n(jn,jn.current&1),a.flags|=128,null):(f&a.child.childLanes)!==0?z0(i,a,f):(_n(jn,jn.current&1),i=li(i,a,f),i!==null?i.sibling:null);_n(jn,jn.current&1);break;case 19:if(h=(f&a.childLanes)!==0,(i.flags&128)!==0){if(h)return B0(i,a,f);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),_n(jn,jn.current),h)break;return null;case 22:case 23:return a.lanes=0,T0(i,a,f)}return li(i,a,f)}var A0,cm,D0,H0;A0=function(i,a){for(var f=a.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break;for(;f.sibling===null;){if(f.return===null||f.return===a)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},cm=function(){},D0=function(i,a,f,h){var x=i.memoizedProps;if(x!==h){i=a.stateNode,Zi(Do.current);var E=null;switch(f){case"input":x=ye(i,x),h=ye(i,h),E=[];break;case"select":x=U({},x,{value:void 0}),h=U({},h,{value:void 0}),E=[];break;case"textarea":x=$e(i,x),h=$e(i,h),E=[];break;default:typeof x.onClick!="function"&&typeof h.onClick=="function"&&(i.onclick=wc)}Te(f,h);var M;f=null;for(be in x)if(!h.hasOwnProperty(be)&&x.hasOwnProperty(be)&&x[be]!=null)if(be==="style"){var X=x[be];for(M in X)X.hasOwnProperty(M)&&(f||(f={}),f[M]="")}else be!=="dangerouslySetInnerHTML"&&be!=="children"&&be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&be!=="autoFocus"&&(o.hasOwnProperty(be)?E||(E=[]):(E=E||[]).push(be,null));for(be in h){var oe=h[be];if(X=x!=null?x[be]:void 0,h.hasOwnProperty(be)&&oe!==X&&(oe!=null||X!=null))if(be==="style")if(X){for(M in X)!X.hasOwnProperty(M)||oe&&oe.hasOwnProperty(M)||(f||(f={}),f[M]="");for(M in oe)oe.hasOwnProperty(M)&&X[M]!==oe[M]&&(f||(f={}),f[M]=oe[M])}else f||(E||(E=[]),E.push(be,f)),f=oe;else be==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,X=X?X.__html:void 0,oe!=null&&X!==oe&&(E=E||[]).push(be,oe)):be==="children"?typeof oe!="string"&&typeof oe!="number"||(E=E||[]).push(be,""+oe):be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&(o.hasOwnProperty(be)?(oe!=null&&be==="onScroll"&&Tn("scroll",i),E||X===oe||(E=[])):(E=E||[]).push(be,oe))}f&&(E=E||[]).push("style",f);var be=E;(a.updateQueue=be)&&(a.flags|=4)}},H0=function(i,a,f,h){f!==h&&(a.flags|=4)};function rs(i,a){if(!kn)switch(i.tailMode){case"hidden":a=i.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?i.tail=null:f.sibling=null;break;case"collapsed":f=i.tail;for(var h=null;f!==null;)f.alternate!==null&&(h=f),f=f.sibling;h===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function xr(i){var a=i.alternate!==null&&i.alternate.child===i.child,f=0,h=0;if(a)for(var x=i.child;x!==null;)f|=x.lanes|x.childLanes,h|=x.subtreeFlags&14680064,h|=x.flags&14680064,x.return=i,x=x.sibling;else for(x=i.child;x!==null;)f|=x.lanes|x.childLanes,h|=x.subtreeFlags,h|=x.flags,x.return=i,x=x.sibling;return i.subtreeFlags|=h,i.childLanes=f,a}function uE(i,a,f){var h=a.pendingProps;switch(Tf(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xr(a),null;case 1:return Dr(a.type)&&Ec(),xr(a),null;case 3:return h=a.stateNode,Va(),Nn(Ar),Nn(Cr),Wf(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(i===null||i.child===null)&&(Pc(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Eo!==null&&(Cm(Eo),Eo=null))),cm(i,a),xr(a),null;case 5:Ff(a);var x=Zi(Jl.current);if(f=a.type,i!==null&&a.stateNode!=null)D0(i,a,f,h,x),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!h){if(a.stateNode===null)throw Error(n(166));return xr(a),null}if(i=Zi(Do.current),Pc(a)){h=a.stateNode,f=a.type;var E=a.memoizedProps;switch(h[Ao]=a,h[Gl]=E,i=(a.mode&1)!==0,f){case"dialog":Tn("cancel",h),Tn("close",h);break;case"iframe":case"object":case"embed":Tn("load",h);break;case"video":case"audio":for(x=0;x<Wl.length;x++)Tn(Wl[x],h);break;case"source":Tn("error",h);break;case"img":case"image":case"link":Tn("error",h),Tn("load",h);break;case"details":Tn("toggle",h);break;case"input":de(h,E),Tn("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!E.multiple},Tn("invalid",h);break;case"textarea":ke(h,E),Tn("invalid",h)}Te(f,E),x=null;for(var M in E)if(E.hasOwnProperty(M)){var X=E[M];M==="children"?typeof X=="string"?h.textContent!==X&&(E.suppressHydrationWarning!==!0&&xc(h.textContent,X,i),x=["children",X]):typeof X=="number"&&h.textContent!==""+X&&(E.suppressHydrationWarning!==!0&&xc(h.textContent,X,i),x=["children",""+X]):o.hasOwnProperty(M)&&X!=null&&M==="onScroll"&&Tn("scroll",h)}switch(f){case"input":le(h),Se(h,E,!0);break;case"textarea":le(h),Ge(h);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(h.onclick=wc)}h=x,a.updateQueue=h,h!==null&&(a.flags|=4)}else{M=x.nodeType===9?x:x.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=tt(f)),i==="http://www.w3.org/1999/xhtml"?f==="script"?(i=M.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=M.createElement(f,{is:h.is}):(i=M.createElement(f),f==="select"&&(M=i,h.multiple?M.multiple=!0:h.size&&(M.size=h.size))):i=M.createElementNS(i,f),i[Ao]=a,i[Gl]=h,A0(i,a,!1,!1),a.stateNode=i;e:{switch(M=He(f,h),f){case"dialog":Tn("cancel",i),Tn("close",i),x=h;break;case"iframe":case"object":case"embed":Tn("load",i),x=h;break;case"video":case"audio":for(x=0;x<Wl.length;x++)Tn(Wl[x],i);x=h;break;case"source":Tn("error",i),x=h;break;case"img":case"image":case"link":Tn("error",i),Tn("load",i),x=h;break;case"details":Tn("toggle",i),x=h;break;case"input":de(i,h),x=ye(i,h),Tn("invalid",i);break;case"option":x=h;break;case"select":i._wrapperState={wasMultiple:!!h.multiple},x=U({},h,{value:void 0}),Tn("invalid",i);break;case"textarea":ke(i,h),x=$e(i,h),Tn("invalid",i);break;default:x=h}Te(f,x),X=x;for(E in X)if(X.hasOwnProperty(E)){var oe=X[E];E==="style"?je(i,oe):E==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,oe!=null&&qe(i,oe)):E==="children"?typeof oe=="string"?(f!=="textarea"||oe!=="")&&at(i,oe):typeof oe=="number"&&at(i,""+oe):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?oe!=null&&E==="onScroll"&&Tn("scroll",i):oe!=null&&O(i,E,oe,M))}switch(f){case"input":le(i),Se(i,h,!1);break;case"textarea":le(i),Ge(i);break;case"option":h.value!=null&&i.setAttribute("value",""+me(h.value));break;case"select":i.multiple=!!h.multiple,E=h.value,E!=null?we(i,!!h.multiple,E,!1):h.defaultValue!=null&&we(i,!!h.multiple,h.defaultValue,!0);break;default:typeof x.onClick=="function"&&(i.onclick=wc)}switch(f){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return xr(a),null;case 6:if(i&&a.stateNode!=null)H0(i,a,i.memoizedProps,h);else{if(typeof h!="string"&&a.stateNode===null)throw Error(n(166));if(f=Zi(Jl.current),Zi(Do.current),Pc(a)){if(h=a.stateNode,f=a.memoizedProps,h[Ao]=a,(E=h.nodeValue!==f)&&(i=Xr,i!==null))switch(i.tag){case 3:xc(h.nodeValue,f,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&xc(h.nodeValue,f,(i.mode&1)!==0)}E&&(a.flags|=4)}else h=(f.nodeType===9?f:f.ownerDocument).createTextNode(h),h[Ao]=a,a.stateNode=h}return xr(a),null;case 13:if(Nn(jn),h=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(kn&&Qr!==null&&(a.mode&1)!==0&&(a.flags&128)===0)Wv(),Aa(),a.flags|=98560,E=!1;else if(E=Pc(a),h!==null&&h.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[Ao]=a}else Aa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;xr(a),E=!1}else Eo!==null&&(Cm(Eo),Eo=null),E=!0;if(!E)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=f,a):(h=h!==null,h!==(i!==null&&i.memoizedState!==null)&&h&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(jn.current&1)!==0?er===0&&(er=3):wm())),a.updateQueue!==null&&(a.flags|=4),xr(a),null);case 4:return Va(),cm(i,a),i===null&&Ul(a.stateNode.containerInfo),xr(a),null;case 10:return Lf(a.type._context),xr(a),null;case 17:return Dr(a.type)&&Ec(),xr(a),null;case 19:if(Nn(jn),E=a.memoizedState,E===null)return xr(a),null;if(h=(a.flags&128)!==0,M=E.rendering,M===null)if(h)rs(E,!1);else{if(er!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(M=zc(i),M!==null){for(a.flags|=128,rs(E,!1),h=M.updateQueue,h!==null&&(a.updateQueue=h,a.flags|=4),a.subtreeFlags=0,h=f,f=a.child;f!==null;)E=f,i=h,E.flags&=14680066,M=E.alternate,M===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=M.childLanes,E.lanes=M.lanes,E.child=M.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=M.memoizedProps,E.memoizedState=M.memoizedState,E.updateQueue=M.updateQueue,E.type=M.type,i=M.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),f=f.sibling;return _n(jn,jn.current&1|2),a.child}i=i.sibling}E.tail!==null&&ut()>Ga&&(a.flags|=128,h=!0,rs(E,!1),a.lanes=4194304)}else{if(!h)if(i=zc(M),i!==null){if(a.flags|=128,h=!0,f=i.updateQueue,f!==null&&(a.updateQueue=f,a.flags|=4),rs(E,!0),E.tail===null&&E.tailMode==="hidden"&&!M.alternate&&!kn)return xr(a),null}else 2*ut()-E.renderingStartTime>Ga&&f!==1073741824&&(a.flags|=128,h=!0,rs(E,!1),a.lanes=4194304);E.isBackwards?(M.sibling=a.child,a.child=M):(f=E.last,f!==null?f.sibling=M:a.child=M,E.last=M)}return E.tail!==null?(a=E.tail,E.rendering=a,E.tail=a.sibling,E.renderingStartTime=ut(),a.sibling=null,f=jn.current,_n(jn,h?f&1|2:f&1),a):(xr(a),null);case 22:case 23:return xm(),h=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(a.flags|=8192),h&&(a.mode&1)!==0?(Yr&1073741824)!==0&&(xr(a),a.subtreeFlags&6&&(a.flags|=8192)):xr(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function dE(i,a){switch(Tf(a),a.tag){case 1:return Dr(a.type)&&Ec(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return Va(),Nn(Ar),Nn(Cr),Wf(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return Ff(a),null;case 13:if(Nn(jn),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Aa()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return Nn(jn),null;case 4:return Va(),null;case 10:return Lf(a.type._context),null;case 22:case 23:return xm(),null;case 24:return null;default:return null}}var Uc=!1,wr=!1,fE=typeof WeakSet=="function"?WeakSet:Set,pt=null;function Ua(i,a){var f=i.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(h){Bn(i,a,h)}else f.current=null}function um(i,a,f){try{f()}catch(h){Bn(i,a,h)}}var F0=!1;function mE(i,a){if(xf=dc,i=Cv(),pf(i)){if("selectionStart"in i)var f={start:i.selectionStart,end:i.selectionEnd};else e:{f=(f=i.ownerDocument)&&f.defaultView||window;var h=f.getSelection&&f.getSelection();if(h&&h.rangeCount!==0){f=h.anchorNode;var x=h.anchorOffset,E=h.focusNode;h=h.focusOffset;try{f.nodeType,E.nodeType}catch{f=null;break e}var M=0,X=-1,oe=-1,be=0,Me=0,Be=i,Pe=null;t:for(;;){for(var it;Be!==f||x!==0&&Be.nodeType!==3||(X=M+x),Be!==E||h!==0&&Be.nodeType!==3||(oe=M+h),Be.nodeType===3&&(M+=Be.nodeValue.length),(it=Be.firstChild)!==null;)Pe=Be,Be=it;for(;;){if(Be===i)break t;if(Pe===f&&++be===x&&(X=M),Pe===E&&++Me===h&&(oe=M),(it=Be.nextSibling)!==null)break;Be=Pe,Pe=Be.parentNode}Be=it}f=X===-1||oe===-1?null:{start:X,end:oe}}else f=null}f=f||{start:0,end:0}}else f=null;for(wf={focusedElem:i,selectionRange:f},dc=!1,pt=a;pt!==null;)if(a=pt,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,pt=i;else for(;pt!==null;){a=pt;try{var vt=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(vt!==null){var yt=vt.memoizedProps,Vn=vt.memoizedState,pe=a.stateNode,ie=pe.getSnapshotBeforeUpdate(a.elementType===a.type?yt:Oo(a.type,yt),Vn);pe.__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){Bn(a,a.return,De)}if(i=a.sibling,i!==null){i.return=a.return,pt=i;break}pt=a.return}return vt=F0,F0=!1,vt}function os(i,a,f){var h=a.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var x=h=h.next;do{if((x.tag&i)===i){var E=x.destroy;x.destroy=void 0,E!==void 0&&um(a,f,E)}x=x.next}while(x!==h)}}function qc(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do{if((f.tag&i)===i){var h=f.create;f.destroy=h()}f=f.next}while(f!==a)}}function dm(i){var a=i.ref;if(a!==null){var f=i.stateNode;switch(i.tag){case 5:i=f;break;default:i=f}typeof a=="function"?a(i):a.current=i}}function V0(i){var a=i.alternate;a!==null&&(i.alternate=null,V0(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[Ao],delete a[Gl],delete a[Rf],delete a[X$],delete a[Q$])),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 W0(i){return i.tag===5||i.tag===3||i.tag===4}function U0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||W0(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 fm(i,a,f){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?f.nodeType===8?f.parentNode.insertBefore(i,a):f.insertBefore(i,a):(f.nodeType===8?(a=f.parentNode,a.insertBefore(i,f)):(a=f,a.appendChild(i)),f=f._reactRootContainer,f!=null||a.onclick!==null||(a.onclick=wc));else if(h!==4&&(i=i.child,i!==null))for(fm(i,a,f),i=i.sibling;i!==null;)fm(i,a,f),i=i.sibling}function mm(i,a,f){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?f.insertBefore(i,a):f.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(mm(i,a,f),i=i.sibling;i!==null;)mm(i,a,f),i=i.sibling}var mr=null,Ro=!1;function Ei(i,a,f){for(f=f.child;f!==null;)q0(i,a,f),f=f.sibling}function q0(i,a,f){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(Rt,f)}catch{}switch(f.tag){case 5:wr||Ua(f,a);case 6:var h=mr,x=Ro;mr=null,Ei(i,a,f),mr=h,Ro=x,mr!==null&&(Ro?(i=mr,f=f.stateNode,i.nodeType===8?i.parentNode.removeChild(f):i.removeChild(f)):mr.removeChild(f.stateNode));break;case 18:mr!==null&&(Ro?(i=mr,f=f.stateNode,i.nodeType===8?Of(i.parentNode,f):i.nodeType===1&&Of(i,f),hi(i)):Of(mr,f.stateNode));break;case 4:h=mr,x=Ro,mr=f.stateNode.containerInfo,Ro=!0,Ei(i,a,f),mr=h,Ro=x;break;case 0:case 11:case 14:case 15:if(!wr&&(h=f.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){x=h=h.next;do{var E=x,M=E.destroy;E=E.tag,M!==void 0&&((E&2)!==0||(E&4)!==0)&&um(f,a,M),x=x.next}while(x!==h)}Ei(i,a,f);break;case 1:if(!wr&&(Ua(f,a),h=f.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=f.memoizedProps,h.state=f.memoizedState,h.componentWillUnmount()}catch(X){Bn(f,a,X)}Ei(i,a,f);break;case 21:Ei(i,a,f);break;case 22:f.mode&1?(wr=(h=wr)||f.memoizedState!==null,Ei(i,a,f),wr=h):Ei(i,a,f);break;default:Ei(i,a,f)}}function G0(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var f=i.stateNode;f===null&&(f=i.stateNode=new fE),a.forEach(function(h){var x=xE.bind(null,i,h);f.has(h)||(f.add(h),h.then(x,x))})}}function Io(i,a){var f=a.deletions;if(f!==null)for(var h=0;h<f.length;h++){var x=f[h];try{var E=i,M=a,X=M;e:for(;X!==null;){switch(X.tag){case 5:mr=X.stateNode,Ro=!1;break e;case 3:mr=X.stateNode.containerInfo,Ro=!0;break e;case 4:mr=X.stateNode.containerInfo,Ro=!0;break e}X=X.return}if(mr===null)throw Error(n(160));q0(E,M,x),mr=null,Ro=!1;var oe=x.alternate;oe!==null&&(oe.return=null),x.return=null}catch(be){Bn(x,a,be)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)K0(a,i),a=a.sibling}function K0(i,a){var f=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Io(a,i),Fo(i),h&4){try{os(3,i,i.return),qc(3,i)}catch(yt){Bn(i,i.return,yt)}try{os(5,i,i.return)}catch(yt){Bn(i,i.return,yt)}}break;case 1:Io(a,i),Fo(i),h&512&&f!==null&&Ua(f,f.return);break;case 5:if(Io(a,i),Fo(i),h&512&&f!==null&&Ua(f,f.return),i.flags&32){var x=i.stateNode;try{at(x,"")}catch(yt){Bn(i,i.return,yt)}}if(h&4&&(x=i.stateNode,x!=null)){var E=i.memoizedProps,M=f!==null?f.memoizedProps:E,X=i.type,oe=i.updateQueue;if(i.updateQueue=null,oe!==null)try{X==="input"&&E.type==="radio"&&E.name!=null&&se(x,E),He(X,M);var be=He(X,E);for(M=0;M<oe.length;M+=2){var Me=oe[M],Be=oe[M+1];Me==="style"?je(x,Be):Me==="dangerouslySetInnerHTML"?qe(x,Be):Me==="children"?at(x,Be):O(x,Me,Be,be)}switch(X){case"input":ve(x,E);break;case"textarea":Ie(x,E);break;case"select":var Pe=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!E.multiple;var it=E.value;it!=null?we(x,!!E.multiple,it,!1):Pe!==!!E.multiple&&(E.defaultValue!=null?we(x,!!E.multiple,E.defaultValue,!0):we(x,!!E.multiple,E.multiple?[]:"",!1))}x[Gl]=E}catch(yt){Bn(i,i.return,yt)}}break;case 6:if(Io(a,i),Fo(i),h&4){if(i.stateNode===null)throw Error(n(162));x=i.stateNode,E=i.memoizedProps;try{x.nodeValue=E}catch(yt){Bn(i,i.return,yt)}}break;case 3:if(Io(a,i),Fo(i),h&4&&f!==null&&f.memoizedState.isDehydrated)try{hi(a.containerInfo)}catch(yt){Bn(i,i.return,yt)}break;case 4:Io(a,i),Fo(i);break;case 13:Io(a,i),Fo(i),x=i.child,x.flags&8192&&(E=x.memoizedState!==null,x.stateNode.isHidden=E,!E||x.alternate!==null&&x.alternate.memoizedState!==null||(hm=ut())),h&4&&G0(i);break;case 22:if(Me=f!==null&&f.memoizedState!==null,i.mode&1?(wr=(be=wr)||Me,Io(a,i),wr=be):Io(a,i),Fo(i),h&8192){if(be=i.memoizedState!==null,(i.stateNode.isHidden=be)&&!Me&&(i.mode&1)!==0)for(pt=i,Me=i.child;Me!==null;){for(Be=pt=Me;pt!==null;){switch(Pe=pt,it=Pe.child,Pe.tag){case 0:case 11:case 14:case 15:os(4,Pe,Pe.return);break;case 1:Ua(Pe,Pe.return);var vt=Pe.stateNode;if(typeof vt.componentWillUnmount=="function"){h=Pe,f=Pe.return;try{a=h,vt.props=a.memoizedProps,vt.state=a.memoizedState,vt.componentWillUnmount()}catch(yt){Bn(h,f,yt)}}break;case 5:Ua(Pe,Pe.return);break;case 22:if(Pe.memoizedState!==null){Y0(Be);continue}}it!==null?(it.return=Pe,pt=it):Y0(Be)}Me=Me.sibling}e:for(Me=null,Be=i;;){if(Be.tag===5){if(Me===null){Me=Be;try{x=Be.stateNode,be?(E=x.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(X=Be.stateNode,oe=Be.memoizedProps.style,M=oe!=null&&oe.hasOwnProperty("display")?oe.display:null,X.style.display=Qe("display",M))}catch(yt){Bn(i,i.return,yt)}}}else if(Be.tag===6){if(Me===null)try{Be.stateNode.nodeValue=be?"":Be.memoizedProps}catch(yt){Bn(i,i.return,yt)}}else if((Be.tag!==22&&Be.tag!==23||Be.memoizedState===null||Be===i)&&Be.child!==null){Be.child.return=Be,Be=Be.child;continue}if(Be===i)break e;for(;Be.sibling===null;){if(Be.return===null||Be.return===i)break e;Me===Be&&(Me=null),Be=Be.return}Me===Be&&(Me=null),Be.sibling.return=Be.return,Be=Be.sibling}}break;case 19:Io(a,i),Fo(i),h&4&&G0(i);break;case 21:break;default:Io(a,i),Fo(i)}}function Fo(i){var a=i.flags;if(a&2){try{e:{for(var f=i.return;f!==null;){if(W0(f)){var h=f;break e}f=f.return}throw Error(n(160))}switch(h.tag){case 5:var x=h.stateNode;h.flags&32&&(at(x,""),h.flags&=-33);var E=U0(i);mm(i,E,x);break;case 3:case 4:var M=h.stateNode.containerInfo,X=U0(i);fm(i,X,M);break;default:throw Error(n(161))}}catch(oe){Bn(i,i.return,oe)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function pE(i,a,f){pt=i,X0(i)}function X0(i,a,f){for(var h=(i.mode&1)!==0;pt!==null;){var x=pt,E=x.child;if(x.tag===22&&h){var M=x.memoizedState!==null||Uc;if(!M){var X=x.alternate,oe=X!==null&&X.memoizedState!==null||wr;X=Uc;var be=wr;if(Uc=M,(wr=oe)&&!be)for(pt=x;pt!==null;)M=pt,oe=M.child,M.tag===22&&M.memoizedState!==null?J0(x):oe!==null?(oe.return=M,pt=oe):J0(x);for(;E!==null;)pt=E,X0(E),E=E.sibling;pt=x,Uc=X,wr=be}Q0(i)}else(x.subtreeFlags&8772)!==0&&E!==null?(E.return=x,pt=E):Q0(i)}}function Q0(i){for(;pt!==null;){var a=pt;if((a.flags&8772)!==0){var f=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:wr||qc(5,a);break;case 1:var h=a.stateNode;if(a.flags&4&&!wr)if(f===null)h.componentDidMount();else{var x=a.elementType===a.type?f.memoizedProps:Oo(a.type,f.memoizedProps);h.componentDidUpdate(x,f.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var E=a.updateQueue;E!==null&&Yv(a,E,h);break;case 3:var M=a.updateQueue;if(M!==null){if(f=null,a.child!==null)switch(a.child.tag){case 5:f=a.child.stateNode;break;case 1:f=a.child.stateNode}Yv(a,M,f)}break;case 5:var X=a.stateNode;if(f===null&&a.flags&4){f=X;var oe=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":oe.autoFocus&&f.focus();break;case"img":oe.src&&(f.src=oe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var be=a.alternate;if(be!==null){var Me=be.memoizedState;if(Me!==null){var Be=Me.dehydrated;Be!==null&&hi(Be)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}wr||a.flags&512&&dm(a)}catch(Pe){Bn(a,a.return,Pe)}}if(a===i){pt=null;break}if(f=a.sibling,f!==null){f.return=a.return,pt=f;break}pt=a.return}}function Y0(i){for(;pt!==null;){var a=pt;if(a===i){pt=null;break}var f=a.sibling;if(f!==null){f.return=a.return,pt=f;break}pt=a.return}}function J0(i){for(;pt!==null;){var a=pt;try{switch(a.tag){case 0:case 11:case 15:var f=a.return;try{qc(4,a)}catch(oe){Bn(a,f,oe)}break;case 1:var h=a.stateNode;if(typeof h.componentDidMount=="function"){var x=a.return;try{h.componentDidMount()}catch(oe){Bn(a,x,oe)}}var E=a.return;try{dm(a)}catch(oe){Bn(a,E,oe)}break;case 5:var M=a.return;try{dm(a)}catch(oe){Bn(a,M,oe)}}}catch(oe){Bn(a,a.return,oe)}if(a===i){pt=null;break}var X=a.sibling;if(X!==null){X.return=a.return,pt=X;break}pt=a.return}}var gE=Math.ceil,Gc=R.ReactCurrentDispatcher,pm=R.ReactCurrentOwner,uo=R.ReactCurrentBatchConfig,sn=0,lr=null,Un=null,pr=0,Yr=0,qa=Ci(0),er=0,is=null,ta=0,Kc=0,gm=0,as=null,Fr=null,hm=0,Ga=1/0,si=null,Xc=!1,vm=null,Oi=null,Qc=!1,Ri=null,Yc=0,ls=0,ym=null,Jc=-1,Zc=0;function Tr(){return(sn&6)!==0?ut():Jc!==-1?Jc:Jc=ut()}function Ii(i){return(i.mode&1)===0?1:(sn&2)!==0&&pr!==0?pr&-pr:J$.transition!==null?(Zc===0&&(Zc=nn()),Zc):(i=At,i!==0||(i=window.event,i=i===void 0?16:ev(i.type)),i)}function _o(i,a,f,h){if(50<ls)throw ls=0,ym=null,Error(n(185));gn(i,f,h),((sn&2)===0||i!==lr)&&(i===lr&&((sn&2)===0&&(Kc|=f),er===4&&_i(i,pr)),Vr(i,h),f===1&&sn===0&&(a.mode&1)===0&&(Ga=ut()+500,Rc&&xi()))}function Vr(i,a){var f=i.callbackNode;et(i,a);var h=tn(i,i===lr?pr:0);if(h===0)f!==null&&Le(f),i.callbackNode=null,i.callbackPriority=0;else if(a=h&-h,i.callbackPriority!==a){if(f!=null&&Le(f),a===1)i.tag===0?Y$(ey.bind(null,i)):Av(ey.bind(null,i)),G$(function(){(sn&6)===0&&xi()}),f=null;else{switch(Jn(h)){case 1:f=Ke;break;case 4:f=wt;break;case 16:f=Ft;break;case 536870912:f=dt;break;default:f=Ft}f=sy(f,Z0.bind(null,i))}i.callbackPriority=a,i.callbackNode=f}}function Z0(i,a){if(Jc=-1,Zc=0,(sn&6)!==0)throw Error(n(327));var f=i.callbackNode;if(Ka()&&i.callbackNode!==f)return null;var h=tn(i,i===lr?pr:0);if(h===0)return null;if((h&30)!==0||(h&i.expiredLanes)!==0||a)a=eu(i,h);else{a=h;var x=sn;sn|=2;var E=ny();(lr!==i||pr!==a)&&(si=null,Ga=ut()+500,ra(i,a));do try{yE();break}catch(X){ty(i,X)}while(!0);zf(),Gc.current=E,sn=x,Un!==null?a=0:(lr=null,pr=0,a=er)}if(a!==0){if(a===2&&(x=Jt(i),x!==0&&(h=x,a=bm(i,x))),a===1)throw f=is,ra(i,0),_i(i,h),Vr(i,ut()),f;if(a===6)_i(i,h);else{if(x=i.current.alternate,(h&30)===0&&!hE(x)&&(a=eu(i,h),a===2&&(E=Jt(i),E!==0&&(h=E,a=bm(i,E))),a===1))throw f=is,ra(i,0),_i(i,h),Vr(i,ut()),f;switch(i.finishedWork=x,i.finishedLanes=h,a){case 0:case 1:throw Error(n(345));case 2:oa(i,Fr,si);break;case 3:if(_i(i,h),(h&130023424)===h&&(a=hm+500-ut(),10<a)){if(tn(i,0)!==0)break;if(x=i.suspendedLanes,(x&h)!==h){Tr(),i.pingedLanes|=i.suspendedLanes&x;break}i.timeoutHandle=Ef(oa.bind(null,i,Fr,si),a);break}oa(i,Fr,si);break;case 4:if(_i(i,h),(h&4194240)===h)break;for(a=i.eventTimes,x=-1;0<h;){var M=31-Rn(h);E=1<<M,M=a[M],M>x&&(x=M),h&=~E}if(h=x,h=ut()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*gE(h/1960))-h,10<h){i.timeoutHandle=Ef(oa.bind(null,i,Fr,si),h);break}oa(i,Fr,si);break;case 5:oa(i,Fr,si);break;default:throw Error(n(329))}}}return Vr(i,ut()),i.callbackNode===f?Z0.bind(null,i):null}function bm(i,a){var f=as;return i.current.memoizedState.isDehydrated&&(ra(i,a).flags|=256),i=eu(i,a),i!==2&&(a=Fr,Fr=f,a!==null&&Cm(a)),i}function Cm(i){Fr===null?Fr=i:Fr.push.apply(Fr,i)}function hE(i){for(var a=i;;){if(a.flags&16384){var f=a.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var h=0;h<f.length;h++){var x=f[h],E=x.getSnapshot;x=x.value;try{if(!$o(E(),x))return!1}catch{return!1}}}if(f=a.child,a.subtreeFlags&16384&&f!==null)f.return=a,a=f;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 _i(i,a){for(a&=~gm,a&=~Kc,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var f=31-Rn(a),h=1<<f;i[f]=-1,a&=~h}}function ey(i){if((sn&6)!==0)throw Error(n(327));Ka();var a=tn(i,0);if((a&1)===0)return Vr(i,ut()),null;var f=eu(i,a);if(i.tag!==0&&f===2){var h=Jt(i);h!==0&&(a=h,f=bm(i,h))}if(f===1)throw f=is,ra(i,0),_i(i,a),Vr(i,ut()),f;if(f===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,oa(i,Fr,si),Vr(i,ut()),null}function Sm(i,a){var f=sn;sn|=1;try{return i(a)}finally{sn=f,sn===0&&(Ga=ut()+500,Rc&&xi())}}function na(i){Ri!==null&&Ri.tag===0&&(sn&6)===0&&Ka();var a=sn;sn|=1;var f=uo.transition,h=At;try{if(uo.transition=null,At=1,i)return i()}finally{At=h,uo.transition=f,sn=a,(sn&6)===0&&xi()}}function xm(){Yr=qa.current,Nn(qa)}function ra(i,a){i.finishedWork=null,i.finishedLanes=0;var f=i.timeoutHandle;if(f!==-1&&(i.timeoutHandle=-1,q$(f)),Un!==null)for(f=Un.return;f!==null;){var h=f;switch(Tf(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&Ec();break;case 3:Va(),Nn(Ar),Nn(Cr),Wf();break;case 5:Ff(h);break;case 4:Va();break;case 13:Nn(jn);break;case 19:Nn(jn);break;case 10:Lf(h.type._context);break;case 22:case 23:xm()}f=f.return}if(lr=i,Un=i=Pi(i.current,null),pr=Yr=a,er=0,is=null,gm=Kc=ta=0,Fr=as=null,Ji!==null){for(a=0;a<Ji.length;a++)if(f=Ji[a],h=f.interleaved,h!==null){f.interleaved=null;var x=h.next,E=f.pending;if(E!==null){var M=E.next;E.next=x,h.next=M}f.pending=h}Ji=null}return i}function ty(i,a){do{var f=Un;try{if(zf(),Lc.current=Hc,Bc){for(var h=zn.memoizedState;h!==null;){var x=h.queue;x!==null&&(x.pending=null),h=h.next}Bc=!1}if(ea=0,ar=Zn=zn=null,Zl=!1,es=0,pm.current=null,f===null||f.return===null){er=1,is=a,Un=null;break}e:{var E=i,M=f.return,X=f,oe=a;if(a=pr,X.flags|=32768,oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var be=oe,Me=X,Be=Me.tag;if((Me.mode&1)===0&&(Be===0||Be===11||Be===15)){var Pe=Me.alternate;Pe?(Me.updateQueue=Pe.updateQueue,Me.memoizedState=Pe.memoizedState,Me.lanes=Pe.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var it=O0(M);if(it!==null){it.flags&=-257,R0(it,M,X,E,a),it.mode&1&&E0(E,be,a),a=it,oe=be;var vt=a.updateQueue;if(vt===null){var yt=new Set;yt.add(oe),a.updateQueue=yt}else vt.add(oe);break e}else{if((a&1)===0){E0(E,be,a),wm();break e}oe=Error(n(426))}}else if(kn&&X.mode&1){var Vn=O0(M);if(Vn!==null){(Vn.flags&65536)===0&&(Vn.flags|=256),R0(Vn,M,X,E,a),Mf(Wa(oe,X));break e}}E=oe=Wa(oe,X),er!==4&&(er=2),as===null?as=[E]:as.push(E),E=M;do{switch(E.tag){case 3:E.flags|=65536,a&=-a,E.lanes|=a;var pe=w0(E,oe,a);Qv(E,pe);break e;case 1:X=oe;var ie=E.type,ge=E.stateNode;if((E.flags&128)===0&&(typeof ie.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(Oi===null||!Oi.has(ge)))){E.flags|=65536,a&=-a,E.lanes|=a;var De=$0(E,X,a);Qv(E,De);break e}}E=E.return}while(E!==null)}oy(f)}catch(bt){a=bt,Un===f&&f!==null&&(Un=f=f.return);continue}break}while(!0)}function ny(){var i=Gc.current;return Gc.current=Hc,i===null?Hc:i}function wm(){(er===0||er===3||er===2)&&(er=4),lr===null||(ta&268435455)===0&&(Kc&268435455)===0||_i(lr,pr)}function eu(i,a){var f=sn;sn|=2;var h=ny();(lr!==i||pr!==a)&&(si=null,ra(i,a));do try{vE();break}catch(x){ty(i,x)}while(!0);if(zf(),sn=f,Gc.current=h,Un!==null)throw Error(n(261));return lr=null,pr=0,er}function vE(){for(;Un!==null;)ry(Un)}function yE(){for(;Un!==null&&!Ue();)ry(Un)}function ry(i){var a=ly(i.alternate,i,Yr);i.memoizedProps=i.pendingProps,a===null?oy(i):Un=a,pm.current=null}function oy(i){var a=i;do{var f=a.alternate;if(i=a.return,(a.flags&32768)===0){if(f=uE(f,a,Yr),f!==null){Un=f;return}}else{if(f=dE(f,a),f!==null){f.flags&=32767,Un=f;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{er=6,Un=null;return}}if(a=a.sibling,a!==null){Un=a;return}Un=a=i}while(a!==null);er===0&&(er=5)}function oa(i,a,f){var h=At,x=uo.transition;try{uo.transition=null,At=1,bE(i,a,f,h)}finally{uo.transition=x,At=h}return null}function bE(i,a,f,h){do Ka();while(Ri!==null);if((sn&6)!==0)throw Error(n(327));f=i.finishedWork;var x=i.finishedLanes;if(f===null)return null;if(i.finishedWork=null,i.finishedLanes=0,f===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var E=f.lanes|f.childLanes;if(fr(i,E),i===lr&&(Un=lr=null,pr=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||Qc||(Qc=!0,sy(Ft,function(){return Ka(),null})),E=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||E){E=uo.transition,uo.transition=null;var M=At;At=1;var X=sn;sn|=4,pm.current=null,mE(i,f),K0(f,i),A$(wf),dc=!!xf,wf=xf=null,i.current=f,pE(f),$t(),sn=X,At=M,uo.transition=E}else i.current=f;if(Qc&&(Qc=!1,Ri=i,Yc=x),E=i.pendingLanes,E===0&&(Oi=null),Hn(f.stateNode),Vr(i,ut()),a!==null)for(h=i.onRecoverableError,f=0;f<a.length;f++)x=a[f],h(x.value,{componentStack:x.stack,digest:x.digest});if(Xc)throw Xc=!1,i=vm,vm=null,i;return(Yc&1)!==0&&i.tag!==0&&Ka(),E=i.pendingLanes,(E&1)!==0?i===ym?ls++:(ls=0,ym=i):ls=0,xi(),null}function Ka(){if(Ri!==null){var i=Jn(Yc),a=uo.transition,f=At;try{if(uo.transition=null,At=16>i?16:i,Ri===null)var h=!1;else{if(i=Ri,Ri=null,Yc=0,(sn&6)!==0)throw Error(n(331));var x=sn;for(sn|=4,pt=i.current;pt!==null;){var E=pt,M=E.child;if((pt.flags&16)!==0){var X=E.deletions;if(X!==null){for(var oe=0;oe<X.length;oe++){var be=X[oe];for(pt=be;pt!==null;){var Me=pt;switch(Me.tag){case 0:case 11:case 15:os(8,Me,E)}var Be=Me.child;if(Be!==null)Be.return=Me,pt=Be;else for(;pt!==null;){Me=pt;var Pe=Me.sibling,it=Me.return;if(V0(Me),Me===be){pt=null;break}if(Pe!==null){Pe.return=it,pt=Pe;break}pt=it}}}var vt=E.alternate;if(vt!==null){var yt=vt.child;if(yt!==null){vt.child=null;do{var Vn=yt.sibling;yt.sibling=null,yt=Vn}while(yt!==null)}}pt=E}}if((E.subtreeFlags&2064)!==0&&M!==null)M.return=E,pt=M;else e:for(;pt!==null;){if(E=pt,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:os(9,E,E.return)}var pe=E.sibling;if(pe!==null){pe.return=E.return,pt=pe;break e}pt=E.return}}var ie=i.current;for(pt=ie;pt!==null;){M=pt;var ge=M.child;if((M.subtreeFlags&2064)!==0&&ge!==null)ge.return=M,pt=ge;else e:for(M=ie;pt!==null;){if(X=pt,(X.flags&2048)!==0)try{switch(X.tag){case 0:case 11:case 15:qc(9,X)}}catch(bt){Bn(X,X.return,bt)}if(X===M){pt=null;break e}var De=X.sibling;if(De!==null){De.return=X.return,pt=De;break e}pt=X.return}}if(sn=x,xi(),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(Rt,i)}catch{}h=!0}return h}finally{At=f,uo.transition=a}}return!1}function iy(i,a,f){a=Wa(f,a),a=w0(i,a,1),i=$i(i,a,1),a=Tr(),i!==null&&(gn(i,1,a),Vr(i,a))}function Bn(i,a,f){if(i.tag===3)iy(i,i,f);else for(;a!==null;){if(a.tag===3){iy(a,i,f);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Oi===null||!Oi.has(h))){i=Wa(f,i),i=$0(a,i,1),a=$i(a,i,1),i=Tr(),a!==null&&(gn(a,1,i),Vr(a,i));break}}a=a.return}}function CE(i,a,f){var h=i.pingCache;h!==null&&h.delete(a),a=Tr(),i.pingedLanes|=i.suspendedLanes&f,lr===i&&(pr&f)===f&&(er===4||er===3&&(pr&130023424)===pr&&500>ut()-hm?ra(i,0):gm|=f),Vr(i,a)}function ay(i,a){a===0&&((i.mode&1)===0?a=1:(a=dr,dr<<=1,(dr&130023424)===0&&(dr=4194304)));var f=Tr();i=ii(i,a),i!==null&&(gn(i,a,f),Vr(i,f))}function SE(i){var a=i.memoizedState,f=0;a!==null&&(f=a.retryLane),ay(i,f)}function xE(i,a){var f=0;switch(i.tag){case 13:var h=i.stateNode,x=i.memoizedState;x!==null&&(f=x.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(a),ay(i,f)}var ly;ly=function(i,a,f){if(i!==null)if(i.memoizedProps!==a.pendingProps||Ar.current)Hr=!0;else{if((i.lanes&f)===0&&(a.flags&128)===0)return Hr=!1,cE(i,a,f);Hr=(i.flags&131072)!==0}else Hr=!1,kn&&(a.flags&1048576)!==0&&Dv(a,_c,a.index);switch(a.lanes=0,a.tag){case 2:var h=a.type;Wc(i,a),i=a.pendingProps;var x=za(a,Cr.current);Fa(a,f),x=Gf(null,a,h,i,x,f);var E=Kf();return a.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Dr(h)?(E=!0,Oc(a)):E=!1,a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Df(a),x.updater=Fc,a.stateNode=x,x._reactInternals=a,em(a,h,i,f),a=om(null,a,h,!0,E,f)):(a.tag=0,kn&&E&&Pf(a),Pr(null,a,x,f),a=a.child),a;case 16:h=a.elementType;e:{switch(Wc(i,a),i=a.pendingProps,x=h._init,h=x(h._payload),a.type=h,x=a.tag=$E(h),i=Oo(h,i),x){case 0:a=rm(null,a,h,i,f);break e;case 1:a=k0(null,a,h,i,f);break e;case 11:a=I0(null,a,h,i,f);break e;case 14:a=_0(null,a,h,Oo(h.type,i),f);break e}throw Error(n(306,h,""))}return a;case 0:return h=a.type,x=a.pendingProps,x=a.elementType===h?x:Oo(h,x),rm(i,a,h,x,f);case 1:return h=a.type,x=a.pendingProps,x=a.elementType===h?x:Oo(h,x),k0(i,a,h,x,f);case 3:e:{if(M0(a),i===null)throw Error(n(387));h=a.pendingProps,E=a.memoizedState,x=E.element,Xv(i,a),jc(a,h,null,f);var M=a.memoizedState;if(h=M.element,E.isDehydrated)if(E={element:h,isDehydrated:!1,cache:M.cache,pendingSuspenseBoundaries:M.pendingSuspenseBoundaries,transitions:M.transitions},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){x=Wa(Error(n(423)),a),a=j0(i,a,h,f,x);break e}else if(h!==x){x=Wa(Error(n(424)),a),a=j0(i,a,h,f,x);break e}else for(Qr=bi(a.stateNode.containerInfo.firstChild),Xr=a,kn=!0,Eo=null,f=Gv(a,null,h,f),a.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Aa(),h===x){a=li(i,a,f);break e}Pr(i,a,h,f)}a=a.child}return a;case 5:return Jv(a),i===null&&kf(a),h=a.type,x=a.pendingProps,E=i!==null?i.memoizedProps:null,M=x.children,$f(h,x)?M=null:E!==null&&$f(h,E)&&(a.flags|=32),N0(i,a),Pr(i,a,M,f),a.child;case 6:return i===null&&kf(a),null;case 13:return z0(i,a,f);case 4:return Hf(a,a.stateNode.containerInfo),h=a.pendingProps,i===null?a.child=Da(a,null,h,f):Pr(i,a,h,f),a.child;case 11:return h=a.type,x=a.pendingProps,x=a.elementType===h?x:Oo(h,x),I0(i,a,h,x,f);case 7:return Pr(i,a,a.pendingProps,f),a.child;case 8:return Pr(i,a,a.pendingProps.children,f),a.child;case 12:return Pr(i,a,a.pendingProps.children,f),a.child;case 10:e:{if(h=a.type._context,x=a.pendingProps,E=a.memoizedProps,M=x.value,_n(Nc,h._currentValue),h._currentValue=M,E!==null)if($o(E.value,M)){if(E.children===x.children&&!Ar.current){a=li(i,a,f);break e}}else for(E=a.child,E!==null&&(E.return=a);E!==null;){var X=E.dependencies;if(X!==null){M=E.child;for(var oe=X.firstContext;oe!==null;){if(oe.context===h){if(E.tag===1){oe=ai(-1,f&-f),oe.tag=2;var be=E.updateQueue;if(be!==null){be=be.shared;var Me=be.pending;Me===null?oe.next=oe:(oe.next=Me.next,Me.next=oe),be.pending=oe}}E.lanes|=f,oe=E.alternate,oe!==null&&(oe.lanes|=f),Bf(E.return,f,a),X.lanes|=f;break}oe=oe.next}}else if(E.tag===10)M=E.type===a.type?null:E.child;else if(E.tag===18){if(M=E.return,M===null)throw Error(n(341));M.lanes|=f,X=M.alternate,X!==null&&(X.lanes|=f),Bf(M,f,a),M=E.sibling}else M=E.child;if(M!==null)M.return=E;else for(M=E;M!==null;){if(M===a){M=null;break}if(E=M.sibling,E!==null){E.return=M.return,M=E;break}M=M.return}E=M}Pr(i,a,x.children,f),a=a.child}return a;case 9:return x=a.type,h=a.pendingProps.children,Fa(a,f),x=so(x),h=h(x),a.flags|=1,Pr(i,a,h,f),a.child;case 14:return h=a.type,x=Oo(h,a.pendingProps),x=Oo(h.type,x),_0(i,a,h,x,f);case 15:return P0(i,a,a.type,a.pendingProps,f);case 17:return h=a.type,x=a.pendingProps,x=a.elementType===h?x:Oo(h,x),Wc(i,a),a.tag=1,Dr(h)?(i=!0,Oc(a)):i=!1,Fa(a,f),S0(a,h,x),em(a,h,x,f),om(null,a,h,!0,i,f);case 19:return B0(i,a,f);case 22:return T0(i,a,f)}throw Error(n(156,a.tag))};function sy(i,a){return on(i,a)}function wE(i,a,f,h){this.tag=i,this.key=f,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=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fo(i,a,f,h){return new wE(i,a,f,h)}function $m(i){return i=i.prototype,!(!i||!i.isReactComponent)}function $E(i){if(typeof i=="function")return $m(i)?1:0;if(i!=null){if(i=i.$$typeof,i===j)return 11;if(i===q)return 14}return 2}function Pi(i,a){var f=i.alternate;return f===null?(f=fo(i.tag,a,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=a,f.type=i.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=i.flags&14680064,f.childLanes=i.childLanes,f.lanes=i.lanes,f.child=i.child,f.memoizedProps=i.memoizedProps,f.memoizedState=i.memoizedState,f.updateQueue=i.updateQueue,a=i.dependencies,f.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f}function tu(i,a,f,h,x,E){var M=2;if(h=i,typeof i=="function")$m(i)&&(M=1);else if(typeof i=="string")M=5;else e:switch(i){case P:return ia(f.children,x,E,a);case N:M=8,x|=8;break;case T:return i=fo(12,f,a,x|2),i.elementType=T,i.lanes=E,i;case D:return i=fo(13,f,a,x),i.elementType=D,i.lanes=E,i;case A:return i=fo(19,f,a,x),i.elementType=A,i.lanes=E,i;case V:return nu(f,x,E,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:M=10;break e;case L:M=9;break e;case j:M=11;break e;case q:M=14;break e;case W:M=16,h=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=fo(M,f,a,x),a.elementType=i,a.type=h,a.lanes=E,a}function ia(i,a,f,h){return i=fo(7,i,h,a),i.lanes=f,i}function nu(i,a,f,h){return i=fo(22,i,h,a),i.elementType=V,i.lanes=f,i.stateNode={isHidden:!1},i}function Em(i,a,f){return i=fo(6,i,null,a),i.lanes=f,i}function Om(i,a,f){return a=fo(4,i.children!==null?i.children:[],i.key,a),a.lanes=f,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function EE(i,a,f,h,x){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=fn(0),this.expirationTimes=fn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fn(0),this.identifierPrefix=h,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Rm(i,a,f,h,x,E,M,X,oe){return i=new EE(i,a,f,X,oe),a===1?(a=1,E===!0&&(a|=8)):a=0,E=fo(3,null,null,a),i.current=E,E.stateNode=i,E.memoizedState={element:h,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Df(E),i}function OE(i,a,f){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:h==null?null:""+h,children:i,containerInfo:a,implementation:f}}function cy(i){if(!i)return Si;i=i._reactInternals;e:{if(Tt(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(Dr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var f=i.type;if(Dr(f))return Lv(i,f,a)}return a}function uy(i,a,f,h,x,E,M,X,oe){return i=Rm(f,h,!0,i,x,E,M,X,oe),i.context=cy(null),f=i.current,h=Tr(),x=Ii(f),E=ai(h,x),E.callback=a??null,$i(f,E,x),i.current.lanes=x,gn(i,x,h),Vr(i,h),i}function ru(i,a,f,h){var x=a.current,E=Tr(),M=Ii(x);return f=cy(f),a.context===null?a.context=f:a.pendingContext=f,a=ai(E,M),a.payload={element:i},h=h===void 0?null:h,h!==null&&(a.callback=h),i=$i(x,a,M),i!==null&&(_o(i,x,M,E),Mc(i,x,M)),M}function ou(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 dy(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<a?f:a}}function Im(i,a){dy(i,a),(i=i.alternate)&&dy(i,a)}function RE(){return null}var fy=typeof reportError=="function"?reportError:function(i){console.error(i)};function _m(i){this._internalRoot=i}iu.prototype.render=_m.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));ru(i,a,null,null)},iu.prototype.unmount=_m.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;na(function(){ru(null,i,null,null)}),a[ti]=null}};function iu(i){this._internalRoot=i}iu.prototype.unstable_scheduleHydration=function(i){if(i){var a=gi();i={blockedOn:null,target:i,priority:a};for(var f=0;f<Gr.length&&a!==0&&a<Gr[f].priority;f++);Gr.splice(f,0,i),f===0&&En(i)}};function Pm(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function au(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function my(){}function IE(i,a,f,h,x){if(x){if(typeof h=="function"){var E=h;h=function(){var be=ou(M);E.call(be)}}var M=uy(a,h,i,0,null,!1,!1,"",my);return i._reactRootContainer=M,i[ti]=M.current,Ul(i.nodeType===8?i.parentNode:i),na(),M}for(;x=i.lastChild;)i.removeChild(x);if(typeof h=="function"){var X=h;h=function(){var be=ou(oe);X.call(be)}}var oe=Rm(i,0,!1,null,null,!1,!1,"",my);return i._reactRootContainer=oe,i[ti]=oe.current,Ul(i.nodeType===8?i.parentNode:i),na(function(){ru(a,oe,f,h)}),oe}function lu(i,a,f,h,x){var E=f._reactRootContainer;if(E){var M=E;if(typeof x=="function"){var X=x;x=function(){var oe=ou(M);X.call(oe)}}ru(a,M,i,x)}else M=IE(f,a,i,x,h);return ou(M)}or=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var f=yr(a.pendingLanes);f!==0&&(Fn(a,f|1),Vr(a,ut()),(sn&6)===0&&(Ga=ut()+500,xi()))}break;case 13:na(function(){var h=ii(i,1);if(h!==null){var x=Tr();_o(h,i,1,x)}}),Im(i,1)}},Lr=function(i){if(i.tag===13){var a=ii(i,134217728);if(a!==null){var f=Tr();_o(a,i,134217728,f)}Im(i,134217728)}},ir=function(i){if(i.tag===13){var a=Ii(i),f=ii(i,a);if(f!==null){var h=Tr();_o(f,i,a,h)}Im(i,a)}},gi=function(){return At},wa=function(i,a){var f=At;try{return At=i,a()}finally{At=f}},Gt=function(i,a,f){switch(a){case"input":if(ve(i,f),a=f.name,f.type==="radio"&&a!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<f.length;a++){var h=f[a];if(h!==i&&h.form===i.form){var x=$c(h);if(!x)throw Error(n(90));ce(h),ve(h,x)}}}break;case"textarea":Ie(i,f);break;case"select":a=f.value,a!=null&&we(i,!!f.multiple,a,!1)}},xt=Sm,Yt=na;var _E={usingClientEntryPoint:!1,Events:[Kl,Ma,$c,Qt,jt,Sm]},ss={findFiberByHostInstance:Ki,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},PE={bundleType:ss.bundleType,version:ss.version,rendererPackageName:ss.rendererPackageName,rendererConfig:ss.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Pn(i),i===null?null:i.stateNode},findFiberByHostInstance:ss.findFiberByHostInstance||RE,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 su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{Rt=su.inject(PE),ln=su}catch{}}return Wr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_E,Wr.createPortal=function(i,a){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pm(a))throw Error(n(200));return OE(i,a,null,f)},Wr.createRoot=function(i,a){if(!Pm(i))throw Error(n(299));var f=!1,h="",x=fy;return a!=null&&(a.unstable_strictMode===!0&&(f=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=Rm(i,1,!1,null,null,f,!1,h,x),i[ti]=a.current,Ul(i.nodeType===8?i.parentNode:i),new _m(a)},Wr.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=Pn(a),i=i===null?null:i.stateNode,i},Wr.flushSync=function(i){return na(i)},Wr.hydrate=function(i,a,f){if(!au(a))throw Error(n(200));return lu(null,i,a,!0,f)},Wr.hydrateRoot=function(i,a,f){if(!Pm(i))throw Error(n(405));var h=f!=null&&f.hydratedSources||null,x=!1,E="",M=fy;if(f!=null&&(f.unstable_strictMode===!0&&(x=!0),f.identifierPrefix!==void 0&&(E=f.identifierPrefix),f.onRecoverableError!==void 0&&(M=f.onRecoverableError)),a=uy(a,null,i,1,f??null,x,!1,E,M),i[ti]=a.current,Ul(i),h)for(i=0;i<h.length;i++)f=h[i],x=f._getVersion,x=x(f._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[f,x]:a.mutableSourceEagerHydrationData.push(f,x);return new iu(a)},Wr.render=function(i,a,f){if(!au(a))throw Error(n(200));return lu(null,i,a,!1,f)},Wr.unmountComponentAtNode=function(i){if(!au(i))throw Error(n(40));return i._reactRootContainer?(na(function(){lu(null,null,i,!1,function(){i._reactRootContainer=null,i[ti]=null})}),!0):!1},Wr.unstable_batchedUpdates=Sm,Wr.unstable_renderSubtreeIntoContainer=function(i,a,f,h){if(!au(f))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return lu(i,a,f,!1,h)},Wr.version="18.3.1-next-f1338f8080-20240426",Wr}var Sy;function AC(){if(Sy)return km.exports;Sy=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(),km.exports=AE(),km.exports}var xy;function DE(){if(xy)return cu;xy=1;var e=AC();return cu.createRoot=e.createRoot,cu.hydrateRoot=e.hydrateRoot,cu}var HE=DE();const FE=Gs(HE);var zm={exports:{}};/*!
41
- Copyright (c) 2018 Jed Watson.
42
- Licensed under the MIT License (MIT), see
43
- http://jedwatson.github.io/classnames
44
- */var wy;function VE(){return wy||(wy=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})()})(zm)),zm.exports}var WE=VE();const ee=Gs(WE);function Oe(){return Oe=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},Oe.apply(null,arguments)}function gt(e){"@babel/helpers - typeof";return gt=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},gt(e)}var UE=Symbol.for("react.element"),qE=Symbol.for("react.transitional.element"),GE=Symbol.for("react.fragment");function DC(e){return e&&gt(e)==="object"&&(e.$$typeof===UE||e.$$typeof===qE)&&e.type===GE}function Mr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Z.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Mr(r)):DC(r)&&r.props?n=n.concat(Mr(r.props.children,t)):n.push(r))}),n}var _p={},KE=function(t){};function XE(e,t){}function QE(e,t){}function YE(){_p={}}function HC(e,t,n){!t&&!_p[n]&&(e(!1,n),_p[n]=!0)}function ur(e,t){HC(XE,e,t)}function JE(e,t){HC(QE,e,t)}ur.preMessage=KE;ur.resetWarned=YE;ur.noteOnce=JE;function ZE(e,t){if(gt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FC(e){var t=ZE(e,"string");return gt(t)=="symbol"?t:t+""}function G(e,t,n){return(t=FC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $y(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 K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$y(Object(n),!0).forEach(function(r){G(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$y(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Hi=AC();const Pp=Gs(Hi),e4=BC({__proto__:null,default:Pp},[Hi]);function _s(e){return e instanceof HTMLElement||e instanceof SVGElement}function t4(e){return e&&gt(e)==="object"&&_s(e.nativeElement)?e.nativeElement:_s(e)?e:null}function Ru(e){var t=t4(e);if(t)return t;if(e instanceof Z.Component){var n;return(n=Pp.findDOMNode)===null||n===void 0?void 0:n.call(Pp,e)}return null}var Lm={exports:{}},vn={};/**
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 n4(){if(Ey)return vn;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"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),C;C=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 d:case v:case g:case l:return b;default:return $}}case t:return $}}}return vn.ContextConsumer=s,vn.ContextProvider=l,vn.Element=e,vn.ForwardRef=d,vn.Fragment=n,vn.Lazy=v,vn.Memo=g,vn.Portal=t,vn.Profiler=o,vn.StrictMode=r,vn.Suspense=m,vn.SuspenseList=p,vn.isAsyncMode=function(){return!1},vn.isConcurrentMode=function(){return!1},vn.isContextConsumer=function(b){return S(b)===s},vn.isContextProvider=function(b){return S(b)===l},vn.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},vn.isForwardRef=function(b){return S(b)===d},vn.isFragment=function(b){return S(b)===n},vn.isLazy=function(b){return S(b)===v},vn.isMemo=function(b){return S(b)===g},vn.isPortal=function(b){return S(b)===t},vn.isProfiler=function(b){return S(b)===o},vn.isStrictMode=function(b){return S(b)===r},vn.isSuspense=function(b){return S(b)===m},vn.isSuspenseList=function(b){return S(b)===p},vn.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===v||b.$$typeof===g||b.$$typeof===l||b.$$typeof===s||b.$$typeof===d||b.$$typeof===C||b.getModuleId!==void 0)},vn.typeOf=S,vn}var Oy;function r4(){return Oy||(Oy=1,Lm.exports=n4()),Lm.exports}var Bm=r4();function Ks(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 o4=Number(c.version.split(".")[0]),Fg=function(t,n){typeof t=="function"?t(n):gt(t)==="object"&&t&&"current"in t&&(t.current=n)},Bo=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){Fg(s,l)})}},Xo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ks(function(){return Bo.apply(void 0,n)},n,function(o,l){return o.length!==l.length||o.every(function(s,u){return s!==l[u]})})},Gi=function(t){var n,r;if(!t)return!1;if(Vg(t)&&o4>=19)return!0;var o=Bm.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Bm.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Bm.ForwardRef)};function Vg(e){return c.isValidElement(e)&&!DC(e)}var i4=function(t){return Vg(t)&&Gi(t)},ba=function(t){if(t&&Vg(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Tp=c.createContext(null);function a4(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),l=c.useContext(Tp),s=c.useCallback(function(u,d,m){r.current+=1;var p=r.current;o.current.push({size:u,element:d,data:m}),Promise.resolve().then(function(){p===r.current&&(n==null||n(o.current),o.current=[])}),l==null||l(u,d,m)},[n,l]);return c.createElement(Tp.Provider,{value:s},t)}var VC=(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})()})(),Np=typeof window<"u"&&typeof document<"u"&&window.document===document,Hu=(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")()})(),l4=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Hu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),s4=2;function c4(e,t){var n=!1,r=!1,o=0;function l(){n&&(n=!1,e()),r&&u()}function s(){l4(l)}function u(){var d=Date.now();if(n){if(d-o<s4)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=d}return u}var u4=20,d4=["top","right","bottom","left","width","height","size","weight"],f4=typeof MutationObserver<"u",m4=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=c4(this.refresh.bind(this),u4)}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(){!Np||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f4?(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(){!Np||!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=d4.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})(),WC=(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}),Cl=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Hu}),UC=hd(0,0,0,0);function Fu(e){return parseFloat(e)||0}function Ry(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+Fu(l)},0)}function p4(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]=Fu(s)}return n}function g4(e){var t=e.getBBox();return hd(0,0,t.width,t.height)}function h4(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return UC;var r=Cl(e).getComputedStyle(e),o=p4(r),l=o.left+o.right,s=o.top+o.bottom,u=Fu(r.width),d=Fu(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=Ry(r,"left","right")+l),Math.round(d+s)!==n&&(d-=Ry(r,"top","bottom")+s)),!y4(e)){var m=Math.round(u+l)-t,p=Math.round(d+s)-n;Math.abs(m)!==1&&(u-=m),Math.abs(p)!==1&&(d-=p)}return hd(o.left,o.top,u,d)}var v4=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Cl(e).SVGGraphicsElement}:function(e){return e instanceof Cl(e).SVGElement&&typeof e.getBBox=="function"}})();function y4(e){return e===Cl(e).document.documentElement}function b4(e){return Np?v4(e)?g4(e):h4(e):UC}function C4(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 WC(s,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),s}function hd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var S4=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=hd(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=b4(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})(),x4=(function(){function e(t,n){var r=C4(n);WC(this,{target:t,contentRect:r})}return e})(),w4=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new VC,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 Cl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new S4(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 Cl(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 x4(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})(),qC=typeof WeakMap<"u"?new WeakMap:new VC,GC=(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=m4.getInstance(),r=new w4(t,n,this);qC.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){GC.prototype[e]=function(){var t;return(t=qC.get(this))[e].apply(t,arguments)}});var $4=(function(){return typeof Hu.ResizeObserver<"u"?Hu.ResizeObserver:GC})(),zi=new Map;function E4(e){e.forEach(function(t){var n,r=t.target;(n=zi.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var KC=new $4(E4);function O4(e,t){zi.has(e)||(zi.set(e,new Set),KC.observe(e)),zi.get(e).add(t)}function R4(e,t){zi.has(e)&&(zi.get(e).delete(t),zi.get(e).size||(KC.unobserve(e),zi.delete(e)))}function Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iy(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,FC(r.key),r)}}function Xn(e,t,n){return t&&Iy(e.prototype,t),n&&Iy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ps(e,t){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ps(e,t)}function di(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&&Ps(e,t)}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ts(e)}function Wg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wg=function(){return!!e})()}function qt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I4(e,t){if(t&&(gt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qt(e)}function fi(e){var t=Wg();return function(){var n,r=Ts(e);if(t){var o=Ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I4(this,n)}}var _4=(function(e){di(n,e);var t=fi(n);function n(){return Kn(this,n),t.apply(this,arguments)}return Xn(n,[{key:"render",value:function(){return this.props.children}}]),n})(c.Component);function P4(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),l=c.useRef(null),s=c.useContext(Tp),u=typeof n=="function",d=u?n(o):n,m=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!u&&c.isValidElement(d)&&Gi(d),g=p?ba(d):null,v=Xo(g,o),y=function(){var $;return Ru(o.current)||(o.current&&gt(o.current)==="object"?Ru(($=o.current)===null||$===void 0?void 0:$.nativeElement):null)||Ru(l.current)};c.useImperativeHandle(t,function(){return y()});var C=c.useRef(e);C.current=e;var S=c.useCallback(function(b){var $=C.current,w=$.onResize,O=$.data,R=b.getBoundingClientRect(),_=R.width,I=R.height,P=b.offsetWidth,N=b.offsetHeight,T=Math.floor(_),k=Math.floor(I);if(m.current.width!==T||m.current.height!==k||m.current.offsetWidth!==P||m.current.offsetHeight!==N){var L={width:T,height:k,offsetWidth:P,offsetHeight:N};m.current=L;var j=P===Math.round(_)?_:P,D=N===Math.round(I)?I:N,A=K(K({},L),{},{offsetWidth:j,offsetHeight:D});s==null||s(A,b,O),w&&Promise.resolve().then(function(){w(A,b)})}},[]);return c.useEffect(function(){var b=y();return b&&!r&&O4(b,S),function(){return R4(b,S)}},[o.current,r]),c.createElement(_4,{ref:l},p?c.cloneElement(d,{ref:v}):d)}var T4=c.forwardRef(P4),N4="rc-observer-key";function k4(e,t){var n=e.children,r=typeof n=="function"?[n]:Mr(n);return r.map(function(o,l){var s=(o==null?void 0:o.key)||"".concat(N4,"-").concat(l);return c.createElement(T4,Oe({},e,{key:s,ref:l===0?t:void 0}),o)})}var Co=c.forwardRef(k4);Co.Collection=a4;function kp(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 M4(e){if(Array.isArray(e))return kp(e)}function XC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ug(e,t){if(e){if(typeof e=="string")return kp(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)?kp(e,t):void 0}}function j4(){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 M4(e)||XC(e)||Ug(e)||j4()}var QC=function(t){return+setTimeout(t,16)},YC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(QC=function(t){return window.requestAnimationFrame(t)},YC=function(t){return window.cancelAnimationFrame(t)});var _y=0,qg=new Map;function JC(e){qg.delete(e)}var $n=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_y+=1;var r=_y;function o(l){if(l===0)JC(r),t();else{var s=QC(function(){o(l-1)});qg.set(r,s)}}return o(n),r};$n.cancel=function(e){var t=qg.get(e);return JC(e),YC(t)};function ZC(e){if(Array.isArray(e))return e}function z4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,u=[],d=!0,m=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){m=!0,o=p}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(m)throw o}}return u}}function eS(){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 ZC(e)||z4(e,t)||Ug(e,t)||eS()}function Ns(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 Rr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Mp(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 Py="data-rc-order",Ty="data-rc-priority",L4="rc-util-key",jp=new Map;function tS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):L4}function vd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function B4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Gg(e){return Array.from((jp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function nS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Rr())return null;var n=t.csp,r=t.prepend,o=t.priority,l=o===void 0?0:o,s=B4(r),u=s==="prependQueue",d=document.createElement("style");d.setAttribute(Py,s),u&&l&&d.setAttribute(Ty,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var m=vd(t),p=m.firstChild;if(r){if(u){var g=(t.styles||Gg(m)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Py)))return!1;var y=Number(v.getAttribute(Ty)||0);return l>=y});if(g.length)return m.insertBefore(d,g[g.length-1].nextSibling),d}m.insertBefore(d,p)}else m.appendChild(d);return d}function rS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=vd(t);return(t.styles||Gg(n)).find(function(r){return r.getAttribute(tS(t))===e})}function ks(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rS(e,t);if(n){var r=vd(t);r.removeChild(n)}}function A4(e,t){var n=jp.get(e);if(!n||!Mp(document,n)){var r=nS("",t),o=r.parentNode;jp.set(e,o),e.removeChild(r)}}function ui(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=vd(n),o=Gg(r),l=K(K({},n),{},{styles:o});A4(r,l);var s=rS(t,l);if(s){var u,d;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((d=l.csp)===null||d===void 0?void 0:d.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=nS(e,l);return p.setAttribute(tS(l),t),p}function D4(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 kt(e,t){if(e==null)return{};var n,r,o=D4(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 Ms(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,d=r.has(l);if(ur(!d,"Warning: There may be circular references"),d)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&&gt(l)==="object"&&gt(s)==="object"){var g=Object.keys(l);return g.length!==Object.keys(s).length?!1:g.every(function(v){return o(l[v],s[v],m)})}return!1}return o(e,t)}var H4="%";function zp(e){return e.join(H4)}var F4=(function(){function e(t){Kn(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),G(this,"extracted",new Set),this.instanceId=t}return Xn(e,[{key:"get",value:function(n){return this.opGet(zp(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(zp(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})(),Sl="data-token-hash",jo="data-css-hash",Li="__cssinjs_instance__";function V4(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(jo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Li]=o[Li]||e,o[Li]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(jo,"]"))).forEach(function(o){var l=o.getAttribute(jo);if(r[l]){if(o[Li]===e){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else r[l]=!0})}return new F4(e)}var Xs=c.createContext({hashPriority:"low",cache:V4(),defaultCache:!0});function W4(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 Kg=(function(){function e(){Kn(this,e),G(this,"cache",void 0),G(this,"keys",void 0),G(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Xn(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 d;s=(d=s)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.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),v=g[1];return o.internalGet(p)[1]<v?[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 d=this.cache;n.forEach(function(m,p){if(p===n.length-1)d.set(m,{value:[r,o.cacheCallTimes++]});else{var g=d.get(m);g?g.map||(g.map=new Map):d.set(m,{map:new Map}),d=d.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!W4(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();G(Kg,"MAX_CACHE_SIZE",20);G(Kg,"MAX_CACHE_OFFSET",5);var Ny=0,oS=(function(){function e(t){Kn(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ny,t.length===0&&(t.length>0,void 0),Ny+=1}return Xn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Am=new Kg;function Lp(e){var t=Array.isArray(e)?e:[e];return Am.has(t)||Am.set(t,new oS(t)),Am.get(t)}var U4=new WeakMap,Dm={};function q4(e,t){for(var n=U4,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(Dm)||n.set(Dm,e()),n.get(Dm)}var ky=new WeakMap;function Es(e){var t=ky.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof oS?t+=r.id:r&&gt(r)==="object"?t+=Es(r):t+=r}),t=Ns(t),ky.set(e,t)),t}function My(e,t){return Ns("".concat(t,"_").concat(Es(e)))}var Bp=Rr();function J(e){return typeof e=="number"?"".concat(e,"px"):e}function Vu(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=K(K({},r),{},G(G({},Sl,t),jo,n)),s=Object.keys(l).map(function(u){var d=l[u];return d?"".concat(u,'="').concat(d,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Iu=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()},G4=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(""),"}"):""},iS=function(t,n,r){var o={},l={};return Object.entries(t).forEach(function(s){var u,d,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&&(d=r.ignore)!==null&&d!==void 0&&d[p])){var v,y=Iu(p,r==null?void 0:r.prefix);o[y]=typeof g=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[p])?"".concat(g,"px"):String(g),l[p]="var(".concat(y,")")}}),[l,G4(o,n,{scope:r==null?void 0:r.scope})]},jy=Rr()?c.useLayoutEffect:c.useEffect,rn=function(t,n){var r=c.useRef(!0);jy(function(){return t(r.current)},n),jy(function(){return r.current=!1,function(){r.current=!0}},[])},Ap=function(t,n){rn(function(r){if(!r)return t()},n)},K4=K({},gd),zy=K4.useInsertionEffect,X4=function(t,n,r){c.useMemo(t,r),rn(function(){return n(!0)},r)},Q4=zy?function(e,t,n){return zy(function(){return e(),t()},n)}:X4,Y4=K({},gd),J4=Y4.useInsertionEffect,Z4=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},e3=function(){return function(t){t()}},t3=typeof J4<"u"?Z4:e3;function Xg(e,t,n,r,o){var l=c.useContext(Xs),s=l.cache,u=[e].concat(Ae(t)),d=zp(u),m=t3([d]),p=function(C){s.opUpdate(d,function(S){var b=S||[void 0,void 0],$=ae(b,2),w=$[0],O=w===void 0?0:w,R=$[1],_=R,I=_||n(),P=[O,I];return C?C(P):P})};c.useMemo(function(){p()},[d]);var g=s.opGet(d),v=g[1];return Q4(function(){o==null||o(v)},function(y){return p(function(C){var S=ae(C,2),b=S[0],$=S[1];return y&&b===0&&(o==null||o(v)),[b+1,$]}),function(){s.opUpdate(d,function(C){var S=C||[],b=ae(S,2),$=b[0],w=$===void 0?0:$,O=b[1],R=w-1;return R===0?(m(function(){(y||!s.opGet(d))&&(r==null||r(O,!1))}),null):[w-1,O]})}},[d]),v}var n3={},r3="css",ca=new Map;function o3(e){ca.set(e,(ca.get(e)||0)+1)}function i3(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Sl,'="').concat(e,'"]'));n.forEach(function(r){if(r[Li]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var a3=0;function l3(e,t){ca.set(e,(ca.get(e)||0)-1);var n=new Set;ca.forEach(function(r,o){r<=0&&n.add(o)}),ca.size-n.size>a3&&n.forEach(function(r){i3(r,t),ca.delete(r)})}var s3=function(t,n,r,o){var l=r.getDerivativeToken(t),s=K(K({},l),n);return o&&(s=o(s)),s},aS="token";function c3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(Xs),o=r.cache.instanceId,l=r.container,s=n.salt,u=s===void 0?"":s,d=n.override,m=d===void 0?n3:d,p=n.formatToken,g=n.getComputedToken,v=n.cssVar,y=q4(function(){return Object.assign.apply(Object,[{}].concat(Ae(t)))},t),C=Es(y),S=Es(m),b=v?Es(v):"",$=Xg(aS,[u,e.id,C,S,b],function(){var w,O=g?g(y,m,e):s3(y,m,e,p),R=K({},O),_="";if(v){var I=iS(O,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),P=ae(I,2);O=P[0],_=P[1]}var N=My(O,u);O._tokenKey=N,R._tokenKey=My(R,u);var T=(w=v==null?void 0:v.key)!==null&&w!==void 0?w:N;O._themeKey=T,o3(T);var k="".concat(r3,"-").concat(Ns(N));return O._hashId=k,[O,k,R,_,(v==null?void 0:v.key)||""]},function(w){l3(w[0]._themeKey,o)},function(w){var O=ae(w,4),R=O[0],_=O[3];if(v&&_){var I=ui(_,Ns("css-variables-".concat(R._themeKey)),{mark:jo,prepend:"queue",attachTo:l,priority:-999});I[Li]=o,I.setAttribute(Sl,R._themeKey)}});return $}var u3=function(t,n,r){var o=ae(t,5),l=o[2],s=o[3],u=o[4],d=r||{},m=d.plain;if(!s)return null;var p=l._tokenKey,g=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=Vu(s,u,p,v,m);return[g,p,y]},d3={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},lS="comm",sS="rule",cS="decl",f3="@import",m3="@namespace",p3="@keyframes",g3="@layer",uS=Math.abs,Qg=String.fromCharCode;function dS(e){return e.trim()}function _u(e,t,n){return e.replace(t,n)}function h3(e,t,n){return e.indexOf(t,n)}function hl(e,t){return e.charCodeAt(t)|0}function xl(e,t,n){return e.slice(t,n)}function Vo(e){return e.length}function v3(e){return e.length}function uu(e,t){return t.push(e),e}var yd=1,wl=1,fS=0,So=0,qn=0,_l="";function Yg(e,t,n,r,o,l,s,u){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:yd,column:wl,length:s,return:"",siblings:u}}function y3(){return qn}function b3(){return qn=So>0?hl(_l,--So):0,wl--,qn===10&&(wl=1,yd--),qn}function zo(){return qn=So<fS?hl(_l,So++):0,wl++,qn===10&&(wl=1,yd++),qn}function Bi(){return hl(_l,So)}function Pu(){return So}function bd(e,t){return xl(_l,e,t)}function js(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 C3(e){return yd=wl=1,fS=Vo(_l=e),So=0,[]}function S3(e){return _l="",e}function Hm(e){return dS(bd(So-1,Dp(e===91?e+2:e===40?e+1:e)))}function x3(e){for(;(qn=Bi())&&qn<33;)zo();return js(e)>2||js(qn)>3?"":" "}function w3(e,t){for(;--t&&zo()&&!(qn<48||qn>102||qn>57&&qn<65||qn>70&&qn<97););return bd(e,Pu()+(t<6&&Bi()==32&&zo()==32))}function Dp(e){for(;zo();)switch(qn){case e:return So;case 34:case 39:e!==34&&e!==39&&Dp(qn);break;case 40:e===41&&Dp(e);break;case 92:zo();break}return So}function $3(e,t){for(;zo()&&e+qn!==57;)if(e+qn===84&&Bi()===47)break;return"/*"+bd(t,So-1)+"*"+Qg(e===47?e:zo())}function E3(e){for(;!js(Bi());)zo();return bd(e,So)}function O3(e){return S3(Tu("",null,null,null,[""],e=C3(e),0,[0],e))}function Tu(e,t,n,r,o,l,s,u,d){for(var m=0,p=0,g=s,v=0,y=0,C=0,S=1,b=1,$=1,w=0,O="",R=o,_=l,I=r,P=O;b;)switch(C=w,w=zo()){case 40:if(C!=108&&hl(P,g-1)==58){h3(P+=_u(Hm(w),"&","&\f"),"&\f",uS(m?u[m-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:P+=Hm(w);break;case 9:case 10:case 13:case 32:P+=x3(C);break;case 92:P+=w3(Pu()-1,7);continue;case 47:switch(Bi()){case 42:case 47:uu(R3($3(zo(),Pu()),t,n,d),d),(js(C||1)==5||js(Bi()||1)==5)&&Vo(P)&&xl(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*S:u[m++]=Vo(P)*$;case 125*S:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+p:$==-1&&(P=_u(P,/\f/g,"")),y>0&&(Vo(P)-g||S===0&&C===47)&&uu(y>32?By(P+";",r,n,g-1,d):By(_u(P," ","")+";",r,n,g-2,d),d);break;case 59:P+=";";default:if(uu(I=Ly(P,t,n,m,p,o,u,O,R=[],_=[],g,l),l),w===123)if(p===0)Tu(P,t,I,I,R,l,g,u,_);else{switch(v){case 99:if(hl(P,3)===110)break;case 108:if(hl(P,2)===97)break;default:p=0;case 100:case 109:case 115:}p?Tu(e,I,I,r&&uu(Ly(e,I,I,0,0,o,u,O,o,R=[],g,_),_),o,_,g,u,r?R:_):Tu(P,I,I,I,[""],_,0,u,_)}}m=p=y=0,S=$=1,O=P="",g=s;break;case 58:g=1+Vo(P),y=C;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&b3()==125)continue}switch(P+=Qg(w),w*S){case 38:$=p>0?1:(P+="\f",-1);break;case 44:u[m++]=(Vo(P)-1)*$,$=1;break;case 64:Bi()===45&&(P+=Hm(zo())),v=Bi(),p=g=Vo(O=P+=E3(Pu())),w++;break;case 45:C===45&&Vo(P)==2&&(S=0)}}return l}function Ly(e,t,n,r,o,l,s,u,d,m,p,g){for(var v=o-1,y=o===0?l:[""],C=v3(y),S=0,b=0,$=0;S<r;++S)for(var w=0,O=xl(e,v+1,v=uS(b=s[S])),R=e;w<C;++w)(R=dS(b>0?y[w]+" "+O:_u(O,/&\f/g,y[w])))&&(d[$++]=R);return Yg(e,t,n,o===0?sS:u,d,m,p,g)}function R3(e,t,n,r){return Yg(e,t,n,lS,Qg(y3()),xl(e,2,-2),0,r)}function By(e,t,n,r,o){return Yg(e,t,n,cS,xl(e,0,r),xl(e,r+1,-1),r,o)}function Hp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function I3(e,t,n,r){switch(e.type){case g3:if(e.children.length)break;case f3:case m3:case cS:return e.return=e.return||e.value;case lS:return"";case p3:return e.return=e.value+"{"+Hp(e.children,r)+"}";case sS:if(!Vo(e.value=e.props.join(",")))return""}return Vo(n=Hp(e.children,r))?e.return=e.value+"{"+n+"}":""}var Ay="data-ant-cssinjs-cache-path",mS="_FILE_STYLE__",pa,pS=!0;function _3(){if(!pa&&(pa={},Rr())){var e=document.createElement("div");e.className=Ay,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],d=s[1];pa[u]=d});var n=document.querySelector("style[".concat(Ay,"]"));if(n){var r;pS=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function P3(e){return _3(),!!pa[e]}function T3(e){var t=pa[e],n=null;if(t&&Rr())if(pS)n=mS;else{var r=document.querySelector("style[".concat(jo,'="').concat(pa[e],'"]'));r?n=r.innerHTML:delete pa[e]}return[n,t]}var N3="_skip_check_",gS="_multi_value_";function Nu(e){var t=Hp(O3(e),I3);return t.replace(/\{%%%\:[^;];}/g,";")}function k3(e){return gt(e)==="object"&&e&&(N3 in e||gS in e)}function Dy(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,d=s.trim().split(/\s+/),m=d[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(d.slice(1))).join(" ")});return l.join(",")}var M3=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,d=n.layer;n.path;var m=n.hashPriority,p=n.transformers,g=p===void 0?[]:p;n.linters;var v="",y={};function C($){var w=$.getName(u);if(!y[w]){var O=e($.style,n,{root:!1,parentSelectors:s}),R=ae(O,1),_=R[0];y[w]="@keyframes ".concat($.getName(u)).concat(_)}}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")v+="".concat(w,`
55
- `);else if(w._keyframe)C(w);else{var O=g.reduce(function(R,_){var I;return(_==null||(I=_.visit)===null||I===void 0?void 0:I.call(_,R))||R},w);Object.keys(O).forEach(function(R){var _=O[R];if(gt(_)==="object"&&_&&(R!=="animationName"||!_._keyframe)&&!k3(_)){var I=!1,P=R.trim(),N=!1;(o||l)&&u?P.startsWith("@")?I=!0:P==="&"?P=Dy("",u,m):P=Dy(R,u,m):o&&!u&&(P==="&"||P==="")&&(P="",N=!0);var T=e(_,n,{root:N,injectHash:I,parentSelectors:[].concat(Ae(s),[P])}),k=ae(T,2),L=k[0],j=k[1];y=K(K({},y),j),v+="".concat(P).concat(L)}else{let q=function(W,V){var H=W.replace(/[A-Z]/g,function(U){return"-".concat(U.toLowerCase())}),Y=V;!d3[W]&&typeof Y=="number"&&Y!==0&&(Y="".concat(Y,"px")),W==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(C(V),Y=V.getName(u)),v+="".concat(H,":").concat(Y,";")};var D,A=(D=_==null?void 0:_.value)!==null&&D!==void 0?D:_;gt(_)==="object"&&_!==null&&_!==void 0&&_[gS]&&Array.isArray(A)?A.forEach(function(W){q(R,W)}):q(R,A)}})}}),o?d&&(v&&(v="@layer ".concat(d.name," {").concat(v,"}")),d.dependencies&&(y["@layer ".concat(d.name)]=d.dependencies.map(function($){return"@layer ".concat($,", ").concat(d.name,";")}).join(`
56
- `))):v="{".concat(v,"}"),[v,y]};function hS(e,t){return Ns("".concat(e.join("%")).concat(t))}function j3(){return null}var vS="style";function Fp(e,t){var n=e.token,r=e.path,o=e.hashId,l=e.layer,s=e.nonce,u=e.clientOnly,d=e.order,m=d===void 0?0:d,p=c.useContext(Xs),g=p.autoClear;p.mock;var v=p.defaultCache,y=p.hashPriority,C=p.container,S=p.ssrInline,b=p.transformers,$=p.linters,w=p.cache,O=p.layer,R=n._tokenKey,_=[R];O&&_.push("layer"),_.push.apply(_,Ae(r));var I=Bp,P=Xg(vS,_,function(){var j=_.join("|");if(P3(j)){var D=T3(j),A=ae(D,2),q=A[0],W=A[1];if(q)return[q,R,W,{},u,m]}var V=t(),H=M3(V,{hashId:o,hashPriority:y,layer:O?l:void 0,path:r.join("-"),transformers:b,linters:$}),Y=ae(H,2),U=Y[0],z=Y[1],F=Nu(U),Q=hS(_,F);return[F,R,Q,z,u,m]},function(j,D){var A=ae(j,3),q=A[2];(D||g)&&Bp&&ks(q,{mark:jo,attachTo:C})},function(j){var D=ae(j,4),A=D[0];D[1];var q=D[2],W=D[3];if(I&&A!==mS){var V={mark:jo,prepend:O?!1:"queue",attachTo:C,priority:m},H=typeof s=="function"?s():s;H&&(V.csp={nonce:H});var Y=[],U=[];Object.keys(W).forEach(function(F){F.startsWith("@layer")?Y.push(F):U.push(F)}),Y.forEach(function(F){ui(Nu(W[F]),"_layer-".concat(F),K(K({},V),{},{prepend:!0}))});var z=ui(A,q,V);z[Li]=w.instanceId,z.setAttribute(Sl,R),U.forEach(function(F){ui(Nu(W[F]),"_effect-".concat(F),V)})}}),N=ae(P,3),T=N[0],k=N[1],L=N[2];return function(j){var D;return!S||I||!v?D=c.createElement(j3,null):D=c.createElement("style",Oe({},G(G({},Sl,k),jo,L),{dangerouslySetInnerHTML:{__html:T}})),c.createElement(c.Fragment,null,D,j)}}var z3=function(t,n,r){var o=ae(t,6),l=o[0],s=o[1],u=o[2],d=o[3],m=o[4],p=o[5],g=r||{},v=g.plain;if(m)return null;var y=l,C={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)};return y=Vu(l,s,u,C,v),d&&Object.keys(d).forEach(function(S){if(!n[S]){n[S]=!0;var b=Nu(d[S]),$=Vu(b,s,"_effect-".concat(S),C,v);S.startsWith("@layer")?y=$+y:y+=$}}),[p,u,y]},yS="cssVar",L3=function(t,n){var r=t.key,o=t.prefix,l=t.unitless,s=t.ignore,u=t.token,d=t.scope,m=d===void 0?"":d,p=c.useContext(Xs),g=p.cache.instanceId,v=p.container,y=u._tokenKey,C=[].concat(Ae(t.path),[r,m,y]),S=Xg(yS,C,function(){var b=n(),$=iS(b,r,{prefix:o,unitless:l,ignore:s,scope:m}),w=ae($,2),O=w[0],R=w[1],_=hS(C,R);return[O,R,_,r]},function(b){var $=ae(b,3),w=$[2];Bp&&ks(w,{mark:jo,attachTo:v})},function(b){var $=ae(b,3),w=$[1],O=$[2];if(w){var R=ui(w,O,{mark:jo,prepend:"queue",attachTo:v,priority:-999});R[Li]=g,R.setAttribute(Sl,r)}});return S},B3=function(t,n,r){var o=ae(t,4),l=o[1],s=o[2],u=o[3],d=r||{},m=d.plain;if(!l)return null;var p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},v=Vu(l,u,s,g,m);return[p,s,v]};G(G(G({},vS,z3),aS,u3),yS,B3);var Wt=(function(){function e(t,n){Kn(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=t,this.style=n}return Xn(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 Xa(e){return e.notSplit=!0,e}Xa(["borderTop","borderBottom"]),Xa(["borderTop"]),Xa(["borderBottom"]),Xa(["borderLeft","borderRight"]),Xa(["borderLeft"]),Xa(["borderRight"]);var Jg=c.createContext({});function bS(e){return ZC(e)||XC(e)||Ug(e)||eS()}function Wo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function CS(e,t,n,r){if(!t.length)return n;var o=bS(t),l=o[0],s=o.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=Ae(e):u=K({},e),r&&n===void 0&&s.length===1?delete u[l][s[0]]:u[l]=CS(u[l],s,n,r),u}function Po(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Wo(e,t.slice(0,-1))?e:CS(e,t,n,r)}function A3(e){return gt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Hy(e){return Array.isArray(e)?[]:{}}var D3=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ul(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Hy(t[0]);return t.forEach(function(o){function l(s,u){var d=new Set(u),m=Wo(o,s),p=Array.isArray(m);if(p||A3(m)){if(!d.has(m)){d.add(m);var g=Wo(r,s);p?r=Po(r,s,[]):(!g||gt(g)!=="object")&&(r=Po(r,s,Hy(m))),D3(m).forEach(function(v){l([].concat(Ae(s),[v]),d)})}}else r=Po(r,s,m)}l([])}),r}function H3(){}const F3=c.createContext({}),Cd=()=>{const e=()=>{};return e.deprecated=H3,e},V3=c.createContext(void 0);var SS={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"},W3={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},U3=K(K({},W3),{},{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 xS={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Fy={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"]},U3),timePickerLocale:Object.assign({},xS)},Jr="${label} is not a valid ${type}",Fi={locale:"en",Pagination:SS,DatePicker:Fy,TimePicker:xS,Calendar:Fy,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:Jr,method:Jr,array:Jr,object:Jr,number:Jr,date:Jr,boolean:Jr,integer:Jr,float:Jr,regexp:Jr,email:Jr,url:Jr,hex:Jr},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 ku=Object.assign({},Fi.Modal),Mu=[];const Vy=()=>Mu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Fi.Modal);function q3(e){if(e){const t=Object.assign({},e);return Mu.push(t),ku=Vy(),()=>{Mu=Mu.filter(n=>n!==t),ku=Vy()}}ku=Object.assign({},Fi.Modal)}function wS(){return ku}const Zg=c.createContext(void 0),mi=(e,t)=>{const n=c.useContext(Zg),r=c.useMemo(()=>{var l;const s=t||Fi[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?Fi.locale:l},[n]);return[r,o]},G3="internalMark",K3=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>q3(t==null?void 0:t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(Zg.Provider,{value:o},n)},eh={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"},zs=Object.assign(Object.assign({},eh),{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}),cr=Math.round;function Fm(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 Wy=(e,t,n)=>n===0?e:e/100;function us(e,t){const n=t||255;return e>n?n:e<0?0:e}class cn{constructor(t){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(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 cn)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=us(t.r),this.g=us(t.g),this.b=us(t.b),this.a=typeof t.a=="number"?us(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=cr(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:cr(l("r")),g:cr(l("g")),b:cr(l("b")),a:cr(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=>cr((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=cr(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=cr(this.getSaturation()*100),r=cr(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]=us(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 v=cr(r*255);this.r=v,this.g=v,this.b=v}let l=0,s=0,u=0;const d=t/60,m=(1-Math.abs(2*r-1))*n,p=m*(1-Math.abs(d%2-1));d>=0&&d<1?(l=m,s=p):d>=1&&d<2?(l=p,s=m):d>=2&&d<3?(s=m,u=p):d>=3&&d<4?(s=p,u=m):d>=4&&d<5?(l=p,u=m):d>=5&&d<6&&(l=m,u=p);const g=r-m/2;this.r=cr((l+g)*255),this.g=cr((s+g)*255),this.b=cr((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=cr(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const s=t/60,u=Math.floor(s),d=s-u,m=cr(r*(1-n)*255),p=cr(r*(1-n*d)*255),g=cr(r*(1-n*(1-d))*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=Fm(t,Wy);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Fm(t,Wy);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Fm(t,(r,o)=>o.includes("%")?cr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var du=2,Uy=.16,X3=.05,Q3=.05,Y3=.15,$S=5,ES=4,J3=[{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 qy(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-du*t:Math.round(e.h)+du*t:r=n?Math.round(e.h)+du*t:Math.round(e.h)-du*t,r<0?r+=360:r>=360&&(r-=360),r}function Gy(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Uy*t:t===ES?r=e.s+Uy:r=e.s+X3*t,r>1&&(r=1),n&&t===$S&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Ky(e,t,n){var r;return n?r=e.v+Q3*t:r=e.v-Y3*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ga(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new cn(e),o=r.toHsv(),l=$S;l>0;l-=1){var s=new cn({h:qy(o,l,!0),s:Gy(o,l,!0),v:Ky(o,l,!0)});n.push(s)}n.push(r);for(var u=1;u<=ES;u+=1){var d=new cn({h:qy(o,u),s:Gy(o,u),v:Ky(o,u)});n.push(d)}return t.theme==="dark"?J3.map(function(m){var p=m.index,g=m.amount;return new cn(t.backgroundColor||"#141414").mix(n[p],g).toHexString()}):n.map(function(m){return m.toHexString()})}var Vm={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"},Vp=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Vp.primary=Vp[5];var Wp=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Wp.primary=Wp[5];var Up=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Up.primary=Up[5];var Wu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Wu.primary=Wu[5];var qp=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];qp.primary=qp[5];var Gp=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Gp.primary=Gp[5];var Kp=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Kp.primary=Kp[5];var Xp=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Xp.primary=Xp[5];var Uu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Uu.primary=Uu[5];var Qp=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Qp.primary=Qp[5];var Yp=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Yp.primary=Yp[5];var Jp=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Jp.primary=Jp[5];var Zp=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zp.primary=Zp[5];var Wm={red:Vp,volcano:Wp,orange:Up,gold:Wu,yellow:qp,lime:Gp,green:Kp,cyan:Xp,blue:Uu,geekblue:Qp,purple:Yp,magenta:Jp,grey:Zp};function OS(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:l,colorInfo:s,colorPrimary:u,colorBgBase:d,colorTextBase:m}=e,p=t(u),g=t(r),v=t(o),y=t(l),C=t(s),S=n(d,m),b=e.colorLink||e.colorInfo,$=t(b),w=new cn(y[1]).mix(new cn(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:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new cn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Z3=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 eO(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},Z3(r))}const tO=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ju(e){return(e+8)/e}function nO(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:ju(n)}))}const rO=e=>{const t=nO(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],d=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:d,fontHeight:Math.round(u*o),fontHeightLG:Math.round(m*s),fontHeightSM:Math.round(d*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function oO(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 mo=(e,t)=>new cn(e).setA(t).toRgbString(),ds=(e,t)=>new cn(e).darken(t).toHexString(),iO=e=>{const t=ga(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]}},aO=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:mo(r,.88),colorTextSecondary:mo(r,.65),colorTextTertiary:mo(r,.45),colorTextQuaternary:mo(r,.25),colorFill:mo(r,.15),colorFillSecondary:mo(r,.06),colorFillTertiary:mo(r,.04),colorFillQuaternary:mo(r,.02),colorBgSolid:mo(r,1),colorBgSolidHover:mo(r,.75),colorBgSolidActive:mo(r,.95),colorBgLayout:ds(n,4),colorBgContainer:ds(n,0),colorBgElevated:ds(n,0),colorBgSpotlight:mo(r,.85),colorBgBlur:"transparent",colorBorder:ds(n,15),colorBorderSecondary:ds(n,6)}};function RS(e){Vm.pink=Vm.magenta,Wm.pink=Wm.magenta;const t=Object.keys(eh).map(n=>{const r=e[n]===Vm[n]?Wm[n]:ga(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),OS(e,{generateColorPalettes:iO,generateNeutralColorPalettes:aO})),rO(e.fontSize)),oO(e)),tO(e)),eO(e))}const IS=Lp(RS),qu={token:zs,override:{override:zs},hashed:!0},_S=Z.createContext(qu),Ls="ant",Sd="anticon",lO=["outlined","borderless","filled","underlined"],sO=(e,t)=>t||(e?`${Ls}-${e}`:Ls),Et=c.createContext({getPrefixCls:sO,iconPrefixCls:Sd}),{Consumer:BH}=Et,Xy={};function gr(e){const t=c.useContext(Et),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,l=t[e];return Object.assign(Object.assign({classNames:Xy,styles:Xy},l),{getPrefixCls:n,direction:r,getPopupContainer:o})}const cO=`-ant-${Date.now()}-${Math.random()}`;function uO(e,t){const n={},r=(s,u)=>{let d=s.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},o=(s,u)=>{const d=new cn(s),m=ga(d.toRgbString());n[`${u}-color`]=r(d),n[`${u}-color-disabled`]=m[1],n[`${u}-color-hover`]=m[4],n[`${u}-color-active`]=m[6],n[`${u}-color-outline`]=d.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 cn(t.primaryColor),u=ga(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 d=new cn(u[0]);n["primary-color-active-deprecated-f-30"]=r(d,m=>m.setA(m.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,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 dO(e,t){const n=uO(e,t);Rr()&&ui(n,`${cO}-dynamic-theme`)}const ha=c.createContext(!1),PS=({children:e,disabled:t})=>{const n=c.useContext(ha);return c.createElement(ha.Provider,{value:t??n},e)},$l=c.createContext(void 0),fO=({children:e,size:t})=>{const n=c.useContext($l);return c.createElement($l.Provider,{value:t||n},e)};function mO(){const e=c.useContext(ha),t=c.useContext($l);return{componentDisabled:e,componentSize:t}}var TS=Xn(function e(){Kn(this,e)}),NS="CALC_UNIT",pO=new RegExp(NS,"g");function Um(e){return typeof e=="number"?"".concat(e).concat(NS):e}var gO=(function(e){di(n,e);var t=fi(n);function n(r,o){var l;Kn(this,n),l=t.call(this),G(qt(l),"result",""),G(qt(l),"unitlessCssVar",void 0),G(qt(l),"lowPriority",void 0);var s=gt(r);return l.unitlessCssVar=o,r instanceof n?l.result="(".concat(r.result,")"):s==="number"?l.result=Um(r):s==="string"&&(l.result=r),l}return Xn(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(Um(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(Um(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,d=!0;return typeof u=="boolean"?d=u:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(d=!1),this.result=this.result.replace(pO,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(TS),hO=(function(e){di(n,e);var t=fi(n);function n(r){var o;return Kn(this,n),o=t.call(this),G(qt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Xn(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})(TS),vO=function(t,n){var r=t==="css"?gO:hO;return function(o){return new r(o,n)}},Qy=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 Ln(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 El(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,d){d&&t.current||l(u)}return[o,s]}function qm(e){return e!==void 0}function An(e,t){var n=t||{},r=n.defaultValue,o=n.value,l=n.onChange,s=n.postState,u=El(function(){return qm(o)?o:qm(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=ae(u,2),m=d[0],p=d[1],g=o!==void 0?o:m,v=s?s(g):g,y=Ln(l),C=El([g]),S=ae(C,2),b=S[0],$=S[1];Ap(function(){var O=b[0];m!==O&&y(m,O)},[b]),Ap(function(){qm(o)||p(o)},[o]);var w=Ln(function(O,R){p(O,R),$([g],R)});return[v,w]}function Yy(e,t,n,r){var o=K({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var d=ae(u,2),m=d[0],p=d[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=K(K({},n),o);return Object.keys(s).forEach(function(u){s[u]===t[u]&&delete s[u]}),s}var kS=typeof CSSINJS_STATISTIC<"u",eg=!0;function Xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!kS)return Object.assign.apply(Object,[{}].concat(t));eg=!1;var r={};return t.forEach(function(o){if(gt(o)==="object"){var l=Object.keys(o);l.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),eg=!0,r}var Jy={};function yO(){}var bO=function(t){var n,r=t,o=yO;return kS&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,u){if(eg){var d;(d=n)===null||d===void 0||d.add(u)}return s[u]}}),o=function(s,u){var d;Jy[s]={global:Array.from(n),component:K(K({},(d=Jy[s])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:o}};function Zy(e,t,n){if(typeof n=="function"){var r;return n(Xt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function CO(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 SO=1e3*60*10,xO=(function(){function e(){Kn(this,e),G(this,"map",new Map),G(this,"objectIDMap",new WeakMap),G(this,"nextID",0),G(this,"lastAccessBeat",new Map),G(this,"accessBeat",0)}return Xn(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&&gt(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(gt(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>SO&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),eb=new xO;function wO(e,t){return Z.useMemo(function(){var n=eb.get(t);if(n)return n;var r=e();return eb.set(t,r),r},t)}var $O=function(){return{}};function EO(e){var t=e.useCSP,n=t===void 0?$O:t,r=e.useToken,o=e.usePrefix,l=e.getResetStyles,s=e.getCommonStyle,u=e.getCompUnitless;function d(v,y,C,S){var b=Array.isArray(v)?v[0]:v;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(v):{},R=K(K({},O),{},G({},$("zIndexPopup"),!0));Object.keys(w).forEach(function(N){R[$(N)]=w[N]});var _=K(K({},S),{},{unitless:R,prefixToken:$}),I=p(v,y,C,_),P=m(b,C,_);return function(N){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,k=I(N,T),L=ae(k,2),j=L[1],D=P(T),A=ae(D,2),q=A[0],W=A[1];return[q,j,W]}}function m(v,y,C){var S=C.unitless,b=C.injectStyle,$=b===void 0?!0:b,w=C.prefixToken,O=C.ignore,R=function(P){var N=P.rootCls,T=P.cssVar,k=T===void 0?{}:T,L=r(),j=L.realToken;return L3({path:[v],prefix:k.prefix,key:k.key,unitless:S,ignore:O,token:j,scope:N},function(){var D=Zy(v,j,y),A=Yy(v,j,D,{deprecatedTokens:C==null?void 0:C.deprecatedTokens});return Object.keys(D).forEach(function(q){A[w(q)]=A[q],delete A[q]}),A}),null},_=function(P){var N=r(),T=N.cssVar;return[function(k){return $&&T?Z.createElement(Z.Fragment,null,Z.createElement(R,{rootCls:P,cssVar:T,component:v}),k):k},T==null?void 0:T.key]};return _}function p(v,y,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(v)?v:[v,v],$=ae(b,1),w=$[0],O=b.join("-"),R=e.layer||{name:"antd"};return function(_){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,P=r(),N=P.theme,T=P.realToken,k=P.hashId,L=P.token,j=P.cssVar,D=o(),A=D.rootPrefixCls,q=D.iconPrefixCls,W=n(),V=j?"css":"js",H=wO(function(){var ne=new Set;return j&&Object.keys(S.unitless||{}).forEach(function(te){ne.add(Iu(te,j.prefix)),ne.add(Iu(te,Qy(w,j.prefix)))}),vO(V,ne)},[V,w,j==null?void 0:j.prefix]),Y=CO(V),U=Y.max,z=Y.min,F={theme:N,token:L,hashId:k,nonce:function(){return W.nonce},clientOnly:S.clientOnly,layer:R,order:S.order||-999};typeof l=="function"&&Fp(K(K({},F),{},{clientOnly:!1,path:["Shared",A]}),function(){return l(L,{prefix:{rootPrefixCls:A,iconPrefixCls:q},csp:W})});var Q=Fp(K(K({},F),{},{path:[O,_,q]}),function(){if(S.injectStyle===!1)return[];var ne=bO(L),te=ne.token,re=ne.flush,fe=Zy(w,T,C),me=".".concat(_),ue=Yy(w,T,fe,{deprecatedTokens:S.deprecatedTokens});j&&fe&&gt(fe)==="object"&&Object.keys(fe).forEach(function(he){fe[he]="var(".concat(Iu(he,Qy(w,j.prefix)),")")});var Ce=Xt(te,{componentCls:me,prefixCls:_,iconCls:".".concat(q),antCls:".".concat(A),calc:H,max:U,min:z},j?fe:ue),le=y(Ce,{hashId:k,prefixCls:_,rootPrefixCls:A,iconPrefixCls:q});re(w,ue);var ce=typeof s=="function"?s(Ce,_,I,S.resetFont):null;return[S.resetStyle===!1?null:ce,le]});return[Q,k]}}function g(v,y,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=p(v,y,C,K({resetStyle:!1,order:-998},S)),$=function(O){var R=O.prefixCls,_=O.rootCls,I=_===void 0?R:_;return b(R,I),null};return $}return{genStyleHooks:d,genSubStyleComponent:g,genComponentStyleHook:p}}const Vi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],OO="5.29.3";function Gm(e){return e>=0&&e<=255}function Cs(e,t){const{r:n,g:r,b:o,a:l}=new cn(e).toRgb();if(l<1)return e;const{r:s,g:u,b:d}=new cn(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),v=Math.round((o-d*(1-m))/m);if(Gm(p)&&Gm(g)&&Gm(v))return new cn({r:p,g,b:v,a:Math.round(m*100)/100}).toRgbString()}return new cn({r:n,g:r,b:o,a:1}).toRgbString()}var RO=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 MS(e){const{override:t}=e,n=RO(e,["override"]),r=Object.assign({},t);Object.keys(zs).forEach(v=>{delete r[v]});const o=Object.assign(Object.assign({},n),r),l=480,s=576,u=768,d=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:Cs(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:Cs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Cs(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:Cs(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:d-1,screenLG:d,screenLGMin:d,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 cn("rgba(0, 0, 0, 0.16)").toRgbString()},
77
- 0 3px 6px 0 ${new cn("rgba(0, 0, 0, 0.12)").toRgbString()},
78
- 0 5px 12px 4px ${new cn("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 tb=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 jS={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},IO={motionBase:!0,motionUnit:!0},_O={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},zS=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,l=tb(t,["override"]);let s=Object.assign(Object.assign({},r),{override:o});return s=MS(s),l&&Object.entries(l).forEach(([u,d])=>{const{theme:m}=d,p=tb(d,["theme"]);let g=p;m&&(g=zS(Object.assign(Object.assign({},s),p),{override:p},m)),s[u]=g}),s};function zr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=Z.useContext(_S),l=`${OO}-${t||""}`,s=n||IS,[u,d,m]=c3(s,[zs,e],{salt:l,override:r,getComputedToken:zS,formatToken:MS,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:jS,ignore:IO,preserve:_O}});return[s,m,t?d:"",u,o]}const Bs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Dn=(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}),Pl=()=>({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"}}),Gu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),PO=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"}}}),TO=(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})}},Ol=(e,t)=>({outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),xo=(e,t)=>({"&:focus-visible":Ol(e,t)}),LS=e=>({[`.${e}`]:Object.assign(Object.assign({},Pl()),{[`.${e} .${e}-icon`]:{display:"block"}})}),BS=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"},xo(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:pn,genComponentStyleHook:NO,genSubStyleComponent:Qs}=EO({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(Et);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=zr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=c.useContext(Et);return e??{}},getResetStyles:(e,t)=>{var n;const r=PO(e);return[r,{"&":r},LS((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Sd)]},getCommonStyle:TO,getCompUnitless:()=>jS});function xd(e,t){return Vi.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 kO=(e,t)=>{const[n,r]=zr();return Fp({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>LS(e))},MO=Object.assign({},gd),{useId:nb}=MO,jO=()=>"",zO=typeof nb>"u"?jO:nb;function LO(e,t,n){var r;Cd();const o=e||{},l=o.inherit===!1||!t?Object.assign(Object.assign({},qu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:qu.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=zO();return Ks(()=>{var u,d;if(!e)return t;const m=Object.assign({},l.components);Object.keys(e.components||{}).forEach(v=>{m[v]=Object.assign(Object.assign({},m[v]),e.components[v])});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"&&((d=o.cssVar)===null||d===void 0?void 0:d.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,d)=>u.some((m,p)=>{const g=d[p];return!Ms(m,g,!0)}))}var BO=["children"],AS=c.createContext({});function AO(e){var t=e.children,n=kt(e,BO);return c.createElement(AS.Provider,{value:n},t)}var DO=(function(e){di(n,e);var t=fi(n);function n(){return Kn(this,n),t.apply(this,arguments)}return Xn(n,[{key:"render",value:function(){return this.props.children}}]),n})(c.Component);function HO(e){var t=c.useReducer(function(u){return u+1},0),n=ae(t,2),r=n[1],o=c.useRef(e),l=Ln(function(){return o.current}),s=Ln(function(u){o.current=typeof u=="function"?u(o.current):u,r()});return[l,s]}var ki="none",fu="appear",mu="enter",pu="leave",rb="none",To="prepare",dl="start",fl="active",th="end",DS="prepared";function ob(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 FO(e,t){var n={animationend:ob("Animation","AnimationEnd"),transitionend:ob("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var VO=FO(Rr(),typeof window<"u"?window:{}),HS={};if(Rr()){var WO=document.createElement("div");HS=WO.style}var gu={};function FS(e){if(gu[e])return gu[e];var t=VO[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 HS)return gu[e]=t[l],gu[e]}return""}var VS=FS("animationend"),WS=FS("transitionend"),US=!!(VS&&WS),ib=VS||"animationend",ab=WS||"transitionend";function lb(e,t){if(!e)return null;if(gt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const UO=(function(e){var t=c.useRef();function n(o){o&&(o.removeEventListener(ab,e),o.removeEventListener(ib,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(ab,e),o.addEventListener(ib,e),t.current=o)}return c.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var qS=Rr()?c.useLayoutEffect:c.useEffect;const qO=(function(){var e=c.useRef(null);function t(){$n.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=$n(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 GO=[To,dl,fl,th],KO=[To,DS],GS=!1,XO=!0;function KS(e){return e===fl||e===th}const QO=(function(e,t,n){var r=El(rb),o=ae(r,2),l=o[0],s=o[1],u=qO(),d=ae(u,2),m=d[0],p=d[1];function g(){s(To,!0)}var v=t?KO:GO;return qS(function(){if(l!==rb&&l!==th){var y=v.indexOf(l),C=v[y+1],S=n(l);S===GS?s(C,!0):C&&m(function(b){function $(){b.isCanceled()||s(C,!0)}S===!0?$():Promise.resolve(S).then($)})}},[e,l]),c.useEffect(function(){return function(){p()}},[]),[g,l]});function YO(e,t,n,r){var o=r.motionEnter,l=o===void 0?!0:o,s=r.motionAppear,u=s===void 0?!0:s,d=r.motionLeave,m=d===void 0?!0:d,p=r.motionDeadline,g=r.motionLeaveImmediately,v=r.onAppearPrepare,y=r.onEnterPrepare,C=r.onLeavePrepare,S=r.onAppearStart,b=r.onEnterStart,$=r.onLeaveStart,w=r.onAppearActive,O=r.onEnterActive,R=r.onLeaveActive,_=r.onAppearEnd,I=r.onEnterEnd,P=r.onLeaveEnd,N=r.onVisibleChanged,T=El(),k=ae(T,2),L=k[0],j=k[1],D=HO(ki),A=ae(D,2),q=A[0],W=A[1],V=El(null),H=ae(V,2),Y=H[0],U=H[1],z=q(),F=c.useRef(!1),Q=c.useRef(null);function ne(){return n()}var te=c.useRef(!1);function re(){W(ki),U(null,!0)}var fe=Ln(function(we){var $e=q();if($e!==ki){var ke=ne();if(!(we&&!we.deadline&&we.target!==ke)){var Ie=te.current,Ge;$e===fu&&Ie?Ge=_==null?void 0:_(ke,we):$e===mu&&Ie?Ge=I==null?void 0:I(ke,we):$e===pu&&Ie&&(Ge=P==null?void 0:P(ke,we)),Ie&&Ge!==!1&&re()}}}),me=UO(fe),ue=ae(me,1),Ce=ue[0],le=function($e){switch($e){case fu:return G(G(G({},To,v),dl,S),fl,w);case mu:return G(G(G({},To,y),dl,b),fl,O);case pu:return G(G(G({},To,C),dl,$),fl,R);default:return{}}},ce=c.useMemo(function(){return le(z)},[z]),he=QO(z,!e,function(we){if(we===To){var $e=ce[To];return $e?$e(ne()):GS}if(se in ce){var ke;U(((ke=ce[se])===null||ke===void 0?void 0:ke.call(ce,ne(),null))||null)}return se===fl&&z!==ki&&(Ce(ne()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){fe({deadline:!0})},p))),se===DS&&re(),XO}),ye=ae(he,2),de=ye[0],se=ye[1],ve=KS(se);te.current=ve;var Se=c.useRef(null);qS(function(){if(!(F.current&&Se.current===t)){j(t);var we=F.current;F.current=!0;var $e;!we&&t&&u&&($e=fu),we&&t&&l&&($e=mu),(we&&!t&&m||!we&&g&&!t&&m)&&($e=pu);var ke=le($e);$e&&(e||ke[To])?(W($e),de()):W(ki),Se.current=t}},[t]),c.useEffect(function(){(z===fu&&!u||z===mu&&!l||z===pu&&!m)&&W(ki)},[u,l,m]),c.useEffect(function(){return function(){F.current=!1,clearTimeout(Q.current)}},[]);var Re=c.useRef(!1);c.useEffect(function(){L&&(Re.current=!0),L!==void 0&&z===ki&&((Re.current||L)&&(N==null||N(L)),Re.current=!0)},[L,z]);var Ne=Y;return ce[To]&&se===dl&&(Ne=K({transition:"none"},Ne)),[z,se,Ne,L??t]}function JO(e){var t=e;gt(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,d=o.removeOnLeave,m=d===void 0?!0:d,p=o.forceRender,g=o.children,v=o.motionName,y=o.leavedClassName,C=o.eventProps,S=c.useContext(AS),b=S.motion,$=n(o,b),w=c.useRef(),O=c.useRef();function R(){try{return w.current instanceof HTMLElement?w.current:Ru(O.current)}catch{return null}}var _=YO($,u,R,o),I=ae(_,4),P=I[0],N=I[1],T=I[2],k=I[3],L=c.useRef(k);k&&(L.current=!0);var j=c.useCallback(function(H){w.current=H,Fg(l,H)},[l]),D,A=K(K({},C),{},{visible:u});if(!g)D=null;else if(P===ki)k?D=g(K({},A),j):!m&&L.current&&y?D=g(K(K({},A),{},{className:y}),j):p||!m&&!y?D=g(K(K({},A),{},{style:{display:"none"}}),j):D=null;else{var q;N===To?q="prepare":KS(N)?q="active":N===dl&&(q="start");var W=lb(v,"".concat(P,"-").concat(q));D=g(K(K({},A),{},{className:ee(lb(v,P),G(G({},W,W&&q),v,typeof v=="string")),style:T}),j)}if(c.isValidElement(D)&&Gi(D)){var V=ba(D);V||(D=c.cloneElement(D,{ref:j}))}return c.createElement(DO,{ref:O},D)});return r.displayName="CSSMotion",r}const ro=JO(US);var tg="add",ng="keep",rg="remove",Km="removed";function ZO(e){var t;return e&&gt(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function og(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(ZO)}function e6(){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=og(e),s=og(t);l.forEach(function(m){for(var p=!1,g=r;g<o;g+=1){var v=s[g];if(v.key===m.key){r<g&&(n=n.concat(s.slice(r,g).map(function(y){return K(K({},y),{},{status:tg})})),r=g),n.push(K(K({},v),{},{status:ng})),r+=1,p=!0;break}}p||n.push(K(K({},m),{},{status:rg}))}),r<o&&(n=n.concat(s.slice(r).map(function(m){return K(K({},m),{},{status:tg})})));var u={};n.forEach(function(m){var p=m.key;u[p]=(u[p]||0)+1});var d=Object.keys(u).filter(function(m){return u[m]>1});return d.forEach(function(m){n=n.filter(function(p){var g=p.key,v=p.status;return g!==m||v!==rg}),n.forEach(function(p){p.key===m&&(p.status=ng)})}),n}var t6=["component","children","onVisibleChanged","onAllRemoved"],n6=["status"],r6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function o6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ro,n=(function(r){di(l,r);var o=fi(l);function l(){var s;Kn(this,l);for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];return s=o.call.apply(o,[this].concat(d)),G(qt(s),"state",{keyEntities:[]}),G(qt(s),"removeKey",function(p){s.setState(function(g){var v=g.keyEntities.map(function(y){return y.key!==p?y:K(K({},y),{},{status:Km})});return{keyEntities:v}},function(){var g=s.state.keyEntities,v=g.filter(function(y){var C=y.status;return C!==Km}).length;v===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Xn(l,[{key:"render",value:function(){var u=this,d=this.state.keyEntities,m=this.props,p=m.component,g=m.children,v=m.onVisibleChanged;m.onAllRemoved;var y=kt(m,t6),C=p||c.Fragment,S={};return r6.forEach(function(b){S[b]=y[b],delete y[b]}),delete y.keys,c.createElement(C,y,d.map(function(b,$){var w=b.status,O=kt(b,n6),R=w===tg||w===ng;return c.createElement(t,Oe({},S,{key:O.key,visible:R,eventProps:O,onVisibleChanged:function(I){v==null||v(I,{key:O.key}),I||u.removeKey(O.key)}}),function(_,I){return g(K(K({},_),{},{index:$}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var m=u.keys,p=d.keyEntities,g=og(m),v=e6(p,g);return{keyEntities:v.filter(function(y){var C=p.find(function(S){var b=S.key;return y.key===b});return!(C&&C.status===Km&&y.status===rg)})}}}]),l})(c.Component);return G(n,"defaultProps",{component:"div"}),n}const i6=o6(US),sb=c.createContext(!0);function a6(e){const t=c.useContext(sb),{children:n}=e,[,r]=zr(),{motion:o}=r,l=c.useRef(!1);return l.current||(l.current=t!==o),l.current?c.createElement(sb.Provider,{value:o},c.createElement(AO,{motion:o},n)):n}const l6=()=>null;var s6=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 c6=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ku,XS,QS,YS;function zu(){return Ku||Ls}function u6(){return XS||Sd}function d6(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const f6=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Ku=t),n!==void 0&&(XS=n),"holderRender"in e&&(YS=o),r&&(d6(r)?dO(zu(),r):QS=r)},JS=()=>({getPrefixCls:(e,t)=>t||(e?`${zu()}-${e}`:zu()),getIconPrefixCls:u6,getRootPrefixCls:()=>Ku||zu(),getTheme:()=>QS,holderRender:YS}),m6=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:l,form:s,locale:u,componentSize:d,direction:m,space:p,splitter:g,virtual:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:C,popupOverflow:S,legacyLocale:b,parentContext:$,iconPrefixCls:w,theme:O,componentDisabled:R,segmented:_,statistic:I,spin:P,calendar:N,carousel:T,cascader:k,collapse:L,typography:j,checkbox:D,descriptions:A,divider:q,drawer:W,skeleton:V,steps:H,image:Y,layout:U,list:z,mentions:F,modal:Q,progress:ne,result:te,slider:re,breadcrumb:fe,menu:me,pagination:ue,input:Ce,textArea:le,empty:ce,badge:he,radio:ye,rate:de,switch:se,transfer:ve,avatar:Se,message:Re,tag:Ne,table:we,card:$e,tabs:ke,timeline:Ie,timePicker:Ge,upload:tt,notification:St,tree:ct,colorPicker:qe,datePicker:at,rangePicker:We,flex:mt,wave:Qe,dropdown:je,warning:Je,tour:Te,tooltip:He,popover:Ot,popconfirm:ht,floatButton:Gt,floatButtonGroup:Ut,variant:dn,inputNumber:Sn,treeSelect:Qt}=e,jt=c.useCallback((Ye,zt)=>{const{prefixCls:Ht}=e;if(zt)return zt;const Pt=Ht||$.getPrefixCls("");return Ye?`${Pt}-${Ye}`:Pt},[$.getPrefixCls,e.prefixCls]),xt=w||$.iconPrefixCls||Sd,Yt=n||$.csp;kO(xt,Yt);const Vt=LO(O,$.theme,{prefixCls:jt("")}),Ze={csp:Yt,autoInsertSpaceInButton:r,alert:o,anchor:l,locale:u||b,direction:m,space:p,splitter:g,virtual:v,popupMatchSelectWidth:C??y,popupOverflow:S,getPrefixCls:jt,iconPrefixCls:xt,theme:Vt,segmented:_,statistic:I,spin:P,calendar:N,carousel:T,cascader:k,collapse:L,typography:j,checkbox:D,descriptions:A,divider:q,drawer:W,skeleton:V,steps:H,image:Y,input:Ce,textArea:le,layout:U,list:z,mentions:F,modal:Q,progress:ne,result:te,slider:re,breadcrumb:fe,menu:me,pagination:ue,empty:ce,badge:he,radio:ye,rate:de,switch:se,transfer:ve,avatar:Se,message:Re,tag:Ne,table:we,card:$e,tabs:ke,timeline:Ie,timePicker:Ge,upload:tt,notification:St,tree:ct,colorPicker:qe,datePicker:at,rangePicker:We,flex:mt,wave:Qe,dropdown:je,warning:Je,tour:Te,tooltip:He,popover:Ot,popconfirm:ht,floatButton:Gt,floatButtonGroup:Ut,variant:dn,inputNumber:Sn,treeSelect:Qt},Ct=Object.assign({},$);Object.keys(Ze).forEach(Ye=>{Ze[Ye]!==void 0&&(Ct[Ye]=Ze[Ye])}),c6.forEach(Ye=>{const zt=e[Ye];zt&&(Ct[Ye]=zt)}),typeof r<"u"&&(Ct.button=Object.assign({autoInsertSpace:r},Ct.button));const lt=Ks(()=>Ct,Ct,(Ye,zt)=>{const Ht=Object.keys(Ye),Pt=Object.keys(zt);return Ht.length!==Pt.length||Ht.some(Tt=>Ye[Tt]!==zt[Tt])}),{layer:_e}=c.useContext(Xs),Ee=c.useMemo(()=>({prefixCls:xt,csp:Yt,layer:_e?"antd":void 0}),[xt,Yt,_e]);let xe=c.createElement(c.Fragment,null,c.createElement(l6,{dropdownMatchSelectWidth:y}),t);const ze=c.useMemo(()=>{var Ye,zt,Ht,Pt;return ul(((Ye=Fi.Form)===null||Ye===void 0?void 0:Ye.defaultValidateMessages)||{},((Ht=(zt=lt.locale)===null||zt===void 0?void 0:zt.Form)===null||Ht===void 0?void 0:Ht.defaultValidateMessages)||{},((Pt=lt.form)===null||Pt===void 0?void 0:Pt.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[lt,s==null?void 0:s.validateMessages]);Object.keys(ze).length>0&&(xe=c.createElement(V3.Provider,{value:ze},xe)),u&&(xe=c.createElement(K3,{locale:u,_ANT_MARK__:G3},xe)),xe=c.createElement(Jg.Provider,{value:Ee},xe),d&&(xe=c.createElement(fO,{size:d},xe)),xe=c.createElement(a6,null,xe);const Xe=c.useMemo(()=>{const Ye=Vt||{},{algorithm:zt,token:Ht,components:Pt,cssVar:Tt}=Ye,bn=s6(Ye,["algorithm","token","components","cssVar"]),hn=zt&&(!Array.isArray(zt)||zt.length>0)?Lp(zt):IS,xn={};Object.entries(Pt||{}).forEach(([Zt,on])=>{const Le=Object.assign({},on);"algorithm"in Le&&(Le.algorithm===!0?Le.theme=hn:(Array.isArray(Le.algorithm)||typeof Le.algorithm=="function")&&(Le.theme=Lp(Le.algorithm)),delete Le.algorithm),xn[Zt]=Le});const Pn=Object.assign(Object.assign({},zs),Ht);return Object.assign(Object.assign({},bn),{theme:hn,token:Pn,components:xn,override:Object.assign({override:Pn},xn),cssVar:Tt})},[Vt]);return O&&(xe=c.createElement(_S.Provider,{value:Xe},xe)),lt.warning&&(xe=c.createElement(F3.Provider,{value:lt.warning},xe)),R!==void 0&&(xe=c.createElement(PS,{disabled:R},xe)),c.createElement(Et.Provider,{value:lt},xe)},Qo=e=>{const t=c.useContext(Et),n=c.useContext(Zg);return c.createElement(m6,Object.assign({parentContext:t,legacyLocale:n},e))};Qo.ConfigContext=Et;Qo.SizeContext=$l;Qo.config=f6;Qo.useConfig=mO;Object.defineProperty(Qo,"SizeContext",{get:()=>$l});var p6={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 ZS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function g6(e){return ZS(e)instanceof ShadowRoot}function Xu(e){return g6(e)?ZS(e):null}function h6(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function v6(e,t){ur(e,"[@ant-design/icons] ".concat(t))}function cb(e){return gt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(gt(e.icon)==="object"||typeof e.icon=="function")}function ub(){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[h6(n)]=r}return t},{})}function ig(e,t,n){return n?Z.createElement(e.tag,K(K({key:t},ub(e.attrs)),n),(e.children||[]).map(function(r,o){return ig(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Z.createElement(e.tag,K({key:t},ub(e.attrs)),(e.children||[]).map(function(r,o){return ig(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function ex(e){return ga(e)[0]}function tx(e){return e?Array.isArray(e)?e:[e]:[]}var y6=`
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
- `,b6=function(t){var n=c.useContext(Jg),r=n.csp,o=n.prefixCls,l=n.layer,s=y6;o&&(s=s.replace(/anticon/g,o)),l&&(s="@layer ".concat(l,` {
151
- `).concat(s,`
152
- }`)),c.useEffect(function(){var u=t.current,d=Xu(u);ui(s,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},C6=["icon","className","onClick","style","primaryColor","secondaryColor"],Os={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function S6(e){var t=e.primaryColor,n=e.secondaryColor;Os.primaryColor=t,Os.secondaryColor=n||ex(t),Os.calculated=!!n}function x6(){return K({},Os)}var Tl=function(t){var n=t.icon,r=t.className,o=t.onClick,l=t.style,s=t.primaryColor,u=t.secondaryColor,d=kt(t,C6),m=c.useRef(),p=Os;if(s&&(p={primaryColor:s,secondaryColor:u||ex(s)}),b6(m),v6(cb(n),"icon should be icon definiton, but got ".concat(n)),!cb(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=K(K({},g),{},{icon:g.icon(p.primaryColor,p.secondaryColor)})),ig(g.icon,"svg-".concat(g.name),K(K({className:r,onClick:o,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:m}))};Tl.displayName="IconReact";Tl.getTwoToneColors=x6;Tl.setTwoToneColors=S6;function nx(e){var t=tx(e),n=ae(t,2),r=n[0],o=n[1];return Tl.setTwoToneColors({primaryColor:r,secondaryColor:o})}function w6(){var e=Tl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var $6=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];nx(Uu.primary);var un=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,l=e.rotate,s=e.tabIndex,u=e.onClick,d=e.twoToneColor,m=kt(e,$6),p=c.useContext(Jg),g=p.prefixCls,v=g===void 0?"anticon":g,y=p.rootClassName,C=ee(y,v,G(G({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-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,$=tx(d),w=ae($,2),O=w[0],R=w[1];return c.createElement("span",Oe({role:"img","aria-label":r.name},m,{ref:t,tabIndex:S,onClick:u,className:C}),c.createElement(Tl,{icon:r,primaryColor:O,secondaryColor:R,style:b}))});un.displayName="AntdIcon";un.getTwoToneColor=w6;un.setTwoToneColor=nx;var E6=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:p6}))},rx=c.forwardRef(E6),O6={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"},R6=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:O6}))},wd=c.forwardRef(R6),I6={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"},_6=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:I6}))},Wi=c.forwardRef(_6),P6={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"},T6=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:P6}))},ox=c.forwardRef(T6),N6={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"},k6=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:N6}))},ix=c.forwardRef(k6),M6=`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`,j6=`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`,z6="".concat(M6," ").concat(j6).split(/[\s\n]+/),L6="aria-",B6="data-";function db(e,t){return e.indexOf(t)===0}function oo(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=K({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||db(o,L6))||n.data&&db(o,B6)||n.attr&&z6.includes(o))&&(r[o]=e[o])}),r}function ax(e){return e&&Z.isValidElement(e)&&e.type===Z.Fragment}const lx=(e,t,n)=>Z.isValidElement(e)?Z.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function jr(e,t){return lx(e,e,t)}const pi=e=>{const[,,,,t]=zr();return t?`${e}-css-var`:""};var Ve={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},sx=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,d=e.pauseOnHover,m=d===void 0?!0:d,p=e.eventKey,g=e.content,v=e.closable,y=e.closeIcon,C=y===void 0?"x":y,S=e.props,b=e.onClick,$=e.onNoticeClose,w=e.times,O=e.hovering,R=c.useState(!1),_=ae(R,2),I=_[0],P=_[1],N=c.useState(0),T=ae(N,2),k=T[0],L=T[1],j=c.useState(0),D=ae(j,2),A=D[0],q=D[1],W=O||I,V=s>0&&u,H=function(){$(p)},Y=function(te){(te.key==="Enter"||te.code==="Enter"||te.keyCode===Ve.ENTER)&&H()};c.useEffect(function(){if(!W&&s>0){var ne=Date.now()-A,te=setTimeout(function(){H()},s*1e3-A);return function(){m&&clearTimeout(te),q(Date.now()-ne)}}},[s,W,w]),c.useEffect(function(){if(!W&&V&&(m||A===0)){var ne=performance.now(),te,re=function fe(){cancelAnimationFrame(te),te=requestAnimationFrame(function(me){var ue=me+A-ne,Ce=Math.min(ue/(s*1e3),1);L(Ce*100),Ce<1&&fe()})};return re(),function(){m&&cancelAnimationFrame(te)}}},[s,A,W,V,w]);var U=c.useMemo(function(){return gt(v)==="object"&&v!==null?v:v?{closeIcon:C}:{}},[v,C]),z=oo(U,!0),F=100-(!k||k<0?0:k>100?100:k),Q="".concat(n,"-notice");return c.createElement("div",Oe({},S,{ref:t,className:ee(Q,o,G({},"".concat(Q,"-closable"),v)),style:r,onMouseEnter:function(te){var re;P(!0),S==null||(re=S.onMouseEnter)===null||re===void 0||re.call(S,te)},onMouseLeave:function(te){var re;P(!1),S==null||(re=S.onMouseLeave)===null||re===void 0||re.call(S,te)},onClick:b}),c.createElement("div",{className:"".concat(Q,"-content")},g),v&&c.createElement("a",Oe({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:Y,"aria-label":"Close"},z,{onClick:function(te){te.preventDefault(),te.stopPropagation(),H()}}),U.closeIcon),V&&c.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:F},F+"%"))}),cx=Z.createContext({}),A6=function(t){var n=t.children,r=t.classNames;return Z.createElement(cx.Provider,{value:{classNames:r}},n)},fb=8,mb=3,pb=16,D6=function(t){var n={offset:fb,threshold:mb,gap:pb};if(t&&gt(t)==="object"){var r,o,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:fb,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:mb,n.gap=(l=t.gap)!==null&&l!==void 0?l:pb}return[!!t,n]},H6=["className","style","classNames","styles"],F6=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,l=t.className,s=t.style,u=t.motion,d=t.onAllNoticeRemoved,m=t.onNoticeClose,p=t.stack,g=c.useContext(cx),v=g.classNames,y=c.useRef({}),C=c.useState(null),S=ae(C,2),b=S[0],$=S[1],w=c.useState([]),O=ae(w,2),R=O[0],_=O[1],I=n.map(function(W){return{config:W,key:String(W.key)}}),P=D6(p),N=ae(P,2),T=N[0],k=N[1],L=k.offset,j=k.threshold,D=k.gap,A=T&&(R.length>0||I.length<=j),q=typeof u=="function"?u(r):u;return c.useEffect(function(){T&&R.length>1&&_(function(W){return W.filter(function(V){return I.some(function(H){var Y=H.key;return V===Y})})})},[R,I,T]),c.useEffect(function(){var W;if(T&&y.current[(W=I[I.length-1])===null||W===void 0?void 0:W.key]){var V;$(y.current[(V=I[I.length-1])===null||V===void 0?void 0:V.key])}},[I,T]),Z.createElement(i6,Oe({key:r,className:ee(o,"".concat(o,"-").concat(r),v==null?void 0:v.list,l,G(G({},"".concat(o,"-stack"),!!T),"".concat(o,"-stack-expanded"),A)),style:s,keys:I,motionAppear:!0},q,{onAllRemoved:function(){d(r)}}),function(W,V){var H=W.config,Y=W.className,U=W.style,z=W.index,F=H,Q=F.key,ne=F.times,te=String(Q),re=H,fe=re.className,me=re.style,ue=re.classNames,Ce=re.styles,le=kt(re,H6),ce=I.findIndex(function(Ie){return Ie.key===te}),he={};if(T){var ye=I.length-1-(ce>-1?ce:z-1),de=r==="top"||r==="bottom"?"-50%":"0";if(ye>0){var se,ve,Se;he.height=A?(se=y.current[te])===null||se===void 0?void 0:se.offsetHeight:b==null?void 0:b.offsetHeight;for(var Re=0,Ne=0;Ne<ye;Ne++){var we;Re+=((we=y.current[I[I.length-1-Ne].key])===null||we===void 0?void 0:we.offsetHeight)+D}var $e=(A?Re:ye*L)*(r.startsWith("top")?1:-1),ke=!A&&b!==null&&b!==void 0&&b.offsetWidth&&(ve=y.current[te])!==null&&ve!==void 0&&ve.offsetWidth?((b==null?void 0:b.offsetWidth)-L*2*(ye<3?ye:3))/((Se=y.current[te])===null||Se===void 0?void 0:Se.offsetWidth):1;he.transform="translate3d(".concat(de,", ").concat($e,"px, 0) scaleX(").concat(ke,")")}else he.transform="translate3d(".concat(de,", 0, 0)")}return Z.createElement("div",{ref:V,className:ee("".concat(o,"-notice-wrapper"),Y,ue==null?void 0:ue.wrapper),style:K(K(K({},U),he),Ce==null?void 0:Ce.wrapper),onMouseEnter:function(){return _(function(Ge){return Ge.includes(te)?Ge:[].concat(Ae(Ge),[te])})},onMouseLeave:function(){return _(function(Ge){return Ge.filter(function(tt){return tt!==te})})}},Z.createElement(sx,Oe({},le,{ref:function(Ge){ce>-1?y.current[te]=Ge:delete y.current[te]},prefixCls:o,classNames:ue,styles:Ce,className:ee(fe,v==null?void 0:v.notice),style:me,times:ne,key:Q,eventKey:Q,onNoticeClose:m,hovering:T&&R.length>0})))})},V6=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,d=e.style,m=e.onAllRemoved,p=e.stack,g=e.renderNotifications,v=c.useState([]),y=ae(v,2),C=y[0],S=y[1],b=function(T){var k,L=C.find(function(j){return j.key===T});L==null||(k=L.onClose)===null||k===void 0||k.call(L),S(function(j){return j.filter(function(D){return D.key!==T})})};c.useImperativeHandle(t,function(){return{open:function(T){S(function(k){var L=Ae(k),j=L.findIndex(function(q){return q.key===T.key}),D=K({},T);if(j>=0){var A;D.times=(((A=k[j])===null||A===void 0?void 0:A.times)||0)+1,L[j]=D}else D.times=0,L.push(D);return s>0&&L.length>s&&(L=L.slice(-s)),L})},close:function(T){b(T)},destroy:function(){S([])}}});var $=c.useState({}),w=ae($,2),O=w[0],R=w[1];c.useEffect(function(){var N={};C.forEach(function(T){var k=T.placement,L=k===void 0?"topRight":k;L&&(N[L]=N[L]||[],N[L].push(T))}),Object.keys(O).forEach(function(T){N[T]=N[T]||[]}),R(N)},[C]);var _=function(T){R(function(k){var L=K({},k),j=L[T]||[];return j.length||delete L[T],L})},I=c.useRef(!1);if(c.useEffect(function(){Object.keys(O).length>0?I.current=!0:I.current&&(m==null||m(),I.current=!1)},[O]),!o)return null;var P=Object.keys(O);return Hi.createPortal(c.createElement(c.Fragment,null,P.map(function(N){var T=O[N],k=c.createElement(F6,{key:N,configList:T,placement:N,prefixCls:r,className:u==null?void 0:u(N),style:d==null?void 0:d(N),motion:l,onNoticeClose:b,onAllNoticeRemoved:_,stack:p});return g?g(k,{prefixCls:r,key:N}):k})),o)}),W6=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],U6=function(){return document.body},gb=0;function q6(){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 G6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?U6:t,r=e.motion,o=e.prefixCls,l=e.maxCount,s=e.className,u=e.style,d=e.onAllRemoved,m=e.stack,p=e.renderNotifications,g=kt(e,W6),v=c.useState(),y=ae(v,2),C=y[0],S=y[1],b=c.useRef(),$=c.createElement(V6,{container:C,ref:b,prefixCls:o,motion:r,maxCount:l,className:s,style:u,onAllRemoved:d,stack:m,renderNotifications:p}),w=c.useState([]),O=ae(w,2),R=O[0],_=O[1],I=Ln(function(N){var T=q6(g,N);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(gb),gb+=1),_(function(k){return[].concat(Ae(k),[{type:"open",config:T}])})}),P=c.useMemo(function(){return{open:I,close:function(T){_(function(k){return[].concat(Ae(k),[{type:"close",key:T}])})},destroy:function(){_(function(T){return[].concat(Ae(T),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){S(n())}),c.useEffect(function(){if(b.current&&R.length){R.forEach(function(k){switch(k.type){case"open":b.current.open(k.config);break;case"close":b.current.close(k.key);break;case"destroy":b.current.destroy();break}});var N,T;_(function(k){return(N!==k||!T)&&(N=k,T=k.filter(function(L){return!R.includes(L)})),T})}},[R]),[P,$]}var K6={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"},X6=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:K6}))},Ys=c.forwardRef(X6);function ag(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Rl(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function hb(e){const{closable:t,closeIcon:n}=e||{};return Z.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 Q6={},nh=(e,t,n=Q6)=>{const r=hb(e),o=hb(t),[l]=mi("global",Fi.global),s=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=Z.useMemo(()=>Object.assign({closeIcon:Z.createElement(Wi,null)},n),[n]),d=Z.useMemo(()=>r===!1?!1:r?ag(u,o,r):o===!1?!1:o?ag(u,o):u.closable?u:!1,[r,o,u]);return Z.useMemo(()=>{var m,p;if(d===!1)return[!1,null,s,{}];const{closeIconRender:g}=u,{closeIcon:v}=d;let y=v;const C=oo(d,!0);return y!=null&&(g&&(y=g(v)),y=Z.isValidElement(y)?Z.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}),C)):Z.createElement("span",Object.assign({"aria-label":l.close},C),y)),[!0,y,s,C]},[s,l.close,d,u])},Y6=()=>Z.useReducer(e=>e+1,0),J6=()=>{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]},Js=Z.createContext(void 0),Mi=100,Z6=10,ux=Mi*Z6,dx={Modal:Mi,Drawer:Mi,Popover:Mi,Popconfirm:Mi,Tooltip:Mi,Tour:Mi,FloatButton:Mi},eR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function tR(e){return e in dx}const Nl=(e,t)=>{const[,n]=zr(),r=Z.useContext(Js),o=tR(e);let l;if(t!==void 0)l=[t,t];else{let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+dx[e]:s+=eR[e],l=[r===void 0?t:s,s]}return l},nR=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:l,colorError:s,colorWarning:u,colorInfo:d,fontSizeLG:m,motionEaseInOutCirc:p,motionDurationSlow:g,marginXS:v,paddingXS:y,borderRadiusLG:C,zIndexPopup:S,contentPadding:b,contentBg:$}=e,w=`${t}-notice`,O=new Wt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),R=new Wt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),_={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:v,fontSize:m},[`${w}-content`]:{display:"inline-block",padding:b,background:$,borderRadius:C,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:d}};return[{[t]:Object.assign(Object.assign({},Dn(e)),{color:o,position:"fixed",top:v,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:R,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({},_)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},_),{padding:0,textAlign:"start"})}]},rR=e=>({zIndexPopup:e.zIndexPopupBase+ux+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),fx=pn("Message",e=>{const t=Xt(e,{height:150});return nR(t)},rR);var oR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iR={info:c.createElement(ix,null),success:c.createElement(rx,null),error:c.createElement(wd,null),warning:c.createElement(ox,null),loading:c.createElement(Ys,null)},mx=({prefixCls:e,type:t,icon:n,children:r})=>c.createElement("div",{className:ee(`${e}-custom-content`,`${e}-${t}`)},n||iR[t],c.createElement("span",null,r)),aR=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:l}=e,s=oR(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=c.useContext(Et),d=t||u("message"),m=pi(d),[p,g,v]=fx(d,m);return p(c.createElement(sx,Object.assign({},s,{prefixCls:d,className:ee(n,g,`${d}-notice-pure-panel`,v,m),eventKey:"pure",duration:null,content:c.createElement(mx,{prefixCls:d,type:r,icon:o},l)})))};function lR(e,t){return{motionName:t??`${e}-move-up`}}function rh(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 sR=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 cR=8,uR=3,dR=({children:e,prefixCls:t})=>{const n=pi(t),[r,o,l]=fx(t,n);return r(c.createElement(A6,{classNames:{list:ee(o,l,n)}},e))},fR=(e,{prefixCls:t,key:n})=>c.createElement(dR,{prefixCls:t,key:n},e),mR=c.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:l,duration:s=uR,rtl:u,transitionName:d,onAllRemoved:m}=e,{getPrefixCls:p,getPopupContainer:g,message:v,direction:y}=c.useContext(Et),C=r||p("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??cR}),b=()=>ee({[`${C}-rtl`]:u??y==="rtl"}),$=()=>lR(C,d),w=c.createElement("span",{className:`${C}-close-x`},c.createElement(Wi,{className:`${C}-close-icon`})),[O,R]=G6({prefixCls:C,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:fR});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},O),{prefixCls:C,message:v})),R});let vb=0;function px(e){const t=c.useRef(null);return Cd(),[c.useMemo(()=>{const r=d=>{var m;(m=t.current)===null||m===void 0||m.close(d)},o=d=>{if(!t.current){const I=()=>{};return I.then=()=>{},I}const{open:m,prefixCls:p,message:g}=t.current,v=`${p}-notice`,{content:y,icon:C,type:S,key:b,className:$,style:w,onClose:O}=d,R=sR(d,["content","icon","type","key","className","style","onClose"]);let _=b;return _==null&&(vb+=1,_=`antd-message-${vb}`),rh(I=>(m(Object.assign(Object.assign({},R),{key:_,content:c.createElement(mx,{prefixCls:p,type:S,icon:C},y),placement:"top",className:ee(S&&`${v}-${S}`,$,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),w),onClose:()=>{O==null||O(),I()}})),()=>{r(_)}))},s={open:o,destroy:d=>{var m;d!==void 0?r(d):(m=t.current)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const m=(p,g,v)=>{let y;p&&typeof p=="object"&&"content"in p?y=p:y={content:p};let C,S;typeof g=="function"?S=g:(C=g,S=v);const b=Object.assign(Object.assign({onClose:S,duration:C},y),{type:d});return o(b)};s[d]=m}),s},[]),c.createElement(mR,Object.assign({key:"message-holder"},e,{ref:t}))]}function pR(e){return px(e)}function gx(e,t){this.v=e,this.k=t}function $r(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}$r=function(s,u,d,m){function p(g,v){$r(s,g,function(y){return this._invoke(g,v,y)})}u?o?o(s,u,{value:d,enumerable:!m,configurable:!m,writable:!m}):s[u]=d:(p("next",0),p("throw",1),p("return",2))},$r(e,t,n,r)}function oh(){/*! 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,C,S,b){var $=C&&C.prototype instanceof u?C:u,w=Object.create($.prototype);return $r(w,"_invoke",(function(O,R,_){var I,P,N,T=0,k=_||[],L=!1,j={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(q,W){return I=q,P=0,N=e,j.n=W,s}};function D(A,q){for(P=A,N=q,t=0;!L&&T&&!W&&t<k.length;t++){var W,V=k[t],H=j.p,Y=V[2];A>3?(W=Y===q)&&(N=V[(P=V[4])?5:(P=3,3)],V[4]=V[5]=e):V[0]<=H&&((W=A<2&&H<V[1])?(P=0,j.v=q,j.n=V[1]):H<Y&&(W=A<3||V[0]>q||q>Y)&&(V[4]=A,V[5]=q,j.n=Y,P=0))}if(W||A>1)return s;throw L=!0,q}return function(A,q,W){if(T>1)throw TypeError("Generator is already running");for(L&&q===1&&D(q,W),P=q,N=W;(t=P<2?e:N)||!L;){I||(P?P<3?(P>1&&(j.n=-1),D(P,N)):j.n=N:j.v=N);try{if(T=2,I){if(P||(A="next"),t=I[A]){if(!(t=t.call(I,N)))throw TypeError("iterator result is not an object");if(!t.done)return t;N=t.value,P<2&&(P=0)}else P===1&&(t=I.return)&&t.call(I),P<2&&(N=TypeError("The iterator does not provide a '"+A+"' method"),P=1);I=e}else if((t=(L=j.n<0)?N:O.call(R,j))!==s)break}catch(V){I=e,P=1,N=V}finally{T=1}}return{value:t,done:L}}})(y,S,b),!0),w}var s={};function u(){}function d(){}function m(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):($r(t={},r,function(){return this}),t),g=m.prototype=u.prototype=Object.create(p);function v(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,m):(y.__proto__=m,$r(y,o,"GeneratorFunction")),y.prototype=Object.create(g),y}return d.prototype=m,$r(g,"constructor",m),$r(m,"constructor",d),d.displayName="GeneratorFunction",$r(m,o,"GeneratorFunction"),$r(g),$r(g,o,"Generator"),$r(g,r,function(){return this}),$r(g,"toString",function(){return"[object Generator]"}),(oh=function(){return{w:l,m:v}})()}function Qu(e,t){function n(o,l,s,u){try{var d=e[o](l),m=d.value;return m instanceof gx?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){d.value=p,s(d)},function(p){return n("throw",p,s,u)})}catch(p){u(p)}}var r;this.next||($r(Qu.prototype),$r(Qu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),$r(this,"_invoke",function(o,l,s){function u(){return new t(function(d,m){n(o,s,d,m)})}return r=r?r.then(u,u):u()},!0)}function hx(e,t,n,r,o){return new Qu(oh().w(e,t,n,r),o||Promise)}function gR(e,t,n,r,o){var l=hx(e,t,n,r,o);return l.next().then(function(s){return s.done?s.value:l.next()})}function hR(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 yb(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(gt(e)+" is not iterable")}function Ir(){var e=oh(),t=e.m(Ir),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,d;return function(m){u||(u={stop:function(){return d(m.a,2)},catch:function(){return m.v},abrupt:function(g,v){return d(m.a,o[g],v)},delegateYield:function(g,v,y){return u.resultName=v,d(m.d,yb(g),y)},finish:function(g){return d(m.f,g)}},d=function(g,v,y){m.p=u.prev,m.n=u.next;try{return g(v,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(Ir=function(){return{wrap:function(d,m,p,g){return e.w(l(d),m,p,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(d,m){return new gx(d,m)},AsyncIterator:Qu,async:function(d,m,p,g,v){return(r(m)?hx:gR)(l(d),m,p,g,v)},keys:hR,values:yb}})()}function bb(e,t,n,r,o,l,s){try{var u=e[l](s),d=u.value}catch(m){return void n(m)}u.done?t(d):Promise.resolve(d).then(r,o)}function Ca(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function s(d){bb(l,r,o,s,u,"next",d)}function u(d){bb(l,r,o,s,u,"throw",d)}s(void 0)})}}var Zs=K({},e4),vR=Zs.version,Xm=Zs.render,yR=Zs.unmountComponentAtNode,$d;try{var bR=Number((vR||"").split(".")[0]);bR>=18&&($d=Zs.createRoot)}catch{}function Cb(e){var t=Zs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&gt(t)==="object"&&(t.usingClientEntryPoint=e)}var Yu="__rc_react_root__";function CR(e,t){Cb(!0);var n=t[Yu]||$d(t);Cb(!1),n.render(e),t[Yu]=n}function SR(e,t){Xm==null||Xm(e,t)}function xR(e,t){if($d){CR(e,t);return}SR(e,t)}function wR(e){return lg.apply(this,arguments)}function lg(){return lg=Ca(Ir().mark(function e(t){return Ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Yu])===null||o===void 0||o.unmount(),delete t[Yu]}));case 1:case"end":return r.stop()}},e)})),lg.apply(this,arguments)}function $R(e){yR(e)}function ER(e){return sg.apply(this,arguments)}function sg(){return sg=Ca(Ir().mark(function e(t){return Ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if($d===void 0){r.next=2;break}return r.abrupt("return",wR(t));case 2:$R(t);case 3:case"end":return r.stop()}},e)})),sg.apply(this,arguments)}const OR=(e,t)=>(xR(e,t),()=>ER(t));let RR=OR;function ih(e){return RR}const Qm=()=>({height:0,opacity:0}),Sb=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},IR=e=>({height:e?e.offsetHeight:0}),Ym=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",vx=(e=Ls)=>({motionName:`${e}-motion-collapse`,onAppearStart:Qm,onEnterStart:Qm,onAppearActive:Sb,onEnterActive:Sb,onLeaveStart:IR,onLeaveActive:Qm,onAppearEnd:Ym,onEnterEnd:Ym,onLeaveEnd:Ym,motionDeadline:500}),Go=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Gn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const ah=(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}),_R=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(",")}}}}},PR=NO("Wave",_R),yx=`${Ls}-wave-target`;function TR(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 NR(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(TR))!==null&&t!==void 0?t:null}function Jm(e){return Number.isNaN(e)?0:e}const kR=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,d]=c.useState(null),[m,p]=c.useState([]),[g,v]=c.useState(0),[y,C]=c.useState(0),[S,b]=c.useState(0),[$,w]=c.useState(0),[O,R]=c.useState(!1),_={left:g,top:y,width:S,height:$,borderRadius:m.map(N=>`${N}px`).join(" ")};u&&(_["--wave-color"]=u);function I(){const N=getComputedStyle(n);d(NR(n));const T=N.position==="static",{borderLeftWidth:k,borderTopWidth:L}=N;v(T?n.offsetLeft:Jm(-Number.parseFloat(k))),C(T?n.offsetTop:Jm(-Number.parseFloat(L))),b(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:j,borderTopRightRadius:D,borderBottomLeftRadius:A,borderBottomRightRadius:q}=N;p([j,D,q,A].map(W=>Jm(Number.parseFloat(W))))}if(c.useEffect(()=>{if(n){const N=$n(()=>{I(),R(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(I),T.observe(n)),()=>{$n.cancel(N),T==null||T.disconnect()}}},[n]),!O)return null;const P=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(yx));return c.createElement(ro,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(N,T)=>{var k,L;if(T.deadline||T.propertyName==="opacity"){const j=(k=l.current)===null||k===void 0?void 0:k.parentElement;(L=s.current)===null||L===void 0||L.call(s).then(()=>{j==null||j.remove()})}return!1}},({className:N},T)=>c.createElement("div",{ref:Bo(l,T),className:ee(t,N,{"wave-quick":P}),style:_}))},MR=(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=ih();let s=null;function u(){return s}s=l(c.createElement(kR,Object.assign({},t,{target:e,registerUnmount:u})),o)},jR=(e,t,n)=>{const{wave:r}=c.useContext(Et),[,o,l]=zr(),s=Ln(m=>{const p=e.current;if(r!=null&&r.disabled||!p)return;const g=p.querySelector(`.${yx}`)||p,{showEffect:v}=r||{};(v||MR)(g,{className:t,token:o,component:n,event:m,hashId:l})}),u=c.useRef(null);return m=>{$n.cancel(u.current),u.current=$n(()=>{s(m)})}},lh=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(Et),l=c.useRef(null),s=o("wave"),[,u]=PR(s),d=jR(l,ee(s,u),r);if(Z.useEffect(()=>{const p=l.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=v=>{!ah(v.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")||d(v)};return p.addEventListener("click",g,!0),()=>{p.removeEventListener("click",g,!0)}},[n]),!Z.isValidElement(t))return t??null;const m=Gi(t)?Bo(ba(t),l):l;return jr(t,{ref:m})},Yo=e=>{const t=Z.useContext($l);return Z.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},zR=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},LR=pn(["Space","Compact"],e=>[zR(e)],()=>({}),{resetStyle:!1});var bx=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 Ed=c.createContext(null),ec=(e,t)=>{const n=c.useContext(Ed),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:l,isLastItem:s}=n,u=o==="vertical"?"-vertical-":"-";return ee(`${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}},BR=e=>{const{children:t}=e;return c.createElement(Ed.Provider,{value:null},t)},AR=e=>{const{children:t}=e,n=bx(e,["children"]);return c.createElement(Ed.Provider,{value:c.useMemo(()=>n,[n])},t)},DR=e=>{const{getPrefixCls:t,direction:n}=c.useContext(Et),{size:r,direction:o,block:l,prefixCls:s,className:u,rootClassName:d,children:m}=e,p=bx(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Yo(O=>r??O),v=t("space-compact",s),[y,C]=LR(v),S=ee(v,C,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:l,[`${v}-vertical`]:o==="vertical"},u,d),b=c.useContext(Ed),$=Mr(m),w=c.useMemo(()=>$.map((O,R)=>{const _=(O==null?void 0:O.key)||`${v}-item-${R}`;return c.createElement(AR,{key:_,compactSize:g,compactDirection:o,isFirstItem:R===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:R===$.length-1&&(!b||(b==null?void 0:b.isLastItem))},O)}),[$,b,o,g,v]);return $.length===0?null:y(c.createElement("div",Object.assign({className:S},p),w))};var HR=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 Cx=c.createContext(void 0),FR=e=>{const{getPrefixCls:t,direction:n}=c.useContext(Et),{prefixCls:r,size:o,className:l}=e,s=HR(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,d]=zr(),m=c.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),p=ee(u,{[`${u}-${m}`]:m,[`${u}-rtl`]:n==="rtl"},l,d);return c.createElement(Cx.Provider,{value:o},c.createElement("div",Object.assign({},s,{className:p})))},xb=/^[\u4E00-\u9FA5]{2}$/,cg=xb.test.bind(xb);function Sx(e){return e==="danger"?{danger:!0}:{type:e}}function wb(e){return typeof e=="string"}function Zm(e){return e==="text"||e==="link"}function VR(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&wb(e.type)&&cg(e.props.children)?jr(e,{children:e.props.children.split("").join(n)}):wb(e)?cg(e)?Z.createElement("span",null,e.split("").join(n)):Z.createElement("span",null,e):ax(e)?Z.createElement("span",null,e):e}function WR(e,t){let n=!1;const r=[];return Z.Children.forEach(e,o=>{const l=typeof o,s=l==="string"||l==="number";if(n&&s){const u=r.length-1,d=r[u];r[u]=`${d}${o}`}else r.push(o);n=s}),Z.Children.map(r,o=>VR(o,t))}["default","primary","danger"].concat(Ae(Vi));const xx=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:l}=e,s=ee(`${l}-icon`,n);return Z.createElement("span",{ref:t,className:s,style:r},o)}),$b=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:l}=e,s=ee(`${n}-loading-icon`,r);return Z.createElement(xx,{prefixCls:n,className:s,style:o,ref:t},Z.createElement(Ys,{className:l}))}),ep=()=>({width:0,opacity:0,transform:"scale(0)"}),tp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),UR=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:l,mount:s}=e,u=!!n;return r?Z.createElement($b,{prefixCls:t,className:o,style:l}):Z.createElement(ro,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:ep,onAppearActive:tp,onEnterStart:ep,onEnterActive:tp,onLeaveStart:tp,onLeaveActive:ep},({className:d,style:m},p)=>{const g=Object.assign(Object.assign({},l),m);return Z.createElement($b,{prefixCls:t,className:ee(o,d),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}}}}}),qR=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 GR=["b"],KR=["v"],np=function(t){return Math.round(Number(t||0))},XR=function(t){if(t instanceof cn)return t;if(t&&gt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=kt(n,GR);return K(K({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},As=(function(e){di(n,e);var t=fi(n);function n(r){return Kn(this,n),t.call(this,XR(r))}return Xn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),l=np(o.s*100),s=np(o.b*100),u=np(o.h),d=o.a,m="hsb(".concat(u,", ").concat(l,"%, ").concat(s,"%)"),p="hsba(".concat(u,", ").concat(l,"%, ").concat(s,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?m:p}},{key:"toHsb",value:function(){var o=this.toHsv(),l=o.v,s=kt(o,KR);return K(K({},s),{},{b:l,a:this.a})}}]),n})(cn),QR=function(t){return t instanceof As?t:new As(t)};QR("#1677ff");const YR=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",JR=(e,t)=>e?YR(e,t):"";let ug=(function(){function e(t){Kn(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 As(this.colors[0].color.metaColor)):this.metaColor=new As(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Xn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return JR(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 ZR={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"},e5=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:ZR}))},Uo=c.forwardRef(e5),wx=Z.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,l=e.style,s=e.children,u=e.isActive,d=e.role,m=e.classNames,p=e.styles,g=Z.useState(u||r),v=ae(g,2),y=v[0],C=v[1];return Z.useEffect(function(){(r||u)&&C(!0)},[r,u]),y?Z.createElement("div",{ref:t,className:ee("".concat(n,"-content"),G(G({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),o),style:l,role:d},Z.createElement("div",{className:ee("".concat(n,"-content-box"),m==null?void 0:m.body),style:p==null?void 0:p.body},s)):null});wx.displayName="PanelContent";var t5=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],$x=Z.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,d=e.className,m=e.classNames,p=m===void 0?{}:m,g=e.styles,v=g===void 0?{}:g,y=e.prefixCls,C=e.collapsible,S=e.accordion,b=e.panelKey,$=e.extra,w=e.header,O=e.expandIcon,R=e.openMotion,_=e.destroyInactivePanel,I=e.children,P=kt(e,t5),N=C==="disabled",T=$!=null&&typeof $!="boolean",k=G(G(G({onClick:function(){s==null||s(b)},onKeyDown:function(V){(V.key==="Enter"||V.keyCode===Ve.ENTER||V.which===Ve.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):Z.createElement("i",{className:"arrow"}),j=L&&Z.createElement("div",Oe({className:"".concat(y,"-expand-icon")},["header","icon"].includes(C)?k:{}),L),D=ee("".concat(y,"-item"),G(G({},"".concat(y,"-item-active"),l),"".concat(y,"-item-disabled"),N),d),A=ee(o,"".concat(y,"-header"),G({},"".concat(y,"-collapsible-").concat(C),!!C),p.header),q=K({className:A,style:v.header},["header","icon"].includes(C)?{}:k);return Z.createElement("div",Oe({},P,{ref:t,className:D}),Z.createElement("div",q,r&&j,Z.createElement("span",Oe({className:"".concat(y,"-header-text")},C==="header"?k:{}),w),T&&Z.createElement("div",{className:"".concat(y,"-extra")},$)),Z.createElement(ro,Oe({visible:l,leavedClassName:"".concat(y,"-content-hidden")},R,{forceRender:u,removeOnLeave:_}),function(W,V){var H=W.className,Y=W.style;return Z.createElement(wx,{ref:V,prefixCls:y,className:H,classNames:p,style:Y,styles:v,isActive:l,forceRender:u,role:S?"tabpanel":void 0},I)}))}),n5=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],r5=function(t,n){var r=n.prefixCls,o=n.accordion,l=n.collapsible,s=n.destroyInactivePanel,u=n.onItemClick,d=n.activeKey,m=n.openMotion,p=n.expandIcon;return t.map(function(g,v){var y=g.children,C=g.label,S=g.key,b=g.collapsible,$=g.onItemClick,w=g.destroyInactivePanel,O=kt(g,n5),R=String(S??v),_=b??l,I=w??s,P=function(k){_!=="disabled"&&(u(k),$==null||$(k))},N=!1;return o?N=d[0]===R:N=d.indexOf(R)>-1,Z.createElement($x,Oe({},O,{prefixCls:r,key:R,panelKey:R,isActive:N,accordion:o,openMotion:m,expandIcon:p,header:C,collapsible:_,onItemClick:P,destroyInactivePanel:I}),y)})},o5=function(t,n,r){if(!t)return null;var o=r.prefixCls,l=r.accordion,s=r.collapsible,u=r.destroyInactivePanel,d=r.onItemClick,m=r.activeKey,p=r.openMotion,g=r.expandIcon,v=t.key||String(n),y=t.props,C=y.header,S=y.headerClass,b=y.destroyInactivePanel,$=y.collapsible,w=y.onItemClick,O=!1;l?O=m[0]===v:O=m.indexOf(v)>-1;var R=$??s,_=function(N){R!=="disabled"&&(d(N),w==null||w(N))},I={key:v,panelKey:v,header:C,headerClass:S,isActive:O,prefixCls:o,destroyInactivePanel:b??u,openMotion:p,accordion:l,children:t.props.children,onItemClick:_,expandIcon:g,collapsible:R};return typeof t.type=="string"?t:(Object.keys(I).forEach(function(P){typeof I[P]>"u"&&delete I[P]}),Z.cloneElement(t,I))};function i5(e,t,n){return Array.isArray(e)?r5(e,n):Mr(t).map(function(r,o){return o5(r,o,n)})}function a5(e){var t=e;if(!Array.isArray(t)){var n=gt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var l5=Z.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,d=e.className,m=e.children,p=e.collapsible,g=e.openMotion,v=e.expandIcon,y=e.activeKey,C=e.defaultActiveKey,S=e.onChange,b=e.items,$=ee(r,d),w=An([],{value:y,onChange:function(T){return S==null?void 0:S(T)},defaultValue:C,postState:a5}),O=ae(w,2),R=O[0],_=O[1],I=function(T){return _(function(){if(u)return R[0]===T?[]:[T];var k=R.indexOf(T),L=k>-1;return L?R.filter(function(j){return j!==T}):[].concat(Ae(R),[T])})};ur(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var P=i5(b,m,{prefixCls:r,accordion:u,openMotion:g,expandIcon:v,collapsible:p,destroyInactivePanel:l,onItemClick:I,activeKey:R});return Z.createElement("div",Oe({ref:t,className:$,style:s,role:u?"tablist":void 0},oo(e,{aria:!0,data:!0})),P)});const sh=Object.assign(l5,{Panel:$x});sh.Panel;const s5=c.forwardRef((e,t)=>{const{getPrefixCls:n}=c.useContext(Et),{prefixCls:r,className:o,showArrow:l=!0}=e,s=n("collapse",r),u=ee({[`${s}-no-arrow`]:!l},o);return c.createElement(sh.Panel,Object.assign({ref:t},e,{prefixCls:s,className:u}))}),Ex=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`}}}),c5=e=>({animationDuration:e,animationFillMode:"both"}),u5=e=>({animationDuration:e,animationFillMode:"both"}),Od=(e,t,n,r,o=!1)=>{const l=o?"&":"";return{[`
179
- ${l}${e}-enter,
180
- ${l}${e}-appear
181
- `]:Object.assign(Object.assign({},c5(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},u5(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"}}},d5=new Wt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),f5=new Wt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),m5=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Od(r,d5,f5,e.motionDurationMid,t),{[`
185
- ${o}${r}-enter,
186
- ${o}${r}-appear
187
- `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},p5=new Wt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g5=new Wt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),h5=new Wt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v5=new Wt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),y5=new Wt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b5=new Wt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),C5=new Wt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),S5=new Wt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),x5={"move-up":{inKeyframes:C5,outKeyframes:S5},"move-down":{inKeyframes:p5,outKeyframes:g5},"move-left":{inKeyframes:h5,outKeyframes:v5},"move-right":{inKeyframes:y5,outKeyframes:b5}},Ju=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=x5[t];return[Od(r,o,l,e.motionDurationMid),{[`
188
- ${r}-enter,
189
- ${r}-appear
190
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ch=new Wt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),uh=new Wt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),dh=new Wt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),fh=new Wt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w5=new Wt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),$5=new Wt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),E5=new Wt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),O5=new Wt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),R5={"slide-up":{inKeyframes:ch,outKeyframes:uh},"slide-down":{inKeyframes:dh,outKeyframes:fh},"slide-left":{inKeyframes:w5,outKeyframes:$5},"slide-right":{inKeyframes:E5,outKeyframes:O5}},Ui=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=R5[t];return[Od(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}}]},I5=new Wt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_5=new Wt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ob=new Wt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Rb=new Wt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),P5=new Wt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),T5=new Wt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),N5=new Wt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),k5=new Wt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),M5=new Wt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),j5=new Wt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),z5=new Wt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),L5=new Wt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),B5={zoom:{inKeyframes:I5,outKeyframes:_5},"zoom-big":{inKeyframes:Ob,outKeyframes:Rb},"zoom-big-fast":{inKeyframes:Ob,outKeyframes:Rb},"zoom-left":{inKeyframes:N5,outKeyframes:k5},"zoom-right":{inKeyframes:M5,outKeyframes:j5},"zoom-up":{inKeyframes:P5,outKeyframes:T5},"zoom-down":{inKeyframes:z5,outKeyframes:L5}},tc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=B5[t];return[Od(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}}]},A5=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:l,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:d,lineWidth:m,lineType:p,colorBorder:g,colorText:v,colorTextHeading:y,colorTextDisabled:C,fontSizeLG:S,lineHeight:b,lineHeightLG:$,marginSM:w,paddingSM:O,paddingLG:R,paddingXS:_,motionDurationSlow:I,fontSizeIcon:P,contentPadding:N,fontHeight:T,fontHeightLG:k}=e,L=`${J(m)} ${p} ${g}`;return{[t]:Object.assign(Object.assign({},Dn(e)),{backgroundColor:o,border:L,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
197
- &,
198
- & > ${t}-header`]:{borderRadius:`${J(d)} ${J(d)} 0 0`}},"&:last-child":{[`
199
- &,
200
- & > ${t}-header`]:{borderRadius:`0 0 ${J(d)} ${J(d)}`}},[`> ${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 ${I}, visibility 0s`},xo(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},Pl()),{fontSize:P,transition:`transform ${I}`,svg:{transition:`transform ${I}`}}),[`${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:v,backgroundColor:n,borderTop:L,[`& > ${t}-content-box`]:{padding:N},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:_,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(O).sub(_).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:$,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(R).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:R}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${J(d)} ${J(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:C,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},D5=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},H5=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}}}},F5=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}}}}}},V5=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"}),W5=pn("Collapse",e=>{const t=Xt(e,{collapseHeaderPaddingSM:`${J(e.paddingXS)} ${J(e.paddingSM)}`,collapseHeaderPaddingLG:`${J(e.padding)} ${J(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[A5(t),H5(t),F5(t),D5(t),Ex(t)]},V5),U5=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:l,style:s}=gr("collapse"),{prefixCls:u,className:d,rootClassName:m,style:p,bordered:g=!0,ghost:v,size:y,expandIconPosition:C="start",children:S,destroyInactivePanel:b,destroyOnHidden:$,expandIcon:w}=e,O=Yo(q=>{var W;return(W=y??q)!==null&&W!==void 0?W:"middle"}),R=n("collapse",u),_=n(),[I,P,N]=W5(R),T=c.useMemo(()=>C==="left"?"start":C==="right"?"end":C,[C]),k=w??o,L=c.useCallback((q={})=>{const W=typeof k=="function"?k(q):c.createElement(Uo,{rotate:q.isActive?r==="rtl"?-90:90:void 0,"aria-label":q.isActive?"expanded":"collapsed"});return jr(W,()=>{var V;return{className:ee((V=W.props)===null||V===void 0?void 0:V.className,`${R}-arrow`)}})},[k,R,r]),j=ee(`${R}-icon-position-${T}`,{[`${R}-borderless`]:!g,[`${R}-rtl`]:r==="rtl",[`${R}-ghost`]:!!v,[`${R}-${O}`]:O!=="middle"},l,d,m,P,N),D=c.useMemo(()=>Object.assign(Object.assign({},vx(_)),{motionAppear:!1,leavedClassName:`${R}-content-hidden`}),[_,R]),A=c.useMemo(()=>S?Mr(S).map((q,W)=>{var V,H;const Y=q.props;if(Y!=null&&Y.disabled){const U=(V=q.key)!==null&&V!==void 0?V:String(W),z=Object.assign(Object.assign({},Gn(q.props,["disabled"])),{key:U,collapsible:(H=Y.collapsible)!==null&&H!==void 0?H:"disabled"});return jr(q,z)}return q}):null,[S]);return I(c.createElement(sh,Object.assign({ref:t,openMotion:D},Gn(e,["rootClassName"]),{expandIcon:L,prefixCls:R,className:j,style:Object.assign(Object.assign({},s),p),destroyInactivePanel:$??b}),A))}),ml=Object.assign(U5,{Panel:s5}),q5=e=>e instanceof ug?e:new ug(e),G5=(e,t)=>{const{r:n,g:r,b:o,a:l}=e.toRgb(),s=new As(e.toRgbString()).onBackground(t).toHsv();return l<=.5?s.v>.5:n*.299+r*.587+o*.114>192},Ox=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Xt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Rx=e=>{var t,n,r,o,l,s;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(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:ju(u),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:ju(d),v=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:ju(m),y=G5(new ug(e.colorBgSolid),"#fff")?"#000":"#fff",C=Vi.reduce((S,b)=>Object.assign(Object.assign({},S),{[`${b}ShadowColor`]:`0 ${J(e.controlOutlineWidth)} 0 ${Cs(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},C),{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:d,contentFontSizeLG:m,contentLineHeight:p,contentLineHeightSM:g,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-u*p)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-m*v)/2-e.lineWidth,0)})},K5=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:l,motionEaseInOut:s,iconGap:u,calc:d}=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`]:Pl(),"> a":{color:"currentColor"},"&:not(:disabled)":xo(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:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(u).mul(-1).equal()}}}}}},Ix=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),X5=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Q5=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Rd=(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"},Ix(e,Object.assign({background:t},s),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:l||void 0}})}),Y5=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Q5(e))}),J5=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Id=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?J5:Y5;return Object.assign(Object.assign({},l(e)),Ix(e.componentCls,t,n))},_d=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Id(e,r,o))}),Pd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Id(e,r,o))}),Td=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Nd=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Id(e,n,r))}),Ko=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Id(e,r,o,n))}),Z5=e=>{const{componentCls:t}=e;return Vi.reduce((n,r)=>{const o=e[`${r}6`],l=e[`${r}1`],s=e[`${r}5`],u=e[`${r}2`],d=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`]},_d(e,e.colorTextLightSolid,o,{background:s},{background:m})),Pd(e,o,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),Td(e)),Nd(e,l,{color:o,background:u},{color:o,background:d})),Ko(e,o,"link",{color:s},{color:m})),Ko(e,o,"text",{color:s,background:l},{color:m,background:d}))})},{})},eI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},_d(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Td(e)),Nd(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Rd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ko(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),tI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Pd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Td(e)),Nd(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Ko(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ko(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Rd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),nI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},_d(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Pd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Td(e)),Nd(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Ko(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ko(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Rd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rI=e=>Object.assign(Object.assign({},Ko(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Rd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),oI=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:eI(e),[`${t}-color-primary`]:tI(e),[`${t}-color-dangerous`]:nI(e),[`${t}-color-link`]:rI(e)},Z5(e))},iI=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Pd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ko(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),_d(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ko(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),mh=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:l,buttonPaddingHorizontal:s,iconCls:u,buttonPaddingVertical:d,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:o,height:r,padding:`${J(d)} ${J(s)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:X5(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},aI=e=>{const t=Xt(e,{fontSize:e.contentFontSize});return mh(t,e.componentCls)},lI=e=>{const t=Xt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return mh(t,`${e.componentCls}-sm`)},sI=e=>{const t=Xt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return mh(t,`${e.componentCls}-lg`)},cI=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},uI=pn("Button",e=>{const t=Ox(e);return[K5(t),aI(t),lI(t),sI(t),cI(t),oI(t),iI(t),qR(t)]},Rx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function dI(e,t,n,r){const{focusElCls:o,focus:l,borderElCls:s}=n,u=s?"> *":"",d=["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({[d]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function fI(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 kd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,l=`${o}-compact`;return{[l]:Object.assign(Object.assign({},dI(e,l,t,o)),fI(o,l,t))}}function mI(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 pI(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 gI(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},mI(e,t,e.componentCls)),pI(e.componentCls,t))}}const hI=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,l=o(r).mul(-1).equal(),s=u=>{const d=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${d} + ${d}::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))},vI=Qs(["Button","compact"],e=>{const t=Ox(e);return[kd(t),gI(t),hI(t)]},Rx);var yI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function bI(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 CI={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},SI=Z.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:l,color:s,variant:u,type:d,danger:m=!1,shape:p,size:g,styles:v,disabled:y,className:C,rootClassName:S,children:b,icon:$,iconPosition:w="start",ghost:O=!1,block:R=!1,htmlType:_="button",classNames:I,style:P={},autoInsertSpace:N,autoFocus:T}=e,k=yI(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=d||"default",{button:j}=Z.useContext(Et),D=p||(j==null?void 0:j.shape)||"default",[A,q]=c.useMemo(()=>{if(s&&u)return[s,u];if(d||m){const ht=CI[L]||[];return m?["danger",ht[1]]:ht}return j!=null&&j.color&&(j!=null&&j.variant)?[j.color,j.variant]:["default","outlined"]},[s,u,d,m,j==null?void 0:j.color,j==null?void 0:j.variant,L]),V=A==="danger"?"dangerous":A,{getPrefixCls:H,direction:Y,autoInsertSpace:U,className:z,style:F,classNames:Q,styles:ne}=gr("button"),te=(n=N??U)!==null&&n!==void 0?n:!0,re=H("btn",l),[fe,me,ue]=uI(re),Ce=c.useContext(ha),le=y??Ce,ce=c.useContext(Cx),he=c.useMemo(()=>bI(o),[o]),[ye,de]=c.useState(he.loading),[se,ve]=c.useState(!1),Se=c.useRef(null),Re=Xo(t,Se),Ne=c.Children.count(b)===1&&!$&&!Zm(q),we=c.useRef(!0);Z.useEffect(()=>(we.current=!1,()=>{we.current=!0}),[]),rn(()=>{let ht=null;he.delay>0?ht=setTimeout(()=>{ht=null,de(!0)},he.delay):de(he.loading);function Gt(){ht&&(clearTimeout(ht),ht=null)}return Gt},[he.delay,he.loading]),c.useEffect(()=>{if(!Se.current||!te)return;const ht=Se.current.textContent||"";Ne&&cg(ht)?se||ve(!0):se&&ve(!1)}),c.useEffect(()=>{T&&Se.current&&Se.current.focus()},[]);const $e=Z.useCallback(ht=>{var Gt;if(ye||le){ht.preventDefault();return}(Gt=e.onClick)===null||Gt===void 0||Gt.call(e,("href"in e,ht))},[e.onClick,ye,le]),{compactSize:ke,compactItemClassnames:Ie}=ec(re,Y),Ge={large:"lg",small:"sm",middle:void 0},tt=Yo(ht=>{var Gt,Ut;return(Ut=(Gt=g??ke)!==null&&Gt!==void 0?Gt:ce)!==null&&Ut!==void 0?Ut:ht}),St=tt&&(r=Ge[tt])!==null&&r!==void 0?r:"",ct=ye?"loading":$,qe=Gn(k,["navigate"]),at=ee(re,me,ue,{[`${re}-${D}`]:D!=="default"&&D,[`${re}-${L}`]:L,[`${re}-dangerous`]:m,[`${re}-color-${V}`]:V,[`${re}-variant-${q}`]:q,[`${re}-${St}`]:St,[`${re}-icon-only`]:!b&&b!==0&&!!ct,[`${re}-background-ghost`]:O&&!Zm(q),[`${re}-loading`]:ye,[`${re}-two-chinese-chars`]:se&&te&&!ye,[`${re}-block`]:R,[`${re}-rtl`]:Y==="rtl",[`${re}-icon-end`]:w==="end"},Ie,C,S,z),We=Object.assign(Object.assign({},F),P),mt=ee(I==null?void 0:I.icon,Q.icon),Qe=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),ne.icon||{}),je=ht=>Z.createElement(xx,{prefixCls:re,className:mt,style:Qe},ht),Je=()=>Z.createElement(UR,{existIcon:!!$,prefixCls:re,loading:ye,mount:we.current});let Te;$&&!ye?Te=je($):o&&typeof o=="object"&&o.icon?Te=je(o.icon):Te=Je();const He=b||b===0?WR(b,Ne&&te):null;if(qe.href!==void 0)return fe(Z.createElement("a",Object.assign({},qe,{className:ee(at,{[`${re}-disabled`]:le}),href:le?void 0:qe.href,style:We,onClick:$e,ref:Re,tabIndex:le?-1:0,"aria-disabled":le}),Te,He));let Ot=Z.createElement("button",Object.assign({},k,{type:_,className:at,style:We,onClick:$e,disabled:le,ref:Re}),Te,He,Ie&&Z.createElement(vI,{prefixCls:re}));return Zm(q)||(Ot=Z.createElement(lh,{component:"Button",disabled:ye},Ot)),fe(Ot)}),Or=SI;Or.Group=FR;Or.__ANT_BUTTON=!0;const rp=e=>typeof(e==null?void 0:e.then)=="function",_x=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:l,autoFocus:s,emitEvent:u,isSilent:d,quitOnNullishReturnValue:m,actionFn:p}=e,g=c.useRef(!1),v=c.useRef(null),[y,C]=El(!1),S=(...w)=>{l==null||l.apply(void 0,w)};c.useEffect(()=>{let w=null;return s&&(w=setTimeout(()=>{var O;(O=v.current)===null||O===void 0||O.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[s]);const b=w=>{rp(w)&&(C(!0),w.then((...O)=>{C(!1,!0),S.apply(void 0,O),g.current=!1},O=>{if(C(!1,!0),g.current=!1,!(d!=null&&d()))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&&!rp(O)){g.current=!1,S(w);return}}else if(p.length)O=p(l),g.current=!1;else if(O=p(),!rp(O)){S();return}b(O)};return c.createElement(Or,Object.assign({},Sx(t),{onClick:$,loading:y,prefixCls:r},o,{ref:v}),n)},nc=Z.createContext({}),{Provider:Px}=nc,Ib=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:l,close:s,onCancel:u,onConfirm:d}=c.useContext(nc);return o?Z.createElement(_x,{isSilent:r,actionFn:u,close:(...m)=>{s==null||s.apply(void 0,m),d==null||d(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},n):null},_b=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:l,okType:s,onConfirm:u,onOk:d}=c.useContext(nc);return Z.createElement(_x,{isSilent:n,type:s||"primary",actionFn:d,close:(...m)=>{t==null||t.apply(void 0,m),u==null||u(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},l)};var Tx=c.createContext(null),Pb=[];function xI(e,t){var n=c.useState(function(){if(!Rr())return null;var C=document.createElement("div");return C}),r=ae(n,1),o=r[0],l=c.useRef(!1),s=c.useContext(Tx),u=c.useState(Pb),d=ae(u,2),m=d[0],p=d[1],g=s||(l.current?void 0:function(C){p(function(S){var b=[C].concat(Ae(S));return b})});function v(){o.parentElement||document.body.appendChild(o),l.current=!0}function y(){var C;(C=o.parentElement)===null||C===void 0||C.removeChild(o),l.current=!1}return rn(function(){return e?s?s(v):v():y(),y},[e]),rn(function(){m.length&&(m.forEach(function(C){return C()}),p(Pb))},[m]),[o,g]}function wI(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"),d=parseInt(u.width,10),m=parseInt(u.height,10);try{var p=d?"width: ".concat(u.width,";"):"",g=m?"height: ".concat(u.height,";"):"";ui(`
204
- #`.concat(t,`::-webkit-scrollbar {
205
- `).concat(p,`
206
- `).concat(g,`
207
- }`),t)}catch(C){console.error(C),o=d,l=m}}document.body.appendChild(n);var v=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ks(t),{width:v,height:y}}function $I(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:wI(e)}function EI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var OI="rc-util-locker-".concat(Date.now()),Tb=0;function RI(e){var t=!!e,n=c.useState(function(){return Tb+=1,"".concat(OI,"_").concat(Tb)}),r=ae(n,1),o=r[0];rn(function(){if(t){var l=$I(document.body).width,s=EI();ui(`
208
- html body {
209
- overflow-y: hidden;
210
- `.concat(s?"width: calc(100% - ".concat(l,"px);"):"",`
211
- }`),o)}else ks(o);return function(){ks(o)}},[t,o])}var II=!1;function _I(e){return II}var Nb=function(t){return t===!1?!1:!Rr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Md=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,d=c.useState(n),m=ae(d,2),p=m[0],g=m[1],v=p||n;c.useEffect(function(){(s||n)&&g(n)},[n,s]);var y=c.useState(function(){return Nb(o)}),C=ae(y,2),S=C[0],b=C[1];c.useEffect(function(){var L=Nb(o);b(L??null)});var $=xI(v&&!S),w=ae($,2),O=w[0],R=w[1],_=S??O;RI(r&&n&&Rr()&&(_===O||_===document.body));var I=null;if(u&&Gi(u)&&t){var P=u;I=P.ref}var N=Xo(I,t);if(!v||!Rr()||S===void 0)return null;var T=_===!1||_I(),k=u;return t&&(k=c.cloneElement(u,{ref:N})),c.createElement(Tx.Provider,{value:R},T?k:Hi.createPortal(k,_))}),Nx=c.createContext({});function PI(){var e=K({},gd);return e.useId}var kb=0,Mb=PI();const jd=Mb?(function(t){var n=Mb();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=kb;kb+=1,l("rc_unique_".concat(s))},[]),t||o});function jb(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function zb(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 TI(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=zb(o),n.top+=zb(o,!0),n}const NI=c.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var kI={width:0,height:0,overflow:"hidden",outline:"none"},MI={outline:"none"},kx=Z.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.title,s=e.ariaId,u=e.footer,d=e.closable,m=e.closeIcon,p=e.onClose,g=e.children,v=e.bodyStyle,y=e.bodyProps,C=e.modalRender,S=e.onMouseDown,b=e.onMouseUp,$=e.holderRef,w=e.visible,O=e.forceRender,R=e.width,_=e.height,I=e.classNames,P=e.styles,N=Z.useContext(Nx),T=N.panel,k=Xo($,T),L=c.useRef(),j=c.useRef();Z.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===j.current?L.current.focus({preventScroll:!0}):!F&&ne===L.current&&j.current.focus({preventScroll:!0})}}});var D={};R!==void 0&&(D.width=R),_!==void 0&&(D.height=_);var A=u?Z.createElement("div",{className:ee("".concat(n,"-footer"),I==null?void 0:I.footer),style:K({},P==null?void 0:P.footer)},u):null,q=l?Z.createElement("div",{className:ee("".concat(n,"-header"),I==null?void 0:I.header),style:K({},P==null?void 0:P.header)},Z.createElement("div",{className:"".concat(n,"-title"),id:s},l)):null,W=c.useMemo(function(){return gt(d)==="object"&&d!==null?d:d?{closeIcon:m??Z.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,m,n]),V=oo(W,!0),H=gt(d)==="object"&&d.disabled,Y=d?Z.createElement("button",Oe({type:"button",onClick:p,"aria-label":"Close"},V,{className:"".concat(n,"-close"),disabled:H}),W.closeIcon):null,U=Z.createElement("div",{className:ee("".concat(n,"-content"),I==null?void 0:I.content),style:P==null?void 0:P.content},Y,q,Z.createElement("div",Oe({className:ee("".concat(n,"-body"),I==null?void 0:I.body),style:K(K({},v),P==null?void 0:P.body)},y),g),A);return Z.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?s:null,"aria-modal":"true",ref:k,style:K(K({},o),D),className:ee(n,r),onMouseDown:S,onMouseUp:b},Z.createElement("div",{ref:L,tabIndex:0,style:MI},Z.createElement(NI,{shouldUpdate:w||O},C?C(U):U)),Z.createElement("div",{tabIndex:0,ref:j,style:kI}))}),Mx=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,l=e.className,s=e.visible,u=e.forceRender,d=e.destroyOnClose,m=e.motionName,p=e.ariaId,g=e.onVisibleChanged,v=e.mousePosition,y=c.useRef(),C=c.useState(),S=ae(C,2),b=S[0],$=S[1],w={};b&&(w.transformOrigin=b);function O(){var R=TI(y.current);$(v&&(v.x||v.y)?"".concat(v.x-R.left,"px ").concat(v.y-R.top,"px"):"")}return c.createElement(ro,{visible:s,onVisibleChanged:g,onAppearPrepare:O,onEnterPrepare:O,forceRender:u,motionName:m,removeOnLeave:d,ref:y},function(R,_){var I=R.className,P=R.style;return c.createElement(kx,Oe({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:_,style:K(K(K({},P),o),w),className:ee(l,I)}))})});Mx.displayName="Content";var jI=function(t){var n=t.prefixCls,r=t.style,o=t.visible,l=t.maskProps,s=t.motionName,u=t.className;return c.createElement(ro,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(n,"-mask-hidden")},function(d,m){var p=d.className,g=d.style;return c.createElement("div",Oe({ref:m,style:K(K({},g),r),className:ee("".concat(n,"-mask"),p,u)},l))})},zI=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,d=u===void 0?!0:u,m=t.focusTriggerAfterClose,p=m===void 0?!0:m,g=t.wrapStyle,v=t.wrapClassName,y=t.wrapProps,C=t.onClose,S=t.afterOpenChange,b=t.afterClose,$=t.transitionName,w=t.animation,O=t.closable,R=O===void 0?!0:O,_=t.mask,I=_===void 0?!0:_,P=t.maskTransitionName,N=t.maskAnimation,T=t.maskClosable,k=T===void 0?!0:T,L=t.maskStyle,j=t.maskProps,D=t.rootClassName,A=t.classNames,q=t.styles,W=c.useRef(),V=c.useRef(),H=c.useRef(),Y=c.useState(s),U=ae(Y,2),z=U[0],F=U[1],Q=jd();function ne(){Mp(V.current,document.activeElement)||(W.current=document.activeElement)}function te(){if(!Mp(V.current,document.activeElement)){var de;(de=H.current)===null||de===void 0||de.focus()}}function re(de){if(de)te();else{if(F(!1),I&&W.current&&p){try{W.current.focus({preventScroll:!0})}catch{}W.current=null}z&&(b==null||b())}S==null||S(de)}function fe(de){C==null||C(de)}var me=c.useRef(!1),ue=c.useRef(),Ce=function(){clearTimeout(ue.current),me.current=!0},le=function(){ue.current=setTimeout(function(){me.current=!1})},ce=null;k&&(ce=function(se){me.current?me.current=!1:V.current===se.target&&fe(se)});function he(de){if(d&&de.keyCode===Ve.ESC){de.stopPropagation(),fe(de);return}s&&de.keyCode===Ve.TAB&&H.current.changeActive(!de.shiftKey)}c.useEffect(function(){s&&(F(!0),ne())},[s]),c.useEffect(function(){return function(){clearTimeout(ue.current)}},[]);var ye=K(K(K({zIndex:o},g),q==null?void 0:q.wrapper),{},{display:z?null:"none"});return c.createElement("div",Oe({className:ee("".concat(r,"-root"),D)},oo(t,{data:!0})),c.createElement(jI,{prefixCls:r,visible:I&&s,motionName:jb(r,P,N),style:K(K({zIndex:o},L),q==null?void 0:q.mask),maskProps:j,className:A==null?void 0:A.mask}),c.createElement("div",Oe({tabIndex:-1,onKeyDown:he,className:ee("".concat(r,"-wrap"),v,A==null?void 0:A.wrapper),ref:V,onClick:ce,style:ye},y),c.createElement(Mx,Oe({},t,{onMouseDown:Ce,onMouseUp:le,ref:H,closable:R,ariaId:Q,prefixCls:r,visible:s&&z,onClose:fe,onVisibleChanged:re,motionName:jb(r,$,w)}))))},jx=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,l=t.destroyOnClose,s=l===void 0?!1:l,u=t.afterClose,d=t.panelRef,m=c.useState(n),p=ae(m,2),g=p[0],v=p[1],y=c.useMemo(function(){return{panel:d}},[d]);return c.useEffect(function(){n&&v(!0)},[n]),!o&&s&&!g?null:c.createElement(Nx.Provider,{value:y},c.createElement(Md,{open:n||o||g,autoDestroy:!1,getContainer:r,autoLock:n||g},c.createElement(zI,Oe({},t,{destroyOnClose:s,afterClose:function(){u==null||u(),v(!1)}}))))};jx.displayName="Dialog";var da="RC_FORM_INTERNAL_HOOKS",wn=function(){ur(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Il=c.createContext({getFieldValue:wn,getFieldsValue:wn,getFieldError:wn,getFieldWarning:wn,getFieldsError:wn,isFieldsTouched:wn,isFieldTouched:wn,isFieldValidating:wn,isFieldsValidating:wn,resetFields:wn,setFields:wn,setFieldValue:wn,setFieldsValue:wn,validateFields:wn,submit:wn,getInternalHooks:function(){return wn(),{dispatch:wn,initEntityValue:wn,registerField:wn,useSubscribe:wn,setInitialValues:wn,destroyForm:wn,setCallbacks:wn,registerWatch:wn,getFields:wn,setValidateMessages:wn,setPreserve:wn,getInitialValue:wn}}}),Zu=c.createContext(null);function dg(e){return e==null?[]:Array.isArray(e)?e:[e]}function LI(e){return e&&!!e._init}function fg(){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 mg=fg();function BI(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function AI(e,t,n){if(Wg())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ps(o,n.prototype),o}function pg(e){var t=typeof Map=="function"?new Map:void 0;return pg=function(r){if(r===null||!BI(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 AI(r,arguments,Ts(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ps(o,r)},pg(e)}var DI=/%[sdj%]/g,HI=function(){};function gg(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 to(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(DI,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 FI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function rr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||FI(t)&&typeof e=="string"&&!e)}function VI(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 Lb(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 WI(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ae(e[n]||[]))}),t}var Bb=(function(e){di(n,e);var t=fi(n);function n(r,o){var l;return Kn(this,n),l=t.call(this,"Async Validation Error"),G(qt(l),"errors",void 0),G(qt(l),"fields",void 0),l.errors=r,l.fields=o,l}return Xn(n)})(pg(Error));function UI(e,t,n,r,o){if(t.first){var l=new Promise(function(v,y){var C=function($){return r($),$.length?y(new Bb($,gg($))):v(o)},S=WI(e);Lb(S,n,C)});return l.catch(function(v){return v}),l}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),d=u.length,m=0,p=[],g=new Promise(function(v,y){var C=function(b){if(p.push.apply(p,b),m++,m===d)return r(p),p.length?y(new Bb(p,gg(p))):v(o)};u.length||(r(p),v(o)),u.forEach(function(S){var b=e[S];s.indexOf(S)!==-1?Lb(b,n,C):VI(b,n,C)})});return g.catch(function(v){return v}),g}function qI(e){return!!(e&&e.message!==void 0)}function GI(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Ab(e,t){return function(n){var r;return e.fullFields?r=GI(t,e.fullFields):r=t[n.field||e.fullField],qI(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 Db(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];gt(r)==="object"&&gt(e[n])==="object"?e[n]=K(K({},e[n]),r):e[n]=r}}return e}var Qa="enum",KI=function(t,n,r,o,l){t[Qa]=Array.isArray(t[Qa])?t[Qa]:[],t[Qa].indexOf(n)===-1&&o.push(to(l.messages[Qa],t.fullField,t[Qa].join(", ")))},XI=function(t,n,r,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(to(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(to(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},QI=function(t,n,r,o,l){var s=typeof t.len=="number",u=typeof t.min=="number",d=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,g=null,v=typeof n=="number",y=typeof n=="string",C=Array.isArray(n);if(v?g="number":y?g="string":C&&(g="array"),!g)return!1;C&&(p=n.length),y&&(p=n.replace(m,"_").length),s?p!==t.len&&o.push(to(l.messages[g].len,t.fullField,t.len)):u&&!d&&p<t.min?o.push(to(l.messages[g].min,t.fullField,t.min)):d&&!u&&p>t.max?o.push(to(l.messages[g].max,t.fullField,t.max)):u&&d&&(p<t.min||p>t.max)&&o.push(to(l.messages[g].range,t.fullField,t.min,t.max))},zx=function(t,n,r,o,l,s){t.required&&(!r.hasOwnProperty(t.field)||rr(n,s||t.type))&&o.push(to(l.messages.required,t.fullField))},hu;const YI=(function(){if(hu)return hu;var e="[a-fA-F\\d:]",t=function(I){return I&&I.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,"$)")),d=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(s,"$")),p=function(I){return I&&I.exact?u:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(s).concat(t(I),")"),"g")};p.v4=function(_){return _&&_.exact?d:new RegExp("".concat(t(_)).concat(n).concat(t(_)),"g")},p.v6=function(_){return _&&_.exact?m:new RegExp("".concat(t(_)).concat(s).concat(t(_)),"g")};var g="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",y=p.v4().source,C=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"]*)?',R="(?:".concat(g,"|www\\.)").concat(v,"(?:localhost|").concat(y,"|").concat(C,"|").concat(S).concat(b).concat($,")").concat(w).concat(O);return hu=new RegExp("(?:^".concat(R,"$)"),"i"),hu});var op={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},Ss={integer:function(t){return Ss.number(t)&&parseInt(t,10)===t},float:function(t){return Ss.number(t)&&!Ss.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 gt(t)==="object"&&!Ss.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(op.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(op.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(YI())},hex:function(t){return typeof t=="string"&&!!t.match(op.hex)}},JI=function(t,n,r,o,l){if(t.required&&n===void 0){zx(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?Ss[u](n)||o.push(to(l.messages.types[u],t.fullField,t.type)):u&&gt(n)!==t.type&&o.push(to(l.messages.types[u],t.fullField,t.type))},ZI=function(t,n,r,o,l){(/^\s+$/.test(n)||n==="")&&o.push(to(l.messages.whitespace,t.fullField))};const en={required:zx,whitespace:ZI,type:JI,range:QI,enum:KI,pattern:XI};var e_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l)}r(s)},t_=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();en.required(t,n,o,s,l,"array"),n!=null&&(en.type(t,n,o,s,l),en.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(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&en.type(t,n,o,s,l)}r(s)},r_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n,"date")&&!t.required)return r();if(en.required(t,n,o,s,l),!rr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),en.type(t,d,o,s,l),d&&en.range(t,d.getTime(),o,s,l)}}r(s)},o_="enum",i_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&en[o_](t,n,o,s,l)}r(s)},a_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&(en.type(t,n,o,s,l),en.range(t,n,o,s,l))}r(s)},l_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&(en.type(t,n,o,s,l),en.range(t,n,o,s,l))}r(s)},s_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&en.type(t,n,o,s,l)}r(s)},c_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&(en.type(t,n,o,s,l),en.range(t,n,o,s,l))}r(s)},u_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&en.type(t,n,o,s,l)}r(s)},d_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n,"string")&&!t.required)return r();en.required(t,n,o,s,l),rr(n,"string")||en.pattern(t,n,o,s,l)}r(s)},f_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),rr(n)||en.type(t,n,o,s,l)}r(s)},m_=function(t,n,r,o,l){var s=[],u=Array.isArray(n)?"array":gt(n);en.required(t,n,o,s,l,u),r(s)},p_=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(rr(n,"string")&&!t.required)return r();en.required(t,n,o,s,l,"string"),rr(n,"string")||(en.type(t,n,o,s,l),en.range(t,n,o,s,l),en.pattern(t,n,o,s,l),t.whitespace===!0&&en.whitespace(t,n,o,s,l))}r(s)},vu=function(t,n,r,o,l){var s=t.type,u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(rr(n,s)&&!t.required)return r();en.required(t,n,o,u,l,s),rr(n,s)||en.type(t,n,o,u,l)}r(u)};const Rs={string:p_,method:s_,number:c_,boolean:n_,regexp:f_,integer:l_,float:a_,array:t_,object:u_,enum:i_,pattern:d_,date:r_,url:vu,hex:vu,email:vu,tel:vu,required:m_,any:e_};var rc=(function(){function e(t){Kn(this,e),G(this,"rules",null),G(this,"_messages",mg),this.define(t)}return Xn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(gt(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=Db(fg(),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,d=l;if(typeof u=="function"&&(d=u,u={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,s),Promise.resolve(s);function m(C){var S=[],b={};function $(O){if(Array.isArray(O)){var R;S=(R=S).concat.apply(R,Ae(O))}else S.push(O)}for(var w=0;w<C.length;w++)$(C[w]);S.length?(b=gg(S),d(S,b)):d(null,s)}if(u.messages){var p=this.messages();p===mg&&(p=fg()),Db(p,u.messages),u.messages=p}else u.messages=this.messages();var g={},v=u.keys||Object.keys(this.rules);v.forEach(function(C){var S=r.rules[C],b=s[C];S.forEach(function($){var w=$;typeof w.transform=="function"&&(s===n&&(s=K({},s)),b=s[C]=w.transform(b),b!=null&&(w.type=w.type||(Array.isArray(b)?"array":gt(b)))),typeof w=="function"?w={validator:w}:w=K({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=C,w.fullField=w.fullField||C,w.type=r.getType(w),g[C]=g[C]||[],g[C].push({rule:w,value:b,source:s,field:C}))})});var y={};return UI(g,u,function(C,S){var b=C.rule,$=(b.type==="object"||b.type==="array")&&(gt(b.fields)==="object"||gt(b.defaultField)==="object");$=$&&(b.required||!b.required&&C.value),b.field=C.field;function w(P,N){return K(K({},N),{},{fullField:"".concat(b.fullField,".").concat(P),fullFields:b.fullFields?[].concat(Ae(b.fullFields),[P]):[P]})}function O(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=Array.isArray(P)?P:[P];!u.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&b.message!==void 0&&b.message!==null&&(N=[].concat(b.message));var T=N.map(Ab(b,s));if(u.first&&T.length)return y[b.field]=1,S(T);if(!$)S(T);else{if(b.required&&!C.value)return b.message!==void 0?T=[].concat(b.message).map(Ab(b,s)):u.error&&(T=[u.error(b,to(u.messages.required,b.field))]),S(T);var k={};b.defaultField&&Object.keys(C.value).map(function(D){k[D]=b.defaultField}),k=K(K({},k),C.rule.fields);var L={};Object.keys(k).forEach(function(D){var A=k[D],q=Array.isArray(A)?A:[A];L[D]=q.map(w.bind(null,D))});var j=new e(L);j.messages(u.messages),C.rule.options&&(C.rule.options.messages=u.messages,C.rule.options.error=u.error),j.validate(C.value,C.rule.options||u,function(D){var A=[];T&&T.length&&A.push.apply(A,Ae(T)),D&&D.length&&A.push.apply(A,Ae(D)),S(A.length?A:null)})}}var R;if(b.asyncValidator)R=b.asyncValidator(b,C.value,O,C.source,u);else if(b.validator){try{R=b.validator(b,C.value,O,C.source,u)}catch(P){var _,I;(_=(I=console).error)===null||_===void 0||_.call(I,P),u.suppressValidatorError||setTimeout(function(){throw P},0),O(P.message)}R===!0?O():R===!1?O(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):R instanceof Array?O(R):R instanceof Error&&O(R.message)}R&&R.then&&R.then(function(){return O()},function(P){return O(P)})},function(C){m(C)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Rs.hasOwnProperty(n.type))throw new Error(to("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"?Rs.required:Rs[this.getType(n)]||void 0}}]),e})();G(rc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Rs[t]=n});G(rc,"warning",HI);G(rc,"messages",mg);G(rc,"validators",Rs);var Zr="'${name}' is not a valid ${type}",Lx={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:Zr,method:Zr,array:Zr,object:Zr,number:Zr,date:Zr,boolean:Zr,integer:Zr,float:Zr,regexp:Zr,email:Zr,url:Zr,hex:Zr},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}"}},Hb=rc;function g_(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 Fb="CODE_LOGIC_ERROR";function hg(e,t,n,r,o){return vg.apply(this,arguments)}function vg(){return vg=Ca(Ir().mark(function e(t,n,r,o,l){var s,u,d,m,p,g,v,y,C;return Ir().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=K({},r),delete s.ruleIndex,Hb.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch($){return console.error($),Promise.reject(Fb)}}),d=null,s&&s.type==="array"&&s.defaultField&&(d=s.defaultField,delete s.defaultField),m=new Hb(G({},t,[s])),p=ul(Lx,o.validateMessages),m.messages(p),g=[],b.prev=10,b.next=13,Promise.resolve(m.validate(G({},t,n),K({},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,R=O===Fb?p.default:O;return c.isValidElement(R)?c.cloneElement(R,{key:"error_".concat(w)}):R}));case 18:if(!(!g.length&&d&&Array.isArray(n)&&n.length>0)){b.next=23;break}return b.next=21,Promise.all(n.map(function($,w){return hg("".concat(t,".").concat(w),$,d,o,l)}));case 21:return v=b.sent,b.abrupt("return",v.reduce(function($,w){return[].concat(Ae($),Ae(w))},[]));case 23:return y=K(K({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),C=g.map(function($){return typeof $=="string"?g_($,y):$}),b.abrupt("return",C);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),vg.apply(this,arguments)}function h_(e,t,n,r,o,l){var s=e.join("."),u=n.map(function(p,g){var v=p.validator,y=K(K({},p),{},{ruleIndex:g});return v&&(y.validator=function(C,S,b){var $=!1,w=function(){for(var _=arguments.length,I=new Array(_),P=0;P<_;P++)I[P]=arguments[P];Promise.resolve().then(function(){ur(!$,"Your validator function has already return a promise. `callback` will be ignored."),$||b.apply(void 0,I)})},O=v(C,S,w);$=O&&typeof O.then=="function"&&typeof O.catch=="function",ur($,"`callback` is deprecated. Please return a promise instead."),$&&O.then(function(){b()}).catch(function(R){b(R||" ")})}),y}).sort(function(p,g){var v=p.warningOnly,y=p.ruleIndex,C=g.warningOnly,S=g.ruleIndex;return!!v==!!C?y-S:v?1:-1}),d;if(o===!0)d=new Promise((function(){var p=Ca(Ir().mark(function g(v,y){var C,S,b;return Ir().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:C=0;case 1:if(!(C<u.length)){w.next=12;break}return S=u[C],w.next=5,hg(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:C+=1,w.next=1;break;case 12:v([]);case 13:case"end":return w.stop()}},g)}));return function(g,v){return p.apply(this,arguments)}})());else{var m=u.map(function(p){return hg(s,t,p,r,l).then(function(g){return{errors:g,rule:p}})});d=(o?y_(m):v_(m)).then(function(p){return Promise.reject(p)})}return d.catch(function(p){return p}),d}function v_(e){return yg.apply(this,arguments)}function yg(){return yg=Ca(Ir().mark(function e(t){return Ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var l,s=(l=[]).concat.apply(l,Ae(o));return s}));case 1:case"end":return r.stop()}},e)})),yg.apply(this,arguments)}function y_(e){return bg.apply(this,arguments)}function bg(){return bg=Ca(Ir().mark(function e(t){var n;return Ir().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(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)})),bg.apply(this,arguments)}function Wn(e){return dg(e)}function Vb(e,t){var n={};return t.forEach(function(r){var o=Wo(e,r);n=Po(n,r,o)}),n}function vl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Bx(t,r,n)})}function Bx(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 b_(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||gt(e)!=="object"||gt(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 C_(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&gt(t.target)==="object"&&e in t.target?t.target[e]:t}function Wb(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 S_=["name"],po=[];function ip(e,t,n,r,o,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==o}var ph=(function(e){di(n,e);var t=fi(n);function n(r){var o;if(Kn(this,n),o=t.call(this,r),G(qt(o),"state",{resetCount:0}),G(qt(o),"cancelRegisterFunc",null),G(qt(o),"mounted",!1),G(qt(o),"touched",!1),G(qt(o),"dirty",!1),G(qt(o),"validatePromise",void 0),G(qt(o),"prevValidating",void 0),G(qt(o),"errors",po),G(qt(o),"warnings",po),G(qt(o),"cancelRegister",function(){var d=o.props,m=d.preserve,p=d.isListField,g=d.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(p,m,Wn(g)),o.cancelRegisterFunc=null}),G(qt(o),"getNamePath",function(){var d=o.props,m=d.name,p=d.fieldContext,g=p.prefixName,v=g===void 0?[]:g;return m!==void 0?[].concat(Ae(v),Ae(m)):[]}),G(qt(o),"getRules",function(){var d=o.props,m=d.rules,p=m===void 0?[]:m,g=d.fieldContext;return p.map(function(v){return typeof v=="function"?v(g):v})}),G(qt(o),"refresh",function(){o.mounted&&o.setState(function(d){var m=d.resetCount;return{resetCount:m+1}})}),G(qt(o),"metaCache",null),G(qt(o),"triggerMetaEvent",function(d){var m=o.props.onMetaChange;if(m){var p=K(K({},o.getMeta()),{},{destroy:d});Ms(o.metaCache,p)||m(p),o.metaCache=p}else o.metaCache=null}),G(qt(o),"onStoreChange",function(d,m,p){var g=o.props,v=g.shouldUpdate,y=g.dependencies,C=y===void 0?[]:y,S=g.onReset,b=p.store,$=o.getNamePath(),w=o.getValue(d),O=o.getValue(b),R=m&&vl(m,$);switch(p.type==="valueUpdate"&&p.source==="external"&&!Ms(w,O)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=po,o.warnings=po,o.triggerMetaEvent()),p.type){case"reset":if(!m||R){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=po,o.warnings=po,o.triggerMetaEvent(),S==null||S(),o.refresh();return}break;case"remove":{if(v&&ip(v,d,b,w,O,p)){o.reRender();return}break}case"setField":{var _=p.data;if(R){"touched"in _&&(o.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(o.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(o.errors=_.errors||po),"warnings"in _&&(o.warnings=_.warnings||po),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in _&&vl(m,$,!0)){o.reRender();return}if(v&&!$.length&&ip(v,d,b,w,O,p)){o.reRender();return}break}case"dependenciesUpdate":{var I=C.map(Wn);if(I.some(function(P){return vl(p.relatedFields,P)})){o.reRender();return}break}default:if(R||(!C.length||$.length||v)&&ip(v,d,b,w,O,p)){o.reRender();return}break}v===!0&&o.reRender()}),G(qt(o),"validateRules",function(d){var m=o.getNamePath(),p=o.getValue(),g=d||{},v=g.triggerName,y=g.validateOnly,C=y===void 0?!1:y,S=Promise.resolve().then(Ca(Ir().mark(function b(){var $,w,O,R,_,I,P;return Ir().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if($=o.props,w=$.validateFirst,O=w===void 0?!1:w,R=$.messageVariables,_=$.validateDebounce,I=o.getRules(),v&&(I=I.filter(function(k){return k}).filter(function(k){var L=k.validateTrigger;if(!L)return!0;var j=dg(L);return j.includes(v)})),!(_&&v)){T.next=10;break}return T.next=8,new Promise(function(k){setTimeout(k,_)});case 8:if(o.validatePromise===S){T.next=10;break}return T.abrupt("return",[]);case 10:return P=h_(m,p,I,d,O,R),P.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:po;if(o.validatePromise===S){var L;o.validatePromise=null;var j=[],D=[];(L=k.forEach)===null||L===void 0||L.call(k,function(A){var q=A.rule.warningOnly,W=A.errors,V=W===void 0?po:W;q?D.push.apply(D,Ae(V)):j.push.apply(j,Ae(V))}),o.errors=j,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",P);case 13:case"end":return T.stop()}},b)})));return C||(o.validatePromise=S,o.dirty=!0,o.errors=po,o.warnings=po,o.triggerMetaEvent(),o.reRender()),S}),G(qt(o),"isFieldValidating",function(){return!!o.validatePromise}),G(qt(o),"isFieldTouched",function(){return o.touched}),G(qt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var d=o.props.fieldContext,m=d.getInternalHooks(da),p=m.getInitialValue;return p(o.getNamePath())!==void 0}),G(qt(o),"getErrors",function(){return o.errors}),G(qt(o),"getWarnings",function(){return o.warnings}),G(qt(o),"isListField",function(){return o.props.isListField}),G(qt(o),"isList",function(){return o.props.isList}),G(qt(o),"isPreserve",function(){return o.props.preserve}),G(qt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var d={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return d}),G(qt(o),"getOnlyChild",function(d){if(typeof d=="function"){var m=o.getMeta();return K(K({},o.getOnlyChild(d(o.getControlled(),m,o.props.fieldContext))),{},{isFunction:!0})}var p=Mr(d);return p.length!==1||!c.isValidElement(p[0])?{child:p,isFunction:!1}:{child:p[0],isFunction:!1}}),G(qt(o),"getValue",function(d){var m=o.props.fieldContext.getFieldsValue,p=o.getNamePath();return Wo(d||m(!0),p)}),G(qt(o),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o.props,p=m.name,g=m.trigger,v=m.validateTrigger,y=m.getValueFromEvent,C=m.normalize,S=m.valuePropName,b=m.getValueProps,$=m.fieldContext,w=v!==void 0?v:$.validateTrigger,O=o.getNamePath(),R=$.getInternalHooks,_=$.getFieldsValue,I=R(da),P=I.dispatch,N=o.getValue(),T=b||function(A){return G({},S,A)},k=d[g],L=p!==void 0?T(N):{},j=K(K({},d),L);j[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var A,q=arguments.length,W=new Array(q),V=0;V<q;V++)W[V]=arguments[V];y?A=y.apply(void 0,W):A=C_.apply(void 0,[S].concat(W)),C&&(A=C(A,N,_(!0))),A!==N&&P({type:"updateValue",namePath:O,value:A}),k&&k.apply(void 0,W)};var D=dg(w||[]);return D.forEach(function(A){var q=j[A];j[A]=function(){q&&q.apply(void 0,arguments);var W=o.props.rules;W&&W.length&&P({type:"validateField",namePath:O,triggerName:A})}}),j}),r.fieldContext){var l=r.fieldContext.getInternalHooks,s=l(da),u=s.initEntityValue;u(qt(o))}return o}return Xn(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.shouldUpdate,s=o.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,d=u(da),m=d.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,d=s.isFunction,m;return d?m=u:c.isValidElement(u)?m=c.cloneElement(u,this.getControlled(u.props)):(ur(!u,"`children` of Field is not validate ReactElement."),m=u),c.createElement(c.Fragment,{key:o},m)}}]),n})(c.Component);G(ph,"contextType",Il);G(ph,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ax(e){var t,n=e.name,r=kt(e,S_),o=c.useContext(Il),l=c.useContext(Zu),s=n!==void 0?Wn(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,d="keep";return u||(d="_".concat((s||[]).join("_"))),c.createElement(ph,Oe({key:d,name:s,isListField:u},r,{fieldContext:o}))}function x_(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,l=e.validateTrigger,s=e.isListField,u=c.useContext(Il),d=c.useContext(Zu),m=c.useRef({keys:[],id:0}),p=m.current,g=c.useMemo(function(){var S=Wn(u.prefixName)||[];return[].concat(Ae(S),Ae(Wn(t)))},[u.prefixName,t]),v=c.useMemo(function(){return K(K({},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 ur(!1,"Form.List only accepts function as children."),null;var C=function(b,$,w){var O=w.source;return O==="internal"?!1:b!==$};return c.createElement(Zu.Provider,{value:y},c.createElement(Il.Provider,{value:v},c.createElement(Ax,{name:[],shouldUpdate:C,rules:o,validateTrigger:l,initialValue:n,isList:!0,isListField:s??!!d},function(S,b){var $=S.value,w=$===void 0?[]:$,O=S.onChange,R=u.getFieldValue,_=function(){var T=R(g||[]);return T||[]},I={add:function(T,k){var L=_();k>=0&&k<=L.length?(p.keys=[].concat(Ae(p.keys.slice(0,k)),[p.id],Ae(p.keys.slice(k))),O([].concat(Ae(L.slice(0,k)),[T],Ae(L.slice(k))))):(p.keys=[].concat(Ae(p.keys),[p.id]),O([].concat(Ae(L),[T]))),p.id+=1},remove:function(T){var k=_(),L=new Set(Array.isArray(T)?T:[T]);L.size<=0||(p.keys=p.keys.filter(function(j,D){return!L.has(D)}),O(k.filter(function(j,D){return!L.has(D)})))},move:function(T,k){if(T!==k){var L=_();T<0||T>=L.length||k<0||k>=L.length||(p.keys=Wb(p.keys,T,k),O(Wb(L,T,k)))}}},P=w||[];return Array.isArray(P)||(P=[]),r(P.map(function(N,T){var k=p.keys[T];return k===void 0&&(p.keys[T]=p.id,k=p.keys[T],p.id+=1),{name:T,key:k,isListField:!0}}),I,b)})))}function w_(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,l){e.forEach(function(s,u){s.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[u]=d,!(n>0)&&(t&&l(r),o(r))})})}):Promise.resolve([])}var Dx="__@field_split__";function ap(e){return e.map(function(t){return"".concat(gt(t),":").concat(t)}).join(Dx)}var Ya=(function(){function e(){Kn(this,e),G(this,"kvs",new Map)}return Xn(e,[{key:"set",value:function(n,r){this.kvs.set(ap(n),r)}},{key:"get",value:function(n){return this.kvs.get(ap(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(ap(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(Dx);return n({key:u.map(function(d){var m=d.match(/^([^:]*):(.*)$/),p=ae(m,3),g=p[1],v=p[2];return g==="number"?Number(v):v}),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})(),$_=["name"],E_=Xn(function e(t){var n=this;Kn(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(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}}),G(this,"getInternalHooks",function(r){return r===da?(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}):(ur(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),G(this,"useSubscribe",function(r){n.subscribable=r}),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var l,s=ul(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var d=u.key;s=Po(s,d,Wo(r,d))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),G(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Ya;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||o.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),G(this,"getInitialValue",function(r){var o=Wo(n.initialValues,r);return r.length?ul(o):o}),G(this,"setCallbacks",function(r){n.callbacks=r}),G(this,"setValidateMessages",function(r){n.validateMessages=r}),G(this,"setPreserve",function(r){n.preserve=r}),G(this,"watchList",[]),G(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),G(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)})}}),G(this,"timeoutId",null),G(this,"warningUnhooked",function(){}),G(this,"updateStore",function(r){n.store=r}),G(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}),G(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ya;return n.getFieldEntities(r).forEach(function(l){var s=l.getNamePath();o.set(s,l)}),o}),G(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(l){var s=Wn(l);return o.get(s)||{INVALIDATE_NAME_PATH:Wn(l)}})}),G(this,"getFieldsValue",function(r,o){n.warningUnhooked();var l,s,u;if(r===!0||Array.isArray(r)?(l=r,s=o):r&&gt(r)==="object"&&(u=r.strict,s=r.filter),l===!0&&!s)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),m=[];return d.forEach(function(p){var g,v,y="INVALIDATE_NAME_PATH"in p?p.INVALIDATE_NAME_PATH:p.getNamePath();if(u){var C,S;if((C=(S=p).isList)!==null&&C!==void 0&&C.call(S))return}else if(!l&&(g=(v=p).isListField)!==null&&g!==void 0&&g.call(v))return;if(!s)m.push(y);else{var b="getMeta"in p?p.getMeta():null;s(b)&&m.push(y)}}),Vb(n.store,m.map(Wn))}),G(this,"getFieldValue",function(r){n.warningUnhooked();var o=Wn(r);return Wo(n.store,o)}),G(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:Wn(r[s]),errors:[],warnings:[]}})}),G(this,"getFieldError",function(r){n.warningUnhooked();var o=Wn(r),l=n.getFieldsError([o])[0];return l.errors}),G(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Wn(r),l=n.getFieldsError([o])[0];return l.warnings}),G(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],d,m=!1;o.length===0?d=null:o.length===1?Array.isArray(s)?(d=s.map(Wn),m=!1):(d=null,m=s):(d=s.map(Wn),m=u);var p=n.getFieldEntities(!0),g=function(b){return b.isFieldTouched()};if(!d)return m?p.every(function(S){return g(S)||S.isList()}):p.some(g);var v=new Ya;d.forEach(function(S){v.set(S,[])}),p.forEach(function(S){var b=S.getNamePath();d.forEach(function($){$.every(function(w,O){return b[O]===w})&&v.update($,function(w){return[].concat(Ae(w),[S])})})});var y=function(b){return b.some(g)},C=v.map(function(S){var b=S.value;return b});return m?C.every(y):C.some(y)}),G(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),G(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(s){return s.isFieldValidating()});var l=r.map(Wn);return o.some(function(s){var u=s.getNamePath();return vl(l,u)&&s.isFieldValidating()})}),G(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),G(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ya,l=n.getFieldEntities(!0);l.forEach(function(d){var m=d.props.initialValue,p=d.getNamePath();if(m!==void 0){var g=o.get(p)||new Set;g.add({entity:d,value:m}),o.set(p,g)}});var s=function(m){m.forEach(function(p){var g=p.props.initialValue;if(g!==void 0){var v=p.getNamePath(),y=n.getInitialValue(v);if(y!==void 0)ur(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var C=o.get(v);if(C&&C.size>1)ur(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(C){var S=n.getFieldValue(v),b=p.isListField();!b&&(!r.skipExist||S===void 0)&&n.updateStore(Po(n.store,v,Ae(C)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(d){var m=o.get(d);if(m){var p;(p=u).push.apply(p,Ae(Ae(m).map(function(g){return g.entity})))}})):u=l,s(u)}),G(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ul(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Wn);l.forEach(function(s){var u=n.getInitialValue(s);n.updateStore(Po(n.store,s,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(o,l,{type:"reset"}),n.notifyWatch(l)}),G(this,"setFields",function(r){n.warningUnhooked();var o=n.store,l=[];r.forEach(function(s){var u=s.name,d=kt(s,$_),m=Wn(u);l.push(m),"value"in d&&n.updateStore(Po(n.store,m,d.value)),n.notifyObservers(o,[m],{type:"setField",data:s})}),n.notifyWatch(l)}),G(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(l){var s=l.getNamePath(),u=l.getMeta(),d=K(K({},u),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return o}),G(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var l=r.getNamePath(),s=Wo(n.store,l);s===void 0&&n.updateStore(Po(n.store,l,o))}}),G(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),G(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 d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!s||d.length>1)){var m=s?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==m&&n.fieldEntities.every(function(g){return!Bx(g.getNamePath(),o)})){var p=n.store;n.updateStore(Po(p,o,m,!0)),n.notifyObservers(p,[o],{type:"remove"}),n.triggerDependenciesUpdate(p,o)}}n.notifyWatch([o])}}),G(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}}}),G(this,"notifyObservers",function(r,o,l){if(n.subscribable){var s=K(K({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var d=u.onStoreChange;d(r,o,s)})}else n.forceRootUpdate()}),G(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}),G(this,"updateValue",function(r,o){var l=Wn(r),s=n.store;n.updateStore(Po(n.store,l,o)),n.notifyObservers(s,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(s,l),d=n.callbacks.onValuesChange;if(d){var m=Vb(n.store,[l]);d(m,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Ae(u)))}),G(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var l=ul(n.store,r);n.updateStore(l)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),G(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),G(this,"getDependencyChildrenFields",function(r){var o=new Set,l=[],s=new Ya;n.getFieldEntities().forEach(function(d){var m=d.props.dependencies;(m||[]).forEach(function(p){var g=Wn(p);s.update(g,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(d),v})})});var u=function d(m){var p=s.get(m)||new Set;p.forEach(function(g){if(!o.has(g)){o.add(g);var v=g.getNamePath();g.isFieldDirty()&&v.length&&(l.push(v),d(v))}})};return u(r),l}),G(this,"triggerOnFieldsChange",function(r,o){var l=n.callbacks.onFieldsChange;if(l){var s=n.getFields();if(o){var u=new Ya;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 d=s.filter(function(m){var p=m.name;return vl(r,p)});d.length&&l(d,s)}}),G(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,d=u?l.map(Wn):[],m=[],p=String(Date.now()),g=new Set,v=s||{},y=v.recursive,C=v.dirty;n.getFieldEntities(!0).forEach(function(w){if(u||d.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(C&&!w.isFieldDirty())){var O=w.getNamePath();if(g.add(O.join(p)),!u||vl(d,O,y)){var R=w.validateRules(K({validateMessages:K(K({},Lx),n.validateMessages)},s));m.push(R.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(_){var I,P=[],N=[];return(I=_.forEach)===null||I===void 0||I.call(_,function(T){var k=T.rule.warningOnly,L=T.errors;k?N.push.apply(N,Ae(L)):P.push.apply(P,Ae(L))}),P.length?Promise.reject({name:O,errors:P,warnings:N}):{name:O,errors:P,warnings:N}}))}}});var S=w_(m);n.lastValidatePromise=S,S.catch(function(w){return w}).then(function(w){var O=w.map(function(R){var _=R.name;return _});n.notifyObservers(n.store,O,{type:"validateFinish"}),n.triggerOnFieldsChange(O,w)});var b=S.then(function(){return n.lastValidatePromise===S?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(w){var O=w.filter(function(R){return R&&R.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:O,outOfDate:n.lastValidatePromise!==S})});b.catch(function(w){return w});var $=d.filter(function(w){return g.has(w.join(p))});return n.triggerOnFieldsChange($),b}),G(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 Hx(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 E_(l);t.current=s.getForm()}return[t.current]}var Cg=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),O_=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,l=t.children,s=c.useContext(Cg),u=c.useRef({});return c.createElement(Cg.Provider,{value:K(K({},s),{},{validateMessages:K(K({},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=K(K({},u.current),{},G({},m,p))),s.registerForm(m,p)},unregisterForm:function(m){var p=K({},u.current);delete p[m],u.current=p,s.unregisterForm(m)}})},l)},R_=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],I_=function(t,n){var r=t.name,o=t.initialValues,l=t.fields,s=t.form,u=t.preserve,d=t.children,m=t.component,p=m===void 0?"form":m,g=t.validateMessages,v=t.validateTrigger,y=v===void 0?"onChange":v,C=t.onValuesChange,S=t.onFieldsChange,b=t.onFinish,$=t.onFinishFailed,w=t.clearOnDestroy,O=kt(t,R_),R=c.useRef(null),_=c.useContext(Cg),I=Hx(s),P=ae(I,1),N=P[0],T=N.getInternalHooks(da),k=T.useSubscribe,L=T.setInitialValues,j=T.setCallbacks,D=T.setValidateMessages,A=T.setPreserve,q=T.destroyForm;c.useImperativeHandle(n,function(){return K(K({},N),{},{nativeElement:R.current})}),c.useEffect(function(){return _.registerForm(r,N),function(){_.unregisterForm(r)}},[_,N,r]),D(K(K({},_.validateMessages),g)),j({onValuesChange:C,onFieldsChange:function(ne){if(_.triggerFormChange(r,ne),S){for(var te=arguments.length,re=new Array(te>1?te-1:0),fe=1;fe<te;fe++)re[fe-1]=arguments[fe];S.apply(void 0,[ne].concat(re))}},onFinish:function(ne){_.triggerFormFinish(r,ne),b&&b(ne)},onFinishFailed:$}),A(u);var W=c.useRef(null);L(o,!W.current),W.current||(W.current=!0),c.useEffect(function(){return function(){return q(w)}},[]);var V,H=typeof d=="function";if(H){var Y=N.getFieldsValue(!0);V=d(Y,N)}else V=d;k(!H);var U=c.useRef();c.useEffect(function(){b_(U.current||[],l||[])||N.setFields(l||[]),U.current=l},[l,N]);var z=c.useMemo(function(){return K(K({},N),{},{validateTrigger:y})},[N,y]),F=c.createElement(Zu.Provider,{value:null},c.createElement(Il.Provider,{value:z},V));return p===!1?F:c.createElement(p,Oe({},O,{ref:R,onSubmit:function(ne){ne.preventDefault(),ne.stopPropagation(),N.submit()},onReset:function(ne){var te;ne.preventDefault(),N.resetFields(),(te=O.onReset)===null||te===void 0||te.call(O,ne)}}),F)};function Ub(e){try{return JSON.stringify(e)}catch{return Math.random()}}function __(){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=LI(l)?{form:l}:l,u=s.form,d=c.useState(),m=ae(d,2),p=m[0],g=m[1],v=c.useMemo(function(){return Ub(p)},[p]),y=c.useRef(v);y.current=v;var C=c.useContext(Il),S=u||C,b=S&&S._init,$=Wn(r),w=c.useRef($);return w.current=$,c.useEffect(function(){if(b){var O=S.getFieldsValue,R=S.getInternalHooks,_=R(da),I=_.registerWatch,P=function(L,j){var D=s.preserve?j:L;return typeof r=="function"?r(D):Wo(D,w.current)},N=I(function(k,L){var j=P(k,L),D=Ub(j);y.current!==D&&(y.current=D,g(j))}),T=P(O(),O(!0));return p!==T&&g(T),N}},[b]),p}var P_=c.forwardRef(I_),oc=P_;oc.FormProvider=O_;oc.Field=Ax;oc.List=x_;oc.useForm=Hx;oc.useWatch=__;const ed=c.createContext({}),T_=({children:e,status:t,override:n})=>{const r=c.useContext(ed),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(ed.Provider,{value:o},e)},N_=c.createContext(void 0),ic=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=Z.createElement(T_,{override:!0,status:!0},o)),t&&(o=Z.createElement(BR,null,o)),o};var k_=function(t){if(Rr()&&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 qb(e,t){return k_(e)}const M_=()=>Rr()&&window.document.documentElement,zd=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:l}=e,s=ee({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),u=ee({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),d=c.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return c.createElement("span",{className:ee(t,s,u,n),style:Object.assign(Object.assign({},d),r)})},j_=new Wt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ld=e=>({height:e,lineHeight:J(e)}),yl=e=>Object.assign({width:e},Ld(e)),z_=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:j_,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),lp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ld(e)),L_=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},yl(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},yl(o)),[`${t}${t}-sm`]:Object.assign({},yl(l))}},B_=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},lp(t,u)),[`${r}-lg`]:Object.assign({},lp(o,u)),[`${r}-sm`]:Object.assign({},lp(l,u))}},Gb=e=>Object.assign({width:e},Ld(e)),A_=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},Gb(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Gb(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%"}}},sp=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},cp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ld(e)),D_=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()},cp(r,u))},sp(e,r,n)),{[`${n}-lg`]:Object.assign({},cp(o,u))}),sp(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},cp(l,u))}),sp(e,l,`${n}-sm`))},H_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:l,skeletonInputCls:s,skeletonImageCls:u,controlHeight:d,controlHeightLG:m,controlHeightSM:p,gradientFromColor:g,padding:v,marginSM:y,borderRadius:C,titleHeight:S,blockRadius:b,paragraphLiHeight:$,controlHeightXS:w,paragraphMarginTop:O}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},yl(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},yl(m)),[`${n}-sm`]:Object.assign({},yl(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:C}}},[`${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"},D_(e)),L_(e)),B_(e)),A_(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({},z_(e))}}},F_=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}},kl=pn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Xt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return H_(r)},F_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),V_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:l="circle",size:s="default"}=e,{getPrefixCls:u}=c.useContext(Et),d=u("skeleton",t),[m,p,g]=kl(d),v=Gn(e,["prefixCls","className"]),y=ee(d,`${d}-element`,{[`${d}-active`]:o},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(zd,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:s},v))))},W_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l=!1,size:s="default"}=e,{getPrefixCls:u}=c.useContext(Et),d=u("skeleton",t),[m,p,g]=kl(d),v=Gn(e,["prefixCls"]),y=ee(d,`${d}-element`,{[`${d}-active`]:o,[`${d}-block`]:l},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(zd,Object.assign({prefixCls:`${d}-button`,size:s},v))))},U_="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",q_=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l}=e,{getPrefixCls:s}=c.useContext(Et),u=s("skeleton",t),[d,m,p]=kl(u),g=ee(u,`${u}-element`,{[`${u}-active`]:l},n,r,m,p);return d(c.createElement("div",{className:g},c.createElement("div",{className:ee(`${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:U_,className:`${u}-image-path`})))))},G_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l,size:s="default"}=e,{getPrefixCls:u}=c.useContext(Et),d=u("skeleton",t),[m,p,g]=kl(d),v=Gn(e,["prefixCls"]),y=ee(d,`${d}-element`,{[`${d}-active`]:o,[`${d}-block`]:l},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(zd,Object.assign({prefixCls:`${d}-input`,size:s},v))))},K_=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l,children:s}=e,{getPrefixCls:u}=c.useContext(Et),d=u("skeleton",t),[m,p,g]=kl(d),v=ee(d,`${d}-element`,{[`${d}-active`]:l},p,n,r,g);return m(c.createElement("div",{className:v},c.createElement("div",{className:ee(`${d}-image`,n),style:o},s)))},X_=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Q_=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:X_(u,e)}}));return c.createElement("ul",{className:ee(t,n),style:r},l)},Y_=({prefixCls:e,className:t,width:n,style:r})=>c.createElement("h3",{className:ee(e,t),style:Object.assign({width:n},r)});function up(e){return e&&typeof e=="object"?e:{}}function J_(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Z_(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function eP(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Sa=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:l,children:s,avatar:u=!1,title:d=!0,paragraph:m=!0,active:p,round:g}=e,{getPrefixCls:v,direction:y,className:C,style:S}=gr("skeleton"),b=v("skeleton",t),[$,w,O]=kl(b);if(n||!("loading"in e)){const R=!!u,_=!!d,I=!!m;let P;if(R){const k=Object.assign(Object.assign({prefixCls:`${b}-avatar`},J_(_,I)),up(u));P=c.createElement("div",{className:`${b}-header`},c.createElement(zd,Object.assign({},k)))}let N;if(_||I){let k;if(_){const j=Object.assign(Object.assign({prefixCls:`${b}-title`},Z_(R,I)),up(d));k=c.createElement(Y_,Object.assign({},j))}let L;if(I){const j=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},eP(R,_)),up(m));L=c.createElement(Q_,Object.assign({},j))}N=c.createElement("div",{className:`${b}-content`},k,L)}const T=ee(b,{[`${b}-with-avatar`]:R,[`${b}-active`]:p,[`${b}-rtl`]:y==="rtl",[`${b}-round`]:g},C,r,o,w,O);return $(c.createElement("div",{className:T,style:Object.assign(Object.assign({},S),l)},P,N))}return s??null};Sa.Button=W_;Sa.Avatar=V_;Sa.Input=G_;Sa.Image=q_;Sa.Node=K_;function Kb(){}const tP=c.createContext({add:Kb,remove:Kb});function Fx(e){const t=c.useContext(tP),n=c.useRef(null);return Ln(o=>{if(o){const l=e?o.querySelector(e):o;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const Xb=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=c.useContext(nc);return Z.createElement(Or,Object.assign({onClick:n},e),t)},Qb=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=c.useContext(nc);return Z.createElement(Or,Object.assign({},Sx(n),{loading:e,onClick:o},t),r)};function Vx(e,t){return Z.createElement("span",{className:`${e}-close-x`},t||Z.createElement(Wi,{className:`${e}-close-icon`}))}const Wx=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:l,onCancel:s,okButtonProps:u,cancelButtonProps:d,footer:m}=e,[p]=mi("Modal",wS()),g=t||(p==null?void 0:p.okText),v=r||(p==null?void 0:p.cancelText),y=Z.useMemo(()=>({confirmLoading:o,okButtonProps:u,cancelButtonProps:d,okTextLocale:g,cancelTextLocale:v,okType:n,onOk:l,onCancel:s}),[o,u,d,g,v,n,l,s]);let C;return typeof m=="function"||typeof m>"u"?(C=Z.createElement(Z.Fragment,null,Z.createElement(Xb,null),Z.createElement(Qb,null)),typeof m=="function"&&(C=m(C,{OkBtn:Qb,CancelBtn:Xb})),C=Z.createElement(Px,{value:y},C)):C=m,Z.createElement(PS,{disabled:!1},C)},nP=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"}}}},rP=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},oP=(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},Sg=(e,t)=>oP(e,t),iP=(e,t,n)=>({[`@media (min-width: ${J(t)})`]:Object.assign({},Sg(e,n))}),aP=()=>({}),lP=()=>({}),sP=pn("Grid",nP,aP),Ux=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),cP=pn("Grid",e=>{const t=Xt(e,{gridColumns:24}),n=Ux(t);return delete n.xs,[rP(t),Sg(t,""),Sg(t,"-xs"),Object.keys(n).map(r=>iP(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},lP);function Yb(e){return{position:e,inset:0}}const uP=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({},Yb("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Yb("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:m5(e)}]},dP=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({},Dn(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}},xo(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"}}}]},fP=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},mP=e=>{const{componentCls:t}=e,n=Ux(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 d=Object.keys(n)[u-1];return d?{[`${o}${s}-width`]:`var(${o}${d}-width)`}:null})),[{width:`var(${o}xs-width)`}],Ae(l))}}},qx=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Xt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Gx=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}),Kx=pn("Modal",e=>{const t=qx(e);return[dP(t),fP(t),uP(t),tc(t,"zoom"),mP(t)]},Gx,{unitless:{titleLineHeight:!0}});var pP=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 xg;const gP=e=>{xg={x:e.pageX,y:e.pageY},setTimeout(()=>{xg=null},100)};M_()&&document.documentElement.addEventListener("click",gP,!0);const Xx=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:l,centered:s,getContainer:u,focusTriggerAfterClose:d=!0,style:m,visible:p,width:g=520,footer:v,classNames:y,styles:C,children:S,loading:b,confirmLoading:$,zIndex:w,mousePosition:O,onOk:R,onCancel:_,destroyOnHidden:I,destroyOnClose:P,panelRef:N=null,modalRender:T}=e,k=pP(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:j,direction:D,modal:A}=c.useContext(Et),q=Se=>{$||_==null||_(Se)},W=Se=>{R==null||R(Se)},V=j("modal",t),H=j(),Y=pi(V),[U,z,F]=Kx(V,Y),Q=ee(l,{[`${V}-centered`]:s??(A==null?void 0:A.centered),[`${V}-wrap-rtl`]:D==="rtl"}),ne=v!==null&&!b?c.createElement(Wx,Object.assign({},e,{onOk:W,onCancel:q})):null,[te,re,fe,me]=nh(Rl(e),Rl(A),{closable:!0,closeIcon:c.createElement(Wi,{className:`${V}-close-icon`}),closeIconRender:Se=>Vx(V,Se)}),ue=T?Se=>c.createElement("div",{className:`${V}-render`},T(Se)):void 0,Ce=`.${V}-${T?"render":"content"}`,le=Fx(Ce),ce=Bo(N,le),[he,ye]=Nl("Modal",w),[de,se]=c.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ve=c.useMemo(()=>{const Se={};return se&&Object.keys(se).forEach(Re=>{const Ne=se[Re];Ne!==void 0&&(Se[`--${V}-${Re}-width`]=typeof Ne=="number"?`${Ne}px`:Ne)}),Se},[V,se]);return U(c.createElement(ic,{form:!0,space:!0},c.createElement(Js.Provider,{value:ye},c.createElement(jx,Object.assign({width:de},k,{zIndex:he,getContainer:u===void 0?L:u,prefixCls:V,rootClassName:ee(z,r,F,Y),footer:ne,visible:o??p,mousePosition:O??xg,onClose:q,closable:te&&Object.assign({disabled:fe,closeIcon:re},me),closeIcon:re,focusTriggerAfterClose:d,transitionName:Go(H,"zoom",e.transitionName),maskTransitionName:Go(H,"fade",e.maskTransitionName),className:ee(z,n,A==null?void 0:A.className),style:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),m),ve),classNames:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.classNames),y),{wrapper:ee(Q,y==null?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},A==null?void 0:A.styles),C),panelRef:ce,destroyOnClose:I??P,modalRender:ue}),b?c.createElement(Sa,{active:!0,title:!1,paragraph:{rows:4},className:`${V}-body-skeleton`}):S))))},hP=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:l,lineHeight:s,modalTitleHeight:u,fontHeight:d,confirmBodyPadding:m}=e,p=`${t}-confirm`;return{[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:Object.assign({},Gu()),[`&${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(d).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}}},vP=Qs(["Modal","confirm"],e=>{const t=qx(e);return hP(t)},Gx,{order:-1e3});var yP=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 Qx=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:l,type:s,okCancel:u,footer:d,locale:m}=e,p=yP(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(s){case"info":g=c.createElement(ix,null);break;case"success":g=c.createElement(rx,null);break;case"error":g=c.createElement(wd,null);break;default:g=c.createElement(ox,null)}const v=u??s==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[C]=mi("Modal"),S=m||C,b=r||(v?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:v},p),[y,$,b,v,p]),O=c.createElement(c.Fragment,null,c.createElement(Ib,null),c.createElement(_b,null)),R=e.title!==void 0&&e.title!==null,_=`${l}-body`;return c.createElement("div",{className:`${l}-body-wrapper`},c.createElement("div",{className:ee(_,{[`${_}-has-title`]:R})},g,c.createElement("div",{className:`${l}-paragraph`},R&&c.createElement("span",{className:`${l}-title`},e.title),c.createElement("div",{className:`${l}-content`},e.content))),d===void 0||typeof d=="function"?c.createElement(Px,{value:w},c.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(O,{OkBtn:_b,CancelBtn:Ib}):O)):d,c.createElement(vP,{prefixCls:t}))},bP=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:l,wrapClassName:s,rootPrefixCls:u,bodyStyle:d,closable:m=!1,onConfirm:p,styles:g,title:v}=e,y=`${l}-confirm`,C=e.width||416,S=e.style||{},b=e.mask===void 0?!0:e.mask,$=e.maskClosable===void 0?!1:e.maskClosable,w=ee(y,`${y}-${e.type}`,{[`${y}-rtl`]:o==="rtl"},e.className),[,O]=zr(),R=c.useMemo(()=>n!==void 0?n:O.zIndexPopupBase+ux,[n,O]);return c.createElement(Xx,Object.assign({},e,{className:w,wrapClassName:ee({[`${y}-centered`]:!!e.centered},s),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},title:v,footer:null,transitionName:Go(u||"","zoom",e.transitionName),maskTransitionName:Go(u||"","fade",e.maskTransitionName),mask:b,maskClosable:$,style:S,styles:Object.assign({body:d,mask:r},g),width:C,zIndex:R,closable:m}),c.createElement(Qx,Object.assign({},e,{confirmPrefixCls:y})))},Yx=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return c.createElement(Qo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},c.createElement(bP,Object.assign({},e)))},fa=[];let Jx="";function Zx(){return Jx}const CP=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:l}=e,s=wS(),u=c.useContext(Et),d=Zx()||u.getPrefixCls(),m=r||`${d}-modal`;let p=o;return p===!1&&(p=void 0),Z.createElement(Yx,Object.assign({},e,{rootPrefixCls:d,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 ac(e){const t=JS(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),o,l;function s(...p){var g;if(p.some(C=>C==null?void 0:C.triggerCancel)){var y;(g=e.onCancel)===null||g===void 0||(y=g).call.apply(y,[e,()=>{}].concat(Ae(p.slice(1))))}for(let C=0;C<fa.length;C++)if(fa[C]===d){fa.splice(C,1);break}l()}const u=p=>{clearTimeout(o),o=setTimeout(()=>{const g=t.getPrefixCls(void 0,Zx()),v=t.getIconPrefixCls(),y=t.getTheme(),C=Z.createElement(CP,Object.assign({},p));l=ih()(Z.createElement(Qo,{prefixCls:g,iconPrefixCls:v,theme:y},typeof t.holderRender=="function"?t.holderRender(C):C),n)})};function d(...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),fa.push(d),{destroy:d,update:m}}function ew(e){return Object.assign(Object.assign({},e),{type:"warning"})}function tw(e){return Object.assign(Object.assign({},e),{type:"info"})}function nw(e){return Object.assign(Object.assign({},e),{type:"success"})}function rw(e){return Object.assign(Object.assign({},e),{type:"error"})}function ow(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function SP({rootPrefixCls:e}){Jx=e}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 wP=(e,t)=>{var n,{afterClose:r,config:o}=e,l=xP(e,["afterClose","config"]);const[s,u]=c.useState(!0),[d,m]=c.useState(o),{direction:p,getPrefixCls:g}=c.useContext(Et),v=g("modal"),y=g(),C=()=>{var w;r(),(w=d.afterClose)===null||w===void 0||w.call(d)},S=(...w)=>{var O;if(u(!1),w.some(I=>I==null?void 0:I.triggerCancel)){var _;(O=d.onCancel)===null||O===void 0||(_=O).call.apply(_,[d,()=>{}].concat(Ae(w.slice(1))))}};c.useImperativeHandle(t,()=>({destroy:S,update:w=>{m(O=>{const R=typeof w=="function"?w(O):w;return Object.assign(Object.assign({},O),R)})}}));const b=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[$]=mi("Modal",Fi.Modal);return c.createElement(Yx,Object.assign({prefixCls:v,rootPrefixCls:y},d,{close:S,open:s,afterClose:C,okText:d.okText||(b?$==null?void 0:$.okText:$==null?void 0:$.justOkText),direction:d.direction||p,cancelText:d.cancelText||($==null?void 0:$.cancelText)},l))},$P=c.forwardRef(wP);let Jb=0;const EP=c.memo(c.forwardRef((e,t)=>{const[n,r]=J6();return c.useImperativeHandle(t,()=>({patchElement:r}),[r]),c.createElement(c.Fragment,null,n)}));function OP(){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 d;Jb+=1;const m=c.createRef();let p;const g=new Promise(b=>{p=b});let v=!1,y;const C=c.createElement($P,{key:`modal-${Jb}`,config:l(u),ref:m,afterClose:()=>{y==null||y()},isSilent:()=>v,onConfirm:b=>{p(b)}});return y=(d=e.current)===null||d===void 0?void 0:d.patchElement(C),y&&fa.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=>(v=!0,g.then(b))}},[]);return[c.useMemo(()=>({info:r(tw),success:r(nw),error:r(rw),warning:r(ew),confirm:r(ow)}),[r]),c.createElement(EP,{key:"modal-holder",ref:e})]}const RP=Z.createContext({});function iw(e){return t=>c.createElement(Qo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const aw=(e,t,n,r,o)=>iw(s=>{const{prefixCls:u,style:d}=s,m=c.useRef(null),[p,g]=c.useState(0),[v,y]=c.useState(0),[C,S]=An(!1,{value:s.open}),{getPrefixCls:b}=c.useContext(Et),$=b(r||"select",u);c.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(I=>{const P=I[0].target;g(P.offsetHeight+8),y(P.offsetWidth)}),_=setInterval(()=>{var I;const P=o?`.${o($)}`:`.${$}-dropdown`,N=(I=m.current)===null||I===void 0?void 0:I.querySelector(P);N&&(clearInterval(_),R.observe(N))},10);return()=>{clearInterval(_),R.disconnect()}}},[$]);let w=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},d),{margin:0}),open:C,visible:C,getPopupContainer:()=>m.current});t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const O={paddingBottom:p,position:"relative",minWidth:v};return c.createElement("div",{ref:m,style:O},c.createElement(e,Object.assign({},w)))}),gh=(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 Bd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,l=t.children,s=t.onMouseDown,u=t.onClick,d=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},d!==void 0?d:c.createElement("span",{className:ee(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},l))},IP=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,d=arguments.length>7?arguments[7]:void 0,m=Z.useMemo(function(){if(gt(o)==="object")return o.clearIcon;if(l)return l},[o,l]),p=Z.useMemo(function(){return!!(!s&&o&&(r.length||u)&&!(d==="combobox"&&u===""))},[o,s,r.length,u,d]);return{allowClear:p,clearIcon:Z.createElement(Bd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},lw=c.createContext(null);function _P(){return c.useContext(lw)}function PP(){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 sw(){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 TP(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 d=s.target;d.shadowRoot&&s.composed&&(d=s.composedPath()[0]||d),o.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(d)&&m!==d})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function NP(e){return e&&![Ve.ESC,Ve.SHIFT,Ve.BACKSPACE,Ve.TAB,Ve.WIN_KEY,Ve.ALT,Ve.META,Ve.WIN_KEY_RIGHT,Ve.CTRL,Ve.SEMICOLON,Ve.EQUALS,Ve.CAPS_LOCK,Ve.CONTEXT_MENU,Ve.F1,Ve.F2,Ve.F3,Ve.F4,Ve.F5,Ve.F6,Ve.F7,Ve.F8,Ve.F9,Ve.F10,Ve.F11,Ve.F12].includes(e)}var kP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ja=void 0;function MP(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,l=e.renderItem,s=e.responsive,u=e.responsiveDisabled,d=e.registerSize,m=e.itemKey,p=e.className,g=e.style,v=e.children,y=e.display,C=e.order,S=e.component,b=S===void 0?"div":S,$=kt(e,kP),w=s&&!y;function O(N){d(m,N)}c.useEffect(function(){return function(){O(null)}},[]);var R=l&&o!==Ja?l(o,{index:C}):v,_;r||(_={opacity:w?0:1,height:w?0:Ja,overflowY:w?"hidden":Ja,order:s?C:Ja,pointerEvents:w?"none":Ja,position:w?"absolute":Ja});var I={};w&&(I["aria-hidden"]=!0);var P=c.createElement(b,Oe({className:ee(!r&&n,p),style:K(K({},_),g)},I,$,{ref:t}),R);return s&&(P=c.createElement(Co,{onResize:function(T){var k=T.offsetWidth;O(k)},disabled:u},P)),P}var pl=c.forwardRef(MP);pl.displayName="Item";function jP(e){if(typeof MessageChannel>"u")$n(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function zP(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],jP(function(){Hi.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Za(e,t){var n=c.useState(t),r=ae(n,2),o=r[0],l=r[1],s=Ln(function(u){e(function(){l(u)})});return[o,s]}var td=Z.createContext(null),LP=["component"],BP=["className"],AP=["className"],DP=function(t,n){var r=c.useContext(td);if(!r){var o=t.component,l=o===void 0?"div":o,s=kt(t,LP);return c.createElement(l,Oe({},s,{ref:n}))}var u=r.className,d=kt(r,BP),m=t.className,p=kt(t,AP);return c.createElement(td.Provider,{value:null},c.createElement(pl,Oe({ref:n,className:ee(u,m)},d,p)))},cw=c.forwardRef(DP);cw.displayName="RawItem";var HP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],uw="responsive",dw="invalidate";function FP(e){return"+ ".concat(e.length," ...")}function VP(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,d=e.itemKey,m=e.itemWidth,p=m===void 0?10:m,g=e.ssr,v=e.style,y=e.className,C=e.maxCount,S=e.renderRest,b=e.renderRawRest,$=e.prefix,w=e.suffix,O=e.component,R=O===void 0?"div":O,_=e.itemComponent,I=e.onVisibleChange,P=kt(e,HP),N=g==="full",T=zP(),k=Za(T,null),L=ae(k,2),j=L[0],D=L[1],A=j||0,q=Za(T,new Map),W=ae(q,2),V=W[0],H=W[1],Y=Za(T,0),U=ae(Y,2),z=U[0],F=U[1],Q=Za(T,0),ne=ae(Q,2),te=ne[0],re=ne[1],fe=Za(T,0),me=ae(fe,2),ue=me[0],Ce=me[1],le=Za(T,0),ce=ae(le,2),he=ce[0],ye=ce[1],de=c.useState(null),se=ae(de,2),ve=se[0],Se=se[1],Re=c.useState(null),Ne=ae(Re,2),we=Ne[0],$e=Ne[1],ke=c.useMemo(function(){return we===null&&N?Number.MAX_SAFE_INTEGER:we||0},[we,j]),Ie=c.useState(!1),Ge=ae(Ie,2),tt=Ge[0],St=Ge[1],ct="".concat(r,"-item"),qe=Math.max(z,te),at=C===uw,We=l.length&&at,mt=C===dw,Qe=We||typeof C=="number"&&l.length>C,je=c.useMemo(function(){var Ee=l;return We?j===null&&N?Ee=l:Ee=l.slice(0,Math.min(l.length,A/p)):typeof C=="number"&&(Ee=l.slice(0,C)),Ee},[l,p,j,C,We]),Je=c.useMemo(function(){return We?l.slice(ke+1):l.slice(je.length)},[l,je,We,ke]),Te=c.useCallback(function(Ee,xe){var ze;return typeof d=="function"?d(Ee):(ze=d&&(Ee==null?void 0:Ee[d]))!==null&&ze!==void 0?ze:xe},[d]),He=c.useCallback(s||function(Ee){return Ee},[s]);function Ot(Ee,xe,ze){we===Ee&&(xe===void 0||xe===ve)||($e(Ee),ze||(St(Ee<l.length-1),I==null||I(Ee)),xe!==void 0&&Se(xe))}function ht(Ee,xe){D(xe.clientWidth)}function Gt(Ee,xe){H(function(ze){var Xe=new Map(ze);return xe===null?Xe.delete(Ee):Xe.set(Ee,xe),Xe})}function Ut(Ee,xe){re(xe),F(te)}function dn(Ee,xe){Ce(xe)}function Sn(Ee,xe){ye(xe)}function Qt(Ee){return V.get(Te(je[Ee],Ee))}rn(function(){if(A&&typeof qe=="number"&&je){var Ee=ue+he,xe=je.length,ze=xe-1;if(!xe){Ot(0,null);return}for(var Xe=0;Xe<xe;Xe+=1){var Ye=Qt(Xe);if(N&&(Ye=Ye||0),Ye===void 0){Ot(Xe-1,void 0,!0);break}if(Ee+=Ye,ze===0&&Ee<=A||Xe===ze-1&&Ee+Qt(ze)<=A){Ot(ze,null);break}else if(Ee+qe>A){Ot(Xe-1,Ee-Ye-he+te);break}}w&&Qt(0)+he>A&&Se(null)}},[A,V,te,ue,he,Te,je]);var jt=tt&&!!Je.length,xt={};ve!==null&&We&&(xt={position:"absolute",left:ve,top:0});var Yt={prefixCls:ct,responsive:We,component:_,invalidate:mt},Vt=u?function(Ee,xe){var ze=Te(Ee,xe);return c.createElement(td.Provider,{key:ze,value:K(K({},Yt),{},{order:xe,item:Ee,itemKey:ze,registerSize:Gt,display:xe<=ke})},u(Ee,xe))}:function(Ee,xe){var ze=Te(Ee,xe);return c.createElement(pl,Oe({},Yt,{order:xe,key:ze,item:Ee,renderItem:He,itemKey:ze,registerSize:Gt,display:xe<=ke}))},Ze={order:jt?ke:Number.MAX_SAFE_INTEGER,className:"".concat(ct,"-rest"),registerSize:Ut,display:jt},Ct=S||FP,lt=b?c.createElement(td.Provider,{value:K(K({},Yt),Ze)},b(Je)):c.createElement(pl,Oe({},Yt,Ze),typeof Ct=="function"?Ct(Je):Ct),_e=c.createElement(R,Oe({className:ee(!mt&&r,y),style:v,ref:t},P),$&&c.createElement(pl,Oe({},Yt,{responsive:at,responsiveDisabled:!We,order:-1,className:"".concat(ct,"-prefix"),registerSize:dn,display:!0}),$),je.map(Vt),Qe?lt:null,w&&c.createElement(pl,Oe({},Yt,{responsive:at,responsiveDisabled:!We,order:ke,className:"".concat(ct,"-suffix"),registerSize:Sn,display:!0,style:xt}),w));return at?c.createElement(Co,{onResize:ht,disabled:!We},_e):_e}var qo=c.forwardRef(VP);qo.displayName="Overflow";qo.Item=cw;qo.RESPONSIVE=uw;qo.INVALIDATE=dw;function WP(e,t,n){var r=K(K({},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,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];return l.apply(void 0,d),(s=e[o])===null||s===void 0?void 0:s.call.apply(s,[e].concat(d))})}),r}var UP=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],qP=function(t,n){var r=t.prefixCls,o=t.id,l=t.inputElement,s=t.autoFocus,u=t.autoComplete,d=t.editable,m=t.activeDescendantId,p=t.value,g=t.open,v=t.attrs,y=kt(t,UP),C=l||c.createElement("input",null),S=C,b=S.ref,$=S.props;return"maxLength"in C.props,C=c.cloneElement(C,K(K(K({type:"search"},WP(y,$)),{},{id:o,ref:Bo(n,b),autoComplete:u||"off",autoFocus:s,className:ee("".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},v),{},{value:d?p:"",readOnly:!d,unselectable:d?null:"on",style:K(K({},$.style),{},{opacity:d?null:0})})),C},fw=c.forwardRef(qP);function mw(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var GP=typeof window<"u"&&window.document&&window.document.documentElement,KP=GP;function XP(e){return e!=null}function QP(e){return!e&&e!==0}function Zb(e){return["string","number"].includes(gt(e))}function pw(e){var t=void 0;return e&&(Zb(e.title)?t=e.title.toString():Zb(e.label)&&(t=e.label.toString())),t}function YP(e,t){KP?c.useLayoutEffect(e,t):c.useEffect(e,t)}function JP(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var e1=function(t){t.preventDefault(),t.stopPropagation()},ZP=function(t){var n=t.id,r=t.prefixCls,o=t.values,l=t.open,s=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,m=t.placeholder,p=t.disabled,g=t.mode,v=t.showSearch,y=t.autoFocus,C=t.autoComplete,S=t.activeDescendantId,b=t.tabIndex,$=t.removeIcon,w=t.maxTagCount,O=t.maxTagTextLength,R=t.maxTagPlaceholder,_=R===void 0?function(ye){return"+ ".concat(ye.length," ...")}:R,I=t.tagRender,P=t.onToggleOpen,N=t.onRemove,T=t.onInputChange,k=t.onInputPaste,L=t.onInputKeyDown,j=t.onInputMouseDown,D=t.onInputCompositionStart,A=t.onInputCompositionEnd,q=t.onInputBlur,W=c.useRef(null),V=c.useState(0),H=ae(V,2),Y=H[0],U=H[1],z=c.useState(!1),F=ae(z,2),Q=F[0],ne=F[1],te="".concat(r,"-selection"),re=l||g==="multiple"&&u===!1||g==="tags"?s:"",fe=g==="tags"||g==="multiple"&&u===!1||v&&(l||Q);YP(function(){U(W.current.scrollWidth)},[re]);var me=function(de,se,ve,Se,Re){return c.createElement("span",{title:pw(de),className:ee("".concat(te,"-item"),G({},"".concat(te,"-item-disabled"),ve))},c.createElement("span",{className:"".concat(te,"-item-content")},se),Se&&c.createElement(Bd,{className:"".concat(te,"-item-remove"),onMouseDown:e1,onClick:Re,customizeIcon:$},"×"))},ue=function(de,se,ve,Se,Re,Ne){var we=function(ke){e1(ke),P(!l)};return c.createElement("span",{onMouseDown:we},I({label:se,value:de,disabled:ve,closable:Se,onClose:Re,isMaxTag:!!Ne}))},Ce=function(de){var se=de.disabled,ve=de.label,Se=de.value,Re=!p&&!se,Ne=ve;if(typeof O=="number"&&(typeof ve=="string"||typeof ve=="number")){var we=String(Ne);we.length>O&&(Ne="".concat(we.slice(0,O),"..."))}var $e=function(Ie){Ie&&Ie.stopPropagation(),N(de)};return typeof I=="function"?ue(Se,Ne,se,Re,$e):me(de,Ne,se,Re,$e)},le=function(de){if(!o.length)return null;var se=typeof _=="function"?_(de):_;return typeof I=="function"?ue(void 0,se,!1,!1,void 0,!0):me({title:se},se,!1)},ce=c.createElement("div",{className:"".concat(te,"-search"),style:{width:Y},onFocus:function(){ne(!0)},onBlur:function(){ne(!1)}},c.createElement(fw,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:p,autoFocus:y,autoComplete:C,editable:fe,activeDescendantId:S,value:re,onKeyDown:L,onMouseDown:j,onChange:T,onPaste:k,onCompositionStart:D,onCompositionEnd:A,onBlur:q,tabIndex:b,attrs:oo(t,!0)}),c.createElement("span",{ref:W,className:"".concat(te,"-search-mirror"),"aria-hidden":!0},re," ")),he=c.createElement(qo,{prefixCls:"".concat(te,"-overflow"),data:o,renderItem:Ce,renderRest:le,suffix:ce,itemKey:JP,maxCount:w});return c.createElement("span",{className:"".concat(te,"-wrap")},he,!o.length&&!re&&c.createElement("span",{className:"".concat(te,"-placeholder")},m))},eT=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,l=t.inputRef,s=t.disabled,u=t.autoFocus,d=t.autoComplete,m=t.activeDescendantId,p=t.mode,g=t.open,v=t.values,y=t.placeholder,C=t.tabIndex,S=t.showSearch,b=t.searchValue,$=t.activeValue,w=t.maxLength,O=t.onInputKeyDown,R=t.onInputMouseDown,_=t.onInputChange,I=t.onInputPaste,P=t.onInputCompositionStart,N=t.onInputCompositionEnd,T=t.onInputBlur,k=t.title,L=c.useState(!1),j=ae(L,2),D=j[0],A=j[1],q=p==="combobox",W=q||S,V=v[0],H=b||"";q&&$&&!D&&(H=$),c.useEffect(function(){q&&A(!1)},[q,$]);var Y=p!=="combobox"&&!g&&!S?!1:!!H,U=k===void 0?pw(V):k,z=c.useMemo(function(){return V?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Y?{visibility:"hidden"}:void 0},y)},[V,Y,y,r]);return c.createElement("span",{className:"".concat(r,"-selection-wrap")},c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(fw,{ref:l,prefixCls:r,id:o,open:g,inputElement:n,disabled:s,autoFocus:u,autoComplete:d,editable:W,activeDescendantId:m,value:H,onKeyDown:O,onMouseDown:R,onChange:function(Q){A(!0),_(Q)},onPaste:I,onCompositionStart:P,onCompositionEnd:N,onBlur:T,tabIndex:C,attrs:oo(t,!0),maxLength:q?w:void 0})),!q&&V?c.createElement("span",{className:"".concat(r,"-selection-item"),title:U,style:Y?{visibility:"hidden"}:void 0},V.label):null,z)},tT=function(t,n){var r=c.useRef(null),o=c.useRef(!1),l=t.prefixCls,s=t.open,u=t.mode,d=t.showSearch,m=t.tokenWithEnter,p=t.disabled,g=t.prefix,v=t.autoClearSearchValue,y=t.onSearch,C=t.onSearchSubmit,S=t.onToggleOpen,b=t.onInputKeyDown,$=t.onInputBlur,w=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(U){r.current.focus(U)},blur:function(){r.current.blur()}}});var O=sw(0),R=ae(O,2),_=R[0],I=R[1],P=function(U){var z=U.which,F=r.current instanceof HTMLTextAreaElement;!F&&s&&(z===Ve.UP||z===Ve.DOWN)&&U.preventDefault(),b&&b(U),z===Ve.ENTER&&u==="tags"&&!o.current&&!s&&(C==null||C(U.target.value)),!(F&&!s&&~[Ve.UP,Ve.DOWN,Ve.LEFT,Ve.RIGHT].indexOf(z))&&NP(z)&&S(!0)},N=function(){I(!0)},T=c.useRef(null),k=function(U){y(U,!0,o.current)!==!1&&S(!0)},L=function(){o.current=!0},j=function(U){o.current=!1,u!=="combobox"&&k(U.target.value)},D=function(U){var z=U.target.value;if(m&&T.current&&/[\r\n]/.test(T.current)){var F=T.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(F,T.current)}T.current=null,k(z)},A=function(U){var z=U.clipboardData,F=z==null?void 0:z.getData("text");T.current=F||""},q=function(U){var z=U.target;if(z!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},W=function(U){var z=_();U.target!==r.current&&!z&&!(u==="combobox"&&p)&&U.preventDefault(),(u!=="combobox"&&(!d||!z)||!s)&&(s&&v!==!1&&y("",!0,!1),S())},V={inputRef:r,onInputKeyDown:P,onInputMouseDown:N,onInputChange:D,onInputPaste:A,onInputCompositionStart:L,onInputCompositionEnd:j,onInputBlur:$},H=u==="multiple"||u==="tags"?c.createElement(ZP,Oe({},t,V)):c.createElement(eT,Oe({},t,V));return c.createElement("div",{ref:w,className:"".concat(l,"-selector"),onClick:q,onMouseDown:W},g&&c.createElement("div",{className:"".concat(l,"-prefix")},g),H)},nT=c.forwardRef(tT);function rT(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,l=r||{},s=l.className,u=l.content,d=o.x,m=d===void 0?0:d,p=o.y,g=p===void 0?0:p,v=c.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var C=n.points[0],S=n.points[1],b=C[0],$=C[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:v,className:ee("".concat(t,"-arrow"),s),style:y},u)}function oT(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,l=e.motion;return o?c.createElement(ro,Oe({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var u=s.className;return c.createElement("div",{style:{zIndex:r},className:ee("".concat(t,"-mask"),u)})}):null}var iT=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),aT=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,l=e.style,s=e.target,u=e.onVisibleChanged,d=e.open,m=e.keepDom,p=e.fresh,g=e.onClick,v=e.mask,y=e.arrow,C=e.arrowPos,S=e.align,b=e.motion,$=e.maskMotion,w=e.forceRender,O=e.getPopupContainer,R=e.autoDestroy,_=e.portal,I=e.zIndex,P=e.onMouseEnter,N=e.onMouseLeave,T=e.onPointerEnter,k=e.onPointerDownCapture,L=e.ready,j=e.offsetX,D=e.offsetY,A=e.offsetR,q=e.offsetB,W=e.onAlign,V=e.onPrepare,H=e.stretch,Y=e.targetWidth,U=e.targetHeight,z=typeof n=="function"?n():n,F=d||m,Q=(O==null?void 0:O.length)>0,ne=c.useState(!O||!Q),te=ae(ne,2),re=te[0],fe=te[1];if(rn(function(){!re&&Q&&s&&fe(!0)},[re,Q,s]),!re)return null;var me="auto",ue={left:"-1000vw",top:"-1000vh",right:me,bottom:me};if(L||!d){var Ce,le=S.points,ce=S.dynamicInset||((Ce=S._experimental)===null||Ce===void 0?void 0:Ce.dynamicInset),he=ce&&le[0][1]==="r",ye=ce&&le[0][0]==="b";he?(ue.right=A,ue.left=me):(ue.left=j,ue.right=me),ye?(ue.bottom=q,ue.top=me):(ue.top=D,ue.bottom=me)}var de={};return H&&(H.includes("height")&&U?de.height=U:H.includes("minHeight")&&U&&(de.minHeight=U),H.includes("width")&&Y?de.width=Y:H.includes("minWidth")&&Y&&(de.minWidth=Y)),d||(de.pointerEvents="none"),c.createElement(_,{open:w||F,getContainer:O&&function(){return O(s)},autoDestroy:R},c.createElement(oT,{prefixCls:o,open:d,zIndex:I,mask:v,motion:$}),c.createElement(Co,{onResize:W,disabled:!d},function(se){return c.createElement(ro,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:V,onEnterPrepare:V,visible:d,onVisibleChanged:function(Se){var Re;b==null||(Re=b.onVisibleChanged)===null||Re===void 0||Re.call(b,Se),u(Se)}}),function(ve,Se){var Re=ve.className,Ne=ve.style,we=ee(o,Re,r);return c.createElement("div",{ref:Bo(se,t,Se),className:we,style:K(K(K(K({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},ue),de),Ne),{},{boxSizing:"border-box",zIndex:I},l),onMouseEnter:P,onMouseLeave:N,onPointerEnter:T,onClick:g,onPointerDownCapture:k},y&&c.createElement(rT,{prefixCls:o,arrow:y,arrowPos:C,align:S}),c.createElement(iT,{cache:!d&&!p},z))})}))}),lT=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Gi(n),l=c.useCallback(function(u){Fg(t,r?r(u):u)},[r]),s=Xo(l,ba(n));return o?c.cloneElement(n,{ref:s}):n}),t1=c.createContext(null);function n1(e){return e?Array.isArray(e)?e:[e]:[]}function sT(e,t,n,r){return c.useMemo(function(){var o=n1(n??t),l=n1(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 cT(){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 uT(e,t,n,r){for(var o=n.points,l=Object.keys(e),s=0;s<l.length;s+=1){var u,d=l[s];if(cT((u=e[d])===null||u===void 0?void 0:u.points,o,r))return"".concat(t,"-placement-").concat(d)}return""}function r1(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function lc(e){return e.ownerDocument.defaultView}function wg(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=lc(n).getComputedStyle(n),l=o.overflowX,s=o.overflowY,u=o.overflow;[l,s,u].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function Ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function fs(e){return Ds(parseFloat(e),0)}function o1(e,t){var n=K({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=lc(r).getComputedStyle(r),l=o.overflow,s=o.overflowClipMargin,u=o.borderTopWidth,d=o.borderBottomWidth,m=o.borderLeftWidth,p=o.borderRightWidth,g=r.getBoundingClientRect(),v=r.offsetHeight,y=r.clientHeight,C=r.offsetWidth,S=r.clientWidth,b=fs(u),$=fs(d),w=fs(m),O=fs(p),R=Ds(Math.round(g.width/C*1e3)/1e3),_=Ds(Math.round(g.height/v*1e3)/1e3),I=(C-S-w-O)*R,P=(v-y-b-$)*_,N=b*_,T=$*_,k=w*R,L=O*R,j=0,D=0;if(l==="clip"){var A=fs(s);j=A*R,D=A*_}var q=g.x+k-j,W=g.y+N-D,V=q+g.width+2*j-k-L-I,H=W+g.height+2*D-N-T-P;n.left=Math.max(n.left,q),n.top=Math.max(n.top,W),n.right=Math.min(n.right,V),n.bottom=Math.min(n.bottom,H)}}),n}function i1(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 a1(e,t){var n=t||[],r=ae(n,2),o=r[0],l=r[1];return[i1(e.width,o),i1(e.height,l)]}function l1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function el(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 Ni(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 dT(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]||{}}),d=ae(u,2),m=d[0],p=d[1],g=c.useRef(0),v=c.useMemo(function(){return t?wg(t):[]},[t]),y=c.useRef({}),C=function(){y.current={}};e||C();var S=Ln(function(){if(t&&n&&e){let Mn=function(_r,Br){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ge,Gr=F.x+_r,Ea=F.y+Br,Oa=Gr+ye,ot=Ea+he,Nt=Math.max(Gr,io.left),En=Math.max(Ea,io.top),In=Math.min(Oa,io.right),On=Math.min(ot,io.bottom);return Math.max(0,(In-Nt)*(On-En))},br=function(){hn=F.y+Ct,xn=hn+he,Pn=F.x+Ze,Zt=Pn+ye};var $a=Mn,Zo=br,w,O,R,_,I=t,P=I.ownerDocument,N=lc(I),T=N.getComputedStyle(I),k=T.position,L=I.style.left,j=I.style.top,D=I.style.right,A=I.style.bottom,q=I.style.overflow,W=K(K({},o[r]),l),V=P.createElement("div");(w=I.parentElement)===null||w===void 0||w.appendChild(V),V.style.left="".concat(I.offsetLeft,"px"),V.style.top="".concat(I.offsetTop,"px"),V.style.position=k,V.style.height="".concat(I.offsetHeight,"px"),V.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var H;if(Array.isArray(n))H={x:n[0],y:n[1],width:0,height:0};else{var Y,U,z=n.getBoundingClientRect();z.x=(Y=z.x)!==null&&Y!==void 0?Y:z.left,z.y=(U=z.y)!==null&&U!==void 0?U:z.top,H={x:z.x,y:z.y,width:z.width,height:z.height}}var F=I.getBoundingClientRect(),Q=N.getComputedStyle(I),ne=Q.height,te=Q.width;F.x=(O=F.x)!==null&&O!==void 0?O:F.left,F.y=(R=F.y)!==null&&R!==void 0?R:F.top;var re=P.documentElement,fe=re.clientWidth,me=re.clientHeight,ue=re.scrollWidth,Ce=re.scrollHeight,le=re.scrollTop,ce=re.scrollLeft,he=F.height,ye=F.width,de=H.height,se=H.width,ve={left:0,top:0,right:fe,bottom:me},Se={left:-ce,top:-le,right:ue-ce,bottom:Ce-le},Re=W.htmlRegion,Ne="visible",we="visibleFirst";Re!=="scroll"&&Re!==we&&(Re=Ne);var $e=Re===we,ke=o1(Se,v),Ie=o1(ve,v),Ge=Re===Ne?Ie:ke,tt=$e?Ie:Ge;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var St=I.getBoundingClientRect();I.style.left=L,I.style.top=j,I.style.right=D,I.style.bottom=A,I.style.overflow=q,(_=I.parentElement)===null||_===void 0||_.removeChild(V);var ct=Ds(Math.round(ye/parseFloat(te)*1e3)/1e3),qe=Ds(Math.round(he/parseFloat(ne)*1e3)/1e3);if(ct===0||qe===0||_s(n)&&!ah(n))return;var at=W.offset,We=W.targetOffset,mt=a1(F,at),Qe=ae(mt,2),je=Qe[0],Je=Qe[1],Te=a1(H,We),He=ae(Te,2),Ot=He[0],ht=He[1];H.x-=Ot,H.y-=ht;var Gt=W.points||[],Ut=ae(Gt,2),dn=Ut[0],Sn=Ut[1],Qt=l1(Sn),jt=l1(dn),xt=el(H,Qt),Yt=el(F,jt),Vt=K({},W),Ze=xt.x-Yt.x+je,Ct=xt.y-Yt.y+Je,lt=Mn(Ze,Ct),_e=Mn(Ze,Ct,Ie),Ee=el(H,["t","l"]),xe=el(F,["t","l"]),ze=el(H,["b","r"]),Xe=el(F,["b","r"]),Ye=W.overflow||{},zt=Ye.adjustX,Ht=Ye.adjustY,Pt=Ye.shiftX,Tt=Ye.shiftY,bn=function(Br){return typeof Br=="boolean"?Br:Br>=0},hn,xn,Pn,Zt;br();var on=bn(Ht),Le=jt[0]===Qt[0];if(on&&jt[0]==="t"&&(xn>tt.bottom||y.current.bt)){var Ue=Ct;Le?Ue-=he-de:Ue=Ee.y-Xe.y-Je;var $t=Mn(Ze,Ue),ut=Mn(Ze,Ue,Ie);$t>lt||$t===lt&&(!$e||ut>=_e)?(y.current.bt=!0,Ct=Ue,Je=-Je,Vt.points=[Ni(jt,0),Ni(Qt,0)]):y.current.bt=!1}if(on&&jt[0]==="b"&&(hn<tt.top||y.current.tb)){var nt=Ct;Le?nt+=he-de:nt=ze.y-xe.y-Je;var Ke=Mn(Ze,nt),wt=Mn(Ze,nt,Ie);Ke>lt||Ke===lt&&(!$e||wt>=_e)?(y.current.tb=!0,Ct=nt,Je=-Je,Vt.points=[Ni(jt,0),Ni(Qt,0)]):y.current.tb=!1}var Ft=bn(zt),Fe=jt[1]===Qt[1];if(Ft&&jt[1]==="l"&&(Zt>tt.right||y.current.rl)){var dt=Ze;Fe?dt-=ye-se:dt=Ee.x-Xe.x-je;var Rt=Mn(dt,Ct),ln=Mn(dt,Ct,Ie);Rt>lt||Rt===lt&&(!$e||ln>=_e)?(y.current.rl=!0,Ze=dt,je=-je,Vt.points=[Ni(jt,1),Ni(Qt,1)]):y.current.rl=!1}if(Ft&&jt[1]==="r"&&(Pn<tt.left||y.current.lr)){var Hn=Ze;Fe?Hn+=ye-se:Hn=ze.x-xe.x-je;var Rn=Mn(Hn,Ct),hr=Mn(Hn,Ct,Ie);Rn>lt||Rn===lt&&(!$e||hr>=_e)?(y.current.lr=!0,Ze=Hn,je=-je,Vt.points=[Ni(jt,1),Ni(Qt,1)]):y.current.lr=!1}br();var Qn=Pt===!0?0:Pt;typeof Qn=="number"&&(Pn<Ie.left&&(Ze-=Pn-Ie.left-je,H.x+se<Ie.left+Qn&&(Ze+=H.x-Ie.left+se-Qn)),Zt>Ie.right&&(Ze-=Zt-Ie.right-je,H.x>Ie.right-Qn&&(Ze+=H.x-Ie.right+Qn)));var vr=Tt===!0?0:Tt;typeof vr=="number"&&(hn<Ie.top&&(Ct-=hn-Ie.top-Je,H.y+de<Ie.top+vr&&(Ct+=H.y-Ie.top+de-vr)),xn>Ie.bottom&&(Ct-=xn-Ie.bottom-Je,H.y>Ie.bottom-vr&&(Ct+=H.y-Ie.bottom+vr)));var Yn=F.x+Ze,dr=Yn+ye,yr=F.y+Ct,tn=yr+he,rt=H.x,et=rt+se,Jt=H.y,nn=Jt+de,fn=Math.max(Yn,rt),gn=Math.min(dr,et),fr=(fn+gn)/2,Fn=fr-Yn,At=Math.max(yr,Jt),Jn=Math.min(tn,nn),or=(At+Jn)/2,Lr=or-yr;s==null||s(t,Vt);var ir=St.right-F.x-(Ze+F.width),gi=St.bottom-F.y-(Ct+F.height);ct===1&&(Ze=Math.floor(Ze),ir=Math.floor(ir)),qe===1&&(Ct=Math.floor(Ct),gi=Math.floor(gi));var wa={ready:!0,offsetX:Ze/ct,offsetY:Ct/qe,offsetR:ir/ct,offsetB:gi/qe,arrowX:Fn/ct,arrowY:Lr/qe,scaleX:ct,scaleY:qe,align:Vt};p(wa)}}),b=function(){g.current+=1;var O=g.current;Promise.resolve().then(function(){g.current===O&&S()})},$=function(){p(function(O){return K(K({},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 fT(e,t,n,r,o){rn(function(){if(e&&t&&n){let v=function(){r(),o()};var g=v,l=t,s=n,u=wg(l),d=wg(s),m=lc(s),p=new Set([m].concat(Ae(u),Ae(d)));return p.forEach(function(y){y.addEventListener("scroll",v,{passive:!0})}),m.addEventListener("resize",v,{passive:!0}),r(),function(){p.forEach(function(y){y.removeEventListener("scroll",v),m.removeEventListener("resize",v)})}}},[e,t,n])}function mT(e,t,n,r,o,l,s,u){var d=c.useRef(e);d.current=e;var m=c.useRef(!1);c.useEffect(function(){if(t&&r&&(!o||l)){var g=function(){m.current=!1},v=function(b){var $;d.current&&!s((($=b.composedPath)===null||$===void 0||($=$.call(b))===null||$===void 0?void 0:$[0])||b.target)&&!m.current&&u(!1)},y=lc(r);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",v,!0),y.addEventListener("contextmenu",v,!0);var C=Xu(n);return C&&(C.addEventListener("mousedown",v,!0),C.addEventListener("contextmenu",v,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",v,!0),y.removeEventListener("contextmenu",v,!0),C&&(C.removeEventListener("mousedown",v,!0),C.removeEventListener("contextmenu",v,!0))}}},[t,n,r,o,l]);function p(){m.current=!0}return p}var pT=["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 gT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Md,t=c.forwardRef(function(n,r){var o=n.prefixCls,l=o===void 0?"rc-trigger-popup":o,s=n.children,u=n.action,d=u===void 0?"hover":u,m=n.showAction,p=n.hideAction,g=n.popupVisible,v=n.defaultPopupVisible,y=n.onPopupVisibleChange,C=n.afterPopupVisibleChange,S=n.mouseEnterDelay,b=n.mouseLeaveDelay,$=b===void 0?.1:b,w=n.focusDelay,O=n.blurDelay,R=n.mask,_=n.maskClosable,I=_===void 0?!0:_,P=n.getPopupContainer,N=n.forceRender,T=n.autoDestroy,k=n.destroyPopupOnHide,L=n.popup,j=n.popupClassName,D=n.popupStyle,A=n.popupPlacement,q=n.builtinPlacements,W=q===void 0?{}:q,V=n.popupAlign,H=n.zIndex,Y=n.stretch,U=n.getPopupClassNameFromAlign,z=n.fresh,F=n.alignPoint,Q=n.onPopupClick,ne=n.onPopupAlign,te=n.arrow,re=n.popupMotion,fe=n.maskMotion,me=n.popupTransitionName,ue=n.popupAnimation,Ce=n.maskTransitionName,le=n.maskAnimation,ce=n.className,he=n.getTriggerDOMNode,ye=kt(n,pT),de=T||k||!1,se=c.useState(!1),ve=ae(se,2),Se=ve[0],Re=ve[1];rn(function(){Re(gh())},[]);var Ne=c.useRef({}),we=c.useContext(t1),$e=c.useMemo(function(){return{registerSubPopup:function(Nt,En){Ne.current[Nt]=En,we==null||we.registerSubPopup(Nt,En)}}},[we]),ke=jd(),Ie=c.useState(null),Ge=ae(Ie,2),tt=Ge[0],St=Ge[1],ct=c.useRef(null),qe=Ln(function(ot){ct.current=ot,_s(ot)&&tt!==ot&&St(ot),we==null||we.registerSubPopup(ke,ot)}),at=c.useState(null),We=ae(at,2),mt=We[0],Qe=We[1],je=c.useRef(null),Je=Ln(function(ot){_s(ot)&&mt!==ot&&(Qe(ot),je.current=ot)}),Te=c.Children.only(s),He=(Te==null?void 0:Te.props)||{},Ot={},ht=Ln(function(ot){var Nt,En,In=mt;return(In==null?void 0:In.contains(ot))||((Nt=Xu(In))===null||Nt===void 0?void 0:Nt.host)===ot||ot===In||(tt==null?void 0:tt.contains(ot))||((En=Xu(tt))===null||En===void 0?void 0:En.host)===ot||ot===tt||Object.values(Ne.current).some(function(On){return(On==null?void 0:On.contains(ot))||ot===On})}),Gt=r1(l,re,ue,me),Ut=r1(l,fe,le,Ce),dn=c.useState(v||!1),Sn=ae(dn,2),Qt=Sn[0],jt=Sn[1],xt=g??Qt,Yt=Ln(function(ot){g===void 0&&jt(ot)});rn(function(){jt(g||!1)},[g]);var Vt=c.useRef(xt);Vt.current=xt;var Ze=c.useRef([]);Ze.current=[];var Ct=Ln(function(ot){var Nt;Yt(ot),((Nt=Ze.current[Ze.current.length-1])!==null&&Nt!==void 0?Nt:xt)!==ot&&(Ze.current.push(ot),y==null||y(ot))}),lt=c.useRef(),_e=function(){clearTimeout(lt.current)},Ee=function(Nt){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_e(),En===0?Ct(Nt):lt.current=setTimeout(function(){Ct(Nt)},En*1e3)};c.useEffect(function(){return _e},[]);var xe=c.useState(!1),ze=ae(xe,2),Xe=ze[0],Ye=ze[1];rn(function(ot){(!ot||xt)&&Ye(!0)},[xt]);var zt=c.useState(null),Ht=ae(zt,2),Pt=Ht[0],Tt=Ht[1],bn=c.useState(null),hn=ae(bn,2),xn=hn[0],Pn=hn[1],Zt=function(Nt){Pn([Nt.clientX,Nt.clientY])},on=dT(xt,tt,F&&xn!==null?xn:mt,A,W,V,ne),Le=ae(on,11),Ue=Le[0],$t=Le[1],ut=Le[2],nt=Le[3],Ke=Le[4],wt=Le[5],Ft=Le[6],Fe=Le[7],dt=Le[8],Rt=Le[9],ln=Le[10],Hn=sT(Se,d,m,p),Rn=ae(Hn,2),hr=Rn[0],Qn=Rn[1],vr=hr.has("click"),Yn=Qn.has("click")||Qn.has("contextMenu"),dr=Ln(function(){Xe||ln()}),yr=function(){Vt.current&&F&&Yn&&Ee(!1)};fT(xt,mt,tt,dr,yr),rn(function(){dr()},[xn,A]),rn(function(){xt&&!(W!=null&&W[A])&&dr()},[JSON.stringify(V)]);var tn=c.useMemo(function(){var ot=uT(W,l,Rt,F);return ee(ot,U==null?void 0:U(Rt))},[Rt,U,W,l,F]);c.useImperativeHandle(r,function(){return{nativeElement:je.current,popupElement:ct.current,forceAlign:dr}});var rt=c.useState(0),et=ae(rt,2),Jt=et[0],nn=et[1],fn=c.useState(0),gn=ae(fn,2),fr=gn[0],Fn=gn[1],At=function(){if(Y&&mt){var Nt=mt.getBoundingClientRect();nn(Nt.width),Fn(Nt.height)}},Jn=function(){At(),dr()},or=function(Nt){Ye(!1),ln(),C==null||C(Nt)},Lr=function(){return new Promise(function(Nt){At(),Tt(function(){return Nt})})};rn(function(){Pt&&(ln(),Pt(),Tt(null))},[Pt]);function ir(ot,Nt,En,In){Ot[ot]=function(On){var Ra;In==null||In(On),Ee(Nt,En);for(var ei=arguments.length,hi=new Array(ei>1?ei-1:0),wo=1;wo<ei;wo++)hi[wo-1]=arguments[wo];(Ra=He[ot])===null||Ra===void 0||Ra.call.apply(Ra,[He,On].concat(hi))}}(vr||Yn)&&(Ot.onClick=function(ot){var Nt;Vt.current&&Yn?Ee(!1):!Vt.current&&vr&&(Zt(ot),Ee(!0));for(var En=arguments.length,In=new Array(En>1?En-1:0),On=1;On<En;On++)In[On-1]=arguments[On];(Nt=He.onClick)===null||Nt===void 0||Nt.call.apply(Nt,[He,ot].concat(In))});var gi=mT(xt,Yn,mt,tt,R,I,ht,Ee),wa=hr.has("hover"),$a=Qn.has("hover"),Zo,Mn;wa&&(ir("onMouseEnter",!0,S,function(ot){Zt(ot)}),ir("onPointerEnter",!0,S,function(ot){Zt(ot)}),Zo=function(Nt){(xt||Xe)&&tt!==null&&tt!==void 0&&tt.contains(Nt.target)&&Ee(!0,S)},F&&(Ot.onMouseMove=function(ot){var Nt;(Nt=He.onMouseMove)===null||Nt===void 0||Nt.call(He,ot)})),$a&&(ir("onMouseLeave",!1,$),ir("onPointerLeave",!1,$),Mn=function(){Ee(!1,$)}),hr.has("focus")&&ir("onFocus",!0,w),Qn.has("focus")&&ir("onBlur",!1,O),hr.has("contextMenu")&&(Ot.onContextMenu=function(ot){var Nt;Vt.current&&Qn.has("contextMenu")?Ee(!1):(Zt(ot),Ee(!0)),ot.preventDefault();for(var En=arguments.length,In=new Array(En>1?En-1:0),On=1;On<En;On++)In[On-1]=arguments[On];(Nt=He.onContextMenu)===null||Nt===void 0||Nt.call.apply(Nt,[He,ot].concat(In))}),ce&&(Ot.className=ee(He.className,ce));var br=c.useRef(!1);br.current||(br.current=N||xt||Xe);var _r=K(K({},He),Ot),Br={},io=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];io.forEach(function(ot){ye[ot]&&(Br[ot]=function(){for(var Nt,En=arguments.length,In=new Array(En),On=0;On<En;On++)In[On]=arguments[On];(Nt=_r[ot])===null||Nt===void 0||Nt.call.apply(Nt,[_r].concat(In)),ye[ot].apply(ye,In)})});var Gr=c.cloneElement(Te,K(K({},_r),Br)),Ea={x:wt,y:Ft},Oa=te?K({},te!==!0?te:{}):null;return c.createElement(c.Fragment,null,c.createElement(Co,{disabled:!xt,ref:Je,onResize:Jn},c.createElement(lT,{getTriggerDOMNode:he},Gr)),br.current&&c.createElement(t1.Provider,{value:$e},c.createElement(aT,{portal:e,ref:qe,prefixCls:l,popup:L,className:ee(j,tn),style:D,target:mt,onMouseEnter:Zo,onMouseLeave:Mn,onPointerEnter:Zo,zIndex:H,open:xt,keepDom:Xe,fresh:z,onClick:Q,onPointerDownCapture:gi,mask:R,motion:Gt,maskMotion:Ut,onVisibleChanged:or,onPrepare:Lr,forceRender:N,autoDestroy:de,getPopupContainer:P,align:Rt,arrow:Oa,arrowPos:Ea,ready:Ue,offsetX:$t,offsetY:ut,offsetR:nt,offsetB:Ke,onAlign:dr,stretch:Y,targetWidth:Jt/Fe,targetHeight:fr/dt})))});return t}const Ad=gT(Md);var hT=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],vT=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"}}},yT=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,l=t.children,s=t.popupElement,u=t.animation,d=t.transitionName,m=t.dropdownStyle,p=t.dropdownClassName,g=t.direction,v=g===void 0?"ltr":g,y=t.placement,C=t.builtinPlacements,S=t.dropdownMatchSelectWidth,b=t.dropdownRender,$=t.dropdownAlign,w=t.getPopupContainer,O=t.empty,R=t.getTriggerDOMNode,_=t.onPopupVisibleChange,I=t.onPopupMouseEnter,P=kt(t,hT),N="".concat(r,"-dropdown"),T=s;b&&(T=b(s));var k=c.useMemo(function(){return C||vT(S)},[C,S]),L=u?"".concat(N,"-").concat(u):d,j=typeof S=="number",D=c.useMemo(function(){return j?null:S===!1?"minWidth":"width"},[S,j]),A=m;j&&(A=K(K({},A),{},{width:S}));var q=c.useRef(null);return c.useImperativeHandle(n,function(){return{getPopupElement:function(){var V;return(V=q.current)===null||V===void 0?void 0:V.popupElement}}}),c.createElement(Ad,Oe({},P,{showAction:_?["click"]:[],hideAction:_?["click"]:[],popupPlacement:y||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:N,popupTransitionName:L,popup:c.createElement("div",{onMouseEnter:I},T),ref:q,stretch:D,popupAlign:$,popupVisible:o,getPopupContainer:w,popupClassName:ee(p,G({},"".concat(N,"-empty"),O)),popupStyle:A,getTriggerDOMNode:R,onPopupVisibleChange:_}),l)},bT=c.forwardRef(yT);function s1(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 $g(e){return typeof e<"u"&&!Number.isNaN(e)}function gw(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 CT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],l=gw(n,!1),s=l.label,u=l.value,d=l.options,m=l.groupLabel;function p(g,v){Array.isArray(g)&&g.forEach(function(y){if(v||!(d in y)){var C=y[u];o.push({key:s1(y,o.length),groupOption:v,data:y,label:y[s],value:C})}else{var S=y[m];S===void 0&&r&&(S=y.label),o.push({key:s1(y,o.length),group:!0,data:y,label:S}),p(y[d],!0)}})}return p(e,!1),o}function Eg(e){var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ur(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var ST=function(t,n,r){if(!n||!n.length)return null;var o=!1,l=function u(d,m){var p=bS(m),g=p[0],v=p.slice(1);if(!g)return[d];var y=d.split(g);return o=o||y.length>1,y.reduce(function(C,S){return[].concat(Ae(C),Ae(u(S,v)))},[]).filter(Boolean)},s=l(t,n);return o?typeof r<"u"?s.slice(0,r):s:null},hh=c.createContext(null);function xT(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(gt(l))?l:s}).join(", ")),n.length>r?", ...":null)}var wT=["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"],$T=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Og=function(t){return t==="tags"||t==="multiple"},ET=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,l=e.className,s=e.showSearch,u=e.tagRender,d=e.direction,m=e.omitDomProps,p=e.displayValues,g=e.onDisplayValuesChange,v=e.emptyOptions,y=e.notFoundContent,C=y===void 0?"Not Found":y,S=e.onClear,b=e.mode,$=e.disabled,w=e.loading,O=e.getInputElement,R=e.getRawInputElement,_=e.open,I=e.defaultOpen,P=e.onDropdownVisibleChange,N=e.activeValue,T=e.onActiveValueChange,k=e.activeDescendantId,L=e.searchValue,j=e.autoClearSearchValue,D=e.onSearch,A=e.onSearchSplit,q=e.tokenSeparators,W=e.allowClear,V=e.prefix,H=e.suffixIcon,Y=e.clearIcon,U=e.OptionList,z=e.animation,F=e.transitionName,Q=e.dropdownStyle,ne=e.dropdownClassName,te=e.dropdownMatchSelectWidth,re=e.dropdownRender,fe=e.dropdownAlign,me=e.placement,ue=e.builtinPlacements,Ce=e.getPopupContainer,le=e.showAction,ce=le===void 0?[]:le,he=e.onFocus,ye=e.onBlur,de=e.onKeyUp,se=e.onKeyDown,ve=e.onMouseDown,Se=kt(e,wT),Re=Og(b),Ne=(s!==void 0?s:Re)||b==="combobox",we=K({},Se);$T.forEach(function(rt){delete we[rt]}),m==null||m.forEach(function(rt){delete we[rt]});var $e=c.useState(!1),ke=ae($e,2),Ie=ke[0],Ge=ke[1];c.useEffect(function(){Ge(gh())},[]);var tt=c.useRef(null),St=c.useRef(null),ct=c.useRef(null),qe=c.useRef(null),at=c.useRef(null),We=c.useRef(!1),mt=PP(),Qe=ae(mt,3),je=Qe[0],Je=Qe[1],Te=Qe[2];c.useImperativeHandle(t,function(){var rt,et;return{focus:(rt=qe.current)===null||rt===void 0?void 0:rt.focus,blur:(et=qe.current)===null||et===void 0?void 0:et.blur,scrollTo:function(nn){var fn;return(fn=at.current)===null||fn===void 0?void 0:fn.scrollTo(nn)},nativeElement:tt.current||St.current}});var He=c.useMemo(function(){var rt;if(b!=="combobox")return L;var et=(rt=p[0])===null||rt===void 0?void 0:rt.value;return typeof et=="string"||typeof et=="number"?String(et):""},[L,b,p]),Ot=b==="combobox"&&typeof O=="function"&&O()||null,ht=typeof R=="function"&&R(),Gt=Xo(St,ht==null||(n=ht.props)===null||n===void 0?void 0:n.ref),Ut=c.useState(!1),dn=ae(Ut,2),Sn=dn[0],Qt=dn[1];rn(function(){Qt(!0)},[]);var jt=An(!1,{defaultValue:I,value:_}),xt=ae(jt,2),Yt=xt[0],Vt=xt[1],Ze=Sn?Yt:!1,Ct=!C&&v;($||Ct&&Ze&&b==="combobox")&&(Ze=!1);var lt=Ct?!1:Ze,_e=c.useCallback(function(rt){var et=rt!==void 0?rt:!Ze;$||(Vt(et),Ze!==et&&(P==null||P(et)))},[$,Ze,Vt,P]),Ee=c.useMemo(function(){return(q||[]).some(function(rt){return[`
222
- `,`\r
223
- `].includes(rt)})},[q]),xe=c.useContext(hh)||{},ze=xe.maxCount,Xe=xe.rawValues,Ye=function(et,Jt,nn){if(!(Re&&$g(ze)&&(Xe==null?void 0:Xe.size)>=ze)){var fn=!0,gn=et;T==null||T(null);var fr=ST(et,q,$g(ze)?ze-Xe.size:void 0),Fn=nn?null:fr;return b!=="combobox"&&Fn&&(gn="",A==null||A(Fn),_e(!1),fn=!1),D&&He!==gn&&D(gn,{source:Jt?"typing":"effect"}),fn}},zt=function(et){!et||!et.trim()||D(et,{source:"submit"})};c.useEffect(function(){!Ze&&!Re&&b!=="combobox"&&Ye("",!1,!1)},[Ze]),c.useEffect(function(){Yt&&$&&Vt(!1),$&&!We.current&&Je(!1)},[$]);var Ht=sw(),Pt=ae(Ht,2),Tt=Pt[0],bn=Pt[1],hn=c.useRef(!1),xn=function(et){var Jt=Tt(),nn=et.key,fn=nn==="Enter";if(fn&&(b!=="combobox"&&et.preventDefault(),Ze||_e(!0)),bn(!!He),nn==="Backspace"&&!Jt&&Re&&!He&&p.length){for(var gn=Ae(p),fr=null,Fn=gn.length-1;Fn>=0;Fn-=1){var At=gn[Fn];if(!At.disabled){gn.splice(Fn,1),fr=At;break}}fr&&g(gn,{type:"remove",values:[fr]})}for(var Jn=arguments.length,or=new Array(Jn>1?Jn-1:0),Lr=1;Lr<Jn;Lr++)or[Lr-1]=arguments[Lr];if(Ze&&(!fn||!hn.current)){var ir;fn&&(hn.current=!0),(ir=at.current)===null||ir===void 0||ir.onKeyDown.apply(ir,[et].concat(or))}se==null||se.apply(void 0,[et].concat(or))},Pn=function(et){for(var Jt=arguments.length,nn=new Array(Jt>1?Jt-1:0),fn=1;fn<Jt;fn++)nn[fn-1]=arguments[fn];if(Ze){var gn;(gn=at.current)===null||gn===void 0||gn.onKeyUp.apply(gn,[et].concat(nn))}et.key==="Enter"&&(hn.current=!1),de==null||de.apply(void 0,[et].concat(nn))},Zt=function(et){var Jt=p.filter(function(nn){return nn!==et});g(Jt,{type:"remove",values:[et]})},on=function(){hn.current=!1},Le=c.useRef(!1),Ue=function(){Je(!0),$||(he&&!Le.current&&he.apply(void 0,arguments),ce.includes("focus")&&_e(!0)),Le.current=!0},$t=function(){We.current=!0,Je(!1,function(){Le.current=!1,We.current=!1,_e(!1)}),!$&&(He&&(b==="tags"?D(He,{source:"submit"}):b==="multiple"&&D("",{source:"blur"})),ye&&ye.apply(void 0,arguments))},ut=[];c.useEffect(function(){return function(){ut.forEach(function(rt){return clearTimeout(rt)}),ut.splice(0,ut.length)}},[]);var nt=function(et){var Jt,nn=et.target,fn=(Jt=ct.current)===null||Jt===void 0?void 0:Jt.getPopupElement();if(fn&&fn.contains(nn)){var gn=setTimeout(function(){var Jn=ut.indexOf(gn);if(Jn!==-1&&ut.splice(Jn,1),Te(),!Ie&&!fn.contains(document.activeElement)){var or;(or=qe.current)===null||or===void 0||or.focus()}});ut.push(gn)}for(var fr=arguments.length,Fn=new Array(fr>1?fr-1:0),At=1;At<fr;At++)Fn[At-1]=arguments[At];ve==null||ve.apply(void 0,[et].concat(Fn))},Ke=c.useState({}),wt=ae(Ke,2),Ft=wt[1];function Fe(){Ft({})}var dt;ht&&(dt=function(et){_e(et)}),TP(function(){var rt;return[tt.current,(rt=ct.current)===null||rt===void 0?void 0:rt.getPopupElement()]},lt,_e,!!ht);var Rt=c.useMemo(function(){return K(K({},e),{},{notFoundContent:C,open:Ze,triggerOpen:lt,id:r,showSearch:Ne,multiple:Re,toggleOpen:_e})},[e,C,lt,Ze,r,Ne,Re,_e]),ln=!!H||w,Hn;ln&&(Hn=c.createElement(Bd,{className:ee("".concat(o,"-arrow"),G({},"".concat(o,"-arrow-loading"),w)),customizeIcon:H,customizeIconProps:{loading:w,searchValue:He,open:Ze,focused:je,showSearch:Ne}}));var Rn=function(){var et;S==null||S(),(et=qe.current)===null||et===void 0||et.focus(),g([],{type:"clear",values:p}),Ye("",!1,!1)},hr=IP(o,Rn,p,W,Y,$,He,b),Qn=hr.allowClear,vr=hr.clearIcon,Yn=c.createElement(U,{ref:at}),dr=ee(o,l,G(G(G(G(G(G(G(G(G(G({},"".concat(o,"-focused"),je),"".concat(o,"-multiple"),Re),"".concat(o,"-single"),!Re),"".concat(o,"-allow-clear"),W),"".concat(o,"-show-arrow"),ln),"".concat(o,"-disabled"),$),"".concat(o,"-loading"),w),"".concat(o,"-open"),Ze),"".concat(o,"-customize-input"),Ot),"".concat(o,"-show-search"),Ne)),yr=c.createElement(bT,{ref:ct,disabled:$,prefixCls:o,visible:lt,popupElement:Yn,animation:z,transitionName:F,dropdownStyle:Q,dropdownClassName:ne,direction:d,dropdownMatchSelectWidth:te,dropdownRender:re,dropdownAlign:fe,placement:me,builtinPlacements:ue,getPopupContainer:Ce,empty:v,getTriggerDOMNode:function(et){return St.current||et},onPopupVisibleChange:dt,onPopupMouseEnter:Fe},ht?c.cloneElement(ht,{ref:Gt}):c.createElement(nT,Oe({},e,{domRef:St,prefixCls:o,inputElement:Ot,ref:qe,id:r,prefix:V,showSearch:Ne,autoClearSearchValue:j,mode:b,activeDescendantId:k,tagRender:u,values:p,open:Ze,onToggleOpen:_e,activeValue:N,searchValue:He,onSearch:Ye,onSearchSubmit:zt,onRemove:Zt,tokenWithEnter:Ee,onInputBlur:on}))),tn;return ht?tn=yr:tn=c.createElement("div",Oe({className:dr},we,{ref:tt,onMouseDown:nt,onKeyDown:xn,onKeyUp:Pn,onFocus:Ue,onBlur:$t}),c.createElement(xT,{visible:je&&!Ze,values:p}),yr,Hn,Qn&&vr),c.createElement(lw.Provider,{value:Rt},tn)}),vh=function(){return null};vh.isSelectOptGroup=!0;var yh=function(){return null};yh.isSelectOption=!0;var hw=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,l=e.children,s=e.prefixCls,u=e.onInnerResize,d=e.innerProps,m=e.rtl,p=e.extra,g={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},v=K(K({},v),{},G(G(G(G(G({transform:"translateY(".concat(r,"px)")},m?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:g},c.createElement(Co,{onResize:function(C){var S=C.offsetHeight;S&&u&&u()}},c.createElement("div",Oe({style:v,className:ee(G({},"".concat(s,"-holder-inner"),s)),ref:t},d),l,p)))});hw.displayName="Filler";function OT(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function RT(e,t,n,r,o,l,s,u){var d=u.getKey;return e.slice(t,n+1).map(function(m,p){var g=t+p,v=s(m,g,{style:{width:r},offsetX:o}),y=d(m);return c.createElement(OT,{key:y,setRef:function(S){return l(m,S)}},v)})}function IT(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 d(C){return C!==void 0?n(C):u}for(var m=null,p=Math.abs(r-o)!==1,g=0;g<s.length;g+=1){var v=d(l[g]),y=d(s[g]);if(v!==y){m=g,p=p||v!==d(s[g+1]);break}}return m===null?null:{index:m,multiple:p}}function _T(e,t,n){var r=c.useState(e),o=ae(r,2),l=o[0],s=o[1],u=c.useState(null),d=ae(u,2),m=d[0],p=d[1];return c.useEffect(function(){var g=IT(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&p(e[g.index]),s(e)},[e]),[m]}var c1=(typeof navigator>"u"?"undefined":gt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const vw=(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(d,m){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=d?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 PT(e,t,n,r,o,l,s){var u=c.useRef(0),d=c.useRef(null),m=c.useRef(null),p=c.useRef(!1),g=vw(t,n,r,o);function v(w,O){if($n.cancel(d.current),!g(!1,O)){var R=w;if(!R._virtualHandled)R._virtualHandled=!0;else return;u.current+=O,m.current=O,c1||R.preventDefault(),d.current=$n(function(){var _=p.current?10:1;s(u.current*_,!1),u.current=0})}}function y(w,O){s(O,!0),c1||w.preventDefault()}var C=c.useRef(null),S=c.useRef(null);function b(w){if(e){$n.cancel(S.current),S.current=$n(function(){C.current=null},2);var O=w.deltaX,R=w.deltaY,_=w.shiftKey,I=O,P=R;(C.current==="sx"||!C.current&&_&&R&&!O)&&(I=R,P=0,C.current="sx");var N=Math.abs(I),T=Math.abs(P);C.current===null&&(C.current=l&&N>T?"x":"y"),C.current==="y"?v(w,P):y(w,I)}}function $(w){e&&(p.current=w.detail===m.current)}return[b,$]}function TT(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],d=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,v=s.get(p),y=s.get(g);if(v===void 0||y===void 0)for(var C=e.length,S=u.length;S<C;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&&(v=S),w===g&&(y=S),v!==void 0&&y!==void 0)break}return{top:u[v-1]||0,bottom:u[y]}};return d}var NT=(function(){function e(){Kn(this,e),G(this,"maps",void 0),G(this,"id",0),G(this,"diffRecords",new Map),this.maps=Object.create(null)}return Xn(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 u1(e){var t=parseFloat(e);return isNaN(t)?0:t}function kT(e,t,n){var r=c.useState(0),o=ae(r,2),l=o[0],s=o[1],u=c.useRef(new Map),d=c.useRef(new NT),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 C=function(){var $=!1;u.current.forEach(function(w,O){if(w&&w.offsetParent){var R=w.offsetHeight,_=getComputedStyle(w),I=_.marginTop,P=_.marginBottom,N=u1(I),T=u1(P),k=R+N+T;d.current.get(O)!==k&&(d.current.set(O,k),$=!0)}}),$&&s(function(w){return w+1})};if(y)C();else{m.current+=1;var S=m.current;Promise.resolve().then(function(){S===m.current&&C()})}}function v(y,C){var S=e(y);u.current.get(S),C?(u.current.set(S,C),g()):u.current.delete(S)}return c.useEffect(function(){return p},[]),[v,g,d.current,l]}var d1=14/15;function MT(e,t,n){var r=c.useRef(!1),o=c.useRef(0),l=c.useRef(0),s=c.useRef(null),u=c.useRef(null),d,m=function(y){if(r.current){var C=Math.ceil(y.touches[0].pageX),S=Math.ceil(y.touches[0].pageY),b=o.current-C,$=l.current-S,w=Math.abs(b)>Math.abs($);w?o.current=C:l.current=S;var O=n(w,w?b:$,!1,y);O&&y.preventDefault(),clearInterval(u.current),O&&(u.current=setInterval(function(){w?b*=d1:$*=d1;var R=Math.floor(w?b:$);(!n(w,R,!0)||Math.abs(R)<=.1)&&clearInterval(u.current)},16))}},p=function(){r.current=!1,d()},g=function(y){d(),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}))};d=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 v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",g),d(),clearInterval(u.current)}},[e])}function f1(e){return Math.floor(Math.pow(e,.5))}function Rg(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function jT(e,t,n){c.useEffect(function(){var r=t.current;if(e&&r){var o=!1,l,s,u=function(){$n.cancel(l)},d=function v(){u(),l=$n(function(){n(s),v()})},m=function(){o=!1,u()},p=function(y){if(!(y.target.draggable||y.button!==0)){var C=y;C._virtualHandled||(C._virtualHandled=!0,o=!0)}},g=function(y){if(o){var C=Rg(y,!1),S=r.getBoundingClientRect(),b=S.top,$=S.bottom;if(C<=b){var w=b-C;s=-f1(w),d()}else if(C>=$){var O=C-$;s=f1(O),d()}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 zT=10;function LT(e,t,n,r,o,l,s,u){var d=c.useRef(),m=c.useState(null),p=ae(m,2),g=p[0],v=p[1];return rn(function(){if(g&&g.times<zT){if(!e.current){v(function(Y){return K({},Y)});return}l();var y=g.targetAlign,C=g.originAlign,S=g.index,b=g.offset,$=e.current.clientHeight,w=!1,O=y,R=null;if($){for(var _=y||C,I=0,P=0,N=0,T=Math.min(t.length-1,S),k=0;k<=T;k+=1){var L=o(t[k]);P=I;var j=n.get(L);N=P+(j===void 0?r:j),I=N}for(var D=_==="top"?b:$-b,A=T;A>=0;A-=1){var q=o(t[A]),W=n.get(q);if(W===void 0){w=!0;break}if(D-=W,D<=0)break}switch(_){case"top":R=P-b;break;case"bottom":R=N-$+b;break;default:{var V=e.current.scrollTop,H=V+$;P<V?O="top":N>H&&(O="bottom")}}R!==null&&s(R),R!==g.lastTop&&(w=!0)}w&&v(K(K({},g),{},{times:g.times+1,targetAlign:O,lastTop:R}))}},[g,e.current]),function(y){if(y==null){u();return}if($n.cancel(d.current),typeof y=="number")s(y);else if(y&&gt(y)==="object"){var C,S=y.align;"index"in y?C=y.index:C=t.findIndex(function(w){return o(w)===y.key});var b=y.offset,$=b===void 0?0:b;v({times:0,index:C,offset:$,originAlign:S})}}}var m1=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,u=e.onStopMove,d=e.onScroll,m=e.horizontal,p=e.spinSize,g=e.containerSize,v=e.style,y=e.thumbStyle,C=e.showScrollBar,S=c.useState(!1),b=ae(S,2),$=b[0],w=b[1],O=c.useState(null),R=ae(O,2),_=R[0],I=R[1],P=c.useState(null),N=ae(P,2),T=N[0],k=N[1],L=!r,j=c.useRef(),D=c.useRef(),A=c.useState(C),q=ae(A,2),W=q[0],V=q[1],H=c.useRef(),Y=function(){C===!0||C===!1||(clearTimeout(H.current),V(!0),H.current=setTimeout(function(){V(!1)},3e3))},U=l-g||0,z=g-p||0,F=c.useMemo(function(){if(o===0||U===0)return 0;var le=o/U;return le*z},[o,U,z]),Q=function(ce){ce.stopPropagation(),ce.preventDefault()},ne=c.useRef({top:F,dragging:$,pageY:_,startTop:T});ne.current={top:F,dragging:$,pageY:_,startTop:T};var te=function(ce){w(!0),I(Rg(ce,m)),k(ne.current.top),s(),ce.stopPropagation(),ce.preventDefault()};c.useEffect(function(){var le=function(de){de.preventDefault()},ce=j.current,he=D.current;return ce.addEventListener("touchstart",le,{passive:!1}),he.addEventListener("touchstart",te,{passive:!1}),function(){ce.removeEventListener("touchstart",le),he.removeEventListener("touchstart",te)}},[]);var re=c.useRef();re.current=U;var fe=c.useRef();fe.current=z,c.useEffect(function(){if($){var le,ce=function(de){var se=ne.current,ve=se.dragging,Se=se.pageY,Re=se.startTop;$n.cancel(le);var Ne=j.current.getBoundingClientRect(),we=g/(m?Ne.width:Ne.height);if(ve){var $e=(Rg(de,m)-Se)*we,ke=Re;!L&&m?ke-=$e:ke+=$e;var Ie=re.current,Ge=fe.current,tt=Ge?ke/Ge:0,St=Math.ceil(tt*Ie);St=Math.max(St,0),St=Math.min(St,Ie),le=$n(function(){d(St,m)})}},he=function(){w(!1),u()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",he,{passive:!0}),window.addEventListener("touchend",he,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),$n.cancel(le)}}},[$]),c.useEffect(function(){return Y(),function(){clearTimeout(H.current)}},[o]),c.useImperativeHandle(t,function(){return{delayHidden:Y}});var me="".concat(n,"-scrollbar"),ue={position:"absolute",visibility:W?null:"hidden"},Ce={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(Ce,G({height:"100%",width:p},L?"left":"right",F))):(Object.assign(ue,G({width:8,top:0,bottom:0},L?"right":"left",0)),Object.assign(Ce,{width:"100%",height:p,top:F})),c.createElement("div",{ref:j,className:ee(me,G(G(G({},"".concat(me,"-horizontal"),m),"".concat(me,"-vertical"),!m),"".concat(me,"-visible"),W)),style:K(K({},ue),v),onMouseDown:Q,onMouseMove:Y},c.createElement("div",{ref:D,className:ee("".concat(me,"-thumb"),G({},"".concat(me,"-thumb-moving"),$)),style:K(K({},Ce),y),onMouseDown:te}))}),BT=20;function p1(){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,BT),Math.floor(n)}var AT=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],DT=[],HT={overflowY:"auto",overflowAnchor:"none"};function FT(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,d=u===void 0?!0:u,m=e.style,p=e.data,g=e.children,v=e.itemKey,y=e.virtual,C=e.direction,S=e.scrollWidth,b=e.component,$=b===void 0?"div":b,w=e.onScroll,O=e.onVirtualScroll,R=e.onVisibleChange,_=e.innerProps,I=e.extraRender,P=e.styles,N=e.showScrollBar,T=N===void 0?"optional":N,k=kt(e,AT),L=c.useCallback(function(Le){return typeof v=="function"?v(Le):Le==null?void 0:Le[v]},[v]),j=kT(L),D=ae(j,4),A=D[0],q=D[1],W=D[2],V=D[3],H=!!(y!==!1&&l&&s),Y=c.useMemo(function(){return Object.values(W.maps).reduce(function(Le,Ue){return Le+Ue},0)},[W.id,W.maps]),U=H&&p&&(Math.max(s*p.length,Y)>l||!!S),z=C==="rtl",F=ee(r,G({},"".concat(r,"-rtl"),z),o),Q=p||DT,ne=c.useRef(),te=c.useRef(),re=c.useRef(),fe=c.useState(0),me=ae(fe,2),ue=me[0],Ce=me[1],le=c.useState(0),ce=ae(le,2),he=ce[0],ye=ce[1],de=c.useState(!1),se=ae(de,2),ve=se[0],Se=se[1],Re=function(){Se(!0)},Ne=function(){Se(!1)},we={getKey:L};function $e(Le){Ce(function(Ue){var $t;typeof Le=="function"?$t=Le(Ue):$t=Le;var ut=Qt($t);return ne.current.scrollTop=ut,ut})}var ke=c.useRef({start:0,end:Q.length}),Ie=c.useRef(),Ge=_T(Q,L),tt=ae(Ge,1),St=tt[0];Ie.current=St;var ct=c.useMemo(function(){if(!H)return{scrollHeight:void 0,start:0,end:Q.length-1,offset:void 0};if(!U){var Le;return{scrollHeight:((Le=te.current)===null||Le===void 0?void 0:Le.offsetHeight)||0,start:0,end:Q.length-1,offset:void 0}}for(var Ue=0,$t,ut,nt,Ke=Q.length,wt=0;wt<Ke;wt+=1){var Ft=Q[wt],Fe=L(Ft),dt=W.get(Fe),Rt=Ue+(dt===void 0?s:dt);Rt>=ue&&$t===void 0&&($t=wt,ut=Ue),Rt>ue+l&&nt===void 0&&(nt=wt),Ue=Rt}return $t===void 0&&($t=0,ut=0,nt=Math.ceil(l/s)),nt===void 0&&(nt=Q.length-1),nt=Math.min(nt+1,Q.length-1),{scrollHeight:Ue,start:$t,end:nt,offset:ut}},[U,H,ue,Q,V,l]),qe=ct.scrollHeight,at=ct.start,We=ct.end,mt=ct.offset;ke.current.start=at,ke.current.end=We,c.useLayoutEffect(function(){var Le=W.getRecord();if(Le.size===1){var Ue=Array.from(Le.keys())[0],$t=Le.get(Ue),ut=Q[at];if(ut&&$t===void 0){var nt=L(ut);if(nt===Ue){var Ke=W.get(Ue),wt=Ke-s;$e(function(Ft){return Ft+wt})}}}W.resetRecord()},[qe]);var Qe=c.useState({width:0,height:l}),je=ae(Qe,2),Je=je[0],Te=je[1],He=function(Ue){Te({width:Ue.offsetWidth,height:Ue.offsetHeight})},Ot=c.useRef(),ht=c.useRef(),Gt=c.useMemo(function(){return p1(Je.width,S)},[Je.width,S]),Ut=c.useMemo(function(){return p1(Je.height,qe)},[Je.height,qe]),dn=qe-l,Sn=c.useRef(dn);Sn.current=dn;function Qt(Le){var Ue=Le;return Number.isNaN(Sn.current)||(Ue=Math.min(Ue,Sn.current)),Ue=Math.max(Ue,0),Ue}var jt=ue<=0,xt=ue>=dn,Yt=he<=0,Vt=he>=S,Ze=vw(jt,xt,Yt,Vt),Ct=function(){return{x:z?-he:he,y:ue}},lt=c.useRef(Ct()),_e=Ln(function(Le){if(O){var Ue=K(K({},Ct()),Le);(lt.current.x!==Ue.x||lt.current.y!==Ue.y)&&(O(Ue),lt.current=Ue)}});function Ee(Le,Ue){var $t=Le;Ue?(Hi.flushSync(function(){ye($t)}),_e()):$e($t)}function xe(Le){var Ue=Le.currentTarget.scrollTop;Ue!==ue&&$e(Ue),w==null||w(Le),_e()}var ze=function(Ue){var $t=Ue,ut=S?S-Je.width:0;return $t=Math.max($t,0),$t=Math.min($t,ut),$t},Xe=Ln(function(Le,Ue){Ue?(Hi.flushSync(function(){ye(function($t){var ut=$t+(z?-Le:Le);return ze(ut)})}),_e()):$e(function($t){var ut=$t+Le;return ut})}),Ye=PT(H,jt,xt,Yt,Vt,!!S,Xe),zt=ae(Ye,2),Ht=zt[0],Pt=zt[1];MT(H,ne,function(Le,Ue,$t,ut){var nt=ut;return Ze(Le,Ue,$t)?!1:!nt||!nt._virtualHandled?(nt&&(nt._virtualHandled=!0),Ht({preventDefault:function(){},deltaX:Le?Ue:0,deltaY:Le?0:Ue}),!0):!1}),jT(U,ne,function(Le){$e(function(Ue){return Ue+Le})}),rn(function(){function Le($t){var ut=jt&&$t.detail<0,nt=xt&&$t.detail>0;H&&!ut&&!nt&&$t.preventDefault()}var Ue=ne.current;return Ue.addEventListener("wheel",Ht,{passive:!1}),Ue.addEventListener("DOMMouseScroll",Pt,{passive:!0}),Ue.addEventListener("MozMousePixelScroll",Le,{passive:!1}),function(){Ue.removeEventListener("wheel",Ht),Ue.removeEventListener("DOMMouseScroll",Pt),Ue.removeEventListener("MozMousePixelScroll",Le)}},[H,jt,xt]),rn(function(){if(S){var Le=ze(he);ye(Le),_e({x:Le})}},[Je.width,S]);var Tt=function(){var Ue,$t;(Ue=Ot.current)===null||Ue===void 0||Ue.delayHidden(),($t=ht.current)===null||$t===void 0||$t.delayHidden()},bn=LT(ne,Q,W,s,L,function(){return q(!0)},$e,Tt);c.useImperativeHandle(t,function(){return{nativeElement:re.current,getScrollInfo:Ct,scrollTo:function(Ue){function $t(ut){return ut&&gt(ut)==="object"&&("left"in ut||"top"in ut)}$t(Ue)?(Ue.left!==void 0&&ye(ze(Ue.left)),bn(Ue.top)):bn(Ue)}}}),rn(function(){if(R){var Le=Q.slice(at,We+1);R(Le,Q)}},[at,We,Q]);var hn=TT(Q,L,W,s),xn=I==null?void 0:I({start:at,end:We,virtual:U,offsetX:he,offsetY:mt,rtl:z,getSize:hn}),Pn=RT(Q,at,We,S,he,A,g,we),Zt=null;l&&(Zt=K(G({},d?"height":"maxHeight",l),HT),H&&(Zt.overflowY="hidden",S&&(Zt.overflowX="hidden"),ve&&(Zt.pointerEvents="none")));var on={};return z&&(on.dir="rtl"),c.createElement("div",Oe({ref:re,style:K(K({},m),{},{position:"relative"}),className:F},on,k),c.createElement(Co,{onResize:He},c.createElement($,{className:"".concat(r,"-holder"),style:Zt,ref:ne,onScroll:xe,onMouseEnter:Tt},c.createElement(hw,{prefixCls:r,height:qe,offsetX:he,offsetY:mt,scrollWidth:S,onInnerResize:q,ref:te,innerProps:_,rtl:z,extra:xn},Pn))),U&&qe>l&&c.createElement(m1,{ref:Ot,prefixCls:r,scrollOffset:ue,scrollRange:qe,rtl:z,onScroll:Ee,onStartMove:Re,onStopMove:Ne,spinSize:Ut,containerSize:Je.height,style:P==null?void 0:P.verticalScrollBar,thumbStyle:P==null?void 0:P.verticalScrollBarThumb,showScrollBar:T}),U&&S>Je.width&&c.createElement(m1,{ref:ht,prefixCls:r,scrollOffset:he,scrollRange:S,rtl:z,onScroll:Ee,onStartMove:Re,onStopMove:Ne,spinSize:Gt,containerSize:Je.width,horizontal:!0,style:P==null?void 0:P.horizontalScrollBar,thumbStyle:P==null?void 0:P.horizontalScrollBarThumb,showScrollBar:T}))}var yw=c.forwardRef(FT);yw.displayName="List";function VT(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var WT=["disabled","title","children","style","className"];function g1(e){return typeof e=="string"||typeof e=="number"}var UT=function(t,n){var r=_P(),o=r.prefixCls,l=r.id,s=r.open,u=r.multiple,d=r.mode,m=r.searchValue,p=r.toggleOpen,g=r.notFoundContent,v=r.onPopupScroll,y=c.useContext(hh),C=y.maxCount,S=y.flattenOptions,b=y.onActiveValue,$=y.defaultActiveFirstOption,w=y.onSelect,O=y.menuItemSelectedIcon,R=y.rawValues,_=y.fieldNames,I=y.virtual,P=y.direction,N=y.listHeight,T=y.listItemHeight,k=y.optionRender,L="".concat(o,"-item"),j=Ks(function(){return S},[s,S],function(le,ce){return ce[0]&&le[1]!==ce[1]}),D=c.useRef(null),A=c.useMemo(function(){return u&&$g(C)&&(R==null?void 0:R.size)>=C},[u,C,R==null?void 0:R.size]),q=function(ce){ce.preventDefault()},W=function(ce){var he;(he=D.current)===null||he===void 0||he.scrollTo(typeof ce=="number"?{index:ce}:ce)},V=c.useCallback(function(le){return d==="combobox"?!1:R.has(le)},[d,Ae(R).toString(),R.size]),H=function(ce){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ye=j.length,de=0;de<ye;de+=1){var se=(ce+de*he+ye)%ye,ve=j[se]||{},Se=ve.group,Re=ve.data;if(!Se&&!(Re!=null&&Re.disabled)&&(V(Re.value)||!A))return se}return-1},Y=c.useState(function(){return H(0)}),U=ae(Y,2),z=U[0],F=U[1],Q=function(ce){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(ce);var ye={source:he?"keyboard":"mouse"},de=j[ce];if(!de){b(null,-1,ye);return}b(de.value,ce,ye)};c.useEffect(function(){Q($!==!1?H(0):-1)},[j.length,m]);var ne=c.useCallback(function(le){return d==="combobox"?String(le).toLowerCase()===m.toLowerCase():R.has(le)},[d,m,Ae(R).toString(),R.size]);c.useEffect(function(){var le=setTimeout(function(){if(!u&&s&&R.size===1){var he=Array.from(R)[0],ye=j.findIndex(function(de){var se=de.data;return m?String(se.value).startsWith(m):se.value===he});ye!==-1&&(Q(ye),W(ye))}});if(s){var ce;(ce=D.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(le)}},[s,m]);var te=function(ce){ce!==void 0&&w(ce,{selected:!R.has(ce)}),u||p(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var he=ce.which,ye=ce.ctrlKey;switch(he){case Ve.N:case Ve.P:case Ve.UP:case Ve.DOWN:{var de=0;if(he===Ve.UP?de=-1:he===Ve.DOWN?de=1:VT()&&ye&&(he===Ve.N?de=1:he===Ve.P&&(de=-1)),de!==0){var se=H(z+de,de);W(se),Q(se,!0)}break}case Ve.TAB:case Ve.ENTER:{var ve,Se=j[z];Se&&!(Se!=null&&(ve=Se.data)!==null&&ve!==void 0&&ve.disabled)&&!A?te(Se.value):te(void 0),s&&ce.preventDefault();break}case Ve.ESC:p(!1),s&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){W(ce)}}}),j.length===0)return c.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(L,"-empty"),onMouseDown:q},g);var re=Object.keys(_).map(function(le){return _[le]}),fe=function(ce){return ce.label};function me(le,ce){var he=le.group;return{role:he?"presentation":"option",id:"".concat(l,"_list_").concat(ce)}}var ue=function(ce){var he=j[ce];if(!he)return null;var ye=he.data||{},de=ye.value,se=he.group,ve=oo(ye,!0),Se=fe(he);return he?c.createElement("div",Oe({"aria-label":typeof Se=="string"&&!se?Se:null},ve,{key:ce},me(he,ce),{"aria-selected":ne(de)}),de):null},Ce={role:"listbox",id:"".concat(l,"_list")};return c.createElement(c.Fragment,null,I&&c.createElement("div",Oe({},Ce,{style:{height:0,width:0,overflow:"hidden"}}),ue(z-1),ue(z),ue(z+1)),c.createElement(yw,{itemKey:"key",ref:D,data:j,height:N,itemHeight:T,fullHeight:!1,onMouseDown:q,onScroll:v,virtual:I,direction:P,innerProps:I?null:Ce},function(le,ce){var he=le.group,ye=le.groupOption,de=le.data,se=le.label,ve=le.value,Se=de.key;if(he){var Re,Ne=(Re=de.title)!==null&&Re!==void 0?Re:g1(se)?se.toString():void 0;return c.createElement("div",{className:ee(L,"".concat(L,"-group"),de.className),title:Ne},se!==void 0?se:Se)}var we=de.disabled,$e=de.title;de.children;var ke=de.style,Ie=de.className,Ge=kt(de,WT),tt=Gn(Ge,re),St=V(ve),ct=we||!St&&A,qe="".concat(L,"-option"),at=ee(L,qe,Ie,G(G(G(G({},"".concat(qe,"-grouped"),ye),"".concat(qe,"-active"),z===ce&&!ct),"".concat(qe,"-disabled"),ct),"".concat(qe,"-selected"),St)),We=fe(le),mt=!O||typeof O=="function"||St,Qe=typeof We=="number"?We:We||ve,je=g1(Qe)?Qe.toString():void 0;return $e!==void 0&&(je=$e),c.createElement("div",Oe({},oo(tt),I?{}:me(le,ce),{"aria-selected":ne(ve),className:at,title:je,onMouseMove:function(){z===ce||ct||Q(ce)},onClick:function(){ct||te(ve)},style:ke}),c.createElement("div",{className:"".concat(qe,"-content")},typeof k=="function"?k(le,{index:ce}):Qe),c.isValidElement(O)||St,mt&&c.createElement(Bd,{className:"".concat(L,"-option-state"),customizeIcon:O,customizeIconProps:{value:ve,disabled:ct,isSelected:St}},St?"✓":null))}))},qT=c.forwardRef(UT);const GT=(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,d=e.map(function(g){if(g.label===void 0){var v;return K(K({},g),{},{label:(v=s.get(g.value))===null||v===void 0?void 0:v.label})}return g}),m=new Map,p=new Map;return d.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,d},[e,t]),o=c.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,o]});function dp(e,t){return mw(e).join("").toUpperCase().includes(t)}const KT=(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,d=[],m=typeof r=="function",p=n.toUpperCase(),g=m?r:function(y,C){return o?dp(C[o],p):C[l]?dp(C[s!=="children"?s:"label"],p):dp(C[u],p)},v=m?function(y){return Eg(y)}:function(y){return y};return e.forEach(function(y){if(y[l]){var C=g(n,v(y));if(C)d.push(y);else{var S=y[l].filter(function(b){return g(n,v(b))});S.length&&d.push(K(K({},y),{},G({},l,S)))}return}g(n,v(y))&&d.push(y)}),d},[e,r,o,n,t])});var h1=0,XT=Rr();function QT(){var e;return XT?(e=h1,h1+=1):e="TEST_OR_SSR",e}function YT(e){var t=c.useState(),n=ae(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(QT()))},[]),e||r}var JT=["children","value"],ZT=["children"];function e8(e){var t=e,n=t.key,r=t.props,o=r.children,l=r.value,s=kt(r,JT);return K({key:n,value:l!==void 0?l:n,children:o},s)}function bw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Mr(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,d=u.children,m=kt(u,ZT);return t||!l?e8(n):K(K({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},m),{},{options:bw(d)})}).filter(function(n){return n})}var t8=function(t,n,r,o,l){return c.useMemo(function(){var s=t,u=!t;u&&(s=bw(n));var d=new Map,m=new Map,p=function(y,C,S){S&&typeof S=="string"&&y.set(C[S],C)},g=function v(y){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<y.length;S+=1){var b=y[S];!b[r.options]||C?(d.set(b[r.value],b),p(m,b,r.label),p(m,b,o),p(m,b,l)):v(b[r.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:m}},[t,n,r,o,l])};function v1(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var n8=["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"],r8=["inputValue"];function o8(e){return!e||gt(e)!=="object"}var i8=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,d=e.inputValue,m=e.searchValue,p=e.onSearch,g=e.autoClearSearchValue,v=g===void 0?!0:g,y=e.onSelect,C=e.onDeselect,S=e.dropdownMatchSelectWidth,b=S===void 0?!0:S,$=e.filterOption,w=e.filterSort,O=e.optionFilterProp,R=e.optionLabelProp,_=e.options,I=e.optionRender,P=e.children,N=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,k=e.virtual,L=e.direction,j=e.listHeight,D=j===void 0?200:j,A=e.listItemHeight,q=A===void 0?20:A,W=e.labelRender,V=e.value,H=e.defaultValue,Y=e.labelInValue,U=e.onChange,z=e.maxCount,F=kt(e,n8),Q=YT(n),ne=Og(r),te=!!(!_&&P),re=c.useMemo(function(){return $===void 0&&r==="combobox"?!1:$},[$,r]),fe=c.useMemo(function(){return gw(u,te)},[JSON.stringify(u),te]),me=An("",{value:m!==void 0?m:d,postState:function(Ee){return Ee||""}}),ue=ae(me,2),Ce=ue[0],le=ue[1],ce=t8(_,P,fe,O,R),he=ce.valueOptions,ye=ce.labelOptions,de=ce.options,se=c.useCallback(function(_e){var Ee=mw(_e);return Ee.map(function(xe){var ze,Xe,Ye,zt,Ht;if(o8(xe))ze=xe;else{var Pt;Ye=xe.key,Xe=xe.label,ze=(Pt=xe.value)!==null&&Pt!==void 0?Pt:Ye}var Tt=he.get(ze);if(Tt){var bn;Xe===void 0&&(Xe=Tt==null?void 0:Tt[R||fe.label]),Ye===void 0&&(Ye=(bn=Tt==null?void 0:Tt.key)!==null&&bn!==void 0?bn:ze),zt=Tt==null?void 0:Tt.disabled,Ht=Tt==null?void 0:Tt.title}return{label:Xe,value:ze,key:Ye,disabled:zt,title:Ht}})},[fe,R,he]),ve=An(H,{value:V}),Se=ae(ve,2),Re=Se[0],Ne=Se[1],we=c.useMemo(function(){var _e,Ee=ne&&Re===null?[]:Re,xe=se(Ee);return r==="combobox"&&QP((_e=xe[0])===null||_e===void 0?void 0:_e.value)?[]:xe},[Re,se,r,ne]),$e=GT(we,he),ke=ae($e,2),Ie=ke[0],Ge=ke[1],tt=c.useMemo(function(){if(!r&&Ie.length===1){var _e=Ie[0];if(_e.value===null&&(_e.label===null||_e.label===void 0))return[]}return Ie.map(function(Ee){var xe;return K(K({},Ee),{},{label:(xe=typeof W=="function"?W(Ee):Ee.label)!==null&&xe!==void 0?xe:Ee.value})})},[r,Ie,W]),St=c.useMemo(function(){return new Set(Ie.map(function(_e){return _e.value}))},[Ie]);c.useEffect(function(){if(r==="combobox"){var _e,Ee=(_e=Ie[0])===null||_e===void 0?void 0:_e.value;le(XP(Ee)?String(Ee):"")}},[Ie]);var ct=v1(function(_e,Ee){var xe=Ee??_e;return G(G({},fe.value,_e),fe.label,xe)}),qe=c.useMemo(function(){if(r!=="tags")return de;var _e=Ae(de),Ee=function(ze){return he.has(ze)};return Ae(Ie).sort(function(xe,ze){return xe.value<ze.value?-1:1}).forEach(function(xe){var ze=xe.value;Ee(ze)||_e.push(ct(ze,xe.label))}),_e},[ct,de,he,Ie,r]),at=KT(qe,fe,Ce,re,O),We=c.useMemo(function(){return r!=="tags"||!Ce||at.some(function(_e){return _e[O||"value"]===Ce})||at.some(function(_e){return _e[fe.value]===Ce})?at:[ct(Ce)].concat(Ae(at))},[ct,O,r,at,Ce,fe]),mt=function _e(Ee){var xe=Ae(Ee).sort(function(ze,Xe){return w(ze,Xe,{searchValue:Ce})});return xe.map(function(ze){return Array.isArray(ze.options)?K(K({},ze),{},{options:ze.options.length>0?_e(ze.options):ze.options}):ze})},Qe=c.useMemo(function(){return w?mt(We):We},[We,w,Ce]),je=c.useMemo(function(){return CT(Qe,{fieldNames:fe,childrenAsData:te})},[Qe,fe,te]),Je=function(Ee){var xe=se(Ee);if(Ne(xe),U&&(xe.length!==Ie.length||xe.some(function(Ye,zt){var Ht;return((Ht=Ie[zt])===null||Ht===void 0?void 0:Ht.value)!==(Ye==null?void 0:Ye.value)}))){var ze=Y?xe:xe.map(function(Ye){return Ye.value}),Xe=xe.map(function(Ye){return Eg(Ge(Ye.value))});U(ne?ze:ze[0],ne?Xe:Xe[0])}},Te=c.useState(null),He=ae(Te,2),Ot=He[0],ht=He[1],Gt=c.useState(0),Ut=ae(Gt,2),dn=Ut[0],Sn=Ut[1],Qt=N!==void 0?N:r!=="combobox",jt=c.useCallback(function(_e,Ee){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ze=xe.source,Xe=ze===void 0?"keyboard":ze;Sn(Ee),s&&r==="combobox"&&_e!==null&&Xe==="keyboard"&&ht(String(_e))},[s,r]),xt=function(Ee,xe,ze){var Xe=function(){var Zt,on=Ge(Ee);return[Y?{label:on==null?void 0:on[fe.label],value:Ee,key:(Zt=on==null?void 0:on.key)!==null&&Zt!==void 0?Zt:Ee}:Ee,Eg(on)]};if(xe&&y){var Ye=Xe(),zt=ae(Ye,2),Ht=zt[0],Pt=zt[1];y(Ht,Pt)}else if(!xe&&C&&ze!=="clear"){var Tt=Xe(),bn=ae(Tt,2),hn=bn[0],xn=bn[1];C(hn,xn)}},Yt=v1(function(_e,Ee){var xe,ze=ne?Ee.selected:!0;ze?xe=ne?[].concat(Ae(Ie),[_e]):[_e]:xe=Ie.filter(function(Xe){return Xe.value!==_e}),Je(xe),xt(_e,ze),r==="combobox"?ht(""):(!Og||v)&&(le(""),ht(""))}),Vt=function(Ee,xe){Je(Ee);var ze=xe.type,Xe=xe.values;(ze==="remove"||ze==="clear")&&Xe.forEach(function(Ye){xt(Ye.value,!1,ze)})},Ze=function(Ee,xe){if(le(Ee),ht(null),xe.source==="submit"){var ze=(Ee||"").trim();if(ze){var Xe=Array.from(new Set([].concat(Ae(St),[ze])));Je(Xe),xt(ze,!0),le("")}return}xe.source!=="blur"&&(r==="combobox"&&Je(Ee),p==null||p(Ee))},Ct=function(Ee){var xe=Ee;r!=="tags"&&(xe=Ee.map(function(Xe){var Ye=ye.get(Xe);return Ye==null?void 0:Ye.value}).filter(function(Xe){return Xe!==void 0}));var ze=Array.from(new Set([].concat(Ae(St),Ae(xe))));Je(ze),ze.forEach(function(Xe){xt(Xe,!0)})},lt=c.useMemo(function(){var _e=k!==!1&&b!==!1;return K(K({},ce),{},{flattenOptions:je,onActiveValue:jt,defaultActiveFirstOption:Qt,onSelect:Yt,menuItemSelectedIcon:T,rawValues:St,fieldNames:fe,virtual:_e,direction:L,listHeight:D,listItemHeight:q,childrenAsData:te,maxCount:z,optionRender:I})},[z,ce,je,jt,Qt,Yt,T,St,fe,k,b,L,D,q,te,I]);return c.createElement(hh.Provider,{value:lt},c.createElement(ET,Oe({},F,{id:Q,prefixCls:l,ref:t,omitDomProps:r8,mode:r,displayValues:tt,onDisplayValuesChange:Vt,direction:L,searchValue:Ce,onSearch:Ze,autoClearSearchValue:v,onSearchSplit:Ct,dropdownMatchSelectWidth:b,OptionList:qT,emptyOptions:!je.length,activeValue:Ot,activeDescendantId:"".concat(Q,"_list_").concat(dn)})))}),bh=i8;bh.Option=yh;bh.OptGroup=vh;function Cw(e,t,n){return ee({[`${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 Sw=(e,t)=>t||e,a8=()=>{const[,e]=zr(),[t]=mi("Empty"),r=new cn(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"}))))},l8=()=>{const[,e]=zr(),[t]=mi("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:l}=e,{borderColor:s,shadowColor:u,contentColor:d}=c.useMemo(()=>({borderColor:new cn(n).onBackground(l).toHexString(),shadowColor:new cn(r).onBackground(l).toHexString(),contentColor:new cn(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:d}))))},s8=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}}}}},c8=pn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Xt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return s8(o)});var u8=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 xw=c.createElement(a8,null),ww=c.createElement(l8,null),Mo=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:l,description:s,children:u,imageStyle:d,style:m,classNames:p,styles:g}=e,v=u8(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:C,className:S,style:b,classNames:$,styles:w,image:O}=gr("empty"),R=y("empty",o),[_,I,P]=c8(R),[N]=mi("Empty"),T=typeof s<"u"?s:N==null?void 0:N.description,k=typeof T=="string"?T:"empty",L=(t=l??O)!==null&&t!==void 0?t:xw;let j=null;return typeof L=="string"?j=c.createElement("img",{draggable:!1,alt:k,src:L}):j=L,_(c.createElement("div",Object.assign({className:ee(I,P,R,S,{[`${R}-normal`]:L===ww,[`${R}-rtl`]:C==="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)},v),c.createElement("div",{className:ee(`${R}-image`,$.image,p==null?void 0:p.image),style:Object.assign(Object.assign(Object.assign({},d),w.image),g==null?void 0:g.image)},j),T&&c.createElement("div",{className:ee(`${R}-description`,$.description,p==null?void 0:p.description),style:Object.assign(Object.assign({},w.description),g==null?void 0:g.description)},T),u&&c.createElement("div",{className:ee(`${R}-footer`,$.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign({},w.footer),g==null?void 0:g.footer)},u)))};Mo.PRESENTED_IMAGE_DEFAULT=xw;Mo.PRESENTED_IMAGE_SIMPLE=ww;const $w=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(Et),r=n("empty");switch(t){case"Table":case"List":return Z.createElement(Mo,{image:Mo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Z.createElement(Mo,{image:Mo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Z.createElement(Mo,null)}},Ew=(e,t,n)=>{var r,o;const{variant:l,[e]:s}=c.useContext(Et),u=c.useContext(N_),d=s==null?void 0:s.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=(o=(r=u??d)!==null&&r!==void 0?r:l)!==null&&o!==void 0?o:"outlined";const p=lO.includes(m);return[m,p]},d8=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 f8(e,t){return e||d8(t)}const y1=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"}},m8=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-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Dn(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:ch},[`
227
- ${o}${u}topLeft,
228
- ${l}${u}topLeft,
229
- ${o}${u}topRight,
230
- ${l}${u}topRight
231
- `]:{animationName:dh},[`${s}${u}bottomLeft`]:{animationName:uh},[`
232
- ${s}${u}topLeft,
233
- ${s}${u}topRight
234
- `]:{animationName:fh},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},y1(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"},Bs),"&-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({},y1(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Ui(e,"slide-up"),Ui(e,"slide-down"),Ju(e,"move-up"),Ju(e,"move-down")]},p8=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())}},g8=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},h8=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:l,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:u,colorIcon:d,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({},Pl()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},v8=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,s=g8(e),u=t?`${n}-${t}`:"",d=p8(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},h8(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.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:d.itemHeight,lineHeight:J(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:J(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.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:d.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(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function fp(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[v8(e,t),o]}const y8=e=>{const{componentCls:t}=e,n=Xt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Xt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[fp(e),fp(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},fp(r,"lg")]};function mp(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({},Dn(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 b8(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[mp(e),mp(Xt(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()}}}},mp(Xt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const C8=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:l,controlHeightLG:s,paddingXXS:u,controlPaddingHorizontal:d,zIndexPopupBase:m,colorText:p,fontWeightStrong:g,controlItemBgActive:v,controlItemBgHover:y,colorBgContainer:C,colorFillSecondary:S,colorBgContainerDisabled:b,colorTextDisabled:$,colorPrimaryHover:w,colorPrimary:O,controlOutline:R}=e,_=u*2,I=r*2,P=Math.min(o-_,o-I),N=Math.min(l-_,l-I),T=Math.min(s-_,s-I);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:m+50,optionSelectedColor:p,optionSelectedFontWeight:g,optionSelectedBg:v,optionActiveBg:y,optionPadding:`${(o-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:C,clearBg:C,singleItemHeightLG:s,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:P,multipleItemHeightSM:N,multipleItemHeightLG:T,multipleSelectorBgDisabled:b,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:O,activeOutlineColor:R,selectAffixPadding:u}},Ow=(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}}}},b1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ow(e,t))}),S8=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ow(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),b1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),b1(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}`}})}),Rw=(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}}}},C1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rw(e,t))}),x8=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Rw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),C1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),C1(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}`}})}),w8=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}}}}),Iw=(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}}}},S1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Iw(e,t))}),$8=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Iw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),S1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),S1(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}`}})}),E8=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},S8(e)),x8(e)),w8(e)),$8(e))}),O8=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"}}}},R8=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"}}}},I8=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({},Dn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},O8(e)),R8(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Bs),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Bs),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Pl()),{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()}}}}}},_8=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},I8(e),b8(e),y8(e),m8(e),{[`${t}-rtl`]:{direction:"rtl"}},kd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},P8=pn("Select",(e,{rootPrefixCls:t})=>{const n=Xt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[_8(n),E8(n)]},C8,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var T8={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"},N8=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:T8}))},_w=c.forwardRef(N8),k8={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"},M8=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:k8}))},gl=c.forwardRef(M8),j8={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"},z8=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:j8}))},L8=c.forwardRef(z8);function B8({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:l,hasFeedback:s,prefixCls:u,showSuffixIcon:d,feedbackIcon:m,showArrow:p,componentName:g}){const v=t??c.createElement(wd,null),y=$=>e===null&&!s&&!p?null:c.createElement(c.Fragment,null,d!==!1&&$,s&&m);let C=null;if(e!==void 0)C=y(e);else if(o)C=y(c.createElement(Ys,{spin:!0}));else{const $=`${u}-suffix`;C=({open:w,showSearch:O})=>y(w&&O?c.createElement(L8,{className:$}):c.createElement(gl,{className:$}))}let S=null;n!==void 0?S=n:l?S=c.createElement(_w,null):S=null;let b=null;return r!==void 0?b=r:b=c.createElement(Wi,null),{clearIcon:v,suffixIcon:C,itemIcon:S,removeIcon:b}}function A8(e){return Z.useMemo(()=>{if(e)return(...t)=>Z.createElement(ic,{space:!0},e.apply(void 0,t))},[e])}function D8(e,t){return t!==void 0?t:e!==null}var H8=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 Pw="SECRET_COMBOBOX_MODE_DO_NOT_USE",F8=(e,t)=>{var n,r,o,l,s;const{prefixCls:u,bordered:d,className:m,rootClassName:p,getPopupContainer:g,popupClassName:v,dropdownClassName:y,listHeight:C=256,placement:S,listItemHeight:b,size:$,disabled:w,notFoundContent:O,status:R,builtinPlacements:_,dropdownMatchSelectWidth:I,popupMatchSelectWidth:P,direction:N,style:T,allowClear:k,variant:L,dropdownStyle:j,transitionName:D,tagRender:A,maxCount:q,prefix:W,dropdownRender:V,popupRender:H,onDropdownVisibleChange:Y,onOpenChange:U,styles:z,classNames:F}=e,Q=H8(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:te,renderEmpty:re,direction:fe,virtual:me,popupMatchSelectWidth:ue,popupOverflow:Ce}=c.useContext(Et),{showSearch:le,style:ce,styles:he,className:ye,classNames:de}=gr("select"),[,se]=zr(),ve=b??(se==null?void 0:se.controlHeight),Se=te("select",u),Re=te(),Ne=N??fe,{compactSize:we,compactItemClassnames:$e}=ec(Se,Ne),[ke,Ie]=Ew("select",L,d),Ge=pi(Se),[tt,St,ct]=P8(Se,Ge),qe=c.useMemo(()=>{const{mode:ze}=e;if(ze!=="combobox")return ze===Pw?"combobox":ze},[e.mode]),at=qe==="multiple"||qe==="tags",We=D8(e.suffixIcon,e.showArrow),mt=(n=P??I)!==null&&n!==void 0?n:ue,Qe=((r=z==null?void 0:z.popup)===null||r===void 0?void 0:r.root)||((o=he.popup)===null||o===void 0?void 0:o.root)||j,je=A8(H||V),Je=U||Y,{status:Te,hasFeedback:He,isFormItemInput:Ot,feedbackIcon:ht}=c.useContext(ed),Gt=Sw(Te,R);let Ut;O!==void 0?Ut=O:qe==="combobox"?Ut=null:Ut=(re==null?void 0:re("Select"))||c.createElement($w,{componentName:"Select"});const{suffixIcon:dn,itemIcon:Sn,removeIcon:Qt,clearIcon:jt}=B8(Object.assign(Object.assign({},Q),{multiple:at,hasFeedback:He,feedbackIcon:ht,showSuffixIcon:We,prefixCls:Se,componentName:"Select"})),xt=k===!0?{clearIcon:jt}:k,Yt=Gn(Q,["suffixIcon","itemIcon"]),Vt=ee(((l=F==null?void 0:F.popup)===null||l===void 0?void 0:l.root)||((s=de==null?void 0:de.popup)===null||s===void 0?void 0:s.root)||v||y,{[`${Se}-dropdown-${Ne}`]:Ne==="rtl"},p,de.root,F==null?void 0:F.root,ct,Ge,St),Ze=Yo(ze=>{var Xe;return(Xe=$??we)!==null&&Xe!==void 0?Xe:ze}),Ct=c.useContext(ha),lt=w??Ct,_e=ee({[`${Se}-lg`]:Ze==="large",[`${Se}-sm`]:Ze==="small",[`${Se}-rtl`]:Ne==="rtl",[`${Se}-${ke}`]:Ie,[`${Se}-in-form-item`]:Ot},Cw(Se,Gt,He),$e,ye,m,de.root,F==null?void 0:F.root,p,ct,Ge,St),Ee=c.useMemo(()=>S!==void 0?S:Ne==="rtl"?"bottomRight":"bottomLeft",[S,Ne]),[xe]=Nl("SelectLike",Qe==null?void 0:Qe.zIndex);return tt(c.createElement(bh,Object.assign({ref:t,virtual:me,showSearch:le},Yt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),z==null?void 0:z.root),ce),T),dropdownMatchSelectWidth:mt,transitionName:Go(Re,"slide-up",D),builtinPlacements:f8(_,Ce),listHeight:C,listItemHeight:ve,mode:qe,prefixCls:Se,placement:Ee,direction:Ne,prefix:W,suffixIcon:dn,menuItemSelectedIcon:Sn,removeIcon:Qt,allowClear:xt,notFoundContent:Ut,className:_e,getPopupContainer:g||ne,dropdownClassName:Vt,disabled:lt,dropdownStyle:Object.assign(Object.assign({},Qe),{zIndex:xe}),maxCount:at?q:void 0,tagRender:at?A:void 0,dropdownRender:je,onDropdownVisibleChange:Je})))},Ml=c.forwardRef(F8),V8=aw(Ml,"dropdownAlign");Ml.SECRET_COMBOBOX_MODE_DO_NOT_USE=Pw;Ml.Option=yh;Ml.OptGroup=vh;Ml._InternalPanelDoNotUseOrYouWillBeFired=V8;const Tw=(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)},Nw=(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)},va=["xxl","xl","lg","md","sm","xs"],W8=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)`}),U8=e=>{const t=e,n=[].concat(va).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 d=`screen${l}Max`;if(!(t[u]<=t[d]))throw new Error(`${u}<=${d} fails : !(${t[u]}<=${t[d]})`);const p=`screen${n[o+1].toUpperCase()}Min`;if(!(t[d]<=t[p]))throw new Error(`${d}<=${p} fails : !(${t[d]}<=${t[p]})`)}}),e},q8=()=>{const[,e]=zr(),t=W8(U8(e));return Z.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}))},d=window.matchMedia(s);Tw(d,u),this.matchHandlers[s]={mql:d,listener:u},u(d)})},unregister(){Object.values(t).forEach(l=>{const s=this.matchHandlers[l];Nw(s==null?void 0:s.mql,s==null?void 0:s.listener)}),n.clear()}}},[t])};function Ch(e=!0,t={}){const n=c.useRef(t),[,r]=Y6(),o=q8();return rn(()=>{const l=o.subscribe(s=>{n.current=s,e&&r()});return()=>o.unsubscribe(l)},[]),n.current}const nd=e=>e?typeof e=="function"?e():e:null;function Sh(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:ee("".concat(n,"-content"),s),style:u},c.createElement("div",{className:ee("".concat(n,"-inner"),l),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var tl={shiftX:64,adjustY:1},nl={adjustX:1,shiftY:!0},go=[0,0],G8={left:{points:["cr","cl"],overflow:nl,offset:[-4,0],targetOffset:go},right:{points:["cl","cr"],overflow:nl,offset:[4,0],targetOffset:go},top:{points:["bc","tc"],overflow:tl,offset:[0,-4],targetOffset:go},bottom:{points:["tc","bc"],overflow:tl,offset:[0,4],targetOffset:go},topLeft:{points:["bl","tl"],overflow:tl,offset:[0,-4],targetOffset:go},leftTop:{points:["tr","tl"],overflow:nl,offset:[-4,0],targetOffset:go},topRight:{points:["br","tr"],overflow:tl,offset:[0,-4],targetOffset:go},rightTop:{points:["tl","tr"],overflow:nl,offset:[4,0],targetOffset:go},bottomRight:{points:["tr","br"],overflow:tl,offset:[0,4],targetOffset:go},rightBottom:{points:["bl","br"],overflow:nl,offset:[4,0],targetOffset:go},bottomLeft:{points:["tl","bl"],overflow:tl,offset:[0,4],targetOffset:go},leftBottom:{points:["br","bl"],overflow:nl,offset:[-4,0],targetOffset:go}},K8=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],X8=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,d=t.mouseLeaveDelay,m=d===void 0?.1:d,p=t.overlayStyle,g=t.prefixCls,v=g===void 0?"rc-tooltip":g,y=t.children,C=t.onVisibleChange,S=t.afterVisibleChange,b=t.transitionName,$=t.animation,w=t.motion,O=t.placement,R=O===void 0?"right":O,_=t.align,I=_===void 0?{}:_,P=t.destroyTooltipOnHide,N=P===void 0?!1:P,T=t.defaultVisible,k=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,D=t.id,A=t.showArrow,q=A===void 0?!0:A,W=t.classNames,V=t.styles,H=kt(t,K8),Y=jd(D),U=c.useRef(null);c.useImperativeHandle(n,function(){return U.current});var z=K({},H);"visible"in t&&(z.popupVisible=t.visible);var F=function(){return c.createElement(Sh,{key:"content",prefixCls:v,id:Y,bodyClassName:W==null?void 0:W.body,overlayInnerStyle:K(K({},L),V==null?void 0:V.body)},j)},Q=function(){var te=c.Children.only(y),re=(te==null?void 0:te.props)||{},fe=K(K({},re),{},{"aria-describedby":j?Y:null});return c.cloneElement(y,fe)};return c.createElement(Ad,Oe({popupClassName:ee(r,W==null?void 0:W.root),prefixCls:v,popup:F,action:l,builtinPlacements:G8,popupPlacement:R,ref:U,popupAlign:I,getPopupContainer:k,onPopupVisibleChange:C,afterPopupVisibleChange:S,popupTransitionName:b,popupAnimation:$,popupMotion:w,defaultPopupVisible:T,autoDestroy:N,mouseLeaveDelay:m,popupStyle:K(K({},p),V==null?void 0:V.root),mouseEnterDelay:u,arrow:q},z),Q())};const Q8=c.forwardRef(X8);function xh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,l=0,s=o,u=r*1/Math.sqrt(2),d=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,v=p,y=2*o-u,C=d,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%)`,R=`path('M ${l} ${s} A ${r} ${r} 0 0 0 ${u} ${d} L ${m} ${p} A ${n} ${n} 0 0 1 ${g} ${v} L ${y} ${C} A ${r} ${r} 0 0 0 ${S} ${b} Z')`;return{arrowShadowWidth:$,arrowPath:R,arrowPolygon:O}}const Y8=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:l,arrowShadowWidth:s,borderRadiusXS:u,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(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"}}},kw=8;function Dd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?kw:r}}function yu(e,t){return e?t:{}}function wh(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:d={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"},Y8(e,t,o)),{"&:before":{background:t}})]},yu(!!d.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}}}})),yu(!!d.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}}}})),yu(!!d.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}})),yu(!!d.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 J8(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 x1={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"]}},Z8={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"]}},eN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Mw(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:l,visibleFirst:s}=e,u=t/2,d={},m=Dd({contentRadius:l,limitVerticalRadius:!0});return Object.keys(x1).forEach(p=>{const g=r&&Z8[p]||x1[p],v=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(d[p]=v,eN.has(p)&&(v.autoArrow=!1),p){case"top":case"topLeft":case"topRight":v.offset[1]=-u-o;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=u+o;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-u-o;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=u+o;break}if(r)switch(p){case"topLeft":case"bottomLeft":v.offset[0]=-m.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":v.offset[0]=m.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":v.offset[1]=-m.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":v.offset[1]=m.arrowOffsetHorizontal*2-u;break}v.overflow=J8(p,m,t,n),s&&(v.htmlRegion="visibleFirst")}),d}const tN=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:l,tooltipBorderRadius:s,zIndexPopup:u,controlHeight:d,boxShadowSecondary:m,paddingSM:p,paddingXS:g,arrowOffsetHorizontal:v,sizePopupArrow:y}=e,C=t(s).add(y).add(v).equal(),S=t(s).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Dn(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:d,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:C},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,kw)}},[`${n}-content`]:{position:"relative"}}),xd(e,(b,{darkColor:$})=>({[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}))),{"&-rtl":{direction:"rtl"}})},wh(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},nN=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Dd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),xh(Xt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),jw=(e,t=!0)=>pn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:l,colorBgSpotlight:s}=r,u=Xt(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:o,tooltipBg:s});return[tN(u),tc(r,"zoom-big-fast")]},nN,{resetStyle:!1,injectStyle:t})(e),rN=Vi.map(e=>`${e}-inverse`),oN=["success","processing","error","default","warning"];function Hd(e,t=!0){return t?[].concat(Ae(rN),Ae(Vi)).includes(e):Vi.includes(e)}function iN(e){return oN.includes(e)}function zw(e,t){const n=Hd(t),r=ee({[`${e}-${t}`]:t&&n}),o={},l={},s=q5(t).toRgb(),d=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=d,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:l}}const aN=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:s}=e,{getPrefixCls:u}=c.useContext(Et),d=u("tooltip",t),[m,p,g]=jw(d),v=zw(d,l),y=v.arrowStyle,C=Object.assign(Object.assign({},s),v.overlayStyle),S=ee(p,g,d,`${d}-pure`,`${d}-placement-${r}`,n,v.className);return m(c.createElement("div",{className:S,style:y},c.createElement("div",{className:`${d}-arrow`}),c.createElement(Sh,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:C}),o)))};var lN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sN=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:l,getTooltipContainer:s,color:u,overlayInnerStyle:d,children:m,afterOpenChange:p,afterVisibleChange:g,destroyTooltipOnHide:v,destroyOnHidden:y,arrow:C=!0,title:S,overlay:b,builtinPlacements:$,arrowPointAtCenter:w=!1,autoAdjustOverflow:O=!0,motion:R,getPopupContainer:_,placement:I="top",mouseEnterDelay:P=.1,mouseLeaveDelay:N=.1,overlayStyle:T,rootClassName:k,overlayClassName:L,styles:j,classNames:D}=e,A=lN(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"]),q=!!C,[,W]=zr(),{getPopupContainer:V,getPrefixCls:H,direction:Y,className:U,style:z,classNames:F,styles:Q}=gr("tooltip"),ne=Cd(),te=c.useRef(null),re=()=>{var We;(We=te.current)===null||We===void 0||We.forceAlign()};c.useImperativeHandle(t,()=>{var We,mt;return{forceAlign:re,forcePopupAlign:()=>{ne.deprecated(!1,"forcePopupAlign","forceAlign"),re()},nativeElement:(We=te.current)===null||We===void 0?void 0:We.nativeElement,popupElement:(mt=te.current)===null||mt===void 0?void 0:mt.popupElement}});const[fe,me]=An(!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,Ce=We=>{var mt,Qe;me(ue?!1:We),ue||((mt=e.onOpenChange)===null||mt===void 0||mt.call(e,We),(Qe=e.onVisibleChange)===null||Qe===void 0||Qe.call(e,We))},le=c.useMemo(()=>{var We,mt;let Qe=w;return typeof C=="object"&&(Qe=(mt=(We=C.pointAtCenter)!==null&&We!==void 0?We:C.arrowPointAtCenter)!==null&&mt!==void 0?mt:w),$||Mw({arrowPointAtCenter:Qe,autoAdjustOverflow:O,arrowWidth:q?W.sizePopupArrow:0,borderRadius:W.borderRadius,offset:W.marginXXS,visibleFirst:!0})},[w,C,$,W]),ce=c.useMemo(()=>S===0?S:b||S||"",[b,S]),he=c.createElement(ic,{space:!0},typeof ce=="function"?ce():ce),ye=H("tooltip",o),de=H(),se=e["data-popover-inject"];let ve=fe;!("open"in e)&&!("visible"in e)&&ue&&(ve=!1);const Se=c.isValidElement(m)&&!ax(m)?m:c.createElement("span",null,m),Re=Se.props,Ne=!Re.className||typeof Re.className=="string"?ee(Re.className,l||`${ye}-open`):Re.className,[we,$e,ke]=jw(ye,!se),Ie=zw(ye,u),Ge=Ie.arrowStyle,tt=ee(L,{[`${ye}-rtl`]:Y==="rtl"},Ie.className,k,$e,ke,U,F.root,D==null?void 0:D.root),St=ee(F.body,D==null?void 0:D.body),[ct,qe]=Nl("Tooltip",A.zIndex),at=c.createElement(Q8,Object.assign({},A,{zIndex:ct,showArrow:q,placement:I,mouseEnterDelay:P,mouseLeaveDelay:N,prefixCls:ye,classNames:{root:tt,body:St},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ge),Q.root),z),T),j==null?void 0:j.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Q.body),d),j==null?void 0:j.body),Ie.overlayStyle)},getTooltipContainer:_||s||V,ref:te,builtinPlacements:le,overlay:he,visible:ve,onVisibleChange:Ce,afterVisibleChange:p??g,arrowContent:c.createElement("span",{className:`${ye}-arrow-content`}),motion:{motionName:Go(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!v}),ve?jr(Se,{className:Ne}):Se);return we(c.createElement(Js.Provider,{value:qe},at))}),qi=sN;qi._InternalPanelDoNotUseOrYouWillBeFired=aN;const cN=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:l,boxShadowSecondary:s,colorTextHeading:u,borderRadiusLG:d,zIndexPopup:m,titleMarginBottom:p,colorBgElevated:g,popoverBg:v,titleBorderBottom:y,innerContentPadding:C,titlePadding:S}=e;return[{[t]:Object.assign(Object.assign({},Dn(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:v,backgroundClip:"padding-box",borderRadius:d,boxShadow:s,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:p,color:u,fontWeight:o,borderBottom:y,padding:S},[`${t}-inner-content`]:{color:n,padding:C}})},wh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},uN=e=>{const{componentCls:t}=e;return{[t]:Vi.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},dN=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:l,zIndexPopupBase:s,borderRadiusLG:u,marginXS:d,lineType:m,colorSplit:p,paddingSM:g}=e,v=n-r,y=v/2,C=v/2-t,S=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},xh(e)),Dd({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${y}px ${S}px ${C}px`:0,titleBorderBottom:l?`${t}px ${m} ${p}`:"none",innerContentPadding:l?`${g}px ${S}px`:0})},Lw=pn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Xt(e,{popoverBg:t,popoverColor:n});return[cN(r),uN(r),tc(r,"zoom-big")]},dN,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var fN=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 Bw=({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)),mN=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:l="top",title:s,content:u,children:d}=e,m=nd(s),p=nd(u),g=ee(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return c.createElement("div",{className:g,style:o},c.createElement("div",{className:`${n}-arrow`}),c.createElement(Sh,Object.assign({},e,{className:t,prefixCls:n}),d||c.createElement(Bw,{prefixCls:n,title:m,content:p})))},pN=e=>{const{prefixCls:t,className:n}=e,r=fN(e,["prefixCls","className"]),{getPrefixCls:o}=c.useContext(Et),l=o("popover",t),[s,u,d]=Lw(l);return s(c.createElement(mN,Object.assign({},r,{prefixCls:l,hashId:u,className:ee(n,d)})))};var gN=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 hN=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:l,content:s,overlayClassName:u,placement:d="top",trigger:m="hover",children:p,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:C={},styles:S,classNames:b}=e,$=gN(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:O,style:R,classNames:_,styles:I}=gr("popover"),P=w("popover",o),[N,T,k]=Lw(P),L=w(),j=ee(u,T,k,O,_.root,b==null?void 0:b.root),D=ee(_.body,b==null?void 0:b.body),[A,q]=An(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),W=(z,F)=>{q(z,!0),y==null||y(z,F)},V=z=>{z.keyCode===Ve.ESC&&W(!1,z)},H=z=>{W(z)},Y=nd(l),U=nd(s);return N(c.createElement(qi,Object.assign({placement:d,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:v},$,{prefixCls:P,classNames:{root:j,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},I.root),R),C),S==null?void 0:S.root),body:Object.assign(Object.assign({},I.body),S==null?void 0:S.body)},ref:t,open:A,onOpenChange:H,overlay:Y||U?c.createElement(Bw,{prefixCls:P,title:Y,content:U}):null,transitionName:Go(L,"zoom-big",$.transitionName),"data-popover-inject":!0}),jr(p,{onKeyDown:z=>{var F,Q;c.isValidElement(p)&&((Q=p==null?void 0:(F=p.props).onKeyDown)===null||Q===void 0||Q.call(F,z)),V(z)}})))}),Aw=hN;Aw._InternalPanelDoNotUseOrYouWillBeFired=pN;const vN=new Wt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),yN=new Wt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),bN=new Wt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),CN=new Wt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),SN=new Wt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),xN=new Wt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),wN=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:l,textFontSizeSM:s,statusSize:u,dotSize:d,textFontWeight:m,indicatorHeight:p,indicatorHeightSM:g,marginXS:v,calc:y}=e,C=`${r}-scroll-number`,S=xd(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({},Dn(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:d,minWidth:d,height:d,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${J(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:xN,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:vN,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:v,color:e.colorText,fontSize:e.fontSize}}}),S),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:yN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:bN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:CN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:SN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[C]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${C}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Dw=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,l=t,s=n,u=e.colorTextLightSolid,d=e.colorError,m=e.colorErrorHover;return Xt(e,{badgeFontHeight:l,badgeShadowSize:s,badgeTextColor:u,badgeColor:d,badgeColorHover:m,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Hw=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}},$N=pn("Badge",e=>{const t=Dw(e);return wN(t)},Hw),EN=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:l}=e,s=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,d=xd(e,(m,{darkColor:p})=>({[`&${s}-color-${m}`]:{background:p,color:p}}));return{[u]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Dn(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}}),d),{[`&${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"}})}},ON=pn(["Badge","Ribbon"],e=>{const t=Dw(e);return EN(t)},Hw),RN=e=>{const{className:t,prefixCls:n,style:r,color:o,children:l,text:s,placement:u="end",rootClassName:d}=e,{getPrefixCls:m,direction:p}=c.useContext(Et),g=m("ribbon",n),v=`${g}-wrapper`,[y,C,S]=ON(g,v),b=Hd(o,!1),$=ee(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:ee(v,d,C,S)},l,c.createElement("div",{className:ee($,C),style:Object.assign(Object.assign({},w),r)},c.createElement("span",{className:`${g}-text`},s),c.createElement("div",{className:`${g}-corner`,style:O}))))},w1=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:ee(`${t}-only-unit`,{current:r})},n)};function IN(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const _N=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),l=Math.abs(n),[s,u]=c.useState(o),[d,m]=c.useState(l),p=()=>{u(o),m(l)};c.useEffect(()=>{const y=setTimeout(p,1e3);return()=>clearTimeout(y)},[o]);let g,v;if(s===o||Number.isNaN(o)||Number.isNaN(s))g=[c.createElement(w1,Object.assign({},e,{key:o,current:!0}))],v={transition:"none"};else{g=[];const y=o+10,C=[];for(let w=o;w<=y;w+=1)C.push(w);const S=d<l?1:-1,b=C.findIndex(w=>w%10===s);g=(S<0?C.slice(0,b+1):C.slice(b)).map((w,O)=>{const R=w%10;return c.createElement(w1,Object.assign({},e,{key:w,value:R,offset:S<0?O-b:O,current:O===b}))}),v={transform:`translateY(${-IN(s,o,S)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:v,onTransitionEnd:p},g)};var PN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TN=c.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:l,style:s,title:u,show:d,component:m="sup",children:p}=e,g=PN(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:v}=c.useContext(Et),y=v("scroll-number",n),C=Object.assign(Object.assign({},g),{"data-show":d,style:s,className:ee(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(_N,{prefixCls:y,count:Number(r),value:$,key:b.length-w})))}return s!=null&&s.borderColor&&(C.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),p?jr(p,b=>({className:ee(`${y}-custom-component`,b==null?void 0:b.className,l)})):c.createElement(m,Object.assign({},C,{ref:t}),S)});var NN=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 kN=c.forwardRef((e,t)=>{var n,r,o,l,s;const{prefixCls:u,scrollNumberPrefixCls:d,children:m,status:p,text:g,color:v,count:y=null,overflowCount:C=99,dot:S=!1,size:b="default",title:$,offset:w,style:O,className:R,rootClassName:_,classNames:I,styles:P,showZero:N=!1}=e,T=NN(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:k,direction:L,badge:j}=c.useContext(Et),D=k("badge",u),[A,q,W]=$N(D),V=y>C?`${C}+`:y,H=V==="0"||V===0||g==="0"||g===0,Y=y===null||H&&!N,U=(p!=null||v!=null)&&Y,z=p!=null||!H,F=S&&!H,Q=F?"":V,ne=c.useMemo(()=>((Q==null||Q==="")&&(g==null||g==="")||H&&!N)&&!F,[Q,H,N,F,g]),te=c.useRef(y);ne||(te.current=y);const re=te.current,fe=c.useRef(Q);ne||(fe.current=Q);const me=fe.current,ue=c.useRef(F);ne||(ue.current=F);const Ce=c.useMemo(()=>{if(!w)return Object.assign(Object.assign({},j==null?void 0:j.style),O);const Re={marginTop:w[1]};return L==="rtl"?Re.left=Number.parseInt(w[0],10):Re.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},Re),j==null?void 0:j.style),O)},[L,w,O,j==null?void 0:j.style]),le=$??(typeof re=="string"||typeof re=="number"?re:void 0),ce=!ne&&(g===0?N:!!g&&g!==!0),he=ce?c.createElement("span",{className:`${D}-status-text`},g):null,ye=!re||typeof re!="object"?void 0:jr(re,Re=>({style:Object.assign(Object.assign({},Ce),Re.style)})),de=Hd(v,!1),se=ee(I==null?void 0:I.indicator,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.indicator,{[`${D}-status-dot`]:U,[`${D}-status-${p}`]:!!p,[`${D}-color-${v}`]:de}),ve={};v&&!de&&(ve.color=v,ve.background=v);const Se=ee(D,{[`${D}-status`]:U,[`${D}-not-a-wrapper`]:!m,[`${D}-rtl`]:L==="rtl"},R,_,j==null?void 0:j.className,(r=j==null?void 0:j.classNames)===null||r===void 0?void 0:r.root,I==null?void 0:I.root,q,W);if(!m&&U&&(g||z||!Y)){const Re=Ce.color;return A(c.createElement("span",Object.assign({},T,{className:Se,style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.root),(o=j==null?void 0:j.styles)===null||o===void 0?void 0:o.root),Ce)}),c.createElement("span",{className:se,style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.indicator),(l=j==null?void 0:j.styles)===null||l===void 0?void 0:l.indicator),ve)}),ce&&c.createElement("span",{style:{color:Re},className:`${D}-status-text`},g)))}return A(c.createElement("span",Object.assign({ref:t},T,{className:Se,style:Object.assign(Object.assign({},(s=j==null?void 0:j.styles)===null||s===void 0?void 0:s.root),P==null?void 0:P.root)}),m,c.createElement(ro,{visible:!ne,motionName:`${D}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Re})=>{var Ne,we;const $e=k("scroll-number",d),ke=ue.current,Ie=ee(I==null?void 0:I.indicator,(Ne=j==null?void 0:j.classNames)===null||Ne===void 0?void 0:Ne.indicator,{[`${D}-dot`]:ke,[`${D}-count`]:!ke,[`${D}-count-sm`]:b==="small",[`${D}-multiple-words`]:!ke&&me&&me.toString().length>1,[`${D}-status-${p}`]:!!p,[`${D}-color-${v}`]:de});let Ge=Object.assign(Object.assign(Object.assign({},P==null?void 0:P.indicator),(we=j==null?void 0:j.styles)===null||we===void 0?void 0:we.indicator),Ce);return v&&!de&&(Ge=Ge||{},Ge.background=v),c.createElement(TN,{prefixCls:$e,show:!ne,motionClassName:Re,className:Ie,count:me,title:le,style:Ge,key:"scrollNumber"},ye)}),he))}),Fw=kN;Fw.Ribbon=RN;var MN={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"},jN=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:MN}))},Hs=c.forwardRef(jN),zN=Ve.ESC,LN=Ve.TAB;function BN(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,v;(g=n.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.call(g),r==null||r(!1)}},d=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 zN:u();break;case LN:{var v=!1;s.current||(v=d()),v?g.preventDefault():u();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",m),o&&$n(d,3),function(){window.removeEventListener("keydown",m),s.current=!1}):function(){s.current=!1}},[t])}var AN=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=Bo(t,ba(l));return Z.createElement(Z.Fragment,null,r&&Z.createElement("div",{className:"".concat(o,"-arrow")}),Z.cloneElement(l,{ref:Gi(l)?s:void 0}))}),rl={adjustX:1,adjustY:1},ol=[0,0],DN={topLeft:{points:["bl","tl"],overflow:rl,offset:[0,-4],targetOffset:ol},top:{points:["bc","tc"],overflow:rl,offset:[0,-4],targetOffset:ol},topRight:{points:["br","tr"],overflow:rl,offset:[0,-4],targetOffset:ol},bottomLeft:{points:["tl","bl"],overflow:rl,offset:[0,4],targetOffset:ol},bottom:{points:["tc","bc"],overflow:rl,offset:[0,4],targetOffset:ol},bottomRight:{points:["tr","br"],overflow:rl,offset:[0,4],targetOffset:ol}},HN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function FN(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,d=e.animation,m=e.align,p=e.placement,g=p===void 0?"bottomLeft":p,v=e.placements,y=v===void 0?DN:v,C=e.getPopupContainer,S=e.showAction,b=e.hideAction,$=e.overlayClassName,w=e.overlayStyle,O=e.visible,R=e.trigger,_=R===void 0?["hover"]:R,I=e.autoFocus,P=e.overlay,N=e.children,T=e.onVisibleChange,k=kt(e,HN),L=Z.useState(),j=ae(L,2),D=j[0],A=j[1],q="visible"in e?O:D,W=Z.useRef(null),V=Z.useRef(null),H=Z.useRef(null);Z.useImperativeHandle(t,function(){return W.current});var Y=function(me){A(me),T==null||T(me)};BN({visible:q,triggerRef:H,onVisibleChange:Y,autoFocus:I,overlayRef:V});var U=function(me){var ue=e.onOverlayClick;A(!1),ue&&ue(me)},z=function(){return Z.createElement(AN,{ref:V,overlay:P,prefixCls:s,arrow:o})},F=function(){return typeof P=="function"?z:z()},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")},te=Z.cloneElement(N,{className:ee((n=N.props)===null||n===void 0?void 0:n.className,q&&ne()),ref:Gi(N)?Bo(H,ba(N)):void 0}),re=b;return!re&&_.indexOf("contextMenu")!==-1&&(re=["click"]),Z.createElement(Ad,Oe({builtinPlacements:y},k,{prefixCls:s,ref:W,popupClassName:ee($,G({},"".concat(s,"-show-arrow"),o)),popupStyle:w,action:_,showAction:S,hideAction:re,popupPlacement:g,popupAlign:m,popupTransitionName:u,popupAnimation:d,popupVisible:q,stretch:Q()?"minWidth":"",popup:F(),onPopupVisibleChange:Y,onPopupClick:U,getPopupContainer:C}),te)}const Vw=Z.forwardRef(FN),VN=e=>typeof e!="object"&&typeof e!="function"||e===null;var Ww=c.createContext(null);function Uw(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function qw(e){var t=c.useContext(Ww);return Uw(t,e)}var WN=["children","locked"],Lo=c.createContext(null);function UN(e,t){var n=K({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Fs(e){var t=e.children,n=e.locked,r=kt(e,WN),o=c.useContext(Lo),l=Ks(function(){return UN(o,r)},[o,r],function(s,u){return!n&&(s[0]!==u[0]||!Ms(s[1],u[1],!0))});return c.createElement(Lo.Provider,{value:l},t)}var qN=[],Gw=c.createContext(null);function Fd(){return c.useContext(Gw)}var Kw=c.createContext(qN);function jl(e){var t=c.useContext(Kw);return c.useMemo(function(){return e!==void 0?[].concat(Ae(t),[e]):t},[t,e])}var Xw=c.createContext(null),$h=c.createContext({});function $1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ah(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 GN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ae(e.querySelectorAll("*")).filter(function(r){return $1(r,t)});return $1(e,t)&&n.unshift(e),n}var Ig=Ve.LEFT,_g=Ve.RIGHT,Pg=Ve.UP,Lu=Ve.DOWN,Bu=Ve.ENTER,Qw=Ve.ESC,ms=Ve.HOME,ps=Ve.END,E1=[Pg,Lu,Ig,_g];function KN(e,t,n,r){var o,l="prev",s="next",u="children",d="parent";if(e==="inline"&&r===Bu)return{inlineTrigger:!0};var m=G(G({},Pg,l),Lu,s),p=G(G(G(G({},Ig,n?s:l),_g,n?l:s),Lu,u),Bu,u),g=G(G(G(G(G(G({},Pg,l),Lu,s),Bu,u),Qw,d),Ig,n?u:d),_g,n?d:u),v={inline:m,horizontal:p,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},y=(o=v["".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 d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function XN(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function QN(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Eh(e,t){var n=GN(e,!0);return n.filter(function(r){return t.has(r)})}function O1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Eh(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 Tg=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(Uw(n,s),"']"));u&&(r.add(u),l.set(u,s),o.set(s,u))}),{elements:r,key2element:o,element2key:l}};function YN(e,t,n,r,o,l,s,u,d,m){var p=c.useRef(),g=c.useRef();g.current=t;var v=function(){$n.cancel(p.current)};return c.useEffect(function(){return function(){v()}},[]),function(y){var C=y.which;if([].concat(E1,[Bu,Qw,ms,ps]).includes(C)){var S=l(),b=Tg(S,r),$=b,w=$.elements,O=$.key2element,R=$.element2key,_=O.get(t),I=QN(_,w),P=R.get(I),N=KN(e,s(P,!0).length===1,n,C);if(!N&&C!==ms&&C!==ps)return;(E1.includes(C)||[ms,ps].includes(C))&&y.preventDefault();var T=function(V){if(V){var H=V,Y=V.querySelector("a");Y!=null&&Y.getAttribute("href")&&(H=Y);var U=R.get(V);u(U),v(),p.current=$n(function(){g.current===U&&H.focus()})}};if([ms,ps].includes(C)||N.sibling||!I){var k;!I||e==="inline"?k=o.current:k=XN(I);var L,j=Eh(k,w);C===ms?L=j[0]:C===ps?L=j[j.length-1]:L=O1(k,w,I,N.offset),T(L)}else if(N.inlineTrigger)d(P);else if(N.offset>0)d(P,!0),v(),p.current=$n(function(){b=Tg(S,r);var W=I.getAttribute("aria-controls"),V=document.getElementById(W),H=O1(V,b.elements);T(H)},5);else if(N.offset<0){var D=s(P,!0),A=D[D.length-2],q=O.get(A);d(A,!1),T(q)}}m==null||m(y)}}function JN(e){Promise.resolve().then(e)}var Oh="__RC_UTIL_PATH_SPLIT__",R1=function(t){return t.join(Oh)},ZN=function(t){return t.split(Oh)},Ng="rc-menu-more";function ek(){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],d=s[1],m=c.useRef(0),p=c.useRef(!1),g=function(){p.current||n({})},v=c.useCallback(function(O,R){var _=R1(R);o.current.set(_,O),r.current.set(O,_),m.current+=1;var I=m.current;JN(function(){I===m.current&&g()})},[]),y=c.useCallback(function(O,R){var _=R1(R);o.current.delete(_),r.current.delete(O)},[]),C=c.useCallback(function(O){d(O)},[]),S=c.useCallback(function(O,R){var _=r.current.get(O)||"",I=ZN(_);return R&&u.includes(I[0])&&I.unshift(Ng),I},[u]),b=c.useCallback(function(O,R){return O.filter(function(_){return _!==void 0}).some(function(_){var I=S(_,!0);return I.includes(R)})},[S]),$=function(){var R=Ae(r.current.keys());return u.length&&R.push(Ng),R},w=c.useCallback(function(O){var R="".concat(r.current.get(O)).concat(Oh),_=new Set;return Ae(o.current.keys()).forEach(function(I){I.startsWith(R)&&_.add(o.current.get(I))}),_},[]);return c.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:v,unregisterPath:y,refreshOverflowKeys:C,isSubPathKey:b,getKeyPath:S,getKeys:$,getSubPathKeys:w}}function xs(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 tk=Math.random().toFixed(5).toString().slice(2),I1=0;function nk(e){var t=An(e,{value:e}),n=ae(t,2),r=n[0],o=n[1];return c.useEffect(function(){I1+=1;var l="".concat(tk,"-").concat(I1);o("rc-menu-uuid-".concat(l))},[]),r}function Yw(e,t,n,r){var o=c.useContext(Lo),l=o.activeKey,s=o.onActive,u=o.onInactive,d={active:l===e};return t||(d.onMouseEnter=function(m){n==null||n({key:e,domEvent:m}),s(e)},d.onMouseLeave=function(m){r==null||r({key:e,domEvent:m}),u(e)}),d}function Jw(e){var t=c.useContext(Lo),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 Zw(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,K({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var rk=["item"];function rd(e){var t=e.item,n=kt(e,rk);return Object.defineProperty(n,"item",{get:function(){return ur(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ok=["title","attribute","elementRef"],ik=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ak=["active"],lk=(function(e){di(n,e);var t=fi(n);function n(){return Kn(this,n),t.apply(this,arguments)}return Xn(n,[{key:"render",value:function(){var o=this.props,l=o.title,s=o.attribute,u=o.elementRef,d=kt(o,ok),m=Gn(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ur(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(qo.Item,Oe({},s,{title:typeof l=="string"?l:void 0},m,{ref:u}))}}]),n})(c.Component),sk=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,d=e.role,m=e.onMouseEnter,p=e.onMouseLeave,g=e.onClick,v=e.onKeyDown,y=e.onFocus,C=kt(e,ik),S=qw(o),b=c.useContext(Lo),$=b.prefixCls,w=b.onItemClick,O=b.disabled,R=b.overflowDisabled,_=b.itemIcon,I=b.selectedKeys,P=b.onActive,N=c.useContext($h),T=N._internalRenderMenuItem,k="".concat($,"-item"),L=c.useRef(),j=c.useRef(),D=O||l,A=Xo(t,j),q=jl(o),W=function(ue){return{key:o,keyPath:Ae(q).reverse(),item:L.current,domEvent:ue}},V=s||_,H=Yw(o,D,m,p),Y=H.active,U=kt(H,ak),z=I.includes(o),F=Jw(q.length),Q=function(ue){if(!D){var Ce=W(ue);g==null||g(rd(Ce)),w(Ce)}},ne=function(ue){if(v==null||v(ue),ue.which===Ve.ENTER){var Ce=W(ue);g==null||g(rd(Ce)),w(Ce)}},te=function(ue){P(o),y==null||y(ue)},re={};e.role==="option"&&(re["aria-selected"]=z);var fe=c.createElement(lk,Oe({ref:L,elementRef:A,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":R&&S?null:S},Gn(C,["extra"]),U,re,{component:"li","aria-disabled":l,style:K(K({},F),n),className:ee(k,G(G(G({},"".concat(k,"-active"),Y),"".concat(k,"-selected"),z),"".concat(k,"-disabled"),D),r),onClick:Q,onKeyDown:ne,onFocus:te}),u,c.createElement(Zw,{props:K(K({},e),{},{isSelected:z}),icon:V}));return T&&(fe=T(fe,e,{selected:z})),fe});function ck(e,t){var n=e.eventKey,r=Fd(),o=jl(n);return c.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:c.createElement(sk,Oe({},e,{ref:t}))}const sc=c.forwardRef(ck);var uk=["className","children"],dk=function(t,n){var r=t.className,o=t.children,l=kt(t,uk),s=c.useContext(Lo),u=s.prefixCls,d=s.mode,m=s.rtl;return c.createElement("ul",Oe({className:ee(u,m&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),o)},Rh=c.forwardRef(dk);Rh.displayName="SubMenuList";function Ih(e,t){return Mr(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,d=u==null;d&&(u="tmp_key-".concat([].concat(Ae(t),[r]).join("-")));var m={key:u,eventKey:u};return c.cloneElement(n,m)}return n})}var Er={adjustX:1,adjustY:1},fk={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},leftTop:{points:["tr","tl"],overflow:Er},leftBottom:{points:["br","bl"],overflow:Er},rightTop:{points:["tl","tr"],overflow:Er},rightBottom:{points:["bl","br"],overflow:Er}},mk={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},rightTop:{points:["tr","tl"],overflow:Er},rightBottom:{points:["br","bl"],overflow:Er},leftTop:{points:["tl","tr"],overflow:Er},leftBottom:{points:["bl","br"],overflow:Er}};function e2(e,t,n){if(t)return t;if(n)return n[e]||n.other}var pk={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function gk(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,l=e.popupStyle,s=e.popupClassName,u=e.popupOffset,d=e.disabled,m=e.mode,p=e.onVisibleChange,g=c.useContext(Lo),v=g.getPopupContainer,y=g.rtl,C=g.subMenuOpenDelay,S=g.subMenuCloseDelay,b=g.builtinPlacements,$=g.triggerSubMenuAction,w=g.forceSubMenuRender,O=g.rootClassName,R=g.motion,_=g.defaultMotions,I=c.useState(!1),P=ae(I,2),N=P[0],T=P[1],k=K(y?K({},mk):K({},fk),b),L=pk[m],j=e2(m,R,_),D=c.useRef(j);m!=="inline"&&(D.current=j);var A=K(K({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),q=c.useRef();return c.useEffect(function(){return q.current=$n(function(){T(n)}),function(){$n.cancel(q.current)}},[n]),c.createElement(Ad,{prefixCls:t,popupClassName:ee("".concat(t,"-popup"),G({},"".concat(t,"-rtl"),y),s,O),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:k,popupPlacement:L,popupVisible:N,popup:o,popupStyle:l,popupAlign:u&&{offset:u},action:d?[]:[$],mouseEnterDelay:C,mouseLeaveDelay:S,onPopupVisibleChange:p,forceRender:w,popupMotion:A,fresh:!0},r)}function hk(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,l="inline",s=c.useContext(Lo),u=s.prefixCls,d=s.forceSubMenuRender,m=s.motion,p=s.defaultMotions,g=s.mode,v=c.useRef(!1);v.current=g===l;var y=c.useState(!v.current),C=ae(y,2),S=C[0],b=C[1],$=v.current?n:!1;c.useEffect(function(){v.current&&b(!1)},[g]);var w=K({},e2(l,m,p));r.length>1&&(w.motionAppear=!1);var O=w.onVisibleChanged;return w.onVisibleChanged=function(R){return!v.current&&!R&&b(!0),O==null?void 0:O(R)},S?null:c.createElement(Fs,{mode:l,locked:!v.current},c.createElement(ro,Oe({visible:$},w,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(R){var _=R.className,I=R.style;return c.createElement(Rh,{id:t,className:_,style:I},o)}))}var vk=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],yk=["active"],bk=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,d=e.children,m=e.itemIcon,p=e.expandIcon,g=e.popupClassName,v=e.popupOffset,y=e.popupStyle,C=e.onClick,S=e.onMouseEnter,b=e.onMouseLeave,$=e.onTitleClick,w=e.onTitleMouseEnter,O=e.onTitleMouseLeave,R=kt(e,vk),_=qw(l),I=c.useContext(Lo),P=I.prefixCls,N=I.mode,T=I.openKeys,k=I.disabled,L=I.overflowDisabled,j=I.activeKey,D=I.selectedKeys,A=I.itemIcon,q=I.expandIcon,W=I.onItemClick,V=I.onOpenChange,H=I.onActive,Y=c.useContext($h),U=Y._internalRenderSubMenuItem,z=c.useContext(Xw),F=z.isSubPathKey,Q=jl(),ne="".concat(P,"-submenu"),te=k||s,re=c.useRef(),fe=c.useRef(),me=m??A,ue=p??q,Ce=T.includes(l),le=!L&&Ce,ce=F(D,l),he=Yw(l,te,w,O),ye=he.active,de=kt(he,yk),se=c.useState(!1),ve=ae(se,2),Se=ve[0],Re=ve[1],Ne=function(Te){te||Re(Te)},we=function(Te){Ne(!0),S==null||S({key:l,domEvent:Te})},$e=function(Te){Ne(!1),b==null||b({key:l,domEvent:Te})},ke=c.useMemo(function(){return ye||(N!=="inline"?Se||F([j],l):!1)},[N,ye,j,Se,l,F]),Ie=Jw(Q.length),Ge=function(Te){te||($==null||$({key:l,domEvent:Te}),N==="inline"&&V(l,!Ce))},tt=xs(function(Je){C==null||C(rd(Je)),W(Je)}),St=function(Te){N!=="inline"&&V(l,Te)},ct=function(){H(l)},qe=_&&"".concat(_,"-popup"),at=c.useMemo(function(){return c.createElement(Zw,{icon:N!=="horizontal"?ue:void 0,props:K(K({},e),{},{isOpen:le,isSubMenu:!0})},c.createElement("i",{className:"".concat(ne,"-arrow")}))},[N,ue,e,le,ne]),We=c.createElement("div",Oe({role:"menuitem",style:Ie,className:"".concat(ne,"-title"),tabIndex:te?null:-1,ref:re,title:typeof o=="string"?o:null,"data-menu-id":L&&_?null:_,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":qe,"aria-disabled":te,onClick:Ge,onFocus:ct},de),o,at),mt=c.useRef(N);if(N!=="inline"&&Q.length>1?mt.current="vertical":mt.current=N,!L){var Qe=mt.current;We=c.createElement(gk,{mode:Qe,prefixCls:ne,visible:!u&&le&&N!=="inline",popupClassName:g,popupOffset:v,popupStyle:y,popup:c.createElement(Fs,{mode:Qe==="horizontal"?"vertical":Qe},c.createElement(Rh,{id:qe,ref:fe},d)),disabled:te,onVisibleChange:St},We)}var je=c.createElement(qo.Item,Oe({ref:t,role:"none"},R,{component:"li",style:n,className:ee(ne,"".concat(ne,"-").concat(N),r,G(G(G(G({},"".concat(ne,"-open"),le),"".concat(ne,"-active"),ke),"".concat(ne,"-selected"),ce),"".concat(ne,"-disabled"),te)),onMouseEnter:we,onMouseLeave:$e}),We,!L&&c.createElement(hk,{id:qe,open:le,keyPath:Q},d));return U&&(je=U(je,e,{selected:ce,active:ke,open:le,disabled:te})),c.createElement(Fs,{onItemClick:tt,mode:N==="horizontal"?"vertical":N,itemIcon:me,expandIcon:ue},je)}),Vd=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=jl(n),l=Ih(r,o),s=Fd();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(bk,Oe({ref:t},e),l),c.createElement(Kw.Provider,{value:o},u)});function _h(e){var t=e.className,n=e.style,r=c.useContext(Lo),o=r.prefixCls,l=Fd();return l?null:c.createElement("li",{role:"separator",className:ee("".concat(o,"-item-divider"),t),style:n})}var Ck=["className","title","eventKey","children"],Sk=c.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,l=kt(e,Ck),s=c.useContext(Lo),u=s.prefixCls,d="".concat(u,"-item-group");return c.createElement("li",Oe({ref:t,role:"presentation"},l,{onClick:function(p){return p.stopPropagation()},className:ee(d,n)}),c.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(d,"-list")},o))}),Ph=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=jl(n),l=Ih(r,o),s=Fd();return s?l:c.createElement(Sk,Oe({ref:t},Gn(e,["warnKey"])),l)}),xk=["label","children","key","type","extra"];function kg(e,t,n){var r=t.item,o=t.group,l=t.submenu,s=t.divider;return(e||[]).map(function(u,d){if(u&&gt(u)==="object"){var m=u,p=m.label,g=m.children,v=m.key,y=m.type,C=m.extra,S=kt(m,xk),b=v??"tmp-".concat(d);return g||y==="group"?y==="group"?c.createElement(o,Oe({key:b},S,{title:p}),kg(g,t,n)):c.createElement(l,Oe({key:b},S,{title:p}),kg(g,t,n)):y==="divider"?c.createElement(s,Oe({key:b},S)):c.createElement(r,Oe({key:b},S,{extra:C}),p,(!!C||C===0)&&c.createElement("span",{className:"".concat(n,"-item-extra")},C))}return null}).filter(function(u){return u})}function _1(e,t,n,r,o){var l=e,s=K({divider:_h,item:sc,group:Ph,submenu:Vd},r);return t&&(l=kg(t,s,o)),Ih(l,n)}var wk=["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"],aa=[],$k=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,d=r.className,m=r.tabIndex,p=m===void 0?0:m,g=r.items,v=r.children,y=r.direction,C=r.id,S=r.mode,b=S===void 0?"vertical":S,$=r.inlineCollapsed,w=r.disabled,O=r.disabledOverflow,R=r.subMenuOpenDelay,_=R===void 0?.1:R,I=r.subMenuCloseDelay,P=I===void 0?.1:I,N=r.forceSubMenuRender,T=r.defaultOpenKeys,k=r.openKeys,L=r.activeKey,j=r.defaultActiveFirst,D=r.selectable,A=D===void 0?!0:D,q=r.multiple,W=q===void 0?!1:q,V=r.defaultSelectedKeys,H=r.selectedKeys,Y=r.onSelect,U=r.onDeselect,z=r.inlineIndent,F=z===void 0?24:z,Q=r.motion,ne=r.defaultMotions,te=r.triggerSubMenuAction,re=te===void 0?"hover":te,fe=r.builtinPlacements,me=r.itemIcon,ue=r.expandIcon,Ce=r.overflowedIndicator,le=Ce===void 0?"...":Ce,ce=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,ye=r.onClick,de=r.onOpenChange,se=r.onKeyDown;r.openAnimation,r.openTransitionName;var ve=r._internalRenderMenuItem,Se=r._internalRenderSubMenuItem,Re=r._internalComponents,Ne=kt(r,wk),we=c.useMemo(function(){return[_1(v,g,aa,Re,l),_1(v,g,aa,{},l)]},[v,g,Re]),$e=ae(we,2),ke=$e[0],Ie=$e[1],Ge=c.useState(!1),tt=ae(Ge,2),St=tt[0],ct=tt[1],qe=c.useRef(),at=nk(C),We=y==="rtl",mt=An(T,{value:k,postState:function(rt){return rt||aa}}),Qe=ae(mt,2),je=Qe[0],Je=Qe[1],Te=function(rt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Jt(){Je(rt),de==null||de(rt)}et?Hi.flushSync(Jt):Jt()},He=c.useState(je),Ot=ae(He,2),ht=Ot[0],Gt=Ot[1],Ut=c.useRef(!1),dn=c.useMemo(function(){return(b==="inline"||b==="vertical")&&$?["vertical",$]:[b,!1]},[b,$]),Sn=ae(dn,2),Qt=Sn[0],jt=Sn[1],xt=Qt==="inline",Yt=c.useState(Qt),Vt=ae(Yt,2),Ze=Vt[0],Ct=Vt[1],lt=c.useState(jt),_e=ae(lt,2),Ee=_e[0],xe=_e[1];c.useEffect(function(){Ct(Qt),xe(jt),Ut.current&&(xt?Je(ht):Te(aa))},[Qt,jt]);var ze=c.useState(0),Xe=ae(ze,2),Ye=Xe[0],zt=Xe[1],Ht=Ye>=ke.length-1||Ze!=="horizontal"||O;c.useEffect(function(){xt&&Gt(je)},[je]),c.useEffect(function(){return Ut.current=!0,function(){Ut.current=!1}},[]);var Pt=ek(),Tt=Pt.registerPath,bn=Pt.unregisterPath,hn=Pt.refreshOverflowKeys,xn=Pt.isSubPathKey,Pn=Pt.getKeyPath,Zt=Pt.getKeys,on=Pt.getSubPathKeys,Le=c.useMemo(function(){return{registerPath:Tt,unregisterPath:bn}},[Tt,bn]),Ue=c.useMemo(function(){return{isSubPathKey:xn}},[xn]);c.useEffect(function(){hn(Ht?aa:ke.slice(Ye+1).map(function(tn){return tn.key}))},[Ye,Ht]);var $t=An(L||j&&((n=ke[0])===null||n===void 0?void 0:n.key),{value:L}),ut=ae($t,2),nt=ut[0],Ke=ut[1],wt=xs(function(tn){Ke(tn)}),Ft=xs(function(){Ke(void 0)});c.useImperativeHandle(t,function(){return{list:qe.current,focus:function(rt){var et,Jt=Zt(),nn=Tg(Jt,at),fn=nn.elements,gn=nn.key2element,fr=nn.element2key,Fn=Eh(qe.current,fn),At=nt??(Fn[0]?fr.get(Fn[0]):(et=ke.find(function(Lr){return!Lr.props.disabled}))===null||et===void 0?void 0:et.key),Jn=gn.get(At);if(At&&Jn){var or;Jn==null||(or=Jn.focus)===null||or===void 0||or.call(Jn,rt)}}}});var Fe=An(V||[],{value:H,postState:function(rt){return Array.isArray(rt)?rt:rt==null?aa:[rt]}}),dt=ae(Fe,2),Rt=dt[0],ln=dt[1],Hn=function(rt){if(A){var et=rt.key,Jt=Rt.includes(et),nn;W?Jt?nn=Rt.filter(function(gn){return gn!==et}):nn=[].concat(Ae(Rt),[et]):nn=[et],ln(nn);var fn=K(K({},rt),{},{selectedKeys:nn});Jt?U==null||U(fn):Y==null||Y(fn)}!W&&je.length&&Ze!=="inline"&&Te(aa)},Rn=xs(function(tn){ye==null||ye(rd(tn)),Hn(tn)}),hr=xs(function(tn,rt){var et=je.filter(function(nn){return nn!==tn});if(rt)et.push(tn);else if(Ze!=="inline"){var Jt=on(tn);et=et.filter(function(nn){return!Jt.has(nn)})}Ms(je,et,!0)||Te(et,!0)}),Qn=function(rt,et){var Jt=et??!je.includes(rt);hr(rt,Jt)},vr=YN(Ze,nt,We,at,qe,Zt,Pn,Ke,Qn,se);c.useEffect(function(){ct(!0)},[]);var Yn=c.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:Se}},[ve,Se]),dr=Ze!=="horizontal"||O?ke:ke.map(function(tn,rt){return c.createElement(Fs,{key:tn.key,overflowDisabled:rt>Ye},tn)}),yr=c.createElement(qo,Oe({id:C,ref:qe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:sc,className:ee(l,"".concat(l,"-root"),"".concat(l,"-").concat(Ze),d,G(G({},"".concat(l,"-inline-collapsed"),Ee),"".concat(l,"-rtl"),We),s),dir:y,style:u,role:"menu",tabIndex:p,data:dr,renderRawItem:function(rt){return rt},renderRawRest:function(rt){var et=rt.length,Jt=et?ke.slice(-et):null;return c.createElement(Vd,{eventKey:Ng,title:le,disabled:Ht,internalPopupClose:et===0,popupClassName:ce},Jt)},maxCount:Ze!=="horizontal"||O?qo.INVALIDATE:qo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(rt){zt(rt)},onKeyDown:vr},Ne));return c.createElement($h.Provider,{value:Yn},c.createElement(Ww.Provider,{value:at},c.createElement(Fs,{prefixCls:l,rootClassName:s,mode:Ze,openKeys:je,rtl:We,disabled:w,motion:St?Q:null,defaultMotions:St?ne:null,activeKey:nt,onActive:wt,onInactive:Ft,selectedKeys:Rt,inlineIndent:F,subMenuOpenDelay:_,subMenuCloseDelay:P,forceSubMenuRender:N,builtinPlacements:fe,triggerSubMenuAction:re,getPopupContainer:he,itemIcon:me,expandIcon:ue,onItemClick:Rn,onOpenChange:hr},c.createElement(Xw.Provider,{value:Ue},yr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Gw.Provider,{value:Le},Ie)))))}),zl=$k;zl.Item=sc;zl.SubMenu=Vd;zl.ItemGroup=Ph;zl.Divider=_h;var Ek={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"},Ok=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:Ek}))},Rk=c.forwardRef(Ok);const t2=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Ik=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:d,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:d,color:r,fontSize:m,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},n2=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:l,marginXXS:s,colorTextLightSolid:u,colorBgContainer:d}=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:d,lightTriggerBg:d,lightTriggerColor:o}},r2=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],o2=pn("Layout",Ik,n2,{deprecatedTokens:r2}),_k=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:l,triggerHeight:s,triggerColor:u,triggerBg:d,headerHeight:m,zeroTriggerWidth:p,zeroTriggerHeight:g,borderRadiusLG:v,lightSiderBg:y,lightTriggerColor:C,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:d,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(v)} ${J(v)} 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(v)} 0 0 ${J(v)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:C,background:S},[`${t}-zero-width-trigger`]:{color:C,background:S,border:`1px solid ${b}`,borderInlineStart:0}}}}},Pk=pn(["Layout","Sider"],_k,n2,{deprecatedTokens:r2});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 P1={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Nk=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Wd=c.createContext({}),kk=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),i2=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:l,defaultCollapsed:s=!1,theme:u="dark",style:d={},collapsible:m=!1,reverseArrow:p=!1,width:g=200,collapsedWidth:v=80,zeroWidthTriggerStyle:y,breakpoint:C,onCollapse:S,onBreakpoint:b}=e,$=Tk(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=c.useContext(t2),[O,R]=c.useState("collapsed"in e?e.collapsed:s),[_,I]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const P=(me,ue)=>{"collapsed"in e||R(me),S==null||S(me,ue)},{getPrefixCls:N,direction:T}=c.useContext(Et),k=N("layout-sider",n),[L,j,D]=Pk(k),A=c.useRef(null);A.current=me=>{I(me.matches),b==null||b(me.matches),O!==me.matches&&P(me.matches,"responsive")},c.useEffect(()=>{function me(Ce){var le;return(le=A.current)===null||le===void 0?void 0:le.call(A,Ce)}let ue;return typeof(window==null?void 0:window.matchMedia)<"u"&&C&&C in P1&&(ue=window.matchMedia(`screen and (max-width: ${P1[C]})`),Tw(ue,me),me(ue)),()=>{Nw(ue,me)}},[C]),c.useEffect(()=>{const me=kk("ant-sider-");return w.addSider(me),()=>w.removeSider(me)},[]);const q=()=>{P(!O,"clickTrigger")},W=Gn($,["collapsed"]),V=O?v:g,H=Nk(V)?`${V}px`:String(V),Y=Number.parseFloat(String(v||0))===0?c.createElement("span",{onClick:q,className:ee(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${p?"right":"left"}`),style:y},o||c.createElement(Rk,null)):null,U=T==="rtl"==!p,Q={expanded:U?c.createElement(Uo,null):c.createElement(Hs,null),collapsed:U?c.createElement(Hs,null):c.createElement(Uo,null)}[O?"collapsed":"expanded"],ne=o!==null?Y||c.createElement("div",{className:`${k}-trigger`,onClick:q,style:{width:H}},o||Q):null,te=Object.assign(Object.assign({},d),{flex:`0 0 ${H}`,maxWidth:H,minWidth:H,width:H}),re=ee(k,`${k}-${u}`,{[`${k}-collapsed`]:!!O,[`${k}-has-trigger`]:m&&o!==null&&!Y,[`${k}-below`]:!!_,[`${k}-zero-width`]:Number.parseFloat(H)===0},r,j,D),fe=c.useMemo(()=>({siderCollapsed:O}),[O]);return L(c.createElement(Wd.Provider,{value:fe},c.createElement("aside",Object.assign({className:re},W,{style:te,ref:t}),c.createElement("div",{className:`${k}-children`},l),m||_&&Y?ne:null)))});var Mk={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"},jk=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:Mk}))},Th=c.forwardRef(jk);const od=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var zk=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 a2=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=zk(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=c.useContext(Et),s=l("menu",t),u=ee({[`${s}-item-divider-dashed`]:!!r},n);return c.createElement(_h,Object.assign({className:u},o))},l2=e=>{var t;const{className:n,children:r,icon:o,title:l,danger:s,extra:u}=e,{prefixCls:d,firstLevel:m,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:v}=c.useContext(od),y=O=>{const R=r==null?void 0:r[0],_=c.createElement("span",{className:ee(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||u===0})},r);return(!o||c.isValidElement(r)&&r.type==="span")&&r&&O&&m&&typeof R=="string"?c.createElement("div",{className:`${d}-inline-collapsed-noicon`},R.charAt(0)):_},{siderCollapsed:C}=c.useContext(Wd);let S=l;typeof l>"u"?S=m?r:"":l===!1&&(S="");const b={title:S};!C&&!v&&(b.title=null,b.open=!1);const $=Mr(r).length;let w=c.createElement(sc,Object.assign({},Gn(e,["title","icon","danger"]),{className:ee({[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(o?$+1:$)===1},n),title:typeof l=="string"?l:void 0}),jr(o,{className:ee(c.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${d}-item-icon`)}),y(v));return g||(w=c.createElement(qi,Object.assign({},b,{placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),w)),w};var Lk=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 id=c.createContext(null),Bk=c.forwardRef((e,t)=>{const{children:n}=e,r=Lk(e,["children"]),o=c.useContext(id),l=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=i4(n),u=Xo(t,s?ba(n):null);return c.createElement(id.Provider,{value:l},c.createElement(ic,{space:!0},s?c.cloneElement(n,{ref:u}):n))}),Ak=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"}}}},Dk=({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)})`}}}}),T1=e=>Ol(e),N1=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:l,groupTitleColor:s,itemBg:u,subMenuItemBg:d,itemSelectedBg:m,activeBarHeight:p,activeBarWidth:g,activeBarBorderWidth:v,motionDurationSlow:y,motionEaseInOut:C,motionEaseOut:S,itemPaddingInline:b,motionDurationMid:$,itemHoverColor:w,lineType:O,colorSplit:R,itemDisabledColor:_,dangerItemColor:I,dangerItemHoverColor:P,dangerItemSelectedColor:N,dangerItemActiveBg:T,dangerItemSelectedBg:k,popupBg:L,itemHoverBg:j,itemActiveBg:D,menuSubMenuBg:A,horizontalItemSelectedColor:q,horizontalItemSelectedBg:W,horizontalItemBorderRadius:V,horizontalItemHoverBg:H}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},T1(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({},T1(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !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:j},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:P}},[`&${n}-item:active`]:{background:T}},[`${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:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${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:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:V,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${J(p)} solid transparent`,transition:`border-color ${y} ${C}`,content:'""'},"&:hover, &-active, &-open":{background:H,"&::after":{borderBottomWidth:p,borderBottomColor:q}},"&-selected":{color:q,backgroundColor:W,"&:hover":{backgroundColor:W},"&::after":{borderBottomWidth:p,borderBottomColor:q}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${J(v)} ${O} ${R}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${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 ${$} ${C}`,`opacity ${$} ${C}`].join(",")}}}}}},k1=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:l,marginXS:s,itemMarginBlock:u,itemWidth:d,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:d},[`> ${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}}},Hk=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:l,controlHeightLG:s,motionEaseOut:u,paddingXL:d,itemMarginInline:m,fontSizeLG:p,motionDurationFast:g,motionDurationSlow:v,paddingXS:y,boxShadowSecondary:C,collapsedWidth:S,collapsedIconSize:b}=e,$={height:r,lineHeight:J(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},k1(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},k1(e)),{boxShadow:C})}},{[`${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 ${v}`,`background ${v}`,`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:d}},[`${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({},Bs),{paddingInline:y})}}]},M1=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:l,iconCls:s,iconSize:u,iconMarginInlineEnd:d}=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:d,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Pl()),[`&${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"}}}},j1=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)})`}}}}},Fk=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:s,paddingXS:u,padding:d,colorSplit:m,lineWidth:p,zIndexPopup:g,borderRadiusLG:v,subMenuItemBorderRadius:y,menuArrowSize:C,menuArrowOffset:S,lineType:b,groupTitleLineHeight:$,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},Gu()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dn(e)),Gu()),{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(d)}`,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"}}}),M1(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(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:v,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:v},M1(e)),j1(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}}}),j1(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(C).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"}}}]},Vk=e=>{var t,n,r;const{colorPrimary:o,colorError:l,colorTextDisabled:s,colorErrorBg:u,colorText:d,colorTextDescription:m,colorBgContainer:p,colorFillAlter:g,colorFillContent:v,lineWidth:y,lineWidthBold:C,controlItemBgActive:S,colorBgTextHover:b,controlHeightLG:$,lineHeight:w,colorBgElevated:O,marginXXS:R,padding:_,fontSize:I,controlHeightSM:P,fontSizeLG:N,colorTextLightSolid:T,colorErrorHover:k}=e,L=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,j=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,D=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,A=new cn(T).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,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:v,itemActiveBg:S,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:L,colorActiveBarHeight:C,activeBarHeight:C,colorActiveBarBorderSize:y,activeBarBorderWidth:j,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:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$,groupTitleLineHeight:w,collapsedWidth:$*2,popupBg:O,itemMarginBlock:R,itemPaddingInline:_,horizontalLineHeight:`${$*1.15}px`,iconSize:I,iconMarginInlineEnd:P-I,collapsedIconSize:N,groupTitleFontSize:I,darkItemDisabledColor:new cn(T).setA(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:o,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:T,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:l,itemWidth:L?`calc(100% + ${j}px)`:`calc(100% - ${D*2}px)`}},Wk=(e,t=e,n=!0)=>pn("Menu",o=>{const{colorBgElevated:l,controlHeightLG:s,fontSize:u,darkItemColor:d,darkDangerItemColor:m,darkItemBg:p,darkSubMenuItemBg:g,darkItemSelectedColor:v,darkItemSelectedBg:y,darkDangerItemSelectedBg:C,darkItemHoverBg:S,darkGroupTitleColor:b,darkItemHoverColor:$,darkItemDisabledColor:w,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:_,popupBg:I,darkPopupBg:P}=o,N=o.calc(u).div(7).mul(5).equal(),T=Xt(o,{menuArrowSize:N,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(N).mul(.25).equal(),menuSubMenuBg:l,calc:o.calc,popupBg:I}),k=Xt(T,{itemColor:d,itemHoverColor:$,groupTitleColor:b,itemSelectedColor:v,subMenuItemSelectedColor:v,itemBg:p,popupBg:P,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:w,dangerItemColor:m,dangerItemHoverColor:O,dangerItemSelectedColor:R,dangerItemActiveBg:_,dangerItemSelectedBg:C,menuSubMenuBg:g,horizontalItemSelectedColor:v,horizontalItemSelectedBg:y});return[Fk(T),Ak(T),Hk(T),N1(T,"light"),N1(k,"dark"),Dk(T),Ex(T),Ui(T,"slide-up"),Ui(T,"slide-down"),tc(T,"zoom-big")]},Vk,{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),s2=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:l}=e,s=c.useContext(od),{prefixCls:u,inlineCollapsed:d,theme:m}=s,p=jl();let g;if(!r)g=d&&!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 C=c.isValidElement(o)&&o.type==="span";g=c.createElement(c.Fragment,null,jr(r,{className:ee(c.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),C?o:c.createElement("span",{className:`${u}-title-content`},o))}const v=c.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[y]=Nl("Menu");return c.createElement(od.Provider,{value:v},c.createElement(Vd,Object.assign({},Gn(e,["icon"]),{title:g,popupClassName:ee(u,n,`${u}-${l||m}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var Uk=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 pp(e){return e===null||e===!1}const qk={item:l2,submenu:s2,divider:a2},Gk=c.forwardRef((e,t)=>{var n;const r=c.useContext(id),o=r||{},{getPrefixCls:l,getPopupContainer:s,direction:u,menu:d}=c.useContext(Et),m=l(),{prefixCls:p,className:g,style:v,theme:y="light",expandIcon:C,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:b,siderCollapsed:$,rootClassName:w,mode:O,selectable:R,onClick:_,overflowedIndicatorPopupClassName:I}=e,P=Uk(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=Gn(P,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:O});const T=Ln((...F)=>{var Q;_==null||_.apply(void 0,F),(Q=o.onClick)===null||Q===void 0||Q.call(o)}),k=o.mode||O,L=R??o.selectable,j=b??$,D={horizontal:{motionName:`${m}-slide-up`},inline:vx(m),other:{motionName:`${m}-zoom-big`}},A=l("menu",p||o.prefixCls),q=pi(A),[W,V,H]=Wk(A,q,!r),Y=ee(`${A}-${y}`,d==null?void 0:d.className,g),U=c.useMemo(()=>{var F,Q;if(typeof C=="function"||pp(C))return C||null;if(typeof o.expandIcon=="function"||pp(o.expandIcon))return o.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||pp(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const ne=(F=C??(o==null?void 0:o.expandIcon))!==null&&F!==void 0?F:d==null?void 0:d.expandIcon;return jr(ne,{className:ee(`${A}-submenu-expand-icon`,c.isValidElement(ne)?(Q=ne.props)===null||Q===void 0?void 0:Q.className:void 0)})},[C,o==null?void 0:o.expandIcon,d==null?void 0:d.expandIcon,A]),z=c.useMemo(()=>({prefixCls:A,inlineCollapsed:j||!1,direction:u,firstLevel:!0,theme:y,mode:k,disableMenuItemTitleTooltip:S}),[A,j,u,S,y]);return W(c.createElement(id.Provider,{value:null},c.createElement(od.Provider,{value:z},c.createElement(zl,Object.assign({getPopupContainer:s,overflowedIndicator:c.createElement(Th,null),overflowedIndicatorPopupClassName:ee(A,`${A}-${y}`,I),mode:k,selectable:L,onClick:T},N,{inlineCollapsed:j,style:Object.assign(Object.assign({},d==null?void 0:d.style),v),className:Y,prefixCls:A,direction:u,defaultMotions:D,expandIcon:U,ref:t,rootClassName:ee(w,V,o.rootClassName,H,q),_internalComponents:qk})))))}),cc=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(Wd);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var l;(l=n.current)===null||l===void 0||l.focus(o)}})),c.createElement(Gk,Object.assign({ref:n},e,r))});cc.Item=l2;cc.SubMenu=s2;cc.Divider=a2;cc.ItemGroup=Ph;const Kk=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}}}}}},Xk=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:l,antCls:s,iconCls:u,motionDurationMid:d,paddingBlock:m,fontSize:p,dropdownEdgeChildPadding:g,colorTextDisabled:v,fontSizeIcon:y,controlPaddingHorizontal:C,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 ${d}`}},[`${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:ch},[`&${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:dh},[`&${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:uh},[`&${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:fh}}},wh(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({},Dn(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},xo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${J(m)} ${J(C)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${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 ${d}`,"&: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(C)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},xo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,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(C).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Ui(e,"slide-up"),Ui(e,"slide-down"),Ju(e,"move-up"),Ju(e,"move-down"),tc(e,"zoom-big")]]},Qk=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Dd({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),xh(e)),Yk=pn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,l=Xt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Xk(l),Kk(l)]},Qk,{resetStyle:!1}),Ud=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:l,trigger:s,disabled:u,dropdownRender:d,popupRender:m,getPopupContainer:p,overlayClassName:g,rootClassName:v,overlayStyle:y,open:C,onOpenChange:S,visible:b,onVisibleChange:$,mouseEnterDelay:w=.15,mouseLeaveDelay:O=.1,autoAdjustOverflow:R=!0,placement:_="",overlay:I,transitionName:P,destroyOnHidden:N,destroyPopupOnHide:T}=e,{getPopupContainer:k,getPrefixCls:L,direction:j,dropdown:D}=c.useContext(Et),A=m||d;Cd();const q=c.useMemo(()=>{const ve=L();return P!==void 0?P:_.includes("top")?`${ve}-slide-down`:`${ve}-slide-up`},[L,_,P]),W=c.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:j==="rtl"?"bottomRight":"bottomLeft",[_,j]),V=L("dropdown",o),H=pi(V),[Y,U,z]=Yk(V,H),[,F]=zr(),Q=c.Children.only(VN(l)?c.createElement("span",null,l):l),ne=jr(Q,{className:ee(`${V}-trigger`,{[`${V}-rtl`]:j==="rtl"},Q.props.className),disabled:(t=Q.props.disabled)!==null&&t!==void 0?t:u}),te=u?[]:s,re=!!(te!=null&&te.includes("contextMenu")),[fe,me]=An(!1,{value:C??b}),ue=Ln(ve=>{S==null||S(ve,{source:"trigger"}),$==null||$(ve),me(ve)}),Ce=ee(g,v,U,z,H,D==null?void 0:D.className,{[`${V}-rtl`]:j==="rtl"}),le=Mw({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:R,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),ce=Ln(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(S==null||S(!1,{source:"menu"}),me(!1))}),he=()=>{let ve;return n!=null&&n.items?ve=c.createElement(cc,Object.assign({},n)):typeof I=="function"?ve=I():ve=I,A&&(ve=A(ve)),ve=c.Children.only(typeof ve=="string"?c.createElement("span",null,ve):ve),c.createElement(Bk,{prefixCls:`${V}-menu`,rootClassName:ee(z,H),expandIcon:c.createElement("span",{className:`${V}-menu-submenu-arrow`},j==="rtl"?c.createElement(Hs,{className:`${V}-menu-submenu-arrow-icon`}):c.createElement(Uo,{className:`${V}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ce,validator:({mode:Se})=>{}},ve)},[ye,de]=Nl("Dropdown",y==null?void 0:y.zIndex);let se=c.createElement(Vw,Object.assign({alignPoint:re},Gn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:O,visible:fe,builtinPlacements:le,arrow:!!r,overlayClassName:Ce,prefixCls:V,getPopupContainer:p||k,transitionName:q,trigger:te,overlay:he,placement:W,onVisibleChange:ue,overlayStyle:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),y),{zIndex:ye}),autoDestroy:N??T}),ne);return ye&&(se=c.createElement(Js.Provider,{value:de},se)),Y(se)},Jk=aw(Ud,"align",void 0,"dropdown",e=>e),Zk=e=>c.createElement(Jk,Object.assign({},e),c.createElement("span",null));Ud._InternalPanelDoNotUseOrYouWillBeFired=Zk;function qd(e){return Xt(e,{inputAffixPadding:e.paddingXXS})}const Gd=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:s,fontSizeLG:u,lineHeightLG:d,paddingSM:m,controlPaddingHorizontalSM:p,controlPaddingHorizontal:g,colorFillAlter:v,colorPrimaryHover:y,colorPrimary:C,controlOutlineWidth:S,controlOutline:b,colorErrorOutline:$,colorWarningOutline:w,colorBgContainer:O,inputFontSize:R,inputFontSizeLG:_,inputFontSizeSM:I}=e,P=R||n,N=I||P,T=_||u,k=Math.round((t-P*r)/2*10)/10-o,L=Math.round((l-N*r)/2*10)/10-o,j=Math.ceil((s-T*d)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(j,0),paddingInline:m-o,paddingInlineSM:p-o,paddingInlineLG:g-o,addonBg:v,activeBorderColor:C,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:P,inputFontSizeLG:T,inputFontSizeSM:N}},eM=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Kd=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({},eM(Xt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Nh=(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}}),z1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Nh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),tM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nh(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kd(e))}),z1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),z1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),L1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),nM=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}}},L1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),L1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Kd(e))}})}),rM=(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)}},c2=(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}}},B1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},c2(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),oM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c2(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kd(e))}),B1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),B1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),A1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),iM=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},A1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),A1(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}`}}}})}),u2=(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}}),D1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},u2(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`}}),aM=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u2(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"}}),D1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),D1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),lM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d2=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${J(t)} ${J(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},kh=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Mh=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}`},lM(e.colorTextPlaceholder)),{"&-lg":Object.assign({},d2(e)),"&-sm":Object.assign({},kh(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),sM=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({},d2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},kh(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"},Gu()),{[`${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}}}})}},cM=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({},Dn(e)),Mh(e)),tM(e)),oM(e)),rM(e)),aM(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"}})}},uM=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)}`}}}},dM=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:l,colorIconHover:s,iconCls:u}=e,d=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},Mh(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}}}),uM(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}}}}},fM=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Dn(e)),sM(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}}},nM(e)),iM(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}}})})}},mM=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}}}}},pM=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},gM=pn(["Input","Shared"],e=>{const t=Xt(e,qd(e));return[cM(t),dM(t)]},Gd,{resetFont:!1});pn(["Input","Component"],e=>{const t=Xt(e,qd(e));return[fM(t),mM(t),pM(t),kd(t)]},Gd,{resetFont:!1});var hM={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"},vM=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:hM}))},yM=c.forwardRef(vM);const Xd=c.createContext(null);var bM=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,l=t.indicator,s=l===void 0?{}:l,u=s.size,d=s.align,m=d===void 0?"center":d,p=c.useState(),g=ae(p,2),v=g[0],y=g[1],C=c.useRef(),S=Z.useCallback(function($){return typeof u=="function"?u($):typeof u=="number"?u:$},[u]);function b(){$n.cancel(C.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(),C.current=$n(function(){var O=v&&$&&Object.keys($).every(function(R){var _=$[R],I=v[R];return typeof _=="number"&&typeof I=="number"?Math.round(_)===Math.round(I):_===I});O||y($)}),b},[JSON.stringify(n),r,o,m,S]),{style:v}},H1={width:0,height:0,left:0,top:0};function CM(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)||H1,s=l.left+l.width,u=0;u<e.length;u+=1){var d=e[u].key,m=t.get(d);if(!m){var p;m=t.get((p=e[u-1])===null||p===void 0?void 0:p.key)||H1}var g=o.get(d)||K({},m);g.right=s-g.left-g.width,o.set(d,g)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function F1(e,t){var n=c.useRef(e),r=c.useState({}),o=ae(r,2),l=o[1];function s(u){var d=typeof u=="function"?u(n.current):u;d!==n.current&&t(d,n.current),n.current=d,l({})}return[n.current,s]}var SM=.1,V1=.01,Au=20,W1=Math.pow(.995,Au);function xM(e,t){var n=c.useState(),r=ae(n,2),o=r[0],l=r[1],s=c.useState(0),u=ae(s,2),d=u[0],m=u[1],p=c.useState(0),g=ae(p,2),v=g[0],y=g[1],C=c.useState(),S=ae(C,2),b=S[0],$=S[1],w=c.useRef();function O(T){var k=T.touches[0],L=k.screenX,j=k.screenY;l({x:L,y:j}),window.clearInterval(w.current)}function R(T){if(o){var k=T.touches[0],L=k.screenX,j=k.screenY;l({x:L,y:j});var D=L-o.x,A=j-o.y;t(D,A);var q=Date.now();m(q),y(q-d),$({x:D,y:A})}}function _(){if(o&&(l(null),$(null),b)){var T=b.x/v,k=b.y/v,L=Math.abs(T),j=Math.abs(k);if(Math.max(L,j)<SM)return;var D=T,A=k;w.current=window.setInterval(function(){if(Math.abs(D)<V1&&Math.abs(A)<V1){window.clearInterval(w.current);return}D*=W1,A*=W1,t(D*Au,A*Au)},Au)}}var I=c.useRef();function P(T){var k=T.deltaX,L=T.deltaY,j=0,D=Math.abs(k),A=Math.abs(L);D===A?j=I.current==="x"?k:L:D>A?(j=k,I.current="x"):(j=L,I.current="y"),t(-j,-j)&&T.preventDefault()}var N=c.useRef(null);N.current={onTouchStart:O,onTouchMove:R,onTouchEnd:_,onWheel:P},c.useEffect(function(){function T(D){N.current.onTouchStart(D)}function k(D){N.current.onTouchMove(D)}function L(D){N.current.onTouchEnd(D)}function j(D){N.current.onWheel(D)}return document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",k),document.removeEventListener("touchend",L)}},[])}function f2(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,Ap(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 wM(e){var t=c.useRef([]),n=c.useState({}),r=ae(n,2),o=r[1],l=c.useRef(typeof e=="function"?e():e),s=f2(function(){var d=l.current;t.current.forEach(function(m){d=m(d)}),t.current=[],l.current=d,o({})});function u(d){t.current.push(d),s()}return[l.current,u]}var U1={width:0,height:0,left:0,top:0,right:0};function $M(e,t,n,r,o,l,s){var u=s.tabs,d=s.tabPosition,m=s.rtl,p,g,v;return["top","bottom"].includes(d)?(p="width",g=m?"right":"left",v=Math.abs(n)):(p="height",g="top",v=-n),c.useMemo(function(){if(!u.length)return[0,0];for(var y=u.length,C=y,S=0;S<y;S+=1){var b=e.get(u[S].key)||U1;if(Math.floor(b[g]+b[p])>Math.floor(v+t)){C=S-1;break}}for(var $=0,w=y-1;w>=0;w-=1){var O=e.get(u[w].key)||U1;if(O[g]<v){$=w+1;break}}return $>C?[0,-1]:[$,C]},[e,t,r,o,l,v,d,u.map(function(y){return y.key}).join("_"),m])}function q1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var EM="TABS_DQ";function m2(e){return String(e).replace(/"/g,EM)}function jh(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var p2=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||"+")}),G1=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var l,s={};return gt(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}),OM=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,l=e.locale,s=e.mobile,u=e.more,d=u===void 0?{}:u,m=e.style,p=e.className,g=e.editable,v=e.tabBarGutter,y=e.rtl,C=e.removeAriaLabel,S=e.onTabClick,b=e.getPopupContainer,$=e.popupClassName,w=c.useState(!1),O=ae(w,2),R=O[0],_=O[1],I=c.useState(null),P=ae(I,2),N=P[0],T=P[1],k=d.icon,L=k===void 0?"More":k,j="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),A=N!==null?"".concat(j,"-").concat(N):null,q=l==null?void 0:l.dropdownAriaLabel;function W(Q,ne){Q.preventDefault(),Q.stopPropagation(),g.onEdit("remove",{key:ne,event:Q})}var V=c.createElement(zl,{onClick:function(ne){var te=ne.key,re=ne.domEvent;S(te,re),_(!1)},prefixCls:"".concat(D,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[N],"aria-label":q!==void 0?q:"expanded dropdown"},o.map(function(Q){var ne=Q.closable,te=Q.disabled,re=Q.closeIcon,fe=Q.key,me=Q.label,ue=jh(ne,re,g,te);return c.createElement(sc,{key:fe,id:"".concat(j,"-").concat(fe),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(fe),disabled:te},c.createElement("span",null,me),ue&&c.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),W(le,fe)}},re||g.removeIcon||"×"))}));function H(Q){for(var ne=o.filter(function(ue){return!ue.disabled}),te=ne.findIndex(function(ue){return ue.key===N})||0,re=ne.length,fe=0;fe<re;fe+=1){te=(te+Q+re)%re;var me=ne[te];if(!me.disabled){T(me.key);return}}}function Y(Q){var ne=Q.which;if(!R){[Ve.DOWN,Ve.SPACE,Ve.ENTER].includes(ne)&&(_(!0),Q.preventDefault());return}switch(ne){case Ve.UP:H(-1),Q.preventDefault();break;case Ve.DOWN:H(1),Q.preventDefault();break;case Ve.ESC:_(!1);break;case Ve.SPACE:case Ve.ENTER:N!==null&&S(N,Q);break}}c.useEffect(function(){var Q=document.getElementById(A);Q&&Q.scrollIntoView&&Q.scrollIntoView(!1)},[N]),c.useEffect(function(){R||T(null)},[R]);var U=G({},y?"marginRight":"marginLeft",v);o.length||(U.visibility="hidden",U.order=1);var z=ee(G({},"".concat(D,"-rtl"),y)),F=s?null:c.createElement(Vw,Oe({prefixCls:D,overlay:V,visible:o.length?R:!1,onVisibleChange:_,overlayClassName:ee(z,$),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},d),c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:U,"aria-haspopup":"listbox","aria-controls":j,id:"".concat(r,"-more"),"aria-expanded":R,onKeyDown:Y},L));return c.createElement("div",{className:ee("".concat(n,"-nav-operations"),p),style:m,ref:t},F,c.createElement(p2,{prefixCls:n,locale:l,editable:g}))});const RM=c.memo(OM,function(e,t){return t.tabMoving});var IM=function(t){var n=t.prefixCls,r=t.id,o=t.active,l=t.focus,s=t.tab,u=s.key,d=s.label,m=s.disabled,p=s.closeIcon,g=s.icon,v=t.closable,y=t.renderWrapper,C=t.removeAriaLabel,S=t.editable,b=t.onClick,$=t.onFocus,w=t.onBlur,O=t.onKeyDown,R=t.onMouseDown,_=t.onMouseUp,I=t.style,P=t.tabCount,N=t.currentPosition,T="".concat(n,"-tab"),k=jh(v,p,S,m);function L(W){m||b(W)}function j(W){W.preventDefault(),W.stopPropagation(),S.onEdit("remove",{key:u,event:W})}var D=c.useMemo(function(){return g&&typeof d=="string"?c.createElement("span",null,d):d},[d,g]),A=c.useRef(null);c.useEffect(function(){l&&A.current&&A.current.focus()},[l]);var q=c.createElement("div",{key:u,"data-node-key":m2(u),className:ee(T,G(G(G(G({},"".concat(T,"-with-remove"),k),"".concat(T,"-active"),o),"".concat(T,"-disabled"),m),"".concat(T,"-focus"),l)),style:I,onClick:L},c.createElement("div",{ref:A,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(u),className:"".concat(T,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(u),"aria-disabled":m,tabIndex:m?null:o?0:-1,onClick:function(V){V.stopPropagation(),L(V)},onKeyDown:O,onMouseDown:R,onMouseUp:_,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(P)),g&&c.createElement("span",{className:"".concat(T,"-icon")},g),d&&D),k&&c.createElement("button",{type:"button",role:"tab","aria-label":C||"remove",tabIndex:o?0:-1,className:"".concat(T,"-remove"),onClick:function(V){V.stopPropagation(),j(V)}},p||S.removeIcon||"×"));return y?y(q):q},_M=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,l=t.offsetTop,s=t.offsetLeft,u=t.getBoundingClientRect(),d=u.width,m=u.height,p=u.left,g=u.top;return Math.abs(d-r)<1?[d,m,p-n.left,g-n.top]:[r,o,s,l]},il=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(),d=u.width,m=u.height;if(Math.abs(d-o)<1)return[d,m]}return[o,s]},bu=function(t,n){return t[n?0:1]},K1=c.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,l=e.animated,s=e.activeKey,u=e.rtl,d=e.extra,m=e.editable,p=e.locale,g=e.tabPosition,v=e.tabBarGutter,y=e.children,C=e.onTabClick,S=e.onTabScroll,b=e.indicator,$=c.useContext(Xd),w=$.prefixCls,O=$.tabs,R=c.useRef(null),_=c.useRef(null),I=c.useRef(null),P=c.useRef(null),N=c.useRef(null),T=c.useRef(null),k=c.useRef(null),L=g==="top"||g==="bottom",j=F1(0,function(nt,Ke){L&&S&&S({direction:nt>Ke?"left":"right"})}),D=ae(j,2),A=D[0],q=D[1],W=F1(0,function(nt,Ke){!L&&S&&S({direction:nt>Ke?"top":"bottom"})}),V=ae(W,2),H=V[0],Y=V[1],U=c.useState([0,0]),z=ae(U,2),F=z[0],Q=z[1],ne=c.useState([0,0]),te=ae(ne,2),re=te[0],fe=te[1],me=c.useState([0,0]),ue=ae(me,2),Ce=ue[0],le=ue[1],ce=c.useState([0,0]),he=ae(ce,2),ye=he[0],de=he[1],se=wM(new Map),ve=ae(se,2),Se=ve[0],Re=ve[1],Ne=CM(O,Se,re[0]),we=bu(F,L),$e=bu(re,L),ke=bu(Ce,L),Ie=bu(ye,L),Ge=Math.floor(we)<Math.floor($e+ke),tt=Ge?we-Ie:we-ke,St="".concat(w,"-nav-operations-hidden"),ct=0,qe=0;L&&u?(ct=0,qe=Math.max(0,$e-tt)):(ct=Math.min(0,tt-$e),qe=0);function at(nt){return nt<ct?ct:nt>qe?qe:nt}var We=c.useRef(null),mt=c.useState(),Qe=ae(mt,2),je=Qe[0],Je=Qe[1];function Te(){Je(Date.now())}function He(){We.current&&clearTimeout(We.current)}xM(P,function(nt,Ke){function wt(Ft,Fe){Ft(function(dt){var Rt=at(dt+Fe);return Rt})}return Ge?(L?wt(q,nt):wt(Y,Ke),He(),Te(),!0):!1}),c.useEffect(function(){return He(),je&&(We.current=setTimeout(function(){Je(0)},100)),He},[je]);var Ot=$M(Ne,tt,L?A:H,$e,ke,Ie,K(K({},e),{},{tabs:O})),ht=ae(Ot,2),Gt=ht[0],Ut=ht[1],dn=Ln(function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,Ke=Ne.get(nt)||{width:0,height:0,left:0,right:0,top:0};if(L){var wt=A;u?Ke.right<A?wt=Ke.right:Ke.right+Ke.width>A+tt&&(wt=Ke.right+Ke.width-tt):Ke.left<-A?wt=-Ke.left:Ke.left+Ke.width>-A+tt&&(wt=-(Ke.left+Ke.width-tt)),Y(0),q(at(wt))}else{var Ft=H;Ke.top<-H?Ft=-Ke.top:Ke.top+Ke.height>-H+tt&&(Ft=-(Ke.top+Ke.height-tt)),q(0),Y(at(Ft))}}),Sn=c.useState(),Qt=ae(Sn,2),jt=Qt[0],xt=Qt[1],Yt=c.useState(!1),Vt=ae(Yt,2),Ze=Vt[0],Ct=Vt[1],lt=O.filter(function(nt){return!nt.disabled}).map(function(nt){return nt.key}),_e=function(Ke){var wt=lt.indexOf(jt||s),Ft=lt.length,Fe=(wt+Ke+Ft)%Ft,dt=lt[Fe];xt(dt)},Ee=function(Ke,wt){var Ft=lt.indexOf(Ke),Fe=O.find(function(Rt){return Rt.key===Ke}),dt=jh(Fe==null?void 0:Fe.closable,Fe==null?void 0:Fe.closeIcon,m,Fe==null?void 0:Fe.disabled);dt&&(wt.preventDefault(),wt.stopPropagation(),m.onEdit("remove",{key:Ke,event:wt}),Ft===lt.length-1?_e(-1):_e(1))},xe=function(Ke,wt){Ct(!0),wt.button===1&&Ee(Ke,wt)},ze=function(Ke){var wt=Ke.code,Ft=u&&L,Fe=lt[0],dt=lt[lt.length-1];switch(wt){case"ArrowLeft":{L&&_e(Ft?1:-1);break}case"ArrowRight":{L&&_e(Ft?-1:1);break}case"ArrowUp":{Ke.preventDefault(),L||_e(-1);break}case"ArrowDown":{Ke.preventDefault(),L||_e(1);break}case"Home":{Ke.preventDefault(),xt(Fe);break}case"End":{Ke.preventDefault(),xt(dt);break}case"Enter":case"Space":{Ke.preventDefault(),C(jt??s,Ke);break}case"Backspace":case"Delete":{Ee(jt,Ke);break}}},Xe={};L?Xe[u?"marginRight":"marginLeft"]=v:Xe.marginTop=v;var Ye=O.map(function(nt,Ke){var wt=nt.key;return c.createElement(IM,{id:o,prefixCls:w,key:wt,tab:nt,style:Ke===0?void 0:Xe,closable:nt.closable,editable:m,active:wt===s,focus:wt===jt,renderWrapper:y,removeAriaLabel:p==null?void 0:p.removeAriaLabel,tabCount:lt.length,currentPosition:Ke+1,onClick:function(Fe){C(wt,Fe)},onKeyDown:ze,onFocus:function(){Ze||xt(wt),dn(wt),Te(),P.current&&(u||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:function(){xt(void 0)},onMouseDown:function(Fe){return xe(wt,Fe)},onMouseUp:function(){Ct(!1)}})}),zt=function(){return Re(function(){var Ke,wt=new Map,Ft=(Ke=N.current)===null||Ke===void 0?void 0:Ke.getBoundingClientRect();return O.forEach(function(Fe){var dt,Rt=Fe.key,ln=(dt=N.current)===null||dt===void 0?void 0:dt.querySelector('[data-node-key="'.concat(m2(Rt),'"]'));if(ln){var Hn=_M(ln,Ft),Rn=ae(Hn,4),hr=Rn[0],Qn=Rn[1],vr=Rn[2],Yn=Rn[3];wt.set(Rt,{width:hr,height:Qn,left:vr,top:Yn})}}),wt})};c.useEffect(function(){zt()},[O.map(function(nt){return nt.key}).join("_")]);var Ht=f2(function(){var nt=il(R),Ke=il(_),wt=il(I);Q([nt[0]-Ke[0]-wt[0],nt[1]-Ke[1]-wt[1]]);var Ft=il(k);le(Ft);var Fe=il(T);de(Fe);var dt=il(N);fe([dt[0]-Ft[0],dt[1]-Ft[1]]),zt()}),Pt=O.slice(0,Gt),Tt=O.slice(Ut+1),bn=[].concat(Ae(Pt),Ae(Tt)),hn=Ne.get(s),xn=bM({activeTabOffset:hn,horizontal:L,indicator:b,rtl:u}),Pn=xn.style;c.useEffect(function(){dn()},[s,ct,qe,q1(hn),q1(Ne),L]),c.useEffect(function(){Ht()},[u]);var Zt=!!bn.length,on="".concat(w,"-nav-wrap"),Le,Ue,$t,ut;return L?u?(Ue=A>0,Le=A!==qe):(Le=A<0,Ue=A!==ct):($t=H<0,ut=H!==ct),c.createElement(Co,{onResize:Ht},c.createElement("div",{ref:Xo(t,R),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:ee("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Te()}},c.createElement(G1,{ref:_,position:"left",extra:d,prefixCls:w}),c.createElement(Co,{onResize:Ht},c.createElement("div",{className:ee(on,G(G(G(G({},"".concat(on,"-ping-left"),Le),"".concat(on,"-ping-right"),Ue),"".concat(on,"-ping-top"),$t),"".concat(on,"-ping-bottom"),ut)),ref:P},c.createElement(Co,{onResize:Ht},c.createElement("div",{ref:N,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(H,"px)"),transition:je?"none":void 0}},Ye,c.createElement(p2,{ref:k,prefixCls:w,locale:p,editable:m,style:K(K({},Ye.length===0?void 0:Xe),{},{visibility:Zt?"hidden":null})}),c.createElement("div",{className:ee("".concat(w,"-ink-bar"),G({},"".concat(w,"-ink-bar-animated"),l.inkBar)),style:Pn}))))),c.createElement(RM,Oe({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:T,prefixCls:w,tabs:bn,className:!Zt&&St,tabMoving:!!je})),c.createElement(G1,{ref:I,position:"right",extra:d,prefixCls:w})))}),g2=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.id,s=e.active,u=e.tabKey,d=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:ee(n,s&&"".concat(n,"-active"),r),ref:t},d)}),PM=["renderTabBar"],TM=["label","key"],NM=function(t){var n=t.renderTabBar,r=kt(t,PM),o=c.useContext(Xd),l=o.tabs;if(n){var s=K(K({},r),{},{panes:l.map(function(u){var d=u.label,m=u.key,p=kt(u,TM);return c.createElement(g2,Oe({tab:d,key:m,tabKey:m},p))})});return n(s,K1)}return c.createElement(K1,r)},kM=["key","forceRender","style","className","destroyInactiveTabPane"],MM=function(t){var n=t.id,r=t.activeKey,o=t.animated,l=t.tabPosition,s=t.destroyInactiveTabPane,u=c.useContext(Xd),d=u.prefixCls,m=u.tabs,p=o.tabPane,g="".concat(d,"-tabpane");return c.createElement("div",{className:ee("".concat(d,"-content-holder"))},c.createElement("div",{className:ee("".concat(d,"-content"),"".concat(d,"-content-").concat(l),G({},"".concat(d,"-content-animated"),p))},m.map(function(v){var y=v.key,C=v.forceRender,S=v.style,b=v.className,$=v.destroyInactiveTabPane,w=kt(v,kM),O=y===r;return c.createElement(ro,Oe({key:y,visible:O,forceRender:C,removeOnLeave:!!(s||$),leavedClassName:"".concat(g,"-hidden")},o.tabPaneMotion),function(R,_){var I=R.style,P=R.className;return c.createElement(g2,Oe({},w,{prefixCls:g,id:n,tabKey:y,animated:p,active:O,style:K(K({},S),I),className:ee(b,P),ref:_}))})})))};function jM(){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=K({inkBar:!0},gt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var zM=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],X1=0,LM=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,d=e.activeKey,m=e.defaultActiveKey,p=e.editable,g=e.animated,v=e.tabPosition,y=v===void 0?"top":v,C=e.tabBarGutter,S=e.tabBarStyle,b=e.tabBarExtraContent,$=e.locale,w=e.more,O=e.destroyInactiveTabPane,R=e.renderTabBar,_=e.onChange,I=e.onTabClick,P=e.onTabScroll,N=e.getPopupContainer,T=e.popupClassName,k=e.indicator,L=kt(e,zM),j=c.useMemo(function(){return(s||[]).filter(function(ye){return ye&&gt(ye)==="object"&&"key"in ye})},[s]),D=u==="rtl",A=jM(g),q=c.useState(!1),W=ae(q,2),V=W[0],H=W[1];c.useEffect(function(){H(gh())},[]);var Y=An(function(){var ye;return(ye=j[0])===null||ye===void 0?void 0:ye.key},{value:d,defaultValue:m}),U=ae(Y,2),z=U[0],F=U[1],Q=c.useState(function(){return j.findIndex(function(ye){return ye.key===z})}),ne=ae(Q,2),te=ne[0],re=ne[1];c.useEffect(function(){var ye=j.findIndex(function(se){return se.key===z});if(ye===-1){var de;ye=Math.max(0,Math.min(te,j.length-1)),F((de=j[ye])===null||de===void 0?void 0:de.key)}re(ye)},[j.map(function(ye){return ye.key}).join("_"),z,te]);var fe=An(null,{value:n}),me=ae(fe,2),ue=me[0],Ce=me[1];c.useEffect(function(){n||(Ce("rc-tabs-".concat(X1)),X1+=1)},[]);function le(ye,de){I==null||I(ye,de);var se=ye!==z;F(ye),se&&(_==null||_(ye))}var ce={id:ue,activeKey:z,animated:A,tabPosition:y,rtl:D,mobile:V},he=K(K({},ce),{},{editable:p,locale:$,more:w,tabBarGutter:C,onTabClick:le,onTabScroll:P,extra:b,style:S,panes:null,getPopupContainer:N,popupClassName:T,indicator:k});return c.createElement(Xd.Provider,{value:{tabs:j,prefixCls:o}},c.createElement("div",Oe({ref:t,id:n,className:ee(o,"".concat(o,"-").concat(y),G(G(G({},"".concat(o,"-mobile"),V),"".concat(o,"-editable"),p),"".concat(o,"-rtl"),D),l)},L),c.createElement(NM,Oe({},he,{renderTabBar:R})),c.createElement(MM,Oe({destroyInactiveTabPane:O},ce,{animated:A}))))});const BM={motionAppear:!1,motionEnter:!0,motionLeave:!0};function AM(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({},BM),{motionName:Go(e,"switch")})),n}var DM=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 HM(e){return e.filter(t=>t)}function FM(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=Mr(t).map(r=>{if(c.isValidElement(r)){const{key:o,props:l}=r,s=l||{},{tab:u}=s,d=DM(s,["tab"]);return Object.assign(Object.assign({key:String(o)},d),{label:u})}return null});return HM(n)}const VM=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}`}}}}},[Ui(e,"slide-up"),Ui(e,"slide-down")]]},WM=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)`]:Ol(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}}}}}}},UM=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Dn(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({},Bs),{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"}}})}})}},qM=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}}}}}},GM=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}}}}}},KM=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:l,horizontalItemPadding:s,itemSelectedColor:u,itemColor:d}=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:d,"&-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}},xo(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn:focus-visible`]:Ol(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}}}},XM=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"}}}}},QM=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({},Dn(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}},xo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),KM(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},xo(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"}}}}}},YM=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:l}=e,s=t||l,u=n||o,d=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:u,cardHeightLG:d,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(d-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}},JM=pn("Tabs",e=>{const t=Xt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${J(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${J(e.horizontalItemGutter)}`});return[GM(t),XM(t),qM(t),UM(t),WM(t),QM(t),VM(t)]},YM),ZM=()=>null;var ej=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 tj=c.forwardRef((e,t)=>{var n,r,o,l,s,u,d,m,p,g,v;const{type:y,className:C,rootClassName:S,size:b,onEdit:$,hideAdd:w,centered:O,addIcon:R,removeIcon:_,moreIcon:I,more:P,popupClassName:N,children:T,items:k,animated:L,style:j,indicatorSize:D,indicator:A,destroyInactiveTabPane:q,destroyOnHidden:W}=e,V=ej(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:H}=V,{direction:Y,tabs:U,getPrefixCls:z,getPopupContainer:F}=c.useContext(Et),Q=z("tabs",H),ne=pi(Q),[te,re,fe]=JM(Q,ne),me=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:me.current}));let ue;y==="editable-card"&&(ue={onEdit:(se,{key:ve,event:Se})=>{$==null||$(se==="add"?Se:ve,se)},removeIcon:(n=_??(U==null?void 0:U.removeIcon))!==null&&n!==void 0?n:c.createElement(Wi,null),addIcon:(R??(U==null?void 0:U.addIcon))||c.createElement(yM,null),showAdd:w!==!0});const Ce=z(),le=Yo(b),ce=FM(k,T),he=AM(Q,L),ye=Object.assign(Object.assign({},U==null?void 0:U.style),j),de={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(o=U==null?void 0:U.indicator)===null||o===void 0?void 0:o.align,size:(d=(s=(l=A==null?void 0:A.size)!==null&&l!==void 0?l:D)!==null&&s!==void 0?s:(u=U==null?void 0:U.indicator)===null||u===void 0?void 0:u.size)!==null&&d!==void 0?d:U==null?void 0:U.indicatorSize};return te(c.createElement(LM,Object.assign({ref:me,direction:Y,getPopupContainer:F},V,{items:ce,className:ee({[`${Q}-${le}`]:le,[`${Q}-card`]:["card","editable-card"].includes(y),[`${Q}-editable-card`]:y==="editable-card",[`${Q}-centered`]:O},U==null?void 0:U.className,C,S,re,fe,ne),popupClassName:ee(N,re,fe,ne),style:ye,editable:ue,more:Object.assign({icon:(v=(g=(p=(m=U==null?void 0:U.more)===null||m===void 0?void 0:m.icon)!==null&&p!==void 0?p:U==null?void 0:U.moreIcon)!==null&&g!==void 0?g:I)!==null&&v!==void 0?v:c.createElement(Th,null),transitionName:`${Ce}-slide-up`},P),prefixCls:Q,animated:he,indicator:de,destroyInactiveTabPane:W??q})))}),h2=tj;h2.TabPane=ZM;function nj(e,t,n){var r=n||{},o=r.noTrailing,l=o===void 0?!1:o,s=r.noLeading,u=s===void 0?!1:s,d=r.debounceMode,m=d===void 0?void 0:d,p,g=!1,v=0;function y(){p&&clearTimeout(p)}function C(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,R=Date.now()-v;if(g)return;function _(){v=Date.now(),t.apply(O,$)}function I(){p=void 0}!u&&m&&!p&&_(),y(),m===void 0&&R>e?u?(v=Date.now(),l||(p=setTimeout(m?I:_,e))):_():l!==!0&&(p=setTimeout(m?I:_,m===void 0?e-R:e))}return S.cancel=C,S}function rj(e,t,n){var r={},o=r.atBegin,l=o===void 0?!1:o;return nj(e,t,{debounceMode:l!==!1})}const v2=c.createContext({});var oj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Q1(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 ij=["xs","sm","md","lg","xl","xxl"],aj=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(Et),{gutter:o,wrap:l}=c.useContext(v2),{prefixCls:s,span:u,order:d,offset:m,push:p,pull:g,className:v,children:y,flex:C,style:S}=e,b=oj(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",s),[w,O,R]=cP($),_={};let I={};ij.forEach(T=>{let k={};const L=e[T];typeof L=="number"?k.span=L:typeof L=="object"&&(k=L||{}),delete b[T],I=Object.assign(Object.assign({},I),{[`${$}-${T}-${k.span}`]:k.span!==void 0,[`${$}-${T}-order-${k.order}`]:k.order||k.order===0,[`${$}-${T}-offset-${k.offset}`]:k.offset||k.offset===0,[`${$}-${T}-push-${k.push}`]:k.push||k.push===0,[`${$}-${T}-pull-${k.pull}`]:k.pull||k.pull===0,[`${$}-rtl`]:r==="rtl"}),k.flex&&(I[`${$}-${T}-flex`]=!0,_[`--${$}-${T}-flex`]=Q1(k.flex))});const P=ee($,{[`${$}-${u}`]:u!==void 0,[`${$}-order-${d}`]:d,[`${$}-offset-${m}`]:m,[`${$}-push-${p}`]:p,[`${$}-pull-${g}`]:g},v,I,O,R),N={};if(o!=null&&o[0]){const T=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;N.paddingLeft=T,N.paddingRight=T}return C&&(N.flex=Q1(C),l===!1&&!N.minWidth&&(N.minWidth=0)),w(c.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},N),S),_),className:P,ref:t}),y))});function lj(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<va.length;u++){const d=va[u];if(o[d]&&l[d]!==void 0){n[s]=l[d];break}}else n[s]=l}),n}var sj=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 Y1(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<va.length;l++){const s=va[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 cj=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:l,style:s,children:u,gutter:d=0,wrap:m}=e,p=sj(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:v}=c.useContext(Et),y=Ch(!0,null),C=Y1(o,y),S=Y1(r,y),b=g("row",n),[$,w,O]=sP(b),R=lj(d,y),_=ee(b,{[`${b}-no-wrap`]:m===!1,[`${b}-${S}`]:S,[`${b}-${C}`]:C,[`${b}-rtl`]:v==="rtl"},l,w,O),I={};if(R!=null&&R[0]){const k=typeof R[0]=="number"?`${R[0]/-2}px`:`calc(${R[0]} / -2)`;I.marginLeft=k,I.marginRight=k}const[P,N]=R;I.rowGap=N;const T=c.useMemo(()=>({gutter:[P,N],wrap:m}),[P,N,m]);return $(c.createElement(v2.Provider,{value:T},c.createElement("div",Object.assign({},p,{className:_,style:Object.assign(Object.assign({},I),s),ref:t}),u)))}),uj=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},dj=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:l,orientationMargin:s,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},Dn(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}}})}},fj=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),mj=pn("Divider",e=>{const t=Xt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[dj(t),uj(t)]},fj,{unitless:{orientationMargin:!0}});var pj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gj={small:"sm",middle:"md"},J1=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=gr("divider"),{prefixCls:l,type:s="horizontal",orientation:u="center",orientationMargin:d,className:m,rootClassName:p,children:g,dashed:v,variant:y="solid",plain:C,style:S,size:b}=e,$=pj(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",l),[O,R,_]=mj(w),I=Yo(b),P=gj[I],N=!!g,T=c.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),k=T==="start"&&d!=null,L=T==="end"&&d!=null,j=ee(w,r,R,_,`${w}-${s}`,{[`${w}-with-text`]:N,[`${w}-with-text-${T}`]:N,[`${w}-dashed`]:!!v,[`${w}-${y}`]:y!=="solid",[`${w}-plain`]:!!C,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:k,[`${w}-no-default-orientation-margin-end`]:L,[`${w}-${P}`]:!!P},m,p),D=c.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),A={marginInlineStart:k?D:void 0,marginInlineEnd:L?D:void 0};return O(c.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},o),S)},$,{role:"separator"}),g&&s!=="vertical"&&c.createElement("span",{className:`${w}-inner-text`,style:A},g)))};function hj(e){return!!(e.addonBefore||e.addonAfter)}function vj(e){return!!(e.prefix||e.suffix||e.allowClear)}function Z1(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 eC(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Z1(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Z1(t,e,r),n(o);return}n(o)}}function yj(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 bj=Z.forwardRef(function(e,t){var n,r,o,l=e.inputElement,s=e.children,u=e.prefixCls,d=e.prefix,m=e.suffix,p=e.addonBefore,g=e.addonAfter,v=e.className,y=e.style,C=e.disabled,S=e.readOnly,b=e.focused,$=e.triggerFocus,w=e.allowClear,O=e.value,R=e.handleReset,_=e.hidden,I=e.classes,P=e.classNames,N=e.dataAttrs,T=e.styles,k=e.components,L=e.onClear,j=s??l,D=(k==null?void 0:k.affixWrapper)||"span",A=(k==null?void 0:k.groupWrapper)||"span",q=(k==null?void 0:k.wrapper)||"span",W=(k==null?void 0:k.groupAddon)||"span",V=c.useRef(null),H=function(de){var se;(se=V.current)!==null&&se!==void 0&&se.contains(de.target)&&($==null||$())},Y=vj(e),U=c.cloneElement(j,{value:O,className:ee((n=j.props)===null||n===void 0?void 0:n.className,!Y&&(P==null?void 0:P.variant))||null}),z=c.useRef(null);if(Z.useImperativeHandle(t,function(){return{nativeElement:z.current||V.current}}),Y){var F=null;if(w){var Q=!C&&!S&&O,ne="".concat(u,"-clear-icon"),te=gt(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";F=Z.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){R==null||R(de),L==null||L()},onMouseDown:function(de){return de.preventDefault()},className:ee(ne,G(G({},"".concat(ne,"-hidden"),!Q),"".concat(ne,"-has-suffix"),!!m))},te)}var re="".concat(u,"-affix-wrapper"),fe=ee(re,G(G(G(G(G({},"".concat(u,"-disabled"),C),"".concat(re,"-disabled"),C),"".concat(re,"-focused"),b),"".concat(re,"-readonly"),S),"".concat(re,"-input-with-clear-btn"),m&&w&&O),I==null?void 0:I.affixWrapper,P==null?void 0:P.affixWrapper,P==null?void 0:P.variant),me=(m||w)&&Z.createElement("span",{className:ee("".concat(u,"-suffix"),P==null?void 0:P.suffix),style:T==null?void 0:T.suffix},F,m);U=Z.createElement(D,Oe({className:fe,style:T==null?void 0:T.affixWrapper,onClick:H},N==null?void 0:N.affixWrapper,{ref:V}),d&&Z.createElement("span",{className:ee("".concat(u,"-prefix"),P==null?void 0:P.prefix),style:T==null?void 0:T.prefix},d),U,me)}if(hj(e)){var ue="".concat(u,"-group"),Ce="".concat(ue,"-addon"),le="".concat(ue,"-wrapper"),ce=ee("".concat(u,"-wrapper"),ue,I==null?void 0:I.wrapper,P==null?void 0:P.wrapper),he=ee(le,G({},"".concat(le,"-disabled"),C),I==null?void 0:I.group,P==null?void 0:P.groupWrapper);U=Z.createElement(A,{className:he,ref:z},Z.createElement(q,{className:ce},p&&Z.createElement(W,{className:Ce},p),U,g&&Z.createElement(W,{className:Ce},g)))}return Z.cloneElement(U,{className:ee((r=U.props)===null||r===void 0?void 0:r.className,v)||null,style:K(K({},(o=U.props)===null||o===void 0?void 0:o.style),y),hidden:_})}),Cj=["show"];function Sj(e,t){return c.useMemo(function(){var n={};t&&(n.show=gt(t)==="object"&&t.formatter?t.formatter:!!t),n=K(K({},n),e);var r=n,o=r.show,l=kt(r,Cj);return K(K({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(s){return s.length}})},[e,t])}const xj=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Z.createElement(wd,null)}),t};var tC=c.createContext(null),y2=c.createContext({}),wj=["prefixCls","className","containerRef"],$j=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,l=kt(t,wj),s=c.useContext(y2),u=s.panel,d=Xo(u,o);return c.createElement("div",Oe({className:ee("".concat(n,"-content"),r),role:"dialog",ref:d},oo(t,{aria:!0}),{"aria-modal":"true"},l))};function nC(e){return typeof e=="string"&&String(Number(e))===e?(ur(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var rC={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ej(e,t){var n,r,o,l=e.prefixCls,s=e.open,u=e.placement,d=e.inline,m=e.push,p=e.forceRender,g=e.autoFocus,v=e.keyboard,y=e.classNames,C=e.rootClassName,S=e.rootStyle,b=e.zIndex,$=e.className,w=e.id,O=e.style,R=e.motion,_=e.width,I=e.height,P=e.children,N=e.mask,T=e.maskClosable,k=e.maskMotion,L=e.maskClassName,j=e.maskStyle,D=e.afterOpenChange,A=e.onClose,q=e.onMouseEnter,W=e.onMouseOver,V=e.onMouseLeave,H=e.onClick,Y=e.onKeyDown,U=e.onKeyUp,z=e.styles,F=e.drawerRender,Q=c.useRef(),ne=c.useRef(),te=c.useRef();c.useImperativeHandle(t,function(){return Q.current});var re=function($e){var ke=$e.keyCode,Ie=$e.shiftKey;switch(ke){case Ve.TAB:{if(ke===Ve.TAB){if(!Ie&&document.activeElement===te.current){var Ge;(Ge=ne.current)===null||Ge===void 0||Ge.focus({preventScroll:!0})}else if(Ie&&document.activeElement===ne.current){var tt;(tt=te.current)===null||tt===void 0||tt.focus({preventScroll:!0})}}break}case Ve.ESC:{A&&v&&($e.stopPropagation(),A($e));break}}};c.useEffect(function(){if(s&&g){var we;(we=Q.current)===null||we===void 0||we.focus({preventScroll:!0})}},[s]);var fe=c.useState(!1),me=ae(fe,2),ue=me[0],Ce=me[1],le=c.useContext(tC),ce;typeof m=="boolean"?ce=m?{}:{distance:0}:ce=m||{};var he=(n=(r=(o=ce)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:le==null?void 0:le.pushDistance)!==null&&n!==void 0?n:180,ye=c.useMemo(function(){return{pushDistance:he,push:function(){Ce(!0)},pull:function(){Ce(!1)}}},[he]);c.useEffect(function(){if(s){var we;le==null||(we=le.push)===null||we===void 0||we.call(le)}else{var $e;le==null||($e=le.pull)===null||$e===void 0||$e.call(le)}},[s]),c.useEffect(function(){return function(){var we;le==null||(we=le.pull)===null||we===void 0||we.call(le)}},[]);var de=c.createElement(ro,Oe({key:"mask"},k,{visible:N&&s}),function(we,$e){var ke=we.className,Ie=we.style;return c.createElement("div",{className:ee("".concat(l,"-mask"),ke,y==null?void 0:y.mask,L),style:K(K(K({},Ie),j),z==null?void 0:z.mask),onClick:T&&s?A:void 0,ref:$e})}),se=typeof R=="function"?R(u):R,ve={};if(ue&&he)switch(u){case"top":ve.transform="translateY(".concat(he,"px)");break;case"bottom":ve.transform="translateY(".concat(-he,"px)");break;case"left":ve.transform="translateX(".concat(he,"px)");break;default:ve.transform="translateX(".concat(-he,"px)");break}u==="left"||u==="right"?ve.width=nC(_):ve.height=nC(I);var Se={onMouseEnter:q,onMouseOver:W,onMouseLeave:V,onClick:H,onKeyDown:Y,onKeyUp:U},Re=c.createElement(ro,Oe({key:"panel"},se,{visible:s,forceRender:p,onVisibleChanged:function($e){D==null||D($e)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(we,$e){var ke=we.className,Ie=we.style,Ge=c.createElement($j,Oe({id:w,containerRef:$e,prefixCls:l,className:ee($,y==null?void 0:y.content),style:K(K({},O),z==null?void 0:z.content)},oo(e,{aria:!0}),Se),P);return c.createElement("div",Oe({className:ee("".concat(l,"-content-wrapper"),y==null?void 0:y.wrapper,ke),style:K(K(K({},ve),Ie),z==null?void 0:z.wrapper)},oo(e,{data:!0})),F?F(Ge):Ge)}),Ne=K({},S);return b&&(Ne.zIndex=b),c.createElement(tC.Provider,{value:ye},c.createElement("div",{className:ee(l,"".concat(l,"-").concat(u),C,G(G({},"".concat(l,"-open"),s),"".concat(l,"-inline"),d)),style:Ne,tabIndex:-1,ref:Q,onKeyDown:re},de,c.createElement("div",{tabIndex:0,ref:ne,style:rC,"aria-hidden":"true","data-sentinel":"start"}),Re,c.createElement("div",{tabIndex:0,ref:te,style:rC,"aria-hidden":"true","data-sentinel":"end"})))}var Oj=c.forwardRef(Ej),Rj=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,l=o===void 0?"rc-drawer":o,s=t.placement,u=s===void 0?"right":s,d=t.autoFocus,m=d===void 0?!0:d,p=t.keyboard,g=p===void 0?!0:p,v=t.width,y=v===void 0?378:v,C=t.mask,S=C===void 0?!0:C,b=t.maskClosable,$=b===void 0?!0:b,w=t.getContainer,O=t.forceRender,R=t.afterOpenChange,_=t.destroyOnClose,I=t.onMouseEnter,P=t.onMouseOver,N=t.onMouseLeave,T=t.onClick,k=t.onKeyDown,L=t.onKeyUp,j=t.panelRef,D=c.useState(!1),A=ae(D,2),q=A[0],W=A[1],V=c.useState(!1),H=ae(V,2),Y=H[0],U=H[1];rn(function(){U(!0)},[]);var z=Y?r:!1,F=c.useRef(),Q=c.useRef();rn(function(){z&&(Q.current=document.activeElement)},[z]);var ne=function(ue){var Ce;if(W(ue),R==null||R(ue),!ue&&Q.current&&!((Ce=F.current)!==null&&Ce!==void 0&&Ce.contains(Q.current))){var le;(le=Q.current)===null||le===void 0||le.focus({preventScroll:!0})}},te=c.useMemo(function(){return{panel:j}},[j]);if(!O&&!q&&!z&&_)return null;var re={onMouseEnter:I,onMouseOver:P,onMouseLeave:N,onClick:T,onKeyDown:k,onKeyUp:L},fe=K(K({},t),{},{open:z,prefixCls:l,placement:u,autoFocus:m,keyboard:g,width:y,mask:S,maskClosable:$,inline:w===!1,afterOpenChange:ne,ref:F},re);return c.createElement(y2.Provider,{value:te},c.createElement(Md,{open:z||O||q,autoDestroy:!1,getContainer:w,autoLock:S&&(z||q)},c.createElement(Oj,fe)))};const b2=e=>{var t,n;const{prefixCls:r,ariaId:o,title:l,footer:s,extra:u,closable:d,loading:m,onClose:p,headerStyle:g,bodyStyle:v,footerStyle:y,children:C,classNames:S,styles:b}=e,$=gr("drawer");let w;d===!1?w=void 0:d===void 0||d===!0?w="start":w=(d==null?void 0:d.placement)==="end"?"end":"start";const O=c.useCallback(N=>c.createElement("button",{type:"button",onClick:p,className:ee(`${r}-close`,{[`${r}-close-${w}`]:w==="end"})},N),[p,r,w]),[R,_]=nh(Rl(e),Rl($),{closable:!0,closeIconRender:O}),I=()=>{var N,T;return!l&&!R?null:c.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(N=$.styles)===null||N===void 0?void 0:N.header),g),b==null?void 0:b.header),className:ee(`${r}-header`,{[`${r}-header-close-only`]:R&&!l&&!u},(T=$.classNames)===null||T===void 0?void 0:T.header,S==null?void 0:S.header)},c.createElement("div",{className:`${r}-header-title`},w==="start"&&_,l&&c.createElement("div",{className:`${r}-title`,id:o},l)),u&&c.createElement("div",{className:`${r}-extra`},u),w==="end"&&_)},P=()=>{var N,T;if(!s)return null;const k=`${r}-footer`;return c.createElement("div",{className:ee(k,(N=$.classNames)===null||N===void 0?void 0:N.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign(Object.assign({},(T=$.styles)===null||T===void 0?void 0:T.footer),y),b==null?void 0:b.footer)},s)};return c.createElement(c.Fragment,null,I(),c.createElement("div",{className:ee(`${r}-body`,S==null?void 0:S.body,(t=$.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=$.styles)===null||n===void 0?void 0:n.body),v),b==null?void 0:b.body)},m?c.createElement(Sa,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):C),P())},Ij=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},C2=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),S2=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},C2({opacity:e},{opacity:1})),_j=(e,t)=>[S2(.7,t),C2({transform:Ij(e)},{transform:"none"})],Pj=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:S2(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:_j(o,n)}),{})}}},Tj=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:l,motionDurationSlow:s,motionDurationMid:u,paddingXS:d,padding:m,paddingLG:p,fontSizeLG:g,lineHeightLG:v,lineWidth:y,lineType:C,colorSplit:S,marginXS:b,colorIcon:$,colorIconHover:w,colorBgTextHover:O,colorBgTextActive:R,colorText:_,fontWeightStrong:I,footerPaddingBlock:P,footerPaddingInline:N,calc:T}=e,k=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:_,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[k]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${s}`,"&-hidden":{display:"none"}},[`&-left > ${k}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${k}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${k}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${k}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${J(m)} ${J(p)}`,fontSize:g,lineHeight:v,borderBottom:`${J(y)} ${C} ${S}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:T(g).add(d).equal(),height:T(g).add(d).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:$,fontWeight:I,fontSize:g,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${u}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:b},[`&:not(${n}-close-end)`]:{marginInlineEnd:b},"&:hover":{color:w,backgroundColor:O,textDecoration:"none"},"&:active":{backgroundColor:R}},xo(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:g,lineHeight:v},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:p,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${J(P)} ${J(N)}`,borderTop:`${J(y)} ${C} ${S}`},"&-rtl":{direction:"rtl"}}}},Nj=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),x2=pn("Drawer",e=>{const t=Xt(e,{});return[Tj(t),Pj(t)]},Nj);var w2=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 kj={distance:180},$2=e=>{const{rootClassName:t,width:n,height:r,size:o="default",mask:l=!0,push:s=kj,open:u,afterOpenChange:d,onClose:m,prefixCls:p,getContainer:g,panelRef:v=null,style:y,className:C,"aria-labelledby":S,visible:b,afterVisibleChange:$,maskStyle:w,drawerStyle:O,contentWrapperStyle:R,destroyOnClose:_,destroyOnHidden:I}=e,P=w2(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),N=jd(),T=P.title?N:void 0,{getPopupContainer:k,getPrefixCls:L,direction:j,className:D,style:A,classNames:q,styles:W}=gr("drawer"),V=L("drawer",p),[H,Y,U]=x2(V),z=g===void 0&&k?()=>k(document.body):g,F=ee({"no-mask":!l,[`${V}-rtl`]:j==="rtl"},t,Y,U),Q=c.useMemo(()=>n??(o==="large"?736:378),[n,o]),ne=c.useMemo(()=>r??(o==="large"?736:378),[r,o]),te={motionName:Go(V,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},re=he=>({motionName:Go(V,`panel-motion-${he}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),fe=Fx(),me=Bo(v,fe),[ue,Ce]=Nl("Drawer",P.zIndex),{classNames:le={},styles:ce={}}=P;return H(c.createElement(ic,{form:!0,space:!0},c.createElement(Js.Provider,{value:Ce},c.createElement(Rj,Object.assign({prefixCls:V,onClose:m,maskMotion:te,motion:re},P,{classNames:{mask:ee(le.mask,q.mask),content:ee(le.content,q.content),wrapper:ee(le.wrapper,q.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ce.mask),w),W.mask),content:Object.assign(Object.assign(Object.assign({},ce.content),O),W.content),wrapper:Object.assign(Object.assign(Object.assign({},ce.wrapper),R),W.wrapper)},open:u??b,mask:l,push:s,width:Q,height:ne,style:Object.assign(Object.assign({},A),y),className:ee(D,C),rootClassName:F,getContainer:z,afterOpenChange:d??$,panelRef:me,zIndex:ue,"aria-labelledby":S??T,destroyOnClose:I??_}),c.createElement(b2,Object.assign({prefixCls:V},P,{ariaId:T,onClose:m}))))))},Mj=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,l=w2(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=c.useContext(Et),u=s("drawer",t),[d,m,p]=x2(u),g=ee(u,`${u}-pure`,`${u}-${o}`,m,p,r);return d(c.createElement("div",{className:g,style:n},c.createElement(b2,Object.assign({prefixCls:u},l))))};$2._InternalPanelDoNotUseOrYouWillBeFired=Mj;function oC(e){return["small","middle","large"].includes(e)}function iC(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const jj=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:l,fontSizeLG:s,fontSizeSM:u,borderRadiusLG:d,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:d},"&-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}},kd(e,{focus:!1})]}},zj=pn(["Space","Addon"],e=>[jj(e)]);var Lj=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 Bj=Z.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:l}=e,s=Lj(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:d}=Z.useContext(Et),m=u("space-addon",l),[p,g,v]=zj(m),{compactItemClassnames:y,compactSize:C}=ec(m,d),S=ee(m,g,y,v,{[`${m}-${C}`]:C},n);return p(Z.createElement("div",Object.assign({ref:t,className:S,style:o},s),r))}),E2=Z.createContext({latestIndex:0}),Aj=E2.Provider,Dj=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:l}=c.useContext(E2);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))},Hj=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"}}}},Fj=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}}}},Vj=pn("Space",e=>{const t=Xt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Hj(t),Fj(t)]},()=>({}),{resetStyle:!1});var Wj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Uj=c.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:l,className:s,style:u,classNames:d,styles:m}=gr("space"),{size:p=l??"small",align:g,className:v,rootClassName:y,children:C,direction:S="horizontal",prefixCls:b,split:$,style:w,wrap:O=!1,classNames:R,styles:_}=e,I=Wj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[P,N]=Array.isArray(p)?p:[p,p],T=oC(N),k=oC(P),L=iC(N),j=iC(P),D=Mr(C,{keepEmpty:!0}),A=g===void 0&&S==="horizontal"?"center":g,q=r("space",b),[W,V,H]=Vj(q),Y=ee(q,s,V,`${q}-${S}`,{[`${q}-rtl`]:o==="rtl",[`${q}-align-${A}`]:A,[`${q}-gap-row-${N}`]:T,[`${q}-gap-col-${P}`]:k},v,y,H),U=ee(`${q}-item`,(n=R==null?void 0:R.item)!==null&&n!==void 0?n:d.item),z=Object.assign(Object.assign({},m.item),_==null?void 0:_.item),F=D.map((te,re)=>{const fe=(te==null?void 0:te.key)||`${U}-${re}`;return c.createElement(Dj,{className:U,key:fe,index:re,split:$,style:z},te)}),Q=c.useMemo(()=>({latestIndex:D.reduce((re,fe,me)=>fe!=null?me:re,0)}),[D]);if(D.length===0)return null;const ne={};return O&&(ne.flexWrap="wrap"),!k&&j&&(ne.columnGap=P),!T&&L&&(ne.rowGap=N),W(c.createElement("div",Object.assign({ref:t,className:Y,style:Object.assign(Object.assign(Object.assign({},ne),u),w)},I),c.createElement(Aj,{value:Q},F)))}),Ai=Uj;Ai.Compact=DR;Ai.Addon=Bj;var qj=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 O2=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(Et),{prefixCls:o,type:l="default",danger:s,disabled:u,loading:d,onClick:m,htmlType:p,children:g,className:v,menu:y,arrow:C,autoFocus:S,overlay:b,trigger:$,align:w,open:O,onOpenChange:R,placement:_,getPopupContainer:I,href:P,icon:N=c.createElement(Th,null),title:T,buttonsRender:k=le=>le,mouseEnterDelay:L,mouseLeaveDelay:j,overlayClassName:D,overlayStyle:A,destroyOnHidden:q,destroyPopupOnHide:W,dropdownRender:V,popupRender:H}=e,Y=qj(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"]),U=n("dropdown",o),z=`${U}-button`,Q={menu:y,arrow:C,autoFocus:S,align:w,disabled:u,trigger:u?[]:$,onOpenChange:R,getPopupContainer:I||t,mouseEnterDelay:L,mouseLeaveDelay:j,overlayClassName:D,overlayStyle:A,destroyOnHidden:q,popupRender:H||V},{compactSize:ne,compactItemClassnames:te}=ec(U,r),re=ee(z,te,v);"destroyPopupOnHide"in e&&(Q.destroyPopupOnHide=W),"overlay"in e&&(Q.overlay=b),"open"in e&&(Q.open=O),"placement"in e?Q.placement=_:Q.placement=r==="rtl"?"bottomLeft":"bottomRight";const fe=c.createElement(Or,{type:l,danger:s,disabled:u,loading:d,onClick:m,htmlType:p,href:P,title:T},g),me=c.createElement(Or,{type:l,danger:s,icon:N}),[ue,Ce]=k([fe,me]);return c.createElement(Ai.Compact,Object.assign({className:re,size:ne,block:!0},Y),ue,c.createElement(Ud,Object.assign({},Q),Ce))};O2.__ANT_BUTTON=!0;const Mg=Ud;Mg.Button=O2;var Gj={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"},Kj=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:Gj}))},ad=c.forwardRef(Kj),Xj=`
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
- `,Qj=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],gp={},eo;function Yj(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&&gp[n])return gp[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=Qj.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),d={sizingStyle:u,paddingSize:l,borderSize:s,boxSizing:o};return t&&n&&(gp[n]=d),d}function Jj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;eo||(eo=document.createElement("textarea"),eo.setAttribute("tab-index","-1"),eo.setAttribute("aria-hidden","true"),eo.setAttribute("name","hiddenTextarea"),document.body.appendChild(eo)),e.getAttribute("wrap")?eo.setAttribute("wrap",e.getAttribute("wrap")):eo.removeAttribute("wrap");var o=Yj(e,t),l=o.paddingSize,s=o.borderSize,u=o.boxSizing,d=o.sizingStyle;eo.setAttribute("style","".concat(d,";").concat(Xj)),eo.value=e.value||e.placeholder||"";var m=void 0,p=void 0,g,v=eo.scrollHeight;if(u==="border-box"?v+=s:u==="content-box"&&(v-=l),n!==null||r!==null){eo.value=" ";var y=eo.scrollHeight-l;n!==null&&(m=y*n,u==="border-box"&&(m=m+l+s),v=Math.max(m,v)),r!==null&&(p=y*r,u==="border-box"&&(p=p+l+s),g=v>p?"":"hidden",v=Math.min(p,v))}var C={height:v,overflowY:g,resize:"none"};return m&&(C.minHeight=m),p&&(C.maxHeight=p),C}var Zj=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],hp=0,vp=1,yp=2,e7=c.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,l=n.value,s=n.autoSize,u=n.onResize,d=n.className,m=n.style,p=n.disabled,g=n.onChange;n.onInternalAutoSize;var v=kt(n,Zj),y=An(o,{value:l,postState:function(Q){return Q??""}}),C=ae(y,2),S=C[0],b=C[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&&gt(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),R=ae(O,2),_=R[0],I=R[1],P=!!s,N=c.useState(yp),T=ae(N,2),k=T[0],L=T[1],j=c.useState(),D=ae(j,2),A=D[0],q=D[1],W=function(){L(hp)};rn(function(){P&&W()},[l,_,I,P]),rn(function(){if(k===hp)L(vp);else if(k===vp){var F=Jj(w.current,!1,_,I);L(yp),q(F)}},[k]);var V=c.useRef(),H=function(){$n.cancel(V.current)},Y=function(Q){k===yp&&(u==null||u(Q),s&&(H(),V.current=$n(function(){W()})))};c.useEffect(function(){return H},[]);var U=P?A:null,z=K(K({},m),U);return(k===hp||k===vp)&&(z.overflowY="hidden",z.overflowX="hidden"),c.createElement(Co,{onResize:Y,disabled:!(s||u)},c.createElement("textarea",Oe({},v,{ref:w,style:z,className:ee(r,d,G({},"".concat(r,"-disabled"),p)),disabled:p,value:S,onChange:$})))}),t7=["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"],n7=Z.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,l=e.onFocus,s=e.onBlur,u=e.onChange,d=e.allowClear,m=e.maxLength,p=e.onCompositionStart,g=e.onCompositionEnd,v=e.suffix,y=e.prefixCls,C=y===void 0?"rc-textarea":y,S=e.showCount,b=e.count,$=e.className,w=e.style,O=e.disabled,R=e.hidden,_=e.classNames,I=e.styles,P=e.onResize,N=e.onClear,T=e.onPressEnter,k=e.readOnly,L=e.autoSize,j=e.onKeyDown,D=kt(e,t7),A=An(r,{value:o,defaultValue:r}),q=ae(A,2),W=q[0],V=q[1],H=W==null?"":String(W),Y=Z.useState(!1),U=ae(Y,2),z=U[0],F=U[1],Q=Z.useRef(!1),ne=Z.useState(null),te=ae(ne,2),re=te[0],fe=te[1],me=c.useRef(null),ue=c.useRef(null),Ce=function(){var je;return(je=ue.current)===null||je===void 0?void 0:je.textArea},le=function(){Ce().focus()};c.useImperativeHandle(t,function(){var Qe;return{resizableTextArea:ue.current,focus:le,blur:function(){Ce().blur()},nativeElement:((Qe=me.current)===null||Qe===void 0?void 0:Qe.nativeElement)||Ce()}}),c.useEffect(function(){F(function(Qe){return!O&&Qe})},[O]);var ce=Z.useState(null),he=ae(ce,2),ye=he[0],de=he[1];Z.useEffect(function(){if(ye){var Qe;(Qe=Ce()).setSelectionRange.apply(Qe,Ae(ye))}},[ye]);var se=Sj(b,S),ve=(n=se.max)!==null&&n!==void 0?n:m,Se=Number(ve)>0,Re=se.strategy(H),Ne=!!ve&&Re>ve,we=function(je,Je){var Te=Je;!Q.current&&se.exceedFormatter&&se.max&&se.strategy(Je)>se.max&&(Te=se.exceedFormatter(Je,{max:se.max}),Je!==Te&&de([Ce().selectionStart||0,Ce().selectionEnd||0])),V(Te),eC(je.currentTarget,je,u,Te)},$e=function(je){Q.current=!0,p==null||p(je)},ke=function(je){Q.current=!1,we(je,je.currentTarget.value),g==null||g(je)},Ie=function(je){we(je,je.target.value)},Ge=function(je){je.key==="Enter"&&T&&T(je),j==null||j(je)},tt=function(je){F(!0),l==null||l(je)},St=function(je){F(!1),s==null||s(je)},ct=function(je){V(""),le(),eC(Ce(),je,u)},qe=v,at;se.show&&(se.showFormatter?at=se.showFormatter({value:H,count:Re,maxLength:ve}):at="".concat(Re).concat(Se?" / ".concat(ve):""),qe=Z.createElement(Z.Fragment,null,qe,Z.createElement("span",{className:ee("".concat(C,"-data-count"),_==null?void 0:_.count),style:I==null?void 0:I.count},at)));var We=function(je){var Je;P==null||P(je),(Je=Ce())!==null&&Je!==void 0&&Je.style.height&&fe(!0)},mt=!L&&!S&&!d;return Z.createElement(bj,{ref:me,value:H,allowClear:d,handleReset:ct,suffix:qe,prefixCls:C,classNames:K(K({},_),{},{affixWrapper:ee(_==null?void 0:_.affixWrapper,G(G({},"".concat(C,"-show-count"),S),"".concat(C,"-textarea-allow-clear"),d))}),disabled:O,focused:z,className:ee($,Ne&&"".concat(C,"-out-of-range")),style:K(K({},w),re&&!mt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof at=="string"?at:void 0}},hidden:R,readOnly:k,onClear:N},Z.createElement(e7,Oe({},D,{autoSize:L,maxLength:m,onKeyDown:Ge,onChange:Ie,onFocus:tt,onBlur:St,onCompositionStart:$e,onCompositionEnd:ke,className:ee(_==null?void 0:_.textarea),style:K(K({},I==null?void 0:I.textarea),{},{resize:w==null?void 0:w.resize}),disabled:O,prefixCls:C,onResize:We,ref:ue,readOnly:k})))});const r7=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}}}}}},o7=pn(["Input","TextArea"],e=>{const t=Xt(e,qd(e));return r7(t)},Gd,{resetFont:!1});var i7=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 a7=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:s,status:u,allowClear:d,classNames:m,rootClassName:p,className:g,style:v,styles:y,variant:C,showCount:S,onMouseDown:b,onResize:$}=e,w=i7(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:O,direction:R,allowClear:_,autoComplete:I,className:P,style:N,classNames:T,styles:k}=gr("textArea"),L=c.useContext(ha),j=s??L,{status:D,hasFeedback:A,feedbackIcon:q}=c.useContext(ed),W=Sw(D,u),V=c.useRef(null);c.useImperativeHandle(t,()=>{var se;return{resizableTextArea:(se=V.current)===null||se===void 0?void 0:se.resizableTextArea,focus:ve=>{var Se,Re;yj((Re=(Se=V.current)===null||Se===void 0?void 0:Se.resizableTextArea)===null||Re===void 0?void 0:Re.textArea,ve)},blur:()=>{var ve;return(ve=V.current)===null||ve===void 0?void 0:ve.blur()}}});const H=O("input",r),Y=pi(H),[U,z,F]=gM(H,p),[Q]=o7(H,Y),{compactSize:ne,compactItemClassnames:te}=ec(H,R),re=Yo(se=>{var ve;return(ve=l??ne)!==null&&ve!==void 0?ve:se}),[fe,me]=Ew("textArea",C,o),ue=xj(d??_),[Ce,le]=c.useState(!1),[ce,he]=c.useState(!1),ye=se=>{le(!0),b==null||b(se);const ve=()=>{le(!1),document.removeEventListener("mouseup",ve)};document.addEventListener("mouseup",ve)},de=se=>{var ve,Se;if($==null||$(se),Ce&&typeof getComputedStyle=="function"){const Re=(Se=(ve=V.current)===null||ve===void 0?void 0:ve.nativeElement)===null||Se===void 0?void 0:Se.querySelector("textarea");Re&&getComputedStyle(Re).resize==="both"&&he(!0)}};return U(Q(c.createElement(n7,Object.assign({autoComplete:I},w,{style:Object.assign(Object.assign({},N),v),styles:Object.assign(Object.assign({},k),y),disabled:j,allowClear:ue,className:ee(F,Y,g,p,te,P,ce&&`${H}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),T),{textarea:ee({[`${H}-sm`]:re==="small",[`${H}-lg`]:re==="large"},z,m==null?void 0:m.textarea,T.textarea,Ce&&`${H}-mouse-active`),variant:ee({[`${H}-${fe}`]:me},Cw(H,W)),affixWrapper:ee(`${H}-textarea-affix-wrapper`,{[`${H}-affix-wrapper-rtl`]:R==="rtl",[`${H}-affix-wrapper-sm`]:re==="small",[`${H}-affix-wrapper-lg`]:re==="large",[`${H}-textarea-show-count`]:S||((n=e.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:H,suffix:A&&c.createElement("span",{className:`${H}-textarea-suffix`},q),showCount:S,ref:V,onResize:de,onMouseDown:ye}))))});function l7(e,t,n){return typeof n=="boolean"?n:e.length?!0:Mr(t).some(o=>o.type===i2)}var R2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Qd({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 zh=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:l}=e,s=R2(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=c.useContext(Et),d=u("layout",n),[m,p,g]=o2(d),v=r?`${d}-${r}`:d;return m(c.createElement(l,Object.assign({className:ee(n||v,o,p,g),ref:t},s)))}),s7=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(Et),[r,o]=c.useState([]),{prefixCls:l,className:s,rootClassName:u,children:d,hasSider:m,tagName:p,style:g}=e,v=R2(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Gn(v,["suffixCls"]),{getPrefixCls:C,className:S,style:b}=gr("layout"),$=C("layout",l),w=l7(r,d,m),[O,R,_]=o2($),I=ee($,{[`${$}-has-sider`]:w,[`${$}-rtl`]:n==="rtl"},S,s,u,R,_),P=c.useMemo(()=>({siderHook:{addSider:N=>{o(T=>[].concat(Ae(T),[N]))},removeSider:N=>{o(T=>T.filter(k=>k!==N))}}}),[]);return O(c.createElement(t2.Provider,{value:P},c.createElement(p,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},b),g)},y),d)))}),c7=Qd({tagName:"div",displayName:"Layout"})(s7),u7=Qd({suffixCls:"header",tagName:"header",displayName:"Header"})(zh),d7=Qd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(zh),f7=Qd({suffixCls:"content",tagName:"main",displayName:"Content"})(zh),Di=c7;Di.Header=u7;Di.Footer=d7;Di.Content=f7;Di.Sider=i2;Di._InternalSiderContext=Wd;var m7={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"},p7=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:m7}))},aC=c.forwardRef(p7),g7={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"},h7=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:g7}))},lC=c.forwardRef(h7),v7={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:"页码"},y7=[10,20,50,100],b7=function(t){var n=t.pageSizeOptions,r=n===void 0?y7:n,o=t.locale,l=t.changeSize,s=t.pageSize,u=t.goButton,d=t.quickGo,m=t.rootPrefixCls,p=t.disabled,g=t.buildOptionText,v=t.showSizeChanger,y=t.sizeChangerRender,C=Z.useState(""),S=ae(C,2),b=S[0],$=S[1],w=function(){return!b||Number.isNaN(b)?void 0:Number(b)},O=typeof g=="function"?g:function(j){return"".concat(j," ").concat(o.items_per_page)},R=function(D){$(D.target.value)},_=function(D){u||b===""||($(""),!(D.relatedTarget&&(D.relatedTarget.className.indexOf("".concat(m,"-item-link"))>=0||D.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&(d==null||d(w())))},I=function(D){b!==""&&(D.keyCode===Ve.ENTER||D.type==="click")&&($(""),d==null||d(w()))},P=function(){return r.some(function(D){return D.toString()===s.toString()})?r:r.concat([s]).sort(function(D,A){var q=Number.isNaN(Number(D))?0:Number(D),W=Number.isNaN(Number(A))?0:Number(A);return q-W})},N="".concat(m,"-options");if(!v&&!d)return null;var T=null,k=null,L=null;return v&&y&&(T=y({disabled:p,size:s,onSizeChange:function(D){l==null||l(Number(D))},"aria-label":o.page_size,className:"".concat(N,"-size-changer"),options:P().map(function(j){return{label:O(j),value:j}})})),d&&(u&&(L=typeof u=="boolean"?Z.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:p,className:"".concat(N,"-quick-jumper-button")},o.jump_to_confirm):Z.createElement("span",{onClick:I,onKeyUp:I},u)),k=Z.createElement("div",{className:"".concat(N,"-quick-jumper")},o.jump_to,Z.createElement("input",{disabled:p,type:"text",value:b,onChange:R,onKeyUp:I,onBlur:_,"aria-label":o.page}),o.page,L)),Z.createElement("li",{className:N},T,k)},gs=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,l=t.className,s=t.showTitle,u=t.onClick,d=t.onKeyPress,m=t.itemRender,p="".concat(n,"-item"),g=ee(p,"".concat(p,"-").concat(r),G(G({},"".concat(p,"-active"),o),"".concat(p,"-disabled"),!r),l),v=function(){u(r)},y=function(b){d(b,u,r)},C=m(r,"page",Z.createElement("a",{rel:"nofollow"},r));return C?Z.createElement("li",{title:s?String(r):null,className:g,onClick:v,onKeyDown:y,tabIndex:0},C):null},C7=function(t,n,r){return r};function sC(){}function cC(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function la(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var S7=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,d=t.defaultCurrent,m=d===void 0?1:d,p=t.total,g=p===void 0?0:p,v=t.pageSize,y=t.defaultPageSize,C=y===void 0?10:y,S=t.onChange,b=S===void 0?sC:S,$=t.hideOnSinglePage,w=t.align,O=t.showPrevNextJumpers,R=O===void 0?!0:O,_=t.showQuickJumper,I=t.showLessItems,P=t.showTitle,N=P===void 0?!0:P,T=t.onShowSizeChange,k=T===void 0?sC:T,L=t.locale,j=L===void 0?v7:L,D=t.style,A=t.totalBoundaryShowSizeChanger,q=A===void 0?50:A,W=t.disabled,V=t.simple,H=t.showTotal,Y=t.showSizeChanger,U=Y===void 0?g>q:Y,z=t.sizeChangerRender,F=t.pageSizeOptions,Q=t.itemRender,ne=Q===void 0?C7:Q,te=t.jumpPrevIcon,re=t.jumpNextIcon,fe=t.prevIcon,me=t.nextIcon,ue=Z.useRef(null),Ce=An(10,{value:v,defaultValue:C}),le=ae(Ce,2),ce=le[0],he=le[1],ye=An(1,{value:u,defaultValue:m,postState:function(dt){return Math.max(1,Math.min(dt,la(void 0,ce,g)))}}),de=ae(ye,2),se=de[0],ve=de[1],Se=Z.useState(se),Re=ae(Se,2),Ne=Re[0],we=Re[1];c.useEffect(function(){we(se)},[se]);var $e=Math.max(1,se-(I?3:5)),ke=Math.min(la(void 0,ce,g),se+(I?3:5));function Ie(Fe,dt){var Rt=Fe||Z.createElement("button",{type:"button","aria-label":dt,className:"".concat(r,"-item-link")});return typeof Fe=="function"&&(Rt=Z.createElement(Fe,K({},t))),Rt}function Ge(Fe){var dt=Fe.target.value,Rt=la(void 0,ce,g),ln;return dt===""?ln=dt:Number.isNaN(Number(dt))?ln=Ne:dt>=Rt?ln=Rt:ln=Number(dt),ln}function tt(Fe){return cC(Fe)&&Fe!==se&&cC(g)&&g>0}var St=g>ce?_:!1;function ct(Fe){(Fe.keyCode===Ve.UP||Fe.keyCode===Ve.DOWN)&&Fe.preventDefault()}function qe(Fe){var dt=Ge(Fe);switch(dt!==Ne&&we(dt),Fe.keyCode){case Ve.ENTER:mt(dt);break;case Ve.UP:mt(dt-1);break;case Ve.DOWN:mt(dt+1);break}}function at(Fe){mt(Ge(Fe))}function We(Fe){var dt=la(Fe,ce,g),Rt=se>dt&&dt!==0?dt:se;he(Fe),we(Rt),k==null||k(se,Fe),ve(Rt),b==null||b(Rt,Fe)}function mt(Fe){if(tt(Fe)&&!W){var dt=la(void 0,ce,g),Rt=Fe;return Fe>dt?Rt=dt:Fe<1&&(Rt=1),Rt!==Ne&&we(Rt),ve(Rt),b==null||b(Rt,ce),Rt}return se}var Qe=se>1,je=se<la(void 0,ce,g);function Je(){Qe&&mt(se-1)}function Te(){je&&mt(se+1)}function He(){mt($e)}function Ot(){mt(ke)}function ht(Fe,dt){if(Fe.key==="Enter"||Fe.charCode===Ve.ENTER||Fe.keyCode===Ve.ENTER){for(var Rt=arguments.length,ln=new Array(Rt>2?Rt-2:0),Hn=2;Hn<Rt;Hn++)ln[Hn-2]=arguments[Hn];dt.apply(void 0,ln)}}function Gt(Fe){ht(Fe,Je)}function Ut(Fe){ht(Fe,Te)}function dn(Fe){ht(Fe,He)}function Sn(Fe){ht(Fe,Ot)}function Qt(Fe){var dt=ne(Fe,"prev",Ie(fe,"prev page"));return Z.isValidElement(dt)?Z.cloneElement(dt,{disabled:!Qe}):dt}function jt(Fe){var dt=ne(Fe,"next",Ie(me,"next page"));return Z.isValidElement(dt)?Z.cloneElement(dt,{disabled:!je}):dt}function xt(Fe){(Fe.type==="click"||Fe.keyCode===Ve.ENTER)&&mt(Ne)}var Yt=null,Vt=oo(t,{aria:!0,data:!0}),Ze=H&&Z.createElement("li",{className:"".concat(r,"-total-text")},H(g,[g===0?0:(se-1)*ce+1,se*ce>g?g:se*ce])),Ct=null,lt=la(void 0,ce,g);if($&&g<=ce)return null;var _e=[],Ee={rootPrefixCls:r,onClick:mt,onKeyPress:ht,showTitle:N,itemRender:ne,page:-1},xe=se-1>0?se-1:0,ze=se+1<lt?se+1:lt,Xe=_&&_.goButton,Ye=gt(V)==="object"?V.readOnly:!V,zt=Xe,Ht=null;V&&(Xe&&(typeof Xe=="boolean"?zt=Z.createElement("button",{type:"button",onClick:xt,onKeyUp:xt},j.jump_to_confirm):zt=Z.createElement("span",{onClick:xt,onKeyUp:xt},Xe),zt=Z.createElement("li",{title:N?"".concat(j.jump_to).concat(se,"/").concat(lt):null,className:"".concat(r,"-simple-pager")},zt)),Ht=Z.createElement("li",{title:N?"".concat(se,"/").concat(lt):null,className:"".concat(r,"-simple-pager")},Ye?Ne:Z.createElement("input",{type:"text","aria-label":j.jump_to,value:Ne,disabled:W,onKeyDown:ct,onKeyUp:qe,onChange:qe,onBlur:at,size:3}),Z.createElement("span",{className:"".concat(r,"-slash")},"/"),lt));var Pt=I?1:2;if(lt<=3+Pt*2){lt||_e.push(Z.createElement(gs,Oe({},Ee,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Tt=1;Tt<=lt;Tt+=1)_e.push(Z.createElement(gs,Oe({},Ee,{key:Tt,page:Tt,active:se===Tt})))}else{var bn=I?j.prev_3:j.prev_5,hn=I?j.next_3:j.next_5,xn=ne($e,"jump-prev",Ie(te,"prev page")),Pn=ne(ke,"jump-next",Ie(re,"next page"));R&&(Yt=xn?Z.createElement("li",{title:N?bn:null,key:"prev",onClick:He,tabIndex:0,onKeyDown:dn,className:ee("".concat(r,"-jump-prev"),G({},"".concat(r,"-jump-prev-custom-icon"),!!te))},xn):null,Ct=Pn?Z.createElement("li",{title:N?hn:null,key:"next",onClick:Ot,tabIndex:0,onKeyDown:Sn,className:ee("".concat(r,"-jump-next"),G({},"".concat(r,"-jump-next-custom-icon"),!!re))},Pn):null);var Zt=Math.max(1,se-Pt),on=Math.min(se+Pt,lt);se-1<=Pt&&(on=1+Pt*2),lt-se<=Pt&&(Zt=lt-Pt*2);for(var Le=Zt;Le<=on;Le+=1)_e.push(Z.createElement(gs,Oe({},Ee,{key:Le,page:Le,active:se===Le})));if(se-1>=Pt*2&&se!==3&&(_e[0]=Z.cloneElement(_e[0],{className:ee("".concat(r,"-item-after-jump-prev"),_e[0].props.className)}),_e.unshift(Yt)),lt-se>=Pt*2&&se!==lt-2){var Ue=_e[_e.length-1];_e[_e.length-1]=Z.cloneElement(Ue,{className:ee("".concat(r,"-item-before-jump-next"),Ue.props.className)}),_e.push(Ct)}Zt!==1&&_e.unshift(Z.createElement(gs,Oe({},Ee,{key:1,page:1}))),on!==lt&&_e.push(Z.createElement(gs,Oe({},Ee,{key:lt,page:lt})))}var $t=Qt(xe);if($t){var ut=!Qe||!lt;$t=Z.createElement("li",{title:N?j.prev_page:null,onClick:Je,tabIndex:ut?null:0,onKeyDown:Gt,className:ee("".concat(r,"-prev"),G({},"".concat(r,"-disabled"),ut)),"aria-disabled":ut},$t)}var nt=jt(ze);if(nt){var Ke,wt;V?(Ke=!je,wt=Qe?0:null):(Ke=!je||!lt,wt=Ke?null:0),nt=Z.createElement("li",{title:N?j.next_page:null,onClick:Te,tabIndex:wt,onKeyDown:Ut,className:ee("".concat(r,"-next"),G({},"".concat(r,"-disabled"),Ke)),"aria-disabled":Ke},nt)}var Ft=ee(r,s,G(G(G(G(G({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),V),"".concat(r,"-disabled"),W));return Z.createElement("ul",Oe({className:Ft,style:D,ref:ue},Vt),Ze,$t,V?Ht:_e,nt,Z.createElement(b7,{locale:j,rootPrefixCls:r,disabled:W,selectPrefixCls:l,changeSize:We,pageSize:ce,pageSizeOptions:F,quickGo:St?mt:null,goButton:zt,showSizeChanger:U,sizeChangerRender:z}))};const x7=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}}}}},w7=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({},kh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},$7=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}}}}}},E7=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({},Mh(e)),Nh(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Kd(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},O7=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}}}}},R7=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dn(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"}}),O7(e)),E7(e)),$7(e)),w7(e)),x7(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"}}},I7=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},xo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ol(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ol(e)}}}},I2=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},Gd(e)),_2=e=>Xt(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"},qd(e)),_7=pn("Pagination",e=>{const t=_2(e);return[R7(t),I7(t)]},I2),P7=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}}}}},T7=Qs(["Pagination","bordered"],e=>{const t=_2(e);return P7(t)},I2);function uC(e){return c.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var N7=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 k7=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:l,style:s,size:u,locale:d,responsive:m,showSizeChanger:p,selectComponentClass:g,pageSizeOptions:v}=e,y=N7(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:C}=Ch(m),[,S]=zr(),{getPrefixCls:b,direction:$,showSizeChanger:w,className:O,style:R}=gr("pagination"),_=b("pagination",n),[I,P,N]=_7(_),T=Yo(u),k=T==="small"||!!(C&&!T&&m),[L]=mi("Pagination",SS),j=Object.assign(Object.assign({},L),d),[D,A]=uC(p),[q,W]=uC(w),V=D??q,H=A??W,Y=g||Ml,U=c.useMemo(()=>v?v.map(re=>Number(re)):void 0,[v]),z=re=>{var fe;const{disabled:me,size:ue,onSizeChange:Ce,"aria-label":le,className:ce,options:he}=re,{className:ye,onChange:de}=H||{},se=(fe=he.find(ve=>String(ve.value)===String(ue)))===null||fe===void 0?void 0:fe.value;return c.createElement(Y,Object.assign({disabled:me,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ve=>ve.parentNode,"aria-label":le,options:he},H,{value:se,onChange:(ve,Se)=>{Ce==null||Ce(ve),de==null||de(ve,Se)},size:k?"small":"middle",className:ee(ce,ye)}))},F=c.useMemo(()=>{const re=c.createElement("span",{className:`${_}-item-ellipsis`},"•••"),fe=c.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},$==="rtl"?c.createElement(Uo,null):c.createElement(Hs,null)),me=c.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},$==="rtl"?c.createElement(Hs,null):c.createElement(Uo,null)),ue=c.createElement("a",{className:`${_}-item-link`},c.createElement("div",{className:`${_}-item-container`},$==="rtl"?c.createElement(lC,{className:`${_}-item-link-icon`}):c.createElement(aC,{className:`${_}-item-link-icon`}),re)),Ce=c.createElement("a",{className:`${_}-item-link`},c.createElement("div",{className:`${_}-item-container`},$==="rtl"?c.createElement(aC,{className:`${_}-item-link-icon`}):c.createElement(lC,{className:`${_}-item-link-icon`}),re));return{prevIcon:fe,nextIcon:me,jumpPrevIcon:ue,jumpNextIcon:Ce}},[$,_]),Q=b("select",r),ne=ee({[`${_}-${t}`]:!!t,[`${_}-mini`]:k,[`${_}-rtl`]:$==="rtl",[`${_}-bordered`]:S.wireframe},O,o,l,P,N),te=Object.assign(Object.assign({},R),s);return I(c.createElement(c.Fragment,null,S.wireframe&&c.createElement(T7,{prefixCls:_}),c.createElement(S7,Object.assign({},F,y,{style:te,prefixCls:_,selectPrefixCls:Q,className:ne,locale:j,pageSizeOptions:U,showSizeChanger:V,sizeChangerRender:z}))))},ld=100,P2=ld/5,T2=ld/2-P2/2,bp=T2*2*Math.PI,dC=50,fC=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return c.createElement("circle",{className:ee(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:T2,cx:dC,cy:dC,strokeWidth:P2,style:n})},M7=({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 d={strokeDashoffset:`${bp/4}`,strokeDasharray:`${bp*u/100} ${bp*(100-u)/100}`};return c.createElement("span",{className:ee(r,`${n}-progress`,u<=0&&o)},c.createElement("svg",{viewBox:`0 0 ${ld} ${ld}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},c.createElement(fC,{dotClassName:n,hasCircleCls:!0}),c.createElement(fC,{dotClassName:n,style:d})))};function j7(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:ee(o,n>0&&l)},c.createElement("span",{className:ee(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>c.createElement("i",{className:`${t}-dot-item`,key:s})))),c.createElement(M7,{prefixCls:t,percent:n}))}function z7(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,l=`${n}-dot`;return r&&c.isValidElement(r)?jr(r,{className:ee((t=r.props)===null||t===void 0?void 0:t.className,l),percent:o}):c.createElement(j7,{prefixCls:n,percent:o})}const L7=new Wt("antSpinMove",{to:{opacity:1}}),B7=new Wt("antRotate",{to:{transform:"rotate(405deg)"}}),A7=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Dn(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:L7,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:B7,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"}})}},D7=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},H7=pn("Spin",e=>{const t=Xt(e,{spinDotDefault:e.colorTextDescription});return A7(t)},D7),F7=200,mC=[[30,.05],[70,.03],[96,.01]];function V7(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 d=0;d<mC.length;d+=1){const[m,p]=mC[d];if(s<=m)return s+u*p}return s})},F7)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[l,e]),l?n:t}var W7=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 N2;function U7(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Yd=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:l,rootClassName:s,size:u="default",tip:d,wrapperClassName:m,style:p,children:g,fullscreen:v=!1,indicator:y,percent:C}=e,S=W7(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:$,className:w,style:O,indicator:R}=gr("spin"),_=b("spin",n),[I,P,N]=H7(_),[T,k]=c.useState(()=>r&&!U7(r,o)),L=V7(T,C);c.useEffect(()=>{if(r){const H=rj(o,()=>{k(!0)});return H(),()=>{var Y;(Y=H==null?void 0:H.cancel)===null||Y===void 0||Y.call(H)}}k(!1)},[o,r]);const j=c.useMemo(()=>typeof g<"u"&&!v,[g,v]),D=ee(_,w,{[`${_}-sm`]:u==="small",[`${_}-lg`]:u==="large",[`${_}-spinning`]:T,[`${_}-show-text`]:!!d,[`${_}-rtl`]:$==="rtl"},l,!v&&s,P,N),A=ee(`${_}-container`,{[`${_}-blur`]:T}),q=(t=y??R)!==null&&t!==void 0?t:N2,W=Object.assign(Object.assign({},O),p),V=c.createElement("div",Object.assign({},S,{style:W,className:D,"aria-live":"polite","aria-busy":T}),c.createElement(z7,{prefixCls:_,indicator:q,percent:L}),d&&(j||v)?c.createElement("div",{className:`${_}-text`},d):null);return I(j?c.createElement("div",Object.assign({},S,{className:ee(`${_}-nested-loading`,m,P,N)}),T&&c.createElement("div",{key:"loading"},V),c.createElement("div",{className:A,key:"container"},g)):v?c.createElement("div",{className:ee(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:T},s,P,N)},V):V)};Yd.setDefaultIndicator=e=>{N2=e};const Lh=Z.createContext({});Lh.Consumer;var k2=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 q7=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:l}=e,s=k2(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=c.useContext(Et),d=u("list",t),m=ee(`${d}-item-meta`,n),p=Z.createElement("div",{className:`${d}-item-meta-content`},o&&Z.createElement("h4",{className:`${d}-item-meta-title`},o),l&&Z.createElement("div",{className:`${d}-item-meta-description`},l));return Z.createElement("div",Object.assign({},s,{className:m}),r&&Z.createElement("div",{className:`${d}-item-meta-avatar`},r),(o||l)&&p)},G7=Z.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:l,styles:s,className:u,classNames:d,colStyle:m}=e,p=k2(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:v}=c.useContext(Lh),{getPrefixCls:y,list:C}=c.useContext(Et),S=P=>{var N,T;return ee((T=(N=C==null?void 0:C.item)===null||N===void 0?void 0:N.classNames)===null||T===void 0?void 0:T[P],d==null?void 0:d[P])},b=P=>{var N,T;return Object.assign(Object.assign({},(T=(N=C==null?void 0:C.item)===null||N===void 0?void 0:N.styles)===null||T===void 0?void 0:T[P]),s==null?void 0:s[P])},$=()=>{let P=!1;return c.Children.forEach(r,N=>{typeof N=="string"&&(P=!0)}),P&&c.Children.count(r)>1},w=()=>v==="vertical"?!!l:!$(),O=y("list",n),R=o&&o.length>0&&Z.createElement("ul",{className:ee(`${O}-item-action`,S("actions")),key:"actions",style:b("actions")},o.map((P,N)=>Z.createElement("li",{key:`${O}-item-action-${N}`},P,N!==o.length-1&&Z.createElement("em",{className:`${O}-item-action-split`})))),_=g?"div":"li",I=Z.createElement(_,Object.assign({},p,g?{}:{ref:t},{className:ee(`${O}-item`,{[`${O}-item-no-flex`]:!w()},u)}),v==="vertical"&&l?[Z.createElement("div",{className:`${O}-item-main`,key:"content"},r,R),Z.createElement("div",{className:ee(`${O}-item-extra`,S("extra")),key:"extra",style:b("extra")},l)]:[r,R,jr(l,{key:"extra"})]);return g?Z.createElement(aj,{ref:t,flex:1,style:m},I):I}),M2=G7;M2.Meta=q7;const K7=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:l,itemPaddingLG:s,marginLG:u,borderRadiusLG:d}=e,m=J(e.calc(d).sub(e.lineWidth).equal());return{[t]:{border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:d,[`${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}}}},X7=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)}`}}}}}},Q7=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:l,marginLG:s,padding:u,itemPadding:d,colorPrimary:m,itemPaddingSM:p,itemPaddingLG:g,paddingXS:v,margin:y,colorText:C,colorTextDescription:S,motionDurationSlow:b,lineWidth:$,headerBg:w,footerBg:O,emptyTextPadding:R,metaMarginBottom:_,avatarMarginRight:I,titleMarginBottom:P,descriptionFontSize:N}=e;return{[t]:Object.assign(Object.assign({},Dn(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:d,color:C,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:I},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:C},[`${t}-item-meta-title`]:{margin:`0 0 ${J(e.marginXXS)} 0`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:C,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(v)}`,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:R,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:_,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:P,color:C,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"}}}}},Y7=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}),J7=pn("List",e=>{const t=Xt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Q7(t),K7(t),X7(t)]},Y7);var Z7=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 ez(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:l=!0,className:s,rootClassName:u,style:d,children:m,itemLayout:p,loadMore:g,grid:v,dataSource:y=[],size:C,header:S,footer:b,loading:$=!1,rowKey:w,renderItem:O,locale:R}=e,_=Z7(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),I=n&&typeof n=="object"?n:{},[P,N]=c.useState(I.defaultCurrent||1),[T,k]=c.useState(I.defaultPageSize||10),{getPrefixCls:L,direction:j,className:D,style:A}=gr("list"),{renderEmpty:q}=c.useContext(Et),W={current:1,total:0,position:"bottom"},V=$e=>(ke,Ie)=>{var Ge;N(ke),k(Ie),n&&((Ge=n==null?void 0:n[$e])===null||Ge===void 0||Ge.call(n,ke,Ie))},H=V("onChange"),Y=V("onShowSizeChange"),U=($e,ke)=>{if(!O)return null;let Ie;return typeof w=="function"?Ie=w($e):w?Ie=$e[w]:Ie=$e.key,Ie||(Ie=`list-item-${ke}`),c.createElement(c.Fragment,{key:Ie},O($e,ke))},z=!!(g||n||b),F=L("list",r),[Q,ne,te]=J7(F);let re=$;typeof re=="boolean"&&(re={spinning:re});const fe=!!(re!=null&&re.spinning),me=Yo(C);let ue="";switch(me){case"large":ue="lg";break;case"small":ue="sm";break}const Ce=ee(F,{[`${F}-vertical`]:p==="vertical",[`${F}-${ue}`]:ue,[`${F}-split`]:l,[`${F}-bordered`]:o,[`${F}-loading`]:fe,[`${F}-grid`]:!!v,[`${F}-something-after-last-item`]:z,[`${F}-rtl`]:j==="rtl"},D,s,u,ne,te),le=ag(W,{total:y.length,current:P,pageSize:T},n||{}),ce=Math.ceil(le.total/le.pageSize);le.current=Math.min(le.current,ce);const he=n&&c.createElement("div",{className:ee(`${F}-pagination`)},c.createElement(k7,Object.assign({align:"end"},le,{onChange:H,onShowSizeChange:Y})));let ye=Ae(y);n&&y.length>(le.current-1)*le.pageSize&&(ye=Ae(y).splice((le.current-1)*le.pageSize,le.pageSize));const de=Object.keys(v||{}).some($e=>["xs","sm","md","lg","xl","xxl"].includes($e)),se=Ch(de),ve=c.useMemo(()=>{for(let $e=0;$e<va.length;$e+=1){const ke=va[$e];if(se[ke])return ke}},[se]),Se=c.useMemo(()=>{if(!v)return;const $e=ve&&v[ve]?v[ve]:v.column;if($e)return{width:`${100/$e}%`,maxWidth:`${100/$e}%`}},[JSON.stringify(v),ve]);let Re=fe&&c.createElement("div",{style:{minHeight:53}});if(ye.length>0){const $e=ye.map(U);Re=v?c.createElement(cj,{gutter:v.gutter},c.Children.map($e,ke=>c.createElement("div",{key:ke==null?void 0:ke.key,style:Se},ke))):c.createElement("ul",{className:`${F}-items`},$e)}else!m&&!fe&&(Re=c.createElement("div",{className:`${F}-empty-text`},(R==null?void 0:R.emptyText)||(q==null?void 0:q("List"))||c.createElement($w,{componentName:"List"})));const Ne=le.position,we=c.useMemo(()=>({grid:v,itemLayout:p}),[JSON.stringify(v),p]);return Q(c.createElement(Lh.Provider,{value:we},c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},A),d),className:Ce},_),(Ne==="top"||Ne==="both")&&he,S&&c.createElement("div",{className:`${F}-header`},S),c.createElement(Yd,Object.assign({},re),Re,m),b&&c.createElement("div",{className:`${F}-footer`},b),g||(Ne==="bottom"||Ne==="both")&&he)))}const tz=c.forwardRef(ez),Vs=tz;Vs.Item=M2;const nz=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let yo=null,ma=e=>e(),Ws=[],Us={};function pC(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Us,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:o}}const rz=Z.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=c.useContext(Et),l=Us.prefixCls||o("message"),s=c.useContext(RP),[u,d]=px(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),s.message));return Z.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}}),d}),oz=Z.forwardRef((e,t)=>{const[n,r]=Z.useState(pC),o=()=>{r(pC)};Z.useEffect(o,[]);const l=JS(),s=l.getRootPrefixCls(),u=l.getIconPrefixCls(),d=l.getTheme(),m=Z.createElement(rz,{ref:t,sync:o,messageConfig:n});return Z.createElement(Qo,{prefixCls:s,iconPrefixCls:u,theme:d},l.holderRender?l.holderRender(m):m)}),Jd=()=>{if(!yo){const e=document.createDocumentFragment(),t={fragment:e};yo=t,ma(()=>{ih()(Z.createElement(oz,{ref:r=>{const{instance:o,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=l,Jd())})}}),e)});return}yo.instance&&(Ws.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ma(()=>{const r=yo.instance.open(Object.assign(Object.assign({},Us),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ma(()=>{yo==null||yo.instance.destroy(e.key)});break;default:ma(()=>{var r;const o=(r=yo.instance)[t].apply(r,Ae(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ws=[])};function iz(e){Us=Object.assign(Object.assign({},Us),e),ma(()=>{var t;(t=yo==null?void 0:yo.sync)===null||t===void 0||t.call(yo)})}function az(e){const t=rh(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return Ws.push(o),()=>{r?ma(()=>{r()}):o.skipped=!0}});return Jd(),t}function lz(e,t){const n=rh(r=>{let o;const l={type:e,args:t,resolve:r,setCloseFn:s=>{o=s}};return Ws.push(l),()=>{o?ma(()=>{o()}):l.skipped=!0}});return Jd(),n}const sz=e=>{Ws.push({type:"destroy",key:e}),Jd()},cz=["success","info","warning","error","loading"],uz={open:az,destroy:sz,config:iz,useMessage:pR,_InternalPanelDoNotUseOrYouWillBeFired:aR},Is=uz;cz.forEach(e=>{Is[e]=(...t)=>lz(e,t)});var dz=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 fz=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:l,title:s,children:u,footer:d}=e,m=dz(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=c.useContext(Et),g=p(),v=t||p("modal"),y=pi(g),[C,S,b]=Kx(v,y),$=`${v}-confirm`;let w={};return l?w={closable:o??!1,title:"",footer:"",children:c.createElement(Qx,Object.assign({},e,{prefixCls:v,confirmPrefixCls:$,rootPrefixCls:g,content:u}))}:w={closable:o??!0,title:s,footer:d!==null&&c.createElement(Wx,Object.assign({},e)),children:u},C(c.createElement(kx,Object.assign({prefixCls:v,className:ee(S,`${v}-pure-panel`,l&&$,l&&`${$}-${l}`,n,b,y)},m,{closeIcon:Vx(v,r),closable:o},w)))},mz=iw(fz);function j2(e){return ac(ew(e))}const qr=Xx;qr.useModal=OP;qr.info=function(t){return ac(tw(t))};qr.success=function(t){return ac(nw(t))};qr.error=function(t){return ac(rw(t))};qr.warning=j2;qr.warn=j2;qr.confirm=function(t){return ac(ow(t))};qr.destroyAll=function(){for(;fa.length;){const t=fa.pop();t&&t()}};qr.config=SP;qr._InternalPanelDoNotUseOrYouWillBeFired=mz;var pz=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],z2=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,l=e.className,s=e.checked,u=e.defaultChecked,d=e.disabled,m=e.loadingIcon,p=e.checkedChildren,g=e.unCheckedChildren,v=e.onClick,y=e.onChange,C=e.onKeyDown,S=kt(e,pz),b=An(!1,{value:s,defaultValue:u}),$=ae(b,2),w=$[0],O=$[1];function R(N,T){var k=w;return d||(k=N,O(k),y==null||y(k,T)),k}function _(N){N.which===Ve.LEFT?R(!1,N):N.which===Ve.RIGHT&&R(!0,N),C==null||C(N)}function I(N){var T=R(!w,N);v==null||v(T,N)}var P=ee(o,l,(n={},G(n,"".concat(o,"-checked"),w),G(n,"".concat(o,"-disabled"),d),n));return c.createElement("button",Oe({},S,{type:"button",role:"switch","aria-checked":w,disabled:d,className:P,ref:t,onKeyDown:_,onClick:I}),m,c.createElement("span",{className:"".concat(o,"-inner")},c.createElement("span",{className:"".concat(o,"-inner-checked")},p),c.createElement("span",{className:"".concat(o,"-inner-unchecked")},g)))});z2.displayName="Switch";const gz=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:l,innerMaxMarginSM:s,handleSizeSM:u,calc:d}=e,m=`${t}-inner`,p=J(d(u).add(d(r).mul(2)).equal()),g=J(d(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:J(n),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:l,[`${m}-checked, ${m}-unchecked`]:{minHeight:n},[`${m}-checked`]:{marginInlineStart:`calc(-100% + ${p} - ${g})`,marginInlineEnd:`calc(100% - ${p} + ${g})`},[`${m}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:s,[`${m}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${m}-unchecked`]:{marginInlineStart:`calc(100% - ${p} + ${g})`,marginInlineEnd:`calc(-100% + ${p} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${J(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${m}`]:{[`${m}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${m}`]:{[`${m}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},hz=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},vz=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:l,calc:s}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:l,height:l,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:s(l).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${J(s(l).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},yz=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:l,handleSize:s,calc:u}=e,d=`${t}-inner`,m=J(u(s).add(u(r).mul(2)).equal()),p=J(u(l).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:l,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${p})`,marginInlineEnd:`calc(100% - ${m} + ${p})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:o,paddingInlineEnd:l,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${p})`,marginInlineEnd:`calc(-100% + ${m} - ${p})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},bz=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Dn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:J(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),xo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Cz=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,l=t*n,s=r/2,u=2,d=l-u*2,m=s-u*2;return{trackHeight:l,trackHeightSM:s,trackMinWidth:d*2+u*4,trackMinWidthSM:m*2+u*2,trackPadding:u,handleBg:o,handleSize:d,handleSizeSM:m,handleShadow:`0 2px 4px 0 ${new cn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:m/2,innerMaxMarginSM:m+u+u*2}},Sz=pn("Switch",e=>{const t=Xt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[bz(t),yz(t),vz(t),hz(t),gz(t)]},Cz);var xz=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 wz=c.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:l,className:s,rootClassName:u,style:d,checked:m,value:p,defaultChecked:g,defaultValue:v,onChange:y}=e,C=xz(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,b]=An(!1,{value:m??p,defaultValue:g??v}),{getPrefixCls:$,direction:w,switch:O}=c.useContext(Et),R=c.useContext(ha),_=(o??R)||l,I=$("switch",n),P=c.createElement("div",{className:`${I}-handle`},l&&c.createElement(Ys,{className:`${I}-loading-icon`})),[N,T,k]=Sz(I),L=Yo(r),j=ee(O==null?void 0:O.className,{[`${I}-small`]:L==="small",[`${I}-loading`]:l,[`${I}-rtl`]:w==="rtl"},s,u,T,k),D=Object.assign(Object.assign({},O==null?void 0:O.style),d),A=(...q)=>{b(q[0]),y==null||y.apply(void 0,q)};return N(c.createElement(lh,{component:"Switch",disabled:_},c.createElement(z2,Object.assign({},C,{checked:S,onChange:A,prefixCls:I,className:j,style:D,disabled:_,ref:t,loadingIcon:P}))))}),Du=wz;Du.__ANT_SWITCH=!0;var $z={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"},Ez=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:$z}))},Oz=c.forwardRef(Ez);const Rz=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({},Dn(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}}},Bh=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Xt(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})},Ah=e=>({defaultBg:new cn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),L2=pn("Tag",e=>{const t=Bh(e);return Rz(t)},Ah);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 _z=c.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:l,children:s,icon:u,onChange:d,onClick:m}=e,p=Iz(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:v}=c.useContext(Et),y=O=>{d==null||d(!l),m==null||m(O)},C=g("tag",n),[S,b,$]=L2(C),w=ee(C,`${C}-checkable`,{[`${C}-checkable-checked`]:l},v==null?void 0:v.className,o,b,$);return S(c.createElement("span",Object.assign({},p,{ref:t,style:Object.assign(Object.assign({},r),v==null?void 0:v.style),className:w,onClick:y}),u,c.createElement("span",null,s)))}),Pz=e=>xd(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"}}})),Tz=Qs(["Tag","preset"],e=>{const t=Bh(e);return Pz(t)},Ah);function Nz(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Cu=(e,t,n)=>{const r=Nz(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"}}}},kz=Qs(["Tag","status"],e=>{const t=Bh(e);return[Cu(t,"success","Success"),Cu(t,"processing","Info"),Cu(t,"error","Error"),Cu(t,"warning","Warning")]},Ah);var Mz=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)=>{const{prefixCls:n,className:r,rootClassName:o,style:l,children:s,icon:u,color:d,onClose:m,bordered:p=!0,visible:g}=e,v=Mz(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:C,tag:S}=c.useContext(Et),[b,$]=c.useState(!0),w=Gn(v,["closeIcon","closable"]);c.useEffect(()=>{g!==void 0&&$(g)},[g]);const O=Hd(d),R=iN(d),_=O||R,I=Object.assign(Object.assign({backgroundColor:d&&!_?d:void 0},S==null?void 0:S.style),l),P=y("tag",n),[N,T,k]=L2(P),L=ee(P,S==null?void 0:S.className,{[`${P}-${d}`]:_,[`${P}-has-color`]:d&&!_,[`${P}-hidden`]:!b,[`${P}-rtl`]:C==="rtl",[`${P}-borderless`]:!p},r,o,T,k),j=H=>{H.stopPropagation(),m==null||m(H),!H.defaultPrevented&&$(!1)},[,D]=nh(Rl(e),Rl(S),{closable:!1,closeIconRender:H=>{const Y=c.createElement("span",{className:`${P}-close-icon`,onClick:j},H);return lx(H,Y,U=>({onClick:z=>{var F;(F=U==null?void 0:U.onClick)===null||F===void 0||F.call(U,z),j(z)},className:ee(U==null?void 0:U.className,`${P}-close-icon`)}))}}),A=typeof v.onClick=="function"||s&&s.type==="a",q=u||null,W=q?c.createElement(c.Fragment,null,q,s&&c.createElement("span",null,s)):s,V=c.createElement("span",Object.assign({},w,{ref:t,className:L,style:I}),W,D,O&&c.createElement(Tz,{key:"preset",prefixCls:P}),R&&c.createElement(kz,{key:"status",prefixCls:P}));return N(A?c.createElement(lh,{component:"Tag"},V):V)}),bo=jz;bo.CheckableTag=_z;const ho=(e,t)=>new cn(e).setA(t).toRgbString(),al=(e,t)=>new cn(e).lighten(t).toHexString(),zz=e=>{const t=ga(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]}},Lz=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:ho(r,.85),colorTextSecondary:ho(r,.65),colorTextTertiary:ho(r,.45),colorTextQuaternary:ho(r,.25),colorFill:ho(r,.18),colorFillSecondary:ho(r,.12),colorFillTertiary:ho(r,.08),colorFillQuaternary:ho(r,.04),colorBgSolid:ho(r,.95),colorBgSolidHover:ho(r,1),colorBgSolidActive:ho(r,.9),colorBgElevated:al(n,12),colorBgContainer:al(n,8),colorBgLayout:al(n,0),colorBgSpotlight:al(n,26),colorBgBlur:ho(r,.04),colorBorder:al(n,26),colorBorderSecondary:al(n,19)}},Bz=(e,t)=>{const n=Object.keys(eh).map(l=>{const s=ga(e[l],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,d,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??RS(e),o=OS(e,{generateColorPalettes:zz,generateNeutralColorPalettes:Lz});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})},Az={defaultSeed:qu.token,darkAlgorithm:Bz};var Dz={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"},Hz=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:Dz}))},Fz=c.forwardRef(Hz),Vz={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"},Wz=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:Vz}))},Uz=c.forwardRef(Wz);const qz=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:l}=r;return{marginBottom:o,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Gz=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
- `]=qz(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Kz=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},BS(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Xz=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:Wu[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}}),Qz=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"}}}},Yz=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Jz=()=>({"\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"}}),Zz=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"}},Gz(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}}}),Xz(e)),Kz(e)),{[`
330
- ${t}-expand,
331
- ${t}-collapse,
332
- ${t}-edit,
333
- ${t}-copy
334
- `]:Object.assign(Object.assign({},BS(e)),{marginInlineStart:e.marginXXS})}),Qz(e)),Yz(e)),Jz()),{"&-rtl":{direction:"rtl"}})}},e9=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),B2=pn("Typography",Zz,e9),t9=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:l,maxLength:s,autoSize:u=!0,value:d,onSave:m,onCancel:p,onEnd:g,component:v,enterIcon:y=c.createElement(Uz,null)}=e,C=c.useRef(null),S=c.useRef(!1),b=c.useRef(null),[$,w]=c.useState(d);c.useEffect(()=>{w(d)},[d]),c.useEffect(()=>{var A;if(!((A=C.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:q}=C.current.resizableTextArea;q.focus();const{length:W}=q.value;q.setSelectionRange(W,W)}},[]);const O=({target:A})=>{w(A.value.replace(/[\n\r]/g,""))},R=()=>{S.current=!0},_=()=>{S.current=!1},I=({keyCode:A})=>{S.current||(b.current=A)},P=()=>{m($.trim())},N=({keyCode:A,ctrlKey:q,altKey:W,metaKey:V,shiftKey:H})=>{b.current!==A||S.current||q||W||V||H||(A===Ve.ENTER?(P(),g==null||g()):A===Ve.ESC&&p())},T=()=>{P()},[k,L,j]=B2(t),D=ee(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${v}`]:!!v},r,L,j);return k(c.createElement("div",{className:D,style:o},c.createElement(a7,{ref:C,maxLength:s,value:$,onChange:O,onKeyDown:I,onKeyUp:N,onCompositionStart:R,onCompositionEnd:_,onBlur:T,"aria-label":n,rows:1,autoSize:u}),y!==null?jr(y,{className:`${t}-edit-content-confirm`}):null))};var Cp,gC;function n9(){return gC||(gC=1,Cp=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()}}),Cp}var Sp,hC;function r9(){if(hC)return Sp;hC=1;var e=n9(),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,d,m,p,g,v,y=!1;s||(s={}),u=s.debug||!1;try{m=e(),p=document.createRange(),g=document.getSelection(),v=document.createElement("span"),v.textContent=l,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.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(v),p.selectNodeContents(v),g.addRange(p);var C=document.execCommand("copy");if(!C)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"),d=r("message"in s?s.message:n),window.prompt(d,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(p):g.removeAllRanges()),v&&document.body.removeChild(v),m()}return y}return Sp=o,Sp}var o9=r9();const i9=Gs(o9);var a9=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 d(p){try{m(r.throw(p))}catch(g){s(g)}}function m(p){p.done?l(p.value):o(p.value).then(u,d)}m((r=r.apply(e,t||[])).next())})};const l9=({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)},d={};e.format&&(d.format=e.format),c.useEffect(()=>u,[]);const m=Ln(p=>a9(void 0,void 0,void 0,function*(){var g;p==null||p.preventDefault(),p==null||p.stopPropagation(),l(!0);try{const v=typeof e.text=="function"?yield e.text():e.text;i9(v||nz(t,!0).join("")||"",d),l(!1),r(!0),u(),s.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,p)}catch(v){throw l(!1),v}}));return{copied:n,copyLoading:o,onClick:m}};function xp(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const s9=e=>{const t=c.useRef(void 0);return c.useEffect(()=>{t.current=e}),t.current},c9=(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 u9=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 A2=c.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:s,children:u,direction:d,style:m}=e,p=u9(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:v,className:y,style:C}=gr("typography"),S=d??v,b=s?Bo(t,s):t,$=g("typography",n),[w,O,R]=B2($),_=ee($,y,{[`${$}-rtl`]:S==="rtl"},o,l,O,R),I=Object.assign(Object.assign({},C),m);return w(c.createElement(r,Object.assign({className:_,style:I,ref:b},p),u))});var d9={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"},f9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:d9}))},jg=c.forwardRef(f9);function vC(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function wp(e,t,n){return e===!0||e===void 0?t:e||n&&t}function m9(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 Dh=e=>["string","number"].includes(typeof e),p9=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:s,onCopy:u,loading:d})=>{const m=vC(o),p=vC(l),{copied:g,copy:v}=n??{},y=t?g:v,C=wp(m[t?1:0],y),S=typeof C=="string"?C:y;return c.createElement(qi,{title:C},c.createElement("button",{type:"button",className:ee(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":S,tabIndex:s},t?wp(p[1],c.createElement(_w,null),!0):wp(p[0],d?c.createElement(Ys,null):c.createElement(jg,null),!0)))},Su=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)}),g9=e=>e.reduce((t,n)=>t+(Dh(n)?String(n).length:1),0);function yC(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=Dh(l)?String(l).length:1,d=n+u;if(d>t){const m=t-n;return r.push(String(l).slice(0,m)),r}r.push(l),n=d}return e}const $p=0,Ep=1,Op=2,Rp=3,bC=4,xu={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function h9(e){const{enableMeasure:t,width:n,text:r,children:o,rows:l,expanded:s,miscDeps:u,onEllipsis:d}=e,m=c.useMemo(()=>Mr(r),[r]),p=c.useMemo(()=>g9(m),[r]),g=c.useMemo(()=>o(m,!1),[r]),[v,y]=c.useState(null),C=c.useRef(null),S=c.useRef(null),b=c.useRef(null),$=c.useRef(null),w=c.useRef(null),[O,R]=c.useState(!1),[_,I]=c.useState($p),[P,N]=c.useState(0),[T,k]=c.useState(null);rn(()=>{I(t&&n&&p?Ep:$p)},[n,r,l,t,m]),rn(()=>{var A,q,W,V;if(_===Ep){I(Op);const H=S.current&&getComputedStyle(S.current).whiteSpace;k(H)}else if(_===Op){const H=!!(!((A=b.current)===null||A===void 0)&&A.isExceed());I(H?Rp:bC),y(H?[0,p]:null),R(H);const Y=((q=b.current)===null||q===void 0?void 0:q.getHeight())||0,U=l===1?0:((W=$.current)===null||W===void 0?void 0:W.getHeight())||0,z=((V=w.current)===null||V===void 0?void 0:V.getHeight())||0,F=Math.max(Y,U+z);N(F+1),d(H)}},[_]);const L=v?Math.ceil((v[0]+v[1])/2):0;rn(()=>{var A;const[q,W]=v||[0,0];if(q!==W){const H=(((A=C.current)===null||A===void 0?void 0:A.getHeight())||0)>P;let Y=L;W-q===1&&(Y=H?q:W),y(H?[q,Y]:[Y,W])}},[v,L]);const j=c.useMemo(()=>{if(!t)return o(m,!1);if(_!==Rp||!v||v[0]!==v[1]){const A=o(m,!1);return[bC,$p].includes(_)?A:c.createElement("span",{style:Object.assign(Object.assign({},xu),{WebkitLineClamp:l})},A)}return o(s?m:yC(m,v[0]),O)},[s,_,v,m].concat(Ae(u))),D={width:n,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,j,_===Op&&c.createElement(c.Fragment,null,c.createElement(Su,{style:Object.assign(Object.assign(Object.assign({},D),xu),{WebkitLineClamp:l}),ref:b},g),c.createElement(Su,{style:Object.assign(Object.assign(Object.assign({},D),xu),{WebkitLineClamp:l-1}),ref:$},g),c.createElement(Su,{style:Object.assign(Object.assign(Object.assign({},D),xu),{WebkitLineClamp:1}),ref:w},o([],!0))),_===Rp&&v&&v[0]!==v[1]&&c.createElement(Su,{style:Object.assign(Object.assign({},D),{top:400}),ref:C},o(yC(m,L),!0)),_===Ep&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const v9=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:c.createElement(qi,Object.assign({open:t?void 0:!1},r),n);var y9=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 b9({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:l,italic:s},u){let d=u;function m(p,g){g&&(d=c.createElement(p,{},d))}return m("strong",o),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",l),m("i",s),d}const C9="...",CC=["delete","mark","code","underline","strong","keyboard","italic"],Zd=c.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:l,type:s,disabled:u,children:d,ellipsis:m,editable:p,copyable:g,component:v,title:y}=e,C=y9(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:b}=c.useContext(Et),[$]=mi("Text"),w=c.useRef(null),O=c.useRef(null),R=S("typography",r),_=Gn(C,CC),[I,P]=xp(p),[N,T]=An(!1,{value:P.editing}),{triggerType:k=["icon"]}=P,L=Te=>{var He;Te&&((He=P.onStart)===null||He===void 0||He.call(P)),T(Te)},j=s9(N);rn(()=>{var Te;!N&&j&&((Te=O.current)===null||Te===void 0||Te.focus())},[N]);const D=Te=>{Te==null||Te.preventDefault(),L(!0)},A=Te=>{var He;(He=P.onChange)===null||He===void 0||He.call(P,Te),L(!1)},q=()=>{var Te;(Te=P.onCancel)===null||Te===void 0||Te.call(P),L(!1)},[W,V]=xp(g),{copied:H,copyLoading:Y,onClick:U}=l9({copyConfig:V,children:d}),[z,F]=c.useState(!1),[Q,ne]=c.useState(!1),[te,re]=c.useState(!1),[fe,me]=c.useState(!1),[ue,Ce]=c.useState(!0),[le,ce]=xp(m,{expandable:!1,symbol:Te=>Te?$==null?void 0:$.collapse:$==null?void 0:$.expand}),[he,ye]=An(ce.defaultExpanded||!1,{value:ce.expanded}),de=le&&(!he||ce.expandable==="collapsible"),{rows:se=1}=ce,ve=c.useMemo(()=>de&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||I||W),[de,ce,I,W]);rn(()=>{le&&!ve&&(F(qb("webkitLineClamp")),ne(qb("textOverflow")))},[ve,le]);const[Se,Re]=c.useState(de),Ne=c.useMemo(()=>ve?!1:se===1?Q:z,[ve,Q,z]);rn(()=>{Re(Ne&&de)},[Ne,de]);const we=de&&(Se?fe:te),$e=de&&se===1&&Se,ke=de&&se>1&&Se,Ie=(Te,He)=>{var Ot;ye(He.expanded),(Ot=ce.onExpand)===null||Ot===void 0||Ot.call(ce,Te,He)},[Ge,tt]=c.useState(0),St=({offsetWidth:Te})=>{tt(Te)},ct=Te=>{var He;re(Te),te!==Te&&((He=ce.onEllipsis)===null||He===void 0||He.call(ce,Te))};c.useEffect(()=>{const Te=w.current;if(le&&Se&&Te){const He=m9(Te);fe!==He&&me(He)}},[le,Se,d,ke,ue,Ge]),c.useEffect(()=>{const Te=w.current;if(typeof IntersectionObserver>"u"||!Te||!Se||!de)return;const He=new IntersectionObserver(()=>{Ce(!!Te.offsetParent)});return He.observe(Te),()=>{He.disconnect()}},[Se,de]);const qe=c9(ce.tooltip,P.text,d),at=c.useMemo(()=>{if(!(!le||Se))return[P.text,d,y,qe.title].find(Dh)},[le,Se,y,qe.title,we]);if(N)return c.createElement(t9,{value:(n=P.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:A,onCancel:q,onEnd:P.onEnd,prefixCls:R,className:o,style:l,direction:b,component:v,maxLength:P.maxLength,autoSize:P.autoSize,enterIcon:P.enterIcon});const We=()=>{const{expandable:Te,symbol:He}=ce;return Te?c.createElement("button",{type:"button",key:"expand",className:`${R}-${he?"collapse":"expand"}`,onClick:Ot=>Ie(Ot,{expanded:!he}),"aria-label":he?$.collapse:$==null?void 0:$.expand},typeof He=="function"?He(he):He):null},mt=()=>{if(!I)return;const{icon:Te,tooltip:He,tabIndex:Ot}=P,ht=Mr(He)[0]||($==null?void 0:$.edit),Gt=typeof ht=="string"?ht:"";return k.includes("icon")?c.createElement(qi,{key:"edit",title:He===!1?"":ht},c.createElement("button",{type:"button",ref:O,className:`${R}-edit`,onClick:D,"aria-label":Gt,tabIndex:Ot},Te||c.createElement(Fz,{role:"button"}))):null},Qe=()=>W?c.createElement(p9,Object.assign({key:"copy"},V,{prefixCls:R,copied:H,locale:$,onCopy:U,loading:Y,iconOnly:d==null})):null,je=Te=>[Te&&We(),mt(),Qe()],Je=Te=>[Te&&!he&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},C9),ce.suffix,je(Te)];return c.createElement(Co,{onResize:St,disabled:!de},Te=>c.createElement(v9,{tooltipProps:qe,enableEllipsis:de,isEllipsis:we},c.createElement(A2,Object.assign({className:ee({[`${R}-${s}`]:s,[`${R}-disabled`]:u,[`${R}-ellipsis`]:le,[`${R}-ellipsis-single-line`]:$e,[`${R}-ellipsis-multiple-line`]:ke},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:ke?se:void 0}),component:v,ref:Bo(Te,w,t),direction:b,onClick:k.includes("text")?D:void 0,"aria-label":at==null?void 0:at.toString(),title:y},_),c.createElement(h9,{enableMeasure:de&&!Se,text:d,rows:se,width:Ge,onEllipsis:ct,expanded:he,miscDeps:[H,he,Y,I,W,$].concat(Ae(CC.map(He=>e[He])))},(He,Ot)=>b9(e,c.createElement(c.Fragment,null,He.length>0&&Ot&&!he&&at?c.createElement("span",{key:"show-content","aria-hidden":!0},He):He,Je(Ot)))))))});var S9=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 x9=c.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:l}=e,s=S9(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},s),{rel:r===void 0&&s.target==="_blank"?"noopener noreferrer":r});return c.createElement(Zd,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),o)});var w9=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 $9=c.forwardRef((e,t)=>{const{children:n}=e,r=w9(e,["children"]);return c.createElement(Zd,Object.assign({ref:t},r,{component:"div"}),n)});var E9=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 O9=(e,t)=>{const{ellipsis:n,children:r}=e,o=E9(e,["ellipsis","children"]),l=c.useMemo(()=>n&&typeof n=="object"?Gn(n,["expandable","rows"]):n,[n]);return c.createElement(Zd,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},R9=c.forwardRef(O9);var I9=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 _9=[1,2,3,4,5],P9=c.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=I9(e,["level","children"]),l=_9.includes(n)?`h${n}`:"h1";return c.createElement(Zd,Object.assign({ref:t},o,{component:l}),r)}),Jo=A2;Jo.Text=R9;Jo.Link=x9;Jo.Title=P9;Jo.Paragraph=$9;var T9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},N9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:T9}))},k9=c.forwardRef(N9),M9={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"},j9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:M9}))},SC=c.forwardRef(j9),z9={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"},L9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:z9}))},B9=c.forwardRef(L9),A9={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"},D9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:A9}))},H9=c.forwardRef(D9),F9={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"},V9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:F9}))},W9=c.forwardRef(V9),U9={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"},q9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:U9}))},G9=c.forwardRef(q9),K9={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"},X9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:K9}))},Q9=c.forwardRef(X9),Y9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},J9=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:Y9}))},xC=c.forwardRef(J9),Z9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},eL=function(t,n){return c.createElement(un,Oe({},t,{ref:n,icon:Z9}))},tL=c.forwardRef(eL);function sd(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function wC(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??"")}const nL=[{match:/claude/i,name:"Claude",color:"#000000",svg:'<svg t="1771495509570" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1570" width="200" height="200"><path d="M198.4 678.4l198.4-115.2 6.4-12.8H243.2l-96-6.4-102.4-6.4-19.2-6.4-25.6-25.6v-12.8l19.2-12.8h32l64 6.4 96 6.4 70.4 6.4L384 512h19.2V492.8l-6.4-6.4-102.4-64-108.8-76.8-51.2-38.4-32-19.2-19.2-25.6-6.4-38.4 32-32h44.8l38.4 32 83.2 64L384 364.8l12.8 12.8 6.4-6.4-6.4-12.8L339.2 256l-64-108.8-25.6-38.4-6.4-25.6c0-12.8-6.4-19.2-6.4-32l32-44.8 19.2-6.4 44.8 6.4 19.2 12.8 25.6 57.6 44.8 96 64 128 19.2 38.4 6.4 38.4 6.4 12.8h6.4V384l6.4-70.4 12.8-89.6 12.8-115.2 6.4-32 19.2-38.4 32-19.2 25.6 12.8 19.2 32v19.2l-32 70.4-19.2 121.6-19.2 83.2h6.4l12.8-12.8 44.8-57.6 70.4-89.6 32-32 38.4-38.4 25.6-19.2h44.8l32 51.2-12.8 51.2-51.2 57.6-38.4 51.2-51.2 70.4-38.4 57.6v6.4h6.4l121.6-25.6 64-12.8 76.8-12.8 38.4 19.2 6.4 19.2-12.8 32-83.2 19.2-96 19.2-147.2 32 64 6.4h96l128 6.4 32 19.2 25.6 38.4-6.4 19.2-51.2 25.6-70.4-12.8-160-38.4-57.6-12.8h-6.4v6.4l44.8 44.8 83.2 76.8 108.8 102.4 6.4 25.6-12.8 19.2h-12.8l-96-70.4-38.4-32-83.2-70.4h-6.4v6.4l19.2 25.6 102.4 147.2 6.4 44.8-6.4 12.8-25.6 6.4-25.6-6.4-57.6-83.2-64-83.2-51.2-83.2-6.4 6.4-25.6 307.2-12.8 12.8-32 12.8-25.6-19.2-12.8-32 12.8-64 19.2-83.2 12.8-64 12.8-83.2 6.4-25.6h-6.4l-64 83.2-96 128-70.4 76.8-19.2 6.4-32-12.8v-25.6l19.2-25.6 102.4-128 64-83.2 38.4-51.2v-6.4l-268.8 172.8-51.2 12.8-19.2-19.2v-32l12.8-12.8 76.8-57.6z m0 0" fill="#D97757" p-id="1571"></path></svg>'},{match:/gpt|o1|o3|o4/i,name:"OpenAI",color:"#00000",svg:'<svg t="1771495569354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2752" width="200" height="200"><path d="M565.265178 954.519092c-22.289934 0-48.400999-8.151747-67.952455-14.838727a103.425292 103.425292 0 0 1-26.875292-11.272338c-12.737105-7.769634-15.411897-8.342804-19.806198-24.773669 21.971506-5.158528 81.581157-41.905075 103.871091-55.342721 148.896757-89.159735 119.028246-10.444426 119.028246-364.981743 15.029784 3.566389 82.791182 32.415932 82.791182 57.316972 0 133.102747 20.570425 273.847757-52.604243 354.91943-22.799418 25.47421-91.834527 58.972796-138.388646 58.972796z m-433.061569-299.321966c258.626916 136.860193 184.369594 157.048504 357.721593 52.094759 44.579867-27.193719 90.433445-49.292596 132.593263-77.568969v101.896839c-95.528287 22.226248-272.319304 227.038896-419.050754 100.686815l-25.856323-25.155782c-37.319718-43.943012-45.344094-72.410442-45.344094-151.889977z m375.744596-19.105658c-19.933569-13.310275-79.479535-51.330533-101.896839-57.316972v-133.739602a1158.312326 1158.312326 0 0 0 101.896839-57.316973c43.943012 10.189684 70.690933 47.063603 114.633945 57.316973v127.371049c-17.831947 12.10025-95.846715 58.718054-114.633945 63.749211z m-426.693016-178.31947c0-63.685525-4.26693-90.306074 38.84817-145.776166 23.945757-30.88748 47.509402-39.612396 82.090641-57.953828v261.110652c44.134069 23.372588 83.873836 49.037854 129.345301 74.448379l131.765351 78.396881c-59.545966 15.921381-63.685525 61.32916-109.602788 33.753328-104.699003-62.730242-272.38299-129.345301-272.38299-243.91556z m866.123138 127.37105c0 79.543221-47.573087 161.188063-121.002497 178.31947v-165.582365c0-82.791182 9.743885-84.574377-48.910483-116.608196L565.265178 362.371082c15.79401-23.62733 22.608361-19.105657 48.146256-34.835982 41.714019-25.47421 39.039227-16.112438 117.053995 28.785857 94.190891 54.196382 216.849212 100.559444 216.849212 228.885777z m-541.326961-197.425127v-95.528287c43.751956-23.181531 90.688187-50.94842 133.357489-76.804743 82.154327-49.547338 95.528287-63.303412 185.006449-63.303412 48.464684 0 102.533695 36.746548 125.651541 65.405034 42.223503 52.22213 39.930824 92.662439 39.930824 151.125751-31.078536-16.494551-192.393971-121.002497-222.899337-121.002498s-229.650003 123.422547-261.110652 140.108155z m-50.94842 159.213812c-16.36718-10.95391-63.112355-39.99451-82.791183-44.579867 0-168.320842-33.880699-314.606493 67.952455-390.519639 56.043262-41.714019 113.169178-53.814269 181.376375-30.696423 25.47421 8.661231 35.536523 20.888852 56.36169 26.429493-11.781822 16.048752-80.68956 50.311565-102.278953 63.303412-154.564769 93.235608-120.620384 7.451206-120.620384 376.063024z m-292.953415 121.002498c0 169.148754 115.143429 280.853165 274.293556 273.847756 59.800708-2.674792 26.811606-7.705949 69.417222 25.47421 97.820966 76.741057 228.822091 73.747838 319.637649 1.018969a251.939936 251.939936 0 0 0 52.604244-55.661149c58.20857-85.274918-10.95391-45.598836 81.96327-83.619094 130.236898-53.241099 199.399378-217.358696 128.64476-355.428914-27.448461-53.559526-40.249252-28.849543-28.276373-104.699003 18.723544-118.582447-63.176041-230.032116-157.621674-269.771884-98.90362-41.586648-129.090559 12.737105-178.892639-37.574459A161.888604 161.888604 0 0 0 580.103905 28.913674C474.003821-27.766443 331.284559 1.528898 258.428319 93.681853c-81.326415 102.979494 9.489143 54.705866-92.407697 98.648878C15.149614 257.353652-33.251385 439.175825 41.579107 561.06992c56.807488 92.598753 20.570425 4.967471 20.570424 106.800625z" fill="#EFA474" p-id="2753"></path></svg>'},{match:/gemini/i,name:"Gemini",color:"#4285F4",svg:'<svg t="1771495622863" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4556" width="200" height="200"><path d="M960 512.896A477.248 477.248 0 0 0 512.896 960h-1.792A477.184 477.184 0 0 0 64 512.896v-1.792A477.184 477.184 0 0 0 511.104 64h1.792A477.248 477.248 0 0 0 960 511.104z" fill="#448AFF" p-id="4557"></path></svg>'},{match:/qwen/i,name:"Qwen",color:"#00000",svg:'<svg t="1771495640319" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5634" width="200" height="200"><path d="M537.782857 57.161143c16.749714 29.44 33.426286 58.953143 50.102857 88.502857a7.68 7.68 0 0 0 6.692572 3.913143h236.873143c7.424 0 13.750857 4.681143 19.017142 13.933714l62.061715 109.677714c8.082286 14.372571 10.24 20.370286 1.024 35.693715a2262.893714 2262.893714 0 0 0-32.438857 55.478857l-15.652572 28.086857c-4.534857 8.338286-9.508571 11.922286-1.718857 21.833143l113.152 197.851428c7.314286 12.8 4.754286 21.065143-1.828571 32.841143-18.651429 33.499429-37.632 66.742857-56.978286 99.84-6.765714 11.593143-14.994286 16.018286-29.001143 15.798857a1833.398857 1833.398857 0 0 0-99.291429 0.658286 4.242286 4.242286 0 0 0-3.437714 2.157714 24571.830857 24571.830857 0 0 1-115.419428 202.24c-7.204571 12.507429-16.201143 15.469714-30.939429 15.506286-42.532571 0.146286-85.430857 0.182857-128.731429 0.109714a22.930286 22.930286 0 0 1-19.821714-11.556571l-56.978286-99.108571a3.84 3.84 0 0 0-3.547428-2.121143h-218.331429a76.288 76.288 0 0 1-34.377143-3.913143l-68.388571-118.198857a23.149714 23.149714 0 0 1-0.073143-23.04l51.492572-90.441143a8.448 8.448 0 0 0 0-8.411429 23594.496 23594.496 0 0 1-80.018286-139.593143L47.542857 425.325714c-6.838857-13.202286-7.387429-21.138286 4.022857-41.179428 19.858286-34.669714 39.570286-69.302857 59.209143-103.936 5.632-9.984 12.946286-14.262857 24.905143-14.262857 36.827429-0.182857 73.654857-0.182857 110.445714-0.073143 1.901714 0 3.657143-1.024 4.571429-2.669715l119.734857-208.859428a20.845714 20.845714 0 0 1 17.993143-10.496c22.381714-0.036571 44.946286 0 67.547428-0.256l43.410286-0.987429c14.555429-0.109714 30.866286 1.389714 38.4 14.518857z m-146.432 17.188571a2.56 2.56 0 0 0-2.194286 1.28l-122.331428 213.942857a6.692571 6.692571 0 0 1-5.741714 3.364572H138.788571c-2.377143 0-2.962286 1.060571-1.755428 3.145143l247.917714 433.334857c1.060571 1.792 0.548571 2.633143-1.462857 2.669714l-119.222857 0.658286a9.289143 9.289143 0 0 0-8.557714 4.937143l-56.32 98.56c-1.865143 3.328-0.914286 5.046857 2.925714 5.046857l243.858286 0.365714c1.974857 0 3.401143 0.841143 4.425142 2.56l59.867429 104.704c1.974857 3.474286 3.913143 3.510857 5.924571 0l213.577143-373.76 33.426286-58.953143a2.340571 2.340571 0 0 1 4.096 0l60.745143 107.958857a5.193143 5.193143 0 0 0 4.571428 2.633143l117.906286-0.841143a1.718857 1.718857 0 0 0 1.462857-2.56l-123.721143-217.014857a4.608 4.608 0 0 1 0-4.827428l12.507429-21.613715 47.798857-84.370285c1.024-1.755429 0.512-2.633143-1.499428-2.633143H392.521143c-2.486857 0-3.108571-1.097143-1.828572-3.291429l61.184-106.861714a4.571429 4.571429 0 0 0 0-4.864l-58.258285-102.253714a2.56 2.56 0 0 0-2.267429-1.316572z m268.361143 342.198857c1.974857 0 2.486857 0.841143 1.462857 2.56l-35.474286 62.500572-111.542857 195.620571a2.377143 2.377143 0 0 1-2.121143 1.243429 2.486857 2.486857 0 0 1-2.121142-1.243429l-147.346286-257.353143c-0.841143-1.462857-0.402286-2.230857 1.206857-2.304l9.216-0.512 286.793143-0.512h-0.073143z" fill="#7D5DED" p-id="5635"></path></svg>'},{match:/kimi|moonshot/i,name:"Kimi",color:"#00000",svg:'<svg t="1771495664798" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6649" width="200" height="200"><path d="M731.062857 590.262857v318.317714h-148.589714V443.977143a146.285714 146.285714 0 0 1-146.285714 146.285714l-214.491429-0.036571v318.354285H73.142857V165.814857h148.553143v275.858286h180.882286l119.771428-275.858286h167.753143l-67.84 156.269714a255.524571 255.524571 0 0 1-106.678857 119.588572h66.925714a148.553143 148.553143 0 0 1 148.516572 148.589714z m120.758857-473.965714a99.035429 99.035429 0 0 1 0 198.070857h-99.035428V215.332571a99.035429 99.035429 0 0 1 99.035428-99.035428z" fill="#F4F4F4" p-id="6650"></path></svg>'},{match:/glm|chatglm/i,name:"GLM",color:"#00000",svg:'<svg data-name="glm" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 217.2 200"> <!-- Generator: Adobe Illustrator 29.8.2, SVG Export Plug-In . SVG Version: 2.1.1 Build 3) --> <defs> <style> .st0 { fill: #fff; } </style> </defs> <path class="st0" d="M86.8,190.4H0L131.3,4.8h85.8L86.8,190.4h0ZM212.8,190h-107.9l14.9-21.6c2.3-3.3,6-5.2,9.9-5.2h83.1v26.8h0ZM99.4,26.3c-2.3,3.3-6,5.2-9.9,5.2H6.4V4.8h107.9l-14.9,21.6Z"/> </svg>'},{match:/minimax|abab/i,name:"MiniMax",color:"#00000",svg:'<svg viewBox="0 0 24 24" fill="#fff"><path d="M4 8l4-4 4 4 4-4 4 4v8l-4 4-4-4-4 4-4-4z" fill="none" stroke="#fff" stroke-width="1.5" stroke-linejoin="round"/></svg>'},{match:/deepseek/i,name:"DeepSeek",color:"#00000",svg:'<svg t="1771495947541" class="icon" viewBox="0 0 1391 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11539" width="200" height="200"><path d="M1326.70201318 112.02090779c-12.94676356-6.47485468-18.53640721 5.86654827-26.0997327 12.13814316-2.57756953 2.02376031-4.77807747 4.65435413-6.9785854 7.08168819-18.91788751 20.63528526-41.02017805 34.19182812-69.92725218 32.57311444-42.23384508-2.42733405-78.29772513 11.12773591-110.16384908 44.10589703-6.77679853-40.66668282-29.28560862-64.94444203-63.55255448-80.52327231-17.95608583-8.09209545-36.06388005-16.1856638-48.63358202-33.78825438-8.74900746-12.5431898-11.12773591-26.50330641-15.52727888-40.26016327-2.7823022-8.29535522-5.56460442-16.79249731-14.92044538-18.20942411-10.19244639-1.61871367-14.16337637 7.08168818-18.15934561 14.36516325-15.93232553 29.74073376-22.12880269 62.51710799-21.49692994 95.69705596 1.36684831 74.65672404 32.27117059 134.13819156 93.62469006 176.42358804 6.9800583 4.8546681 8.77551959 9.71080912 6.57501165 16.79102439-4.17271686 14.56695011-9.18056624 28.7303265-13.55506995 43.29727663-2.78377509 9.30723537-6.95501906 11.32952278-16.74241882 7.28347507-33.66158524-14.36516325-62.745407-35.60875491-88.46513227-61.30196806-43.62425973-43.09548975-83.0772755-90.64060097-132.26613965-127.86659667a581.67054343 581.67054343 0 0 0-35.07703915-24.48101901c-50.20074429-49.77065841 6.57501167-90.63912807 19.72650789-95.49526908 13.73181759-5.05792788 4.77955037-22.4572587-39.65480265-22.25547181s-85.07599655 15.3770434-136.87041526 35.60875491c-7.58541892 3.03416756-15.55379103 5.25971475-23.69596499 7.08168819-47.03990759-9.10544849-95.84876434-11.12773591-146.8596019-5.26118765-96.02551195 10.92594905-172.73103555 57.25739323-229.12678412 136.36373875-67.72674425 95.09022244-83.68558192 203.13015422-64.13582165 315.82149435 20.48504978 118.76262107 79.88992666 217.09027084 171.13736114 293.97106918 94.6350973 79.71317902 203.61031862 118.76262107 327.93607117 111.27735913 75.51542292-4.45256725 159.57953934-14.77020989 254.41642354-96.71040901 23.92426399 12.13961607 49.03715574 16.99575708 90.66564019 20.63675815 32.09295007 3.03416756 62.97223311-1.61871367 86.87145788-6.67664152 37.45429471-8.09209545 34.84874013-43.49906349 21.31870939-49.97244528-109.7838417-52.19946535-85.68283009-30.95587367-107.58333373-48.15194474 55.78891504-67.37324899 139.85303146-137.3770918 172.73103555-364.17669887 2.60408167-18.00616433 0.40357375-29.33568711 0-43.90263724-0.20325977-8.90218873 1.76894914-12.34287584 11.75960867-13.35328309 27.49014733-3.23742733 54.19671351-10.92594905 78.70277179-24.68280588 71.11440706-39.65480265 99.81822142-104.80250446 106.59649284-182.89844271 1.01188015-11.9363563-0.20178686-24.27775924-12.56970195-30.54935413M706.87018452 814.87993343c-106.36966673-85.37941333-157.98733782-113.5014334-179.30604722-112.28776638-19.92829476 1.21366703-16.33737217 24.48101902-11.96286844 39.65480264 4.5777635 14.97199677 10.57098089 25.2896394 18.94145384 38.44113563 5.76786417 8.70040186 9.76383341 21.64863831-5.78995762 31.35944742-34.26841876 21.64863831-93.82647692-7.28347506-96.60730623-8.69892897-69.3454579-41.67856295-127.33635378-96.710409-168.1797842-171.97249368-39.45154288-72.43117687-62.33888747-150.1220685-66.13306983-233.07267483-1.01188015-20.02992464 4.77955037-27.11161282 24.27923214-30.75408682a235.19659216 235.19659216 0 0 1 77.91771774-2.02228741c108.59668681 16.18713669 201.05631542 65.75453531 278.54394728 144.25552022 44.23256614 44.71125762 77.69089163 98.12439001 112.1861365 150.32385536 36.64567431 55.43394691 76.0986901 108.24024576 126.29943438 151.53604947 17.72778682 15.17378365 31.86465106 26.7065662 45.41972102 35.20370829-40.84343042 4.65435413-108.99878765 5.66476139-155.60860936-31.96628094m51.00936468-334.83953883c0-8.90218873 6.9815312-15.98387693 15.75557791-15.98387693q2.98408908 0.05155138 5.36134463 1.01188017a15.85720779 15.85720779 0 0 1 10.16740714 14.97199676 15.78061715 15.78061715 0 0 1-15.73053865 15.98387691 15.60386953 15.60386953 0 0 1-15.55379103-15.98387691m158.39238446 82.95060635c-10.1423679 4.24930749-20.30830215 7.89178146-30.09570191 8.29535522-15.12370514 0.81009328-31.66286419-5.46150162-40.61513142-13.15002332-13.96011661-11.93782919-23.92573689-18.61447073-28.09845373-39.45301577-1.79546129-8.90218873-0.81009328-22.65904557 0.78505403-30.54935414 3.59092258-16.99575708-0.40504665-27.92023321-12.13961606-37.8343021-9.55910075-8.09356835-21.72522894-10.31911553-35.07703915-10.31911552-4.98281013 0-9.55910075-2.22407429-12.94823645-4.04604774a13.27669246 13.27669246 0 0 1-5.76639128-18.61299783c1.39041466-2.8323807 8.16868608-9.71228202 9.7623605-10.92594905 18.13136058-10.52090241 39.04649623-7.08021529 58.36795748 0.81009328 17.93104659 7.48526194 31.46107731 21.24359167 51.01083757 40.6666828 19.92829476 23.46913885 23.51921733 29.94399353 34.84874013 47.54511123 8.97877936 13.75685685 17.14746545 27.92023321 22.71206987 44.10442409 3.41270206 10.11732865-0.98684091 18.41121097-12.74644958 23.46913885" fill="#4D6BFE" p-id="11540"></path></svg>'}];function rL(e){if(!e)return null;for(const t of nL)if(t.match.test(e))return{name:e.replace(/^claude-/,"").replace(/-\d{8,}$/,""),provider:t.name,color:t.color,svg:t.svg};return{name:e,provider:e,color:"#065f46",svg:ws("agent")}}function ws(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 $C(e){return e?/^Base directory for this skill:/i.test(e.trim()):!1}function cd(e){if(!e)return!0;const t=e.trim();return!!(!t||/^<[a-zA-Z_][\w-]*[\s>]/i.test(t)||/^\[SUGGESTION MODE:/i.test(t)||/^Your response was cut off because it exceeded the output token limit/i.test(t)||/^Base directory for this skill:/i.test(t))}function no(e){return e==null||e===0?"0":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function ud(e){if(Array.isArray(e))return e.map(ud);if(e&&typeof e=="object"){const t={};for(const n of Object.keys(e))n.startsWith("_")||(t[n]=ud(e[n]));return t}return e}function oL(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 d=t[u];d.input+=s.input_tokens||0,d.output+=s.output_tokens||0,d.cacheCreation+=s.cache_creation_input_tokens||0,d.cacheRead+=s.cache_read_input_tokens||0}return t}function iL(e){return e?e.replace(/^claude-/,"").replace(/-\d{8,}$/,""):null}const aL={"cli.alreadyWorking":{zh:"CC Viewer 已经能工作了",en:"CC Viewer is already working","zh-TW":"CC Viewer 已經能工作了",ko:"CC Viewer가 이미 작동 중입니다",ja:"CC Viewer は既に動作しています",de:"CC Viewer funktioniert bereits",es:"CC Viewer ya está funcionando",fr:"CC Viewer fonctionne déjà",it:"CC Viewer è già funzionante",da:"CC Viewer fungerer allerede",pl:"CC Viewer już działa",ru:"CC Viewer уже работает",ar:"CC Viewer يعمل بالفعل",no:"CC Viewer fungerer allerede","pt-BR":"CC Viewer já está funcionando",th:"CC Viewer ทำงานอยู่แล้ว",tr:"CC Viewer zaten çalışıyor",uk:"CC Viewer вже працює"},"cli.inject.success":{zh:"CC Viewer 安装成功",en:"CC Viewer installed successfully","zh-TW":"CC Viewer 安裝成功",ko:"CC Viewer 설치 성공",ja:"CC Viewer インストール成功",de:"CC Viewer erfolgreich installiert",es:"CC Viewer instalado correctamente",fr:"CC Viewer installé avec succès",it:"CC Viewer installato con successo",da:"CC Viewer installeret",pl:"CC Viewer zainstalowany pomyślnie",ru:"CC Viewer успешно установлен",ar:"تم تثبيت CC Viewer بنجاح",no:"CC Viewer installert","pt-BR":"CC Viewer instalado com sucesso",th:"ติดตั้ง CC Viewer สำเร็จ",tr:"CC Viewer başarıyla kuruldu",uk:"CC Viewer успішно встановлено"},"cli.inject.exists":{zh:"CC Viewer 已安装,无需重复操作",en:"CC Viewer already installed, no action needed","zh-TW":"CC Viewer 已安裝,無需重複操作",ko:"CC Viewer 이미 설치됨, 추가 작업 불필요",ja:"CC Viewer は既にインストール済み、操作不要",de:"CC Viewer bereits installiert, keine Aktion nötig",es:"CC Viewer ya instalado, no se requiere acción",fr:"CC Viewer déjà installé, aucune action nécessaire",it:"CC Viewer già installato, nessuna azione necessaria",da:"CC Viewer allerede installeret, ingen handling nødvendig",pl:"CC Viewer już zainstalowany, nie wymaga działania",ru:"CC Viewer уже установлен, действий не требуется",ar:"CC Viewer مثبت بالفعل، لا حاجة لأي إجراء",no:"CC Viewer allerede installert, ingen handling nødvendig","pt-BR":"CC Viewer já instalado, nenhuma ação necessária",th:"CC Viewer ติดตั้งแล้ว ไม่ต้องดำเนินการ",tr:"CC Viewer zaten kurulu, işlem gerekmiyor",uk:"CC Viewer вже встановлено, дій не потрібно"},"cli.inject.fail":{zh:"❌ 安装失败: {error}",en:"❌ Installation failed: {error}","zh-TW":"❌ 安裝失敗: {error}",ko:"❌ 설치 실패: {error}",ja:"❌ インストール失敗: {error}",de:"❌ Installation fehlgeschlagen: {error}",es:"❌ Instalación fallida: {error}",fr:"❌ Échec de l'installation : {error}",it:"❌ Installazione fallita: {error}",da:"❌ Installation mislykkedes: {error}",pl:"❌ Instalacja nie powiodła się: {error}",ru:"❌ Ошибка установки: {error}",ar:"❌ فشل التثبيت: {error}",no:"❌ Installasjon mislyktes: {error}","pt-BR":"❌ Falha na instalação: {error}",th:"❌ ติดตั้งล้มเหลว: {error}",tr:"❌ Kurulum başarısız: {error}",uk:"❌ Помилка встановлення: {error}"},"cli.inject.notFound":{zh:"❌ 找不到 Claude Code cli.js: {path}",en:"❌ Claude Code cli.js not found: {path}","zh-TW":"❌ 找不到 Claude Code cli.js: {path}",ko:"❌ Claude Code cli.js를 찾을 수 없음: {path}",ja:"❌ Claude Code cli.js が見つかりません: {path}",de:"❌ Claude Code cli.js nicht gefunden: {path}",es:"❌ Claude Code cli.js no encontrado: {path}",fr:"❌ Claude Code cli.js introuvable : {path}",it:"❌ Claude Code cli.js non trovato: {path}",da:"❌ Claude Code cli.js ikke fundet: {path}",pl:"❌ Nie znaleziono Claude Code cli.js: {path}",ru:"❌ Claude Code cli.js не найден: {path}",ar:"❌ لم يتم العثور على Claude Code cli.js: {path}",no:"❌ Claude Code cli.js ikke funnet: {path}","pt-BR":"❌ Claude Code cli.js não encontrado: {path}",th:"❌ ไม่พบ Claude Code cli.js: {path}",tr:"❌ Claude Code cli.js bulunamadı: {path}",uk:"❌ Claude Code cli.js не знайдено: {path}"},"cli.inject.notFoundHint":{zh:" 请确认 @anthropic-ai/claude-code 已安装",en:" Please make sure @anthropic-ai/claude-code is installed","zh-TW":" 請確認 @anthropic-ai/claude-code 已安裝",ko:" @anthropic-ai/claude-code가 설치되어 있는지 확인하세요",ja:" @anthropic-ai/claude-code がインストールされていることを確認してください",de:" Bitte stellen Sie sicher, dass @anthropic-ai/claude-code installiert ist",es:" Asegúrese de que @anthropic-ai/claude-code esté instalado",fr:" Veuillez vérifier que @anthropic-ai/claude-code est installé",it:" Assicurati che @anthropic-ai/claude-code sia installato",da:" Sørg for at @anthropic-ai/claude-code er installeret",pl:" Upewnij się, że @anthropic-ai/claude-code jest zainstalowany",ru:" Убедитесь, что @anthropic-ai/claude-code установлен",ar:" يرجى التأكد من تثبيت @anthropic-ai/claude-code",no:" Sørg for at @anthropic-ai/claude-code er installert","pt-BR":" Certifique-se de que @anthropic-ai/claude-code está instalado",th:" กรุณาตรวจสอบว่า @anthropic-ai/claude-code ถูกติดตั้งแล้ว",tr:" @anthropic-ai/claude-code'un kurulu olduğundan emin olun",uk:" Переконайтеся, що @anthropic-ai/claude-code встановлено"},"cli.hook.exists":{zh:"自动修复 hook 已存在于 {path}",en:"Auto-repair hook already exists in {path}","zh-TW":"自動修復 hook 已存在於 {path}",ko:"자동 복구 hook이 이미 {path}에 존재함",ja:"自動修復 hook は既に {path} に存在します",de:"Auto-Reparatur-Hook existiert bereits in {path}",es:"Hook de auto-reparación ya existe en {path}",fr:"Hook de réparation auto déjà présent dans {path}",it:"Hook di auto-riparazione già presente in {path}",da:"Auto-reparations-hook findes allerede i {path}",pl:"Hook auto-naprawy już istnieje w {path}",ru:"Hook автовосстановления уже существует в {path}",ar:"hook الإصلاح التلقائي موجود بالفعل في {path}",no:"Auto-reparasjons-hook finnes allerede i {path}","pt-BR":"Hook de auto-reparo já existe em {path}",th:"hook ซ่อมอัตโนมัติมีอยู่แล้วใน {path}",tr:"Otomatik onarım hook'u zaten {path} dosyasında mevcut",uk:"Hook автовідновлення вже існує в {path}"},"cli.hook.fail":{zh:"⚠️ shell hook 写入失败: {error}",en:"⚠️ Failed to write shell hook: {error}","zh-TW":"⚠️ shell hook 寫入失敗: {error}",ko:"⚠️ shell hook 작성 실패: {error}",ja:"⚠️ shell hook の書き込みに失敗: {error}",de:"⚠️ Shell-Hook konnte nicht geschrieben werden: {error}",es:"⚠️ Error al escribir el shell hook: {error}",fr:"⚠️ Échec de l'écriture du shell hook : {error}",it:"⚠️ Impossibile scrivere il shell hook: {error}",da:"⚠️ Kunne ikke skrive shell hook: {error}",pl:"⚠️ Nie udało się zapisać shell hook: {error}",ru:"⚠️ Не удалось записать shell hook: {error}",ar:"⚠️ فشل كتابة shell hook: {error}",no:"⚠️ Kunne ikke skrive shell hook: {error}","pt-BR":"⚠️ Falha ao escrever shell hook: {error}",th:"⚠️ เขียน shell hook ล้มเหลว: {error}",tr:"⚠️ Shell hook yazılamadı: {error}",uk:"⚠️ Не вдалося записати shell hook: {error}"},"cli.usage.hint":{zh:`
336
- 如需卸载,请运行: ccv --uninstall`,en:`
337
- To uninstall, run: ccv --uninstall`,"zh-TW":`
338
- 如需卸載,請執行: ccv --uninstall`,ko:`
339
- 제거하려면 실행: ccv --uninstall`,ja:`
340
- アンインストールするには: ccv --uninstall`,de:`
341
- Zum Deinstallieren: ccv --uninstall`,es:`
342
- Para desinstalar, ejecute: ccv --uninstall`,fr:`
343
- Pour désinstaller, exécutez : ccv --uninstall`,it:`
344
- Per disinstallare, esegui: ccv --uninstall`,da:`
345
- For at afinstallere, kør: ccv --uninstall`,pl:`
346
- Aby odinstalować, uruchom: ccv --uninstall`,ru:`
347
- Для удаления выполните: ccv --uninstall`,ar:`
348
- لإلغاء التثبيت، قم بتشغيل: ccv --uninstall`,no:`
349
- For å avinstallere, kjør: ccv --uninstall`,"pt-BR":`
350
- Para desinstalar, execute: ccv --uninstall`,th:`
351
- หากต้องการถอนการติดตั้ง ให้เรียกใช้: ccv --uninstall`,tr:`
352
- Kaldırmak için çalıştırın: ccv --uninstall`,uk:`
353
- Для видалення виконайте: ccv --uninstall`},"cli.usage.uninstallHint":{zh:"",en:"","zh-TW":"",ko:"",ja:"",de:"",es:"",fr:"",it:"",da:"",pl:"",ru:"",ar:"",no:"","pt-BR":"",th:"",tr:"",uk:""},"cli.uninstall.cliCleaned":{zh:"✅ cli.js 已清理",en:"✅ cli.js cleaned","zh-TW":"✅ cli.js 已清理",ko:"✅ cli.js 정리 완료",ja:"✅ cli.js をクリーンアップしました",de:"✅ cli.js bereinigt",es:"✅ cli.js limpiado",fr:"✅ cli.js nettoyé",it:"✅ cli.js pulito",da:"✅ cli.js renset",pl:"✅ cli.js wyczyszczony",ru:"✅ cli.js очищен",ar:"✅ تم تنظيف cli.js",no:"✅ cli.js renset","pt-BR":"✅ cli.js limpo",th:"✅ ล้าง cli.js แล้ว",tr:"✅ cli.js temizlendi",uk:"✅ cli.js очищено"},"cli.uninstall.cliNotFound":{zh:"⚠️ 未找到 Claude Code cli.js,跳过",en:"⚠️ Claude Code cli.js not found, skipped","zh-TW":"⚠️ 未找到 Claude Code cli.js,跳過",ko:"⚠️ Claude Code cli.js를 찾을 수 없음, 건너뜀",ja:"⚠️ Claude Code cli.js が見つかりません、スキップ",de:"⚠️ Claude Code cli.js nicht gefunden, übersprungen",es:"⚠️ Claude Code cli.js no encontrado, omitido",fr:"⚠️ Claude Code cli.js introuvable, ignoré",it:"⚠️ Claude Code cli.js non trovato, saltato",da:"⚠️ Claude Code cli.js ikke fundet, sprunget over",pl:"⚠️ Nie znaleziono Claude Code cli.js, pominięto",ru:"⚠️ Claude Code cli.js не найден, пропущено",ar:"⚠️ لم يتم العثور على Claude Code cli.js، تم التخطي",no:"⚠️ Claude Code cli.js ikke funnet, hoppet over","pt-BR":"⚠️ Claude Code cli.js não encontrado, ignorado",th:"⚠️ ไม่พบ Claude Code cli.js ข้ามไป",tr:"⚠️ Claude Code cli.js bulunamadı, atlandı",uk:"⚠️ Claude Code cli.js не знайдено, пропущено"},"cli.uninstall.cliFail":{zh:"❌ cli.js 清理失败",en:"❌ Failed to clean cli.js","zh-TW":"❌ cli.js 清理失敗",ko:"❌ cli.js 정리 실패",ja:"❌ cli.js のクリーンアップに失敗",de:"❌ cli.js Bereinigung fehlgeschlagen",es:"❌ Fallo al limpiar cli.js",fr:"❌ Échec du nettoyage de cli.js",it:"❌ Pulizia cli.js fallita",da:"❌ Rensning af cli.js mislykkedes",pl:"❌ Czyszczenie cli.js nie powiodło się",ru:"❌ Ошибка очистки cli.js",ar:"❌ فشل تنظيف cli.js",no:"❌ Rensing av cli.js mislyktes","pt-BR":"❌ Falha ao limpar cli.js",th:"❌ ล้าง cli.js ล้มเหลว",tr:"❌ cli.js temizleme başarısız",uk:"❌ Помилка очищення cli.js"},"cli.uninstall.hookRemoved":{zh:"✅ shell hook 已从 {path} 移除",en:"✅ Shell hook removed from {path}","zh-TW":"✅ shell hook 已從 {path} 移除",ko:"✅ shell hook이 {path}에서 제거됨",ja:"✅ shell hook を {path} から削除しました",de:"✅ Shell-Hook aus {path} entfernt",es:"✅ Shell hook eliminado de {path}",fr:"✅ Shell hook supprimé de {path}",it:"✅ Shell hook rimosso da {path}",da:"✅ Shell hook fjernet fra {path}",pl:"✅ Shell hook usunięty z {path}",ru:"✅ Shell hook удалён из {path}",ar:"✅ تم إزالة shell hook من {path}",no:"✅ Shell hook fjernet fra {path}","pt-BR":"✅ Shell hook removido de {path}",th:"✅ Shell hook ถูกลบออกจาก {path}",tr:"✅ Shell hook {path} dosyasından kaldırıldı",uk:"✅ Shell hook видалено з {path}"},"cli.uninstall.hookClean":{zh:"✅ {path} 中无需清理",en:"✅ No cleanup needed in {path}","zh-TW":"✅ {path} 中無需清理",ko:"✅ {path}에서 정리할 항목 없음",ja:"✅ {path} のクリーンアップは不要です",de:"✅ Keine Bereinigung in {path} nötig",es:"✅ No se necesita limpieza en {path}",fr:"✅ Aucun nettoyage nécessaire dans {path}",it:"✅ Nessuna pulizia necessaria in {path}",da:"✅ Ingen oprydning nødvendig i {path}",pl:"✅ Brak potrzeby czyszczenia w {path}",ru:"✅ Очистка в {path} не требуется",ar:"✅ لا حاجة للتنظيف في {path}",no:"✅ Ingen opprydding nødvendig i {path}","pt-BR":"✅ Nenhuma limpeza necessária em {path}",th:"✅ ไม่จำเป็นต้องล้างใน {path}",tr:"✅ {path} dosyasında temizlik gerekmiyor",uk:"✅ Очищення в {path} не потрібне"},"cli.uninstall.hookFail":{zh:"❌ shell hook 清理失败: {error}",en:"❌ Failed to clean shell hook: {error}","zh-TW":"❌ shell hook 清理失敗: {error}",ko:"❌ shell hook 정리 실패: {error}",ja:"❌ shell hook のクリーンアップに失敗: {error}",de:"❌ Shell-Hook-Bereinigung fehlgeschlagen: {error}",es:"❌ Error al limpiar el shell hook: {error}",fr:"❌ Échec du nettoyage du shell hook : {error}",it:"❌ Pulizia shell hook fallita: {error}",da:"❌ Kunne ikke rense shell hook: {error}",pl:"❌ Nie udało się wyczyścić shell hook: {error}",ru:"❌ Не удалось очистить shell hook: {error}",ar:"❌ فشل تنظيف shell hook: {error}",no:"❌ Kunne ikke rense shell hook: {error}","pt-BR":"❌ Falha ao limpar shell hook: {error}",th:"❌ ล้าง shell hook ล้มเหลว: {error}",tr:"❌ Shell hook temizlenemedi: {error}",uk:"❌ Не вдалося очистити shell hook: {error}"},"cli.uninstall.done":{zh:`
354
- 🗑️ CC Viewer 已完全卸载`,en:`
355
- 🗑️ CC Viewer fully uninstalled`,"zh-TW":`
356
- 🗑️ CC Viewer 已完全卸載`,ko:`
357
- 🗑️ CC Viewer 완전히 제거됨`,ja:`
358
- 🗑️ CC Viewer を完全にアンインストールしました`,de:`
359
- 🗑️ CC Viewer vollständig deinstalliert`,es:`
360
- 🗑️ CC Viewer desinstalado completamente`,fr:`
361
- 🗑️ CC Viewer entièrement désinstallé`,it:`
362
- 🗑️ CC Viewer completamente disinstallato`,da:`
363
- 🗑️ CC Viewer fuldstændigt afinstalleret`,pl:`
364
- 🗑️ CC Viewer całkowicie odinstalowany`,ru:`
365
- 🗑️ CC Viewer полностью удалён`,ar:`
366
- 🗑️ تم إلغاء تثبيت CC Viewer بالكامل`,no:`
367
- 🗑️ CC Viewer fullstendig avinstallert`,"pt-BR":`
368
- 🗑️ CC Viewer completamente desinstalado`,th:`
369
- 🗑️ CC Viewer ถูกถอนการติดตั้งอย่างสมบูรณ์`,tr:`
370
- 🗑️ CC Viewer tamamen kaldırıldı`,uk:`
371
- 🗑️ CC Viewer повністю видалено`},"server.started":{zh:`
372
- Claude 请求监控服务已启动: http://{host}:{port}
373
- `,en:`
374
- CC Viewer started: http://{host}:{port}
375
- `,"zh-TW":`
376
- Claude 請求監控服務已啟動: http://{host}:{port}
377
- `,ko:`
378
- CC Viewer 시작됨: http://{host}:{port}
379
- `,ja:`
380
- CC Viewer 起動: http://{host}:{port}
381
- `,de:`
382
- CC Viewer gestartet: http://{host}:{port}
383
- `,es:`
384
- CC Viewer iniciado: http://{host}:{port}
385
- `,fr:`
386
- CC Viewer démarré : http://{host}:{port}
387
- `,it:`
388
- CC Viewer avviato: http://{host}:{port}
389
- `,da:`
390
- CC Viewer startet: http://{host}:{port}
391
- `,pl:`
392
- CC Viewer uruchomiony: http://{host}:{port}
393
- `,ru:`
394
- CC Viewer запущен: http://{host}:{port}
395
- `,ar:`
396
- تم تشغيل CC Viewer: http://{host}:{port}
397
- `,no:`
398
- CC Viewer startet: http://{host}:{port}
399
- `,"pt-BR":`
400
- CC Viewer iniciado: http://{host}:{port}
401
- `,th:`
402
- CC Viewer เริ่มทำงาน: http://{host}:{port}
403
- `,tr:`
404
- CC Viewer başlatıldı: http://{host}:{port}
405
- `,uk:`
406
- CC Viewer запущено: http://{host}:{port}
407
- `},"server.reuse":{zh:`
408
- CC Viewer 已在运行: http://{host}:{port}
409
- `,en:`
410
- CC Viewer already running: http://{host}:{port}
411
- `,"zh-TW":`
412
- CC Viewer 已在運行: http://{host}:{port}
413
- `,ko:`
414
- CC Viewer 이미 실행 중: http://{host}:{port}
415
- `,ja:`
416
- CC Viewer は既に実行中: http://{host}:{port}
417
- `,de:`
418
- CC Viewer läuft bereits: http://{host}:{port}
419
- `,es:`
420
- CC Viewer ya en ejecución: http://{host}:{port}
421
- `,fr:`
422
- CC Viewer déjà en cours d'exécution : http://{host}:{port}
423
- `,it:`
424
- CC Viewer già in esecuzione: http://{host}:{port}
425
- `,da:`
426
- CC Viewer kører allerede: http://{host}:{port}
427
- `,pl:`
428
- CC Viewer już działa: http://{host}:{port}
429
- `,ru:`
430
- CC Viewer уже запущен: http://{host}:{port}
431
- `,ar:`
432
- CC Viewer يعمل بالفعل: http://{host}:{port}
433
- `,no:`
434
- CC Viewer kjører allerede: http://{host}:{port}
435
- `,"pt-BR":`
436
- CC Viewer já em execução: http://{host}:{port}
437
- `,th:`
438
- CC Viewer กำลังทำงานอยู่แล้ว: http://{host}:{port}
439
- `,tr:`
440
- CC Viewer zaten çalışıyor: http://{host}:{port}
441
- `,uk:`
442
- CC Viewer вже працює: http://{host}:{port}
443
- `},"server.portsBusy":{zh:"⚠️ 端口 {start}-{end} 均被占用,请求监控服务未启动",en:"⚠️ Ports {start}-{end} are all in use, monitoring service not started","zh-TW":"⚠️ 端口 {start}-{end} 均被佔用,請求監控服務未啟動",ko:"⚠️ 포트 {start}-{end} 모두 사용 중, 모니터링 서비스 미시작",ja:"⚠️ ポート {start}-{end} はすべて使用中、監視サービスは起動されませんでした",de:"⚠️ Ports {start}-{end} sind alle belegt, Überwachungsdienst nicht gestartet",es:"⚠️ Puertos {start}-{end} están todos en uso, servicio de monitoreo no iniciado",fr:"⚠️ Ports {start}-{end} tous occupés, service de surveillance non démarré",it:"⚠️ Porte {start}-{end} tutte in uso, servizio di monitoraggio non avviato",da:"⚠️ Porte {start}-{end} er alle i brug, overvågningstjeneste ikke startet",pl:"⚠️ Porty {start}-{end} są wszystkie zajęte, usługa monitorowania nie uruchomiona",ru:"⚠️ Порты {start}-{end} все заняты, служба мониторинга не запущена",ar:"⚠️ المنافذ {start}-{end} كلها مشغولة، لم يتم تشغيل خدمة المراقبة",no:"⚠️ Porter {start}-{end} er alle i bruk, overvåkningstjeneste ikke startet","pt-BR":"⚠️ Portas {start}-{end} estão todas em uso, serviço de monitoramento não iniciado",th:"⚠️ พอร์ต {start}-{end} ถูกใช้งานทั้งหมด บริการตรวจสอบไม่ได้เริ่มทำงาน",tr:"⚠️ {start}-{end} portları kullanımda, izleme servisi başlatılamadı",uk:"⚠️ Порти {start}-{end} всі зайняті, служба моніторингу не запущена"},"ui.requestList":{zh:"请求列表",en:"Requests","zh-TW":"請求列表",ko:"요청 목록",ja:"リクエスト一覧",de:"Anfragen",es:"Solicitudes",fr:"Requêtes",it:"Richieste",da:"Forespørgsler",pl:"Żądania",ru:"Запросы",ar:"الطلبات",no:"Forespørsler","pt-BR":"Requisições",th:"รายการคำขอ",tr:"İstekler",uk:"Запити"},"ui.totalRequests":{zh:"总请求数: {count}",en:"Total: {count}","zh-TW":"總請求數: {count}",ko:"총 요청 수: {count}",ja:"合計: {count}",de:"Gesamt: {count}",es:"Total: {count}",fr:"Total : {count}",it:"Totale: {count}",da:"Total: {count}",pl:"Łącznie: {count}",ru:"Всего: {count}",ar:"الإجمالي: {count}",no:"Totalt: {count}","pt-BR":"Total: {count}",th:"ทั้งหมด: {count}",tr:"Toplam: {count}",uk:"Всього: {count}"},"ui.waitingRequests":{zh:"等待请求...",en:"Waiting for requests...","zh-TW":"等待請求...",ko:"요청 대기 중...",ja:"リクエスト待機中...",de:"Warte auf Anfragen...",es:"Esperando solicitudes...",fr:"En attente de requêtes...",it:"In attesa di richieste...",da:"Venter på forespørgsler...",pl:"Oczekiwanie na żądania...",ru:"Ожидание запросов...",ar:"في انتظار الطلبات...",no:"Venter på forespørsler...","pt-BR":"Aguardando requisições...",th:"รอคำขอ...",tr:"İstekler bekleniyor...",uk:"Очікування запитів..."},"ui.importLocalLogs":{zh:"导入本地日志",en:"Import local logs","zh-TW":"匯入本地日誌",ko:"로컬 로그 가져오기",ja:"ローカルログをインポート",de:"Lokale Logs importieren",es:"Importar logs locales",fr:"Importer les logs locaux",it:"Importa log locali",da:"Importér lokale logs",pl:"Importuj lokalne logi",ru:"Импорт локальных логов",ar:"استيراد السجلات المحلية",no:"Importer lokale logger","pt-BR":"Importar logs locais",th:"นำเข้าบันทึกในเครื่อง",tr:"Yerel logları içe aktar",uk:"Імпорт локальних логів"},"ui.loadLocalJsonl":{zh:"直接选择加载本地jsonl文件",en:"Load local JSONL file","zh-TW":"直接選擇載入本地jsonl檔案",ko:"로컬 JSONL 파일 선택",ja:"ローカルJSONLファイルを選択",de:"Lokale JSONL-Datei auswählen",es:"Seleccionar archivo JSONL local",fr:"Sélectionner un fichier JSONL local",it:"Seleziona file JSONL locale",da:"Vælg lokal JSONL-fil",pl:"Wybierz lokalny plik JSONL",ru:"Выбрать локальный JSONL файл",ar:"اختيار ملف JSONL محلي",no:"Velg lokal JSONL-fil","pt-BR":"Selecionar arquivo JSONL local",th:"เลือกไฟล์ JSONL ในเครื่อง",tr:"Yerel JSONL dosyası seç",uk:"Вибрати локальний JSONL файл"},"ui.fileTooLarge":{zh:"文件大小不能超过 200MB",en:"File size cannot exceed 200MB","zh-TW":"檔案大小不能超過 200MB",ko:"파일 크기는 200MB를 초과할 수 없습니다",ja:"ファイルサイズは200MBを超えることはできません",de:"Dateigröße darf 200MB nicht überschreiten",es:"El tamaño del archivo no puede superar 200MB",fr:"La taille du fichier ne peut pas dépasser 200 Mo",it:"La dimensione del file non può superare 200MB",da:"Filstørrelsen må ikke overstige 200MB",pl:"Rozmiar pliku nie może przekraczać 200MB",ru:"Размер файла не может превышать 200МБ",ar:"حجم الملف لا يمكن أن يتجاوز 200 ميجابايت",no:"Filstørrelsen kan ikke overstige 200MB","pt-BR":"O tamanho do arquivo não pode exceder 200MB",th:"ขนาดไฟล์ต้องไม่เกิน 200MB",tr:"Dosya boyutu 200MB'ı aşamaz",uk:"Розмір файлу не може перевищувати 200МБ"},"ui.saveLog":{zh:"下载当前日志",en:"Download current log","zh-TW":"下載當前日誌",ko:"현재 로그 다운로드",ja:"現在のログをダウンロード",de:"Aktuelles Log herunterladen",es:"Descargar log actual",fr:"Télécharger le log actuel",it:"Scarica log corrente",da:"Download nuværende log",pl:"Pobierz bieżący log",ru:"Скачать текущий лог",ar:"تحميل السجل الحالي",no:"Last ned gjeldende logg","pt-BR":"Baixar log atual",th:"ดาวน์โหลดล็อกปัจจุบัน",tr:"Mevcut günlüğü indir",uk:"Завантажити поточний лог"},"ui.exportPrompts":{zh:"导出用户 Prompt",en:"Export user prompts","zh-TW":"匯出用戶 Prompt",ko:"사용자 Prompt 내보내기",ja:"ユーザー Prompt をエクスポート",de:"Benutzer-Prompts exportieren",es:"Exportar prompts de usuario",fr:"Exporter les prompts utilisateur",it:"Esporta prompt utente",da:"Eksportér bruger-prompts",pl:"Eksportuj prompty użytkownika",ru:"Экспорт пользовательских Prompt",ar:"تصدير Prompt المستخدم",no:"Eksporter bruker-prompts","pt-BR":"Exportar prompts do usuário",th:"ส่งออก Prompt ผู้ใช้",tr:"Kullanıcı Prompt'larını dışa aktar",uk:"Експорт Prompt користувача"},"ui.exportPromptsTxt":{zh:"导出到本地 .txt",en:"Export to local .txt","zh-TW":"匯出到本地 .txt",ko:"로컬 .txt로 내보내기",ja:"ローカル .txt にエクスポート",de:"Als lokale .txt exportieren",es:"Exportar a .txt local",fr:"Exporter en .txt local",it:"Esporta in .txt locale",da:"Eksportér til lokal .txt",pl:"Eksportuj do lokalnego .txt",ru:"Экспорт в локальный .txt",ar:"تصدير إلى ملف .txt محلي",no:"Eksporter til lokal .txt","pt-BR":"Exportar para .txt local",th:"ส่งออกเป็นไฟล์ .txt ในเครื่อง",tr:"Yerel .txt olarak dışa aktar",uk:"Експорт у локальний .txt"},"ui.tokenStats":{zh:"Token 消耗统计",en:"Token Stats","zh-TW":"Token 消耗統計",ko:"Token 소비 통계",ja:"Token 消費統計",de:"Token-Statistik",es:"Estadísticas de Token",fr:"Statistiques Token",it:"Statistiche Token",da:"Token-statistik",pl:"Statystyki Token",ru:"Статистика Token",ar:"إحصائيات Token",no:"Token-statistikk","pt-BR":"Estatísticas de Token",th:"สถิติ Token",tr:"Token İstatistikleri",uk:"Статистика Token"},"ui.liveMonitoring":{zh:"实时监控中",en:"Live","zh-TW":"即時監控中",ko:"실시간 모니터링",ja:"リアルタイム監視中",de:"Live",es:"En vivo",fr:"En direct",it:"Live",da:"Live",pl:"Na żywo",ru:"Мониторинг",ar:"مباشر",no:"Live","pt-BR":"Ao vivo",th:"สด",tr:"Canlı",uk:"Моніторинг"},"ui.historyLog":{zh:"历史日志: {file}",en:"History: {file}","zh-TW":"歷史日誌: {file}",ko:"기록: {file}",ja:"履歴: {file}",de:"Verlauf: {file}",es:"Historial: {file}",fr:"Historique : {file}",it:"Cronologia: {file}",da:"Historik: {file}",pl:"Historia: {file}",ru:"История: {file}",ar:"السجل: {file}",no:"Historikk: {file}","pt-BR":"Histórico: {file}",th:"ประวัติ: {file}",tr:"Geçmiş: {file}",uk:"Історія: {file}"},"ui.chatMode":{zh:"对话模式",en:"Chat mode","zh-TW":"對話模式",ko:"대화 모드",ja:"チャットモード",de:"Chat-Modus",es:"Modo chat",fr:"Mode conversation",it:"Modalità chat",da:"Chat-tilstand",pl:"Tryb czatu",ru:"Режим чата",ar:"وضع المحادثة",no:"Chat-modus","pt-BR":"Modo chat",th:"โหมดแชท",tr:"Sohbet modu",uk:"Режим чату"},"ui.rawMode":{zh:"回到原文模式",en:"Back to Raw","zh-TW":"回到原文模式",ko:"원문 모드로 돌아가기",ja:"Raw モードに戻る",de:"Zurück zum Rohmodus",es:"Volver al modo raw",fr:"Retour au mode brut",it:"Torna alla modalità raw",da:"Tilbage til rå tilstand",pl:"Powrót do trybu surowego",ru:"Вернуться в режим raw",ar:"العودة للوضع الخام",no:"Tilbake til rå modus","pt-BR":"Voltar ao modo raw",th:"กลับสู่โหมด Raw",tr:"Ham moda dön",uk:"Повернутися до режиму raw"},"ui.cacheExpired":{zh:"已失效",en:"Expired","zh-TW":"已失效",ko:"만료됨",ja:"期限切れ",de:"Abgelaufen",es:"Expirado",fr:"Expiré",it:"Scaduto",da:"Udløbet",pl:"Wygasło",ru:"Истёк",ar:"منتهي الصلاحية",no:"Utløpt","pt-BR":"Expirado",th:"หมดอายุ",tr:"Süresi doldu",uk:"Закінчився"},"ui.cacheCountdown":{zh:"MainAgent 缓存{type}失效倒计时:",en:"MainAgent cache{type} expires in: ","zh-TW":"MainAgent 快取{type}失效倒數:",ko:"MainAgent cache{type} 만료 카운트다운: ",ja:"MainAgent cache{type} 期限切れまで: ",de:"MainAgent Cache{type} läuft ab in: ",es:"Cache{type} de MainAgent expira en: ",fr:"Cache{type} MainAgent expire dans : ",it:"Cache{type} MainAgent scade tra: ",da:"MainAgent cache{type} udløber om: ",pl:"Cache{type} MainAgent wygasa za: ",ru:"Cache{type} MainAgent истекает через: ",ar:"ينتهي cache{type} لـ MainAgent خلال: ",no:"MainAgent cache{type} utløper om: ","pt-BR":"Cache{type} do MainAgent expira em: ",th:"Cache{type} ของ MainAgent หมดอายุใน: ",tr:"MainAgent cache{type} süresi doluyor: ",uk:"Cache{type} MainAgent закінчується через: "},"ui.minuteSecond":{zh:"{m}分{s}秒",en:"{m}m{s}s","zh-TW":"{m}分{s}秒",ko:"{m}분{s}초",ja:"{m}分{s}秒",de:"{m}m{s}s",es:"{m}m{s}s",fr:"{m}m{s}s",it:"{m}m{s}s",da:"{m}m{s}s",pl:"{m}m{s}s",ru:"{m}м{s}с",ar:"{m}د{s}ث",no:"{m}m{s}s","pt-BR":"{m}m{s}s",th:"{m}นาที{s}วินาที",tr:"{m}dk{s}sn",uk:"{m}хв{s}с"},"ui.second":{zh:"{s}秒",en:"{s}s","zh-TW":"{s}秒",ko:"{s}초",ja:"{s}秒",de:"{s}s",es:"{s}s",fr:"{s}s",it:"{s}s",da:"{s}s",pl:"{s}s",ru:"{s}с",ar:"{s}ث",no:"{s}s","pt-BR":"{s}s",th:"{s}วินาที",tr:"{s}sn",uk:"{s}с"},"ui.hitRate":{zh:"命中率",en:"Hit rate","zh-TW":"命中率",ko:"적중률",ja:"ヒット率",de:"Trefferquote",es:"Tasa de aciertos",fr:"Taux de succès",it:"Tasso di successo",da:"Hitrate",pl:"Współczynnik trafień",ru:"Процент попаданий",ar:"معدل الإصابة",no:"Treffrate","pt-BR":"Taxa de acerto",th:"อัตราการเข้าถึง",tr:"İsabet oranı",uk:"Відсоток влучень"},"ui.userPrompt":{zh:"用户 Prompt",en:"User Prompt","zh-TW":"用戶 Prompt",ko:"사용자 Prompt",ja:"ユーザー Prompt",de:"Benutzer-Prompt",es:"Prompt de usuario",fr:"Prompt utilisateur",it:"Prompt utente",da:"Bruger-Prompt",pl:"Prompt użytkownika",ru:"Prompt пользователя",ar:"Prompt المستخدم",no:"Bruker-Prompt","pt-BR":"Prompt do usuário",th:"Prompt ผู้ใช้",tr:"Kullanıcı Prompt",uk:"Prompt користувача"},"ui.noPrompt":{zh:"暂无用户 Prompt",en:"No user prompts yet","zh-TW":"暫無用戶 Prompt",ko:"사용자 Prompt 없음",ja:"ユーザー Prompt はまだありません",de:"Noch keine Benutzer-Prompts",es:"Sin prompts de usuario aún",fr:"Aucun prompt utilisateur",it:"Nessun prompt utente",da:"Ingen bruger-prompts endnu",pl:"Brak promptów użytkownika",ru:"Нет пользовательских Prompt",ar:"لا توجد Prompt للمستخدم بعد",no:"Ingen bruker-prompts ennå","pt-BR":"Nenhum prompt de usuário ainda",th:"ยังไม่มี Prompt ผู้ใช้",tr:"Henüz kullanıcı Prompt'u yok",uk:"Немає Prompt користувача"},"ui.unknownTime":{zh:"未知时间",en:"Unknown time","zh-TW":"未知時間",ko:"알 수 없는 시간",ja:"不明な時刻",de:"Unbekannte Zeit",es:"Hora desconocida",fr:"Heure inconnue",it:"Ora sconosciuta",da:"Ukendt tid",pl:"Nieznany czas",ru:"Неизвестное время",ar:"وقت غير معروف",no:"Ukjent tid","pt-BR":"Hora desconhecida",th:"เวลาไม่ทราบ",tr:"Bilinmeyen zaman",uk:"Невідомий час"},"ui.logCount":{zh:"{count} 个日志",en:"{count} logs","zh-TW":"{count} 個日誌",ko:"{count}개 로그",ja:"{count} 件のログ",de:"{count} Logs",es:"{count} logs",fr:"{count} logs",it:"{count} log",da:"{count} logs",pl:"{count} logów",ru:"{count} логов",ar:"{count} سجلات",no:"{count} logger","pt-BR":"{count} logs",th:"{count} บันทึก",tr:"{count} log",uk:"{count} логів"},"ui.noLogs":{zh:"暂无日志文件",en:"No log files","zh-TW":"暫無日誌檔案",ko:"로그 파일 없음",ja:"ログファイルなし",de:"Keine Log-Dateien",es:"Sin archivos de log",fr:"Aucun fichier de log",it:"Nessun file di log",da:"Ingen logfiler",pl:"Brak plików logów",ru:"Нет файлов логов",ar:"لا توجد ملفات سجلات",no:"Ingen loggfiler","pt-BR":"Nenhum arquivo de log",th:"ไม่มีไฟล์บันทึก",tr:"Log dosyası yok",uk:"Немає файлів логів"},"ui.toolReturn":{zh:"工具返回",en:"Tool result","zh-TW":"工具返回",ko:"도구 결과",ja:"ツール結果",de:"Tool-Ergebnis",es:"Resultado de herramienta",fr:"Résultat d'outil",it:"Risultato strumento",da:"Værktøjsresultat",pl:"Wynik narzędzia",ru:"Результат инструмента",ar:"نتيجة الأداة",no:"Verktøyresultat","pt-BR":"Resultado da ferramenta",th:"ผลลัพธ์เครื่องมือ",tr:"Araç sonucu",uk:"Результат інструменту"},"ui.toolReturnNamed":{zh:"{name} 返回",en:"{name} result","zh-TW":"{name} 返回",ko:"{name} 결과",ja:"{name} 結果",de:"{name}-Ergebnis",es:"Resultado de {name}",fr:"Résultat de {name}",it:"Risultato di {name}",da:"{name}-resultat",pl:"Wynik {name}",ru:"Результат {name}",ar:"نتيجة {name}",no:"{name}-resultat","pt-BR":"Resultado de {name}",th:"ผลลัพธ์ {name}",tr:"{name} sonucu",uk:"Результат {name}"},"ui.lastResponse":{zh:"Last Response",en:"Last Response","zh-TW":"Last Response",ko:"Last Response",ja:"Last Response",de:"Last Response",es:"Last Response",fr:"Last Response",it:"Last Response",da:"Last Response",pl:"Last Response",ru:"Last Response",ar:"Last Response",no:"Last Response","pt-BR":"Last Response",th:"Last Response",tr:"Last Response",uk:"Last Response"},"ui.copySuccess":{zh:"复制成功",en:"Copied","zh-TW":"複製成功",ko:"복사됨",ja:"コピーしました",de:"Kopiert",es:"Copiado",fr:"Copié",it:"Copiato",da:"Kopieret",pl:"Skopiowano",ru:"Скопировано",ar:"تم النسخ",no:"Kopiert","pt-BR":"Copiado",th:"คัดลอกแล้ว",tr:"Kopyalandı",uk:"Скопійовано"},"ui.copy":{zh:"复制",en:"Copy","zh-TW":"複製",ko:"복사",ja:"コピー",de:"Kopieren",es:"Copiar",fr:"Copier",it:"Copia",da:"Kopiér",pl:"Kopiuj",ru:"Копировать",ar:"نسخ",no:"Kopier","pt-BR":"Copiar",th:"คัดลอก",tr:"Kopyala",uk:"Копіювати"},"ui.noHeaders":{zh:"无 Headers",en:"No Headers","zh-TW":"無 Headers",ko:"Headers 없음",ja:"Headers なし",de:"Keine Headers",es:"Sin Headers",fr:"Pas de Headers",it:"Nessun Header",da:"Ingen Headers",pl:"Brak Headers",ru:"Нет Headers",ar:"لا يوجد Headers",no:"Ingen Headers","pt-BR":"Sem Headers",th:"ไม่มี Headers",tr:"Header yok",uk:"Немає Headers"},"ui.noBody":{zh:"无 Body",en:"No Body","zh-TW":"無 Body",ko:"Body 없음",ja:"Body なし",de:"Kein Body",es:"Sin Body",fr:"Pas de Body",it:"Nessun Body",da:"Ingen Body",pl:"Brak Body",ru:"Нет Body",ar:"لا يوجد Body",no:"Ingen Body","pt-BR":"Sem Body",th:"ไม่มี Body",tr:"Body yok",uk:"Немає Body"},"ui.streamingResponse":{zh:"⚡ 流式响应 — 此请求使用了 SSE 流式传输,响应内容无法完整捕获。",en:"⚡ Streaming response — This request used SSE streaming, response content cannot be fully captured.","zh-TW":"⚡ 串流回應 — 此請求使用了 SSE 串流傳輸,回應內容無法完整擷取。",ko:"⚡ 스트리밍 응답 — 이 요청은 SSE 스트리밍을 사용하여 응답 내용을 완전히 캡처할 수 없습니다.",ja:"⚡ ストリーミングレスポンス — このリクエストは SSE ストリーミングを使用しており、レスポンス内容を完全にキャプチャできませんでした。",de:"⚡ Streaming-Antwort — Diese Anfrage nutzte SSE-Streaming, der Antwortinhalt konnte nicht vollständig erfasst werden.",es:"⚡ Respuesta en streaming — Esta solicitud usó streaming SSE, el contenido de la respuesta no se pudo capturar completamente.",fr:"⚡ Réponse en streaming — Cette requête a utilisé le streaming SSE, le contenu de la réponse n'a pas pu être entièrement capturé.",it:"⚡ Risposta in streaming — Questa richiesta ha utilizzato lo streaming SSE, il contenuto della risposta non può essere catturato completamente.",da:"⚡ Streaming-svar — Denne forespørgsel brugte SSE-streaming, svarindholdet kunne ikke fuldt indfanges.",pl:"⚡ Odpowiedź strumieniowa — To żądanie użyło strumieniowania SSE, treść odpowiedzi nie mogła zostać w pełni przechwycona.",ru:"⚡ Потоковый ответ — Этот запрос использовал SSE-потоковую передачу, содержимое ответа не может быть полностью захвачено.",ar:"⚡ استجابة متدفقة — استخدم هذا الطلب بث SSE، لا يمكن التقاط محتوى الاستجابة بالكامل.",no:"⚡ Strømmesvar — Denne forespørselen brukte SSE-strømming, svarinnholdet kunne ikke fanges fullstendig.","pt-BR":"⚡ Resposta em streaming — Esta requisição usou streaming SSE, o conteúdo da resposta não pôde ser totalmente capturado.",th:"⚡ การตอบกลับแบบสตรีม — คำขอนี้ใช้ SSE streaming เนื้อหาการตอบกลับไม่สามารถจับได้ทั้งหมด",tr:"⚡ Akış yanıtı — Bu istek SSE akışı kullandı, yanıt içeriği tam olarak yakalanamadı.",uk:"⚡ Потокова відповідь — Цей запит використовував SSE-потокову передачу, вміст відповіді не може бути повністю захоплений."},"ui.responseNotCaptured":{zh:"响应数据未捕获",en:"Response not captured","zh-TW":"回應資料未擷取",ko:"응답 데이터 미캡처",ja:"レスポンスデータ未キャプチャ",de:"Antwortdaten nicht erfasst",es:"Datos de respuesta no capturados",fr:"Données de réponse non capturées",it:"Dati di risposta non catturati",da:"Svardata ikke indfanget",pl:"Dane odpowiedzi nie przechwycone",ru:"Данные ответа не захвачены",ar:"لم يتم التقاط بيانات الاستجابة",no:"Svardata ikke fanget","pt-BR":"Dados de resposta não capturados",th:"ไม่ได้จับข้อมูลการตอบกลับ",tr:"Yanıt verileri yakalanamadı",uk:"Дані відповіді не захоплені"},"ui.expand":{zh:"▶ 展开",en:"▶ Expand","zh-TW":"▶ 展開",ko:"▶ 펼치기",ja:"▶ 展開",de:"▶ Aufklappen",es:"▶ Expandir",fr:"▶ Déplier",it:"▶ Espandi",da:"▶ Udvid",pl:"▶ Rozwiń",ru:"▶ Развернуть",ar:"▶ توسيع",no:"▶ Utvid","pt-BR":"▶ Expandir",th:"▶ ขยาย",tr:"▶ Genişlet",uk:"▶ Розгорнути"},"ui.collapse":{zh:"▼ 收起",en:"▼ Collapse","zh-TW":"▼ 收起",ko:"▼ 접기",ja:"▼ 折りたたむ",de:"▼ Zuklappen",es:"▼ Contraer",fr:"▼ Replier",it:"▼ Comprimi",da:"▼ Fold sammen",pl:"▼ Zwiń",ru:"▼ Свернуть",ar:"▼ طي",no:"▼ Skjul","pt-BR":"▼ Recolher",th:"▼ ย่อ",tr:"▼ Daralt",uk:"▼ Згорнути"},"ui.noChat":{zh:"暂无 MainAgent 对话数据",en:"No MainAgent conversation data","zh-TW":"暫無 MainAgent 對話資料",ko:"MainAgent 대화 데이터 없음",ja:"MainAgent の会話データがありません",de:"Keine MainAgent-Gesprächsdaten",es:"Sin datos de conversación de MainAgent",fr:"Aucune donnée de conversation MainAgent",it:"Nessun dato di conversazione MainAgent",da:"Ingen MainAgent samtaledata",pl:"Brak danych rozmowy MainAgent",ru:"Нет данных диалога MainAgent",ar:"لا توجد بيانات محادثة MainAgent",no:"Ingen MainAgent samtaledata","pt-BR":"Sem dados de conversa do MainAgent",th:"ไม่มีข้อมูลการสนทนา MainAgent",tr:"MainAgent konuşma verisi yok",uk:"Немає даних діалогу MainAgent"},"ui.diffWithPrev":{zh:"与上次请求的差异",en:"Diff with previous request","zh-TW":"與上次請求的差異",ko:"이전 요청과의 차이",ja:"前回リクエストとの差分",de:"Diff zur vorherigen Anfrage",es:"Diferencia con la solicitud anterior",fr:"Diff avec la requête précédente",it:"Diff con la richiesta precedente",da:"Diff med forrige anmodning",pl:"Różnica z poprzednim żądaniem",ru:"Отличия от предыдущего запроса",ar:"الفرق مع الطلب السابق",no:"Diff med forrige forespørsel","pt-BR":"Diff com a requisição anterior",th:"ความแตกต่างกับคำขอก่อนหน้า",tr:"Önceki istekle fark",uk:"Відмінності від попереднього запиту"},"ui.diffSessionChanged":{zh:"请求体大小减小,可能使用了 /clear、/compact 或 session 发生了变化",en:"Request body size decreased, possibly due to /clear, /compact, or session change","zh-TW":"請求體大小減小,可能使用了 /clear、/compact 或 session 發生了變化",ko:"요청 본문 크기가 줄었습니다. /clear, /compact 또는 세션 변경이 있었을 수 있습니다",ja:"リクエストボディのサイズが減少しました。/clear、/compact、またはセッション変更の可能性があります",de:"Anfragekörper wurde kleiner, möglicherweise durch /clear, /compact oder Sitzungswechsel",es:"El tamaño del cuerpo de la solicitud disminuyó, posiblemente debido a /clear, /compact o cambio de sesión",fr:"La taille du corps de la requête a diminué, possiblement dû à /clear, /compact ou un changement de session",it:"La dimensione del corpo della richiesta è diminuita, probabilmente a causa di /clear, /compact o cambio di sessione",da:"Anmodningens størrelse er reduceret, muligvis på grund af /clear, /compact eller sessionsændring",pl:"Rozmiar treści żądania zmniejszył się, prawdopodobnie z powodu /clear, /compact lub zmiany sesji",ru:"Размер тела запроса уменьшился, возможно из-за /clear, /compact или смены сессии",ar:"حجم نص الطلب انخفض، ربما بسبب /clear أو /compact أو تغيير الجلسة",no:"Forespørselens størrelse ble redusert, muligens på grunn av /clear, /compact eller sesjonsendring","pt-BR":"O tamanho do corpo da requisição diminuiu, possivelmente devido a /clear, /compact ou mudança de sessão",th:"ขนาดเนื้อหาคำขอลดลง อาจเกิดจาก /clear, /compact หรือการเปลี่ยนเซสชัน",tr:"İstek gövdesi boyutu küçüldü, muhtemelen /clear, /compact veya oturum değişikliği nedeniyle",uk:"Розмір тіла запиту зменшився, можливо через /clear, /compact або зміну сесії"},"ui.diffTooltip":{zh:"为了避免看冗长的全文,所以为大家简化展示了 MainAgent 的增量部分,通常只有 message 增加",en:"To avoid reading lengthy full text, only the incremental parts of MainAgent are shown — typically just new messages","zh-TW":"為了避免閱讀冗長的全文,簡化展示了 MainAgent 的增量部分,通常只有 message 增加",ko:"긴 전체 텍스트를 읽지 않도록 MainAgent의 증분 부분만 간략히 표시합니다. 일반적으로 message 추가만 있습니다",ja:"MainAgent の増分部分のみを簡略表示しています。長い全文を読む手間を省くため、通常は message の追加のみです",de:"Um das Lesen langer Volltexte zu vermeiden, werden nur die inkrementellen Teile des MainAgent angezeigt — in der Regel nur neue Nachrichten",es:"Para evitar leer textos completos extensos, solo se muestran las partes incrementales del MainAgent — normalmente solo mensajes nuevos",fr:"Pour éviter de lire de longs textes complets, seules les parties incrémentales du MainAgent sont affichées — généralement uniquement les nouveaux messages",it:"Per evitare di leggere lunghi testi completi, vengono mostrate solo le parti incrementali del MainAgent — di solito solo nuovi messaggi",da:"For at undgå at læse lange fuldtekster vises kun de inkrementelle dele af MainAgent — typisk kun nye beskeder",pl:"Aby uniknąć czytania długich pełnych tekstów, wyświetlane są tylko przyrostowe części MainAgent — zwykle tylko nowe wiadomości",ru:"Чтобы не читать длинный полный текст, отображаются только инкрементальные части MainAgent — обычно только новые сообщения",ar:"لتجنب قراءة النص الكامل الطويل، يتم عرض الأجزاء التزايدية فقط من MainAgent — عادةً فقط الرسائل الجديدة",no:"For å unngå å lese lange fulltekster vises kun de inkrementelle delene av MainAgent — vanligvis bare nye meldinger","pt-BR":"Para evitar ler textos completos longos, apenas as partes incrementais do MainAgent são exibidas — geralmente apenas novas mensagens",th:"เพื่อหลีกเลี่ยงการอ่านข้อความเต็มที่ยาว จึงแสดงเฉพาะส่วนที่เพิ่มขึ้นของ MainAgent เท่านั้น — โดยปกติจะมีเพียง message ใหม่",tr:"Uzun tam metinleri okumaktan kaçınmak için yalnızca MainAgent'ın artımlı kısımları gösterilir — genellikle yalnızca yeni mesajlar",uk:"Щоб не читати довгий повний текст, відображаються лише інкрементальні частини MainAgent — зазвичай лише нові повідомлення"},"cli.resume.prompt":{zh:"检测到1小时内的日志: {file}",en:"Recent log found (within 1 hour): {file}","zh-TW":"偵測到1小時內的日誌: {file}",ko:"1시간 이내 로그 감지: {file}",ja:"1時間以内のログを検出: {file}",de:"Kürzliches Log gefunden (innerhalb 1 Stunde): {file}",es:"Log reciente encontrado (dentro de 1 hora): {file}",fr:"Log récent trouvé (moins d'1 heure): {file}",it:"Log recente trovato (entro 1 ora): {file}",da:"Nylig log fundet (inden for 1 time): {file}",pl:"Znaleziono ostatni log (w ciągu 1 godziny): {file}",ru:"Обнаружен недавний лог (менее 1 часа): {file}",ar:"تم العثور على سجل حديث (خلال ساعة واحدة): {file}",no:"Nylig logg funnet (innen 1 time): {file}","pt-BR":"Log recente encontrado (dentro de 1 hora): {file}",th:"พบล็อกล่าสุด (ภายใน 1 ชั่วโมง): {file}",tr:"Son günlük bulundu (1 saat içinde): {file}",uk:"Знайдено нещодавній лог (менше 1 години): {file}"},"cli.resume.continue":{zh:"继续",en:"Continue","zh-TW":"繼續",ko:"계속",ja:"続行",de:"Fortsetzen",es:"Continuar",fr:"Continuer",it:"Continua",da:"Fortsæt",pl:"Kontynuuj",ru:"Продолжить",ar:"متابعة",no:"Fortsett","pt-BR":"Continuar",th:"ดำเนินการต่อ",tr:"Devam",uk:"Продовжити"},"cli.resume.new":{zh:"新开",en:"New","zh-TW":"新開",ko:"새로 시작",ja:"新規",de:"Neu",es:"Nuevo",fr:"Nouveau",it:"Nuovo",da:"Ny",pl:"Nowy",ru:"Новый",ar:"جديد",no:"Ny","pt-BR":"Novo",th:"ใหม่",tr:"Yeni",uk:"Новий"},"ui.resume.title":{zh:"检测到近期日志",en:"Recent Log Detected","zh-TW":"偵測到近期日誌",ko:"최근 로그 감지됨",ja:"最近のログを検出",de:"Kürzliches Log erkannt",es:"Log reciente detectado",fr:"Log récent détecté",it:"Log recente rilevato",da:"Nylig log fundet",pl:"Wykryto ostatni log",ru:"Обнаружен недавний лог",ar:"تم اكتشاف سجل حديث",no:"Nylig logg oppdaget","pt-BR":"Log recente detectado",th:"ตรวจพบล็อกล่าสุด",tr:"Son günlük tespit edildi",uk:"Виявлено нещодавній лог"},"ui.resume.message":{zh:"检测到1小时内的日志: {file},是否继续?",en:"Recent log found (within 1 hour): {file}. Continue?","zh-TW":"偵測到1小時內的日誌: {file},是否繼續?",ko:"1시간 이내 로그 감지: {file}. 계속하시겠습니까?",ja:"1時間以内のログを検出: {file}。続行しますか?",de:"Kürzliches Log gefunden (innerhalb 1 Stunde): {file}. Fortsetzen?",es:"Log reciente encontrado (dentro de 1 hora): {file}. ¿Continuar?",fr:"Log récent trouvé (moins d'1 heure): {file}. Continuer ?",it:"Log recente trovato (entro 1 ora): {file}. Continuare?",da:"Nylig log fundet (inden for 1 time): {file}. Fortsæt?",pl:"Znaleziono ostatni log (w ciągu 1 godziny): {file}. Kontynuować?",ru:"Обнаружен недавний лог (менее 1 часа): {file}. Продолжить?",ar:"تم العثور على سجل حديث (خلال ساعة واحدة): {file}. هل تريد المتابعة؟",no:"Nylig logg funnet (innen 1 time): {file}. Fortsette?","pt-BR":"Log recente encontrado (dentro de 1 hora): {file}. Continuar?",th:"พบล็อกล่าสุด (ภายใน 1 ชั่วโมง): {file} ต้องการดำเนินการต่อหรือไม่?",tr:"Son günlük bulundu (1 saat içinde): {file}. Devam edilsin mi?",uk:"Знайдено нещодавній лог (менше 1 години): {file}. Продовжити?"},"ui.resume.continue":{zh:"继续上次",en:"Continue","zh-TW":"繼續上次",ko:"이어서 계속",ja:"前回の続き",de:"Fortsetzen",es:"Continuar",fr:"Continuer",it:"Continua",da:"Fortsæt",pl:"Kontynuuj",ru:"Продолжить",ar:"متابعة",no:"Fortsett","pt-BR":"Continuar",th:"ดำเนินการต่อ",tr:"Devam et",uk:"Продовжити"},"ui.resume.new":{zh:"新开日志",en:"Start New","zh-TW":"新開日誌",ko:"새 로그 시작",ja:"新規ログ",de:"Neues Log",es:"Nuevo log",fr:"Nouveau log",it:"Nuovo log",da:"Ny log",pl:"Nowy log",ru:"Новый лог",ar:"سجل جديد",no:"Ny logg","pt-BR":"Novo log",th:"ล็อกใหม่",tr:"Yeni günlük",uk:"Новий лог"},"ui.settings":{zh:"设置",en:"Settings","zh-TW":"設定",ko:"설정",ja:"設定",de:"Einstellungen",es:"Configuración",fr:"Paramètres",it:"Impostazioni",da:"Indstillinger",pl:"Ustawienia",ru:"Настройки",ar:"الإعدادات",no:"Innstillinger","pt-BR":"Configurações",th:"ตั้งค่า",tr:"Ayarlar",uk:"Налаштування"},"ui.collapseToolResults":{zh:"折叠工具返回内容",en:"Collapse tool results","zh-TW":"摺疊工具回傳內容",ko:"도구 결과 접기",ja:"ツール結果を折りたたむ",de:"Werkzeugergebnisse einklappen",es:"Contraer resultados de herramientas",fr:"Réduire les résultats des outils",it:"Comprimi risultati strumenti",da:"Skjul værktøjsresultater",pl:"Zwiń wyniki narzędzi",ru:"Свернуть результаты инструментов",ar:"طي نتائج الأدوات",no:"Skjul verktøyresultater","pt-BR":"Recolher resultados de ferramentas",th:"ย่อผลลัพธ์เครื่องมือ",tr:"Araç sonuçlarını daralt",uk:"Згорнути результати інструментів"},"ui.expandThinking":{zh:'展开"思考过程"',en:'Expand "Thinking"',"zh-TW":'展開"思考過程"',ko:'"사고 과정" 펼치기',ja:'"思考プロセス"を展開',de:'"Denkprozess" aufklappen',es:'Expandir "Proceso de pensamiento"',fr:'Développer "Processus de réflexion"',it:'Espandi "Processo di pensiero"',da:'Udvid "Tænkeproces"',pl:'Rozwiń "Proces myślenia"',ru:'Развернуть "Процесс мышления"',ar:'توسيع "عملية التفكير"',no:'Utvid "Tenkeprosess"',"pt-BR":'Expandir "Processo de pensamento"',th:'ขยาย "กระบวนการคิด"',tr:'"Düşünce süreci"ni genişlet',uk:'Розгорнути "Процес мислення"'},"ui.globalSettings":{zh:"全局设置",en:"Global Settings","zh-TW":"全域設定",ko:"전역 설정",ja:"グローバル設定",de:"Globale Einstellungen",es:"Configuración global",fr:"Paramètres globaux",it:"Impostazioni globali",da:"Globale indstillinger",pl:"Ustawienia globalne",ru:"Глобальные настройки",ar:"الإعدادات العامة",no:"Globale innstillinger","pt-BR":"Configurações globais",th:"ตั้งค่าทั่วไป",tr:"Genel ayarlar",uk:"Глобальні налаштування"},"ui.filterIrrelevant":{zh:"过滤无关请求",en:"Filter irrelevant requests","zh-TW":"過濾無關請求",ko:"무관한 요청 필터링",ja:"無関係なリクエストをフィルタ",de:"Irrelevante Anfragen filtern",es:"Filtrar solicitudes irrelevantes",fr:"Filtrer les requêtes non pertinentes",it:"Filtra richieste irrilevanti",da:"Filtrer irrelevante forespørgsler",pl:"Filtruj nieistotne żądania",ru:"Фильтровать нерелевантные запросы",ar:"تصفية الطلبات غير ذات الصلة",no:"Filtrer irrelevante forespørsler","pt-BR":"Filtrar solicitações irrelevantes",th:"กรองคำขอที่ไม่เกี่ยวข้อง",tr:"İlgisiz istekleri filtrele",uk:"Фільтрувати нерелевантні запити"},"ui.thinking":{zh:"思考过程",en:"Thinking","zh-TW":"思考過程",ko:"사고 과정",ja:"思考プロセス",de:"Denkprozess",es:"Proceso de pensamiento",fr:"Processus de réflexion",it:"Processo di pensiero",da:"Tænkeproces",pl:"Proces myślenia",ru:"Процесс мышления",ar:"عملية التفكير",no:"Tenkeprosess","pt-BR":"Processo de pensamento",th:"กระบวนการคิด",tr:"Düşünce süreci",uk:"Процес мислення"},"ui.translate":{zh:"翻译",en:"Translate","zh-TW":"翻譯",ko:"번역",ja:"翻訳",de:"Übersetzen",es:"Traducir",fr:"Traduire",it:"Traduci",da:"Oversæt",pl:"Tłumacz",ru:"Перевести",ar:"ترجمة",no:"Oversett","pt-BR":"Traduzir",th:"แปล",tr:"Çevir",uk:"Перекласти"},"ui.translating":{zh:"翻译中…",en:"Translating…","zh-TW":"翻譯中…",ko:"번역 중…",ja:"翻訳中…",de:"Übersetze…",es:"Traduciendo…",fr:"Traduction…",it:"Traduzione…",da:"Oversætter…",pl:"Tłumaczenie…",ru:"Перевод…",ar:"جارٍ الترجمة…",no:"Oversetter…","pt-BR":"Traduzindo…",th:"กำลังแปล…",tr:"Çevriliyor…",uk:"Переклад…"},"ui.skillLoaded":{zh:"Skill 已加载",en:"Skill Loaded","zh-TW":"Skill 已載入",ko:"Skill 로드됨",ja:"Skill 読み込み済み",de:"Skill geladen",es:"Skill cargado",fr:"Skill chargé",it:"Skill caricato",da:"Skill indlæst",pl:"Skill załadowany",ru:"Skill загружен",ar:"تم تحميل Skill",no:"Skill lastet","pt-BR":"Skill carregado",th:"โหลด Skill แล้ว",tr:"Skill yüklendi",uk:"Skill завантажено"}},bl={};for(const[e,t]of Object.entries(aL))for(const[n,r]of Object.entries(t))bl[n]||(bl[n]={}),bl[n][e]=r;let Hh="zh";const wu={zh:"zh","zh-cn":"zh","zh-hans":"zh","zh-tw":"zh-TW","zh-hk":"zh-TW","zh-hant":"zh-TW",en:"en",ko:"ko",de:"de",es:"es",fr:"fr",it:"it",da:"da",ja:"ja",pl:"pl",ru:"ru",ar:"ar",no:"no",nb:"no",nn:"no",pt:"pt-BR","pt-br":"pt-BR",th:"th",tr:"tr",uk:"uk"};function lL(e){if(!e)return"en";const t=e.toLowerCase().replace(/_/g,"-");if(wu[t])return wu[t];const n=t.split("-")[0];return wu[n]?wu[n]:"en"}function sL(){return typeof navigator<"u"&&navigator.language?lL(navigator.language):"en"}function Fh(e){Hh=bl[e]?e:"en"}function qs(){return Hh}function ft(e,t){var r;let n=((r=bl[Hh])==null?void 0:r[e])||bl.en[e]||e;if(t)for(const[o,l]of Object.entries(t))n=n.replaceAll(`{${o}}`,l);return n}Fh(sL());const cL="_headerBar_wnllt_2",uL="_titleText_wnllt_11",dL="_titleArrow_wnllt_17",fL="_tokenStatsTag_wnllt_23",mL="_tokenStatsIcon_wnllt_31",pL="_liveTag_wnllt_36",gL="_liveTagText_wnllt_40",hL="_countdownStrong_wnllt_45",vL="_langSelector_wnllt_50",yL="_settingsBtn_wnllt_61",bL="_settingsItem_wnllt_77",CL="_settingsLabel_wnllt_84",SL="_tokenStatsEmpty_wnllt_89",xL="_tokenStatsContainer_wnllt_96",wL="_modelCard_wnllt_101",$L="_modelCardSpaced_wnllt_107 _modelCard_wnllt_101",EL="_modelName_wnllt_113",OL="_statsTable_wnllt_123",RL="_th_wnllt_128",IL="_td_wnllt_138",_L="_label_wnllt_147",PL="_rowBorder_wnllt_157",TL="_promptExportBar_wnllt_162",NL="_promptScrollArea_wnllt_166",kL="_promptEmpty_wnllt_171",ML="_promptTimestamp_wnllt_177",jL="_textPromptCard_wnllt_185",zL="_preText_wnllt_194",LL="_systemCollapse_wnllt_204",BL="_systemLabel_wnllt_211",AL="_preSys_wnllt_216",Bt={headerBar:cL,titleText:uL,titleArrow:dL,tokenStatsTag:fL,tokenStatsIcon:mL,liveTag:pL,liveTagText:gL,countdownStrong:hL,langSelector:vL,settingsBtn:yL,settingsItem:bL,settingsLabel:CL,tokenStatsEmpty:SL,tokenStatsContainer:xL,modelCard:wL,modelCardSpaced:$L,modelName:EL,statsTable:OL,th:RL,td:IL,label:_L,rowBorder:PL,promptExportBar:TL,promptScrollArea:NL,promptEmpty:kL,promptTimestamp:ML,textPromptCard:jL,preText:zL,systemCollapse:LL,systemLabel:BL,preSys:AL},EC=[{value:"zh",short:"zh",label:"简体中文"},{value:"en",short:"en",label:"English"},{value:"zh-TW",short:"zh-TW",label:"繁體中文"},{value:"ko",short:"ko",label:"한국어"},{value:"ja",short:"ja",label:"日本語"},{value:"de",short:"de",label:"Deutsch"},{value:"es",short:"es",label:"Español"},{value:"fr",short:"fr",label:"Français"},{value:"it",short:"it",label:"Italiano"},{value:"da",short:"da",label:"Dansk"},{value:"pl",short:"pl",label:"Polski"},{value:"ru",short:"ru",label:"Русский"},{value:"ar",short:"ar",label:"العربية"},{value:"no",short:"no",label:"Norsk"},{value:"pt-BR",short:"pt-BR",label:"Português (Brasil)"},{value:"th",short:"th",label:"ไทย"},{value:"tr",short:"tr",label:"Türkçe"},{value:"uk",short:"uk",label:"Українська"}],{Text:DL}=Jo,ji=class ji extends Z.Component{constructor(n){super(n);Dt(this,"handleShowPrompts",()=>{this.setState({promptModalVisible:!0,promptData:this.extractUserPrompts()})});Dt(this,"handleExportPromptsTxt",()=>{const n=this.state.promptData;if(!n||n.length===0)return;const r=[];for(const u of n){const d=u.timestamp?new Date(u.timestamp).toLocaleString():"";d&&r.push(`${d}:`);const m=(u.segments||[]).filter(p=>p.type==="text").map(p=>p.content);m.length>0&&r.push(m.join(`
444
- `)),r.push("")}if(r.length===0)return;const o=new Blob([r.join(`
445
- `)],{type:"text/plain;charset=utf-8"}),l=URL.createObjectURL(o),s=document.createElement("a");s.href=l,s.download=`user-prompts-${new Date().toISOString().slice(0,10)}.txt`,s.click(),URL.revokeObjectURL(l)});this.state={countdownText:"",promptModalVisible:!1,promptData:[],settingsDrawerVisible:!1,globalSettingsVisible:!1},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:ft("ui.cacheExpired")}),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=ft("ui.minuteSecond",{m:s,s:String(u).padStart(2,"0")})}else l=ft("ui.second",{s:o});this.setState({countdownText:l}),this._rafId=requestAnimationFrame(this.updateCountdown)}static parseSegments(n){const r=[],o=/<([a-zA-Z_][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>/g;let l=0,s;for(;(s=o.exec(n))!==null;){const d=n.slice(l,s.index).trim();d&&r.push({type:"text",content:d});const m=s[1];if(l=s.index+s[0].length,ji.COMMAND_TAGS.has(m))continue;const p=new RegExp(`^<${m}(?:\\s[^>]*)?>([\\s\\S]*)<\\/${m}>$`),g=s[0].match(p),v=g?g[1].trim():s[0].trim();r.push({type:"system",content:v,label:m})}const u=n.slice(l).trim();return u&&r.push({type:"text",content:u}),r}static extractSlashCommand(n){const r=n.match(/<command-name>([\s\S]*?)<\/command-name>/i);if(!r)return null;const o=r[1].trim();return o.startsWith("/")?o:`/${o}`}static extractUserTexts(n){var s;const r=[],o=[];let l=null;for(const u of n)if(u.role==="user"){if(typeof u.content=="string"){const d=u.content.trim();if(!d)continue;if(cd(d)){const m=ji.extractSlashCommand(d);m&&(l=m)}else{if(/^Implement the following plan:/i.test(d))continue;r.push(d),o.push(d)}}else if(Array.isArray(u.content)){const d=u.content.some(g=>g.type==="text"&&/<command-message>/i.test(g.text||"")),m=[],p=[];for(const g of u.content){if(g.type!=="text"||!((s=g.text)!=null&&s.trim()))continue;const v=g.text.trim();if(p.push(v),cd(v)){const y=ji.extractSlashCommand(v);y&&(l=y)}else{if(/^Implement the following plan:/i.test(v)||d)continue;m.push(v)}}m.length>0&&(r.push(m.join(`
446
- `)),o.push(p.join(`
447
- `)))}}return{userMsgs:r,fullTexts:o,slashCmd:l}}extractUserPrompts(){var u;const{requests:n=[]}=this.props,r=[],o=new Set;let l=null;const s=n.filter(d=>d.mainAgent);for(let d=0;d<s.length;d++){const m=s[d],p=((u=m.body)==null?void 0:u.messages)||[],g=m.timestamp||"",{userMsgs:v,fullTexts:y,slashCmd:C}=ji.extractUserTexts(p);C&&C!=="/compact"&&C!==l&&r.push({type:"prompt",segments:[{type:"text",content:C}],timestamp:g}),l=C;for(let S=0;S<v.length;S++){const b=v[S];if(o.has(b))continue;o.add(b);const $=y[S]||b;r.push({type:"prompt",segments:ji.parseSegments($),timestamp:g})}}return r}renderTokenStats(){const{requests:n=[]}=this.props,r=oL(n),o=Object.keys(r);return o.length===0?B.jsx("div",{className:Bt.tokenStatsEmpty,children:"暂无 token 数据"}):B.jsx("div",{className:Bt.tokenStatsContainer,children:o.map(l=>{const s=r[l],u=s.input+s.cacheCreation+s.cacheRead,d=u>0?(s.cacheRead/u*100).toFixed(1):"0.0";return B.jsxs("div",{className:o.length>1?Bt.modelCardSpaced:Bt.modelCard,children:[B.jsx("div",{className:Bt.modelName,children:l}),B.jsx("table",{className:Bt.statsTable,children:B.jsxs("tbody",{children:[B.jsxs("tr",{children:[B.jsx("td",{className:Bt.label,children:"Token"}),B.jsx("td",{className:Bt.th,children:"input"}),B.jsx("td",{className:Bt.th,children:"output"})]}),B.jsxs("tr",{className:Bt.rowBorder,children:[B.jsx("td",{className:Bt.label}),B.jsx("td",{className:Bt.td,children:no(u)}),B.jsx("td",{className:Bt.td,children:no(s.output)})]}),B.jsxs("tr",{children:[B.jsx("td",{className:Bt.label,children:"Cache"}),B.jsx("td",{className:Bt.th,children:"create"}),B.jsx("td",{className:Bt.th,children:"read"})]}),B.jsxs("tr",{className:Bt.rowBorder,children:[B.jsx("td",{className:Bt.label}),B.jsx("td",{className:Bt.td,children:no(s.cacheCreation)}),B.jsx("td",{className:Bt.td,children:no(s.cacheRead)})]}),B.jsxs("tr",{children:[B.jsx("td",{className:Bt.label,children:ft("ui.hitRate")}),B.jsxs("td",{colSpan:2,className:Bt.td,children:[d,"%"]})]})]})})]},l)})})}renderTextPrompt(n){return B.jsx("div",{className:Bt.textPromptCard,children:n.segments.map((r,o)=>r.type==="text"?B.jsx("pre",{className:Bt.preText,children:r.content},o):B.jsx(ml,{size:"small",className:Bt.systemCollapse,items:[{key:`sys-${o}`,label:B.jsx("span",{className:Bt.systemLabel,children:r.label}),children:B.jsx("pre",{className:Bt.preSys,children:r.content})}]},o))})}render(){var O;const{requestCount:n,viewMode:r,cacheType:o,onToggleViewMode:l,onImportLocalLogs:s,onLangChange:u,isLocalLog:d,localLogFile:m,projectName:p,collapseToolResults:g,onCollapseToolResultsChange:v,expandThinking:y,onExpandThinkingChange:C,filterIrrelevant:S,onFilterIrrelevantChange:b}=this.props,{countdownText:$}=this.state,w=[{key:"import-local",icon:B.jsx(W9,{}),label:ft("ui.importLocalLogs"),onClick:s},{key:"save-log",icon:B.jsx(Q9,{}),label:ft("ui.saveLog"),onClick:()=>{const R=document.createElement("a");R.href="/api/download-log",R.download="",R.click()}},{key:"export-prompts",icon:B.jsx(H9,{}),label:ft("ui.exportPrompts"),onClick:this.handleShowPrompts},{type:"divider"},{key:"global-settings",icon:B.jsx(xC,{}),label:ft("ui.globalSettings"),onClick:()=>this.setState({globalSettingsVisible:!0})}];return B.jsxs("div",{className:Bt.headerBar,children:[B.jsxs(Ai,{size:"middle",children:[B.jsx(Mg,{menu:{items:w},trigger:["hover"],children:B.jsxs(DL,{strong:!0,className:Bt.titleText,children:["CC-Viewer ",B.jsx(gl,{className:Bt.titleArrow})]})}),B.jsx(Aw,{content:this.renderTokenStats(),trigger:"hover",placement:"bottomLeft",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px"},children:B.jsxs(bo,{className:Bt.tokenStatsTag,children:[B.jsx(B9,{className:Bt.tokenStatsIcon}),ft("ui.tokenStats")]})}),B.jsxs(bo,{color:"green",className:Bt.liveTag,children:[B.jsx(Fw,{status:"processing",color:"green"}),B.jsx("span",{className:Bt.liveTagText,children:d?ft("ui.historyLog",{file:m}):ft("ui.liveMonitoring")+(p?`:${p}`:"")})]})]}),B.jsxs(Ai,{size:"middle",children:[$&&B.jsxs(bo,{color:$===ft("ui.cacheExpired")?"red":"green",children:[ft("ui.cacheCountdown",{type:o?`(${o})`:""}),B.jsx("strong",{className:Bt.countdownStrong,children:$})]}),r==="chat"&&B.jsxs("span",{className:Bt.settingsBtn,onClick:()=>this.setState({settingsDrawerVisible:!0}),children:[B.jsx(xC,{})," ",ft("ui.settings")]}),B.jsx(Mg,{trigger:["hover"],placement:"bottom",menu:{items:EC.map(R=>({key:R.value,label:R.label,style:R.value===qs()?{color:"#3b82f6"}:{}})),onClick:({key:R})=>{Fh(R),u&&u()}},children:B.jsx("span",{className:Bt.langSelector,children:((O=EC.find(R=>R.value===qs()))==null?void 0:O.short)||"zh"})}),B.jsx(Or,{type:r==="raw"?"primary":"default",icon:r==="raw"?B.jsx(G9,{}):B.jsx(ad,{}),onClick:l,children:ft(r==="raw"?"ui.chatMode":"ui.rawMode")})]}),B.jsxs(qr,{title:ft("ui.userPrompt"),open:this.state.promptModalVisible,onCancel:()=>this.setState({promptModalVisible:!1}),footer:null,width:700,children:[B.jsx("div",{className:Bt.promptExportBar,children:B.jsx(Or,{icon:B.jsx(k9,{}),onClick:this.handleExportPromptsTxt,children:ft("ui.exportPromptsTxt")})}),B.jsxs("div",{className:Bt.promptScrollArea,children:[this.state.promptData.length===0&&B.jsx("div",{className:Bt.promptEmpty,children:ft("ui.noPrompt")}),this.state.promptData.map((R,_)=>{const I=R.timestamp?new Date(R.timestamp).toLocaleString():ft("ui.unknownTime");return B.jsxs("div",{children:[B.jsxs("div",{className:Bt.promptTimestamp,children:[I,":"]}),this.renderTextPrompt(R)]},_)})]})]}),B.jsxs($2,{title:ft("ui.settings"),placement:"right",width:320,open:this.state.settingsDrawerVisible,onClose:()=>this.setState({settingsDrawerVisible:!1}),children:[B.jsxs("div",{className:Bt.settingsItem,children:[B.jsx("span",{className:Bt.settingsLabel,children:ft("ui.collapseToolResults")}),B.jsx(Du,{checked:!!g,onChange:R=>v&&v(R)})]}),B.jsxs("div",{className:Bt.settingsItem,children:[B.jsx("span",{className:Bt.settingsLabel,children:ft("ui.expandThinking")}),B.jsx(Du,{checked:!!y,onChange:R=>C&&C(R)})]})]}),B.jsx(qr,{title:ft("ui.globalSettings"),open:this.state.globalSettingsVisible,onCancel:()=>this.setState({globalSettingsVisible:!1}),footer:null,width:400,children:B.jsxs("div",{className:Bt.settingsItem,children:[B.jsx("span",{className:Bt.settingsLabel,children:ft("ui.filterIrrelevant")}),B.jsx(Du,{checked:!!S,onChange:R=>b&&b(R)})]})})]})}};Dt(ji,"COMMAND_TAGS",new Set(["command-name","command-message","command-args","local-command-caveat","local-command-stdout"]));let zg=ji;function Vh(e){const t=e==null?void 0:e.content;if(typeof t=="string")return t;if(Array.isArray(t)){for(const n of t)if((n==null?void 0:n.type)==="text"&&n.text)return n.text}return""}function Wh(e){const t=e==null?void 0:e.system;return typeof t=="string"?t:Array.isArray(t)?t.map(n=>n&&n.text||"").join(""):""}function OC(e){const t=e.body||{},n=Wh(t);if(/Extract any file paths/i.test(n)||/process Bash commands/i.test(n)||/command execution specialist/i.test(n))return"Bash";if(/file search specialist/i.test(n))return"Task";if(/planning specialist/i.test(n))return"Plan";if(/general-purpose agent/i.test(n))return"General";const r=t.messages||[];for(let o=r.length-1;o>=0;o--){if(r[o].role!=="user")continue;const l=Vh(r[o]);if(/^Command:/m.test(l))return"Bash";break}return null}function HL(e){var r;const t=(r=e.body)==null?void 0:r.messages;if(!Array.isArray(t)||t.length!==1)return!1;const n=t[0];return n.role==="user"&&n.content==="count"}function FL(e,t){var d;const n=e.body||{},r=n.tools,o=n.messages||[];if(Array.isArray(r)&&r.length>0||o.length!==1||o[0].role!=="user")return!1;const l=Vh(o[0]);if(!l||l.trim()==="count")return!1;const s=l.trim();if(/^Command:/m.test(l)||/^<policy_spec>/i.test(s)||/^<task-notification>/i.test(s))return!1;const u=Wh(n);if(!u.includes("Claude Code")||/process Bash commands/i.test(u)||/Extract any file paths/i.test(u))return!1;if(t){const m=((d=t.body)==null?void 0:d.messages)||[],p=l.slice(0,80);if(m.some(v=>{const y=v==null?void 0:v.content;return typeof y=="string"?y.includes(p):Array.isArray(y)?y.some(C=>(C==null?void 0:C.type)==="text"&&C.text&&C.text.includes(p)):!1}))return!0}return!1}function VL(e,t){var r;if(e.mainAgent){const o=Wh(e.body||{});return/command execution specialist|file search specialist|planning specialist|general-purpose agent/i.test(o)?{type:"SubAgent",subType:OC(e)}:{type:"MainAgent",subType:null}}if(e.isCountTokens||HL(e))return{type:"Count",subType:null};if(FL(e,t)){const o=Vh((((r=e.body)==null?void 0:r.messages)||[])[0]);return/^Implement the following plan:/i.test(o.trim())?{type:"Plan",subType:"Prompt"}:{type:"Preflight",subType:null}}return{type:"SubAgent",subType:OC(e)}}function RC(e,t){return e==="Plan"&&t?`Plan:${t}`:e==="SubAgent"&&t?`Tools:${t}`:e}const WL="_centerEmpty_1eo6z_1",UL="_scrollContainer_1eo6z_8",qL="_listItem_1eo6z_13",GL="_listItemActive_1eo6z_25",KL="_itemContent_1eo6z_34",XL="_itemHeader_1eo6z_39",QL="_tagNoMargin_1eo6z_47",YL="_modelName_1eo6z_52",JL="_time_1eo6z_56",ZL="_detailRow_1eo6z_62",eB="_urlText_1eo6z_69",tB="_duration_1eo6z_78",nB="_statusOk_1eo6z_83",rB="_statusErr_1eo6z_88",oB="_statusDefault_1eo6z_93",iB="_usageBox_1eo6z_98",tr={centerEmpty:WL,scrollContainer:UL,listItem:qL,listItemActive:GL,itemContent:KL,itemHeader:XL,tagNoMargin:QL,modelName:YL,time:JL,detailRow:ZL,urlText:eB,duration:tB,statusOk:nB,statusErr:rB,statusDefault:oB,usageBox:iB};class aB extends Z.Component{render(){const{requests:t,selectedIndex:n,onSelect:r}=this.props;return t.length===0?B.jsx("div",{className:tr.centerEmpty,children:B.jsx(Mo,{description:ft("ui.waitingRequests")})}):B.jsx("div",{className:tr.scrollContainer,children:B.jsx(Vs,{dataSource:t,size:"small",split:!1,renderItem:(o,l)=>{var R,_,I;const s=new Date(o.timestamp).toLocaleTimeString("zh-CN"),u=l===n,d=o.response&&o.response.status<400,m=o.response&&o.response.status>=400,p=iL((R=o.body)==null?void 0:R.model),g=l+1<t.length?t[l+1]:null,{type:v,subType:y}=VL(o,g),C=(I=(_=o.response)==null?void 0:_.body)==null?void 0:I.usage,S=C?(C.input_tokens||0)+(C.cache_read_input_tokens||0)+(C.cache_creation_input_tokens||0):null,b=(C==null?void 0:C.output_tokens)||null,$=(C==null?void 0:C.cache_read_input_tokens)||0,w=(C==null?void 0:C.cache_creation_input_tokens)||0;let O=o.url;try{const P=new URL(o.url);O=P.host+P.pathname}catch{}return B.jsx(Vs.Item,{onClick:()=>r(l),className:`${tr.listItem} ${u?tr.listItemActive:""}`,children:B.jsxs("div",{className:tr.itemContent,children:[B.jsxs("div",{className:tr.itemHeader,children:[v==="MainAgent"?B.jsx(bo,{color:"orange",className:tr.tagNoMargin,children:"MainAgent"}):v==="Plan"?B.jsx(bo,{className:tr.tagNoMargin,style:{color:"#a33",borderColor:"#a33",backgroundColor:"#000"},children:RC(v,y)}):v==="Count"||v==="Preflight"?B.jsx(bo,{className:tr.tagNoMargin,style:{color:"#666",borderColor:"#444",backgroundColor:"#000"},children:v}):B.jsx(bo,{className:tr.tagNoMargin,children:RC(v,y)}),p&&B.jsx("span",{className:tr.modelName,style:{color:v==="MainAgent"?"#d4822d":"#8c8c8c"},children:p}),B.jsx("span",{className:tr.time,children:s})]}),B.jsxs("div",{className:tr.detailRow,children:[B.jsx("span",{className:tr.urlText,title:o.url,children:O}),o.duration&&B.jsxs("span",{className:tr.duration,children:[o.duration,"ms"]}),o.response&&B.jsx("span",{className:d?tr.statusOk:m?tr.statusErr:tr.statusDefault,children:o.response.status})]}),C&&B.jsxs("div",{className:tr.usageBox,children:[B.jsxs("div",{children:["token: output:",no(b)||0,", input: ",no(S)||0]}),($>0||w>0)&&B.jsxs("div",{children:["cache: ",$>0?`read:${no($)}`:"",$>0&&w>0?", ":"",w>0?`create:${no(w)}`:""]})]})]})})}})})}}const lB=e=>typeof e=="boolean"||e instanceof Boolean,sB=e=>typeof e=="number"||e instanceof Number,cB=e=>typeof e=="bigint"||e instanceof BigInt,D2=e=>!!e&&e instanceof Date,uB=e=>typeof e=="string"||e instanceof String,dB=e=>Array.isArray(e),H2=e=>typeof e=="object"&&e!==null,F2=e=>!!e&&e instanceof Object&&typeof e=="function";function dd(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function fB(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function V2(e){let{field:t,value:n,data:r,lastElement:o,openBracket:l,closeBracket:s,level:u,style:d,shouldExpandNode:m,clickToExpandNode:p,outerRef:g,beforeExpandChange:v}=e;const y=c.useRef(!1),[C,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 mB({field:t,openBracket:l,closeBracket:s,lastElement:o,style:d});const w=C?d.collapseIcon:d.expandIcon,O=C?d.ariaLables.collapseJson:d.ariaLables.expandJson,R=u+1,_=r.length-1,I=T=>{C!==T&&(!v||v({level:u,value:n,field:t,newExpandValue:T}))&&S(T)},P=T=>{if(T.key==="ArrowRight"||T.key==="ArrowLeft")T.preventDefault(),I(T.key==="ArrowRight");else if(T.key==="ArrowUp"||T.key==="ArrowDown"){T.preventDefault();const k=T.key==="ArrowUp"?-1:1;if(!g.current)return;const L=g.current.querySelectorAll("[role=button]");let j=-1;for(let A=0;A<L.length;A++)if(L[A].tabIndex===0){j=A;break}if(j<0)return;const D=(j+k+L.length)%L.length;L[j].tabIndex=-1,L[D].tabIndex=0,L[D].focus()}},N=()=>{var T;I(!C);const k=b.current;if(!k)return;const L=(T=g.current)===null||T===void 0?void 0:T.querySelector('[role=button][tabindex="0"]');L&&(L.tabIndex=-1),k.tabIndex=0,k.focus()};return c.createElement("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":C,"aria-selected":void 0},c.createElement("span",{className:w,onClick:N,onKeyDown:P,role:"button","aria-label":O,"aria-expanded":C,"aria-controls":C?$:void 0,ref:b,tabIndex:u===0?0:-1}),(t||t==="")&&(p?c.createElement("span",{className:d.clickableLabel,onClick:N,onKeyDown:P},dd(t,d.quotesForFieldNames),":"):c.createElement("span",{className:d.label},dd(t,d.quotesForFieldNames),":")),c.createElement("span",{className:d.punctuation},l),C?c.createElement("ul",{id:$,role:"group",className:d.childFieldsContainer},r.map((T,k)=>c.createElement(Lg,{key:T[0]||k,field:T[0],value:T[1],style:d,lastElement:k===_,level:R,shouldExpandNode:m,clickToExpandNode:p,beforeExpandChange:v,outerRef:g}))):c.createElement("span",{className:d.collapsedContent,onClick:N,onKeyDown:P}),c.createElement("span",{className:d.punctuation},s),!o&&c.createElement("span",{className:d.punctuation},","))}function mB(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},dd(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 pB(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:l,clickToExpandNode:s,level:u,outerRef:d,beforeExpandChange:m}=e;return V2({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:d,beforeExpandChange:m})}function gB(e){let{field:t,value:n,style:r,lastElement:o,level:l,shouldExpandNode:s,clickToExpandNode:u,outerRef:d,beforeExpandChange:m}=e;return V2({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:d,beforeExpandChange:m})}function hB(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):uB(n)?(l=fB(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):lB(n)?(l=n?"true":"false",s=r.booleanValue):sB(n)?(l=n.toString(),s=r.numberValue):cB(n)?(l=`${n.toString()}n`,s=r.numberValue):D2(n)?l=n.toISOString():F2(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},dd(t,r.quotesForFieldNames),":"),c.createElement("span",{className:s},l),!o&&c.createElement("span",{className:r.punctuation},","))}function Lg(e){const t=e.value;return dB(t)?c.createElement(gB,Object.assign({},e)):H2(t)&&!D2(t)&&!F2(t)?c.createElement(pB,Object.assign({},e)):c.createElement(hB,Object.assign({},e))}var yn={"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 W2={collapseJson:"collapse JSON",expandJson:"expand JSON"},Ip={container:yn["container-light"],basicChildStyle:yn["basic-element-style"],childFieldsContainer:yn["child-fields-container"],label:yn["label-light"],clickableLabel:yn["clickable-label-light"],nullValue:yn["value-null-light"],undefinedValue:yn["value-undefined-light"],stringValue:yn["value-string-light"],booleanValue:yn["value-boolean-light"],numberValue:yn["value-number-light"],otherValue:yn["value-other-light"],punctuation:yn["punctuation-light"],collapseIcon:yn["collapse-icon-light"],expandIcon:yn["expand-icon-light"],collapsedContent:yn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:W2,stringifyStringValues:!1},vB={container:yn["container-dark"],basicChildStyle:yn["basic-element-style"],childFieldsContainer:yn["child-fields-container"],label:yn["label-dark"],clickableLabel:yn["clickable-label-dark"],nullValue:yn["value-null-dark"],undefinedValue:yn["value-undefined-dark"],stringValue:yn["value-string-dark"],booleanValue:yn["value-boolean-dark"],numberValue:yn["value-number-dark"],otherValue:yn["value-other-dark"],punctuation:yn["punctuation-dark"],collapseIcon:yn["collapse-icon-dark"],expandIcon:yn["expand-icon-dark"],collapsedContent:yn["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:W2,stringifyStringValues:!1},yB=()=>!0,bB=e=>{let{data:t,style:n=Ip,shouldExpandNode:r=yB,clickToExpandNode:o=!1,beforeExpandChange:l,compactTopLevel:s,...u}=e;const d=c.useRef(null);return c.createElement("div",Object.assign({"aria-label":"JSON view"},u,{className:n.container,ref:d,role:"tree"}),s&&H2(t)?Object.entries(t).map(m=>{let[p,g]=m;return c.createElement(Lg,{key:p,field:p,value:g,style:{...Ip,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:l,outerRef:d})}):c.createElement(Lg,{value:t,style:{...Ip,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:d,beforeExpandChange:l}))},CB="_container_1h2lr_1",SB={container:CB},xB={...vB,container:"rjv-container"};class IC extends Z.Component{shouldComponentUpdate(t){return t.data!==this.props.data||t.defaultExpand!==this.props.defaultExpand}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 B.jsx("div",{className:SB.container,children:B.jsx(bB,{data:t,shouldExpandNode:r,style:xB})})}}const wB="_container_1iit6_1",$B="_emptyState_1iit6_7",EB="_urlSection_1iit6_14",OB="_urlLeft_1iit6_21",RB="_tokenStatsBox_1iit6_26",IB="_tokenGrid_1iit6_33",_B="_tokenRows_1iit6_43",PB="_tokenRow_1iit6_43",TB="_tokenRowBorder_1iit6_51",NB="_tokenLabel_1iit6_55",kB="_tokenTd_1iit6_62",MB="_tokenHitRate_1iit6_71",jB="_tokenHitRateLabel_1iit6_84",zB="_urlText_1iit6_94",LB="_metaText_1iit6_101",BB="_headersContainer_1iit6_105",AB="_headerRow_1iit6_109",DB="_headerKey_1iit6_115",HB="_headerValue_1iit6_120",FB="_streamingBox_1iit6_125",VB="_rawTextPre_1iit6_138",WB="_tabContent_1iit6_151",UB="_bodyLabel_1iit6_159",qB="_bodyHeader_1iit6_163",GB="_diffSection_1iit6_170",KB="_diffToggle_1iit6_174",XB="_diffIcon_1iit6_180",Mt={container:wB,emptyState:$B,urlSection:EB,urlLeft:OB,tokenStatsBox:RB,tokenGrid:IB,tokenRows:_B,tokenRow:PB,tokenRowBorder:TB,tokenLabel:NB,tokenTd:kB,tokenHitRate:MB,tokenHitRateLabel:jB,urlText:zB,metaText:LB,headersContainer:BB,headerRow:AB,headerKey:DB,headerValue:HB,streamingBox:FB,rawTextPre:VB,tabContent:WB,bodyLabel:UB,bodyHeader:qB,diffSection:GB,diffToggle:KB,diffIcon:XB},{Text:Ur,Paragraph:QB}=Jo;class YB extends Z.Component{constructor(t){super(t),this.state={bodyViewMode:{request:"json",response:"json"},diffExpanded:!1,requestHeadersExpanded:!1,responseHeadersExpanded:!1,diffTooltipDismissed:!1}}componentDidMount(){fetch("/api/preferences").then(t=>t.json()).then(t=>{t.diffTooltipDismissed&&this.setState({diffTooltipDismissed:!0})}).catch(()=>{})}dismissDiffTooltip(){this.setState({diffTooltipDismissed:!0}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({diffTooltipDismissed:!0})}).catch(()=>{})}shouldComponentUpdate(t,n){return t.request!==this.props.request&&this.setState({diffExpanded:!1,requestHeadersExpanded:!1,responseHeadersExpanded:!1}),t.request!==this.props.request||t.currentTab!==this.props.currentTab||t.onTabChange!==this.props.onTabChange||t.selectedIndex!==this.props.selectedIndex||n.bodyViewMode!==this.state.bodyViewMode||n.diffExpanded!==this.state.diffExpanded||n.requestHeadersExpanded!==this.state.requestHeadersExpanded||n.responseHeadersExpanded!==this.state.responseHeadersExpanded||n.diffTooltipDismissed!==this.state.diffTooltipDismissed}toggleBodyViewMode(t){this.setState(n=>({bodyViewMode:{...n.bodyViewMode,[t]:n.bodyViewMode[t]==="json"?"text":"json"}}))}copyBody(t){var s;const{request:n}=this.props;if(!n)return;const r=t==="request"?n.body:(s=n.response)==null?void 0:s.body;if(r==null)return;const o=typeof r=="object"?ud(r):r,l=typeof o=="string"?o:JSON.stringify(o,null,2);navigator.clipboard.writeText(l).then(()=>Is.success(ft("ui.copySuccess")))}renderHeaders(t){return!t||Object.keys(t).length===0?B.jsx(Ur,{type:"secondary",children:ft("ui.noHeaders")}):B.jsx("div",{className:Mt.headersContainer,children:Object.entries(t).map(([n,r])=>B.jsxs("div",{className:Mt.headerRow,children:[B.jsx(Ur,{code:!0,className:Mt.headerKey,children:n}),B.jsx(Ur,{type:"secondary",className:Mt.headerValue,children:String(r)})]},n))})}renderBody(t,n){const{bodyViewMode:r}=this.state;if(t==null)return B.jsx(Ur,{type:"secondary",children:ft("ui.noBody")});if(typeof t=="string"&&t.includes("Streaming Response"))return B.jsx("div",{className:Mt.streamingBox,children:B.jsx(Ur,{type:"secondary",children:ft("ui.streamingResponse")})});const o=typeof t=="object"?ud(t):t,l=r[n]==="json";return B.jsx("div",{children:l?B.jsx(IC,{data:o,defaultExpand:n==="response"?"all":"root"}):B.jsx("pre",{className:Mt.rawTextPre,children:typeof o=="string"?o:JSON.stringify(o,null,2)})})}getPrevMainAgentRequest(){const{requests:t,selectedIndex:n}=this.props;if(!t||n==null)return null;for(let r=n-1;r>=0;r--)if(t[r].mainAgent)return t[r];return null}computeDiff(t,n){if(t==null||n==null||typeof t!="object"||typeof n!="object")return null;const r={},o=new Set([...Object.keys(t),...Object.keys(n)]);for(const l of o)if(!(l in t))r[l]=n[l];else if(l in n){const s=JSON.stringify(t[l]),u=JSON.stringify(n[l]);s!==u&&(l==="messages"&&Array.isArray(t[l])&&Array.isArray(n[l])&&n[l].length>t[l].length?r[l]=n[l].slice(t[l].length):r[l]=n[l])}else continue;return Object.keys(r).length?r:null}render(){var p,g;const{request:t,currentTab:n,onTabChange:r}=this.props;if(!t)return B.jsx("div",{className:Mt.emptyState,children:B.jsx(Mo,{description:"选择一个请求查看详情"})});const o=new Date(t.timestamp).toLocaleString("zh-CN"),l=t.response&&t.response.status<400;let s=null;if(t.mainAgent){const v=this.getPrevMainAgentRequest();if(v){const y=JSON.stringify(t.body).length,C=JSON.stringify(v.body).length;if(y<C)s=B.jsxs("div",{className:Mt.diffSection,children:[B.jsxs(qi,{title:this.state.diffTooltipDismissed?null:B.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8},children:[B.jsx("span",{style:{flex:1},children:ft("ui.diffTooltip")}),B.jsx(Wi,{style:{cursor:"pointer",fontSize:10,marginTop:2,flexShrink:0},onClick:b=>{b.stopPropagation(),this.dismissDiffTooltip()}})]}),placement:"top",color:"#000",overlayStyle:{maxWidth:340},overlayInnerStyle:{fontSize:12,color:"#999"},children:[" ",B.jsxs(Ur,{strong:!0,className:Mt.diffToggle,onClick:()=>this.setState(b=>({diffExpanded:!b.diffExpanded})),children:["Body Diff JSON ",this.state.diffExpanded?B.jsx(gl,{className:Mt.diffIcon}):B.jsx(Uo,{className:Mt.diffIcon})]})]}),this.state.diffExpanded&&B.jsx(Ur,{type:"secondary",children:ft("ui.diffSessionChanged")})]});else{const b=this.computeDiff(v.body,t.body);b&&(s=B.jsxs("div",{className:Mt.diffSection,children:[B.jsxs(qi,{title:this.state.diffTooltipDismissed?null:B.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8},children:[B.jsx("span",{style:{flex:1},children:ft("ui.diffTooltip")}),B.jsx(Wi,{style:{cursor:"pointer",fontSize:10,marginTop:2,flexShrink:0},onClick:$=>{$.stopPropagation(),this.dismissDiffTooltip()}})]}),placement:"top",color:"#000",overlayStyle:{maxWidth:340},overlayInnerStyle:{fontSize:12,color:"#999"},children:[" ",B.jsxs(Ur,{strong:!0,className:Mt.diffToggle,onClick:()=>this.setState($=>({diffExpanded:!$.diffExpanded})),children:["Body Diff JSON ",this.state.diffExpanded?B.jsx(gl,{className:Mt.diffIcon}):B.jsx(Uo,{className:Mt.diffIcon})]})]}),this.state.diffExpanded&&B.jsx(IC,{data:b,defaultExpand:"all"})]}))}}}const u=[{key:"request",label:"Request",children:B.jsxs("div",{className:Mt.tabContent,children:[B.jsxs("div",{className:Mt.diffSection,children:[B.jsxs(Ur,{strong:!0,className:Mt.diffToggle,onClick:()=>this.setState(v=>({requestHeadersExpanded:!v.requestHeadersExpanded})),children:["Headers ",this.state.requestHeadersExpanded?B.jsx(gl,{className:Mt.diffIcon}):B.jsx(Uo,{className:Mt.diffIcon})]}),this.state.requestHeadersExpanded&&this.renderHeaders(t.headers)]}),s,B.jsxs("div",{children:[B.jsxs("div",{className:Mt.bodyHeader,children:[B.jsx(Ur,{strong:!0,className:Mt.bodyLabel,children:"Body"}),B.jsxs(Ai,{size:"small",children:[B.jsx(Or,{size:"small",icon:this.state.bodyViewMode.request==="json"?B.jsx(ad,{}):B.jsx(SC,{}),onClick:()=>this.toggleBodyViewMode("request"),children:this.state.bodyViewMode.request==="json"?"Text":"JSON"}),B.jsx(Or,{size:"small",icon:B.jsx(jg,{}),onClick:()=>this.copyBody("request"),children:ft("ui.copy")})]})]}),this.renderBody(t.body,"request")]})]})},{key:"response",label:"Response",children:B.jsx("div",{className:Mt.tabContent,children:t.response?B.jsxs(B.Fragment,{children:[B.jsxs("div",{className:Mt.diffSection,children:[B.jsxs(Ur,{strong:!0,className:Mt.diffToggle,onClick:()=>this.setState(v=>({responseHeadersExpanded:!v.responseHeadersExpanded})),children:["Headers ",this.state.responseHeadersExpanded?B.jsx(gl,{className:Mt.diffIcon}):B.jsx(Uo,{className:Mt.diffIcon})]}),this.state.responseHeadersExpanded&&this.renderHeaders(t.response.headers)]}),B.jsxs("div",{children:[B.jsxs("div",{className:Mt.bodyHeader,children:[B.jsx(Ur,{strong:!0,className:Mt.bodyLabel,children:"Body"}),B.jsxs(Ai,{size:"small",children:[B.jsx(Or,{size:"small",icon:this.state.bodyViewMode.response==="json"?B.jsx(ad,{}):B.jsx(SC,{}),onClick:()=>this.toggleBodyViewMode("response"),children:this.state.bodyViewMode.response==="json"?"Text":"JSON"}),B.jsx(Or,{size:"small",icon:B.jsx(jg,{}),onClick:()=>this.copyBody("response"),children:ft("ui.copy")})]})]}),this.renderBody(t.response.body,"response")]})]}):B.jsx(Mo,{description:ft("ui.responseNotCaptured")})})}],d=(g=(p=t.response)==null?void 0:p.body)==null?void 0:g.usage,m=d?(()=>{const v=d.input_tokens||0,y=d.output_tokens||0,C=d.cache_creation_input_tokens||0,S=d.cache_read_input_tokens||0,b=v+C+S,$=b>0?(S/b*100).toFixed(1):"0.0";return{input:v,output:y,cacheCreate:C,cacheRead:S,hitRate:$}})():null;return B.jsxs("div",{className:Mt.container,children:[B.jsxs("div",{className:Mt.urlSection,children:[B.jsxs("div",{className:Mt.urlLeft,children:[B.jsx(QB,{className:Mt.urlText,ellipsis:{rows:2,expandable:!0},children:t.url}),B.jsxs(Ai,{size:"small",wrap:!0,children:[B.jsx(bo,{color:t.method==="POST"?"blue":"green",children:t.method}),B.jsxs(Ur,{type:"secondary",className:Mt.metaText,children:["🕐 ",o]}),t.duration&&B.jsxs(Ur,{type:"secondary",className:Mt.metaText,children:["⏱️ ",t.duration,"ms"]}),t.response&&B.jsxs(bo,{color:l?"success":"error",children:["HTTP ",t.response.status]})]})]}),m&&B.jsx("div",{className:Mt.tokenStatsBox,children:B.jsxs("div",{className:Mt.tokenGrid,children:[B.jsxs("div",{className:Mt.tokenRows,children:[B.jsxs("div",{className:Mt.tokenRow,children:[B.jsx("span",{className:Mt.tokenLabel,children:"Token"}),B.jsxs("span",{className:Mt.tokenTd,children:["input: ",no(m.input)]}),B.jsxs("span",{className:Mt.tokenTd,children:["output: ",no(m.output)]})]}),B.jsxs("div",{className:`${Mt.tokenRow} ${Mt.tokenRowBorder}`,children:[B.jsx("span",{className:Mt.tokenLabel,children:"Cache"}),B.jsxs("span",{className:Mt.tokenTd,children:["create: ",no(m.cacheCreate)]}),B.jsxs("span",{className:Mt.tokenTd,children:["read: ",no(m.cacheRead)]})]})]}),B.jsxs("div",{className:Mt.tokenHitRate,children:[B.jsxs("div",{children:[m.hitRate,"%"]}),B.jsx("div",{className:Mt.tokenHitRateLabel,children:ft("ui.hitRate")})]})]})})]}),B.jsx(h2,{activeKey:n,onChange:r,items:u,size:"small"})]})}}function Uh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xa=Uh();function U2(e){xa=e}var ua={exec:()=>null};function an(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(kr.caret,"$1"),n=n.replace(o,s),r},getRegex:()=>new RegExp(n,t)};return r}var JB=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),kr={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)}}>`)},ZB=/^(?:[ \t]*(?:\n|$))+/,eA=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,tA=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,uc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nA=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,qh=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,q2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,G2=an(q2).replace(/bull/g,qh).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(),rA=an(q2).replace(/bull/g,qh).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(),Gh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,oA=/^[^\n]+/,Kh=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,iA=an(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kh).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),aA=an(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,qh).getRegex(),ef="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",Xh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lA=an("^ {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",Xh).replace("tag",ef).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),K2=an(Gh).replace("hr",uc).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",ef).getRegex(),sA=an(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",K2).getRegex(),Qh={blockquote:sA,code:eA,def:iA,fences:tA,heading:nA,hr:uc,html:lA,lheading:G2,list:aA,newline:ZB,paragraph:K2,table:ua,text:oA},_C=an("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",uc).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",ef).getRegex(),cA={...Qh,lheading:rA,table:_C,paragraph:an(Gh).replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_C).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",ef).getRegex()},uA={...Qh,html:an(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xh).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:ua,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:an(Gh).replace("hr",uc).replace("heading",` *#{1,6} *[^
448
- ]`).replace("lheading",G2).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},dA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,fA=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,X2=/^( {2,}|\\)\n(?!\s*$)/,mA=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tf=/[\p{P}\p{S}]/u,Yh=/[\s\p{P}\p{S}]/u,Q2=/[^\s\p{P}\p{S}]/u,pA=an(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Yh).getRegex(),Y2=/(?!~)[\p{P}\p{S}]/u,gA=/(?!~)[\s\p{P}\p{S}]/u,hA=/(?:[^\s\p{P}\p{S}]|~)/u,J2=/(?![*_])[\p{P}\p{S}]/u,vA=/(?![*_])[\s\p{P}\p{S}]/u,yA=/(?:[^\s\p{P}\p{S}]|[*_])/u,bA=an(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",JB?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Z2=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,CA=an(Z2,"u").replace(/punct/g,tf).getRegex(),SA=an(Z2,"u").replace(/punct/g,Y2).getRegex(),e$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xA=an(e$,"gu").replace(/notPunctSpace/g,Q2).replace(/punctSpace/g,Yh).replace(/punct/g,tf).getRegex(),wA=an(e$,"gu").replace(/notPunctSpace/g,hA).replace(/punctSpace/g,gA).replace(/punct/g,Y2).getRegex(),$A=an("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Q2).replace(/punctSpace/g,Yh).replace(/punct/g,tf).getRegex(),EA=an(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,J2).getRegex(),OA="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",RA=an(OA,"gu").replace(/notPunctSpace/g,yA).replace(/punctSpace/g,vA).replace(/punct/g,J2).getRegex(),IA=an(/\\(punct)/,"gu").replace(/punct/g,tf).getRegex(),_A=an(/^<(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(),PA=an(Xh).replace("(?:-->|$)","-->").getRegex(),TA=an("^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",PA).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fd=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,NA=an(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),t$=an(/^!?\[(label)\]\[(ref)\]/).replace("label",fd).replace("ref",Kh).getRegex(),n$=an(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kh).getRegex(),kA=an("reflink|nolink(?!\\()","g").replace("reflink",t$).replace("nolink",n$).getRegex(),PC=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Jh={_backpedal:ua,anyPunctuation:IA,autolink:_A,blockSkip:bA,br:X2,code:fA,del:ua,delLDelim:ua,delRDelim:ua,emStrongLDelim:CA,emStrongRDelimAst:xA,emStrongRDelimUnd:$A,escape:dA,link:NA,nolink:n$,punctuation:pA,reflink:t$,reflinkSearch:kA,tag:TA,text:mA,url:ua},MA={...Jh,link:an(/^!?\[(label)\]\((.*?)\)/).replace("label",fd).getRegex(),reflink:an(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fd).getRegex()},Bg={...Jh,emStrongRDelimAst:wA,emStrongLDelim:SA,delLDelim:EA,delRDelim:RA,url:an(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",PC).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:an(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",PC).getRegex()},jA={...Bg,br:an(X2).replace("{2,}","*").getRegex(),text:an(Bg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},$u={normal:Qh,gfm:cA,pedantic:uA},hs={normal:Jh,gfm:Bg,breaks:jA,pedantic:MA},zA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},TC=e=>zA[e];function ci(e,t){if(t){if(kr.escapeTest.test(e))return e.replace(kr.escapeReplace,TC)}else if(kr.escapeTestNoEncode.test(e))return e.replace(kr.escapeReplaceNoEncode,TC);return e}function NC(e){try{e=encodeURI(e).replace(kr.percentDecode,"%")}catch{return null}return e}function kC(e,t){var l;let n=e.replace(kr.findPipe,(s,u,d)=>{let m=!1,p=u;for(;--p>=0&&d[p]==="\\";)m=!m;return m?"|":" |"}),r=n.split(kr.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(kr.slashPipe,"|");return r}function vs(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 LA(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 BA(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 MC(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 d={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:s,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,d}function AA(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
449
- `).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(`
450
- `)}var md=class{constructor(e){Dt(this,"options");Dt(this,"rules");Dt(this,"lexer");this.options=e||xa}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:vs(n,`
451
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=AA(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=vs(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:vs(t[0],`
452
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=vs(t[0],`
453
- `).split(`
454
- `),r="",o="",l=[];for(;n.length>0;){let s=!1,u=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))u.push(n[d]),s=!0;else if(!s)u.push(n[d]);else break;n=n.slice(d);let m=u.join(`
455
- `),p=m.replace(this.rules.other.blockquoteSetextReplace,`
456
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
457
- ${m}`:m,o=o?`${o}
458
- ${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 v=l.at(-1);if((v==null?void 0:v.type)==="code")break;if((v==null?void 0:v.type)==="blockquote"){let y=v,C=y.raw+`
459
- `+n.join(`
460
- `),S=this.blockquote(C);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((v==null?void 0:v.type)==="list"){let y=v,C=y.raw+`
461
- `+n.join(`
462
- `),S=this.list(C);l[l.length-1]=S,r=r.substring(0,r.length-v.raw.length)+S.raw,o=o.substring(0,o.length-y.raw.length)+S.raw,n=C.substring(l.at(-1).raw.length).split(`
463
- `);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),d=!1;for(;e;){let p=!1,g="",v="";if(!(t=u.exec(e))||this.rules.block.hr.test(e))break;g=t[0],e=e.substring(g.length);let y=BA(t[2].split(`
464
- `,1)[0],t[1].length),C=e.split(`
465
- `,1)[0],S=!y.trim(),b=0;if(this.options.pedantic?(b=2,v=y.trimStart()):S?b=t[1].length+1:(b=y.search(this.rules.other.nonSpaceChar),b=b>4?1:b,v=y.slice(b),b+=t[1].length),S&&this.rules.other.blankLine.test(C)&&(g+=C+`
466
- `,e=e.substring(C.length+1),p=!0),!p){let $=this.rules.other.nextBulletRegex(b),w=this.rules.other.hrRegex(b),O=this.rules.other.fencesBeginRegex(b),R=this.rules.other.headingBeginRegex(b),_=this.rules.other.htmlBeginRegex(b),I=this.rules.other.blockquoteBeginRegex(b);for(;e;){let P=e.split(`
467
- `,1)[0],N;if(C=P,this.options.pedantic?(C=C.replace(this.rules.other.listReplaceNesting," "),N=C):N=C.replace(this.rules.other.tabCharGlobal," "),O.test(C)||R.test(C)||_.test(C)||I.test(C)||$.test(C)||w.test(C))break;if(N.search(this.rules.other.nonSpaceChar)>=b||!C.trim())v+=`
468
- `+N.slice(b);else{if(S||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(y)||R.test(y)||w.test(y))break;v+=`
469
- `+C}S=!C.trim(),g+=P+`
470
- `,e=e.substring(P.length+1),y=N.slice(b)}}s.loose||(d?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(d=!0)),s.items.push({type:"list_item",raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(v),loose:!1,text:v,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 v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}}let g=this.rules.other.listTaskCheckbox.exec(p.raw);if(g){let v={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};p.checked=v.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=v.raw+p.tokens[0].raw,p.tokens[0].text=v.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(v)):p.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):p.tokens.unshift(v)}}if(!s.loose){let g=p.tokens.filter(y=>y.type==="space"),v=g.length>0&&g.some(y=>this.rules.other.anyLine.test(y.raw));s.loose=v}}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=kC(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(`
471
- `):[],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(kC(u,l.header.length).map((d,m)=>({text:d,tokens:this.lexer.inline(d),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)===`
472
- `?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=vs(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=LA(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)),MC(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 MC(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,d=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)){d+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+d);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 v=g.slice(2,-2);return{type:"strong",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}}}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,d=this.rules.inline.delRDelim;for(d.lastIndex=0,t=t.slice(-1*e.length+o);(r=d.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}}}},No=class Ag{constructor(t){Dt(this,"tokens");Dt(this,"options");Dt(this,"state");Dt(this,"inlineQueue");Dt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||xa,this.options.tokenizer=this.options.tokenizer||new md,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:kr,block:$u.normal,inline:hs.normal};this.options.pedantic?(n.block=$u.pedantic,n.inline=hs.pedantic):this.options.gfm&&(n.block=$u.gfm,this.options.breaks?n.inline=hs.breaks:n.inline=hs.gfm),this.tokenizer.rules=n}static get rules(){return{block:$u,inline:hs}}static lex(t,n){return new Ag(n).lex(t)}static lexInline(t,n){return new Ag(n).inlineTokens(t)}lex(t){t=t.replace(kr.carriageReturn,`
473
- `),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(kr.tabCharGlobal," ").replace(kr.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+=`
474
- `: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(`
475
- `)?"":`
476
- `)+u.raw,m.text+=`
477
- `+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(`
478
- `)?"":`
479
- `)+u.raw,m.text+=`
480
- `+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 d=t;if((s=this.options.extensions)!=null&&s.startBlock){let m=1/0,p=t.slice(1),g;this.options.extensions.startBlock.forEach(v=>{g=v.call({lexer:this},p),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(d=t.substring(0,m+1))}if(this.state.top&&(u=this.tokenizer.paragraph(d))){let m=n.at(-1);r&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
481
- `)?"":`
482
- `)+u.raw,m.text+=`
483
- `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(u),r=d.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(`
484
- `)?"":`
485
- `)+u.raw,m.text+=`
486
- `+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 d,m,p,g,v;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=(d=this.options.hooks)==null?void 0:d.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 C=t;if((v=this.options.extensions)!=null&&v.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&&(C=t.substring(0,S+1))}if(y=this.tokenizer.inlineText(C)){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}},pd=class{constructor(e){Dt(this,"options");Dt(this,"parser");this.options=e||xa}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let r=(l=(t||"").match(kr.notSpaceStart))==null?void 0:l[0],o=e.replace(kr.endingNewline,"")+`
487
- `;return r?'<pre><code class="language-'+ci(r)+'">'+(n?o:ci(o,!0))+`</code></pre>
488
- `:"<pre><code>"+(n?o:ci(o,!0))+`</code></pre>
489
- `}blockquote({tokens:e}){return`<blockquote>
490
- ${this.parser.parse(e)}</blockquote>
491
- `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
492
- `}hr(e){return`<hr>
493
- `}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+`>
494
- `+r+"</"+o+`>
495
- `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
496
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
497
- `}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>
498
- <thead>
499
- `+t+`</thead>
500
- `+r+`</table>
501
- `}tablerow({text:e}){return`<tr>
502
- ${e}</tr>
503
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
504
- `}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>${ci(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=NC(e);if(o===null)return r;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+ci(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=NC(e);if(o===null)return ci(n);e=o;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${ci(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ci(e.text)}},Zh=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}},ko=class Dg{constructor(t){Dt(this,"options");Dt(this,"renderer");Dt(this,"textRenderer");this.options=t||xa,this.options.renderer=this.options.renderer||new pd,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zh}static parse(t,n){return new Dg(n).parse(t)}static parseInline(t,n){return new Dg(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 d=s,m=this.options.extensions.renderers[d.type].call({parser:this},d);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.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 d='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}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 d=u;switch(d.type){case"escape":{r+=n.text(d);break}case"html":{r+=n.html(d);break}case"link":{r+=n.link(d);break}case"image":{r+=n.image(d);break}case"checkbox":{r+=n.checkbox(d);break}case"strong":{r+=n.strong(d);break}case"em":{r+=n.em(d);break}case"codespan":{r+=n.codespan(d);break}case"br":{r+=n.br(d);break}case"del":{r+=n.del(d);break}case"text":{r+=n.text(d);break}default:{let m='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}},Ou,$s=(Ou=class{constructor(e){Dt(this,"options");Dt(this,"block");this.options=e||xa}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?No.lex:No.lexInline}provideParser(){return this.block?ko.parse:ko.parseInline}},Dt(Ou,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Dt(Ou,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ou),DA=class{constructor(...e){Dt(this,"defaults",Uh());Dt(this,"options",this.setOptions);Dt(this,"parse",this.parseMarkdown(!0));Dt(this,"parseInline",this.parseMarkdown(!1));Dt(this,"Parser",ko);Dt(this,"Renderer",pd);Dt(this,"TextRenderer",Zh);Dt(this,"Lexer",No);Dt(this,"Tokenizer",md);Dt(this,"Hooks",$s);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 d of u)n=n.concat(this.walkTokens(d.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 d=s[u].flat(1/0);n=n.concat(this.walkTokens(d,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 pd(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],d=o[s];o[s]=(...m)=>{let p=u.apply(o,m);return p===!1&&(p=d.apply(o,m)),p||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new md(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],d=o[s];o[s]=(...m)=>{let p=u.apply(o,m);return p===!1&&(p=d.apply(o,m)),p}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new $s;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],d=o[s];$s.passThroughHooks.has(l)?o[s]=m=>{if(this.defaults.async&&$s.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await u.call(o,m);return d.call(o,g)})();let p=u.call(o,m);return d.call(o,p)}:o[s]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await u.apply(o,m);return g===!1&&(g=await d.apply(o,m)),g})();let p=u.apply(o,m);return p===!1&&(p=d.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 No.lex(e,t??this.defaults)}parser(e,t){return ko.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?No.lex:No.lexInline)(s,o),d=o.hooks?await o.hooks.processAllTokens(u):u;o.walkTokens&&await Promise.all(this.walkTokens(d,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():e?ko.parse:ko.parseInline)(d,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?No.lex:No.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?ko.parse:ko.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+=`
505
- Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+ci(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},ya=new DA;function Cn(e,t){return ya.parse(e,t)}Cn.options=Cn.setOptions=function(e){return ya.setOptions(e),Cn.defaults=ya.defaults,U2(Cn.defaults),Cn};Cn.getDefaults=Uh;Cn.defaults=xa;Cn.use=function(...e){return ya.use(...e),Cn.defaults=ya.defaults,U2(Cn.defaults),Cn};Cn.walkTokens=function(e,t){return ya.walkTokens(e,t)};Cn.parseInline=ya.parseInline;Cn.Parser=ko;Cn.parser=ko.parse;Cn.Renderer=pd;Cn.TextRenderer=Zh;Cn.Lexer=No;Cn.lexer=No.lex;Cn.Tokenizer=md;Cn.Hooks=$s;Cn.parse=Cn;Cn.options;Cn.setOptions;Cn.use;Cn.walkTokens;Cn.parseInline;ko.parse;No.lex;function cl(e){if(!e)return"";try{return Cn.parse(e,{breaks:!0})}catch{return sd(e)}}const HA=["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 FA(e){if(!e)return{segments:[]};const t=new RegExp("<("+HA.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 VA(e){const{segments:t}=FA(e);return t.length===0?{segments:[]}:{segments:t}}const WA="_wrapper_1o255_1",UA="_header_1o255_5",qA="_filePath_1o255_12",GA="_toggle_1o255_18",KA="_code_1o255_25",ys={wrapper:WA,header:UA,filePath:qA,toggle:GA,code:KA},{Text:jC}=Jo;function XA({file_path:e,old_string:t,new_string:n}){const[r,o]=c.useState(!1),l=t.split(`
506
- `),s=n.split(`
507
- `),u=[];return l.forEach(d=>{u.push({type:"del",text:d})}),s.forEach(d=>{u.push({type:"add",text:d})}),B.jsxs("div",{className:`diff-view ${ys.wrapper}`,children:[B.jsxs("div",{className:ys.header,children:[B.jsxs(jC,{className:ys.filePath,children:["Edit: ",e]}),B.jsx(jC,{className:ys.toggle,onClick:()=>o(d=>!d),children:ft(r?"ui.expand":"ui.collapse")})]}),!r&&B.jsx("pre",{className:ys.code,children:u.map((d,m)=>B.jsxs("div",{className:d.type==="del"?"diff-line-del":"diff-line-add",children:[d.type==="del"?"- ":"+ ",d.text]},m))})]})}const QA="_plainResult_1uh60_1",YA="_plainTitle_1uh60_7",JA="_plainPre_1uh60_11",ZA="_codeResult_1uh60_20",eD="_codeHeader_1uh60_27",tD="_codeTitle_1uh60_36",nD="_codeToggle_1uh60_41",rD="_codePre_1uh60_48",oD="_markdownBody_1uh60_57",Nr={plainResult:QA,plainTitle:YA,plainPre:JA,codeResult:ZA,codeHeader:eD,codeTitle:tD,codeToggle:nD,codePre:rD,markdownBody:oD},{Text:ll}=Jo,sl={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"},iD=["Read","Grep","Glob","Bash","Write","Edit"];function aD(e,t,n){if(!t)return null;const r=t.file_path||"";if(r){const o=r.split(".").pop().toLowerCase();if(sl[o])return sl[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(sl[u])return sl[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&&sl[l[1].toLowerCase()])return sl[l[1].toLowerCase()]}return"shell-output"}return n?lD(n):null}function lD(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 sD={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"}]},cD=[{pattern:/(\/\/.*$|#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],uD=[{pattern:/^([\w/.~-]+:\d+[:-])/gm,cls:"hl-keyword"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],dD=[{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 fD(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=uD:n==="file-list"?r=dD:r=sD[n]||cD;const o=/^(\s*\d+→)/gm,l=[];let s=e.replace(o,p=>{const g=l.length;return l.push(p),`L${g}`});const u=sd(s),d=[];let m=u;for(const p of r)p.pattern.lastIndex=0,m=m.replace(p.pattern,g=>{const v=d.length;return d.push(`<span class="${p.cls}">${g}</span>`),`P${v}`});return m=m.replace(/\x02P(\d+)\x02/g,(p,g)=>d[parseInt(g)]),m=m.replace(/\x01L(\d+)\x01/g,(p,g)=>`<span class="hl-linenum">${sd(l[parseInt(g)])}</span>`),m}function zC({toolName:e,toolInput:t,resultText:n,defaultCollapsed:r}){const[o,l]=c.useState(r??!1);c.useEffect(()=>{l(r??!1)},[r]);const s=iD.includes(e),u=s?aD(e,t,n):null,d=n.length>5e3?n.substring(0,5e3)+`
508
- ... (truncated)`:n;let m=e?ft("ui.toolReturnNamed",{name:e}):"Result";if(t){const g=t.file_path||t.path||"";if(g){const v=g.split("/");m=`${e}: ${v[v.length-1]}`}}if(!s)return e==="Task"?B.jsxs("div",{className:Nr.plainResult,children:[B.jsxs("div",{className:Nr.codeHeader,children:[B.jsx(ll,{type:"secondary",className:Nr.plainTitle,children:m}),B.jsx(ll,{className:Nr.codeToggle,onClick:()=>l(g=>!g),children:ft(o?"ui.expand":"ui.collapse")})]}),!o&&B.jsx("div",{className:`chat-md ${Nr.markdownBody}`,dangerouslySetInnerHTML:{__html:cl(d)}})]}):B.jsxs("div",{className:Nr.plainResult,children:[B.jsxs("div",{className:Nr.codeHeader,children:[B.jsx(ll,{type:"secondary",className:Nr.plainTitle,children:m}),B.jsx(ll,{className:Nr.codeToggle,onClick:()=>l(g=>!g),children:ft(o?"ui.expand":"ui.collapse")})]}),!o&&B.jsx("pre",{className:Nr.plainPre,children:d})]});const p=fD(d,u||"fallback");return B.jsxs("div",{className:`tool-result-code ${Nr.codeResult}`,children:[B.jsxs("div",{className:Nr.codeHeader,children:[B.jsxs(ll,{className:Nr.codeTitle,children:[m,u?` (${u})`:""]}),B.jsx(ll,{className:Nr.codeToggle,onClick:()=>l(g=>!g),children:ft(o?"ui.expand":"ui.collapse")})]}),!o&&B.jsx("pre",{className:`code-highlight ${Nr.codePre}`,dangerouslySetInnerHTML:{__html:p}})]})}const mD="_tag_17wfp_1",pD="_tagActive_17wfp_22",gD="_tagLoading_17wfp_27",hD="_spinner_17wfp_32",Eu={tag:mD,tagActive:pD,tagLoading:gD,spinner:hD};function vD({text:e,onTranslated:t}){const[n,r]=c.useState("idle"),o=c.useRef(null),l=c.useCallback(u=>{if(u.stopPropagation(),n==="loading")return;if(n==="done"){r("idle"),t==null||t(null);return}if(o.current){r("done"),t==null||t(o.current);return}r("loading");const d=window.location.port||"7008",m=`${window.location.protocol}//${window.location.hostname}:${d}`;fetch(`${m}/api/translate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,to:qs()})}).then(p=>{if(!p.ok)throw new Error(`HTTP ${p.status}`);return p.json()}).then(p=>{const g=p.text||"";o.current=g,r("done"),t==null||t(g)}).catch(()=>{r("idle")})},[n,e,t]),s=ft(n==="loading"?"ui.translating":"ui.translate");return B.jsxs("span",{className:`${Eu.tag} ${n==="done"?Eu.tagActive:""} ${n==="loading"?Eu.tagLoading:""}`,onClick:l,children:[n==="loading"&&B.jsx("span",{className:Eu.spinner}),s]})}const yD="_avatar_1360e_3",bD="_avatarImg_1360e_13",CD="_messageRow_1360e_32",SD="_messageRowEnd_1360e_38",xD="_contentCol_1360e_47",wD="_contentColLimited_1360e_52",$D="_labelRow_1360e_60",ED="_labelText_1360e_67",OD="_timeText_1360e_71",RD="_timeTextNoMargin_1360e_78",ID="_labelTextRight_1360e_84",_D="_bubbleUser_1360e_91 _bubble_1360e_21",PD="_bubbleAssistant_1360e_97 _bubble_1360e_21",TD="_bubblePlan_1360e_103 _bubble_1360e_21",ND="_bubbleSubAgent_1360e_111 _bubble_1360e_21",kD="_bubbleSelection_1360e_117 _bubble_1360e_21",MD="_systemTagLabel_1360e_125",jD="_skillLabel_1360e_129",zD="_systemTagPre_1360e_134",LD="_collapseMargin_1360e_142",BD="_collapseNoMargin_1360e_146",AD="_thinkingLabel_1360e_152",DD="_toolBox_1360e_158",HD="_toolLabel_1360e_167",FD="_codePre_1360e_173",VD="_pathTag_1360e_185",WD="_descSpan_1360e_192",UD="_secondarySpan_1360e_197",qD="_patternSpan_1360e_201",GD="_kvContainer_1360e_207",KD="_kvItem_1360e_212",XD="_kvKey_1360e_216",QD="_kvValue_1360e_220",YD="_toolResult_1360e_226",JD="_toolResultLabel_1360e_235",ZD="_compactLabel_1360e_241",eH="_compactPre_1360e_246",tH="_optionList_1360e_256",nH="_optionDesc_1360e_260",rH="_questionText_1360e_268",oH="_questionSpacing_1360e_274",iH="_option_1360e_256",st={avatar:yD,avatarImg:bD,messageRow:CD,messageRowEnd:SD,contentCol:xD,contentColLimited:wD,labelRow:$D,labelText:ED,timeText:OD,timeTextNoMargin:RD,labelTextRight:ID,bubbleUser:_D,bubbleAssistant:PD,bubblePlan:TD,bubbleSubAgent:ND,bubbleSelection:kD,systemTagLabel:MD,skillLabel:jD,systemTagPre:zD,collapseMargin:LD,collapseNoMargin:BD,thinkingLabel:AD,toolBox:DD,toolLabel:HD,codePre:FD,pathTag:VD,descSpan:WD,secondarySpan:UD,patternSpan:qD,kvContainer:GD,kvItem:KD,kvKey:XD,kvValue:QD,toolResult:YD,toolResultLabel:JD,compactLabel:ZD,compactPre:eH,optionList:tH,optionDesc:nH,questionText:rH,questionSpacing:oH,option:iH},{Text:vo}=Jo;class sa extends Z.Component{constructor(n){super(n);Dt(this,"handleThinkingTranslated",(n,r)=>{this.setState(o=>({thinkingTranslated:{...o.thinkingTranslated,[n]:r?cl(r):null}}))});this.state={thinkingTranslated:{}}}formatTime(n){if(!n)return null;try{const r=new Date(n),o=l=>String(l).padStart(2,"0");return`${o(r.getMonth()+1)}-${o(r.getDate())} ${o(r.getHours())}:${o(r.getMinutes())}:${o(r.getSeconds())}`}catch{return null}}renderLabel(n,r){const{timestamp:o}=this.props,l=this.formatTime(o);return B.jsxs("div",{className:st.labelRow,children:[B.jsxs(vo,{type:"secondary",className:st.labelText,children:[n,r||""]}),l&&B.jsx(vo,{className:st.timeText,children:l})]})}renderUserAvatar(n){const{userProfile:r}=this.props;return r!=null&&r.avatar?B.jsx("img",{src:r.avatar,className:st.avatarImg,alt:r.name||"User"}):B.jsx("div",{className:st.avatar,style:{background:n},dangerouslySetInnerHTML:{__html:ws("user")}})}getUserName(){const{userProfile:n}=this.props;return(n==null?void 0:n.name)||"User"}renderSegments(n){return n.map((r,o)=>r.type==="system-tag"?B.jsx(ml,{ghost:!0,size:"small",items:[{key:"1",label:B.jsx(vo,{type:"secondary",className:st.systemTagLabel,children:r.tag}),children:B.jsx("pre",{className:st.systemTagPre,children:r.content})}],className:st.collapseMargin},o):B.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:cl(r.content)}},o))}renderToolCall(n){if(typeof n.input=="string")try{const p=n.input.replace(/^\[object Object\]/,"");n={...n,input:JSON.parse(p)}}catch{}if(n.name==="Edit"&&n.input&&n.input.old_string!=null&&n.input.new_string!=null)return B.jsx(XA,{file_path:n.input.file_path||"",old_string:n.input.old_string,new_string:n.input.new_string},n.id);const r=n.input&&typeof n.input=="object"?n.input:{},o=(p,g)=>B.jsxs("div",{className:st.toolBox,children:[B.jsx(vo,{strong:!0,className:st.toolLabel,children:p}),g]},n.id),l=(p,g)=>B.jsx("pre",{className:st.codePre,style:{color:g},children:p}),s=p=>B.jsx("span",{className:st.pathTag,children:p});if(n.name==="Bash"){const p=r.command||"",g=r.description||"";return o(B.jsxs(B.Fragment,{children:["Bash",g?B.jsxs("span",{className:st.descSpan,children:[" — ",g]}):""]}),l(p,"#c9d1d9"))}if(n.name==="Read"){const p=r.file_path||"",g=[];r.offset&&g.push(`offset: ${r.offset}`),r.limit&&g.push(`limit: ${r.limit}`);const v=g.length?` (${g.join(", ")})`:"";return o(B.jsxs(B.Fragment,{children:["Read: ",s(p),B.jsx("span",{className:st.secondarySpan,children:v})]}),null)}if(n.name==="Write"){const p=r.file_path||"",g=r.content||"",v=g.split(`
509
- `),y=v.length>20?v.slice(0,20).join(`
510
- `)+`
511
- ... (${v.length} lines total)`:g;return o(B.jsxs(B.Fragment,{children:["Write: ",s(p)," ",B.jsxs("span",{className:st.secondarySpan,children:["(",v.length," lines)"]})]}),l(y,"#c9d1d9"))}if(n.name==="Glob"){const p=r.pattern||"",g=r.path||"";return o(B.jsxs(B.Fragment,{children:["Glob: ",B.jsx("span",{className:st.patternSpan,children:p}),g?B.jsxs("span",{className:st.secondarySpan,children:[" in ",g]}):""]}),null)}if(n.name==="Grep"){const p=r.pattern||"",g=r.path||"",v=[];r.glob&&v.push(`glob: ${r.glob}`),r.output_mode&&v.push(`mode: ${r.output_mode}`),r.head_limit&&v.push(`limit: ${r.head_limit}`);const y=v.length?` (${v.join(", ")})`:"";return o(B.jsxs(B.Fragment,{children:["Grep: ",B.jsxs("span",{className:st.patternSpan,children:["/",p,"/"]}),g?B.jsxs("span",{className:st.secondarySpan,children:[" in ",g]}):"",B.jsx("span",{className:st.secondarySpan,children:y})]}),null)}if(n.name==="Task"){const p=r.subagent_type||"",g=r.description||"";return o(B.jsxs(B.Fragment,{children:["Task(",p,g?": "+g:"",")"]}),null)}let u=n.name;const d=Object.keys(r);if(d.length===0)return o(u,null);const m=d.map(p=>{const g=r[p],v=typeof g=="string"?g:JSON.stringify(g),y=v.length>200?v.substring(0,200)+"...":v;return B.jsxs("div",{className:st.kvItem,children:[B.jsxs("span",{className:st.kvKey,children:[p,": "]}),B.jsx("span",{className:st.kvValue,children:y})]},p)});return o(u,B.jsx("div",{className:st.kvContainer,children:m}))}renderUserMessage(){const{text:n,timestamp:r}=this.props,o=this.formatTime(r),l=this.getUserName();return n&&n.includes("This session is being continued from a previous conversation that ran out of context")?B.jsxs("div",{className:st.messageRowEnd,children:[B.jsxs("div",{className:st.contentColLimited,children:[B.jsxs("div",{className:st.labelRow,children:[o&&B.jsx(vo,{className:st.timeTextNoMargin,children:o}),B.jsxs(vo,{type:"secondary",className:st.labelTextRight,children:[l," — /compact"]})]}),B.jsx("div",{className:st.bubbleUser,children:B.jsx(ml,{ghost:!0,size:"small",items:[{key:"1",label:B.jsx(vo,{className:st.compactLabel,children:"Compact Summary"}),children:B.jsx("pre",{className:st.compactPre,children:n})}],className:st.collapseNoMargin})})]}),this.renderUserAvatar("#1e40af")]}):B.jsxs("div",{className:st.messageRowEnd,children:[B.jsxs("div",{className:st.contentColLimited,children:[B.jsxs("div",{className:st.labelRow,children:[o&&B.jsx(vo,{className:st.timeTextNoMargin,children:o}),B.jsx(vo,{type:"secondary",className:st.labelTextRight,children:l})]}),B.jsx("div",{className:st.bubbleUser,children:sd(n)})]}),this.renderUserAvatar("#1e40af")]})}renderToolResult(n){return n?B.jsxs("div",{className:st.toolResult,children:[B.jsx(vo,{type:"secondary",className:st.toolResultLabel,children:n.label}),B.jsx(zC,{toolName:n.toolName,toolInput:n.toolInput,resultText:n.resultText,defaultCollapsed:this.props.collapseToolResults})]}):null}renderAssistantMessage(){const{content:n,toolResultMap:r={},modelInfo:o}=this.props,l=n.filter(m=>m.type==="thinking"),s=n.filter(m=>m.type==="text"),u=n.filter(m=>m.type==="tool_use");let d=[];return l.forEach((m,p)=>{const v=this.state.thinkingTranslated[p]||cl(m.thinking||"");d.push(B.jsx(ml,{ghost:!0,size:"small",defaultActiveKey:this.props.expandThinking?["1"]:[],items:[{key:"1",label:B.jsxs("span",{children:[B.jsx(vo,{type:"secondary",className:st.thinkingLabel,children:ft("ui.thinking")}),B.jsx(vD,{text:m.thinking||"",onTranslated:y=>this.handleThinkingTranslated(p,y)})]}),children:B.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:v}})}],className:st.collapseMargin},`think-${p}-${this.props.expandThinking?"e":"c"}`))}),s.forEach((m,p)=>{if(m.text){const{segments:g}=VA(m.text);d.push(B.jsx("div",{children:this.renderSegments(g)},`text-${p}`))}}),u.forEach(m=>{d.push(this.renderToolCall(m));const p=r[m.id];p&&d.push(B.jsx(Z.Fragment,{children:this.renderToolResult(p)},`tr-${m.id}`))}),d.length===0?null:B.jsxs("div",{className:st.messageRow,children:[B.jsx("div",{className:st.avatar,style:{background:(o==null?void 0:o.color)||"#6b21a8"},dangerouslySetInnerHTML:{__html:(o==null?void 0:o.svg)||ws("agent")}}),B.jsxs("div",{className:st.contentCol,children:[this.renderLabel((o==null?void 0:o.name)||"MainAgent"),B.jsx("div",{className:st.bubbleAssistant,children:d})]})]})}renderSubAgentMessage(){const{label:n,resultText:r,toolName:o,toolInput:l}=this.props;return B.jsxs("div",{className:st.messageRow,children:[B.jsx("div",{className:st.avatar,style:{background:"#4a1d96"},dangerouslySetInnerHTML:{__html:ws("sub")}}),B.jsxs("div",{className:st.contentCol,children:[this.renderLabel(n),B.jsx("div",{className:st.bubbleSubAgent,children:B.jsx(zC,{toolName:o,toolInput:l,resultText:r})})]})]})}renderUserSelectionMessage(){const{questions:n,answers:r}=this.props,o=this.getUserName();return B.jsxs("div",{className:st.messageRowEnd,children:[B.jsxs("div",{className:st.contentColLimited,children:[this.renderLabel(o," — 选择"),B.jsx("div",{className:st.bubbleSelection,children:n&&n.map((l,s)=>{const u=(r==null?void 0:r[l.question])||"未选择";return B.jsxs("div",{className:s<n.length-1?st.questionSpacing:void 0,children:[B.jsx("div",{className:st.questionText,children:l.question}),B.jsx("div",{className:st.optionList,children:l.options&&l.options.map((d,m)=>{const p=u===d.label;return B.jsxs("div",{className:st.option,style:{color:p?"#e5e5e5":"#666",fontWeight:p?600:"normal"},children:[p?"● ":"○ ",d.label,d.description&&B.jsxs("span",{className:st.optionDesc,children:["— ",d.description]})]},m)})})]},s)})})]}),this.renderUserAvatar("#2ea043")]})}renderPlanPromptMessage(){const{text:n,timestamp:r,modelInfo:o}=this.props;this.formatTime(r);const l=(n||"").replace(/^Implement the following plan:\s*/i,"");return B.jsxs("div",{className:st.messageRow,children:[B.jsx("div",{className:st.avatar,style:{background:(o==null?void 0:o.color)||"#6b21a8"},dangerouslySetInnerHTML:{__html:(o==null?void 0:o.svg)||ws("agent")}}),B.jsxs("div",{className:st.contentColLimited,children:[this.renderLabel((o==null?void 0:o.name)||"MainAgent"," (Plan)"),B.jsx("div",{className:st.bubblePlan,children:B.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:cl(l)}})})]})]})}renderSkillLoadedMessage(){const{text:n,skillName:r,timestamp:o}=this.props,l=this.formatTime(o);return B.jsxs("div",{className:st.messageRow,children:[B.jsx("div",{style:{width:32,flexShrink:0}}),B.jsx("div",{className:st.contentCol,children:B.jsx(ml,{ghost:!0,size:"small",items:[{key:"1",label:B.jsxs("span",{className:st.skillLabel,children:["📦 ",ft("ui.skillLoaded"),": ",r,l&&B.jsx(vo,{className:st.timeTextNoMargin,style:{marginLeft:8},children:l})]}),children:B.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:cl(n)}})}],className:st.collapseNoMargin})})]})}render(){const{role:n}=this.props;return n==="user"?this.renderUserMessage():n==="skill-loaded"?this.renderSkillLoadedMessage():n==="plan-prompt"?this.renderPlanPromptMessage():n==="user-selection"?this.renderUserSelectionMessage():n==="assistant"?this.renderAssistantMessage():n==="sub-agent"?this.renderSubAgentMessage():null}}const aH="_centerEmpty_1j3v3_1",lH="_container_1j3v3_8",sH="_sessionDividerText_1j3v3_16",cH="_lastResponseLabel_1j3v3_21",bs={centerEmpty:aH,container:lH,sessionDividerText:sH,lastResponseLabel:cH},{Text:LC}=Jo,uH=20;function dH(){return 100+Math.random()*50}class fH extends Z.Component{constructor(t){super(t),this.containerRef=Z.createRef(),this.state={visibleCount:0,loading:!1,allItems:[]},this._queueTimer=null,this._prevItemsLen=0}componentDidMount(){this.startRender()}componentDidUpdate(t){if(t.mainAgentSessions!==this.props.mainAgentSessions)this.startRender();else if(t.collapseToolResults!==this.props.collapseToolResults||t.expandThinking!==this.props.expandThinking){const n=this.buildAllItems();this.setState({allItems:n,visibleCount:n.length})}}componentWillUnmount(){this._queueTimer&&clearTimeout(this._queueTimer)}startRender(){this._queueTimer&&clearTimeout(this._queueTimer);const t=this.buildAllItems(),n=this._prevItemsLen;this._prevItemsLen=t.length;const r=t.length-n;if(r<=0||n>0&&r<=3){this.setState({allItems:t,visibleCount:t.length,loading:!1},()=>this.scrollToBottom());return}if(t.length>uH)this.setState({allItems:t,visibleCount:0,loading:!0}),this._queueTimer=setTimeout(()=>{this.setState({visibleCount:t.length,loading:!1},()=>this.scrollToBottom())},300);else{const o=Math.max(0,n);this.setState({allItems:t,visibleCount:o,loading:!1}),this.queueNext(o,t.length)}}queueNext(t,n){t>=n||(this._queueTimer=setTimeout(()=>{this.setState({visibleCount:t+1},()=>{this.scrollToBottom(),this.queueNext(t+1,n)})},dH()))}scrollToBottom(){const t=this.containerRef.current;t&&(t.scrollTop=t.scrollHeight)}renderSessionMessages(t,n,r){var p;const{userProfile:o,collapseToolResults:l,expandThinking:s}=this.props,u={};for(const g of t)if(g.role==="assistant"&&Array.isArray(g.content))for(const v of g.content)v.type==="tool_use"&&(u[v.id]=v);const d={};for(const g of t)if(g.role==="user"&&Array.isArray(g.content)){for(const v of g.content)if(v.type==="tool_result"){const y=u[v.tool_use_id];let C=ft("ui.toolReturn"),S=null,b=null;if(y)if(S=y.name,b=y.input,y.name==="Task"&&y.input){const $=y.input.subagent_type||"",w=y.input.description||"";C=`SubAgent: ${$}${w?" — "+w:""}`}else C=ft("ui.toolReturnNamed",{name:y.name});d[v.tool_use_id]={label:C,toolName:S,toolInput:b,resultText:wC(v)}}}const m=[];for(let g=0;g<t.length;g++){const v=t[g],y=v.content,C=v._timestamp||null;if(v.role==="user"){if(Array.isArray(y)){const S=y.find(w=>w.type==="text"&&/^\[SUGGESTION MODE:/i.test((w.text||"").trim())),b=y.filter(w=>w.type==="tool_result"),$=y.some(w=>w.type==="text"&&/<command-message>/i.test(w.text||""));if(S&&b.length>0){let w=null,O={};for(const R of b){const _=u[R.tool_use_id];if(_&&_.name==="AskUserQuestion"&&((p=_.input)!=null&&p.questions)){w=_.input.questions;const I=wC(R);try{O=JSON.parse(I).answers||{}}catch{}break}}w&&m.push(B.jsx(sa,{role:"user-selection",questions:w,answers:O,timestamp:C,userProfile:o},`${n}-selection-${g}`))}else{let w=y.filter(R=>R.type==="text"&&!cd(R.text));$&&(w=[]);const O=y.filter(R=>R.type==="text"&&$C(R.text));for(const R of O){const _=R.text.match(/^#\s+(.+)$/m),I=_?_[1]:"Skill";m.push(B.jsx(sa,{role:"skill-loaded",text:R.text,skillName:I,timestamp:C},`${n}-skill-${g}`))}O.length>0&&(w=w.filter(R=>!$C(R.text)));for(let R=0;R<w.length;R++){const _=/^Implement the following plan:/i.test((w[R].text||"").trim());m.push(B.jsx(sa,{role:_?"plan-prompt":"user",text:w[R].text,timestamp:C,userProfile:o,modelInfo:r},`${n}-user-${g}-${R}`))}}}else if(typeof y=="string"&&!cd(y)){const S=/^Implement the following plan:/i.test(y.trim());m.push(B.jsx(sa,{role:S?"plan-prompt":"user",text:y,timestamp:C,userProfile:o,modelInfo:r},`${n}-user-${g}`))}}else v.role==="assistant"&&(Array.isArray(y)?m.push(B.jsx(sa,{role:"assistant",content:y,toolResultMap:d,timestamp:C,modelInfo:r,collapseToolResults:l,expandThinking:s},`${n}-asst-${g}`)):typeof y=="string"&&m.push(B.jsx(sa,{role:"assistant",content:[{type:"text",text:y}],toolResultMap:d,timestamp:C,modelInfo:r,collapseToolResults:l,expandThinking:s},`${n}-asst-${g}`)))}return m}buildAllItems(){var d;const{mainAgentSessions:t,requests:n,collapseToolResults:r,expandThinking:o}=this.props;if(!t||t.length===0)return[];let l=null;if(n){for(let m=n.length-1;m>=0;m--)if(n[m].mainAgent&&((d=n[m].body)!=null&&d.model)){l=n[m].body.model;break}}const s=rL(l),u=[];return t.forEach((m,p)=>{var g,v;if(p>0&&u.push(B.jsx(J1,{style:{borderColor:"#333",margin:"16px 0"},children:B.jsx(LC,{className:bs.sessionDividerText,children:"Session"})},`session-div-${p}`)),u.push(...this.renderSessionMessages(m.messages,`s${p}`,s)),p===t.length-1&&((v=(g=m.response)==null?void 0:g.body)!=null&&v.content)){const y=m.response.body.content;Array.isArray(y)&&(u.push(B.jsx(Z.Fragment,{children:B.jsx(J1,{style:{borderColor:"#2a2a2a",margin:"8px 0"},children:B.jsx(LC,{type:"secondary",className:bs.lastResponseLabel,children:ft("ui.lastResponse")})})},"resp-divider")),u.push(B.jsx(sa,{role:"assistant",content:y,modelInfo:s,collapseToolResults:r,expandThinking:o,toolResultMap:{}},"resp-asst")))}}),u}render(){const{mainAgentSessions:t}=this.props,{allItems:n,visibleCount:r,loading:o}=this.state;return!t||t.length===0?B.jsx("div",{className:bs.centerEmpty,children:B.jsx(Mo,{description:ft("ui.noChat")})}):o?B.jsx("div",{className:bs.centerEmpty,children:B.jsx(Yd,{size:"large"})}):B.jsx("div",{ref:this.containerRef,className:bs.container,children:n.slice(0,r)})}}const mH="_resizer_yamj2_1",pH={resizer:mH};class gH extends Z.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 B.jsx("div",{onMouseDown:this.handleMouseDown,className:pH.resizer})}}const hH="_layout_1xe9o_1",vH="_header_1xe9o_6",yH="_content_1xe9o_14",bH="_mainContainer_1xe9o_19",CH="_leftPanel_1xe9o_24",SH="_leftPanelHeader_1xe9o_32",xH="_leftPanelCount_1xe9o_43",wH="_leftPanelBody_1xe9o_49",$H="_rightPanel_1xe9o_54",EH="_modalActions_1xe9o_60",OH="_spinCenter_1xe9o_64",RH="_emptyCenter_1xe9o_69",IH="_logListItem_1xe9o_75",_H="_logItemRow_1xe9o_80",PH="_logFileIcon_1xe9o_87",TH="_folderIcon_1xe9o_92",NH="_logTag_1xe9o_96",kH="_loadingOverlay_1xe9o_100",MH="_loadingText_1xe9o_113",nr={layout:hH,header:vH,content:yH,mainContainer:bH,leftPanel:CH,leftPanelHeader:SH,leftPanelCount:xH,leftPanelBody:wH,rightPanel:$H,modalActions:EH,spinCenter:OH,emptyCenter:RH,logListItem:IH,logItemRow:_H,logFileIcon:PH,folderIcon:TH,logTag:NH,loadingOverlay:kH,loadingText:MH};class jH extends Z.Component{constructor(n){super(n);Dt(this,"handleSelectRequest",n=>{this.setState({selectedIndex:n})});Dt(this,"handleToggleViewMode",()=>{this.setState(n=>({viewMode:n.viewMode==="raw"?"chat":"raw"}))});Dt(this,"handleLangChange",()=>{const n=qs();this.setState({lang:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lang:n})}).catch(()=>{})});Dt(this,"handleCollapseToolResultsChange",n=>{this.setState({collapseToolResults:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collapseToolResults:n})}).catch(()=>{})});Dt(this,"handleExpandThinkingChange",n=>{this.setState({expandThinking:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expandThinking:n})}).catch(()=>{})});Dt(this,"handleFilterIrrelevantChange",n=>{this.setState(r=>{const o=!n,l=o?r.requests:r.requests.filter(s=>!s.isHeartbeat&&!s.isCountTokens&&!/\/api\/eval\/sdk-/.test(s.url||"")&&!/\/messages\/count_tokens/.test(s.url||""));return{showAll:o,selectedIndex:l.length>0?l.length-1:null}}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filterIrrelevant:n})}).catch(()=>{})});Dt(this,"handleTabChange",n=>{this.setState({currentTab:n})});Dt(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})});Dt(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})})});Dt(this,"handleCloseImportModal",()=>{this.setState({importModalVisible:!1})});Dt(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})});Dt(this,"handleResumeChoice",n=>{fetch("/api/resume-choice",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({choice:n})}).catch(r=>console.error("resume-choice failed:",r))});Dt(this,"handleLoadLocalJsonlFile",()=>{const n=document.createElement("input");n.type="file",n.accept=".jsonl",n.onchange=r=>{const o=r.target.files[0];if(!o)return;if(o.size>200*1024*1024){Is.error(ft("ui.fileTooLarge"));return}this.setState({fileLoading:!0,fileLoadingCount:0});const l=new FileReader;l.onload=s=>{try{const d=s.target.result.split(`
512
- ---
513
- `).filter(m=>m.trim()).map(m=>{try{return JSON.parse(m)}catch{return null}}).filter(Boolean);if(d.length===0){Is.error(ft("ui.noLogs")),this.setState({fileLoading:!1,fileLoadingCount:0});return}this.animateLoadingCount(d.length,()=>{let m=[];for(const g of d)g.mainAgent&&g.body&&Array.isArray(g.body.messages)&&(m=this.mergeMainAgentSessions(m,g));const p=d.filter(g=>!g.isHeartbeat&&!g.isCountTokens&&!/\/api\/eval\/sdk-/.test(g.url||"")&&!/\/messages\/count_tokens/.test(g.url||""));this._isLocalLog=!0,this._localLogFile=o.name,this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.setState({requests:d,selectedIndex:p.length>0?p.length-1:null,mainAgentSessions:m,importModalVisible:!1,fileLoading:!1,fileLoadingCount:0})})}catch{Is.error(ft("ui.noLogs")),this.setState({fileLoading:!1,fileLoadingCount:0})}},l.readAsText(o)},n.click()});const r=parseInt(localStorage.getItem("ccv_cacheExpireAt"),10)||null,o=localStorage.getItem("ccv_cacheType")||null,l=Date.now(),s=r&&r>l?r:null,u=s?o:null;this.state={requests:[],selectedIndex:null,viewMode:"raw",currentTab:"request",cacheExpireAt:s,cacheType:u,leftPanelWidth:380,mainAgentSessions:[],importModalVisible:!1,localLogs:{},localLogsLoading:!1,showAll:!1,lang:qs(),userProfile:null,projectName:"",resumeModalVisible:!1,resumeFileName:"",collapseToolResults:!1,expandThinking:!1,fileLoading:!1,fileLoadingCount:0},this.eventSource=null,this._autoSelectTimer=null,this.mainContainerRef=Z.createRef()}componentDidMount(){fetch("/api/preferences").then(o=>o.json()).then(o=>{o.lang&&(Fh(o.lang),this.setState({lang:o.lang})),o.collapseToolResults!==void 0&&this.setState({collapseToolResults:!!o.collapseToolResults}),o.expandThinking!==void 0&&this.setState({expandThinking:!!o.expandThinking});const l=o.filterIrrelevant!==void 0?!!o.filterIrrelevant:!0;this.setState({showAll:!l})}).catch(()=>{}),fetch("/api/user-profile").then(o=>o.json()).then(o=>this.setState({userProfile:o})).catch(()=>{}),fetch("/api/project-name").then(o=>o.json()).then(o=>this.setState({projectName:o.projectName||""})).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),this._loadingCountTimer&&cancelAnimationFrame(this._loadingCountTimer)}animateLoadingCount(n,r){const o=Math.min(800,Math.max(300,n*.5)),l=performance.now(),s=u=>{const d=Math.min((u-l)/o,1),m=Math.round(d*n);this.setState({fileLoadingCount:m}),d<1?this._loadingCountTimer=requestAnimationFrame(s):(this._loadingCountTimer=null,r())};this._loadingCountTimer=requestAnimationFrame(s)}initSSE(){this.setState({fileLoading:!0,fileLoadingCount:0});try{this.eventSource=new EventSource("/events"),this.eventSource.onmessage=n=>this.handleEventMessage(n),this.eventSource.addEventListener("resume_prompt",n=>{try{const r=JSON.parse(n.data);this.setState({resumeModalVisible:!0,resumeFileName:r.recentFileName||""})}catch{}}),this.eventSource.addEventListener("resume_resolved",()=>{this.setState({resumeModalVisible:!1,resumeFileName:""})}),this.eventSource.addEventListener("full_reload",n=>{try{const r=JSON.parse(n.data);if(Array.isArray(r)){this.assignMessageTimestamps(r);const o=this.buildSessionsFromEntries(r),l=r.filter(s=>!s.isHeartbeat&&!s.isCountTokens&&!/\/api\/eval\/sdk-/.test(s.url||"")&&!/\/messages\/count_tokens/.test(s.url||""));r.length>0?this.animateLoadingCount(r.length,()=>{this.setState({requests:r,selectedIndex:l.length>0?l.length-1:null,mainAgentSessions:o,fileLoading:!1,fileLoadingCount:0})}):this.setState({requests:r,selectedIndex:null,mainAgentSessions:o,fileLoading:!1,fileLoadingCount:0})}else this.setState({fileLoading:!1,fileLoadingCount:0})}catch{this.setState({fileLoading:!1,fileLoadingCount:0})}}),this.eventSource.onerror=()=>console.error("SSE连接错误")}catch(n){console.error("EventSource初始化失败:",n),this.setState({fileLoading:!1,fileLoadingCount:0})}}loadLocalLogFile(n){this._isLocalLog=!0,this._localLogFile=n,this.setState({fileLoading:!0,fileLoadingCount:0}),fetch(`/api/local-log?file=${encodeURIComponent(n)}`).then(r=>r.json()).then(r=>{Array.isArray(r)?this.animateLoadingCount(r.length,()=>{this.assignMessageTimestamps(r);const o=this.buildSessionsFromEntries(r),l=r.filter(s=>!s.isHeartbeat&&!s.isCountTokens&&!/\/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,fileLoading:!1,fileLoadingCount:0})}):this.setState({fileLoading:!1,fileLoadingCount:0})}).catch(r=>{console.error("加载日志文件失败:",r),this.setState({fileLoading:!1,fileLoadingCount:0})})}handleEventMessage(n){try{const r=JSON.parse(n.data);this.setState(o=>{var g,v;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,d=o.cacheType;if(r.mainAgent){const y=(v=(g=r.response)==null?void 0:g.body)==null?void 0:v.usage;if(y!=null&&y.cache_creation){const C=y.cache_creation,S=r.timestamp?new Date(r.timestamp).getTime():Date.now();let b=null,$=null;if(C.ephemeral_1h_input_tokens>0?(b=S+3600*1e3,$="1h"):C.ephemeral_5m_input_tokens>0&&(b=S+300*1e3,$="5m"),b&&b>Date.now()){u=b;const w=(y.cache_read_input_tokens||0)+(y.cache_creation_input_tokens||0);d=w>0?no(w):$,localStorage.setItem("ccv_cacheExpireAt",String(u)),localStorage.setItem("ccv_cacheType",d)}}}let m=o.mainAgentSessions;if(r.mainAgent&&r.body&&Array.isArray(r.body.messages)){const y=r.timestamp||new Date().toISOString(),C=m.length>0?m[m.length-1]:null,S=(C==null?void 0:C.messages)||[],b=r.body.messages,$=S.length,w=$>0&&b.length<$*.5&&$-b.length>4;for(let O=0;O<b.length;O++)!w&&O<$&&S[O]._timestamp?b[O]._timestamp=S[O]._timestamp:b[O]._timestamp||(b[O]._timestamp=y);m=this.mergeMainAgentSessions(o.mainAgentSessions,r)}return 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 C=y.showAll?y.requests:y.requests.filter(S=>!S.isHeartbeat&&!S.isCountTokens&&!/\/api\/eval\/sdk-/.test(S.url||"")&&!/\/messages\/count_tokens/.test(S.url||""));return C.length>0?{selectedIndex:C.length-1}:null}return null})},200)),{requests:l,cacheExpireAt:u,cacheType:d,mainAgentSessions:m}})}catch(r){console.error("处理事件消息失败:",r)}}assignMessageTimestamps(n){var l;let r=[],o=null;for(const s of n){if(!s.mainAgent||!s.body||!Array.isArray(s.body.messages))continue;const u=s.body.messages,d=u.length,m=((l=s.body.metadata)==null?void 0:l.user_id)||null,p=s.timestamp||new Date().toISOString(),g=r.length;g>0&&(d<g*.5&&g-d>4||o&&m&&m!==o)&&(r=[]);for(let y=r.length;y<d;y++)r.push(p);for(let y=0;y<d;y++)u[y]._timestamp=r[y];o=m}}buildSessionsFromEntries(n){let r=[];for(const o of n)o.mainAgent&&o.body&&Array.isArray(o.body.messages)&&(r=this.mergeMainAgentSessions(r,o));return r}mergeMainAgentSessions(n,r){var p;const o=r.body.messages,l=r.response,s=((p=r.body.metadata)==null?void 0:p.user_id)||null;if(n.length===0)return[{userId:s,messages:o,response:l}];const u=n[n.length-1],d=u.messages?u.messages.length:0,m=d>0&&o.length<d*.5&&d-o.length>4;if(s&&s===u.userId&&!m){const g=[...n];return g[g.length-1]={userId:s,messages:o,response:l},g}else return[...n,{userId:s,messages:o,response:l}]}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:d,mainAgentSessions:m,showAll:p,fileLoading:g,fileLoadingCount:v}=this.state,y=p?n:n.filter(S=>!S.isHeartbeat&&!S.isCountTokens&&!/\/api\/eval\/sdk-/.test(S.url||"")&&!/\/messages\/count_tokens/.test(S.url||"")),C=r!==null?y[r]:null;return B.jsxs(Qo,{theme:{algorithm:Az.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:[g&&B.jsx("div",{className:nr.loadingOverlay,children:B.jsxs("div",{className:nr.loadingText,children:["Loading...(",v,")"]})}),B.jsxs(Di,{className:nr.layout,children:[B.jsx(Di.Header,{className:nr.header,children:B.jsx(zg,{requestCount:y.length,requests:y,viewMode:o,cacheExpireAt:s,cacheType:u,onToggleViewMode:this.handleToggleViewMode,onLangChange:this.handleLangChange,onImportLocalLogs:this.handleImportLocalLogs,isLocalLog:!!this._isLocalLog,localLogFile:this._localLogFile,projectName:this.state.projectName,collapseToolResults:this.state.collapseToolResults,onCollapseToolResultsChange:this.handleCollapseToolResultsChange,expandThinking:this.state.expandThinking,onExpandThinkingChange:this.handleExpandThinkingChange,filterIrrelevant:!this.state.showAll,onFilterIrrelevantChange:this.handleFilterIrrelevantChange})}),B.jsx(Di.Content,{className:nr.content,children:o==="raw"?B.jsxs("div",{ref:this.mainContainerRef,className:nr.mainContainer,children:[B.jsxs("div",{className:nr.leftPanel,style:{width:d},children:[B.jsxs("div",{className:nr.leftPanelHeader,children:[B.jsx("span",{children:ft("ui.requestList")}),B.jsx("span",{className:nr.leftPanelCount,children:ft("ui.totalRequests",{count:y.length})})]}),B.jsx("div",{className:nr.leftPanelBody,children:B.jsx(aB,{requests:y,selectedIndex:r,onSelect:this.handleSelectRequest})})]}),B.jsx(gH,{onResize:this.handleResize}),B.jsx("div",{className:nr.rightPanel,children:B.jsx(YB,{request:C,requests:y,selectedIndex:r,currentTab:l,onTabChange:this.handleTabChange})})]}):B.jsx(fH,{requests:y,mainAgentSessions:m,userProfile:this.state.userProfile,collapseToolResults:this.state.collapseToolResults,expandThinking:this.state.expandThinking})})]}),B.jsx(qr,{title:ft("ui.resume.title"),open:this.state.resumeModalVisible,closable:!1,maskClosable:!1,keyboard:!1,footer:[B.jsx(Or,{type:"primary",onClick:()=>this.handleResumeChoice("continue"),children:ft("ui.resume.continue")},"continue"),B.jsx(Or,{onClick:()=>this.handleResumeChoice("new"),children:ft("ui.resume.new")},"new")],children:B.jsx("p",{children:ft("ui.resume.message",{file:this.state.resumeFileName})})}),B.jsxs(qr,{title:ft("ui.importLocalLogs"),open:this.state.importModalVisible,onCancel:this.handleCloseImportModal,footer:null,width:600,styles:{body:{maxHeight:"60vh",overflow:"auto"}},children:[B.jsx("div",{className:nr.modalActions,children:B.jsx(Or,{icon:B.jsx(tL,{}),onClick:this.handleLoadLocalJsonlFile,children:ft("ui.loadLocalJsonl")})}),this.state.localLogsLoading?B.jsx("div",{className:nr.spinCenter,children:B.jsx(Yd,{})}):Object.keys(this.state.localLogs).length===0?B.jsx("div",{className:nr.emptyCenter,children:ft("ui.noLogs")}):B.jsx(ml,{defaultActiveKey:Object.keys(this.state.localLogs),items:Object.entries(this.state.localLogs).map(([S,b])=>({key:S,label:B.jsxs("span",{children:[B.jsx(Oz,{className:nr.folderIcon}),S,B.jsx(bo,{className:nr.logTag,children:ft("ui.logCount",{count:b.length})})]}),children:B.jsx(Vs,{size:"small",dataSource:b,renderItem:$=>B.jsx(Vs.Item,{className:nr.logListItem,onClick:()=>this.handleOpenLogFile($.file),children:B.jsxs("div",{className:nr.logItemRow,children:[B.jsxs("span",{children:[B.jsx(ad,{className:nr.logFileIcon}),this.formatTimestamp($.timestamp)]}),B.jsx(bo,{color:"blue",children:this.formatSize($.size)})]})})})}))})]})]})}}const zH=FE.createRoot(document.getElementById("root"));zH.render(B.jsx(jH,{}));