428 lines
1.8 MiB
Plaintext
428 lines
1.8 MiB
Plaintext
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=f();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=u(),n=f(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],B=-1;function V(e){return{current:e}}function H(e){0>B||(e.current=z[B],z[B]=null,B--)}function U(e,t){B++,z[B]=e.current,e.current=t}var W=V(null),G=V(null),K=V(null),ee=V(null);function te(e,t){switch(U(K,t),U(G,e),U(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(W),U(W,e)}function q(){H(W),H(G),H(K)}function J(e){e.memoizedState!==null&&U(ee,e);var t=W.current,n=Ud(t,e.type);t!==n&&(U(G,e),U(W,n))}function Y(e){G.current===e&&(H(W),H(G)),ee.current===e&&(H(ee),$f._currentValue=R)}var ne,X;function re(e){if(ne===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ne=t&&t[1]||``,X=-1<e.stack.indexOf(`
|
||
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
||
`+ne+e+X}var ie=!1;function ae(e,t){if(!e||ie)return``;ie=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
||
`),l=s.split(`
|
||
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
||
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ie=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?re(n):``}function oe(e,t){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re(`Lazy`);case 13:return e.child!==t&&t!==null?re(`Suspense Fallback`):re(`Suspense`);case 19:return re(`SuspenseList`);case 0:case 15:return ae(e.type,!1);case 11:return ae(e.type.render,!1);case 1:return ae(e.type,!0);case 31:return re(`Activity`);default:return``}}function se(e){try{var t=``,n=null;do t+=oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
||
Error generating stack: `+e.message+`
|
||
`+e.stack}}var ce=Object.prototype.hasOwnProperty,le=t.unstable_scheduleCallback,ue=t.unstable_cancelCallback,de=t.unstable_shouldYield,fe=t.unstable_requestPaint,pe=t.unstable_now,me=t.unstable_getCurrentPriorityLevel,he=t.unstable_ImmediatePriority,ge=t.unstable_UserBlockingPriority,_e=t.unstable_NormalPriority,ve=t.unstable_LowPriority,ye=t.unstable_IdlePriority,be=t.log,xe=t.unstable_setDisableYieldValue,Se=null,Ce=null;function we(e){if(typeof be==`function`&&xe(e),Ce&&typeof Ce.setStrictMode==`function`)try{Ce.setStrictMode(Se,e)}catch{}}var Te=Math.clz32?Math.clz32:Oe,Ee=Math.log,De=Math.LN2;function Oe(e){return e>>>=0,e===0?32:31-(Ee(e)/De|0)|0}var ke=256,Ae=262144,je=4194304;function Me(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ne(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Me(n))):i=Me(o):i=Me(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Me(n))):i=Me(o)):i=Me(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Pe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ie(){var e=je;return je<<=1,!(je&62914560)&&(je=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Te(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Be(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Be(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Te(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ve(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Te(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function He(e,t){var n=t&-t;return n=n&42?1:Ue(n),(n&(e.suspendedLanes|t))===0?n:0}function Ue(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function We(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ge(){var e=L.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function Ke(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var qe=Math.random().toString(36).slice(2),Je=`__reactFiber$`+qe,Ye=`__reactProps$`+qe,Xe=`__reactContainer$`+qe,Ze=`__reactEvents$`+qe,Qe=`__reactListeners$`+qe,$e=`__reactHandles$`+qe,et=`__reactResources$`+qe,tt=`__reactMarker$`+qe;function nt(e){delete e[Je],delete e[Ye],delete e[Ze],delete e[Qe],delete e[$e]}function rt(e){var t=e[Je];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xe]||n[Je]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[Je])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function it(e){if(e=e[Je]||e[Xe]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function at(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ot(e){var t=e[et];return t||=e[et]={hoistableStyles:new Map,hoistableScripts:new Map},t}function st(e){e[tt]=!0}var ct=new Set,lt={};function ut(e,t){dt(e,t),dt(e+`Capture`,t)}function dt(e,t){for(lt[e]=t,e=0;e<t.length;e++)ct.add(t[e])}var ft=RegExp(`^[: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]*$`),pt={},mt={};function ht(e){return ce.call(mt,e)?!0:ce.call(pt,e)?!1:ft.test(e)?mt[e]=!0:(pt[e]=!0,!1)}function gt(e,t,n){if(ht(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function _t(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function vt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function yt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function bt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function xt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function St(e){if(!e._valueTracker){var t=bt(e)?`checked`:`value`;e._valueTracker=xt(e,t,``+e[t])}}function Ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=bt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function wt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Tt=/[\n"\\]/g;function Et(e){return e.replace(Tt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Dt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+yt(t)):e.value!==``+yt(t)&&(e.value=``+yt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):kt(e,o,yt(n)):kt(e,o,yt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+yt(s):e.removeAttribute(`name`)}function Ot(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){St(e);return}n=n==null?``:``+yt(n),t=t==null?n:``+yt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),St(e)}function kt(e,t,n){t===`number`&&wt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function At(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+yt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function jt(e,t,n){if(t!=null&&(t=``+yt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+yt(n)}function Mt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=yt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),St(e)}function Nt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Ft(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Pt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function It(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Ft(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Ft(e,o,t[o])}function Lt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 Rt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),zt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Bt(e){return zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Vt(){}var Ht=null;function Ut(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wt=null,Gt=null;function Kt(e){var t=it(e);if(t&&(e=t.stateNode)){var n=e[Ye]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Dt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Et(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ye]||null;if(!a)throw Error(i(90));Dt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ct(r)}break a;case`textarea`:jt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&At(e,!!n.multiple,t,!1)}}}var qt=!1;function Jt(e,t,n){if(qt)return e(t,n);qt=!0;try{return e(t)}finally{if(qt=!1,(Wt!==null||Gt!==null)&&(vu(),Wt&&(t=Wt,e=Gt,Gt=Wt=null,Kt(t),e)))for(t=0;t<e.length;t++)Kt(e[t])}}function Yt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ye]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Xt=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Zt=!1;if(Xt)try{var Qt={};Object.defineProperty(Qt,`passive`,{get:function(){Zt=!0}}),window.addEventListener(`test`,Qt,Qt),window.removeEventListener(`test`,Qt,Qt)}catch{Zt=!1}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t=en,n=t.length,r,i=`value`in $t?$t.value:$t.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return tn=i.slice(e,1<r?1-r:void 0)}function rn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?an:on,this.isPropagationStopped=on,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=sn(cn),un=h({},cn,{view:0,detail:0}),dn=sn(un),fn,pn,mn,hn=h({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==mn&&(mn&&e.type===`mousemove`?(fn=e.screenX-mn.screenX,pn=e.screenY-mn.screenY):pn=fn=0,mn=e),fn)},movementY:function(e){return`movementY`in e?e.movementY:pn}}),gn=sn(hn),_n=sn(h({},hn,{dataTransfer:0})),vn=sn(h({},un,{relatedTarget:0})),yn=sn(h({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=sn(h({},cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),xn=sn(h({},cn,{data:0})),Sn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Cn={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`},wn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wn[e])?!!t[e]:!1}function En(){return Tn}var Dn=sn(h({},un,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Cn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return e.type===`keypress`?rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),On=sn(h({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=sn(h({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),An=sn(h({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=sn(h({},hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Mn=sn(h({},cn,{newState:0,oldState:0})),Nn=[9,13,27,32],Pn=Xt&&`CompositionEvent`in window,Fn=null;Xt&&`documentMode`in document&&(Fn=document.documentMode);var In=Xt&&`TextEvent`in window&&!Fn,Ln=Xt&&(!Pn||Fn&&8<Fn&&11>=Fn),Rn=` `,zn=!1;function Bn(e,t){switch(e){case`keyup`:return Nn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Vn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Hn=!1;function Un(e,t){switch(e){case`compositionend`:return Vn(t);case`keypress`:return t.which===32?(zn=!0,Rn):null;case`textInput`:return e=t.data,e===Rn&&zn?null:e;default:return null}}function Wn(e,t){if(Hn)return e===`compositionend`||!Pn&&Bn(e,t)?(e=nn(),tn=en=$t=null,Hn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Ln&&t.locale!==`ko`?null:t.data;default:return null}}var Gn={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 Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Gn[e.type]:t===`textarea`}function qn(e,t,n,r){Wt?Gt?Gt.push(r):Gt=[r]:Wt=r,t=Ed(t,`onChange`),0<t.length&&(n=new ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Jn=null,Yn=null;function Xn(e){vd(e,0)}function Zn(e){if(Ct(at(e)))return e}function Qn(e,t){if(e===`change`)return t}var $n=!1;if(Xt){var er;if(Xt){var tr=`oninput`in document;if(!tr){var nr=document.createElement(`div`);nr.setAttribute(`oninput`,`return;`),tr=typeof nr.oninput==`function`}er=tr}else er=!1;$n=er&&(!document.documentMode||9<document.documentMode)}function rr(){Jn&&(Jn.detachEvent(`onpropertychange`,ir),Yn=Jn=null)}function ir(e){if(e.propertyName===`value`&&Zn(Yn)){var t=[];qn(t,Yn,e,Ut(e)),Jt(Xn,t)}}function ar(e,t,n){e===`focusin`?(rr(),Jn=t,Yn=n,Jn.attachEvent(`onpropertychange`,ir)):e===`focusout`&&rr()}function or(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Zn(Yn)}function sr(e,t){if(e===`click`)return Zn(t)}function cr(e,t){if(e===`input`||e===`change`)return Zn(t)}function lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var ur=typeof Object.is==`function`?Object.is:lr;function dr(e,t){if(ur(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ce.call(t,i)||!ur(e[i],t[i]))return!1}return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n=fr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=fr(n)}}function mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=wt(e.document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var _r=Xt&&`documentMode`in document&&11>=document.documentMode,vr=null,yr=null,br=null,xr=!1;function Sr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xr||vr==null||vr!==wt(r)||(r=vr,`selectionStart`in r&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),br&&dr(br,r)||(br=r,r=Ed(yr,`onSelect`),0<r.length&&(t=new ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var wr={animationend:Cr(`Animation`,`AnimationEnd`),animationiteration:Cr(`Animation`,`AnimationIteration`),animationstart:Cr(`Animation`,`AnimationStart`),transitionrun:Cr(`Transition`,`TransitionRun`),transitionstart:Cr(`Transition`,`TransitionStart`),transitioncancel:Cr(`Transition`,`TransitionCancel`),transitionend:Cr(`Transition`,`TransitionEnd`)},Tr={},Er={};Xt&&(Er=document.createElement(`div`).style,`AnimationEvent`in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),`TransitionEvent`in window||delete wr.transitionend.transition);function Dr(e){if(Tr[e])return Tr[e];if(!wr[e])return e;var t=wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Er)return Tr[e]=t[n];return e}var Or=Dr(`animationend`),kr=Dr(`animationiteration`),Ar=Dr(`animationstart`),jr=Dr(`transitionrun`),Mr=Dr(`transitionstart`),Nr=Dr(`transitioncancel`),Pr=Dr(`transitionend`),Fr=new Map,Ir=`abort auxClick beforeToggle 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(` `);Ir.push(`scrollEnd`);function Lr(e,t){Fr.set(e,t),ut(t,[e])}var Rr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},zr=[],Br=0,Vr=0;function Hr(){for(var e=Br,t=Vr=Br=0;t<e;){var n=zr[t];zr[t++]=null;var r=zr[t];zr[t++]=null;var i=zr[t];zr[t++]=null;var a=zr[t];if(zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Kr(n,i,a)}}function Ur(e,t,n,r){zr[Br++]=e,zr[Br++]=t,zr[Br++]=n,zr[Br++]=r,Vr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Wr(e,t,n,r){return Ur(e,t,n,r),qr(e)}function Gr(e,t){return Ur(e,null,null,t),qr(e)}function Kr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Te(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function qr(e){if(50<lu)throw lu=0,uu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jr={};function Yr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xr(e,t,n,r){return new Yr(e,t,n,r)}function Zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qr(e,t){var n=e.alternate;return n===null?(n=Xr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function $r(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ei(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)Zr(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,W.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=Xr(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ti(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=Xr(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=Xr(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=Xr(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Xr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ti(e,t,n,r){return e=Xr(7,e,r,t),e.lanes=n,e}function ni(e,t,n){return e=Xr(6,e,null,t),e.lanes=n,e}function ri(e){var t=Xr(18,null,null,0);return t.stateNode=e,t}function ii(e,t,n){return t=Xr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ai=new WeakMap;function oi(e,t){if(typeof e==`object`&&e){var n=ai.get(e);return n===void 0?(t={value:e,source:t,stack:se(t)},ai.set(e,t),t):n}return{value:e,source:t,stack:se(t)}}var si=[],ci=0,li=null,ui=0,di=[],fi=0,pi=null,mi=1,hi=``;function gi(e,t){si[ci++]=ui,si[ci++]=li,li=e,ui=t}function _i(e,t,n){di[fi++]=mi,di[fi++]=hi,di[fi++]=pi,pi=e;var r=mi;e=hi;var i=32-Te(r)-1;r&=~(1<<i),n+=1;var a=32-Te(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,mi=1<<32-Te(t)+i|n<<i|r,hi=a+e}else mi=1<<a|n<<i|r,hi=e}function vi(e){e.return!==null&&(gi(e,1),_i(e,1,0))}function yi(e){for(;e===li;)li=si[--ci],si[ci]=null,ui=si[--ci],si[ci]=null;for(;e===pi;)pi=di[--fi],di[fi]=null,hi=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null}function bi(e,t){di[fi++]=mi,di[fi++]=hi,di[fi++]=pi,mi=t.id,hi=t.overflow,pi=e}var xi=null,Si=null,Ci=!1,wi=null,Ti=!1,Ei=Error(i(519));function Di(e){throw Ni(oi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ei}function Oi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Je]=e,t[Ye]=r,n){case`dialog`:yd(`cancel`,t),yd(`close`,t);break;case`iframe`:case`object`:case`embed`:yd(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)yd(gd[n],t);break;case`source`:yd(`error`,t);break;case`img`:case`image`:case`link`:yd(`error`,t),yd(`load`,t);break;case`details`:yd(`toggle`,t);break;case`input`:yd(`invalid`,t),Ot(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:yd(`invalid`,t);break;case`textarea`:yd(`invalid`,t),Mt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(yd(`beforetoggle`,t),yd(`toggle`,t)),r.onScroll!=null&&yd(`scroll`,t),r.onScrollEnd!=null&&yd(`scrollend`,t),r.onClick!=null&&(t.onclick=Vt),t=!0):t=!1,t||Di(e,!0)}function ki(e){for(xi=e.return;xi;)switch(xi.tag){case 5:case 31:case 13:Ti=!1;return;case 27:case 3:Ti=!0;return;default:xi=xi.return}}function Ai(e){if(e!==xi)return!1;if(!Ci)return ki(e),Ci=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Wd(e.type,e.memoizedProps)),n=!n),n&&Si&&Di(e),ki(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Si=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Si=df(e)}else t===27?(t=Si,Qd(e.type)?(e=uf,uf=null,Si=e):Si=t):Si=xi?lf(e.stateNode.nextSibling):null;return!0}function ji(){Si=xi=null,Ci=!1}function Mi(){var e=wi;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),wi=null),e}function Ni(e){wi===null?wi=[e]:wi.push(e)}var Pi=V(null),Fi=null,Ii=null;function Li(e,t,n){U(Pi,t._currentValue),t._currentValue=n}function Ri(e){e._currentValue=Pi.current,H(Pi)}function zi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Bi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),zi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),zi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Vi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;ur(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ee.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}a=a.return}e!==null&&Bi(t,e,n,r),t.flags|=262144}function Hi(e){for(e=e.firstContext;e!==null;){if(!ur(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ui(e){Fi=e,Ii=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Wi(e){return Ki(Fi,e)}function Gi(e,t){return Fi===null&&Ui(e),Ki(e,t)}function Ki(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ii===null){if(e===null)throw Error(i(308));Ii=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ii=Ii.next=t;return n}var qi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ji=t.unstable_scheduleCallback,Yi=t.unstable_NormalPriority,Xi={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zi(){return{controller:new qi,data:new Map,refCount:0}}function Qi(e){e.refCount--,e.refCount===0&&Ji(Yi,function(){e.controller.abort()})}var $i=null,ea=0,ta=0,na=null;function Z(e,t){if($i===null){var n=$i=[];ea=0,ta=ud(),na={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ea++,t.then(ra,ra),t}function ra(){if(--ea===0&&$i!==null){na!==null&&(na.status=`fulfilled`);var e=$i;$i=null,ta=0,na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ia(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var aa=I.S;I.S=function(e,t){Ql=pe(),typeof t==`object`&&t&&typeof t.then==`function`&&Z(e,t),aa!==null&&aa(e,t)};var oa=V(null);function sa(){var e=oa.current;return e===null?Nl.pooledCache:e}function ca(e,t){t===null?U(oa,oa.current):U(oa,t.pool)}function la(){var e=sa();return e===null?null:{parent:Xi._currentValue,pool:e}}var ua=Error(i(460)),da=Error(i(474)),fa=Error(i(542)),pa={then:function(){}};function ma(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ha(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Vt,Vt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ya(e),e;default:if(typeof t.status==`string`)t.then(Vt,Vt);else{if(e=Nl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ya(e),e}throw _a=t,ua}}function ga(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(_a=e,ua):e}}var _a=null;function va(){if(_a===null)throw Error(i(459));var e=_a;return _a=null,e}function ya(e){if(e===ua||e===fa)throw Error(i(483))}var ba=null,xa=0;function Sa(e){var t=xa;return xa+=1,ba===null&&(ba=[]),ha(ba,e,t)}function Ca(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function wa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ta(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Qr(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ni(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&ga(i)===t.type)?(t=a(t,n.props),Ca(t,n),t.return=e,t):(t=ei(n.type,n.key,n.props,null,e.mode,r),Ca(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ii(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ti(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ni(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ei(t.type,t.key,t.props,null,e.mode,n),Ca(n,t),n.return=e,n;case v:return t=ii(t,e.mode,n),t.return=e,t;case O:return t=ga(t),f(e,t,n)}if(F(t)||M(t))return t=ti(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Sa(t),n);if(t.$$typeof===C)return f(e,Gi(e,t),n);wa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=ga(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Sa(n),r);if(n.$$typeof===C)return p(e,t,Gi(e,n),r);wa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ga(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Sa(r),i);if(r.$$typeof===C)return m(e,t,n,Gi(t,r),i);wa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ci&&gi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ci&&gi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Ci&&gi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ci&&gi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ci&&gi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ci&&gi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ga(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ca(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ti(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ei(o.type,o.key,o.props,null,e.mode,c),Ca(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ii(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ga(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Sa(o),c);if(o.$$typeof===C)return b(e,r,Gi(e,o),c);wa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ni(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{xa=0;var i=b(e,t,n,r);return ba=null,i}catch(t){if(t===ua||t===fa)throw t;var a=Xr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ea=Ta(!0),Da=Ta(!1),Oa=!1;function ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Aa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ml&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=qr(e),Kr(e,null,n),t}return Ur(e,r,t,n),qr(e)}function Na(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}function Pa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fa=!1;function Ia(){if(Fa){var e=na;if(e!==null)throw e}}function La(e,t,n,r){Fa=!1;var i=e.updateQueue;Oa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Fl&f)===f:(r&f)===f){f!==0&&f===ta&&(Fa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Oa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ul|=o,e.lanes=o,e.memoizedState=d}}function Q(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ra(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Q(n[e],t)}var za=V(null),Ba=V(0);function Va(e,t){e=Vl,U(Ba,e),U(za,t),Vl=e|t.baseLanes}function Ha(){U(Ba,Vl),U(za,za.current)}function Ua(){Vl=Ba.current,H(za),H(Ba)}var Wa=V(null),Ga=null;function Ka(e){var t=e.alternate;U(Za,Za.current&1),U(Wa,e),Ga===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(Ga=e)}function qa(e){U(Za,Za.current),U(Wa,e),Ga===null&&(Ga=e)}function Ja(e){e.tag===22?(U(Za,Za.current),U(Wa,e),Ga===null&&(Ga=e)):Ya(e)}function Ya(){U(Za,Za.current),U(Wa,Wa.current)}function Xa(e){H(Wa),Ga===e&&(Ga=null),H(Za)}var Za=V(0);function Qa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $a=0,eo=null,to=null,no=null,ro=!1,io=!1,ao=!1,oo=0,so=0,co=null,lo=0;function uo(){throw Error(i(321))}function fo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function po(e,t,n,r,i,a){return $a=a,eo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?As:js,ao=!1,a=n(r,i),ao=!1,io&&(a=ho(t,n,r,i)),mo(e),a}function mo(e){I.H=ks;var t=to!==null&&to.next!==null;if($a=0,no=to=eo=null,ro=!1,so=0,co=null,t)throw Error(i(300));e===null||Js||(e=e.dependencies,e!==null&&Hi(e)&&(Js=!0))}function ho(e,t,n,r){eo=e;var a=0;do{if(io&&(co=null),so=0,io=!1,25<=a)throw Error(i(301));if(a+=1,no=to=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=Ms,o=t(n,r)}while(io);return o}function go(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Co(t):t,e=e.useState()[0],(to===null?null:to.memoizedState)!==e&&(eo.flags|=1024),t}function _o(){var e=oo!==0;return oo=0,e}function vo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function yo(e){if(ro){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ro=!1}$a=0,no=to=eo=null,io=!1,so=oo=0,co=null}function bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return no===null?eo.memoizedState=no=e:no=no.next=e,no}function xo(){if(to===null){var e=eo.alternate;e=e===null?null:e.memoizedState}else e=to.next;var t=no===null?eo.memoizedState:no.next;if(t!==null)no=t,to=e;else{if(e===null)throw eo.alternate===null?Error(i(467)):Error(i(310));to=e,e={memoizedState:to.memoizedState,baseState:to.baseState,baseQueue:to.baseQueue,queue:to.queue,next:null},no===null?eo.memoizedState=no=e:no=no.next=e}return no}function So(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Co(e){var t=so;return so+=1,co===null&&(co=[]),e=ha(co,e,t),t=eo,(no===null?t.memoizedState:no.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?As:js),e}function wo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Co(e);if(e.$$typeof===C)return Wi(e)}throw Error(i(438,String(e)))}function To(e){var t=null,n=eo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=eo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=So(),eo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Eo(e,t){return typeof t==`function`?t(e):t}function Do(e){return Oo(xo(),to,e)}function Oo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?($a&f)===f:(Fl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ta&&(d=!0);else if(($a&p)===p){u=u.next,p===ta&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,eo.lanes|=p,Ul|=p;f=u.action,ao&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,eo.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!ur(o,e.memoizedState)&&(Js=!0,d&&(n=na,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ko(e){var t=xo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);ur(o,t.memoizedState)||(Js=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ao(e,t,n){var r=eo,a=xo(),o=Ci;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!ur((to||a).memoizedState,n);if(s&&(a.memoizedState=n,Js=!0),a=a.queue,ts(No.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||no!==null&&no.memoizedState.tag&1){if(r.flags|=2048,Xo(9,{destroy:void 0},Mo.bind(null,r,a,n,t),null),Nl===null)throw Error(i(349));o||$a&127||jo(r,t,n)}return n}function jo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=eo.updateQueue,t===null?(t=So(),eo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mo(e,t,n,r){t.value=n,t.getSnapshot=r,Po(t)&&Fo(e)}function No(e,t,n){return n(function(){Po(t)&&Fo(e)})}function Po(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch{return!0}}function Fo(e){var t=Gr(e,2);t!==null&&pu(t,e,2)}function Io(e){var t=bo();if(typeof e==`function`){var n=e;if(e=n(),ao){we(!0);try{n()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:e},t}function Lo(e,t,n,r){return e.baseState=n,Oo(e,to,typeof r==`function`?r:Eo)}function Ro(e,t,n,r,a){if(Es(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Bo(e,t,s)}catch(n){Ho(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Bo(e,t,a)}catch(n){Ho(e,t,n)}}function Bo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Vo(e,t,n)},function(n){return Ho(e,t,n)}):Vo(e,t,n)}function Vo(e,t,n){t.status=`fulfilled`,t.value=n,Uo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,zo(e,n)))}function Ho(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Uo(t),t=t.next;while(t!==r)}e.action=null}function Uo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wo(e,t){return t}function Go(e,t){if(Ci){var n=Nl.formState;if(n!==null){a:{var r=eo;if(Ci){if(Si){b:{for(var i=Si,a=Ti;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Si=lf(i.nextSibling),r=i.data===`F!`;break a}}Di(r)}r=!1}r&&(t=n[0])}}return n=bo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:t},n.queue=r,n=Cs.bind(null,eo,r),r.dispatch=n,r=Io(!1),a=Ts.bind(null,eo,!1,r.queue),r=bo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ro.bind(null,eo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ko(e){return qo(xo(),to,e)}function qo(e,t,n){if(t=Oo(e,t,Wo)[0],e=Do(Eo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Co(t)}catch(e){throw e===ua?fa:e}else r=t;t=xo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(eo.flags|=2048,Xo(9,{destroy:void 0},Jo.bind(null,i,n),null)),[r,a,e]}function Jo(e,t){e.action=t}function Yo(e){var t=xo(),n=to;if(n!==null)return qo(t,n,e);xo(),t=t.memoizedState,n=xo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Xo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=eo.updateQueue,t===null&&(t=So(),eo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Zo(){return xo().memoizedState}function Qo(e,t,n,r){var i=bo();eo.flags|=e,i.memoizedState=Xo(1|t,{destroy:void 0},n,r===void 0?null:r)}function $o(e,t,n,r){var i=xo();r=r===void 0?null:r;var a=i.memoizedState.inst;to!==null&&r!==null&&fo(r,to.memoizedState.deps)?i.memoizedState=Xo(t,a,n,r):(eo.flags|=e,i.memoizedState=Xo(1|t,a,n,r))}function es(e,t){Qo(8390656,8,e,t)}function ts(e,t){$o(2048,8,e,t)}function ns(e){eo.flags|=4;var t=eo.updateQueue;if(t===null)t=So(),eo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function rs(e){var t=xo().memoizedState;return ns({ref:t,nextImpl:e}),function(){if(Ml&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function is(e,t){return $o(4,2,e,t)}function as(e,t){return $o(4,4,e,t)}function os(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ss(e,t,n){n=n==null?null:n.concat([e]),$o(4,4,os.bind(null,t,e),n)}function cs(){}function ls(e,t){var n=xo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&fo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function us(e,t){var n=xo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&fo(t,r[1]))return r[0];if(r=e(),ao){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r}function ds(e,t,n){return n===void 0||$a&1073741824&&!(Fl&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),eo.lanes|=e,Ul|=e,n)}function fs(e,t,n,r){return ur(n,t)?n:za.current===null?!($a&42)||$a&1073741824&&!(Fl&261930)?(Js=!0,e.memoizedState=n):(e=fu(),eo.lanes|=e,Ul|=e,t):(e=ds(e,n,r),ur(e,t)||(Js=!0),e)}function ps(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Ts(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ws(e,t,ia(c,r),du(e)):ws(e,t,r,du(e))}catch(n){ws(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function ms(){}function hs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=gs(e).queue;ps(e,a,t,R,n===null?ms:function(){return _s(e),n(r)})}function gs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _s(e){var t=gs(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},du())}function vs(){return Wi($f)}function ys(){return xo().memoizedState}function bs(){return xo().memoizedState}function xs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=ja(n);var r=Ma(t,e,n);r!==null&&(pu(r,t,n),Na(r,t,n)),t={cache:Zi()},e.payload=t;return}t=t.return}}function Ss(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e)?Ds(t,n):(n=Wr(e,t,n,r),n!==null&&(pu(n,e,r),Os(n,t,r)))}function Cs(e,t,n){ws(e,t,n,du())}function ws(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Ds(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ur(s,o))return Ur(e,t,i,0),Nl===null&&Hr(),!1}catch{}if(n=Wr(e,t,i,r),n!==null)return pu(n,e,r),Os(n,t,r),!0}return!1}function Ts(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(i(479))}else t=Wr(e,n,r,2),t!==null&&pu(t,e,2)}function Es(e){var t=e.alternate;return e===eo||t!==null&&t===eo}function Ds(e,t){io=ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Os(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}var ks={readContext:Wi,use:wo,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useLayoutEffect:uo,useInsertionEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useSyncExternalStore:uo,useId:uo,useHostTransitionStatus:uo,useFormState:uo,useActionState:uo,useOptimistic:uo,useMemoCache:uo,useCacheRefresh:uo};ks.useEffectEvent=uo;var As={readContext:Wi,use:wo,useCallback:function(e,t){return bo().memoizedState=[e,t===void 0?null:t],e},useContext:Wi,useEffect:es,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Qo(4194308,4,os.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){Qo(4,2,e,t)},useMemo:function(e,t){var n=bo();t=t===void 0?null:t;var r=e();if(ao){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bo();if(n!==void 0){var i=n(t);if(ao){we(!0);try{n(t)}finally{we(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ss.bind(null,eo,e),[r.memoizedState,e]},useRef:function(e){var t=bo();return e={current:e},t.memoizedState=e},useState:function(e){e=Io(e);var t=e.queue,n=Cs.bind(null,eo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:cs,useDeferredValue:function(e,t){return ds(bo(),e,t)},useTransition:function(){var e=Io(!1);return e=ps.bind(null,eo,e.queue,!0,!1),bo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=eo,a=bo();if(Ci){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Nl===null)throw Error(i(349));Fl&127||jo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,es(No.bind(null,r,o,e),[e]),r.flags|=2048,Xo(9,{destroy:void 0},Mo.bind(null,r,o,n,t),null),n},useId:function(){var e=bo(),t=Nl.identifierPrefix;if(Ci){var n=hi,r=mi;n=(r&~(1<<32-Te(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=oo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=lo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:vs,useFormState:Go,useActionState:Go,useOptimistic:function(e){var t=bo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ts.bind(null,eo,!0,n),n.dispatch=t,[e,t]},useMemoCache:To,useCacheRefresh:function(){return bo().memoizedState=xs.bind(null,eo)},useEffectEvent:function(e){var t=bo(),n={impl:e};return t.memoizedState=n,function(){if(Ml&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},js={readContext:Wi,use:wo,useCallback:ls,useContext:Wi,useEffect:ts,useImperativeHandle:ss,useInsertionEffect:is,useLayoutEffect:as,useMemo:us,useReducer:Do,useRef:Zo,useState:function(){return Do(Eo)},useDebugValue:cs,useDeferredValue:function(e,t){return fs(xo(),to.memoizedState,e,t)},useTransition:function(){var e=Do(Eo)[0],t=xo().memoizedState;return[typeof e==`boolean`?e:Co(e),t]},useSyncExternalStore:Ao,useId:ys,useHostTransitionStatus:vs,useFormState:Ko,useActionState:Ko,useOptimistic:function(e,t){return Lo(xo(),to,e,t)},useMemoCache:To,useCacheRefresh:bs};js.useEffectEvent=rs;var Ms={readContext:Wi,use:wo,useCallback:ls,useContext:Wi,useEffect:ts,useImperativeHandle:ss,useInsertionEffect:is,useLayoutEffect:as,useMemo:us,useReducer:ko,useRef:Zo,useState:function(){return ko(Eo)},useDebugValue:cs,useDeferredValue:function(e,t){var n=xo();return to===null?ds(n,e,t):fs(n,to.memoizedState,e,t)},useTransition:function(){var e=ko(Eo)[0],t=xo().memoizedState;return[typeof e==`boolean`?e:Co(e),t]},useSyncExternalStore:Ao,useId:ys,useHostTransitionStatus:vs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){var n=xo();return to===null?(n.baseState=e,[e,n.queue.dispatch]):Lo(n,to,e,t)},useMemoCache:To,useCacheRefresh:bs};Ms.useEffectEvent=rs;function Ns(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ps={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=ja(r);i.payload=t,n!=null&&(i.callback=n),t=Ma(e,i,r),t!==null&&(pu(t,e,r),Na(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=ja(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ma(e,i,r),t!==null&&(pu(t,e,r),Na(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=ja(n);r.tag=2,t!=null&&(r.callback=t),t=Ma(e,r,n),t!==null&&(pu(t,e,n),Na(t,e,n))}};function Fs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!dr(n,r)||!dr(i,a):!0}function Is(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ps.enqueueReplaceState(t,t.state,null)}function Ls(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Rs(e){Rr(e)}function zs(e){console.error(e)}function Bs(e){Rr(e)}function Vs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Hs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Us(e,t,n){return n=ja(n),n.tag=3,n.payload={element:null},n.callback=function(){Vs(e,t)},n}function Ws(e){return e=ja(e),e.tag=3,e}function Gs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Hs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Hs(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ks(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Vi(t,n,a,!0),n=Wa.current,n!==null){switch(n.tag){case 31:case 13:return Ga===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===pa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===pa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Tu(),!1}if(Ci)return t=Wa.current,t===null?(r!==Ei&&(t=Error(i(423),{cause:r}),Ni(oi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=oi(r,n),a=Us(e.stateNode,r,a),Pa(e,a),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ei&&(e=Error(i(422),{cause:r}),Ni(oi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=oi(o,n),Jl===null?Jl=[o]:Jl.push(o),Hl!==4&&(Hl=2),t===null)return!0;r=oi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Us(n.stateNode,r,e),Pa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(tu===null||!tu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ws(a),Gs(a,e,n,r),Pa(n,a),!1}n=n.return}while(n!==null);return!1}var qs=Error(i(461)),Js=!1;function Ys(e,t,n,r){t.child=e===null?Da(t,null,n,r):Ea(t,e.child,n,r)}function Xs(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ui(t),r=po(e,t,n,o,a,i),s=_o(),e!==null&&!Js?(vo(e,t,i),bc(e,t,i)):(Ci&&s&&vi(t),t.flags|=1,Ys(e,t,r,i),t.child)}function Zs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Zr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Qs(e,t,a,r,i)):(e=ei(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!xc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?dr:n,n(o,r)&&e.ref===t.ref)return bc(e,t,i)}return t.flags|=1,e=Qr(a,r),e.ref=t.ref,e.return=t,t.child=e}function Qs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(dr(a,r)&&e.ref===t.ref)if(Js=!1,t.pendingProps=r=a,xc(e,i))e.flags&131072&&(Js=!0);else return t.lanes=e.lanes,bc(e,t,i)}return oc(e,t,n,r,i)}function $s(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return tc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ca(t,a===null?null:a.cachePool),a===null?Ha():Va(t,a),Ja(t);else return r=t.lanes=536870912,tc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ca(t,null),Ha(),Ya(t)):(ca(t,a.cachePool),Va(t,a),Ya(t),t.memoizedState=null);return Ys(e,t,i,n),t.child}function ec(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tc(e,t,n,r,i){var a=sa();return a=a===null?null:{parent:Xi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ca(t,null),Ha(),Ja(t),e!==null&&Vi(e,t,r,!0),t.childLanes=i,null}function nc(e,t){return t=hc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function rc(e,t,n){return Ea(t,e.child,null,n),e=nc(t,t.pendingProps),e.flags|=2,Xa(t),t.memoizedState=null,e}function ic(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ci){if(r.mode===`hidden`)return e=nc(t,r),t.lanes=536870912,ec(null,e);if(qa(t),(e=Si)?(e=af(e,Ti),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi===null?null:{id:mi,overflow:hi},retryLane:536870912,hydrationErrors:null},n=ri(e),n.return=t,t.child=n,xi=t,Si=null)):e=null,e===null)throw Di(t);return t.lanes=536870912,null}return nc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(qa(t),a)if(t.flags&256)t.flags&=-257,t=rc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Js||Vi(e,t,n,!1),a=(n&e.childLanes)!==0,Js||a){if(r=Nl,r!==null&&(s=He(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Gr(e,s),pu(r,e,s),qs;Tu(),t=rc(e,t,n)}else e=o.treeContext,Si=lf(s.nextSibling),xi=t,Ci=!0,wi=null,Ti=!1,e!==null&&bi(t,e),t=nc(t,r),t.flags|=4096;return t}return e=Qr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ac(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function oc(e,t,n,r,i){return Ui(t),n=po(e,t,n,r,void 0,i),r=_o(),e!==null&&!Js?(vo(e,t,i),bc(e,t,i)):(Ci&&r&&vi(t),t.flags|=1,Ys(e,t,n,i),t.child)}function sc(e,t,n,r,i,a){return Ui(t),t.updateQueue=null,n=ho(t,r,n,i),mo(e),r=_o(),e!==null&&!Js?(vo(e,t,a),bc(e,t,a)):(Ci&&r&&vi(t),t.flags|=1,Ys(e,t,n,a),t.child)}function cc(e,t,n,r,i){if(Ui(t),t.stateNode===null){var a=Jr,o=n.contextType;typeof o==`object`&&o&&(a=Wi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ps,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ka(t),o=n.contextType,a.context=typeof o==`object`&&o?Wi(o):Jr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ns(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ps.enqueueReplaceState(a,a.state,null),La(t,r,a,i),Ia(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ls(n,s);a.props=c;var l=a.context,u=n.contextType;o=Jr,typeof u==`object`&&u&&(o=Wi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Is(t,a,r,o),Oa=!1;var f=t.memoizedState;a.state=f,La(t,r,a,i),Ia(),l=t.memoizedState,s||f!==l||Oa?(typeof d==`function`&&(Ns(t,n,d,r),l=t.memoizedState),(c=Oa||Fs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Aa(e,t),o=t.memoizedProps,u=Ls(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Jr,typeof l==`object`&&l&&(c=Wi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Is(t,a,r,c),Oa=!1,f=t.memoizedState,a.state=f,La(t,r,a,i),Ia();var p=t.memoizedState;o!==d||f!==p||Oa||e!==null&&e.dependencies!==null&&Hi(e.dependencies)?(typeof s==`function`&&(Ns(t,n,s,r),p=t.memoizedState),(u=Oa||Fs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Hi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,ac(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ea(t,e.child,null,i),t.child=Ea(t,null,n,i)):Ys(e,t,n,i),t.memoizedState=a.state,e=t.child):e=bc(e,t,i),e}function lc(e,t,n,r){return ji(),t.flags|=256,Ys(e,t,n,r),t.child}var uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function dc(e){return{baseLanes:e,cachePool:la()}}function fc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function pc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(Za.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ci){if(a?Ka(t):Ya(t),(e=Si)?(e=af(e,Ti),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi===null?null:{id:mi,overflow:hi},retryLane:536870912,hydrationErrors:null},n=ri(e),n.return=t,t.child=n,xi=t,Si=null)):e=null,e===null)throw Di(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Ya(t),a=t.mode,c=hc({mode:`hidden`,children:c},a),r=ti(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=dc(n),r.childLanes=fc(e,s,n),t.memoizedState=uc,ec(null,r)):(Ka(t),mc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ka(t),t.flags&=-257,t=gc(e,t,n)):t.memoizedState===null?(Ya(t),c=r.fallback,a=t.mode,r=hc({mode:`visible`,children:r.children},a),c=ti(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ea(t,e.child,null,n),r=t.child,r.memoizedState=dc(n),r.childLanes=fc(e,s,n),t.memoizedState=uc,t=ec(null,r)):(Ya(t),t.child=e.child,t.flags|=128,t=null);else if(Ka(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ni({value:r,source:null,stack:null}),t=gc(e,t,n)}else if(Js||Vi(e,t,n,!1),s=(n&e.childLanes)!==0,Js||s){if(s=Nl,s!==null&&(r=He(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Gr(e,r),pu(s,e,r),qs;of(c)||Tu(),t=gc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Si=lf(c.nextSibling),xi=t,Ci=!0,wi=null,Ti=!1,e!==null&&bi(t,e),t=mc(t,r.children),t.flags|=4096);return t}return a?(Ya(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=Qr(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ti(c,a,n,null),c.flags|=2):c=Qr(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,ec(null,r),r=t.child,c=e.child.memoizedState,c===null?c=dc(n):(a=c.cachePool,a===null?a=la():(l=Xi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=fc(e,s,n),t.memoizedState=uc,ec(e.child,r)):(Ka(t),n=e.child,e=n.sibling,n=Qr(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function mc(e,t){return t=hc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function hc(e,t){return e=Xr(22,e,null,t),e.lanes=0,e}function gc(e,t,n){return Ea(t,e.child,null,n),e=mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _c(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zi(e.return,t,n)}function vc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function yc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Za.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,U(Za,o),Ys(e,t,r,n),r=Ci?ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_c(e,n,t);else if(e.tag===19)_c(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Qa(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Qa(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vc(t,!0,n,null,a,r);break;case`together`:vc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function bc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Vi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Qr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Hi(e))):!0}function Sc(e,t,n){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),Li(t,Xi,e.memoizedState.cache),ji();break;case 27:case 5:J(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:Li(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ka(t),e=bc(e,t,n),e===null?null:e.sibling):pc(e,t,n):(Ka(t),t.flags|=128,null);Ka(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Vi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return yc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(Za,Za.current),r)break;return null;case 22:return t.lanes=0,$s(e,t,n,t.pendingProps);case 24:Li(t,Xi,e.memoizedState.cache)}return bc(e,t,n)}function Cc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Js=!0;else{if(!xc(e,n)&&!(t.flags&128))return Js=!1,Sc(e,t,n);Js=!!(e.flags&131072)}else Js=!1,Ci&&t.flags&1048576&&_i(t,ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ga(t.elementType),t.type=e,typeof e==`function`)Zr(e)?(r=Ls(e,r),t.tag=1,t=cc(null,t,e,r,n)):(t.tag=0,t=oc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=Xs(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=Zs(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return oc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ls(r,t.pendingProps),cc(e,t,r,a,n);case 3:a:{if(te(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Aa(e,t),La(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Li(t,Xi,r),r!==o.cache&&Bi(t,[Xi],n,!0),Ia(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=lc(e,t,r,n);break a}else if(r!==a){a=oi(Error(i(424)),t),Ni(a),t=lc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Si=lf(e.firstChild),xi=t,Ci=!0,wi=null,Ti=!0,n=Da(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ji(),r===a){t=bc(e,t,n);break a}Ys(e,t,r,n)}t=t.child}return t;case 26:return ac(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ci||(n=t.type,e=t.pendingProps,r=Vd(K.current).createElement(n),r[Je]=t,r[Ye]=e,Fd(r,n,e),st(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return J(t),e===null&&Ci&&(r=t.stateNode=pf(t.type,t.pendingProps,K.current),xi=t,Ti=!0,a=Si,Qd(t.type)?(uf=a,Si=lf(r.firstChild)):Si=a),Ys(e,t,t.pendingProps.children,n),ac(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ci&&((a=r=Si)&&(r=nf(r,t.type,t.pendingProps,Ti),r===null?a=!1:(t.stateNode=r,xi=t,Si=lf(r.firstChild),Ti=!1,a=!0)),a||Di(t)),J(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(a,o)?r=null:s!==null&&Wd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=po(e,t,go,null,null,n),$f._currentValue=a),ac(e,t),Ys(e,t,r,n),t.child;case 6:return e===null&&Ci&&((e=n=Si)&&(n=rf(n,t.pendingProps,Ti),n===null?e=!1:(t.stateNode=n,xi=t,Si=null,e=!0)),e||Di(t)),null;case 13:return pc(e,t,n);case 4:return te(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ea(t,null,r,n):Ys(e,t,r,n),t.child;case 11:return Xs(e,t,t.type,t.pendingProps,n);case 7:return Ys(e,t,t.pendingProps,n),t.child;case 8:return Ys(e,t,t.pendingProps.children,n),t.child;case 12:return Ys(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Li(t,t.type,r.value),Ys(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ui(t),a=Wi(a),r=r(a),t.flags|=1,Ys(e,t,r,n),t.child;case 14:return Zs(e,t,t.type,t.pendingProps,n);case 15:return Qs(e,t,t.type,t.pendingProps,n);case 19:return yc(e,t,n);case 31:return ic(e,t,n);case 22:return $s(e,t,n,t.pendingProps);case 24:return Ui(t),r=Wi(Xi),e===null?(a=sa(),a===null&&(a=Nl,o=Zi(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ka(t),Li(t,Xi,a)):((e.lanes&n)!==0&&(Aa(e,t),La(t,null,null,n),Ia()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Li(t,Xi,r),r!==a.cache&&Bi(t,[Xi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Li(t,Xi,r))),Ys(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function wc(e){e.flags|=4}function Tc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Su())e.flags|=8192;else throw _a=pa,da}else e.flags&=-16777217}function Ec(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(Su())e.flags|=8192;else throw _a=pa,da}function Dc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ie(),e.lanes|=t,ql|=t)}function Oc(e,t){if(!Ci)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function kc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ac(e,t,n){var r=t.pendingProps;switch(yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kc(t),null;case 1:return kc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ri(Xi),q(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ai(t)?wc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mi())),kc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(wc(t),o===null?(kc(t),Tc(t,a,null,r,n)):(kc(t),Ec(t,o))):o?o===e.memoizedState?(kc(t),t.flags&=-16777217):(wc(t),kc(t),Ec(t,o)):(e=e.memoizedProps,e!==r&&wc(t),kc(t),Tc(t,a,e,r,n)),null;case 27:if(Y(t),n=K.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return kc(t),null}e=W.current,Ai(t)?Oi(t,e):(e=pf(a,r,n),t.stateNode=e,wc(t))}return kc(t),null;case 5:if(Y(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return kc(t),null}if(o=W.current,Ai(t))Oi(t,o);else{var s=Vd(K.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Je]=t,o[Ye]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&wc(t)}}return kc(t),Tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=K.current,Ai(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=xi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Je]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Di(t,!0)}else e=Vd(e).createTextNode(r),e[Je]=t,t.stateNode=e}return kc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ai(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Je]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),e=!1}else n=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xa(t),t):(Xa(t),null);if(t.flags&128)throw Error(i(558))}return kc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ai(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Je]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),a=!1}else a=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Xa(t),t):(Xa(t),null)}return Xa(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Dc(t,t.updateQueue),kc(t),null);case 4:return q(),e===null&&Sd(t.stateNode.containerInfo),kc(t),null;case 10:return Ri(t.type),kc(t),null;case 19:if(H(Za),r=t.memoizedState,r===null)return kc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Oc(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Qa(e),o!==null){for(t.flags|=128,Oc(r,!1),e=o.updateQueue,t.updateQueue=e,Dc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)$r(n,e),n=n.sibling;return U(Za,Za.current&1|2),Ci&&gi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&pe()>$l&&(t.flags|=128,a=!0,Oc(r,!1),t.lanes=4194304)}else{if(!a)if(e=Qa(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Dc(t,e),Oc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ci)return kc(t),null}else 2*pe()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,Oc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(kc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=pe(),e.sibling=null,n=Za.current,U(Za,a?n&1|2:n&1),Ci&&gi(t,r.treeForkCount),e);case 22:case 23:return Xa(t),Ua(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(kc(t),t.subtreeFlags&6&&(t.flags|=8192)):kc(t),n=t.updateQueue,n!==null&&Dc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&H(oa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ri(Xi),kc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function jc(e,t){switch(yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ri(Xi),q(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Y(t),null;case 31:if(t.memoizedState!==null){if(Xa(t),t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Za),null;case 4:return q(),null;case 10:return Ri(t.type),null;case 22:case 23:return Xa(t),Ua(),e!==null&&H(oa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ri(Xi),null;case 25:return null;default:return null}}function Mc(e,t){switch(yi(t),t.tag){case 3:Ri(Xi),q();break;case 26:case 27:case 5:Y(t);break;case 4:q();break;case 31:t.memoizedState!==null&&Xa(t);break;case 13:Xa(t);break;case 19:H(Za);break;case 10:Ri(t.type);break;case 22:case 23:Xa(t),Ua(),e!==null&&H(oa);break;case 24:Ri(Xi)}}function Nc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Uu(t,t.return,e)}}function Pc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Fc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ra(t,n)}catch(t){Uu(e,e.return,t)}}}function Ic(e,t,n){n.props=Ls(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function Lc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function Rc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Uu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Uu(e,t,n)}else n.current=null}function zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Uu(e,e.return,t)}}function Bc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[Ye]=t}catch(t){Uu(e,e.return,t)}}function Vc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Hc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Vc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vt));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function Wc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Wc(e,t,n),e=e.sibling;e!==null;)Wc(e,t,n),e=e.sibling}function Gc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[Je]=e,t[Ye]=n}catch(t){Uu(e,e.return,t)}}var Kc=!1,qc=!1,Jc=!1,Yc=typeof WeakSet==`function`?WeakSet:Set,Xc=null;function Zc(e,t){if(e=e.containerInfo,zd=cp,e=hr(e),gr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,Xc=t;Xc!==null;)if(t=Xc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Xc=e;else for(;Xc!==null;){switch(t=Xc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ls(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Xc=e;break}Xc=t.return}}function Qc(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:pl(e,n),r&4&&Nc(5,n);break;case 1:if(pl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=Ls(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}r&64&&Fc(n),r&512&&Lc(n,n.return);break;case 3:if(pl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ra(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&Gc(n);case 26:case 5:pl(e,n),t===null&&r&4&&zc(n),r&512&&Lc(n,n.return);break;case 12:pl(e,n);break;case 31:pl(e,n),r&4&&il(e,n);break;case 13:pl(e,n),r&4&&al(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||Kc,!r){t=t!==null&&t.memoizedState!==null||qc,i=Kc;var a=qc;Kc=r,(qc=t)&&!a?hl(e,n,(n.subtreeFlags&8772)!=0):pl(e,n),Kc=i,qc=a}break;case 30:break;default:pl(e,n)}}function $c(e){var t=e.alternate;t!==null&&(e.alternate=null,$c(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&nt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var el=null,tl=!1;function nl(e,t,n){for(n=n.child;n!==null;)rl(e,t,n),n=n.sibling}function rl(e,t,n){if(Ce&&typeof Ce.onCommitFiberUnmount==`function`)try{Ce.onCommitFiberUnmount(Se,n)}catch{}switch(n.tag){case 26:qc||Rc(n,t),nl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:qc||Rc(n,t);var r=el,i=tl;Qd(n.type)&&(el=n.stateNode,tl=!1),nl(e,t,n),mf(n.stateNode),el=r,tl=i;break;case 5:qc||Rc(n,t);case 6:if(r=el,i=tl,el=null,nl(e,t,n),el=r,tl=i,el!==null)if(tl)try{(el.nodeType===9?el.body:el.nodeName===`HTML`?el.ownerDocument.body:el).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{el.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}break;case 18:el!==null&&(tl?(e=el,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(el,n.stateNode));break;case 4:r=el,i=tl,el=n.stateNode.containerInfo,tl=!0,nl(e,t,n),el=r,tl=i;break;case 0:case 11:case 14:case 15:Pc(2,n,t),qc||Pc(4,n,t),nl(e,t,n);break;case 1:qc||(Rc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Ic(n,t,r)),nl(e,t,n);break;case 21:nl(e,t,n);break;case 22:qc=(r=qc)||n.memoizedState!==null,nl(e,t,n),qc=r;break;default:nl(e,t,n)}}function il(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Uu(t,t.return,e)}}}function al(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Uu(t,t.return,e)}}function ol(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Yc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Yc),t;default:throw Error(i(435,e.tag))}}function sl(e,t){var n=ol(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){el=c.stateNode,tl=!1;break a}break;case 5:el=c.stateNode,tl=!1;break a;case 3:case 4:el=c.stateNode.containerInfo,tl=!0;break a}c=c.return}if(el===null)throw Error(i(160));rl(o,s,a),el=null,tl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ul(t,e),t=t.sibling}var ll=null;function ul(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:cl(t,e),dl(e),r&4&&(Pc(3,e,e.return),Nc(3,e),Pc(5,e,e.return));break;case 1:cl(t,e),dl(e),r&512&&(qc||n===null||Rc(n,n.return)),r&64&&Kc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=ll;if(cl(t,e),dl(e),r&512&&(qc||n===null||Rc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[tt]||o[Je]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Fd(o,r,n),o[Je]=e,st(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Je]=e,st(o),r=o}e.stateNode=r}else Uf(a,e.type,e.stateNode);else e.stateNode=Lf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Bc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(a,e.type,e.stateNode):Lf(a,r,e.memoizedProps))}break;case 27:cl(t,e),dl(e),r&512&&(qc||n===null||Rc(n,n.return)),n!==null&&r&4&&Bc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(cl(t,e),dl(e),r&512&&(qc||n===null||Rc(n,n.return)),e.flags&32){a=e.stateNode;try{Nt(a,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Bc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Jc=!0);break;case 6:if(cl(t,e),dl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Vf=null,a=ll,ll=_f(t.containerInfo),cl(t,e),ll=a,dl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Uu(e,e.return,t)}Jc&&(Jc=!1,fl(e));break;case 4:r=ll,ll=_f(e.stateNode.containerInfo),cl(t,e),dl(e),ll=r;break;case 12:cl(t,e),dl(e);break;case 31:cl(t,e),dl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,sl(e,r)));break;case 13:cl(t,e),dl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=pe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,sl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Kc,d=qc;if(Kc=u||a,qc=d||l,cl(t,e),qc=d,Kc=u,dl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Kc||qc||ml(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ef(m,!0):ef(l.stateNode,!1)}catch(e){Uu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,sl(e,n))));break;case 19:cl(t,e),dl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,sl(e,r)));break;case 30:break;case 21:break;default:cl(t,e),dl(e)}}function dl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Vc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Wc(e,Hc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Nt(o,``),n.flags&=-33),Wc(e,Hc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Uc(e,Hc(e),s);break;default:throw Error(i(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Qc(e,t.alternate,t),t=t.sibling}function ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pc(4,t,t.return),ml(t);break;case 1:Rc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Ic(t,t.return,n),ml(t);break;case 27:mf(t.stateNode);case 26:case 5:Rc(t,t.return),ml(t);break;case 22:t.memoizedState===null&&ml(t);break;case 30:ml(t);break;default:ml(t)}e=e.sibling}}function hl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:hl(i,a,n),Nc(4,a);break;case 1:if(hl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Q(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&Fc(a),Lc(a,a.return);break;case 27:Gc(a);case 26:case 5:hl(i,a,n),n&&r===null&&o&4&&zc(a),Lc(a,a.return);break;case 12:hl(i,a,n);break;case 31:hl(i,a,n),n&&o&4&&il(i,a);break;case 13:hl(i,a,n),n&&o&4&&al(i,a);break;case 22:a.memoizedState===null&&hl(i,a,n),Lc(a,a.return);break;case 30:break;default:hl(i,a,n)}t=t.sibling}}function gl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Qi(n))}function _l(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qi(e))}function vl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yl(e,t,n,r),t=t.sibling}function yl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:vl(e,t,n,r),i&2048&&Nc(9,t);break;case 1:vl(e,t,n,r);break;case 3:vl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qi(e)));break;case 12:if(i&2048){vl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Uu(t,t.return,e)}}else vl(e,t,n,r);break;case 31:vl(e,t,n,r);break;case 13:vl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?vl(e,t,n,r):(a._visibility|=2,bl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?vl(e,t,n,r):xl(e,t),i&2048&&gl(o,t);break;case 24:vl(e,t,n,r),i&2048&&_l(t.alternate,t);break;default:vl(e,t,n,r)}}function bl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:bl(a,o,s,c,i),Nc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,bl(a,o,s,c,i)):u._visibility&2?bl(a,o,s,c,i):xl(a,o),i&&l&2048&&gl(o.alternate,o);break;case 24:bl(a,o,s,c,i),i&&l&2048&&_l(o.alternate,o);break;default:bl(a,o,s,c,i)}t=t.sibling}}function xl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:xl(n,r),i&2048&&gl(r.alternate,r);break;case 24:xl(n,r),i&2048&&_l(r.alternate,r);break;default:xl(n,r)}t=t.sibling}}var Sl=8192;function Cl(e,t,n){if(e.subtreeFlags&Sl)for(e=e.child;e!==null;)wl(e,t,n),e=e.sibling}function wl(e,t,n){switch(e.tag){case 26:Cl(e,t,n),e.flags&Sl&&e.memoizedState!==null&&Kf(n,ll,e.memoizedState,e.memoizedProps);break;case 5:Cl(e,t,n);break;case 3:case 4:var r=ll;ll=_f(e.stateNode.containerInfo),Cl(e,t,n),ll=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Sl,Sl=16777216,Cl(e,t,n),Sl=r):Cl(e,t,n));break;default:Cl(e,t,n)}}function Tl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function El(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Xc=r,kl(r,e)}Tl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dl(e),e=e.sibling}function Dl(e){switch(e.tag){case 0:case 11:case 15:El(e),e.flags&2048&&Pc(9,e,e.return);break;case 3:El(e);break;case 12:El(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ol(e)):El(e);break;default:El(e)}}function Ol(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Xc=r,kl(r,e)}Tl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pc(8,t,t.return),Ol(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ol(t));break;default:Ol(t)}e=e.sibling}}function kl(e,t){for(;Xc!==null;){var n=Xc;switch(n.tag){case 0:case 11:case 15:Pc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Qi(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Xc=r;else a:for(n=e;Xc!==null;){r=Xc;var i=r.sibling,a=r.return;if($c(r),r===n){Xc=null;break a}if(i!==null){i.return=a,Xc=i;break a}Xc=a}}}var Al={getCacheForType:function(e){var t=Wi(Xi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Wi(Xi).controller.signal}},jl=typeof WeakMap==`function`?WeakMap:Map,Ml=0,Nl=null,Pl=null,Fl=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return Ml&2&&Fl!==0?Fl&-Fl:I.T===null?Ge():ud()}function fu(){if(Kl===0)if(!(Fl&536870912)||Ci){var e=Ae;Ae<<=1,!(Ae&3932160)&&(Ae=262144),Kl=e}else Kl=536870912;return e=Wa.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Nl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Fl,Kl,!1)),Re(e,n),(!(Ml&2)||e!==Nl)&&(e===Nl&&(!(Ml&2)&&(Wl|=n),Hl===4&&_u(e,Fl,Kl,!1)),nd(e))}function mu(e,t,n){if(Ml&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Pe(e,t),a=r?Ou(e,t):Eu(e,t,!0),o=r;do{if(a===0){zl&&!r&&_u(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!gu(n)){a=Eu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,s).flags|=256),s=Eu(c,s,!1),s!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=o,Wl|=o,a=4;break a}o=Yl,Yl=a,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){bu(e,0),_u(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Zl+300-pe(),10<a)){if(_u(r,t,Kl,!Rl),Ne(r,0,!0)!==0)break a;au=t,r.timeoutHandle=qd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,`Throttled`,-0,0),a);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,null,-0,0)}}break}while(1);nd(e)}function hu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vt},wl(t,a,d);var m=(a&62914560)===a?Zl-pe():(a&4194048)===a?Ql-pe():0;if(m=Jf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!ur(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Te(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Be(e,n,t)}function vu(){return Ml&6?!0:(rd(0,!1),!1)}function yu(){if(Pl!==null){if(Il===0)var e=Pl.return;else e=Pl,Ii=Fi=null,yo(e),ba=null,xa=0,e=Pl;for(;e!==null;)Mc(e.alternate,e),e=e.return;Pl=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Nl=e,Pl=n=Qr(e.current,null),Fl=t,Il=0,Ll=null,Rl=!1,zl=Pe(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Te(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,Hr(),n}function xu(e,t){eo=null,I.H=ks,t===ua||t===fa?(t=va(),Il=3):t===da?(t=va(),Il=4):Il=t===qs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Pl===null&&(Hl=1,Vs(e,oi(t,e.current)))}function Su(){var e=Wa.current;return e===null?!0:(Fl&4194048)===Fl?Ga===null:(Fl&62914560)===Fl||Fl&536870912?e===Ga:!1}function Cu(){var e=I.H;return I.H=ks,e===null?ks:e}function wu(){var e=I.A;return I.A=Al,e}function Tu(){Hl=4,Rl||(Fl&4194048)!==Fl&&Wa.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Nl===null||_u(Nl,Fl,Kl,!1)}function Eu(e,t,n){var r=Ml;Ml|=2;var i=Cu(),a=wu();(Nl!==e||Fl!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Pl!==null){var s=Pl,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:Wa.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ii=Fi=null,Ml=r,I.H=i,I.A=a,Pl===null&&(Nl=null,Fl=0,Hr()),o}function Du(){for(;Pl!==null;)Au(Pl)}function Ou(e,t){var n=Ml;Ml|=2;var r=Cu(),a=wu();Nl!==e||Fl!==t?(eu=null,$l=pe()+500,bu(e,t)):zl=Pe(e,t);a:do try{if(Il!==0&&Pl!==null){t=Pl;var o=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,o,1);break;case 2:case 9:if(ma(o)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Nl!==e||(Il=7),nd(e)},o.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:ma(o)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,o,7));break;case 5:var s=null;switch(Pl.tag){case 26:s=Pl.memoizedState;case 5:case 27:var c=Pl;if(s?Gf(s):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Pl=l;else{var u=c.return;u===null?Pl=null:(Pl=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,o,5);break;case 6:Il=0,Ll=null,Mu(e,t,o,6);break;case 8:yu(),Hl=6;break a;default:throw Error(i(462))}}ku();break}catch(t){xu(e,t)}while(1);return Ii=Fi=null,I.H=r,I.A=a,Ml=n,Pl===null?(Nl=null,Fl=0,Hr(),Hl):0}function ku(){for(;Pl!==null&&!de();)Au(Pl)}function Au(e){var t=Cc(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Pl=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=sc(n,t,t.pendingProps,t.type,void 0,Fl);break;case 11:t=sc(n,t,t.pendingProps,t.type.render,t.ref,Fl);break;case 5:yo(t);default:Mc(n,t),t=Pl=$r(t,Vl),t=Cc(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Pl=t}function Mu(e,t,n,r){Ii=Fi=null,yo(t),ba=null,xa=0;var i=t.return;try{if(Ks(e,i,t,n,Fl)){Hl=1,Vs(e,oi(n,e.current)),Pl=null;return}}catch(t){if(i!==null)throw Pl=i,t;Hl=1,Vs(e,oi(n,e.current)),Pl=null;return}t.flags&32768?(Ci||r===1?e=!0:zl||Fl&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Wa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=Ac(t.alternate,t,Vl);if(n!==null){Pl=n;return}if(t=t.sibling,t!==null){Pl=t;return}Pl=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=jc(e.alternate,e);if(n!==null){n.flags&=32767,Pl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Pl=e;return}Pl=e=n}while(e!==null);Hl=6,Pl=null}function Fu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(Ml&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Vr,ze(e,n,o,s,c,l),e===Nl&&(Pl=Nl=null,Fl=0),iu=t,ru=e,au=n,ou=o,su=a,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(_e,function(){return Vu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=Ml,Ml|=4;try{Zc(e,t,n)}finally{Ml=s,L.p=a,I.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Ml;Ml|=4;try{ul(t,e);var a=Bd,o=hr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&mr(s.ownerDocument.documentElement,s)){if(c!==null&&gr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=pr(s,h),v=pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!zd,Bd=zd=null}finally{Ml=i,L.p=r,I.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Ml;Ml|=4;try{Qc(e,t.alternate,t)}finally{Ml=i,L.p=r,I.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,fe();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),We(n),t=t.stateNode,Ce&&typeof Ce.onCommitFiberRoot==`function`)try{Ce.onCommitFiberRoot(Se,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qi(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=We(au),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,Ml&6)throw Error(i(331));var c=Ml;if(Ml|=4,Dl(o.current),yl(o,o.current,s,n),Ml=c,rd(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot==`function`)try{Ce.onPostCommitFiberRoot(Se,o)}catch{}return!0}finally{L.p=a,I.T=r,zu(e,t)}}function Hu(e,t,n){t=oi(n,t),t=Us(e.stateNode,t,2),e=Ma(e,t,2),e!==null&&(Re(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=oi(n,e),n=Ws(2),r=Ma(t,n,2),r!==null&&(Gs(n,r,t,e),Re(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Nl===e&&(Fl&n)===n&&(Hl===4||Hl===3&&(Fl&62914560)===Fl&&300>pe()-Zl?!(Ml&2)&&bu(e,0):Gl|=n,ql===Fl&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=Ie()),e=Gr(e,t),e!==null&&(Re(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return le(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Te(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Fl,a=Ne(r,r===Nl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Pe(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Kd()&&(e=td);for(var t=pe(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Te(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Fe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Nl,n=Fl,n=Ne(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ue(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Pe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ue(r),We(n)){case 2:case 8:n=ge;break;case 32:n=_e;break;case 268435456:n=ye;break;default:n=_e}return r=sd.bind(null,e),n=le(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ue(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Fl;return r=Ne(e,e===Nl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,pe()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Xd(function(){Ml&6?le(he,id):ad()})}function ud(){if(td===0){var e=ta;e===0&&(e=ke,ke<<=1,!(ke&261888)&&(ke=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Bt(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[Ye]||null).action),o=r.submitter;o&&(t=(t=o[Ye]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);hs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),hs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Ir.length;md++){var hd=Ir[md];Lr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Lr(Or,`onAnimationEnd`),Lr(kr,`onAnimationIteration`),Lr(Ar,`onAnimationStart`),Lr(`dblclick`,`onDoubleClick`),Lr(`focusin`,`onFocus`),Lr(`focusout`,`onBlur`),Lr(jr,`onTransitionRun`),Lr(Mr,`onTransitionStart`),Lr(Nr,`onTransitionCancel`),Lr(Pr,`onTransitionEnd`),dt(`onMouseEnter`,[`mouseout`,`mouseover`]),dt(`onMouseLeave`,[`mouseout`,`mouseover`]),dt(`onPointerEnter`,[`pointerout`,`pointerover`]),dt(`onPointerLeave`,[`pointerout`,`pointerover`]),ut(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ut(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ut(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ut(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ut(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ut(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`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(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Rr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Rr(e)}i.currentTarget=null,a=c}}}}function yd(e,t){var n=t[Ze];n===void 0&&(n=t[Ze]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,ct.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!Zt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=rt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Jt(function(){var r=a,i=Ut(n),s=[];a:{var c=Fr.get(e);if(c!==void 0){var l=ln,u=e;switch(e){case`keypress`:if(rn(n)===0)break a;case`keydown`:case`keyup`:l=Dn;break;case`focusin`:u=`focus`,l=vn;break;case`focusout`:u=`blur`,l=vn;break;case`beforeblur`:case`afterblur`:l=vn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=_n;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=kn;break;case Or:case kr:case Ar:l=yn;break;case Pr:l=An;break;case`scroll`:case`scrollend`:l=dn;break;case`wheel`:l=jn;break;case`copy`:case`cut`:case`paste`:l=bn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=On;break;case`toggle`:case`beforetoggle`:l=Mn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Yt(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Ht&&(u=n.relatedTarget||n.fromElement)&&(rt(u)||u[Xe]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?rt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=On,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:at(l),h=u==null?c:at(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,rt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(s,c,l,d,!1),u!==null&&f!==null&&Od(s,f,u,d,!0)}}a:{if(c=r?at(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=Qn;else if(Kn(c))if($n)v=cr;else{v=or;var y=ar}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Lt(r.elementType)&&(v=Qn):v=sr;if(v&&=v(e,r)){qn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&kt(c,`number`,c.value)}switch(y=r?at(r):window,e){case`focusin`:(Kn(y)||y.contentEditable===`true`)&&(vr=y,yr=r,br=null);break;case`focusout`:br=yr=vr=null;break;case`mousedown`:xr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:xr=!1,Sr(s,n,i);break;case`selectionchange`:if(_r)break;case`keydown`:case`keyup`:Sr(s,n,i)}var b;if(Pn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Hn?Bn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Ln&&n.locale!==`ko`&&(Hn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Hn&&(b=nn()):($t=i,en=`value`in $t?$t.value:$t.textContent,Hn=!0)),y=Ed(r,x),0<y.length&&(x=new xn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Vn(n),b!==null&&(x.data=b)))),(b=In?Un(e,n):Wn(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Yt(e,n),i!=null&&r.unshift(Td(e,i,a)),i=Yt(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Yt(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=Yt(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
|
||
`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function Nd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Nt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Nt(e,``+r);break;case`className`:_t(e,`class`,r);break;case`tabIndex`:_t(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:_t(e,n,r);break;case`style`:It(e,r,o);break;case`data`:if(t!==`object`){_t(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Nd(e,t,`name`,a.name,a,null),Nd(e,t,`formEncType`,a.formEncType,a,null),Nd(e,t,`formMethod`,a.formMethod,a,null),Nd(e,t,`formTarget`,a.formTarget,a,null)):(Nd(e,t,`encType`,a.encType,a,null),Nd(e,t,`method`,a.method,a,null),Nd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`onScroll`:r!=null&&yd(`scroll`,e);break;case`onScrollEnd`:r!=null&&yd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Bt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:yd(`beforetoggle`,e),yd(`toggle`,e),gt(e,`popover`,r);break;case`xlinkActuate`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:gt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Rt.get(n)||n,gt(e,n,r))}}function Pd(e,t,n,r,a,o){switch(n){case`style`:It(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Nt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Nt(e,``+r);break;case`onScroll`:r!=null&&yd(`scroll`,e);break;case`onScrollEnd`:r!=null&&yd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!lt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[Ye]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):gt(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:yd(`error`,e),yd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Nd(e,t,o,s,n,null)}}a&&Nd(e,t,`srcSet`,n.srcSet,n,null),r&&Nd(e,t,`src`,n.src,n,null);return;case`input`:yd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Nd(e,t,r,d,n,null)}}Ot(e,o,c,l,u,s,a,!1);return;case`select`:for(a in yd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Nd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&At(e,!!r,n,!0):At(e,!!r,t,!1);return;case`textarea`:for(s in yd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Nd(e,t,s,c,n,null)}Mt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Nd(e,t,l,r,n,null)}return;case`dialog`:yd(`beforetoggle`,e),yd(`toggle`,e),yd(`cancel`,e),yd(`close`,e);break;case`iframe`:case`object`:yd(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)yd(gd[r],e);break;case`image`:yd(`error`,e),yd(`load`,e);break;case`details`:yd(`toggle`,e);break;case`embed`:case`source`:case`link`:yd(`error`,e),yd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Nd(e,t,u,r,n,null)}return;default:if(Lt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Nd(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Nd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Nd(e,t,p,m,r,f)}}Dt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Nd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Nd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?At(e,!!n,n?[]:``,!1):At(e,!!n,t,!0)):At(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Nd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Nd(e,t,s,a,r,o)}jt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Nd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Nd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Nd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Nd(e,t,u,p,r,m)}return;default:if(Lt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Nd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Nd(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e===Gd?!1:(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[tt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Pp(t)}function ef(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:tf(n),nt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[tt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nt(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=L.d;L.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=vu();return e||t}function bf(e){var t=it(e);t!==null&&t.tag===5&&t.type===`form`?_s(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Et(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),st(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Et(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Et(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Et(n.imageSizes)+`"]`)):i+=`[href="`+Et(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),st(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Et(r)+`"][href="`+Et(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),st(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=ot(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);st(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=ot(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=h({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),st(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=ot(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),st(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=K.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=ot(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=ot(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Et(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),st(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Et(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Et(n.href)+`"]`);if(r)return t.instance=r,st(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),st(r),Fd(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,st(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),st(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,st(a),a):(r=n,(a=hf.get(o))&&(r=h({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),st(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[tt]||a[Je]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,st(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),st(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Xr(3,null,null,t),e.current=a,a.stateNode=e,t=Zi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ka(a),e}function np(e){return e?(e=Jr,e):Jr}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=ja(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ma(e,r,t),n!==null&&(pu(n,e,t),Na(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=Gr(e,67108864);t!==null&&pu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=du();t=Ue(t);var n=Gr(e,t);n!==null&&pu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,dp(e,t,n,r)}finally{L.p=a,I.T=i}}function up(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,dp(e,t,n,r)}finally{L.p=a,I.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)wd(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=it(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Me(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Te(o);s.entanglements[1]|=c,o&=~c}nd(a),!(Ml&6)&&($l=pe()+500,rd(0,!1))}}break;case 31:case 13:s=Gr(a,2),s!==null&&pu(s,a,2),vu(),ap(a,2)}if(a=fp(r),a===null&&wd(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function fp(e){return e=Ut(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=rt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(me()){case he:return 2;case ge:return 8;case _e:case ve:return 32;case ye:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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`.split(` `);function wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=it(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=rt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ke(e.priority,function(){sp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ke(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ht=r,n.target.dispatchEvent(r),Ht=null}else return t=it(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=it(n);a!==null&&(e.splice(t,3),t-=3,hs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ye]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ye]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;rp(n,du(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),vu(),t[Xe]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ge();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.5`)throw Error(i(527,Rp,`19.2.5`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Se=Bp.inject(zp),Ce=Bp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Rs,s=zs,c=Bs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,o,s,c,Fp),e[Xe]=t.current,Sd(e),new Ip(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()}))(),_=`modulepreload`,v=function(e){return`/`+e},y={},b=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=v(t,n),t in y)return;y[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:_,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},x=c(f(),1),S=`popstate`;function C(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function w(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return k(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:A(t)}return M(t,n,null,e)}function T(e,t){if(e===!1||e==null)throw Error(t)}function E(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function D(){return Math.random().toString(36).substring(2,10)}function O(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function k(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?j(t):t,state:n,key:t&&t.key||r||D(),mask:i}}function A({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function j(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function M(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u()+1;let d=O(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u();let i=O(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return N(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(S,d),c=e,()=>{i.removeEventListener(S,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function N(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),T(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:A(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function P(e,t,n=`/`){return F(e,t,n,!1)}function F(e,t,n,r,i){let a=re((typeof t==`string`?j(t):t).pathname||`/`,n);if(a==null)return null;let o=i??L(e),s=null,c=X(a);for(let e=0;s==null&&e<o.length;++e)s=J(o[e],c,r);return s}function I(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function L(e){let t=R(e);return B(t),t}function R(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;T(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=fe([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(T(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),R(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:te(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of z(e.path))a(e,t,!0,n)}),t}function z(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=z(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function B(e){e.sort((e,t)=>e.score===t.score?q(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var V=/^:[\w-]+$/,H=3,U=2,W=1,G=10,K=-2,ee=e=>e===`*`;function te(e,t){let n=e.split(`/`),r=n.length;return n.some(ee)&&(r+=K),t&&(r+=U),n.filter(e=>!ee(e)).reduce((e,t)=>e+(V.test(t)?H:t===``?W:G),r)}function q(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function J(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=Y({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Y({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:fe([a,u.pathname]),pathnameBase:me(fe([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=fe([a,u.pathnameBase]))}return o}function Y(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ne(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ne(e,t=!1,n=!0){E(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function X(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function re(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ae(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?j(e):e,a;return n?(n=de(n),a=n.startsWith(`/`)?oe(n.substring(1),`/`):oe(n,t)):a=t,{pathname:a,search:he(r),hash:ge(i)}}function oe(e,t){let n=pe(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function se(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ce(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function le(e){let t=ce(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ue(e,t,n,r=!1){let i;typeof e==`string`?i=j(e):(i={...e},T(!i.pathname||!i.pathname.includes(`?`),se(`?`,`pathname`,`search`,i)),T(!i.pathname||!i.pathname.includes(`#`),se(`#`,`pathname`,`hash`,i)),T(!i.search||!i.search.includes(`#`),se(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ae(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var de=e=>e.replace(/\/\/+/g,`/`),fe=e=>de(e.join(`/`)),pe=e=>e.replace(/\/+$/,``),me=e=>pe(e).replace(/^\/*/,`/`),he=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,ge=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,_e=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ve(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ye(e){return fe(e.map(e=>e.route.path).filter(Boolean))||`/`}var be=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function xe(e,t){let n=e;if(typeof n!=`string`||!ie.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(be)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=re(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{E(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Se=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Se);var Ce=[`GET`,...Se];new Set(Ce);var we=x.createContext(null);we.displayName=`DataRouter`;var Te=x.createContext(null);Te.displayName=`DataRouterState`;var Ee=x.createContext(!1);function De(){return x.useContext(Ee)}var Oe=x.createContext({isTransitioning:!1});Oe.displayName=`ViewTransition`;var ke=x.createContext(new Map);ke.displayName=`Fetchers`;var Ae=x.createContext(null);Ae.displayName=`Await`;var je=x.createContext(null);je.displayName=`Navigation`;var Me=x.createContext(null);Me.displayName=`Location`;var Ne=x.createContext({outlet:null,matches:[],isDataRoute:!1});Ne.displayName=`Route`;var Pe=x.createContext(null);Pe.displayName=`RouteError`;var Fe=`REACT_ROUTER_ERROR`,Ie=`REDIRECT`,Le=`ROUTE_ERROR_RESPONSE`;function Re(e){if(e.startsWith(`${Fe}:${Ie}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ze(e){if(e.startsWith(`${Fe}:${Le}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new _e(t.status,t.statusText,t.data)}catch{}}function Be(e,{relative:t}={}){T(Ve(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=x.useContext(je),{hash:i,pathname:a,search:o}=Xe(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:fe([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Ve(){return x.useContext(Me)!=null}function He(){return T(Ve(),`useLocation() may be used only in the context of a <Router> component.`),x.useContext(Me).location}var Ue=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function We(e){x.useContext(je).static||x.useLayoutEffect(e)}function Ge(){let{isDataRoute:e}=x.useContext(Ne);return e?ht():Ke()}function Ke(){T(Ve(),`useNavigate() may be used only in the context of a <Router> component.`);let e=x.useContext(we),{basename:t,navigator:n}=x.useContext(je),{matches:r}=x.useContext(Ne),{pathname:i}=He(),a=JSON.stringify(le(r)),o=x.useRef(!1);return We(()=>{o.current=!0}),x.useCallback((r,s={})=>{if(E(o.current,Ue),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=ue(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:fe([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var qe=x.createContext(null);function Je(e){let t=x.useContext(Ne).outlet;return x.useMemo(()=>t&&x.createElement(qe.Provider,{value:e},t),[t,e])}function Ye(){let{matches:e}=x.useContext(Ne);return e[e.length-1]?.params??{}}function Xe(e,{relative:t}={}){let{matches:n}=x.useContext(Ne),{pathname:r}=He(),i=JSON.stringify(le(n));return x.useMemo(()=>ue(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Ze(e,t){return Qe(e,t)}function Qe(e,t,n){T(Ve(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=x.useContext(je),{matches:i}=x.useContext(Ne),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;_t(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=He(),d;if(t){let e=typeof t==`string`?j(t):t;T(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):P(e,{pathname:p});E(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),E(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=at(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:fe([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:fe([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?x.createElement(Me.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function $e(){let e=mt(),t=ve(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=x.createElement(x.Fragment,null,x.createElement(`p`,null,`💿 Hey developer 👋`),x.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,x.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,x.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),x.createElement(x.Fragment,null,x.createElement(`h2`,null,`Unexpected Application Error!`),x.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?x.createElement(`pre`,{style:i},n):null,o)}var et=x.createElement($e,null),tt=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ze(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:x.createElement(Ne.Provider,{value:this.props.routeContext},x.createElement(Pe.Provider,{value:e,children:this.props.component}));return this.context?x.createElement(rt,{error:e},t):t}};tt.contextType=Ee;var nt=new WeakMap;function rt({children:e,error:t}){let{basename:n}=x.useContext(je);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Re(t.digest);if(e){let r=nt.get(t);if(r)throw r;let i=xe(e.location,n);if(be&&!nt.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw nt.set(t,n),n}return x.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function it({routeContext:e,match:t,children:n}){let r=x.useContext(we);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Ne.Provider,{value:e},n)}function at(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);T(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ye(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||et,o&&(s<0&&c===0?(_t(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?x.createElement(n.route.Component,null):n.route.element?n.route.element:e,x.createElement(it,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?x.createElement(tt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function ot(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function st(e){let t=x.useContext(we);return T(t,ot(e)),t}function ct(e){let t=x.useContext(Te);return T(t,ot(e)),t}function lt(e){let t=x.useContext(Ne);return T(t,ot(e)),t}function ut(e){let t=lt(e),n=t.matches[t.matches.length-1];return T(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function dt(){return ut(`useRouteId`)}function ft(){return ct(`useNavigation`).navigation}function pt(){let{matches:e,loaderData:t}=ct(`useMatches`);return x.useMemo(()=>e.map(e=>I(e,t)),[e,t])}function mt(){let e=x.useContext(Pe),t=ct(`useRouteError`),n=ut(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ht(){let{router:e}=st(`useNavigate`),t=ut(`useNavigate`),n=x.useRef(!1);return We(()=>{n.current=!0}),x.useCallback(async(r,i={})=>{E(n.current,Ue),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var gt={};function _t(e,t,n){!t&&!gt[e]&&(gt[e]=!0,E(!1,n))}x.memo(vt);function vt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Qe(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function yt({to:e,replace:t,state:n,relative:r}){T(Ve(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=x.useContext(je);E(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=x.useContext(Ne),{pathname:o}=He(),s=Ge(),c=ue(e,le(a),o,r===`path`),l=JSON.stringify(c);return x.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function bt(e){return Je(e.context)}function xt(e){T(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function St({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){T(!Ve(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=x.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=j(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=x.useMemo(()=>{let e=re(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return E(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:x.createElement(je.Provider,{value:c},x.createElement(Me.Provider,{children:t,value:h}))}function Ct({children:e,location:t}){return Ze(wt(e),t)}x.Component;function wt(e,t=[]){let n=[];return x.Children.forEach(e,(e,r)=>{if(!x.isValidElement(e))return;let i=[...t,r];if(e.type===x.Fragment){n.push.apply(n,wt(e.props.children,i));return}T(e.type===xt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),T(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=wt(e.props.children,i)),n.push(a)}),n}var Tt=`get`,Et=`application/x-www-form-urlencoded`;function Dt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ot(e){return Dt(e)&&e.tagName.toLowerCase()===`button`}function kt(e){return Dt(e)&&e.tagName.toLowerCase()===`form`}function At(e){return Dt(e)&&e.tagName.toLowerCase()===`input`}function jt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Mt(e,t){return e.button===0&&(!t||t===`_self`)&&!jt(e)}function Nt(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Pt(e,t){let n=Nt(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Ft=null;function It(){if(Ft===null)try{new FormData(document.createElement(`form`),0),Ft=!1}catch{Ft=!0}return Ft}var Lt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Rt(e){return e!=null&&!Lt.has(e)?(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Et}"`),null):e}function zt(e,t){let n,r,i,a,o;if(kt(e)){let o=e.getAttribute(`action`);r=o?re(o,t):null,n=e.getAttribute(`method`)||Tt,i=Rt(e.getAttribute(`enctype`))||Et,a=new FormData(e)}else if(Ot(e)||At(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?re(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Tt,i=Rt(e.getAttribute(`formenctype`))||Rt(o.getAttribute(`enctype`))||Et,a=new FormData(o,e),!It()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Dt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Tt,r=null,i=Et,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Bt={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Vt=/[&><\u2028\u2029]/g;function Ht(e){return e.replace(Vt,e=>Bt[e])}function Ut(e,t){if(e===!1||e==null)throw Error(t)}function Wt(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&re(i.pathname,t)===`/`?i.pathname=`${pe(t)}/_root.${r}`:i.pathname=`${pe(i.pathname)}.${r}`,i}async function Gt(e,t){if(e.id in t)return t[e.id];try{let n=await b(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Kt(e){return e!=null&&typeof e.page==`string`}function qt(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Jt(e,t,n){return $t((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Gt(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(qt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Yt(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Xt(e,t,{includeHydrateFallback:n}={}){return Zt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Zt(e){return[...new Set(e)]}function Qt(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function $t(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Kt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Qt(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function en(){let e=x.useContext(we);return Ut(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function tn(){let e=x.useContext(Te);return Ut(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var nn=x.createContext(void 0);nn.displayName=`FrameworkContext`;function rn(){let e=x.useContext(nn);return Ut(e,`You must render this element inside a <HydratedRouter> element`),e}function an(e,t){let n=x.useContext(nn),[r,i]=x.useState(!1),[a,o]=x.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=x.useRef(null);x.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),x.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:on(s,p),onBlur:on(c,m),onMouseEnter:on(l,p),onMouseLeave:on(u,m),onTouchStart:on(d,p)}]:[a,f,{}]:[!1,f,{}]}function on(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function sn({page:e,...t}){let n=De(),{router:r}=en(),i=x.useMemo(()=>P(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?x.createElement(ln,{page:e,matches:i,...t}):x.createElement(un,{page:e,matches:i,...t}):null}function cn(e){let{manifest:t,routeModules:n}=rn(),[r,i]=x.useState([]);return x.useEffect(()=>{let r=!1;return Jt(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function ln({page:e,matches:t,...n}){let r=He(),{future:i}=rn(),{basename:a}=en(),o=x.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Wt(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return x.createElement(x.Fragment,null,o.map(e=>x.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function un({page:e,matches:t,...n}){let r=He(),{future:i,manifest:a,routeModules:o}=rn(),{basename:s}=en(),{loaderData:c,matches:l}=tn(),u=x.useMemo(()=>Yt(e,t,l,a,r,`data`),[e,t,l,a,r]),d=x.useMemo(()=>Yt(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=x.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Wt(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=x.useMemo(()=>Xt(d,a),[d,a]),m=cn(d);return x.createElement(x.Fragment,null,f.map(e=>x.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>x.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>x.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function dn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}x.Component;var fn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{fn&&(window.__reactRouterVersion=`7.15.0`)}catch{}function pn({basename:e,children:t,useTransitions:n,window:r}){let i=x.useRef();i.current??=w({window:r,v5Compat:!0});let a=i.current,[o,s]=x.useState({action:a.action,location:a.location}),c=x.useCallback(e=>{n===!1?s(e):x.startTransition(()=>s(e))},[n]);return x.useLayoutEffect(()=>a.listen(c),[a,c]),x.createElement(St,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function mn({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=x.useState({action:n.action,location:n.location}),o=x.useCallback(e=>{r===!1?a(e):x.startTransition(()=>a(e))},[r]);return x.useLayoutEffect(()=>n.listen(o),[n,o]),x.createElement(St,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}mn.displayName=`unstable_HistoryRouter`;var hn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gn=x.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=x.useContext(je),v=typeof l==`string`&&hn.test(l),y=xe(l,h);l=y.to;let b=Be(l,{relative:r}),S=He(),C=null;if(o){let e=ue(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:fe([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=an(n,p),D=Cn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=x.createElement(`a`,{...p,...E,href:(k?C:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:dn(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?x.createElement(x.Fragment,null,A,x.createElement(sn,{page:b})):A});gn.displayName=`Link`;var _n=x.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Xe(a,{relative:c.relative}),d=He(),f=x.useContext(Te),{navigator:p,basename:m}=x.useContext(je),h=f!=null&&Pn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=re(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,S=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:b,isPending:S,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return x.createElement(gn,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});_n.displayName=`NavLink`;var vn=x.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Tt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=x.useContext(je),g=Dn(),_=On(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&hn.test(s);return x.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?x.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});vn.displayName=`Form`;function yn({getKey:e,storageKey:t,...n}){let r=x.useContext(nn),{basename:i}=x.useContext(je),a=He(),o=pt();Mn({getKey:e,storageKey:t});let s=x.useMemo(()=>{if(!r||!e)return null;let t=jn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return x.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Ht(JSON.stringify(t||kn))}, ${Ht(JSON.stringify(s))})`}})}yn.displayName=`ScrollRestoration`;function bn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xn(e){let t=x.useContext(we);return T(t,bn(e)),t}function Sn(e){let t=x.useContext(Te);return T(t,bn(e)),t}function Cn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Ge(),d=He(),f=Xe(e,{relative:o});return x.useCallback(p=>{if(Mt(p,t)){p.preventDefault();let t=n===void 0?A(d)===A(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?x.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function wn(e){E(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=x.useRef(Nt(e)),n=x.useRef(!1),r=He(),i=x.useMemo(()=>Pt(r.search,n.current?null:t.current),[r.search]),a=Ge();return[i,x.useCallback((e,t)=>{let r=Nt(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Tn=0,En=()=>`__${String(++Tn)}__`;function Dn(){let{router:e}=xn(`useSubmit`),{basename:t}=x.useContext(je),n=dt(),r=e.fetch,i=e.navigate;return x.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=zt(e,t);a.navigate===!1?await r(a.fetcherKey||En(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function On(e,{relative:t}={}){let{basename:n}=x.useContext(je),r=x.useContext(Ne);T(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Xe(e||`.`,{relative:t})},o=He();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:fe([n,a.pathname])),A(a)}var kn=`react-router-scroll-positions`,An={};function jn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:re(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Mn({getKey:e,storageKey:t}={}){let{router:n}=xn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Sn(`useScrollRestoration`),{basename:a}=x.useContext(je),o=He(),s=pt(),c=ft();x.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Nn(x.useCallback(()=>{if(c.state===`idle`){let t=jn(o,s,a,e);An[t]=window.scrollY}try{sessionStorage.setItem(t||kn,JSON.stringify(An))}catch(e){E(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(x.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||kn);e&&(An=JSON.parse(e))}catch{}},[t]),x.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(An,()=>window.scrollY,e?(t,n)=>jn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),x.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{E(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Nn(e,t){let{capture:n}=t||{};x.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Pn(e,{relative:t}={}){let n=x.useContext(Oe);T(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=xn(`useViewTransitionState`),i=Xe(e,{relative:t});if(!n.isTransitioning)return!1;let a=re(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=re(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Y(i.pathname,o)!=null||Y(i.pathname,a)!=null}var Fn=e=>{let t=x.useRef(e);return t.current=e,x.useCallback((...e)=>t.current?.(...e),[])};function In(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var Ln=In()?x.useLayoutEffect:x.useEffect,Rn=(e,t)=>{let n=x.useRef(!0);Ln(()=>e(n.current),t),Ln(()=>(n.current=!1,()=>{n.current=!0}),[])},zn=(e,t)=>{Rn(t=>{if(!t)return e()},t)},Bn=e=>{let t=x.useRef(!1),[n,r]=x.useState(e);x.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(e,n){n&&t.current||r(e)}return[n,i]};function Vn(e,t){let[n,r]=(0,x.useState)(e),i=t===void 0?n:t;return Rn(e=>{e||r(t)},[t]),[i,r]}function Hn(){return{...x}.useId}var Un=0;function Wn(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,`-`)}`}var Gn=Hn(),Kn=Gn?function(e){let t=Gn();return e||t}:function(e){let[t,n]=x.useState(`ssr-id`);return x.useEffect(()=>{let e=Un;Un+=1,n(`rc_unique_${e}`)},[]),e||t};function qn(e,t,n){let r=x.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Jn(e){let[,t]=x.useReducer(e=>e+1,0),n=x.useRef(e);return[Fn(()=>n.current),Fn(e=>{n.current=typeof e==`function`?e(n.current):e,t()})]}var Yn=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ForwardRef=l,e.isMemo=function(e){return m(e)===f}})),Xn=o(((e,t)=>{t.exports=Yn()})),Zn=Symbol.for(`react.element`),Qn=Symbol.for(`react.transitional.element`),$n=Symbol.for(`react.fragment`);function er(e){return e&&typeof e==`object`&&(e.$$typeof===Zn||e.$$typeof===Qn)&&e.type===$n}var tr=Xn(),nr=Number(x.version.split(`.`)[0]),rr=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},ir=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{rr(e,t)})}},ar=(...e)=>qn(()=>ir(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),or=e=>{if(!e)return!1;if(sr(e)&&nr>=19)return!0;let t=(0,tr.isMemo)(e)?e.type.type:e.type;return!(typeof t==`function`&&!t.prototype?.render&&t.$$typeof!==tr.ForwardRef||typeof e==`function`&&!e.prototype?.render&&e.$$typeof!==tr.ForwardRef)};function sr(e){return(0,x.isValidElement)(e)&&!er(e)}var cr=e=>sr(e)&&or(e),lr=e=>{if(e&&sr(e)){let t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null};function ur(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}var dr=`data-rc-order`,fr=`data-rc-priority`,pr=`rc-util-key`,mr=new Map;function hr({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:pr}function gr(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function _r(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function vr(e){return Array.from((mr.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function yr(e,t={}){if(!In())return null;let{csp:n,prepend:r,priority:i=0}=t,a=_r(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(dr,a),o&&i&&s.setAttribute(fr,`${i}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;let c=gr(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||vr(c)).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(dr))?i>=Number(e.getAttribute(fr)||0):!1);if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function br(e,t={}){let{styles:n}=t;return n||=vr(gr(t)),n.find(n=>n.getAttribute(hr(t))===e)}function xr(e,t={}){let n=br(e,t);n&&gr(t).removeChild(n)}function Sr(e,t){let n=mr.get(e);if(!n||!ur(document,n)){let n=yr(``,t),{parentNode:r}=n;mr.set(e,r),e.removeChild(n)}}function Cr(e,t,n={}){let r=gr(n),i=vr(r),a={...n,styles:i};Sr(r,a);let o=br(t,a);if(o)return a.csp?.nonce&&o.nonce!==a.csp?.nonce&&(o.nonce=a.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let s=yr(e,a);return s.setAttribute(hr(a),t),s}function wr(e){return e instanceof HTMLElement||e instanceof SVGElement}function Tr(e){return e&&typeof e==`object`&&wr(e.nativeElement)?e.nativeElement:wr(e)?e:null}var Er=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){let{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function Dr(e,t=!1){if(Er(e)){let n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function Or(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>Dr(e,t));return Dr(e,t)&&n.unshift(e),n}function kr(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var Ar=null,jr=[],Mr=new Map,Nr=new Map;function Pr(){return jr[jr.length-1]}function Fr(e){let t=Pr();if(e&&t){let n;for(let[e,r]of Mr.entries())if(r===t){n=e;break}let r=Nr.get(n);return!!r&&(r===e||r.contains(e))}return!1}function Ir(e){let{activeElement:t}=document;return e===t||e.contains(t)}function Lr(){let e=Pr(),{activeElement:t}=document;if(!Fr(t))if(e&&!Ir(e)){let t=Or(e);(t.includes(Ar)?Ar:t[0])?.focus({preventScroll:!0})}else Ar=t}function Rr(e){if(e.key===`Tab`){let{activeElement:t}=document,n=Or(Pr()),r=n[n.length-1];e.shiftKey&&t===n[0]?Ar=r:!e.shiftKey&&t===r&&(Ar=n[0])}}function zr(e,t){return e&&(Mr.set(t,e),jr=jr.filter(t=>t!==e),jr.push(e),window.addEventListener(`focusin`,Lr),window.addEventListener(`keydown`,Rr,!0),Lr()),()=>{Ar=null,jr=jr.filter(t=>t!==e),Mr.delete(t),Nr.delete(t),jr.length===0&&(window.removeEventListener(`focusin`,Lr),window.removeEventListener(`keydown`,Rr,!0))}}function Br(e,t){let n=(0,x.useRef)(0),[r,i]=(0,x.useState)(0);(0,x.useEffect)(()=>{n.current=0},t),(0,x.useEffect)(()=>{let[t,r]=e(n.current);return r||(n.current+=1,i(e=>e+1)),t},[...t,r])}function Vr(e,t){let n=Kn(),r=(0,x.useRef)(t);return r.current=t,Br(t=>{if(!e)return[void 0,!0];let i=r.current();return i?[zr(i,n),!0]:[void 0,t>=1]},[n,e]),[e=>{e&&Nr.set(n,e)}]}function Hr(e){return e?.getRootNode?.()}function Ur(e){return Hr(e)instanceof ShadowRoot}function Wr(e){return Ur(e)?Hr(e):null}var Gr=e=>{if(In()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},Kr=(e,t)=>{if(!Gr(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function qr(e,t){return!Array.isArray(e)&&t!==void 0?Kr(e,t):Gr(e)}var Jr={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Jr.F1&&t<=Jr.F12)return!1;switch(t){case Jr.ALT:case Jr.CAPS_LOCK:case Jr.CONTEXT_MENU:case Jr.CTRL:case Jr.DOWN:case Jr.END:case Jr.ESC:case Jr.HOME:case Jr.INSERT:case Jr.LEFT:case Jr.MAC_FF_META:case Jr.META:case Jr.NUMLOCK:case Jr.NUM_CENTER:case Jr.PAGE_DOWN:case Jr.PAGE_UP:case Jr.PAUSE:case Jr.PRINT_SCREEN:case Jr.RIGHT:case Jr.SHIFT:case Jr.UP:case Jr.WIN_KEY:case Jr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Jr.ZERO&&e<=Jr.NINE||e>=Jr.NUM_ZERO&&e<=Jr.NUM_MULTIPLY||e>=Jr.A&&e<=Jr.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case Jr.SPACE:case Jr.QUESTION_MARK:case Jr.NUM_PLUS:case Jr.NUM_MINUS:case Jr.NUM_PERIOD:case Jr.NUM_DIVISION:case Jr.SEMICOLON:case Jr.DASH:case Jr.EQUALS:case Jr.COMMA:case Jr.PERIOD:case Jr.SLASH:case Jr.APOSTROPHE:case Jr.SINGLE_QUOTE:case Jr.OPEN_SQUARE_BRACKET:case Jr.BACKSLASH:case Jr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;let n=t.tagName;return!!(n===`INPUT`||n===`TEXTAREA`||n===`SELECT`||t.isContentEditable)}},Yr;function Xr(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement(`div`);n.id=t;let r=n.style;r.position=`absolute`,r.left=`0`,r.top=`0`,r.width=`100px`,r.height=`100px`,r.overflow=`scroll`;let i,a;if(e){let n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;let o=getComputedStyle(e,`::-webkit-scrollbar`),s=parseInt(o.width,10),c=parseInt(o.height,10);try{Cr(`
|
||
#${t}::-webkit-scrollbar {
|
||
${s?`width: ${o.width};`:``}
|
||
${c?`height: ${o.height};`:``}
|
||
}`,t)}catch(e){console.error(e),i=s,a=c}}document.body.appendChild(n);let o=e&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,s=e&&a&&!Number.isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),xr(t),{width:o,height:s}}function Zr(e){return typeof document>`u`?0:((e||Yr===void 0)&&(Yr=Xr()),Yr.width)}function Qr(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:Xr(e)}var $r={},ei=[],ti=e=>{ei.push(e)};function ni(e,t){}function ri(e,t){}function ii(){$r={}}function ai(e,t,n){!t&&!$r[n]&&(e(!1,n),$r[n]=!0)}function oi(e,t){ai(ni,e,t)}function si(e,t){ai(ri,e,t)}oi.preMessage=ti,oi.resetWarned=ii,oi.noteOnce=si;function ci(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(oi(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n],s))return!1;return!0}if(e&&t&&typeof e==`object`&&typeof t==`object`){let n=Object.keys(e);return n.length===Object.keys(t).length?n.every(n=>i(e[n],t[n],s)):!1}return!1}return i(e,t)}var li=c(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),ui,di=()=>(ui===void 0&&(ui=(0,li.default)()),ui);function fi(e,t){let n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}var pi=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),mi=`aria-`,hi=`data-`;function gi(e,t){return e.indexOf(t)===0}function _i(e,t=!1){let n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:{...t};let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||gi(t,mi))||n.data&&gi(t,hi)||n.attr&&pi.includes(t))&&(r[t]=e[t])}),r}var vi=e=>+setTimeout(e,16),yi=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(vi=e=>window.requestAnimationFrame(e),yi=e=>window.cancelAnimationFrame(e));var bi=0,xi=new Map;function Si(e){xi.delete(e)}var Ci=(e,t=1)=>{bi+=1;let n=bi;function r(t){if(t===0)Si(n),e();else{let e=vi(()=>{r(t-1)});xi.set(n,e)}}return r(t),n};Ci.cancel=e=>{let t=xi.get(e);return Si(e),yi(t)};function wi(e,t={}){let n=[];return x.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(wi(e)):er(e)&&e.props?n=n.concat(wi(e.props.children,t)):n.push(e))}),n}function Ti(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(n==null)return;n=n[t[e]]}return n}function Ei(e,t,n,r){if(!t.length)return n;let[i,...a]=t,o;return o=!e&&typeof i==`number`?[]:Array.isArray(e)?[...e]:{...e},r&&n===void 0&&a.length===1?delete o[i][a[0]]:o[i]=Ei(o[i],a,n,r),o}function Di(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Ti(e,t.slice(0,-1))?e:Ei(e,t,n,r)}function Oi(e){return typeof e==`object`&&!!e&&Object.getPrototypeOf(e)===Object.prototype}function ki(e){return Array.isArray(e)?[]:{}}var Ai=typeof Reflect>`u`?Object.keys:Reflect.ownKeys;function ji(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=ki(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=Ti(e,n),c=Array.isArray(s);if(c||Oi(s)){if(!o.has(s)){o.add(s);let e=Ti(i,n);c?i=Di(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=Di(i,n,ki(s))),Ai(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=Di(i,n,s)}t([])}),i}function Mi(...e){return ji(e)}var Ni=`__rc_react_root__`;function Pi(e,t){let n=t[Ni]||(0,g.createRoot)(t);n.render(e),t[Ni]=n}async function Fi(e){return Promise.resolve().then(()=>{e[Ni]?.unmount(),delete e[Ni]})}var Ii=c(m());function Li(){}var{resetWarned:Ri}=oi,zi=x.createContext({}),Bi=()=>{let e=()=>{};return e.deprecated=Li,e},Vi=x.createContext(null);function Hi({children:e,onBatchResize:t}){let n=x.useRef(0),r=x.useRef([]),i=x.useContext(Vi),a=x.useCallback((e,a,o)=>{n.current+=1;let s=n.current;r.current.push({size:e,element:a,data:o}),Promise.resolve().then(()=>{s===n.current&&(t?.(r.current),r.current=[])}),i?.(e,a,o)},[t,i]);return x.createElement(Vi.Provider,{value:a},e)}var Ui=new Map;function Wi(e){e.forEach(e=>{let{target:t}=e;Ui.get(t)?.forEach(e=>e(t))})}var Gi;function Ki(){return Gi||=new ResizeObserver(Wi),Gi}function qi(e,t){Ui.has(e)||(Ui.set(e,new Set),Ki().observe(e)),Ui.get(e).add(t)}function Ji(e,t){Ui.has(e)&&(Ui.get(e).delete(t),Ui.get(e).size||(Ki().unobserve(e),Ui.delete(e)))}function Yi(e,t,n,r){let i=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=Fn(e=>{let{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:o,offsetHeight:s}=e,c=Math.floor(t),l=Math.floor(a);if(i.current.width!==c||i.current.height!==l||i.current.offsetWidth!==o||i.current.offsetHeight!==s){let u={width:c,height:l,offsetWidth:o,offsetHeight:s};i.current=u;let d=o===Math.round(t)?t:o,f=s===Math.round(a)?a:s,p={...u,offsetWidth:d,offsetHeight:f};r?.(p,e),Promise.resolve().then(()=>{n?.(p,e)})}}),o=typeof t==`function`,s=x.useRef(0);x.useEffect(()=>{let n=o?t():t;return n&&e?qi(n,a):e&&o&&(s.current+=1),()=>{n&&Ji(n,a)}},[e,o?s.current:t])}function Xi(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=x.useRef(null),s=x.useContext(Vi),c=typeof n==`function`,l=c?n(o):n,u=!c&&x.isValidElement(l)&&or(l),d=ar(u?lr(l):null,o),f=()=>Tr(o.current);return x.useImperativeHandle(t,()=>f()),Yi(!r,f,i,(e,t)=>{s?.(e,t,a)}),u?x.cloneElement(l,{ref:d}):l}var Zi=x.forwardRef(Xi);function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qi.apply(this,arguments)}var $i=`rc-observer-key`;function ea(e,t){let{children:n}=e;return(typeof n==`function`?[n]:wi(n)).map((n,r)=>{let i=n?.key||`${$i}-${r}`;return x.createElement(Zi,Qi({},e,{key:i,ref:r===0?t:void 0}),n)})}var ta=x.forwardRef(ea);ta.Collection=Hi;function na(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=na(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Z(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=na(e))&&(r&&(r+=` `),r+=t);return r}function ra(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 ia(e){if(Array.isArray(e))return ra(e)}function aa(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function oa(e,t){if(e){if(typeof e==`string`)return ra(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)?ra(e,t):void 0}}function sa(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ca(e){return ia(e)||aa(e)||oa(e)||sa()}var la=`anticon`,ua=[`outlined`,`borderless`,`filled`,`underlined`],da=x.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:la}),{Consumer:fa}=da,pa={};function ma(e){let t=x.useContext(da),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:pa,styles:pa,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function ha(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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)}var ga=`%`;function _a(e){return e.join(ga)}var va=0,ya=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(_a(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(_a(e),t)}opUpdate(e,t){let n=t(this.cache.get(e));n===null?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,va),va+=1)}},ba=`data-token-hash`,xa=`data-css-hash`,Sa=`__cssinjs_instance__`;function Ca(){let e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){let t=document.body.querySelectorAll(`style[data-css-hash]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Sa]||=e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${xa}]`)).forEach(t=>{let n=t.getAttribute(xa);r[n]?t.__cssinjs_instance__===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new ya(e)}var wa=x.createContext({hashPriority:`low`,cache:Ca(),defaultCache:!0,autoPrefix:!1});function Ta(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Ea=class e{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let r=this.cache;t.forEach((e,i)=>{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{let t=r.get(e);t?t.map||=new Map:r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){let n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];let r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!Ta(t,e)),this.deleteByPath(this.cache,e)}},Da=0,Oa=class{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Da,e.length===0&&e.length,Da+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},ka=new Ea;function Aa(e){let t=Array.isArray(e)?e:[e];return ka.has(t)||ka.set(t,new Oa(t)),ka.get(t)}var ja=new WeakMap,Ma={};function Na(e,t){let n=ja;for(let e=0;e<t.length;e+=1){let r=t[e];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(Ma)||n.set(Ma,e()),n.get(Ma)}var Pa=new WeakMap;function Fa(e){let t=Pa.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof Oa?t+=r.id:r&&typeof r==`object`?t+=Fa(r):t+=r}),t=ha(t),Pa.set(e,t)),t}function Ia(e,t){return ha(`${t}_${Fa(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var La=In();function Q(e){return typeof e==`number`?`${e}px`:e}function Ra(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var za=e=>e!=null;function Ba(e,t){let n=typeof t==`function`?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}var Va=(e,t=``)=>`--${t?`${t}-`:``}${e}`.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,`$1-$2`).replace(/([a-z])([A-Z0-9])/g,`$1-$2`).toLowerCase(),Ha=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${Ra({hashCls:r,hashPriority:i})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${o}.${e}`).join(`, `):o}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join(``)}}`},Ua=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,prefix:a,unitless:o,ignore:s,preserve:c}=n||{},l={},u={};return Object.entries(e).forEach(([e,t])=>{if(c?.[e])u[e]=t;else if((typeof t==`string`||typeof t==`number`)&&!s?.[e]){let n=Va(e,a);l[n]=typeof t==`number`&&!o?.[e]?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,Ha(l,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},Wa=new Map;function Ga(e,t,n,r,i){let{cache:a}=x.useContext(wa),o=_a([e,...t]),s=e=>{a.opUpdate(o,t=>{let[r=0,i]=t||[void 0,void 0],a=[r,i||n()];return e?e(a):a})};x.useMemo(()=>{s()},[o]);let c=a.opGet(o)[1];return(0,x.useInsertionEffect)(()=>(s(([e,t])=>[e+1,t]),Wa.has(o)||(i?.(c),Wa.set(o,!0),Promise.resolve().then(()=>{Wa.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),Wa.delete(o),null):[t-1,n]})}),[o]),c}var Ka={},qa=`css`,Ja=new Map;function Ya(e){Ja.set(e,(Ja.get(e)||0)+1)}function Xa(e,t){typeof document<`u`&&document.querySelectorAll(`style[${ba}="${e}"]`).forEach(e=>{e.__cssinjs_instance__===t&&e.parentNode?.removeChild(e)})}var Za=-1;function Qa(e,t){Ja.set(e,(Ja.get(e)||0)-1);let n=new Set;Ja.forEach((e,t)=>{e<=0&&n.add(t)}),Ja.size-n.size>Za&&n.forEach(e=>{Xa(e,t),Ja.delete(e)})}var $a=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},eo=`token`;function to(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,x.useContext)(wa),{salt:o=``,override:s=Ka,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=Na(()=>Object.assign({},...t),t),p=Fa(f),m=Fa(s),h=Fa(u);return Ga(eo,[o,e.id,p,m,h],()=>{let t=l?l(f,s,e):$a(f,s,e,c),n={...t},r=`${o}_${u.prefix}`,i=ha(r),d=`${qa}-${i}`;n._tokenKey=Ia(n,r);let[p,m]=Ua(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:a,hashCls:u.hashed?d:void 0});return p._hashId=i,Ya(u.key),[p,d,n,m,u.key]},([,,,,e])=>{Qa(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:xa,prepend:`queue`,attachTo:i,priority:-999};n=Ba(n,d);let a=Cr(e,ha(`css-var-${t}`),n);a[Sa]=r,a.setAttribute(ba,t)})}var no={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},ro=`-ms-`,io=`-moz-`,ao=`-webkit-`,oo=`comm`,so=`rule`,co=`decl`,lo=`@import`,uo=`@namespace`,fo=`@keyframes`,po=`@layer`,mo=Math.abs,ho=String.fromCharCode,go=Object.assign;function _o(e,t){return So(e,0)^45?(((t<<2^So(e,0))<<2^So(e,1))<<2^So(e,2))<<2^So(e,3):0}function vo(e){return e.trim()}function yo(e,t){return(e=t.exec(e))?e[0]:e}function bo(e,t,n){return e.replace(t,n)}function xo(e,t){return e.indexOf(t)}function So(e,t){return e.charCodeAt(t)|0}function Co(e,t,n){return e.slice(t,n)}function wo(e){return e.length}function To(e){return e.length}function Eo(e,t){return t.push(e),e}function Do(e,t){return e.map(t).join(``)}function Oo(e,t){return e.filter(function(e){return!yo(e,t)})}var ko=1,Ao=1,jo=0,Mo=0,No=0,Po=``;function Fo(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ko,column:Ao,length:o,return:``,siblings:s}}function Io(e,t){return go(Fo(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function Lo(e){for(;e.root;)e=Io(e.root,{children:[e]});Eo(e,e.siblings)}function Ro(){return No}function zo(){return No=Mo>0?So(Po,--Mo):0,Ao--,No===10&&(Ao=1,ko--),No}function Bo(){return No=Mo<jo?So(Po,Mo++):0,Ao++,No===10&&(Ao=1,ko++),No}function Vo(){return So(Po,Mo)}function Ho(){return Mo}function Uo(e,t){return Co(Po,e,t)}function Wo(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 Go(e){return ko=Ao=1,jo=wo(Po=e),Mo=0,[]}function Ko(e){return Po=``,e}function qo(e){return vo(Uo(Mo-1,Xo(e===91?e+2:e===40?e+1:e)))}function Jo(e){for(;(No=Vo())&&No<33;)Bo();return Wo(e)>2||Wo(No)>3?``:` `}function Yo(e,t){for(;--t&&Bo()&&!(No<48||No>102||No>57&&No<65||No>70&&No<97););return Uo(e,Ho()+(t<6&&Vo()==32&&Bo()==32))}function Xo(e){for(;Bo();)switch(No){case e:return Mo;case 34:case 39:e!==34&&e!==39&&Xo(No);break;case 40:e===41&&Xo(e);break;case 92:Bo();break}return Mo}function Zo(e,t){for(;Bo()&&e+No!==57&&!(e+No===84&&Vo()===47););return`/*`+Uo(t,Mo-1)+`*`+ho(e===47?e:Bo())}function Qo(e){for(;!Wo(Vo());)Bo();return Uo(e,Mo)}function $o(e){return Ko(es(``,null,null,null,[``],e=Go(e),0,[0],e))}function es(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=Bo()){case 40:m!=108&&So(w,d-1)==58?(v++,w+=`(`):w+=qo(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=qo(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=ho(y);break}w+=Jo(m);break;case 92:w+=Yo(Ho()-1,7);continue;case 47:switch(Vo()){case 42:case 47:Eo(ns(Zo(Bo(),Ho()),t,n,c),c),(Wo(m||1)==5||Wo(Vo()||1)==5)&&wo(w)&&Co(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=wo(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=ho(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=bo(w,/\f/g,``)),p>0&&(wo(w)-d||h===0)&&Eo(p>32?rs(w+`;`,r,n,d-1,c):rs(bo(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Eo(C=ts(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)es(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(So(w,3)===110)break;case 108:if(So(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?es(e,C,C,r&&Eo(ts(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):es(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+wo(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&zo()==125)continue}switch(w+=ho(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(wo(w)-1)*_,_=1;break;case 64:Vo()===45&&(w+=qo(Bo())),f=Vo(),u=d=wo(b=w+=Qo(Ho())),y++;break;case 45:m===45&&wo(w)==2&&(h=0)}}return a}function ts(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=To(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Co(e,f+1,f=mo(g=o[h])),b=e;v<m;++v)(b=vo(g>0?p[v]+` `+y:bo(y,/&\f/g,p[v])))&&(c[_++]=b);return Fo(e,t,n,i===0?so:s,c,l,u,d)}function ns(e,t,n,r){return Fo(e,t,n,oo,ho(Ro()),Co(e,2,-2),0,r)}function rs(e,t,n,r,i){return Fo(e,t,n,co,Co(e,0,r),Co(e,r+1,-1),r,i)}function is(e,t,n){switch(_o(e,t)){case 5103:return ao+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return ao+e+e;case 4855:return ao+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return io+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ao+e+io+e+ro+e+e;case 5936:switch(So(e,t+11)){case 114:return ao+e+ro+bo(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return ao+e+ro+bo(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return ao+e+ro+bo(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return ao+e+ro+e+e;case 6165:return ao+e+ro+`flex-`+e+e;case 5187:return ao+e+bo(e,/(\w+).+(:[^]+)/,ao+`box-$1$2`+ro+`flex-$1$2`)+e;case 5443:return ao+e+ro+`flex-item-`+bo(e,/flex-|-self/g,``)+(yo(e,/flex-|baseline/)?``:ro+`grid-row-`+bo(e,/flex-|-self/g,``))+e;case 4675:return ao+e+ro+`flex-line-pack`+bo(e,/align-content|flex-|-self/g,``)+e;case 5548:return ao+e+ro+bo(e,`shrink`,`negative`)+e;case 5292:return ao+e+ro+bo(e,`basis`,`preferred-size`)+e;case 6060:return ao+`box-`+bo(e,`-grow`,``)+ao+e+ro+bo(e,`grow`,`positive`)+e;case 4554:return ao+bo(e,/([^-])(transform)/g,`$1`+ao+`$2`)+e;case 6187:return bo(bo(bo(e,/(zoom-|grab)/,ao+`$1`),/(image-set)/,ao+`$1`),e,``)+e;case 5495:case 3959:return bo(e,/(image-set\([^]*)/,ao+"$1$`$1");case 4968:return bo(bo(e,/(.+:)(flex-)?(.*)/,ao+`box-pack:$3`+ro+`flex-pack:$3`),/space-between/,`justify`)+ao+e+e;case 4200:if(!yo(e,/flex-|baseline/))return ro+`grid-column-align`+Co(e,t)+e;break;case 2592:case 3360:return ro+bo(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,yo(e.props,/grid-\w+-end/)})?~xo(e+(n=n[t].value),`span`)?e:ro+bo(e,`-start`,``)+e+ro+`grid-row-span:`+(~xo(n,`span`)?yo(n,/\d+/):yo(n,/\d+/)-+yo(e,/\d+/))+`;`:ro+bo(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return yo(e.props,/grid-\w+-start/)})?e:ro+bo(bo(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return bo(e,/(.+)-inline(.+)/,ao+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wo(e)-1-t>6)switch(So(e,t+1)){case 109:if(So(e,t+4)!==45)break;case 102:return bo(e,/(.+:)(.+)-([^]+)/,`$1`+ao+`$2-$3$1`+io+(So(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~xo(e,`stretch`)?is(bo(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return bo(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return ro+n+`:`+r+s+(i?ro+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(So(e,t+6)===121)return bo(e,`:`,`:`+ao)+e;break;case 6444:switch(So(e,So(e,14)===45?18:11)){case 120:return bo(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+ao+(So(e,14)===45?`inline-`:``)+`box$3$1`+ao+`$2$3$1`+ro+`$2box$3`)+e;case 100:return bo(e,`:`,`:`+ro)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return bo(e,`scroll-`,`scroll-snap-`)+e}return e}function as(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function os(e,t,n,r){switch(e.type){case po:if(e.children.length)break;case lo:case uo:case co:return e.return=e.return||e.value;case oo:return``;case fo:return e.return=e.value+`{`+as(e.children,r)+`}`;case so:if(!wo(e.value=e.props.join(`,`)))return``}return wo(n=as(e.children,r))?e.return=e.value+`{`+n+`}`:``}function ss(e){var t=To(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function cs(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case co:e.return=is(e.value,e.length,n);return;case fo:return as([Io(e,{value:bo(e.value,`@`,`@`+ao)})],r);case so:if(e.length)return Do(n=e.props,function(t){switch(yo(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:Lo(Io(e,{props:[bo(t,/:(read-\w+)/,`:`+io+`$1`)]})),Lo(Io(e,{props:[t]})),go(e,{props:Oo(n,r)});break;case`::placeholder`:Lo(Io(e,{props:[bo(t,/:(plac\w+)/,`:`+ao+`input-$1`)]})),Lo(Io(e,{props:[bo(t,/:(plac\w+)/,`:`+io+`$1`)]})),Lo(Io(e,{props:[bo(t,/:(plac\w+)/,ro+`input-$1`)]})),Lo(Io(e,{props:[t]})),go(e,{props:Oo(n,r)});break}return``})}}var ls=`data-ant-cssinjs-cache-path`,us=`_FILE_STYLE__`,ds,fs=!0;function ps(){if(!ds&&(ds={},In())){let e=document.createElement(`div`);e.className=ls,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);let t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);ds[t]=n});let n=document.querySelector(`style[${ls}]`);n&&(fs=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function ms(e){return ps(),!!ds[e]}function hs(e){let t=ds[e],n=null;if(t&&In())if(fs)n=us;else{let t=document.querySelector(`style[${xa}="${ds[e]}"]`);t?n=t.innerHTML:delete ds[e]}return[n,t]}var gs=`_skip_check_`,_s=`_multi_value_`;function vs(e,t){return(t?as($o(e),ss([cs,os])):as($o(e),os)).replace(/\{%%%\:[^;];}/g,`;`)}function ys(e){return typeof e==`object`&&e&&(gs in e||_s in e)}function bs(e,t,n=`high`){if(!t)return e;let r=Ra({hashCls:t,hashPriority:n});return e.split(`,`).map(e=>{let t=e.trim().split(/\s+/),n=t[0]||``,i=n.match(/^\w+/)?.[0]||``;return n=`${i}${r}${n.slice(i.length)}`,[n,...t.slice(1)].join(` `)}).join(`,`)}var xs=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:o,path:s,hashPriority:c,transformers:l=[],linters:u=[]}=t,d=``,f={};function p(e){let n=e.getName(a);if(!f[n]){let[r]=xs(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function m(e,t=[]){return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}return m(Array.isArray(e)?e:[e]).forEach(e=>{let o=typeof e==`string`&&!n?{}:e;if(typeof o==`string`)d+=`${o}\n`;else if(o._keyframe)p(o);else{let e=l.reduce((e,t)=>t?.visit?.(e)||e,o);Object.keys(e).forEach(o=>{let s=e[o];if(typeof s==`object`&&s&&(o!==`animationName`||!s._keyframe)&&!ys(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=bs(l===`&`?``:o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=xs(s,t,{root:u,injectHash:e,parentSelectors:[...i,l]});f={...f,...m},d+=`${l}${p}`}else{function e(e,t){let n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),r=t;!no[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t?._keyframe&&(p(t),r=t.getName(a)),d+=`${n}:${r};`}let t=s?.value??s;typeof s==`object`&&s?.[_s]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):za(t)&&e(o,t)}})}}),n?o&&(d&&=`@layer ${o.name} {${d}}`,o.dependencies&&(f[`@layer ${o.name}`]=o.dependencies.map(e=>`@layer ${e}, ${o.name};`).join(`
|
||
`))):d=`{${d}}`,[d,f]};function Ss(e,t){return ha(`${e.join(`%`)}${t}`)}var Cs=`style`;function ws(e,t){let{path:n,hashId:r,layer:i,nonce:a,clientOnly:o,order:s=0}=e,{mock:c,hashPriority:l,container:u,transformers:d,linters:f,cache:p,layer:m,autoPrefix:h}=x.useContext(wa),g=[r||``];m&&g.push(`layer`),g.push(...n);let _=La;Ga(Cs,g,()=>{let e=g.join(`|`);if(ms(e)){let[t,n]=hs(e);if(t)return[t,n,{},o,s]}let[a,c]=xs(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=vs(a,h||!1);return[u,Ss(g,u),c,o,s]},(e,t)=>{let[,n]=e;t&&La&&xr(n,{mark:xa,attachTo:u})},e=>{let[t,n,r,,i]=e;if(_&&t!==`_FILE_STYLE__`){let e={mark:xa,prepend:m?!1:`queue`,attachTo:u,priority:i};e=Ba(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{Cr(vs(r[t],h||!1),`_layer-${t}`,{...e,prepend:!0})});let c=Cr(t,n,e);c[Sa]=p.instanceId,s.forEach(t=>{Cr(vs(r[t],h||!1),`_effect-${t}`,e)})}})}var Ts=`cssVar`,Es=(e,t)=>{let{key:n,prefix:r,unitless:i,ignore:a,token:o,hashId:s,scope:c,nonce:l}=e,{cache:{instanceId:u},container:d,hashPriority:f}=(0,x.useContext)(wa),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,h=[...e.path,n,m,p];return Ga(Ts,h,()=>{let[e,o]=Ua(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,Ss(h,o),n]},([,,e])=>{La&&xr(e,{mark:xa,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:xa,prepend:`queue`,attachTo:d,priority:-999};r=Ba(r,l);let i=Cr(e,t,r);i[Sa]=u,i.setAttribute(ba,n)})},Ds=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function Os(e){return e.notSplit=!0,e}Os([`borderTop`,`borderBottom`]),Os([`borderTop`]),Os([`borderBottom`]),Os([`borderLeft`,`borderRight`]),Os([`borderLeft`]),Os([`borderRight`]);function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ks(e)}function As(e){if(Array.isArray(e))return e}function js(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ms(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ns(e,t){return As(e)||js(e,t)||oa(e,t)||Ms()}function Ps(e,t){if(ks(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ks(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Fs(e){var t=Ps(e,`string`);return ks(t)==`symbol`?t:t+``}function Is(e,t,n){return(t=Fs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ls(Object(n),!0).forEach(function(t){Is(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zs(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Bs(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,Fs(r.key),r)}}function Vs(e,t,n){return t&&Bs(e.prototype,t),n&&Bs(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Hs(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Us(e,t){return Us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Us(e,t)}function Ws(e,t){if(typeof t!=`function`&&t!==null)throw 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&&Us(e,t)}function Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(e)}function Ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ks=function(){return!!e})()}function qs(e,t){if(t&&(ks(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Hs(e)}function Js(e){var t=Ks();return function(){var n,r=Gs(e);if(t){var i=Gs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qs(this,n)}}var Ys=Vs(function e(){zs(this,e)}),Xs=`CALC_UNIT`,Zs=new RegExp(Xs,`g`);function Qs(e){return typeof e==`number`?`${e}${Xs}`:e}var $s=function(e){Ws(n,e);var t=Js(n);function n(e,r){var i;zs(this,n),i=t.call(this),Is(Hs(i),`result`,``),Is(Hs(i),`unitlessCssVar`,void 0),Is(Hs(i),`lowPriority`,void 0);var a=ks(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=Qs(e):a===`string`&&(i.result=e),i}return Vs(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${Qs(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${Qs(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(Zs,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(Ys),ec=function(e){Ws(n,e);var t=Js(n);function n(e){var r;return zs(this,n),r=t.call(this),Is(Hs(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return Vs(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(Ys),tc=function(e,t){var n=e===`css`?$s:ec;return function(e){return new n(e,t)}},nc=function(e,t){return`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`)].filter(Boolean).join(`-`)}`};function rc(e,t,n,r){var i=Rs({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=Ns(e,2),n=t[0],r=t[1];(i!=null&&i[n]||i!=null&&i[r])&&(i[r]??(i[r]=i?.[n]))});var a=Rs(Rs({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var ic=typeof CSSINJS_STATISTIC<`u`,ac=!0;function oc(){var e=[...arguments];if(!ic)return Object.assign.apply(Object,[{}].concat(e));ac=!1;var t={};return e.forEach(function(e){ks(e)===`object`&&Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return e[n]}})})}),ac=!0,t}var sc={};function cc(){}var lc=function(e){var t,n=e,r=cc;return ic&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(ac){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){sc[e]={global:Array.from(t),component:Rs(Rs({},sc[e]?.component),n)}}),{token:n,keys:t,flush:r}};function uc(e,t,n){return typeof n==`function`?n(oc(t,t[e]??{})):n??{}}function dc(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){return`max(${[...arguments].map(function(e){return Q(e)}).join(`,`)})`},min:function(){return`min(${[...arguments].map(function(e){return Q(e)}).join(`,`)})`}}}var fc=1e3*60*10,pc=new(function(){function e(){zs(this,e),Is(this,`map`,new Map),Is(this,`objectIDMap`,new WeakMap),Is(this,`nextID`,0),Is(this,`lastAccessBeat`,new Map),Is(this,`accessBeat`,0)}return Vs(e,[{key:`set`,value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:`get`,value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:`getCompositeKey`,value:function(e){var t=this;return e.map(function(e){return e&&ks(e)===`object`?`obj_${t.getObjectID(e)}`:`${ks(e)}_${e}`}).join(`|`)}},{key:`getObjectID`,value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:`clear`,value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>fc&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function mc(e,t){return x.useMemo(function(){var n=pc.get(t);if(n)return n;var r=e();return pc.set(t,r),r},t)}var hc=function(){return{}};function gc(e){var t=e.useCSP,n=t===void 0?hc:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},c=Rs(Rs({},typeof s==`function`?s(e):{}),{},Is({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=Rs(Rs({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r?.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(ca(a)):t)]}}function l(e,t,i){var a=i.unitless,o=i.prefixToken,s=i.ignore;return function(c){var l=r(),u=l.cssVar,d=l.realToken,f=n();return Es({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=uc(e,d,t),r=rc(e,d,n,{deprecatedTokens:i?.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u?.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Ns(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,h=u.realToken,g=u.hashId,_=u.token,v=u.cssVar,y=u.zeroRuntime;if((0,x.useMemo)(function(){return y},[]))return g;var b=i(),S=b.rootPrefixCls,C=b.iconPrefixCls,w=n(),T=`css`,E=mc(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(Va(t,v.prefix)),e.add(Va(t,nc(d,v.prefix)))}),tc(T,e)},[T,d,v?.prefix]),D=dc(T),O=D.max,k=D.min,A={theme:m,token:_,hashId:g,nonce:function(){return w.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&ws(Rs(Rs({},A),{},{clientOnly:!1,path:[`Shared`,S]}),function(){return a(_,{prefix:{rootPrefixCls:S,iconPrefixCls:C},csp:w})}),ws(Rs(Rs({},A),{},{path:[f,e,C]}),function(){if(l.injectStyle===!1)return[];var n=lc(_),r=n.token,i=n.flush,a=uc(d,h,c),u=`.${e}`,f=rc(d,h,a,{deprecatedTokens:l.deprecatedTokens});a&&ks(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${Va(e,nc(d,v.prefix))})`});var p=oc(r,{componentCls:u,prefixCls:e,iconCls:`.${C}`,antCls:`.${S}`,calc:E,max:O,min:k},a),m=s(p,{hashId:g,prefixCls:e,rootPrefixCls:S,iconPrefixCls:C});i(d,f);var y=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:y,m]}),g}}function d(e,t,n){var r=u(e,t,n,Rs({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var _c=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function vc(e){return(e+8)/e}function yc(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:vc(e)}))}var bc=`6.3.7`,xc={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`},Sc={...xc,colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||
'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},Cc={aliceblue:`9ehhb`,antiquewhite:`9sgk7`,aqua:`1ekf`,aquamarine:`4zsno`,azure:`9eiv3`,beige:`9lhp8`,bisque:`9zg04`,black:`0`,blanchedalmond:`9zhe5`,blue:`73`,blueviolet:`5e31e`,brown:`6g016`,burlywood:`8ouiv`,cadetblue:`3qba8`,chartreuse:`4zshs`,chocolate:`87k0u`,coral:`9yvyo`,cornflowerblue:`3xael`,cornsilk:`9zjz0`,crimson:`8l4xo`,cyan:`1ekf`,darkblue:`3v`,darkcyan:`rkb`,darkgoldenrod:`776yz`,darkgray:`6mbhl`,darkgreen:`jr4`,darkgrey:`6mbhl`,darkkhaki:`7ehkb`,darkmagenta:`5f91n`,darkolivegreen:`3bzfz`,darkorange:`9yygw`,darkorchid:`5z6x8`,darkred:`5f8xs`,darksalmon:`9441m`,darkseagreen:`5lwgf`,darkslateblue:`2th1n`,darkslategray:`1ugcv`,darkslategrey:`1ugcv`,darkturquoise:`14up`,darkviolet:`5rw7n`,deeppink:`9yavn`,deepskyblue:`11xb`,dimgray:`442g9`,dimgrey:`442g9`,dodgerblue:`16xof`,firebrick:`6y7tu`,floralwhite:`9zkds`,forestgreen:`1cisi`,fuchsia:`9y70f`,gainsboro:`8m8kc`,ghostwhite:`9pq0v`,goldenrod:`8j4f4`,gold:`9zda8`,gray:`50i2o`,green:`pa8`,greenyellow:`6senj`,grey:`50i2o`,honeydew:`9eiuo`,hotpink:`9yrp0`,indianred:`80gnw`,indigo:`2xcoy`,ivory:`9zldc`,khaki:`9edu4`,lavenderblush:`9ziet`,lavender:`90c8q`,lawngreen:`4vk74`,lemonchiffon:`9zkct`,lightblue:`6s73a`,lightcoral:`9dtog`,lightcyan:`8s1rz`,lightgoldenrodyellow:`9sjiq`,lightgray:`89jo3`,lightgreen:`5nkwg`,lightgrey:`89jo3`,lightpink:`9z6wx`,lightsalmon:`9z2ii`,lightseagreen:`19xgq`,lightskyblue:`5arju`,lightslategray:`4nwk9`,lightslategrey:`4nwk9`,lightsteelblue:`6wau6`,lightyellow:`9zlcw`,lime:`1edc`,limegreen:`1zcxe`,linen:`9shk6`,magenta:`9y70f`,maroon:`4zsow`,mediumaquamarine:`40eju`,mediumblue:`5p`,mediumorchid:`79qkz`,mediumpurple:`5r3rv`,mediumseagreen:`2d9ip`,mediumslateblue:`4tcku`,mediumspringgreen:`1di2`,mediumturquoise:`2uabw`,mediumvioletred:`7rn9h`,midnightblue:`z980`,mintcream:`9ljp6`,mistyrose:`9zg0x`,moccasin:`9zfzp`,navajowhite:`9zest`,navy:`3k`,oldlace:`9wq92`,olive:`50hz4`,olivedrab:`472ub`,orange:`9z3eo`,orangered:`9ykg0`,orchid:`8iu3a`,palegoldenrod:`9bl4a`,palegreen:`5yw0o`,paleturquoise:`6v4ku`,palevioletred:`8k8lv`,papayawhip:`9zi6t`,peachpuff:`9ze0p`,peru:`80oqn`,pink:`9z8wb`,plum:`8nba5`,powderblue:`6wgdi`,purple:`4zssg`,rebeccapurple:`3zk49`,red:`9y6tc`,rosybrown:`7cv4f`,royalblue:`2jvtt`,saddlebrown:`5fmkz`,salmon:`9rvci`,sandybrown:`9jn1c`,seagreen:`1tdnb`,seashell:`9zje6`,sienna:`6973h`,silver:`7ir40`,skyblue:`5arjf`,slateblue:`45e4t`,slategray:`4e100`,slategrey:`4e100`,snow:`9zke2`,springgreen:`1egv`,steelblue:`2r1kk`,tan:`87yx8`,teal:`pds`,thistle:`8ggk8`,tomato:`9yqfb`,turquoise:`2j4r4`,violet:`9b10u`,wheat:`9ld4j`,white:`9zldr`,whitesmoke:`9lhpx`,yellow:`9zl6o`,yellowgreen:`61fzm`},wc=Math.round;function Tc(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var Ec=(e,t,n)=>n===0?e:e/100;function Dc(e,t){let n=t||255;return e>n?n:e<0?0:e}var Oc=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(e))this.fromHexString(e);else if(n(`rgb`))this.fromRgbString(e);else if(n(`hsl`))this.fromHslString(e);else if(n(`hsv`)||n(`hsb`))this.fromHsvString(e);else{let t=Cc[e.toLowerCase()];t&&this.fromHexString(parseInt(t,36).toString(16).padStart(6,`0`))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=Dc(t.r),this.g=Dc(t.g),this.b=Dc(t.b),this.a=typeof t.a==`number`?Dc(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=wc(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(this._hsv_s===void 0){let e=this.getMax()-this.getMin();e===0?this._hsv_s=0:this._hsv_s=e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(this._hsl_s===void 0){let e=this.getMax()-this.getMin();if(e===0)this._hsl_s=0;else{let t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return this._l===void 0&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return this._v===void 0&&(this._v=this.getMax()/255),this._v}getBrightness(){return this._brightness===void 0&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:wc(i(`r`)),g:wc(i(`g`)),b:wc(i(`b`)),a:wc(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>wc((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=wc(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=wc(this.getHSLSaturation()*100),n=wc(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),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?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=Dc(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){let i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=wc(n*255);this.r=e,this.g=e,this.b=e;return}let a=0,o=0,s=0,c=i/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);let d=n-l/2;this.r=wc((a+d)*255),this.g=wc((o+d)*255),this.b=wc((s+d)*255)}fromHsv({h:e,s:t,v:n,a:r}){let i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a=typeof r==`number`?r:1;let a=wc(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;let o=i/60,s=Math.floor(o),c=o-s,l=wc(n*(1-t)*255),u=wc(n*(1-t*c)*255),d=wc(n*(1-t*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u;break}}fromHsvString(e){let t=Tc(e,Ec);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=Tc(e,Ec);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=Tc(e,(e,t)=>t.includes(`%`)?wc(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},kc=2,Ac=.16,jc=.05,Mc=.05,Nc=.15,Pc=5,Fc=4,Ic=[{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 Lc(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-kc*t:Math.round(e.h)+kc*t:n?Math.round(e.h)+kc*t:Math.round(e.h)-kc*t,r<0?r+=360:r>=360&&(r-=360),r}function Rc(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-Ac*t:t===Fc?e.s+Ac:e.s+jc*t,r>1&&(r=1),n&&t===Pc&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function zc(e,t,n){let r;return r=n?e.v+Mc*t:e.v-Nc*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Bc(e,t={}){let n=[],r=new Oc(e),i=r.toHsv();for(let e=Pc;e>0;--e){let t=new Oc({h:Lc(i,e,!0),s:Rc(i,e,!0),v:zc(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=Fc;e+=1){let t=new Oc({h:Lc(i,e),s:Rc(i,e),v:zc(i,e)});n.push(t)}return t.theme===`dark`?Ic.map(({index:e,amount:r})=>new Oc(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var Vc={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`},Hc=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];Hc.primary=Hc[5];var Uc=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];Uc.primary=Uc[5];var Wc=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];Wc.primary=Wc[5];var Gc=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];Gc.primary=Gc[5];var Kc=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];Kc.primary=Kc[5];var qc=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];qc.primary=qc[5];var Jc=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];Jc.primary=Jc[5];var Yc=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];Yc.primary=Yc[5];var Xc=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];Xc.primary=Xc[5];var Zc=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];Zc.primary=Zc[5];var Qc=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];Qc.primary=Qc[5];var $c=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];$c.primary=$c[5];var el=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];el.primary=el[5];var tl={red:Hc,volcano:Uc,orange:Wc,gold:Gc,yellow:Kc,lime:qc,green:Jc,cyan:Yc,blue:Xc,geekblue:Zc,purple:Qc,magenta:$c,grey:el},nl=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];nl.primary=nl[5];var rl=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];rl.primary=rl[5];var il=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];il.primary=il[5];var al=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];al.primary=al[5];var ol=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];ol.primary=ol[5];var sl=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];sl.primary=sl[5];var cl=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];cl.primary=cl[5];var ll=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];ll.primary=ll[5];var ul=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];ul.primary=ul[5];var dl=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];dl.primary=dl[5];var fl=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];fl.primary=fl[5];var pl=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];pl.primary=pl[5];var ml=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];ml.primary=ml[5];function hl(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new Oc(p[1]).mix(new Oc(p[3]),50).toHexString(),v={};return _c.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],...v,colorBgMask:new Oc(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var gl=e=>{let t=e,n=e,r=e,i=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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function _l(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...gl(r)}}var vl=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},yl=e=>{let t=yc(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function bl(e){let{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)}}var xl=(e,t)=>new Oc(e).setA(t).toRgbString(),Sl=(e,t)=>new Oc(e).darken(t).toHexString(),Cl=e=>{let t=Bc(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]}},wl=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:xl(i,.88),colorTextSecondary:xl(i,.65),colorTextTertiary:xl(i,.45),colorTextQuaternary:xl(i,.25),colorFill:xl(i,.15),colorFillSecondary:xl(i,.06),colorFillTertiary:xl(i,.04),colorFillQuaternary:xl(i,.02),colorBgSolid:xl(i,1),colorBgSolidHover:xl(i,.75),colorBgSolidActive:xl(i,.95),colorBgLayout:Sl(r,4),colorBgContainer:Sl(r,0),colorBgElevated:Sl(r,0),colorBgSpotlight:xl(i,.85),colorBgBlur:`transparent`,colorBorder:Sl(r,15),colorBorderDisabled:Sl(r,15),colorBorderSecondary:Sl(r,6)}};function Tl(e){Vc.pink=Vc.magenta,tl.pink=tl.magenta;let t=Object.keys(xc).map(t=>{let n=e[t]===Vc[t]?tl[t]:Bc(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{});return{...e,...t,...hl(e,{generateColorPalettes:Cl,generateNeutralColorPalettes:wl}),...yl(e.fontSize),...bl(e),...vl(e),..._l(e)}}var El=Aa(Tl),Dl={token:Sc,override:{override:Sc},hashed:!0},Ol=x.createContext(Dl);function kl(e){return e>=0&&e<=255}function Al(e,t){let{r:n,g:r,b:i,a}=new Oc(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new Oc(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(kl(t)&&kl(a)&&kl(l))return new Oc({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new Oc({r:n,g:r,b:i,a:1}).toRgbString()}function jl(e){let{override:t,...n}=e,r={...t};Object.keys(Sc).forEach(e=>{delete r[e]});let i={...n,...r},a=new Oc(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Al(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Al(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Al(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Al(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowSecondary:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 ${s(.03)},
|
||
0 1px 6px -1px ${s(.02)},
|
||
0 2px 4px 0 ${s(.02)}
|
||
`,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:u-1,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,boxShadowCard:`
|
||
0 1px 2px -2px ${s(.16)},
|
||
0 3px 6px 0 ${s(.12)},
|
||
0 5px 12px 4px ${s(.09)}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 ${s(.08)},
|
||
-3px 0 6px -4px ${s(.12)},
|
||
-9px 0 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 ${s(.08)},
|
||
3px 0 6px -4px ${s(.12)},
|
||
9px 0 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerUp:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerDown:`
|
||
0 -6px 16px 0 ${s(.08)},
|
||
0 -3px 6px -4px ${s(.12)},
|
||
0 -9px 28px 8px ${s(.05)}
|
||
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var Ml={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},Nl={motionBase:!0,motionUnit:!0},Pl={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,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},Fl=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=jl(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=Fl({...o,...r},{override:r},n)),o[e]=i}),o};function Il(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=x.useContext(Ol),{csp:o}=x.useContext(da),s={prefix:i?.prefix??`ant`,key:i?.key??`css-var-root`},c=`${bc}-${t||``}`,l=n||El,[u,d,f]=to(l,[Sc,e],{salt:c,override:r,getComputedToken:Fl,cssVar:{...s,unitless:Ml,ignore:Nl,preserve:Pl},nonce:o?.nonce});return[l,f,t?d:``,u,s,!!a]}var Ll={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},Rl=(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}),zl=()=>({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`}}),Bl=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),Vl=(e,t)=>({outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),Hl=(e,t)=>({"&:focus-visible":Vl(e,t)}),Ul=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},...Hl(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),Wl=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...o,[i]:o}}},Gl=e=>({[`.${e}`]:{...zl(),[`.${e} .${e}-icon`]:{display:`block`}}}),Kl=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`,...Hl(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:ql,genComponentStyleHook:Jl,genSubStyleComponent:Yl}=gc({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,x.useContext)(da);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=Il();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,x.useContext)(da);return e??{}},getResetStyles:(e,t)=>{let n=Ul(e);return[n,{"&":n},Gl(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:Wl,getCompUnitless:()=>Ml}),Xl=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function Zl(e,t){return _c.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s})}},{})}var Ql=(e,t)=>{let[n,r]=Il();return ws({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>Gl(e))},$l=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}})),eu=(0,x.createContext)({});function tu(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function nu(e,t){oi(e,`[@ant-design/icons] ${t}`)}function ru(e){return typeof e==`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(typeof e.icon==`object`||typeof e.icon==`function`)}function iu(e={}){return Object.keys(e).reduce((t,n)=>{let r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[tu(n)]=r}return t},{})}function au(e,t,n){return n?x.createElement(e.tag,{key:t,...iu(e.attrs),...n},(e.children||[]).map((n,r)=>au(n,`${t}-${e.tag}-${r}`))):x.createElement(e.tag,{key:t,...iu(e.attrs)},(e.children||[]).map((n,r)=>au(n,`${t}-${e.tag}-${r}`)))}function ou(e){return Bc(e)[0]}function su(e){return e?Array.isArray(e)?e:[e]:[]}var cu=`
|
||
.anticon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
vertical-align: inherit;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin {
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,lu=e=>{let{csp:t,prefixCls:n,layer:r}=(0,x.useContext)(eu),i=cu;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} {\n${i}\n}`),(0,x.useEffect)(()=>{let n=e.current,a=Wr(n);Cr(i,`@ant-design-icons`,{prepend:!r,csp:t,attachTo:a})},[])},uu={primaryColor:`#333`,secondaryColor:`#E6E6E6`,calculated:!1};function du({primaryColor:e,secondaryColor:t}){uu.primaryColor=e,uu.secondaryColor=t||ou(e),uu.calculated=!!t}function fu(){return{...uu}}var pu=e=>{let{icon:t,className:n,onClick:r,style:i,primaryColor:a,secondaryColor:o,...s}=e,c=x.useRef(null),l=uu;if(a&&(l={primaryColor:a,secondaryColor:o||ou(a)}),lu(c),nu(ru(t),`icon should be icon definiton, but got ${t}`),!ru(t))return null;let u=t;return u&&typeof u.icon==`function`&&(u={...u,icon:u.icon(l.primaryColor,l.secondaryColor)}),au(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:i,"data-icon":u.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,...s,ref:c})};pu.displayName=`IconReact`,pu.getTwoToneColors=fu,pu.setTwoToneColors=du;function mu(e){let[t,n]=su(e);return pu.setTwoToneColors({primaryColor:t,secondaryColor:n})}function hu(){let e=pu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gu.apply(this,arguments)}mu(Xc.primary);var _u=x.forwardRef((e,t)=>{let{className:n,icon:r,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:c,...l}=e,{prefixCls:u=`anticon`,rootClassName:d}=x.useContext(eu),f=Z(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!i||r.name===`loading`},n),p=o;p===void 0&&s&&(p=-1);let m=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[h,g]=su(c);return x.createElement(`span`,gu({role:`img`,"aria-label":r.name},l,{ref:t,tabIndex:p,onClick:s,className:f}),x.createElement(pu,{icon:r,primaryColor:h,secondaryColor:g,style:m}))});_u.getTwoToneColor=hu,_u.setTwoToneColor=mu;var vu=c($l());function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yu.apply(this,arguments)}var bu=x.forwardRef((e,t)=>x.createElement(_u,yu({},e,{ref:t,icon:vu.default}))),xu=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Su.apply(this,arguments)}var Cu=x.forwardRef((e,t)=>x.createElement(_u,Su({},e,{ref:t,icon:xu.default}))),wu=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}var Eu=x.forwardRef((e,t)=>x.createElement(_u,Tu({},e,{ref:t,icon:wu.default}))),Du=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ou.apply(this,arguments)}var ku=x.forwardRef((e,t)=>x.createElement(_u,Ou({},e,{ref:t,icon:Du.default}))),Au=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function ju(){return ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ju.apply(this,arguments)}var Mu=x.forwardRef((e,t)=>x.createElement(_u,ju({},e,{ref:t,icon:Au.default}))),Nu=x.createContext({}),Pu=e=>{let{children:t,...n}=e,r=x.useMemo(()=>({motion:n.motion}),[n.motion]);return x.createElement(Nu.Provider,{value:r},t)},Fu=`none`,Iu=`appear`,Lu=`enter`,Ru=`leave`,zu=`none`,Bu=`prepare`,Vu=`start`,Hu=`active`,Uu=`prepared`;function Wu(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Gu(e,t){let n={animationend:Wu(`Animation`,`AnimationEnd`),transitionend:Wu(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var Ku=Gu(In(),typeof window<`u`?window:{}),qu={};In()&&({style:qu}=document.createElement(`div`));var Ju={};function Yu(e){if(Ju[e])return Ju[e];let t=Ku[e];if(t){let n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){let r=n[i];if(Object.prototype.hasOwnProperty.call(t,r)&&r in qu)return Ju[e]=t[r],Ju[e]}}return``}var Xu=Yu(`animationend`),Zu=Yu(`transitionend`),Qu=!!(Xu&&Zu),$u=Xu||`animationend`,ed=Zu||`transitionend`;function td(e,t){return e?typeof e==`object`?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}var nd=(e=>{let t=(0,x.useRef)();function n(t){t&&(t.removeEventListener(ed,e),t.removeEventListener($u,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(ed,e),r.addEventListener($u,e),t.current=r)}return x.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),rd=In()?x.useLayoutEffect:x.useEffect,id=(()=>{let e=x.useRef(null);function t(){Ci.cancel(e.current)}function n(r,i=2){t();let a=Ci(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return x.useEffect(()=>()=>{t()},[]),[n,t]}),ad=[Bu,Vu,Hu,`end`],od=[Bu,Uu];function sd(e){return e===`active`||e===`end`}var cd=((e,t,n)=>{let[r,i]=Bn(zu),[a,o]=id();function s(){i(Bu,!0)}let c=t?od:ad;return rd(()=>{if(r!==`none`&&r!==`end`){let e=c[c.indexOf(r)+1],t=n(r);t===!1?i(e,!0):e&&a(n=>{function r(){n.isCanceled()||i(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,r]),x.useEffect(()=>()=>{o()},[]),[s,r]});function ld(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:h,onLeaveActive:g,onAppearEnd:_,onEnterEnd:v,onLeaveEnd:y,onVisibleChanged:b}){let[S,C]=x.useState(),[w,T]=Jn(Fu),[E,D]=x.useState([null,null]),O=w(),k=(0,x.useRef)(!1),A=(0,x.useRef)(null);function j(){return n()}let M=(0,x.useRef)(!1);function N(){T(Fu),D([null,null])}let P=Fn(e=>{let t=w();if(t===`none`)return;let n=j();if(e&&!e.deadline&&e.target!==n)return;let r=M.current,i;t===`appear`&&r?i=_?.(n,e):t===`enter`&&r?i=v?.(n,e):t===`leave`&&r&&(i=y?.(n,e)),r&&i!==!1&&N()}),[F]=nd(P),I=e=>{switch(e){case Iu:return{[Bu]:c,[Vu]:d,[Hu]:m};case Lu:return{[Bu]:l,[Vu]:f,[Hu]:h};case Ru:return{[Bu]:u,[Vu]:p,[Hu]:g};default:return{}}},L=x.useMemo(()=>I(O),[O]),[R,z]=cd(O,!e,e=>{if(e===`prepare`){let e=L[Bu];return e?e(j()):!1}return e in L&&D([L[e]?.(j(),null)||null,e]),e===`active`&&O!==`none`&&(F(j()),o>0&&(clearTimeout(A.current),A.current=setTimeout(()=>{P({deadline:!0})},o))),e===`prepared`&&N(),!0});M.current=sd(z);let B=(0,x.useRef)(null);rd(()=>{if(k.current&&B.current===t)return;C(t);let n=k.current;k.current=!0;let o;!n&&t&&i&&(o=Iu),n&&t&&r&&(o=Lu),(n&&!t&&a||!n&&s&&!t&&a)&&(o=Ru);let c=I(o);o&&(e||c.prepare)?(T(o),R()):T(Fu),B.current=t},[t]),(0,x.useEffect)(()=>{(O===`appear`&&!i||O===`enter`&&!r||O===`leave`&&!a)&&T(Fu)},[i,r,a]),(0,x.useEffect)(()=>()=>{k.current=!1,clearTimeout(A.current)},[]);let V=x.useRef(!1);(0,x.useEffect)(()=>{S&&(V.current=!0),S!==void 0&&O===`none`&&((V.current||S)&&b?.(S),V.current=!0)},[S,O]);let H=E[0];L.prepare&&z===`start`&&(H={transition:`none`,...H});let U=E[1];return[w,z,H,S??t,!k.current&&O===`none`&&e&&i?`NONE`:z===`start`||z===`active`?U===z:!0]}function ud(e){return e?.length<2}function dd(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=x.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=x.useContext(Nu),d=n(e,u),f=(0,x.useRef)();function p(){return Tr(f.current)}let[m,h,g,_,v]=ld(d,r,p,e),y=m(),b=x.useRef(_);_&&(b.current=!0);let S=x.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>m()!==Fu},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);x.useImperativeHandle(t,()=>S,[]);let C=x.useRef(0);v&&(C.current+=1);let w=x.useMemo(()=>{if(v===`NONE`)return null;let e,t={...l,visible:r};if(!o)e=null;else if(y===`none`)e=_?o({...t},f):!i&&b.current&&c?o({...t,className:c},f):a||!i&&!c?o({...t,style:{display:`none`}},f):null;else{let n;h===`prepare`?n=`prepare`:sd(h)?n=`active`:h===`start`&&(n=`start`);let r=td(s,`${y}-${n}`);e=o({...t,className:Z(td(s,y),{[r]:r&&n,[s]:typeof s==`string`}),style:g},f)}return e},[C.current]);if(ud(o)&&cr(w)){let e=lr(w);if(e!==f)return x.cloneElement(w,{ref:ir(e,f)})}return w});return r.displayName=`CSSMotion`,r}var fd=dd(Qu),pd=`keep`,md=`remove`,hd=`removed`;function gd(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function _d(e=[]){return e.map(gd)}function vd(e=[],t=[]){let n=[],r=0,i=t.length,a=_d(e),o=_d(t);a.forEach(e=>{let t=!1;for(let a=r;a<i;a+=1){let i=o[a];if(i.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map(e=>({...e,status:`add`}))),r=a),n.push({...i,status:pd}),r+=1,t=!0;break}}t||n.push({...e,status:md})}),r<i&&(n=n.concat(o.slice(r).map(e=>({...e,status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=pd)})}),n}function yd(){return yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yd.apply(this,arguments)}var bd=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function xd(e,t=fd){class n extends x.Component{static defaultProps={component:`div`};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:vd(t,_d(e)).filter(e=>{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?{...t,status:hd}:t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:i,onAllRemoved:a,...o}=this.props,s=n||x.Fragment,c={};return bd.forEach(e=>{c[e]=o[e],delete o[e]}),delete o.keys,x.createElement(s,o,e.map(({status:e,...n},a)=>{let o=e===`add`||e===`keep`;return x.createElement(t,yd({},c,{key:n.key,visible:o,eventProps:n,onVisibleChanged:e=>{i?.(e,{key:n.key}),e||this.removeKey(n.key)}}),ud(r)?e=>r({...e,index:a}):(e,t)=>r({...e,index:a},t))}))}}return n}var Sd=xd(Qu),Cd=fd,wd={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`},Td={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0};function Ed(e){"@babel/helpers - typeof";return Ed=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ed(e)}function Dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Od(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Dd(Object(n),!0).forEach(function(t){kd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kd(e,t,n){return t=Ad(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ad(e){var t=jd(e,`string`);return Ed(t)==`symbol`?t:String(t)}function jd(e,t){if(Ed(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ed(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Md=Od(Od({},Td),{},{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`,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`}),Nd={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},Pd={lang:{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`],...Md},timePickerLocale:{...Nd}},Fd=Pd,Id="${label} is not a valid ${type}",Ld={locale:`en`,Pagination:wd,DatePicker:Pd,TimePicker:Nd,Calendar:Fd,global:{placeholder:`Please select`,close:`Close`,sortable:`sortable`},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:Id,method:Id,array:Id,object:Id,number:Id,date:Id,boolean:Id,integer:Id,float:Id,regexp:Id,email:Id,url:Id,hex:Id},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}"}}},QRCode:{expired:`QR code expired`,refresh:`Refresh`,scanned:`Scanned`},ColorPicker:{presetEmpty:`Empty`,transparent:`Transparent`,singleColor:`Single`,gradientColor:`Gradient`}},Rd={...Ld.Modal},zd=[],Bd=()=>zd.reduce((e,t)=>({...e,...t}),Ld.Modal);function Vd(e){if(e){let t={...e};return zd.push(t),Rd=Bd(),()=>{zd=zd.filter(e=>e!==t),Rd=Bd()}}Rd={...Ld.Modal}}function Hd(){return Rd}var Ud=(0,x.createContext)(void 0),Wd=(e,t)=>{let n=x.useContext(Ud);return[x.useMemo(()=>{let r=t||Ld[e],i=n?.[e]??{};return{...typeof r==`function`?r():r,...i||{}}},[e,t,n]),x.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?Ld.locale:e},[n])]},Gd=`internalMark`,Kd=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;x.useEffect(()=>Vd(t?.Modal),[t]);let i=x.useMemo(()=>({...t,exist:!0}),[t]);return x.createElement(Ud.Provider,{value:i},n)};function qd(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])})}),t}var Jd=e=>e!=null,Yd=e=>typeof e==`number`&&!Number.isNaN(e),Xd=e=>typeof e==`string`,Zd=e=>typeof e==`object`&&!!e,Qd=e=>typeof e==`function`,$d=e=>Jd(e)&&Qd(e.then),ef=e=>typeof e!=`object`&&!Qd(e)||e===null,tf=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},nf={},rf=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(e===void 0&&t===void 0)return null;let n={closeIcon:typeof t!=`boolean`&&t!==null?t:void 0};return Zd(e)&&(n={...n,...e}),n},af=(e,t,n)=>e===!1?!1:e?qd(n,t,e):t===!1?!1:t?qd(n,t):n.closable?n:!1,of=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=_i(a,!0);return Jd(o)&&(r&&(o=r(o)),o=x.isValidElement(o)?x.cloneElement(o,{"aria-label":n,...o.props,...s}):x.createElement(`span`,{"aria-label":n,...s},o)),[o,s]},sf=(e,t,n=nf,r=`Close`)=>{let i=rf(e?.closable,e?.closeIcon),a=rf(t?.closable,t?.closeIcon),o={closeIcon:x.createElement(Eu,null),...n},s=af(i,a,o),c=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=of(s,o,r);return[!0,l,c,u]},cf=(e,t,n=nf)=>{let[r]=Wd(`global`,Ld.global);return x.useMemo(()=>sf(e,t,{closeIcon:x.createElement(Eu,null),...n},r.close),[e,t,n,r.close])},lf=()=>x.useReducer(e=>e+1,0),uf=(e,t)=>{let n={};return Zd(e)&&(n=e),typeof e==`boolean`&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},df=(e,t,n,r)=>(0,x.useMemo)(()=>{let i=uf(e,r),a=uf(t),o={blur:!1,...a,...i,closable:i.closable??r??a.closable??!0},s=o.blur?`${n}-mask-blur`:void 0;return[o.enabled!==!1,{mask:s},!!o.closable]},[e,t,n,r]),ff=(e,...t)=>{let n=e||{};return t.filter(Boolean).reduce((e,t)=>(Object.keys(t||{}).forEach(r=>{let i=n[r],a=t[r];if(Zd(i))if(Zd(a))e[r]=ff(i,e[r],a);else{let{_default:t}=i;t&&(e[r]=e[r]||{},e[r][t]=Z(e[r][t],a))}else e[r]=Z(e[r],a)}),e),{})},pf=(e,...t)=>x.useMemo(()=>ff.apply(void 0,[e].concat(t)),[e].concat(t)),mf=(...e)=>e.filter(Boolean).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),hf=(...e)=>x.useMemo(()=>mf.apply(void 0,e),[].concat(e)),gf=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{if(e!==`_default`){let r=t[e],i=n[e]||{};n[e]=r?gf(i,r):i}}),n},_f=(e,t)=>typeof e==`function`?e(t):e,vf=(e,t,n,r)=>{let i=e.map(e=>e?_f(e,n):void 0),a=t.map(e=>e?_f(e,n):void 0),o=pf.apply(void 0,[r].concat(ca(i))),s=hf.apply(void 0,ca(a));return x.useMemo(()=>r?[gf(o,r),gf(s,r)]:[o,s],[o,s,r])},yf=e=>{let[t,n]=(0,x.useState)(null);return[(0,x.useCallback)((r,i,a)=>{let o=t??r,s=Math.min(o||0,r),c=Math.max(o||0,r),l=i.slice(s,c+1).map(e),u=l.some(e=>!a.has(e)),d=[];return l.forEach(e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))}),n(u?c:null),d},[t]),n]},bf=e=>e===`horizontal`||e===`vertical`,xf=(e,t,n)=>(0,x.useMemo)(()=>{let r=bf(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:bf(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),Sf=()=>{let[e,t]=x.useState([]);return[e,x.useCallback(e=>(t(t=>[].concat(ca(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]},Cf=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){let r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),wf=(e,t)=>(0,x.useImperativeHandle)(e,()=>{let e=t(),{nativeElement:n}=e;return typeof Proxy<`u`?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):Cf(n,e)}),Tf=e=>{let t=x.useRef(e),[,n]=lf();return[()=>t.current,e=>{t.current=e,n()}]},Ef=x.createContext(void 0),Df=100,Of=Df*10;Of+Df;var kf={Modal:Df,Drawer:Df,Popover:Df,Popconfirm:Df,Tooltip:Df,Tour:Df,FloatButton:Df},Af={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},jf=e=>e in kf,Mf=(e,t)=>{let[,n]=Il(),r=x.useContext(Ef),i=jf(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+kf[e]:o+=Af[e],a=[r===void 0?t:o,o]}return a},Nf=(e,t,n,r,i)=>({background:e,border:`${Q(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),Pf=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:l,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:{...Rl(e),position:`relative`,display:`flex`,alignItems:`center`,padding:m,wordWrap:`break-word`,borderRadius:c,[`&${t}-rtl`]:{direction:`rtl`},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:`none`,fontSize:a,lineHeight:s},"&-title":{color:f},[`&${t}-motion-leave`]:{overflow:`hidden`,opacity:1,transition:[`max-height`,`opacity`,`padding-top`,`padding-bottom`,`margin-bottom`].map(e=>`${e} ${n} ${l}`).join(`, `)},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:`0 !important`,paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:`flex-start`,padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-title`]:{display:`block`,marginBottom:r,color:f,fontSize:o},[`${t}-description`]:{display:`block`,color:d}},[`${t}-banner`]:{marginBottom:0,border:`0 !important`,borderRadius:0}}},Ff=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:c,colorErrorBorder:l,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":Nf(i,r,n,e,t),"&-info":Nf(p,f,d,e,t),"&-warning":Nf(s,o,a,e,t),"&-error":{...Nf(u,l,c,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},If=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-actions":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:`hidden`,fontSize:a,lineHeight:Q(a),backgroundColor:`transparent`,border:`none`,cursor:`pointer`,...Hl(e),[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},Lf=ql(`Alert`,e=>[Pf(e),Ff(e),If(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),Rf=e=>{let{icon:t,type:n,className:r,style:i,successIcon:a,infoIcon:o,warningIcon:s,errorIcon:c}=e,l={success:a??x.createElement(bu,null),info:o??x.createElement(Mu,null),error:c??x.createElement(Cu,null),warning:s??x.createElement(ku,null)};return x.createElement(`span`,{className:r,style:i},t??l[n])},zf=e=>{let{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a,className:o,style:s}=e,c=r===!0||r===void 0?x.createElement(Eu,null):r;return t?x.createElement(`button`,{type:`button`,onClick:i,className:Z(`${n}-close-icon`,o),tabIndex:0,style:s,...a},c):null},Bf=x.forwardRef((e,t)=>{let{description:n,prefixCls:r,message:i,title:a,banner:o,className:s,rootClassName:c,style:l,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:m,closable:h,closeText:g,closeIcon:_,action:v,id:y,styles:b,classNames:S,...C}=e,w=a??i,[T,E]=x.useState(!1),D=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:D.current}));let{getPrefixCls:O,direction:k,closable:A,closeIcon:j,className:M,style:N,classNames:P,styles:F,successIcon:I,infoIcon:L,warningIcon:R,errorIcon:z}=ma(`alert`),B=O(`alert`,r),[V,H]=Lf(B),{onClose:U,afterClose:W}=Zd(h)?h:{},G=t=>{E(!0),(U??e.onClose)?.(t)},K=x.useMemo(()=>e.type===void 0?o?`warning`:`info`:e.type,[e.type,o]),ee=x.useMemo(()=>Zd(h)&&h.closeIcon||g?!0:typeof h==`boolean`?h:_!==!1&&Jd(_)?!0:!!A,[g,_,h,A]),te=o&&m===void 0?!0:m,q={...e,prefixCls:B,type:K,showIcon:te,closable:ee},[J,Y]=vf([P,S],[F,b],{props:q}),ne=Z(B,`${B}-${K}`,{[`${B}-with-description`]:!!n,[`${B}-no-icon`]:!te,[`${B}-banner`]:!!o,[`${B}-rtl`]:k===`rtl`},M,s,c,J.root,H,V),X=_i(C,{aria:!0,data:!0}),re=x.useMemo(()=>Zd(h)&&h.closeIcon?h.closeIcon:g||(_===void 0?Zd(A)&&A.closeIcon?A.closeIcon:j:_),[_,h,A,g,j]),ie=x.useMemo(()=>{let e=h??A;return Zd(e)?_i(e,{data:!0,aria:!0}):{}},[h,A]);return x.createElement(Cd,{visible:!T,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:W??p},({className:t,style:r},i)=>x.createElement(`div`,{id:y,ref:ir(D,i),"data-show":!T,className:Z(ne,t),style:{...Y.root,...N,...l,...r},onMouseEnter:u,onMouseLeave:d,onClick:f,role:`alert`,...X},te?x.createElement(Rf,{className:Z(`${B}-icon`,J.icon),style:Y.icon,description:n,icon:e.icon,prefixCls:B,type:K,successIcon:I,infoIcon:L,warningIcon:R,errorIcon:z}):null,x.createElement(`div`,{className:Z(`${B}-section`,J.section),style:Y.section},w?x.createElement(`div`,{className:Z(`${B}-title`,J.title),style:Y.title},w):null,n?x.createElement(`div`,{className:Z(`${B}-description`,J.description),style:Y.description},n):null),v?x.createElement(`div`,{className:Z(`${B}-actions`,J.actions),style:Y.actions},v):null,x.createElement(zf,{className:J.close,style:Y.close,isClosable:ee,prefixCls:B,closeIcon:re,handleClose:G,ariaProps:ie})))});function Vf(e,t,n){return t=Gs(t),qs(e,Ks()?Reflect.construct(t,n||[],Gs(e).constructor):t.apply(e,n))}var Hf=function(e){function t(){var e;return zs(this,t),e=Vf(this,t,arguments),e.state={error:void 0,info:{}},e}return Ws(t,e),Vs(t,[{key:`componentDidCatch`,value:function(e,t){this.setState({error:e,info:t})}},{key:`render`,value:function(){let{message:e,title:t,description:n,id:r,children:i}=this.props,{error:a,info:o}=this.state,s=t??e,c=o?.componentStack||null,l=Jd(s)?s:a?.toString(),u=Jd(n)?n:c;return a?x.createElement(Bf,{id:r,type:`error`,title:l,description:x.createElement(`pre`,{style:{fontSize:`0.9em`,overflowX:`auto`}},u)}):i}}])}(x.PureComponent),Uf=Bf;Uf.ErrorBoundary=Hf;var Wf=e=>typeof e==`object`&&!!e&&e.nodeType===1,Gf=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,Kf=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return Gf(n.overflowY,t)||Gf(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},qf=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,Jf=e=>e.parentElement??(e.getRootNode().host||null),Yf=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!Wf(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;Wf(u)&&s(u);){if(u=Jf(u),u===c){l.push(u);break}u!=null&&u===document.body&&Kf(u)&&!Kf(document.documentElement)||u!=null&&Kf(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:x,left:S}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&(t===c&&!Kf(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?qf(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:qf(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?qf(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:qf(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=I===0?0:Math.max(0,Math.min(n+j/I,t.scrollHeight-a/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},Xf=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function Zf(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(Yf(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of Yf(e,Xf(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var Qf=e=>Jd(e)&&e===e.window,$f=e=>{if(typeof window>`u`)return 0;let t=0;return Qf(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Qf(e)&&typeof t!=`number`&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function ep(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function tp(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=$f(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=ep(t>i?i:t,o,e,i);Qf(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t<i?c=Ci(l):typeof r==`function`&&r()};return c=Ci(l),()=>{Ci.cancel(c)}}var np=e=>`${e}-css-var`,rp=(0,x.createContext)(void 0),ip=x.createContext(null),ap=!1;function op(e){return typeof e==`boolean`&&(ap=e),ap}var sp=[];function cp(e,t){let[n]=x.useState(()=>In()?document.createElement(`div`):null),r=x.useRef(!1),i=x.useContext(ip),[a,o]=x.useState(sp),s=i||(r.current?void 0:e=>{o(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function l(){n.parentElement?.removeChild(n),r.current=!1}return Rn(()=>(e?i?i(c):c():l(),l),[e]),Rn(()=>{a.length&&(a.forEach(e=>e()),o(sp))},[a]),[n,s]}function lp(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var up=`rc-util-locker-${Date.now()}`,dp=0;function fp(e){let t=!!e,[n]=x.useState(()=>(dp+=1,`${up}_${dp}`));Rn(()=>{if(t){let e=Qr(document.body).width;Cr(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
${lp()?`width: calc(100% - ${e}px);`:``}
|
||
}`,n)}else xr(n);return()=>{xr(n)}},[t,n])}var pp=[],mp=200,hp=0,gp=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-hp<mp)return;let t=pp.length;for(let n=t-1;n>=0;--n)pp[n].onEsc({top:n===t-1,event:e})}},_p=()=>{hp=Date.now()};function vp(){window.addEventListener(`keydown`,gp),window.addEventListener(`compositionend`,_p)}function yp(){pp.length===0&&(window.removeEventListener(`keydown`,gp),window.removeEventListener(`compositionend`,_p))}function bp(e,t){let n=Kn(),r=Fn(t),i=()=>{pp.find(e=>e.id===n)||pp.push({id:n,onEsc:r})},a=()=>{pp=pp.filter(e=>e.id!==n)};(0,x.useMemo)(()=>{e?i():e||a()},[e]),(0,x.useEffect)(()=>{if(e)return i(),vp(),()=>{a(),yp()}},[e])}var xp=e=>e===!1?!1:!In()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,Sp=x.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,debug:a,autoDestroy:o=!0,children:s,onEsc:c}=e,[l,u]=x.useState(n),d=l||n;x.useEffect(()=>{(o||n)&&u(n)},[n,o]);let[f,p]=x.useState(()=>xp(i));x.useEffect(()=>{let e=xp(i);p(()=>e??null)});let[m,h]=cp(d&&!f,a),g=f??m;fp(r&&n&&In()&&(g===m||g===document.body)),bp(n,c);let _=null;s&&or(s)&&t&&(_=lr(s));let v=ar(_,t);if(!d||!In()||f===void 0)return null;let y=g===!1||op(),b=s;return t&&(b=x.cloneElement(s,{ref:v})),x.createElement(ip.Provider,{value:h},y?b:(0,Ii.createPortal)(b,g))});function Cp(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=x.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return x.createElement(`div`,{ref:u,className:Z(`${t}-arrow`,a),style:{...d,...s}},o)}function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(this,arguments)}function Tp(e){let{prefixCls:t,open:n,zIndex:r,mask:i,motion:a,mobile:o}=e;return i?x.createElement(Cd,wp({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>x.createElement(`div`,{style:{zIndex:r},className:Z(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var Ep=x.memo(({children:e})=>e,(e,t)=>t.cache);function Dp(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&e[0][1]===`r`,u=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),u?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Op.apply(this,arguments)}var kp=x.forwardRef((e,t)=>{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:m,arrowPos:h,align:g,motion:_,maskMotion:v,mobile:y,forceRender:b,getPopupContainer:S,autoDestroy:C,portal:w,children:T,zIndex:E,onMouseEnter:D,onMouseLeave:O,onPointerEnter:k,onPointerDownCapture:A,ready:j,offsetX:M,offsetY:N,offsetR:P,offsetB:F,onAlign:I,onPrepare:L,onResize:R,stretch:z,targetWidth:B,targetHeight:V}=e,H=typeof r==`function`?r():r,U=l||u,W=!!y,[G,K,ee]=x.useMemo(()=>y?[y.mask,y.maskMotion,y.motion]:[p,v,_],[y,p,v,_]),te=S?.length>0,[q,J]=x.useState(!S||!te);Rn(()=>{!q&&te&&s&&J(!0)},[q,te,s]);let Y=Fn((e,t)=>{R?.(e,t),I()}),ne=Dp(W,j,l,g,P,F,M,N);if(!q)return null;let X={};return z&&(z.includes(`height`)&&V?X.height=V:z.includes(`minHeight`)&&V&&(X.minHeight=V),z.includes(`width`)&&B?X.width=B:z.includes(`minWidth`)&&B&&(X.minWidth=B)),l||(X.pointerEvents=`none`),x.createElement(w,{open:b||U,getContainer:S&&(()=>S(s)),autoDestroy:C,onEsc:n},x.createElement(Tp,{prefixCls:a,open:l,zIndex:E,mask:G,motion:K,mobile:W}),x.createElement(ta,{onResize:Y,disabled:!l},e=>x.createElement(Cd,Op({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:`${a}-hidden`},ee,{onAppearPrepare:L,onEnterPrepare:L,visible:l,onVisibleChanged:e=>{_?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{let c=Z(a,n,i,{[`${a}-mobile`]:W});return x.createElement(`div`,{ref:ir(e,t,s),className:c,style:{"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`,...ne,...X,...r,boxSizing:`border-box`,zIndex:E,...o},onMouseEnter:D,onMouseLeave:O,onPointerEnter:k,onClick:f,onPointerDownCapture:A},m&&x.createElement(Cp,{prefixCls:a,arrow:m,arrowPos:h,align:g}),x.createElement(Ep,{cache:!l&&!d},H))})),T)}),Ap=x.createContext(null),jp=x.createContext(null);function Mp(e){return e?Array.isArray(e)?e:[e]:[]}function Np(e,t,n){return x.useMemo(()=>{let r=Mp(t??e),i=Mp(n??e),a=new Set(r),o=new Set(i);return a.has(`hover`)&&!a.has(`click`)&&a.add(`touch`),o.has(`hover`)&&!o.has(`click`)&&o.add(`touch`),[a,o]},[e,t,n])}function Pp(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function Fp(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){let o=a[n];if(Pp(e[o]?.points,i,r))return`${t}-placement-${o}`}return``}function Ip(e){return e.ownerDocument.defaultView}function Lp(e){let t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];for(;n;){let{overflowX:e,overflowY:i,overflow:a}=Ip(n).getComputedStyle(n);[e,i,a].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function Rp(e,t=1){return Number.isNaN(e)?t:e}function zp(e){return Rp(parseFloat(e),0)}function Bp(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=Ip(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=zp(i),m=zp(a),h=zp(o),g=zp(s),_=Rp(Math.round(c.width/d*1e3)/1e3),v=Rp(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=zp(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}function Vp(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Hp(e,t){let[n,r]=t||[];return[Vp(e.width,n),Vp(e.height,r)]}function Up(e=``){return[e[0],e[1]]}function Wp(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function Gp(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function Kp(e){return e.join(``)}function qp(e,t,n,r,i,a,o,s){let[c,l]=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=x.useRef(0),d=x.useMemo(()=>!t||s?[]:Lp(t),[t]),f=x.useRef({});e||(f.current={});let p=Fn(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,c=Ip(e),{position:u}=c.getComputedStyle(e),p=e.style.left,m=e.style.top,h=e.style.right,g=e.style.bottom,_=e.style.overflow,v={...i[r],...a},y=s.createElement(`div`);e.parentElement?.appendChild(y),y.style.left=`${e.offsetLeft}px`,y.style.top=`${e.offsetTop}px`,y.style.position=u,y.style.height=`${e.offsetHeight}px`,y.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let b;if(Array.isArray(n))b={x:n[0],y:n[1],width:0,height:0};else{let e=n.getBoundingClientRect();e.x=e.x??e.left,e.y=e.y??e.top,b={x:e.x,y:e.y,width:e.width,height:e.height}}let x=e.getBoundingClientRect(),{height:S,width:C}=c.getComputedStyle(e);x.x=x.x??x.left,x.y=x.y??x.top;let{clientWidth:w,clientHeight:T,scrollWidth:E,scrollHeight:D,scrollTop:O,scrollLeft:k}=s.documentElement,A=x.height,j=x.width,M=b.height,N=b.width,P={left:0,top:0,right:w,bottom:T},F={left:-k,top:-O,right:E-k,bottom:D-O},{htmlRegion:I}=v,L=`visible`,R=`visibleFirst`;I!==`scroll`&&I!==R&&(I=L);let z=I===R,B=Bp(F,d),V=Bp(P,d),H=I===L?V:B,U=z?V:H;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let W=e.getBoundingClientRect();e.style.left=p,e.style.top=m,e.style.right=h,e.style.bottom=g,e.style.overflow=_,e.parentElement?.removeChild(y);let G=Rp(Math.round(j/parseFloat(C)*1e3)/1e3),K=Rp(Math.round(A/parseFloat(S)*1e3)/1e3);if(G===0||K===0||wr(n)&&!Er(n))return;let{offset:ee,targetOffset:te}=v,[q,J]=Hp(x,ee),[Y,ne]=Hp(b,te);b.x-=Y,b.y-=ne;let[X,re]=v.points||[],ie=Up(re),ae=Up(X),oe=Wp(b,ie),se=Wp(x,ae),ce={...v},le=[ae,ie],ue=oe.x-se.x+q,de=oe.y-se.y+J;function fe(e,t,n=H){let r=x.x+e,i=x.y+t,a=r+j,o=i+A,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let pe=fe(ue,de),me=fe(ue,de,V),he=Wp(b,[`t`,`l`]),ge=Wp(x,[`t`,`l`]),_e=Wp(b,[`b`,`r`]),ve=Wp(x,[`b`,`r`]),{adjustX:ye,adjustY:be,shiftX:xe,shiftY:Se}=v.overflow||{},Ce=e=>typeof e==`boolean`?e:e>=0,we,Te,Ee,De;function Oe(){we=x.y+de,Te=we+A,Ee=x.x+ue,De=Ee+j}Oe();let ke=Ce(be),Ae=ae[0]===ie[0];if(ke&&ae[0]===`t`&&(Te>U.bottom||f.current.bt)){let e=de;Ae?e-=A-M:e=he.y-ve.y-J;let t=fe(ue,e),n=fe(ue,e,V);t>pe||t===pe&&(!z||n>=me)?(f.current.bt=!0,de=e,J=-J,le=[Gp(le[0],0),Gp(le[1],0)]):f.current.bt=!1}if(ke&&ae[0]===`b`&&(we<U.top||f.current.tb)){let e=de;Ae?e+=A-M:e=_e.y-ge.y-J;let t=fe(ue,e),n=fe(ue,e,V);t>pe||t===pe&&(!z||n>=me)?(f.current.tb=!0,de=e,J=-J,le=[Gp(le[0],0),Gp(le[1],0)]):f.current.tb=!1}let je=Ce(ye),Me=ae[1]===ie[1];if(je&&ae[1]===`l`&&(De>U.right||f.current.rl)){let e=ue;Me?e-=j-N:e=he.x-ve.x-q;let t=fe(e,de),n=fe(e,de,V);t>pe||t===pe&&(!z||n>=me)?(f.current.rl=!0,ue=e,q=-q,le=[Gp(le[0],1),Gp(le[1],1)]):f.current.rl=!1}if(je&&ae[1]===`r`&&(Ee<U.left||f.current.lr)){let e=ue;Me?e+=j-N:e=_e.x-ge.x-q;let t=fe(e,de),n=fe(e,de,V);t>pe||t===pe&&(!z||n>=me)?(f.current.lr=!0,ue=e,q=-q,le=[Gp(le[0],1),Gp(le[1],1)]):f.current.lr=!1}ce.points=[Kp(le[0]),Kp(le[1])],Oe();let Ne=xe===!0?0:xe;typeof Ne==`number`&&(Ee<V.left&&(ue-=Ee-V.left-q,b.x+N<V.left+Ne&&(ue+=b.x-V.left+N-Ne)),De>V.right&&(ue-=De-V.right-q,b.x>V.right-Ne&&(ue+=b.x-V.right+Ne)));let Pe=Se===!0?0:Se;typeof Pe==`number`&&(we<V.top&&(de-=we-V.top-J,b.y+M<V.top+Pe&&(de+=b.y-V.top+M-Pe)),Te>V.bottom&&(de-=Te-V.bottom-J,b.y>V.bottom-Pe&&(de+=b.y-V.bottom+Pe)));let Fe=x.x+ue,Ie=Fe+j,Le=x.y+de,Re=Le+A,ze=b.x,Be=ze+N,Ve=b.y,He=Ve+M,Ue=(Math.max(Fe,ze)+Math.min(Ie,Be))/2-Fe,We=(Math.max(Le,Ve)+Math.min(Re,He))/2-Le;o?.(t,ce);let Ge=W.right-x.x-(ue+x.width),Ke=W.bottom-x.y-(de+x.height);G===1&&(ue=Math.floor(ue),Ge=Math.floor(Ge)),K===1&&(de=Math.floor(de),Ke=Math.floor(Ke)),l({ready:!0,offsetX:ue/G,offsetY:de/K,offsetR:Ge/G,offsetB:Ke/K,arrowX:Ue/G,arrowY:We/K,scaleX:G,scaleY:K,align:ce})}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},h=()=>{l(e=>({...e,ready:!1}))};return Rn(h,[r]),Rn(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function Jp(){let e=x.useRef(null),t=()=>{e.current&&=(clearTimeout(e.current),null)};return x.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function Yp(e,t,n,r,i){Rn(()=>{if(e&&t&&n){let e=t,a=n,o=Lp(e),s=Lp(a),c=Ip(a),l=new Set([c,...o,...s]);function u(){r(),i()}return l.forEach(e=>{e.addEventListener(`scroll`,u,{passive:!0})}),c.addEventListener(`resize`,u,{passive:!0}),r(),()=>{l.forEach(e=>{e.removeEventListener(`scroll`,u),c.removeEventListener(`resize`,u)})}}},[e,t,n])}function Xp(e,t,n,r,i,a,o,s){let c=x.useRef(e);c.current=e;let l=x.useRef(!1);x.useEffect(()=>{if(t&&r&&(!i||a)){let e=()=>{l.current=!1},t=e=>{c.current&&!o(e.composedPath?.()?.[0]||e.target)&&!l.current&&s(!1)},i=Ip(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=Wr(n);return a&&(a.addEventListener(`mousedown`,t,!0),a.addEventListener(`contextmenu`,t,!0)),()=>{i.removeEventListener(`pointerdown`,e,!0),i.removeEventListener(`mousedown`,t,!0),i.removeEventListener(`contextmenu`,t,!0),a&&(a.removeEventListener(`mousedown`,t,!0),a.removeEventListener(`contextmenu`,t,!0))}}},[t,n,r,i,a]);function u(){l.current=!0}return u}function Zp(){let[e,t]=x.useState(null),[n,r]=x.useState(!1),[i,a]=x.useState(!1),o=x.useRef(null);return[Fn(e=>{e===!1?(o.current=null,r(!1)):i&&n?o.current=e:(r(!0),t(e),o.current=null,n||a(!0))}),n,e,Fn(e=>{e?(a(!1),o.current&&=(t(o.current),null)):(a(!1),o.current=null)})]}function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qp.apply(this,arguments)}var eee=e=>{let{prefixCls:t,isMobile:n,ready:r,open:i,align:a,offsetR:o,offsetB:s,offsetX:c,offsetY:l,arrowPos:u,popupSize:d,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:m}=e,h=`${t}-unique-container`,[g,_]=x.useState(!1),v=Dp(n,r,i,a,o,s,c,l),y=x.useRef(v);r&&(y.current=v);let b={};return d&&(b.width=d.width,b.height=d.height),x.createElement(Cd,Qp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${h}-hidden`},f,{visible:i,onVisibleChanged:e=>{_(e)}}),({className:e,style:t})=>{let n=Z(h,e,p,{[`${h}-visible`]:g});return x.createElement(`div`,{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...y.current,...b,...t,...m}})})},$p=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=Zp(),o=x.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,c]=x.useState(null),[l,u]=x.useState(null),d=x.useRef(null),f=Fn(e=>{d.current=e,wr(e)&&s!==e&&c(e)}),p=x.useRef(null),m=Jp(),h=Fn((e,t)=>{p.current=t,m(()=>{n(e)},e.delay)}),g=e=>{m(()=>{p.current?.()||n(!1)},e)},_=Fn(e=>{a(e)}),[v,y,b,S,C,w,T,,,E,D]=qp(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),O=x.useMemo(()=>o?Z(Fp(o.builtinPlacements||{},o.prefixCls||``,E,!1),o.getPopupClassNameFromAlign?.(E)):``,[E,o?.getPopupClassNameFromAlign,o?.builtinPlacements,o?.prefixCls]),k=x.useMemo(()=>({show:h,hide:g}),[]);x.useEffect(()=>{D()},[o?.target]);let A=Fn(()=>(D(),Promise.resolve())),j=x.useRef({}),M=x.useContext(Ap),N=x.useMemo(()=>({registerSubPopup:(e,t)=>{j.current[e]=t,M?.registerSubPopup(e,t)}}),[M]),P=o?.prefixCls;return x.createElement(jp.Provider,{value:k},e,o&&x.createElement(Ap.Provider,{value:N},x.createElement(kp,{ref:f,portal:Sp,onEsc:o.onEsc,prefixCls:P,popup:o.popup,className:Z(o.popupClassName,O,`${P}-unique-controlled`),style:o.popupStyle,target:o.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:_,ready:v,offsetX:y,offsetY:b,offsetR:S,offsetB:C,onAlign:D,onPrepare:A,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:w,y:T},align:E,zIndex:o.zIndex,mask:o.mask,arrow:o.arrow,motion:o.popupMotion,maskMotion:o.maskMotion,getPopupContainer:o.getPopupContainer},x.createElement(eee,{prefixCls:P,isMobile:!1,ready:v,open:r,align:E,offsetR:S,offsetB:C,offsetX:y,offsetY:b,arrowPos:{x:w,y:T},popupSize:l,motion:o.popupMotion,uniqueContainerClassName:Z(o.uniqueContainerClassName,O),uniqueContainerStyle:o.uniqueContainerStyle}))))};function em(e=Sp){return x.forwardRef((t,n)=>{let{prefixCls:r=`rc-trigger-popup`,children:i,action:a=`hover`,showAction:o,hideAction:s,popupVisible:c,defaultPopupVisible:l,onOpenChange:u,afterOpenChange:d,onPopupVisibleChange:f,afterPopupVisibleChange:p,mouseEnterDelay:m,mouseLeaveDelay:h=.1,focusDelay:g,blurDelay:_,mask:v,maskClosable:y=!0,getPopupContainer:b,forceRender:S,autoDestroy:C,popup:w,popupClassName:T,uniqueContainerClassName:E,uniqueContainerStyle:D,popupStyle:O,popupPlacement:k,builtinPlacements:A={},popupAlign:j,zIndex:M,stretch:N,getPopupClassNameFromAlign:P,fresh:F,unique:I,alignPoint:L,onPopupClick:R,onPopupAlign:z,arrow:B,popupMotion:V,maskMotion:H,mobile:U,...W}=t,G=C||!1,K=c===void 0,ee=!!U,te=x.useRef({}),q=x.useContext(Ap),J=x.useMemo(()=>({registerSubPopup:(e,t)=>{te.current[e]=t,q?.registerSubPopup(e,t)}}),[q]),Y=x.useContext(jp),ne=Kn(),[X,re]=x.useState(null),ie=x.useRef(null),ae=Fn(e=>{ie.current=e,wr(e)&&X!==e&&re(e),q?.registerSubPopup(ne,e)}),[oe,se]=x.useState(null),ce=x.useRef(null),le=Fn(e=>{let t=Tr(e);wr(t)&&oe!==t&&(se(t),ce.current=t)}),ue={},de=Fn(e=>{let t=oe;return t?.contains(e)||Wr(t)?.host===e||e===t||X?.contains(e)||Wr(X)?.host===e||e===X||Object.values(te.current).some(t=>t?.contains(e)||e===t)}),fe=B?{...B===!0?{}:B}:null,[pe,me]=Vn(l||!1,c),he=pe||!1,ge=x.useMemo(()=>{let e=typeof i==`function`?i({open:he}):i;return x.Children.only(e)},[i,he]),_e=ge?.props||{},ve=Fn(()=>he),ye=Fn((e=0)=>({popup:w,target:oe,delay:e,prefixCls:r,popupClassName:T,uniqueContainerClassName:E,uniqueContainerStyle:D,popupStyle:O,popupPlacement:k,builtinPlacements:A,popupAlign:j,zIndex:M,mask:v,maskClosable:y,popupMotion:V,maskMotion:H,arrow:fe,getPopupContainer:b,getPopupClassNameFromAlign:P,id:ne,onEsc:we}));Rn(()=>{Y&&I&&oe&&!K&&!q&&(he?Y.show(ye(m),ve):Y.hide(h))},[he,oe]);let be=x.useRef(he);be.current=he;let xe=Fn(e=>{(0,Ii.flushSync)(()=>{he!==e&&(me(e),u?.(e),f?.(e))})}),Se=Jp(),Ce=(e,t=0)=>{if(c!==void 0){Se(()=>{xe(e)},t);return}if(Y&&I&&K&&!q){e?Y.show(ye(t),ve):Y.hide(t);return}Se(()=>{xe(e)},t)};function we({top:e}){e&&Ce(!1)}let[Te,Ee]=x.useState(!1);Rn(e=>{(!e||he)&&Ee(!0)},[he]);let[De,Oe]=x.useState(null),[ke,Ae]=x.useState(null),je=e=>{Ae([e.clientX,e.clientY])},[Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He]=qp(he,X,L&&ke!==null?ke:oe,k,A,j,z,ee),[Ue,We]=Np(a,o,s),Ge=Ue.has(`click`),Ke=We.has(`click`)||We.has(`contextMenu`),qe=Fn(()=>{Te||He()});Yp(he,oe,X,qe,()=>{be.current&&L&&Ke&&Ce(!1)}),Rn(()=>{qe()},[ke,k]),Rn(()=>{he&&!A?.[k]&&qe()},[JSON.stringify(j)]);let Je=x.useMemo(()=>Z(Fp(A,r,Ve,L),P?.(Ve)),[Ve,P,A,r,L]);x.useImperativeHandle(n,()=>({nativeElement:ce.current,popupElement:ie.current,forceAlign:qe}));let[Ye,Xe]=x.useState(0),[Ze,Qe]=x.useState(0),$e=()=>{if(N&&oe){let e=oe.getBoundingClientRect();Xe(e.width),Qe(e.height)}},et=()=>{$e(),qe()},tt=e=>{Ee(!1),He(),d?.(e),p?.(e)},nt=()=>new Promise(e=>{$e(),Oe(()=>e)});Rn(()=>{De&&(He(),De(),Oe(null))},[De]);function rt(e,t,n,r,i){ue[e]=(a,...o)=>{(!i||!i())&&(r?.(a),Ce(t,n)),_e[e]?.(a,...o)}}let it=Ue.has(`touch`),at=We.has(`touch`),ot=x.useRef(!1);(it||at)&&(ue.onTouchStart=(...e)=>{ot.current=!0,be.current&&at?Ce(!1):!be.current&&it&&Ce(!0),_e.onTouchStart?.(...e)}),(Ge||Ke)&&(ue.onClick=(e,...t)=>{be.current&&Ke?Ce(!1):!be.current&&Ge&&(je(e),Ce(!0)),_e.onClick?.(e,...t),ot.current=!1});let st=Xp(he,Ke||at,oe,X,v,y,de,Ce),ct=Ue.has(`hover`),lt=We.has(`hover`),ut,dt,ft=()=>ot.current;if(ct){let e=e=>{je(e)};rt(`onMouseEnter`,!0,m,e,ft),rt(`onPointerEnter`,!0,m,e,ft),ut=e=>{(he||Te)&&X?.contains(e.target)&&Ce(!0,m)},L&&(ue.onMouseMove=e=>{_e.onMouseMove?.(e)})}lt&&(rt(`onMouseLeave`,!1,h,void 0,ft),rt(`onPointerLeave`,!1,h,void 0,ft),dt=()=>{Ce(!1,h)}),Ue.has(`focus`)&&rt(`onFocus`,!0,g),We.has(`focus`)&&rt(`onBlur`,!1,_),Ue.has(`contextMenu`)&&(ue.onContextMenu=(e,...t)=>{be.current&&We.has(`contextMenu`)?Ce(!1):(je(e),Ce(!0)),e.preventDefault(),_e.onContextMenu?.(e,...t)});let pt=x.useRef(!1);pt.current||=S||he||Te;let mt={..._e,...ue},ht={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{W[e]&&(ht[e]=(...t)=>{mt[e]?.(...t),W[e](...t)})});let gt={x:Le,y:Re};Yi(he,oe,et);let _t=ar(le,lr(ge)),vt=x.cloneElement(ge,{...mt,...ht,ref:_t});return x.createElement(x.Fragment,null,vt,pt.current&&(!Y||!I)&&x.createElement(Ap.Provider,{value:J},x.createElement(kp,{portal:e,ref:ae,prefixCls:r,popup:w,className:Z(T,!ee&&Je),style:O,target:oe,onMouseEnter:ut,onMouseLeave:dt,onPointerEnter:ut,zIndex:M,open:he,keepDom:Te,fresh:F,onClick:R,onPointerDownCapture:st,mask:v,motion:V,maskMotion:H,onVisibleChanged:tt,onPrepare:nt,forceRender:S,autoDestroy:G,getPopupContainer:b,onEsc:we,align:Ve,arrow:fe,arrowPos:gt,ready:Me,offsetX:Ne,offsetY:Pe,offsetR:Fe,offsetB:Ie,onAlign:qe,stretch:N,targetWidth:Ye/ze,targetHeight:Ze/Be,mobile:U})))})}var tm=em(Sp);function nm(e){return e&&x.isValidElement(e)&&e.type===x.Fragment}var rm=(e,t,n)=>x.isValidElement(e)?x.cloneElement(e,Qd(n)?n(e.props||{}):n):t;function im(e,t){return rm(e,e,t)}var am=({children:e})=>{let{getPrefixCls:t}=x.useContext(da),n=t();return x.isValidElement(e)?x.createElement(Cd,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>im(e,e=>({className:Z(e.className,n),style:{...e.style,...t}}))):e},om=[null,null];function sm(e){if(om[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),om[0]=e,om[1]=t}return om[1]}var cm=({children:e})=>x.createElement($p,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=typeof r==`function`?r():r,a=sm(n);return{...e,getPopupContainer:null,arrow:!1,popup:x.createElement(am,{key:t},i),builtinPlacements:a}}},e),lm=x.createContext(!1),um=({children:e,disabled:t})=>{let n=x.useContext(lm);return x.createElement(lm.Provider,{value:t??n},e)},dm=x.createContext(void 0),fm=({children:e,size:t})=>{let n=x.useContext(dm);return x.createElement(dm.Provider,{value:t||n},e)};function pm(){return{componentDisabled:(0,x.useContext)(lm),componentSize:(0,x.useContext)(dm)}}function mm(e,t,n){Bi(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?{...Dl,hashed:t?.hashed??Dl.hashed,cssVar:t?.cssVar}:t,a=(0,x.useId)();return qn(()=>{if(!e)return t;let o={...i.components};Object.keys(e.components||{}).forEach(t=>{o[t]={...o[t],...e.components[t]}});let s=`css-var-${a.replace(/:/g,``)}`,c={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||s};return{...i,...r,token:{...i.token,...r.token},components:o,cssVar:c}},[r,i],(e,t)=>e.some((e,n)=>{let r=t[n];return!ci(e,r,!0)}))}var hm=x.createContext(!0);function gm(e){let t=x.useContext(hm),{children:n}=e,[,r]=Il(),{motion:i}=r,a=x.useRef(!1);return a.current||=t!==i,a.current?x.createElement(hm.Provider,{value:i},x.createElement(Pu,{motion:i},n)):n}var _m=()=>null,vm=({iconPrefixCls:e,csp:t})=>(Ql(e,t),null),ym=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],bm,xm,Sm,Cm;function wm(){return bm||`ant`}function Tm(){return xm||`anticon`}var Em=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(bm=t),n!==void 0&&(xm=n),`holderRender`in e&&(Cm=i),r&&(Sm=r)},Dm=()=>({getPrefixCls:(e,t)=>t||(e?`${wm()}-${e}`:wm()),getIconPrefixCls:Tm,getRootPrefixCls:()=>bm||wm(),getTheme:()=>Sm,holderRender:Cm}),Om=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,form:c,locale:l,componentSize:u,direction:d,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:_,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:S,componentDisabled:C,segmented:w,statistic:T,spin:E,calendar:D,carousel:O,cascader:k,collapse:A,typography:j,checkbox:M,descriptions:N,divider:P,drawer:F,skeleton:I,steps:L,image:R,layout:z,list:B,mentions:V,modal:H,progress:U,result:W,slider:G,breadcrumb:K,masonry:ee,menu:te,pagination:q,input:J,textArea:Y,otp:ne,empty:X,badge:re,radio:ie,rate:ae,ribbon:oe,switch:se,transfer:ce,avatar:le,message:ue,tag:de,table:fe,card:pe,cardMeta:me,tabs:he,timeline:ge,timePicker:_e,upload:ve,notification:ye,tree:be,colorPicker:xe,datePicker:Se,rangePicker:Ce,flex:we,wave:Te,dropdown:Ee,warning:De,tour:Oe,tooltip:ke,popover:Ae,popconfirm:je,qrcode:Me,floatButton:Ne,floatButtonGroup:Pe,variant:Fe,inputNumber:Ie,treeSelect:Le,watermark:Re}=e,ze=x.useMemo(()=>Zd(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&l.default?.locale?l.default:l,[l]),Be=x.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||y.getPrefixCls(``);return t?`${i}-${t}`:i},[y.getPrefixCls,e.prefixCls]),Ve=b||y.iconPrefixCls||`anticon`,He=n||y.csp,Ue=mm(S,y.theme,{prefixCls:Be(``)}),We={csp:He,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:ze||v,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:g??h,popupOverflow:_,getPrefixCls:Be,iconPrefixCls:Ve,theme:Ue,segmented:w,statistic:T,spin:E,calendar:D,carousel:O,cascader:k,collapse:A,typography:j,checkbox:M,descriptions:N,divider:P,drawer:F,skeleton:I,steps:L,image:R,input:J,textArea:Y,otp:ne,layout:z,list:B,mentions:V,modal:H,progress:U,result:W,slider:G,breadcrumb:K,masonry:ee,menu:te,pagination:q,empty:X,badge:re,radio:ie,rate:ae,ribbon:oe,switch:se,transfer:ce,avatar:le,message:ue,tag:de,table:fe,card:pe,cardMeta:me,tabs:he,timeline:ge,timePicker:_e,upload:ve,notification:ye,tree:be,colorPicker:xe,datePicker:Se,rangePicker:Ce,flex:we,wave:Te,dropdown:Ee,warning:De,tour:Oe,tooltip:ke,popover:Ae,popconfirm:je,qrcode:Me,floatButton:Ne,floatButtonGroup:Pe,variant:Fe,inputNumber:Ie,treeSelect:Le,watermark:Re},Ge={...y};Object.keys(We).forEach(e=>{We[e]!==void 0&&(Ge[e]=We[e])}),ym.forEach(t=>{let n=e[t];n&&(Ge[t]=n)}),r!==void 0&&(Ge.button={autoInsertSpace:r,...Ge.button});let Ke=qn(()=>Ge,Ge,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:qe}=x.useContext(wa),Je=x.useMemo(()=>({prefixCls:Ve,csp:He,layer:qe?`antd`:void 0}),[Ve,He,qe]),Ye=x.createElement(x.Fragment,null,x.createElement(vm,{iconPrefixCls:Ve,csp:He}),x.createElement(_m,{dropdownMatchSelectWidth:h}),t),Xe=x.useMemo(()=>Mi(Ld.Form?.defaultValidateMessages||{},Ke.locale?.Form?.defaultValidateMessages||{},Ke.form?.validateMessages||{},c?.validateMessages||{}),[Ke,c?.validateMessages]);Object.keys(Xe).length>0&&(Ye=x.createElement(rp.Provider,{value:Xe},Ye)),ze&&(Ye=x.createElement(Kd,{locale:ze,_ANT_MARK__:Gd},Ye)),(Ve||He)&&(Ye=x.createElement(eu.Provider,{value:Je},Ye)),u&&(Ye=x.createElement(fm,{size:u},Ye)),Ye=x.createElement(gm,null,Ye),ke?.unique&&(Ye=x.createElement(cm,null,Ye));let Ze=x.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...i}=Ue||{},a=e&&(!Array.isArray(e)||e.length>0)?Aa(e):El,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||typeof n.algorithm==`function`)&&(n.theme=Aa(n.algorithm)),delete n.algorithm),o[e]=n});let s={...Sc,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[Ue]);return S&&(Ye=x.createElement(Ol.Provider,{value:Ze},Ye)),Ke.warning&&(Ye=x.createElement(zi.Provider,{value:Ke.warning},Ye)),C!==void 0&&(Ye=x.createElement(um,{disabled:C},Ye)),x.createElement(da.Provider,{value:Ke},Ye)},km=e=>{let t=x.useContext(da),n=x.useContext(Ud);return x.createElement(Om,{parentContext:t,legacyLocale:n,...e})};km.ConfigContext=da,km.SizeContext=dm,km.config=Em,km.useConfig=pm,Object.defineProperty(km,`SizeContext`,{get:()=>dm});function Am(){return Am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Am.apply(this,arguments)}var jm=x.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,duration:a=4.5,showProgress:o,pauseOnHover:s=!0,eventKey:c,content:l,closable:u,props:d,onClick:f,onNoticeClose:p,times:m,hovering:h}=e,[g,_]=x.useState(!1),[v,y]=x.useState(0),[b,S]=x.useState(0),C=h||g,w=typeof a==`number`?a:0,T=w>0&&o,E=()=>{p(c)},D=e=>{(e.key===`Enter`||e.code===`Enter`||e.keyCode===Jr.ENTER)&&E()};x.useEffect(()=>{if(!C&&w>0){let e=Date.now()-b,t=setTimeout(()=>{E()},w*1e3-b);return()=>{s&&clearTimeout(t),S(Date.now()-e)}}},[w,C,m]),x.useEffect(()=>{if(!C&&T&&(s||b===0)){let e=performance.now(),t,n=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(t=>{let r=t+b-e,i=Math.min(r/(w*1e3),1);y(i*100),i<1&&n()})};return n(),()=>{s&&cancelAnimationFrame(t)}}},[w,b,C,T,m]);let O=x.useMemo(()=>typeof u==`object`&&u?u:{},[u]),k=_i(O,!0),A=100-(!v||v<0?0:v>100?100:v),j=`${n}-notice`;return x.createElement(`div`,Am({},d,{ref:t,className:Z(j,i,{[`${j}-closable`]:u}),style:r,onMouseEnter:e=>{_(!0),d?.onMouseEnter?.(e)},onMouseLeave:e=>{_(!1),d?.onMouseLeave?.(e)},onClick:f}),x.createElement(`div`,{className:`${j}-content`},l),u&&x.createElement(`button`,Am({className:`${j}-close`,onKeyDown:D,"aria-label":`Close`},k,{onClick:e=>{e.preventDefault(),e.stopPropagation(),E()}}),O.closeIcon??`x`),T&&x.createElement(`progress`,{className:`${j}-progress`,max:`100`,value:A},A+`%`))}),Mm=x.createContext({}),Nm=({children:e,classNames:t})=>x.createElement(Mm.Provider,{value:{classNames:t}},e),Pm=8,Fm=3,Im=16,Lm=e=>{let t={offset:Pm,threshold:Fm,gap:Im};return e&&typeof e==`object`&&(t.offset=e.offset??Pm,t.threshold=e.threshold??Fm,t.gap=e.gap??Im),[!!e,t]};function Rm(){return Rm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rm.apply(this,arguments)}var zm=e=>{let{configList:t,placement:n,prefixCls:r,className:i,style:a,motion:o,onAllNoticeRemoved:s,onNoticeClose:c,stack:l}=e,{classNames:u}=(0,x.useContext)(Mm),d=(0,x.useRef)({}),[f,p]=(0,x.useState)(null),[m,h]=(0,x.useState)([]),g=t.map(e=>({config:e,key:String(e.key)})),[_,{offset:v,threshold:y,gap:b}]=Lm(l),S=_&&(m.length>0||g.length<=y),C=typeof o==`function`?o(n):o;return(0,x.useEffect)(()=>{_&&m.length>1&&h(e=>e.filter(e=>g.some(({key:t})=>e===t)))},[m,g,_]),(0,x.useEffect)(()=>{_&&d.current[g[g.length-1]?.key]&&p(d.current[g[g.length-1]?.key])},[g,_]),x.createElement(Sd,Rm({key:n,className:Z(r,`${r}-${n}`,u?.list,i,{[`${r}-stack`]:!!_,[`${r}-stack-expanded`]:S}),style:a,keys:g,motionAppear:!0},C,{onAllRemoved:()=>{s(n)}}),({config:e,className:t,style:i,index:a},o)=>{let{key:s,times:l}=e,p=String(s),{className:y,style:C,classNames:w,styles:T,...E}=e,D=g.findIndex(e=>e.key===p),O={};if(_){let e=g.length-1-(D>-1?D:a-1),t=n===`top`||n===`bottom`?`-50%`:`0`;if(e>0){O.height=S?d.current[p]?.offsetHeight:f?.offsetHeight;let r=0;for(let t=0;t<e;t++)r+=d.current[g[g.length-1-t].key]?.offsetHeight+b;O.transform=`translate3d(${t}, ${(S?r:e*v)*(n.startsWith(`top`)?1:-1)}px, 0) scaleX(${!S&&f?.offsetWidth&&d.current[p]?.offsetWidth?(f?.offsetWidth-v*2*(e<3?e:3))/d.current[p]?.offsetWidth:1})`}else O.transform=`translate3d(${t}, 0, 0)`}return x.createElement(`div`,{ref:o,className:Z(`${r}-notice-wrapper`,t,w?.wrapper),style:{...i,...O,...T?.wrapper},onMouseEnter:()=>h(e=>e.includes(p)?e:[...e,p]),onMouseLeave:()=>h(e=>e.filter(e=>e!==p))},x.createElement(jm,Rm({},E,{ref:e=>{D>-1?d.current[p]=e:delete d.current[p]},prefixCls:r,classNames:w,styles:T,className:Z(y,u?.notice),style:C,times:l,key:s,eventKey:s,onNoticeClose:c,hovering:_&&m.length>0})))})},Bm=x.forwardRef((e,t)=>{let{prefixCls:n=`rc-notification`,container:r,motion:i,maxCount:a,className:o,style:s,onAllRemoved:c,stack:l,renderNotifications:u}=e,[d,f]=x.useState([]),p=e=>{let t=d.find(t=>t.key===e),n=t?.closable,{onClose:r}=n&&typeof n==`object`?n:{};r?.(),t?.onClose?.(),f(t=>t.filter(t=>t.key!==e))};x.useImperativeHandle(t,()=>({open:e=>{f(t=>{let n=[...t],r=n.findIndex(t=>t.key===e.key),i={...e};return r>=0?(i.times=(t[r]?.times||0)+1,n[r]=i):(i.times=0,n.push(i)),a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{p(e)},destroy:()=>{f([])}}));let[m,h]=x.useState({});x.useEffect(()=>{let e={};d.forEach(t=>{let{placement:n=`topRight`}=t;n&&(e[n]=e[n]||[],e[n].push(t))}),Object.keys(m).forEach(t=>{e[t]=e[t]||[]}),h(e)},[d]);let g=e=>{h(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})},_=x.useRef(!1);if(x.useEffect(()=>{Object.keys(m).length>0?_.current=!0:_.current&&=(c?.(),!1)},[m]),!r)return null;let v=Object.keys(m);return(0,Ii.createPortal)(x.createElement(x.Fragment,null,v.map(e=>{let t=m[e],r=x.createElement(zm,{key:e,configList:t,placement:e,prefixCls:n,className:o?.(e),style:s?.(e),motion:i,onNoticeClose:p,onAllNoticeRemoved:g,stack:l});return u?u(r,{prefixCls:n,key:e}):r})),r)}),Vm=()=>document.body,Hm=0;function Um(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function Wm(e={}){let{getContainer:t=Vm,motion:n,prefixCls:r,maxCount:i,className:a,style:o,onAllRemoved:s,stack:c,renderNotifications:l,...u}=e,[d,f]=x.useState(),p=x.useRef(),m=x.createElement(Bm,{container:d,ref:p,prefixCls:r,motion:n,maxCount:i,className:a,style:o,onAllRemoved:s,stack:c,renderNotifications:l}),[h,g]=x.useState([]),_=Fn(e=>{let t=Um(u,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${Hm}`,Hm+=1),g(e=>[...e,{type:`open`,config:t}])}),v=x.useMemo(()=>({open:_,close:e=>{g(t=>[...t,{type:`close`,key:e}])},destroy:()=>{g(e=>[...e,{type:`destroy`}])}}),[]);return x.useEffect(()=>{f(t())}),x.useEffect(()=>{if(p.current&&h.length){h.forEach(e=>{switch(e.type){case`open`:p.current.open(e.config);break;case`close`:p.current.close(e.key);break;case`destroy`:p.current.destroy();break}});let e,t;g(n=>((e!==n||!t)&&(e=n,t=n.filter(e=>!h.includes(e))),t))}},[h]),[v,m]}var Gm=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function Km(){return Km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Km.apply(this,arguments)}var qm=x.forwardRef((e,t)=>x.createElement(_u,Km({},e,{ref:t,icon:Gm.default}))),Jm=e=>{let{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:c,fontSizeLG:l,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:m,zIndexPopup:h,contentPadding:g,contentBg:_}=e,v=`${t}-notice`,y=new Ds(`MessageMoveIn`,{"0%":{padding:0,transform:`translateY(-100%)`,opacity:0},"100%":{padding:p,transform:`translateY(0)`,opacity:1}}),b=new Ds(`MessageMoveOut`,{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:`center`,[`${t}-custom-content`]:{display:`flex`,alignItems:`center`},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:l},[`${v}-content`]:{display:`inline-block`,padding:g,background:_,borderRadius:m,boxShadow:r,pointerEvents:`all`},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
||
${t}-loading > ${n}`]:{color:c}};return[{[t]:{...Rl(e),color:i,position:`fixed`,top:f,width:`100%`,pointerEvents:`none`,zIndex:h,[`${t}-move-up`]:{animationFillMode:`forwards`},[`
|
||
${t}-move-up-appear,
|
||
${t}-move-up-enter
|
||
`]:{animationName:y,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[`
|
||
${t}-move-up-appear${t}-move-up-appear-active,
|
||
${t}-move-up-enter${t}-move-up-enter-active
|
||
`]:{animationPlayState:`running`},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:`running`},"&-rtl":{direction:`rtl`,span:{direction:`rtl`}}}},{[t]:{[`${v}-wrapper`]:{...x}}},{[`${t}-notice-pure-panel`]:{...x,padding:0,textAlign:`start`}}]},Ym=ql(`Message`,e=>Jm(oc(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+Of+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),Xm={info:x.createElement(Mu,null),success:x.createElement(bu,null),error:x.createElement(Cu,null),warning:x.createElement(ku,null),loading:x.createElement(qm,null)},Zm=e=>{let{prefixCls:t,type:n,icon:r,children:i,classNames:a,styles:o}=e,s=im(r||n&&Xm[n],e=>{let t={...e?.style,...o?.icon};return{className:Z(e.className,a?.icon),style:t}});return x.createElement(`div`,{className:Z(`${t}-custom-content`,`${t}-${n}`)},s,x.createElement(`span`,{className:a?.content,style:o?.content},i))},Qm=e=>{let{prefixCls:t,className:n,style:r,type:i,icon:a,content:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=ma(`message`),h=t||u(`message`),g=np(h),[_,v]=Ym(h,g),[y,b]=vf([p,s],[m,c],{props:e});return x.createElement(jm,{...l,prefixCls:h,className:Z(d,y.root,n,_,`${h}-notice-pure-panel`,v,g),style:{...b.root,...f,...r},eventKey:`pure`,duration:null,content:x.createElement(Zm,{prefixCls:h,type:i,icon:a,classNames:y,styles:b},o)})};function $m(e,t){return{motionName:t??`${e}-move-up`}}function eh(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var th=8,nh=3,rh=({children:e,prefixCls:t})=>{let n=np(t),[r,i]=Ym(t,n);return x.createElement(Nm,{classNames:{list:Z(r,i,n)}},e)},ih=(e,{prefixCls:t,key:n})=>x.createElement(rh,{prefixCls:t,key:n},e),ah=x.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=nh,rtl:s,transitionName:c,onAllRemoved:l,pauseOnHover:u=!0}=e,{getPrefixCls:d,direction:f,getPopupContainer:p}=ma(`message`),{message:m}=x.useContext(da),h=r||d(`message`),g=()=>({left:`50%`,transform:`translateX(-50%)`,top:n??th}),_=()=>Z({[`${h}-rtl`]:s??f===`rtl`}),v=()=>$m(h,c),[y,b]=vf([e?.classNames,m?.classNames],[e?.styles,m?.styles],{props:e}),[S,C]=Wm({prefixCls:h,style:g,className:_,motion:v,closable:!1,duration:o,getContainer:()=>i?.()||p?.()||document.body,maxCount:a,onAllRemoved:l,renderNotifications:ih,pauseOnHover:u});return x.useImperativeHandle(t,()=>({...S,prefixCls:h,message:m,classNames:y,styles:b})),C}),oh=0;function sh(e){let t=x.useRef(null);return Bi(`Message`),[x.useMemo(()=>{let n=e=>{t.current?.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o,classNames:s,styles:c}=t.current,l=o?.className||{},u=o?.style||{},d=o?.classNames||{},f=o?.styles||{},p=`${a}-notice`,{content:m,icon:h,type:g,key:_,className:v,style:y,onClose:b,classNames:S={},styles:C={},...w}=r,T=_;Jd(T)||(oh+=1,T=`antd-message-${oh}`);let E={...e,...r},D=_f(d,{props:E}),O=_f(S,{props:E}),k=_f(f,{props:E}),A=_f(C,{props:E}),j=ff(void 0,D,O,s),M=mf(k,A,c);return eh(e=>(i({...w,key:T,content:x.createElement(Zm,{prefixCls:a,type:g,icon:h,classNames:j,styles:M},m),placement:`top`,className:Z({[`${p}-${g}`]:g},v,l,j.root),style:{...M.root,...u,...y},onClose:()=>{b?.(),e()}}),()=>{n(T)}))},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():n(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=Zd(t)&&`content`in t?t:{content:t};let o,s;return typeof n==`function`?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),x.createElement(ah,{key:`message-holder`,...e,ref:t})]}function ch(e){return sh(e)}var lh=()=>({height:0,opacity:0}),uh=e=>({height:e?.scrollHeight??0,opacity:+!!e}),dh=e=>({height:e?.offsetHeight??0}),fh=e=>Zd(e)&&`propertyName`in e,ph=(e,t)=>t?.deadline===!0||(fh(t)?t.propertyName===`height`:!1),mh=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:lh,onEnterStart:lh,onAppearActive:uh,onEnterActive:uh,onLeaveStart:dh,onLeaveActive:lh,onAppearEnd:ph,onEnterEnd:ph,onLeaveEnd:ph,motionDeadline:500}),hh=(e,t,n)=>n===void 0?`${e}-${t}`:n,gh=Jl(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=Xl(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),_h=`ant-wave-target`;function vh(e){return e&&typeof e==`string`&&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 yh(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&vh(n[t])?n[t]:[r,i,a].find(vh)??null}function bh(e){return Number.isNaN(e)?0:e}var xh=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=x.useRef(null),{getPrefixCls:o}=x.useContext(da),[s]=Xl(o(),`wave`),[c,l]=x.useState(null),[u,d]=x.useState([]),[f,p]=x.useState(0),[m,h]=x.useState(0),[g,_]=x.useState(0),[v,y]=x.useState(0),[b,S]=x.useState(!1),C={left:f,top:m,width:g,height:v,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(C[s(`color`)]=c);function w(){let e=getComputedStyle(n);l(yh(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:bh(-Number.parseFloat(r))),h(t?n.offsetTop:bh(-Number.parseFloat(a))),_(n.offsetWidth),y(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>bh(Number.parseFloat(e))))}if(x.useEffect(()=>{if(n){let e=Ci(()=>{w(),S(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(w),t.observe(n)),()=>{Ci.cancel(e),t?.disconnect()}}},[n]),!b)return null;let T=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(_h);return x.createElement(Cd,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||t.propertyName===`opacity`){let e=a.current?.parentElement;Fi(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>x.createElement(`div`,{ref:ir(a,n),className:Z(t,e,{"wave-quick":T}),style:C}))},Sh=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),Pi(x.createElement(xh,{...t,target:e}),r)},Ch=(e,t,n,r)=>{let{wave:i}=x.useContext(da),[,a,o]=Il(),s=Fn(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${_h}`)||c,{showEffect:u}=i||{};(u||Sh)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=x.useRef(null);return x.useEffect(()=>()=>{Ci.cancel(c.current)},[]),e=>{Ci.cancel(c.current),c.current=Ci(()=>{s(e)})}},wh=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a}=(0,x.useContext)(da),o=(0,x.useRef)(null),s=a(`wave`),c=Ch(o,Z(s,gh(s)),r,i);return x.useEffect(()=>{let e=o.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!Er(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||c(t)};return e.addEventListener(`click`,t,!0),()=>{e.removeEventListener(`click`,t,!0)}},[n]),x.isValidElement(t)?im(t,{ref:or(t)?ir(lr(t),o):o}):t??null},Th=e=>{let t=x.useContext(dm);return x.useMemo(()=>e?typeof e==`string`?e??t:typeof e==`function`?e(t):t:t,[e,t])},Eh=ql([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),Dh=x.createContext(null),Oh=(e,t)=>{let n=x.useContext(Dh),r=x.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return Z(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},kh=e=>{let{children:t}=e;return x.createElement(Dh.Provider,{value:null},t)},Ah=e=>{let{children:t,...n}=e;return x.createElement(Dh.Provider,{value:x.useMemo(()=>n,[n])},t)},jh=e=>{let{getPrefixCls:t,direction:n}=x.useContext(da),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,m]=xf(a,d,i),h=Th(e=>r??e),g=t(`space-compact`,s),[_]=Eh(g),v=Z(g,_,{[`${g}-rtl`]:n===`rtl`,[`${g}-block`]:o,[`${g}-vertical`]:m},c,l),y=x.useContext(Dh),b=wi(u),S=x.useMemo(()=>b.map((e,t)=>{let n=e?.key||`${g}-item-${t}`;return x.createElement(Ah,{key:n,compactSize:h,compactDirection:p,isFirstItem:t===0&&(!y||y?.isFirstItem),isLastItem:t===b.length-1&&(!y||y?.isLastItem)},e)}),[b,y,p,h,g]);return b.length===0?null:x.createElement(`div`,{className:v,...f},S)},Mh=x.createContext(void 0),Nh=e=>{let{getPrefixCls:t,direction:n}=x.useContext(da),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=Il(),l=x.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=Z(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return x.createElement(Mh.Provider,{value:i},x.createElement(`div`,{...o,className:u}))},Ph=/^[\u4E00-\u9FA5]{2}$/,Fh=Ph.test.bind(Ph);function Ih(e){return e===`danger`?{danger:!0}:{type:e}}function Lh(e){return e===`text`||e===`link`}function Rh(e,t,n,r){if(!Jd(e)||e===``)return;let i=t?` `:``;return typeof e!=`string`&&typeof e!=`number`&&Xd(e.type)&&Fh(e.props.children)?im(e,e=>{let t=Z(e.className,r)||void 0,a={...n,...e.style};return{...e,children:e.children.split(``).join(i),className:t,style:a}}):Xd(e)?x.createElement(`span`,{className:r,style:n},Fh(e)?e.split(``).join(i):e):nm(e)?x.createElement(`span`,{className:r,style:n},e):im(e,e=>({...e,className:Z(e.className,r)||void 0,style:{...e.style,...n}}))}function zh(e,t,n,r){let i=!1,a=[];return x.Children.forEach(e,e=>{let t=typeof e,n=t===`string`||t===`number`;if(i&&n){let t=a.length-1;a[t]=`${a[t]}${e}`}else a.push(e);i=n}),x.Children.map(a,e=>Rh(e,t,n,r))}[`default`,`primary`,`danger`].concat(ca(_c));var Bh=(0,x.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=Z(`${a}-icon`,n);return x.createElement(`span`,{ref:t,className:o,style:r},i)}),Vh=(0,x.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Z(`${n}-loading-icon`,r);return x.createElement(Bh,{prefixCls:n,className:o,style:i,ref:t},x.createElement(qm,{className:a}))}),Hh=()=>({width:0,opacity:0,transform:`scale(0)`}),Uh=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),Wh=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?x.createElement(Vh,{prefixCls:t,className:i,style:a}):x.createElement(Cd,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Hh,onAppearActive:Uh,onEnterStart:Hh,onEnterActive:Uh,onLeaveStart:Uh,onLeaveActive:Hh},({className:e,style:n},r)=>{let o={...a,...n};return x.createElement(Vh,{prefixCls:t,className:Z(i,e),style:o,ref:r})})},Gh=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},Kh=e=>({animationDuration:e,animationFillMode:`both`}),qh=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
|
||
${a}${e}-enter,
|
||
${a}${e}-appear
|
||
`]:{...Kh(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...Kh(r),animationPlayState:`paused`},[`
|
||
${a}${e}-enter${e}-enter-active,
|
||
${a}${e}-appear${e}-appear-active
|
||
`]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},Jh=new Ds(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),Yh=new Ds(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),Xh=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[qh(r,Jh,Yh,e.motionDurationMid,t),{[`
|
||
${i}${r}-enter,
|
||
${i}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},Zh=new Ds(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Qh=new Ds(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),$h=new Ds(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),eg=new Ds(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),tg=new Ds(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),ng=new Ds(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),rg={"move-up":{inKeyframes:new Ds(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new Ds(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:Zh,outKeyframes:Qh},"move-left":{inKeyframes:$h,outKeyframes:eg},"move-right":{inKeyframes:tg,outKeyframes:ng}},ig=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=rg[t];return[qh(r,i,a,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ag=new Ds(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),og=new Ds(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),sg=new Ds(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),cg=new Ds(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),lg=new Ds(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),ug=new Ds(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),dg=new Ds(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),fg=new Ds(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),pg={"slide-up":{inKeyframes:ag,outKeyframes:og},"slide-down":{inKeyframes:sg,outKeyframes:cg},"slide-left":{inKeyframes:lg,outKeyframes:ug},"slide-right":{inKeyframes:dg,outKeyframes:fg}},mg=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=pg[t];return[qh(r,i,a,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},hg=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),gg=new Ds(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),_g=new Ds(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),vg=new Ds(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),yg=new Ds(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),bg=new Ds(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),xg=new Ds(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),Sg=new Ds(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),Cg=new Ds(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),wg=new Ds(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),Tg=new Ds(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Eg=new Ds(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Dg=new Ds(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Og={zoom:{inKeyframes:gg,outKeyframes:_g},"zoom-big":{inKeyframes:vg,outKeyframes:yg},"zoom-big-fast":{inKeyframes:vg,outKeyframes:yg},"zoom-left":{inKeyframes:Sg,outKeyframes:Cg},"zoom-right":{inKeyframes:wg,outKeyframes:Tg},"zoom-up":{inKeyframes:bg,outKeyframes:xg},"zoom-down":{inKeyframes:Eg,outKeyframes:Dg}},kg=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Og[t];return[qh(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ag=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),jg=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ag(`${t}-primary`,i),Ag(`${t}-danger`,a)]}},Mg=e=>Math.round(Number(e||0)),Ng=e=>{if(e instanceof Oc)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},Pg=class extends Oc{constructor(e){super(Ng(e))}toHsbString(){let e=this.toHsb(),t=Mg(e.s*100),n=Mg(e.b*100),r=Mg(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}};(e=>e instanceof Pg?e:new Pg(e))(`#1677ff`);var Fg=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,Ig=(e,t)=>e?Fg(e,t):``,Lg=function(){function e(t){if(zs(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Pg(this.colors[0].color.metaColor)):this.metaColor=new Pg(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Vs(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Ig(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(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),Rg=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zg.apply(this,arguments)}var Bg=x.forwardRef((e,t)=>x.createElement(_u,zg({},e,{ref:t,icon:Rg.default})));function Vg(){return Vg=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},Vg.apply(null,arguments)}var tee=x.forwardRef((e,t)=>{let{prefixCls:n,forceRender:r,className:i,style:a,children:o,isActive:s,role:c,classNames:l,styles:u}=e,[d,f]=x.useState(s||r);return x.useEffect(()=>{(r||s)&&f(!0)},[r,s]),d?x.createElement(`div`,{ref:t,className:Z(`${n}-panel`,{[`${n}-panel-active`]:s,[`${n}-panel-inactive`]:!s},i),style:a,role:c},x.createElement(`div`,{className:Z(`${n}-body`,l?.body),style:u?.body},o)):null}),Hg=x.forwardRef((e,t)=>{let{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:a,forceRender:o,className:s,classNames:c={},styles:l={},prefixCls:u,collapsible:d,accordion:f,panelKey:p,extra:m,header:h,expandIcon:g,openMotion:_,destroyOnHidden:v,children:y,...b}=e,S=d===`disabled`,C=m!=null&&typeof m!=`boolean`,w={onClick:()=>{a?.(p)},onKeyDown:e=>{(e.key===`Enter`||e.keyCode===Jr.ENTER||e.which===Jr.ENTER)&&a?.(p)},role:f?`tab`:`button`,"aria-expanded":i,"aria-disabled":S,tabIndex:S?-1:0},T=typeof g==`function`?g(e):x.createElement(`i`,{className:`arrow`}),E=T&&x.createElement(`div`,Vg({className:Z(`${u}-expand-icon`,c?.icon),style:l?.icon},[`header`,`icon`].includes(d)?w:{}),T),D=Z(`${u}-item`,{[`${u}-item-active`]:i,[`${u}-item-disabled`]:S},s),O={className:Z(r,`${u}-header`,{[`${u}-collapsible-${d}`]:!!d},c?.header),style:l?.header,...[`header`,`icon`].includes(d)?{}:w};return x.createElement(`div`,Vg({},b,{ref:t,className:D}),x.createElement(`div`,O,n&&E,x.createElement(`span`,Vg({className:Z(`${u}-title`,c?.title),style:l?.title},d===`header`?w:{}),h),C&&x.createElement(`div`,{className:`${u}-extra`},m)),x.createElement(Cd,Vg({visible:i,leavedClassName:`${u}-panel-hidden`},_,{forceRender:o,removeOnLeave:v}),({className:e,style:t},n)=>x.createElement(tee,{ref:n,prefixCls:u,className:e,classNames:c,style:t,styles:l,isActive:i,forceRender:o,role:f?`tabpanel`:void 0},y)))});function Ug(e,t,n){if(!e||!t)return e||t;let r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),i={};return r.forEach(r=>{i[r]=n(e[r],t[r])}),i}function nee(e,t){return Ug(e,t,(e,t)=>Z(e,t))}function ree(e,t){return Ug(e,t,(e,t)=>({...e,...t}))}var iee=(e,t)=>{let{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:a,onItemClick:o,activeKey:s,openMotion:c,expandIcon:l,classNames:u,styles:d}=t;return e.map((e,t)=>{let{children:f,label:p,key:m,collapsible:h,onItemClick:g,destroyOnHidden:_,classNames:v,styles:y,...b}=e,S=String(m??t),C=h??i,w=_??a,T=e=>{C!==`disabled`&&(o(e),g?.(e))},E=!1;return E=r?s[0]===S:s.indexOf(S)>-1,x.createElement(Hg,Vg({},b,{classNames:nee(u,v),styles:ree(d,y),prefixCls:n,key:S,panelKey:S,isActive:E,accordion:r,openMotion:c,expandIcon:l,header:p,collapsible:C,onItemClick:T,destroyOnHidden:w}),f)})},aee=(e,t,n)=>{if(!e)return null;let{prefixCls:r,accordion:i,collapsible:a,destroyOnHidden:o,onItemClick:s,activeKey:c,openMotion:l,expandIcon:u,classNames:d,styles:f}=n,p=e.key||String(t),{header:m,headerClass:h,destroyOnHidden:g,collapsible:_,onItemClick:v}=e.props,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;let b=_??a,S={key:p,panelKey:p,header:m,headerClass:h,classNames:d,styles:f,isActive:y,prefixCls:r,destroyOnHidden:g??o,openMotion:l,accordion:i,children:e.props.children,onItemClick:e=>{b!==`disabled`&&(s(e),v?.(e))},expandIcon:u,collapsible:b};return typeof e.type==`string`?e:(Object.keys(S).forEach(e=>{S[e]===void 0&&delete S[e]}),x.cloneElement(e,S))};function oee(e,t,n){return Array.isArray(e)?iee(e,n):wi(t).map((e,t)=>aee(e,t,n))}function Wg(e){let t=e;if(!Array.isArray(t)){let e=typeof t;t=e===`number`||e===`string`?[t]:[]}return t.map(e=>String(e))}var Gg=Object.assign(x.forwardRef((e,t)=>{let{prefixCls:n=`rc-collapse`,destroyOnHidden:r=!1,style:i,accordion:a,className:o,children:s,collapsible:c,openMotion:l,expandIcon:u,activeKey:d,defaultActiveKey:f,onChange:p,items:m,classNames:h,styles:g}=e,_=Z(n,o),[v,y]=Vn(f,d),b=Wg(v),S=Fn(e=>{let t=Wg(e);y(t),p?.(t)}),C=e=>{S(a?b[0]===e?[]:[e]:b.includes(e)?b.filter(t=>t!==e):[...b,e])};oi(!s,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");let w=oee(m,s,{prefixCls:n,accordion:a,openMotion:l,expandIcon:u,collapsible:c,destroyOnHidden:r,onItemClick:C,activeKey:b,classNames:h,styles:g});return x.createElement(`div`,Vg({ref:t,className:_,style:i,role:a?`tablist`:void 0},_i(e,{aria:!0,data:!0})),w)}),{Panel:Hg}),Kg=Gg,{Panel:see}=Gg,qg=x.forwardRef((e,t)=>{let{getPrefixCls:n}=x.useContext(da),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n(`collapse`,r),s=Z({[`${o}-no-arrow`]:!a},i);return x.createElement(Kg.Panel,{ref:t,...e,prefixCls:o,className:s})}),Jg=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:l,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:h,lineHeight:g,lineHeightLG:_,marginSM:v,paddingSM:y,paddingLG:b,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:w,fontHeight:T,fontHeightLG:E}=e,D=`${Q(l)} ${u} ${d}`;return{[t]:{...Rl(e),backgroundColor:i,border:D,borderRadius:c,"&-rtl":{direction:`rtl`},[`& > ${t}-item`]:{borderBottom:D,"&:first-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`${Q(c)} ${Q(c)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`> ${t}-header`]:{position:`relative`,display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,padding:a,color:p,lineHeight:g,cursor:`pointer`,transition:`all ${S}, visibility 0s`,...Hl(e),[`> ${t}-title`]:{flex:`auto`},[`${t}-expand-icon`]:{height:T,display:`flex`,alignItems:`center`,marginInlineEnd:v},[`${t}-arrow`]:{...zl(),fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}},[`${t}-title`]:{marginInlineEnd:`auto`}},[`${t}-collapsible-header`]:{cursor:`default`,[`${t}-title`]:{flex:`none`,cursor:`pointer`},[`${t}-expand-icon`]:{cursor:`pointer`}},[`${t}-collapsible-icon`]:{cursor:`unset`,[`${t}-expand-icon`]:{cursor:`pointer`}}},[`${t}-panel`]:{color:f,backgroundColor:n,borderTop:D,[`& > ${t}-body`]:{padding:w},"&-hidden":{display:`none`}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:_,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:E,marginInlineStart:e.calc(b).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:b}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:m,cursor:`not-allowed`}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:v}}}}}}},cee=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:`rotate(180deg)`}}}},Yg=e=>{let{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`
|
||
> ${t}-item:last-child,
|
||
> ${t}-item:last-child ${t}-header
|
||
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},Xg=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:`transparent`,border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:`transparent`,border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},Zg=ql(`Collapse`,e=>{let t=oc(e,{collapseHeaderPaddingSM:`${Q(e.paddingXS)} ${Q(e.paddingSM)}`,collapseHeaderPaddingLG:`${Q(e.padding)} ${Q(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Jg(t),Yg(t),Xg(t),cee(t),Gh(t)]},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`})),Qg=Object.assign(x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,expandIcon:i,className:a,style:o,classNames:s,styles:c}=ma(`collapse`),{prefixCls:l,className:u,rootClassName:d,style:f,bordered:p=!0,ghost:m,size:h,expandIconPlacement:g,expandIconPosition:_,children:v,destroyInactivePanel:y,destroyOnHidden:b,expandIcon:S,classNames:C,styles:w}=e,T=Th(e=>h??e??`middle`),E=n(`collapse`,l),D=n(),[O,k]=Zg(E),A=g??_??`start`,j={...e,size:T,bordered:p,expandIconPlacement:A},[M,N]=vf([s,C],[c,w],{props:j}),P=S??i,F=x.useCallback((e={})=>im(typeof P==`function`?P(e):x.createElement(Bg,{rotate:e.isActive?r===`rtl`?-90:90:void 0,"aria-label":e.isActive?`expanded`:`collapsed`}),e=>({className:Z(e.className,`${E}-arrow`)})),[P,E,r]),I=Z(`${E}-icon-placement-${A}`,{[`${E}-borderless`]:!p,[`${E}-rtl`]:r===`rtl`,[`${E}-ghost`]:!!m,[`${E}-large`]:T===`large`,[`${E}-small`]:T===`small`},a,u,d,O,k,M.root),L=x.useMemo(()=>({...mh(D),motionAppear:!1,leavedClassName:`${E}-panel-hidden`}),[D,E]),R=x.useMemo(()=>v?wi(v).map(e=>e):null,[v]);return x.createElement(Kg,{ref:t,openMotion:L,...fi(e,[`rootClassName`]),expandIcon:F,prefixCls:E,className:I,style:{...N.root,...o,...f},classNames:M,styles:N,destroyOnHidden:b??y},R)}),{Panel:qg}),$g=e=>e instanceof Lg?e:new Lg(e),e_=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new Pg(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},t_=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return oc(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},n_=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??vc(t),a=e.contentLineHeightSM??vc(n),o=e.contentLineHeightLG??vc(r),s=e_(new Lg(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=_c.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${Q(e.controlOutlineWidth)} 0 ${Al(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...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.colorBorderDisabled,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:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},lee=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=Xl(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},_c.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}},r_=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,...hg(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:zl(),"> a":{color:`currentColor`},"&:not(:disabled)":Hl(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:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},i_=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),a_=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${Q(c)} ${Q(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:i_(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},o_=e=>a_(oc(e,{fontSize:e.contentFontSize}),e.componentCls),s_=e=>a_(oc(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),c_=e=>a_(oc(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),l_=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},u_=ql(`Button`,e=>{let t=t_(e);return[r_(t),o_(t),s_(t),c_(t),l_(t),lee(t),jg(t)]},n_,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function d_(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=[`hover`,a?`focus`:null,`active`].filter(Boolean).map(e=>`&:${e} ${s}`).join(`,`);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[c]:{zIndex:3},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function f_(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function p_(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...d_(e,a,t,i),...f_(i,a,t)}}}function m_(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 h_(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 g_(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...m_(e,t,e.componentCls),...h_(e.componentCls,t)}}}var __=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=Xl(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},v_=Yl([`Button`,`compact`],e=>{let t=t_(e);return[p_(t),g_(t),__(t)]},n_);function y_(e){if(Zd(e)){let t=e?.delay;return t=Yd(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var b_={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},x_=x.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:u,disabled:d,className:f,rootClassName:p,children:m,icon:h,iconPosition:g,iconPlacement:_,ghost:v=!1,block:y=!1,htmlType:b=`button`,classNames:S,styles:C,style:w,autoInsertSpace:T,autoFocus:E,...D}=e,O=wi(m),k=s||`default`,{getPrefixCls:A,direction:j,autoInsertSpace:M,className:N,style:P,classNames:F,styles:I,loadingIcon:L,shape:R,color:z,variant:B}=ma(`button`),V=l||R||`default`,[H,U]=(0,x.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=b_[k]||[];return c?[`danger`,e[1]]:e}return z&&B?[z,B]:[`default`,`outlined`]},[a,o,s,c,z,B,k]),[W,G]=(0,x.useMemo)(()=>v&&U===`solid`?[H,`outlined`]:[H,U],[H,U,v]),K=W===`danger`,ee=K?`dangerous`:W,te=T??M??!0,q=A(`btn`,i),[J,Y]=u_(q),ne=(0,x.useContext)(lm),X=d??ne,re=(0,x.useContext)(Mh),ie=(0,x.useMemo)(()=>y_(r),[r]),[ae,oe]=(0,x.useState)(ie.loading),[se,ce]=(0,x.useState)(!1),le=(0,x.useRef)(null),ue=ar(t,le),de=O.length===1&&!h&&!Lh(G),fe=(0,x.useRef)(!0);x.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),Rn(()=>{let e=null;ie.delay>0?e=setTimeout(()=>{e=null,oe(!0)},ie.delay):oe(ie.loading);function t(){e&&=(clearTimeout(e),null)}return t},[ie.delay,ie.loading]),(0,x.useEffect)(()=>{if(!le.current||!te)return;let e=le.current.textContent||``;de&&Fh(e)?se||ce(!0):se&&ce(!1)}),(0,x.useEffect)(()=>{E&&le.current&&le.current.focus()},[]);let pe=x.useCallback(t=>{if(ae||X){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,ae,X]),{compactSize:me,compactItemClassnames:he}=Oh(q,j),ge=Th(e=>u??me??re??e),_e=ae?`loading`:h,ve=_??g??`start`,ye=fi(D,[`navigate`]),be={...e,type:k,color:W,variant:G,danger:K,shape:V,size:ge,disabled:X,loading:ae,iconPlacement:ve},[xe,Se]=vf([n?void 0:F,S],[n?void 0:I,C],{props:be}),Ce=Z(q,J,Y,{[`${q}-${V}`]:V!==`default`&&V!==`square`&&V,[`${q}-${k}`]:k,[`${q}-dangerous`]:c,[`${q}-color-${ee}`]:ee,[`${q}-variant-${G}`]:G,[`${q}-lg`]:ge===`large`,[`${q}-sm`]:ge===`small`,[`${q}-icon-only`]:!m&&m!==0&&!!_e,[`${q}-background-ghost`]:v&&!Lh(G),[`${q}-loading`]:ae,[`${q}-two-chinese-chars`]:se&&te&&!ae,[`${q}-block`]:y,[`${q}-rtl`]:j===`rtl`,[`${q}-icon-end`]:ve===`end`},he,f,p,N,xe.root),we={...Se.root,...P,...w},Te={className:xe.icon,style:Se.icon},Ee=e=>x.createElement(Bh,{prefixCls:q,...Te},e),De=x.createElement(Wh,{existIcon:!!h,prefixCls:q,loading:ae,mount:fe.current,...Te}),Oe=Zd(r)&&r.icon||L,ke;ke=h&&!ae?Ee(h):r&&Oe?Ee(Oe):De;let Ae=Jd(m)?zh(m,de&&te,Se.content,xe.content):null;if(ye.href!==void 0)return x.createElement(`a`,{...ye,className:Z(Ce,{[`${q}-disabled`]:X}),href:X?void 0:ye.href,style:we,onClick:pe,ref:ue,tabIndex:X?-1:0,"aria-disabled":X},ke,Ae);let je=x.createElement(`button`,{...D,type:b,className:Ce,style:we,onClick:pe,disabled:X,ref:ue},ke,Ae,he&&x.createElement(v_,{prefixCls:q}));return Lh(G)||(je=x.createElement(wh,{component:`Button`,disabled:ae},je)),je});x_.Group=Nh,x_.__ANT_BUTTON=!0;var S_=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=x.useRef(!1),f=x.useRef(null),[p,m]=Bn(!1),h=(...e)=>{a?.(...e)};x.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{f.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let g=e=>{$d(e)&&(m(!0),e.then((...e)=>{m(!1,!0),h.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!c?.())return Promise.reject(e)}))},_=e=>{if(d.current)return;if(d.current=!0,!u){h();return}let t;if(s){if(t=u(e),l&&!$d(t)){d.current=!1,h(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!$d(t)){h();return}g(t)};return x.createElement(x_,{...Ih(t),onClick:_,loading:p,prefixCls:r,...i,ref:f},n)},C_=x.createContext({}),{Provider:w_}=C_,T_=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,x.useContext)(C_);return i?x.createElement(S_,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},E_=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,x.useContext)(C_);return x.createElement(S_,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},D_=x.createContext({});function O_(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function k_(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function A_(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=k_(i),n.top+=k_(i,!0),n}var j_=x.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function M_(){return M_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M_.apply(this,arguments)}var N_=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:m,onMouseDown:h,onMouseUp:g,holderRef:_,visible:v,forceRender:y,width:b,height:S,classNames:C,styles:w,isFixedPos:T,focusTrap:E}=e,{panel:D}=x.useContext(D_),O=(0,x.useRef)(null),k=ar(_,D,O),[A]=Vr(v&&T&&E!==!1,()=>O.current);x.useImperativeHandle(t,()=>({focus:()=>{O.current?.focus({preventScroll:!0})}}));let j={};b!==void 0&&(j.width=b),S!==void 0&&(j.height=S);let M=s?x.createElement(`div`,{className:Z(`${n}-footer`,C?.footer),style:{...w?.footer}},s):null,N=a?x.createElement(`div`,{className:Z(`${n}-header`,C?.header),style:{...w?.header}},x.createElement(`div`,{className:Z(`${n}-title`,C?.title),id:o,style:{...w?.title}},a)):null,P=(0,x.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??x.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),F=_i(P,!0),I=typeof c==`object`&&c.disabled,L=c?x.createElement(`button`,M_({type:`button`,onClick:u,"aria-label":`Close`},F,{className:`${n}-close`,disabled:I}),P.closeIcon):null,R=x.createElement(`div`,{className:Z(`${n}-container`,C?.container),style:w?.container},L,N,x.createElement(`div`,M_({className:Z(`${n}-body`,C?.body),style:{...f,...w?.body}},p),d),M);return x.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:k,style:{...i,...j},className:Z(n,r),onMouseDown:h,onMouseUp:g,tabIndex:-1,onFocus:e=>{A(e.target)}},x.createElement(j_,{shouldUpdate:v||y},m?m(R):R))});function P_(){return P_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P_.apply(this,arguments)}var F_=x.forwardRef((e,t)=>{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,x.useRef)(null),m=(0,x.useRef)(null);x.useImperativeHandle(t,()=>({...m.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[h,g]=x.useState(),_={};h&&(_.transformOrigin=h);function v(){if(!p.current?.nativeElement)return;let e=A_(p.current.nativeElement);g(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return x.createElement(Cd,{visible:o,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>x.createElement(N_,P_({},e,{ref:m,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,..._},className:Z(a,t)})))});function I_(){return I_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I_.apply(this,arguments)}var L_=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return x.createElement(Cd,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>x.createElement(`div`,I_({ref:a,style:{...r,...n},className:Z(`${t}-mask`,e,o)},i)))};function R_(){return R_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R_.apply(this,arguments)}var z_=e=>{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:m=!0,maskTransitionName:h,maskAnimation:g,maskClosable:_=!0,maskStyle:v,maskProps:y,rootClassName:b,rootStyle:S,classNames:C,styles:w}=e,T=(0,x.useRef)(null),E=(0,x.useRef)(null),D=(0,x.useRef)(null),[O,k]=x.useState(r),[A,j]=x.useState(!1),M=Kn();function N(){ur(E.current,document.activeElement)||(T.current=document.activeElement)}function P(){ur(E.current,document.activeElement)||D.current?.focus()}function F(){if(k(!1),m&&T.current&&i){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}O&&u?.()}function I(e){e?P():F(),l?.(e)}function L(e){c?.(e)}let R=(0,x.useRef)(!1),z=null;_&&(z=e=>{E.current===e.target&&R.current&&L(e)});function B(e){R.current=e.target===E.current}(0,x.useEffect)(()=>{r?(R.current=!1,k(!0),N(),E.current&&j(getComputedStyle(E.current).position===`fixed`)):O&&D.current.enableMotion()&&!D.current.inMotion()&&F()},[r]);let V={zIndex:n,...a,...w?.wrapper,display:O?null:`none`};return x.createElement(`div`,R_({className:Z(`${t}-root`,b),style:S},_i(e,{data:!0})),x.createElement(L_,{prefixCls:t,visible:m&&r,motionName:O_(t,h,g),style:{zIndex:n,...v,...w?.mask},maskProps:y,className:C?.mask}),x.createElement(`div`,R_({className:Z(`${t}-wrap`,o,C?.wrapper),ref:E,onClick:z,onMouseDown:B,style:V},s),x.createElement(F_,R_({},e,{isFixedPos:A,ref:D,closable:p,ariaId:M,prefixCls:t,visible:r&&O,onClose:L,onVisibleChanged:I,motionName:O_(t,d,f)}))))};function B_(){return B_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B_.apply(this,arguments)}var V_=e=>{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,onClose:l}=e,[u,d]=x.useState(t),f=x.useMemo(()=>({panel:s}),[s]);return x.useEffect(()=>{t&&d(!0)},[t]),!r&&i&&!u?null:x.createElement(D_.Provider,{value:f},x.createElement(Sp,{open:t||r||u,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),l?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:t||u},x.createElement(z_,B_({},e,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),d(!1)}}))))},H_=`RC_FORM_INTERNAL_HOOKS`,U_=()=>{oi(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},W_=x.createContext({getFieldValue:U_,getFieldsValue:U_,getFieldError:U_,getFieldWarning:U_,getFieldsError:U_,isFieldsTouched:U_,isFieldTouched:U_,isFieldValidating:U_,isFieldsValidating:U_,resetFields:U_,setFields:U_,setFieldValue:U_,setFieldsValue:U_,validateFields:U_,submit:U_,getInternalHooks:()=>(U_(),{dispatch:U_,initEntityValue:U_,registerField:U_,useSubscribe:U_,setInitialValues:U_,destroyForm:U_,setCallbacks:U_,registerWatch:U_,getFields:U_,setValidateMessages:U_,setPreserve:U_,getInitialValue:U_})}),G_=x.createContext(null);function K_(e){return e==null?[]:Array.isArray(e)?e:[e]}function q_(e){return e&&!!e._init}function J_(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Y_=J_();function X_(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Z_(e,t,n){if(Ks())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Us(i,n.prototype),i}function Q_(e){var t=typeof Map==`function`?new Map:void 0;return Q_=function(e){if(e===null||!X_(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Z_(e,arguments,Gs(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Us(n,e)},Q_(e)}var $_=/%[sdj%]/g,ev=function(){};function tv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function nv(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace($_,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function rv(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function iv(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||rv(t)&&typeof e==`string`&&!e)}function av(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,ca(e||[])),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function ov(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function sv(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ca(e[n]||[]))}),t}var cv=function(e){Ws(n,e);var t=Js(n);function n(e,r){var i;return zs(this,n),i=t.call(this,`Async Validation Error`),Is(Hs(i),`errors`,void 0),Is(Hs(i),`fields`,void 0),i.errors=e,i.fields=r,i}return Vs(n)}(Q_(Error));function lv(e,t,n,r,i){if(t.first){var a=new Promise(function(t,a){ov(sv(e),n,function(e){return r(e),e.length?a(new cv(e,tv(e))):t(i)})});return a.catch(function(e){return e}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise(function(t,a){var d=function(e){if(u.push.apply(u,e),l++,l===c)return r(u),u.length?a(new cv(u,tv(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];o.indexOf(t)===-1?av(r,n,d):ov(r,n,d)})});return d.catch(function(e){return e}),d}function uv(e){return!!(e&&e.message!==void 0)}function dv(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function fv(e,t){return function(n){var r=e.fullFields?dv(t,e.fullFields):t[n.field||e.fullField];return uv(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 pv(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ks(r)===`object`&&ks(e[n])===`object`?e[n]=Rs(Rs({},e[n]),r):e[n]=r}}return e}var mv=`enum`,hv=function(e,t,n,r,i){e[mv]=Array.isArray(e[mv])?e[mv]:[],e[mv].indexOf(t)===-1&&r.push(nv(i.messages[mv],e.fullField,e[mv].join(`, `)))},gv=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(nv(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(nv(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},_v=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(nv(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(nv(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(nv(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(nv(i.messages[u].range,e.fullField,e.min,e.max))},vv=function(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||iv(t,a||e.type))&&r.push(nv(i.messages.required,e.fullField))},yv,bv=(function(){if(yv)return yv;var e=`[a-fA-F\\d:]`,t=function(t){return t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${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}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}\$)|(?:^${i}\$)`),o=RegExp(`^${n}\$`),s=RegExp(`^${i}\$`),c=function(e){return e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`)};c.v4=function(e){return e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`)},c.v6=function(e){return e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`)};var l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return yv=RegExp(`(?:^${l}\$)`,`i`),yv}),xv={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},Sv={integer:function(e){return Sv.number(e)&&parseInt(e,10)===e},float:function(e){return Sv.number(e)&&!Sv.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return ks(e)===`object`&&!Sv.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(xv.email)},tel:function(e){return typeof e==`string`&&e.length<=32&&!!e.match(xv.tel)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(bv())},hex:function(e){return typeof e==`string`&&!!e.match(xv.hex)}},Cv={required:vv,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||t===``)&&r.push(nv(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&t===void 0){vv(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?Sv[o](t)||r.push(nv(i.messages.types[o],e.fullField,e.type)):o&&ks(t)!==e.type&&r.push(nv(i.messages.types[o],e.fullField,e.type))},range:_v,enum:hv,pattern:gv},wv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i)}n(a)},Tv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Cv.required(e,t,r,a,i,`array`),t!=null&&(Cv.type(e,t,r,a,i),Cv.range(e,t,r,a,i))}n(a)},Ev=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i),t!==void 0&&Cv.type(e,t,r,a,i)}n(a)},Dv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t,`date`)&&!e.required)return n();if(Cv.required(e,t,r,a,i),!iv(t,`date`)){var o=t instanceof Date?t:new Date(t);Cv.type(e,o,r,a,i),o&&Cv.range(e,o.getTime(),r,a,i)}}n(a)},Ov=`enum`,kv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i),t!==void 0&&Cv[Ov](e,t,r,a,i)}n(a)},Av=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i),t!==void 0&&(Cv.type(e,t,r,a,i),Cv.range(e,t,r,a,i))}n(a)},jv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i),t!==void 0&&(Cv.type(e,t,r,a,i),Cv.range(e,t,r,a,i))}n(a)},Mv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i),t!==void 0&&Cv.type(e,t,r,a,i)}n(a)},Nv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i),t!==void 0&&(Cv.type(e,t,r,a,i),Cv.range(e,t,r,a,i))}n(a)},uee=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i),t!==void 0&&Cv.type(e,t,r,a,i)}n(a)},Pv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t,`string`)&&!e.required)return n();Cv.required(e,t,r,a,i),iv(t,`string`)||Cv.pattern(e,t,r,a,i)}n(a)},Fv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t)&&!e.required)return n();Cv.required(e,t,r,a,i),iv(t)||Cv.type(e,t,r,a,i)}n(a)},Iv=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:ks(t);Cv.required(e,t,r,a,i,o),n(a)},Lv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t,`string`)&&!e.required)return n();Cv.required(e,t,r,a,i,`string`),iv(t,`string`)||(Cv.type(e,t,r,a,i),Cv.range(e,t,r,a,i),Cv.pattern(e,t,r,a,i),e.whitespace===!0&&Cv.whitespace(e,t,r,a,i))}n(a)},Rv=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(iv(t,a)&&!e.required)return n();Cv.required(e,t,r,o,i,a),iv(t,a)||Cv.type(e,t,r,o,i)}n(o)},zv={string:Lv,method:Mv,number:Nv,boolean:Ev,regexp:Fv,integer:jv,float:Av,array:Tv,object:uee,enum:kv,pattern:Pv,date:Dv,url:Rv,hex:Rv,email:Rv,tel:Rv,required:Iv,any:wv},Bv=function(){function e(t){zs(this,e),Is(this,`rules`,null),Is(this,`_messages`,Y_),this.define(t)}return Vs(e,[{key:`define`,value:function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(ks(e)!==`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:`messages`,value:function(e){return e&&(this._messages=pv(J_(),e)),this._messages}},{key:`validate`,value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,o=r,s=i;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,ca(e))}else t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=tv(t),s(t,n)):s(null,a)}if(o.messages){var l=this.messages();l===Y_&&(l=J_()),pv(l,o.messages),o.messages=l}else o.messages=this.messages();var u={};(o.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],i=a[e];r.forEach(function(r){var o=r;typeof o.transform==`function`&&(a===t&&(a=Rs({},a)),i=a[e]=o.transform(i),i!=null&&(o.type=o.type||(Array.isArray(i)?`array`:ks(i)))),o=typeof o==`function`?{validator:o}:Rs({},o),o.validator=n.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=n.getType(o),u[e]=u[e]||[],u[e].push({rule:o,value:i,source:a,field:e}))})});var d={};return lv(u,o,function(t,n){var r=t.rule,i=(r.type===`object`||r.type===`array`)&&(ks(r.fields)===`object`||ks(r.defaultField)===`object`);i&&=r.required||!r.required&&t.value,r.field=t.field;function s(e,t){return Rs(Rs({},t),{},{fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[].concat(ca(r.fullFields),[e]):[e]})}function c(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=Array.isArray(c)?c:[c];!o.suppressWarning&&l.length&&e.warning(`async-validator:`,l),l.length&&r.message!==void 0&&r.message!==null&&(l=[].concat(r.message));var u=l.map(fv(r,a));if(o.first&&u.length)return d[r.field]=1,n(u);if(!i)n(u);else{if(r.required&&!t.value)return r.message===void 0?o.error&&(u=[o.error(r,nv(o.messages.required,r.field))]):u=[].concat(r.message).map(fv(r,a)),n(u);var f={};r.defaultField&&Object.keys(t.value).map(function(e){f[e]=r.defaultField}),f=Rs(Rs({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e];p[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,ca(u)),e&&e.length&&t.push.apply(t,ca(e)),n(t.length?t:null)})}}var l;if(r.asyncValidator)l=r.asyncValidator(r,t.value,c,t.source,o);else if(r.validator){try{l=r.validator(r,t.value,c,t.source,o)}catch(e){var u,f;(u=(f=console).error)==null||u.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}l===!0?c():l===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):l instanceof Array?c(l):l instanceof Error&&c(l.message)}l&&l.then&&l.then(function(){return c()},function(e){return c(e)})},function(e){c(e)},a)}},{key:`getType`,value:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!zv.hasOwnProperty(e.type))throw Error(nv(`Unknown rule type %s`,e.type));return e.type||`string`}},{key:`getValidationMethod`,value:function(e){if(typeof e.validator==`function`)return e.validator;var t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?zv.required:zv[this.getType(e)]||void 0}}]),e}();Is(Bv,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);zv[e]=t}),Is(Bv,`warning`,ev),Is(Bv,`messages`,Y_),Is(Bv,`validators`,zv);var Vv="'${name}' is not a valid ${type}",Hv={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:Vv,method:Vv,array:Vv,object:Vv,number:Vv,date:Vv,boolean:Vv,integer:Vv,float:Vv,regexp:Vv,email:Vv,tel:Vv,url:Vv,hex:Vv},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}"}},Uv=Bv;function Wv(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var Gv=`CODE_LOGIC_ERROR`;async function Kv(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,Uv.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(Gv)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new Uv({[e]:[a]}),c=Mi(Hv,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===Gv?c.default:e;return x.isValidElement(n)?x.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>Kv(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?Wv(e,u):e)}function qv(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{oi(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,oi(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await Kv(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>Kv(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?Yv(e):Jv(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function Jv(e){return Promise.all(e).then(e=>[].concat(...e))}async function Yv(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function Xv(e){return K_(e)}function Zv(e,t){let n={};return t.forEach(t=>{let r=Ti(e,t);n=Di(n,t,r)}),n}function Qv(e,t,n=!1){return e&&e.some(e=>$v(t,e,n))}function $v(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function ey(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function ty(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function ny(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var ry=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},iy=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!$v(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;ry(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function ay(){return new Promise(e=>{ry(()=>{Ci(()=>{e()})})})}function oy(){return oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oy.apply(this,arguments)}var sy=[],cy=[];function ly(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var uy=class extends x.Component{static contextType=W_;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=sy;warnings=cy;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(H_);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(H_);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,Xv(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};ci(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&Qv(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!ci(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=sy,this.warnings=cy,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=sy,this.warnings=cy,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&ly(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||sy),`warnings`in i&&(this.warnings=i.warnings||cy),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&Qv(t,s,!0)){this.reRender();return}if(r&&!s.length&&ly(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(Xv).some(e=>Qv(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&ly(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await ay();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?K_(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=qv(t,n,l,e,i,s);return u.catch(e=>e).then((e=sy)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=sy})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=sy,this.warnings=cy,this.triggerMetaEvent(),this.reRender(),o)};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(H_);return t(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=wi(e);return t.length!==1||!x.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return Ti(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(H_),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):ty(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},K_(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:x.isValidElement(n)?i=x.cloneElement(n,this.getControlled(n.props)):(oi(!n,"`children` of Field is not validate ReactElement."),i=n),x.createElement(x.Fragment,{key:e},i)}};function dy({name:e,...t}){let n=x.useContext(W_),r=x.useContext(G_),i=e===void 0?void 0:Xv(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),x.createElement(uy,oy({key:o,name:i,isListField:a},t,{fieldContext:n}))}function fy({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=x.useContext(W_),s=x.useContext(G_),c=x.useRef({keys:[],id:0}).current,l=x.useMemo(()=>[...Xv(o.prefixName)||[],...Xv(e)],[o.prefixName,e]),u=x.useMemo(()=>({...o,prefixName:l}),[o,l]),d=x.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?x.createElement(G_.Provider,{value:d},x.createElement(W_.Provider,{value:u},x.createElement(dy,{name:[],shouldUpdate:(e,t,{source:n})=>n===`internal`?!1:e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=ny(c.keys,e,n),t(ny(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(oi(!1,`Form.List only accepts function as children.`),null)}function py(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var my=`__@field_split__`;function hy(e){return e.map(e=>`${typeof e}:${e}`).join(my)}var gy=class{kvs=new Map;set(e,t){this.kvs.set(hy(e),t)}get(e){return this.kvs.get(hy(e))}getAsPrefix(e){let t=hy(e),n=t+my,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(hy(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(my).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},dee=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new iy(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(oi(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=Mi(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=Di(t,n,Ti(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new gy;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=Ti(this.initialValues,e);return e.length?Mi(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new gy;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=Xv(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=Xv(e);return n.get(t)||{INVALIDATE_NAME_PATH:Xv(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=Zv(this.store,a.map(Xv));return o.forEach(e=>{Ti(s,e)||(s=Di(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=Xv(e);return Ti(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Xv(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=Xv(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=Xv(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(Xv),i=!1):(r=null,i=t):(r=t.map(Xv),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new gy;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(Xv);return t.some(e=>Qv(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new gy,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)oi(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)oi(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(Di(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(Mi(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(Xv);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(Di(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=Xv(r);n.push(a),`value`in i&&this.updateStore(Di(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,`originRCField`,{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();Ti(this.store,n)===void 0&&this.updateStore(Di(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!$v(e.getNamePath(),t))){let n=this.store;this.updateStore(Di(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=Xv(e),r=this.store;this.updateStore(Di(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=Zv(this.store,[n]);a(e,Di(this.getFieldsValue(),n,Ti(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=Mi(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,n=[],r=new gy;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=Xv(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new gy;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>Qv(e,t));i.length&&n(i,r)}};validateFields=(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(Xv):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>$v(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||Qv(a,t,u))){let n=e.validateRules({validateMessages:{...Hv,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=py(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}};function _y(e){let t=x.useRef(null),[,n]=x.useState({});return t.current||(e?t.current=e:t.current=new dee(()=>{n({})}).getForm()),[t.current]}var vy=x.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),yy=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=x.useContext(vy),a=x.useRef({});return x.createElement(vy.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function by(){return by=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},by.apply(this,arguments)}var xy=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:a,component:o=`form`,validateMessages:s,validateTrigger:c=`onChange`,onValuesChange:l,onFieldsChange:u,onFinish:d,onFinishFailed:f,clearOnDestroy:p,...m},h)=>{let g=x.useRef(null),_=x.useContext(vy),[v]=_y(r),{useSubscribe:y,setInitialValues:b,setCallbacks:S,setValidateMessages:C,setPreserve:w,destroyForm:T}=v.getInternalHooks(H_);x.useImperativeHandle(h,()=>({...v,nativeElement:g.current})),x.useEffect(()=>(_.registerForm(e,v),()=>{_.unregisterForm(e)}),[_,v,e]),C({..._.validateMessages,...s}),S({onValuesChange:l,onFieldsChange:(t,...n)=>{_.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{_.triggerFormFinish(e,t),d&&d(t)},onFinishFailed:f}),w(i);let E=x.useRef(null);b(t,!E.current),E.current||=!0,x.useEffect(()=>()=>T(p),[]);let D,O=typeof a==`function`;D=O?a(v.getFieldsValue(!0),v):a,y(!O);let k=x.useRef(null);x.useEffect(()=>{ey(k.current||[],n||[])||v.setFields(n||[]),k.current=n},[n,v]);let A=x.useMemo(()=>({...v,validateTrigger:c}),[v,c]),j=x.createElement(G_.Provider,{value:null},x.createElement(W_.Provider,{value:A},D));return o===!1?j:x.createElement(o,by({},m,{ref:g,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),v.submit()},onReset:e=>{e.preventDefault(),v.resetFields(),m.onReset?.(e)}}),j)};function Sy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Cy(...e){let[t,n={}]=e,r=q_(n)?{form:n}:n,i=r.form,[a,o]=(0,x.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,x.useMemo)(()=>Sy(a),[a]),c=(0,x.useRef)(s);c.current=s;let l=(0,x.useContext)(W_),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(H_),h=Fn((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):Ti(i,Xv(t));Sy(a)!==Sy(s)&&o(s)});return(0,x.useEffect)(()=>{d&&h()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,x.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var wy=x.forwardRef(xy);wy.FormProvider=yy,wy.Field=dy,wy.List=fy,wy.useForm=_y,wy.useWatch=Cy;var Ty=x.createContext({labelAlign:`right`,layout:`horizontal`,itemRef:()=>{}}),Ey=x.createContext(null),Dy=e=>{let t=fi(e,[`prefixCls`]);return x.createElement(yy,{...t})},Oy=x.createContext({prefixCls:``}),ky=x.createContext({}),Ay=({children:e,status:t,override:n})=>{let r=x.useContext(ky),i=x.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return x.createElement(ky.Provider,{value:i},e)},jy=x.createContext(void 0),My=e=>{let{space:t,form:n,children:r}=e;if(!Jd(r))return null;let i=r;return n&&(i=x.createElement(Ay,{override:!0,status:!0},i)),t&&(i=x.createElement(kh,null,i)),i},Ny=()=>In()&&window.document.documentElement;function Py(e,t,n){return(0,x.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}var Fy=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Z({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=Z({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=x.useMemo(()=>Yd(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return x.createElement(`span`,{className:Z(t,o,s,n),style:{...c,...r}})},Iy=new Ds(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),Ly=e=>({height:e,lineHeight:Q(e)}),Ry=e=>({width:e,...Ly(e)}),zy=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:Iy,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),By=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Ly(e)}),Vy=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...Ry(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...Ry(i)},[`${t}${t}-sm`]:{...Ry(a)}}},Hy=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...By(t,s)},[`${r}-lg`]:{...By(i,s)},[`${r}-sm`]:{...By(a,s)}}},Uy=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...Ry(i(r).mul(2).equal())}},Wy=e=>({[e.skeletonNodeCls]:{...Uy(e)}}),Gy=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...Uy(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...Ry(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},Ky=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},qy=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Ly(e)}),Jy=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...qy(r,s)},...Ky(e,r,n),[`${n}-lg`]:{...qy(i,s)},...Ky(e,i,`${n}-lg`),[`${n}-sm`]:{...qy(a,s)},...Ky(e,a,`${n}-sm`)}},Yy=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...Ry(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...Ry(u)},[`${n}-sm`]:{...Ry(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...Jy(e),...Vy(e),...Hy(e),...Wy(e),...Gy(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${i} > li,
|
||
${n},
|
||
${a},
|
||
${o},
|
||
${s},
|
||
${c}
|
||
`]:{...zy(e)}}}},Xy=ql(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return Yy(oc(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,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`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),Zy=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l,...u}=e,{getPrefixCls:d}=x.useContext(da),f=d(`skeleton`,t),[p,m]=Xy(f),h=Th(e=>l??e),g=Z(f,`${f}-element`,{[`${f}-active`]:a},r?.root,n,i,p,m);return x.createElement(`div`,{className:g,style:s?.root},x.createElement(Fy,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:h,...u}))},Qy=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l,...u}=e,{getPrefixCls:d}=x.useContext(da),f=d(`skeleton`,t),[p,m]=Xy(f),h=Th(e=>l??e),g=Z(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i?.root,n,r,p,m);return x.createElement(`div`,{className:g,style:s?.root},x.createElement(Fy,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:h,...u}))},$y=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=x.useContext(da),d=u(`skeleton`,t),[f,p]=Xy(d),m=Z(d,`${d}-element`,{[`${d}-active`]:c},f,r?.root,n,i,p);return x.createElement(`div`,{className:m,style:s?.root},x.createElement(`div`,{className:Z(r?.content,a||`${d}-node`),style:{...s?.content,...o}},l))},eb=e=>{let{getPrefixCls:t}=x.useContext(da),n=t(`skeleton`,e.prefixCls);return x.createElement($y,{...e,internalClassName:`${n}-image`},x.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},x.createElement(`title`,null,`Image placeholder`),x.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))},tb=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l,...u}=e,{getPrefixCls:d}=x.useContext(da),f=d(`skeleton`,t),[p,m]=Xy(f),h=Th(e=>l??e),g=Z(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r?.root,n,i,p,m);return x.createElement(`div`,{className:g,style:c?.root},x.createElement(Fy,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:h,...u}))},nb=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},rb=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>x.createElement(`li`,{key:n,style:{width:nb(n,e)}}));return x.createElement(`ul`,{className:Z(t,n),style:r},a)},ib=({prefixCls:e,className:t,width:n,style:r})=>x.createElement(`h3`,{className:Z(e,t),style:{width:n,...r}});function ab(e){return Zd(e)?e:{}}function ob(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function sb(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function cb(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var lb=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:a,style:o,styles:s,children:c,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:v,styles:y}=ma(`skeleton`),b=m(`skeleton`,t),[S,C]=Xy(b),w={...e,avatar:l,title:u,paragraph:d},[T,E]=vf([v,a],[y,s],{props:w});if(n||!(`loading`in e)){let e=!!l,t=!!u,n=!!d,a;if(e){let e={className:T.avatar,prefixCls:`${b}-avatar`,...ob(t,n),...ab(l),style:E.avatar};a=x.createElement(`div`,{className:Z(T.header,`${b}-header`),style:E.header},x.createElement(Fy,{...e}))}let s;if(t||n){let r;if(t){let t={className:T.title,prefixCls:`${b}-title`,...sb(e,n),...ab(u),style:E.title};r=x.createElement(ib,{...t})}let i;if(n){let n={className:T.paragraph,prefixCls:`${b}-paragraph`,...cb(e,t),...ab(d),style:E.paragraph};i=x.createElement(rb,{...n})}s=x.createElement(`div`,{className:Z(T.section,`${b}-section`),style:E.section},r,i)}let c=Z(b,{[`${b}-with-avatar`]:e,[`${b}-active`]:f,[`${b}-rtl`]:h===`rtl`,[`${b}-round`]:p},T.root,g,r,i,S,C);return x.createElement(`div`,{className:c,style:{...E.root,..._,...o}},a,s)}return c??null};lb.Button=Qy,lb.Avatar=Zy,lb.Input=tb,lb.Image=eb,lb.Node=$y;var ub=lb;function db(){}var fb=x.createContext({add:db,remove:db});function pb(e){let t=x.useContext(fb),n=x.useRef(null);return Fn(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var mb=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,x.useContext)(C_);return x.createElement(x_,{onClick:n,...e},t)},hb=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,x.useContext)(C_);return x.createElement(x_,{...Ih(n),loading:e,onClick:i,...t},r)};function gb(e,t){return x.createElement(`span`,{className:`${e}-close-x`},t||x.createElement(Eu,{className:`${e}-close-icon`}))}var _b=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=Wd(`Modal`,Hd()),d=t||u?.okText,f=r||u?.cancelText,p=x.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return typeof l==`function`||l===void 0?(m=x.createElement(x.Fragment,null,x.createElement(mb,null),x.createElement(hb,null)),typeof l==`function`&&(m=l(m,{OkBtn:hb,CancelBtn:mb})),m=x.createElement(w_,{value:p},m)):m=l,x.createElement(um,{disabled:!1},m)},vb=e=>{let{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`}}}},yb=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},bb=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=Xl(i,`grid`),[,s]=Xl(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},xb=(e,t)=>bb(e,t),Sb=(e,t,n)=>({[`@media (min-width: ${Q(t)})`]:{...xb(e,n)}}),Cb=()=>({}),wb=()=>({}),Tb=ql(`Grid`,vb,Cb),Eb=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Db=ql(`Grid`,e=>{let t=oc(e,{gridColumns:24}),n=Eb(t);return delete n.xs,[yb(t),xb(t,``),xb(t,`-xs`),Object.keys(n).map(e=>Sb(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},wb);function Ob(e){return{position:e,inset:0}}var kb=e=>{let{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}-container`]:{pointerEvents:`none`},[`${t}-mask`]:{...Ob(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...Ob(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:Xh(e)}]},Ab=e=>{let{componentCls:t,motionDurationMid:n}=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:`${Q(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Rl(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${Q(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...Vl(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:`break-word`},[`${t}-container`]:{position:`relative`,backgroundColor:e.contentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:`auto`,padding:e.contentPadding},[`${t}-close`]:{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`,`background-color`].map(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:Q(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...Hl(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Q(e.borderRadiusLG)} ${Q(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:`${Q(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}-container,
|
||
${t}-body,
|
||
${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},jb=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},Mb=e=>{let{componentCls:t}=e,n=Eb(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${Q(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ca(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],ca(a))}}},Nb=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return oc(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()})},Pb=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Q(e.paddingMD)} ${Q(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Q(e.padding)} ${Q(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Q(e.paddingXS)} ${Q(e.padding)}`:0,footerBorderTop:e.wireframe?`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Q(e.padding*2)} ${Q(e.padding*2)} ${Q(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),Fb=ql(`Modal`,e=>{let t=Nb(e);return[Ab(t),jb(t),kb(t),kg(t,`zoom`),Mb(t)]},Pb,{unitless:{titleLineHeight:!0}}),Ib;Ny()&&document.documentElement.addEventListener(`click`,e=>{Ib={x:e.pageX,y:e.pageY},setTimeout(()=>{Ib=null},100)},!0);var Lb=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:m,confirmLoading:h,zIndex:g,mousePosition:_,onOk:v,onCancel:y,okButtonProps:b,cancelButtonProps:S,destroyOnHidden:C,destroyOnClose:w,panelRef:T=null,closable:E,mask:D,modalRender:O,maskClosable:k,focusTriggerAfterClose:A,focusable:j,...M}=e,{getPopupContainer:N,getPrefixCls:P,direction:F,className:I,style:L,classNames:R,styles:z,centered:B,cancelButtonProps:V,okButtonProps:H,mask:U}=ma(`modal`),{modal:W}=x.useContext(da),[G,K]=x.useMemo(()=>typeof E==`boolean`?[void 0,void 0]:[E?.afterClose,E?.onClose],[E]),ee=P(`modal`,t),te=P(),[q,J,Y]=df(D,U,ee,k),ne=Py(j,q,A),X=e=>{h||(y?.(e),K?.())},re=e=>{v?.(e),K?.()},ie=np(ee),[ae,oe]=Fb(ee,ie),se=Z(a,{[`${ee}-centered`]:o??B,[`${ee}-wrap-rtl`]:F===`rtl`}),ce=u!==null&&!m?x.createElement(_b,{...e,okButtonProps:{...H,...b},onOk:re,cancelButtonProps:{...V,...S},onCancel:X}):null,[le,ue,de,fe]=cf(tf(e),tf(W),{closable:!0,closeIcon:x.createElement(Eu,{className:`${ee}-close-icon`}),closeIconRender:e=>gb(ee,e)}),pe=le?{disabled:de,closeIcon:ue,afterClose:G,...fe}:!1,me=O?e=>x.createElement(`div`,{className:`${ee}-render`},O(e)):void 0,he=ir(T,pb(`.${ee}-${O?`render`:`container`}`)),[ge,_e]=Mf(`Modal`,g),ve={...e,width:l,panelRef:T,focusTriggerAfterClose:ne.focusTriggerAfterClose,focusable:ne,mask:q,maskClosable:Y,zIndex:ge},[ye,be]=vf([R,d,J],[z,f],{props:ve}),[xe,Se]=x.useMemo(()=>Zd(l)?[void 0,l]:[l,void 0],[l]),Ce=x.useMemo(()=>{let e={};return Se&&Object.keys(Se).forEach(t=>{let n=Se[t];Jd(n)&&(e[`--${ee}-${t}-width`]=Yd(n)?`${n}px`:n)}),e},[ee,Se]);return x.createElement(My,{form:!0,space:!0},x.createElement(Ef.Provider,{value:_e},x.createElement(V_,{width:xe,...M,zIndex:ge,getContainer:s===void 0?N:s,prefixCls:ee,rootClassName:Z(ae,r,oe,ie,ye.root),rootStyle:be.root,footer:ce,visible:i,mousePosition:_??Ib,onClose:X,closable:pe,closeIcon:ue,transitionName:hh(te,`zoom`,e.transitionName),maskTransitionName:hh(te,`fade`,e.maskTransitionName),mask:q,maskClosable:Y,className:Z(ae,n,I),style:{...L,...c,...Ce},classNames:{...ye,wrapper:Z(ye.wrapper,se)},styles:be,panelRef:he,destroyOnHidden:C??w,modalRender:me,focusTriggerAfterClose:ne.focusTriggerAfterClose,focusTrap:ne.trap},m?x.createElement(ub,{active:!0,title:!1,paragraph:{rows:4},className:`${ee}-body-skeleton`}):p)))},Rb=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...Bl()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${Q(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Q(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
||
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},zb=Yl([`Modal`,`confirm`],e=>Rb(Nb(e)),Pb,{order:-1e3}),Bb=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,...f}=e,p=n;if(!n&&n!==null)switch(o){case`info`:p=x.createElement(Mu,null);break;case`success`:p=x.createElement(bu,null);break;case`error`:p=x.createElement(Cu,null);break;default:p=x.createElement(ku,null)}let m=s??o===`confirm`,h=x.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[g]=Wd(`Modal`),_=l||g,v=r||(m?_?.okText:_?.justOkText),y=i||_?.cancelText,{closable:b}=f,{onClose:S}=Zd(b)?b:{},C=x.useMemo(()=>({autoFocusButton:h,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:m,onClose:S,...f}),[h,y,v,m,S,f]),w=x.createElement(x.Fragment,null,x.createElement(T_,null),x.createElement(E_,null)),T=Jd(e.title)&&e.title!==``,E=Jd(p),D=`${a}-body`;return x.createElement(`div`,{className:`${a}-body-wrapper`},x.createElement(`div`,{className:Z(D,{[`${D}-has-title`]:T,[`${D}-no-icon`]:!E})},p,x.createElement(`div`,{className:`${a}-paragraph`},T&&x.createElement(`span`,{className:`${a}-title`},e.title),x.createElement(`div`,{className:`${a}-content`},e.content))),c===void 0||typeof c==`function`?x.createElement(w_,{value:C},x.createElement(`div`,{className:`${a}-btns`},typeof c==`function`?c(w,{OkBtn:E_,CancelBtn:T_}):w)):c,x.createElement(zb,{prefixCls:t}))},Vb=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:m,okButtonProps:h,cancelButtonProps:g}=e,{cancelButtonProps:_,okButtonProps:v}=ma(`modal`),y=`${a}-confirm`,b=e.width||416,S=e.style||{},C=Z(y,`${y}-${e.type}`,{[`${y}-rtl`]:i===`rtl`},e.className),w=x.useMemo(()=>{let e=uf(p,m);return e.closable??=!1,e},[p,m]),[,T]=Il(),E=x.useMemo(()=>n===void 0?T.zIndexPopupBase+Of:n,[n,T]);return x.createElement(Lb,{...e,className:C,wrapClassName:Z({[`${y}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:hh(s||``,`zoom`,e.transitionName),maskTransitionName:hh(s||``,`fade`,e.maskTransitionName),mask:w,style:S,styles:{body:c,mask:r,...d},width:b,zIndex:E,closable:l},x.createElement(Bb,{...e,confirmPrefixCls:y,okButtonProps:{...v,...h},cancelButtonProps:{..._,...g}}))},Hb=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return x.createElement(km,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},x.createElement(Vb,{...e}))},Ub=[],Wb=``;function Gb(){return Wb}var Kb=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Hd(),a=(0,x.useContext)(da),o=Gb()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),x.createElement(Hb,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function qb(e){let t=Dm(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<Ub.length;e++)if(Ub[e]===s){Ub.splice(e,1);break}Fi(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,Gb()),i=t.getIconPrefixCls(),a=t.getTheme(),o=x.createElement(Kb,{...e});Pi(x.createElement(km,{prefixCls:r,iconPrefixCls:i,theme:a},typeof t.holderRender==`function`?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{typeof e.afterClose==`function`&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=typeof e==`function`?e(r):{...r,...e},o(r)}return o(r),Ub.push(s),{destroy:s,update:c}}function Jb(e){return{...e,type:`warning`}}function Yb(e){return{...e,type:`info`}}function Xb(e){return{...e,type:`success`}}function Zb(e){return{...e,type:`error`}}function Qb(e){return{...e,type:`confirm`}}function $b({rootPrefixCls:e}){Wb=e}var ex=x.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=x.useState(!0),[s,c]=x.useState(r),{direction:l,getPrefixCls:u}=x.useContext(da),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};x.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=typeof e==`function`?e(t):e;return{...t,...n}})}}));let h=s.okCancel??s.type===`confirm`,[g]=Wd(`Modal`,Ld.Modal);return x.createElement(Hb,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:s.okText||(h?g?.okText:g?.justOkText),direction:s.direction||l,cancelText:s.cancelText||g?.cancelText,...i})}),tx=0,nx=x.memo(x.forwardRef((e,t)=>{let[n,r]=Sf();return x.useImperativeHandle(t,()=>({patchElement:r}),[r]),x.createElement(x.Fragment,null,n)}));function rx(){let e=x.useRef(null),[t,n]=x.useState([]);x.useEffect(()=>{t.length&&(ca(t).forEach(e=>{e()}),n([]))},[t]);let r=x.useCallback(t=>function(r){tx+=1;let i=x.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=x.createElement(ex,{key:`modal-${tx}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&Ub.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(ca(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(ca(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[x.useMemo(()=>({info:r(Yb),success:r(Xb),error:r(Zb),warning:r(Jb),confirm:r(Qb)}),[r]),x.createElement(nx,{key:`modal-holder`,ref:e})]}var ix=e=>{let{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new Ds(`antNotificationFadeIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,opacity:1}}),o=new Ds(`antNotificationTopFadeIn`,{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Ds(`antNotificationBottomFadeIn`,{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new Ds(`antNotificationLeftFadeIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:`auto auto`}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:`auto`,marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},ax=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],ox={topLeft:`left`,topRight:`right`,bottomLeft:`left`,bottomRight:`right`,top:`left`,bottom:`left`},sx=(e,t)=>{let{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith(`top`)?`top`:`bottom`]:0,[ox[t]]:{value:0,_skip_check_:!0}}}}},cx=e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:`hidden`,[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return{[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:`hidden`,color:`transparent`,pointerEvents:`none`},...t}},lx=e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:`blur(10px)`,"-webkit-backdrop-filter":`blur(10px)`};return t},ux=e=>{let{componentCls:t}=e;return{[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:`transform, opacity`,position:`absolute`,...cx(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...lx(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:`unset`,color:`inherit`,pointerEvents:`auto`,[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:`""`,position:`absolute`,height:e.margin,width:`100%`,insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:`transparent`,pointerEvents:`auto`}}},...ax.map(t=>sx(e,t)).reduce((e,t)=>({...e,...t}),{})}},dx=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:c,colorWarning:l,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,progressBg:h,notificationProgressHeight:g,fontSize:_,lineHeight:v,width:y,notificationIconSize:b,colorText:x,colorSuccessBg:S,colorErrorBg:C,colorInfoBg:w,colorWarningBg:T,motionDurationMid:E}=e,D=`${n}-notice`;return{position:`relative`,marginBottom:a,marginInlineStart:`auto`,background:f,borderRadius:o,boxShadow:r,[D]:{padding:p,width:y,maxWidth:`calc(100vw - ${Q(e.calc(m).mul(2).equal())})`,lineHeight:v,wordWrap:`break-word`,borderRadius:o,overflow:`hidden`,"&-success":S?{background:S}:{},"&-error":C?{background:C}:{},"&-info":w?{background:w}:{},"&-warning":T?{background:T}:{}},[`${D}-title`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${D}-description`]:{fontSize:_,color:x,marginTop:e.marginXS,"&:first-child":{marginTop:0,marginInlineEnd:e.marginSM}},[`${D}-closable ${D}-title`]:{paddingInlineEnd:e.paddingLG},[`${D}-with-icon ${D}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:i},[`${D}-with-icon ${D}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:_},[`${D}-icon`]:{position:`absolute`,fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:l},[`&-error${t}`]:{color:u}},[`${D}-close`]:{position:`absolute`,top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:`none`,width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:[`color`,`background-color`].map(e=>`${e} ${E}`).join(`, `),display:`flex`,alignItems:`center`,justifyContent:`center`,background:`none`,border:`none`,"&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...Hl(e)},[`${D}-progress`]:{position:`absolute`,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${Q(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:o,background:h}},[`${D}-actions`]:{float:`right`,marginTop:e.marginSM}}},fx=e=>{let{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new Ds(`antNotificationFadeOut`,{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:{...Rl(e),position:`fixed`,zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:`relative`},[`${t}-fade-appear-prepare`]:{opacity:`0 !important`},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:`both`,opacity:0,animationPlayState:`paused`},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:`both`,animationDuration:i,animationPlayState:`paused`},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:`running`},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:`running`},"&-rtl":{direction:`rtl`,[`${o}-actions`]:{float:`left`}}}},{[t]:{[`${o}-wrapper`]:dx(e)}}]},px=e=>({zIndexPopup:e.zIndexPopupBase+Of+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),mx=e=>{let t=e.paddingMD,n=e.paddingLG;return oc(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Q(e.paddingMD)} ${Q(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},hx=ql(`Notification`,e=>{let t=mx(e);return[fx(t),ix(t),ux(t)]},px);function gx(e,t){return t===null||t===!1?null:t||x.createElement(Eu,{className:`${e}-close-icon`})}var _x={success:bu,info:Mu,error:Cu,warning:ku},vx=e=>{let{prefixCls:t,icon:n,type:r,title:i,description:a,actions:o,role:s=`alert`,styles:c,classNames:l}=e,u=null;return n?u=x.createElement(`span`,{className:Z(`${t}-icon`,l.icon),style:c.icon},n):r&&(u=x.createElement(_x[r]||null,{className:Z(`${t}-icon`,l.icon,`${t}-icon-${r}`),style:c.icon})),x.createElement(`div`,{className:Z({[`${t}-with-icon`]:u}),role:s},u,i&&x.createElement(`div`,{className:Z(`${t}-title`,l.title),style:c.title},i),a&&x.createElement(`div`,{className:Z(`${t}-description`,l.description),style:c.description},a),o&&x.createElement(`div`,{className:Z(`${t}-actions`,l.actions),style:c.actions},o))};function yx(e,t,n){let r;switch(e){case`top`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:t,bottom:`auto`};break;case`topLeft`:r={left:0,top:t,bottom:`auto`};break;case`topRight`:r={right:0,top:t,bottom:`auto`};break;case`bottom`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:`auto`,bottom:n};break;case`bottomLeft`:r={left:0,top:`auto`,bottom:n};break;default:r={right:0,top:`auto`,bottom:n};break}return r}function bx(e){return{motionName:`${e}-fade`}}function xx(e,t,n){return e===void 0?t?.closeIcon===void 0?n?.closeIcon:t.closeIcon:e}var Sx=24,Cx=4.5,wx=`topRight`,Tx=({children:e,prefixCls:t})=>{let n=np(t),[r,i]=hx(t,n);return x.createElement(Nm,{classNames:{list:Z(r,i,n)}},e)},Ex=(e,{prefixCls:t,key:n})=>x.createElement(Tx,{prefixCls:t,key:n},e),Dx=x.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:c,stack:l,duration:u=Cx,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:m,direction:h}=ma(`notification`),{notification:g}=(0,x.useContext)(da),[,_]=Il(),v=i||p(`notification`),y=(0,x.useMemo)(()=>Yd(u)&&u>0?u:!1,[u]),[b,S]=Wm({prefixCls:v,style:e=>yx(e,n??Sx,r??Sx),className:()=>Z({[`${v}-rtl`]:s??h===`rtl`}),motion:()=>bx(v),closable:{closeIcon:gx(v)},duration:y,getContainer:()=>a?.()||m?.()||document.body,maxCount:o,pauseOnHover:d,showProgress:f,onAllRemoved:c,renderNotifications:Ex,stack:l===!1?!1:{threshold:Zd(l)?l?.threshold:void 0,offset:8,gap:_.margin}}),[C,w]=vf([g?.classNames,e?.classNames],[g?.styles,e?.styles],{props:e});return x.useImperativeHandle(t,()=>({...b,prefixCls:v,notification:g,classNames:C,styles:w})),S});function Ox(e){let t=x.useRef(null);Bi(`Notification`);let{notification:n}=x.useContext(da);return[x.useMemo(()=>{let r=r=>{if(!t.current)return;let{open:i,prefixCls:a,notification:o,classNames:s,styles:c}=t.current,l=o?.className||{},u=o?.style||{},d=`${a}-notice`,{title:f,message:p,description:m,icon:h,type:g,btn:_,actions:v,className:y,style:b,role:S=`alert`,closeIcon:C,closable:w,classNames:T={},styles:E={},...D}=r,O=f??p,k=v??_,A=gx(d,xx(C,e,o)),[j,M,,N]=sf(tf({...e||{},...r}),tf(n),{closable:!0,closeIcon:A}),P=j?{onClose:Zd(w)?w.onClose:void 0,closeIcon:M,...N}:!1,F=_f(T,{props:r}),I=_f(E,{props:r}),L=ff(void 0,s,F),R=mf(c,I);return i({placement:e?.placement??wx,...D,content:x.createElement(vx,{prefixCls:d,icon:h,type:g,title:O,description:m,actions:k,role:S,classNames:L,styles:R}),className:Z({[`${d}-${g}`]:g},y,l,L.root),style:{...u,...R.root,...b},closable:P})},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():t.current?.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{i[e]=t=>r({...t,type:e})}),i},[e,n]),x.createElement(Dx,{key:`notification-holder`,...e,ref:t})]}function kx(e){return Ox(e)}var Ax=x.createContext({}),jx=x.createContext({message:{},notification:{},modal:{}}),Mx=ql(`App`,e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:`rtl`}}}},()=>({})),Nx=e=>{let{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:c=`div`}=e,{direction:l,getPrefixCls:u,className:d,style:f}=ma(`app`),p=u(`app`,t),[m,h]=Mx(p),g=Z(m,p,r,i,h,{[`${p}-rtl`]:l===`rtl`}),_=(0,x.useContext)(Ax),v=x.useMemo(()=>({message:{..._.message,...a},notification:{..._.notification,...o}}),[a,o,_.message,_.notification]),[y,b]=ch(v.message),[S,C]=kx(v.notification),[w,T]=rx(),E=x.useMemo(()=>({message:y,notification:S,modal:w}),[y,S,w]);Bi(`App`)(!(h&&c===!1),`usage`,"When using cssVar, ensure `component` is assigned a valid React component string.");let D=c===!1?x.Fragment:c,O={className:Z(d,g),style:{...f,...s}};return x.createElement(jx.Provider,{value:E},x.createElement(Ax.Provider,{value:v},x.createElement(D,{...c===!1?void 0:O},T,b,C,n)))},Px=()=>x.useContext(jx),Fx=Nx;Fx.useApp=Px;function Ix(e){return t=>x.createElement(km,{theme:{token:{motion:!1,zIndexPopupBase:0}}},x.createElement(e,{...t}))}var Lx=(e,t,n,r,i)=>Ix(a=>{let{prefixCls:o,style:s}=a,c=x.useRef(null),[l,u]=x.useState(0),[d,f]=x.useState(0),[p,m]=Vn(!1,a.open),{getPrefixCls:h}=x.useContext(da),g=h(r||`select`,o);x.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(g)}`:`.${g}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let _={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(_=n(_)),t&&(_={..._,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let v={paddingBottom:l,position:`relative`,minWidth:d};return x.createElement(`div`,{ref:c,style:v},x.createElement(e,{..._}))}),Rx=(e,t,n,r,i=!1,a,o)=>{let s=(0,x.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,x.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},zx=x.createContext(null);function Bx(){return x.useContext(zx)}function Vx(e=250){let t=x.useRef(null),n=x.useRef(null);x.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function Hx(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Ux(e,t,n,r){let i=Fn(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!Hx(e(),a)&&n(!1)});x.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wx.apply(this,arguments)}var Gx=e=>{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},Kx=x.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:m,popupRender:h,popupAlign:g,getPopupContainer:_,empty:v,onPopupVisibleChange:y,onPopupMouseEnter:b,onPopupMouseDown:S,onPopupBlur:C,...w}=e,T=`${n}-dropdown`,E=o;h&&(E=h(o));let D=x.useMemo(()=>p||Gx(m),[p,m]),O=s?`${T}-${s}`:c,k=typeof m==`number`,A=x.useMemo(()=>k?null:m===!1?`minWidth`:`width`,[m,k]),j=l;k&&(j={...l,width:m});let M=x.useRef(null);return x.useImperativeHandle(t,()=>({getPopupElement:()=>M.current?.popupElement})),x.createElement(tm,Wx({},w,{showAction:y?[`click`]:[],hideAction:y?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:D,prefixCls:T,popupMotion:{motionName:O},popup:x.createElement(`div`,{onMouseEnter:b,onMouseDown:S,onBlur:C},E),ref:M,stretch:A,popupAlign:g,popupVisible:i,getPopupContainer:_,popupClassName:Z(u,{[`${T}-empty`]:v}),popupStyle:j,onPopupVisibleChange:y}),a)});function qx(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function Jx(e){return e!==void 0&&!Number.isNaN(e)}function Yx(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function Xx(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=Yx(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:qx(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:qx(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function Zx(e){let t={...e};return`props`in t||Object.defineProperty(t,`props`,{get(){return oi(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Qx=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function $x(e){let{visible:t,values:n}=e;return t?x.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var eS=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},tS=(e,t=1)=>{if(t<=0){e();return}eS(()=>{tS(e,t-1)})};function nS(e,t,n,r){let[i,a]=(0,x.useState)(!1);(0,x.useEffect)(()=>{a(!0)},[]);let[o,s]=Vn(e,t),[c,l]=(0,x.useState)(!1),u=i?o:!1,d=r(u),f=(0,x.useRef)(0),p=Fn(e=>{n&&d!==e&&n(e),s(e)});return[u,d,Fn((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():tS(()=>{a()})}),c]}function rS(e){let{children:t,...n}=e;return t?x.createElement(`div`,n,t):null}var iS=x.createContext(null);function aS(){return x.useContext(iS)}var oS=x.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:m,onInputBlur:h,autoFocus:g,tokenWithEnter:_,placeholder:v,components:{input:y=`input`}}=aS(),{id:b,classNames:S,styles:C,open:w,activeDescendantId:T,role:E,disabled:D}=Bx()||{},O=Z(`${d}-input`,S?.input,c),k=x.useRef(!1),A=x.useRef(null),j=x.useRef(null);x.useImperativeHandle(t,()=>j.current);let M=e=>{let{value:t}=e.target;if(_&&A.current&&/[\r\n]/.test(A.current)){let e=A.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,A.current)}A.current=null,p&&p(t,!0,k.current),n?.(e)},N=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!w&&!k.current&&m&&m(n),r?.(e)},P=e=>{h?.(),i?.(e)},F=()=>{k.current=!0},I=e=>{if(k.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},L=e=>{let{clipboardData:t}=e;A.current=t?.getData(`text`)||``},[R,z]=x.useState(void 0);Rn(()=>{let e=j.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;z(t),e.style.width=``}},[o,s]);let B={id:b,type:f===`combobox`?`text`:`search`,...u,ref:j,style:{...C?.input,...a,"--select-input-width":R},autoFocus:g,autoComplete:l||`off`,className:O,disabled:D,value:s||``,onChange:M,onKeyDown:N,onBlur:P,onPaste:L,onCompositionStart:F,onCompositionEnd:I,role:E||`combobox`,"aria-expanded":w||!1,"aria-haspopup":`listbox`,"aria-owns":w?`${b}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":w?`${b}_list`:void 0,"aria-activedescendant":w?T:void 0};if(x.isValidElement(y)){let t=y.props||{},n={placeholder:e.placeholder||v,...B,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),B[e]?.(...t)})}),n.ref=ir(y.ref,B.ref),x.cloneElement(y,n)}let V=y;return x.createElement(V,B)});function sS(e){let{prefixCls:t,placeholder:n,displayValues:r}=aS(),{classNames:i,styles:a}=Bx(),{show:o=!0}=e;return r.length?null:x.createElement(`div`,{className:Z(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var cS=x.createContext(null);function lS(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function uS(e){return e!=null}function dS(e){return!e&&e!==0}function fS(e){return[`string`,`number`].includes(typeof e)}function pS(e){let t;return e&&(fS(e.title)?t=e.title.toString():fS(e.label)&&(t=e.label.toString())),t}function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}var hS=x.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=aS(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=Bx(),m=x.useContext(cS),[h,g]=x.useState(!1),_=s===`combobox`,v=a[0],y=x.useMemo(()=>_&&i&&!h&&l?i:d?r:``,[_,i,h,l,r,d]),[b,S,C,w]=x.useMemo(()=>{let e,t,n;if(v&&m?.flattenOptions){let r=m.flattenOptions.find(e=>e.value===v.value);r?.data&&(e=r.data.className,t=r.data.style,n=pS(r.data))}return v&&!n&&(n=pS(v)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[v,m?.flattenOptions,u]);x.useEffect(()=>{_&&g(!1)},[_,i]);let T=v&&v.label!==null&&v.label!==void 0&&String(v.label).trim()!==``,E=_&&c?.input?null:v?w?x.createElement(`div`,{className:Z(`${n}-content-value`,b),style:{...y?{visibility:`hidden`}:{},...S},title:C},v.label):v.label:x.createElement(sS,{show:!y});return x.createElement(`div`,{className:Z(`${n}-content`,T&&`${n}-content-has-value`,y&&`${n}-content-has-search-value`,w&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:w?void 0:C},E,x.createElement(oS,mS({ref:t},e,{value:y,maxLength:s===`combobox`?o:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),gS=void 0;function _S(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:m,component:h=`div`,...g}=e,_=o&&!p;function v(e){c(l,e)}x.useEffect(()=>()=>{v(null)},[]);let y=a&&i!==gS?a(i,{index:m}):f,b;r||(b={opacity:+!_,height:_?0:gS,overflowY:_?`hidden`:gS,order:o?m:gS,pointerEvents:_?`none`:gS,position:_?`absolute`:gS});let S={};_&&(S[`aria-hidden`]=!0);let C=x.createElement(h,Vg({className:Z(!r&&n,u),style:{...b,...d}},S,g,{ref:t}),y);return o&&(C=x.createElement(ta,{onResize:({offsetWidth:e})=>{v(e)},disabled:s},C)),C}var vS=x.forwardRef(_S);function yS(e){if(typeof MessageChannel>`u`)Ci(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function bS(){let e=x.useRef(null);return t=>{e.current||(e.current=[],yS(()=>{(0,Ii.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function xS(e,t){let[n,r]=x.useState(t);return[n,Fn(t=>{e(()=>{r(t)})})]}var SS=x.createContext(null),CS=x.forwardRef((e,t)=>{let n=x.useContext(SS);if(!n){let{component:n=`div`,...r}=e;return x.createElement(n,Vg({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return x.createElement(SS.Provider,{value:null},x.createElement(vS,Vg({ref:t,className:Z(r,a)},i,o)))}),wS=`responsive`,TS=`invalidate`;function ES(e){return`+ ${e.length} ...`}function DS(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:m,suffix:h,component:g=`div`,itemComponent:_,onVisibleChange:v,...y}=e,b=c===`full`,S=bS(),[C,w]=xS(S,null),T=C||0,[E,D]=xS(S,new Map),[O,k]=xS(S,0),[A,j]=xS(S,0),[M,N]=xS(S,0),[P,F]=xS(S,0),[I,L]=(0,x.useState)(null),[R,z]=(0,x.useState)(null),B=x.useMemo(()=>R===null&&b?2**53-1:R||0,[R,C]),[V,H]=(0,x.useState)(!1),U=`${n}-item`,W=Math.max(O,A),G=d===wS,K=r.length&&G,ee=d===TS,te=K||typeof d==`number`&&r.length>d,q=(0,x.useMemo)(()=>{let e=r;return K?e=C===null&&b?r:r.slice(0,Math.min(r.length,T/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,C,d,K]),J=(0,x.useMemo)(()=>K?r.slice(B+1):r.slice(q.length),[r,q,K,B]),Y=(0,x.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),ne=(0,x.useCallback)(i||(e=>e),[i]);function X(e,t,n){R===e&&(t===void 0||t===I)||(z(e),n||(H(e<r.length-1),v?.(e)),t!==void 0&&L(t))}function re(e,t){w(t.clientWidth)}function ie(e,t){D(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function ae(e,t){j(t),k(A)}function oe(e,t){N(t)}function se(e,t){F(t)}function ce(e){return E.get(Y(q[e],e))}Rn(()=>{if(T&&typeof W==`number`&&q){let e=M+P,t=q.length,n=t-1;if(!t){X(0,null);return}for(let r=0;r<t;r+=1){let t=ce(r);if(b&&(t||=0),t===void 0){X(r-1,void 0,!0);break}if(e+=t,n===0&&e<=T||r===n-1&&e+ce(n)<=T){X(n,null);break}else if(e+W>T){X(r-1,e-t-P+A);break}}h&&ce(0)+P>T&&L(null)}},[T,E,A,M,P,Y,q]);let le=V&&!!J.length,ue={};I!==null&&K&&(ue={position:`absolute`,top:0,insetInlineStart:I});let de={prefixCls:U,responsive:K,component:_,invalidate:ee},fe=a?(e,t)=>{let n=Y(e,t);return x.createElement(SS.Provider,{key:n,value:{...de,order:t,item:e,itemKey:n,registerSize:ie,display:t<=B}},a(e,t))}:(e,t)=>{let n=Y(e,t);return x.createElement(vS,Vg({},de,{order:t,key:n,item:e,renderItem:ne,itemKey:n,registerSize:ie,display:t<=B}))},pe={order:le?B:2**53-1,className:`${U}-rest`,registerSize:ae,display:le},me=f||ES,he=p?x.createElement(SS.Provider,{value:{...de,...pe}},p(J)):x.createElement(vS,Vg({},de,pe),typeof me==`function`?me(J):me),ge=x.createElement(g,Vg({className:Z(!ee&&n,u),style:l,ref:t},y),m&&x.createElement(vS,Vg({},de,{responsive:G,responsiveDisabled:!K,order:-1,className:`${U}-prefix`,registerSize:oe,display:!0}),m),q.map(fe),te?he:null,h&&x.createElement(vS,Vg({},de,{responsive:G,responsiveDisabled:!K,order:B,className:`${U}-suffix`,registerSize:se,display:!0,style:ue}),h));return G?x.createElement(ta,{onResize:re,disabled:!K},ge):ge}var OS=x.forwardRef(DS);OS.Item=CS,OS.RESPONSIVE=wS,OS.INVALIDATE=TS;var kS=OS,AS=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return x.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?x.createElement(`span`,{className:Z(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS.apply(this,arguments)}function MS(e){return e.key??e.value}var NS=e=>{e.preventDefault(),e.stopPropagation()},PS=x.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=aS(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:m,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:_,classNames:v,styles:y}=Bx(),b=`${n}-selection-item`,S=i;!d&&a===`multiple`&&p!==!1&&(S=``);let C=l&&S||``,w=l&&!c,T=s??`×`,E=h??(e=>`+ ${e.length} ...`),D=m,O=e=>{f(e)},k=e=>{o?.(e)},A=(e,t,n,r,i)=>x.createElement(`span`,{title:pS(e),className:Z(b,{[`${b}-disabled`]:n},v?.item),style:y?.item},x.createElement(`span`,{className:Z(`${b}-content`,v?.itemContent),style:y?.itemContent},t),r&&x.createElement(AS,{className:Z(`${b}-remove`,v?.itemRemove),style:y?.itemRemove,onMouseDown:NS,onClick:i,customizeIcon:T},`×`)),j=(e,t,n,r,i,a,o)=>x.createElement(`span`,{onMouseDown:e=>{NS(e),O(!u)}},D({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return x.createElement(kS,{prefixCls:`${n}-content`,className:v?.content,style:y?.content,prefix:!r.length&&!C&&x.createElement(sS,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof g==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>g&&(o=`${e.slice(0,g)}...`)}let s=t=>{t&&t.stopPropagation(),k(e)};return typeof D==`function`?j(i,o,n,a,s,void 0,t):A(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof E==`function`?E(e):E;return typeof D==`function`?j(void 0,t,!1,!1,void 0,!0):A({title:t},t,!1)},suffix:x.createElement(oS,jS({ref:t,disabled:c,readOnly:!w},e,{value:C||``,syncWidth:!0})),itemKey:MS,maxCount:_})}),FS=x.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=aS(),a=Bx(),{showSearch:o}=a,s={..._i(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?x.createElement(PS,{ref:t,inputProps:s}):x.createElement(hS,{ref:t,inputProps:s})});function IS(e){return e&&![Jr.ESC,Jr.SHIFT,Jr.BACKSPACE,Jr.TAB,Jr.WIN_KEY,Jr.ALT,Jr.META,Jr.WIN_KEY_RIGHT,Jr.CTRL,Jr.SEMICOLON,Jr.EQUALS,Jr.CAPS_LOCK,Jr.CONTEXT_MENU,Jr.UP,Jr.LEFT,Jr.RIGHT,Jr.F1,Jr.F2,Jr.F3,Jr.F4,Jr.F5,Jr.F6,Jr.F7,Jr.F8,Jr.F9,Jr.F10,Jr.F11,Jr.F12].includes(e)}function LS(){return LS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LS.apply(this,arguments)}var RS=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],zS=x.forwardRef(function(e,t){let{prefixCls:n,className:r,style:i,prefix:a,suffix:o,clearIcon:s,children:c,multiple:l,displayValues:u,placeholder:d,mode:f,searchValue:p,onSearch:m,onSearchSubmit:h,onInputBlur:g,maxLength:_,autoFocus:v,onMouseDown:y,onClearMouseDown:b,onInputKeyDown:S,onSelectorRemove:C,tokenWithEnter:w,components:T,...E}=e,{triggerOpen:D,toggleOpen:O,showSearch:k,disabled:A,loading:j,classNames:M,styles:N}=Bx(),P=x.useRef(null),F=x.useRef(null),I=Fn(e=>{let{which:t}=e,n=F.current instanceof HTMLTextAreaElement;!n&&D&&(t===Jr.UP||t===Jr.DOWN)&&e.preventDefault(),S&&S(e),!(n&&!D&&~[Jr.UP,Jr.DOWN,Jr.LEFT,Jr.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&IS(t)&&O(!0)});x.useImperativeHandle(t,()=>({focus:e=>{(F.current||P.current).focus?.(e)},blur:()=>{(F.current||P.current).blur?.()},nativeElement:Tr(P.current)}));let L=Fn(e=>{if(!A){let t=Tr(F.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=D&&!l&&(f===`combobox`||k)||D&&l&&n;e.nativeEvent._select_lazy?D&&O(!1):(F.current?.focus(),r||O())}y?.(e)}),{root:R}=T,z=fi(E,RS),B=_i(z,{aria:!0}),V=Object.keys(B),H={...e,onInputKeyDown:I};if(R){let e=R.props||{},t={...e,...z};return Object.keys(e).forEach(n=>{let r=e[n],i=z[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),x.isValidElement(R)?x.cloneElement(R,{...t,ref:ir(R.ref,P)}):x.createElement(R,LS({},t,{ref:P}))}return x.createElement(iS.Provider,{value:H},x.createElement(`div`,LS({},fi(z,V),{ref:P,className:r,style:i,onMouseDown:L}),x.createElement(rS,{className:Z(`${n}-prefix`,M?.prefix),style:N?.prefix},a),x.createElement(FS,{ref:F}),x.createElement(rS,{className:Z(`${n}-suffix`,{[`${n}-suffix-loading`]:j},M?.suffix),style:N?.suffix},o),s&&x.createElement(rS,{className:Z(`${n}-clear`,M?.clear),style:N?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,b?.(e)}},s),c))});function BS(e,t,n){return x.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function VS(){return VS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VS.apply(this,arguments)}var HS=e=>e===`tags`||e===`multiple`,US=x.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:m,notFoundContent:h=`Not Found`,onClear:g,maxCount:_,placeholder:v,mode:y,disabled:b,loading:S,getInputElement:C,getRawInputElement:w,open:T,defaultOpen:E,onPopupVisibleChange:D,activeValue:O,onActiveValueChange:k,activeDescendantId:A,searchValue:j,autoClearSearchValue:M,onSearch:N,onSearchSplit:P,tokenSeparators:F,allowClear:I,prefix:L,suffix:R,suffixIcon:z,clearIcon:B,OptionList:V,animation:H,transitionName:U,popupStyle:W,popupClassName:G,popupMatchSelectWidth:K,popupRender:ee,popupAlign:te,placement:q,builtinPlacements:J,getPopupContainer:Y,showAction:ne=[],onFocus:X,onBlur:re,onKeyUp:ie,onKeyDown:ae,onMouseDown:oe,components:se,...ce}=e,le=HS(y),ue=x.useRef(null),de=x.useRef(null),fe=x.useRef(null),[pe,me]=x.useState(!1);x.useImperativeHandle(t,()=>({focus:ue.current?.focus,blur:ue.current?.blur,scrollTo:e=>fe.current?.scrollTo(e),nativeElement:Tr(ue.current)}));let he=BS(se,C,w),ge=x.useMemo(()=>{if(y!==`combobox`)return j;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[j,y,f]),_e=y===`combobox`&&typeof C==`function`&&C()||null,ve=!h&&m,[ye,be,xe,Se]=nS(E||!1,T,D,e=>b||ve?!1:e),Ce=x.useMemo(()=>(F||[]).some(e=>[`
|
||
`,`\r
|
||
`].includes(e)),[F]),we=(e,t,n)=>{if(le&&Jx(_)&&f.length>=_)return;let r=!0,i=e;k?.(null);let a=Qx(e,F,Jx(_)?_-f.length:void 0),o=n?null:a;return y!==`combobox`&&o&&(i=``,P?.(o),xe(!1),r=!1),N&&ge!==i&&N(i,{source:t?`typing`:`effect`}),e&&t&&r&&xe(!0),r},Te=e=>{!e||!e.trim()||N(e,{source:`submit`})};x.useEffect(()=>{!ye&&!le&&y!==`combobox`&&we(``,!1,!1)},[ye]),x.useEffect(()=>{b&&(xe(!1),me(!1))},[b,be]);let[Ee,De]=Vx(),Oe=x.useRef(!1),ke=e=>{let t=Ee(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=y===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),be||xe(!0)}if(De(!!ge),n===`Backspace`&&!t&&le&&!ge&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}be&&(!r||!Oe.current)&&!i&&(r&&(Oe.current=!0),fe.current?.onKeyDown(e)),ae?.(e)},Ae=(e,...t)=>{be&&fe.current?.onKeyUp(e,...t),e.key===`Enter`&&(Oe.current=!1),ie?.(e,...t)},je=Fn(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),Me=()=>{Oe.current=!1},Ne=()=>[Tr(ue.current),de.current?.getPopupElement()];Ux(Ne,be,xe,!!he.root);let Pe=x.useRef(!1),Fe=e=>{me(!0),b||(ne.includes(`focus`)&&xe(!0),X?.(e))},Ie=()=>{be&&!Pe.current&&xe(!1,{cancelFun:()=>Hx(Ne(),document.activeElement)})},Le=e=>{me(!1),ge&&(y===`tags`?N(ge,{source:`submit`}):y===`multiple`&&N(``,{source:`blur`})),Ie(),b||re?.(e)},Re=(e,...t)=>{let{target:n}=e;(de.current?.getPopupElement())?.contains(n)&&xe&&xe(!0),oe?.(e,...t),Pe.current=!0,tS(()=>{Pe.current=!1})},[,ze]=x.useState({});function Be(){ze({})}let Ve;he.root&&(Ve=e=>{xe(e)});let He=x.useMemo(()=>({...e,notFoundContent:h,open:be,triggerOpen:be,rawOpen:ye,id:n,showSearch:s,multiple:le,toggleOpen:xe,showScrollBar:l,styles:a,classNames:o,lockOptions:Se}),[e,h,xe,n,s,le,be,ye,l,a,o,Se]),Ue=x.useMemo(()=>{let e=R??z;return typeof e==`function`?e({searchValue:ge,open:be,focused:pe,showSearch:s,loading:S}):e},[R,z,ge,be,pe,s,S]),We=()=>{g?.(),ue.current?.focus(),p([],{type:`clear`,values:f}),we(``,!1,!1)},{allowClear:Ge,clearIcon:Ke}=Rx(r,f,I,B,b,ge,y),qe=x.createElement(V,{ref:fe}),Je=Z(r,i,{[`${r}-focused`]:pe,[`${r}-multiple`]:le,[`${r}-single`]:!le,[`${r}-allow-clear`]:Ge,[`${r}-show-arrow`]:Ue!=null,[`${r}-disabled`]:b,[`${r}-loading`]:S,[`${r}-open`]:be,[`${r}-customize-input`]:_e,[`${r}-show-search`]:s}),Ye=x.createElement(zS,VS({},ce,{ref:ue,prefixCls:r,className:Je,focused:pe,prefix:L,suffix:Ue,clearIcon:Ke,multiple:le,mode:y,displayValues:f,placeholder:v,searchValue:ge,activeValue:O,onSearch:we,onSearchSubmit:Te,onInputBlur:Me,onFocus:Fe,onBlur:Le,onClearMouseDown:We,onKeyDown:ke,onKeyUp:Ae,onSelectorRemove:je,tokenWithEnter:Ce,onMouseDown:Re,components:he}));return Ye=x.createElement(Kx,{ref:de,disabled:b,prefixCls:r,visible:be,popupElement:qe,animation:H,transitionName:U,popupStyle:W,popupClassName:G,direction:u,popupMatchSelectWidth:K,popupRender:ee,popupAlign:te,placement:q,builtinPlacements:J,getPopupContainer:Y,empty:m,onPopupVisibleChange:Ve,onPopupMouseEnter:Be,onPopupMouseDown:Re,onPopupBlur:Ie},Ye),x.createElement(zx.Provider,{value:He},x.createElement($x,{visible:pe&&!be,values:f}),Ye)}),WS=()=>null;WS.isSelectOptGroup=!0;var GS=()=>null;GS.isSelectOption=!0;var KS=x.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),x.createElement(`div`,{style:u},x.createElement(ta,{onResize:({offsetHeight:e})=>{e&&a&&a()}},x.createElement(`div`,Vg({style:d,className:Z({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});KS.displayName=`Filler`;function qS({children:e,setRef:t}){let n=x.useCallback(e=>{t(e)},[]);return x.cloneElement(e,{ref:n})}function JS(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return x.createElement(qS,{key:l,setRef:t=>a(e,t)},c)})}function YS(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);let s={__EMPTY_ITEM__:!0};function c(e){return e===void 0?s:n(e)}let l=null,u=Math.abs(r-i)!==1;for(let e=0;e<o.length;e+=1){let t=c(a[e]);if(t!==c(o[e])){l=e,u||=t!==c(o[e+1]);break}}return l===null?null:{index:l,multiple:u}}function XS(e,t,n){let[r,i]=x.useState(e),[a,o]=x.useState(null);return x.useEffect(()=>{let a=YS(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var ZS=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),QS=((e,t,n,r)=>{let i=(0,x.useRef)(!1),a=(0,x.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,x.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function $S(e,t,n,r,i,a,o){let s=(0,x.useRef)(0),c=(0,x.useRef)(null),l=(0,x.useRef)(null),u=(0,x.useRef)(!1),d=QS(t,n,r,i);function f(e,t){if(Ci.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,ZS||n.preventDefault(),c.current=Ci(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),ZS||e.preventDefault()}let m=(0,x.useRef)(null),h=(0,x.useRef)(null);function g(t){if(!e)return;Ci.cancel(h.current),h.current=Ci(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function eC(e,t,n,r){let[i,a]=x.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d<u;d+=1){let u=e[d],f=t(u);i.set(f,d);let p=n.get(f)??r;if(a[d]=(a[d-1]||0)+p,f===o&&(c=d),f===s&&(l=d),c!==void 0&&l!==void 0)break}}return{top:a[c-1]||0,bottom:a[l]}}}var tC=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function nC(e){let t=parseFloat(e);return isNaN(t)?0:t}function rC(e,t,n){let[r,i]=x.useState(0),a=(0,x.useRef)(new Map),o=(0,x.useRef)(new tC),s=(0,x.useRef)(0);function c(){s.current+=1}function l(e=!1){c();let t=()=>{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=nC(i),c=nC(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,x.useEffect)(()=>c,[]),[u,l,o.current,r]}var iC=14/15;function aC(e,t,n){let r=(0,x.useRef)(!1),i=(0,x.useRef)(0),a=(0,x.useRef)(0),o=(0,x.useRef)(null),s=(0,x.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=iC:c*=iC;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},Rn(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function oC(e){return Math.floor(e**.5)}function sC(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function cC(e,t,n){x.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{Ci.cancel(t)},o=()=>{a(),t=Ci(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=sC(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-oC(n-e),o()):e>=s?(i=oC(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var lC=10;function uC(e,t,n,r,i,a,o,s){let c=x.useRef(),[l,u]=x.useState(null);return Rn(()=>{if(l&&l.times<lC){if(!e.current){u(e=>({...e}));return}a();let{targetAlign:s,originAlign:c,index:d,offset:f}=l,p=e.current.clientHeight,m=!1,h=s,g=null;if(p){let a=s||c,u=0,_=0,v=0,y=Math.min(t.length-1,d);for(let e=0;e<=y;e+=1){let a=i(t[e]);_=u;let o=n.get(a);v=_+(o===void 0?r:o),u=v}let b=a===`top`?f:p-f;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){m=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:g=_-f;break;case`bottom`:g=v-p+f;break;default:{let{scrollTop:t}=e.current,n=t+p;_<t?h=`top`:v>n&&(h=`bottom`)}}g!==null&&o(g),g!==l.lastTop&&(m=!0)}m&&u({...l,times:l.times+1,targetAlign:h,lastTop:g})}},[l,e.current]),e=>{if(e==null){s();return}if(Ci.cancel(c.current),typeof e==`number`)o(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;u({times:0,index:n,offset:a,originAlign:r})}}}var dC=x.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:m}=e,[h,g]=x.useState(!1),[_,v]=x.useState(null),[y,b]=x.useState(null),S=!r,C=x.useRef(),w=x.useRef(),[T,E]=x.useState(m),D=x.useRef(),O=()=>{m===!0||m===!1||(clearTimeout(D.current),E(!0),D.current=setTimeout(()=>{E(!1)},3e3))},k=a-d||0,A=d-u||0,j=x.useMemo(()=>i===0||k===0?0:i/k*A,[i,k,A]),M=e=>{e.stopPropagation(),e.preventDefault()},N=x.useRef({top:j,dragging:h,pageY:_,startTop:y});N.current={top:j,dragging:h,pageY:_,startTop:y};let P=e=>{g(!0),v(sC(e,l)),b(N.current.top),o(),e.stopPropagation(),e.preventDefault()};x.useEffect(()=>{let e=e=>{e.preventDefault()},t=C.current,n=w.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,P,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,P)}},[]);let F=x.useRef();F.current=k;let I=x.useRef();I.current=A,x.useEffect(()=>{if(h){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=N.current;Ci.cancel(e);let a=C.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(sC(t,l)-r)*o,a=i;!S&&l?a-=n:a+=n;let s=F.current,u=I.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=Ci(()=>{c(f,l)})}},n=()=>{g(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),Ci.cancel(e)}}},[h]),x.useEffect(()=>(O(),()=>{clearTimeout(D.current)}),[i]),x.useImperativeHandle(t,()=>({delayHidden:O}));let L=`${n}-scrollbar`,R={position:`absolute`,visibility:T?null:`hidden`},z={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(R,{height:8,left:0,right:0,bottom:0}),Object.assign(z,{height:`100%`,width:u,[S?`left`:`right`]:j})):(Object.assign(R,{width:8,top:0,bottom:0,[S?`right`:`left`]:0}),Object.assign(z,{width:`100%`,height:u,top:j})),x.createElement(`div`,{ref:C,className:Z(L,{[`${L}-horizontal`]:l,[`${L}-vertical`]:!l,[`${L}-visible`]:T}),style:{...R,...f},onMouseDown:M,onMouseMove:O},x.createElement(`div`,{ref:w,className:Z(`${L}-thumb`,{[`${L}-thumb-moving`]:h}),style:{...z,...p},onMouseDown:P}))}),fC=20;function pC(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,fC),Math.floor(n)}var mC=[],hC={overflowY:`auto`,overflowAnchor:`none`};function gC(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:m=`div`,onScroll:h,onVirtualScroll:g,onVisibleChange:_,innerProps:v,extraRender:y,styles:b,showScrollBar:S=`optional`,...C}=e,w=x.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[T,E,D,O]=rC(w,null,null),k=!!(d!==!1&&i&&a),A=x.useMemo(()=>Object.values(D.maps).reduce((e,t)=>e+t,0),[D.id,D.maps]),j=k&&c&&(Math.max(a*c.length,A)>i||!!p),M=f===`rtl`,N=Z(n,{[`${n}-rtl`]:M},r),P=c||mC,F=(0,x.useRef)(),I=(0,x.useRef)(),L=(0,x.useRef)(),[R,z]=(0,x.useState)(0),[B,V]=(0,x.useState)(0),[H,U]=(0,x.useState)(!1),W=()=>{U(!0)},G=()=>{U(!1)},K={getKey:w};function ee(e){z(t=>{let n;n=typeof e==`function`?e(t):e;let r=pe(n);return F.current.scrollTop=r,r})}let te=(0,x.useRef)({start:0,end:P.length}),q=(0,x.useRef)(),[J]=XS(P,w);q.current=J;let{scrollHeight:Y,start:ne,end:X,offset:re}=x.useMemo(()=>{if(!k)return{scrollHeight:void 0,start:0,end:P.length-1,offset:void 0};if(!j)return{scrollHeight:I.current?.offsetHeight||0,start:0,end:P.length-1,offset:void 0};let e=0,t,n,r,o=P.length;for(let s=0;s<o;s+=1){let o=P[s],c=w(o),l=D.get(c),u=e+(l===void 0?a:l);u>=R&&t===void 0&&(t=s,n=e),u>R+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=P.length-1),r=Math.min(r+1,P.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[j,k,R,P,O,i]);te.current.start=ne,te.current.end=X,x.useLayoutEffect(()=>{let e=D.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=P[ne];if(r&&n===void 0&&w(r)===t){let e=D.get(t)-a;ee(t=>t+e)}}D.resetRecord()},[Y]);let[ie,ae]=x.useState({width:0,height:i}),oe=e=>{ae({width:e.offsetWidth,height:e.offsetHeight})},se=(0,x.useRef)(),ce=(0,x.useRef)(),le=x.useMemo(()=>pC(ie.width,p),[ie.width,p]),ue=x.useMemo(()=>pC(ie.height,Y),[ie.height,Y]),de=Y-i,fe=(0,x.useRef)(de);fe.current=de;function pe(e){let t=e;return Number.isNaN(fe.current)||(t=Math.min(t,fe.current)),t=Math.max(t,0),t}let me=R<=0,he=R>=de,ge=B<=0,_e=B>=p,ve=QS(me,he,ge,_e),ye=()=>({x:M?-B:B,y:R}),be=(0,x.useRef)(ye()),xe=Fn(e=>{if(g){let t={...ye(),...e};(be.current.x!==t.x||be.current.y!==t.y)&&(g(t),be.current=t)}});function Se(e,t){let n=e;t?((0,Ii.flushSync)(()=>{V(n)}),xe()):ee(n)}function Ce(e){let{scrollTop:t}=e.currentTarget;t!==R&&ee(t),h?.(e),xe()}let we=e=>{let t=e,n=p?p-ie.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Te=Fn((e,t)=>{t?((0,Ii.flushSync)(()=>{V(t=>we(t+(M?-e:e)))}),xe()):ee(t=>t+e)}),[Ee,De]=$S(k,me,he,ge,_e,!!p,Te);aC(k,F,(e,t,n,r)=>{let i=r;return ve(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ee({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),cC(j,F,e=>{ee(t=>t+e)}),Rn(()=>{function e(e){let t=me&&e.detail<0,n=he&&e.detail>0;k&&!t&&!n&&e.preventDefault()}let t=F.current;return t.addEventListener(`wheel`,Ee,{passive:!1}),t.addEventListener(`DOMMouseScroll`,De,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Ee),t.removeEventListener(`DOMMouseScroll`,De),t.removeEventListener(`MozMousePixelScroll`,e)}},[k,me,he]),Rn(()=>{if(p){let e=we(B);V(e),xe({x:e})}},[ie.width,p]);let Oe=()=>{se.current?.delayHidden(),ce.current?.delayHidden()},ke=uC(F,P,D,a,w,()=>E(!0),ee,Oe);x.useImperativeHandle(t,()=>({nativeElement:L.current,getScrollInfo:ye,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&V(we(e.left)),ke(e.top)):ke(e)}})),Rn(()=>{_&&_(P.slice(ne,X+1),P)},[ne,X,P]);let Ae=eC(P,w,D,a),je=y?.({start:ne,end:X,virtual:j,offsetX:B,offsetY:re,rtl:M,getSize:Ae}),Me=JS(P,ne,X,p,B,T,l,K),Ne=null;i&&(Ne={[o?`height`:`maxHeight`]:i,...hC},k&&(Ne.overflowY=`hidden`,p&&(Ne.overflowX=`hidden`),H&&(Ne.pointerEvents=`none`)));let Pe={};return M&&(Pe.dir=`rtl`),x.createElement(`div`,Vg({ref:L,style:{...s,position:`relative`},className:N},Pe,C),x.createElement(ta,{onResize:oe},x.createElement(m,{className:`${n}-holder`,style:Ne,ref:F,onScroll:Ce,onMouseEnter:Oe},x.createElement(KS,{prefixCls:n,height:Y,offsetX:B,offsetY:re,scrollWidth:p,onInnerResize:E,ref:I,innerProps:v,rtl:M,extra:je},Me))),j&&Y>i&&x.createElement(dC,{ref:se,prefixCls:n,scrollOffset:R,scrollRange:Y,rtl:M,onScroll:Se,onStartMove:W,onStopMove:G,spinSize:ue,containerSize:ie.height,style:b?.verticalScrollBar,thumbStyle:b?.verticalScrollBarThumb,showScrollBar:S}),j&&p>ie.width&&x.createElement(dC,{ref:ce,prefixCls:n,scrollOffset:B,scrollRange:p,rtl:M,onScroll:Se,onStartMove:W,onStopMove:G,spinSize:le,containerSize:ie.width,horizontal:!0,style:b?.horizontalScrollBar,thumbStyle:b?.horizontalScrollBarThumb,showScrollBar:S}))}var _C=x.forwardRef(gC);_C.displayName=`List`;var vC=_C;function yC(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function bC(){return bC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bC.apply(this,arguments)}function xC(e){return typeof e==`string`||typeof e==`number`}var SC=x.forwardRef((e,t)=>{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=Bx(),{maxCount:p,flattenOptions:m,onActiveValue:h,defaultActiveFirstOption:g,onSelect:_,menuItemSelectedIcon:v,rawValues:y,fieldNames:b,virtual:S,direction:C,listHeight:w,listItemHeight:T,optionRender:E,classNames:D,styles:O}=x.useContext(cS),k=`${n}-item`,A=qn(()=>m,[i,f],(e,t)=>t[0]&&!t[1]),j=x.useRef(null),M=x.useMemo(()=>a&&Jx(p)&&y?.size>=p,[a,p,y?.size]),N=e=>{e.preventDefault()},P=e=>{j.current?.scrollTo(typeof e==`number`?{index:e}:e)},F=x.useCallback(e=>o===`combobox`?!1:y.has(e),[o,[...y].toString(),y.size]),I=(e,t=1)=>{let n=A.length;for(let r=0;r<n;r+=1){let i=(e+r*t+n)%n,{group:a,data:o}=A[i]||{};if(!a&&!o?.disabled&&(F(o.value)||!M))return i}return-1},[L,R]=x.useState(()=>I(0)),z=(e,t=!1)=>{R(e);let n={source:t?`keyboard`:`mouse`},r=A[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,x.useEffect)(()=>{z(g===!1?-1:I(0))},[A.length,s]);let B=x.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():y.has(e),[o,s,[...y].toString(),y.size]);(0,x.useEffect)(()=>{let e;if(!a&&i&&y.size===1){let t=Array.from(y)[0],n=A.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(z(n),e=setTimeout(()=>{P(n)}))}return i&&j.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let V=e=>{e!==void 0&&_(e,{selected:!y.has(e)}),a||c(!1)};if(x.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case Jr.N:case Jr.P:case Jr.UP:case Jr.DOWN:{let e=0;if(t===Jr.UP?e=-1:t===Jr.DOWN?e=1:yC()&&n&&(t===Jr.N?e=1:t===Jr.P&&(e=-1)),e!==0){let t=I(L+e,e);P(t),z(t,!0)}break}case Jr.TAB:case Jr.ENTER:{let t=A[L];if(!t||t.data.disabled)return V(void 0);!M||y.has(t.value)?V(t.value):V(void 0),i&&e.preventDefault();break}case Jr.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{P(e)}})),A.length===0)return x.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${k}-empty`,onMouseDown:N},l);let H=Object.keys(b).map(e=>b[e]),U=e=>e.label;function W(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let G=e=>{let t=A[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=_i(n,!0),s=U(t);return t?x.createElement(`div`,bC({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},W(t,e),{"aria-selected":B(r),"aria-disabled":i}),r):null},K={role:`listbox`,id:`${r}_list`};return x.createElement(x.Fragment,null,S&&x.createElement(`div`,bC({},K,{style:{height:0,width:0,overflow:`hidden`}}),G(L-1),G(L),G(L+1)),x.createElement(vC,{itemKey:`key`,ref:j,data:A,height:w,itemHeight:T,fullHeight:!1,onMouseDown:N,onScroll:u,virtual:S,direction:C,innerProps:S?null:K,showScrollBar:d,className:D?.popup?.list,style:O?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(xC(a)?a.toString():void 0);return x.createElement(`div`,{className:Z(k,`${k}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,m=fi(p,H),h=F(o),g=c||!h&&M,_=`${k}-option`,y=Z(k,_,f,D?.popup?.listItem,{[`${_}-grouped`]:r,[`${_}-active`]:L===t&&!g,[`${_}-disabled`]:g,[`${_}-selected`]:h}),b=U(e),C=!v||typeof v==`function`||h,w=typeof b==`number`?b:b||o,T=xC(w)?w.toString():void 0;return l!==void 0&&(T=l),x.createElement(`div`,bC({},_i(m),S?{}:W(e,t),{"aria-selected":S?void 0:B(o),"aria-disabled":g,className:y,title:T,onMouseMove:()=>{L===t||g||z(t)},onClick:()=>{g||V(o)},style:{...O?.popup?.listItem,...d}}),x.createElement(`div`,{className:`${_}-content`},typeof E==`function`?E(e,{index:t}):w),x.isValidElement(v)||h,C&&x.createElement(AS,{className:`${k}-option-state`,customizeIcon:v,customizeIconProps:{value:o,disabled:g,isSelected:h}},h?`✓`:null))}))}),CC=((e,t)=>{let n=x.useRef({values:new Map,options:new Map});return[x.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),x.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function wC(e,t){return lS(e).join(``).toUpperCase().includes(t)}var TC=((e,t,n,r,i)=>x.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>wC(t[e],u)):t[a]?wC(t[o===`children`?`label`:o],u):wC(t[s],u),f=l?e=>Zx(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function EC(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function DC(e,t=!1){return wi(e).map((e,n)=>{if(!x.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?EC(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:DC(a)}}).filter(e=>e)}var OC=(e,t,n,r,i)=>x.useMemo(()=>{let a=e;e||(a=DC(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a<e.length;a+=1){let u=e[a];!u[n.options]||t?(o.set(u[n.value],u),c(s,u,n.label),r.forEach(e=>{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function kC(e){let t=x.useRef();return t.current=e,x.useCallback((...e)=>t.current(...e),[])}function AC(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return x.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function jC(){return jC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jC.apply(this,arguments)}var MC=[`inputValue`];function NC(e){return!e||typeof e!=`object`}var PC=x.forwardRef((e,t)=>{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:h,onActive:g,popupMatchSelectWidth:_=!0,optionLabelProp:v,options:y,optionRender:b,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:T,direction:E,listHeight:D=200,listItemHeight:O=20,labelRender:k,value:A,defaultValue:j,labelInValue:M,onChange:N,maxCount:P,classNames:F,styles:I,...L}=e,[R,z]=AC(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:B,searchValue:V,optionFilterProp:H,filterSort:U,onSearch:W,autoClearSearchValue:G=!0}=z,K=x.useMemo(()=>H?Array.isArray(H)?H:[H]:[],[H]),ee=Kn(n),te=HS(r),q=!!(!y&&S),J=x.useMemo(()=>B===void 0&&r===`combobox`?!1:B,[B,r]),Y=x.useMemo(()=>Yx(o,q),[JSON.stringify(o),q]),[ne,X]=Vn(``,V),re=ne||``,ie=OC(y,S,Y,K,v),{valueOptions:ae,labelOptions:oe,options:se}=ie,ce=x.useCallback(e=>lS(e).map(e=>{let t,n,r,i;NC(e)?t=e:(n=e.label,t=e.value);let a=ae.get(t);return a&&(n===void 0&&(n=a?.[v||Y.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[Y,v,ae]),[le,ue]=Vn(j,A),[de,fe]=CC(x.useMemo(()=>{let e=ce(te&&le===null?[]:le);return r===`combobox`&&dS(e[0]?.value)?[]:e},[le,ce,r,te]),ae),pe=x.useMemo(()=>{if(!r&&de.length===1){let e=de[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return de.map(e=>({...e,label:(typeof k==`function`?k(e):e.label)??e.value}))},[r,de,k]),me=x.useMemo(()=>new Set(de.map(e=>e.value)),[de]);x.useEffect(()=>{if(r===`combobox`){let e=de[0]?.value;X(uS(e)?String(e):``)}},[de]);let he=kC((e,t)=>{let n=t??e;return{[Y.value]:e,[Y.label]:n}}),ge=TC(x.useMemo(()=>{if(r!==`tags`)return se;let e=[...se],t=e=>ae.has(e);return[...de].sort((e,t)=>e.value<t.value?-1:1).forEach(n=>{let r=n.value;t(r)||e.push(he(r,n.label))}),e},[he,se,ae,de,r]),Y,re,J,K),_e=x.useMemo(()=>{let e=e=>K.length?K.some(t=>e?.[t]===re):e?.value===re;return r!==`tags`||!re||ge.some(t=>e(t))||ge.some(e=>e[Y.value]===re)?ge:[he(re),...ge]},[he,K,r,ge,re,Y]),ve=e=>[...e].sort((e,t)=>U(e,t,{searchValue:re})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?ve(e.options):e.options}:e),ye=x.useMemo(()=>U?ve(_e):_e,[_e,U,re]),be=x.useMemo(()=>Xx(ye,{fieldNames:Y,childrenAsData:q}),[ye,Y,q]),xe=e=>{let t=ce(e);if(ue(t),N&&(t.length!==de.length||t.some((e,t)=>de[t]?.value!==e?.value))){let e=M?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>Zx(fe(e.value)));N(te?e:e[0],te?n:n[0])}},[Se,Ce]=x.useState(null),[we,Te]=x.useState(0),Ee=C===void 0?r!==`combobox`:C,De=x.useRef(),Oe=x.useCallback((e,t,{source:n=`keyboard`}={})=>{Te(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&Ce(String(e));let i=Promise.resolve().then(()=>{De.current===i&&g?.(e)});De.current=i},[a,r,g]),ke=(e,t,n)=>{let r=()=>{let t=fe(e);return[M?{label:t?.[Y.label],value:e}:e,Zx(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&h&&n!==`clear`){let[e,t]=r();h(e,t)}},Ae=kC((e,t)=>{let n,i=te?t.selected:!0;n=i?te?[...de,e]:[e]:de.filter(t=>t.value!==e),xe(n),ke(e,i),r===`combobox`?Ce(``):(!HS||G)&&(X(``),Ce(``))}),je=(e,t)=>{xe(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{ke(e.value,!1,n)})},Me=(e,t)=>{if(X(e),Ce(null),t.source===`submit`){let t=(e||``).trim();t&&(xe(Array.from(new Set([...me,t]))),ke(t,!0),X(``));return}t.source!==`blur`&&(r===`combobox`&&xe(e),W?.(e))},Ne=e=>{let t=e;r!==`tags`&&(t=e.map(e=>oe.get(e)?.value).filter(e=>e!==void 0));let n=Array.from(new Set([...me,...t]));xe(n),n.forEach(e=>{ke(e,!0)})},Pe=x.useMemo(()=>{let e=T!==!1&&_!==!1;return{...ie,flattenOptions:be,onActiveValue:Oe,defaultActiveFirstOption:Ee,onSelect:Ae,menuItemSelectedIcon:w,rawValues:me,fieldNames:Y,virtual:e,direction:E,listHeight:D,listItemHeight:O,childrenAsData:q,maxCount:P,optionRender:b,classNames:F,styles:I}},[P,ie,be,Oe,Ee,Ae,w,me,Y,T,_,E,D,O,q,b,F,I]);return x.createElement(cS.Provider,{value:Pe},x.createElement(US,jC({},L,{id:ee,prefixCls:i,ref:t,omitDomProps:MC,mode:r,classNames:F,styles:I,displayValues:pe,onDisplayValuesChange:je,maxCount:P,direction:E,showSearch:R,searchValue:re,onSearch:Me,autoClearSearchValue:G,onSearchSplit:Ne,popupMatchSelectWidth:_,OptionList:SC,emptyOptions:!be.length,activeValue:Se,activeDescendantId:`${ee}_list_${we}`})))});PC.Option=GS,PC.OptGroup=WS;var FC=PC,IC=(e,t,n)=>Z({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),LC=(e,t)=>t||e,RC=()=>{let[,e]=Il(),[t]=Wd(`Empty`),n=new Oc(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement(`svg`,{style:n,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},x.createElement(`title`,null,t?.description||`Empty`),x.createElement(`g`,{fill:`none`,fillRule:`evenodd`},x.createElement(`g`,{transform:`translate(24 31.7)`},x.createElement(`ellipse`,{fillOpacity:`.8`,fill:`#F5F5F7`,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),x.createElement(`path`,{fill:`#aeb8c2`,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),x.createElement(`path`,{fill:`#f5f5f7`,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),x.createElement(`path`,{fill:`#dce0e6`,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),x.createElement(`path`,{fill:`#dce0e6`,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),x.createElement(`g`,{fill:`#fff`,transform:`translate(149.7 15.4)`},x.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),x.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},zC=()=>{let[,e]=Il(),[t]=Wd(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,x.useMemo)(()=>({borderColor:new Oc(n).onBackground(a).toHexString(),shadowColor:new Oc(r).onBackground(a).toHexString(),contentColor:new Oc(i).onBackground(a).toHexString()}),[n,r,i,a]);return x.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},x.createElement(`title`,null,t?.description||`Empty`),x.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},x.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),x.createElement(`g`,{fillRule:`nonzero`,stroke:o},x.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),x.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:c}))))},BC=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},VC=ql(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return BC(oc(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),HC=x.createElement(RC,null),UC=x.createElement(zC,null),WC=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:m,style:h,classNames:g,styles:_,image:v}=ma(`empty`),y=f(`empty`,r),[b,S]=VC(y),[C,w]=vf([g,l],[_,u],{props:e}),[T]=Wd(`Empty`),E=a===void 0?T?.description:a,D=typeof E==`string`?E:`empty`,O=i??v??HC,k=null;return k=typeof O==`string`?x.createElement(`img`,{draggable:!1,alt:D,src:O}):O,x.createElement(`div`,{className:Z(b,S,y,m,{[`${y}-normal`]:O===UC,[`${y}-rtl`]:p===`rtl`},t,n,C.root),style:{...w.root,...h,...c},...d},x.createElement(`div`,{className:Z(`${y}-image`,C.image),style:{...s,...w.image}},k),E&&x.createElement(`div`,{className:Z(`${y}-description`,C.description),style:w.description},E),o&&x.createElement(`div`,{className:Z(`${y}-footer`,C.footer),style:w.footer},o))};WC.PRESENTED_IMAGE_DEFAULT=HC,WC.PRESENTED_IMAGE_SIMPLE=UC;var GC=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,x.useContext)(da),r=n(`empty`);switch(t){case`Table`:case`List`:return x.createElement(WC,{image:WC.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return x.createElement(WC,{image:WC.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return x.createElement(WC,null)}},KC=(e,t,n)=>{let{variant:r,[e]:i}=x.useContext(da),a=x.useContext(jy),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=ua.includes(s);return[s,c]},qC=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function JC(e,t){return e||qC(t)}var YC=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},XC=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Rl(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,[`
|
||
${i}${s}bottomLeft,
|
||
${a}${s}bottomLeft
|
||
`]:{animationName:ag},[`
|
||
${i}${s}topLeft,
|
||
${a}${s}topLeft,
|
||
${i}${s}topRight,
|
||
${a}${s}topRight
|
||
`]:{animationName:sg},[`${o}${s}bottomLeft`]:{animationName:og},[`
|
||
${o}${s}topLeft,
|
||
${o}${s}topRight
|
||
`]:{animationName:cg},"&-hidden":{display:`none`},[r]:{...YC(e),cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...Ll},"&-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":{...YC(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},mg(e,`slide-up`),mg(e,`slide-down`),ig(e,`move-up`),ig(e,`move-down`)]},ZC=e=>{let{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${t}-placeholder`]:{display:`none`},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:`none`}}}}},QC=4,$C=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=Xl(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${QC}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
||
${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...Ll,marginInlineEnd:a},"&-remove":{...zl(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:QC,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},ew=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Xl(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`color`)]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},tw=(e,t,n,r={},i={},a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[ew(e,n),{[`&${o}-status-error`]:ew(e,{...n,color:r.color||e.colorError,...r}),[`&${o}-status-warning`]:ew(e,{...n,color:i.color||e.colorWarning,...i})},a]}},nw=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,iconCls:i,antCls:a,calc:o}=e,[s,c]=Xl(a,`select`);return{[t]:[{[s(`border-radius`)]:e.borderRadius,[s(`border-color`)]:`#000`,[s(`border-size`)]:e.lineWidth,[s(`background-color`)]:e.colorBgContainer,[s(`font-size`)]:e.fontSize,[s(`line-height`)]:e.lineHeight,[s(`font-height`)]:n,[s(`color`)]:e.colorText,[s(`height`)]:r,[s(`padding-horizontal`)]:o(e.paddingSM).sub(e.lineWidth).equal(),[s(`padding-vertical`)]:`calc((${c(`height`)} - ${c(`font-height`)}) / 2 - ${c(`border-size`)})`,...Rl(e,!0),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:c(`border-radius`),borderWidth:c(`border-size`),borderStyle:e.lineType,borderColor:c(`border-color`),background:c(`background-color`),fontSize:c(`font-size`),lineHeight:c(`line-height`),color:c(`color`),paddingInline:c(`padding-horizontal`),paddingBlock:c(`padding-vertical`),[`${t}-prefix`]:{flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...Ll,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:o(e.paddingXXS).mul(1.5).equal(),"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[i]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[s(`height`)]:e.controlHeightSM,[s(`padding-horizontal`)]:o(e.paddingXS).sub(e.lineWidth).equal(),[s(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:c(`padding-horizontal`)}},"&-lg":{[s(`height`)]:e.controlHeightLG,[s(`font-size`)]:e.fontSizeLG,[s(`line-height`)]:e.lineHeightLG,[s(`font-height`)]:e.fontHeightLG,[s(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:c(`color`),"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`calc(${c(`font-height`)} + ${c(`padding-vertical`)} * 2)`},[`${t}-content`]:{...Ll,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:`transparent`}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},$C(e),tw(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),tw(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),tw(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`}),tw(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),ZC(e)]}},rw=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},iw=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...Rl(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...Ll,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,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`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},aw=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},iw(e),XC(e),{[`${t}-rtl`]:{direction:`rtl`}},p_(e,{focusElCls:`${t}-focused`})]},ow=ql(`Select`,(e,{rootPrefixCls:t})=>{let n=oc(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[aw(n),nw(n)]},rw,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),sw=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function cw(){return cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cw.apply(this,arguments)}var lw=x.forwardRef((e,t)=>x.createElement(_u,cw({},e,{ref:t,icon:sw.default}))),uw=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dw.apply(this,arguments)}var fw=x.forwardRef((e,t)=>x.createElement(_u,dw({},e,{ref:t,icon:uw.default}))),pw=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mw.apply(this,arguments)}var hw=x.forwardRef((e,t)=>x.createElement(_u,mw({},e,{ref:t,icon:pw.default})));function gw({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,loadingIcon:a,multiple:o,hasFeedback:s,showSuffixIcon:c,feedbackIcon:l,showArrow:u,componentName:d}){let f=t??x.createElement(Cu,null),p=t=>e===null&&!s&&!u?null:x.createElement(x.Fragment,null,c!==!1&&t,s&&l),m=null;m=e===void 0?i?p(a??x.createElement(qm,{spin:!0})):({open:e,showSearch:t})=>p(e&&t?x.createElement(hw,null):x.createElement(fw,null)):p(e);let h=null;h=n===void 0?o?x.createElement(lw,null):null:n;let g=null;return g=r===void 0?x.createElement(Eu,null):r,{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}function _w(e){return x.useMemo(()=>{if(e)return(...t)=>x.createElement(My,{space:!0},e.apply(void 0,t))},[e])}function vw(e,t){return t===void 0?e!==null:t}var yw=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,bw=x.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:m,status:h,builtinPlacements:g,dropdownMatchSelectWidth:_,popupMatchSelectWidth:v,direction:y,style:b,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,...I}=e,{getPopupContainer:L,getPrefixCls:R,renderEmpty:z,direction:B,virtual:V,popupMatchSelectWidth:H,popupOverflow:U}=x.useContext(da),{showSearch:W,style:G,styles:K,className:ee,classNames:te}=ma(`select`),[,q]=Il(),J=d??q?.controlHeight,Y=R(`select`,n),ne=R(),X=y??B,{compactSize:re,compactItemClassnames:ie}=Oh(Y,X),[ae,oe]=KC(`select`,C,r),se=np(Y),[ce,le]=ow(Y,se),ue=x.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===yw?`combobox`:t},[e.mode]),de=ue===`multiple`||ue===`tags`,fe=vw(e.suffixIcon,e.showArrow),pe=v??_??H,me=_w(j||A),he=N||M,{status:ge,hasFeedback:_e,isFormItemInput:ve,feedbackIcon:ye}=x.useContext(ky),be=LC(ge,h),xe;xe=m===void 0?ue===`combobox`?null:z?.(`Select`)||x.createElement(GC,{componentName:`Select`}):m;let{suffixIcon:Se,itemIcon:Ce,removeIcon:we,clearIcon:Te}=gw({...I,multiple:de,hasFeedback:_e,feedbackIcon:ye,showSuffixIcon:fe,prefixCls:Y,componentName:`Select`}),Ee=S===!0?{clearIcon:Te}:S,De=fi(I,[`suffixIcon`,`itemIcon`]),Oe=Th(e=>f??re??e),ke=x.useContext(lm),Ae=p??ke,je={...e,variant:ae,status:be,disabled:Ae,size:Oe},[Me,Ne]=vf([te,F],[K,P],{props:je},{popup:{_default:`root`}}),Pe=Z(Me.popup?.root,s,c,{[`${Y}-dropdown-${X}`]:X===`rtl`},a,le,se,ce),Fe={...Ne.popup?.root,...w??T},Ie=Z({[`${Y}-lg`]:Oe===`large`,[`${Y}-sm`]:Oe===`small`,[`${Y}-rtl`]:X===`rtl`,[`${Y}-${ae}`]:oe,[`${Y}-in-form-item`]:ve},IC(Y,be,_e),ie,ee,i,Me.root,a,le,se,ce),Le=x.useMemo(()=>u===void 0?X===`rtl`?`bottomRight`:`bottomLeft`:u,[u,X]),[Re]=Mf(`SelectLike`,Ne.popup?.root?.zIndex??Fe?.zIndex);return x.createElement(FC,{ref:t,virtual:V,classNames:Me,styles:Ne,showSearch:W,...De,style:{...Ne.root,...G,...b},popupMatchSelectWidth:pe,transitionName:hh(ne,`slide-up`,E),builtinPlacements:JC(g,U),listHeight:l,listItemHeight:J,mode:ue,prefixCls:Y,placement:Le,direction:X,prefix:k,suffixIcon:Se,menuItemSelectedIcon:Ce,removeIcon:we,allowClear:Ee,notFoundContent:xe,className:Ie,getPopupContainer:o||L,popupClassName:Pe,disabled:Ae,popupStyle:{...Ne.popup?.root,...Fe,zIndex:Re},maxCount:de?O:void 0,tagRender:de?D:void 0,popupRender:me,onPopupVisibleChange:he})}),xw=Lx(bw,`popupAlign`);bw.SECRET_COMBOBOX_MODE_DO_NOT_USE=yw,bw.Option=GS,bw.OptGroup=WS,bw._InternalPanelDoNotUseOrYouWillBeFired=xw;var Sw=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Cw=[].concat(Sw).reverse(),ww=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Tw=e=>{let t=e,n=[].concat(Sw).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},Ew=()=>{let[,e]=Il(),t=ww(Tw(e));return x.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);typeof i?.addEventListener==`function`&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];typeof t?.mql?.removeEventListener==`function`&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function Dw(e=!0,t={}){let n=(0,x.useRef)(t),[,r]=lf(),i=Ew();return Rn(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var Ow=x.createContext({}),kw=e=>{let{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:c,textFontSize:l,textFontSizeLG:u,textFontSizeSM:d,iconFontSize:f,iconFontSizeLG:p,iconFontSizeSM:m,borderRadius:h,borderRadiusLG:g,borderRadiusSM:_,lineWidth:v,lineType:y}=e,b=(e,t,i,a)=>({width:e,height:e,borderRadius:`50%`,fontSize:t,[`&${n}-square`]:{borderRadius:a},[`&${n}-icon`]:{fontSize:i,[`> ${r}`]:{margin:0}}});return{[n]:{...Rl(e),position:`relative`,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,overflow:`hidden`,color:a,whiteSpace:`nowrap`,textAlign:`center`,verticalAlign:`middle`,background:i,border:`${Q(v)} ${y} transparent`,"&-image":{background:`transparent`},[`${t}-image-img`]:{display:`block`},...b(o,l,f,h),"&-lg":{...b(s,u,p,g)},"&-sm":{...b(c,d,m,_)},"> img":{display:`block`,width:`100%`,height:`100%`,objectFit:`cover`}}}},Aw=e=>{let{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:`inline-flex`,[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},jw=ql(`Avatar`,e=>{let{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=oc(e,{avatarBg:n,avatarColor:t});return[kw(r),Aw(r)]},e=>{let{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:c,marginXXS:l,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:i,textFontSizeLG:i,textFontSizeSM:i,iconFontSize:Math.round((a+o)/2),iconFontSizeLG:s,iconFontSizeSM:i,groupSpace:l,groupOverlapping:-c,groupBorderColor:u}}),Mw=x.forwardRef((e,t)=>{let{prefixCls:n,shape:r,size:i,src:a,srcSet:o,icon:s,className:c,rootClassName:l,style:u,alt:d,draggable:f,children:p,crossOrigin:m,gap:h=4,onError:g,..._}=e,[v,y]=x.useState(1),[b,S]=x.useState(!1),[C,w]=x.useState(!0),T=x.useRef(null),E=x.useRef(null),D=ir(t,T),{getPrefixCls:O,className:k,style:A}=ma(`avatar`),j=x.useContext(Ow),M=()=>{if(!E.current||!T.current)return;let e=E.current.offsetWidth,t=T.current.offsetWidth;e!==0&&t!==0&&h*2<t&&y(t-h*2<e?(t-h*2)/e:1)};x.useEffect(()=>{S(!0)},[]),x.useEffect(()=>{w(!0),y(1)},[a]),x.useEffect(M,[h]);let N=()=>{g?.()!==!1&&w(!1)},P=Th(e=>i??j?.size??e??`medium`),F=Dw(Object.keys(Zd(P)&&P||{}).some(e=>Sw.includes(e))),I=x.useMemo(()=>{if(!Zd(P))return{};let e=P[Sw.find(e=>F[e])];return e?{width:e,height:e,fontSize:e&&(s||p)?e/2:18}:{}},[F,P,s,p]),L=O(`avatar`,n),R=np(L),[z,B]=jw(L,R),V=Z({[`${L}-lg`]:P===`large`,[`${L}-sm`]:P===`small`}),H=x.isValidElement(a),U=Z(L,V,k,`${L}-${r||j?.shape||`circle`}`,{[`${L}-image`]:H||a&&C,[`${L}-icon`]:!!s},B,R,c,l,z),W=Yd(P)?{width:P,height:P,fontSize:s?P/2:18}:{},G;if(typeof a==`string`&&C)G=x.createElement(`img`,{src:a,draggable:f,srcSet:o,onError:N,alt:d,crossOrigin:m});else if(H)G=a;else if(s)G=s;else if(b||v!==1){let e=`scale(${v})`,t={msTransform:e,WebkitTransform:e,transform:e};G=x.createElement(ta,{onResize:M},x.createElement(`span`,{className:`${L}-string`,ref:E,style:t},p))}else G=x.createElement(`span`,{className:`${L}-string`,style:{opacity:0},ref:E},p);return x.createElement(`span`,{..._,style:{...W,...I,...A,...u},className:U,ref:D},G)}),Nw=e=>e?typeof e==`function`?e():e:null,Pw=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return x.createElement(`div`,{id:r,className:Z(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},Fw={shiftX:64,adjustY:1},Iw={adjustX:1,shiftY:!0},Lw=[0,0],Rw={left:{points:[`cr`,`cl`],overflow:Iw,offset:[-4,0],targetOffset:Lw},right:{points:[`cl`,`cr`],overflow:Iw,offset:[4,0],targetOffset:Lw},top:{points:[`bc`,`tc`],overflow:Fw,offset:[0,-4],targetOffset:Lw},bottom:{points:[`tc`,`bc`],overflow:Fw,offset:[0,4],targetOffset:Lw},topLeft:{points:[`bl`,`tl`],overflow:Fw,offset:[0,-4],targetOffset:Lw},leftTop:{points:[`tr`,`tl`],overflow:Iw,offset:[-4,0],targetOffset:Lw},topRight:{points:[`br`,`tr`],overflow:Fw,offset:[0,-4],targetOffset:Lw},rightTop:{points:[`tl`,`tr`],overflow:Iw,offset:[4,0],targetOffset:Lw},bottomRight:{points:[`tr`,`br`],overflow:Fw,offset:[0,4],targetOffset:Lw},rightBottom:{points:[`bl`,`br`],overflow:Iw,offset:[4,0],targetOffset:Lw},bottomLeft:{points:[`tl`,`bl`],overflow:Fw,offset:[0,4],targetOffset:Lw},leftBottom:{points:[`br`,`bl`],overflow:Iw,offset:[-4,0],targetOffset:Lw}};function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}var Bw=x.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:v=!0,classNames:y,styles:b,...S}=e,C=Kn(_),w=(0,x.useRef)(null);(0,x.useImperativeHandle)(t,()=>w.current);let T={...S};`visible`in e&&(T.popupVisible=e.visible);let E=x.useMemo(()=>{if(!v)return!1;let e=v===!0?{}:v;return{...e,className:Z(e.className,y?.arrow),style:{...e.style,...b?.arrow},content:e.content??h}},[v,y?.arrow,b?.arrow,h]);return x.createElement(tm,zw({popupClassName:y?.root,prefixCls:a,popup:x.createElement(Pw,{key:`content`,prefixCls:a,id:C,classNames:y,styles:b},g),action:n,builtinPlacements:Rw,popupPlacement:u,ref:w,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:b?.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:y?.uniqueContainer,uniqueContainerStyle:b?.uniqueContainer},T),({open:e})=>{let t=x.Children.only(o),n={"aria-describedby":g&&e?C:void 0};return x.cloneElement(t,n)})});function Vw(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Hw=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${Q(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function Uw(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Ww(e,t){return e?t:{}}var Gw=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Xl(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Hw(e,t,i),"&:before":{background:t}}],...Ww(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Ww(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Ww(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...Ww(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function Kw(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=Zd(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var qw={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`]}},Jw={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`]}},Yw=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function Xw(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Uw({contentRadius:a,limitVerticalRadius:!0});return Object.keys(qw).forEach(e=>{let a={...r&&Jw[e]||qw[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,Yw.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=Kw(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var Zw=x.createContext(!1),Qw=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return x.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},$w=`50%`,eT=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Xl(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${Q(e.calc(u).div(2).equal())} ${Q(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,$w),`var(--arrow-y, ${$w})`].join(` `)};return[{[n]:{...Rl(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,Xh(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...Zl(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},Gw(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},tT=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Uw({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Vw(oc(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),nT=(e,t,n=!0)=>ql(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[eT(oc(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),kg(e,`zoom-big-fast`)]},tT,{resetStyle:!1,injectStyle:n})(e,t),rT=_c.map(e=>`${e}-inverse`),iT=[`success`,`processing`,`error`,`default`,`warning`];function aT(e,t=!0){return t?[].concat(ca(rT),ca(_c)).includes(e):_c.includes(e)}function oT(e){return iT.includes(e)}var sT=(e,t,n)=>{let r=aT(n),[i]=Xl(e,`tooltip`),a=Z({[`${t}-${n}`]:n&&r}),o={},s={},c=$g(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},cT=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=x.useContext(da),u=l(`tooltip`,t),d=l(),f=np(u),[p,m]=nT(u,f),h=sT(d,u,a),g=h.arrowStyle,_=x.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),v={...e,placement:r},[y,b]=vf([s],[_,c],{props:v}),S=Z(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return x.createElement(`div`,{className:S,style:g},x.createElement(`div`,{className:`${u}-arrow`}),x.createElement(Pw,{...e,className:p,prefixCls:u,classNames:y,styles:b},i))},lT=x.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:v=`top`,mouseEnterDelay:y=.1,mouseLeaveDelay:b=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:T,overlayInnerStyle:E,overlayStyle:D,overlayClassName:O,...k}=e,[,A]=Il(),j=e[`data-popover-inject`],{getPopupContainer:M,getPrefixCls:N,direction:P,...F}=ma(`tooltip`),{className:I,style:L,classNames:R,styles:z,arrow:B,trigger:V}=j?{}:F,H=Qw(c,B),U=H.show,W=p||V||`hover`,G=_||M,K=u??!!l,ee=x.useContext(Zw);Bi(`Tooltip`);let te=x.useRef(null),q=()=>{te.current?.forceAlign()};x.useImperativeHandle(t,()=>({forceAlign:q,nativeElement:te.current?.nativeElement,popupElement:te.current?.popupElement}));let[J,Y]=Vn(e.defaultOpen??!1,e.open),ne=!d&&!f&&d!==0,X=e=>{Y(ne?!1:e),!ne&&T&&T(e)},re=x.useMemo(()=>m||Xw({arrowPointAtCenter:H?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:U?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0}),[H,m,A,U,h]),ie=x.useMemo(()=>d===0?d:f||d||``,[f,d]),ae=x.createElement(My,{space:!0,form:!0},typeof ie==`function`?ie():ie),oe={...e,trigger:W,builtinPlacements:re,getPopupContainer:G,destroyOnHidden:K},[se,ce]=vf([R,w],[z,C],{props:oe}),le=N(`tooltip`,n),ue=N(),de=J;(!(`open`in e)&&ne||ee)&&(de=!1);let fe=x.isValidElement(o)&&!nm(o)?o:x.createElement(`span`,null,o),pe=fe.props,me=!pe.className||typeof pe.className==`string`?Z(pe.className,r||`${le}-open`):pe.className,he=np(le),[ge,_e]=nT(le,he,!j),ve=sT(ue,le,a),ye=ve.arrowStyle,be=Z(he,ge,_e),xe=Z(O,{[`${le}-rtl`]:P===`rtl`},ve.className,S,be,I,se.root),[Se,Ce]=Mf(`Tooltip`,k.zIndex),we={...ce.container,...E,...ve.overlayStyle},Te=x.createElement(Bw,{unique:!0,...k,zIndex:Se,showArrow:U,placement:v,mouseEnterDelay:y,mouseLeaveDelay:b,prefixCls:le,classNames:{root:xe,container:se.container,arrow:se.arrow,uniqueContainer:Z(be,se.container)},styles:{root:{...ye,...ce.root,...L,...D},container:we,uniqueContainer:we,arrow:ce.arrow},ref:te,overlay:ae,visible:de,onVisibleChange:X,afterVisibleChange:s,arrowContent:x.createElement(`span`,{className:`${le}-arrow-content`}),motion:{motionName:hh(ue,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:W,builtinPlacements:re,getTooltipContainer:G,destroyOnHidden:K},de?im(fe,{className:me}):fe);return x.createElement(Ef.Provider,{value:Ce},Te)});lT._InternalPanelDoNotUseOrYouWillBeFired=cT,lT.UniqueProvider=cm;var uT=`50%`,dT=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=Xl(g,`tooltip`);return[{[t]:{...Rl(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,uT),`var(--arrow-y, ${uT})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},Gw(e,v(`arrow-background-color`)),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},fT=e=>{let{componentCls:t,antCls:n}=e,[r]=Xl(n,`tooltip`);return{[t]:_c.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},pT=ql(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=oc(e,{popoverBg:t,popoverColor:n});return[dT(r),fT(r),kg(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...Vw(e),...Uw({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),mT=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!t&&!n?null:x.createElement(x.Fragment,null,t&&x.createElement(`div`,{className:Z(`${r}-title`,i?.title),style:a?.title},t),n&&x.createElement(`div`,{className:Z(`${r}-content`,i?.content),style:a?.content},n))},hT=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=Nw(o),f=Nw(s),p={...e,placement:a},[m,h]=vf([l],[u],{props:p}),g=Z(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return x.createElement(`div`,{className:g,style:i},x.createElement(`div`,{className:`${n}-arrow`}),x.createElement(Pw,{...e,className:t,prefixCls:n,classNames:m,styles:h},c||x.createElement(mT,{prefixCls:n,title:d,content:f,classNames:m,styles:h})))},gT=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=x.useContext(da),a=i(`popover`,t),[o,s]=pT(a);return x.createElement(hT,{...r,prefixCls:a,hashId:o,className:Z(n,s)})},_T=x.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:m,motion:h,arrow:g,..._}=e,{getPrefixCls:v,className:y,style:b,classNames:S,styles:C,arrow:w,trigger:T}=ma(`popover`),E=v(`popover`,n),[D,O]=pT(E),k=v(),A=Qw(g,w),j=s||T||`hover`,M={...e,placement:o,trigger:j,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:m},[N,P]=vf([S,m],[C,p],{props:M}),F=Z(a,D,O,y,N.root),[I,L]=Vn(e.defaultOpen??!1,e.open),R=e=>{L(e),d?.(e)},z=Nw(r),B=Nw(i);return x.createElement(lT,{unique:!1,arrow:A,placement:o,trigger:j,mouseEnterDelay:l,mouseLeaveDelay:u,..._,prefixCls:E,classNames:{root:F,container:N.container,arrow:N.arrow},styles:{root:{...P.root,...b,...f},container:P.container,arrow:P.arrow},ref:t,open:I,onOpenChange:R,overlay:z||B?x.createElement(mT,{prefixCls:E,title:z,content:B,classNames:N,styles:P}):null,motion:{motionName:hh(k,`zoom-big`,typeof h?.motionName==`string`?h?.motionName:void 0)},"data-popover-inject":!0},c)});_T._InternalPanelDoNotUseOrYouWillBeFired=gT;var vT=e=>{let{size:t,shape:n}=x.useContext(Ow),r=x.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return x.createElement(Ow.Provider,{value:r},e.children)},yT=e=>{let{getPrefixCls:t,direction:n}=x.useContext(da),{prefixCls:r,className:i,rootClassName:a,style:o,maxCount:s,maxStyle:c,size:l,shape:u,maxPopoverPlacement:d,maxPopoverTrigger:f,children:p,max:m}=e,h=t(`avatar`,r),g=`${h}-group`,_=np(h),[v,y]=jw(h,_),b=Z(g,{[`${g}-rtl`]:n===`rtl`},y,_,i,a,v),S=wi(p).map((e,t)=>im(e,{key:`avatar-key-${t}`})),C=m?.count||s,w=S.length;if(C&&C<w){let e=S.slice(0,C),t=S.slice(C,w),n=m?.style||c,r=m?.popover?.trigger||f||`hover`,i=m?.popover?.placement||d||`top`,a={content:t,...m?.popover,placement:i,trigger:r,rootClassName:Z(`${g}-popover`,m?.popover?.rootClassName)};return e.push(x.createElement(_T,{key:`avatar-popover-key`,destroyOnHidden:!0,...a},x.createElement(Mw,{style:n},`+${w-C}`))),x.createElement(vT,{shape:u,size:l},x.createElement(`div`,{className:b,style:o},e))}return x.createElement(vT,{shape:u,size:l},x.createElement(`div`,{className:b,style:o},S))},bT=Mw;bT.Group=yT;var xT=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function ST(){return ST=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ST.apply(this,arguments)}var CT=x.forwardRef((e,t)=>x.createElement(_u,ST({},e,{ref:t,icon:xT.default}))),{ESC:wT,TAB:TT}=Jr;function ET({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=x.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case wT:o();break;case TT:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};x.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Ci(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var DT=(0,x.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,x.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=ir(t,lr(a));return x.createElement(x.Fragment,null,r&&x.createElement(`div`,{className:`${i}-arrow`}),x.cloneElement(a,{ref:or(a)?o:void 0}))}),OT={adjustX:1,adjustY:1},kT=[0,0],AT={topLeft:{points:[`bl`,`tl`],overflow:OT,offset:[0,-4],targetOffset:kT},top:{points:[`bc`,`tc`],overflow:OT,offset:[0,-4],targetOffset:kT},topRight:{points:[`br`,`tr`],overflow:OT,offset:[0,-4],targetOffset:kT},bottomLeft:{points:[`tl`,`bl`],overflow:OT,offset:[0,4],targetOffset:kT},bottom:{points:[`tc`,`bc`],overflow:OT,offset:[0,4],targetOffset:kT},bottomRight:{points:[`tr`,`br`],overflow:OT,offset:[0,4],targetOffset:kT}};function jT(){return jT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jT.apply(this,arguments)}var MT=x.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=AT,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:v,onVisibleChange:y,...b}=e,[S,C]=x.useState(),w=`visible`in e?m:S,T=a?`${r}-${a}`:i,E=x.useRef(null),D=x.useRef(null),O=x.useRef(null);x.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),y?.(e)};ET({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:g,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>x.createElement(DT,{ref:D,overlay:_,prefixCls:r,arrow:n}),M=()=>typeof _==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=x.cloneElement(v,{className:Z(v.props?.className,w&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:or(v)?ir(O,lr(v)):void 0}),F=d;return!F&&h.indexOf(`contextMenu`)!==-1&&(F=[`click`]),x.createElement(tm,jT({builtinPlacements:c},b,{prefixCls:r,ref:E,popupClassName:Z(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:F,popupPlacement:s,popupAlign:o,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:l}),P)}),NT=x.createContext(null);function PT(e,t){return`${e}-${t}`}function FT(e){return PT(x.useContext(NT),e)}var IT=x.createContext(null);function LT(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function RT({children:e,locked:t,...n}){let r=x.useContext(IT),i=qn(()=>LT(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!ci(e[1],n[1],!0)));return x.createElement(IT.Provider,{value:i},e)}var zT=[],BT=x.createContext(null);function VT(){return x.useContext(BT)}var HT=x.createContext(zT);function UT(e){let t=x.useContext(HT);return x.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var WT=x.createContext(null),GT=x.createContext({}),{LEFT:KT,RIGHT:qT,UP:JT,DOWN:YT,ENTER:XT,ESC:ZT,HOME:QT,END:$T}=Jr,eE=[JT,YT,KT,qT];function tE(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===XT)return{inlineTrigger:!0};let c={[JT]:i,[YT]:a},l={[KT]:n?a:i,[qT]:n?i:a,[YT]:o,[XT]:o},u={[JT]:i,[YT]:a,[XT]:o,[ZT]:s,[KT]:n?o:s,[qT]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function nE(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function rE(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function iE(e,t){return Or(e,!0).filter(e=>t.has(e))}function aE(e,t,n,r=1){if(!e)return null;let i=iE(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var oE=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${PT(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function sE(e,t,n,r,i,a,o,s,c,l){let u=x.useRef(),d=x.useRef();d.current=t;let f=()=>{Ci.cancel(u.current)};return x.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...eE,XT,ZT,QT,$T].includes(m)){let l=a(),h=oE(l,r),{elements:g,key2element:_,element2key:v}=h,y=rE(_.get(t),g),b=v.get(y),x=tE(e,o(b,!0).length===1,n,m);if(!x&&m!==QT&&m!==$T)return;(eE.includes(m)||[QT,$T].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Ci(()=>{d.current===r&&t.focus()})}};if([QT,$T].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:nE(y);let n,r=iE(t,g);n=m===QT?r[0]:m===$T?r[r.length-1]:aE(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Ci(()=>{h=oE(l,r);let e=y.getAttribute(`aria-controls`);S(aE(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function cE(e){Promise.resolve().then(e)}var lE=`__RC_UTIL_PATH_SPLIT__`,uE=e=>e.join(lE),dE=e=>e.split(lE),fE=`rc-menu-more`;function pE(){let[,e]=x.useState({}),t=(0,x.useRef)(new Map),n=(0,x.useRef)(new Map),[r,i]=x.useState([]),a=(0,x.useRef)(0),o=(0,x.useRef)(!1),s=()=>{o.current||e({})},c=(0,x.useCallback)((e,r)=>{let i=uE(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;cE(()=>{o===a.current&&s()})},[]),l=(0,x.useCallback)((e,r)=>{let i=uE(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,x.useCallback)(e=>{i(e)},[]),d=(0,x.useCallback)((e,n)=>{let i=dE(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(fE),i},[r]),f=(0,x.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(fE),e},m=(0,x.useCallback)(e=>{let r=`${t.current.get(e)}${lE}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return x.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function mE(e){let t=x.useRef(e);t.current=e;let n=x.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function hE(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=x.useContext(IT),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function gE(e){let{mode:t,rtl:n,inlineIndent:r}=x.useContext(IT);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function _E({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=x.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function vE({item:e,...t}){return Object.defineProperty(t,`item`,{get:()=>(oi(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function yE(){return yE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yE.apply(this,arguments)}var bE=class extends x.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=fi(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return oi(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),x.createElement(kS.Item,yE({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},xE=x.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,role:l,onMouseEnter:u,onMouseLeave:d,onClick:f,onKeyDown:p,onFocus:m,...h}=e,g=FT(i),{prefixCls:_,onItemClick:v,disabled:y,overflowDisabled:b,itemIcon:S,selectedKeys:C,onActive:w}=x.useContext(IT),{_internalRenderMenuItem:T}=x.useContext(GT),E=`${_}-item`,D=x.useRef(),O=x.useRef(),k=y||o,A=ar(t,O),j=UT(i),M=e=>({key:i,keyPath:[...j].reverse(),item:D.current,domEvent:e}),N=s||S,{active:P,...F}=hE(i,k,u,d),I=C.includes(i),L=gE(j.length),R=e=>{if(k)return;let t=M(e);f?.(vE(t)),v(t)},z=e=>{if(p?.(e),e.which===Jr.ENTER){let t=M(e);f?.(vE(t)),v(t)}},B=e=>{w(i),m?.(e)},V={};e.role===`option`&&(V[`aria-selected`]=I);let H=x.createElement(bE,yE({ref:D,elementRef:A,role:l===null?`none`:l||`menuitem`,tabIndex:o?null:-1,"data-menu-id":b&&g?null:g},fi(h,[`extra`]),F,V,{component:`li`,"aria-disabled":o,style:{...L,...n},className:Z(E,{[`${E}-active`]:P,[`${E}-selected`]:I,[`${E}-disabled`]:k},r),onClick:R,onKeyDown:z,onFocus:B}),c,x.createElement(_E,{props:{...e,isSelected:I},icon:N}));return T&&(H=T(H,e,{selected:I})),H});function SE(e,t){let{eventKey:n}=e,r=VT(),i=UT(n);return x.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:x.createElement(xE,yE({},e,{ref:t}))}var CE=x.forwardRef(SE);function wE(){return wE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wE.apply(this,arguments)}var TE=x.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=x.useContext(IT);return x.createElement(`ul`,wE({className:Z(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function EE(e,t){return wi(e).map((e,n)=>{if(x.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return x.cloneElement(e,a)}return e})}var DE={adjustX:1,adjustY:1},fee={topLeft:{points:[`bl`,`tl`],overflow:DE},topRight:{points:[`br`,`tr`],overflow:DE},bottomLeft:{points:[`tl`,`bl`],overflow:DE},bottomRight:{points:[`tr`,`br`],overflow:DE},leftTop:{points:[`tr`,`tl`],overflow:DE},leftBottom:{points:[`br`,`bl`],overflow:DE},rightTop:{points:[`tl`,`tr`],overflow:DE},rightBottom:{points:[`bl`,`br`],overflow:DE}},pee={topLeft:{points:[`bl`,`tl`],overflow:DE},topRight:{points:[`br`,`tr`],overflow:DE},bottomLeft:{points:[`tl`,`bl`],overflow:DE},bottomRight:{points:[`tr`,`br`],overflow:DE},rightTop:{points:[`tr`,`tl`],overflow:DE},rightBottom:{points:[`br`,`bl`],overflow:DE},leftTop:{points:[`tl`,`tr`],overflow:DE},leftBottom:{points:[`bl`,`br`],overflow:DE}};function OE(e,t,n){if(t)return t;if(n)return n[e]||n.other}var mee={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function hee({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:v,defaultMotions:y}=x.useContext(IT),[b,S]=x.useState(!1),C=d?{...pee,...m}:{...fee,...m},w=mee[c],T=OE(c,v,y),E=x.useRef(T);c!==`inline`&&(E.current=T);let D={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},O=x.useRef();return x.useEffect(()=>(O.current=Ci(()=>{S(t)}),()=>{Ci.cancel(O.current)}),[t]),x.createElement(tm,{prefixCls:e,popupClassName:Z(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:C,popupPlacement:w,popupVisible:b,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:D,fresh:!0},n)}function kE(){return kE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kE.apply(this,arguments)}function gee({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=x.useContext(IT),u=x.useRef(!1);u.current=l===i;let[d,f]=x.useState(!u.current),p=u.current?t:!1;x.useEffect(()=>{u.current&&f(!1)},[l]);let m={...OE(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:x.createElement(RT,{mode:i,locked:!u.current},x.createElement(Cd,kE({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>x.createElement(TE,{id:e,className:t,style:n},r)))}function AE(){return AE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AE.apply(this,arguments)}var _ee=x.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:v,onMouseLeave:y,onTitleClick:b,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=FT(s),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=x.useContext(IT),{_internalRenderSubMenuItem:B}=x.useContext(GT),{isSubPathKey:V}=x.useContext(WT),H=UT(),U=`${D}-submenu`,W=A||l,G=x.useRef(),K=x.useRef(),ee=f??P,te=p??F,q=k.includes(s),J=!j&&q,Y=V(N,s),{active:ne,...X}=hE(s,W,S,C),[re,ie]=x.useState(!1),ae=e=>{W||ie(e)},oe=e=>{ae(!0),v?.({key:s,domEvent:e})},se=e=>{ae(!1),y?.({key:s,domEvent:e})},ce=x.useMemo(()=>ne||(O===`inline`?!1:re||V([M],s)),[O,ne,M,re,s,V]),le=gE(H.length),ue=e=>{W||(b?.({key:s,domEvent:e}),O===`inline`&&L(s,!q))},de=mE(e=>{_?.(vE(e)),I(e)}),fe=e=>{O!==`inline`&&L(s,e)},pe=()=>{R(s)},me=E&&`${E}-popup`,he=x.useMemo(()=>x.createElement(_E,{icon:O===`horizontal`?void 0:te,props:{...e,isOpen:J,isSubMenu:!0}},x.createElement(`i`,{className:`${U}-arrow`})),[O,te,e,J,U]),ge=x.createElement(`div`,AE({role:`menuitem`,style:le,className:`${U}-title`,tabIndex:W?null:-1,ref:G,title:typeof o==`string`?o:null,"data-menu-id":j&&E?null:E,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":me,"aria-disabled":W,onClick:ue,onFocus:pe},X),o,he),_e=x.useRef(O);O!==`inline`&&H.length>1?_e.current=`vertical`:_e.current=O;let ve=_e.current,ye=x.useMemo(()=>{let t=x.createElement(RT,{classNames:a,styles:i,mode:ve===`horizontal`?`vertical`:ve},x.createElement(TE,{id:me,ref:K},d)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,me,d,e,ve]);if(!j){let e=_e.current;ge=x.createElement(hee,{mode:e,prefixCls:U,visible:!u&&J&&O!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:ye,disabled:W,onVisibleChange:fe},ge)}let be=x.createElement(kS.Item,AE({ref:t,role:`none`},T,{component:`li`,style:n,className:Z(U,`${U}-${O}`,r,{[`${U}-open`]:J,[`${U}-active`]:ce,[`${U}-selected`]:Y,[`${U}-disabled`]:W}),onMouseEnter:oe,onMouseLeave:se}),ge,!j&&x.createElement(gee,{id:me,open:J,keyPath:H},d));return B&&(be=B(be,e,{selected:Y,active:ce,open:J,disabled:W})),x.createElement(RT,{classNames:a,styles:i,onItemClick:de,mode:O===`horizontal`?`vertical`:O,itemIcon:ee,expandIcon:te},be)}),jE=x.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=UT(n),a=EE(r,i),o=VT();x.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:x.createElement(_ee,AE({ref:t},e),a),x.createElement(HT.Provider,{value:i},s)});function ME({className:e,style:t}){let{prefixCls:n}=x.useContext(IT);return VT()?null:x.createElement(`li`,{role:`separator`,className:Z(`${n}-item-divider`,e),style:t})}function NE(){return NE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NE.apply(this,arguments)}var vee=x.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=x.useContext(IT),u=`${s}-item-group`;return x.createElement(`li`,NE({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:Z(u,n)}),x.createElement(`div`,{role:`presentation`,className:Z(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),x.createElement(`ul`,{role:`group`,className:Z(`${u}-list`,c?.list),style:l?.list},a))}),PE=x.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=EE(r,UT(n));return VT()?i:x.createElement(vee,NE({ref:t},fi(e,[`warnKey`])),i)});function FE(){return FE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FE.apply(this,arguments)}function IE(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;return l||d===`group`?d===`group`?x.createElement(i,FE({key:m},p,{title:c}),IE(l,t,n)):x.createElement(a,FE({key:m},p,{title:c}),IE(l,t,n)):d===`divider`?x.createElement(o,FE({key:m},p)):x.createElement(r,FE({key:m},p,{extra:f}),c,(!!f||f===0)&&x.createElement(`span`,{className:`${n}-item-extra`},f))}return null}).filter(e=>e)}function LE(e,t,n,r,i){let a=e,o={divider:ME,item:CE,group:PE,submenu:jE,...r};return t&&(a=IE(t,o,i)),EE(a,n)}function RE(){return RE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RE.apply(this,arguments)}var zE=[],BE=x.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:v=.1,forceSubMenuRender:y,defaultOpenKeys:b,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:T=!0,multiple:E=!1,defaultSelectedKeys:D,selectedKeys:O,onSelect:k,onDeselect:A,inlineIndent:j=24,motion:M,defaultMotions:N,triggerSubMenuAction:P=`hover`,builtinPlacements:F,itemIcon:I,expandIcon:L,overflowedIndicator:R=`...`,overflowedIndicatorPopupClassName:z,getPopupContainer:B,onClick:V,onOpenChange:H,onKeyDown:U,openAnimation:W,openTransitionName:G,_internalRenderMenuItem:K,_internalRenderSubMenuItem:ee,_internalComponents:te,popupRender:q,...J}=e,[Y,ne]=x.useMemo(()=>[LE(u,l,zE,te,n),LE(u,l,zE,{},n)],[u,l,te]),[X,re]=x.useState(!1),ie=x.useRef(),ae=Kn(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),oe=d===`rtl`,[se,ce]=Vn(b,S),le=se||zE,ue=(e,t=!1)=>{function n(){ce(e),H?.(e)}t?(0,Ii.flushSync)(n):n()},[de,fe]=x.useState(le),pe=x.useRef(!1),[me,he]=x.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),ge=me===`inline`,[_e,ve]=x.useState(me),[ye,be]=x.useState(he);x.useEffect(()=>{ve(me),be(he),pe.current&&(ge?ce(de):ue(zE))},[me,he]);let[xe,Se]=x.useState(0),Ce=xe>=Y.length-1||_e!==`horizontal`||g;x.useEffect(()=>{ge&&fe(le)},[le]),x.useEffect(()=>(pe.current=!0,()=>{pe.current=!1}),[]);let{registerPath:we,unregisterPath:Te,refreshOverflowKeys:Ee,isSubPathKey:De,getKeyPath:Oe,getKeys:ke,getSubPathKeys:Ae}=pE(),je=x.useMemo(()=>({registerPath:we,unregisterPath:Te}),[we,Te]),Me=x.useMemo(()=>({isSubPathKey:De}),[De]);x.useEffect(()=>{Ee(Ce?zE:Y.slice(xe+1).map(e=>e.key))},[xe,Ce]);let[Ne,Pe]=Vn(C||w&&Y[0]?.key,C),Fe=mE(e=>{Pe(e)}),Ie=mE(()=>{Pe(void 0)});(0,x.useImperativeHandle)(t,()=>({list:ie.current,focus:e=>{let t=ke(),{elements:n,key2element:r,element2key:i}=oE(t,ae),a=iE(ie.current,n),o;o=Ne&&t.includes(Ne)?Ne:a[0]?i.get(a[0]):Y.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=oE(ke(),ae);return t.get(e)||null}}));let[Le,Re]=Vn(D||[],O),ze=x.useMemo(()=>Array.isArray(Le)?Le:Le==null?zE:[Le],[Le]),Be=e=>{if(T){let{key:t}=e,n=ze.includes(t),r;r=E?n?ze.filter(e=>e!==t):[...ze,t]:[t],Re(r);let i={...e,selectedKeys:r};n?A?.(i):k?.(i)}!E&&le.length&&_e!==`inline`&&ue(zE)},Ve=mE(e=>{V?.(vE(e)),Be(e)}),He=mE((e,t)=>{let n=le.filter(t=>t!==e);if(t)n.push(e);else if(_e!==`inline`){let t=Ae(e);n=n.filter(e=>!t.has(e))}ci(le,n,!0)||ue(n,!0)}),Ue=sE(_e,Ne,oe,ae,ie,ke,Oe,Pe,(e,t)=>{He(e,t??!le.includes(e))},U);x.useEffect(()=>{re(!0)},[]);let We=x.useMemo(()=>({_internalRenderMenuItem:K,_internalRenderSubMenuItem:ee}),[K,ee]),Ge=_e!==`horizontal`||g?Y:Y.map((e,t)=>x.createElement(RT,{key:e.key,overflowDisabled:t>xe,classNames:s,styles:o},e)),Ke=x.createElement(kS,RE({id:f,ref:ie,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:CE,className:Z(n,`${n}-root`,`${n}-${_e}`,a,{[`${n}-inline-collapsed`]:ye,[`${n}-rtl`]:oe},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Ge,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?Y.slice(-t):null;return x.createElement(jE,{eventKey:fE,title:R,disabled:Ce,internalPopupClose:t===0,popupClassName:z},n)},maxCount:_e!==`horizontal`||g?kS.INVALIDATE:kS.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{Se(e)},onKeyDown:Ue},J));return x.createElement(GT.Provider,{value:We},x.createElement(NT.Provider,{value:ae},x.createElement(RT,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:_e,openKeys:le,rtl:oe,disabled:h,motion:X?M:null,defaultMotions:X?N:null,activeKey:Ne,onActive:Fe,onInactive:Ie,selectedKeys:ze,inlineIndent:j,subMenuOpenDelay:_,subMenuCloseDelay:v,forceSubMenuRender:y,builtinPlacements:F,triggerSubMenuAction:P,getPopupContainer:B,itemIcon:I,expandIcon:L,onItemClick:Ve,onOpenChange:He,popupRender:q},x.createElement(WT.Provider,{value:Me},Ke),x.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},x.createElement(BT.Provider,{value:je},ne)))))});BE.Item=CE,BE.SubMenu=jE,BE.ItemGroup=PE,BE.Divider=ME;var VE=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function HE(){return HE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HE.apply(this,arguments)}var yee=x.forwardRef((e,t)=>x.createElement(_u,HE({},e,{ref:t,icon:VE.default}))),UE=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),WE=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{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:a,padding:o,color:s,lineHeight:Q(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},GE=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},KE=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],qE=ql(`Layout`,WE,GE,{deprecatedTokens:KE}),JE=ql([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:Q(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${Q(f)} ${Q(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Q(f)} 0 0 ${Q(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},GE,{deprecatedTokens:KE}),YE={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},XE=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),ZE=x.createContext({}),QE=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),$E=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,..._}=e,{siderHook:v}=(0,x.useContext)(UE),[y,b]=(0,x.useState)(`collapsed`in e?e.collapsed:o),[S,C]=(0,x.useState)(!1);(0,x.useEffect)(()=>{`collapsed`in e&&b(e.collapsed)},[e.collapsed]);let w=(t,n)=>{`collapsed`in e||b(t),h?.(t,n)},{getPrefixCls:T,direction:E}=(0,x.useContext)(da),D=T(`layout-sider`,n),[O,k]=JE(D),A=(0,x.useRef)(null);A.current=e=>{C(e.matches),g?.(e.matches),y!==e.matches&&w(e.matches,`responsive`)},(0,x.useEffect)(()=>{function e(e){return A.current?.(e)}let t;return window?.matchMedia!==void 0&&m&&m in YE&&(t=window.matchMedia(`screen and (max-width: ${YE[m]})`),typeof t?.addEventListener==`function`&&t.addEventListener(`change`,e),e(t)),()=>{typeof t?.removeEventListener==`function`&&t.removeEventListener(`change`,e)}},[m]),(0,x.useEffect)(()=>{let e=QE(`ant-sider-`);return v.addSider(e),()=>v.removeSider(e)},[]);let j=()=>{w(!y,`clickTrigger`)},M=fi(_,[`collapsed`]),N=y?f:d,P=XE(N)?`${N}px`:String(N),F=Number.parseFloat(String(f||0))===0?x.createElement(`span`,{onClick:j,className:Z(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||x.createElement(yee,null)):null,I=E===`rtl`==!u,L={expanded:I?x.createElement(Bg,null):x.createElement(CT,null),collapsed:I?x.createElement(CT,null):x.createElement(Bg,null)}[y?`collapsed`:`expanded`],R=i===null?null:F||x.createElement(`div`,{className:`${D}-trigger`,onClick:j,style:{width:P}},i||L),z={...c,flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P},B=Z(D,`${D}-${s}`,{[`${D}-collapsed`]:!!y,[`${D}-has-trigger`]:l&&i!==null&&!F,[`${D}-below`]:!!S,[`${D}-zero-width`]:Number.parseFloat(P)===0},r,O,k),V=x.useMemo(()=>({siderCollapsed:y}),[y]);return x.createElement(ZE.Provider,{value:V},x.createElement(`aside`,{className:B,...M,style:z,ref:t},x.createElement(`div`,{className:`${D}-children`},a),l||S&&F?R:null))}),eD=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function tD(){return tD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tD.apply(this,arguments)}var nD=x.forwardRef((e,t)=>x.createElement(_u,tD({},e,{ref:t,icon:eD.default}))),rD=(0,x.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),iD=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=x.useContext(da),o=Z({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return x.createElement(ME,{className:o,...i})},aD=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=x.useContext(rD),h=e=>{let t=n?.[0],i=x.createElement(`span`,{className:Z(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||x.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?x.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:g}=x.useContext(ZE),_=i;i===void 0?_=c?n:``:i===!1&&(_=``);let v=d===!1?void 0:d,y=v&&v.title!==void 0?v.title:_,b={...v??null,title:y};!g&&!f&&(b.title=null,b.open=!1);let S=wi(n).length,C=x.createElement(CE,{...fi(e,[`title`,`icon`,`danger`]),className:Z(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0},im(r,e=>({className:Z(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),h(f));if(!u&&d!==!1){let e=v&&v.placement?v.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:Z(t,e?.root)}),r=v&&typeof v.classNames==`function`?e=>n(v.classNames(e)):n(v?.classNames);C=x.createElement(lT,{...b,placement:e,classNames:r},C)}return C},oD=x.createContext(null),sD=x.forwardRef((e,t)=>{let{children:n,...r}=e,i=x.useContext(oD),a=x.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=cr(n),s=ar(t,o?lr(n):null);return x.createElement(oD.Provider,{value:a},x.createElement(My,{space:!0},o?x.cloneElement(n,{ref:s}):n))}),cD=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Q(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
|
||
> ${t}-item-active,
|
||
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},lD=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
|
||
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Q(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Q(t)})`}}}}),uD=e=>Vl(e),dD=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...uD(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...uD(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${Q(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Q(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Q(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},fD=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Q(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Q(n)},[`${t}-item-group-list ${t}-submenu-title,
|
||
${t}-submenu-title`]:{paddingInlineEnd:u}}},pD=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,_={height:r,lineHeight:Q(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...fD(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...fD(e),boxShadow:m}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Q(e.calc(o).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 ${f}`,`background-color ${f}`,`padding ${d} ${s}`].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:c}},[`${t}-item`]:_}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`}}},[`> ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,insetInlineStart:0,paddingInline:`calc(50% - ${Q(e.calc(g).div(2).equal())} - ${Q(l)})`,textOverflow:`clip`,[`
|
||
${t}-submenu-arrow,
|
||
${t}-submenu-expand-icon
|
||
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Q(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...Ll,paddingInline:p}}}]},mD=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...zl()},[`&${t}-item-only-child`]:{[`> ${o}, > ${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`}}}},hD=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${Q(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Q(o)})`}}}}},gD=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v}=e;return[{"":{[n]:{...Bl(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...Rl(e),...Bl(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} 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:`${Q(s)} ${Q(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-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:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...mD(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Q(e.calc(r).mul(2).equal())} ${Q(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...mD(e),...hD(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...hD(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
||
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Q(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Q(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Q(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Q(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Q(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},_D=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new Oc(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new Oc(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},vD=(e,t=e,n=!0)=>ql(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=oc(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=oc(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[gD(x),cD(x),pD(x),dD(x,`light`),dD(S,`dark`),lD(x),Gh(x),mg(x,`slide-up`),mg(x,`slide-down`),kg(x,`zoom-big`)]},_D,{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),yD=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=x.useContext(rD),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=UT(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?x.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):x.createElement(`span`,{className:`${o}-title-content`},r);else{let e=x.isValidElement(r)&&r.type===`span`;f=x.createElement(x.Fragment,null,im(n,e=>({className:Z(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:x.createElement(`span`,{className:`${o}-title-content`},r))}let p=x.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=Mf(`Menu`);return x.createElement(rD.Provider,{value:p},x.createElement(jE,{...fi(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:Z(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function bD(e){return e===null||e===!1}var xD={item:aD,submenu:yD,divider:iD},SD=(0,x.forwardRef)((e,t)=>{let n=x.useContext(oD),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:m,selectable:h,onClick:g,overflowedIndicatorPopupClassName:_,classNames:v,styles:y,...b}=e,{menu:S}=x.useContext(da),{getPrefixCls:C,getPopupContainer:w,direction:T,className:E,style:D,classNames:O,styles:k}=ma(`menu`),A=C(),j=fi(b,[`collapsedWidth`]);r.validator?.({mode:m});let M=Fn((...e)=>{g?.(...e),r.onClick?.()}),N=r.mode||m,P=h??r.selectable,F=d??f,I={...e,mode:N,inlineCollapsed:F,selectable:P,theme:s},[L,R]=vf([O,v],[k,y],{props:I},{popup:{_default:`root`},subMenu:{_default:`item`}}),z={horizontal:{motionName:`${A}-slide-up`},inline:mh(A),other:{motionName:`${A}-zoom-big`}},B=C(`menu`,i||r.prefixCls),V=np(B),[H,U]=vD(B,V,!n),W=Z(`${B}-${s}`,E,a),G=x.useMemo(()=>{if(typeof c==`function`||bD(c))return c||null;if(typeof r.expandIcon==`function`||bD(r.expandIcon))return r.expandIcon||null;if(typeof S?.expandIcon==`function`||bD(S?.expandIcon))return S?.expandIcon||null;let e=c??r?.expandIcon??S?.expandIcon;return im(e,{className:Z(`${B}-submenu-expand-icon`,x.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,S?.expandIcon,B]),K=x.useMemo(()=>({prefixCls:B,inlineCollapsed:F||!1,direction:T,firstLevel:!0,theme:s,mode:N,disableMenuItemTitleTooltip:l,tooltip:u,classNames:L,styles:R}),[B,F,T,l,s,N,L,R,u]);return x.createElement(oD.Provider,{value:null},x.createElement(rD.Provider,{value:K},x.createElement(BE,{getPopupContainer:w,overflowedIndicator:x.createElement(nD,null),overflowedIndicatorPopupClassName:Z(B,`${B}-${s}`,_),classNames:{list:L.list,listTitle:L.itemTitle},styles:{list:R.list,listTitle:R.itemTitle},mode:N,selectable:P,onClick:M,...j,inlineCollapsed:F,style:{...R.root,...D,...o},className:W,prefixCls:B,direction:T,defaultMotions:z,expandIcon:G,ref:t,rootClassName:Z(p,H,r.rootClassName,U,V,L.root),_internalComponents:xD})))}),CD=(0,x.forwardRef)((e,t)=>{let n=(0,x.useRef)(null),r=x.useContext(ZE);return(0,x.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),x.createElement(SD,{ref:n,...e,...r})});CD.Item=aD,CD.SubMenu=yD,CD.Divider=iD,CD.ItemGroup=PE;var wD=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},TD=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`100vh`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
|
||
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
|
||
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
|
||
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
|
||
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
|
||
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ag},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
|
||
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
|
||
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
|
||
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
|
||
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
|
||
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:sg},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
|
||
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
|
||
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:og},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
|
||
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
|
||
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:cg}}},Gw(e,h,{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`]:{...Rl(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...Hl(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${Q(l)} ${Q(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},"> a":{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${Q(l)} ${Q(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Hl(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${Q(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${Q(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[mg(e,`slide-up`),mg(e,`slide-down`),ig(e,`move-up`),ig(e,`move-down`),kg(e,`zoom-big`)]]},ED=ql(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=oc(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[TD(a),wD(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Uw({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Vw(e)}),{resetStyle:!1}),DD=e=>{let{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:o,dropdownRender:s,popupRender:c,getPopupContainer:l,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,mouseEnterDelay:h=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:_=!0,placement:v=``,transitionName:y,classNames:b,styles:S,destroyPopupOnHide:C,destroyOnHidden:w}=e,{getPrefixCls:T,direction:E,getPopupContainer:D,className:O,style:k,classNames:A,styles:j}=ma(`dropdown`),M={...e,mouseEnterDelay:h,mouseLeaveDelay:g,autoAdjustOverflow:_},[N,P]=vf([A,b],[j,S],{props:M}),F={...k,...f,...P.root},I=c||s;Bi(`Dropdown`);let L=x.useMemo(()=>{let e=T();return y===void 0?v.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:y},[T,v,y]),R=x.useMemo(()=>v?v.includes(`Center`)?v.slice(0,v.indexOf(`Center`)):v:E===`rtl`?`bottomRight`:`bottomLeft`,[v,E]),z=T(`dropdown`,r),B=np(z),[V,H]=ED(z,B),[,U]=Il(),W=x.Children.only(ef(i)?x.createElement(`span`,null,i):i),G=im(W,{className:Z(`${z}-trigger`,{[`${z}-rtl`]:E===`rtl`},W.props.className),disabled:W.props.disabled??o}),K=o?[]:a,ee=!!K?.includes(`contextMenu`),[te,q]=Vn(!1,p),J=Fn(e=>{m?.(e,{source:`trigger`}),q(e)}),Y=Z(u,d,V,H,B,O,N.root,{[`${z}-rtl`]:E===`rtl`}),ne=Xw({arrowPointAtCenter:Zd(n)&&n.pointAtCenter,autoAdjustOverflow:_,offset:U.marginXXS,arrowWidth:n?U.sizePopupArrow:0,borderRadius:U.borderRadius}),X=Fn(()=>{t?.selectable&&t?.multiple||(m?.(!1,{source:`menu`}),q(!1))}),re=()=>{let e=fi(N,[`root`]),n=fi(P,[`root`]),r;return t?.items&&(r=x.createElement(CD,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),I&&(r=I(r)),r=x.Children.only(typeof r==`string`?x.createElement(`span`,null,r):r),x.createElement(sD,{prefixCls:`${z}-menu`,rootClassName:Z(H,B),expandIcon:x.createElement(`span`,{className:`${z}-menu-submenu-arrow`},E===`rtl`?x.createElement(CT,{className:`${z}-menu-submenu-arrow-icon`}):x.createElement(Bg,{className:`${z}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:X,validator:({mode:e})=>{}},r)},[ie,ae]=Mf(`Dropdown`,F.zIndex),oe=x.createElement(MT,{alignPoint:ee,...fi(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:h,mouseLeaveDelay:g,visible:te,builtinPlacements:ne,arrow:!!n,overlayClassName:Y,prefixCls:z,getPopupContainer:l||D,transitionName:L,trigger:K,overlay:re,placement:R,onVisibleChange:J,overlayStyle:{...F,zIndex:ie},autoDestroy:w??C},G);return ie&&(oe=x.createElement(Ef.Provider,{value:ae},oe)),oe},OD=Lx(DD,`align`,void 0,`dropdown`,e=>e);DD._InternalPanelDoNotUseOrYouWillBeFired=e=>x.createElement(OD,{...e},x.createElement(`span`,null));var kD=x_,AD=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),jD=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,`day`).add(e,`day`)}}}))})),MD=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),ND=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),PD=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),FD=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),ID=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),LD=c(AD()),RD=c(jD()),zD=c(MD()),BD=c(ND()),VD=c(PD()),HD=c(FD()),UD=c(ID());LD.default.extend(UD.default),LD.default.extend(HD.default),LD.default.extend(RD.default),LD.default.extend(zD.default),LD.default.extend(BD.default),LD.default.extend(VD.default),LD.default.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var WD={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},GD=function(e){return WD[e]||e.split(`_`)[0]},KD=function(e){return!LD.default.isDayjs(e)||e instanceof LD.default?e:(0,LD.default)(e.valueOf())},bee={getNow:function(){var e=(0,LD.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:function(e){return(0,LD.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`])},getEndDate:function(e){return KD(e).endOf(`month`)},getWeekDay:function(e){var t=KD(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return KD(e).year()},getMonth:function(e){return KD(e).month()},getDate:function(e){return KD(e).date()},getHour:function(e){return KD(e).hour()},getMinute:function(e){return KD(e).minute()},getSecond:function(e){return KD(e).second()},getMillisecond:function(e){return KD(e).millisecond()},addYear:function(e,t){return KD(e).add(t,`year`)},addMonth:function(e,t){return KD(e).add(t,`month`)},addDate:function(e,t){return KD(e).add(t,`day`)},setYear:function(e,t){return KD(e).year(t)},setMonth:function(e,t){return KD(e).month(t)},setDate:function(e,t){return KD(e).date(t)},setHour:function(e,t){return KD(e).hour(t)},setMinute:function(e,t){return KD(e).minute(t)},setSecond:function(e,t){return KD(e).second(t)},setMillisecond:function(e,t){return KD(e).millisecond(t)},isAfter:function(e,t){return KD(e).isAfter(KD(t))},isValidate:function(e){return KD(e).isValid()},locale:{getWeekFirstDay:function(e){return(0,LD.default)().locale(GD(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return KD(t).locale(GD(e)).weekday(0)},getWeek:function(e,t){return KD(t).locale(GD(e)).week()},getShortWeekDays:function(e){return(0,LD.default)().locale(GD(e)).localeData().weekdaysMin()},getShortMonths:function(e){return(0,LD.default)().locale(GD(e)).localeData().monthsShort()},format:function(e,t,n){return KD(t).locale(GD(e)).format(n)},parse:function(e,t,n){for(var r=GD(e),i=0;i<n.length;i+=1){var a=n[i],o=t;if(a.includes(`wo`)||a.includes(`Wo`)){for(var s=o.split(`-`)[0],c=o.split(`-`)[1],l=(0,LD.default)(s,`YYYY`).startOf(`year`).locale(r),u=0;u<=52;u+=1){var d=l.add(u,`week`);if(d.format(`Wo`)===c)return d}return null}var f=(0,LD.default)(o,a,!0).locale(r);if(f.isValid())return f}return null}}};function xee(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var qD=x.createContext(null);function JD(e){"@babel/helpers - typeof";return JD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},JD(e)}function YD(e,t,n){return t=XD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XD(e){var t=ZD(e,`string`);return JD(t)==`symbol`?t:String(t)}function ZD(e,t){if(JD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(JD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var QD={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function $D(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,a=e.transitionName,o=e.getPopupContainer,s=e.children,c=e.range,l=e.placement,u=e.builtinPlacements,d=u===void 0?QD:u,f=e.direction,p=e.visible,m=e.onClose,h=`${x.useContext(qD).prefixCls}-dropdown`,g=xee(l,f===`rtl`);return x.createElement(tm,{showAction:[],hideAction:[`click`],popupPlacement:g,builtinPlacements:d,prefixCls:h,popupMotion:{motionName:a},popup:t,popupAlign:i,popupVisible:p,popupClassName:Z(r,YD(YD({},`${h}-range`,c),`${h}-rtl`,f===`rtl`)),popupStyle:n,stretch:`minWidth`,getPopupContainer:o,onPopupVisibleChange:function(e){e||m()}},s)}function eO(e){return iO(e)||rO(e)||nO(e)||tO()}function tO(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nO(e,t){if(e){if(typeof e==`string`)return aO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aO(e,t)}}function rO(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function iO(e){if(Array.isArray(e))return aO(e)}function aO(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 oO(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`0`,r=String(e);r.length<t;)r=`${n}${r}`;return r}function sO(e){return e==null?[]:Array.isArray(e)?e:[e]}function cO(e,t,n){var r=eO(e);return r[t]=n,r}function lO(e,t){var n={};return(t||Object.keys(e)).forEach(function(t){e[t]!==void 0&&(n[t]=e[t])}),n}function uO(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function dO(e,t,n){var r=n===void 0?t[t.length-1]:n,i=t.find(function(t){return e[t]});return r===i?void 0:e[i]}function fO(e){return lO(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function pO(e){"@babel/helpers - typeof";return pO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pO(e)}function mO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mO(Object(n),!0).forEach(function(t){gO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gO(e,t,n){return t=_O(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _O(e){var t=vO(e,`string`);return pO(t)==`symbol`?t:String(t)}function vO(e,t){if(pO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function yO(e,t,n,r){var i=x.useMemo(function(){return e||function(e,r){var i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}},[e,n,t]);return x.useCallback(function(e,t){return i(e,hO(hO({},t),{},{range:r}))},[i,r])}function bO(e,t){return TO(e)||wO(e,t)||SO(e,t)||xO()}function xO(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SO(e,t){if(e){if(typeof e==`string`)return CO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CO(e,t)}}function CO(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 wO(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function TO(e){if(Array.isArray(e))return e}function EO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=bO(x.useState([!1,!1]),2),i=r[0],a=r[1];return[x.useMemo(function(){return i.map(function(r,i){if(r)return!0;var a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1})},[e,i,t,n]),function(e,t){a(function(n){return cO(n,t,e)})}]}function DO(e){"@babel/helpers - typeof";return DO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DO(e)}function OO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OO(Object(n),!0).forEach(function(t){AO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function AO(e,t,n){return t=jO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jO(e){var t=MO(e,`string`);return DO(t)==`symbol`?t:String(t)}function MO(e,t){if(DO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(DO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function NO(e,t,n,r,i){var a=``,o=[];return e&&o.push(i?`hh`:`HH`),t&&o.push(`mm`),n&&o.push(`ss`),a=o.join(`:`),r&&(a+=`.SSS`),i&&(a+=` A`),a}function PO(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,l=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,h=e.cellQuarterFormat,g=e.dayFormat,_=e.cellDateFormat,v=NO(t,n,r,i,a);return kO(kO({},e),{},{fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`})}function FO(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return x.useMemo(function(){return PO(e,n,r,i,a,o)},[e,n,r,i,a,o])}function IO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?IO(Object(n),!0).forEach(function(t){RO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RO(e,t,n){return t=zO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zO(e){var t=BO(e,`string`);return qO(t)==`symbol`?t:String(t)}function BO(e,t){if(qO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(qO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VO(e,t){return KO(e)||GO(e,t)||UO(e,t)||HO()}function HO(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UO(e,t){if(e){if(typeof e==`string`)return WO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WO(e,t)}}function WO(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 GO(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function KO(e){if(Array.isArray(e))return e}function qO(e){"@babel/helpers - typeof";return qO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qO(e)}function JO(e,t,n){return n??t.some(function(t){return e.includes(t)})}var YO=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function XO(e){var t=lO(e,YO),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=qO(i)===`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function ZO(e){return e&&typeof e==`string`}function QO(e,t,n,r){return[e,t,n,r].some(function(e){return e!==void 0})}function $O(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var c=[a,o,s].some(function(e){return e===!1}),l=[a,o,s].some(function(e){return e===!0}),u=c?!0:!l;a??=u,o??=u,s??=u}return[a,o,s,i]}function ek(e){var t=e.showTime,n=VO(XO(e),2),r=n[0],i=n[1],a=t&&qO(t)===`object`?t:{},o=LO(LO({defaultOpenValue:a.defaultOpenValue||a.defaultValue},r),a),s=o.showMillisecond,c=o.showHour,l=o.showMinute,u=o.showSecond,d=VO($O(QO(c,l,u,s),c,l,u,s),3);return c=d[0],l=d[1],u=d[2],[o,LO(LO({},o),{},{showHour:c,showMinute:l,showSecond:u,showMillisecond:s}),o.format,i]}function tk(e,t,n,r,i){if(e===`datetime`||e===`time`){for(var a=r,o=uO(e,i,null),s=[t,n],c=0;c<s.length;c+=1){var l=sO(s[c])[0];if(ZO(l)){o=l;break}}var u=a.showHour,d=a.showMinute,f=a.showSecond,p=a.showMillisecond,m=a.use12Hours,h=JO(o,[`a`,`A`,`LT`,`LLL`,`LTS`],m),g=QO(u,d,f,p);g||(u=JO(o,[`H`,`h`,`k`,`LT`,`LLL`]),d=JO(o,[`m`,`LT`,`LLL`]),f=JO(o,[`s`,`LTS`]),p=JO(o,[`SSS`]));var _=VO($O(g,u,d,f,p),3);u=_[0],d=_[1],f=_[2];var v=t||NO(u,d,f,p,h);return LO(LO({},a),{},{format:v,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:h})}return null}function nk(e){"@babel/helpers - typeof";return nk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nk(e)}function rk(e,t,n){return t===!1?null:(t&&nk(t)===`object`?t:{}).clearIcon||n||x.createElement(`span`,{className:`${e}-clear-btn`})}function ik(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function ak(e,t,n){return ik(t,n,function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)})}function ok(e,t,n){return ik(t,n,function(){return e.getYear(t)===e.getYear(n)})}function sk(e,t){return Math.floor(e.getMonth(t)/3)+1}function ck(e,t,n){return ik(t,n,function(){return ok(e,t,n)&&sk(e,t)===sk(e,n)})}function lk(e,t,n){return ik(t,n,function(){return ok(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function uk(e,t,n){return ik(t,n,function(){return ok(e,t,n)&&lk(e,t,n)&&e.getDate(t)===e.getDate(n)})}function dk(e,t,n){return ik(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function fk(e,t,n){return ik(t,n,function(){return uk(e,t,n)&&dk(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function pk(e,t,n,r){return ik(n,r,function(){return ok(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function mk(e,t,n,r,i){switch(i){case`date`:return uk(e,n,r);case`week`:return pk(e,t.locale,n,r);case`month`:return lk(e,n,r);case`quarter`:return ck(e,n,r);case`year`:return ok(e,n,r);case`decade`:return ak(e,n,r);case`time`:return dk(e,n,r);default:return fk(e,n,r)}}function hk(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function gk(e,t,n,r,i){return mk(e,t,n,r,i)?!0:e.isAfter(n,r)}function _k(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function vk(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i==`function`?i(e):n.locale.format(r.locale,e,i):``}function yk(e,t,n){var r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach(function(t,a){r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function bk(e,t,n,r,i){return Fn(function(a,o){return!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!mk(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!mk(e,t,i,a,o.type))})}function xk(e){"@babel/helpers - typeof";return xk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xk(e)}function Sk(e,t,n){return x.useMemo(function(){var r=sO(uO(e,t,n)),i=r[0],a=xk(i)===`object`&&i.type===`mask`?i.format:null;return[r.map(function(e){return typeof e==`string`||typeof e==`function`?e:e.format}),a]},[e,t,n])}function Ck(e,t,n){return typeof e[0]==`function`||n?!0:t}function wk(e){"@babel/helpers - typeof";return wk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},wk(e)}function Tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ek(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Tk(Object(n),!0).forEach(function(t){Dk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dk(e,t,n){return t=Ok(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ok(e){var t=kk(e,`string`);return wk(t)==`symbol`?t:String(t)}function kk(e,t){if(wk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(wk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ak(e,t,n,r){return Fn(function(i,a){var o=Ek({type:t},a);if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){var s=a&&a.activeIndex===1?`end`:`start`,c=r.disabledTime?.call(r,i,s,{from:o.from})||{},l=c.disabledHours,u=c.disabledMinutes,d=c.disabledSeconds,f=c.disabledMilliseconds,p=r.disabledHours,m=r.disabledMinutes,h=r.disabledSeconds,g=l||p,_=u||m,v=d||h,y=e.getHour(i),b=e.getMinute(i),x=e.getSecond(i),S=e.getMillisecond(i);if(g&&g().includes(y)||_&&_(y).includes(b)||v&&v(y,b).includes(x)||f&&f(y,b,x).includes(S))return!0}return!1})}function jk(e){"@babel/helpers - typeof";return jk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},jk(e)}function Mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mk(Object(n),!0).forEach(function(t){Pk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pk(e,t,n){return t=Fk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fk(e){var t=Ik(e,`string`);return jk(t)==`symbol`?t:String(t)}function Ik(e,t){if(jk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(jk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Lk(e,t){return Hk(e)||Vk(e,t)||zk(e,t)||Rk()}function Rk(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zk(e,t){if(e){if(typeof e==`string`)return Bk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bk(e,t)}}function Bk(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 Vk(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Hk(e){if(Array.isArray(e))return e}function Uk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return x.useMemo(function(){var n=e&&sO(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function Wk(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?`date`:i,o=e.prefixCls,s=o===void 0?`rc-picker`:o,c=e.previewValue,l=c===void 0?`hover`:c,u=e.styles,d=u===void 0?{}:u,f=e.classNames,p=f===void 0?{}:f,m=e.order,h=m===void 0?!0:m,g=e.components,_=g===void 0?{}:g,v=e.inputRender,y=e.allowClear,b=e.clearIcon,S=e.needConfirm,C=e.multiple,w=e.format,T=e.inputReadOnly,E=e.disabledDate,D=e.minDate,O=e.maxDate,k=e.showTime,A=e.value,j=e.defaultValue,M=e.pickerValue,N=e.defaultPickerValue,P=Uk(A),F=Uk(j),I=Uk(M),L=Uk(N),R=a===`date`&&k?`datetime`:a,z=R===`time`||R===`datetime`,B=z||C,V=S??z,H=Lk(ek(e),4),U=H[0],W=H[1],G=H[2],K=H[3],ee=FO(r,W),te=x.useMemo(function(){return tk(R,G,K,U,ee)},[R,G,K,U,ee]),q=x.useMemo(function(){return Nk(Nk({},e),{},{previewValue:l,prefixCls:s,locale:ee,picker:a,styles:d,classNames:p,order:h,components:Nk({input:v},_),clearIcon:rk(s,y,b),showTime:te,value:P,defaultValue:F,pickerValue:I,defaultPickerValue:L},t?.())},[e]),J=Lk(Sk(R,ee,w),2),Y=J[0],ne=J[1],X=Ck(Y,T,C),re=bk(n,r,E,D,O),ie=Ak(n,a,re,te);return[x.useMemo(function(){return Nk(Nk({},q),{},{needConfirm:V,inputReadOnly:X,disabledDate:re})},[q,V,X,re]),R,B,Y,ne,ie]}function Gk(e,t){return Xk(e)||Yk(e,t)||qk(e,t)||Kk()}function Kk(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qk(e,t){if(e){if(typeof e==`string`)return Jk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jk(e,t)}}function Jk(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 Yk(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Xk(e){if(Array.isArray(e))return e}function Zk(e,t,n){var r=Gk(Vn(t,e),2),i=r[0],a=r[1],o=Gk(x.useState({}),2)[1],s=Fn(function(e){a(e),o({})}),c=x.useRef(e),l=x.useRef(),u=function(){Ci.cancel(l.current)},d=Fn(function(){s(c.current),n&&i!==c.current&&n(c.current)}),f=Fn(function(e,t){u(),c.current=e,e||t?d():l.current=Ci(d)});return x.useEffect(function(){return u},[]),[i,f]}function Qk(e,t){return Cee(e)||See(e,t)||eA(e,t)||$k()}function $k(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eA(e,t){if(e){if(typeof e==`string`)return tA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tA(e,t)}}function tA(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 See(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Cee(e){if(Array.isArray(e))return e}function nA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=Qk(Zk(n.every(function(e){return e})?!1:e,t||!1,r),2),a=i[0],o=i[1];function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!t.inherit||a)&&o(e,t.force)}return[a,s]}function rA(e){var t=x.useRef();return x.useImperativeHandle(e,function(){return{nativeElement:t.current?.nativeElement,focus:function(e){var n;(n=t.current)==null||n.focus(e)},blur:function(){var e;(e=t.current)==null||e.blur()}}}),t}function wee(e,t){return Oee(e)||Dee(e,t)||Eee(e,t)||Tee()}function Tee(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eee(e,t){if(e){if(typeof e==`string`)return iA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iA(e,t)}}function iA(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 Dee(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Oee(e){if(Array.isArray(e))return e}function aA(e,t){return x.useMemo(function(){return e||(t?(oi(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=wee(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function oA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=x.useRef(t);r.current=t,zn(function(){if(e)r.current(e);else{var t=Ci(function(){r.current(e)},n);return function(){Ci.cancel(t)}}},[e])}function sA(e,t){return uA(e)||lA(e,t)||Aee(e,t)||kee()}function kee(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aee(e,t){if(e){if(typeof e==`string`)return cA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cA(e,t)}}function cA(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 lA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function uA(e){if(Array.isArray(e))return e}function dA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=sA(x.useState(0),2),i=r[0],a=r[1],o=sA(x.useState(!1),2),s=o[0],c=o[1],l=x.useRef([]),u=x.useRef(null),d=x.useRef(null),f=function(e){u.current=e};return oA(s||n,function(){s||(l.current=[],f(null))}),x.useEffect(function(){s&&l.current.push(i)},[s,i]),[s,function(e){c(e)},function(e){return e&&(d.current=e),d.current},i,a,function(n){var r=l.current,i=new Set(r.filter(function(e){return n[e]||t[e]})),a=+(r[r.length-1]===0);return i.size>=2||e[a]?null:a},l.current,f,function(e){return u.current===e}]}function fA(e){"@babel/helpers - typeof";return fA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fA(e)}function pA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pA(Object(n),!0).forEach(function(t){hA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hA(e,t,n){return t=gA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gA(e){var t=_A(e,`string`);return fA(t)==`symbol`?t:String(t)}function _A(e,t){if(fA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(fA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vA(e,t){return CA(e)||SA(e,t)||bA(e,t)||yA()}function yA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bA(e,t){if(e){if(typeof e==`string`)return xA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xA(e,t)}}function xA(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 SA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function CA(e){if(Array.isArray(e))return e}function wA(e,t,n,r,i,a){var o=n[n.length-1];return function(s,c){var l=vA(e,2),u=l[0],d=l[1],f=mA(mA({},c),{},{from:dO(e,n)});return o===1&&t[0]&&u&&!mk(r,i,u,s,f.type)&&r.isAfter(u,s)||o===0&&t[1]&&d&&!mk(r,i,d,s,f.type)&&r.isAfter(s,d)?!0:a?.(s,f)}}function TA(e,t){return AA(e)||kA(e,t)||DA(e,t)||EA()}function EA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DA(e,t){if(e){if(typeof e==`string`)return OA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OA(e,t)}}function OA(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 kA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function AA(e){if(Array.isArray(e))return e}function jA(e,t,n,r){switch(t){case`date`:case`week`:return e.addMonth(n,r);case`month`:case`quarter`:return e.addYear(n,r);case`year`:return e.addYear(n,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var MA=[];function NA(e,t,n,r,i,a,o,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:MA,l=arguments.length>9&&arguments[9]!==void 0?arguments[9]:MA,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:MA,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m=o===`time`,h=a||0,g=function(t){var r=e.getNow();return m&&(r=yk(e,r)),c[t]||n[t]||r},_=TA(l,2),v=_[0],y=_[1],b=TA(Vn(function(){return g(0)},v),2),S=b[0],C=b[1],w=TA(Vn(function(){return g(1)},y),2),T=w[0],E=w[1],D=x.useMemo(function(){var t=[S,T][h];return m?t:yk(e,t,u[h])},[m,S,T,h,e,u]),O=function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`panel`,a=[C,E][h];a(n);var s=[S,T];s[h]=n,d&&(!mk(e,t,S,s[0],o)||!mk(e,t,T,s[1],o))&&d(s,{source:i,range:h===1?`end`:`start`,mode:r})},k=function(n,r){if(s){var i={date:`month`,week:`month`,month:`year`,quarter:`year`}[o];if(i&&!mk(e,t,n,r,i)||o===`year`&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return jA(e,o,r,-1)}return r},A=x.useRef(null);return Rn(function(){if(i&&!c[h]){var t=m?null:e.getNow();if(A.current!==null&&A.current!==h?t=[S,T][h^1]:n[h]?t=h===0?n[0]:k(n[0],n[1]):n[h^1]&&(t=n[h^1]),t){f&&e.isAfter(f,t)&&(t=f);var r=s?jA(e,o,t,1):t;p&&e.isAfter(r,p)&&(t=s?jA(e,o,p,-1):p),O(t,`reset`)}}},[i,h,n[h]]),x.useEffect(function(){i?A.current=h:A.current=null},[i,h]),Rn(function(){i&&c&&c[h]&&O(c[h],`reset`)},[i,h]),[D,O]}function PA(e,t){return zA(e)||RA(e,t)||IA(e,t)||FA()}function FA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IA(e,t){if(e){if(typeof e==`string`)return LA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LA(e,t)}}function LA(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 RA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function zA(e){if(Array.isArray(e))return e}function BA(e,t){var n=x.useRef(e),r=PA(x.useState({}),2)[1],i=function(e){return e&&t!==void 0?t:n.current};return[i,function(e){n.current=e,r({})},i(!0)]}function VA(e,t){return WA(e)||UA(e,t)||qA(e,t)||HA()}function HA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function WA(e){if(Array.isArray(e))return e}function GA(e){return YA(e)||JA(e)||qA(e)||KA()}function KA(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qA(e,t){if(e){if(typeof e==`string`)return XA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XA(e,t)}}function JA(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function YA(e){if(Array.isArray(e))return XA(e)}function XA(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}var ZA=[];function QA(e,t,n){return[function(r){return r.map(function(r){return vk(r,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var r=Math.max(t.length,n.length),i=-1,a=0;a<r;a+=1){var o=t[a]||null,s=n[a]||null;if(o!==s&&!fk(e,o,s)){i=a;break}}return[i<0,i!==0]}]}function $A(e,t){return GA(e).sort(function(e,n){return t.isAfter(e,n)?1:-1})}function ej(e){var t=VA(BA(e),2),n=t[0],r=t[1],i=Fn(function(){r(e)});return x.useEffect(function(){i()},[e]),[n,r]}function tj(e,t,n,r,i,a,o,s,c){var l=VA(Vn(a,o),2),u=l[0],d=l[1],f=u||ZA,p=VA(ej(f),2),m=p[0],h=p[1],g=VA(QA(e,t,n),2),_=g[0],v=g[1];return[f,d,m,Fn(function(t){var n=GA(t);if(r)for(var a=0;a<2;a+=1)n[a]=n[a]||null;else i&&(n=$A(n.filter(function(e){return e}),e));var o=VA(v(m(),n),2),c=o[0],l=o[1];if(!c&&(h(n),s)){var u=_(n);s(n,u,{range:l?`end`:`start`})}}),function(){c&&c(m())}]}function nj(e,t,n,r,i,a,o,s,c,l){var u=e.generateConfig,d=e.locale,f=e.picker,p=e.onChange,m=e.allowEmpty,h=e.order,g=a.some(function(e){return e})?!1:h,_=VA(QA(u,d,o),2),v=_[0],y=_[1],b=VA(BA(t),2),S=b[0],C=b[1],w=Fn(function(){C(t)});x.useEffect(function(){w()},[t]);var T=Fn(function(e){var r=e===null,o=GA(e||S());if(r)for(var s=Math.max(a.length,o.length),c=0;c<s;c+=1)a[c]||(o[c]=null);g&&o[0]&&o[1]&&(o=$A(o,u)),i(o);var _=VA(o,2),b=_[0],x=_[1],C=!b,w=!x,T=m?(!C||m[0])&&(!w||m[1]):!0,E=!h||C||w||mk(u,d,b,x,f)||u.isAfter(x,b),D=(a[0]||!b||!l(b,{activeIndex:0}))&&(a[1]||!x||!l(x,{from:b,activeIndex:1})),O=r||T&&E&&D;if(O){n(o);var k=VA(y(o,t),1)[0];if(p&&!k){var A=o.every(function(e){return!e});p(r&&A?null:o,A?null:v(o))}}return O}),E=Fn(function(e,t){C(cO(S(),e,r()[e])),t&&T()}),D=!s&&!c;return oA(!D,function(){D&&(T(),i(t),w())},2),[E,T]}function rj(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function ij(e){return cj(e)||sj(e)||oj(e)||aj()}function aj(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oj(e,t){if(e){if(typeof e==`string`)return lj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lj(e,t)}}function sj(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function cj(e){if(Array.isArray(e))return lj(e)}function lj(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 uj(e,t,n,r,i,a){var o=e;function s(e,t,n){var r=a[e](o),i=n.find(function(e){return e.value===r});if(!i||i.disabled){var s=n.filter(function(e){return!e.disabled}),c=ij(s).reverse().find(function(e){return e.value<=r})||s[0];c&&(r=c.value,o=a[t](o,r))}return r}var c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function dj(e){"@babel/helpers - typeof";return dj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},dj(e)}function fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fj(Object(n),!0).forEach(function(t){mj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mj(e,t,n){return t=hj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hj(e){var t=gj(e,`string`);return dj(t)==`symbol`?t:String(t)}function gj(e,t){if(dj(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(dj(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _j(e,t){return Sj(e)||xj(e,t)||yj(e,t)||vj()}function vj(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yj(e,t){if(e){if(typeof e==`string`)return bj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bj(e,t)}}function bj(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 xj(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Sj(e){if(Array.isArray(e))return e}function Cj(){return[]}function wj(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var l=i.includes(c);(!l||!r)&&o.push({label:oO(c,a),value:c,disabled:l})}return o}function Tj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,c=s===void 0?1:s,l=r.secondStep,u=l===void 0?1:l,d=r.millisecondStep,f=d===void 0?100:d,p=r.hideDisabledOptions,m=r.disabledTime,h=r.disabledHours,g=r.disabledMinutes,_=r.disabledSeconds,v=x.useMemo(function(){return n||e.getNow()},[n,e]),y=x.useCallback(function(e){var t=m?.(e)||{};return[t.disabledHours||h||Cj,t.disabledMinutes||g||Cj,t.disabledSeconds||_||Cj,t.disabledMilliseconds||Cj]},[m,h,g,_]),b=_j(x.useMemo(function(){return y(v)},[v,y]),4),S=b[0],C=b[1],w=b[2],T=b[3],E=x.useCallback(function(e,t,n,r){var a=wj(0,23,o,p,e());return[i?a.map(function(e){return pj(pj({},e),{},{label:oO(e.value%12||12,2)})}):a,function(e){return wj(0,59,c,p,t(e))},function(e,t){return wj(0,59,u,p,n(e,t))},function(e,t,n){return wj(0,999,f,p,r(e,t,n),3)}]},[p,o,i,f,c,u]),D=_j(x.useMemo(function(){return E(S,C,w,T)},[E,S,C,w,T]),4),O=D[0],k=D[1],A=D[2],j=D[3];return[function(t,n){var r=function(){return O},i=k,a=A,o=j;if(n){var s=_j(y(n),4),c=s[0],l=s[1],u=s[2],d=s[3],f=_j(E(c,l,u,d),4),p=f[0],m=f[1],h=f[2],g=f[3];r=function(){return p},i=m,a=h,o=g}return uj(t,r,i,a,o,e)},O,k,A,j]}function Ej(e,t){return jj(e)||Aj(e,t)||Oj(e,t)||Dj()}function Dj(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oj(e,t){if(e){if(typeof e==`string`)return kj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kj(e,t)}}function kj(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 Aj(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function jj(e){if(Array.isArray(e))return e}function Mj(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,c=e.invalid,l=e.needConfirm,u=e.generateConfig,d=e.disabledDate,f=x.useContext(qD),p=f.prefixCls,m=f.locale,h=f.button,g=h===void 0?`button`:h,_=f.classNames,v=f.styles,y=u.getNow(),b=Ej(Tj(u,a,y),1)[0],S=r?.(t),C=d(y,{type:t}),w=function(){C||s(b(y))},T=`${p}-now`,E=`${T}-btn`,D=i&&x.createElement(`li`,{className:T},x.createElement(`a`,{className:Z(E,C&&`${E}-disabled`),"aria-disabled":C,onClick:w},n===`date`?m.today:m.now)),O=l&&x.createElement(`li`,{className:`${p}-ok`},x.createElement(g,{disabled:c,onClick:o},m.ok)),k=(D||O)&&x.createElement(`ul`,{className:`${p}-ranges`},D,O);return!S&&!k?null:x.createElement(`div`,{className:Z(`${p}-footer`,_.popup.footer),style:v.popup.footer},S&&x.createElement(`div`,{className:`${p}-footer-extra`},S),k)}function Nj(e){return Lj(e)||Ij(e)||Fj(e)||Pj()}function Pj(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fj(e,t){if(e){if(typeof e==`string`)return Rj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rj(e,t)}}function Ij(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Lj(e){if(Array.isArray(e))return Rj(e)}function Rj(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 zj(e,t,n){function r(r,i){var a=r.findIndex(function(r){return mk(e,t,r,i,n)});if(a===-1)return[].concat(Nj(r),[i]);var o=Nj(r);return o.splice(a,1),o}return r}var Bj=x.createContext(null),Vj=x.createContext(null);function Hj(){return x.useContext(Vj)}function Uj(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,c=e.cellRender,l=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,h=e.prevIcon,g=e.nextIcon,_=e.superPrevIcon,v=e.superNextIcon,y=x.useContext(Bj),b=y.classNames,S=y.styles,C=r.getNow();return[{now:C,values:f,pickerValue:p,prefixCls:n,classNames:b,styles:S,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v},C]}var Wj=x.createContext({});function Gj(e){"@babel/helpers - typeof";return Gj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Gj(e)}function Kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kj(Object(n),!0).forEach(function(t){Jj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jj(e,t,n){return t=Yj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yj(e){var t=Xj(e,`string`);return Gj(t)==`symbol`?t:String(t)}function Xj(e,t){if(Gj(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Gj(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Zj(e,t){return nM(e)||tM(e,t)||$j(e,t)||Qj()}function Qj(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $j(e,t){if(e){if(typeof e==`string`)return eM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eM(e,t)}}function eM(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 tM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function nM(e){if(Array.isArray(e))return e}function rM(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,c=e.getCellText,l=e.getCellClassName,u=e.headerCells,d=e.cellSelection,f=d===void 0?!0:d,p=e.disabledDate,m=Hj(),h=m.prefixCls,g=m.classNames,_=m.styles,v=m.panelType,y=m.now,b=m.disabledDate,S=m.cellRender,C=m.onHover,w=m.hoverValue,T=m.hoverRangeValue,E=m.generateConfig,D=m.values,O=m.locale,k=m.onSelect,A=p||b,j=`${h}-cell`,M=x.useContext(Wj).onCellDblClick,N=function(e){return D.some(function(t){return t&&mk(E,O,e,t,v)})},P=[],F=0;F<t;F+=1){for(var I=[],L=void 0,R=function(){var e=i(r,F*n+z),t=A?.(e,{type:v});z===0&&(L=e,a&&I.push(a(L)));var o=!1,u=!1,d=!1;if(f&&T){var p=Zj(T,2),m=p[0],b=p[1];o=hk(E,m,b,e),u=mk(E,O,e,m,v),d=mk(E,O,e,b,v)}var D=s?vk(e,{locale:O,format:s,generateConfig:E}):void 0,P=x.createElement(`div`,{className:`${j}-inner`},c(e));I.push(x.createElement(`td`,{key:z,title:D,className:Z(j,g.item,qj(Jj(Jj(Jj(Jj(Jj(Jj({},`${j}-disabled`,t),`${j}-hover`,(w||[]).some(function(t){return mk(E,O,e,t,v)})),`${j}-in-range`,o&&!u&&!d),`${j}-range-start`,u),`${j}-range-end`,d),`${h}-cell-selected`,!T&&v!==`week`&&N(e)),l(e))),style:_.item,onClick:function(){t||k(e)},onDoubleClick:function(){!t&&M&&M()},onMouseEnter:function(){t||C?.(e)},onMouseLeave:function(){t||C?.(null)}},S?S(e,{prefixCls:h,originNode:P,today:y,type:v,locale:O}):P))},z=0;z<n;z+=1)R();P.push(x.createElement(`tr`,{key:F,className:o?.(L)},I))}return x.createElement(`div`,{className:Z(`${h}-body`,g.body),style:_.body},x.createElement(`table`,{className:Z(`${h}-content`,g.content),style:_.content},u&&x.createElement(`thead`,null,x.createElement(`tr`,null,u)),x.createElement(`tbody`,null,P)))}var iM={visibility:`hidden`};function aM(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,a=e.getEnd,o=e.children,s=Hj(),c=s.prefixCls,l=s.classNames,u=s.styles,d=s.prevIcon,f=d===void 0?`‹`:d,p=s.nextIcon,m=p===void 0?`›`:p,h=s.superPrevIcon,g=h===void 0?`«`:h,_=s.superNextIcon,v=_===void 0?`»`:_,y=s.minDate,b=s.maxDate,S=s.generateConfig,C=s.locale,w=s.pickerValue,T=s.panelType,E=`${c}-header`,D=x.useContext(Wj),O=D.hidePrev,k=D.hideNext,A=D.hideHeader,j=x.useMemo(function(){return!y||!t||!a?!1:!gk(S,C,a(t(-1,w)),y,T)},[y,t,w,a,S,C,T]),M=x.useMemo(function(){return!y||!n||!a?!1:!gk(S,C,a(n(-1,w)),y,T)},[y,n,w,a,S,C,T]),N=x.useMemo(function(){return!b||!t||!i?!1:!gk(S,C,b,i(t(1,w)),T)},[b,t,w,i,S,C,T]),P=x.useMemo(function(){return!b||!n||!i?!1:!gk(S,C,b,i(n(1,w)),T)},[b,n,w,i,S,C,T]),F=function(e){t&&r(t(e,w))},I=function(e){n&&r(n(e,w))};if(A)return null;var L=`${E}-prev-btn`,R=`${E}-next-btn`,z=`${E}-super-prev-btn`,B=`${E}-super-next-btn`;return x.createElement(`div`,{className:Z(E,l.header),style:u.header},n&&x.createElement(`button`,{type:`button`,"aria-label":C.previousYear,onClick:function(){return I(-1)},tabIndex:-1,className:Z(z,M&&`${z}-disabled`),disabled:M,style:O?iM:{}},g),t&&x.createElement(`button`,{type:`button`,"aria-label":C.previousMonth,onClick:function(){return F(-1)},tabIndex:-1,className:Z(L,j&&`${L}-disabled`),disabled:j,style:O?iM:{}},f),x.createElement(`div`,{className:`${E}-view`},o),t&&x.createElement(`button`,{type:`button`,"aria-label":C.nextMonth,onClick:function(){return F(1)},tabIndex:-1,className:Z(R,N&&`${R}-disabled`),disabled:N,style:k?iM:{}},m),n&&x.createElement(`button`,{type:`button`,"aria-label":C.nextYear,onClick:function(){return I(1)},tabIndex:-1,className:Z(B,P&&`${B}-disabled`),disabled:P,style:k?iM:{}},v))}function oM(e){"@babel/helpers - typeof";return oM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oM(e)}function sM(){return sM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sM.apply(this,arguments)}function cM(e,t,n){return t=lM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lM(e){var t=uM(e,`string`);return oM(t)==`symbol`?t:String(t)}function uM(e,t){if(oM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(oM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function dM(e,t){return gM(e)||hM(e,t)||pM(e,t)||fM()}function fM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pM(e,t){if(e){if(typeof e==`string`)return mM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mM(e,t)}}function mM(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 hM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function gM(e){if(Array.isArray(e))return e}function _M(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?`date`:n,i=e.locale,a=e.generateConfig,o=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,l=e.mode,u=l===void 0?`date`:l,d=e.disabledDate,f=e.onSelect,p=e.onHover,m=e.showWeek,h=`${t}-${r}-panel`,g=`${t}-cell`,_=u===`week`,v=dM(Uj(e,u),2),y=v[0],b=v[1],S=a.locale.getWeekFirstDay(i.locale),C=a.setDate(o,1),w=_k(i.locale,a,C),T=a.getMonth(o),E=(m===void 0?_:m)?function(e){var t=d?.(e,{type:`week`});return x.createElement(`td`,{key:`week`,className:Z(g,`${g}-week`,cM({},`${g}-disabled`,t)),onClick:function(){t||f(e)},onMouseEnter:function(){t||p?.(e)},onMouseLeave:function(){t||p?.(null)}},x.createElement(`div`,{className:`${g}-inner`},a.locale.getWeek(i.locale,e)))}:null,D=[],O=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);E&&D.push(x.createElement(`th`,{key:`empty`},x.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},i.week)));for(var k=0;k<7;k+=1)D.push(x.createElement(`th`,{key:k},O[(k+S)%7]));var A=function(e,t){return a.addDate(e,t)},j=function(e){return vk(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},M=function(e){return cM(cM({},`${t}-cell-in-view`,lk(a,e,o)),`${t}-cell-today`,uk(a,e,b))},N=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),P=x.createElement(`button`,{type:`button`,"aria-label":i.yearSelect,key:`year`,onClick:function(){c(`year`,o)},tabIndex:-1,className:`${t}-year-btn`},vk(o,{locale:i,format:i.yearFormat,generateConfig:a})),F=x.createElement(`button`,{type:`button`,"aria-label":i.monthSelect,key:`month`,onClick:function(){c(`month`,o)},tabIndex:-1,className:`${t}-month-btn`},i.monthFormat?vk(o,{locale:i,format:i.monthFormat,generateConfig:a}):N[T]),I=i.monthBeforeYear?[F,P]:[P,F];return x.createElement(Vj.Provider,{value:y},x.createElement(`div`,{className:Z(h,m&&`${h}-show-week`)},x.createElement(aM,{offset:function(e){return a.addMonth(o,e)},superOffset:function(e){return a.addYear(o,e)},onChange:s,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},I),x.createElement(rM,sM({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:w,headerCells:D,getCellDate:A,getCellText:j,getCellClassName:M,prefixColumn:E,cellSelection:!_}))))}var vM=1/3;function yM(e,t){var n=x.useRef(!1),r=x.useRef(null),i=x.useRef(null),a=function(){return n.current},o=function(){Ci.cancel(r.current),n.current=!1},s=x.useRef();return[Fn(function(){var a=e.current;if(i.current=null,s.current=0,a){var c=a.querySelector(`[data-value="${t}"]`),l=a.querySelector(`li`);c&&l&&function e(){o(),n.current=!0,s.current+=1;var t=a.scrollTop,u=l.offsetTop,d=c.offsetTop,f=d-u;if(d===0&&c!==l||!Er(a)){s.current<=5&&(r.current=Ci(e));return}var p=t+(f-t)*vM,m=Math.abs(f-p);if(i.current!==null&&i.current<m){o();return}if(i.current=m,m<=1){a.scrollTop=f,o();return}a.scrollTop=p,r.current=Ci(e)}()}}),o,a]}function bM(e){"@babel/helpers - typeof";return bM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bM(e)}function xM(e,t,n){return t=SM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SM(e){var t=CM(e,`string`);return bM(t)==`symbol`?t:String(t)}function CM(e,t){if(bM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wM(e){return DM(e)||EM(e)||AM(e)||TM()}function TM(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EM(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function DM(e){if(Array.isArray(e))return jM(e)}function OM(e,t){return NM(e)||MM(e,t)||AM(e,t)||kM()}function kM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AM(e,t){if(e){if(typeof e==`string`)return jM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jM(e,t)}}function jM(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 MM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function NM(e){if(Array.isArray(e))return e}var PM=300;function FM(e){return e.map(function(e){return[e.value,e.label,e.disabled].join(`,`)}).join(`;`)}function IM(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,a=e.onChange,o=e.onHover,s=e.onDblClick,c=e.changeOnScroll,l=Hj(),u=l.prefixCls,d=l.cellRender,f=l.now,p=l.locale,m=l.classNames,h=l.styles,g=`${u}-time-panel`,_=`${u}-time-panel-cell`,v=x.useRef(null),y=x.useRef(),b=function(){clearTimeout(y.current)},S=OM(yM(v,n??r),3),C=S[0],w=S[1],T=S[2];Rn(function(){return C(),b(),function(){w(),b()}},[n,r,FM(t)]);var E=function(e){b();var n=e.target;!T()&&c&&(y.current=setTimeout(function(){var e=v.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(function(e){return e.offsetTop-r}).map(function(e,r){return t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)}),o=Math.min.apply(Math,wM(i)),s=t[i.findIndex(function(e){return e===o})];s&&!s.disabled&&a(s.value)},PM))},D=`${g}-column`;return x.createElement(`ul`,{className:D,ref:v,"data-type":i,onScroll:E},t.map(function(e){var t=e.label,r=e.value,c=e.disabled,l=x.createElement(`div`,{className:`${_}-inner`},t);return x.createElement(`li`,{key:r,style:h.item,className:Z(_,m.item,xM(xM({},`${_}-selected`,n===r),`${_}-disabled`,c)),onClick:function(){c||a(r)},onDoubleClick:function(){!c&&s&&s()},onMouseEnter:function(){o(r)},onMouseLeave:function(){o(null)},"data-value":r},d?d(r,{prefixCls:u,originNode:l,today:f,type:`time`,subType:i,locale:p}):l)}))}function LM(){return LM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LM.apply(this,arguments)}function RM(e,t){return UM(e)||HM(e,t)||BM(e,t)||zM()}function zM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BM(e,t){if(e){if(typeof e==`string`)return VM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VM(e,t)}}function VM(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 HM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function UM(e){if(Array.isArray(e))return e}function WM(e){return e<12}function GM(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,a=e.use12Hours,o=e.changeOnScroll,s=Hj(),c=s.prefixCls,l=s.classNames,u=s.styles,d=s.values,f=s.generateConfig,p=s.locale,m=s.onSelect,h=s.onHover,g=h===void 0?function(){}:h,_=s.pickerValue,v=d?.[0]||null,y=x.useContext(Wj).onCellDblClick,b=RM(Tj(f,e,v),5),S=b[0],C=b[1],w=b[2],T=b[3],E=b[4],D=function(e){return[v&&f[e](v),_&&f[e](_)]},O=RM(D(`getHour`),2),k=O[0],A=O[1],j=RM(D(`getMinute`),2),M=j[0],N=j[1],P=RM(D(`getSecond`),2),F=P[0],I=P[1],L=RM(D(`getMillisecond`),2),R=L[0],z=L[1],B=k===null?null:WM(k)?`am`:`pm`,V=x.useMemo(function(){return a?WM(k)?C.filter(function(e){return WM(e.value)}):C.filter(function(e){return!WM(e.value)}):C},[k,C,a]),H=function(e,t){var n,r=e.filter(function(e){return!e.disabled});return t??(r==null||(n=r[0])==null?void 0:n.value)},U=H(C,k),W=x.useMemo(function(){return w(U)},[w,U]),G=H(W,M),K=x.useMemo(function(){return T(U,G)},[T,U,G]),ee=H(K,F),te=x.useMemo(function(){return E(U,G,ee)},[E,U,G,ee]),q=H(te,R),J=x.useMemo(function(){if(!a)return[];var e=f.getNow(),t=f.setHour(e,6),n=f.setHour(e,18),r=function(e,t){var n=p.cellMeridiemFormat;return n?vk(e,{generateConfig:f,locale:p,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:C.every(function(e){return e.disabled||!WM(e.value)})},{label:r(n,`PM`),value:`pm`,disabled:C.every(function(e){return e.disabled||WM(e.value)})}]},[C,a,f,p]),Y=function(e){m(S(e))},ne=x.useMemo(function(){var e=v||_||f.getNow(),t=function(e){return e!=null};return t(k)?(e=f.setHour(e,k),e=f.setMinute(e,M),e=f.setSecond(e,F),e=f.setMillisecond(e,R)):t(A)?(e=f.setHour(e,A),e=f.setMinute(e,N),e=f.setSecond(e,I),e=f.setMillisecond(e,z)):t(U)&&(e=f.setHour(e,U),e=f.setMinute(e,G),e=f.setSecond(e,ee),e=f.setMillisecond(e,q)),e},[v,_,k,M,F,R,U,G,ee,q,A,N,I,z,f]),X=function(e,t){return e===null?null:f[t](ne,e)},re=function(e){return X(e,`setHour`)},ie=function(e){return X(e,`setMinute`)},ae=function(e){return X(e,`setSecond`)},oe=function(e){return X(e,`setMillisecond`)},se=function(e){return e===null?null:e===`am`&&!WM(k)?f.setHour(ne,k-12):e===`pm`&&WM(k)?f.setHour(ne,k+12):ne},ce=function(e){Y(re(e))},le=function(e){Y(ie(e))},ue=function(e){Y(ae(e))},de=function(e){Y(oe(e))},fe=function(e){Y(se(e))},pe=function(e){g(re(e))},me=function(e){g(ie(e))},he=function(e){g(ae(e))},ge=function(e){g(oe(e))},_e=function(e){g(se(e))},ve={onDblClick:y,changeOnScroll:o};return x.createElement(`div`,{className:Z(`${c}-content`,l.content),style:u.content},t&&x.createElement(IM,LM({units:V,value:k,optionalValue:A,type:`hour`,onChange:ce,onHover:pe},ve)),n&&x.createElement(IM,LM({units:W,value:M,optionalValue:N,type:`minute`,onChange:le,onHover:me},ve)),r&&x.createElement(IM,LM({units:K,value:F,optionalValue:I,type:`second`,onChange:ue,onHover:he},ve)),i&&x.createElement(IM,LM({units:te,value:R,optionalValue:z,type:`millisecond`,onChange:de,onHover:ge},ve)),a&&x.createElement(IM,LM({units:J,value:B,type:`meridiem`,onChange:fe,onHover:_e},ve)))}function KM(e,t){return ZM(e)||XM(e,t)||JM(e,t)||qM()}function qM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JM(e,t){if(e){if(typeof e==`string`)return YM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YM(e,t)}}function YM(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 XM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ZM(e){if(Array.isArray(e))return e}function QM(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,a=e.showTime,o=(a||{}).format,s=`${t}-time-panel`,c=KM(Uj(e,`time`),1)[0];return x.createElement(Vj.Provider,{value:c},x.createElement(`div`,{className:Z(s)},x.createElement(aM,null,n?vk(n,{locale:r,format:o,generateConfig:i}):`\xA0`),x.createElement(GM,a)))}function $M(){return $M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$M.apply(this,arguments)}function eN(e,t){return aN(e)||iN(e,t)||nN(e,t)||tN()}function tN(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nN(e,t){if(e){if(typeof e==`string`)return rN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rN(e,t)}}function rN(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 iN(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function aN(e){if(Array.isArray(e))return e}function oN(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,a=e.value,o=e.pickerValue,s=e.onHover,c=`${t}-datetime-panel`,l=eN(Tj(n,r),1)[0],u=function(e){return a?yk(n,e,a):yk(n,e,o)};return x.createElement(`div`,{className:c},x.createElement(_M,$M({},e,{onSelect:function(e){var t=u(e);i(l(t,t))},onHover:function(e){s?.(e&&u(e))}})),x.createElement(QM,e))}function sN(e){"@babel/helpers - typeof";return sN=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},sN(e)}function cN(){return cN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cN.apply(this,arguments)}function lN(e,t,n){return t=uN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uN(e){var t=dN(e,`string`);return sN(t)==`symbol`?t:String(t)}function dN(e,t){if(sN(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(sN(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function fN(e,t){return _N(e)||gN(e,t)||mN(e,t)||pN()}function pN(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mN(e,t){if(e){if(typeof e==`string`)return hN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hN(e,t)}}function hN(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 gN(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function _N(e){if(Array.isArray(e))return e}function vN(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s=`${t}-decade-panel`,c=fN(Uj(e,`decade`),1)[0],l=function(e){var t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=function(e){var t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=function(e,t){return r.addYear(e,t*10)},h=function(e){var t=n.cellYearFormat;return`${vk(e,{locale:n,format:t,generateConfig:r})}-${vk(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},g=function(e){return lN({},`${t}-cell-in-view`,ak(r,e,d)||ak(r,e,f)||hk(r,d,f,e))},_=a?function(e,t){var n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,v=`${vk(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${vk(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return x.createElement(Vj.Provider,{value:c},x.createElement(`div`,{className:s},x.createElement(aM,{superOffset:function(e){return r.addYear(i,e*100)},onChange:o,getStart:l,getEnd:u},v),x.createElement(rM,cN({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:h,getCellClassName:g}))))}function yN(e){"@babel/helpers - typeof";return yN=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yN(e)}function bN(){return bN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bN.apply(this,arguments)}function xN(e,t,n){return t=SN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SN(e){var t=CN(e,`string`);return yN(t)==`symbol`?t:String(t)}function CN(e,t){if(yN(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yN(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wN(e,t){return kN(e)||ON(e,t)||EN(e,t)||TN()}function TN(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EN(e,t){if(e){if(typeof e==`string`)return DN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DN(e,t)}}function DN(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 ON(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kN(e){if(Array.isArray(e))return e}function AN(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s=e.onModeChange,c=`${t}-month-panel`,l=wN(Uj(e,`month`),1)[0],u=r.setMonth(i,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),f=function(e,t){return r.addMonth(e,t)},p=function(e){var t=r.getMonth(e);return n.monthFormat?vk(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=function(){return xN({},`${t}-cell-in-view`,!0)},h=a?function(e,t){var n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,g=x.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:function(){s(`year`)},tabIndex:-1,className:`${t}-year-btn`},vk(i,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(Vj.Provider,{value:l},x.createElement(`div`,{className:c},x.createElement(aM,{superOffset:function(e){return r.addYear(i,e)},onChange:o,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},g),x.createElement(rM,bN({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function jN(e){"@babel/helpers - typeof";return jN=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},jN(e)}function MN(){return MN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MN.apply(this,arguments)}function NN(e,t,n){return t=PN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e){var t=FN(e,`string`);return jN(t)==`symbol`?t:String(t)}function FN(e,t){if(jN(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(jN(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IN(e,t){return VN(e)||BN(e,t)||RN(e,t)||LN()}function LN(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RN(e,t){if(e){if(typeof e==`string`)return zN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zN(e,t)}}function zN(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 BN(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function VN(e){if(Array.isArray(e))return e}function HN(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,o=e.onModeChange,s=`${t}-quarter-panel`,c=IN(Uj(e,`quarter`),1)[0],l=r.setMonth(i,0),u=function(e,t){return r.addMonth(e,t*3)},d=function(e){return vk(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},f=function(){return NN({},`${t}-cell-in-view`,!0)},p=x.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:function(){o(`year`)},tabIndex:-1,className:`${t}-year-btn`},vk(i,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(Vj.Provider,{value:c},x.createElement(`div`,{className:s},x.createElement(aM,{superOffset:function(e){return r.addYear(i,e)},onChange:a,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},p),x.createElement(rM,MN({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function UN(e){"@babel/helpers - typeof";return UN=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UN(e)}function WN(){return WN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WN.apply(this,arguments)}function GN(e,t,n){return t=KN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KN(e){var t=qN(e,`string`);return UN(t)==`symbol`?t:String(t)}function qN(e,t){if(UN(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UN(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function JN(e,t){return $N(e)||QN(e,t)||XN(e,t)||YN()}function YN(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XN(e,t){if(e){if(typeof e==`string`)return ZN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZN(e,t)}}function ZN(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 QN(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $N(e){if(Array.isArray(e))return e}function eP(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,a=e.hoverValue,o=e.hoverRangeValue,s=r.locale,c=`${t}-week-panel-row`;return x.createElement(_M,WN({},e,{mode:`week`,panelName:`week`,rowClassName:function(e){var t={};if(o){var r=JN(o,2),l=r[0],u=r[1],d=pk(n,s,l,e),f=pk(n,s,u,e);t[`${c}-range-start`]=d,t[`${c}-range-end`]=f,t[`${c}-range-hover`]=!d&&!f&&hk(n,l,u,e)}return a&&(t[`${c}-hover`]=a.some(function(t){return pk(n,s,e,t)})),Z(c,GN({},`${c}-selected`,!o&&pk(n,s,i,e)),t)}}))}function tP(e){"@babel/helpers - typeof";return tP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tP(e)}function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nP.apply(this,arguments)}function rP(e,t,n){return t=iP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iP(e){var t=aP(e,`string`);return tP(t)==`symbol`?t:String(t)}function aP(e,t){if(tP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(tP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oP(e,t){return dP(e)||uP(e,t)||cP(e,t)||sP()}function sP(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cP(e,t){if(e){if(typeof e==`string`)return lP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lP(e,t)}}function lP(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 uP(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function dP(e){if(Array.isArray(e))return e}function fP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s=e.onModeChange,c=`${t}-year-panel`,l=oP(Uj(e,`year`),1)[0],u=function(e){var t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=function(e){var t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),h=function(e,t){return r.addYear(e,t)},g=function(e){return vk(e,{locale:n,format:n.cellYearFormat,generateConfig:r})},_=function(e){return rP({},`${t}-cell-in-view`,ok(r,e,f)||ok(r,e,p)||hk(r,f,p,e))},v=a?function(e,t){var n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,y=x.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:function(){s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},vk(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,vk(p,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(Vj.Provider,{value:l},x.createElement(`div`,{className:c},x.createElement(aM,{superOffset:function(e){return r.addYear(i,e*10)},onChange:o,getStart:u,getEnd:d},y),x.createElement(rM,nP({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:g,getCellClassName:_}))))}function pP(e){"@babel/helpers - typeof";return pP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pP(e)}function mP(){return mP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mP.apply(this,arguments)}function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hP(Object(n),!0).forEach(function(t){_P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _P(e,t,n){return t=vP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vP(e){var t=yP(e,`string`);return pP(t)==`symbol`?t:String(t)}function yP(e,t){if(pP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bP(e){return CP(e)||SP(e)||EP(e)||xP()}function xP(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SP(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function CP(e){if(Array.isArray(e))return DP(e)}function wP(e,t){return kP(e)||OP(e,t)||EP(e,t)||TP()}function TP(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EP(e,t){if(e){if(typeof e==`string`)return DP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DP(e,t)}}function DP(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 OP(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kP(e){if(Array.isArray(e))return e}var AP={date:_M,datetime:oN,week:eP,month:AN,quarter:HN,year:fP,decade:vN,time:QM};function jP(e,t){var n=e.classNames,r=e.styles,i=e.locale,a=e.generateConfig,o=e.direction,s=e.prefixCls,c=e.tabIndex,l=c===void 0?0:c,u=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,m=e.onSelect,h=e.defaultPickerValue,g=e.pickerValue,_=e.onPickerValueChange,v=e.mode,y=e.onPanelChange,b=e.picker,S=b===void 0?`date`:b,C=e.showTime,w=e.hoverValue,T=e.hoverRangeValue,E=e.cellRender,D=e.dateRender,O=e.monthCellRender,k=e.components,A=k===void 0?{}:k,j=e.hideHeader,M=x.useContext(qD)||{},N=M.prefixCls,P=M.classNames,F=M.styles,I=N||s||`rc-picker`,L=x.useRef();x.useImperativeHandle(t,function(){return{nativeElement:L.current}});var R=wP(ek(e),4),z=R[0],B=R[1],V=R[2],H=R[3],U=FO(i,B),W=S===`date`&&C?`datetime`:S,G=x.useMemo(function(){return tk(W,V,H,z,U)},[W,V,H,z,U]),K=a.getNow(),ee=wP(Vn(S||`date`,v),2),te=ee[0],q=ee[1],J=te===`date`&&G?`datetime`:te,Y=zj(a,i,W),ne=wP(Vn(d,f),2),X=ne[0],re=ne[1],ie=x.useMemo(function(){var e=sO(X).filter(function(e){return e});return u?e:e.slice(0,1)},[X,u]),ae=Fn(function(e){re(e),p&&(e===null||ie.length!==e.length||ie.some(function(t,n){return!mk(a,i,t,e[n],W)}))&&p?.(u?e:e[0])}),oe=Fn(function(e){m?.(e),te===S&&ae(u?Y(ie,e):[e])}),se=wP(Vn(h||ie[0]||K,g),2),ce=se[0],le=se[1];x.useEffect(function(){ie[0]&&!g&&le(ie[0])},[ie[0]]);var ue=function(e,t){y?.(e||g,t||te)},de=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;le(e),_?.(e),t&&ue(e)},fe=function(e,t){q(e),t&&de(t),ue(t,e)},pe=function(e){if(oe(e),de(e),te!==S){var t=[`decade`,`year`],n=[].concat(t,[`month`]),r={quarter:[].concat(t,[`quarter`]),week:[].concat(bP(n),[`week`]),date:[].concat(bP(n),[`date`])}[S]||n,i=r[r.indexOf(te)+1];i&&fe(i,e)}},me=x.useMemo(function(){var e,t;if(Array.isArray(T)){var n=wP(T,2);e=n[0],t=n[1]}else e=T;return!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[T,a]),he=yO(E,D,O),ge=A[J]||AP[J]||_M,_e=x.useMemo(function(){return{classNames:P?.popup??n??{},styles:F?.popup??r??{}}},[P,n,F,r]),ve=x.useContext(Wj),ye=x.useMemo(function(){return gP(gP({},ve),{},{hideHeader:j})},[ve,j]),be=`${I}-panel`,xe=lO(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return x.createElement(Bj.Provider,{value:_e},x.createElement(Wj.Provider,{value:ye},x.createElement(`div`,{ref:L,tabIndex:l,className:Z(be,_P({},`${be}-rtl`,o===`rtl`))},x.createElement(ge,mP({},xe,{showTime:G,prefixCls:I,locale:U,generateConfig:a,onModeChange:fe,pickerValue:ce,onPickerValueChange:function(e){de(e,!0)},value:ie[0],onSelect:pe,values:ie,cellRender:he,hoverRangeValue:me,hoverValue:w})))))}var MP=x.memo(x.forwardRef(jP));function NP(e){"@babel/helpers - typeof";return NP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},NP(e)}function PP(){return PP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PP.apply(this,arguments)}function FP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?FP(Object(n),!0).forEach(function(t){LP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LP(e,t,n){return t=RP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RP(e){var t=zP(e,`string`);return NP(t)==`symbol`?t:String(t)}function zP(e,t){if(NP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(NP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function BP(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,c=e.hoverValue,l=x.useContext(qD),u=l.prefixCls,d=l.generateConfig,f=x.useCallback(function(e,n){return jA(d,t,e,n)},[d,t]),p=x.useMemo(function(){return f(r,1)},[r,f]),m=function(e){i(f(e,-1))},h={onCellDblClick:function(){a&&o()}},g=t===`time`,_=IP(IP({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?_.hoverRangeValue=c:_.hoverValue=c,n?x.createElement(`div`,{className:`${u}-panels`},x.createElement(Wj.Provider,{value:IP(IP({},h),{},{hideNext:!0})},x.createElement(MP,_)),x.createElement(Wj.Provider,{value:IP(IP({},h),{},{hidePrev:!0})},x.createElement(MP,PP({},_,{pickerValue:p,onPickerValueChange:m})))):x.createElement(Wj.Provider,{value:IP({},h)},x.createElement(MP,_))}function VP(e){return typeof e==`function`?e():e}function HP(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?x.createElement(`div`,{className:`${t}-presets`},x.createElement(`ul`,null,n.map(function(e,t){var n=e.label,a=e.value;return x.createElement(`li`,{key:t,onClick:function(){r(VP(a))},onMouseEnter:function(){i(VP(a))},onMouseLeave:function(){i(null)}},n)}))):null}function UP(e){"@babel/helpers - typeof";return UP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UP(e)}function WP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WP(Object(n),!0).forEach(function(t){KP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KP(e,t,n){return t=qP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qP(e){var t=JP(e,`string`);return UP(t)==`symbol`?t:String(t)}function JP(e,t){if(UP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YP(){return YP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YP.apply(this,arguments)}function XP(e,t){return tF(e)||eF(e,t)||QP(e,t)||ZP()}function ZP(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QP(e,t){if(e){if(typeof e==`string`)return $P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $P(e,t)}}function $P(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 eF(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function tF(e){if(Array.isArray(e))return e}function nF(e){var t,n,r=e.panelRender,i=e.internalMode,a=e.picker,o=e.showNow,s=e.range,c=e.multiple,l=e.activeInfo,u=l===void 0?[0,0,0]:l,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,g=e.onPanelMouseDown,_=e.direction,v=e.value,y=e.onSelect,b=e.isInvalid,S=e.defaultOpenValue,C=e.onOk,w=e.onSubmit,T=e.classNames,E=e.styles,D=x.useContext(qD).prefixCls,O=`${D}-panel`,k=_===`rtl`,A=x.useRef(null),j=x.useRef(null),M=XP(x.useState(0),2),N=M[0],P=M[1],F=XP(x.useState(0),2),I=F[0],L=F[1],R=XP(x.useState(0),2),z=R[0],B=R[1],V=function(e){e.width&&P(e.width)},H=XP(u,3),U=H[0],W=H[1],G=H[2],K=XP(x.useState(0),2),ee=K[0],te=K[1];x.useEffect(function(){te(10)},[U]),x.useEffect(function(){if(s&&j.current){var e=A.current?.offsetWidth||0,t=j.current.getBoundingClientRect();if(!t.height||t.right<0){te(function(e){return Math.max(0,e-1)});return}if(B((k?W-e:U)-t.left),N&&N<G){var n=k?t.right-(W-e+N):U+e-t.left-N;L(Math.max(0,n))}else L(0)}},[ee,k,N,U,W,G,s]);function q(e){return e.filter(function(e){return e})}var J=x.useMemo(function(){return q(sO(v))},[v]),Y=a===`time`&&!J.length,ne=x.useMemo(function(){return Y?q([S]):J},[Y,J,S]),X=Y?S:J,re=x.useMemo(function(){return ne.length?ne.some(function(e){return b(e)}):!0},[ne,b]),ie=x.createElement(`div`,{className:`${D}-panel-layout`},x.createElement(HP,{prefixCls:D,presets:d,onClick:p,onHover:f}),x.createElement(`div`,null,x.createElement(BP,YP({},e,{value:X})),x.createElement(Mj,YP({},e,{showNow:c?!1:o,invalid:re,onSubmit:function(){Y&&y(S),C(),w()}}))));r&&(ie=r(ie));var ae=`${O}-container`,oe=`marginLeft`,se=`marginRight`,ce=x.createElement(`div`,{onMouseDown:g,tabIndex:-1,className:Z(ae,`${D}-${i}-panel-container`,T==null||(t=T.popup)==null?void 0:t.container),style:GP(KP(KP({},k?se:oe,I),k?oe:se,`auto`),E==null||(n=E.popup)==null?void 0:n.container),onFocus:m,onBlur:h},ie);return s&&(ce=x.createElement(`div`,{onMouseDown:g,ref:j,className:Z(`${D}-range-wrapper`,`${D}-${a}-range-wrapper`)},x.createElement(`div`,{ref:A,className:`${D}-range-arrow`,style:{left:z}}),x.createElement(ta,{onResize:V},ce))),ce}function rF(e){"@babel/helpers - typeof";return rF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rF(e)}function iF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iF(Object(n),!0).forEach(function(t){oF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oF(e,t,n){return t=sF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sF(e){var t=cF(e,`string`);return rF(t)==`symbol`?t:String(t)}function cF(e,t){if(rF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(rF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lF(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,l=e[`aria-required`],u=e.onSubmit,d=e.onFocus,f=e.onBlur,p=e.onInputChange,m=e.onInvalid,h=e.open,g=e.onOpenChange,_=e.onKeyDown,v=e.onChange,y=e.activeHelp,b=e.name,S=e.autoComplete,C=e.id,w=e.value,T=e.invalid,E=e.placeholder,D=e.disabled,O=e.activeIndex,k=e.allHelp,A=e.picker,j=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=n[0],N=x.useCallback(function(e){return vk(e,{locale:a,format:M,generateConfig:i})},[a,i,M]),P=x.useMemo(function(){return w.map(N)},[w,N]),F=x.useMemo(function(){var e=A===`time`?8:10,t=typeof M==`function`?M(i.getNow()).length:M.length;return Math.max(e,t)+2},[M,A,i]),I=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if(typeof r==`string`){var i=j(e,r);if(i)return i}}return!1};return[function(n){function i(e){return n===void 0?e:e[n]}var a=aF(aF({},_i(e,{aria:!0,data:!0})),{},{format:r,validateFormat:function(e){return!!I(e)},preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:b,autoComplete:S,size:F,id:i(C),value:i(P)||``,invalid:i(T),placeholder:i(E),active:O===n,helped:k||y&&O===n,disabled:i(D),onFocus:function(e){d(e,n)},onBlur:function(e){f(e,n)},onSubmit:u,onChange:function(e){p();var t=I(e);if(t){m(!1,n),v(t,n);return}m(!!e,n)},onHelp:function(){g(!0,{index:n})},onKeyDown:function(e){var t=!1;if(_?.(e,function(){t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:g(!1,{index:n});break;case`Enter`:h||g(!0);break}}},t?.({valueTexts:P}));return Object.keys(a).forEach(function(e){a[e]===void 0&&delete a[e]}),a},N]}var uF=[`onMouseEnter`,`onMouseLeave`];function dF(e){return x.useMemo(function(){return lO(e,uF)},[e])}var fF=[`icon`,`type`],pF=[`onClear`];function mF(){return mF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mF.apply(this,arguments)}function hF(e,t){if(e==null)return{};var n=gF(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _F(e){var t=e.icon,n=e.type,r=hF(e,fF),i=x.useContext(qD),a=i.prefixCls,o=i.classNames,s=i.styles;return t?x.createElement(`span`,mF({className:Z(`${a}-${n}`,o.suffix),style:s.suffix},r),t):null}function vF(e){var t=e.onClear,n=hF(e,pF);return x.createElement(_F,mF({},n,{type:`clear`,role:`button`,onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}function yF(e){"@babel/helpers - typeof";return yF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yF(e)}function bF(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function xF(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,wF(r.key),r)}}function SF(e,t,n){return t&&xF(e.prototype,t),n&&xF(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function CF(e,t,n){return t=wF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wF(e){var t=TF(e,`string`);return yF(t)==`symbol`?t:String(t)}function TF(e,t){if(yF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var EF=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],DF=`顧`,OF=function(){function e(t){bF(this,e),CF(this,`format`,void 0),CF(this,`maskFormat`,void 0),CF(this,`cells`,void 0),CF(this,`maskCells`,void 0),this.format=t;var n=EF.map(function(e){return`(${e})`}).join(`|`),r=new RegExp(n,`g`);this.maskFormat=t.replace(r,function(e){return DF.repeat(e.length)});var i=RegExp(`(${EF.join(`|`)})`),a=(t.split(i)||[]).filter(function(e){return e}),o=0;this.cells=a.map(function(e){var t=EF.includes(e),n=o,r=o+e.length;return o=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(function(e){return e.mask})}return SF(e,[{key:`getSelection`,value:function(e){var t=this.maskCells[e]||{},n=t.start,r=t.end;return[n||0,r||0]}},{key:`match`,value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||n!==DF&&n!==r)return!1}return!0}},{key:`size`,value:function(){return this.maskCells.length}},{key:`getMaskCellIndex`,value:function(e){for(var t=2**53-1,n=0,r=0;r<this.maskCells.length;r+=1){var i=this.maskCells[r],a=i.start,o=i.end;if(e>=a&&e<=o)return r;var s=Math.min(Math.abs(e-a),Math.abs(e-o));s<t&&(t=s,n=r)}return n}}]),e}();function kF(e){return{YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}function AF(e){"@babel/helpers - typeof";return AF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},AF(e)}var jF=[`className`,`active`,`showActiveCls`,`suffixIcon`,`format`,`validateFormat`,`onChange`,`onInput`,`helped`,`onHelp`,`onSubmit`,`onKeyDown`,`preserveInvalidOnBlur`,`invalid`,`clearIcon`];function MF(){return MF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MF.apply(this,arguments)}function NF(e,t,n){return t=PF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PF(e){var t=FF(e,`string`);return AF(t)==`symbol`?t:String(t)}function FF(e,t){if(AF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(AF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IF(e,t){return VF(e)||BF(e,t)||RF(e,t)||LF()}function LF(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RF(e,t){if(e){if(typeof e==`string`)return zF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zF(e,t)}}function zF(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 BF(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function VF(e){if(Array.isArray(e))return e}function HF(e,t){if(e==null)return{};var n=UF(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var WF=x.forwardRef(function(e,t){var n=e.className,r=e.active,i=e.showActiveCls,a=i===void 0?!0:i,o=e.suffixIcon,s=e.format,c=e.validateFormat,l=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,m=e.preserveInvalidOnBlur,h=m===void 0?!1:m,g=e.invalid,_=e.clearIcon,v=HF(e,jF),y=e.value,b=e.onFocus,S=e.onBlur,C=e.onMouseUp,w=x.useContext(qD),T=w.prefixCls,E=w.input,D=E===void 0?`input`:E,O=w.classNames,k=w.styles,A=`${T}-input`,j=IF(x.useState(!1),2),M=j[0],N=j[1],P=IF(x.useState(y),2),F=P[0],I=P[1],L=IF(x.useState(``),2),R=L[0],z=L[1],B=IF(x.useState(null),2),V=B[0],H=B[1],U=IF(x.useState(null),2),W=U[0],G=U[1],K=F||``;x.useEffect(function(){I(y)},[y]);var ee=x.useRef(null),te=x.useRef(null),q=x.useRef(!1);x.useImperativeHandle(t,function(){return{nativeElement:ee.current,inputElement:te.current,focus:function(e){te.current.focus(e)},blur:function(){te.current.blur()}}});var J=x.useMemo(function(){return new OF(s||``)},[s]),Y=IF(x.useMemo(function(){return u?[0,0]:J.getSelection(V)},[J,V,u]),2),ne=Y[0],X=Y[1],re=function(e){e&&e!==s&&e!==y&&d()},ie=Fn(function(e){c(e)&&l(e),I(e),re(e)}),ae=function(e){if(!s){var t=e.target.value;re(t),I(t),l(t)}},oe=function(e){if(q.current){e.preventDefault();return}var t=e.clipboardData.getData(`text`);c(t)&&ie(t)},se=function(){q.current=!0},ce=function(e){var t=e.target.selectionStart;H(J.getMaskCellIndex(t)),G({}),C?.(e),q.current=!1},le=function(e){N(!0),H(0),z(``),b(e)},ue=function(e){S(e)},de=function(e){N(!1),ue(e)};oA(r,function(){!r&&!h&&I(y)});var fe=function(e){e.key===`Enter`&&c(K)&&f(),p?.(e)},pe=function(e){if(q.current){e.preventDefault();return}fe(e);var t=e.key,n=null,r=null,i=X-ne,a=s.slice(ne,X),o=function(e){H(function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,J.size()-1),n})},c=function(e){var t=IF(kF(a),3),n=t[0],r=t[1],i=t[2],o=K.slice(ne,X),s=Number(o);if(isNaN(s))return String(i||(e>0?n:r));var c=s+e,l=r-n+1;return String(n+(l+c-n)%l)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,o(-1);break;case`ArrowRight`:n=``,o(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=R+t,r=n);break}n!==null&&(z(n),n.length>=i&&(o(1),z(``))),r!==null&&ie((K.slice(0,ne)+oO(r,i)+K.slice(X)).slice(0,s.length)),G({})},me=x.useRef();Rn(function(){if(!(!M||!s||q.current)){if(!J.match(K)){ie(s);return}return te.current.setSelectionRange(ne,X),me.current=Ci(function(){te.current.setSelectionRange(ne,X)}),function(){Ci.cancel(me.current)}}},[J,s,M,K,V,ne,X,W,ie]);var he=s?{onFocus:le,onBlur:de,onKeyDown:pe,onMouseDown:se,onMouseUp:ce,onPaste:oe}:{};return x.createElement(`div`,{ref:ee,className:Z(A,NF(NF({},`${A}-active`,r&&a),`${A}-placeholder`,u),n)},x.createElement(D,MF({ref:te,"aria-invalid":g,autoComplete:`off`},v,{onKeyDown:fe,onBlur:ue},he,{value:K,onChange:ae,className:O.input,style:k.input})),x.createElement(_F,{type:`suffix`,icon:o}),_)}),GF=`id.prefix.clearIcon.suffixIcon.separator.activeIndex.activeHelp.allHelp.focused.onFocus.onBlur.onKeyDown.locale.generateConfig.placeholder.className.style.onClick.onClear.value.onChange.onSubmit.onInputChange.format.maskFormat.preserveInvalidOnBlur.onInvalid.disabled.invalid.inputReadOnly.direction.onOpenChange.onActiveInfo.placement.onMouseDown.required.aria-required.autoFocus.tabIndex`.split(`.`),KF=[`index`];function qF(){return qF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qF.apply(this,arguments)}function JF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JF(Object(n),!0).forEach(function(t){XF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XF(e,t,n){return t=ZF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZF(e){var t=QF(e,`string`);return aI(t)==`symbol`?t:String(t)}function QF(e,t){if(aI(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(aI(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $F(e,t){return iI(e)||rI(e,t)||tI(e,t)||eI()}function eI(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tI(e,t){if(e){if(typeof e==`string`)return nI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nI(e,t)}}function nI(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 rI(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function iI(e){if(Array.isArray(e))return e}function aI(e){"@babel/helpers - typeof";return aI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},aI(e)}function oI(e,t){if(e==null)return{};var n=sI(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cI(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?`~`:o,c=e.activeIndex;e.activeHelp,e.allHelp;var l=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,p=e.onClick,m=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,_=e.invalid;e.inputReadOnly;var v=e.direction;e.onOpenChange;var y=e.onActiveInfo;e.placement;var b=e.onMouseDown;e.required,e[`aria-required`];var S=e.autoFocus,C=e.tabIndex,w=oI(e,GF),T=v===`rtl`,E=x.useContext(qD),D=E.prefixCls,O=E.classNames,k=E.styles,A=x.useMemo(function(){if(typeof n==`string`)return[n];var e=n||{};return[e.start,e.end]},[n]),j=x.useRef(),M=x.useRef(),N=x.useRef(),P=function(e){return[M,N][e]?.current};x.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(e){if(aI(e)===`object`){var t,n=e||{},r=n.index,i=r===void 0?0:r,a=oI(n,KF);(t=P(i))==null||t.focus(a)}else{var o;(o=P(e??0))==null||o.focus()}},blur:function(){var e,t;(e=P(0))==null||e.blur(),(t=P(1))==null||t.blur()}}});var F=dF(w),I=x.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),L=$F(lF(YF(YF({},e),{},{id:A,placeholder:I})),1)[0],R=$F(x.useState({position:`absolute`,width:0}),2),z=R[0],B=R[1],V=Fn(function(){var e=P(c);if(e){var t=e.nativeElement.getBoundingClientRect(),n=j.current.getBoundingClientRect(),r=t.left-n.left;B(function(e){return YF(YF({},e),{},{width:t.width,left:r})}),y([t.left,t.right,n.width])}});x.useEffect(function(){V()},[c]);var H=i&&(h[0]&&!g[0]||h[1]&&!g[1]),U=S&&!g[0],W=S&&!U&&!g[1];return x.createElement(ta,{onResize:V},x.createElement(`div`,qF({},F,{className:Z(D,`${D}-range`,XF(XF(XF(XF({},`${D}-focused`,l),`${D}-disabled`,g.every(function(e){return e})),`${D}-invalid`,_.some(function(e){return e})),`${D}-rtl`,T),d),style:f,ref:j,onClick:p,onMouseDown:function(e){var t=e.target;t!==M.current.inputElement&&t!==N.current.inputElement&&e.preventDefault(),b?.(e)}}),r&&x.createElement(`div`,{className:Z(`${D}-prefix`,O.prefix),style:k.prefix},r),x.createElement(WF,qF({ref:M},L(0),{className:`${D}-input-start`,autoFocus:U,tabIndex:C,"date-range":`start`})),x.createElement(`div`,{className:`${D}-range-separator`},s),x.createElement(WF,qF({ref:N},L(1),{className:`${D}-input-end`,autoFocus:W,tabIndex:C,"date-range":`end`})),x.createElement(`div`,{className:`${D}-active-bar`,style:z}),x.createElement(_F,{type:`suffix`,icon:a}),H&&x.createElement(vF,{icon:i,onClear:m})))}var lI=x.forwardRef(cI);function uI(e){"@babel/helpers - typeof";return uI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uI(e)}function dI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dI(Object(n),!0).forEach(function(t){pI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pI(e,t,n){return t=mI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mI(e){var t=hI(e,`string`);return uI(t)==`symbol`?t:String(t)}function hI(e,t){if(uI(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uI(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gI(e,t){return(0,x.useMemo)(function(){return[fI(fI({},e),{},{popup:e?.popup||{}}),fI(fI({},t),{},{popup:t?.popup||{}})]},[e,t])}function _I(e){"@babel/helpers - typeof";return _I=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_I(e)}function vI(){return vI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vI.apply(this,arguments)}function yI(e){return SI(e)||xI(e)||AI(e)||bI()}function bI(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xI(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function SI(e){if(Array.isArray(e))return jI(e)}function CI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CI(Object(n),!0).forEach(function(t){TI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TI(e,t,n){return t=EI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EI(e){var t=DI(e,`string`);return _I(t)==`symbol`?t:String(t)}function DI(e,t){if(_I(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_I(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function OI(e,t){return NI(e)||MI(e,t)||AI(e,t)||kI()}function kI(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AI(e,t){if(e){if(typeof e==`string`)return jI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jI(e,t)}}function jI(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 MI(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function NI(e){if(Array.isArray(e))return e}function PI(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function FI(e){return e===1?`end`:`start`}function II(e,t){var n=OI(Wk(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:PI(t,!1),allowEmpty:PI(n,!1)}}),6),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=r.prefixCls,u=r.rootClassName,d=r.styles,f=r.classNames,p=r.previewValue,m=r.defaultValue,h=r.value,g=r.needConfirm,_=r.onKeyDown,v=r.disabled,y=r.allowEmpty,b=r.disabledDate,S=r.minDate,C=r.maxDate,w=r.defaultOpen,T=r.open,E=r.onOpenChange,D=r.locale,O=r.generateConfig,k=r.picker,A=r.showNow,j=r.showToday,M=r.showTime,N=r.mode,P=r.onPanelChange,F=r.onCalendarChange,I=r.onOk,L=r.defaultPickerValue,R=r.pickerValue,z=r.onPickerValueChange,B=r.inputReadOnly,V=r.suffixIcon,H=r.onFocus,U=r.onBlur,W=r.presets,G=r.ranges,K=r.components,ee=r.cellRender,te=r.dateRender,q=r.monthCellRender,J=r.onClick,Y=rA(t),ne=OI(gI(f,d),2),X=ne[0],re=ne[1],ie=OI(nA(T,w,v,E),2),ae=ie[0],oe=ie[1],se=function(e,t){(v.some(function(e){return!e})||!e)&&oe(e,t)},ce=OI(tj(O,D,o,!0,!1,m,h,F,I),5),le=ce[0],ue=ce[1],de=ce[2],fe=ce[3],pe=ce[4],me=de(),he=OI(dA(v,y,ae),9),ge=he[0],_e=he[1],ve=he[2],ye=he[3],be=he[4],xe=he[5],Se=he[6],Ce=he[7],we=he[8],Te=function(e,t){_e(!0),H?.(e,{range:FI(t??ye)})},Ee=function(e,t){_e(!1),U?.(e,{range:FI(t??ye)})},De=x.useMemo(function(){if(!M)return null;var e=M.disabledTime,t=e?function(t){return e(t,FI(ye),{from:dO(me,Se,ye)})}:void 0;return wI(wI({},M),{},{disabledTime:t})},[M,ye,me,Se]),Oe=OI(Vn([k,k],N),2),ke=Oe[0],Ae=Oe[1],je=ke[ye]||k,Me=je===`date`&&De?`datetime`:je,Ne=Me===k&&Me!==`time`,Pe=rj(k,je,A,j,!0),Fe=OI(nj(r,le,ue,de,fe,v,o,ge,ae,c),2),Ie=Fe[0],Le=Fe[1],Re=wA(me,v,Se,O,D,b),ze=OI(EO(me,c,y),2),Be=ze[0],Ve=ze[1],He=OI(NA(O,D,me,ke,ae,ye,i,Ne,L,R,De?.defaultOpenValue,z,S,C),2),Ue=He[0],We=He[1],Ge=Fn(function(e,t,n){var r=cO(ke,ye,t);if((r[0]!==ke[0]||r[1]!==ke[1])&&Ae(r),P&&n!==!1){var i=yI(me);e&&(i[ye]=e),P(i,r)}}),Ke=function(e,t){return cO(me,t,e)},qe=function(e,t){var n=me;e&&(n=Ke(e,ye)),Ce(ye);var r=xe(n);fe(n),Ie(ye,r===null),r===null?se(!1,{force:!0}):t||Y.current.focus({index:r})},Je=function(e){var t=e.target.getRootNode();if(!Y.current.nativeElement.contains(t.activeElement??document.activeElement)){var n=v.findIndex(function(e){return!e});n>=0&&Y.current.focus({index:n})}se(!0),J?.(e)},Ye=function(){Le(null),se(!1,{force:!0})},Xe=OI(x.useState(null),2),Ze=Xe[0],Qe=Xe[1],$e=OI(x.useState(null),2),et=$e[0],tt=$e[1],nt=x.useMemo(function(){return et||me},[me,et]);x.useEffect(function(){ae||tt(null)},[ae]);var rt=OI(x.useState([0,0,0]),2),it=rt[0],at=rt[1],ot=function(e,t){p===`hover`&&(tt(e),Qe(t))},st=aA(W,G),ct=function(e){ot(e,`preset`)},lt=function(e){Le(e)&&(ve(`preset-click`),se(!1,{force:!0}))},ut=function(e){qe(e)},dt=function(e){ot(e?Ke(e,ye):null,`cell`)},ft=function(e){se(!0),Te(e)},pt=function(){ve(`panel`)},mt=function(e){fe(cO(me,ye,e)),!g&&!a&&i===Me&&qe(e)},ht=function(){se(!1)},gt=yO(ee,te,q,FI(ye)),_t=me[ye]||null,vt=Fn(function(e){return c(e,{activeIndex:ye})}),yt=x.useMemo(function(){var e=_i(r,!1);return fi(r,[].concat(yI(Object.keys(e)),[`onChange`,`onCalendarChange`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`]))},[r]),bt=x.createElement(nF,vI({},yt,{showNow:Pe,showTime:De,range:!0,multiplePanel:Ne,activeInfo:it,disabledDate:Re,onFocus:ft,onBlur:Ee,onPanelMouseDown:pt,picker:k,mode:je,internalMode:Me,onPanelChange:Ge,format:s,value:_t,isInvalid:vt,onChange:null,onSelect:mt,pickerValue:Ue,defaultOpenValue:sO(M?.defaultOpenValue)[ye],onPickerValueChange:We,hoverValue:nt,onHover:dt,needConfirm:g,onSubmit:qe,onOk:pe,presets:st,onPresetHover:ct,onPresetSubmit:lt,onNow:ut,cellRender:gt,classNames:X,styles:re})),xt=function(e,t){fe(Ke(e,t))},St=function(){ve(`input`)},Ct=function(e,t){var n=Se.length,r=Se[n-1];if(n&&r!==t&&g&&!y[r]&&!we(r)&&me[r]){Y.current.focus({index:r});return}ve(`input`),se(!0,{inherit:!0}),ye!==t&&ae&&!g&&a&&qe(null,!0),be(t),Te(e,t)},wt=function(e,t){se(!1),!g&&ve()===`input`&&Ie(ye,xe(me)===null),Ee(e,t)},Tt=function(e,t){e.key===`Tab`&&qe(null,!0),_?.(e,t)},Et=x.useMemo(function(){return{prefixCls:l,locale:D,generateConfig:O,button:K.button,input:K.input,classNames:X,styles:re}},[l,D,O,K.button,K.input,X,re]);return Rn(function(){ae&&ye!==void 0&&Ge(null,k,!1)},[ae,ye,k]),Rn(function(){var e=ve();!ae&&e===`input`&&(se(!1),qe(null,!0)),!ae&&a&&!g&&e===`panel`&&(se(!0),qe())},[ae]),x.createElement(qD.Provider,{value:Et},x.createElement($D,vI({},fO(r),{popupElement:bt,popupStyle:re.popup.root,popupClassName:Z(u,X.popup.root),visible:ae,onClose:ht,range:!0}),x.createElement(lI,vI({},r,{ref:Y,className:Z(r.className,u,X.root),style:wI(wI({},re.root),r.style),suffixIcon:V,activeIndex:ge||ae?ye:null,activeHelp:!!et,allHelp:!!et&&Ze===`preset`,focused:ge,onFocus:Ct,onBlur:wt,onKeyDown:Tt,onSubmit:qe,value:nt,maskFormat:s,onChange:xt,onInputChange:St,format:o,inputReadOnly:B,disabled:v,open:ae,onOpenChange:se,onClick:Je,onClear:Ye,invalid:Be,onInvalid:Ve,onActiveInfo:at}))))}var LI=x.forwardRef(II);function RI(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?`×`:i,o=e.formatDate,s=e.disabled,c=e.maxTagCount,l=e.placeholder,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return x.createElement(`span`,{className:Z(`${d}-item`),title:typeof e==`string`?e:null},x.createElement(`span`,{className:`${d}-item-content`},e),!s&&t&&x.createElement(`span`,{onMouseDown:function(e){e.preventDefault()},onClick:t,className:`${d}-item-remove`},a))}function m(e){return p(o(e),function(t){t&&t.stopPropagation(),r(e)})}function h(e){return p(`+ ${e.length} ...`)}return x.createElement(`div`,{className:u},x.createElement(kS,{prefixCls:f,data:n,renderItem:m,renderRest:h,itemKey:function(e){return o(e)},maxCount:c}),!n.length&&x.createElement(`span`,{className:`${t}-selection-placeholder`},l))}function zI(e){"@babel/helpers - typeof";return zI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zI(e)}var BI=`id.open.prefix.clearIcon.suffixIcon.activeHelp.allHelp.focused.onFocus.onBlur.onKeyDown.locale.generateConfig.placeholder.className.style.onClick.onClear.internalPicker.value.onChange.onSubmit.onInputChange.multiple.maxTagCount.format.maskFormat.preserveInvalidOnBlur.onInvalid.disabled.invalid.inputReadOnly.direction.onOpenChange.onMouseDown.required.aria-required.autoFocus.tabIndex.removeIcon`.split(`.`);function VI(){return VI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VI.apply(this,arguments)}function HI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HI(Object(n),!0).forEach(function(t){WI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WI(e,t,n){return t=GI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GI(e){var t=KI(e,`string`);return zI(t)==`symbol`?t:String(t)}function KI(e,t){if(zI(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(zI(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qI(e,t){return QI(e)||ZI(e,t)||YI(e,t)||JI()}function JI(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YI(e,t){if(e){if(typeof e==`string`)return XI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XI(e,t)}}function XI(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 ZI(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function QI(e){if(Array.isArray(e))return e}function $I(e,t){if(e==null)return{};var n=eL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function tL(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,c=e.generateConfig,l=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,m=e.internalPicker,h=e.value,g=e.onChange,_=e.onSubmit;e.onInputChange;var v=e.multiple,y=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,S=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var w=e.onMouseDown;e.required,e[`aria-required`];var T=e.autoFocus,E=e.tabIndex,D=e.removeIcon,O=$I(e,BI),k=C===`rtl`,A=x.useContext(qD),j=A.prefixCls,M=A.classNames,N=A.styles,P=x.useRef(),F=x.useRef();x.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(e){var t;(t=F.current)==null||t.focus(e)},blur:function(){var e;(e=F.current)==null||e.blur()}}});var I=dF(O),L=function(e){g([e])},R=function(e){g(h.filter(function(t){return t&&!mk(c,s,t,e,m)})),n||_()},z=qI(lF(UI(UI({},e),{},{onChange:L}),function(e){return{value:e.valueTexts[0]||``,active:o}}),2),B=z[0],V=z[1],H=!!(i&&h.length&&!b),U=v?x.createElement(x.Fragment,null,x.createElement(RI,{prefixCls:j,value:h,onRemove:R,formatDate:V,maxTagCount:y,disabled:b,removeIcon:D,placeholder:l}),x.createElement(`input`,{className:`${j}-multiple-input`,value:h.map(V).join(`,`),ref:F,readOnly:!0,autoFocus:T,tabIndex:E}),x.createElement(_F,{type:`suffix`,icon:a}),H&&x.createElement(vF,{icon:i,onClear:p})):x.createElement(WF,VI({ref:F},B(),{autoFocus:T,tabIndex:E,suffixIcon:a,clearIcon:H&&x.createElement(vF,{icon:i,onClear:p}),showActiveCls:!1}));return x.createElement(`div`,VI({},I,{className:Z(j,WI(WI(WI(WI(WI({},`${j}-multiple`,v),`${j}-focused`,o),`${j}-disabled`,b),`${j}-invalid`,S),`${j}-rtl`,k),u),style:d,ref:P,onClick:f,onMouseDown:function(e){e.target!==F.current?.inputElement&&e.preventDefault(),w?.(e)}}),r&&x.createElement(`div`,{className:Z(`${j}-prefix`,M.prefix),style:N.prefix},r),U)}var nL=x.forwardRef(tL);function rL(e){"@babel/helpers - typeof";return rL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rL(e)}function iL(){return iL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iL.apply(this,arguments)}function aL(e){return cL(e)||sL(e)||gL(e)||oL()}function oL(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sL(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function cL(e){if(Array.isArray(e))return _L(e)}function lL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lL(Object(n),!0).forEach(function(t){dL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dL(e,t,n){return t=fL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fL(e){var t=pL(e,`string`);return rL(t)==`symbol`?t:String(t)}function pL(e,t){if(rL(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(rL(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mL(e,t){return yL(e)||vL(e,t)||gL(e,t)||hL()}function hL(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gL(e,t){if(e){if(typeof e==`string`)return _L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _L(e,t)}}function _L(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 vL(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function yL(e){if(Array.isArray(e))return e}function bL(e,t){var n=mL(Wk(e),6),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=r,u=l.prefixCls,d=l.rootClassName,f=l.styles,p=l.classNames,m=l.previewValue,h=l.order,g=l.defaultValue,_=l.value,v=l.needConfirm,y=l.onChange,b=l.onKeyDown,S=l.disabled,C=l.disabledDate,w=l.minDate,T=l.maxDate,E=l.defaultOpen,D=l.open,O=l.onOpenChange,k=l.locale,A=l.generateConfig,j=l.picker,M=l.showNow,N=l.showToday,P=l.showTime,F=l.mode,I=l.onPanelChange,L=l.onCalendarChange,R=l.onOk,z=l.multiple,B=l.defaultPickerValue,V=l.pickerValue,H=l.onPickerValueChange,U=l.inputReadOnly,W=l.suffixIcon,G=l.removeIcon,K=l.onFocus,ee=l.onBlur,te=l.presets,q=l.components,J=l.cellRender,Y=l.dateRender,ne=l.monthCellRender,X=l.onClick,re=rA(t);function ie(e){return e===null?null:z?e:e[0]}var ae=zj(A,k,i),oe=mL(gI(p,f),2),se=oe[0],ce=oe[1],le=mL(nA(D,E,[S],O),2),ue=le[0],de=le[1],fe=mL(tj(A,k,o,!1,h,g,_,function(e,t,n){if(L){var r=uL({},n);delete r.range,L(ie(e),ie(t),r)}},function(e){R?.(ie(e))}),5),pe=fe[0],me=fe[1],he=fe[2],ge=fe[3],_e=fe[4],ve=he(),ye=mL(dA([S]),4),be=ye[0],xe=ye[1],Se=ye[2],Ce=ye[3],we=function(e){xe(!0),K?.(e,{})},Te=function(e){xe(!1),ee?.(e,{})},Ee=mL(Vn(j,F),2),De=Ee[0],Oe=Ee[1],ke=De===`date`&&P?`datetime`:De,Ae=rj(j,De,M,N),je=y&&function(e,t){y(ie(e),ie(t))},Me=mL(nj(uL(uL({},r),{},{onChange:je}),pe,me,he,ge,[],o,be,ue,c),2)[1],Ne=mL(EO(ve,c),2),Pe=Ne[0],Fe=Ne[1],Ie=x.useMemo(function(){return Pe.some(function(e){return e})},[Pe]),Le=mL(NA(A,k,ve,[De],ue,Ce,i,!1,B,V,sO(P?.defaultOpenValue),function(e,t){if(H){var n=uL(uL({},t),{},{mode:t.mode[0]});delete n.range,H(e[0],n)}},w,T),2),Re=Le[0],ze=Le[1],Be=Fn(function(e,t,n){Oe(t),I&&n!==!1&&I(e||ve[ve.length-1],t)}),Ve=function(){Me(he()),de(!1,{force:!0})},He=function(e){!S&&!re.current.nativeElement.contains(document.activeElement)&&re.current.focus(),de(!0),X?.(e)},Ue=function(){Me(null),de(!1,{force:!0})},We=mL(x.useState(null),2),Ge=We[0],Ke=We[1],qe=mL(x.useState(null),2),Je=qe[0],Ye=qe[1],Xe=x.useMemo(function(){var e=[Je].concat(aL(ve)).filter(function(e){return e});return z?e:e.slice(0,1)},[ve,Je,z]),Ze=x.useMemo(function(){return!z&&Je?[Je]:ve.filter(function(e){return e})},[ve,Je,z]);x.useEffect(function(){ue||Ye(null)},[ue]);var Qe=function(e,t){m===`hover`&&(Ye(e),Ke(t))},$e=aA(te),et=function(e){Qe(e,`preset`)},tt=function(e){Me(z?ae(he(),e):[e])&&!z&&de(!1,{force:!0})},nt=function(e){tt(e)},rt=function(e){Qe(e,`cell`)},it=function(e){de(!0),we(e)},at=function(e){Se(`panel`),!(z&&ke!==j)&&(ge(z?ae(he(),e):[e]),!v&&!a&&i===ke&&Ve())},ot=function(){de(!1)},st=yO(J,Y,ne),ct=x.useMemo(function(){var e=_i(r,!1);return uL(uL({},fi(r,[].concat(aL(Object.keys(e)),[`onChange`,`onCalendarChange`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]))),{},{multiple:r.multiple})},[r]),lt=x.createElement(nF,iL({},ct,{showNow:Ae,showTime:P,disabledDate:C,onFocus:it,onBlur:Te,picker:j,mode:De,internalMode:ke,onPanelChange:Be,format:s,value:ve,isInvalid:c,onChange:null,onSelect:at,pickerValue:Re,defaultOpenValue:P?.defaultOpenValue,onPickerValueChange:ze,hoverValue:Xe,onHover:rt,needConfirm:v,onSubmit:Ve,onOk:_e,presets:$e,onPresetHover:et,onPresetSubmit:tt,onNow:nt,cellRender:st,classNames:se,styles:ce})),ut=function(e){ge(e)},dt=function(){Se(`input`)},ft=function(e){Se(`input`),de(!0,{inherit:!0}),we(e)},pt=function(e){de(!1),Te(e)},mt=function(e,t){e.key===`Tab`&&Ve(),b?.(e,t)},ht=x.useMemo(function(){return{prefixCls:u,locale:k,generateConfig:A,button:q.button,input:q.input,classNames:se,styles:ce}},[u,k,A,q.button,q.input,se,ce]);return Rn(function(){ue&&Ce!==void 0&&Be(null,j,!1)},[ue,Ce,j]),Rn(function(){var e=Se();!ue&&e===`input`&&(de(!1),Ve()),!ue&&a&&!v&&e===`panel`&&Ve()},[ue]),x.createElement(qD.Provider,{value:ht},x.createElement($D,iL({},fO(r),{popupElement:lt,popupStyle:ce.popup.root,popupClassName:Z(d,se.popup.root),visible:ue,onClose:ot}),x.createElement(nL,iL({},r,{ref:re,className:Z(r.className,d,se.root),style:uL(uL({},ce.root),r.style),suffixIcon:W,removeIcon:G,activeHelp:!!Je,allHelp:!!Je&&Ge===`preset`,focused:be,onFocus:ft,onBlur:pt,onKeyDown:mt,onSubmit:Ve,value:Ze,maskFormat:s,onChange:ut,onInputChange:dt,internalPicker:i,format:o,inputReadOnly:U,disabled:S,open:ue,onOpenChange:de,onClick:He,onClear:Ue,invalid:Ie,onInvalid:function(e){Fe(e,0)}}))))}var xL=x.forwardRef(bL),SL=[`parentNode`],CL=`form_item`;function wL(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function TL(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:SL.includes(n)?`${CL}_${n}`:n}function EL(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}function DL(e){return wL(e).join(`_`)}function OL(e,t){let n=Tr(t.getFieldInstance(e));if(n)return n;let r=TL(wL(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function kL(e){let[t]=_y(),n=x.useRef({}),r=x.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=DL(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=OL(e,r);a&&(Zf(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);typeof t?.focus==`function`?t.focus():OL(e,r)?.focus?.()},getFieldInstance:e=>{let t=DL(e);return n.current[t]}},[e,t]);return[r]}var AL=x.createContext(void 0),jL=AL.Provider,ML=x.createContext(void 0),NL=ML.Provider;function PL(){return PL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PL.apply(this,arguments)}var FL=(0,x.forwardRef)((e,t)=>{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u,...d}=e,f=(0,x.useRef)(null),p=(0,x.useRef)(null),[m,h]=Vn(s,a);(0,x.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let g=Z(n,r,{[`${n}-checked`]:m,[`${n}-disabled`]:o});return x.createElement(`span`,{className:g,title:l,style:i,ref:p},x.createElement(`input`,PL({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||h(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!m,type:c})))});function IL(e){let t=x.useRef(null),n=()=>{Ci.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ci(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var LL=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...Rl(e),display:`inline-block`,fontSize:0,[`&${r}-rtl`]:{direction:`rtl`},[`&${r}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},RL=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...Rl(e),display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:`rtl`},"&-disabled":{cursor:`not-allowed`,color:e.colorTextDisabled},"&::after":{display:`inline-block`,width:0,overflow:`hidden`,content:`"\\a0"`},"&-block":{flex:1,justifyContent:`center`},[t]:{...Rl(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${Q(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Vl(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},zL=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:Q(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${Q(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Q(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:Q(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:Q(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":Vl(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},BL=ql(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Q(n)} ${t}`,i=oc(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[LL(i),RL(i),zL(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),VL=x.forwardRef((e,t)=>{let n=x.useContext(AL),r=x.useContext(ML),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=ma(`radio`),u=ir(t,x.useRef(null)),{isFormItemInput:d}=x.useContext(ky),f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:p,className:m,rootClassName:h,children:g,style:_,title:v,classNames:y,styles:b,...S}=e,C=i(`radio`,p),w=(n?.optionType||r)===`button`,T=w?`${C}-button`:C,E=np(C),[D,O]=BL(C,E),k={...S},A=x.useContext(lm),j=k.checked;n&&(k.name=n.name,k.onChange=f,j=e.value===n.value,k.disabled=k.disabled??n.disabled),k.disabled=k.disabled??A;let M={...e,...k,checked:j},[N,P]=vf([c,y],[l,b],{props:M}),F=Z(`${T}-wrapper`,{[`${T}-wrapper-checked`]:j,[`${T}-wrapper-disabled`]:k.disabled,[`${T}-wrapper-rtl`]:a===`rtl`,[`${T}-wrapper-in-form-item`]:d,[`${T}-wrapper-block`]:!!n?.block},o,m,h,N.root,D,O,E),[I,L]=IL(k.onClick);return x.createElement(wh,{component:`Radio`,disabled:k.disabled},x.createElement(`label`,{className:F,style:{...P.root,...s,..._},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v,onClick:I},x.createElement(FL,{...k,checked:j,className:Z(N.icon,{[_h]:!w}),style:P.icon,type:`radio`,prefixCls:T,ref:u,onClick:L}),g===void 0?null:x.createElement(`span`,{className:Z(`${T}-label`,N.label),style:P.label},g)))}),HL=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=x.useContext(da),{name:i}=x.useContext(ky),a=Kn(DL(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:m,id:h,optionType:g,name:_=a,defaultValue:v,value:y,block:b=!1,onChange:S,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,orientation:D,vertical:O,role:k=`radiogroup`}=e,[A,j]=Vn(v,y),M=x.useCallback(t=>{let n=A,r=t.target.value;`value`in e||j(r),r!==n&&S?.(t)},[A,j,S]),N=n(`radio`,o),P=`${N}-group`,F=np(N),[I,L]=BL(N,F),R=f;l&&l.length>0&&(R=l.map(e=>typeof e==`string`||Yd(e)?x.createElement(VL,{key:e.toString(),prefixCls:N,disabled:d,value:e,checked:A===e},e):x.createElement(VL,{key:`radio-group-value-options-${e.value}`,prefixCls:N,disabled:e.disabled||d,value:e.value,checked:A===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let z=Th(p),[,B]=xf(D,O),V=Z(P,`${P}-${u}`,{[`${P}-large`]:z===`large`,[`${P}-small`]:z===`small`,[`${P}-rtl`]:r===`rtl`,[`${P}-block`]:b},s,c,I,L,F),H=x.useMemo(()=>({onChange:M,value:A,disabled:d,name:_,optionType:g,block:b}),[M,A,d,_,g,b]);return x.createElement(`div`,{..._i(e,{aria:!0,data:!0}),role:k,className:Z(V,{[`${N}-group-vertical`]:B}),style:m,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,id:h,ref:t},x.createElement(jL,{value:H},R))}),UL=x.memo(HL),WL=x.forwardRef((e,t)=>{let{getPrefixCls:n}=x.useContext(da),{prefixCls:r,...i}=e,a=n(`radio`,r);return x.createElement(NL,{value:`button`},x.createElement(VL,{prefixCls:a,...i,type:`radio`,ref:t}))}),GL=VL;GL.Button=WL,GL.Group=UL,GL.__ANT_RADIO=!0;function KL(e){return oc(e,{inputAffixPadding:e.paddingXXS})}var qL=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},jee=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),JL=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...jee(oc(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),YL=(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}}),XL=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...YL(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),ZL=(e,t)=>({"&-outlined":{...YL(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...JL(e)},...XL(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...XL(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),QL=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Mee=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...QL(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...QL(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...JL(e)}}}}),$L=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&: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}}},eR=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),tR=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...eR(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),nR=(e,t)=>({"&-filled":{...eR(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...JL(e)},...tR(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...tR(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),rR=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Nee=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...rR(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...rR(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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),iR=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Q(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}}),aR=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...iR(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`}}),oR=(e,t)=>({"&-underlined":{...iR(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`},...aR(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...aR(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),sR=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),cR=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Q(t)} ${Q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},lR=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),uR=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...sR(e.colorTextPlaceholder),"&-lg":{...cR(e),...t.largeStyle},"&-sm":{...lR(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),dR=e=>{let{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`]:{...cR(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...lR(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{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 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${Q(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}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{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`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:`block`,...Bl(),[`${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},[`
|
||
& > ${t}-affix-wrapper,
|
||
& > ${t}-number-affix-wrapper,
|
||
& > ${n}-picker-range
|
||
`]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select,
|
||
& > ${n}-select-auto-complete ${t},
|
||
& > ${n}-cascader-picker ${t},
|
||
& > ${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,
|
||
& > ${n}-select:first-child,
|
||
& > ${n}-select-auto-complete:first-child ${t},
|
||
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
||
& > ${n}-select:last-child,
|
||
& > ${n}-cascader-picker:last-child ${t},
|
||
& > ${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`]:{}}}}},fR=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Rl(e),...uR(e),...ZL(e),...nR(e),...$L(e),...oR(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},pR=e=>{let{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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Vl(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${Q(e.inputAffixPadding)}`}}}},mR=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:{...uR(e),display:`inline-flex`,"&-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}},...pR(e),[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},hR=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Rl(e),...dR(e),"&-rtl":{direction:`rtl`},"&-wrapper":{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}},...Mee(e),...Nee(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}}}}}},gR=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_R=ql([`Input`,`Shared`],e=>{let t=oc(e,KL(e));return[fR(t),mR(t)]},qL,{resetFont:!1}),vR=ql([`Input`,`Component`],e=>{let t=oc(e,KL(e));return[hR(t),gR(t),p_(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},qL,{resetFont:!1}),yR=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:Q(t),itemLineHeight:Q(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},bR=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=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:u,borderRadius:r,cursor:`default`,transition:[`font-size`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...zl(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},xR=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=yR(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Q(a.itemLineHeight)}}}]},SR=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=oc(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=oc(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[xR(i,`small`),xR(e),xR(a,`large`),{[`${t}${t}-multiple`]:{width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`}},...bR(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},CR=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:`translateY(-50%)`,content:`""`,pointerEvents:`none`},[n]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:r,height:r,lineHeight:Q(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
||
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Q(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range,
|
||
&-in-view${t}-range-start,
|
||
&-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
|
||
&-in-view${t}-range-start,
|
||
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:`50%`},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:`50%`},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},wR=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:v,textHeight:y,motionDurationMid:b,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:T,colorText:E,fontSize:D,motionDurationSlow:O,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:N,timeColumnHeight:P,timeColumnWidth:F,timeCellHeight:I,controlItemBgActive:L,marginXXS:R,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,V=e.calc(o).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
|
||
${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon,
|
||
${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:V},"&-header":{display:`flex`,padding:`0 ${Q(c)}`,color:h,borderBottom:`${Q(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:Q(y),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${b}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:D,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:S,lineHeight:Q(y),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:B,insetInlineStart:B,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-prev-icon, &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon, &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:C,fontWeight:`normal`},th:{height:e.calc(C).add(e.calc(w).mul(2)).equal(),color:E,verticalAlign:`middle`}},"&-cell":{padding:`${Q(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E},...CR(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${Q(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${Q(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${Q(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Q(c)} ${Q(z)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${b}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Oc(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Q(c)} ${Q(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${Q(d)} ${f} ${g}`},[`${t}-date-panel,
|
||
${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel,
|
||
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:P},"&-column":{flex:`1 0 auto`,width:F,margin:`${Q(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${b}`,overflowX:`hidden`,"&::-webkit-scrollbar":{width:8,backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:`thin`,scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:`block`,height:`calc(100% - ${Q(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${Q(d)} ${f} ${g}`},"&-active":{background:new Oc(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight:Q(I),borderRadius:j,cursor:`pointer`,transition:`background-color ${b}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:`transparent`,cursor:`not-allowed`}}}}}}}}},TR=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Q(r)} ${l} ${u}`,"&-extra":{padding:`0 ${Q(i)}`,lineHeight:Q(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${Q(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:Q(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:Q(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},ER=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},DR=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Oc(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Oc(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},OR=e=>({...qL(e),...DR(e),...Vw(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),kR=e=>{let{componentCls:t}=e;return{[t]:[{...ZL(e),...oR(e),...nR(e),...$L(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},AR=(e,t)=>({padding:`${Q(e)} ${Q(t)}`}),jR=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},MR=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:a,colorBorder:o,borderRadius:s,motionDurationMid:c,colorTextDisabled:l,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:_,paddingXS:v,marginXS:y,colorIcon:b,lineWidthBold:x,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:T,sizePopupArrow:E,colorBgElevated:D,borderRadiusLG:O,boxShadowSecondary:k,borderRadiusSM:A,colorSplit:j,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:F,fontHeight:I,lineHeightLG:L}=e;return[{[t]:{...Rl(e),...AR(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:s,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${c}`).join(`, `),[`${t}-prefix`]:{flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...sR(u),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:l,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:u}}},"&-large":{...AR(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...AR(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:h??m}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:d,lineHeight:1,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:f,color:d,fontSize:f,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${Q(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:_}}},"&-dropdown":{...Rl(e),...wR(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${t}-dropdown-placement-bottomLeft,
|
||
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft,
|
||
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:`none`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:sg},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:ag},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:`none`},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:cg},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:og},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${C} ease-out`,...Hw(e,D,F),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:D,borderRadius:O,boxShadow:k,transition:`margin ${C}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:N,maxWidth:P,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:v,borderInlineEnd:`${Q(i)} ${a} ${j}`,li:{...Ll,borderRadius:A,paddingInline:v,paddingBlock:e.calc(g).sub(I).div(2).equal(),cursor:`pointer`,transition:`all ${C}`,"+ li":{marginTop:y},"&:hover":{background:M}}}},[`${t}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:`center`},"&-focused":{borderColor:o}}}},"&-dropdown-range":{padding:`${Q(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},mg(e,`slide-up`),mg(e,`slide-down`),ig(e,`move-up`),ig(e,`move-down`)]},NR=ql(`DatePicker`,e=>{let t=oc(KL(e),ER(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[TR(t),MR(t),kR(t),jR(t),SR(t),p_(e,{focusElCls:`${e.componentCls}-focused`})]},OR),PR=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function FR(){return FR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FR.apply(this,arguments)}var IR=x.forwardRef((e,t)=>x.createElement(_u,FR({},e,{ref:t,icon:PR.default}))),LR=(0,x.createContext)(null),RR=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,x.useState)(),l=(0,x.useRef)(),u=x.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Ci.cancel(l.current)}return(0,x.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Ci(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},zR={width:0,height:0,left:0,top:0};function BR(e,t,n){return(0,x.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||zR,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||zR;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function VR(e,t){let n=x.useRef(e),[,r]=x.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var HR=.1,UR=.01,WR=20,GR=.995**WR;function KR(e,t){let[n,r]=(0,x.useState)(),[i,a]=(0,x.useState)(0),[o,s]=(0,x.useState)(0),[c,l]=(0,x.useState)(),u=(0,x.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<HR)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<UR&&Math.abs(i)<UR){window.clearInterval(u.current);return}r*=GR,i*=GR,t(r*WR,i*WR)},WR)}}let m=(0,x.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,x.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},x.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function qR(e){let[t,n]=(0,x.useState)(0),r=(0,x.useRef)(0),i=(0,x.useRef)();return i.current=e,zn(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function JR(e){let t=(0,x.useRef)([]),[,n]=(0,x.useState)({}),r=(0,x.useRef)(typeof e==`function`?e():e),i=qR(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var YR={width:0,height:0,left:0,top:0,right:0};function XR(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,x.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||YR;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||YR)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function ZR(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var QR=`TABS_DQ`;function $R(e){return String(e).replace(/"/g,QR)}function ez(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var tz=x.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:x.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),nz=x.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!x.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?x.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function rz(){return rz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rz.apply(this,arguments)}var iz=x.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_}=e,[v,y]=(0,x.useState)(!1),[b,S]=(0,x.useState)(null),{icon:C=`More`}=s,w=`${r}-more-popup`,T=`${n}-dropdown`,E=b===null?null:`${w}-${b}`,D=a?.dropdownAriaLabel;function O(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let k=x.createElement(BE,{onClick:({key:e,domEvent:t})=>{m(e,t),y(!1)},prefixCls:`${T}-menu`,id:w,tabIndex:-1,role:`listbox`,"aria-activedescendant":E,selectedKeys:[b],"aria-label":D===void 0?`expanded dropdown`:D},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=ez(t,i,u,n);return x.createElement(CE,{key:a,id:`${w}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},x.createElement(`span`,null,o),s&&x.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:`${T}-menu-item-remove`,onClick:e=>{e.stopPropagation(),O(e,a)}},i||u.removeIcon||`×`))}));function A(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===b)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){S(i.key);return}}}function j(e){let{which:t}=e;if(!v){[Jr.DOWN,Jr.SPACE,Jr.ENTER].includes(t)&&(y(!0),e.preventDefault());return}switch(t){case Jr.UP:A(-1),e.preventDefault();break;case Jr.DOWN:A(1),e.preventDefault();break;case Jr.ESC:y(!1);break;case Jr.SPACE:case Jr.ENTER:b!==null&&m(b,e);break}}(0,x.useEffect)(()=>{let e=document.getElementById(E);e?.scrollIntoView&&e.scrollIntoView(!1)},[E,b]),(0,x.useEffect)(()=>{v||S(null)},[v]);let M={marginInlineStart:d};i.length||(M.visibility=`hidden`,M.order=1);let N=Z(g,{[`${T}-rtl`]:f}),P=o?null:x.createElement(MT,rz({prefixCls:T,overlay:k,visible:i.length?v:!1,onVisibleChange:y,overlayClassName:N,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),x.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:M,"aria-haspopup":`listbox`,"aria-controls":w,id:`${r}-more`,"aria-expanded":v,onKeyDown:j},C));return x.createElement(`div`,{className:Z(`${n}-nav-operations`,l),style:c,ref:t},P,x.createElement(tz,{prefixCls:n,locale:a,editable:u}))}),az=x.memo(iz,(e,t)=>t.tabMoving),oz=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:v,onMouseUp:y,style:b,className:S,tabCount:C,currentPosition:w}=e,T=`${t}-tab`,E=ez(u,c,p,s);function D(e){s||m(e)}function O(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let k=x.useMemo(()=>l&&typeof o==`string`?x.createElement(`span`,null,o):o,[o,l]),A=x.useRef(null);x.useEffect(()=>{i&&A.current&&A.current.focus()},[i]);let j=x.createElement(`div`,{key:a,"data-node-key":$R(a),className:Z(T,S,{[`${T}-with-remove`]:E,[`${T}-active`]:r,[`${T}-disabled`]:s,[`${T}-focus`]:i}),style:b,onClick:D},x.createElement(`div`,{ref:A,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),D(e)},onKeyDown:_,onMouseDown:v,onMouseUp:y,onFocus:h,onBlur:g},i&&x.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${w} of ${C}`),l&&x.createElement(`span`,{className:`${T}-icon`},l),o&&k),E&&x.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${T}-remove`,onClick:e=>{e.stopPropagation(),O(e)}},c||p.removeIcon||`×`));return d?d(j):j};function sz(){return sz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sz.apply(this,arguments)}var cz=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},lz=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},uz=(e,t)=>e[+!t],dz=x.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:v}=e,{prefixCls:y,tabs:b}=x.useContext(LR),S=(0,x.useRef)(null),C=(0,x.useRef)(null),w=(0,x.useRef)(null),T=(0,x.useRef)(null),E=(0,x.useRef)(null),D=(0,x.useRef)(null),O=(0,x.useRef)(null),k=d===`top`||d===`bottom`,[A,j]=VR(0,(e,t)=>{k&&h&&h({direction:e>t?`left`:`right`})}),[M,N]=VR(0,(e,t)=>{!k&&h&&h({direction:e>t?`top`:`bottom`})}),[P,F]=(0,x.useState)([0,0]),[I,L]=(0,x.useState)([0,0]),[R,z]=(0,x.useState)([0,0]),[B,V]=(0,x.useState)([0,0]),[H,U]=JR(new Map),W=BR(b,H,I[0]),G=uz(P,k),K=uz(I,k),ee=uz(R,k),te=uz(B,k),q=Math.floor(G)<Math.floor(K+ee),J=q?G-te:G-ee,Y=`${y}-nav-operations-hidden`,ne=0,X=0;k&&s?(ne=0,X=Math.max(0,K-J)):(ne=Math.min(0,J-K),X=0);function re(e){return e<ne?ne:e>X?X:e}let ie=(0,x.useRef)(null),[ae,oe]=(0,x.useState)();function se(){oe(Date.now())}function ce(){ie.current&&clearTimeout(ie.current)}KR(T,(e,t)=>{function n(e,t){e(e=>re(e+t))}return q?(k?n(j,e):n(N,t),ce(),se(),!0):!1}),(0,x.useEffect)(()=>(ce(),ae&&(ie.current=setTimeout(()=>{oe(0)},100)),ce),[ae]);let[le,ue]=XR(W,J,k?A:M,K,ee,te,{...e,tabs:b}),de=Fn((e=o)=>{let t=W.get(e)||{width:0,height:0,left:0,right:0,top:0};if(k){let e=A;s?t.right<A?e=t.right:t.right+t.width>A+J&&(e=t.right+t.width-J):t.left<-A?e=-t.left:t.left+t.width>-A+J&&(e=-(t.left+t.width-J)),N(0),j(re(e))}else{let e=M;t.top<-M?e=-t.top:t.top+t.height>-M+J&&(e=-(t.top+t.height-J)),j(0),N(re(e))}}),[fe,pe]=(0,x.useState)(),[me,he]=(0,x.useState)(!1),ge=b.filter(e=>!e.disabled).map(e=>e.key),_e=e=>{let t=ge.indexOf(fe||o),n=ge.length,r=ge[(t+e+n)%n];pe(r)},ve=(e,t)=>{let n=ge.indexOf(e),r=b.find(t=>t.key===e);ez(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===ge.length-1?_e(-1):_e(1))},ye=(e,t)=>{he(!0),t.button===1&&ve(e,t)},be=e=>{let{code:t}=e,n=s&&k,r=ge[0],i=ge[ge.length-1];switch(t){case`ArrowLeft`:k&&_e(n?1:-1);break;case`ArrowRight`:k&&_e(n?-1:1);break;case`ArrowUp`:e.preventDefault(),k||_e(-1);break;case`ArrowDown`:e.preventDefault(),k||_e(1);break;case`Home`:e.preventDefault(),pe(r);break;case`End`:e.preventDefault(),pe(i);break;case`Enter`:case`Space`:e.preventDefault(),m(fe??o,e);break;case`Backspace`:case`Delete`:ve(fe,e);break}},xe={};k?xe.marginInlineStart=f:xe.marginTop=f;let Se=b.map((e,t)=>{let{key:n}=e;return x.createElement(oz,{id:i,prefixCls:y,key:n,tab:e,className:_?.item,style:t===0?v?.item:{...xe,...v?.item},closable:e.closable,editable:l,active:n===o,focus:n===fe,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:ge.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:be,onFocus:()=>{me||pe(n),de(n),se(),T.current&&(s||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:()=>{pe(void 0)},onMouseDown:e=>ye(n,e),onMouseUp:()=>{he(!1)}})}),Ce=()=>U(()=>{let e=new Map,t=E.current?.getBoundingClientRect();return b.forEach(({key:n})=>{let r=E.current?.querySelector(`[data-node-key="${$R(n)}"]`);if(r){let[i,a,o,s]=cz(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,x.useEffect)(()=>{Ce()},[b.map(e=>e.key).join(`_`)]);let we=qR(()=>{let e=lz(S),t=lz(C),n=lz(w);F([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=lz(O);z(r),V(lz(D));let i=lz(E);L([i[0]-r[0],i[1]-r[1]]),Ce()}),Te=b.slice(0,le),Ee=b.slice(ue+1),De=[...Te,...Ee],Oe=W.get(o),{style:ke}=RR({activeTabOffset:Oe,horizontal:k,indicator:g,rtl:s});(0,x.useEffect)(()=>{de()},[o,ne,X,ZR(Oe),ZR(W),k]),(0,x.useEffect)(()=>{we()},[s]);let Ae=!!De.length,je=`${y}-nav-wrap`,Me,Ne,Pe,Fe;return k?s?(Ne=A>0,Me=A!==X):(Me=A<0,Ne=A!==ne):(Pe=M<0,Fe=M!==ne),x.createElement(ta,{onResize:we},x.createElement(`div`,{ref:ar(t,S),role:`tablist`,"aria-orientation":k?`horizontal`:`vertical`,className:Z(`${y}-nav`,n,_?.header),style:{...v?.header,...r},onKeyDown:()=>{se()}},x.createElement(nz,{ref:C,position:`left`,extra:c,prefixCls:y}),x.createElement(ta,{onResize:we},x.createElement(`div`,{className:Z(je,{[`${je}-ping-left`]:Me,[`${je}-ping-right`]:Ne,[`${je}-ping-top`]:Pe,[`${je}-ping-bottom`]:Fe}),ref:T},x.createElement(ta,{onResize:we},x.createElement(`div`,{ref:E,className:`${y}-nav-list`,style:{transform:`translate(${A}px, ${M}px)`,transition:ae?`none`:void 0}},Se,x.createElement(tz,{ref:O,prefixCls:y,locale:u,editable:l,style:{...Se.length===0?void 0:xe,visibility:Ae?`hidden`:null}}),x.createElement(`div`,{className:Z(`${y}-ink-bar`,_?.indicator,{[`${y}-ink-bar-animated`]:a.inkBar}),style:{...ke,...v?.indicator}}))))),x.createElement(az,sz({},e,{removeAriaLabel:u?.removeAriaLabel,ref:D,prefixCls:y,tabs:De,className:!Ae&&Y,popupStyle:v?.popup,tabMoving:!!ae})),x.createElement(nz,{ref:w,position:`right`,extra:c,prefixCls:y})))}),fz=({renderTabBar:e,...t})=>e?e(t,dz):x.createElement(dz,t),pz=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=x.Children.count(c)>0;return x.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:Z(n,o&&`${n}-active`,r),ref:t},c)});function mz(){return mz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mz.apply(this,arguments)}var hz=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=x.useContext(LR),u=r.tabPane,d=`${c}-tabpane`;return x.createElement(`div`,{className:Z(`${c}-content-holder`)},x.createElement(`div`,{className:Z(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:p,...m}=e,h=i===n;return x.createElement(Cd,mz({key:i,visible:h,forceRender:c,removeOnLeave:!!(a??p),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>x.createElement(pz,mz({},m,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:{...o,...l,...e},className:Z(s,f,n),ref:r})))})))};function gz(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function _z(){return _z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_z.apply(this,arguments)}var vz=0,yz=x.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:v,onChange:y,onTabClick:b,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:T,classNames:E,styles:D,...O}=e,k=x.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),A=o===`rtl`,j=gz(u),[M,N]=(0,x.useState)(!1);(0,x.useEffect)(()=>{N(di())},[]);let[P,F]=Vn(c??k[0]?.key,s),[I,L]=(0,x.useState)(()=>k.findIndex(e=>e.key===P));(0,x.useEffect)(()=>{let e=k.findIndex(e=>e.key===P);e===-1&&(e=Math.max(0,Math.min(I,k.length-1)),F(k[e]?.key)),L(e)},[k.map(e=>e.key).join(`_`),P,I]);let[R,z]=Vn(null,n);(0,x.useEffect)(()=>{n||(z(`rc-tabs-${vz}`),vz+=1)},[]);function B(e,t){b?.(e,t);let n=e!==P;F(e),n&&y?.(e)}let V={id:R,activeKey:P,animated:j,tabPosition:d,rtl:A,mobile:M},H={...V,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:B,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:Z(w,E?.popup),indicator:T,styles:D,classNames:E},U=x.useMemo(()=>({tabs:k,prefixCls:r}),[k,r]);return x.createElement(LR.Provider,{value:U},x.createElement(`div`,_z({ref:t,id:n,className:Z(r,`${r}-${d}`,{[`${r}-mobile`]:M,[`${r}-editable`]:l,[`${r}-rtl`]:A},i)},O),x.createElement(fz,_z({},H,{renderTabBar:v})),x.createElement(hz,_z({destroyOnHidden:_},V,{contentStyle:D?.content,contentClassName:E?.content,animated:j}))))}),bz={motionAppear:!1,motionEnter:!0,motionLeave:!0};function xz(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...Zd(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...bz,motionName:hh(e,`switch`)}),n}function Sz(e){return e.filter(e=>e)}function Cz(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):Sz(wi(t).map(e=>{if(x.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var wz=e=>{let{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}`}}}}},[mg(e,`slide-up`),mg(e,`slide-down`)]]},Tz=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Q(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Vl(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:Q(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Q(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadiusLG)} 0 0 ${Q(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 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ez=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Rl(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:`${Q(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":{...Ll,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${Q(e.paddingXXS)} ${Q(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`}}}}}}},Dz=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${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,
|
||
> 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:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${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:Q(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(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:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Oz=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},kz=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{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},...Hl(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:Vl(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},Az=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=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:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},jz=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...Rl(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`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${Q(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...Hl(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...kz(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Hl(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`}}}}}},Mz=ql(`Tabs`,e=>{let t=oc(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Q(e.horizontalItemGutter)}`});return[Oz(t),Az(t),Dz(t),Ez(t),Tz(t),jz(t),wz(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Nz=()=>null,Pz=x.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:v,indicator:y,classNames:b,styles:S,destroyInactiveTabPane:C,destroyOnHidden:w,tabPlacement:T,tabPosition:E,...D}=e,{prefixCls:O}=D,{getPrefixCls:k,direction:A,getPopupContainer:j,className:M,style:N,classNames:P,styles:F}=ma(`tabs`),{tabs:I}=x.useContext(da),L=k(`tabs`,O),R=np(L),[z,B]=Mz(L,R),V=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??I?.removeIcon??x.createElement(Eu,null),addIcon:(l??I?.addIcon)||x.createElement(IR,null),showAdd:s!==!0});let U=k(),W=Th(a),G=Cz(h,m),K=xz(L,g),ee={align:y?.align??I?.indicator?.align,size:y?.size??v??I?.indicator?.size??I?.indicatorSize},te=x.useMemo(()=>{let e=T??E??void 0,t=A===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[T,E,A]),q={...e,size:W,tabPlacement:te,items:G},[J,Y]=vf([P,b],[F,S],{props:q},{popup:{_default:`root`}});return x.createElement(yz,{ref:V,direction:A,getPopupContainer:j,...D,items:G,className:Z({[`${L}-large`]:W===`large`,[`${L}-small`]:W===`small`,[`${L}-card`]:[`card`,`editable-card`].includes(n),[`${L}-editable-card`]:n===`editable-card`,[`${L}-centered`]:c},M,r,i,J.root,z,B,R),classNames:{...J,popup:Z(p,z,B,R,J.popup?.root)},styles:Y,style:{...Y.root,...N,..._},editable:H,more:{icon:I?.more?.icon??I?.moreIcon??d??x.createElement(nD,null),transitionName:`${U}-slide-up`,...f},prefixCls:L,animated:K,indicator:ee,destroyOnHidden:w??C,tabPosition:te})});Pz.TabPane=Nz;var Fz=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=x.useContext(da),a=i(`card`,e),o=Z(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return x.createElement(`div`,{...r,className:o})},Iz=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${Q(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,...Bl(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...Ll,[`
|
||
> ${n}-typography,
|
||
> ${n}-typography-edit-content
|
||
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},Lz=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
|
||
${Q(i)} 0 0 0 ${n},
|
||
0 ${Q(i)} 0 0 ${n},
|
||
${Q(i)} ${Q(i)} 0 0 ${n},
|
||
${Q(i)} 0 0 0 ${n} inset,
|
||
0 ${Q(i)} 0 0 ${n} inset;
|
||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},Rz=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`,...Bl(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:Q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${a}`}}}},zz=e=>({margin:`${Q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Bl(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...Ll},"&-description":{color:e.colorTextDescription}}),Bz=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Q(e.padding)} ${Q(i)}`}}},Vz=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Hz=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...Rl(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Iz(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:Lz(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Rz(e),[`${t}-meta`]:zz(e)},[`${t}-bordered`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Bz(e),[`${t}-loading`]:Vz(e),[`${t}-rtl`]:{direction:`rtl`}}},Uz=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Q(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},Wz=ql(`Card`,e=>{let t=oc(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Hz(t),Uz(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),Gz=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return x.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return x.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},x.createElement(`span`,null,e))}))},Kz=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:v,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=ma(`card`),[P]=KC(`card`,f,d),F=Th(p),I={...e,size:F,variant:P},[L,R]=vf([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=x.useMemo(()=>wi(v),[v]),V=x.useMemo(()=>B.some(e=>x.isValidElement(e)&&e.type===Fz),[B]),H=O(`card`,n),[U,W]=Wz(H),G=x.createElement(ub,{loading:!0,active:!0,paragraph:{rows:4},title:!1},v),K=y!==void 0,ee={...w,[K?`activeKey`:`defaultActiveKey`]:K?y:b,tabBarExtraContent:S},te,q=F===`small`?F:`large`,J=_?x.createElement(Pz,{size:q,...ee,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||J){let e=Z(`${H}-head`,L.header),t=Z(`${H}-head-title`,L.title),n=Z(`${H}-extra`,L.extra),r={...s,...R.header};te=x.createElement(`div`,{className:e,style:r},x.createElement(`div`,{className:`${H}-head-wrapper`},l&&x.createElement(`div`,{className:t,style:R.title},l),o&&x.createElement(`div`,{className:n,style:R.extra},o)),J)}let Y=Z(`${H}-cover`,L.cover),ne=h?x.createElement(`div`,{className:Y,style:R.cover},h):null,X=Z(`${H}-body`,L.body),re={...c,...R.body},ie=u||B.length?x.createElement(`div`,{className:X,style:re},u?G:v):null,ae=Z(`${H}-actions`,L.actions),oe=g?.length?x.createElement(Gz,{actionClasses:ae,actionStyle:R.actions,actions:g}):null,se=fi(D,[`onTabChange`]),ce=Z(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,W,L.root),le={...R.root,...j,...a};return x.createElement(`div`,{ref:t,...se,className:ce,style:le},te,ne,ie,oe)}),qz=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=ma(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=vf([p,s],[m,c],{props:e}),v=Z(h,n,d,g.root),y={...f,..._.root,...o},b=Z(`${h}-avatar`,g.avatar),S=Z(`${h}-title`,g.title),C=Z(`${h}-description`,g.description),w=Z(`${h}-section`,g.section),T=r?x.createElement(`div`,{className:b,style:_.avatar},r):null,E=i?x.createElement(`div`,{className:S,style:_.title},i):null,D=a?x.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?x.createElement(`div`,{className:w,style:_.section},E,D):null;return x.createElement(`div`,{...l,className:v,style:y},T,O)},Jz=Kz;Jz.Grid=Fz,Jz.Meta=qz;function Yz(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function Xz(e,t,n){var r=(n||{}).atBegin;return Yz(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var Zz=x.createContext({}),Qz=`__rc_cascader_search_mark__`,$z=(e,t,{label:n=``})=>t.some(t=>String(t[n]).toLowerCase().includes(e.toLowerCase())),eB=(e,t,n,r)=>t.map(e=>e[r.label]).join(` / `),tB=(e,t,n,r,i,a)=>{let{filter:o=$z,render:s=eB,limit:c=50,sort:l}=i;return x.useMemo(()=>{let i=[];if(!e)return[];function u(t,d,f=!1){t.forEach(t=>{if(!l&&c!==!1&&c>0&&i.length>=c)return;let p=[...d,t],m=t[n.children],h=f||t.disabled;(!m||m.length===0||a)&&o(e,p,{label:n.label})&&i.push({...t,disabled:h,[n.label]:s(e,p,r,n),[Qz]:p,[n.children]:void 0}),m&&u(t[n.children],p,h)})}return u(t,[]),l&&i.sort((t,r)=>l(t[Qz],r[Qz],e,n)),c!==!1&&c>0?i.slice(0,c):i},[e,t,n,r,s,a,o,l,c])},nB=`__RC_CASCADER_SPLIT__`,rB=`SHOW_PARENT`,iB=`SHOW_CHILD`;function aB(e){return e.join(nB)}function oB(e){return e.map(aB)}function sB(e){return e.split(nB)}function cB(e){let{label:t,value:n,children:r}=e||{},i=n||`value`;return{label:t||`label`,value:i,key:i,children:r||`children`}}function lB(e,t){return e.isLeaf??!e[t.children]?.length}function uB(e){let t=e.parentElement;if(!t)return;let n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}function dB(e,t){return e.map(e=>e[Qz]?.map(e=>e[t.value]))}function fB(e){return Array.isArray(e)&&Array.isArray(e[0])}function pB(e){return e?fB(e)?e:(e.length===0?[]:[e]).map(e=>Array.isArray(e)?e:[e]):[]}function mB(e,t,n){let r=new Set(e),i=t();return e.filter(e=>{let t=i[e],a=t?t.parent:null,o=t?t.children:null;return t&&t.node.disabled?!0:n===`SHOW_CHILD`?!(o&&o.some(e=>e.key&&r.has(e.key))):!(a&&!a.node.disabled&&r.has(a.key))})}function hB(e,t,n,r=!1){let i=t,a=[];for(let t=0;t<e.length;t+=1){let o=e[t],s=i?.findIndex(e=>{let t=e[n.value];return r?String(t)===String(o):t===o}),c=s===-1?null:i?.[s];a.push({value:c?.[n.value]??o,index:s,option:c}),i=c?.[n.children]}return a}var gB=((e,t,n,r,i)=>x.useMemo(()=>{let a=i||(e=>{let t=r?e.slice(-1):e;return t.every(e=>[`string`,`number`].includes(typeof e))?t.join(` / `):t.reduce((e,t,n)=>{let r=x.isValidElement(t)?x.cloneElement(t,{key:n}):t;return n===0?[r]:[...e,` / `,r]},[])});return e.map(e=>{let r=hB(e,t,n),i=a(r.map(({option:e,value:t})=>e?.[n.label]??t),r.map(({option:e})=>e)),o=aB(e);return{label:i,value:o,key:o,valueCells:e,disabled:r[r.length-1]?.option?.disabled}})},[e,t,n,i,r]));function _B(e,t){return x.useCallback(n=>{let r=[],i=[];return n.forEach(n=>{hB(n,e,t).every(e=>e.option)?i.push(n):r.push(n)}),[i,r]},[e,t])}function vB(e,t){return e[t]}function yB(e,t){return`${e}-${t}`}function bB(e){return e&&e.type&&e.type.isTreeNode}function xB(e,t){return e??t}function SB(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function CB(e){function t(e){return wi(e).map(e=>{if(!bB(e))return oi(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function wB(e,t,n){let{_title:r,key:i,children:a}=SB(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=yB(n?n.pos:`0`,u),f=xB(l[i],d),p;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){p=l[t];break}}let m=Object.assign(fi(l,[...r,i,a]),{title:p,key:f,parent:n,pos:d,children:null,data:l,isStart:[...n?n.isStart:[],u===0],isEnd:[...n?n.isEnd:[],u===e.length-1]});return s.push(m),t===!0||o.has(f)?m.children=c(l[a]||[],m):m.children=[],m})}return c(e),s}function TB(e,t,n){let r={};r=typeof n==`object`?n:{externalGetKey:n},r||={};let{childrenPropName:i,externalGetKey:a,fieldNames:o}=r,{key:s,children:c}=SB(o),l=i||c,u;a?typeof a==`string`?u=e=>e[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>xB(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?yB(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function EB(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),TB(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=xB(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function DB(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function OB(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=vB(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function kB(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,`props`,{get(){return oi(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}var AB=((e,t)=>{let n=x.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}});return x.useCallback(()=>(n.current.options!==e&&(n.current.options=e,n.current.info=EB(e,{fieldNames:t,initWrapper:e=>({...e,pathKeyEntities:{}}),processEntity:(e,n)=>{let r=e.nodes.map(e=>e[t.value]).join(nB);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities),[t,e])});function jB(e,t){let n=x.useMemo(()=>t||[],[t]),r=AB(n,e);return[n,r,x.useCallback(t=>{let n=r();return t.map(t=>{let{nodes:r}=n[t];return r.map(t=>t[e.value])})},[r,e])]}function MB(e,t){let{autoClearSearchValue:n,searchValue:r,onSearch:i}=t;return x.useMemo(()=>{if(!e)return[!1,{}];let t={matchInputWidth:!0,limit:50,autoClearSearchValue:n,searchValue:r,onSearch:i};return e&&typeof e==`object`&&(t={...t,...e}),t.limit<=0&&(t.limit=!1),[!0,t]},[e,n,r,i])}function NB(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function PB(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function FB(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(NB(a,i))}}function IB(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(NB(o,a))}}function LB(e,t,n,r){let i=[],a;a=r||PB;let o=new Set(e.filter(e=>{let t=!!vB(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),oi(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?FB(o,s,c,a):IB(o,t.halfCheckedKeys,s,c,a),l}function RB(e,t,n,r,i,a,o,s){return c=>{if(!e)t(c);else{let e=aB(c),l=oB(n),u=oB(r),d=l.includes(e),f=i.some(t=>aB(t)===e),p=n,m=i;if(f&&!d)m=i.filter(t=>aB(t)!==e);else{let t=d?l.filter(t=>t!==e):[...l,e],n=a(),r;d?{checkedKeys:r}=LB(t,{checked:!1,halfCheckedKeys:u},n):{checkedKeys:r}=LB(t,!0,n),p=o(mB(r,a,s))}t([...m,...p])}}}function zB(e,t,n,r,i){return x.useMemo(()=>{let[a,o]=i(t);if(!e||!t.length)return[a,[],o];let{checkedKeys:s,halfCheckedKeys:c}=LB(oB(a),!0,n());return[r(s),r(c),o]},[e,t,n,r,i])}function BB({prefixCls:e,checked:t,halfChecked:n,disabled:r,onClick:i,disableCheckbox:a}){let{checkable:o}=x.useContext(Zz),s=typeof o==`boolean`?null:o;return x.createElement(`span`,{className:Z(`${e}`,{[`${e}-checked`]:t,[`${e}-indeterminate`]:!t&&n,[`${e}-disabled`]:r||a}),onClick:i},s)}function VB(){return VB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VB.apply(this,arguments)}var HB=`__cascader_fix_label__`;function UB({prefixCls:e,multiple:t,options:n,activeValue:r,prevValuePath:i,onToggleOpen:a,onSelect:o,onActive:s,checkedSet:c,halfCheckedSet:l,loadingKeys:u,isSelectable:d,disabled:f}){let p=`${e}-menu`,m=`${e}-menu-item`,h=x.useRef(null),{fieldNames:g,changeOnSelect:_,expandTrigger:v,expandIcon:y,loadingIcon:b,popupMenuColumnStyle:S,optionRender:C,classNames:w,styles:T}=x.useContext(Zz),E=v===`hover`,D=e=>f||e,O=x.useMemo(()=>n.map(e=>{let{disabled:t,disableCheckbox:n}=e,r=e[Qz],a=e.__cascader_fix_label__??e[g.label],o=e[g.value],s=lB(e,g),d=r?r.map(e=>e[g.value]):[...i,o],f=aB(d);return{disabled:t,label:a,value:o,isLeaf:s,isLoading:u.includes(f),checked:c.has(f),halfChecked:l.has(f),option:e,disableCheckbox:n,fullPath:d,fullPathKey:f}}),[n,c,g,l,u,i]);return x.useEffect(()=>{if(h.current){let e=`.${m}-active`,t=h.current.querySelector(e);t&&uB(t)}},[r,m]),x.createElement(`ul`,{className:Z(p,w?.popup?.list),style:T?.popup?.list,ref:h,role:`menu`},O.map(({disabled:n,label:i,value:c,isLeaf:l,isLoading:u,checked:f,halfChecked:p,option:h,fullPath:g,fullPathKey:v,disableCheckbox:O})=>{let k=_i(h,{aria:!0,data:!0}),A=()=>{if(D(n))return;let e=[...g];E&&l&&e.pop(),s(e)},j=()=>{d(h)&&!D(n)&&o(g,l)},M;return typeof h.title==`string`?M=h.title:typeof i==`string`&&(M=i),x.createElement(`li`,VB({key:v},k,{className:Z(m,w?.popup?.listItem,{[`${m}-expand`]:!l,[`${m}-active`]:r===c||r===v,[`${m}-disabled`]:D(n),[`${m}-loading`]:u}),style:{...S,...T?.popup?.listItem},role:`menuitemcheckbox`,title:M,"aria-checked":f,"data-path-key":v,onClick:()=>{A(),!O&&(!t||l)&&j()},onDoubleClick:()=>{_&&a(!1)},onMouseEnter:()=>{E&&A()},onMouseDown:e=>{e.preventDefault()}}),t&&x.createElement(BB,{prefixCls:`${e}-checkbox`,checked:f,halfChecked:p,disabled:D(n)||O,disableCheckbox:O,onClick:e=>{O||(e.stopPropagation(),j())}}),x.createElement(`div`,{className:`${m}-content`},C&&c!==`__EMPTY__`?C(h):i),!u&&y&&!l&&x.createElement(`div`,{className:`${m}-expand-icon`},y),u&&b&&x.createElement(`div`,{className:`${m}-loading-icon`},b))}))}var WB=(e,t)=>{let{values:n}=x.useContext(Zz),r=n[0],[i,a]=x.useState([]);return x.useEffect(()=>{e||a(r||[])},[t,r]),[i,a]},GB=((e,t,n,r,i,a,o)=>{let{direction:s,searchValue:c,toggleOpen:l,open:u}=o,d=s===`rtl`,[f,p,m,h]=x.useMemo(()=>{let e=-1,i=t,a=[],o=[],s=r.length,c=dB(t,n);for(let t=0;t<s&&i;t+=1){let s=i.findIndex((e,i)=>(c[i]?aB(c[i]):e[n.value])===r[t]);if(s===-1)break;e=s,a.push(e),o.push(r[t]),i=i[e][n.children]}let l=t;for(let e=0;e<a.length-1;e+=1)l=l[a[e]][n.children];return[o,e,l,c]},[r,n,t]),g=e=>{i(e)},_=e=>{let t=m.length,r=p;r===-1&&e<0&&(r=t);for(let i=0;i<t;i+=1){r=(r+e+t)%t;let i=m[r];if(i&&!i.disabled){g(f.slice(0,-1).concat(h[r]?aB(h[r]):i[n.value]));return}}},v=()=>{f.length>1?g(f.slice(0,-1)):l(!1)},y=()=>{let e=(m[p]?.[n.children]||[]).find(e=>!e.disabled);e&&g([...f,e[n.value]])};x.useImperativeHandle(e,()=>({onKeyDown:e=>{let{which:t}=e;switch(t){case Jr.UP:case Jr.DOWN:{let e=0;t===Jr.UP?e=-1:t===Jr.DOWN&&(e=1),e!==0&&_(e);break}case Jr.LEFT:if(c)break;d?y():v();break;case Jr.RIGHT:if(c)break;d?v():y();break;case Jr.BACKSPACE:c||v();break;case Jr.ENTER:if(f.length){let e=m[p]?.__rc_cascader_search_mark__||[];e.length?a(e.map(e=>e[n.value]),e[e.length-1]):a(f,m[p])}break;case Jr.ESC:l(!1),u&&e.stopPropagation()}},onKeyUp:()=>{}}))});function KB(){return KB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KB.apply(this,arguments)}var qB=x.forwardRef((e,t)=>{let{prefixCls:n,multiple:r,searchValue:i,toggleOpen:a,notFoundContent:o,direction:s,open:c,disabled:l,lockOptions:u=!1}=e,d=x.useRef(null),f=s===`rtl`,{options:p,values:m,halfValues:h,fieldNames:g,changeOnSelect:_,onSelect:v,searchOptions:y,popupPrefixCls:b,loadData:S,expandTrigger:C}=x.useContext(Zz),w=b||n,[T,E]=x.useState([]),D=e=>{if(!S||i)return;let t=hB(e,p,g).map(({option:e})=>e),n=t[t.length-1];if(n&&!lB(n,g)){let n=aB(e);E(e=>[...e,n]),S(t)}};x.useEffect(()=>{T.length&&T.forEach(e=>{let t=hB(sB(e),p,g,!0).map(({option:e})=>e),n=t[t.length-1];(!n||n[g.children]||lB(n,g))&&E(t=>t.filter(t=>t!==e))})},[p,T,g]);let O=x.useMemo(()=>new Set(oB(m)),[m]),k=x.useMemo(()=>new Set(oB(h)),[h]),[A,j]=WB(r,c),M=e=>{j(e),D(e)},N=e=>{if(l)return!1;let{disabled:t}=e,n=lB(e,g);return!t&&(n||_||r)},P=(e,t,n=!1)=>{v(e),!r&&(t||_&&(C===`hover`||n))&&a(!1)},F=x.useMemo(()=>i?y:p,[i,y,p]),I=qn(()=>F,[c,u],(e,t)=>!!t[0]&&!t[1]),L=x.useMemo(()=>{let e=[{options:I}],t=I,n=dB(t,g);for(let r=0;r<A.length;r+=1){let i=A[r],a=t.find((e,t)=>(n[t]?aB(n[t]):e[g.value])===i)?.[g.children];if(!a?.length)break;t=a,e.push({options:a})}return e},[I,A,g]);GB(t,I,g,A,M,(e,t)=>{N(t)&&P(e,lB(t,g),!0)},{direction:s,searchValue:i,toggleOpen:a,open:c}),x.useEffect(()=>{if(!i)for(let e=0;e<A.length;e+=1){let t=aB(A.slice(0,e+1)),n=d.current?.querySelector(`li[data-path-key="${t.replace(/\\{0,2}"/g,`\\"`)}"]`);n&&uB(n)}},[A,i]);let R=!L[0]?.options?.length,z=[{[g.value]:`__EMPTY__`,[HB]:o,disabled:!0}],B={...e,multiple:!R&&r,onSelect:P,onActive:M,onToggleOpen:a,checkedSet:O,halfCheckedSet:k,loadingKeys:T,isSelectable:N},V=(R?[{options:z}]:L).map((e,t)=>{let n=A.slice(0,t),r=A[t];return x.createElement(UB,KB({key:t},B,{prefixCls:w,options:e.options,prevValuePath:n,activeValue:r}))});return x.createElement(`div`,{className:Z(`${w}-menus`,{[`${w}-menu-empty`]:R,[`${w}-rtl`]:f}),ref:d},V)});function JB(){return JB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JB.apply(this,arguments)}var YB=x.forwardRef((e,t)=>{let{lockOptions:n,...r}=Bx();return x.createElement(qB,JB({},e,r,{lockOptions:n,ref:t}))});function XB(){}function ZB(e){let{prefixCls:t=`rc-cascader`,style:n,className:r,options:i,checkable:a,defaultValue:o,value:s,fieldNames:c,changeOnSelect:l,onChange:u,showCheckedStrategy:d,loadData:f,expandTrigger:p,expandIcon:m=`>`,loadingIcon:h,direction:g,notFoundContent:_=`Not Found`,disabled:v,optionRender:y}=e,b=!!a,[S,C]=Vn(o,s),w=pB(S),T=x.useMemo(()=>cB(c),[JSON.stringify(c)]),[E,D,O]=jB(T,i),[k,A,j]=zB(b,w,D,O,_B(E,T)),M=RB(b,Fn(e=>{if(C(e),u){let t=pB(e),n=t.map(e=>hB(e,E,T).map(e=>e.option));u(b?t:t[0],b?n:n[0])}}),k,A,j,D,O,d),N=Fn(e=>{M(e)}),P=x.useMemo(()=>({options:E,fieldNames:T,values:k,halfValues:A,changeOnSelect:l,onSelect:N,checkable:a,searchOptions:[],popupPrefixCls:void 0,loadData:f,expandTrigger:p,expandIcon:m,loadingIcon:h,popupMenuColumnStyle:void 0,optionRender:y}),[E,T,k,A,l,N,a,f,p,m,h,y]),F=`${t}-panel`,I=!E.length;return x.createElement(Zz.Provider,{value:P},x.createElement(`div`,{className:Z(F,{[`${F}-rtl`]:g===`rtl`,[`${F}-empty`]:I},r),style:n},I?_:x.createElement(qB,{prefixCls:t,searchValue:``,multiple:b,toggleOpen:XB,open:!0,direction:g,disabled:v})))}function QB(){return QB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QB.apply(this,arguments)}var $B=x.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-cascader`,fieldNames:i,defaultValue:a,value:o,changeOnSelect:s,onChange:c,displayRender:l,checkable:u,showSearch:d,expandTrigger:f,options:p,popupPrefixCls:m,loadData:h,open:g,popupClassName:_,popupMenuColumnStyle:v,popupStyle:y,classNames:b,styles:S,placement:C,onPopupVisibleChange:w,expandIcon:T=`>`,loadingIcon:E,children:D,popupMatchSelectWidth:O=!1,showCheckedStrategy:k=rB,optionRender:A,...j}=e,M=Kn(n),N=!!u,[P,F]=Vn(a,o),I=pB(P),L=x.useMemo(()=>cB(i),[JSON.stringify(i)]),[R,z,B]=jB(L,p),[V,H]=MB(d,e),{autoClearSearchValue:U=!0,searchValue:W,onSearch:G}=H,[K,ee]=Vn(``,W),te=K||``,q=(e,t)=>{ee(e),t.source!==`blur`&&G&&G(e)},J=tB(te,R,L,m||r,H,s||N),[Y,ne,X]=zB(N,I,z,B,_B(R,L)),re=gB(x.useMemo(()=>{let e=mB(oB(Y),z,k);return[...X,...B(e)]},[Y,z,B,X,k]),R,L,N,l),ie=Fn(e=>{if(F(e),c){let t=pB(e),n=t.map(e=>hB(e,R,L).map(e=>e.option));c(N?t:t[0],N?n:n[0])}}),ae=RB(N,ie,Y,ne,X,z,B,k),oe=Fn(e=>{(!N||U)&&ee(``),ae(e)}),se=(e,t)=>{if(t.type===`clear`){ie([]);return}let{valueCells:n}=t.values[0];oe(n)},ce=e=>{w?.(e)},le=x.useMemo(()=>({classNames:b,styles:S,options:R,fieldNames:L,values:Y,halfValues:ne,changeOnSelect:s,onSelect:oe,checkable:u,searchOptions:J,popupPrefixCls:m,loadData:h,expandTrigger:f,expandIcon:T,loadingIcon:E,popupMenuColumnStyle:v,optionRender:A}),[b,S,R,L,Y,ne,s,oe,u,J,m,h,f,T,E,v,A]),ue=!(te?J:R).length,de=te&&H.matchInputWidth||ue?{}:{minWidth:`auto`};return x.createElement(Zz.Provider,{value:le},x.createElement(US,QB({},j,{ref:t,id:M,prefixCls:r,autoClearSearchValue:U,popupMatchSelectWidth:O,classNames:b,styles:S,popupStyle:{...de,...y},displayValues:re,onDisplayValuesChange:se,mode:N?`multiple`:void 0,searchValue:te,onSearch:q,showSearch:V,OptionList:YB,emptyOptions:ue,open:g,popupClassName:_,placement:C,onPopupVisibleChange:ce,getRawInputElement:()=>D})))});$B.SHOW_PARENT=rB,$B.SHOW_CHILD=iB,$B.Panel=ZB;var eV=$B;function tV(e,t){let{getPrefixCls:n,direction:r,renderEmpty:i}=x.useContext(da),a=t||r;return[n(`select`,e),n(`cascader`,e),a,i]}function nV(e,t){return x.useMemo(()=>t?x.createElement(`span`,{className:`${e}-checkbox-inner`}):!1,[e,t])}var rV=x.createElement(qm,{spin:!0}),iV=x.createElement(Bg,null),aV=x.createElement(CT,null);function oV({contextExpandIcon:e,contextLoadingIcon:t,expandIcon:n,loadingIcon:r,isRtl:i}){return x.useMemo(()=>({expandIcon:n??e??(i?aV:iV),loadingIcon:r??t??rV}),[e,t,n,i,r])}var sV=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:{...Rl(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...Rl(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...Rl(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${Q(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...hg(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${Q(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:`rotate(45deg) scale(0) translate(-50%,-50%)`,opacity:0,content:`""`,transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`,...hg()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Vl(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
||
${i}:not(${i}-disabled),
|
||
${t}:not(${t}-disabled)
|
||
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...hg()},[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function cV(e,t){return sV(oc(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var lV=ql(`Checkbox`,(e,{prefixCls:t})=>[cV(t,e)]),uV=e=>{let{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
|
||
&${r}-expand ${r}-expand-icon,
|
||
${r}-loading-icon
|
||
`;return[cV(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:`unset`},"&-menus":{display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:`100%`,height:`auto`,[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:`auto`,verticalAlign:`top`,listStyle:`none`,"-ms-overflow-style":`-ms-autohiding-scrollbar`,"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{display:`flex`,maxWidth:400,flexWrap:`nowrap`,alignItems:`center`,padding:e.optionPadding,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:`auto`,minWidth:0,...Ll},[i]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},dV=e=>{let{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},uV(e)]},{[`${t}-dropdown-rtl`]:{direction:`rtl`}},p_(e)]},fV=e=>{let t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},pV=ql(`Cascader`,dV,fV,{resetFont:!1,unitless:{optionSelectedFontWeight:!0}}),mV=Jl([`Cascader`,`Panel`],e=>{let{componentCls:t}=e;return{[`${t}-panel`]:[uV(e),{display:`inline-flex`,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:`auto`,maxWidth:`100%`,[`${t}-menus`]:{alignItems:`stretch`},[`${t}-menu`]:{height:`auto`},"&-empty":{padding:e.paddingXXS}}]}},fV,{resetFont:!1});function hV(e){let{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,loadingIcon:c,disabled:l}=e,{expandIcon:u,loadingIcon:d}=ma(`cascader`),f=x.useContext(lm),p=l??f,[m,h,g,_]=tV(t,o),v=np(h),[y,b]=pV(h,v);mV(h);let{expandIcon:S,loadingIcon:C}=oV({contextExpandIcon:u,contextLoadingIcon:d,expandIcon:s,loadingIcon:c,isRtl:g===`rtl`}),w=a||_?.(`Cascader`)||x.createElement(GC,{componentName:`Cascader`}),T=nV(h,r);return x.createElement(ZB,{...e,checkable:T,prefixCls:h,className:Z(n,y,i,b,v),notFoundContent:w,direction:g,expandIcon:S,loadingIcon:C,disabled:p})}var{SHOW_CHILD:gV,SHOW_PARENT:_V}=eV,vV=(e,t,n)=>{let r=e.toLowerCase().split(t).reduce((e,n,r)=>r===0?[n]:[].concat(ca(e),[t,n]),[]),i=[],a=0;return r.forEach((t,r)=>{let o=a+t.length,s=e.slice(a,o);a=o,r%2==1&&(s=x.createElement(`span`,{className:`${n}-menu-item-keyword`,key:`separator-${r}`},s)),i.push(s)}),i},yV=(e,t,n,r)=>{let i=[],a=e.toLowerCase();return t.forEach((e,t)=>{t!==0&&i.push(` / `);let o=e[r.label],s=typeof o;(s===`string`||s===`number`)&&(o=vV(String(o),a,n)),i.push(o)}),i},bV=x.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,className:a,rootClassName:o,multiple:s,bordered:c=!0,transitionName:l,choiceTransitionName:u=``,popupClassName:d,expandIcon:f,placement:p,showSearch:m,allowClear:h=!0,notFoundContent:g,direction:_,getPopupContainer:v,status:y,showArrow:b,builtinPlacements:S,style:C,variant:w,dropdownClassName:T,dropdownRender:E,onDropdownVisibleChange:D,onPopupVisibleChange:O,dropdownMenuColumnStyle:k,popupRender:A,dropdownStyle:j,popupMenuColumnStyle:M,onOpenChange:N,styles:P,classNames:F,loadingIcon:I,...L}=e,R=fi(L,[`suffixIcon`]),{getPrefixCls:z,getPopupContainer:B,className:V,style:H,classNames:U,styles:W,expandIcon:G,loadingIcon:K}=ma(`cascader`),{popupOverflow:ee}=x.useContext(da),{status:te,hasFeedback:q,isFormItemInput:J,feedbackIcon:Y}=x.useContext(ky),ne=LC(te,y),[X,re,ie,ae]=tV(n,_),oe=ie===`rtl`,se=z(),ce=np(X),[le,ue]=ow(X,ce),de=np(re);pV(re,de);let{compactSize:fe,compactItemClassnames:pe}=Oh(X,_),[me,he]=KC(`cascader`,w,c),ge=g||ae?.(`Cascader`)||x.createElement(GC,{componentName:`Cascader`}),_e=_w(A||E),ve=M||k,ye=N||O||D,be=x.useMemo(()=>{if(!m)return m;let e={render:yV};return Zd(m)&&(e={...e,...m}),e},[m]),xe=Th(e=>r??fe??e),Se=x.useContext(lm),Ce=i??Se,{expandIcon:we,loadingIcon:Te}=oV({contextExpandIcon:G,contextLoadingIcon:K,expandIcon:f,loadingIcon:I,isRtl:oe}),Ee=nV(re,s),De=vw(e.suffixIcon,b),{suffixIcon:Oe,removeIcon:ke,clearIcon:Ae}=gw({...e,loadingIcon:Te,hasFeedback:q,feedbackIcon:Y,showSuffixIcon:De,multiple:s,prefixCls:X,componentName:`Cascader`}),je=x.useMemo(()=>p===void 0?oe?`bottomRight`:`bottomLeft`:p,[p,oe]),Me=h===!0?{clearIcon:Ae}:h,Ne={...e,variant:me,size:xe,status:ne,disabled:Ce},[Pe,Fe]=vf([U,F],[W,P],{props:Ne},{popup:{_default:`root`}}),Ie={...Fe.popup?.root,...j},[Le]=Mf(`SelectLike`,Ie?.zIndex),Re=Z(d||T,`${re}-dropdown`,{[`${re}-dropdown-rtl`]:ie===`rtl`},o,ce,Pe.popup?.root,de,le,ue);return x.createElement(eV,{prefixCls:X,className:Z(!n&&re,{[`${X}-lg`]:xe===`large`,[`${X}-sm`]:xe===`small`,[`${X}-rtl`]:oe,[`${X}-${me}`]:he,[`${X}-in-form-item`]:J},IC(X,ne,q),pe,V,a,o,Pe.root,ce,de,le,ue),disabled:Ce,style:{...Fe.root,...H,...C},classNames:Pe,styles:Fe,...R,builtinPlacements:JC(S,ee),direction:ie,placement:je,notFoundContent:ge,allowClear:Me,showSearch:be,expandIcon:we,suffixIcon:Oe,removeIcon:ke,loadingIcon:Te,checkable:Ee,popupClassName:Re,popupPrefixCls:n||re,popupStyle:{...Ie,zIndex:Le},popupRender:_e,popupMenuColumnStyle:ve,onPopupVisibleChange:ye,choiceTransitionName:hh(se,``,u),transitionName:hh(se,`slide-up`,l),getPopupContainer:v||B,ref:t})}),xV=Lx(bV,`popupAlign`,e=>fi(e,[`visible`]));bV.SHOW_PARENT=_V,bV.SHOW_CHILD=gV,bV.Panel=hV,bV._InternalPanelDoNotUseOrYouWillBeFired=xV;var SV=x.createContext(null),CV=x.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:m,value:h,checked:g,defaultChecked:_,onChange:v,...y}=e,{getPrefixCls:b,direction:S,className:C,style:w,classNames:T,styles:E}=ma(`checkbox`),D=x.useContext(SV),{isFormItemInput:O}=x.useContext(ky),k=x.useContext(lm),A=(D?.disabled||c)??k,[j,M]=Vn(_,g),N=j,P=Fn(e=>{M(e.target.checked),v?.(e),!s&&D?.toggleOption&&D.toggleOption({label:r,value:h})});D&&!s&&(N=D.value.includes(h));let F=x.useRef(null),I=ar(t,F);x.useEffect(()=>{if(!(s||!D))return D.registerValue(h),()=>{D.cancelValue(h)}},[h,s]),x.useEffect(()=>{F.current?.input&&(F.current.input.indeterminate=i)},[i]);let L=b(`checkbox`,n),R=np(L),[z,B]=lV(L,R),V={...y},H={...e,indeterminate:i,disabled:A,checked:N},[U,W]=vf([T,f],[E,p],{props:H}),G=Z(`${L}-wrapper`,{[`${L}-rtl`]:S===`rtl`,[`${L}-wrapper-checked`]:N,[`${L}-wrapper-disabled`]:A,[`${L}-wrapper-in-form-item`]:O},C,u,U.root,l,B,R,z),K=Z(U.icon,{[`${L}-indeterminate`]:i},_h,z),[ee,te]=IL(V.onClick);return x.createElement(wh,{component:`Checkbox`,disabled:A},x.createElement(`label`,{className:G,style:{...W.root,...w,...d},onMouseEnter:a,onMouseLeave:o,onClick:ee},x.createElement(FL,{...V,name:!s&&D?D.name:m,checked:N,onClick:te,onChange:P,prefixCls:L,className:K,style:W.icon,disabled:A,ref:I,value:h}),Jd(r)&&x.createElement(`span`,{className:Z(`${L}-label`,U.label),style:W.label},r)))}),wV=x.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`,...d}=e,{getPrefixCls:f,direction:p}=x.useContext(da),[m,h]=x.useState(d.value||n||[]),[g,_]=x.useState([]);x.useEffect(()=>{`value`in d&&h(d.value||[])},[d.value]);let v=x.useMemo(()=>i.map(e=>typeof e==`string`||Yd(e)?{label:e,value:e}:e),[i]),y=e=>{_(t=>t.filter(t=>t!==e))},b=e=>{_(t=>[].concat(ca(t),[e]))},S=e=>{let t=m.indexOf(e.value),n=ca(m);t===-1?n.push(e.value):n.splice(t,1),`value`in d||h(n),l?.(n.filter(e=>g.includes(e)).sort((e,t)=>v.findIndex(t=>t.value===e)-v.findIndex(e=>e.value===t)))},C=f(`checkbox`,a),w=`${C}-group`,T=np(C),[E,D]=lV(C,T),O=fi(d,[`value`,`disabled`]),k=i.length?v.map(e=>x.createElement(CV,{prefixCls:C,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:Z(`${w}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,A=x.useMemo(()=>({toggleOption:S,value:m,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:y}),[S,m,d.disabled,d.name,b,y]),j=Z(w,{[`${w}-rtl`]:p===`rtl`},o,s,D,T,E);return x.createElement(`div`,{className:j,style:c,role:u,...O,ref:t},x.createElement(SV.Provider,{value:A},k))}),TV=CV;TV.Group=wV,TV.__ANT_CHECKBOX=!0;var EV=(0,x.createContext)({});function DV(e){return e===`auto`?`1 1 auto`:Yd(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var OV=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=x.useContext(da),{gutter:i,wrap:a}=x.useContext(EV),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),v=n(),[y,b]=Db(_),[S]=Xl(v,`col`),C={},w={};Cw.forEach(t=>{let n={},i=e[t];Yd(i)?n.span=i:Zd(i)&&(n=i||{}),delete g[t],w={...w,[`${_}-${t}-${n.span}`]:Jd(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},n.flex&&(w[`${_}-${t}-flex`]=!0,C[S(`${t}-flex`)]=DV(n.flex))});let T=Z(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,w,y,b),E={};return i?.[0]&&(E.paddingInline=Yd(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(E.flex=DV(m),a===!1&&!E.minWidth&&(E.minWidth=0)),x.createElement(`div`,{...g,style:{...E,...h,...C},className:T,ref:t},p)});function kV(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(Zd(e))for(let r=0;r<Sw.length;r++){let a=Sw[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var AV=(e,t)=>{let[n,r]=x.useState(()=>Xd(e)?e:``),i=()=>{if(Xd(e)&&r(e),Zd(e))for(let n=0;n<Sw.length;n++){let i=Sw[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return x.useEffect(()=>{i()},[JSON.stringify(e),t]),n},jV=x.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=x.useContext(da),p=Dw(!0,null),m=AV(i,p),h=AV(r,p),g=d(`row`,n),[_,v]=Tb(g),y=kV(c,p),b=Z(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,v),S={};y?.[0]&&(S.marginInline=Yd(y[0])?`${y[0]/-2}px`:`calc(${y[0]} / -2)`);let[C,w]=y;S.rowGap=w;let T=x.useMemo(()=>({gutter:[C,w],wrap:l}),[C,w,l]);return x.createElement(EV.Provider,{value:T},x.createElement(`div`,{...u,className:b,style:{...S,...o},ref:t},s))}),MV=OV,NV=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Xl(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-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},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},PV=ql([`Space`,`Addon`],e=>[NV(e),p_(e,{focus:!1})]),FV=x.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=x.useContext(da),f=u(`space-addon`,a),[p,m]=PV(f),{compactItemClassnames:h,compactSize:g}=Oh(f,d),_=IC(f,c),v=Z(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return x.createElement(`div`,{ref:t,className:v,style:i,...l},r)});function IV(e){return!!(e.addonBefore||e.addonAfter)}function LV(e){return!!(e.prefix||e.suffix||e.allowClear)}function RV(e,t,n){let r=t.cloneNode(!0),i=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=(...e)=>{t.setSelectionRange(...e)},i}function zV(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=RV(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=RV(t,e,r),n(i);return}n(i)}function BV(){return BV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BV.apply(this,arguments)}var VV=x.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:v,classes:y,classNames:b,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,x.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=LV(e),P=(0,x.cloneElement)(E,{value:g,className:Z(E.props?.className,!N&&b?.variant)||null}),F=(0,x.useRef)(null);if(x.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=x.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:Z(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=Z(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},y?.affixWrapper,b?.affixWrapper,b?.variant),r=(o||h)&&x.createElement(`span`,{className:Z(`${i}-suffix`,b?.suffix),style:C?.suffix},e,o);P=x.createElement(D,BV({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&x.createElement(`span`,{className:Z(`${i}-prefix`,b?.prefix),style:C?.prefix},a),P,r)}if(IV(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=Z(`${i}-wrapper`,e,y?.wrapper,b?.wrapper),a=Z(n,{[`${n}-disabled`]:d},y?.group,b?.groupWrapper);P=x.createElement(O,{className:a,ref:F},x.createElement(k,{className:r},s&&x.createElement(A,{className:t},s),P,c&&x.createElement(A,{className:t},c)))}return x.cloneElement(P,{className:Z(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:v})});function HV(e,t){return x.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function UV(){return UV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UV.apply(this,arguments)}var WV=(0,x.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:v,classNames:y,styles:b,onCompositionStart:S,onCompositionEnd:C,...w}=e,[T,E]=(0,x.useState)(!1),D=(0,x.useRef)(!1),O=(0,x.useRef)(!1),k=(0,x.useRef)(null),A=(0,x.useRef)(null),j=e=>{k.current&&kr(k.current,e)},[M,N]=Vn(e.defaultValue,e.value),P=M==null?``:String(M),[F,I]=(0,x.useState)(null),L=HV(g,h),R=L.max||p,z=L.strategy(P),B=!!R&&z>R;(0,x.useImperativeHandle)(t,()=>({focus:j,blur:()=>{k.current?.blur()},setSelectionRange:(e,t,n)=>{k.current?.setSelectionRange(e,t,n)},select:()=>{k.current?.select()},input:k.current,nativeElement:A.current?.nativeElement||k.current})),(0,x.useEffect)(()=>{O.current&&=!1,E(e=>e&&u?!1:e)},[u]);let V=(e,t,n)=>{let i=t;if(!D.current&&L.exceedFormatter&&L.max&&L.strategy(t)>L.max)i=L.exceedFormatter(t,{max:L.max}),t!==i&&I([k.current?.selectionStart||0,k.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;N(i),k.current&&zV(k.current,e,r,i)};(0,x.useEffect)(()=>{F&&k.current?.setSelectionRange(...F)},[F]);let H=e=>{V(e,e.target.value,{source:`change`})},U=e=>{D.current=!1,V(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},W=e=>{o&&e.key===`Enter`&&!O.current&&!e.nativeEvent.isComposing&&(O.current=!0,o(e)),s?.(e)},G=e=>{e.key===`Enter`&&(O.current=!1),c?.(e)},K=e=>{E(!0),i?.(e)},ee=e=>{O.current&&=!1,E(!1),a?.(e)},te=e=>{N(``),j(),k.current&&zV(k.current,e,r)},q=B&&`${l}-out-of-range`;return x.createElement(VV,UV({},w,{prefixCls:l,className:Z(f,q),handleReset:te,value:P,focused:T,triggerFocus:j,suffix:(()=>{let e=Number(R)>0;if(m||L.show){let t=L.showFormatter?L.showFormatter({value:P,count:z,maxLength:R}):`${z}${e?` / ${R}`:``}`;return x.createElement(x.Fragment,null,L.show&&x.createElement(`span`,{className:Z(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},y?.count),style:{...b?.count}},t),m)}return null})(),disabled:u,classes:v,classNames:y,styles:b,ref:A}),(()=>{let t=fi(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return x.createElement(`input`,UV({autoComplete:n},t,{onChange:H,onFocus:K,onBlur:ee,onKeyDown:W,onKeyUp:G,className:Z(l,{[`${l}-disabled`]:u},y?.input),style:b?.input,ref:k,size:d,type:_,onCompositionStart:e=>{D.current=!0,S?.(e)},onCompositionEnd:U}))})())}),GV=e=>{let t;return Zd(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:x.createElement(Cu,null)}),t};function KV(e,t){let n=(0,x.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,x.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function qV(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var JV=(0,x.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:v,variant:y,...b}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=ma(`input`),A=S(`input`,n),j=(0,x.useRef)(null),M=np(A),[N,P]=_R(A,g);vR(A,M);let{compactSize:F,compactItemClassnames:I}=Oh(A,C),L=Th(e=>a??F??e),R=x.useContext(lm),z=o??R,B={...e,size:L,disabled:z},[V,H]=vf([O,v],[k,h],{props:B}),{status:U,hasFeedback:W,feedbackIcon:G}=(0,x.useContext)(ky),K=LC(U,i);(0,x.useRef)(qV(e)||!!W);let ee=KV(j,!0),te=e=>{ee(),s?.(e)},q=e=>{ee(),c?.(e)},J=e=>{ee(),_?.(e)},Y=(W||l)&&x.createElement(x.Fragment,null,l,W&&G),ne=GV(u??w),[X,re]=KC(`input`,y,r);return x.createElement(WV,{ref:ir(t,j),prefixCls:A,autoComplete:T,...b,disabled:z,onBlur:te,onFocus:q,style:{...H.root,...D,...m},styles:H,suffix:Y,allowClear:ne,className:Z(p,g,P,M,I,E,V.root),onChange:J,addonBefore:f&&x.createElement(My,{form:!0,space:!0},f),addonAfter:d&&x.createElement(My,{form:!0,space:!0},d),classNames:{...V,input:Z({[`${A}-sm`]:L===`small`,[`${A}-lg`]:L===`large`,[`${A}-rtl`]:C===`rtl`},V.input,N),variant:Z({[`${A}-${X}`]:re},IC(A,K)),affixWrapper:Z({[`${A}-affix-wrapper-sm`]:L===`small`,[`${A}-affix-wrapper-lg`]:L===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:Z({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:Z({[`${A}-group-wrapper-sm`]:L===`small`,[`${A}-group-wrapper-lg`]:L===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${X}`]:re},IC(`${A}-group-wrapper`,K,W),N)}})});function YV(e,t,n){return(e-t)/(n-t)}function XV(e,t,n,r){let i=YV(t,n,r),a={};switch(e){case`rtl`:a.right=`${i*100}%`,a.transform=`translateX(50%)`;break;case`btt`:a.bottom=`${i*100}%`,a.transform=`translateY(50%)`;break;case`ttb`:a.top=`${i*100}%`,a.transform=`translateY(-50%)`;break;default:a.left=`${i*100}%`,a.transform=`translateX(-50%)`;break}return a}function ZV(e,t){return Array.isArray(e)?e[t]:e}var QV=x.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),$V=x.createContext({});function eH(){return eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eH.apply(this,arguments)}var tH=x.forwardRef((e,t)=>{let{prefixCls:n,value:r,valueIndex:i,onStartMove:a,onDelete:o,style:s,render:c,dragging:l,draggingDelete:u,onOffsetChange:d,onChangeComplete:f,onFocus:p,onMouseEnter:m,...h}=e,{min:g,max:_,direction:v,disabled:y,keyboard:b,range:S,tabIndex:C,ariaLabelForHandle:w,ariaLabelledByForHandle:T,ariaRequired:E,ariaValueTextFormatterForHandle:D,styles:O,classNames:k}=x.useContext(QV),A=`${n}-handle`,j=e=>{y||a(e,i)},M=e=>{p?.(e,i)},N=e=>{m(e,i)},P=e=>{if(!y&&b){let t=null;switch(e.which||e.keyCode){case Jr.LEFT:t=v===`ltr`||v===`btt`?-1:1;break;case Jr.RIGHT:t=v===`ltr`||v===`btt`?1:-1;break;case Jr.UP:t=v===`ttb`?-1:1;break;case Jr.DOWN:t=v===`ttb`?1:-1;break;case Jr.HOME:t=`min`;break;case Jr.END:t=`max`;break;case Jr.PAGE_UP:t=2;break;case Jr.PAGE_DOWN:t=-2;break;case Jr.BACKSPACE:case Jr.DELETE:o?.(i);break}t!==null&&(e.preventDefault(),d(t,i))}},F=e=>{switch(e.which||e.keyCode){case Jr.LEFT:case Jr.RIGHT:case Jr.UP:case Jr.DOWN:case Jr.HOME:case Jr.END:case Jr.PAGE_UP:case Jr.PAGE_DOWN:f?.();break}},I=XV(v,r,g,_),L={};i!==null&&(L={tabIndex:y?null:ZV(C,i),role:`slider`,"aria-valuemin":g,"aria-valuemax":_,"aria-valuenow":r,"aria-disabled":y,"aria-label":ZV(w,i),"aria-labelledby":ZV(T,i),"aria-required":ZV(E,i),"aria-valuetext":ZV(D,i)?.(r),"aria-orientation":v===`ltr`||v===`rtl`?`horizontal`:`vertical`,onMouseDown:j,onTouchStart:j,onFocus:M,onMouseEnter:N,onKeyDown:P,onKeyUp:F});let R=x.createElement(`div`,eH({ref:t,className:Z(A,{[`${A}-${i+1}`]:i!==null&&S,[`${A}-dragging`]:l,[`${A}-dragging-delete`]:u},k.handle),style:{...I,...s,...O.handle}},L,h));return c&&(R=c(R,{index:i,prefixCls:n,value:r,dragging:l,draggingDelete:u})),R});function nH(){return nH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nH.apply(this,arguments)}var rH=x.forwardRef((e,t)=>{let{prefixCls:n,style:r,onStartMove:i,onOffsetChange:a,values:o,handleRender:s,activeHandleRender:c,draggingIndex:l,draggingDelete:u,onFocus:d,...f}=e,p=x.useRef({}),[m,h]=x.useState(!1),[g,_]=x.useState(-1),v=e=>{_(e),h(!0)},y=(e,t)=>{v(t),d?.(e)},b=(e,t)=>{v(t)};x.useImperativeHandle(t,()=>({focus:e=>{p.current[e]?.focus()},hideHelp:()=>{(0,Ii.flushSync)(()=>{h(!1)})}}));let S={prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:y,onMouseEnter:b,...f};return x.createElement(x.Fragment,null,o.map((e,t)=>{let n=l===t;return x.createElement(tH,nH({ref:e=>{e?p.current[t]=e:delete p.current[t]},dragging:n,draggingDelete:n&&u,style:ZV(r,t),key:t,value:e,valueIndex:t},S))}),c&&m&&x.createElement(tH,nH({key:`a11y`},S,{value:o[g],valueIndex:null,dragging:l!==-1,draggingDelete:u,render:c,style:{pointerEvents:`none`},tabIndex:null,"aria-hidden":!0})))}),iH=e=>{let{prefixCls:t,style:n,children:r,value:i,onClick:a}=e,{min:o,max:s,direction:c,includedStart:l,includedEnd:u,included:d}=x.useContext(QV),f=`${t}-text`,p=XV(c,i,o,s);return x.createElement(`span`,{className:Z(f,{[`${f}-active`]:d&&l<=i&&i<=u}),style:{...p,...n},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(i)}},r)},aH=e=>{let{prefixCls:t,marks:n,onClick:r}=e,i=`${t}-mark`;return n.length?x.createElement(`div`,{className:i},n.map(({value:e,style:t,label:n})=>x.createElement(iH,{key:e,prefixCls:i,style:t,value:e,onClick:r},n))):null},oH=e=>{let{prefixCls:t,value:n,style:r,activeStyle:i}=e,{min:a,max:o,direction:s,included:c,includedStart:l,includedEnd:u}=x.useContext(QV),d=`${t}-dot`,f=c&&l<=n&&n<=u,p={...XV(s,n,a,o),...typeof r==`function`?r(n):r};return f&&(p={...p,...typeof i==`function`?i(n):i}),x.createElement(`span`,{className:Z(d,{[`${d}-active`]:f}),style:p})},sH=e=>{let{prefixCls:t,marks:n,dots:r,style:i,activeStyle:a}=e,{min:o,max:s,step:c}=x.useContext(QV),l=x.useMemo(()=>{let e=new Set;if(n.forEach(t=>{e.add(t.value)}),r&&c!==null){let t=o;for(;t<=s;)e.add(t),t+=c}return Array.from(e)},[o,s,c,r,n]);return x.createElement(`div`,{className:`${t}-step`},l.map(e=>x.createElement(oH,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})))},cH=e=>{let{prefixCls:t,style:n,start:r,end:i,index:a,onStartMove:o,replaceCls:s}=e,{direction:c,min:l,max:u,disabled:d,range:f,classNames:p}=x.useContext(QV),m=`${t}-track`,h=YV(r,l,u),g=YV(i,l,u),_=e=>{!d&&o&&o(e,-1)},v={};switch(c){case`rtl`:v.right=`${h*100}%`,v.width=`${g*100-h*100}%`;break;case`btt`:v.bottom=`${h*100}%`,v.height=`${g*100-h*100}%`;break;case`ttb`:v.top=`${h*100}%`,v.height=`${g*100-h*100}%`;break;default:v.left=`${h*100}%`,v.width=`${g*100-h*100}%`}let y=s||Z(m,{[`${m}-${a+1}`]:a!==null&&f,[`${t}-track-draggable`]:o},p.track);return x.createElement(`div`,{className:y,style:{...v,...n},onMouseDown:_,onTouchStart:_})},lH=e=>{let{prefixCls:t,style:n,values:r,startPoint:i,onStartMove:a}=e,{included:o,range:s,min:c,styles:l,classNames:u}=x.useContext(QV),d=x.useMemo(()=>{if(!s){if(r.length===0)return[];let e=i??c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}let e=[];for(let t=0;t<r.length-1;t+=1)e.push({start:r[t],end:r[t+1]});return e},[r,s,i,c]);if(!o)return null;let f=d?.length&&(u.tracks||l.tracks)?x.createElement(cH,{index:null,prefixCls:t,start:d[0].start,end:d[d.length-1].end,replaceCls:Z(u.tracks,`${t}-tracks`),style:l.tracks}):null;return x.createElement(x.Fragment,null,f,d.map(({start:e,end:r},i)=>x.createElement(cH,{index:i,prefixCls:t,style:{...ZV(n,i),...l.track},start:e,end:r,key:i,onStartMove:a})))},uH=130;function dH(e){let t=`targetTouches`in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function fH(e,t,n,r,i,a,o,s,c,l,u){let[d,f]=x.useState(null),[p,m]=x.useState(-1),[h,g]=x.useState(!1),[_,v]=x.useState(n),[y,b]=x.useState(n),S=x.useRef(null),C=x.useRef(null),w=x.useRef(null),{onDragStart:T,onDragChange:E}=x.useContext($V);Rn(()=>{p===-1&&v(n)},[n,p]),x.useEffect(()=>()=>{document.removeEventListener(`mousemove`,S.current),document.removeEventListener(`mouseup`,C.current),w.current&&(w.current.removeEventListener(`touchmove`,S.current),w.current.removeEventListener(`touchend`,C.current))},[]);let D=(e,t,n)=>{t!==void 0&&f(t),v(e);let r=e;n&&(r=e.filter((e,t)=>t!==p)),o(r),E&&E({rawValues:e,deleteIndex:n?p:-1,draggingIndex:p,draggingValue:t})},O=Fn((e,t,n)=>{if(e===-1){let e=y[0],n=y[y.length-1],o=r-e,s=i-n,c=t*(i-r);c=Math.max(c,o),c=Math.min(c,s),c=a(e+c)-e,D(y.map(e=>e+c))}else{let a=(i-r)*t,o=[..._];o[e]=y[e];let s=c(o,a,e,`dist`);D(s.values,s.value,n)}});return[p,d,h,x.useMemo(()=>{let e=[...n].sort((e,t)=>e-t),t=[..._].sort((e,t)=>e-t),r={};t.forEach(e=>{r[e]=(r[e]||0)+1}),e.forEach(e=>{r[e]=(r[e]||0)-1});let i=+!!l;return Object.values(r).reduce((e,t)=>e+Math.abs(t),0)<=i?_:n},[n,_,l]),(r,i,a)=>{r.stopPropagation();let o=a||n,c=o[i];m(i),f(c),b(o),v(o),g(!1);let{pageX:d,pageY:p}=dH(r),h=!1;T&&T({rawValues:o,draggingIndex:i,draggingValue:c});let y=n=>{n.preventDefault();let{pageX:r,pageY:a}=dH(n),o=r-d,s=a-p,{width:c,height:f}=e.current.getBoundingClientRect(),m,v;switch(t){case`btt`:m=-s/f,v=o;break;case`ttb`:m=s/f,v=o;break;case`rtl`:m=-o/c,v=s;break;default:m=o/c,v=s}h=l?Math.abs(v)>uH&&u<_.length:!1,g(h),O(i,m,h)},x=e=>{e.preventDefault(),document.removeEventListener(`mouseup`,x),document.removeEventListener(`mousemove`,y),w.current&&(w.current.removeEventListener(`touchmove`,S.current),w.current.removeEventListener(`touchend`,C.current)),S.current=null,C.current=null,w.current=null,s(h),m(-1),g(!1)};document.addEventListener(`mouseup`,x),document.addEventListener(`mousemove`,y),r.currentTarget.addEventListener(`touchend`,x),r.currentTarget.addEventListener(`touchmove`,y),S.current=y,C.current=x,w.current=r.currentTarget}]}function pH(e,t,n,r,i,a){let o=x.useCallback(n=>Math.max(e,Math.min(t,n)),[e,t]),s=x.useCallback(r=>{if(n!==null){let i=e+Math.round((o(r)-e)/n)*n,a=e=>(String(e).split(`.`)[1]||``).length,s=Math.max(a(n),a(t),a(e)),c=Number(i.toFixed(s));return e<=c&&c<=t?c:null}return null},[n,e,t,o]),c=x.useCallback(i=>{let a=o(i),c=r.map(e=>e.value);n!==null&&c.push(s(i)),c.push(e,t);let l=c[0],u=t-e;return c.forEach(e=>{let t=Math.abs(a-e);t<=u&&(l=e,u=t)}),l},[e,t,r,n,o,s]),l=(i,a,o,c=`unit`)=>{if(typeof a==`number`){let u,d=i[o],f=d+a,p=[];r.forEach(e=>{p.push(e.value)}),p.push(e,t),p.push(s(d));let m=a>0?1:-1;c===`unit`?p.push(s(d+m*n)):p.push(s(f)),p=p.filter(e=>e!==null).filter(e=>a<0?e<=d:e>=d),c===`unit`&&(p=p.filter(e=>e!==d));let h=c===`unit`?d:f;u=p[0];let g=Math.abs(u-h);if(p.forEach(e=>{let t=Math.abs(e-h);t<g&&(u=e,g=t)}),u===void 0)return a<0?e:t;if(c===`dist`)return u;if(Math.abs(a)>1){let e=[...i];return e[o]=u,l(e,a-m,o,c)}return u}else if(a===`min`)return e;else if(a===`max`)return t},u=(e,t,n,r=`unit`)=>{let i=e[n],a=l(e,t,n,r);return{value:a,changed:a!==i}},d=e=>a===null&&e===0||typeof a==`number`&&e<a;return[c,(e,t,n,r=`unit`)=>{let o=e.map(c),s=o[n];if(o[n]=l(o,t,n,r),i===!1){let e=a||0;n>0&&o[n-1]!==s&&(o[n]=Math.max(o[n],o[n-1]+e)),n<o.length-1&&o[n+1]!==s&&(o[n]=Math.min(o[n],o[n+1]-e))}else if(typeof a==`number`||a===null){for(let e=n+1;e<o.length;e+=1){let t=!0;for(;d(o[e]-o[e-1])&&t;)({value:o[e],changed:t}=u(o,1,e))}for(let e=n;e>0;--e){let t=!0;for(;d(o[e]-o[e-1])&&t;)({value:o[e-1],changed:t}=u(o,-1,e-1))}for(let e=o.length-1;e>0;--e){let t=!0;for(;d(o[e]-o[e-1])&&t;)({value:o[e-1],changed:t}=u(o,-1,e-1))}for(let e=0;e<o.length-1;e+=1){let t=!0;for(;d(o[e+1]-o[e])&&t;)({value:o[e+1],changed:t}=u(o,1,e+1))}}return{value:o[n],values:o}}]}function mH(e){return(0,x.useMemo)(()=>{if(e===!0||!e)return[!!e,!1,!1,0];let{editable:t,draggableTrack:n,minCount:r,maxCount:i}=e;return[!0,t,!t&&n,r||0,i]},[e])}var hH=x.forwardRef((e,t)=>{let{prefixCls:n=`rc-slider`,className:r,style:i,classNames:a,styles:o,id:s,disabled:c=!1,keyboard:l=!0,autoFocus:u,onFocus:d,onBlur:f,min:p=0,max:m=100,step:h=1,value:g,defaultValue:_,range:v,count:y,onChange:b,onBeforeChange:S,onAfterChange:C,onChangeComplete:w,allowCross:T=!0,pushable:E=!1,reverse:D,vertical:O,included:k=!0,startPoint:A,trackStyle:j,handleStyle:M,railStyle:N,dotStyle:P,activeDotStyle:F,marks:I,dots:L,handleRender:R,activeHandleRender:z,track:B,tabIndex:V=0,ariaLabelForHandle:H,ariaLabelledByForHandle:U,ariaRequired:W,ariaValueTextFormatterForHandle:G}=e,K=x.useRef(null),ee=x.useRef(null),te=x.useMemo(()=>O?D?`ttb`:`btt`:D?`rtl`:`ltr`,[D,O]),[q,J,Y,ne,X]=mH(v),re=x.useMemo(()=>isFinite(p)?p:0,[p]),ie=x.useMemo(()=>isFinite(m)?m:100,[m]),ae=x.useMemo(()=>h!==null&&h<=0?1:h,[h]),oe=x.useMemo(()=>typeof E==`boolean`?E?ae:!1:E>=0?E:!1,[E,ae]),se=x.useMemo(()=>Object.keys(I||{}).map(e=>{let t=I[e],n={value:Number(e)};return t&&typeof t==`object`&&!x.isValidElement(t)&&(`label`in t||`style`in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(({label:e})=>e||typeof e==`number`).sort((e,t)=>e.value-t.value),[I]),[ce,le]=pH(re,ie,ae,se,T,oe),[ue,de]=Vn(_,g),fe=x.useMemo(()=>{let e=ue==null?[]:Array.isArray(ue)?ue:[ue],[t=re]=e,n=ue===null?[]:[t];if(q){if(n=[...e],y||ue===void 0){let e=y>=0?y+1:2;for(n=n.slice(0,e);n.length<e;)n.push(n[n.length-1]??re)}n.sort((e,t)=>e-t)}return n.forEach((e,t)=>{n[t]=ce(e)}),n},[ue,q,re,y,ce]),pe=e=>q?e:e[0],me=Fn(e=>{let t=[...e].sort((e,t)=>e-t);b&&!ci(t,fe,!0)&&b(pe(t)),de(t)}),he=Fn(e=>{e&&K.current.hideHelp();let t=pe(fe);C?.(t),oi(!C,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),w?.(t)}),ge=e=>{if(c||!J||fe.length<=ne)return;let t=[...fe];t.splice(e,1),S?.(pe(t)),me(t);let n=Math.max(0,e-1);K.current.hideHelp(),K.current.focus(n)},[_e,ve,ye,be,xe]=fH(ee,te,fe,re,ie,ce,me,he,le,J,ne),Se=(e,t)=>{if(!c){let n=[...fe],r=0,i=0,a=ie-re;fe.forEach((t,n)=>{let o=Math.abs(e-t);o<=a&&(a=o,r=n),t<e&&(i=n)});let o=r;J&&a!==0&&(!X||fe.length<X)?(n.splice(i+1,0,e),o=i+1):n[r]=e,q&&!fe.length&&y===void 0&&n.push(e);let s=pe(n);S?.(s),me(n),t?(document.activeElement?.blur?.(),K.current.focus(o),xe(t,o,n)):(C?.(s),oi(!C,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),w?.(s))}},Ce=e=>{e.preventDefault();let{width:t,height:n,left:r,top:i,bottom:a,right:o}=ee.current.getBoundingClientRect(),{clientX:s,clientY:c}=e,l;switch(te){case`btt`:l=(a-c)/n;break;case`ttb`:l=(c-i)/n;break;case`rtl`:l=(o-s)/t;break;default:l=(s-r)/t}Se(ce(re+l*(ie-re)),e)},[we,Te]=x.useState(null),Ee=(e,t)=>{if(!c){let n=le(fe,e,t);S?.(pe(fe)),me(n.values),Te(n.value)}};x.useEffect(()=>{if(we!==null){let e=fe.indexOf(we);e>=0&&K.current.focus(e)}Te(null)},[we]);let De=x.useMemo(()=>Y&&ae===null?!1:Y,[Y,ae]),Oe=Fn((e,t)=>{xe(e,t),S?.(pe(fe))}),ke=_e!==-1;x.useEffect(()=>{if(!ke){let e=fe.lastIndexOf(ve);K.current.focus(e)}},[ke]);let Ae=x.useMemo(()=>[...be].sort((e,t)=>e-t),[be]),[je,Me]=x.useMemo(()=>q?[Ae[0],Ae[Ae.length-1]]:[re,Ae[0]],[Ae,q,re]);x.useImperativeHandle(t,()=>({focus:()=>{K.current.focus(0)},blur:()=>{let{activeElement:e}=document;ee.current?.contains(e)&&e?.blur()}})),x.useEffect(()=>{u&&K.current.focus(0)},[]);let Ne=x.useMemo(()=>({min:re,max:ie,direction:te,disabled:c,keyboard:l,step:ae,included:k,includedStart:je,includedEnd:Me,range:q,tabIndex:V,ariaLabelForHandle:H,ariaLabelledByForHandle:U,ariaRequired:W,ariaValueTextFormatterForHandle:G,styles:o||{},classNames:a||{}}),[re,ie,te,c,l,ae,k,je,Me,q,V,H,U,W,G,o,a]);return x.createElement(QV.Provider,{value:Ne},x.createElement(`div`,{ref:ee,className:Z(n,r,{[`${n}-disabled`]:c,[`${n}-vertical`]:O,[`${n}-horizontal`]:!O,[`${n}-with-marks`]:se.length}),style:i,onMouseDown:Ce,id:s},x.createElement(`div`,{className:Z(`${n}-rail`,a?.rail),style:{...N,...o?.rail}}),B!==!1&&x.createElement(lH,{prefixCls:n,style:j,values:fe,startPoint:A,onStartMove:De?Oe:void 0}),x.createElement(sH,{prefixCls:n,marks:se,dots:L,style:P,activeStyle:F}),x.createElement(rH,{ref:K,prefixCls:n,style:M,values:be,draggingIndex:_e,draggingDelete:ye,onStartMove:Oe,onOffsetChange:Ee,onFocus:d,onBlur:f,handleRender:R,activeHandleRender:z,onChangeComplete:he,onDelete:J?ge:void 0}),x.createElement(aH,{prefixCls:n,marks:se,onClick:Se})))}),gH=(0,x.createContext)({}),_H=x.forwardRef((e,t)=>{let{open:n,draggingDelete:r,value:i}=e,a=(0,x.useRef)(null),o=n&&!r,s=(0,x.useRef)(null);function c(){Ci.cancel(s.current),s.current=null}function l(){s.current=Ci(()=>{a.current?.forceAlign(),s.current=null})}return x.useEffect(()=>(o?l():c(),c),[o,e.title,i]),x.createElement(lT,{ref:ir(a,t),...e,open:o})}),vH=e=>{let{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:c,calc:l,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:h,motionDurationMid:g}=e;return{[t]:{...Rl(e),position:`relative`,height:r,margin:`${Q(o)} ${Q(a)}`,padding:0,cursor:`pointer`,touchAction:`none`,"&-vertical":{margin:`${Q(a)} ${Q(o)}`},[`${t}-rail`]:{position:`absolute`,backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:`absolute`,transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:`content-box`,backgroundClip:`content-box`,border:`solid rgba(0,0,0,0)`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Q(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:`absolute`,width:u,height:u,outline:`none`,userSelect:`none`,"&-dragging-delete":{opacity:0},"&::before":{content:`""`,position:`absolute`,insetInlineStart:l(m).mul(-1).equal(),insetBlockStart:l(m).mul(-1).equal(),width:l(u).add(l(m).mul(2)).equal(),height:l(u).add(l(m).mul(2)).equal(),backgroundColor:`transparent`},"&::after":{content:`""`,position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Q(m)} ${e.handleColor}`,outline:`0px solid transparent`,borderRadius:`50%`,cursor:`pointer`,transition:[`inset-inline-start`,`inset-block-start`,`width`,`height`,`box-shadow`,`outline`].map(e=>`${e} ${g}`).join(`, `)},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),insetBlockStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),width:l(d).add(l(h).mul(2)).equal(),height:l(d).add(l(h).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Q(h)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:`none`}},[`${t}-mark`]:{position:`absolute`,fontSize:e.fontSize},[`${t}-mark-text`]:{position:`absolute`,display:`inline-block`,color:e.colorTextDescription,textAlign:`center`,wordBreak:`keep-all`,cursor:`pointer`,userSelect:`none`,"&-active":{color:e.colorText}},[`${t}-step`]:{position:`absolute`,background:`transparent`,pointerEvents:`none`},[`${t}-dot`]:{position:`absolute`,width:i,height:i,backgroundColor:e.colorBgElevated,border:`${Q(m)} solid ${e.dotBorderColor}`,borderRadius:`50%`,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,pointerEvents:`auto`,"&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
||
${t}-dot
|
||
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:`none`,cursor:`not-allowed`},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:`not-allowed`,width:u,height:u,boxShadow:`0 0 0 ${Q(m)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`
|
||
${t}-mark-text,
|
||
${t}-dot
|
||
`]:{cursor:`not-allowed !important`}},[`&-tooltip ${n}-tooltip-container`]:{minWidth:`unset`}}}},yH=(e,t)=>{let{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,c=t?`paddingBlock`:`paddingInline`,l=t?`width`:`height`,u=t?`height`:`width`,d=t?`insetBlockStart`:`insetInlineStart`,f=t?`top`:`insetInlineStart`,p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),h=t?{borderWidth:`${Q(m)} 0`,transform:`translateY(${Q(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Q(m)}`,transform:`translateX(${Q(e.calc(m).mul(-1).equal())})`};return{[c]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[l]:`100%`,[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:{...h},[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:o).equal(),[l]:`100%`},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[l]:`100%`,[u]:r},[`${n}-dot`]:{position:`absolute`,[d]:s(r).sub(a).div(2).equal()}}},bH=e=>{let{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:{...yH(e,!0),[`&${t}-with-marks`]:{marginBottom:n}}}},xH=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:{...yH(e,!1),height:`100%`}}},SH=ql(`Slider`,e=>{let t=oc(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[vH(t),bH(t),xH(t)]},e=>{let t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,o=new Oc(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:o,handleColorDisabled:new Oc(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function CH(){let[e,t]=x.useState(!1),n=x.useRef(null),r=()=>{Ci.cancel(n.current)};return x.useEffect(()=>r,[]),[e,e=>{r(),e?t(e):n.current=Ci(()=>{t(e)})}]}function wH(e){return e||e===null?e:e=>Yd(e)?e.toString():``}var TH=x.forwardRef((e,t)=>{let{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltip:c={},onChangeComplete:l,classNames:u,styles:d,vertical:f,orientation:p,...m}=e,[,h]=xf(p,f),{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:S,getPopupContainer:C}=ma(`slider`),w=x.useContext(lm),T=s??w,E={...e,disabled:T,vertical:h},[D,O]=vf([b,u],[S,d],{props:E}),{handleRender:k,direction:A}=x.useContext(gH),j=(A||_)===`rtl`,[M,N]=CH(),[P,F]=CH(),I={...c},{open:L,placement:R,getPopupContainer:z,prefixCls:B,formatter:V}=I,H=L,U=(M||P)&&H!==!1,W=wH(V),[G,K]=CH(),ee=e=>{l?.(e),K(!1)},te=(e,t)=>e||(t?j?`left`:`right`:`top`),q=g(`slider`,n),[J,Y]=SH(q),ne=Z(i,v,D.root,a,{[`${q}-rtl`]:j,[`${q}-lock`]:G},J,Y);j&&!h&&(m.reverse=!m.reverse),x.useEffect(()=>{let e=()=>{Ci(()=>{F(!1)},1)};return document.addEventListener(`mouseup`,e),()=>{document.removeEventListener(`mouseup`,e)}},[]);let X=r&&!H,re=k||((e,t)=>{let{index:n}=t,r=e.props;function i(e,t,n){n&&m[e]?.(t),r[e]?.(t)}let a={...r,onMouseEnter:e=>{N(!0),i(`onMouseEnter`,e)},onMouseLeave:e=>{N(!1),i(`onMouseLeave`,e)},onMouseDown:e=>{F(!0),K(!0),i(`onMouseDown`,e)},onFocus:e=>{F(!0),m.onFocus?.(e),i(`onFocus`,e,!0)},onBlur:e=>{F(!1),m.onBlur?.(e),i(`onBlur`,e,!0)}},o=x.cloneElement(e,a),s=(!!H||U)&&W!==null;return X?o:x.createElement(_H,{...I,prefixCls:g(`tooltip`,B),title:W?W(t.value):``,value:t.value,open:s,placement:te(R,h),key:n,classNames:{root:`${q}-tooltip`},getPopupContainer:z||C},o)}),ie=X?(e,t)=>{let n=x.cloneElement(e,{style:{...e.props.style,visibility:`hidden`}});return x.createElement(_H,{...I,prefixCls:g(`tooltip`,B),title:W?W(t.value):``,open:W!==null&&U,placement:te(R,h),key:`tooltip`,classNames:{root:`${q}-tooltip`},getPopupContainer:z||C,draggingDelete:t.draggingDelete},n)}:void 0,ae={...O.root,...y,...o};return x.createElement(hH,{...m,classNames:D,styles:O,step:m.step,range:r,className:ne,style:ae,disabled:T,vertical:h,ref:t,prefixCls:q,handleRender:re,activeHandleRender:ie,onChangeComplete:ee})}),EH=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z`}}]},name:`swap-right`,theme:`outlined`}}))());function DH(){return DH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DH.apply(this,arguments)}var OH=x.forwardRef((e,t)=>x.createElement(_u,DH({},e,{ref:t,icon:EH.default}))),kH=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=ma(e),[c,l]=vf([o,t],[s,n],{props:a},{popup:{_default:`root`}});return x.useMemo(()=>[{...c,popup:{...c.popup,root:Z(c.popup?.root,r)}},{...l,popup:{...l.popup,root:{...l.popup?.root,...i}}}],[c,l,r,i])};function AH(e,t,n){return n===void 0?t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder:n}function jH(e,t,n){return n===void 0?t===`year`&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder:n}function MH(e,t){let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=gw({...e,prefixCls:t,componentName:`DatePicker`});return[x.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]}var[NH,PH]=[`week`,`WeekPicker`],[FH,IH]=[`month`,`MonthPicker`],[LH,RH]=[`year`,`YearPicker`],[zH,BH]=[`quarter`,`QuarterPicker`],[VH,HH]=[`time`,`TimePicker`],UH=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z`}}]},name:`calendar`,theme:`outlined`}}))());function WH(){return WH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WH.apply(this,arguments)}var GH=x.forwardRef((e,t)=>x.createElement(_u,WH({},e,{ref:t,icon:UH.default}))),KH=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z`}}]},name:`clock-circle`,theme:`outlined`}}))());function qH(){return qH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qH.apply(this,arguments)}var JH=x.forwardRef((e,t)=>x.createElement(_u,qH({},e,{ref:t,icon:KH.default}))),YH=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?x.createElement(x.Fragment,null,e===VH?x.createElement(JH,null):x.createElement(GH,null),t&&n):r,XH=e=>x.createElement(x_,{size:`small`,type:`primary`,...e});function ZH(e){return(0,x.useMemo)(()=>({button:XH,...e}),[e])}var QH=e=>(0,x.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:o,style:s,classNames:c,styles:l,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:m,status:h,variant:g,picker:_,dropdownClassName:v,popupClassName:y,popupStyle:b,rootClassName:S,suffixIcon:C,separator:w,...T}=t,[E,D]=kH(_===VH?`timePicker`:`datePicker`,c,l,y||v,b),O=x.useRef(null),{getPrefixCls:k,direction:A,getPopupContainer:j,rangePicker:M}=(0,x.useContext)(da),N=k(`picker`,r),{compactSize:P,compactItemClassnames:F}=Oh(N,A),I=k(),L=w??M?.separator,[R,z]=KC(`rangePicker`,g,p),B=np(N),[V,H]=NR(N,B),U=Z(V,H,B,S),[W]=MH(t,N),G=ZH(a),K=Th(e=>d??P??e),ee=x.useContext(lm),te=f??ee,{hasFeedback:q,status:J,feedbackIcon:Y}=(0,x.useContext)(ky),ne=YH({picker:_,hasFeedback:q,feedbackIcon:Y,suffixIcon:C});(0,x.useImperativeHandle)(n,()=>O.current);let[X]=Wd(`Calendar`,Pd),re=Mi(X,t.locale||{}),[ie]=Mf(`DatePicker`,D?.popup?.root?.zIndex);return x.createElement(My,{space:!0},x.createElement(LI,{separator:x.createElement(`span`,{"aria-label":`to`,className:`${N}-separator`},L??x.createElement(OH,null)),disabled:te,ref:O,placement:u,placeholder:jH(re,_,m),suffixIcon:ne,prevIcon:x.createElement(`span`,{className:`${N}-prev-icon`}),nextIcon:x.createElement(`span`,{className:`${N}-next-icon`}),superPrevIcon:x.createElement(`span`,{className:`${N}-super-prev-icon`}),superNextIcon:x.createElement(`span`,{className:`${N}-super-next-icon`}),transitionName:`${I}-slide-up`,picker:_,...T,locale:re.lang,getPopupContainer:i||j,generateConfig:e,components:G,direction:A,prefixCls:N,rootClassName:U,className:Z({[`${N}-large`]:K===`large`,[`${N}-small`]:K===`small`,[`${N}-${R}`]:z},IC(N,LC(J,h),q),F,o,M?.className),style:{...M?.style,...s},classNames:E,styles:{...D,popup:{...D.popup,root:{...D.popup.root,zIndex:ie}}},allowClear:W}))}),$H=e=>{let t=(t,n)=>{let r=n===HH?`timePicker`:`datePicker`;return(0,x.forwardRef)((i,a)=>{let{prefixCls:o,getPopupContainer:s,components:c,style:l,className:u,size:d,bordered:f,placement:p,placeholder:m,disabled:h,status:g,variant:_,onCalendarChange:v,classNames:y,styles:b,dropdownClassName:S,popupClassName:C,popupStyle:w,rootClassName:T,suffixIcon:E,...D}=i,{suffixIcon:O}=ma(n===HH?`timePicker`:`datePicker`),{getPrefixCls:k,direction:A,getPopupContainer:j,[r]:M}=(0,x.useContext)(da),N=k(`picker`,o),{compactSize:P,compactItemClassnames:F}=Oh(N,A),I=Th(e=>d??P??e),L=x.useContext(lm),R=h??L,z={...i,size:I,disabled:R,status:g,variant:_},[B,V]=kH(r,y,b,C||S,w,z),H=x.useRef(null),[U,W]=KC(`datePicker`,_,f),G=np(N),[K,ee]=NR(N,G),te=Z(K,ee,G,T);(0,x.useImperativeHandle)(a,()=>H.current);let q={showToday:!0},J=t||i.picker,Y=k(),{onSelect:ne,multiple:X}=D,re=ne&&t===`time`&&!X,ie=(e,t,n)=>{v?.(e,t,n),re&&ne(e)},[ae,oe]=MH(i,N),se=ZH(c),{hasFeedback:ce,status:le,feedbackIcon:ue}=(0,x.useContext)(ky),de=YH({picker:J,hasFeedback:ce,feedbackIcon:ue,suffixIcon:E===void 0?O:E}),[fe]=Wd(`DatePicker`,Pd),pe=Mi(fe,i.locale||{}),[me]=Mf(`DatePicker`,V?.popup?.root?.zIndex);return x.createElement(My,{space:!0},x.createElement(xL,{ref:H,placeholder:AH(pe,J,m),suffixIcon:de,placement:p,prevIcon:x.createElement(`span`,{className:`${N}-prev-icon`}),nextIcon:x.createElement(`span`,{className:`${N}-next-icon`}),superPrevIcon:x.createElement(`span`,{className:`${N}-super-prev-icon`}),superNextIcon:x.createElement(`span`,{className:`${N}-super-next-icon`}),transitionName:`${Y}-slide-up`,picker:t,onCalendarChange:ie,...q,...D,locale:pe.lang,getPopupContainer:s||j,generateConfig:e,components:se,direction:A,disabled:R,prefixCls:N,rootClassName:te,className:Z({[`${N}-large`]:I===`large`,[`${N}-small`]:I===`small`,[`${N}-${U}`]:W},IC(N,LC(le,g),ce),F,M?.className,u),style:{...M?.style,...l},classNames:B,styles:{...V,popup:{...V.popup,root:{...V.popup.root,zIndex:me}}},allowClear:ae,removeIcon:oe}))})},n=t(),r=t(NH,PH),i=t(FH,IH),a=t(LH,RH),o=t(zH,BH);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(VH,HH),QuarterPicker:o}},eU=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=$H(e),s=QH(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},tU=eU(bee);tU._InternalPanelDoNotUseOrYouWillBeFired=Lx(tU,`popupAlign`,void 0,`picker`),tU._InternalRangePanelDoNotUseOrYouWillBeFired=Lx(tU.RangePicker,`popupAlign`,void 0,`picker`),tU.generatePicker=eU;var nU=x.createContext(null),rU=x.createContext({});function iU(){return iU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iU.apply(this,arguments)}var aU=e=>{let{prefixCls:t,className:n,containerRef:r,...i}=e,{panel:a}=x.useContext(rU),o=ar(a,r);return x.createElement(`div`,iU({className:Z(`${t}-section`,n),role:`dialog`,ref:o},_i(e,{aria:!0}),{"aria-modal":`true`},i))};function oU(e){let{prefixCls:t,direction:n,className:r,style:i,maxSize:a,containerRef:o,currentSize:s,onResize:c,onResizeEnd:l,onResizeStart:u}=e,[d,f]=x.useState(!1),[p,m]=x.useState(0),[h,g]=x.useState(0),_=n===`left`||n===`right`,v=Fn(e=>{e.preventDefault(),e.stopPropagation(),f(!0),m(_?e.clientX:e.clientY);let t;if(typeof s==`number`)t=s;else if(o?.current){let e=o.current.getBoundingClientRect();t=_?e.width:e.height}g(t),u?.(t)}),y=Fn(e=>{if(!d)return;let t=(_?e.clientX:e.clientY)-p;(n===`right`||n===`bottom`)&&(t=-t);let r=h+t;r<0&&(r=0),a&&r>a&&(r=a),c?.(r)}),b=x.useCallback(()=>{if(d&&(f(!1),o?.current)){let e=o.current.getBoundingClientRect(),t=_?e.width:e.height;l?.(t)}},[d,o,l,_]);return x.useEffect(()=>{if(d)return document.addEventListener(`mousemove`,y),document.addEventListener(`mouseup`,b),()=>{document.removeEventListener(`mousemove`,y),document.removeEventListener(`mouseup`,b)}},[d,y,b]),{dragElementProps:{className:Z(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:d,[`${t}-dragger-horizontal`]:_,[`${t}-dragger-vertical`]:!_},r),style:i,onMouseDown:v},isDragging:d}}function sU(e){if(typeof e==`string`){let t=Number(e.replace(/px$/i,``));if(parseFloat(e)===t&&oi(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function cU(e,t,n,r,i){let[a]=Vr(t&&(r??i!==!1),e);return x.useEffect(()=>{t&&n===!0&&e()?.focus({preventScroll:!0})},[t]),a}function lU(){return lU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lU.apply(this,arguments)}var uU=x.forwardRef((e,t)=>{let{prefixCls:n,open:r,placement:i,inline:a,push:o,forceRender:s,autoFocus:c,focusTrap:l,classNames:u,rootClassName:d,rootStyle:f,zIndex:p,className:m,id:h,style:g,motion:_,width:v,height:y,size:b,maxSize:S,children:C,mask:w,maskClosable:T,maskMotion:E,maskClassName:D,maskStyle:O,afterOpenChange:k,onClose:A,onMouseEnter:j,onMouseOver:M,onMouseLeave:N,onClick:P,onKeyDown:F,onKeyUp:I,styles:L,drawerRender:R,resizable:z,defaultSize:B}=e,V=x.useRef(null);x.useImperativeHandle(t,()=>V.current);let H=cU(()=>V.current,r,c,l,w),[U,W]=x.useState(!1),G=x.useContext(nU),K;K=typeof o==`boolean`?o?{}:{distance:0}:o||{};let ee=K?.distance??G?.pushDistance??180,te=x.useMemo(()=>({pushDistance:ee,push:()=>{W(!0)},pull:()=>{W(!1)}}),[ee]);x.useEffect(()=>{r?G?.push?.():G?.pull?.()},[r]),x.useEffect(()=>()=>{G?.pull?.()},[]);let q=x.createElement(Cd,lU({key:`mask`},E,{visible:w&&r}),({className:e,style:t},i)=>x.createElement(`div`,{className:Z(`${n}-mask`,e,u?.mask,D),style:{...t,...O,...L?.mask},onClick:T&&r?A:void 0,ref:i})),J=typeof _==`function`?_(i):_,[Y,ne]=x.useState(),X=i===`left`||i===`right`,re=x.useMemo(()=>sU(b??(X?v:y)??Y??B??(X?378:void 0)),[b,v,y,B,X,Y]),ie=x.useMemo(()=>{let e={};if(U&&ee)switch(i){case`top`:e.transform=`translateY(${ee}px)`;break;case`bottom`:e.transform=`translateY(${-ee}px)`;break;case`left`:e.transform=`translateX(${ee}px)`;break;default:e.transform=`translateX(${-ee}px)`;break}return X?e.width=sU(re):e.height=sU(re),e},[U,ee,i,X,re]),ae=x.useRef(null),oe=!!z,se=typeof z==`object`&&z||{},ce=Fn(e=>{ne(e),se.onResize?.(e)}),{dragElementProps:le,isDragging:ue}=oU({prefixCls:`${n}-resizable`,direction:i,className:u?.dragger,style:L?.dragger,maxSize:S,containerRef:ae,currentSize:re,onResize:ce,onResizeStart:se.onResizeStart,onResizeEnd:se.onResizeEnd}),de={onMouseEnter:j,onMouseOver:M,onMouseLeave:N,onClick:P,onKeyDown:F,onKeyUp:I,onFocus:e=>{H(e.target)}},fe=x.createElement(Cd,lU({key:`panel`},J,{visible:r,forceRender:s,onVisibleChanged:k,removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:t,style:r},i)=>{let a=x.createElement(aU,lU({id:h,containerRef:i,prefixCls:n,className:Z(m,u?.section),style:{...g,...L?.section}},_i(e,{aria:!0}),de),C);return x.createElement(`div`,lU({ref:ae,className:Z(`${n}-content-wrapper`,ue&&`${n}-content-wrapper-dragging`,u?.wrapper,!ue&&t),style:{...r,...ie,...L?.wrapper}},_i(e,{data:!0})),oe&&x.createElement(`div`,le),R?R(a):a)}),pe={...f};return p&&(pe.zIndex=p),x.createElement(nU.Provider,{value:te},x.createElement(`div`,{className:Z(n,`${n}-${i}`,d,{[`${n}-open`]:r,[`${n}-inline`]:a}),style:pe,tabIndex:-1,ref:V},q,fe))}),dU=e=>{let{open:t=!1,prefixCls:n=`rc-drawer`,placement:r=`right`,autoFocus:i=!0,keyboard:a=!0,width:o,height:s,size:c,maxSize:l,mask:u=!0,maskClosable:d=!0,getContainer:f,forceRender:p,afterOpenChange:m,destroyOnHidden:h,onMouseEnter:g,onMouseOver:_,onMouseLeave:v,onClick:y,onKeyDown:b,onKeyUp:S,onClose:C,resizable:w,defaultSize:T,focusTriggerAfterClose:E,panelRef:D}=e,[O,k]=x.useState(!1),[A,j]=x.useState(!1);Rn(()=>{j(!0)},[]);let M=A?t:!1,N=x.useRef(null),P=x.useRef(null);Rn(()=>{M&&(P.current=document.activeElement)},[M]);let F=e=>{k(e),m?.(e),!e&&E!==!1&&P.current&&!N.current?.contains(P.current)&&P.current?.focus({preventScroll:!0})},I=x.useMemo(()=>({panel:D}),[D]);if(!p&&!O&&!M&&h)return null;let L={onMouseEnter:g,onMouseOver:_,onMouseLeave:v,onClick:y,onKeyDown:b,onKeyUp:S},R={...e,open:M,prefixCls:n,placement:r,autoFocus:i,keyboard:a,width:o,height:s,size:c,maxSize:l,defaultSize:T,mask:u,maskClosable:d,inline:f===!1,afterOpenChange:F,ref:N,resizable:w,...L};return x.createElement(rU.Provider,{value:I},x.createElement(Sp,{open:M||p||O,autoDestroy:!1,getContainer:f,autoLock:u&&(M||O),onEsc:({top:e,event:t})=>{e&&a&&(t.stopPropagation(),C?.(t))}},x.createElement(uU,R)))},fU=e=>{let{prefixCls:t,ariaId:n,title:r,footer:i,extra:a,closable:o,loading:s,onClose:c,headerStyle:l,bodyStyle:u,footerStyle:d,children:f,classNames:p,styles:m}=e,h=ma(`drawer`),{classNames:g,styles:_,closable:v}=h,[y,b]=vf([g,p],[_,m],{props:{...e,closable:o??v}}),S=x.useMemo(()=>{let e=o??v;if(e!==!1)return Zd(e)&&e?.placement===`end`?`end`:`start`},[o,v]),C=x.useCallback(e=>x.createElement(`button`,{type:`button`,onClick:c,className:Z(`${t}-close`,{[`${t}-close-${S}`]:S===`end`},y.close),style:b.close},e),[c,t,S,y.close,b.close]),[w,T]=cf(tf(e),tf(h),{closable:!0,closeIconRender:C}),E=()=>!r&&!w?null:x.createElement(`div`,{style:{...b.header,...l},className:Z(`${t}-header`,y.header,{[`${t}-header-close-only`]:w&&!r&&!a})},x.createElement(`div`,{className:`${t}-header-title`},S===`start`&&T,r&&x.createElement(`div`,{className:Z(`${t}-title`,y.title),style:b.title,id:n},r)),a&&x.createElement(`div`,{className:Z(`${t}-extra`,y.extra),style:b.extra},a),S===`end`&&T),D=()=>i?x.createElement(`div`,{className:Z(`${t}-footer`,y.footer),style:{...b.footer,...d}},i):null;return x.createElement(x.Fragment,null,E(),x.createElement(`div`,{className:Z(`${t}-body`,y.body),style:{...b.body,...u}},s?x.createElement(ub,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):f),D())},pU=e=>{let t=`100%`;return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},mU=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),hU=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:`none`},"&-active":{transition:`all ${t}`}},...mU({opacity:e},{opacity:1})}),gU=(e,t)=>[hU(.7,t),mU({transform:pU(e)},{transform:`none`})],_U=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:hU(0,n),[`${t}-panel-motion`]:[`left`,`right`,`top`,`bottom`].reduce((e,t)=>({...e,[`&-${t}`]:gU(t,n)}),{})}}},vU=e=>{let{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:c,padding:l,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:m,colorSplit:h,marginXS:g,colorIcon:_,colorIconHover:v,colorBgTextHover:y,colorBgTextActive:b,colorText:x,fontWeightStrong:S,footerPaddingBlock:C,footerPaddingInline:w,draggerSize:T,calc:E}=e,D=`${n}-content-wrapper`,O=`${n}-resizable-dragger`;return{[n]:{position:`fixed`,inset:0,zIndex:r,pointerEvents:`none`,color:x,"&-pure":{position:`relative`,background:a,display:`flex`,flexDirection:`column`,pointerEvents:`auto`,[`&${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:i,pointerEvents:`auto`,[`&${n}-mask-blur`]:{backdropFilter:`blur(4px)`}},[D]:{position:`absolute`,zIndex:r,maxWidth:`100vw`,transition:`all ${o}`,"&-hidden":{display:`none`}},[`&-left > ${D}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${D}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${D}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${D}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,overflow:`auto`,background:a,pointerEvents:`auto`},[`${n}-header`]:{display:`flex`,flex:0,alignItems:`center`,padding:`${Q(l)} ${Q(u)}`,fontSize:d,lineHeight:f,borderBottom:`${Q(p)} ${m} ${h}`,"&-title":{display:`flex`,flex:1,alignItems:`center`,minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:`none`},[`${n}-close`]:{display:`inline-flex`,width:E(d).add(c).equal(),height:E(d).add(c).equal(),borderRadius:t,justifyContent:`center`,alignItems:`center`,color:_,fontWeight:S,fontSize:d,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,textDecoration:`none`,background:`transparent`,border:0,cursor:`pointer`,transition:`all ${s}`,textRendering:`auto`,[`&${n}-close-end`]:{marginInlineStart:g},[`&:not(${n}-close-end)`]:{marginInlineEnd:g},"&:hover":{color:v,backgroundColor:y,textDecoration:`none`},"&:active":{backgroundColor:b},...Hl(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:`auto`,[`${n}-body-skeleton`]:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`}},[`${n}-footer`]:{flexShrink:0,padding:`${Q(C)} ${Q(w)}`,borderTop:`${Q(p)} ${m} ${h}`},[O]:{position:`absolute`,zIndex:1,backgroundColor:`transparent`,userSelect:`none`,pointerEvents:`auto`,"&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${O}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:T,cursor:`col-resize`},[`${O}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:T,cursor:`col-resize`},[`${O}-top`]:{insetInline:0,bottom:0,height:T,cursor:`row-resize`},[`${O}-bottom`]:{insetInline:0,top:0,height:T,cursor:`row-resize`},[`${D}-dragging`]:{userSelect:`none`,transition:`none`,willChange:`width, height`,[`${n}-content`]:{pointerEvents:`none`},[`${n}-section`]:{pointerEvents:`none`}},"&-rtl":{direction:`rtl`}}}},yU=ql(`Drawer`,e=>{let t=oc(e,{});return[vU(t),_U(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4})),bU={distance:180},xU=378,SU={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},CU=e=>{let{rootClassName:t,size:n,defaultSize:r=xU,height:i,width:a,mask:o,push:s=bU,open:c,afterOpenChange:l,onClose:u,prefixCls:d,getContainer:f,panelRef:p=null,style:m,className:h,resizable:g,"aria-labelledby":_,focusable:v,maskClosable:y,maskStyle:b,drawerStyle:S,contentWrapperStyle:C,destroyOnClose:w,destroyOnHidden:T,...E}=e,{placement:D}=E,O=Kn(),k=E.title?O:void 0,{getPopupContainer:A,getPrefixCls:j,direction:M,className:N,style:P,classNames:F,styles:I,mask:L}=ma(`drawer`),R=j(`drawer`,d),[z,B]=yU(R),V=f===void 0&&A?()=>A(document.body):f,H=x.useMemo(()=>Yd(n)?n:n===`large`?736:n===`default`?xU:typeof n==`string`?/^\d+(\.\d+)?$/.test(n)?Number(n):n:!D||D===`left`||D===`right`?a:i,[n,D,a,i]),U={motionName:hh(R,`mask-motion`),...SU},W=e=>({motionName:hh(R,`panel-motion-${e}`),...SU}),G=ir(p,pb()),[K,ee]=Mf(`Drawer`,E.zIndex),[te,q,J]=df(o,L,R,y),Y=Py(v,V!==!1&&te),{classNames:ne,styles:X,rootStyle:re}=E,ie={...e,zIndex:K,panelRef:p,mask:te,maskClosable:J,defaultSize:r,push:s,focusable:Y},[ae,oe]=vf([F,ne],[I,X],{props:ie}),se=Z({"no-mask":!te,[`${R}-rtl`]:M===`rtl`},t,z,B,ae.root);return x.createElement(My,{form:!0,space:!0},x.createElement(Ef.Provider,{value:ee},x.createElement(dU,{prefixCls:R,onClose:u,maskMotion:U,motion:W,...E,classNames:{mask:Z(ae.mask,q.mask),section:ae.section,wrapper:ae.wrapper,dragger:ae.dragger},styles:{mask:{...oe.mask,...b},section:{...oe.section,...S},wrapper:{...oe.wrapper,...C},dragger:oe.dragger},open:c,mask:te,maskClosable:J,push:s,size:H,defaultSize:r,style:{...P,...m},rootStyle:{...re,...oe.root},className:Z(N,h),rootClassName:se,getContainer:V,afterOpenChange:l,panelRef:G,zIndex:K,...g?{resizable:g}:{},"aria-labelledby":_??k,destroyOnHidden:T??w,focusTriggerAfterClose:Y.focusTriggerAfterClose,focusTrap:Y.trap},x.createElement(fU,{prefixCls:R,size:n,...E,ariaId:k,onClose:u}))))};CU._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:n,className:r,placement:i=`right`,...a}=e,{getPrefixCls:o}=x.useContext(da),s=o(`drawer`,t),[c,l]=yU(s),u=Z(s,`${s}-pure`,`${s}-${i}`,c,l,r);return x.createElement(`div`,{className:u,style:n},x.createElement(fU,{prefixCls:s,...a}))};var wU=CU;function TU(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function EU(e){return e?Yd(e):!1}var DU=x.createContext({latestIndex:0}),OU=DU.Provider,kU=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=x.useContext(DU);return Jd(i)?x.createElement(x.Fragment,null,x.createElement(`div`,{className:t,style:o},i),r<l&&a&&x.createElement(`span`,{className:Z(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},AU=e=>{let{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`}}}},jU=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},MU=ql(`Space`,e=>{let t=oc(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[AU(t),jU(t)]},()=>({}),{resetStyle:!1}),NU=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=ma(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:v,style:y,vertical:b,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=TU(D),k=TU(E),A=EU(D),j=EU(E),M=wi(p,{keepEmpty:!0}),[N,P]=xf(h,b,m),F=u===void 0&&!P?`center`:u,I=v??_,L=n(`space`,g),[R,z]=MU(L),B={...e,size:l,orientation:N,align:F},[V,H]=vf([s,C],[c,w],{props:B}),U=Z(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),W=Z(`${L}-item`,V.item),G=M.map((e,t)=>{let n=e?.key||`${W}-${t}`;return x.createElement(kU,{prefix:L,classNames:V,styles:H,className:W,key:n,index:t,separator:I,style:H.item},e)}),K=x.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>Jd(t)?n:e,0)}),[M]);if(M.length===0)return null;let ee={};return S&&(ee.flexWrap=`wrap`),!k&&j&&(ee.columnGap=E),!O&&A&&(ee.rowGap=D),x.createElement(`div`,{ref:t,className:U,style:{...ee,...H.root,...o,...y},...T},x.createElement(OU,{value:K},G))});NU.Compact=jh,NU.Addon=FV;var PU=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=x.useContext(da),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:v,onOpenChange:y,placement:b,getPopupContainer:S,href:C,icon:w=x.createElement(nD,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:y,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Oh(I,r),V=Z(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=v),`placement`in e?R.placement=b:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([x.createElement(kD,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),x.createElement(kD,{type:a,danger:o,icon:w})]);return x.createElement(NU.Compact,{className:V,size:z,block:!0,...F},H,x.createElement(DD,{...R},U))};PU.__ANT_BUTTON=!0;var FU=DD;FU.Button=PU;var IU=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function LU(){return LU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LU.apply(this,arguments)}var RU=x.forwardRef((e,t)=>x.createElement(_u,LU({},e,{ref:t,icon:IU.default}))),zU=(e,t)=>Jd(e)?Zd(e)&&!(0,x.isValidElement)(e)?{...t,...e}:{...t,title:e}:null;function BU(e){let[t,n]=x.useState(e);return x.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var VU=e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:`hidden`,transition:`${[`height`,`opacity`,`transform`].map(e=>`${e} ${n} ${r}`).join(`, `)} !important`,[`&${a}-appear, &${a}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${a}-leave-active`]:{transform:`translateY(-5px)`}}}}},HU=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),UU=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},WU=e=>{let{componentCls:t}=e;return{[t]:{...Rl(e),...HU(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...UU(e,e.controlHeightSM)},"&-large":{...UU(e,e.controlHeightLG)}}}},GU=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=Xl(i,`grid`);return{[t]:{...Rl(e),marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden,
|
||
&-hidden${i}-row`]:{display:`none`},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{[f(`display`)]:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[t]:{"&-additional":{display:`flex`,flexDirection:`column`},"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:gg,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},KU=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),qU=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:`unset`}},[`${t}-col-24${n}-label,
|
||
${t}-col-xl-24${n}-label`]:KU(e)}}},JU=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label,
|
||
> ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},YU=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:KU(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},XU=e=>{let{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:`auto`},[`${n}-control`]:{width:`100%`},[`${n}-label,
|
||
${r}-col-24${n}-label,
|
||
${r}-col-xl-24${n}-label`]:KU(e)},[`@media (max-width: ${Q(e.screenXSMax)})`]:[YU(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:KU(e)}}}],[`@media (max-width: ${Q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:KU(e)}}},[`@media (max-width: ${Q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:KU(e)}}},[`@media (max-width: ${Q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:KU(e)}}}}},ZU=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),QU=(e,t)=>oc(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$U=ql(`Form`,(e,{rootPrefixCls:t})=>{let n=QU(e,t);return[WU(n),GU(n),VU(n),qU(n),JU(n),XU(n),Gh(n),gg]},ZU,{order:-1e3}),eW=[];function tW(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var nW=({help:e,helpStatus:t,errors:n=eW,warnings:r=eW,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=x.useContext(Oy),c=`${s}-item-explain`,l=np(s),[u,d]=$U(s,l),f=x.useMemo(()=>mh(s),[s]),p=BU(n),m=BU(r),h=x.useMemo(()=>Jd(e)?[tW(e,`help`,t)]:[].concat(ca(p.map((e,t)=>tW(e,`error`,`error`,t))),ca(m.map((e,t)=>tW(e,`warning`,`warning`,t)))),[e,t,p,m]),g=x.useMemo(()=>{let e={};return h.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),h.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[h]),_={};return a&&(_.id=`${a}_help`),x.createElement(Cd,{motionDeadline:f.motionDeadline,motionName:`${s}-show-help`,visible:!!g.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return x.createElement(`div`,{..._,className:Z(c,t,d,l,i,u),style:n},x.createElement(Sd,{keys:g,...mh(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return x.createElement(`div`,{key:t,className:Z(i,{[`${c}-${r}`]:r}),style:a},n)}))})},rW=x.forwardRef((e,t)=>{let n=x.useContext(lm),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f}=ma(`form`),{prefixCls:p,className:m,rootClassName:h,size:g,disabled:_=n,form:v,colon:y,labelAlign:b,labelWrap:S,labelCol:C,wrapperCol:w,layout:T=`horizontal`,scrollToFirstError:E,requiredMark:D,onFinishFailed:O,name:k,style:A,feedbackIcons:j,variant:M,classNames:N,styles:P,tooltip:F,...I}=e,L=Th(g),R=x.useContext(rp),z=x.useMemo(()=>D===void 0?a===void 0?!0:a:D,[D,a]),B=y??o,V={...f,...F},H=r(`form`,p),U=np(H),[W,G]=$U(H,U),K={...e,size:L,disabled:_,layout:T,colon:B,requiredMark:z},[ee,te]=vf([d,N],[u,P],{props:K}),q=Z(H,`${H}-${T}`,{[`${H}-hide-required-mark`]:z===!1,[`${H}-rtl`]:i===`rtl`,[`${H}-large`]:L===`large`,[`${H}-small`]:L===`small`},G,U,W,c,m,h,ee.root),[J]=kL(v),{__INTERNAL__:Y}=J;Y.name=k;let ne=x.useMemo(()=>({name:k,labelAlign:b,labelCol:C,labelWrap:S,wrapperCol:w,layout:T,colon:B,requiredMark:z,itemRef:Y.itemRef,form:J,feedbackIcons:j,tooltip:V,classNames:ee,styles:te}),[k,b,C,w,T,B,z,J,j,ee,te,V]),X=x.useRef(null);x.useImperativeHandle(t,()=>({...J,nativeElement:X.current?.nativeElement}));let re=(e,t)=>{if(e){let n={block:`nearest`};Zd(e)&&(n={...n,...e}),J.scrollToField(t,n)}},ie=e=>{if(O?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(E!==void 0){re(E,t);return}s!==void 0&&re(s,t)}};return x.createElement(jy.Provider,{value:M},x.createElement(um,{disabled:_},x.createElement(dm.Provider,{value:L},x.createElement(Dy,{validateMessages:R},x.createElement(Ty.Provider,{value:ne},x.createElement(Ay,{status:!0},x.createElement(wy,{id:k,...I,name:k,onFinishFailed:ie,form:J,ref:X,style:{...te?.root,...l,...A},className:q})))))))});function iW(e){if(typeof e==`function`)return e;let t=wi(e);return t.length<=1?t[0]:t}var aW=()=>{let{status:e,errors:t=[],warnings:n=[]}=x.useContext(ky);return{status:e,errors:t,warnings:n}};aW.Context=ky;function oW(e){let[t,n]=x.useState(e),r=x.useRef(null),i=x.useRef([]),a=x.useRef(!1);x.useEffect(()=>(a.current=!1,()=>{a.current=!0,Ci.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=Ci(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var sW=()=>{let{itemRef:e}=x.useContext(Ty),t=x.useRef({});function n(n,r){let i=r&&typeof r==`object`&&lr(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=ir(e(n),i)),t.current.ref}return n},cW=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},lW=Yl([`Form`,`item-item`],(e,{rootPrefixCls:t})=>cW(QU(e,t))),uW=24,dW=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,h=`${t}-item`,g=x.useContext(Ty),{classNames:_,styles:v}=g,y=x.useMemo(()=>{let e={...i||g.wrapperCol||{}};return m===null&&!r&&!i&&g.labelCol&&[void 0].concat(ca(Cw)).forEach(t=>{let n=t?[t]:[],r=Ti(g.labelCol,n),i=Zd(r)?r:{},a=Ti(e,n),o=Zd(a)?a:{};`span`in i&&!(`offset`in o)&&i.span<uW&&(e=Di(e,[].concat(n,[`offset`]),i.span))}),e},[i,g.wrapperCol,g.labelCol,m,r]),b=Z(`${h}-control`,y.className),S=x.useMemo(()=>{let{labelCol:e,wrapperCol:t,...n}=g;return n},[g]),C=x.useRef(null),[w,T]=x.useState(0);Rn(()=>{l&&C.current?T(C.current.clientHeight):T(0)},[l]);let E=x.createElement(`div`,{className:`${h}-control-input`},x.createElement(`div`,{className:Z(`${h}-control-input-content`,_?.content),style:v?.content},a)),D=x.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=f!==null||o.length||s.length?x.createElement(Oy.Provider,{value:D},x.createElement(nW,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,k={};d&&(k.id=`${d}_extra`);let A=l?x.createElement(`div`,{...k,className:`${h}-extra`,ref:C},l):null,j=O||A?x.createElement(`div`,{className:`${h}-additional`,style:f?{minHeight:f+w}:{}},O,A):null,M=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:E,errorList:O,extra:A}):x.createElement(x.Fragment,null,E,j);return x.createElement(Ty.Provider,{value:S},x.createElement(OV,{...y,className:b},M),x.createElement(lW,{prefixCls:t}))},fW=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`}}))());function pW(){return pW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pW.apply(this,arguments)}var mW=x.forwardRef((e,t)=>x.createElement(_u,pW({},e,{ref:t,icon:fW.default}))),hW=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=Wd(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:m,classNames:h,styles:g,tooltip:_}=x.useContext(Ty);if(!t)return null;let v=r||f||{},y=i||d,b=`${e}-item-label`,S=Z(b,y===`left`&&`${b}-left`,v.className,{[`${b}-wrap`]:!!p}),C=t,w=a===!0||m!==!1&&a!==!1;w&&!l&&typeof t==`string`&&t.trim()&&(C=t.replace(/[:|:]\s*$/,``));let T=zU(c,_);if(T){let t=x.createElement(lT,{...T},x.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},T.icon||T.children||x.createElement(mW,null)));C=x.createElement(x.Fragment,null,C,t)}let E=s===`optional`,D=typeof s==`function`,O=s===!1;D?C=s(C,{required:!!o}):E&&!o&&(C=x.createElement(x.Fragment,null,C,x.createElement(`span`,{className:`${e}-item-optional`,title:``},u?.optional||Ld.Form?.optional)));let k;O?k=`hidden`:(E||D)&&(k=`optional`);let A=Z(h?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!w});return x.createElement(OV,{...v,className:S},x.createElement(`label`,{htmlFor:n,className:A,style:g?.label,title:typeof t==`string`?t:``},C))},gW={success:bu,warning:ku,error:Cu,validating:qm};function _W({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=x.useContext(Ty),d=EL(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:h,name:g}=x.useContext(ky),_=x.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n})?.[d],o=d?gW[d]:null;e=a!==!1&&o?x.createElement(`span`,{className:Z(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||x.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??m),i.feedbackIcon=r===void 0?h:i.feedbackIcon,i.name=c??g),i},[d,r,s,f,p]);return x.createElement(ky.Provider,{value:_},e)}function vW(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:h,onSubItemMetaChange:g,layout:_,name:v,...y}=e,b=`${t}-item`,{requiredMark:S,layout:C}=x.useContext(Ty),w=_||C,T=w===`vertical`,E=x.useRef(null),D=BU(o),O=BU(s),k=Jd(a),A=!!(k||o.length||s.length),j=!!E.current&&Er(E.current),[M,N]=x.useState(null);Rn(()=>{if(A&&E.current){let e=getComputedStyle(E.current);N(Number.parseInt(e.marginBottom,10))}},[A,j]);let P=e=>{e||N(null)},F=((e=!1)=>EL(e?D:l.errors,e?O:l.warnings,l,``,!!u,c))(),I=Z(b,n,r,{[`${b}-with-help`]:k||D.length||O.length,[`${b}-has-feedback`]:F&&u,[`${b}-has-success`]:F===`success`,[`${b}-has-warning`]:F===`warning`,[`${b}-has-error`]:F===`error`,[`${b}-is-validating`]:F===`validating`,[`${b}-hidden`]:d,[`${b}-${w}`]:w});return x.createElement(`div`,{className:I,style:i,ref:E},x.createElement(jV,{className:`${b}-row`,...fi(y,`_internalItemRender.colon.dependencies.extra.fieldKey.getValueFromEvent.getValueProps.htmlFor.id.initialValue.isListField.label.labelAlign.labelCol.labelWrap.messageVariables.name.normalize.noStyle.preserve.requiredMark.rules.shouldUpdate.trigger.tooltip.validateFirst.validateTrigger.valuePropName.wrapperCol.validateDebounce`.split(`.`))},x.createElement(hW,{htmlFor:p,...e,requiredMark:S,required:m??h,prefixCls:t,vertical:T}),x.createElement(dW,{...e,...l,errors:D,warnings:O,prefixCls:t,status:F,help:a,marginBottom:M,onErrorVisibleChanged:P},x.createElement(Ey.Provider,{value:g},x.createElement(_W,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:F,name:v},f)))),!!M&&x.createElement(`div`,{className:`${b}-margin-offset`,style:{marginBottom:-M}}))}var yW=`__SPLIT__`;function bW(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||typeof r==`function`||typeof i==`function`})}var xW=x.memo(e=>e.children,(e,t)=>bW(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function SW(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function CW(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:m,help:h,layout:g}=e,{getPrefixCls:_}=x.useContext(da),{name:v}=x.useContext(Ty),y=iW(c),b=typeof y==`function`,S=x.useContext(Ey),{validateTrigger:C}=x.useContext(W_),w=Jd(p)?p:C,T=Jd(t),E=_(`form`,a),D=np(E),[O,k]=$U(E,D);Bi(`Form.Item`);let A=x.useContext(G_),j=x.useRef(null),[M,N]=oW({}),[P,F]=Bn(()=>SW()),I=e=>{let t=A?.getKey(e.name);if(F(e.destroy?SW():e,!0),n&&h!==!1&&S){let n=e.name;if(e.destroy)n=j.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(ca(r)),j.current=n}S(e,n)}},L=(e,t)=>{N(n=>{let r={...n},i=[].concat(ca(e.name.slice(0,-1)),ca(t)).join(yW);return e.destroy?delete r[i]:r[i]=e,r})},[R,z]=x.useMemo(()=>{let e=ca(P.errors),t=ca(P.warnings);return Object.values(M).forEach(n=>{e.push.apply(e,ca(n.errors||[])),t.push.apply(t,ca(n.warnings||[]))}),[e,t]},[M,P.errors,P.warnings]),B=sW();function V(i,a,o){return n&&!m?x.createElement(_W,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:R,warnings:z,noStyle:!0,name:t},i):x.createElement(vW,{key:`row`,...e,className:Z(r,k,D,O),prefixCls:E,fieldId:a,isRequired:o,errors:R,warnings:z,meta:P,onSubItemMetaChange:L,layout:g,name:t},i)}if(!T&&!b&&!i)return V(y);let H={};return typeof u==`string`?H.label=u:t&&(H.label=String(t)),d&&(H={...H,...d}),x.createElement(dy,{...e,messageVariables:H,trigger:f,validateTrigger:w,onMetaChange:I},(n,r,a)=>{let c=wL(t).length&&r?r.name:[],u=TL(c,v),d=l===void 0?s?.some(e=>{if(Zd(e)&&e.required&&!e.warningOnly)return!0;if(typeof e==`function`){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):l,p={...n},m=null;if(Array.isArray(y)&&T)m=y;else if(!(b&&(!(o||i)||T))&&!(i&&!b&&!T))if(x.isValidElement(y)){let t={...y.props,...p};if(t.id||=u,h||R.length>0||z.length>0||e.extra){let n=[];(h||R.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t[`aria-describedby`]=n.join(` `)}R.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),or(y)&&(t.ref=B(c,y)),new Set([].concat(ca(wL(f)),ca(wL(w)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),y.props[e]?.(...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=x.createElement(xW,{control:p,update:y,childProps:n},im(y,t))}else m=b&&(o||i)&&!T?y(a):y;return V(m,u,d)})}var wW=CW;wW.useStatus=aW;var TW=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=x.useContext(da),i=r(`form`,e),a=x.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return x.createElement(fy,{...n},(e,n,r)=>x.createElement(Oy.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function EW(){let{form:e}=x.useContext(Ty);return e}var DW=rW;DW.Item=wW,DW.List=TW,DW.ErrorList=nW,DW.useForm=kL,DW.useFormInstance=EW,DW.useWatch=Cy,DW.Provider=Dy;var OW=x.createContext(null);function kW(e){return new Promise(t=>{if(!e){t(!1);return}let n=document.createElement(`img`);n.onerror=()=>t(!1),n.onload=()=>t(!0),n.src=e})}function AW(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var jW={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function MW(e,t,n,r){let i=(0,x.useRef)(null),a=(0,x.useRef)([]),[o,s]=(0,x.useState)(jW),c=e=>{s(jW),ci(jW,o)||r?.({transform:jW,action:e})},l=(e,t)=>{i.current===null&&(a.current=[],i.current=Ci(()=>{s(e=>{let n=e;return a.current.forEach(e=>{n={...n,...e}}),i.current=null,r?.({transform:n,action:t}),n})})),a.current.push({...o,...e})};return{transform:o,resetTransform:c,updateTransform:l,dispatchZoomChange:(r,i,a,s,c)=>{let{width:u,height:d,offsetWidth:f,offsetHeight:p,offsetLeft:m,offsetTop:h}=e.current,g=r,_=o.scale*r;_>n?(_=n,g=n/o.scale):_<t&&(_=c?_:t,g=_/o.scale);let v=a??innerWidth/2,y=s??innerHeight/2,b=g-1,x=b*u*.5,S=b*d*.5,C=b*(v-o.x-m),w=b*(y-o.y-h),T=o.x-(C-x),E=o.y-(w-S);if(r<1&&_===1){let e=f*_,t=p*_,{width:n,height:r}=AW();e<=n&&t<=r&&(T=0,E=0)}l({x:T,y:E,scale:_},i)}}}function NW(e,t,n,r){let i=t+n,a=(n-r)/2;if(n>r){if(t>0)return{[e]:a};if(t<0&&i<r)return{[e]:-a}}else if(t<0||i>r)return{[e]:t<0?a:-a};return{}}function PW(e,t,n,r){let{width:i,height:a}=AW(),o=null;return e<=i&&t<=a?o={x:0,y:0}:(e>i||t>a)&&(o={...NW(`x`,n,e,i),...NW(`y`,r,t,a)}),o}function FW(e,t,n,r,i,a,o){let{rotate:s,scale:c,x:l,y:u}=i,[d,f]=(0,x.useState)(!1),p=(0,x.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),m=e=>{!t||e.button!==0||(e.preventDefault(),e.stopPropagation(),p.current={diffX:e.pageX-l,diffY:e.pageY-u,transformX:l,transformY:u},f(!0))},h=e=>{n&&d&&a({x:e.pageX-p.current.diffX,y:e.pageY-p.current.diffY},`move`)},g=()=>{if(n&&d){f(!1);let{transformX:t,transformY:n}=p.current;if(!(l!==t&&u!==n))return;let r=e.current.offsetWidth*c,i=e.current.offsetHeight*c,{left:o,top:d}=e.current.getBoundingClientRect(),m=s%180!=0,h=PW(m?i:r,m?r:i,o,d);h&&a({...h},`dragRebound`)}};return(0,x.useEffect)(()=>{if(t){window.addEventListener(`mouseup`,g,!1),window.addEventListener(`mousemove`,h,!1);try{window.top!==window.self&&(window.top.addEventListener(`mouseup`,g,!1),window.top.addEventListener(`mousemove`,h,!1))}catch(e){`${e}`}}return()=>{window.removeEventListener(`mouseup`,g),window.removeEventListener(`mousemove`,h);try{window.top?.removeEventListener(`mouseup`,g),window.top?.removeEventListener(`mousemove`,h)}catch{}}},[n,d,l,u,s,t]),{isMoving:d,onMouseDown:m,onMouseMove:h,onMouseUp:g,onWheel:e=>{if(!n||e.deltaY==0)return;let t=Math.abs(e.deltaY/100),i=1+Math.min(t,1)*r;e.deltaY>0&&(i=1/i),o(i,`wheel`,e.clientX,e.clientY)}}}function IW({src:e,isCustomPlaceholder:t,fallback:n}){let[r,i]=(0,x.useState)(t?`loading`:`normal`),a=(0,x.useRef)(!1),o=r===`error`;(0,x.useEffect)(()=>{let t=!0;return kW(e).then(e=>{!e&&t&&i(`error`)}),()=>{t=!1}},[e]),(0,x.useEffect)(()=>{t&&!a.current?i(`loading`):o&&i(`normal`)},[e]);let s=()=>{i(`normal`)};return[e=>{a.current=!1,r===`loading`&&e?.complete&&(e.naturalWidth||e.naturalHeight)&&(a.current=!0,s())},o&&n?{src:n}:{onLoad:s,src:e},r]}function LW(e,t){let n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function RW(e,t,n,r){let i=LW(e,n),a=LW(t,r);if(i===0&&a===0)return[e.x,e.y];let o=i/(i+a);return[e.x+o*(t.x-e.x),e.y+o*(t.y-e.y)]}function zW(e,t,n,r,i,a,o){let{rotate:s,scale:c,x:l,y:u}=i,[d,f]=(0,x.useState)(!1),p=(0,x.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:`none`}),m=e=>{p.current={...p.current,...e}};return(0,x.useEffect)(()=>{let e=e=>{e.preventDefault()};return n&&t&&window.addEventListener(`touchmove`,e,{passive:!1}),()=>{window.removeEventListener(`touchmove`,e)}},[n,t]),{isTouching:d,onTouchStart:e=>{if(!t)return;e.stopPropagation(),f(!0);let{touches:n=[]}=e;n.length>1?m({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:`touchZoom`}):m({point1:{x:n[0].clientX-l,y:n[0].clientY-u},eventType:`move`})},onTouchMove:e=>{let{touches:t=[]}=e,{point1:n,point2:r,eventType:i}=p.current;if(t.length>1&&i===`touchZoom`){let e={x:t[0].clientX,y:t[0].clientY},i={x:t[1].clientX,y:t[1].clientY},[a,s]=RW(n,r,e,i);o(LW(e,i)/LW(n,r),`touchZoom`,a,s,!0),m({point1:e,point2:i,eventType:`touchZoom`})}else i===`move`&&(a({x:t[0].clientX-n.x,y:t[0].clientY-n.y},`move`),m({eventType:`move`}))},onTouchEnd:()=>{if(!n)return;if(d&&f(!1),m({eventType:`none`}),r>c)return a({x:0,y:0,scale:r},`touchZoom`);let t=e.current.offsetWidth*c,i=e.current.offsetHeight*c,{left:o,top:l}=e.current.getBoundingClientRect(),u=s%180!=0,p=PW(u?i:t,u?t:i,o,l);p&&a({...p},`dragRebound`)}}}function BW(e){let{prefixCls:t,icon:n,onClick:r,className:i,style:a}=e;return x.createElement(`button`,{className:Z(`${t}-close`,i),style:a,onClick:r},n)}function VW(e){let{prefixCls:t,showProgress:n,current:r,count:i,showSwitch:a,classNames:o,styles:s,icons:c,image:l,transform:u,countRender:d,actionsRender:f,scale:p,minScale:m,maxScale:h,onActive:g,onFlipY:_,onFlipX:v,onRotateLeft:y,onRotateRight:b,onZoomOut:S,onZoomIn:C,onClose:w,onReset:T}=e,{left:E,right:D,prev:O,next:k,flipY:A,flipX:j,rotateLeft:M,rotateRight:N,zoomOut:P,zoomIn:F}=c,I=n&&x.createElement(`div`,{className:`${t}-progress`},d?d(r+1,i):x.createElement(`bdi`,null,`${r+1} / ${i}`)),L=`${t}-actions-action`,R=({type:e,disabled:t,onClick:n,icon:r})=>x.createElement(`button`,{type:`button`,key:e,className:Z(L,`${L}-${e}`,{[`${L}-disabled`]:!!t}),onClick:n,disabled:!!t,"aria-label":e},r),z=a?R({icon:O??E,onClick:()=>g(-1),type:`prev`,disabled:r===0}):void 0,B=a?R({icon:k??D,onClick:()=>g(1),type:`next`,disabled:r===i-1}):void 0,V=R({icon:A,onClick:_,type:`flipY`}),H=R({icon:j,onClick:v,type:`flipX`}),U=R({icon:M,onClick:y,type:`rotateLeft`}),W=R({icon:N,onClick:b,type:`rotateRight`}),G=R({icon:P,onClick:S,type:`zoomOut`,disabled:p<=m}),K=R({icon:F,onClick:C,type:`zoomIn`,disabled:p===h}),ee=x.createElement(`div`,{className:Z(`${t}-actions`,o.actions),style:s.actions},V,H,U,W,G,K);return x.createElement(`div`,{className:Z(`${t}-footer`,o.footer),style:s.footer},I,f?f(ee,{icons:{prevIcon:z,nextIcon:B,flipYIcon:V,flipXIcon:H,rotateLeftIcon:U,rotateRightIcon:W,zoomOutIcon:G,zoomInIcon:K},actions:{onActive:g,onFlipY:_,onFlipX:v,onRotateLeft:y,onRotateRight:b,onZoomOut:S,onZoomIn:C,onReset:T,onClose:w},transform:u,current:r,total:i,image:l}):ee)}function HW(e){let{prefixCls:t,onActive:n,current:r,count:i,icons:{left:a,right:o,prev:s,next:c}}=e,l=`${t}-switch`,u=r===0,d=r===i-1;return x.createElement(x.Fragment,null,x.createElement(`button`,{className:Z(l,`${l}-prev`,{[`${l}-disabled`]:u}),onClick:()=>n(-1),disabled:u},s??a),x.createElement(`button`,{type:`button`,className:Z(l,`${l}-next`,{[`${l}-disabled`]:d}),onClick:()=>n(1),disabled:d},c??o))}function UW(){return UW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UW.apply(this,arguments)}var WW=({fallback:e,src:t,imgRef:n,...r})=>{let[i,a]=IW({src:t,fallback:e});return x.createElement(`img`,UW({ref:e=>{n.current=e,i(e)}},r,a))},GW=e=>{let{prefixCls:t,rootClassName:n,src:r,alt:i,imageInfo:a,fallback:o,movable:s=!0,onClose:c,open:l,afterOpenChange:u,maskClosable:d=!0,icons:f={},closeIcon:p,getContainer:m,current:h=0,count:g=1,countRender:_,scaleStep:v=.5,minScale:y=1,maxScale:b=50,motionName:S=`fade`,imageRender:C,imgCommonProps:w,actionsRender:T,onTransform:E,onChange:D,classNames:O={},styles:k={},mousePosition:A,zIndex:j,focusTrap:M=!0}=e,N=(0,x.useRef)(),P=(0,x.useRef)(null),F=(0,x.useRef)(null),I=(0,x.useContext)(OW),L=I&&g>1,R=I&&g>=1,[z,B]=(0,x.useState)(!0),{transform:V,resetTransform:H,updateTransform:U,dispatchZoomChange:W}=MW(N,y,b,E),{isMoving:G,onMouseDown:K,onWheel:ee}=FW(N,s,l,v,V,U,W),{isTouching:te,onTouchStart:q,onTouchMove:J,onTouchEnd:Y}=zW(N,s,l,y,V,U,W),{rotate:ne,scale:X}=V;(0,x.useEffect)(()=>{z||B(!0)},[z]),(0,x.useEffect)(()=>{l||H(`close`)},[l]);let re=x.createElement(WW,UW({},w,{width:e.width,height:e.height,imgRef:N,className:`${t}-img`,alt:i,style:{transform:`translate3d(${V.x}px, ${V.y}px, 0) scale3d(${V.flipX?`-`:``}${X}, ${V.flipY?`-`:``}${X}, 1) rotate(${ne}deg)`,transitionDuration:(!z||te)&&`0s`},fallback:o,src:r,onWheel:ee,onMouseDown:K,onDoubleClick:e=>{l&&(X===1?W(1+v,`doubleClick`,e.clientX,e.clientY):U({x:0,y:0,scale:1},`doubleClick`))},onTouchStart:q,onTouchMove:J,onTouchEnd:Y,onTouchCancel:Y})),ie={url:r,alt:i,...a},ae=()=>{W(1+v,`zoomIn`)},oe=()=>{W(1/(1+v),`zoomOut`)},se=()=>{U({rotate:ne+90},`rotateRight`)},ce=()=>{U({rotate:ne-90},`rotateLeft`)},le=()=>{U({flipX:!V.flipX},`flipX`)},ue=()=>{U({flipY:!V.flipY},`flipY`)},de=()=>{H(`reset`)},fe=e=>{let t=h+e;t>=0&&t<=g-1&&(B(!1),H(e<0?`prev`:`next`),D?.(t,h))},pe=Fn(e=>{if(l){let{keyCode:t}=e;L&&(t===Jr.LEFT?fe(-1):t===Jr.RIGHT&&fe(1))}});(0,x.useEffect)(()=>{if(l)return window.addEventListener(`keydown`,pe),()=>{window.removeEventListener(`keydown`,pe)}},[l]);let[me,he]=(0,x.useState)(!1);x.useEffect(()=>{l&&he(!0)},[l]);let ge=e=>{e||(he(!1),F.current?.focus?.(),F.current=null),u?.(e)},[_e,ve]=(0,x.useState)(!1);Rn(()=>{l&&ve(!0)},[l]);let ye=({top:e})=>{e&&c?.()};Rn(()=>{l&&(F.current=document.activeElement)},[l]),Vr(M&&l&&_e,()=>P.current);let be={...k.body};return A&&(be.transformOrigin=`${A.x}px ${A.y}px`),x.createElement(Sp,{open:_e&&l,autoDestroy:!1,getContainer:m,autoLock:me,onEsc:ye},x.createElement(Cd,{motionName:S,visible:_e&&l,motionAppear:!0,motionEnter:!0,motionLeave:!0,onVisibleChanged:ge},({className:e,style:r})=>{let a={...k.root,...r};return j&&(a.zIndex=j),x.createElement(`div`,{ref:P,className:Z(t,n,O.root,e,{[`${t}-movable`]:s,[`${t}-moving`]:G}),style:a,role:`dialog`,"aria-modal":`true`,"aria-label":i,tabIndex:-1},x.createElement(`div`,{className:Z(`${t}-mask`,O.mask),style:k.mask,onClick:d?c:void 0}),x.createElement(`div`,{className:Z(`${t}-body`,O.body),style:be},C?C(re,{transform:V,image:ie,...I?{current:h}:{}}):re),p!==!1&&p!==null&&x.createElement(BW,{prefixCls:t,icon:p===!0?f.close:p||f.close,onClick:c,className:O.close,style:k.close}),L&&x.createElement(HW,{prefixCls:t,current:h,count:g,icons:f,onActive:fe}),x.createElement(VW,{prefixCls:t,showProgress:R,current:h,count:g,showSwitch:L,classNames:O,styles:k,image:ie,transform:V,icons:f,countRender:_,actionsRender:T,scale:X,minScale:y,maxScale:b,onActive:fe,onFlipY:ue,onFlipX:le,onRotateLeft:ce,onRotateRight:se,onZoomOut:oe,onZoomIn:ae,onClose:c,onReset:de}))}))},KW=[`crossOrigin`,`decoding`,`draggable`,`loading`,`referrerPolicy`,`sizes`,`srcSet`,`useMap`,`alt`,`fetchPriority`];function qW(e){let[t,n]=x.useState({}),r=x.useCallback((e,t)=>(n(n=>({...n,[e]:t})),()=>{n(t=>{let n={...t};return delete n[e],n})}),[]);return[x.useMemo(()=>e?e.map(e=>{if(typeof e==`string`)return{data:{src:e}};let t={};return Object.keys(e).forEach(n=>{[`src`,...KW].includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(t).reduce((e,n)=>{let{canPreview:r,data:i}=t[n];return r&&e.push({data:i,id:n}),e},[]),[e,t]),r,!!e]}function JW(){return JW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JW.apply(this,arguments)}var YW=({previewPrefixCls:e=`rc-image-preview`,classNames:t,styles:n,children:r,icons:i={},items:a,preview:o,fallback:s})=>{let{open:c,onOpenChange:l,current:u,onChange:d,...f}=o&&typeof o==`object`?o:{},[p,m,h]=qW(a),[g,_]=Vn(0,u),[v,y]=(0,x.useState)(!1),{src:b,...S}=p[g]?.data||{},[C,w]=Vn(!!c,c),T=Fn(e=>{w(e),e!==C&&l?.(e,{current:g})}),[E,D]=(0,x.useState)(null),O=x.useCallback((e,t,n,r)=>{let i=h?p.findIndex(e=>e.data.src===t):p.findIndex(t=>t.id===e);_(i<0?0:i),T(!0),D({x:n,y:r}),y(!0)},[p,h]);x.useEffect(()=>{C?v||_(0):y(!1)},[C]);let k=(e,t)=>{_(e),d?.(e,t)},A=()=>{T(!1),D(null)},j=x.useMemo(()=>({register:m,onPreview:O}),[m,O]);return x.createElement(OW.Provider,{value:j},r,x.createElement(GW,JW({"aria-hidden":!C,open:C,prefixCls:e,onClose:A,mousePosition:E,imgCommonProps:S,src:b,fallback:s,icons:i,current:g,count:p.length,onChange:k},f,{classNames:t?.popup,styles:n?.popup})))},XW=0;function ZW(e,t){let[n]=x.useState(()=>(XW+=1,String(XW))),r=x.useContext(OW),i={data:t,canPreview:e};return x.useEffect(()=>{if(r)return r.register(n,i)},[]),x.useEffect(()=>{r&&r.register(n,i)},[e,t]),n}function QW(){return QW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QW.apply(this,arguments)}var $W=e=>{let{prefixCls:t=`rc-image`,previewPrefixCls:n=`${t}-preview`,rootClassName:r,className:i,style:a,classNames:o={},styles:s={},width:c,height:l,src:u,alt:d,placeholder:f,fallback:p,preview:m=!0,onClick:h,onError:g,onKeyDown:_,...v}=e,y=(0,x.useContext)(OW),b=!!m,{src:S,open:C,onOpenChange:w,cover:T,rootClassName:E,...D}=m&&typeof m==`object`?m:{},O=typeof T==`object`&&T.placement&&T.placement||`center`,k=typeof T==`object`&&T.coverNode?T.coverNode:T,[A,j]=Vn(!!C,C),[M,N]=(0,x.useState)(null),P=e=>{j(e),w?.(e)},F=()=>{P(!1)},I=f&&f!==!0,L=S??u,[R,z,B]=IW({src:u,isCustomPlaceholder:I,fallback:p}),V=(0,x.useMemo)(()=>{let t={};return KW.forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),t},KW.map(t=>e[t])),H=ZW(b,(0,x.useMemo)(()=>({...V,src:L}),[L,V])),U=e=>{let t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;y?y.onPreview(H,L,n,r):(N({x:n,y:r}),P(!0)),h?.(e)},W=e=>{if(_?.(e),b&&(e.key===`Enter`||e.key===` `)){e.preventDefault();let t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;y?y.onPreview(H,L,n,r):(N({x:n,y:r}),P(!0))}};return x.createElement(x.Fragment,null,x.createElement(`div`,QW({},v,{className:Z(t,r,o.root,{[`${t}-error`]:B===`error`}),onClick:b?U:h,role:b?`button`:v.role,tabIndex:b&&v.tabIndex==null?0:v.tabIndex,"aria-label":b?v[`aria-label`]??d:v[`aria-label`],onKeyDown:W,style:{width:c,height:l,...s.root}}),x.createElement(`img`,QW({},V,{className:Z(`${t}-img`,{[`${t}-img-placeholder`]:f===!0},o.image,i),style:{height:l,...s.image,...a},ref:R},z,{width:c,height:l,onError:g})),B===`loading`&&x.createElement(`div`,{"aria-hidden":`true`,className:`${t}-placeholder`},f),T!==!1&&b&&x.createElement(`div`,{className:Z(`${t}-cover`,o.cover,`${t}-cover-${O}`),style:{display:a?.display===`none`?`none`:void 0,...s.cover}},k)),!y&&b&&x.createElement(GW,QW({"aria-hidden":!A,open:A,prefixCls:n,onClose:F,mousePosition:M,src:L,alt:d,imageInfo:{width:c,height:l},fallback:p,imgCommonProps:V},D,{classNames:o?.popup,styles:s?.popup,rootClassName:Z(E,r)})))};$W.PreviewGroup=YW;var eG=$W,tG=(e,t,n,r,i,a,o)=>{let[s]=Mf(`ImagePreview`,e?.zIndex),[c,l]=df(e?.mask,t?.mask,`${n}-preview`);return x.useMemo(()=>{if(!e)return e;let{cover:u,getContainer:d,closeIcon:f,rootClassName:p}=e,{closeIcon:m}=t??{};return{motionName:hh(`${n}-preview`,`fade`),...e,...o?{cover:u??o}:{},icons:a,getContainer:d??i,zIndex:s,closeIcon:f??m,rootClassName:Z(r,p),mask:c,blurClassName:l.mask}},[e,t,n,r,i,o,a,s,c,l])};function nG(e){return(0,x.isValidElement)(e)?[e,void 0]:typeof e==`boolean`||Zd(e)?[void 0,e]:[void 0,void 0]}function rG(e){let t=(0,x.useMemo)(()=>typeof e==`boolean`?e?{}:null:Zd(e)?e:{},[e]);return(0,x.useMemo)(()=>{if(!t)return[t,``,``];let{open:e,onOpenChange:n,cover:r,actionsRender:i,visible:a,onVisibleChange:o,rootClassName:s,maskClassName:c,mask:l,forceRender:u,destroyOnClose:d,toolbarRender:f,...p}=t,m;n?m=n:o&&(m=(e,t)=>{let{current:n}=t||{};n===void 0?o(e,!e):o(e,!e,n)});let[h,g]=nG(l);return[{...p,open:e??a,onOpenChange:m,cover:r??h,mask:g,actionsRender:i??f},s,c]},[t])}var iG=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z`}},{tag:`path`,attrs:{d:`M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z`}}]},name:`rotate-left`,theme:`outlined`}}))());function aG(){return aG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aG.apply(this,arguments)}var oG=x.forwardRef((e,t)=>x.createElement(_u,aG({},e,{ref:t,icon:iG.default}))),sG=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z`}},{tag:`path`,attrs:{d:`M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z`}}]},name:`rotate-right`,theme:`outlined`}}))());function cG(){return cG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cG.apply(this,arguments)}var lG=x.forwardRef((e,t)=>x.createElement(_u,cG({},e,{ref:t,icon:sG.default}))),uG=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`swap`,theme:`outlined`}}))());function dG(){return dG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dG.apply(this,arguments)}var fG=x.forwardRef((e,t)=>x.createElement(_u,dG({},e,{ref:t,icon:uG.default}))),pG=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z`}}]},name:`zoom-in`,theme:`outlined`}}))());function mG(){return mG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mG.apply(this,arguments)}var hG=x.forwardRef((e,t)=>x.createElement(_u,mG({},e,{ref:t,icon:pG.default}))),gG=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z`}}]},name:`zoom-out`,theme:`outlined`}}))());function _G(){return _G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_G.apply(this,arguments)}var vG=x.forwardRef((e,t)=>x.createElement(_u,_G({},e,{ref:t,icon:gG.default}))),yG=e=>({position:e||`absolute`,inset:0}),bG=e=>{let{componentCls:t,motionDurationSlow:n,colorTextLightSolid:r}=e;return{[t]:{[`${t}-cover`]:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:r,background:new Oc(`#000`).setA(.3).toRgbString(),cursor:`pointer`,opacity:0,transition:`opacity ${n}`},"&:hover, &:focus-visible":{[`${t}-cover`]:{opacity:1}},[`${t}-cover-top`]:{inset:`0 0 auto 0`,justifyContent:`center`},[`${t}-cover-bottom`]:{inset:`auto 0 0 0`,justifyContent:`center`}}}},xG=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i,colorBgMask:a,marginXL:o,marginSM:s,margin:c,colorTextLightSolid:l,paddingSM:u,paddingLG:d,previewOperationHoverColor:f,previewOperationColorDisabled:p,previewOperationSize:m,zIndexPopup:h}=e,g=new Oc(a).setA(.1),_=g.clone().setA(.2),v={position:`absolute`,color:l,backgroundColor:g.toRgbString(),borderRadius:`50%`,padding:u,outline:0,border:0,cursor:`pointer`,transition:`all ${r}`,display:`flex`,fontSize:m,"&:hover":{backgroundColor:_.toRgbString()},"&:active":{backgroundColor:g.toRgbString()},"&:focus-visible":Vl(e)};return{[`${i}-preview`]:{textAlign:`center`,inset:0,position:`fixed`,userSelect:`none`,zIndex:h,[`${n}-mask`]:{inset:0,position:`absolute`,background:a,backdropFilter:`blur(0px)`,transition:`backdrop-filter ${r}`,[`&${i}-preview-mask-blur`]:{backdropFilter:`blur(4px)`},[`&${i}-preview-mask-hidden`]:{display:`none`}},[`${n}-body`]:{...yG(),"pointer-events":`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,"> *":{pointerEvents:`auto`}},[`${n}-img`]:{maxWidth:`100%`,maxHeight:`70%`,verticalAlign:`middle`,transform:`scale3d(1, 1, 1)`,transition:`transform ${r} ${t} 0s`},[`&-movable ${n}-img`]:{cursor:`grab`},[`&-moving ${n}-img`]:{cursor:`grabbing`},[`${n}-close`]:{...v,top:s,insetInlineEnd:s},[`${n}-switch`]:{...v,top:`50%`,transform:`translateY(-50%)`,"&-disabled":{"&, &:hover, &:active":{color:p,background:`transparent`,cursor:`not-allowed`}},"&-prev":{insetInlineStart:s},"&-next":{insetInlineEnd:s}},[`${n}-footer`]:{position:`absolute`,bottom:o,left:{_skip_check_:!0,value:`50%`},display:`flex`,flexDirection:`column`,alignItems:`center`,color:e.previewOperationColor,transform:`translateX(-50%)`,gap:c},[`${n}-actions`]:{display:`flex`,gap:u,padding:`0 ${Q(d)}`,backgroundColor:g.toRgbString(),borderRadius:100,fontSize:m,"&-action":{color:`inherit`,background:`transparent`,border:0,font:`inherit`,padding:u,cursor:`pointer`,transition:`all ${r}`,display:`flex`,[`&:not(${n}-actions-action-disabled):hover`]:{color:f},"&:focus-visible":Vl(e),"&-disabled":{color:p,cursor:`not-allowed`}}}}}},SG=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,display:`inline-block`,...Hl(e),[`${t}-img`]:{width:`100%`,height:`auto`,verticalAlign:`middle`},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:`url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')`,backgroundRepeat:`no-repeat`,backgroundPosition:`center center`,backgroundSize:`30%`},[`${t}-placeholder`]:{...yG()}}}},CG=e=>{let{previewCls:t,motionDurationSlow:n}=e;return{[t]:{"&-fade":{transition:`opacity ${n}`,"&-enter, &-appear":{opacity:0,[`${t}-body`]:{transform:`scale(0)`},"&-active":{opacity:1,[`${t}-body`]:{transform:`scale(1)`,transition:`transform ${n}`}}},"&-leave":{opacity:1,"&-active":{opacity:0,[`${t}-body`]:{transform:`scale(0)`,transition:`transform ${n}`}}}}}}},wG=ql(`Image`,e=>{let t=oc(e,{previewCls:`${e.componentCls}-preview`,imagePreviewSwitchSize:e.controlHeightLG});return[SG(t),bG(t),xG(t),CG(t)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Oc(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Oc(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Oc(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),TG={rotateLeft:x.createElement(oG,null),rotateRight:x.createElement(lG,null),zoomIn:x.createElement(hG,null),zoomOut:x.createElement(vG,null),close:x.createElement(Eu,null),left:x.createElement(CT,null),right:x.createElement(Bg,null),flipX:x.createElement(fG,null),flipY:x.createElement(fG,{rotate:90})},EG=({previewPrefixCls:e,preview:t,classNames:n,styles:r,...i})=>{let{getPrefixCls:a,getPopupContainer:o,direction:s,preview:c,classNames:l,styles:u}=ma(`image`),d=a(`image`,e),f=`${d}-preview`,p=np(d),[m,h]=wG(d,p),g=Z(m,h,p),[_,v,y]=rG(t),[b,S,C]=rG(c),w=x.useMemo(()=>({...TG,left:s===`rtl`?x.createElement(Bg,null):x.createElement(CT,null),right:s===`rtl`?x.createElement(CT,null):x.createElement(Bg,null)}),[s]),T=tG(_,b,d,g,o,TG),{mask:E,blurClassName:D}=T??{},O={...i,classNames:n,styles:r},[k,A]=vf([l,n,{cover:Z(C,y),popup:{root:Z(S,v),mask:Z({[`${d}-preview-mask-hidden`]:!E},D)}}],[u,r],{props:O},{popup:{_default:`root`}});return x.createElement(eG.PreviewGroup,{preview:T,previewPrefixCls:f,icons:w,...i,classNames:k,styles:A})},DG=e=>{let{prefixCls:t,preview:n,className:r,rootClassName:i,style:a,styles:o,classNames:s,wrapperStyle:c,fallback:l,...u}=e,{getPrefixCls:d,getPopupContainer:f,className:p,style:m,preview:h,styles:g,classNames:_,fallback:v}=ma(`image`),y=d(`image`,t),b=np(y),[S,C]=wG(y,b),w=Z(i,S,C,b),T=Z(r,S,p),[E,D,O]=rG(n),[k,A,j]=rG(h),M=tG(E,k,y,w,f,TG,!0),N={...e,preview:M},P=x.useMemo(()=>({cover:Z(j,O),popup:{root:Z(A,D)}}),[D,O,A,j]),{mask:F,blurClassName:I}=M??{},L=x.useMemo(()=>({mask:Z({[`${y}-preview-mask-hidden`]:!F},I)}),[F,y,I]),[R,z]=vf(x.useMemo(()=>[_,s,P,{popup:L}],[_,s,P,L]),[g,{root:c},o],{props:N},{popup:{_default:`root`}}),B={...m,...a},V=l??v;return x.createElement(eG,{prefixCls:y,preview:M||!1,rootClassName:w,className:T,style:B,fallback:V,...u,classNames:R,styles:z})};DG.PreviewGroup=EG;var OG=e=>{let{getPrefixCls:t,direction:n}=(0,x.useContext)(da),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=vR(t(`input`)),c=Z(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,x.useContext)(ky),u=(0,x.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return x.createElement(ky.Provider,{value:u},x.createElement(NU.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},kG=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},AG=ql([`Input`,`OTP`],e=>kG(oc(e,KL(e))),qL),jG=x.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=x.useContext(da),d=u(`otp`),f=typeof s==`string`?s:r,p=x.useRef(null);x.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Ci(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return x.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&x.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),x.createElement(JV,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:Z(n,{[`${d}-mask-input`]:s})}))});function MG(e){return(e||``).split(``)}var NG=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?x.createElement(`span`,{className:Z(`${n}-separator`,i),style:a},o):null},PG=x.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:v,inputMode:y,classNames:b,styles:S,className:C,style:w,...T}=e,{classNames:E,styles:D,getPrefixCls:O,direction:k,style:A,className:j}=ma(`otp`),M=O(`otp`,n),N={...e,length:r},[P,F]=vf([E,b],[D,S],{props:N}),I=_i(T,{aria:!0,data:!0,attr:!0}),[L,R]=AG(M),z=Th(e=>i??e),B=x.useContext(ky),V=LC(B.status,f),H=x.useMemo(()=>({...B,status:V,hasFeedback:!1,feedbackIcon:null}),[B,V]),U=x.useRef(null),W=x.useRef({});x.useImperativeHandle(t,()=>({focus:()=>{W.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)W.current[e]?.blur()},nativeElement:U.current}));let G=e=>c?c(e):e,[K,ee]=x.useState(()=>MG(G(a||``)));x.useEffect(()=>{o!==void 0&&ee(MG(o))},[o]);let te=Fn(e=>{ee(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>K[t]!==e)&&s(e.join(``))}),q=Fn((e,t)=>{let n=ca(K);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat(MG(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=MG(G(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),J=(e,t)=>{let n=q(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&W.current[i]?.focus(),te(n)},Y=e=>{W.current[e]?.focus()},ne=(e,t)=>{for(let e=0;e<t;e+=1)if(!W.current[e]?.input?.value){W.current[e]?.focus();break}v?.(e)},X={variant:u,disabled:d,status:V,mask:m,type:h,inputMode:y,autoComplete:g};return x.createElement(`div`,{...I,ref:U,className:Z(C,M,{[`${M}-sm`]:z===`small`,[`${M}-lg`]:z===`large`,[`${M}-rtl`]:k===`rtl`},R,L,j,P.root),style:{...F.root,...A,...w},role:`group`},x.createElement(ky.Provider,{value:H},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=K[t]||``;return x.createElement(x.Fragment,{key:n},x.createElement(jG,{ref:e=>{W.current[t]=e},index:t,size:z,htmlSize:1,className:Z(P.input,`${M}-input`),style:F.input,onChange:J,value:i,onActiveChange:Y,autoFocus:t===0&&p,onFocus:e=>ne(e,t),...X}),t<r-1&&x.createElement(NG,{separator:l,index:t,prefixCls:M,className:Z(P.separator),style:F.separator}))})))}),FG=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z`}},{tag:`path`,attrs:{d:`M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z`}}]},name:`eye-invisible`,theme:`outlined`}}))());function IG(){return IG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IG.apply(this,arguments)}var LG=x.forwardRef((e,t)=>x.createElement(_u,IG({},e,{ref:t,icon:FG.default}))),RG=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z`}}]},name:`eye`,theme:`outlined`}}))());function zG(){return zG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zG.apply(this,arguments)}var BG=x.forwardRef((e,t)=>x.createElement(_u,zG({},e,{ref:t,icon:RG.default}))),VG=e=>e?x.createElement(BG,null):x.createElement(LG,null),HG={click:`onClick`,hover:`onMouseOver`},UG=x.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=VG,suffix:o}=e,s=x.useContext(lm),c=n??s,l=Zd(i)&&i.visible!==void 0,[u,d]=(0,x.useState)(()=>l?i.visible:!1),f=(0,x.useRef)(null);x.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=KV(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),Zd(i)&&i.onVisibleChange?.(e)},h=e=>{let t=HG[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return x.cloneElement(x.isValidElement(n)?n:x.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:v,size:y,...b}=e,{getPrefixCls:S}=x.useContext(da),C=S(`input`,v),w=S(`input-password`,_),T=i&&h(w),E=Z(w,g,{[`${w}-${y}`]:!!y}),D={...fi(b,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:x.createElement(x.Fragment,null,T,o)};return y&&(D.size=y),x.createElement(JV,{ref:ir(t,f),...D})}),WG=ql([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),GG=x.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:v,hidden:y,...b}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=ma(`inputSearch`),E={...e,enterButton:s},[D,O]=vf([w,_],[T,v],{props:E},{button:{_default:`root`}}),k=x.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=WG(A),{compactSize:P}=Oh(A,S),F=Th(e=>a??P??e),I=x.useRef(null),L=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},R=e=>{document.activeElement===I.current?.input&&e.preventDefault()},z=e=>{d&&d(I.current?.input?.value,e,{source:`input`})},B=e=>{k.current||l||(g?.(e),z(e))},V=typeof s==`boolean`?x.createElement(hw,null):null,H=`${A}-btn`,U=Z(H,{[`${H}-${h}`]:h}),W,G=s||{},K=G.type&&G.type.__ANT_BUTTON===!0;W=K||G.type===`button`?im(G,{onMouseDown:R,onClick:e=>{G?.props?.onClick?.(e),z(e)},key:`enterButton`,...K?{className:U,size:F}:{}}):x.createElement(x_,{classNames:D.button,styles:O.button,className:U,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:R,onClick:z,loading:l,icon:V,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(W=[W,im(c,{key:`addonAfter`})]);let ee=Z(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),te=e=>{k.current=!0,p?.(e)},q=e=>{k.current=!1,m?.(e)},J=_i(b,{data:!0}),Y=fi({...b,classNames:fi(D,[`button`,`root`]),styles:fi(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:B,onCompositionStart:te,onCompositionEnd:q,onChange:L,disabled:u},Object.keys(J));return x.createElement(jh,{className:ee,style:{...o,...O.root},...J,hidden:y},x.createElement(JV,{ref:ir(I,t),...Y}),W)}),KG=`
|
||
min-height:0 !important;
|
||
max-height:none !important;
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
pointer-events: none !important;
|
||
`,qG=[`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`],JG={},YG;function XG(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&JG[n])return JG[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:qG.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(JG[n]=s),s}function ZG(e,t=!1,n=null,r=null){YG||(YG=document.createElement(`textarea`),YG.setAttribute(`tab-index`,`-1`),YG.setAttribute(`aria-hidden`,`true`),YG.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(YG)),e.getAttribute(`wrap`)?YG.setAttribute(`wrap`,e.getAttribute(`wrap`)):YG.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=XG(e,t);YG.setAttribute(`style`,`${s};${KG}`),YG.value=e.value||e.placeholder||``;let c,l,u,d=YG.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){YG.value=` `;let e=YG.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function QG(){return QG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QG.apply(this,arguments)}var $G=0,eK=1,tK=2,nK=x.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=Vn(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=x.useRef();x.useImperativeHandle(t,()=>({textArea:_.current}));let[v,y]=x.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),b=!!a,[S,C]=x.useState(tK),[w,T]=x.useState(),E=()=>{C($G)};Rn(()=>{b&&E()},[i,v,y,b]),Rn(()=>{if(S===$G)C(eK);else if(S===eK){let e=ZG(_.current,!1,v,y);C(tK),T(e)}},[S]);let D=x.useRef(),O=()=>{Ci.cancel(D.current)},k=e=>{S===tK&&(o?.(e),a&&(O(),D.current=Ci(()=>{E()})))};x.useEffect(()=>O,[]);let A=b?w:null,j={...c,...A};return(S===$G||S===eK)&&(j.overflowY=`hidden`,j.overflowX=`hidden`),x.createElement(ta,{onResize:k,disabled:!(a||o)},x.createElement(`textarea`,QG({},f,{ref:_,style:j,className:Z(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function rK(){return rK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rK.apply(this,arguments)}var iK=x.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:v,onResize:y,onClear:b,onPressEnter:S,readOnly:C,autoSize:w,onKeyDown:T,...E},D)=>{let[O,k]=Vn(e,t),A=O==null?``:String(O),[j,M]=x.useState(!1),N=x.useRef(!1),[P,F]=x.useState(null),I=(0,x.useRef)(null),L=(0,x.useRef)(null),R=()=>L.current?.textArea,z=()=>{R().focus()};(0,x.useImperativeHandle)(D,()=>({resizableTextArea:L.current,focus:z,blur:()=>{R().blur()},nativeElement:I.current?.nativeElement||R()})),(0,x.useEffect)(()=>{M(e=>!h&&e)},[h]);let[B,V]=x.useState(null);x.useEffect(()=>{B&&R().setSelectionRange(...B)},[B]);let H=HV(f,d),U=H.max??o,W=Number(U)>0,G=H.strategy(A),K=!!U&&G>U,ee=(e,t)=>{let n=t;!N.current&&H.exceedFormatter&&H.max&&H.strategy(t)>H.max&&(n=H.exceedFormatter(t,{max:H.max}),t!==n&&V([R().selectionStart||0,R().selectionEnd||0])),k(n),zV(e.currentTarget,e,i,n)},te=e=>{N.current=!0,s?.(e)},q=e=>{N.current=!1,ee(e,e.currentTarget.value),c?.(e)},J=e=>{ee(e,e.target.value)},Y=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),T?.(e)},ne=e=>{M(!0),n?.(e)},X=e=>{M(!1),r?.(e)},re=e=>{k(``),z(),zV(R(),e,i)},ie=l,ae;H.show&&(ae=H.showFormatter?H.showFormatter({value:A,count:G,maxLength:U}):`${G}${W?` / ${U}`:``}`,ie=x.createElement(x.Fragment,null,ie,x.createElement(`span`,{className:Z(`${u}-data-count`,_?.count),style:v?.count},ae)));let oe=e=>{y?.(e),R()?.style.height&&F(!0)},se=!w&&!d&&!a;return x.createElement(VV,{ref:I,value:A,allowClear:a,handleReset:re,suffix:ie,prefixCls:u,classNames:{..._,affixWrapper:Z(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:j,className:Z(p,K&&`${u}-out-of-range`),style:{...m,...P&&!se?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof ae==`string`?ae:void 0}},hidden:g,readOnly:C,onClear:b},x.createElement(nK,rK({},E,{autoSize:w,maxLength:o,onKeyDown:Y,onChange:J,onFocus:ne,onBlur:X,onCompositionStart:te,onCompositionEnd:q,className:Z(_?.textarea),style:{resize:m?.resize,...v?.textarea},disabled:h,prefixCls:u,onResize:oe,ref:L,readOnly:C})))}),aK=e=>{let{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`}},[`
|
||
&-allow-clear > ${t},
|
||
&-affix-wrapper${r}-has-feedback ${t}
|
||
`]:{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}}}}}},oK=ql([`Input`,`TextArea`],e=>aK(oc(e,KL(e))),qL,{resetFont:!1}),sK=(0,x.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:v,direction:y,allowClear:b,autoComplete:S,className:C,style:w,classNames:T,styles:E}=ma(`textArea`),D=x.useContext(lm),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=x.useContext(ky),M=LC(k,o),[N,P]=vf([T,c],[E,f],{props:e}),F=x.useRef(null);x.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{kr(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=v(`input`,n),L=np(I),[R,z]=_R(I,l);oK(I,L);let{compactSize:B,compactItemClassnames:V}=Oh(I,y),H=Th(e=>i??B??e),[U,W]=KC(`textArea`,p,r),G=GV(s??b),[K,ee]=x.useState(!1),[te,q]=x.useState(!1),J=e=>{ee(!0),h?.(e);let t=()=>{ee(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},Y=e=>{if(g?.(e),K&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&q(!0)}};return x.createElement(iK,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:G,className:Z(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:te}),classNames:{...N,textarea:Z({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,K&&`${I}-mouse-active`),variant:Z({[`${I}-${U}`]:W},IC(I,M)),affixWrapper:Z(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:y===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&x.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:Y,onMouseDown:J})}),cK=JV;cK.Group=OG,cK.Search=GG,cK.TextArea=sK,cK.Password=UG,cK.OTP=PG;function lK(e,t,n){return typeof n==`boolean`?n:e.length?!0:wi(t).some(e=>e.type===$E)}var uK=({suffixCls:e,tagName:t,displayName:n})=>n=>x.forwardRef((r,i)=>x.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),dK=x.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=x.useContext(da),c=s(`layout`,n),[l]=qE(c),u=r?`${c}-${r}`:c;return x.createElement(a,{className:Z(n||u,i,l),ref:t,...o})}),fK=x.forwardRef((e,t)=>{let{direction:n}=x.useContext(da),[r,i]=x.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=fi(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=ma(`layout`),_=m(`layout`,a),v=lK(r,c,l),[y,b]=qE(_),S=Z(_,{[`${_}-has-sider`]:v,[`${_}-rtl`]:n===`rtl`},h,o,s,y,b),C=x.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(ca(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return x.createElement(UE.Provider,{value:C},x.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),pK=uK({tagName:`div`,displayName:`Layout`})(fK),mK=uK({suffixCls:`header`,tagName:`header`,displayName:`Header`})(dK),hK=uK({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(dK),gK=uK({suffixCls:`content`,tagName:`main`,displayName:`Content`})(dK),_K=pK;_K.Header=mK,_K.Footer=hK,_K.Content=gK,_K.Sider=$E,_K._InternalSiderContext=ZE;var vK=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function yK(){return yK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yK.apply(this,arguments)}var bK=x.forwardRef((e,t)=>x.createElement(_u,yK({},e,{ref:t,icon:vK.default}))),xK=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function SK(){return SK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SK.apply(this,arguments)}var CK=x.forwardRef((e,t)=>x.createElement(_u,SK({},e,{ref:t,icon:xK.default}))),wK={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:`页码`},TK=[10,20,50,100],EK=e=>{let{pageSizeOptions:t=TK,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=x.useState(``),m=x.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},v=e=>{f!==``&&(e.keyCode===Jr.ENTER||e.type===`click`)&&(p(``),o?.(m))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?x.createElement(`button`,{type:`button`,onClick:v,onKeyUp:v,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):x.createElement(`span`,{onClick:v,onKeyUp:v},a)),C=x.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,x.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:v,onBlur:_,"aria-label":n.page}),n.page,w)),x.createElement(`li`,{className:b},S,C)},DK=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=Z(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,x.createElement(`a`,{rel:`nofollow`},n));return m?x.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function OK(){return OK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OK.apply(this,arguments)}var kK=(e,t,n)=>n;function AK(){}function jK(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function MK(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var NK=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=AK,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:v=AK,locale:y=wK,style:b,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:T,showSizeChanger:E=c>S,sizeChangerRender:D,pageSizeOptions:O,itemRender:k=kK,jumpPrevIcon:A,jumpNextIcon:j,prevIcon:M,nextIcon:N}=e,P=x.useRef(null),[F,I]=Vn(u,l),[L,R]=Vn(s,o),z=Math.max(1,Math.min(L,MK(void 0,F,c))),[B,V]=x.useState(z);(0,x.useEffect)(()=>{V(z)},[z]),`current`in e;let H=Math.max(1,z-(g?3:5)),U=Math.min(MK(void 0,F,c),z+(g?3:5));function W(n,r){let i=n||x.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=x.createElement(n,e)),i}function G(e){let t=e.target.value,n=MK(void 0,F,c),r;return r=t===``?t:Number.isNaN(Number(t))?B:t>=n?n:Number(t),r}function K(e){return jK(e)&&e!==z&&jK(c)&&c>0}let ee=c>F?h:!1;function te(e){(e.keyCode===Jr.UP||e.keyCode===Jr.DOWN)&&e.preventDefault()}function q(e){let t=G(e);switch(t!==B&&V(t),e.keyCode){case Jr.ENTER:ne(t);break;case Jr.UP:ne(t-1);break;case Jr.DOWN:ne(t+1);break;default:break}}function J(e){ne(G(e))}function Y(e){let t=MK(e,F,c),n=z>t&&t!==0?t:z;I(e),V(n),v?.(z,e),R(n),d?.(n,e)}function ne(e){if(K(e)&&!C){let t=MK(void 0,F,c),n=e;return e>t?n=t:e<1&&(n=1),n!==B&&V(n),R(n),d?.(n,F),n}return z}let X=z>1,re=z<MK(void 0,F,c);function ie(){X&&ne(z-1)}function ae(){re&&ne(z+1)}function oe(){ne(H)}function se(){ne(U)}function ce(e,t,...n){(e.key===`Enter`||e.charCode===Jr.ENTER||e.keyCode===Jr.ENTER)&&t(...n)}function le(e){ce(e,ie)}function ue(e){ce(e,ae)}function de(e){ce(e,oe)}function fe(e){ce(e,se)}function pe(e){let t=k(e,`prev`,W(M,`prev page`));return x.isValidElement(t)?x.cloneElement(t,{disabled:!X}):t}function me(e){let t=k(e,`next`,W(N,`next page`));return x.isValidElement(t)?x.cloneElement(t,{disabled:!re}):t}function he(e){(e.type===`click`||e.keyCode===Jr.ENTER)&&ne(B)}let ge=null,_e=_i(e,{aria:!0,data:!0}),ve=T&&x.createElement(`li`,{className:`${t}-total-text`},T(c,[c===0?0:(z-1)*F+1,z*F>c?c:z*F])),ye=null,be=MK(void 0,F,c);if(f&&c<=F)return null;let xe=[],Se={rootPrefixCls:t,onClick:ne,onKeyPress:ce,showTitle:_,itemRender:k,page:-1,className:i?.item,style:a?.item},Ce=z-1>0?z-1:0,we=z+1<be?z+1:be,Te=h&&h.goButton,Ee=typeof w==`object`?w.readOnly:!w,De=Te,Oe=null;w&&(Te&&(De=typeof Te==`boolean`?x.createElement(`button`,{type:`button`,onClick:he,onKeyUp:he},y.jump_to_confirm):x.createElement(`span`,{onClick:he,onKeyUp:he},Te),De=x.createElement(`li`,{title:_?`${y.jump_to}${z}/${be}`:null,className:`${t}-simple-pager`},De)),Oe=x.createElement(`li`,{title:_?`${z}/${be}`:null,className:Z(`${t}-simple-pager`,i?.item),style:a?.item},Ee?B:x.createElement(`input`,{type:`text`,"aria-label":y.jump_to,value:B,disabled:C,onKeyDown:te,onKeyUp:q,onChange:q,onBlur:J,size:3}),x.createElement(`span`,{className:`${t}-slash`},`/`),be));let ke=g?1:2;if(be<=3+ke*2){be||xe.push(x.createElement(DK,OK({},Se,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=be;e+=1)xe.push(x.createElement(DK,OK({},Se,{key:e,page:e,active:z===e})))}else{let e=g?y.prev_3:y.prev_5,n=g?y.next_3:y.next_5,r=k(H,`jump-prev`,W(A,`prev page`)),i=k(U,`jump-next`,W(j,`next page`));m&&(ge=r?x.createElement(`li`,{title:_?e:null,key:`prev`,onClick:oe,tabIndex:0,onKeyDown:de,className:Z(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!A})},r):null,ye=i?x.createElement(`li`,{title:_?n:null,key:`next`,onClick:se,tabIndex:0,onKeyDown:fe,className:Z(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!j})},i):null);let a=Math.max(1,z-ke),o=Math.min(z+ke,be);z-1<=ke&&(o=1+ke*2),be-z<=ke&&(a=be-ke*2);for(let e=a;e<=o;e+=1)xe.push(x.createElement(DK,OK({},Se,{key:e,page:e,active:z===e})));if(z-1>=ke*2&&z!==3&&(xe[0]=x.cloneElement(xe[0],{className:Z(`${t}-item-after-jump-prev`,xe[0].props.className)}),xe.unshift(ge)),be-z>=ke*2&&z!==be-2){let e=xe[xe.length-1];xe[xe.length-1]=x.cloneElement(e,{className:Z(`${t}-item-before-jump-next`,e.props.className)}),xe.push(ye)}a!==1&&xe.unshift(x.createElement(DK,OK({},Se,{key:1,page:1}))),o!==be&&xe.push(x.createElement(DK,OK({},Se,{key:be,page:be})))}let Ae=pe(Ce);if(Ae){let e=!X||!be;Ae=x.createElement(`li`,{title:_?y.prev_page:null,onClick:ie,tabIndex:e?null:0,onKeyDown:le,className:Z(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ae)}let je=me(we);if(je){let e,n;w?(e=!re,n=X?0:null):(e=!re||!be,n=e?null:0),je=x.createElement(`li`,{title:_?y.next_page:null,onClick:ae,tabIndex:n,onKeyDown:ue,className:Z(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},je)}let Me=Z(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return x.createElement(`ul`,OK({className:Me,style:b,ref:P},_e),ve,Ae,w?Oe:xe,je,x.createElement(EK,{locale:y,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:Y,pageSize:F,pageSizeOptions:O,quickGo:ee?ne:null,goButton:De,showSizeChanger:E,sizeChangerRender:D}))},PK=e=>{let{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}}}}},FK=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...lR(e),width:e.paginationMiniQuickJumperInputWidth}}}}},IK=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...cR(e)}}}}},LK=e=>{let{componentCls:t,antCls:n}=e,[,r]=Xl(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${Q(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${Q(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:`${Q(e.inputOutlineOffset)} 0 ${Q(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}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},RK=e=>{let{componentCls:t,antCls:n}=e,[,r]=Xl(n,`pagination`);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}}},[`
|
||
${t}-prev,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{marginInlineEnd:r(`item-spacing-actual`)},[`
|
||
${t}-prev,
|
||
${t}-next,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),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:`${Q(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":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...uR(e),...YL(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...JL(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},zK=e=>{let{componentCls:t,antCls:n}=e,[,r]=Xl(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:Q(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${Q(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}}}}},BK=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Xl(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:Q(e.itemSize),[r(`item-spacing-actual`)]:Q(e.marginXS),"&-small":{[r(`item-size-actual`)]:Q(e.itemSizeSM),[r(`item-spacing-actual`)]:Q(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:Q(e.itemSizeLG),[r(`item-spacing-actual`)]:Q(e.marginSM)},...Rl(e),display:`flex`,alignItems:`center`,"&-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:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:Q(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...zK(e),...RK(e),...LK(e),...FK(e),...IK(e),...PK(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`}}},VK=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Hl(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Vl(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Vl(e)}}}},HK=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...qL(e)}),UK=e=>oc(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`},KL(e)),WK=ql(`Pagination`,e=>{let t=UK(e);return[BK(t),VK(t)]},HK),GK=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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:`${Q(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}}}}},KK=Yl([`Pagination`,`bordered`],e=>GK(UK(e)),HK);function qK(e){return(0,x.useMemo)(()=>typeof e==`boolean`?[e,{}]:Zd(e)?[!0,e]:[void 0,void 0],[e])}var JK=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=Dw(l),[,_]=Il(),{getPrefixCls:v,direction:y,showSizeChanger:b,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=ma(`pagination`),D=v(`pagination`,n),[O,k]=WK(D),A=Th(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=vf([w,m],[T,p],{props:M}),[F]=Wd(`Pagination`,wd),I={...F,...c},[L,R]=qK(u),[z,B]=qK(b),V=L??z,H=R??B,U=d||bw,W=x.useMemo(()=>f?f.map(Number):void 0,[f]),G=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return x.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:Z(a,s)})},K=x.useMemo(()=>{let e=x.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:x.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},y===`rtl`?x.createElement(Bg,null):x.createElement(CT,null)),nextIcon:x.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},y===`rtl`?x.createElement(CT,null):x.createElement(Bg,null)),jumpPrevIcon:x.createElement(`a`,{className:`${D}-item-link`},x.createElement(`div`,{className:`${D}-item-container`},y===`rtl`?x.createElement(CK,{className:`${D}-item-link-icon`}):x.createElement(bK,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:x.createElement(`a`,{className:`${D}-item-link`},x.createElement(`div`,{className:`${D}-item-container`},y===`rtl`?x.createElement(bK,{className:`${D}-item-link-icon`}):x.createElement(CK,{className:`${D}-item-link-icon`}),e))}},[y,D]),ee=v(`select`,r),te=Z({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:y===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),q={...P.root,...C,...o};return x.createElement(x.Fragment,null,_.wireframe&&x.createElement(KK,{prefixCls:D}),x.createElement(NK,{...K,...h,styles:P,classNames:N,style:q,prefixCls:D,selectPrefixCls:ee,className:te,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:G}))},YK=100,XK=YK/5,ZK=YK/2-XK/2,QK=ZK*2*Math.PI,$K=50,eq=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return x.createElement(`circle`,{className:Z(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:ZK,cx:$K,cy:$K,strokeWidth:XK,style:n})},tq=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=x.useState(!1);Rn(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${QK/4}`,strokeDasharray:`${QK*s/100} ${QK*(100-s)/100}`};return x.createElement(`span`,{className:Z(r,`${n}-progress`,{[i]:s<=0})},x.createElement(`svg`,{viewBox:`0 0 ${YK} ${YK}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},x.createElement(eq,{dotClassName:n,hasCircleCls:!0}),x.createElement(eq,{dotClassName:n,style:c})))};function nq(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return x.createElement(x.Fragment,null,x.createElement(`span`,{className:Z(o,r,n>0&&s),style:i},x.createElement(`span`,{className:Z(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>x.createElement(`i`,{className:`${t}-dot-item`,key:e})))),x.createElement(tq,{prefixCls:t,percent:n}))}function rq(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&x.isValidElement(n)?im(n,e=>({className:Z(e.className,o,i),style:{...e.style,...a},percent:r})):x.createElement(nq,{prefixCls:t,percent:r,className:i,style:a})}var iq=new Ds(`antSpinMove`,{to:{opacity:1}}),aq=new Ds(`antRotate`,{to:{transform:`rotate(405deg)`}}),oq=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Rl(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},sq=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Xl(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:aq,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:iq,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`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},cq=e=>{let{componentCls:t}=e,[n]=Xl(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},lq=ql(`Spin`,e=>{let t=oc(e,{spinDotDefault:e.colorTextDescription});return[oq(t),sq(t),cq(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),uq=200,dq=[[30,.05],[70,.03],[96,.01]];function fq(e,t){let[n,r]=x.useState(0),i=x.useRef(null),a=t===`auto`;return x.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<dq.length;n+=1){let[r,i]=dq[n];if(e<=r)return e+t*i}return e})},uq)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var pq;function mq(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var hq=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:v,direction:y,indicator:b,className:S,style:C,classNames:w,styles:T}=ma(`spin`),E=v(`spin`,t),[D,O]=lq(E),[k,A]=x.useState(()=>n&&!mq(n,r)),j=fq(k,m);x.useEffect(()=>{if(n){let e=Xz(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=Th(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=vf([w,h],[T,g],{props:P}),L=p??b??pq,R=d!==void 0,z=R||f,B=x.createElement(x.Fragment,null,x.createElement(rq,{className:Z(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&x.createElement(`div`,{className:Z(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return x.createElement(`div`,{className:Z(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:y===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?x.createElement(`div`,{className:Z(`${E}-section`,F.section),style:I.section},B):B),R&&x.createElement(`div`,{className:Z(`${E}-container`,F.container),style:I.container},d))};hq.setDefaultIndicator=e=>{pq=e};var gq=(e,t={})=>!Jd(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],_q=null,vq=e=>e(),yq=[],bq={};function xq(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=bq,a=e?.()||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}var Sq=x.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,x.useContext)(da),a=bq.prefixCls||i(`message`),o=(0,x.useContext)(Ax),[s,c]=sh({...n,prefixCls:a,...o.message});return x.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),Cq=x.forwardRef((e,t)=>{let[n,r]=x.useState(xq),i=()=>{r(xq)};x.useEffect(i,[]);let a=Dm(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=x.createElement(Sq,{ref:t,sync:i,messageConfig:n});return x.createElement(km,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),wq=()=>{if(!_q){let e=document.createDocumentFragment(),t={fragment:e};_q=t,vq(()=>{Pi(x.createElement(Cq,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,wq())})}}),e)});return}_q.instance&&(yq.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:vq(()=>{let t=_q.instance.open({...bq,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:vq(()=>{_q?.instance.destroy(e.key)});break;default:vq(()=>{var n;let r=(n=_q.instance)[t].apply(n,ca(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),yq=[])};function Tq(e){bq={...bq,...e},vq(()=>{_q?.sync?.()})}function Eq(e){let t=eh(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return yq.push(r),()=>{n?vq(()=>{n()}):r.skipped=!0}});return wq(),t}function Dq(e,t){let n=eh(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return yq.push(i),()=>{r?vq(()=>{r()}):i.skipped=!0}});return wq(),n}var Oq=e=>{yq.push({type:`destroy`,key:e}),wq()},kq=[`success`,`info`,`warning`,`error`,`loading`],Aq={open:Eq,destroy:Oq,config:Tq,useMessage:ch,_InternalPanelDoNotUseOrYouWillBeFired:Qm};kq.forEach(e=>{Aq[e]=(...t)=>Dq(e,t)});var jq=Ix(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=x.useContext(da),{className:p,style:m,classNames:h,styles:g}=ma(`modal`),_=f(),v=t||f(`modal`),y=np(_),[b,S]=Fb(v,y),[C,w]=vf([h,l],[g,u],{props:e}),T=`${v}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:x.createElement(Bb,{...e,prefixCls:v,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&x.createElement(_b,{...e}),children:s},x.createElement(N_,{prefixCls:v,className:Z(b,`${v}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,y,C.root),style:{...m,...w.root},...d,closeIcon:gb(v,r),closable:i,classNames:C,styles:w,...E})});function Mq(e){return qb(Jb(e))}var Nq=Lb;Nq.useModal=rx,Nq.info=function(e){return qb(Yb(e))},Nq.success=function(e){return qb(Xb(e))},Nq.error=function(e){return qb(Zb(e))},Nq.warning=Mq,Nq.warn=Mq,Nq.confirm=function(e){return qb(Qb(e))},Nq.destroyAll=function(){for(;Ub.length;){let e=Ub.pop();e&&e()}},Nq.config=$b,Nq._InternalPanelDoNotUseOrYouWillBeFired=jq;var Pq=ql(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),Fq=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=x.createElement(ku,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=x.useContext(da),[v]=Wd(`Popconfirm`,Ld.Popconfirm),y=Nw(i),b=Nw(a);return x.createElement(`div`,{className:`${t}-inner-content`,onClick:m},x.createElement(`div`,{className:`${t}-message`},l&&x.createElement(`span`,{className:`${t}-message-icon`},l),x.createElement(`div`,{className:`${t}-message-text`},y&&x.createElement(`div`,{className:Z(`${t}-title`,h?.title),style:g?.title},y),b&&x.createElement(`div`,{className:Z(`${t}-description`,h?.content),style:g?.content},b))),x.createElement(`div`,{className:`${t}-buttons`},u&&x.createElement(x_,{onClick:p,size:`small`,...r},o||v?.cancelText),x.createElement(S_,{buttonProps:{size:`small`,...Ih(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||v?.okText)))},Iq=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=x.useContext(da),s=o(`popconfirm`,t);return Pq(s),x.createElement(gT,{placement:n,className:Z(s,r),style:i,content:x.createElement(Fq,{prefixCls:s,...a})})},Lq=x.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=x.createElement(ku,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:v,styles:y,arrow:b,trigger:S}=ma(`popconfirm`),[C,w]=Vn(e.defaultOpen??!1,e.open),T=Qw(f,b),E=i||S||`click`,D=e=>{w(e),l?.(e)},O=()=>{D(!1)},k=t=>e.onConfirm?.call(void 0,t),A=t=>{D(!1),e.onCancel?.call(void 0,t)},j=t=>{let{disabled:n=!1}=e;n||D(t)},M=h(`popconfirm`,n),N={...e,placement:r,trigger:E,okType:a,overlayStyle:u,styles:d,classNames:p},[P,F]=vf([v,p],[y,d],{props:N}),I=Z(M,g,c,P.root);return Pq(M),x.createElement(_T,{arrow:T,...fi(m,[`title`]),trigger:E,placement:r,onOpenChange:j,open:C,ref:t,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{..._,...F.root,...u},container:F.container,arrow:F.arrow},content:x.createElement(Fq,{okType:a,icon:o,...e,prefixCls:M,close:O,onConfirm:k,onCancel:A,classNames:P,styles:F}),"data-popover-inject":!0},s)});Lq._InternalPanelDoNotUseOrYouWillBeFired=Iq;var Rq={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},zq=()=>{let e=(0,x.useRef)([]),t=(0,x.useRef)(null);return(0,x.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},Bq=({bg:e,children:t})=>x.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function Vq(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var Hq=x.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,m=p?`#FFF`:void 0,h=d/2,g=x.createElement(`circle`,{className:Z(`${n}-circle-path`,o),r:a,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return g;let _=`${i}-conic`,v=f?`${180+f/2}deg`:`0deg`,y=Vq(r,(360-f)/360),b=Vq(r,1),S=`conic-gradient(from ${v}, ${y.join(`, `)})`,C=`linear-gradient(to ${f?`bottom`:`top`}, ${b.join(`, `)})`;return x.createElement(x.Fragment,null,x.createElement(`mask`,{id:_},g),x.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${_})`},x.createElement(Bq,{bg:C},x.createElement(Bq,{bg:S}))))}),Uq=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},Wq=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:x.createElement(`style`,null,`@keyframes ${n} {
|
||
0% { transform: rotate(0deg); }
|
||
100% { transform: rotate(360deg); }
|
||
}`)}});function Gq(){return Gq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gq.apply(this,arguments)}function Kq(e){let t=e??[];return Array.isArray(t)?t:[t]}var qq=e=>{let{id:t,prefixCls:n,classNames:r={},styles:i={},steps:a,strokeWidth:o,railWidth:s,gapDegree:c=0,gapPosition:l,railColor:u,strokeLinecap:d,style:f,className:p,strokeColor:m,percent:h,loading:g,..._}={...Rq,...e},v=Kn(t),y=`${v}-gradient`,b=50-o/2,S=Math.PI*2*b,C=c>0?90+c/2:-90,w=S*((360-c)/360),{count:T,gap:E}=typeof a==`object`?a:{count:a,gap:2},D=Kq(h),O=Kq(m),k=O.find(e=>e&&typeof e==`object`),A=k&&typeof k==`object`?`butt`:d,{indeterminateStyleProps:j,indeterminateStyleAnimation:M}=Wq({id:v,loading:g}),N=Uq(S,w,0,100,C,c,l,u,A,o),P=zq(),F=()=>{let e=0;return D.map((t,a)=>{let s=O[a]||O[O.length-1],u=Uq(S,w,e,t,C,c,l,s,A,o);return e+=t,x.createElement(Hq,{key:a,color:s,ptg:t,radius:b,prefixCls:n,gradientId:y,className:r.track,style:{...u,...j,...i.track},strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:e=>{P[a]=e},size:100})}).reverse()},I=()=>{let e=Math.round(T*(D[0]/100)),t=100/T,a=0;return Array(T).fill(null).map((s,d)=>{let f=d<=e-1?O[0]:u,p=f&&typeof f==`object`?`url(#${y})`:void 0,m=Uq(S,w,a,t,C,c,l,f,`butt`,o,E);return a+=(w-m.strokeDashoffset+E)*100/w,x.createElement(`circle`,{key:d,className:Z(`${n}-circle-path`,r.track),r:b,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...m,...i.track},ref:e=>{P[d]=e}})})};return x.createElement(`svg`,Gq({className:Z(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},_),!T&&x.createElement(`circle`,{className:Z(`${n}-circle-rail`,r.rail),r:b,cx:50,cy:50,stroke:u,strokeLinecap:A,strokeWidth:s||o,style:{...N,...i.rail}}),T?I():F(),M)};function Jq(e){return!e||e<0?0:e>100?100:e}function Yq({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var Xq=({percent:e,success:t})=>{let n=Jq(Yq({success:t}));return[n,Jq(Jq(e)-n)]},Zq=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||Vc.green,t||null]},Qq=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):Yd(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):Yd(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else (t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:Yd(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},$q=3,eJ=e=>$q/e*100,tJ=[`root`,`body`,`indicator`],nJ=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:u=120,type:d,children:f,success:p,size:m=u,steps:h}=e,{direction:g}=ma(`progress`),_=i??a,[v,y]=Qq(m,`circle`),{strokeWidth:b}=e;b===void 0&&(b=Math.max(eJ(v),6));let S={width:v,height:y,fontSize:v*.15+6},C=x.useMemo(()=>{if(l||l===0)return l;if(d===`dashboard`)return 75},[l,d]),w=Xq(e),T=x.useMemo(()=>{let e=(c??s)||d===`dashboard`&&`bottom`||void 0,t=g===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[g,c,s,d]),E=Object.prototype.toString.call(e.strokeColor)===`[object Object]`,D=Zq({success:p,strokeColor:e.strokeColor}),O=Z(`${t}-body`,{[`${t}-circle-gradient`]:E},n.body),k=x.createElement(qq,{steps:h,percent:h?w[1]:w,strokeWidth:b,railWidth:b,strokeColor:h?D[1]:D,strokeLinecap:o,railColor:_,prefixCls:t,gapDegree:C,gapPosition:T,classNames:fi(n,tJ),styles:fi(r,tJ)}),A=v<=20,j=x.createElement(`div`,{className:O,style:{...S,...r.body}},k,!A&&f);return A?x.createElement(lT,{title:f},j):j},rJ=`--progress-line-stroke-color`,iJ=e=>{let t=e?`100%`:`-100%`;return new Ds(`antProgress${e?`RTL`:`LTR`}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}})},aJ=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...Rl(e),display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},oJ=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:iJ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},sJ=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},cJ=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},lJ=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},uJ=ql(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=oc(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[aJ(n),oJ(n),sJ(n),cJ(n),lJ(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),dJ=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},fJ=(e,t)=>{let{from:n=Vc.blue,to:r=Vc.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${dJ(a)})`;return{background:e,[rJ]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[rJ]:o}},pJ=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:m}=e,{align:h,type:g}=p,_=d??f,v=l===`square`||l===`butt`?0:void 0,[y,b]=Qq(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),S={backgroundColor:_||void 0,borderRadius:v,height:b},C=`${t}-track`,w=c&&typeof c!=`string`?fJ(c,i):{[rJ]:c,background:c},T={width:`${Jq(a)}%`,height:b,borderRadius:v,...w},E=Yq(e),D={width:`${Jq(E)}%`,height:b,borderRadius:v,backgroundColor:m?.strokeColor};return x.createElement(`div`,{className:Z(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:h===`center`&&g===`outer`}),style:{width:y>0?y:`100%`,...r.body}},x.createElement(`div`,{className:Z(`${t}-rail`,n.rail),style:{...S,...r.rail}},x.createElement(`div`,{className:Z(C,n.track),style:{...T,...r.track}},g===`inner`&&u),E!==void 0&&x.createElement(`div`,{className:Z(C,`${C}-success`,n.track),style:{...D,...r.track}})),g===`outer`&&u)},mJ=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[m,h]=Qq(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),g=m/i,_=Array.from({length:i}),v=l??u;for(let e=0;e<i;e++){let r=Array.isArray(c)?c[e]:c;_[e]=x.createElement(`div`,{key:e,className:Z(`${d}-steps-item`,{[`${d}-steps-item-active`]:e<=p-1},t.track),style:{backgroundColor:e<=p-1?r:v,width:g,height:h,...n.track}})}return x.createElement(`div`,{className:Z(`${d}-steps-body`,t.body),style:n.body},_,f)},hJ=[`normal`,`exception`,`active`,`success`],gJ=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:m,style:h,percentPosition:g={},..._}=e,{align:v=`end`,type:y=`outer`}=g,b=Array.isArray(c)?c[0]:c,S=typeof c==`string`||Array.isArray(c)?c:void 0,C=x.useMemo(()=>b?new Oc(typeof b==`string`?b:Object.values(b)[0]).isLight():!1,[c]),w=x.useMemo(()=>{let t=Yq(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),T=x.useMemo(()=>!hJ.includes(p)&&w>=100?`success`:p||`normal`,[p,w]),{getPrefixCls:E,direction:D,className:O,style:k,classNames:A,styles:j}=ma(`progress`),M=E(`progress`,n),[N,P]=uJ(M),F={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:g},[I,L]=vf([A,a],[j,o],{props:F}),R=f===`line`,z=R&&!s,B=x.useMemo(()=>{if(!d)return null;let t=Yq(e),n,r=m||(e=>`${e}%`),i=R&&C&&y===`inner`;return y===`inner`||m||T!==`exception`&&T!==`success`?n=r(Jq(l),Jq(t)):T===`exception`?n=R?x.createElement(Cu,null):x.createElement(Eu,null):T===`success`&&(n=R?x.createElement(bu,null):x.createElement(lw,null)),x.createElement(`span`,{className:Z(`${M}-indicator`,{[`${M}-indicator-bright`]:i,[`${M}-indicator-${v}`]:z,[`${M}-indicator-${y}`]:z},I.indicator),style:L.indicator,title:typeof n==`string`?n:void 0},n)},[d,l,w,T,f,M,m,R,C,y,v,z,I.indicator,L.indicator]),V={...e,classNames:I,styles:L},H;f===`line`?H=s?x.createElement(mJ,{...V,strokeColor:S,prefixCls:M,steps:Zd(s)?s.count:s},B):x.createElement(pJ,{...V,strokeColor:b,prefixCls:M,direction:D,percentPosition:{align:v,type:y}},B):(f===`circle`||f===`dashboard`)&&(H=x.createElement(nJ,{...V,strokeColor:b,prefixCls:M,progressStatus:T},B));let U=Z(M,`${M}-status-${T}`,{[`${M}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${M}-inline-circle`]:f===`circle`&&Qq(u,`circle`)[0]<=20,[`${M}-line`]:z,[`${M}-line-align-${v}`]:z,[`${M}-line-position-${y}`]:z,[`${M}-steps`]:s,[`${M}-show-info`]:d,[`${M}-small`]:u===`small`,[`${M}-rtl`]:D===`rtl`},O,r,i,I.root,N,P);return x.createElement(`div`,{ref:t,style:{...k,...L.root,...h},className:U,role:`progressbar`,"aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100,...fi(_,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},H)}),_J=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z`}}]},name:`star`,theme:`filled`}}))());function vJ(){return vJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vJ.apply(this,arguments)}var yJ=x.forwardRef((e,t)=>x.createElement(_u,vJ({},e,{ref:t,icon:_J.default}))),bJ=jV,xJ={},SJ=`rc-table-internal-hook`;function CJ(e){let t=x.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=x.useRef(e);r.current=e;let[i]=x.useState(()=>({getValue:()=>r.current,listeners:new Set}));return Rn(()=>{(0,Ii.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),x.createElement(t.Provider,{value:i},n)},defaultValue:e}}function wJ(e,t){let n=Fn(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=x.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=x.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=x.useState({});return Rn(()=>{if(!r)return;function e(e){let t=n(e);ci(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function TJ(){return TJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TJ.apply(this,arguments)}function EJ(){let e=x.createContext(null);function t(){return x.useContext(e)}function n(n,r){let i=or(n),a=(a,o)=>{let s=i?{ref:o}:{},c=x.useRef(0),l=x.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,x.createElement(e.Provider,{value:c.current},x.createElement(n,TJ({},a,s)))):x.createElement(n,TJ({},a,s))};return i?x.forwardRef(a):a}function r(e,n){let r=or(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),x.createElement(e,TJ({},n,a))};return x.memo(r?x.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:Pee,responseImmutable:Fee,useImmutableMark:Iee}=EJ(),{makeImmutable:DJ,responseImmutable:OJ,useImmutableMark:kJ}=EJ(),AJ=CJ(),jJ=x.createContext({renderWithProps:!1}),MJ=`RC_TABLE_KEY`;function NJ(e){return e==null?[]:Array.isArray(e)?e:[e]}function PJ(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||NJ(i).join(`-`)||MJ;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function FJ(e){return e!=null}function IJ(e){return typeof e==`number`&&!Number.isNaN(e)}function LJ(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!x.isValidElement(e)}function RJ(e,t,n,r,i,a){let o=x.useContext(jJ);return qn(()=>{if(FJ(r))return[r];let a=Ti(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);LJ(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[kJ(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!ci(e,t,!0)})}function zJ(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function BJ(e,t){return wJ(AJ,n=>[zJ(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function VJ(){return VJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VJ.apply(this,arguments)}var HJ=({ellipsis:e,rowType:t,children:n})=>{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():x.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},UJ=x.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:m,rowType:h,colSpan:g,rowSpan:_,fixStart:v,fixEnd:y,fixedStartShadow:b,fixedEndShadow:S,offsetFixedStartShadow:C,offsetFixedEndShadow:w,zIndex:T,zIndexReverse:E,appendNode:D,additionalProps:O={},isSticky:k}=e,A=`${a}-cell`,{allColumnsFixedLeft:j,rowHoverable:M}=wJ(AJ,[`allColumnsFixedLeft`,`rowHoverable`]),[N,P]=RJ(l,d,f,n,u,p),F={},I=typeof v==`number`&&!j,L=typeof y==`number`&&!j,[R,z]=wJ(AJ,({scrollInfo:e})=>{if(!I&&!L)return[!1,!1];let[t,n]=e;return[(I&&b&&t)-C>=1,(L&&S&&n-t)-w>1]});I&&(F.insetInlineStart=v,F[`--z-offset`]=T,F[`--z-offset-reverse`]=E),L&&(F.insetInlineEnd=y,F[`--z-offset`]=T,F[`--z-offset-reverse`]=E);let B=P?.colSpan??O.colSpan??g??1,V=P?.rowSpan??O.rowSpan??_??1,[H,U]=BJ(m,V),W=Fn(e=>{l&&U(m,m+V-1),O?.onMouseEnter?.(e)}),G=Fn(e=>{l&&U(-1,-1),O?.onMouseLeave?.(e)});if(B===0||V===0)return null;let K=O.title??HJ({rowType:h,ellipsis:r,children:N}),ee=Z(A,o,{[`${A}-fix`]:I||L,[`${A}-fix-start`]:I,[`${A}-fix-end`]:L,[`${A}-fix-start-shadow`]:b,[`${A}-fix-start-shadow-show`]:b&&R,[`${A}-fix-end-shadow`]:S,[`${A}-fix-end-shadow-show`]:S&&z,[`${A}-ellipsis`]:r,[`${A}-with-append`]:D,[`${A}-fix-sticky`]:(I||L)&&k,[`${A}-row-hover`]:!P&&H},O.className,P?.className),te={};c&&(te.textAlign=c);let q={...P?.style,...F,...te,...O.style,...s},J=N;return typeof J==`object`&&!Array.isArray(J)&&!x.isValidElement(J)&&(J=null),r&&(b||S)&&(J=x.createElement(`span`,{className:`${A}-content`},J)),x.createElement(t,VJ({},P,O,{className:ee,style:q,title:K,scope:i,onMouseEnter:M?W:void 0,onMouseLeave:M?G:void 0,colSpan:B===1?null:B,rowSpan:V===1?null:V}),D,J)});function WJ(e){return e.fixed===`start`}function GJ(e){return e.fixed===`end`}function KJ(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;WJ(i)&&WJ(a)?o=r.start[e]:GJ(a)&&GJ(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!WJ(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!GJ(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;t<e;t+=1)WJ(n[t])||(f+=r.widths[t]||0);if(l)for(let e=n.length-1;e>t;--e)GJ(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var qJ=x.createContext({});function JJ(){return JJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JJ.apply(this,arguments)}var YJ=e=>{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=wJ(AJ,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=x.useContext(qJ),d=n+i-1+1===c?i+1:i,f=x.useMemo(()=>KJ(n,n+d-1,u,l),[n,d,u,l]);return x.createElement(UJ,JJ({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},XJ=e=>{let{children:t,...n}=e;return x.createElement(`tr`,n,t)},ZJ=e=>{let{children:t}=e;return t};ZJ.Row=XJ,ZJ.Cell=YJ;var QJ=OJ(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=wJ(AJ,`prefixCls`),a=r.length-1,o=r[a],s=x.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return x.createElement(qJ.Provider,{value:s},x.createElement(`tfoot`,{className:`${i}-summary`},t))}),$J=ZJ;function eY(e){return null}function tY(e){return null}function nY(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o<t[r].length;o+=1)nY(e,t[r][o],n+1,r,i,a,o)}function rY(e,t,n,r){return x.useMemo(()=>{if(n?.size){let i=[];for(let a=0;a<e?.length;a+=1){let o=e[a];nY(i,o,0,t,n,r,a)}return i}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function iY(e,t,n,r){let i=wJ(AJ,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=Fn(l),b=d?.(e,n),x=b?.onClick,S=(t,...n)=>{f&&g&&l(e,t),x?.(t,...n)},C;typeof p==`string`?C=p:typeof p==`function`&&(C=p(e,n,r));let w=PJ(a);return{...i,columnsKey:w,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...b,className:Z(C,b?.className),onClick:S}}}var aY=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=wJ(AJ,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=x.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),x.createElement(r,{className:a,style:{display:o?null:`none`}},x.createElement(UJ,{component:i,prefixCls:t,colSpan:s},h))};function oY({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return x.createElement(`span`,{className:Z(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return x.createElement(`span`,{className:Z(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function sY(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function cY(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function lY(){return lY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lY.apply(this,arguments)}function uY(e,t,n,r,i,a=[],o=0){let{record:s,prefixCls:c,columnsKey:l,fixedInfoList:u,expandIconColumnIndex:d,nestExpandable:f,indentSize:p,expandIcon:m,expanded:h,hasNestChildren:g,onTriggerExpand:_,expandable:v,expandedKeys:y}=e,b=l[n],S=u[n],C;n===(d||0)&&f&&(C=x.createElement(x.Fragment,null,x.createElement(`span`,{style:{paddingLeft:`${p*r}px`},className:`${c}-row-indent indent-level-${r}`}),m({prefixCls:c,expanded:h,expandable:g,record:s,onExpand:_})));let w=t.onCell?.(s,i)||{};if(o){let{rowSpan:e=1}=w;if(v&&e&&n<o){let t=e;for(let n=i;n<i+e;n+=1){let e=a[n];y.has(e)&&(t+=1)}w.rowSpan=t}}return{key:b,fixedInfo:S,appendCellNode:C,additionalCellProps:w}}var dY=OJ(e=>{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=iY(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:v,expandedRowRender:y,rowProps:b,expanded:S,rowSupportExpand:C}=h,w=x.useRef(!1);w.current||=S;let T=cY(v,a,o,u),E=x.createElement(d,lY({},b,{"data-row-key":c,className:Z(t,`${g}-row`,`${g}-row-level-${u}`,b?.className,r.row,{[T]:u>=1}),style:{...n,...b?.style,...i.row}}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:v,appendCellNode:y,additionalCellProps:b}=uY(h,e,t,u,o,l,m?.offset);return x.createElement(UJ,lY({className:Z(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b}))})),D;if(C&&(w.current||S)){let e=y(a,o,u+1,S);D=x.createElement(aY,{expanded:S,className:Z(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,T),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m?.sticky},e)}return x.createElement(x.Fragment,null,E,D)}),fY=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=x.useRef(null);return Rn(()=>{i.current&&n(t,i.current.offsetWidth)},[]),x.createElement(ta,{data:t},x.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},x.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},pY=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=x.useRef(null),{measureRowRender:a}=wJ(AJ,[`measureRowRender`]),o=x.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},x.createElement(ta.Collection,{onBatchResize:e=>{Er(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=x.isValidElement(t)?x.cloneElement(t,{ref:null}):t;return x.createElement(fY,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},mY=OJ(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=wJ(AJ,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=rY(t,l,c,s),v=x.useMemo(()=>_.map(e=>e.rowKey),[_]),y=x.useRef({renderWithProps:!1}),b=x.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e<p;e+=1)t+=m[e]||0;return{offset:p,colSpan:e,sticky:t}},[o.length,p,m]),S=i([`body`,`wrapper`],`tbody`),C=i([`body`,`row`],`tr`),w=i([`body`,`cell`],`td`),T=i([`body`,`cell`],`th`),E;E=t.length?_.map((e,t)=>{let{record:n,indent:r,index:i,rowKey:a}=e;return x.createElement(dY,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:v,record:n,index:t,renderIndex:i,rowComponent:C,cellComponent:w,scopeCellComponent:T,indent:r,expandedRowInfo:b})}):x.createElement(aY,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:C,cellComponent:w,colSpan:o.length,isEmpty:!0},u);let D=PJ(o);return x.createElement(jJ.Provider,{value:y.current},x.createElement(S,{style:g.wrapper,className:Z(`${r}-tbody`,h.wrapper)},n&&x.createElement(pY,{prefixCls:r,columnsKey:D,onColumnResize:a,columns:o}),E))}),hY=`RC_TABLE_INTERNAL_COL_DEFINE`;function gY(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function _Y(){return _Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_Y.apply(this,arguments)}var vY=e=>{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=wJ(AJ,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[hY],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(x.createElement(`col`,_Y({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?x.createElement(`colgroup`,null,a):null};function yY(e,t){return(0,x.useMemo)(()=>{let n=[];for(let r=0;r<t;r+=1){let t=e[r];if(t!==void 0)n[r]=t;else return null}return n},[e.join(`_`),t])}var bY=x.forwardRef((e,t)=>{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:v,maxContentScroll:y,children:b,...S}=e,{prefixCls:C,scrollbarSize:w,isSticky:T,getComponent:E}=wJ(AJ,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),D=E([`header`,`table`],`table`),O=T&&!f?0:w,k=x.useRef(null),A=x.useCallback(e=>{rr(t,e),rr(k,e)},[]);x.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),v({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=k.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let j=o[o.length-1],M={fixed:j?j.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${C}-cell-scrollbar`})},N=(0,x.useMemo)(()=>O?[...a,M]:a,[O,a]),P=(0,x.useMemo)(()=>O?[...o,M]:o,[O,o]),F=(0,x.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+O),0],isSticky:T}},[O,u,T]),I=yY(s,l),L=(0,x.useMemo)(()=>{let e=!I||!I.length||I.every(e=>!e);return i||e},[i,I]);return x.createElement(`div`,{style:{overflow:`hidden`,...T?{top:p,bottom:m}:{},...r},ref:A,className:Z(n,{[h]:!!h})},x.createElement(D,{style:{tableLayout:_,minWidth:`100%`,width:g}},L?c:x.createElement(vY,{colWidths:[...I,O],columCount:l+1,columns:P}),b({...S,stickyOffsets:F,columns:N,flattenColumns:P})))}),xY=x.memo(bY);function SY(){return SY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SY.apply(this,arguments)}var CY=e=>{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=wJ(AJ,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=PJ(t.map(e=>e.column));return x.createElement(i,SY({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=KJ(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return x.createElement(UJ,SY({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function wY(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:Z(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e<a;e+=1)r[e].forEach(t=>{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var TY=OJ(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=wJ(AJ,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=x.useMemo(()=>wY(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return x.createElement(f,{className:Z(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>x.createElement(CY,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});function EY(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function DY(e,t,n){return x.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=EY(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=EY(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l<a){let e=a/l;o=a,u.forEach((t,n)=>{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function OY(e){return wi(e).filter(e=>x.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=OY(r)),a})}function kY(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:kY(t)}:e})}function AY(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...AY(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function jY({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},v){let y=x.useMemo(()=>kY((t||OY(n)||[]).slice()),[t,n]),b=x.useMemo(()=>{if(r){let t=y.slice();if(!t.includes(xJ)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?y.length:e;n>=0&&t.splice(n,0,xJ)}let n=t.indexOf(xJ);t=t.filter((e,t)=>e!==xJ||t===n);let r=y[n],f;f=h||(r?r.fixed:null);let g={[hY]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?x.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===xJ?g:e;return t<d?{...n,fixed:n.fixed||`start`}:n})}return y.filter(e=>e!==xJ)},[r,y,o,i,c,f,d]),S=x.useMemo(()=>{let e=b;return v&&(e=v(e)),e.length||(e=[{render:()=>null}]),e},[v,b,f]),[C,w]=DY(x.useMemo(()=>AY(S),[S,f,g]),g,_);return[S,C,w]}function MY(e,t,n){let r=gY(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||oY,p=d||`children`,m=x.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=x.useState(()=>o||(s?sY(t,n,p):[])),_=x.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,x.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function NY(e,t){let n=x.useMemo(()=>e.map((n,r)=>KJ(r,r,e,t)),[e,t]);return qn(()=>n,[n],(e,t)=>!ci(e,t))}function PY(e){let t=(0,x.useRef)(e),[,n]=(0,x.useState)({}),r=(0,x.useRef)(null),i=(0,x.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,x.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function FY(e){let t=(0,x.useRef)(e||null),n=(0,x.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,x.useEffect)(()=>r,[]),[i,a]}function IY(){let[e,t]=x.useState(-1),[n,r]=x.useState(-1);return[e,n,x.useCallback((e,n)=>{t(e),r(n)},[])]}var LY=In()?window:null;function RY(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>LY}=typeof e==`object`?e:{},o=a()||LY,s=!!e;return x.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function zY(e,t){return(0,x.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var BY=e=>{let{children:t,className:n,style:r}=e;return x.createElement(`div`,{className:n,style:r},t)};function VY(e){let t=Tr(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var HY=`mouseup`,UY=`mousemove`,WY=`scroll`,GY=`resize`,KY=x.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=wJ(AJ,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=x.useRef(null),[f,p]=PY({scrollLeft:0,isHiddenScrollBar:!0}),m=x.useRef({delta:0,x:0}),[h,g]=x.useState(!1),_=x.useRef(null);x.useEffect(()=>()=>{Ci.cancel(_.current)},[]);let v=()=>{g(!1)},y=e=>{e.persist(),m.current.delta=e.pageX-f.scrollLeft,m.current.x=0,g(!0),e.preventDefault()},b=e=>{let{buttons:t}=e||window?.event;if(!h||t===0){h&&g(!1);return}let n=m.current.x+e.pageX-m.current.x-m.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u)<l)&&(r({scrollLeft:n/l*(c+2)}),m.current.x=e.pageX)},S=()=>{Ci.cancel(_.current),_.current=Ci(()=>{if(!n.current)return;let e=VY(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:VY(a).top+a.clientHeight;t-Zr()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},C=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return x.useImperativeHandle(t,()=>({setScrollLeft:C,checkScrollBarVisible:S})),x.useEffect(()=>(document.body.addEventListener(HY,v,!1),document.body.addEventListener(UY,b,!1),S(),()=>{document.body.removeEventListener(HY,v),document.body.removeEventListener(UY,b)}),[u,h]),x.useEffect(()=>{if(n.current){let e=[],t=Tr(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(WY,S,!1)}),window.addEventListener(GY,S,!1),window.addEventListener(WY,S,!1),a.addEventListener(WY,S,!1),()=>{e.forEach(e=>{e.removeEventListener(WY,S)}),window.removeEventListener(GY,S),window.removeEventListener(WY,S),a.removeEventListener(WY,S)}}},[a]),x.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:x.createElement(`div`,{style:{height:Zr(),width:l,bottom:i},className:`${s}-sticky-scroll`},x.createElement(`div`,{onMouseDown:y,ref:d,className:Z(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:h}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function qY(){return qY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qY.apply(this,arguments)}var JY=`rc-table`,YY=[],XY={};function ZY(){return`No Data`}var QY=x.forwardRef((e,t)=>{let n={rowKey:`key`,prefixCls:JY,emptyText:ZY,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:m,footer:h,summary:g,caption:_,id:v,showHeader:y,components:b,emptyText:S,onRow:C,onHeaderRow:w,measureRowRender:T,onScroll:E,internalHooks:D,transformColumns:O,internalRefs:k,tailor:A,getContainerWidth:j,sticky:M,rowHoverable:N=!0}=n,P=l||YY,F=!!P.length,I=D===SJ,L=x.useCallback((e,t)=>Ti(b,e)||t,[b]),R=x.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),z=L([`body`]),[B,V,H]=IY(),[U,W,G,K,ee,te]=MY(n,P,R),q=d?.x,[J,Y]=x.useState(0),[ne,X,re]=jY({...n,...U,expandable:!!U.expandedRowRender,columnTitle:U.columnTitle,expandedKeys:G,getRowKey:R,onTriggerExpand:te,expandIcon:K,expandIconColumnIndex:U.expandIconColumnIndex,direction:p,scrollWidth:I&&A&&typeof q==`number`?q:null,clientWidth:J},I?O:null),ie=re??q,ae=x.useMemo(()=>({columns:ne,flattenColumns:X}),[ne,X]),oe=x.useRef(null),se=x.useRef(null),ce=x.useRef(null),le=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:oe.current,scrollTo:e=>{if(ce.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i}=e;if(IJ(n))ce.current?.scrollTo({top:n});else{let e=r??R(P[t]),n=ce.current.querySelector(`[data-row-key="${e}"]`);if(n)if(!i)n.scrollIntoView();else{let e=n.offsetTop;ce.current.scrollTo({top:e+i})}}}else ce.current?.scrollTo&&ce.current.scrollTo(e)}}));let ue=x.useRef(null),[de,fe]=x.useState(!1),[pe,me]=x.useState(!1),[he,ge]=x.useState(new Map),_e=PJ(X).map(e=>he.get(e)),ve=x.useMemo(()=>_e,[_e.join(`_`)]),ye=zY(ve,X),be=d&&FJ(d.y),xe=d&&FJ(ie)||!!U.fixed,Se=xe&&X.some(({fixed:e})=>e),Ce=x.useRef(null),{isSticky:we,offsetHeader:Te,offsetSummary:Ee,offsetScroll:De,stickyClassName:Oe,container:ke}=RY(M,r),Ae=x.useMemo(()=>g?.(P),[g,P]),je=(be||we)&&x.isValidElement(Ae)&&Ae.type===ZJ&&Ae.props.fixed,Me,Ne,Pe;be&&(Ne={overflowY:F?`scroll`:`auto`,maxHeight:d.y}),xe&&(Me={overflowX:`auto`},be||(Ne={overflowY:`hidden`}),Pe={width:ie===!0?`auto`:ie,minWidth:`100%`});let Fe=x.useCallback((e,t)=>{ge(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Ie,Le]=FY(null);function Re(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[ze,Be]=x.useState([0,0]),Ve=Fn(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||XY;(!Le()||Le()===r)&&(Ie(r),Re(n,se.current),Re(n,ce.current),Re(n,ue.current),Re(n,Ce.current?.setScrollLeft));let i=e||se.current;if(i){let e=I&&A&&typeof ie==`number`?ie:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(Be(n=>{let i=[r,e-t];return ci(n,i)?n:i}),e===t){fe(!1),me(!1);return}fe(r>0),me(r<e-t-1)}}),He=Fn(e=>{Ve(e),E?.(e)}),Ue=()=>{xe&&ce.current?Ve({currentTarget:Tr(ce.current),scrollLeft:ce.current?.scrollLeft}):(fe(!1),me(!1))},We=e=>{Ce.current?.checkScrollBarVisible();let t=e??oe.current?.offsetWidth??0;I&&j&&oe.current&&(t=j(oe.current,t)||t),t!==J&&(Ue(),Y(t))};Rn(()=>{xe&&We()},[xe]);let Ge=x.useRef(!1);x.useEffect(()=>{Ge.current&&Ue()},[xe,l,ne.length]),x.useEffect(()=>{Ge.current=!0},[]);let[Ke,qe]=x.useState(0);Rn(()=>{(!A||!I)&&(ce.current instanceof Element?qe(Qr(ce.current).width):qe(Qr(le.current).width))},[]),x.useEffect(()=>{I&&k&&(k.body.current=ce.current)});let Je=x.useCallback(e=>x.createElement(x.Fragment,null,x.createElement(TY,e),je===`top`&&x.createElement(QJ,e,Ae)),[je,Ae]),Ye=x.useCallback(e=>x.createElement(QJ,e,Ae),[Ae]),Xe=L([`table`],`table`),Ze=x.useMemo(()=>f||(Se?ie===`max-content`?`auto`:`fixed`:be||we||X.some(({ellipsis:e})=>e)?`fixed`:`auto`),[be,Se,X,f,we]),Qe,$e={colWidths:ve,columCount:X.length,stickyOffsets:ye,onHeaderRow:w,fixHeader:be,scroll:d},et=x.useMemo(()=>F?null:typeof S==`function`?S():S,[F,S]),tt=x.createElement(mY,{data:P,measureColumnWidth:be||xe||we}),nt=x.createElement(vY,{colWidths:X.map(({width:e})=>e),columns:X}),rt=_==null?void 0:x.createElement(`caption`,{className:`${r}-caption`},_),it=_i(n,{data:!0}),at=_i(n,{aria:!0});if(be||we){let e;typeof z==`function`?(e=z(P,{scrollbarSize:Ke,ref:ce,onScroll:Ve}),$e.colWidths=X.map(({width:e},t)=>{let n=t===X.length-1?e-Ke:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=x.createElement(`div`,{style:{...Me,...Ne},onScroll:He,ref:ce,className:`${r}-body`},x.createElement(Xe,qY({style:{...Pe,tableLayout:Ze}},at),rt,nt,tt,!je&&Ae&&x.createElement(QJ,{stickyOffsets:ye,flattenColumns:X},Ae)));let t={noData:!P.length,maxContentScroll:xe&&ie===`max-content`,...$e,...ae,direction:p,stickyClassName:Oe,scrollX:ie,tableLayout:Ze,onScroll:Ve};Qe=x.createElement(x.Fragment,null,y!==!1&&x.createElement(xY,qY({},t,{stickyTopOffset:Te,className:`${r}-header`,ref:se,colGroup:nt}),Je),e,je&&je!==`top`&&x.createElement(xY,qY({},t,{stickyBottomOffset:Ee,className:`${r}-summary`,ref:ue,colGroup:nt}),Ye),we&&ce.current&&ce.current instanceof Element&&x.createElement(KY,{ref:Ce,offsetScroll:De,scrollBodyRef:ce,onScroll:Ve,container:ke,direction:p}))}else Qe=x.createElement(`div`,{style:{...Me,...Ne,...c?.content},className:Z(`${r}-content`,s?.content),onScroll:Ve,ref:ce},x.createElement(Xe,qY({style:{...Pe,tableLayout:Ze}},at),rt,nt,y!==!1&&x.createElement(TY,qY({},$e,ae)),tt,Ae&&x.createElement(QJ,{stickyOffsets:ye,flattenColumns:X},Ae)));let ot={...o};we&&(ot[`--columns-count`]=X.length);let st=x.createElement(`div`,qY({className:Z(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:xe,[`${r}-fix-end-shadow`]:xe,[`${r}-fix-start-shadow-show`]:xe&&de,[`${r}-fix-end-shadow-show`]:xe&&pe,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:be,[`${r}-fixed-column`]:Se,[`${r}-scroll-horizontal`]:xe,[`${r}-has-fix-start`]:X[0]?.fixed,[`${r}-has-fix-end`]:X[X.length-1]?.fixed===`end`}),style:ot,id:v,ref:oe},it),m&&x.createElement(BY,{className:Z(`${r}-title`,s?.title),style:c?.title},m(P)),x.createElement(`div`,{ref:le,className:Z(`${r}-container`,s?.section),style:c?.section},Qe),h&&x.createElement(BY,{className:Z(`${r}-footer`,s?.footer),style:c?.footer},h(P)));xe&&(st=x.createElement(ta,{onResize:({offsetWidth:e})=>We(e)},st));let ct=NY(X,ye),lt=x.useMemo(()=>({scrollX:ie,scrollInfo:ze,classNames:s,styles:c,prefixCls:r,getComponent:L,scrollbarSize:Ke,direction:p,fixedInfoList:ct,isSticky:we,componentWidth:J,fixHeader:be,fixColumn:Se,horizonScroll:xe,tableLayout:Ze,rowClassName:a,expandedRowClassName:U.expandedRowClassName,expandIcon:K,expandableType:W,expandRowByClick:U.expandRowByClick,expandedRowRender:U.expandedRowRender,expandedRowOffset:U.expandedRowOffset,onTriggerExpand:te,expandIconColumnIndex:U.expandIconColumnIndex,indentSize:U.indentSize,allColumnsFixedLeft:X.every(e=>e.fixed===`start`),emptyNode:et,columns:ne,flattenColumns:X,onColumnResize:Fe,colWidths:ve,hoverStartRow:B,hoverEndRow:V,onHover:H,rowExpandable:U.rowExpandable,onRow:C,getRowKey:R,expandedKeys:G,childrenColumnName:ee,rowHoverable:N,measureRowRender:T}),[ie,ze,s,c,r,L,Ke,p,ct,we,J,be,Se,xe,Ze,a,U.expandedRowClassName,K,W,U.expandRowByClick,U.expandedRowRender,U.expandedRowOffset,te,U.expandIconColumnIndex,U.indentSize,et,ne,X,Fe,ve,B,V,H,U.rowExpandable,C,R,G,ee,N,T]);return x.createElement(AJ.Provider,{value:lt},st)}),$Y=e=>DJ(QY,e),eX=$Y();eX.EXPAND_COLUMN=xJ,eX.INTERNAL_HOOKS=SJ,eX.Column=eY,eX.ColumnGroup=tY,eX.Summary=$J;var tX=CJ(null),nX=CJ(null);function rX(){return rX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rX.apply(this,arguments)}function iX(e,t,n){return n[e+(t||1)]-(n[e]||0)}var aX=e=>{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=wJ(nX,[`columnsOffset`]),{key:v,fixedInfo:y,appendCellNode:b,additionalCellProps:S}=uY(t,n,r,i,a),{style:C,colSpan:w=1,rowSpan:T=1}=S,E=iX(r-1,w,_),D=w>1?g-E:0,O={...C,...l,flex:`0 0 ${E}px`,width:`${E}px`,marginRight:D,pointerEvents:`auto`},k=x.useMemo(()=>d?T<=1:w===0||T===0||T>1,[T,w,d]);k?O.visibility=`hidden`:d&&(O.height=f?.(T));let A=k?()=>null:p,j={};return(T===0||w===0)&&(j.rowSpan=1,j.colSpan=1),x.createElement(UJ,rX({className:Z(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:v,record:c,index:a,renderIndex:s,dataIndex:m,render:A,shouldCellUpdate:n.shouldCellUpdate},y,{appendNode:b,additionalProps:{...S,style:O,...j}}))};function oX(){return oX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oX.apply(this,arguments)}var sX=OJ(x.forwardRef((e,t)=>{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:m,prefixCls:h,fixColumn:g,componentWidth:_}=wJ(AJ,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`]),{getComponent:v}=wJ(tX,[`getComponent`]),y=iY(u,a,r,d),b=v([`body`,`row`],`div`),S=v([`body`,`cell`],`div`),{rowSupportExpand:C,expanded:w,rowProps:T,expandedRowRender:E,expandedRowClassName:D}=y,O;if(C&&w){let e=E(u,r,d+1,w),t=cY(D,u,r,d),n={};g&&(n={style:{"--virtual-width":`${_}px`}});let i=`${h}-expanded-row-cell`;O=x.createElement(b,{className:Z(`${h}-expanded-row`,`${h}-expanded-row-level-${d+1}`,t)},x.createElement(UJ,{component:S,prefixCls:h,className:Z(i,{[`${i}-fixed`]:g}),additionalProps:n},e))}let k={...o,width:p};s&&(k.position=`absolute`,k.pointerEvents=`none`);let A=x.createElement(b,oX({},T,l,{"data-row-key":a,ref:C?null:t,className:Z(i,`${h}-row`,T?.className,{[`${h}-row-extra`]:s}),style:{...k,...T?.style}}),m.map((e,t)=>x.createElement(aX,{key:t,component:S,rowInfo:y,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return C?x.createElement(`div`,{ref:t},A,O):A})),cX=OJ(x.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=wJ(AJ,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=wJ(tX),_=x.useRef(null),v=rY(n,l,s,o),y=x.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),b=x.useMemo(()=>y.map(e=>e[2]),[y]);x.useEffect(()=>{y.forEach(([e,t])=>{a(e,t)})},[y]),x.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{offset:t,...n}=e;t?_.current?.scrollTo({...n,offset:t,align:`top`}):_.current?.scrollTo(e)},nativeElement:_.current?.nativeElement};return Object.defineProperty(e,`scrollLeft`,{get:()=>_.current?.getScrollInfo().x||0,set:e=>{_.current?.scrollTo({left:e})}}),Object.defineProperty(e,`scrollTop`,{get:()=>_.current?.getScrollInfo().y||0,set:e=>{_.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=v[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;e<v.length;e+=1)if(l=l.filter(t=>S(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)v[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=v[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=v[i];if(!a||!a.record){let e=Math.min(i,v.length-1),t=v[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return x.createElement(sX,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=x.useMemo(()=>({columnsOffset:b}),[b]),T=`${c}-tbody`,E=h([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),x.createElement(nX.Provider,{value:w},x.createElement(vC,{fullHeight:!1,ref:_,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:v,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:_.current?.nativeElement,scrollLeft:e})},onScroll:g,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return x.createElement(sX,{data:e,rowKey:r,index:t,style:n.style})}))}));function lX(){return lX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lX.apply(this,arguments)}var uX=(e,t)=>{let{ref:n,onScroll:r}=t;return x.createElement(cX,{ref:n,data:e,onScroll:r})},dX=x.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=JY,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=Fn((e,t)=>Ti(l,e)||t),m=Fn(u),h=x.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return x.createElement(tX.Provider,{value:h},x.createElement(eX,lX({},e,{className:Z(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?uX:void 0},columns:r,internalHooks:SJ,tailor:!0,ref:t})))}),fX=e=>DJ(dX,e);fX();var pX=e=>null,mX=e=>null,hX=x.createContext(null),gX=x.createContext({}),_X=x.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push(x.createElement(`span`,{key:e,className:Z(i,{[`${i}-start`]:n[e],[`${i}-end`]:r[e]})}));return x.createElement(`span`,{"aria-hidden":`true`,className:`${e}-indent`},a)});function vX(){return vX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vX.apply(this,arguments)}var yX=`open`,bX=`close`,xX=`---`,SX=e=>{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:m,domRef:h,active:g,data:_,onMouseMove:v,selectable:y,treeId:b,...S}=e,C=Wn(b,t),w=x.useContext(hX),{classNames:T,styles:E}=w||{},D=x.useContext(gX),O=x.useRef(null),[k,A]=x.useState(!1),j=!!(w.disabled||e.disabled||D.nodeDisabled?.(_)),M=x.useMemo(()=>!w.checkable||e.checkable===!1?!1:w.checkable,[w.checkable,e.checkable]),N=t=>{j||w.onNodeSelect(t,kB(e))},P=t=>{j||!M||e.disableCheckbox||w.onNodeCheck(t,kB(e),!f)},F=x.useMemo(()=>typeof y==`boolean`?y:w.selectable,[y,w.selectable]),I=t=>{w.onNodeClick(t,kB(e)),F?N(t):P(t)},L=t=>{w.onNodeDoubleClick(t,kB(e))},R=t=>{w.onNodeMouseEnter(t,kB(e))},z=t=>{w.onNodeMouseLeave(t,kB(e))},B=t=>{w.onNodeContextMenu(t,kB(e))},V=x.useMemo(()=>!!(w.draggable&&(!w.draggable.nodeDraggable||w.draggable.nodeDraggable(_))),[w.draggable,_]),H=t=>{t.stopPropagation(),A(!0),w.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},U=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragEnter(t,e)},W=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragOver(t,e)},G=t=>{t.stopPropagation(),w.onNodeDragLeave(t,e)},K=t=>{t.stopPropagation(),A(!1),w.onNodeDragEnd(t,e)},ee=t=>{t.preventDefault(),t.stopPropagation(),A(!1),w.onNodeDrop(t,e)},te=t=>{m||w.onNodeExpand(t,kB(e))},q=x.useMemo(()=>{let{children:e}=vB(w.keyEntities,t)||{};return!!(e||[]).length},[w.keyEntities,t]),J=x.useMemo(()=>DB(s,w.loadData,q,e.loaded),[s,w.loadData,q,e.loaded]);x.useEffect(()=>{m||typeof w.loadData==`function`&&u&&!J&&!e.loaded&&w.onNodeLoad(kB(e))},[m,w.loadData,w.onNodeLoad,u,J,e]);let Y=x.useMemo(()=>w.draggable?.icon?x.createElement(`span`,{className:`${w.prefixCls}-draggable-icon`},w.draggable.icon):null,[w.draggable]),ne=t=>{let n=e.switcherIcon||w.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},X=()=>{if(J){let e=ne(!0);return e===!1?null:x.createElement(`span`,{className:Z(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher-noop`)},e)}let e=ne(!1);return e===!1?null:x.createElement(`span`,{onClick:te,className:Z(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher_${u?yX:bX}`)},e)},re=x.useMemo(()=>{if(!M)return null;let t=typeof M==`boolean`?null:M;return x.createElement(`span`,{className:Z(`${w.prefixCls}-checkbox`,{[`${w.prefixCls}-checkbox-checked`]:f,[`${w.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${w.prefixCls}-checkbox-disabled`]:j||e.disableCheckbox}),onClick:P,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":j||e.disableCheckbox,"aria-labelledby":C},t)},[M,f,p,j,e.disableCheckbox,C]),ie=x.useMemo(()=>J?null:u?yX:bX,[J,u]),ae=x.useMemo(()=>x.createElement(`span`,{className:Z(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__${ie||`docu`}`,{[`${w.prefixCls}-icon_loading`]:m}),style:E?.itemIcon}),[w.prefixCls,ie,m]),oe=x.useMemo(()=>{let n=!!w.draggable;return!e.disabled&&n&&w.dragOverNodeKey===t?w.dropIndicatorRender({dropPosition:w.dropPosition,dropLevelOffset:w.dropLevelOffset,indent:w.indent,prefixCls:w.prefixCls,direction:w.direction}):null},[w.dropPosition,w.dropLevelOffset,w.indent,w.prefixCls,w.direction,w.draggable,w.dragOverNodeKey,w.dropIndicatorRender]),se=x.useMemo(()=>{let{title:t=xX}=e,n=`${w.prefixCls}-node-content-wrapper`,r;if(w.showIcon){let t=e.icon||w.icon;r=t?x.createElement(`span`,{className:Z(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__customize`),style:E?.itemIcon},typeof t==`function`?t(e):t):ae}else w.loadData&&m&&(r=ae);let i;return i=typeof t==`function`?t(_):w.titleRender?w.titleRender(_):t,x.createElement(`span`,{ref:O,title:typeof t==`string`?t:``,className:Z(n,`${n}-${ie||`normal`}`,{[`${w.prefixCls}-node-selected`]:!j&&(d||k)}),onMouseEnter:R,onMouseLeave:z,onContextMenu:B,onClick:I,onDoubleClick:L},r,x.createElement(`span`,{className:Z(`${w.prefixCls}-title`,T?.itemTitle),style:E?.itemTitle},i),oe)},[w.prefixCls,w.showIcon,e,w.icon,ae,w.titleRender,_,ie,R,z,B,I,L]),ce=_i(S,{aria:!0,data:!0}),{level:le}=vB(w.keyEntities,t)||{},ue=l[l.length-1],de=!j&&V,fe=w.draggingNodeKey===t;return x.createElement(`div`,vX({ref:h,role:`treeitem`,id:C,"aria-expanded":J?void 0:u,"aria-selected":F&&!j?d:void 0,"aria-checked":M&&!j?p?`mixed`:f:void 0,"aria-disabled":j,className:Z(n,`${w.prefixCls}-treenode`,T?.item,{[`${w.prefixCls}-treenode-disabled`]:j,[`${w.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${w.prefixCls}-treenode-checkbox-checked`]:f,[`${w.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${w.prefixCls}-treenode-selected`]:d,[`${w.prefixCls}-treenode-loading`]:m,[`${w.prefixCls}-treenode-active`]:g,[`${w.prefixCls}-treenode-leaf-last`]:ue,[`${w.prefixCls}-treenode-draggable`]:V,dragging:fe,"drop-target":w.dropTargetKey===t,"drop-container":w.dropContainerKey===t,"drag-over":!j&&i,"drag-over-gap-top":!j&&a,"drag-over-gap-bottom":!j&&o,"filter-node":w.filterTreeNode?.(kB(e)),[`${w.prefixCls}-treenode-leaf`]:J}),style:{...r,...E?.item},draggable:de,onDragStart:de?H:void 0,onDragEnter:V?U:void 0,onDragOver:V?W:void 0,onDragLeave:V?G:void 0,onDrop:V?ee:void 0,onDragEnd:V?K:void 0,onMouseMove:v},ce),x.createElement(_X,{prefixCls:w.prefixCls,level:le,isStart:c,isEnd:l}),Y,X(),re,se)};SX.isTreeNode=1;function CX(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function wX(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function TX(e){return e.split(`-`)}function EX(e,t){let n=[],r=vB(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function DX(e){if(e.parent){let t=TX(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function OX(e){let t=TX(e.pos);return Number(t[t.length-1])===0}function kX(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=vB(s,n.eventKey);if(d<f+p/2){let e=o.findIndex(e=>e.key===g.key),t=o[e<=0?0:e-1].key;g=vB(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e<m&&DX(g);e+=1)g=g.parent,x+=1;let S=t.data,C=g.node,w=!0;return OX(g)&&g.level===0&&d<f+p/2&&a({dragNode:S,dropNode:C,dropPosition:-1})&&g.key===n.eventKey?b=-1:(v.children||[]).length&&h.includes(y)?a({dragNode:S,dropNode:C,dropPosition:0})?b=0:w=!1:x===0?m>-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function AX(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function jX(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return oi(!1,"`checkedKeys` is not an array or an object"),null;return t}function MX(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=vB(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var NX={},PX=`SELECT_ALL`,FX=`SELECT_INVERT`,IX=`SELECT_NONE`,LX=[],RX=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),Zd(t)&&e in t&&RX(e,t[e],n)}),n),zX=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:b,data:S,pageData:C,getRecordByKey:w,getRowKey:T,expandType:E,childrenColumnName:D,locale:O,getPopupContainer:k}=e,A=Bi(`Table`),[j,M]=yf(e=>e),[N,P]=Vn(i||LX,r),F=N??LX,I=x.useRef(new Map),L=(0,x.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=w(e);!n&&I.current.has(e)&&(n=I.current.get(e)),t.set(e,n)}),I.current=t}},[w,n]);x.useEffect(()=>{L(F)},[F,L]);let R=(0,x.useMemo)(()=>RX(D,C),[D,C]),{keyEntities:z}=(0,x.useMemo)(()=>{if(y)return{keyEntities:null};let e=S;if(n){let t=new Set(R.map(T)),n=Array.from(I.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(ca(e),ca(n))}return EB(e,{externalGetKey:T,childrenPropName:D})},[S,T,y,D,n,R]),B=(0,x.useMemo)(()=>{let e=new Map;return R.forEach((t,n)=>{let r=T(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[R,T,a]),V=(0,x.useCallback)(e=>{let t=T(e),n;return n=B.has(t)?B.get(T(e)):a?a(e):void 0,!!n?.disabled},[B,T]),[H,U]=(0,x.useMemo)(()=>{if(y)return[F,[]];let{checkedKeys:e,halfCheckedKeys:t}=LB(F,!0,z,V);return[e||[],t]},[F,y,z,V]),W=(0,x.useMemo)(()=>{let e=m===`radio`?H.slice(0,1):H;return new Set(e)},[H,m]),G=(0,x.useMemo)(()=>m===`radio`?new Set:new Set(U),[U,m]);x.useEffect(()=>{t||P(LX)},[!!t]);let K=(0,x.useCallback)((e,t)=>{let r,i;L(e),n?(r=e,i=e.map(e=>I.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=w(e);t!==void 0&&(r.push(e),i.push(t))})),P(r),s?.(r,i,{type:t})},[P,w,s,n]),ee=(0,x.useCallback)((e,t,n,r)=>{if(c){let i=n.map(w);c(w(e),t,i,r)}K(n,`single`)},[c,w,K]),te=(0,x.useMemo)(()=>!h||v?null:(h===!0?[PX,FX,IX]:h).map(e=>e===`SELECT_ALL`?{key:`all`,text:O.selectionAll,onSelect(){K(S.map((e,t)=>T(e,t)).filter(e=>!B.get(e)?.disabled||W.has(e)),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:O.selectInvert,onSelect(){let e=new Set(W);C.forEach((t,n)=>{let r=T(t,n);B.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(A.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),K(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:O.selectNone,onSelect(){d?.(),K(Array.from(W).filter(e=>B.get(e)?.disabled),`none`)}}:e).map(e=>({...e,onSelect:(...t)=>{e.onSelect?.(...t),M(null)}})),[h,v,O.selectionAll,O.selectInvert,O.selectNone,B,W,S,C,T,u,K]);return[(0,x.useCallback)(e=>{if(!t)return e.filter(e=>e!==NX);let n=ca(e),r=new Set(W),i=R.map(T).filter(e=>!B.get(e).disabled),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(w),e.map(w)),K(t,`all`),M(null)},u,d;if(m!==`radio`){let e;if(te){let t={getPopupContainer:k,items:te.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=x.createElement(`div`,{className:`${b}-selection-extra`},x.createElement(FU,{menu:t,getPopupContainer:k},x.createElement(`span`,null,x.createElement(fw,null))))}let t=R.map((e,t)=>{let n=T(e,t),i=B.get(n)||{};return{checked:r.has(n),...i}}).filter(({disabled:e})=>e),n=!!t.length&&t.length===R.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:h}=p;d=x.createElement(TV,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!R.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:h??(R.length===0||n),skipGroup:!0}),u=!v&&x.createElement(`div`,{className:`${b}-selection`},d,e)}let S;S=m===`radio`?(e,t,n)=>{let i=T(t,n),a=r.has(i),o=B.get(i);return{node:x.createElement(GL,{...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||ee(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=T(t,n),o=r.has(a),s=G.has(a),c=B.get(a),l;return l=E===`nest`?s:c?.indeterminate??s,{node:x.createElement(TV,{...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=H.some(e=>i.includes(e));if(n&&y&&l){let e=j(s,i,r),t=Array.from(r);f?.(!o,t.map(w),e.map(w)),K(t,`multiple`)}else{let e=H;if(y){let n=o?CX(e,a):wX(e,a);ee(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=LB([].concat(ca(e),[a]),!0,z,V),i=n;if(o){let e=new Set(n);e.delete(a),i=LB(Array.from(e),{checked:!1,halfCheckedKeys:r},z,V).checkedKeys}ee(a,!o,i,t)}}M(o?null:s),c?.onChange?.(e)}}),checked:o}};let C=(e,t,n)=>{let{node:r,checked:i}=S(e,t,n);return _?_(i,t,n,r):r};if(!n.includes(NX))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,NX].concat(ca(t))}else n=[NX].concat(ca(n));let D=n.indexOf(NX);n=n.filter((e,t)=>e!==NX||t===D);let O=n[D-1],A=n[D+1],N=g;N===void 0&&(A?.fixed===void 0?O?.fixed!==void 0&&(N=O.fixed):N=A.fixed),N&&O&&O.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&O.fixed===void 0&&(O.fixed=N);let P=Z(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:h&&m===`checkbox`}),F={fixed:N,width:p,className:`${b}-selection-column`,title:t?.columnTitle?typeof t.columnTitle==`function`?t.columnTitle(d):t.columnTitle:u,render:C,onCell:t.onCell,align:t.align,[hY]:{className:P}};return n.map(e=>e===NX?F:e)},[T,R,t,H,W,G,p,te,E,B,f,ee,V]),W]};function BX(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return x.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:Z(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function VX(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var HX=(e,t)=>`key`in e&&Jd(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function UX(e,t){return t?`${t}-${e}`:`${e}`}var WX=(e,t)=>typeof e==`function`?e(t):e,GX=(e,t)=>{let n=WX(e,t);return Object.prototype.toString.call(n)===`[object Object]`?``:n},KX=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z`}}]},name:`filter`,theme:`filled`}}))());function qX(){return qX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qX.apply(this,arguments)}var JX=x.forwardRef((e,t)=>x.createElement(_u,qX({},e,{ref:t,icon:KX.default}))),YX=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return x.createElement(`div`,{style:i})};function XX(e,t){let[n,r]=x.useState(!1);Rn(()=>{if(n)return e(),()=>{t()}},[n]),Rn(()=>(r(!0),()=>{r(!1)}),[])}function ZX(){return ZX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZX.apply(this,arguments)}var QX=x.forwardRef((e,t)=>{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=x.useState(!0),{prefixCls:m}=x.useContext(hX),h=a&&o!==`hide`;Rn(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=x.useRef(!1),v=()=>{a&&!_.current&&(_.current=!0,c())};return XX(g,v),a?x.createElement(Cd,ZX({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&v()}}),({className:e,style:t},n)=>x.createElement(`div`,{ref:n,className:Z(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=OB(r,u);return x.createElement(SX,ZX({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):x.createElement(SX,ZX({domRef:t,className:n,style:r},d,{active:l}))});function $X(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function eZ(e,t,n){let r=e[e.findIndex(e=>e.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function tZ(){return tZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tZ.apply(this,arguments)}var nZ=`RC_TREE_MOTION_${Math.random()}`,rZ={key:nZ},iZ={key:nZ,level:0,index:0,pos:`0`,node:rZ,nodes:[rZ]},aZ={parent:null,children:[],pos:iZ.pos,data:rZ,title:null,key:nZ,isStart:[],isEnd:[]};function oZ(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function sZ(e){let{key:t,pos:n}=e;return xB(t,n)}var cZ=x.forwardRef((e,t)=>{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:v,itemHeight:y,virtual:b,scrollWidth:S,focusable:C,activeItem:w,tabIndex:T,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onMouseUp:A,onActiveChange:j,onListChangeStart:M,onListChangeEnd:N,...P}=e,F=Kn(),I=x.useRef(null),L=x.useRef(null);x.useImperativeHandle(t,()=>({scrollTo:e=>{I.current.scrollTo(e)},getIndentWidth:()=>L.current.offsetWidth}));let[R,z]=x.useState(o),[B,V]=x.useState(r),[H,U]=x.useState(r),[W,G]=x.useState([]),[K,ee]=x.useState(null),te=x.useRef(r);te.current=r;function q(){let e=te.current;V(e),U(e),G([]),ee(null),N()}Rn(()=>{z(o);let e=$X(R,o);if(e.key!==null)if(e.add){let t=B.findIndex(({key:t})=>t===e.key),n=oZ(eZ(B,r,e.key),b,v,y),i=B.slice();i.splice(t+1,0,aZ),U(i),G(n),ee(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=oZ(eZ(r,B,e.key),b,v,y),i=r.slice();i.splice(t+1,0,aZ),U(i),G(n),ee(`hide`)}else B!==r&&(V(r),U(r))},[o,r]),x.useEffect(()=>{m||q()},[m]);let J=_?H:r,Y={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return x.createElement(x.Fragment,null,x.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},x.createElement(`div`,{className:`${n}-indent`},x.createElement(`div`,{ref:L,className:`${n}-indent-unit`}))),x.createElement(vC,tZ({},P,{data:J,itemKey:sZ,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:S,prefixCls:`${n}-list`,ref:I,role:`tree`,tabIndex:C!==!1&&!p?T:void 0,"aria-activedescendant":w?Wn(F,w.key):void 0,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onMouseUp:A,onVisibleChange:e=>{e.every(e=>sZ(e)!==nZ)&&q()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=xB(i,t);delete n.key,delete n.children;let c=OB(s,Y);return x.createElement(QX,tZ({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===nZ?W:null,motionType:K,onMotionStart:M,onMotionEnd:q,treeNodeRequiredProps:Y,treeId:F,onMouseMove:()=>{j(null)}}))}))});function lZ(){return lZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lZ.apply(this,arguments)}var uZ=10,dZ=class extends x.Component{static defaultProps={prefixCls:`rc-tree`,showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:YX,allowDrop:()=>!0,expandAction:!1};static TreeNode=SX;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:SB()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=x.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=SB(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(oi(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=CB(e.children)),a){r.treeData=a;let e=EB(a,{fieldNames:o});r.keyEntities={[nZ]:iZ,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?MX(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[nZ];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else !n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?MX(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=wB(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=AX(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=AX(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=jX(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=jX(e.defaultCheckedKeys)||{}:a&&(o=jX(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=LB(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=CX(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:EX(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:kB(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=kX(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=vB(r,t.eventKey);a&&(a.children||[]).length&&(i=wX(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:kB(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:kB(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=kX(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:kB(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:kB(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:kB(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...OB(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:vB(this.state.keyEntities,a).node};oi(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=TX(o),d={event:e,node:kB(l),dragNode:this.dragNodeProps?kB(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=kB({...OB(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?CX(n,a):wX(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?wX(n,c):[c]:CX(n,c);let u=n.map(e=>{let t=vB(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?wX(i,c):CX(i,c);l={checked:e,halfChecked:CX(a,c)},u.checkedNodes=e.map(e=>vB(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=LB([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=LB(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=vB(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(vB(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=wX(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:CX(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:CX(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=uZ){let{loadedKeys:e}=this.state;oi(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:wX(e,t)}),n()}r(e)}),{loadingKeys:wX(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onMouseUp=e=>{this.focusedByMouse=!1;let{onMouseUp:t}=this.props;t?.(e)};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{this.focusedByMouse=!1;let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,r=wB(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(oi(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?wX(n,c):CX(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=wB(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=CX(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=kB({...OB(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!vB(a,t)?.children?.length,l=!DB(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:S,checkable:C,checkStrictly:w,disabled:T,motion:E,loadData:D,filterTreeNode:O,height:k,itemHeight:A,scrollWidth:j,virtual:M,titleRender:N,dropIndicatorRender:P,onContextMenu:F,onScroll:I,direction:L,rootClassName:R,rootStyle:z}=this.props,B=_i(this.props,{aria:!0,data:!0}),V;S&&(V=typeof S==`object`?S:typeof S==`function`?{nodeDraggable:S}:{});let H={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:V,draggingNodeKey:n,checkable:C,checkStrictly:w,disabled:T,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:L,dropIndicatorRender:P,loadData:D,filterTreeNode:O,titleRender:N,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return x.createElement(hX.Provider,{value:H},x.createElement(`div`,{className:Z(l,u,R,{[`${l}-show-line`]:m}),style:z},x.createElement(cZ,lZ({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:T,selectable:_,checkable:!!C,motion:E,dragging:n!==null,height:k,itemHeight:A,virtual:M,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:I,scrollWidth:j},this.getTreeNodeRequiredProps(),B))))}},fZ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z`}}]},name:`file`,theme:`outlined`}}))());function pZ(){return pZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pZ.apply(this,arguments)}var mZ=x.forwardRef((e,t)=>x.createElement(_u,pZ({},e,{ref:t,icon:fZ.default}))),hZ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`}}))());function gZ(){return gZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gZ.apply(this,arguments)}var _Z=x.forwardRef((e,t)=>x.createElement(_u,gZ({},e,{ref:t,icon:hZ.default}))),vZ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function yZ(){return yZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yZ.apply(this,arguments)}var bZ=x.forwardRef((e,t)=>x.createElement(_u,yZ({},e,{ref:t,icon:vZ.default}))),xZ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z`}}]},name:`holder`,theme:`outlined`}}))());function SZ(){return SZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SZ.apply(this,arguments)}var CZ=x.forwardRef((e,t)=>x.createElement(_u,SZ({},e,{ref:t,icon:xZ.default}))),wZ=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),TZ=new Ds(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),EZ=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),DZ=(e,t)=>({[`.${e}-drop-indicator`]:{position:`absolute`,zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:`none`,"&:after":{position:`absolute`,top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:`transparent`,border:`${Q(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),OZ=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...Rl(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...Vl(t)}}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:TZ,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:Q(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...EZ(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:`rotate(-90deg)`},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...DZ(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&-end:before":{display:`none`}},[`${n}-switcher`]:{background:`transparent`,"&-line-icon":{verticalAlign:`-0.15em`}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:`auto !important`,bottom:`auto !important`,height:`${Q(t.calc(a).div(2).equal())} !important`}}}},kZ=(e,t,n=!0)=>{let r=`.${e}`,i=oc(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[OZ(e,i),n&&wZ(i)].filter(Boolean)},AZ=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},jZ=ql(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:cV(`${t}-checkbox`,e)},kZ(t,e),Gh(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...AZ(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),MZ=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return x.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},NZ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`filled`}}))());function PZ(){return PZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PZ.apply(this,arguments)}var FZ=x.forwardRef((e,t)=>x.createElement(_u,PZ({},e,{ref:t,icon:NZ.default}))),IZ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`minus-square`,theme:`outlined`}}))());function LZ(){return LZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LZ.apply(this,arguments)}var RZ=x.forwardRef((e,t)=>x.createElement(_u,LZ({},e,{ref:t,icon:IZ.default}))),zZ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`plus-square`,theme:`outlined`}}))());function BZ(){return BZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BZ.apply(this,arguments)}var VZ=x.forwardRef((e,t)=>x.createElement(_u,BZ({},e,{ref:t,icon:zZ.default}))),HZ=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return x.isValidElement(a)?a:x.createElement(qm,{className:`${t}-switcher-loading-icon`});let l;if(Zd(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=typeof l==`function`?l(r):l,n=`${t}-switcher-line-custom-icon`;return x.isValidElement(e)?im(e,{className:Z(e.props?.className,n)}):e}return l?x.createElement(mZ,{className:`${t}-switcher-line-icon`}):x.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=typeof n==`function`?n(r):n;return x.isValidElement(d)?im(d,{className:Z(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?x.createElement(RZ,{className:`${t}-switcher-line-icon`}):x.createElement(VZ,{className:`${t}-switcher-line-icon`}):x.createElement(FZ,{className:u}):d},UZ=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=ma(`tree`),{virtual:c}=x.useContext(da),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:h=!1,children:g,checkable:_=!1,selectable:v=!0,draggable:y,disabled:b,motion:S,style:C,rootClassName:w,classNames:T,styles:E,icon:D}=e,O=x.useContext(lm),k=b??O,A=n(`tree`,l),j=n(),M=S??{...mh(j),motionAppear:!1},N={...e,showIcon:d,blockNode:h,checkable:_,selectable:v,disabled:k,motion:M},[P,F]=vf([o,T],[s,E],{props:N}),I={...N,showLine:!!f,icon:D,dropIndicatorRender:MZ},[L,R]=jZ(A),[,z]=Il(),B=z.paddingXS/2+(z.Tree?.titleHeight||z.controlHeightSM),V=x.useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case`function`:e.nodeDraggable=y;break;case`object`:e={...y};break;default:break}return e.icon!==!1&&(e.icon=e.icon||x.createElement(CZ,null)),e},[y]),H=e=>x.createElement(HZ,{prefixCls:A,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f});return x.createElement(dZ,{itemHeight:B,ref:t,virtual:c,...I,prefixCls:A,className:Z({[`${A}-icon-hide`]:!d,[`${A}-block-node`]:h,[`${A}-unselectable`]:!v,[`${A}-rtl`]:r===`rtl`,[`${A}-disabled`]:k},i,u,L,R),style:{...a,...C},rootClassName:Z(P.root,w),rootStyle:F.root,classNames:P,styles:F,direction:r,checkable:_&&x.createElement(`span`,{className:`${A}-checkbox-inner`}),selectable:v,switcherIcon:H,draggable:V},g)}),WZ=0,GZ=1,KZ=2;function qZ(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&qZ(o||[],t,n)}e.forEach(a)}function JZ({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=WZ;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return qZ(e,e=>{if(o===KZ)return!1;if(s(e)){if(a.push(e),o===WZ)o=GZ;else if(o===GZ)return o=KZ,!1}else o===GZ&&a.push(e);return t.includes(e)},SB(i)),a}function YZ(e,t,n){let r=ca(t),i=[];return qZ(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},SB(n)),i}function XZ(e){let{isLeaf:t,expanded:n}=e;return t?x.createElement(mZ,null):n?x.createElement(_Z,null):x.createElement(bZ,null)}function ZZ({treeData:e,children:t}){return e||CB(t)}var QZ=x.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i,...a}=e,o=x.useRef(null),s=x.useRef(null),c=()=>{let{keyEntities:e}=EB(ZZ(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?MX(o,e):o,t},[l,u]=x.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=x.useState(()=>c());x.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),x.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),m=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=ZZ(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=YZ(f,g,r)):n&&h?(g=Array.from(new Set([].concat(ca(s.current||[]),ca(JZ({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=YZ(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=YZ(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:h,direction:g}=x.useContext(da),{prefixCls:_,className:v,showIcon:y=!0,expandAction:b=`click`,...S}=a,C=h(`tree`,_),w=Z(`${C}-directory`,{[`${C}-directory-rtl`]:g===`rtl`},v);return x.createElement(UZ,{icon:XZ,ref:t,blockNode:!0,...S,showIcon:y,expandAction:b,prefixCls:C,className:w,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p})}),$Z=UZ;$Z.DirectoryTree=QZ,$Z.TreeNode=SX;var eQ=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?x.createElement(`div`,{className:`${r}-filter-dropdown-search`},x.createElement(JV,{prefix:x.createElement(hw,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},tQ=e=>{let{keyCode:t}=e;t===Jr.ENTER&&e.stopPropagation()},nQ=x.forwardRef((e,t)=>x.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:tQ,ref:t},e.children));function rQ(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(ca(t),ca(rQ(n))))}),t}function iQ(e){return e.some(({children:e})=>e)}var aQ=(e,t)=>typeof t==`string`||Yd(t)?t.toString().toLowerCase().includes(e):!1,oQ=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:oQ({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?TV:GL,u={key:e.value===void 0?t:c,label:x.createElement(x.Fragment,null,x.createElement(l,{checked:r.includes(c)}),x.createElement(`span`,null,e.text))};return o?typeof s==`function`?s(o,e)?u:null:aQ(o,e.text)?u:null:u})};function sQ(e){return e||[]}var cQ=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:m,rootClassName:h}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:_,filterDropdownProps:v={},filterDropdownOpen:y,onFilterDropdownOpenChange:b}=r,[S,C]=x.useState(!1),w=x.useContext(Zw),T=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),E=e=>{C(e),v.onOpenChange?.(e),b?.(e)},D=v.open??y??S,O=u?.filteredKeys,[k,A]=Tf(sQ(O)),j=({selectedKeys:e})=>{A(e)},M=(e,{node:t,checked:n})=>{j(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};x.useEffect(()=>{S&&j({selectedKeys:sQ(O)})},[O]);let[N,P]=x.useState([]),F=e=>{P(e)},[I,L]=x.useState(``),R=x.useMemo(()=>I.trim().toLowerCase(),[I]),z=e=>{let{value:t}=e.target;L(t)};x.useEffect(()=>{S||L(``)},[S]);let B=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||ci(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},V=()=>{E(!1),B(k())},H=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&B([]),t&&E(!1),L(``),A(g?(_||[]).map(String):[])},U=({closeDropdown:e}={closeDropdown:!0})=>{e&&E(!1),B(k())},W=(e,t)=>{t.source===`trigger`&&(e&&O!==void 0&&A(sQ(O)),E(e),!e&&!r.filterDropdown&&o&&V())},G=Z({[`${i}-menu-without-submenu`]:!iQ(r.filters||[])}),K=e=>{e.target.checked?A(rQ(r?.filters).map(String)):A([])},ee=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ee({filters:e.children})),r}),te=e=>({...e,text:e.title,value:e.key,children:e.children?.map(te)||[]}),q,{direction:J,renderEmpty:Y}=x.useContext(da);if(typeof r.filterDropdown==`function`)q=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:k(),confirm:U,clearFilters:H,filters:r.filters,visible:D,close:()=>{E(!1)}});else if(r.filterDropdown)q=r.filterDropdown;else{let e=k()||[];q=x.createElement(x.Fragment,null,(()=>{let a=Y?.(`Table.filter`)??x.createElement(WC,{image:WC.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return x.createElement(x.Fragment,null,x.createElement(eQ,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),x.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?x.createElement(TV,{checked:e.length===rQ(r.filters).length,indeterminate:e.length>0&&e.length<rQ(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:K},f?.filterCheckall??f?.filterCheckAll):null,x.createElement($Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:M,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:ee({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:R?e=>typeof l==`function`?l(I,te(e)):aQ(R,e.title):void 0})));let o=oQ({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:k(),filterMultiple:s,searchValue:I,normalizedSearchValue:R}),u=o.every(e=>e===null);return x.createElement(x.Fragment,null,x.createElement(eQ,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),u?a:x.createElement(CD,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:G,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:m,openKeys:N,onOpenChange:F,items:o}))})(),x.createElement(`div`,{className:`${n}-dropdown-btns`},x.createElement(x_,{type:`link`,size:`small`,disabled:g?ci((_||[]).map(String),e,!0):e.length===0,onClick:()=>H()},f.filterReset),x.createElement(x_,{type:`primary`,size:`small`,onClick:V},f.filterConfirm)))}r.filterDropdown&&(q=x.createElement(sD,{selectable:void 0},q)),q=x.createElement(nQ,{className:`${n}-dropdown`},q);let ne=(()=>{let e;return e=typeof r.filterIcon==`function`?r.filterIcon(T):r.filterIcon?r.filterIcon:x.createElement(JX,null),x.createElement(`span`,{role:`button`,tabIndex:-1,className:Z(`${n}-trigger`,{active:T}),onClick:e=>{e.stopPropagation()}},e)})();if(w)return x.createElement(`div`,{className:`${n}-column`},x.createElement(`span`,{className:`${t}-column-title`},p),ne);let X=qd({trigger:[`click`],placement:J===`rtl`?`bottomLeft`:`bottomRight`,children:ne,getPopupContainer:m},{...v,rootClassName:Z(h,v.rootClassName),open:D,onOpenChange:W,popupRender:()=>typeof v?.dropdownRender==`function`?v.dropdownRender(q):q});return x.createElement(`div`,{className:`${n}-column`},x.createElement(`span`,{className:`${t}-column-title`},p),x.createElement(FU,{...X}))},lQ=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=UX(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:HX(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:HX(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(ca(r),ca(lQ(e.children,t,a))))}),r};function uQ(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=UX(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=HX(h,u),l=r.find(({key:e})=>s===e);h={...h,title:r=>x.createElement(cQ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},WX(n.title,r))}}return`children`in h&&(h={...h,children:uQ(e,t,h.children,r,i,a,o,u,c)}),h})}var dQ=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=rQ(a).filter(e=>n.includes(String(e))):t[i]=null}),t},fQ=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=rQ(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=fQ(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),pQ=e=>e.flatMap(e=>`children`in e?[e].concat(ca(pQ(e.children||[]))):[e]),mQ=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Bi(`Table`);let c=x.useMemo(()=>pQ(r||[]),[r]),[l,u]=x.useState(()=>lQ(c,!0)),d=x.useMemo(()=>{let e=lQ(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>HX(e,UX(t)));return l.filter(({key:t})=>e.includes(t)).map(t=>{let n=c[e.indexOf(t.key)];return{...t,column:{...t.column,...n},forceFiltered:n.filtered}})}return e},[c,l]),f=x.useMemo(()=>dQ(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(dQ(t),t)};return[e=>uQ(t,n,e,d,o,p,a,void 0,s),d,f]},hQ=(e,t,n)=>{let r=x.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),Zd(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function gQ(e,t){let n={current:e.current,pageSize:e.pageSize},r=Zd(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];typeof r!=`function`&&(n[t]=r)}),n}function _Q(e,t,n){let{total:r=0,...i}=Zd(n)?n:{},[a,o]=(0,x.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=qd(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var vQ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`outlined`}}))());function yQ(){return yQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yQ.apply(this,arguments)}var bQ=x.forwardRef((e,t)=>x.createElement(_u,yQ({},e,{ref:t,icon:vQ.default}))),xQ=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z`}}]},name:`caret-up`,theme:`outlined`}}))());function SQ(){return SQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SQ.apply(this,arguments)}var CQ=x.forwardRef((e,t)=>x.createElement(_u,SQ({},e,{ref:t,icon:xQ.default}))),wQ=`ascend`,TQ=`descend`,EQ=e=>e.sorter&&typeof e.sorter==`object`&&Yd(e.sorter.multiple)?e.sorter.multiple:!1,DQ=e=>typeof e==`function`?e:Zd(e)&&e.compare?e.compare:!1,OQ=(e,t)=>t?e[e.indexOf(t)+1]:e[0],kQ=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:HX(e,t),multiplePriority:EQ(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=UX(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(ca(r),ca(kQ(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:HX(e,o),multiplePriority:EQ(e),sortOrder:e.defaultSortOrder}))}),r},AQ=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=UX(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=HX(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,h=OQ(s,m),g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{let t=s.includes(wQ)&&x.createElement(CQ,{className:Z(`${e}-column-sorter-up`,{active:m===wQ})}),n=s.includes(TQ)&&x.createElement(bQ,{className:Z(`${e}-column-sorter-down`,{active:m===TQ})});g=x.createElement(`span`,{className:Z(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},x.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:_,triggerAsc:v,triggerDesc:y}=a||{},b=_;h===TQ?b=y:h===wQ&&(b=v);let S=Zd(l)?{title:b,...l}:{title:b};d={...d,className:Z(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=`${e}-column-sorters`,i=x.createElement(`span`,{className:`${e}-column-title`},WX(t.title,n)),a=x.createElement(`div`,{className:r},i,g);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?x.createElement(`div`,{className:Z(r,`${r}-tooltip-target-sorter`)},i,x.createElement(lT,{...S},g)):x.createElement(lT,{...S},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:EQ(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===Jr.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:EQ(t)}),o?.(e))};let s=GX(t.title,{}),l=s?.toString();return m&&(i[`aria-sort`]=m===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=Z(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:AQ(e,d.children,n,r,i,a,o,u,c)}),d}),jQ=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},MQ=e=>{let t=e.filter(({sortOrder:e})=>e).map(jQ);return t.length===0&&e.length?{...jQ(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},NQ=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>DQ(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n<a.length;n+=1){let{column:{sorter:r},sortOrder:i}=a[n],o=DQ(r);if(o&&i){let n=o(e,t,i);if(n!==0)return i===wQ?n:-n}}return 0}).map(e=>{let r=e[n];return r?{...e,[n]:NQ(r,t,n)}:e}):i},PQ=e=>{let{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o,globalLocale:s}=e,[c,l]=x.useState(()=>kQ(n,!0)),u=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=UX(r,t);if(n.push(HX(e,i)),Array.isArray(e.children)){let t=u(e.children,i);n.push.apply(n,ca(t))}}),n},d=x.useMemo(()=>{let e=!0,t=kQ(n,!1);if(!t.length){let e=u(n);return c.filter(({key:t})=>e.includes(t))}let r=[];function i(t){e?r.push(t):r.push({...t,sortOrder:null})}let a=null;return t.forEach(t=>{a===null?(i(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:a=!0)):(a&&t.multiplePriority!==!1||(e=!1),i(t))}),r},[n,c]),f=x.useMemo(()=>{let e=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[d]),p=e=>{let t;t=e.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?[e]:[].concat(ca(d.filter(({key:t})=>t!==e.key)),[e]),l(t),o(MQ(t),t)};return[e=>AQ(t,e,d,p,r,i,a,void 0,s),d,f,()=>MQ(d)]},FQ=(e,t)=>e.map(e=>{let n={...e};return n.title=WX(e.title,t),`children`in n&&(n.children=FQ(n.children,t)),n}),IQ=e=>[x.useCallback(t=>FQ(t,e),[e])],LQ=$Y((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),RQ=fX((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),zQ=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${Q(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${Q(c(r).mul(-1).equal())}
|
||
${Q(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:l,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:l,borderTop:l,[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:l}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${Q(c(o).mul(-1).equal())} ${Q(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:l,content:`""`}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
||
> tr${t}-expanded-row,
|
||
> tr${t}-placeholder
|
||
`]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Q(n)} 0 ${Q(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},BQ=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Ll,wordBreak:`keep-all`,[`
|
||
&${t}-cell-fix-start-shadow,
|
||
&${t}-cell-fix-end-shadow
|
||
`]:{overflow:`visible`,[`${t}-cell-content`]:{...Ll,display:`block`}},[`${t}-column-title`]:{...Ll,wordBreak:`keep-all`}}}}},VQ=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},HQ=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${Q(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${t}-row-expand-icon-cell`]:{textAlign:`center`,[`${t}-row-expand-icon`]:{display:`inline-flex`,float:`none`,verticalAlign:`sub`}},[`${t}-row-indent`]:{height:1,float:`left`},[`${t}-row-expand-icon`]:{...Kl(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:Q(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,transform:`rotate(90deg)`},"&-collapsed::before":{transform:`rotate(-180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`},"&-spaced":{"&::before, &::after":{display:`none`,content:`none`},background:`transparent`,border:0,visibility:`hidden`}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${Q(y(d).mul(-1).equal())} ${Q(y(f).mul(-1).equal())}`,padding:`${Q(d)} ${Q(f)}`}}}},UQ=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${Q(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${Q(o)} ${Q(D(m).div(2).mul(-1).equal())}`,padding:`0 ${Q(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...Rl(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${Q(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${Q(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${Q(D(s).sub(l).equal())} ${Q(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function WQ({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var GQ=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=WQ(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},KQ=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Q(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},qQ=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Q(n)} ${Q(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Q(n)} ${Q(n)}`}}}}},JQ=e=>{let{componentCls:t}=e,[n,r]=WQ(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},YQ=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[`
|
||
table tr th${t}-selection-column,
|
||
table tr td${t}-selection-column,
|
||
${t}-selection-column
|
||
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:`transparent !important`},[`${t}-selection`]:{position:`relative`,display:`inline-flex`,flexDirection:`column`},[`${t}-selection-extra`]:{position:`absolute`,top:0,zIndex:1,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,marginInlineStart:`100%`,paddingInlineStart:Q(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},XQ=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[`
|
||
${t}-title,
|
||
${t}-footer,
|
||
${t}-cell,
|
||
${t}-thead > tr > th,
|
||
${t}-tbody > tr > th,
|
||
${t}-tbody > tr > td,
|
||
tfoot > tr > th,
|
||
tfoot > tr > td
|
||
`]:{padding:`${Q(i)} ${Q(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Q(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Q(r(i).mul(-1).equal())} ${Q(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Q(r(i).mul(-1).equal()),marginInline:`${Q(r(n).sub(a).equal())} ${Q(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Q(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},ZQ=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[`
|
||
&${t}-cell-fix-left:hover,
|
||
&${t}-cell-fix-right:hover
|
||
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:`transparent !important`}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:`relative`,zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},QQ=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${Q(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${Q(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},$Q=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${Q(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${Q(i(n).mul(-1).equal())} 0 ${r}`}}}},e$=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${Q(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
||
& > ${t}-row,
|
||
& > div:not(${t}-row) > ${t}-row
|
||
`]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${Q(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},t$=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${Q(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...Bl(),[t]:{...Rl(e),fontSize:l,background:u,borderRadius:`${Q(d)} ${Q(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${Q(d)} ${Q(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[`
|
||
${t}-cell,
|
||
${t}-thead > tr > th,
|
||
${t}-tbody > tr > th,
|
||
${t}-tbody > tr > td,
|
||
tfoot > tr > th,
|
||
tfoot > tr > td
|
||
`]:{position:`relative`,padding:`${Q(r)} ${Q(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${Q(r)} ${Q(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:h,transform:`translateY(-50%)`,transition:`background-color ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:[`background-color`,`border-color`].map(e=>`${e} ${p}`).join(`, `),[`
|
||
> ${t}-wrapper:only-child,
|
||
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
||
`]:{[t]:{marginBlock:Q(v(r).mul(-1).equal()),marginInline:`${Q(v(a).sub(i).equal())}
|
||
${Q(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${Q(r)} ${Q(i)}`,color:g,background:_}}}},n$=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new Oc(i).onBackground(n).toHexString(),w=new Oc(a).onBackground(n).toHexString(),T=new Oc(t).onBackground(n).toHexString(),E=new Oc(y),D=new Oc(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},r$=2,i$=ql(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=oc(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:r$,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[t$(F),KQ(F),$Q(F),ZQ(F),UQ(F),zQ(F),qQ(F),HQ(F),$Q(F),VQ(F),YQ(F),GQ(F),QQ(F),BQ(F),XQ(F),JQ(F),e$(F)]},n$,{resetFont:!1,unitless:{expandIconScale:!0}}),a$=[],o$=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:m,rowClassName:h,columns:g,children:_,childrenColumnName:v,onChange:y,getPopupContainer:b,loading:S,expandIcon:C,expandable:w,expandedRowRender:T,expandIconColumnIndex:E,indentSize:D,scroll:O,sortDirections:k,locale:A,showSorterTooltip:j={target:`full-header`},virtual:M}=e;Bi(`Table`);let N=x.useMemo(()=>g||OY(_),[g,_]),P=Dw(x.useMemo(()=>N.some(e=>e.responsive),[N])),F=x.useMemo(()=>{let e=new Set(Object.keys(P).filter(e=>P[e]));return N.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[N,P]),I=fi(e,[`className`,`style`,`columns`]),{locale:L=Ld,table:R}=x.useContext(da),{getPrefixCls:z,direction:B,renderEmpty:V,getPopupContainer:H,className:U,style:W,classNames:G,styles:K}=ma(`table`),ee=Th(e=>c===`middle`?`medium`:c??e),te={...e,size:ee,bordered:l},[q,J]=vf([G,o],[K,s],{props:te},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),Y={...L.Table,...A},[ne]=Wd(`global`,Ld.global),X=d||a$,re=z(`table`,n),ie=z(`dropdown`,u),[,ae]=Il(),oe=x.useMemo(()=>Zd(p)?{columnWidth:ae.Table?.selectionColumnWidth,...p}:p,[p,ae.Table?.selectionColumnWidth]),se=np(re),[ce,le]=i$(re,se),ue={childrenColumnName:v,expandIconColumnIndex:E,...w,expandIcon:w?.expandIcon??R?.expandable?.expandIcon},{childrenColumnName:de=`children`}=ue,fe=x.useMemo(()=>X.some(e=>e?.[de])?`nest`:T||w?.expandedRowRender?`row`:null,[de,X]),pe={body:x.useRef(null)},me=VX(re),he=x.useRef(null),ge=x.useRef(null);wf(t,()=>({...ge.current,nativeElement:he.current}));let _e=m||R?.rowKey||`key`,ve=O??R?.scroll,ye=x.useMemo(()=>typeof _e==`function`?_e:e=>e?.[_e],[_e]),[be]=hQ(X,de,ye),xe={},Se=(e,t,n=!1)=>{let r={...xe,...e};n&&(xe.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),O&&O.scrollToFirstRowOnChange!==!1&&pe.body.current&&tp(0,{getContainer:()=>pe.body.current}),y?.(r.pagination,r.filters,r.sorter,{currentDataSource:fQ(NQ(X,r.sorterStates,de),r.filterStates,de),action:t})},[Ce,we,Te,Ee]=PQ({prefixCls:re,mergedColumns:F,onSorterChange:(e,t)=>{Se({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:k||[`ascend`,`descend`],tableLocale:Y,showSorterTooltip:j,globalLocale:ne}),De=x.useMemo(()=>NQ(X,we,de),[de,X,we]);xe.sorter=Ee(),xe.sorterStates=we;let[Oe,ke,Ae]=mQ({prefixCls:re,locale:Y,dropdownPrefixCls:ie,mergedColumns:F,onFilterChange:(e,t)=>{Se({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:b||H,rootClassName:Z(i,se)}),je=fQ(De,ke,de);xe.filters=Ae,xe.filterStates=ke;let[Me]=IQ(x.useMemo(()=>{let e={};return Object.keys(Ae).forEach(t=>{Ae[t]!==null&&(e[t]=Ae[t])}),{...Te,filters:e}},[Te,Ae])),[Ne,Pe]=_Q(je.length,(e,t)=>{Se({pagination:{...xe.pagination,current:e,pageSize:t}},`paginate`)},f);xe.pagination=f===!1?{}:gQ(Ne,f),xe.resetPagination=Pe;let Fe=x.useMemo(()=>{if(f===!1||!Ne.pageSize)return je;let{current:e=1,total:t,pageSize:n=10}=Ne;return je.length<t?je.length>n?je.slice((e-1)*n,e*n):je:je.slice((e-1)*n,e*n)},[!!f,je,Ne?.current,Ne?.pageSize,Ne?.total]),[Ie,Le]=zX({prefixCls:re,data:je,pageData:Fe,getRowKey:ye,getRecordByKey:be,expandType:fe,childrenColumnName:de,locale:Y,getPopupContainer:b||H},oe),Re=(e,t,n)=>{let r=typeof h==`function`?h(e,t,n):h;return Z({[`${re}-row-selected`]:Le.has(ye(e,t))},r)};ue.__PARENT_RENDER_ICON__=ue.expandIcon,ue.expandIcon=ue.expandIcon||C||BX(Y),fe===`nest`&&ue.expandIconColumnIndex===void 0?ue.expandIconColumnIndex=+!!oe:ue.expandIconColumnIndex>0&&oe&&--ue.expandIconColumnIndex,typeof ue.indentSize!=`number`&&(ue.indentSize=Yd(D)?D:15);let ze=x.useCallback(e=>Me(Ie(Oe(Ce(e)))),[Ce,Oe,Ie]),Be,Ve;if(f!==!1&&Ne?.total){let e;e=Ne.size?Ne.size:ee===`small`||ee===`medium`?`small`:void 0;let t=(t=`end`)=>x.createElement(JK,{...Ne,classNames:q.pagination,styles:J.pagination,className:Z(`${re}-pagination ${re}-pagination-${t}`,Ne.className),size:e}),{placement:n,position:r}=Ne,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(Ve=t()),e&&(Be=t(a(e))),n&&(Ve=t(a(n)))}else Ve=t()}let He=x.useMemo(()=>{if(typeof S==`boolean`)return{spinning:S};if(Zd(S))return{spinning:!0,...S}},[S]),Ue=Z(le,se,`${re}-wrapper`,U,{[`${re}-wrapper-rtl`]:B===`rtl`},r,i,q.root,ce),We={...J.root,...W,...a},Ge=x.useMemo(()=>He?.spinning&&X===a$?null:A?.emptyText===void 0?V?.(`Table`)||x.createElement(GC,{componentName:`Table`}):A.emptyText,[He?.spinning,X,A?.emptyText,V]),Ke=M?RQ:LQ,qe={},Je=x.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=ae,o=Math.floor(e*t);switch(ee){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[ae,ee]);return M&&(qe.listItemHeight=Je),x.createElement(`div`,{ref:he,className:Ue,style:We},x.createElement(hq,{spinning:!1,...He},Be,x.createElement(Ke,{...qe,...I,scroll:ve,classNames:q,styles:J,ref:ge,columns:F,direction:B,expandable:ue,prefixCls:re,className:Z({[`${re}-medium`]:ee===`medium`,[`${re}-small`]:ee===`small`,[`${re}-bordered`]:l,[`${re}-empty`]:X.length===0},le,se,ce),data:Fe,rowKey:ye,rowClassName:Re,emptyText:Ge,internalHooks:SJ,internalRefs:pe,transformColumns:ze,getContainerWidth:me,measureRowRender:e=>x.createElement(Zw.Provider,{value:!0},x.createElement(km,{getPopupContainer:e=>e},e))}),Ve))}),s$=x.forwardRef((e,t)=>{let n=x.useRef(0);return n.current+=1,x.createElement(o$,{...e,ref:t,_renderTimes:n.current})});s$.SELECTION_COLUMN=NX,s$.EXPAND_COLUMN=xJ,s$.SELECTION_ALL=PX,s$.SELECTION_INVERT=FX,s$.SELECTION_NONE=IX,s$.Column=pX,s$.ColumnGroup=mX,s$.Summary=$J;var c$=s$,l$=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...Rl(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-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},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},u$=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return oc(e,{tagFontSize:i,tagLineHeight:Q(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},d$=e=>{let t=e_(new Lg(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Oc(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},f$=ql(`Tag`,e=>l$(u$(e)),d$),p$=x.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=x.useContext(da),m=x.useContext(lm),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[v,y]=f$(_),b=Z(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,v,y);return x.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:b,onClick:g},s,x.createElement(`span`,null,o))}),m$=x.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:S}=ma(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[T,E]=f$(C,np(C)),[D,O]=vf([b,s],[S,c],{props:e}),k=(0,x.useMemo)(()=>Array.isArray(u)?u.map(e=>Zd(e)?e:{value:e,label:e}):[],[u]),[A,j]=Vn(f,d),M=(e,t)=>{let n=null;if(m){let r=A||[];n=e?[].concat(ca(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;j(n),p?.(n)},N=x.useRef(null);(0,x.useImperativeHandle)(t,()=>({nativeElement:N.current}));let P=_i(h,{aria:!0,data:!0});return x.createElement(`div`,{...P,className:Z(w,v,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},T,E,a,D.root),style:{...y,...O.root,...o},id:n,ref:N},k.map(e=>x.createElement(p$,{key:e.value,className:Z(`${w}-item`,D.item),style:O.item,checked:m?(A||[]).includes(e.value):A===e.value,onChange:t=>M(t,e),disabled:l},e.label)))});function h$(e,t){let{color:n,variant:r,bordered:i}=e;return x.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=aT(n),c=oT(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new Oc(o).toHsl();e.l=.95,l.backgroundColor=new Oc(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var g$=e=>Zl(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),_$=Yl([`Tag`,`preset`],e=>g$(u$(e)),d$);function v$(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var y$=(e,t,n)=>{let r=v$(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},b$=Yl([`Tag`,`status`],e=>{let t=u$(e);return[y$(t,`success`,`Success`),y$(t,`processing`,`Info`),y$(t,`error`,`Error`),y$(t,`warning`,`Warning`)]},d$),x$=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:v,direction:y,className:b,variant:S,style:C,classNames:w,styles:T}=ma(`tag`),[E,D,O,k,A]=h$(e,S),j=O||k,M=x.useContext(lm),N=f??M,{tag:P}=x.useContext(da),[F,I]=x.useState(!0),L=fi(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=vf([w,g],[T,h],{props:R}),V=x.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=v(`tag`,n),[U,W]=f$(H),G=Z(H,b,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:y===`rtl`,[`${H}-disabled`]:N},r,i,U,W),K=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,ee]=cf(tf(e),tf(P),{closable:!1,closeIconRender:e=>rm(e,x.createElement(`span`,{className:`${H}-close-icon`,onClick:K},e),e=>({onClick:t=>{e?.onClick?.(t),K(t)},className:Z(e?.className,`${H}-close-icon`)}))}),te=typeof _.onClick==`function`||o&&o.type===`a`,q=im(s,{className:Z(x.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),J=q?x.createElement(x.Fragment,null,q,o&&x.createElement(`span`,{className:z.content,style:B.content},o)):o,Y=p?`a`:`span`,ne=x.createElement(Y,{...L,ref:t,className:G,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},J,ee,O&&x.createElement(_$,{key:`preset`,prefixCls:H}),k&&x.createElement(b$,{key:`status`,prefixCls:H}));return te?x.createElement(wh,{component:`Tag`},ne):ne});x$.CheckableTag=p$,x$.CheckableTagGroup=m$;var S$=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`}}))());function C$(){return C$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C$.apply(this,arguments)}var w$=x.forwardRef((e,t)=>x.createElement(_u,C$({},e,{ref:t,icon:S$.default}))),T$=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function E$(){return E$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E$.apply(this,arguments)}var D$=x.forwardRef((e,t)=>x.createElement(_u,E$({},e,{ref:t,icon:T$.default}))),O$=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k$.apply(this,arguments)}var A$=x.forwardRef((e,t)=>x.createElement(_u,k$({},e,{ref:t,icon:O$.default}))),j$=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},M$=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
|
||
h${t}&,
|
||
div&-h${t},
|
||
div&-h${t} > textarea,
|
||
h${t}
|
||
`]=j$(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},N$=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Kl(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},P$=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:Gc[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}}),F$=e=>{let{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`}}}},I$=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),L$=()=>({"a&-ellipsis, span&-ellipsis":{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`}}),R$=ql(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...M$(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...P$(e),...N$(e),[`${t}-actions`]:{display:`inline`},[`
|
||
${t}-expand,
|
||
${t}-collapse,
|
||
${t}-edit,
|
||
${t}-copy
|
||
`]:{...Kl(e),marginInlineStart:e.marginXXS},...F$(e),...I$(e),...L$(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),z$=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=x.createElement(A$,null)}=e,m=x.useRef(null),h=x.useRef(!1),g=x.useRef(null),[_,v]=x.useState(c);x.useEffect(()=>{v(c)},[c]),x.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let y=({target:e})=>{v(e.value.replace(/[\n\r]/g,``))},b=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===Jr.ENTER?(w(),d?.()):e===Jr.ESC&&u())},E=()=>{w()},[D,O]=R$(t),k=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return x.createElement(`div`,{className:k,style:i},x.createElement(sK,{ref:m,maxLength:o,value:_,onChange:y,onKeyDown:C,onKeyUp:T,onCompositionStart:b,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:im(p,{className:`${t}-edit-content-confirm`}))},B$=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},V$=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function H$(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await V$(e,n)||B$(e,n))}var U$=({copyConfig:e,children:t})=>{let[n,r]=x.useState(!1),[i,a]=x.useState(!1),o=x.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),x.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:Fn(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await H$((typeof e.text==`function`?await e.text():e.text)||gq(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function W$(e,t){return x.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var G$=e=>{let t=(0,x.useRef)(void 0);return(0,x.useEffect)(()=>{t.current=e}),t.current},K$=(e,t,n)=>(0,x.useMemo)(()=>e===!0?{title:t??n}:(0,x.isValidElement)(e)?{title:e}:Zd(e)?{title:t??n,...e}:{title:e},[e,t,n]),q$=x.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=ma(`typography`),m=s??d,h=u(`typography`,n),[g,_]=R$(h),v=Z(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),y={...p,...c};return x.createElement(r,{className:v,style:y,ref:t,...l},o)}),J$=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function Y$(){return Y$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y$.apply(this,arguments)}var X$=x.forwardRef((e,t)=>x.createElement(_u,Y$({},e,{ref:t,icon:J$.default}))),Z$=e=>e===!1?[!1,!1]:gq(e);function Q$(e,t,n){return e===!0||e===void 0?t:e||n&&t}function $$(e){let t=document.createElement(`em`);e.appendChild(t);let 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}var e1=e=>[`string`,`number`].includes(typeof e),t1=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=Z$(a),d=Z$(o),{copied:f,copy:p}=r??{},m=n?f:p,h=Q$(u[+!!n],m),g=typeof h==`string`?h:m;return x.createElement(lT,{title:h},x.createElement(`button`,{type:`button`,className:Z(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?Q$(d[1],x.createElement(lw,null),!0):Q$(d[0],l?x.createElement(qm,null):x.createElement(X$,null),!0)))},n1=x.forwardRef(({style:e,children:t},n)=>{let r=x.useRef(null);return x.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),x.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),r1=e=>e.reduce((e,t)=>e+(e1(t)?String(t).length:1),0);function i1(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=e1(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var a1=0,o1=1,s1=2,c1=3,l1=4,u1={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function d1(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=x.useMemo(()=>wi(r),[r]),u=x.useMemo(()=>r1(l),[r]),d=x.useMemo(()=>i(l,!1),[r]),[f,p]=x.useState(null),m=x.useRef(null),h=x.useRef(null),g=x.useRef(null),_=x.useRef(null),v=x.useRef(null),[y,b]=x.useState(!1),[S,C]=x.useState(a1),[w,T]=x.useState(0),[E,D]=x.useState(null);Rn(()=>{C(t&&n&&u?o1:a1)},[n,r,a,t,l]),Rn(()=>{if(S===o1)C(s1),D(h.current&&getComputedStyle(h.current).whiteSpace);else if(S===s1){let e=!!g.current?.isExceed();C(e?c1:l1),p(e?[0,u]:null),b(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=v.current?.getHeight()||0;T(Math.max(t,n+r)+1),c(e)}},[S]);let O=f?Math.ceil((f[0]+f[1])/2):0;Rn(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>w,r=O;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,O]);let k=x.useMemo(()=>{if(!t)return i(l,!1);if(S!==c1||!f||f[0]!==f[1]){let e=i(l,!1);return[l1,a1].includes(S)?e:x.createElement(`span`,{style:{...u1,WebkitLineClamp:a}},e)}return i(o?l:i1(l,f[0]),y)},[o,S,f,l].concat(ca(s))),A={width:n,margin:0,padding:0,whiteSpace:E===`nowrap`?`normal`:`inherit`};return x.createElement(x.Fragment,null,k,S===s1&&x.createElement(x.Fragment,null,x.createElement(n1,{style:{...A,...u1,WebkitLineClamp:a},ref:g},d),x.createElement(n1,{style:{...A,...u1,WebkitLineClamp:a-1},ref:_},d),x.createElement(n1,{style:{...A,...u1,WebkitLineClamp:1},ref:v},i([],!0))),S===c1&&f&&f[0]!==f[1]&&x.createElement(n1,{style:{...A,top:400},ref:m},i(i1(l,O),!0)),S===o1&&x.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var f1=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return x.createElement(lT,{open:a,...i},r)};function p1({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=x.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var m1=`...`,h1=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],g1=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=x.useContext(da),[v]=Wd(`Text`),y=x.useRef(null),b=x.useRef(null),S=g(`typography`,n),C=fi(h,h1),[w,T]=W$(l),[E,D]=Vn(!1,T.editing),{triggerType:O=[`icon`]}=T,k=e=>{e&&T.onStart?.(),D(e)},A=G$(E);Rn(()=>{!E&&A&&b.current?.focus()},[E]);let j=e=>{e?.preventDefault(),k(!0)},M=e=>{T.onChange?.(e),k(!1)},N=()=>{T.onCancel?.(),k(!1)},[P,F]=W$(u),{copied:I,copyLoading:L,onClick:R}=U$({copyConfig:F,children:s}),[z,B]=x.useState(!1),[V,H]=x.useState(!1),[U,W]=x.useState(!1),[G,K]=x.useState(!1),[ee,te]=x.useState(!0),[q,J]=W$(c,{expandable:!1,symbol:e=>e?v?.collapse:v?.expand}),[Y,ne]=Vn(J.defaultExpanded||!1,J.expanded),X=q&&(!Y||J.expandable===`collapsible`),{rows:re=1}=J,ie=x.useMemo(()=>X&&(J.suffix!==void 0||J.onEllipsis||J.expandable||w||P),[X,J,w,P]);Rn(()=>{q&&!ie&&(B(qr(`webkitLineClamp`)),H(qr(`textOverflow`)))},[ie,q]);let[ae,oe]=x.useState(X),se=x.useMemo(()=>ie?!1:re===1?V:z,[ie,V,z]);Rn(()=>{oe(se&&X)},[se,X]);let ce=K$(J.tooltip,T.text,s),le=ae&&!!ce.title,ue=X&&(ae?le&&G:U),de=X&&re===1&&ae,fe=X&&re>1&&ae,pe=(e,t)=>{ne(t.expanded),J.onExpand?.(e,t)},[me,he]=x.useState(0),[ge,_e]=x.useState(!1),[ve,ye]=x.useState(!1),be=({offsetWidth:e})=>{he(e)},xe=e=>{W(e),U!==e&&J.onEllipsis?.(e)};x.useEffect(()=>{let e=y.current;if(q&&le&&e){let t=$$(e);G!==t&&K(t)}},[q,le,s,fe,ee,me]),x.useEffect(()=>{let e=y.current;if(typeof IntersectionObserver>`u`||!e||!le||!X)return;let t=new IntersectionObserver(()=>{te(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[le,X]);let Se=x.useMemo(()=>{if(!(!q||ae))return[T.text,s,f,ce.title].find(e1)},[q,ae,f,ce.title,ue]);if(E)return x.createElement(z$,{value:T.text??(typeof s==`string`?s:``),onSave:M,onCancel:N,onEnd:T.onEnd,prefixCls:S,className:r,style:i,direction:_,component:d,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});let Ce=()=>{let{expandable:e,symbol:t}=J;return e?x.createElement(`button`,{type:`button`,key:`expand`,className:`${S}-${Y?`collapse`:`expand`}`,onClick:e=>pe(e,{expanded:!Y}),"aria-label":Y?v.collapse:v?.expand},typeof t==`function`?t(Y):t):null},we=()=>{if(!w)return;let{icon:e,tooltip:t,tabIndex:n}=T,r=wi(t)[0]||v?.edit,i=typeof r==`string`?r:``;return O.includes(`icon`)?x.createElement(lT,{key:`edit`,title:t===!1?``:r},x.createElement(`button`,{type:`button`,ref:b,className:`${S}-edit`,onClick:j,"aria-label":i,tabIndex:n},e||x.createElement(D$,{role:`button`}))):null},Te=()=>P?x.createElement(t1,{key:`copy`,...F,prefixCls:S,copied:I,locale:v,onCopy:R,loading:L,iconOnly:!Jd(s)}):null,Ee=e=>{let t=e&&Ce(),n=we(),r=Te();return!t&&!n&&!r?null:x.createElement(`span`,{key:`operations`,className:`${S}-actions`,onMouseEnter:()=>_e(!0),onMouseLeave:()=>_e(!1)},t,n,r)},De=e=>[e&&!Y&&x.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},m1),J.suffix,Ee(e)];return x.createElement(ta,{onResize:be,disabled:!X},c=>x.createElement(f1,{tooltipProps:ce,enableEllipsis:X,isEllipsis:ue,open:ve&&!ge},x.createElement(q$,{onMouseEnter:e=>{ye(!0),p?.(e)},onMouseLeave:e=>{ye(!1),m?.(e)},className:Z({[`${S}-${a}`]:a,[`${S}-disabled`]:o,[`${S}-ellipsis`]:q,[`${S}-ellipsis-single-line`]:de,[`${S}-ellipsis-multiple-line`]:fe,[`${S}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:fe?re:void 0},component:d,ref:ir(c,y,t),direction:_,onClick:O.includes(`text`)?j:void 0,"aria-label":Se?.toString(),title:f,...C},x.createElement(d1,{enableMeasure:X&&!ae,text:s,rows:re,width:me,onEllipsis:xe,expanded:Y,miscDeps:[I,Y,L,w,P,v].concat(ca(h1.map(t=>e[t])))},(t,n)=>p1(e,x.createElement(x.Fragment,null,t.length>0&&n&&!Y&&Se?x.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,De(n)))))))}),_1=x.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return x.createElement(g1,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),v1=x.forwardRef((e,t)=>{let{children:n,...r}=e;return x.createElement(g1,{ref:t,...r,component:`div`},n)}),y1=x.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=x.useMemo(()=>Zd(n)?fi(n,[`expandable`,`rows`]):n,[n]);return x.createElement(g1,{ref:t,...i,ellipsis:a,component:`span`},r)}),b1=[1,2,3,4,5],x1=x.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=b1.includes(n)?`h${n}`:`h1`;return x.createElement(g1,{ref:t,...i,component:a},r)}),S1=q$;S1.Text=y1,S1.Link=_1,S1.Title=x1,S1.Paragraph=v1;var C1=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(oi(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function w1(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function T1(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function E1(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(w1(e,t),T1(t)):e.onSuccess(T1(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var D1=async(e,t)=>{let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));async function i(e){let t=e.createReader(),n=[];for(;;){let e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t<r;t++)n.push(e[t])}return n}async function a(e){return new Promise(n=>{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}let o=async(e,t)=>{if(e){if(e.path=t||``,e.isFile){let t=await a(e);t&&n.push(t)}else if(e.isDirectory){let t=await i(e);r.push(...t)}}},s=0;for(;s<r.length;)await o(r[s]),s++;return n},O1=+new Date,k1=0;function A1(){return`rc-upload-${O1}-${++k1}`}function j1(){return j1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j1.apply(this,arguments)}var M1=class extends x.Component{state={uid:A1()};reqs={};fileInput;_isMounted;filterFile=(e,t=!1)=>{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>C1(e,a):()=>!0))(e)};onChange=e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)};onKeyDown=e=>{e.key===`Enter`&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{let{multiple:n,directory:r}=this.props,i=[...e.items||[]],a=[...e.files||[]];if((a.length>0||i.some(e=>e.kind===`file`))&&t?.(),r)a=await D1(Array.prototype.slice.call(i),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));n===!1&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{let{pastable:t}=this.props;if(t&&e.type===`paste`){let t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),e.type===`drop`){let t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}uploadFiles=e=>{let t=[...e],n=t.map(e=>(e.uid=A1(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{let{beforeUpload:n}=this.props,r=e;if(n){try{r=await n(e,t)}catch{r=!1}if(r===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:i}=this.props,a;a=typeof i==`function`?await i(e):i;let{data:o}=this.props,s;s=typeof o==`function`?await o(e):o;let c=(typeof r==`object`||typeof r==`string`)&&r?r:e,l;l=c instanceof File?c:new File([c],e.name,{type:e.type});let u=l;return u.uid=e.uid,{origin:e,data:s,parsedFile:u,action:a}};post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||E1,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n?.(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:E1})}reset(){this.setState({uid:A1()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){let{component:e,prefixCls:t,className:n,classNames:r={},disabled:i,id:a,name:o,style:s,styles:c={},multiple:l,accept:u,capture:d,children:f,directory:p,openFileDialogOnClick:m,onMouseEnter:h,onMouseLeave:g,hasControlInside:_,...v}=this.props,y=typeof u==`string`?u:u?.format,b=Z(t,{[`${t}-disabled`]:i,[n]:n}),S=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},C=i?{}:{onClick:m?this.onClick:()=>{},onKeyDown:m?this.onKeyDown:()=>{},onMouseEnter:h,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:_?void 0:`0`};return x.createElement(e,j1({},C,{className:b,role:_?void 0:`button`,style:s}),x.createElement(`input`,j1({},_i(v,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:y},S,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function N1(){return N1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N1.apply(this,arguments)}function P1(){}var F1=class extends x.Component{static defaultProps={component:`span`,prefixCls:`rc-upload`,data:{},headers:{},name:`file`,multipart:!1,onStart:P1,onError:P1,onSuccess:P1,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1};uploader;abort(e){this.uploader.abort(e)}saveUploader=e=>{this.uploader=e};render(){return x.createElement(M1,N1({},this.props,{ref:this.saveUploader}))}},I1=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${Q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`,borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[`
|
||
&:not(${t}-disabled):hover,
|
||
&-hover:not(${t}-disabled)
|
||
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Q(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
||
p${t}-text,
|
||
p${t}-hint
|
||
`]:{color:e.colorTextDisabled}}}}}},L1=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...Bl(),lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:{...Ll,padding:`0 ${Q(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`},[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[`
|
||
${l}:focus-visible,
|
||
&.picture ${l}
|
||
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}}}}},R1=e=>{let{componentCls:t}=e,n=new Ds(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Ds(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Xh(e)},n,r]},z1=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[`
|
||
${o}${o}-picture,
|
||
${o}${o}-picture-card,
|
||
${o}${o}-picture-circle
|
||
`]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...Ll,width:r,height:r,lineHeight:Q(a(r).add(e.paddingSM).equal()),textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}},[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${Q(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Xc[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Xc.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},B1=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[`
|
||
${t}-wrapper${t}-picture-card-wrapper,
|
||
${t}-wrapper${t}-picture-circle-wrapper
|
||
`]:{...Bl(),display:`block`,[`${t}${t}-select`]:{width:c,height:c,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${Q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,textAlign:`center`},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:`flex`,flexWrap:`wrap`,"&:not(:empty)":{minHeight:c},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:`inline-block`,width:c,height:c,verticalAlign:`top`},"&::after":{display:`none`},"&::before":{display:`none`},[s]:{height:`100%`,margin:0,"&::before":{position:`absolute`,zIndex:1,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`" "`}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:`absolute`,insetInlineStart:0,zIndex:10,width:`100%`,whiteSpace:`nowrap`,textAlign:`center`,opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
||
${n}-eye,
|
||
${n}-download,
|
||
${n}-delete
|
||
`]:{zIndex:10,width:r,margin:`0 ${Q(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},V1=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},H1=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...Rl(e),[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}}}},U1=ql(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=oc(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[H1(o),I1(o),z1(o),B1(o),L1(o),R1(o),V1(o),Gh(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),W1=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:function(e,t){return{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M534 352V136H232v752h560V394H576a42 42 0 01-42-42z`,fill:t}},{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z`,fill:e}}]}},name:`file`,theme:`twotone`}}))());function G1(){return G1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G1.apply(this,arguments)}var K1=x.forwardRef((e,t)=>x.createElement(_u,G1({},e,{ref:t,icon:W1.default}))),q1=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`}}))());function J1(){return J1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J1.apply(this,arguments)}var Y1=x.forwardRef((e,t)=>x.createElement(_u,J1({},e,{ref:t,icon:q1.default}))),X1=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:function(e,t){return{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z`,fill:e}},{tag:`path`,attrs:{d:`M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z`,fill:t}},{tag:`path`,attrs:{d:`M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z`,fill:t}},{tag:`path`,attrs:{d:`M276 368a28 28 0 1056 0 28 28 0 10-56 0z`,fill:t}},{tag:`path`,attrs:{d:`M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`,fill:e}}]}},name:`picture`,theme:`twotone`}}))());function Z1(){return Z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z1.apply(this,arguments)}var Q1=x.forwardRef((e,t)=>x.createElement(_u,Z1({},e,{ref:t,icon:X1.default})));function $1(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function e0(e,t){let n=ca(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function t0(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function n0(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var r0=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},i0=e=>e.indexOf(`image/`)===0,a0=e=>{if(e.type&&!e.thumbUrl)return i0(e.type);let t=e.thumbUrl||e.url||``,n=r0(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},o0=200;function s0(e){return new Promise(t=>{if(!e.type||!i0(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=o0,n.height=o0,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${o0}px; height: ${o0}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=o0,s=o0,c=0,l=0;e>a?(s=o0/e*a,l=-(s-o)/2):(o=o0/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var c0=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}var u0=x.forwardRef((e,t)=>x.createElement(_u,l0({},e,{ref:t,icon:c0.default}))),d0=x.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:g,previewIcon:_,removeIcon:v,downloadIcon:y,extra:b,onPreview:S,onDownload:C,onClose:w},T)=>{let{status:E}=s,[D,O]=x.useState(E);x.useEffect(()=>{E!==`removed`&&O(E)},[E]);let[k,A]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(e)}},[]);let j=u(s),M=x.createElement(`div`,{className:`${e}-icon`},j);if(o===`picture`||o===`picture-card`||o===`picture-circle`)if(D===`uploading`||!s.thumbUrl&&!s.url){let t=Z(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:D!==`uploading`});M=x.createElement(`div`,{className:t},j)}else{let t=p?.(s)?x.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):j,n=Z(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});M=x.createElement(`a`,{className:n,onClick:e=>S(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}let N=Z(`${e}-list-item`,`${e}-list-item-${D}`,r?.item),P=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,F=(typeof h==`function`?h(s):h)?d((typeof v==`function`?v(s):v)||x.createElement(w$,null),()=>w(s),e,a.removeFile,!0):null,I=(typeof g==`function`?g(s):g)&&D===`done`?d((typeof y==`function`?y(s):y)||x.createElement(u0,null),()=>C(s),e,a.downloadFile):null,L=o!==`picture-card`&&o!==`picture-circle`&&x.createElement(`span`,{key:`download-delete`,className:Z(`${e}-list-item-actions`,{picture:o===`picture`})},I,F),R=typeof b==`function`?b(s):b,z=R&&x.createElement(`span`,{className:`${e}-list-item-extra`},R),B=Z(`${e}-list-item-name`),V=s.url?x.createElement(`a`,{key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:B,title:s.name,...P,href:s.url,onClick:e=>S(s,e)},s.name,z):x.createElement(`span`,{key:`view`,className:B,onClick:e=>S(s,e),title:s.name},s.name,z),H=(typeof m==`function`?m(s):m)&&(s.url||s.thumbUrl)?x.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>S(s,e),title:a.previewFile},typeof _==`function`?_(s):_||x.createElement(BG,null)):null,U=(o===`picture-card`||o===`picture-circle`)&&D!==`uploading`&&x.createElement(`span`,{className:`${e}-list-item-actions`},H,D===`done`&&I,F),{getPrefixCls:W}=x.useContext(da),G=W(),K=x.createElement(`div`,{className:N,style:i?.item},M,V,L,U,k&&x.createElement(Cd,{motionName:`${G}-fade`,visible:D===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?x.createElement(gJ,{type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`],...l}):null;return x.createElement(`div`,{className:Z(`${e}-list-item-progress`,t)},n)})),ee=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,te=D===`error`?x.createElement(lT,{title:ee,getPopupContainer:e=>e.parentNode},K):K;return x.createElement(`div`,{className:Z(`${e}-list-item-container`,t),style:n,ref:T},f?f(te,s,c,{download:C.bind(null,s),preview:S.bind(null,s),remove:w.bind(null,s)}):te)}),f0=x.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=s0,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=a0,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,progress:y={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:C,disabled:w,classNames:T,styles:E}=e,[,D]=lf(),[O,k]=x.useState(!1),A=[`picture-card`,`picture-circle`].includes(n);x.useEffect(()=>{n.startsWith(`picture`)&&(d||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r?.(e.originFileObj).then(t=>{e.thumbUrl=t||``,D()}))})},[n,d,r]),x.useEffect(()=>{k(!0)},[]);let j=(e,t)=>{if(i)return t?.preventDefault(),i(e)},M=e=>{typeof a==`function`?a(e):e.url&&window.open(e.url)},N=e=>{o?.(e)},P=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?x.createElement(qm,null):s.uploading,i=l?.(e)?x.createElement(Q1,null):x.createElement(K1,null);return t?r:i}return t?x.createElement(qm,null):x.createElement(Y1,null)},F=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{t(),x.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?w:!1};return x.isValidElement(e)?x.createElement(x_,{...a,icon:im(e,{...e.props,onClick:()=>{}})}):x.createElement(x_,{...a},x.createElement(`span`,null,e))};x.useImperativeHandle(t,()=>({handlePreview:j,handleDownload:M}));let{getPrefixCls:I}=x.useContext(da),L=I(`upload`,u),R=I(),z=Z(`${L}-list`,`${L}-list-${n}`,T?.list),B=x.useMemo(()=>fi(mh(R),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[R]),V={...A?{}:B,motionDeadline:2e3,motionName:`${L}-${A?`animate-inline`:`animate`}`,keys:ca(d.map(e=>({key:e.uid,file:e}))),motionAppear:O};return x.createElement(`div`,{className:z,style:E?.list},x.createElement(Sd,{...V,component:!1},({key:e,file:t,className:r,style:i})=>x.createElement(d0,{key:e,locale:s,prefixCls:L,className:r,style:i,classNames:T,styles:E,file:t,items:d,progress:y,listType:n,isImgUrl:l,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,iconRender:P,actionIconRender:F,itemRender:C,onPreview:j,onDownload:M,onClose:N})),b&&x.createElement(Cd,{...V,visible:S,forceRender:!0},({className:e,style:t})=>im(b,n=>({className:Z(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),p0=`__LIST_IGNORE_${Date.now()}__`,m0=x.forwardRef((e,t)=>{let n=ma(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:h,isImageUrl:g,progress:_,prefixCls:v,className:y,type:b=`select`,children:S,style:C,itemRender:w,maxCount:T,data:E={},multiple:D=!1,hasControlInside:O=!0,action:k=``,accept:A=``,supportServerRender:j=!0,rootClassName:M,styles:N,classNames:P}=e,F=x.useContext(lm),I=p??F,L=e.customRequest||n.customRequest,[R,z]=Vn(i,r),B=R||[],[V,H]=x.useState(`drop`),U=x.useRef(null),W=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let G=(e,t,n)=>{let r=ca(t),i=!1;T===1?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,Ii.flushSync)(()=>{z(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,Ii.flushSync)(()=>{u?.(a)})},K=async(t,n)=>{let{beforeUpload:r}=e,i=t;if(r){let e=await r(t,n);if(e===!1)return!1;if(delete t[p0],e===p0)return Object.defineProperty(t,p0,{value:!0,configurable:!0}),!1;Zd(e)&&(i=e)}return i},ee=e=>{let t=e.filter(e=>!e.file[p0]);if(!t.length)return;let n=t.map(e=>$1(e.file)),r=ca(B);n.forEach(e=>{r=e0(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}G(i,r)})},te=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!t0(t,B))return;let r=$1(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,G(r,e0(r,B))},q=(e,t)=>{if(!t0(t,B))return;let n=$1(t);n.status=`uploading`,n.percent=e.percent,G(n,e0(n,B),e)},J=(e,t,n)=>{if(!t0(n,B))return;let r=$1(n);r.error=e,r.response=t,r.status=`error`,G(r,e0(r,B))},Y=e=>{let t;Promise.resolve(typeof a==`function`?a(e):a).then(n=>{if(n===!1)return;let r=n0(e,B);r&&(t={...e,status:`removed`},B?.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),U.current?.abort(t),G(t,r))})},ne=e=>{H(e.type),e.type===`drop`&&d?.(e)};x.useImperativeHandle(t,()=>({onBatchStart:ee,onSuccess:te,onProgress:q,onError:J,fileList:B,upload:U.current,nativeElement:W.current}));let{getPrefixCls:X,direction:re,className:ie,style:ae,classNames:oe,styles:se}=ma(`upload`),ce=X(`upload`,v),le={...e,listType:s,showUploadList:o,type:b,multiple:D,hasControlInside:O,supportServerRender:j,disabled:I},[ue,de]=vf([oe,P],[se,N],{props:le}),fe={onBatchStart:ee,onError:J,onProgress:q,onSuccess:te,...e,customRequest:L,data:E,multiple:D,action:k,accept:A,supportServerRender:j,prefixCls:ce,disabled:I,beforeUpload:K,onChange:void 0,hasControlInside:O};delete fe.className,delete fe.style,(!S||I)&&delete fe.id;let pe=`${ce}-wrapper`,[me,he]=U1(ce,pe),[ge]=Wd(`Upload`,Ld.Upload),{showRemoveIcon:_e,showPreviewIcon:ve,showDownloadIcon:ye,removeIcon:be,previewIcon:xe,downloadIcon:Se,extra:Ce}=typeof o==`boolean`?{}:o,we=_e===void 0?!I:_e,Te=(e,t)=>o?x.createElement(f0,{classNames:ue,styles:de,prefixCls:ce,listType:s,items:B,previewFile:f,onPreview:c,onDownload:l,onRemove:Y,showRemoveIcon:we,showPreviewIcon:ve,showDownloadIcon:ye,removeIcon:be,previewIcon:xe,downloadIcon:Se,iconRender:h,extra:Ce,locale:{...ge,...m},isImageUrl:g,progress:_,appendAction:e,appendActionVisible:t,itemRender:w,disabled:I}):e,Ee=Z(pe,y,M,me,he,ie,ue.root,{[`${ce}-rtl`]:re===`rtl`,[`${ce}-picture-card-wrapper`]:s===`picture-card`,[`${ce}-picture-circle-wrapper`]:s===`picture-circle`}),De={...de.root},Oe={...ae,...C};if(b===`drag`){let e=Z(me,ce,`${ce}-drag`,{[`${ce}-drag-uploading`]:B.some(e=>e.status===`uploading`),[`${ce}-drag-hover`]:V===`dragover`,[`${ce}-disabled`]:I,[`${ce}-rtl`]:re===`rtl`},ue.trigger);return x.createElement(`span`,{className:Ee,ref:W,style:De},x.createElement(`div`,{className:e,style:{...Oe,...de.trigger},onDrop:ne,onDragOver:ne,onDragLeave:ne},x.createElement(F1,{...fe,ref:U,className:`${ce}-btn`},x.createElement(`div`,{className:`${ce}-drag-container`},S))),Te())}let ke=Z(ce,`${ce}-select`,{[`${ce}-disabled`]:I,[`${ce}-hidden`]:!S},ue.trigger),Ae=x.createElement(`div`,{className:ke,style:{...Oe,...de.trigger}},x.createElement(F1,{...fe,ref:U}));return s===`picture-card`||s===`picture-circle`?x.createElement(`span`,{className:Ee,ref:W,style:De},Te(Ae,!!S)):x.createElement(`span`,{className:Ee,ref:W,style:De},Ae,Te())}),h0=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return x.createElement(m0,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),g0=m0;g0.Dragger=h0,g0.LIST_IGNORE=p0;var _0=o(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),v0=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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:`页码`}})),y0=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),b0=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=y0();function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:String(t)}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}e.default=i(i({},t.commonLocale),{},{locale:`zh_CN`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`确定`,timeSelect:`选择时间`,dateSelect:`选择日期`,weekSelect:`选择周`,clear:`清除`,week:`周`,month:`月`,year:`年`,previousMonth:`上个月 (翻页上键)`,nextMonth:`下个月 (翻页下键)`,monthSelect:`选择月份`,yearSelect:`选择年份`,decadeSelect:`选择年代`,previousYear:`上一年 (Control键加左方向键)`,nextYear:`下一年 (Control键加右方向键)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世纪`,nextCentury:`下一世纪`,yearFormat:`YYYY年`,cellDateFormat:`D`,monthBeforeYear:!1})})),x0=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),S0=o((e=>{var t=_0().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(b0()),r=t(x0()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),C0=o((e=>{var t=_0().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default=t(S0()).default})),w0=o((e=>{var t=_0().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(v0()),r=t(C0()),i=t(S0()),a=t(x0()),o="${label}不是一个有效的${type}";e.default={locale:`zh-cn`,Pagination:n.default,DatePicker:i.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}})),T0=c(o(((e,t)=>{t.exports=w0()}))(),1),E0=Object.defineProperty,D0=Object.getOwnPropertySymbols,O0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable,A0=(e,t,n)=>t in e?E0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j0=(e,t)=>{for(var n in t||={})O0.call(t,n)&&A0(e,n,t[n]);if(D0)for(var n of D0(t))k0.call(t,n)&&A0(e,n,t[n]);return e},M0=(e,t)=>{var n={};for(var r in e)O0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&D0)for(var r of D0(e))t.indexOf(r)<0&&k0.call(e,r)&&(n[r]=e[r]);return n},N0;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,a=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let m=[];for(;m.length*8<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let a=(t<<10|n)^21522;i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){let n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,l=Math.floor(s/a),u=[],d=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<a;n++){let i=e.slice(r,r+l-o+(n<c?0:1));r+=i.length;let a=t.reedSolomonComputeRemainder(i,d);n<c&&i.push(0),u.push(i.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i<this.size;i++)for(let a=0;a<2;a++){let o=t-a,s=t+1&2?i:this.size-1-i;!this.isFunction[s][o]&&n<e.length*8&&(this.modules[s][o]=r(e[n>>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let r=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+i),10),i*3+1,r),e+=i}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let r=[],i;for(i=0;i+2<=t.length;i+=2){let a=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i))*45;a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i+1)),n(a,11,r)}return i<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i)),6,r),new e(e.Mode.ALPHANUMERIC,t.length,r)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else if(t<1e6)n(6,3,r),n(t,21,r);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`;let o=a;e.QrSegment=a})(N0||={}),(e=>{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||={})})(N0||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||={})})(N0||={});var P0=N0,F0={L:P0.QrCode.Ecc.LOW,M:P0.QrCode.Ecc.MEDIUM,Q:P0.QrCode.Ecc.QUARTILE,H:P0.QrCode.Ecc.HIGH},I0=128,L0=`L`,R0=`#FFFFFF`,z0=`#000000`,B0=!1,V0=1,H0=4,U0=0,W0=.1;function G0(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function K0(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>n<t.x||n>=t.x+t.w?e:!1))}function q0(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*W0),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function J0(e,t){return t==null?e?H0:U0:Math.max(Math.floor(t),0)}function Y0({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=x.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...P0.QrSegment.makeSegments(t)),e),[]);return P0.QrCode.encodeSegments(r,F0[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=x.useMemo(()=>{let e=c.getModules(),t=J0(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:q0(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var X0=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Z0=x.forwardRef(function(e,t){let n=e,{value:r,size:i=I0,level:a=L0,bgColor:o=R0,fgColor:s=z0,includeMargin:c=B0,minVersion:l=V0,boostLevel:u,marginSize:d,imageSettings:f}=n,p=M0(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=M0(p,[`style`]),g=f?.src,_=x.useRef(null),v=x.useRef(null),y=x.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[b,S]=x.useState(!1),{margin:C,cells:w,numCells:T,calculatedImageSettings:E}=Y0({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});x.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=w,r=v.current,a=E!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWidth!==0;a&&E.excavation!=null&&(n=K0(w,E.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/T*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,T,T),t.fillStyle=s,X0?t.fill(new Path2D(G0(n,C))):w.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+C,n+C,1,1)})}),E&&(t.globalAlpha=E.opacity),a&&t.drawImage(r,E.x+C,E.y+C,E.w,E.h)}}),x.useEffect(()=>{S(!1)},[g]);let D=j0({height:i,width:i},m),O=null;return g!=null&&(O=x.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{S(!0)},ref:v,crossOrigin:E?.crossOrigin})),x.createElement(x.Fragment,null,x.createElement(`canvas`,j0({style:D,height:i,width:i,ref:y,role:`img`},h)),O)});Z0.displayName=`QRCodeCanvas`;var Q0=x.forwardRef(function(e,t){let n=e,{value:r,size:i=I0,level:a=L0,bgColor:o=R0,fgColor:s=z0,includeMargin:c=B0,minVersion:l=V0,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=M0(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=Y0({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),y=g,b=null;p!=null&&v!=null&&(v.excavation!=null&&(y=K0(g,v.excavation)),b=x.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let S=G0(y,h);return x.createElement(`svg`,j0({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&x.createElement(`title`,null,d),x.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),x.createElement(`path`,{fill:s,d:S,shapeRendering:`crispEdges`}),b)});Q0.displayName=`QRCodeSVG`;var $0=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.42 0 448 200.58 448 448S759.42 960 512 960 64 759.42 64 512 264.58 64 512 64m32.5 168c-69.67 0-86.06 16.84-86.72 39.08l-.02 1.43v46.62H291.45c-9.92 0-14.28 23.05-14.27 39.3 0 2.7 2.08 4.93 4.77 4.93h175.81v58.3h-116.5c-9.96 0-14.3 23.76-14.27 39.47a4.77 4.77 0 004.77 4.76h233.45c-4.53 41.06-15.43 77.59-30.72 109.32l-1.22 2.5-.32-.28c-60.24-28.47-120.43-52.57-194.4-52.57l-2.62.01c-84.98 1.11-144.71 56.5-145.91 127.04l-.02 1.22.02 2.13c1.24 70.4 63.56 126.45 148.52 126.45 61.25 0 116.38-16.85 163.46-45.02a138.58 138.58 0 0014.07-7.96 345.6 345.6 0 0050.3-41.16l9.45 6.35 12.46 8.32c57.53 38.26 113.76 72.62 169.86 79.27a142.62 142.62 0 0018.31 1.16c43.02 0 55-52.68 57.39-95.51l.14-2.84c.4-8.46-6.2-15.6-14.65-15.86-75.46-2.37-136.45-22.05-192-46.11l-6.27-2.75c35.15-56.8 56.66-121.81 57.15-186.66l.09-1.08c.4-5.51-4-10.2-9.52-10.2H549.33v-58.3h165.73c9.92 0 14.28-22.12 14.27-39.31a4.85 4.85 0 00-4.78-4.92H549.32v-82.35a4.8 4.8 0 00-4.83-4.78M328 583.85c54.63 0 107.08 22.41 158.1 52.19l5.76 3.4c-103.57 119.84-247.17 95.9-261.72 26.37a66.89 66.89 0 01-1.14-9.83l-.06-2.34.02-.9c.97-40.12 45.33-68.9 99.04-68.9`}}]},name:`alipay-circle`,theme:`outlined`}}))());function e2(){return e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e2.apply(this,arguments)}var t2=x.forwardRef((e,t)=>x.createElement(_u,e2({},e,{ref:t,icon:$0.default}))),n2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z`}}]},name:`api`,theme:`outlined`}}))());function r2(){return r2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r2.apply(this,arguments)}var i2=x.forwardRef((e,t)=>x.createElement(_u,r2({},e,{ref:t,icon:n2.default}))),a2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z`}}]},name:`appstore`,theme:`outlined`}}))());function o2(){return o2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o2.apply(this,arguments)}var s2=x.forwardRef((e,t)=>x.createElement(_u,o2({},e,{ref:t,icon:a2.default}))),c2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z`}}]},name:`arrow-down`,theme:`outlined`}}))());function l2(){return l2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l2.apply(this,arguments)}var u2=x.forwardRef((e,t)=>x.createElement(_u,l2({},e,{ref:t,icon:c2.default}))),d2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`arrow-left`,theme:`outlined`}}))());function f2(){return f2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f2.apply(this,arguments)}var p2=x.forwardRef((e,t)=>x.createElement(_u,f2({},e,{ref:t,icon:d2.default}))),m2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z`}}]},name:`arrow-up`,theme:`outlined`}}))());function h2(){return h2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h2.apply(this,arguments)}var g2=x.forwardRef((e,t)=>x.createElement(_u,h2({},e,{ref:t,icon:m2.default}))),_2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z`}}]},name:`audio`,theme:`outlined`}}))());function v2(){return v2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v2.apply(this,arguments)}var y2=x.forwardRef((e,t)=>x.createElement(_u,v2({},e,{ref:t,icon:_2.default}))),b2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374z`}}]},name:`bank`,theme:`filled`}}))());function x2(){return x2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x2.apply(this,arguments)}var S2=x.forwardRef((e,t)=>x.createElement(_u,x2({},e,{ref:t,icon:b2.default}))),C2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z`}}]},name:`bank`,theme:`outlined`}}))());function w2(){return w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w2.apply(this,arguments)}var T2=x.forwardRef((e,t)=>x.createElement(_u,w2({},e,{ref:t,icon:C2.default}))),E2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z`}}]},name:`bar-chart`,theme:`outlined`}}))());function D2(){return D2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D2.apply(this,arguments)}var O2=x.forwardRef((e,t)=>x.createElement(_u,D2({},e,{ref:t,icon:E2.default}))),k2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z`}}]},name:`bell`,theme:`outlined`}}))());function A2(){return A2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A2.apply(this,arguments)}var j2=x.forwardRef((e,t)=>x.createElement(_u,A2({},e,{ref:t,icon:k2.default}))),M2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z`}}]},name:`book`,theme:`outlined`}}))());function N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N2.apply(this,arguments)}var P2=x.forwardRef((e,t)=>x.createElement(_u,N2({},e,{ref:t,icon:M2.default}))),F2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z`}}]},name:`build`,theme:`outlined`}}))());function I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I2.apply(this,arguments)}var L2=x.forwardRef((e,t)=>x.createElement(_u,I2({},e,{ref:t,icon:F2.default}))),R2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z`}}]},name:`bulb`,theme:`outlined`}}))());function z2(){return z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z2.apply(this,arguments)}var B2=x.forwardRef((e,t)=>x.createElement(_u,z2({},e,{ref:t,icon:R2.default}))),V2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 00-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 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-36 732H180V180h664v664z`}}]},name:`calculator`,theme:`outlined`}}))());function H2(){return H2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H2.apply(this,arguments)}var U2=x.forwardRef((e,t)=>x.createElement(_u,H2({},e,{ref:t,icon:V2.default}))),W2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z`}}]},name:`camera`,theme:`outlined`}}))());function G2(){return G2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G2.apply(this,arguments)}var K2=x.forwardRef((e,t)=>x.createElement(_u,G2({},e,{ref:t,icon:W2.default}))),q2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`car`,theme:`outlined`}}))());function J2(){return J2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J2.apply(this,arguments)}var Y2=x.forwardRef((e,t)=>x.createElement(_u,J2({},e,{ref:t,icon:q2.default}))),X2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z`}}]},name:`caret-right`,theme:`outlined`}}))());function Z2(){return Z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z2.apply(this,arguments)}var Q2=x.forwardRef((e,t)=>x.createElement(_u,Z2({},e,{ref:t,icon:X2.default}))),$2=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`check-circle`,theme:`outlined`}}))());function e4(){return e4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e4.apply(this,arguments)}var t4=x.forwardRef((e,t)=>x.createElement(_u,e4({},e,{ref:t,icon:$2.default}))),n4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z`}}]},name:`close-circle`,theme:`outlined`}}))());function r4(){return r4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r4.apply(this,arguments)}var i4=x.forwardRef((e,t)=>x.createElement(_u,r4({},e,{ref:t,icon:n4.default}))),a4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 01-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 01140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0166.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z`}}]},name:`cloud`,theme:`outlined`}}))());function o4(){return o4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o4.apply(this,arguments)}var s4=x.forwardRef((e,t)=>x.createElement(_u,o4({},e,{ref:t,icon:a4.default}))),c4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z`}},{tag:`path`,attrs:{d:`M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z`}},{tag:`path`,attrs:{d:`M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z`}}]},name:`cloud-server`,theme:`outlined`}}))());function l4(){return l4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l4.apply(this,arguments)}var u4=x.forwardRef((e,t)=>x.createElement(_u,l4({},e,{ref:t,icon:c4.default}))),d4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z`}},{tag:`path`,attrs:{d:`M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z`}}]},name:`cloud-upload`,theme:`outlined`}}))());function f4(){return f4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f4.apply(this,arguments)}var p4=x.forwardRef((e,t)=>x.createElement(_u,f4({},e,{ref:t,icon:d4.default}))),m4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function h4(){return h4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h4.apply(this,arguments)}var g4=x.forwardRef((e,t)=>x.createElement(_u,h4({},e,{ref:t,icon:m4.default}))),_4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z`}}]},name:`coffee`,theme:`outlined`}}))());function v4(){return v4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v4.apply(this,arguments)}var y4=x.forwardRef((e,t)=>x.createElement(_u,v4({},e,{ref:t,icon:_4.default}))),b4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z`}}]},name:`compass`,theme:`outlined`}}))());function x4(){return x4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x4.apply(this,arguments)}var S4=x.forwardRef((e,t)=>x.createElement(_u,x4({},e,{ref:t,icon:b4.default}))),C4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z`}}]},name:`crown`,theme:`filled`}}))());function w4(){return w4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w4.apply(this,arguments)}var T4=x.forwardRef((e,t)=>x.createElement(_u,w4({},e,{ref:t,icon:C4.default}))),E4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z`}}]},name:`crown`,theme:`outlined`}}))());function D4(){return D4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D4.apply(this,arguments)}var O4=x.forwardRef((e,t)=>x.createElement(_u,D4({},e,{ref:t,icon:E4.default}))),k4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function A4(){return A4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A4.apply(this,arguments)}var j4=x.forwardRef((e,t)=>x.createElement(_u,A4({},e,{ref:t,icon:k4.default}))),M4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`database`,theme:`outlined`}}))());function N4(){return N4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N4.apply(this,arguments)}var P4=x.forwardRef((e,t)=>x.createElement(_u,N4({},e,{ref:t,icon:M4.default}))),F4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z`}}]},name:`dollar`,theme:`outlined`}}))());function I4(){return I4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I4.apply(this,arguments)}var L4=x.forwardRef((e,t)=>x.createElement(_u,I4({},e,{ref:t,icon:F4.default}))),R4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z`}}]},name:`experiment`,theme:`outlined`}}))());function z4(){return z4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z4.apply(this,arguments)}var B4=x.forwardRef((e,t)=>x.createElement(_u,z4({},e,{ref:t,icon:R4.default}))),V4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z`}}]},name:`filter`,theme:`outlined`}}))());function H4(){return H4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H4.apply(this,arguments)}var U4=x.forwardRef((e,t)=>x.createElement(_u,H4({},e,{ref:t,icon:V4.default}))),W4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9z`}}]},name:`fire`,theme:`filled`}}))());function G4(){return G4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G4.apply(this,arguments)}var K4=x.forwardRef((e,t)=>x.createElement(_u,G4({},e,{ref:t,icon:W4.default}))),q4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z`}}]},name:`fire`,theme:`outlined`}}))());function J4(){return J4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J4.apply(this,arguments)}var Y4=x.forwardRef((e,t)=>x.createElement(_u,J4({},e,{ref:t,icon:q4.default}))),X4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z`}}]},name:`flag`,theme:`outlined`}}))());function Z4(){return Z4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z4.apply(this,arguments)}var Q4=x.forwardRef((e,t)=>x.createElement(_u,Z4({},e,{ref:t,icon:X4.default}))),$4=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z`}}]},name:`gift`,theme:`outlined`}}))());function e3(){return e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e3.apply(this,arguments)}var t3=x.forwardRef((e,t)=>x.createElement(_u,e3({},e,{ref:t,icon:$4.default}))),n3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z`}}]},name:`global`,theme:`outlined`}}))());function r3(){return r3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r3.apply(this,arguments)}var i3=x.forwardRef((e,t)=>x.createElement(_u,r3({},e,{ref:t,icon:n3.default}))),a3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z`}}]},name:`heart`,theme:`outlined`}}))());function o3(){return o3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o3.apply(this,arguments)}var s3=x.forwardRef((e,t)=>x.createElement(_u,o3({},e,{ref:t,icon:a3.default}))),c3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M957.6 507.4L603.2 158.2a7.9 7.9 0 00-11.2 0L353.3 393.4a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z`}}]},name:`highlight`,theme:`outlined`}}))());function l3(){return l3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l3.apply(this,arguments)}var u3=x.forwardRef((e,t)=>x.createElement(_u,l3({},e,{ref:t,icon:c3.default}))),d3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z`}}]},name:`history`,theme:`outlined`}}))());function f3(){return f3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f3.apply(this,arguments)}var p3=x.forwardRef((e,t)=>x.createElement(_u,f3({},e,{ref:t,icon:d3.default}))),m3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z`}}]},name:`home`,theme:`outlined`}}))());function h3(){return h3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h3.apply(this,arguments)}var g3=x.forwardRef((e,t)=>x.createElement(_u,h3({},e,{ref:t,icon:m3.default}))),_3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z`}}]},name:`idcard`,theme:`outlined`}}))());function v3(){return v3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v3.apply(this,arguments)}var y3=x.forwardRef((e,t)=>x.createElement(_u,v3({},e,{ref:t,icon:_3.default}))),b3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z`}}]},name:`laptop`,theme:`outlined`}}))());function x3(){return x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x3.apply(this,arguments)}var S3=x.forwardRef((e,t)=>x.createElement(_u,x3({},e,{ref:t,icon:b3.default}))),C3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z`}}]},name:`layout`,theme:`outlined`}}))());function w3(){return w3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w3.apply(this,arguments)}var T3=x.forwardRef((e,t)=>x.createElement(_u,w3({},e,{ref:t,icon:C3.default}))),E3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z`}}]},name:`line-chart`,theme:`outlined`}}))());function D3(){return D3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D3.apply(this,arguments)}var O3=x.forwardRef((e,t)=>x.createElement(_u,D3({},e,{ref:t,icon:E3.default}))),k3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z`}}]},name:`lock`,theme:`outlined`}}))());function A3(){return A3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A3.apply(this,arguments)}var j3=x.forwardRef((e,t)=>x.createElement(_u,A3({},e,{ref:t,icon:k3.default}))),M3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z`}}]},name:`logout`,theme:`outlined`}}))());function N3(){return N3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N3.apply(this,arguments)}var P3=x.forwardRef((e,t)=>x.createElement(_u,N3({},e,{ref:t,icon:M3.default}))),F3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z`}}]},name:`mail`,theme:`outlined`}}))());function I3(){return I3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I3.apply(this,arguments)}var L3=x.forwardRef((e,t)=>x.createElement(_u,I3({},e,{ref:t,icon:F3.default}))),R3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M839.2 278.1a32 32 0 00-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 00-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840zM652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}}]},name:`medicine-box`,theme:`outlined`}}))());function z3(){return z3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z3.apply(this,arguments)}var B3=x.forwardRef((e,t)=>x.createElement(_u,z3({},e,{ref:t,icon:R3.default}))),V3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`mobile`,theme:`outlined`}}))());function H3(){return H3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H3.apply(this,arguments)}var U3=x.forwardRef((e,t)=>x.createElement(_u,H3({},e,{ref:t,icon:V3.default}))),W3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 00-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 00-11.2-1.4l-37.9 29.7a7.97 7.97 0 00-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z`}}]},name:`monitor`,theme:`outlined`}}))());function G3(){return G3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G3.apply(this,arguments)}var K3=x.forwardRef((e,t)=>x.createElement(_u,G3({},e,{ref:t,icon:W3.default}))),q3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z`}}]},name:`pause`,theme:`outlined`}}))());function J3(){return J3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J3.apply(this,arguments)}var Y3=x.forwardRef((e,t)=>x.createElement(_u,J3({},e,{ref:t,icon:q3.default}))),X3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 00-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z`}}]},name:`pay-circle`,theme:`outlined`}}))());function Z3(){return Z3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z3.apply(this,arguments)}var Q3=x.forwardRef((e,t)=>x.createElement(_u,Z3({},e,{ref:t,icon:X3.default}))),$3=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z`}}]},name:`phone`,theme:`outlined`}}))());function e6(){return e6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e6.apply(this,arguments)}var t6=x.forwardRef((e,t)=>x.createElement(_u,e6({},e,{ref:t,icon:$3.default}))),n6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`}}]},name:`picture`,theme:`outlined`}}))());function r6(){return r6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r6.apply(this,arguments)}var i6=x.forwardRef((e,t)=>x.createElement(_u,r6({},e,{ref:t,icon:n6.default}))),a6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z`}}]},name:`pie-chart`,theme:`outlined`}}))());function o6(){return o6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o6.apply(this,arguments)}var s6=x.forwardRef((e,t)=>x.createElement(_u,o6({},e,{ref:t,icon:a6.default}))),c6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z`}}]},name:`play-circle`,theme:`filled`}}))());function l6(){return l6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l6.apply(this,arguments)}var u6=x.forwardRef((e,t)=>x.createElement(_u,l6({},e,{ref:t,icon:c6.default}))),d6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z`}}]},name:`play-circle`,theme:`outlined`}}))());function f6(){return f6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f6.apply(this,arguments)}var p6=x.forwardRef((e,t)=>x.createElement(_u,f6({},e,{ref:t,icon:d6.default}))),m6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`plus-circle`,theme:`outlined`}}))());function h6(){return h6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h6.apply(this,arguments)}var g6=x.forwardRef((e,t)=>x.createElement(_u,h6({},e,{ref:t,icon:m6.default}))),_6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z`}}]},name:`read`,theme:`outlined`}}))());function v6(){return v6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v6.apply(this,arguments)}var y6=x.forwardRef((e,t)=>x.createElement(_u,v6({},e,{ref:t,icon:_6.default}))),b6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z`}},{tag:`path`,attrs:{d:`M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0031.9 29.3h429.2a32 32 0 0031.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z`}}]},name:`rest`,theme:`outlined`}}))());function x6(){return x6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x6.apply(this,arguments)}var S6=x.forwardRef((e,t)=>x.createElement(_u,x6({},e,{ref:t,icon:b6.default}))),C6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`robot`,theme:`outlined`}}))());function w6(){return w6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w6.apply(this,arguments)}var T6=x.forwardRef((e,t)=>x.createElement(_u,w6({},e,{ref:t,icon:C6.default}))),E6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z`}}]},name:`rocket`,theme:`outlined`}}))());function D6(){return D6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D6.apply(this,arguments)}var O6=x.forwardRef((e,t)=>x.createElement(_u,D6({},e,{ref:t,icon:E6.default}))),k6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z`}},{tag:`path`,attrs:{d:`M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z`}}]},name:`safety`,theme:`outlined`}}))());function A6(){return A6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A6.apply(this,arguments)}var j6=x.forwardRef((e,t)=>x.createElement(_u,A6({},e,{ref:t,icon:k6.default}))),M6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 000 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z`}}]},name:`security-scan`,theme:`outlined`}}))());function N6(){return N6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N6.apply(this,arguments)}var P6=x.forwardRef((e,t)=>x.createElement(_u,N6({},e,{ref:t,icon:M6.default}))),F6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z`}}]},name:`send`,theme:`outlined`}}))());function I6(){return I6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I6.apply(this,arguments)}var L6=x.forwardRef((e,t)=>x.createElement(_u,I6({},e,{ref:t,icon:F6.default}))),R6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function z6(){return z6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z6.apply(this,arguments)}var B6=x.forwardRef((e,t)=>x.createElement(_u,z6({},e,{ref:t,icon:R6.default}))),V6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z`}}]},name:`shopping-cart`,theme:`outlined`}}))());function H6(){return H6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H6.apply(this,arguments)}var U6=x.forwardRef((e,t)=>x.createElement(_u,H6({},e,{ref:t,icon:V6.default}))),W6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z`}}]},name:`shopping`,theme:`outlined`}}))());function G6(){return G6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G6.apply(this,arguments)}var K6=x.forwardRef((e,t)=>x.createElement(_u,G6({},e,{ref:t,icon:W6.default}))),q6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M925.6 405.1l-203-253.7a6.5 6.5 0 00-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 00.2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 00.2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z`}}]},name:`sketch`,theme:`outlined`}}))());function J6(){return J6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J6.apply(this,arguments)}var Y6=x.forwardRef((e,t)=>x.createElement(_u,J6({},e,{ref:t,icon:q6.default}))),X6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z`}}]},name:`skin`,theme:`outlined`}}))());function Z6(){return Z6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z6.apply(this,arguments)}var Q6=x.forwardRef((e,t)=>x.createElement(_u,Z6({},e,{ref:t,icon:X6.default}))),$6=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z`}}]},name:`smile`,theme:`outlined`}}))());function e8(){return e8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e8.apply(this,arguments)}var t8=x.forwardRef((e,t)=>x.createElement(_u,e8({},e,{ref:t,icon:$6.default}))),n8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-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-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z`}}]},name:`solution`,theme:`outlined`}}))());function r8(){return r8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r8.apply(this,arguments)}var i8=x.forwardRef((e,t)=>x.createElement(_u,r8({},e,{ref:t,icon:n8.default}))),a8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z`}}]},name:`sound`,theme:`outlined`}}))());function o8(){return o8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o8.apply(this,arguments)}var s8=x.forwardRef((e,t)=>x.createElement(_u,o8({},e,{ref:t,icon:a8.default}))),c8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z`}}]},name:`star`,theme:`outlined`}}))());function l8(){return l8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l8.apply(this,arguments)}var u8=x.forwardRef((e,t)=>x.createElement(_u,l8({},e,{ref:t,icon:c8.default}))),d8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z`}}]},name:`tag`,theme:`outlined`}}))());function f8(){return f8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f8.apply(this,arguments)}var p8=x.forwardRef((e,t)=>x.createElement(_u,f8({},e,{ref:t,icon:d8.default}))),m8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z`}}]},name:`team`,theme:`outlined`}}))());function h8(){return h8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h8.apply(this,arguments)}var g8=x.forwardRef((e,t)=>x.createElement(_u,h8({},e,{ref:t,icon:m8.default}))),_8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z`}}]},name:`thunderbolt`,theme:`outlined`}}))());function v8(){return v8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v8.apply(this,arguments)}var y8=x.forwardRef((e,t)=>x.createElement(_u,v8({},e,{ref:t,icon:_8.default}))),b8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z`}}]},name:`tool`,theme:`outlined`}}))());function x8(){return x8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x8.apply(this,arguments)}var S8=x.forwardRef((e,t)=>x.createElement(_u,x8({},e,{ref:t,icon:b8.default}))),C8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM184 352V232h64v207.6a91.99 91.99 0 01-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z`}}]},name:`trophy`,theme:`outlined`}}))());function w8(){return w8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w8.apply(this,arguments)}var T8=x.forwardRef((e,t)=>x.createElement(_u,w8({},e,{ref:t,icon:C8.default}))),E8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z`}}]},name:`truck`,theme:`outlined`}}))());function D8(){return D8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D8.apply(this,arguments)}var O8=x.forwardRef((e,t)=>x.createElement(_u,D8({},e,{ref:t,icon:E8.default}))),k8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={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`}}))());function A8(){return A8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A8.apply(this,arguments)}var j8=x.forwardRef((e,t)=>x.createElement(_u,A8({},e,{ref:t,icon:k8.default}))),M8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z`}}]},name:`user`,theme:`outlined`}}))());function N8(){return N8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N8.apply(this,arguments)}var P8=x.forwardRef((e,t)=>x.createElement(_u,N8({},e,{ref:t,icon:M8.default}))),F8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}}]},name:`video-camera`,theme:`outlined`}}))());function I8(){return I8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I8.apply(this,arguments)}var L8=x.forwardRef((e,t)=>x.createElement(_u,I8({},e,{ref:t,icon:F8.default}))),R8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`wallet`,theme:`outlined`}}))());function z8(){return z8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z8.apply(this,arguments)}var B8=x.forwardRef((e,t)=>x.createElement(_u,z8({},e,{ref:t,icon:R8.default}))),V8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z`}}]},name:`warning`,theme:`outlined`}}))());function H8(){return H8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H8.apply(this,arguments)}var U8=x.forwardRef((e,t)=>x.createElement(_u,H8({},e,{ref:t,icon:V8.default}))),W8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z`}}]},name:`wechat`,theme:`outlined`}}))());function G8(){return G8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G8.apply(this,arguments)}var K8=x.forwardRef((e,t)=>x.createElement(_u,G8({},e,{ref:t,icon:W8.default}))),q8=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M921 912L601.11 445.75l.55.43L890.08 112H793.7L558.74 384 372.15 112H119.37l298.65 435.31-.04-.04L103 912h96.39L460.6 609.38 668.2 912zM333.96 184.73l448.83 654.54H706.4L257.2 184.73z`}}]},name:`x`,theme:`outlined`}}))());function J8(){return J8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J8.apply(this,arguments)}var Y8=x.forwardRef((e,t)=>x.createElement(_u,J8({},e,{ref:t,icon:q8.default}))),X8=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Z8=(e=>e?X8(e):X8),Q8=e=>e;function $8(e,t=Q8){let n=x.useSyncExternalStore(e.subscribe,x.useCallback(()=>t(e.getState()),[e,t]),x.useCallback(()=>t(e.getInitialState()),[e,t]));return x.useDebugValue(n),n}var e5=e=>{let t=Z8(e),n=e=>$8(t,e);return Object.assign(n,t),n},t5=(e=>e?e5(e):e5),n5=`AES-GCM`,r5=12,i5=128;async function a5(){throw Error(`VITE_ENCRYPTION_KEY not configured`)}async function o5(e){let t=await a5(),n=crypto.getRandomValues(new Uint8Array(r5)),r=new TextEncoder().encode(e),i=await crypto.subtle.encrypt({name:n5,iv:n,tagLength:i5},t,r),a=new Uint8Array(i),o=new Uint8Array(n.length+a.length);return o.set(n),o.set(a,n.length),btoa(String.fromCharCode(...o))}async function s5(e){let t=await a5(),n=Uint8Array.from(atob(e),e=>e.charCodeAt(0)),r=n.slice(0,r5),i=n.slice(r5),a=await crypto.subtle.decrypt({name:n5,iv:r,tagLength:i5},t,i);return new TextDecoder().decode(a)}var c5=`http://ceshi.apiforeign.minzhong.cn`,l5=!1;function u5(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function d5(e){return Array.isArray(e)?e.map(d5):typeof e==`object`&&e?Object.fromEntries(Object.entries(e).map(([e,t])=>[u5(e),d5(t)])):e}function f5(){return localStorage.getItem(`auth_token`)}function p5(e){localStorage.setItem(`auth_token`,e)}function m5(){localStorage.removeItem(`auth_token`)}async function h5(e){try{return await s5(e)}catch{return null}}async function g5(e,t={}){let{method:n=`GET`,body:r,auth:i=!0,encryptBody:a=l5,signal:o}=t,s={"Content-Type":`application/json`};if(i){let e=f5();e&&(s.Authorization=`Bearer ${e}`)}let c;if(r!==void 0){let e=JSON.stringify(r);a?(s[`X-Encrypted`]=`true`,c=JSON.stringify({data:await o5(e)})):c=e}let l=await fetch(`${c5}/api${e}`,{method:n,headers:s,body:c,signal:o});if(l.status===204)return;let u=await l.text();if(!u)return;let d;try{d=JSON.parse(u)}catch{throw Error(`响应解析失败 (${l.status})`)}if(d&&typeof d.data==`string`&&a){let e=await h5(d.data);e!==null&&(d=JSON.parse(e))}if(!l.ok){let e=d?.detail||`请求失败 (${l.status})`;throw l.status===401&&!t.skipAuthRedirect&&(m5(),window.location.href=`/login`),Error(e)}return d5(d)}var _5={get:(e,t=!0)=>g5(e,typeof t==`boolean`?{auth:t}:t),post:(e,t,n=!0,r=!1)=>g5(e,{method:`POST`,body:t,auth:n,skipAuthRedirect:r}),put:(e,t,n=!0)=>g5(e,{method:`PUT`,body:t,auth:n}),delete:(e,t=!0)=>g5(e,{method:`DELETE`,auth:t})};async function v5(e,t,n,r){let i=await _5.post(`/auth/login`,{username:e,password:t,captcha_token:n,remember_me:r||!1},!1,!0);return p5(i.accessToken),i.user}async function y5(e,t){let n=await _5.post(`/auth/sms-login`,{phone:e,code:t},!1,!0);return p5(n.accessToken),n.user}async function b5(e,t,n){let r=await _5.post(`/auth/register`,{phone:e,code:t,password:n},!1);return p5(r.accessToken),r.user}async function x5(){await _5.post(`/auth/logout`),m5()}async function S5(){try{return await _5.get(`/auth/me`)}catch{return null}}async function C5(e,t){await _5.post(`/auth/change-password`,{old_password:e,new_password:t})}async function w5(){return _5.get(`/projects`)}async function T5(e,t){return _5.post(`/projects`,{name:e,industry:t})}async function E5(e){await _5.delete(`/projects/${e}`)}async function D5(e={}){let t=e.page&&e.page>0?e.page:1,n=e.pageSize&&e.pageSize>0?e.pageSize:10,r=new URLSearchParams;return e.projectId&&r.set(`project_id`,e.projectId),e.status&&r.set(`status`,e.status),r.set(`page`,String(t)),r.set(`page_size`,String(n)),_5.get(`/generation-records?${r.toString()}`,{signal:e.signal})}async function O5(e,t){return _5.post(`/generation-records/optimize`,{project_id:e,gen_type:t.genType,prompt:t.prompt,duration:t.duration,references:t.references||null,idempotency_key:t.idempotencyKey||null,image_size:t.image_size||null,image_proportion:t.image_proportion||null,image_px:t.image_px||null})}async function k5(e){let t=new FormData;t.append(`file`,e);let n=localStorage.getItem(`auth_token`),r=await fetch(`http://ceshi.apiforeign.minzhong.cn/api/generation-records/upload-image`,{method:`POST`,headers:n?{Authorization:`Bearer ${n}`}:{},body:t});if(!r.ok)throw Error(`图片上传失败`);let i=await r.json();return{url:i.url,filename:i.filename}}async function A5(e){let t=new FormData;t.append(`file`,e);let n=localStorage.getItem(`auth_token`),r=await fetch(`http://ceshi.apiforeign.minzhong.cn/api/generation-records/upload-video`,{method:`POST`,headers:n?{Authorization:`Bearer ${n}`}:{},body:t});if(!r.ok)throw Error(`视频上传失败`);let i=await r.json();return{url:i.url,filename:i.filename}}async function j5(e){await _5.post(`/generation-records/delete-file?url=${encodeURIComponent(e)}`)}async function M5(e,t){await _5.put(`/generation-records/${e}/prompt`,{optimized_prompt:t})}async function N5(e,t){return _5.post(`/generation-records/${e}/generate`,{aspect_ratio:t.aspectRatio,resolution:t.resolution})}async function P5(e=1,t=20){let n=new URLSearchParams;return n.set(`page`,String(e)),n.set(`page_size`,String(t)),_5.get(`/credits?${n.toString()}`)}async function F5(){return _5.get(`/auth/site-info`,!1)}async function I5(){return _5.get(`/video-engines`)}async function L5(){return _5.get(`/image-engines`)}async function R5(e,t){await _5.post(`/sms/send`,{phone:e,scene:t},!1)}async function z5(e=1,t=20,n){let r=new URLSearchParams;return r.set(`page`,String(e)),r.set(`page_size`,String(t)),n!==void 0&&r.set(`is_read`,String(n)),_5.get(`/notifications?${r.toString()}`)}async function B5(){return(await _5.get(`/notifications/unread-count`)).count}async function V5(e){await _5.put(`/notifications/${e}/read`)}async function H5(){return(await _5.get(`/industries`)).map(e=>{let t=(Array.isArray(e.skills)?e.skills:[]).filter(e=>e&&e.type===`option_group`&&e.name&&Array.isArray(e.options)).map(e=>({name:e.name,options:e.options}));return{...e,optionGroups:t}})}async function U5(){return _5.get(`/menu-configs`)}async function W5(){return _5.get(`/recharge-packages`)}async function G5(){return _5.get(`/payments/methods`)}async function K5(e,t=`wechat`){return _5.post(`/payments/recharge`,{plan:e,method:t})}async function q5(e=1,t=20){let n=new URLSearchParams;return n.set(`page`,String(e)),n.set(`page_size`,String(t)),_5.get(`/payments/orders?${n.toString()}`)}async function J5(e){return _5.get(`/payments/orders/${e}`)}async function Y5(e){return _5.post(`/payments/orders/${e}/cancel`)}async function X5(){return _5.get(`/credits/ratios`)}async function Z5(){return _5.get(`/generation-ai/engines`)}async function Q5(e){return _5.post(`/generation-ai/tasks`,e)}async function $5(e){return _5.get(`/generation-ai/tasks?page=`+e.page+`&page_size=`+e.pageSize)}async function e7(e){return _5.get(`/generation-ai/history`+e)}async function t7(e){return _5.get(`/generation-ai/history/`+e)}async function n7(e){await _5.delete(`/generation-ai/tasks/${e}`)}async function r7(){return _5.get(`/credits/credit-ratios`)}async function i7(e){return _5.post(`/hot-opening-replications/tasks`,e)}async function a7(e,t){return _5.get(`/hot-opening-replications/tasks?page=${e}&page_size=${t}`)}async function o7(e){return _5.get(`/hot-opening-replications/tasks/${e}`)}async function s7(e,t){return _5.post(`/hot-opening-replications/tasks/${e}/steps/${t}/generate-image-prompt`)}async function c7(e,t,n){return _5.put(`/hot-opening-replications/tasks/${e}/steps/${t}/image-prompt`,n)}async function l7(e,t,n){return _5.post(`/hot-opening-replications/tasks/${e}/steps/${t}/generate-image`,n)}async function u7(e,t,n){return _5.post(`/hot-opening-replications/tasks/${e}/steps/${t}/generate-video-prompt`,n)}async function d7(e,t,n){return _5.post(`/hot-opening-replications/tasks/${e}/steps/${t}/generate-video`,n)}async function f7(e){return _5.post(`/user-oauth/request_oauth`,e)}async function p7(e){let t=new URLSearchParams;return t.set(`auth_code`,e.auth_code),t.set(`state`,e.state),_5.get(`/user-oauth/juliang_callback?${t.toString()}`)}async function m7(e){let t=new URLSearchParams;return e.account_userid&&t.set(`account_userid`,e.account_userid),e.open_type!==void 0&&t.set(`open_type`,String(e.open_type)),e.account_id&&t.set(`account_id`,e.account_id),e.page!==void 0&&t.set(`page`,String(e.page)),e.page_size!==void 0&&t.set(`page_size`,String(e.page_size)),_5.get(`/user-oauth/oauth_list?${t.toString()}`)}async function h7(e){let t=e?.page||1,n=Math.min(e?.pageSize||10,100);return _5.get(`/pre-test-template/list?page=${t}&page_size=${n}`)}async function g7(e){return _5.post(`/pre-test-template/create`,e)}async function _7(){return _5.get(`/pre-test-template/default`)}async function v7(e,t,n){return _5.put(`/hot-opening-replications/tasks/${e}/steps/${t}/video-prompt-schema`,n)}async function y7(e){return _5.post(`/shot-replications/task-sets`,e)}async function b7(e,t){return _5.get(`/shot-replications/task-sets?page=${e}&page_size=${t}`)}async function x7(e){return _5.get(`/shot-replications/task-sets/${e}`)}async function S7(e,t){return _5.post(`/shot-replications/task-sets/${e}/split-by-ai`,t)}async function C7(e,t){return _5.post(`/shot-replications/task-sets/${e}/split-custom`,t)}async function w7(e){return _5.get(`/shot-replications/task-sets/${e}/segments`)}async function T7(e,t){return _5.post(`/shot-replications/segments/${e}/replication-projects`,t)}async function E7(e){return _5.get(`/shot-replications/projects/${e}`)}async function D7(e,t){return _5.post(`/shot-replications/projects/${e}/steps/${t}/generate-image-prompt`)}async function O7(e,t,n){return _5.put(`/shot-replications/projects/${e}/steps/${t}/image-prompt`,n)}async function k7(e,t,n){return _5.put(`/shot-replications/projects/${e}/steps/${t}/video-prompt-schema`,n)}async function A7(e,t,n){return _5.post(`/shot-replications/projects/${e}/steps/${t}/generate-image`,n)}async function j7(e,t,n){return _5.post(`/shot-replications/projects/${e}/steps/${t}/generate-video-prompt`,n)}async function M7(e,t,n){return _5.post(`/shot-replications/projects/${e}/steps/${t}/generate-video`,n)}async function N7(e){let t=new URLSearchParams;return e?.level&&t.set(`level`,e.level),e?.parent_code&&t.set(`parent_code`,e.parent_code),_5.get(`/pre-test-template/getArea?${t.toString()}`)}var P7=t5(e=>({user:null,loading:!0,login:async(t,n,r,i)=>{e({user:await v5(t,n,r,i)})},logout:async()=>{await x5(),e({user:null})},checkAuth:async()=>{try{if(!localStorage.getItem(`auth_token`)){e({user:null,loading:!1});return}e({user:await S5(),loading:!1})}catch(t){(t?.message?.includes(`401`)||t?.message?.includes(`Unauthorized`))&&localStorage.removeItem(`auth_token`),e({user:null,loading:!1})}},changePassword:async(e,t)=>{await C5(e,t)},refreshUser:async()=>{try{e({user:await S5()})}catch(e){console.error(`Failed to refresh user:`,e)}}})),F7=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),$=o(((e,t)=>{t.exports=F7()}))(),I7={system:{gradient:`linear-gradient(135deg, #6366f1, #818cf8)`,icon:(0,$.jsx)(y8,{}),label:`系统通知`},credit:{gradient:`linear-gradient(135deg, #f59e0b, #fbbf24)`,icon:(0,$.jsx)(u8,{}),label:`积分通知`},promo:{gradient:`linear-gradient(135deg, #8b5cf6, #a78bfa)`,icon:(0,$.jsx)(t3,{}),label:`活动通知`}},L7=()=>{let[e,t]=(0,x.useState)(!1),[n,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(0),o=P7(e=>e.refreshUser),s=(0,x.useCallback)(async()=>{try{let n=(await z5(1,20,!1)).items||[];r(n),n.length>0&&!e&&(t(!0),a(0))}catch{}},[e]);(0,x.useEffect)(()=>{s();let e=setInterval(s,3e4);return()=>clearInterval(e)},[]);let c=async()=>{let e=n[i];if(e)try{await V5(e.id)}catch{}if(i<n.length-1)a(i+1);else{t(!1),r([]),a(0);try{await o()}catch{}}},l=async()=>{let e=n[i];if(e)try{await V5(e.id)}catch{}t(!1),r([]),a(0)};if(!e||n.length===0)return null;let u=n[i],d=I7[u.type]||I7.system;return(0,$.jsxs)(`div`,{style:{position:`fixed`,top:0,left:0,right:0,bottom:0,zIndex:9999,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`rgba(15,15,35,0.6)`,backdropFilter:`blur(8px)`},onClick:l,children:[(0,$.jsxs)(`div`,{onClick:e=>e.stopPropagation(),style:{width:420,borderRadius:20,overflow:`hidden`,boxShadow:`0 32px 80px rgba(0,0,0,0.35)`,animation:`slideUp 0.35s cubic-bezier(0.16,1,0.3,1)`},children:[(0,$.jsxs)(`div`,{style:{background:d.gradient,padding:`28px 28px 24px`,position:`relative`,overflow:`hidden`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,right:-20,top:-20,width:120,height:120,borderRadius:`50%`,background:`rgba(255,255,255,0.1)`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,right:50,bottom:-30,width:80,height:80,borderRadius:`50%`,background:`rgba(255,255,255,0.06)`}}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,position:`relative`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:14},children:[(0,$.jsx)(`div`,{style:{width:48,height:48,borderRadius:14,background:`rgba(255,255,255,0.2)`,display:`flex`,alignItems:`center`,justifyContent:`center`,backdropFilter:`blur(4px)`,fontSize:22,color:`#fff`},children:d.icon}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`rgba(255,255,255,0.7)`,fontSize:12,marginBottom:2},children:`新消息通知`}),(0,$.jsx)(`div`,{style:{color:`#fff`,fontSize:17,fontWeight:700},children:u.title})]})]}),(0,$.jsx)(`div`,{onClick:l,style:{width:28,height:28,borderRadius:8,background:`rgba(255,255,255,0.15)`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`background 0.2s`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.25)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.15)`},children:(0,$.jsx)(Eu,{style:{color:`#fff`,fontSize:12}})})]})]}),(0,$.jsxs)(`div`,{style:{background:`#fff`,padding:`24px 28px 28px`},children:[(0,$.jsx)(`div`,{style:{padding:`18px 20px`,background:`#f8fafc`,borderRadius:14,marginBottom:20,border:`1px solid #f0f0f5`},children:(0,$.jsx)(`div`,{style:{fontSize:14,color:`#334155`,lineHeight:1.8},children:u.content})}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsx)(x$,{color:d.gradient.includes(`#6366f1`)?`#6366f1`:d.gradient.includes(`#f59e0b`)?`#f59e0b`:`#8b5cf6`,style:{borderRadius:6,border:`none`,padding:`2px 10px`,fontSize:12},children:d.label}),n.length>1&&(0,$.jsxs)(`span`,{style:{fontSize:12,color:`#94a3b8`},children:[i+1,` / `,n.length]})]}),(0,$.jsx)(kD,{type:`primary`,onClick:c,style:{borderRadius:10,fontWeight:600,height:38,background:d.gradient,border:`none`,paddingLeft:28,paddingRight:28,boxShadow:`0 6px 16px ${d.gradient.includes(`#6366f1`)?`rgba(99,102,241,0.3)`:d.gradient.includes(`#f59e0b`)?`rgba(245,158,11,0.3)`:`rgba(139,92,246,0.3)`}`},children:`我已知晓`})]}),n.length>1&&(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,gap:6,marginTop:18},children:n.map((e,t)=>(0,$.jsx)(`div`,{style:{width:t===i?22:6,height:6,borderRadius:3,background:t===i?d.gradient.includes(`#6366f1`)?`#6366f1`:d.gradient.includes(`#f59e0b`)?`#f59e0b`:`#8b5cf6`:`#e2e8f0`,transition:`all 0.3s ease`}},t))})]})]}),(0,$.jsx)(`style`,{children:`
|
||
@keyframes slideUp {
|
||
from { opacity: 0; transform: translateY(24px) scale(0.97); }
|
||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||
}
|
||
`})]})},R7={HomeOutlined:(0,$.jsx)(g3,{}),DashboardOutlined:(0,$.jsx)(j4,{}),CodeOutlined:(0,$.jsx)(g4,{}),PlayCircleOutlined:(0,$.jsx)(p6,{}),WalletOutlined:(0,$.jsx)(B8,{}),SettingOutlined:(0,$.jsx)(B6,{}),BellOutlined:(0,$.jsx)(j2,{}),UserOutlined:(0,$.jsx)(P8,{}),AppstoreOutlined:(0,$.jsx)(s2,{}),FileTextOutlined:(0,$.jsx)(RU,{}),StarOutlined:(0,$.jsx)(u8,{}),HeartOutlined:(0,$.jsx)(s3,{}),CameraOutlined:(0,$.jsx)(K2,{}),RobotOutlined:(0,$.jsx)(p6,{}),CalculatorOutlined:(0,$.jsx)(U2,{}),DollarOutlined:(0,$.jsx)(L4,{}),GiftOutlined:(0,$.jsx)(t3,{}),ThunderboltOutlined:(0,$.jsx)(y8,{}),FireOutlined:(0,$.jsx)(Y4,{}),CloudOutlined:(0,$.jsx)(s4,{}),SmileOutlined:(0,$.jsx)(t8,{}),TrophyOutlined:(0,$.jsx)(T8,{}),RocketOutlined:(0,$.jsx)(O6,{}),BulbOutlined:(0,$.jsx)(B2,{}),PictureOutlined:(0,$.jsx)(i6,{}),VideoCameraOutlined:(0,$.jsx)(L8,{}),AudioOutlined:(0,$.jsx)(y2,{}),MailOutlined:(0,$.jsx)(L3,{}),PhoneOutlined:(0,$.jsx)(t6,{}),GlobalOutlined:(0,$.jsx)(i3,{}),ShoppingCartOutlined:(0,$.jsx)(U6,{}),TeamOutlined:(0,$.jsx)(g8,{}),BarChartOutlined:(0,$.jsx)(O2,{}),PieChartOutlined:(0,$.jsx)(s6,{}),LineChartOutlined:(0,$.jsx)(O3,{}),SecurityScanOutlined:(0,$.jsx)(P6,{}),ApiOutlined:(0,$.jsx)(i2,{}),DatabaseOutlined:(0,$.jsx)(P4,{}),CloudServerOutlined:(0,$.jsx)(u4,{})},z7=240,B7=[{gradient:`linear-gradient(135deg, #c9a96e, #a67c52)`,shadow:`rgba(201,169,110,0.25)`,icon:(0,$.jsx)(yJ,{})},{gradient:`linear-gradient(135deg, #4a5568, #2d3748)`,shadow:`rgba(74,85,104,0.25)`,icon:(0,$.jsx)(K4,{})},{gradient:`linear-gradient(135deg, #718096, #4a5568)`,shadow:`rgba(113,128,150,0.25)`,icon:(0,$.jsx)(T4,{})},{gradient:`linear-gradient(135deg, #5a67d8, #434190)`,shadow:`rgba(90,103,216,0.25)`,icon:(0,$.jsx)(S2,{})}],V7=()=>{let e=Ge(),t=He(),{user:n,logout:r}=P7(),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(!1),[c]=DW.useForm(),[l,u]=(0,x.useState)(null),[d,f]=(0,x.useState)([]),[p,m]=(0,x.useState)([]),[h,g]=(0,x.useState)({}),[_,v]=(0,x.useState)(0),[y,b]=(0,x.useState)(()=>{let e=localStorage.getItem(`siteInfo`),t=e&&JSON.parse(e).siteName||``;return t&&(document.title=t),t}),[S,C]=(0,x.useState)(()=>{let e=localStorage.getItem(`siteInfo`),t=e&&JSON.parse(e).siteLogo||``;if(t){let e=document.querySelector(`link[rel="icon"]`);e||(e=document.createElement(`link`),e.rel=`icon`,document.head.appendChild(e)),e.href=t,e.type=`image/png`}return t}),[w,T]=(0,x.useState)(!localStorage.getItem(`siteInfo`)),[E,D]=(0,x.useState)(!1),[O,k]=(0,x.useState)(null),[A,j]=(0,x.useState)(`alipay`),[M,N]=(0,x.useState)(!1),[P,F]=(0,x.useState)(180),I=(0,x.useRef)(null),L=(0,x.useRef)(null),R=(0,x.useRef)(null),[z,B]=(0,x.useState)({alipay:!1,wechat:!1}),V=`pending_payment_order`;(0,x.useEffect)(()=>{F5().then(e=>{let t=e.siteName||`民众智创`,n=e.siteLogo||``;if(t!==y&&(b(t),document.title=t),n&&n!==S){C(n);let e=document.querySelector(`link[rel="icon"]`);e||(e=document.createElement(`link`),e.rel=`icon`,document.head.appendChild(e)),e.href=n,e.type=`image/png`}localStorage.setItem(`siteInfo`,JSON.stringify({siteName:t,siteLogo:n}))}).catch(()=>{})},[]);let H=()=>{B5().then(e=>{v(e)}).catch(()=>{})};(0,x.useEffect)(()=>{(async()=>{let e=localStorage.getItem(V);if(e)try{let t=JSON.parse(e),n=await J5(t.orderNo);if(n.status===`pending`){k({price:t.price,credits:t.credits,qrCode:t.qrCode,method:t.method}),R.current=t.orderNo;let e=Date.now(),n=new Date(t.createdAt).getTime(),r=t.timeoutSeconds||180,i=Math.floor((e-n)/1e3),a=Math.max(0,r-i);a>0?(D(!0),Y(t.orderNo,a)):localStorage.removeItem(V)}else n.status===`paid`?(Aq.success(`支付成功!积分已到账`),P7.getState().refreshUser(),localStorage.removeItem(V)):localStorage.removeItem(V)}catch{localStorage.removeItem(V)}})()},[]),(0,x.useEffect)(()=>{U5().then(e=>{let t=e.filter(e=>e.is_active!==!1&&e.isActive!==!1);if(n?.allowedMenus&&n.allowedMenus.length>0){let e=new Set(n.allowedMenus),r=new Set;t.forEach(t=>{let n=t.parent_id??t.parentId;n&&e.has(t.path)&&r.add(n)}),t=t.filter(t=>(t.menu_type??t.menuType)===`group`&&r.has(t.id)?!0:e.has(t.path))}f(t)}).catch(()=>{}),W5().then(e=>{m(e.filter(e=>e.is_active!==!1&&e.isActive!==!1))}).catch(()=>{}),G5().then(e=>{B(e),e.alipay?j(`alipay`):e.wechat&&j(`wechat`)}).catch(()=>{}),H()},[n]);let U=t.pathname.startsWith(`/records`)?`/records`:t.pathname,W=z7,G=[{key:`profile`,icon:(0,$.jsx)(P8,{}),label:`账号: ${n?.username}`,disabled:!0},{key:`credits`,icon:(0,$.jsx)(B8,{style:{color:`#c9a96e`}}),label:`积分: ${n?.credits??0}`,disabled:!0},{type:`divider`},{key:`myCredits`,icon:(0,$.jsx)(B8,{}),label:`积分明细`},{key:`orderRecords`,icon:(0,$.jsx)(RU,{}),label:`订单记录`},{key:`messages`,icon:(0,$.jsx)(j2,{}),label:`消息中心${_>0?`(${_})`:``}`},{type:`divider`},{key:`changePwd`,icon:(0,$.jsx)(j3,{}),label:`修改密码`},{type:`divider`},{key:`logout`,icon:(0,$.jsx)(P3,{}),label:`退出登录`,danger:!0}],K=({key:t})=>{t===`logout`?(r(),e(`/login`)):t===`changePwd`?a(!0):t===`messages`?e(`/messages`):t===`recharge`?s(!0):t===`myCredits`?e(`/user-center?tab=credits`):t===`orderRecords`&&e(`/user-center?tab=orders`)},ee=async()=>{try{await c.validateFields(),Aq.success(`密码修改成功(演示)`),a(!1),c.resetFields()}catch{}},te=()=>{r(),e(`/login`)},q=()=>{s(!0)},J=(0,x.useCallback)(()=>{I.current&&=(clearInterval(I.current),null),L.current&&=(clearInterval(L.current),null)},[]),Y=(0,x.useCallback)((e,t=180)=>{J(),F(t),I.current=setInterval(async()=>{try{let t=await J5(e);t.status===`paid`?(J(),R.current=null,localStorage.removeItem(V),Aq.success(`支付成功!积分已到账`),P7.getState().refreshUser(),D(!1),k(null),u(null)):t.status===`cancelled`&&(J(),R.current=null,localStorage.removeItem(V))}catch{}},2e3),L.current=setInterval(()=>{F(e=>e<=1?(J(),R.current&&=(Y5(R.current).catch(()=>{}),null),localStorage.removeItem(V),Aq.warning(`订单已超时,请重新充值`),D(!1),k(null),u(null),0):e-1)},1e3)},[J]);return(0,$.jsxs)(_K,{style:{minHeight:`100vh`},children:[(0,$.jsxs)(`div`,{className:`desktop-sidebar`,style:{width:W,position:`fixed`,left:16,top:16,bottom:16,zIndex:100,background:`linear-gradient(180deg, #ffffff 0%, #f8fafc 100%)`,borderRadius:`20px`,boxShadow:`0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 8px rgba(0, 0, 0, 0.04)`,display:`flex`,flexDirection:`column`,transition:`width 0.25s ease, left 0.25s ease`,overflow:`hidden`,border:`1px solid rgba(0, 0, 0, 0.06)`},children:[(0,$.jsx)(`div`,{style:{height:80,display:`flex`,alignItems:`center`,justifyContent:`flex-start`,padding:`0 20px`,flexShrink:0,background:`linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%)`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:14},children:[(0,$.jsx)(`div`,{style:{width:42,height:42,borderRadius:14,flexShrink:0,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 4px 16px rgba(99, 102, 241, 0.35)`,overflow:`hidden`},children:S?(0,$.jsx)(`img`,{src:S,alt:`logo`,style:{width:28,height:28,objectFit:`contain`}}):(0,$.jsx)(y8,{style:{fontSize:20,color:`#ffffff`}})}),(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:17,fontWeight:700,letterSpacing:-.02,whiteSpace:`nowrap`,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:y})]})}),(0,$.jsx)(`div`,{style:{flex:1,padding:`8px 8px`,overflow:`auto`},children:(()=>{let t=d.filter(e=>(e.menu_type??e.menuType)===`group`),n=d.filter(e=>(e.menu_type??e.menuType)!==`group`),r={};n.filter(e=>e.parent_id??e.parentId).forEach(e=>{let t=e.parent_id??e.parentId;r[t]||(r[t]=[]),r[t].push(e)});let i=n.filter(e=>!(e.parent_id??e.parentId)),a=[],o=(t,n=0)=>{let r=t.path===U,i=R7[t.icon]||(0,$.jsx)(g3,{});return(0,$.jsxs)(`div`,{onClick:()=>t.path&&e(t.path),style:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,gap:12,padding:n>0?`8px 14px 8px 36px`:`10px 16px`,borderRadius:12,margin:`2px 6px`,cursor:`pointer`,fontSize:n>0?13:14,fontWeight:r?600:400,color:r?`#4f46e5`:`#475569`,background:r?`linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%)`:`transparent`,transition:`all 0.2s ease`},children:[(0,$.jsx)(`span`,{style:{fontSize:n>0?14:16,flexShrink:0,color:r?`#6366f1`:`#64748b`},children:i}),(0,$.jsx)(`span`,{style:{whiteSpace:`nowrap`},children:t.label})]},t.id)};return t.sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0)).forEach(e=>{let t=(r[e.id]||[]).sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0));a.push((0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12,fontWeight:600,padding:`12px 16px 6px`,letterSpacing:.5,textTransform:`uppercase`},children:e.label}),t.map(e=>o(e,1))]},e.id))}),i.sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0)).forEach(e=>{a.push(o(e))}),a})()}),(0,$.jsxs)(`div`,{onClick:()=>s(!0),style:{margin:`8px 12px`,padding:`12px 20px`,borderRadius:14,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,gap:8,color:`#ffffff`,fontSize:14,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,boxShadow:`0 4px 16px rgba(99, 102, 241, 0.4)`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%)`,e.currentTarget.style.transform=`translateY(-1px)`,e.currentTarget.style.boxShadow=`0 6px 20px rgba(99, 102, 241, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 4px 16px rgba(99, 102, 241, 0.4)`},children:[(0,$.jsx)(IR,{style:{fontSize:16}}),(0,$.jsx)(`span`,{children:`充值积分`})]}),(0,$.jsx)(`div`,{style:{padding:`16px 16px`,flexShrink:0},children:(0,$.jsx)(FU,{menu:{items:G,onClick:K},placement:`topRight`,arrow:!0,children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,gap:12,padding:`10px 14px`,borderRadius:14,cursor:`pointer`,transition:`all 0.25s ease`,background:`linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%)`,boxShadow:`0 2px 12px rgba(0, 0, 0, 0.04)`},onMouseEnter:e=>{e.currentTarget.style.background=`linear-gradient(135deg, #ffffff 0%, #f8fafc 100%)`,e.currentTarget.style.boxShadow=`0 4px 16px rgba(0, 0, 0, 0.08)`},onMouseLeave:e=>{e.currentTarget.style.background=`linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%)`,e.currentTarget.style.boxShadow=`0 2px 12px rgba(0, 0, 0, 0.04)`},children:[(0,$.jsx)(bT,{size:36,icon:(0,$.jsx)(P8,{}),style:{background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,flexShrink:0,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`}}),(0,$.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,$.jsx)(`div`,{style:{color:`#1e293b`,fontSize:14,fontWeight:600,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,letterSpacing:-.01},children:n?.username}),(0,$.jsxs)(`div`,{style:{color:`#6366f1`,fontSize:12,fontWeight:500,letterSpacing:0,background:`rgba(99, 102, 241, 0.08)`,padding:`2px 8px`,borderRadius:6,display:`inline-block`},children:[`积分: `,n?.credits||0]})]})]})})})]}),(0,$.jsx)(`div`,{className:`desktop-content`,style:{marginLeft:W+48,marginRight:32,marginTop:16,marginBottom:16,flex:1,minHeight:`calc(100vh - 32px)`,background:`transparent`,padding:0,transition:`margin-left 0.25s ease`},children:(0,$.jsx)(`div`,{style:{boxSizing:`border-box`,height:`100%`,background:`#ffffffff`,borderRadius:`20px`,boxShadow:`0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 8px rgba(0, 0, 0, 0.04)`,minHeight:`100%`,padding:`24px 32px 32px`,border:`1px solid rgba(0, 0, 0, 0.06)`},children:(0,$.jsx)(bt,{})})}),(0,$.jsxs)(`div`,{className:`mobile-bottom-nav`,children:[d.filter(e=>(e.menu_type??e.menuType)!==`group`).map(t=>t.path?(0,$.jsxs)(`div`,{className:`nav-item ${t.path===U?`active`:``}`,onClick:()=>e(t.path),children:[(0,$.jsx)(`span`,{className:`nav-icon`,children:R7[t.icon]||(0,$.jsx)(g3,{})}),(0,$.jsx)(`span`,{children:t.label})]},t.id):null),(0,$.jsxs)(`div`,{className:`nav-item`,onClick:q,children:[(0,$.jsx)(`span`,{className:`nav-icon`,children:(0,$.jsx)(g6,{})}),(0,$.jsx)(`span`,{children:`充值`})]}),(0,$.jsxs)(`div`,{className:`nav-item`,onClick:te,children:[(0,$.jsx)(`span`,{className:`nav-icon`,children:(0,$.jsx)(P3,{})}),(0,$.jsx)(`span`,{children:`退出`})]})]}),(0,$.jsx)(Nq,{title:(0,$.jsxs)(NU,{children:[(0,$.jsx)(j3,{}),`修改密码`]}),open:i,onOk:ee,onCancel:()=>{a(!1),c.resetFields()},okText:`确认修改`,cancelText:`取消`,width:440,children:(0,$.jsxs)(DW,{form:c,layout:`vertical`,style:{marginTop:20},children:[(0,$.jsx)(DW.Item,{name:`oldPwd`,label:`原密码`,rules:[{required:!0,message:`请输入原密码`}],children:(0,$.jsx)(cK.Password,{placeholder:`请输入原密码`,size:`large`,prefix:(0,$.jsx)(j3,{style:{color:`#94a3b8`,marginRight:8}})})}),(0,$.jsx)(DW.Item,{name:`newPwd`,label:`新密码`,rules:[{required:!0,message:`请输入新密码`},{min:6,message:`密码至少6位`}],children:(0,$.jsx)(cK.Password,{placeholder:`请输入新密码(至少6位)`,size:`large`,prefix:(0,$.jsx)(j3,{style:{color:`#94a3b8`,marginRight:8}})})}),(0,$.jsx)(DW.Item,{name:`confirmPwd`,label:`确认新密码`,rules:[{required:!0,message:`请再次输入新密码`},({getFieldValue:e})=>({validator(t,n){return!n||e(`newPwd`)===n?Promise.resolve():Promise.reject(Error(`两次密码不一致`))}})],children:(0,$.jsx)(cK.Password,{placeholder:`请再次输入新密码`,size:`large`,prefix:(0,$.jsx)(j3,{style:{color:`#94a3b8`,marginRight:8}})})})]})}),(0,$.jsx)(Nq,{title:(0,$.jsxs)(NU,{children:[(0,$.jsx)(t3,{}),`积分充值`]}),open:o,onCancel:()=>{s(!1),u(null)},footer:null,width:680,children:(0,$.jsxs)(`div`,{style:{marginTop:16},children:[(0,$.jsxs)(NU,{style:{marginBottom:16},children:[(0,$.jsx)(B8,{style:{color:`#6366f1`}}),(0,$.jsx)(S1.Text,{style:{color:`#64748b`,letterSpacing:0},children:`当前积分余额`}),(0,$.jsx)(S1.Text,{strong:!0,style:{color:`#6366f1`,fontSize:20,fontWeight:600},children:n?.credits??0})]}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:12,flexWrap:`wrap`},children:p.map((e,t)=>{let n=B7[t%B7.length],r=(e.credits||0)+(e.bonus_credits||e.bonusCredits||0);return(0,$.jsxs)(`div`,{onClick:()=>u(e.id),style:{flex:`1 1 45%`,minWidth:200,borderRadius:16,padding:`20px 16px`,background:l===e.id?`rgba(99,102,241,0.04)`:`#fafbff`,border:l===e.id?`2px solid #6366f1`:`1px solid #f0f0f5`,cursor:`pointer`,position:`relative`,transition:`all 0.2s`},children:[e.description&&(0,$.jsx)(x$,{color:`purple`,style:{position:`absolute`,top:-10,left:`50%`,transform:`translateX(-50%)`,borderRadius:8,fontSize:11},children:e.description}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:12,flexShrink:0,background:n.gradient,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:18,color:`#fff`,boxShadow:`0 6px 16px ${n.shadow}`},children:n.icon}),(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`baseline`,gap:6},children:[(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:15},children:e.name}),(0,$.jsxs)(S1.Text,{style:{fontSize:12,color:`#94a3b8`},children:[r.toLocaleString(),` 积分`]})]}),(0,$.jsxs)(`div`,{style:{fontSize:22,fontWeight:800,marginTop:4,background:n.gradient,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`},children:[`¥`,e.price]})]})]})]},e.id)})}),!z.alipay&&!z.wechat?(0,$.jsx)(`div`,{style:{marginTop:20,marginBottom:8,padding:16,background:`#fef2f2`,borderRadius:12,border:`1px solid #fecaca`},children:(0,$.jsx)(S1.Text,{style:{color:`#dc2626`,fontSize:13},children:`⚠️ 暂无可用的支付方式,请联系管理员开启支付功能`})}):(0,$.jsxs)(`div`,{style:{marginTop:20,marginBottom:8},children:[(0,$.jsx)(S1.Text,{style:{color:`#64748b`,fontSize:13,marginBottom:8,display:`block`},children:`选择支付方式`}),(0,$.jsxs)(GL.Group,{value:A,onChange:e=>j(e.target.value),style:{display:`flex`,gap:12},children:[z.alipay&&(0,$.jsxs)(GL.Button,{value:`alipay`,style:{flex:1,textAlign:`center`,borderRadius:10,height:44,lineHeight:`42px`,borderColor:A===`alipay`?`#1677ff`:void 0,color:A===`alipay`?`#1677ff`:void 0},children:[(0,$.jsx)(t2,{style:{fontSize:16,marginRight:6}}),`支付宝`]}),z.wechat&&(0,$.jsxs)(GL.Button,{value:`wechat`,style:{flex:1,textAlign:`center`,borderRadius:10,height:44,lineHeight:`42px`,borderColor:A===`wechat`?`#07c160`:void 0,color:A===`wechat`?`#07c160`:void 0},children:[(0,$.jsx)(K8,{style:{fontSize:16,marginRight:6}}),`微信支付`]})]})]}),(0,$.jsxs)(`div`,{style:{marginTop:16,display:`flex`,justifyContent:`flex-end`},children:[(0,$.jsx)(kD,{size:`large`,onClick:()=>{s(!1),u(null)},style:{borderRadius:10,marginRight:12},children:`取消`}),(0,$.jsx)(kD,{type:`primary`,size:`large`,disabled:!l||!z.alipay&&!z.wechat,loading:M,onClick:async()=>{let e=p.find(e=>e.id===l);if(!e)return;let t=(e.credits||0)+(e.bonus_credits||e.bonusCredits||0);try{N(!0);let n=await K5(e.id,A),r=n.qrUrl||n.codeUrl||n.qr_code||n.code_url;(n.paymentMethod===`alipay`||n.paymentMethod===`wechat`)&&r?(k({price:e.price,credits:t,qrCode:r,method:n.paymentMethod}),s(!1),D(!0),R.current=n.orderNo,localStorage.setItem(V,JSON.stringify({orderNo:n.orderNo,price:e.price,credits:t,qrCode:r,method:n.paymentMethod,createdAt:n.createdAt||new Date().toISOString(),timeoutSeconds:180})),Y(n.orderNo)):(Aq.success(`充值成功!积分已到账`),P7.getState().refreshUser(),s(!1),u(null))}catch(e){Aq.error(e?.message||`创建订单失败,请重试`)}finally{N(!1)}},style:{borderRadius:10,fontWeight:600,background:l?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`#d1d5db`,border:`none`,boxShadow:l?`0 8px 24px rgba(99,102,241,0.3)`:`none`},children:`确认充值`})]})]})}),(0,$.jsx)(Nq,{open:E,onCancel:async()=>{if(J(),R.current){try{await Y5(R.current)}catch{}R.current=null}localStorage.removeItem(V),D(!1),k(null)},footer:null,width:400,closable:!1,styles:{body:{padding:0,borderRadius:16,overflow:`hidden`}},children:(0,$.jsxs)(`div`,{style:{padding:`24px`},children:[(0,$.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:24},children:[(0,$.jsx)(`div`,{style:{width:48,height:48,background:O?.method===`alipay`?`linear-gradient(135deg, #1677ff, #0958d9)`:`linear-gradient(135deg, #07c160, #06ae56)`,borderRadius:16,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 12px`},children:O?.method===`alipay`?(0,$.jsx)(t2,{style:{fontSize:24,color:`#fff`}}):(0,$.jsx)(K8,{style:{fontSize:24,color:`#fff`}})}),(0,$.jsx)(S1.Title,{level:4,style:{margin:0},children:O?.method===`alipay`?`支付宝支付`:`微信支付`}),(0,$.jsx)(S1.Text,{style:{color:`#94a3b8`,fontSize:13},children:O?.method===`alipay`?`请使用支付宝扫描二维码完成支付`:`请使用微信扫描二维码完成支付`})]}),(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:16,padding:20,display:`flex`,flexDirection:`column`,alignItems:`center`,boxShadow:`0 4px 20px rgba(0,0,0,0.08)`},children:[(0,$.jsx)(`div`,{style:{width:180,height:180,borderRadius:12,overflow:`hidden`,background:`#fff`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:O&&(0,$.jsx)(Q0,{value:O.qrCode,size:160,level:`M`,includeMargin:!1})}),(0,$.jsxs)(`div`,{style:{marginTop:16,textAlign:`center`},children:[(0,$.jsxs)(`div`,{style:{fontSize:28,fontWeight:700,color:`#1a1a2e`},children:[`¥`,O?.price||0]}),(0,$.jsxs)(`div`,{style:{fontSize:13,color:`#64748b`,marginTop:4},children:[`购买 `,O?.credits||0,` 积分`]}),(0,$.jsx)(`div`,{style:{marginTop:12,padding:`8px 16px`,background:P<=30?`#fef2f2`:`#f0f9ff`,borderRadius:8,border:P<=30?`1px solid #fecaca`:`1px solid #bae6fd`,display:`inline-block`},children:(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:P<=30?`#dc2626`:`#0284c7`},children:[`订单将在 `,(0,$.jsx)(`span`,{style:{fontSize:16,fontWeight:800},children:P}),` 秒后关闭`]})})]})]}),(0,$.jsx)(`div`,{style:{marginTop:20,padding:16,background:`#fef3c7`,borderRadius:12},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,gap:8},children:[(0,$.jsx)(`div`,{style:{fontSize:16,marginTop:-2},children:`💡`}),(0,$.jsxs)(`div`,{style:{fontSize:13,color:`#92400e`},children:[(0,$.jsx)(`div`,{style:{fontWeight:500,marginBottom:4},children:`支付提示`}),(0,$.jsxs)(`ul`,{style:{margin:0,paddingLeft:16},children:[(0,$.jsx)(`li`,{style:{marginBottom:2},children:`请在支付后等待页面自动跳转`}),(0,$.jsx)(`li`,{children:`如支付成功但未到账,请联系客服`})]})]})]})}),(0,$.jsx)(`div`,{style:{marginTop:20},children:(0,$.jsx)(kD,{size:`large`,block:!0,onClick:async()=>{if(J(),R.current){try{await Y5(R.current)}catch{}R.current=null}localStorage.removeItem(V),D(!1),k(null),u(null)},style:{borderRadius:10},children:`取消支付`})})]})}),(0,$.jsx)(L7,{})]})},H7=`http://localhost:8000/api`,U7=()=>{let{checkAuth:e}=P7(),[t,n]=(0,x.useState)(!1),[r,i]=(0,x.useState)(`password`),[a,o]=(0,x.useState)(`password`),[s,c]=(0,x.useState)(0),[l,u]=(0,x.useState)(0),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(!1),[h,g]=(0,x.useState)(!1),[_,v]=(0,x.useState)(!1),[y,b]=(0,x.useState)(0),[S,C]=(0,x.useState)(!1),[w,T]=(0,x.useState)(!1),E=(()=>{try{let e=localStorage.getItem(`siteInfo`);if(e){let t=JSON.parse(e);return{siteName:t.siteName||`VideoGen.AI`,siteLogo:t.siteLogo||``}}}catch{}return{siteName:`VideoGen.AI`,siteLogo:``}})(),[D,O]=(0,x.useState)(E.siteName),[k,A]=(0,x.useState)(E.siteLogo),[j,M]=(0,x.useState)(``),[N,P]=(0,x.useState)(``),F=Ge(),{login:I}=P7(),[L]=DW.useForm(),[R]=DW.useForm(),[z]=DW.useForm();(0,x.useEffect)(()=>{F5().then(e=>{O(e.siteName),A(e.siteLogo),M(e.userAgreementUrl),P(e.privacyPolicyUrl)}).catch(()=>{})},[]);let B=()=>d?!0:(Aq.warning(`请先阅读并同意用户协议和隐私政策`),!1),V=async()=>{if(B())try{let t=await L.validateFields();await I(t.phone,t.password,void 0,t.rememberMe),Aq.success(`登录成功,欢迎回来`),await e(),F(`/projects`)}catch(e){let t=e?.response?.data?.detail||e?.response?.data?.message||e?.message||`登录失败`;Aq.error(t)}},H=async()=>{if(B())try{let t=R.getFieldsValue();if(!t.phone||!t.code){Aq.error(`请填写手机号和验证码`);return}n(!0),await y5(t.phone,t.code),Aq.success(`登录成功,欢迎回来`),await e(),F(`/projects`)}catch(e){let t=e?.response?.data?.detail||e?.response?.data?.message||e?.message||`登录失败`;Aq.error(t)}finally{n(!1)}},U=async()=>{if(B())try{let t=await z.validateFields();n(!0),await b5(t.phone,t.regCode,t.password),Aq.success(`注册成功`),await e(),F(`/projects`)}catch(e){let t=e?.response?.data?.detail||e?.response?.data?.message||e?.message||`注册失败`;Aq.error(t)}finally{n(!1)}},W=(e,t)=>{e(60);let n=setInterval(()=>{e(e=>e<=1?(clearInterval(n),m(!1),t?C(!0):T(!0),0):e-1)},1e3)};(0,x.useEffect)(()=>{s===0&&r===`phone`&&v(!1)},[s,r]);let G=async(e,t)=>{try{if(!e||!/^1\d{10}$/.test(e)){Aq.error(`请输入正确的手机号`);return}if(t){m(!0),g(!1);return}if(!_){m(!0),v(!1);return}let n=``;n=r===`register`?`register`:`login`,await R5(e,n),W(t?u:c),Aq.success(`验证码已发送`)}catch(e){let t=e?.response?.data?.detail||e?.response?.data?.message||e?.message||`登录失败`;Aq.error(t),r===`register`?(g(!1),u(0)):(v(!1),c(0)),b(e=>e+1)}},K=async(e=!1)=>{let t=r===`register`?z.getFieldValue(`phone`):R.getFieldValue(`phone`);try{let e=``;e=r===`register`?`register`:`login`,await R5(t,e),r===`register`?(g(!0),W(u,!0)):(v(!0),W(c,!1)),Aq.success(`验证码已发送`)}catch(e){let t=e?.response?.data?.detail||e?.response?.data?.message||e?.message||`登录失败`;Aq.error(t),r===`register`?(g(!1),u(0),C(!0)):(v(!1),c(0),T(!0)),b(e=>e+1)}},ee=e=>{o(e),i(e),c(0),u(0),v(!1),g(!1),m(!1),C(!1),T(!1),b(e=>e+1),e===`password`?L.resetFields():R.resetFields()},te=[{icon:(0,$.jsx)(B2,{}),title:`AI 智能优化`,desc:`输入原始提示词,AI 自动为您生成专业级视频、图片描述`},{icon:(0,$.jsx)(p6,{}),title:`一键生成视频、图片`,desc:`支持多种规格生成视频、图片`},{icon:(0,$.jsx)(p3,{}),title:`项目维度管理`,desc:`按项目行业分类视频、图片,支持多种行业`}],q={background:`#fff`,border:`1.5px solid #e2e8f0`,color:`#1e293b`,height:48,borderRadius:10,fontSize:14},J=e=>{e&&window.open(`${H7.replace(/\/api$/,``)}${e}`,`_blank`)};return(0,$.jsxs)(`div`,{style:{minHeight:`100vh`,display:`flex`,backgroundImage:`url(/backimage.png)`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,backgroundAttachment:`fixed`,position:`relative`,overflow:`hidden`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,background:`linear-gradient(135deg, rgba(240,244,255,0.9) 0%, rgba(232,236,248,0.85) 40%, rgba(240,240,255,0.9) 70%, rgba(248,249,255,0.95) 100%)`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,width:500,height:500,borderRadius:`50%`,background:`radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%)`,top:-150,right:-100,filter:`blur(40px)`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,width:400,height:400,borderRadius:`50%`,background:`radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%)`,bottom:-100,left:-80,filter:`blur(50px)`}}),(0,$.jsx)(`div`,{style:{flex:1,display:`flex`,flexDirection:`column`,justifyContent:`center`,padding:`0 80px`,zIndex:1},children:(0,$.jsxs)(NU,{direction:`vertical`,size:36,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:14,marginBottom:20},children:[k?(0,$.jsx)(`img`,{src:k,alt:`logo`,style:{width:52,height:52,borderRadius:14,objectFit:`contain`}}):(0,$.jsx)(`div`,{style:{width:52,height:52,borderRadius:14,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 8px 24px rgba(99,102,241,0.25)`},children:(0,$.jsx)(y8,{style:{fontSize:26,color:`#fff`}})}),(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:28,fontWeight:800,letterSpacing:-.5},children:D})]}),(0,$.jsx)(`div`,{className:`shiny-text-container`,children:(0,$.jsx)(`span`,{className:`shiny-text`,children:`AI赋能创意,素材触手可及`})}),(0,$.jsxs)(S1.Paragraph,{style:{color:`#64748b`,fontSize:17,maxWidth:480,lineHeight:1.8},children:[`专业的 AI 素材生成平台,通过智能提示词优化,`,(0,$.jsx)(`br`,{}),`让您的创意快速转化为精美视频、图片`]})]}),(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:20},children:te.map((e,t)=>(0,$.jsxs)(`div`,{className:`electric-border-card`,style:{position:`relative`,display:`flex`,gap:16,alignItems:`flex-start`,padding:`18px 22px`,borderRadius:14,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(12px)`,overflow:`hidden`},children:[(0,$.jsx)(`div`,{className:`electric-border`}),(0,$.jsx)(`div`,{className:`electric-border-inner`}),(0,$.jsx)(`div`,{style:{position:`relative`,zIndex:1},children:(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:12,flexShrink:0,background:`linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15))`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#6366f1`,fontSize:20},children:e.icon})}),(0,$.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,$.jsx)(S1.Text,{style:{color:`#1e293b`,fontSize:15,fontWeight:600,display:`block`,marginBottom:4},children:e.title}),(0,$.jsx)(S1.Text,{style:{color:`#64748b`,fontSize:13,lineHeight:1.6},children:e.desc})]})]},t))})]})}),(0,$.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,zIndex:1,padding:`40px 24px`},children:(0,$.jsxs)(Jz,{style:{width:440,maxWidth:`100%`,borderRadius:20,boxShadow:`0 20px 60px rgba(0,0,0,0.08)`,border:`1px solid #e2e8f0`,background:`#fff`},styles:{body:{padding:`36px 28px`}},children:[(0,$.jsx)(S1.Title,{level:3,style:{textAlign:`center`,marginBottom:6,color:`#1e293b`,fontWeight:700},children:r===`register`?`创建账号`:`欢迎回来`}),(0,$.jsx)(S1.Text,{style:{display:`block`,textAlign:`center`,marginBottom:28,color:`#94a3b8`,fontSize:14},children:r===`register`?`注册新账号,开始创作视频`:`登录您的账号,开始创作视频`}),r!==`register`&&(0,$.jsx)(`div`,{style:{display:`flex`,gap:0,marginBottom:24,background:`#f1f5f9`,borderRadius:10,padding:4,border:`1px solid #e2e8f0`},children:[`password`,`phone`].map(e=>(0,$.jsx)(`div`,{onClick:()=>ee(e),style:{flex:1,textAlign:`center`,padding:`10px 0`,borderRadius:8,cursor:`pointer`,fontSize:14,fontWeight:a===e?600:400,color:a===e?`#6366f1`:`#64748b`,background:a===e?`#fff`:`transparent`,border:a===e?`1px solid rgba(99,102,241,0.2)`:`1px solid transparent`,boxShadow:a===e?`0 2px 8px rgba(99,102,241,0.1)`:`none`,transition:`all 0.3s ease`},children:e===`password`?`密码登录`:`验证码登录`},e))}),r===`password`&&(0,$.jsxs)(DW,{form:L,size:`large`,layout:`vertical`,onFinish:V,children:[(0,$.jsx)(DW.Item,{name:`phone`,rules:[{required:!0,message:`请输入手机号`},{pattern:/^1\d{10}$/,message:`请输入正确的手机号`}],children:(0,$.jsx)(cK,{prefix:(0,$.jsx)(U3,{style:{color:`#94a3b8`,marginRight:8}}),placeholder:`请输入手机号`,style:q})}),(0,$.jsx)(DW.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`}],children:(0,$.jsx)(cK.Password,{prefix:(0,$.jsx)(j3,{style:{color:`#94a3b8`,marginRight:8}}),placeholder:`请输入密码`,style:q})}),(0,$.jsx)(DW.Item,{name:`rememberMe`,valuePropName:`checked`,style:{marginBottom:12},children:(0,$.jsx)(TV,{children:`记住我的登录状态`})}),(0,$.jsx)(DW.Item,{style:{marginBottom:12},children:(0,$.jsx)(kD,{type:`primary`,htmlType:`submit`,loading:t,block:!0,style:{height:48,borderRadius:10,fontSize:16,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,boxShadow:`0 8px 24px rgba(99,102,241,0.25)`},children:`登 录`})})]}),r===`phone`&&(0,$.jsxs)(DW,{form:R,size:`large`,layout:`vertical`,children:[(0,$.jsx)(DW.Item,{name:`phone`,rules:[{required:!0,message:`请输入手机号`},{pattern:/^1\d{10}$/,message:`请输入正确的手机号`}],children:(0,$.jsx)(cK,{prefix:(0,$.jsx)(U3,{style:{color:`#94a3b8`,marginRight:8}}),placeholder:`请输入手机号`,maxLength:11,style:q})}),(0,$.jsx)(DW.Item,{name:`code`,rules:[{required:!0,message:`请输入验证码`}],children:(0,$.jsxs)(NU.Compact,{style:{width:`100%`},children:[(0,$.jsx)(cK,{prefix:(0,$.jsx)(j6,{style:{color:`#94a3b8`,marginRight:8}}),placeholder:`请输入验证码`,maxLength:6,disabled:!_,style:{...q,borderRadius:`10px 0 0 10px`,flex:1}}),(0,$.jsx)(kD,{disabled:s>0,onClick:()=>{w?(v(!1),m(!0),b(e=>e+1)):G(R.getFieldValue(`phone`))},style:{height:48,borderRadius:`0 10px 10px 0`,background:s>0||_?`#f1f5f9`:`rgba(99,102,241,0.1)`,border:`1.5px solid #e2e8f0`,borderLeft:`none`,color:s>0?`#94a3b8`:`#6366f1`,fontWeight:600,minWidth:100},children:s>0?`${s}s`:w?`重新发送`:`获取验证码`})]})}),p&&(0,$.jsx)(DW.Item,{style:{marginBottom:12},children:(0,$.jsx)(W7,{onSuccess:K,isVerified:_})},y),(0,$.jsx)(DW.Item,{style:{marginBottom:12},children:(0,$.jsx)(kD,{type:`primary`,onClick:H,loading:t,block:!0,style:{height:48,borderRadius:10,fontSize:16,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,boxShadow:`0 8px 24px rgba(99,102,241,0.25)`},children:`登 录`})})]}),r===`register`&&(0,$.jsxs)(DW,{form:z,size:`large`,layout:`vertical`,children:[(0,$.jsx)(DW.Item,{name:`phone`,rules:[{required:!0,message:`请输入手机号`},{pattern:/^1\d{10}$/,message:`请输入正确的手机号`}],children:(0,$.jsx)(cK,{prefix:(0,$.jsx)(U3,{style:{color:`#94a3b8`,marginRight:8}}),placeholder:`请输入手机号`,maxLength:11,style:q})}),(0,$.jsx)(DW.Item,{name:`regCode`,rules:[{required:!0,message:`请输入验证码`}],children:(0,$.jsxs)(NU.Compact,{style:{width:`100%`},children:[(0,$.jsx)(cK,{prefix:(0,$.jsx)(j6,{style:{color:`#94a3b8`,marginRight:8}}),placeholder:`请输入验证码`,maxLength:6,disabled:!h,style:{...q,borderRadius:`10px 0 0 10px`,flex:1}}),(0,$.jsx)(kD,{disabled:l>0,onClick:()=>{S?(g(!1),m(!0),b(e=>e+1)):G(z.getFieldValue(`phone`),!0)},style:{height:48,borderRadius:`0 10px 10px 0`,background:l>0||h?`#f1f5f9`:`rgba(99,102,241,0.1)`,border:`1.5px solid #e2e8f0`,borderLeft:`none`,color:l>0?`#94a3b8`:`#6366f1`,fontWeight:600,minWidth:100},children:l>0?`${l}s`:S?`重新发送`:`获取验证码`})]})}),p&&(0,$.jsx)(DW.Item,{style:{marginBottom:12},children:(0,$.jsx)(W7,{onSuccess:K,isVerified:h})},y),(0,$.jsx)(DW.Item,{name:`password`,rules:[{required:!0,message:`请设置密码`},{min:6,message:`密码至少6位`}],children:(0,$.jsx)(cK.Password,{prefix:(0,$.jsx)(j3,{style:{color:`#94a3b8`,marginRight:8}}),placeholder:`请设置密码(至少6位)`,style:q})}),(0,$.jsx)(DW.Item,{style:{marginBottom:12},children:(0,$.jsx)(kD,{type:`primary`,onClick:U,loading:t,block:!0,style:{height:48,borderRadius:10,fontSize:16,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,boxShadow:`0 8px 24px rgba(99,102,241,0.25)`},children:`注 册`})})]}),(0,$.jsx)(`div`,{style:{marginBottom:16},children:(0,$.jsx)(TV,{checked:d,onChange:e=>f(e.target.checked),children:(0,$.jsxs)(`span`,{style:{fontSize:13,color:`#64748b`},children:[`我已阅读并同意`,(0,$.jsx)(`span`,{onClick:e=>{e.stopPropagation(),J(j)},style:{color:`#6366f1`,cursor:`pointer`},children:`《用户协议》`}),`和`,(0,$.jsx)(`span`,{onClick:e=>{e.stopPropagation(),J(N)},style:{color:`#6366f1`,cursor:`pointer`},children:`《隐私政策》`})]})})}),(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:r===`register`?(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#6366f1`,cursor:`pointer`},onClick:()=>{i(`password`),o(`password`),C(!1),T(!1),g(!1),m(!1),b(e=>e+1),z.resetFields()},children:`已有账号?去登录`}):(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#6366f1`,cursor:`pointer`},onClick:()=>{i(`register`),C(!1),T(!1),g(!1),m(!1),b(e=>e+1)},children:`没有账号?立即注册`})})]})})]})},W7=({onSuccess:e,isVerified:t})=>{let n=x.useRef(null),r=x.useRef(null),i=x.useRef(null),a=x.useRef(0),o=x.useRef(!1),[s,c]=x.useState(360),l=s-50;x.useEffect(()=>{let e=()=>{if(n.current){let e=n.current.offsetWidth;e>0&&c(e)}};e();let t=new ResizeObserver(e);return n.current&&t.observe(n.current),window.addEventListener(`resize`,e),()=>{t.disconnect(),window.removeEventListener(`resize`,e)}},[]);let u=n=>{if(o.current||t)return;let c=Math.max(0,Math.min(n,l));a.current=c,r.current&&(r.current.style.left=`${c}px`),i.current&&(i.current.style.width=`${c+50}px`),c>=l-5&&(o.current=!0,r.current&&(r.current.style.background=`#22c55e`,r.current.innerHTML=`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#fff" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>`),i.current&&(i.current.style.width=`${s}px`,i.current.style.background=`#dcfce7`),e())};return(0,$.jsxs)(`div`,{ref:n,onMouseDown:e=>{if(e.preventDefault(),o.current||t)return;let s=n.current;if(!s)return;let c=s.getBoundingClientRect(),d=e=>{u(e.clientX-c.left-50/2)},f=()=>{document.removeEventListener(`mousemove`,d),document.removeEventListener(`mouseup`,f),!o.current&&a.current<l-5&&(a.current=0,r.current&&(r.current.style.left=`0px`),i.current&&(i.current.style.width=`50px`))};document.addEventListener(`mousemove`,d),document.addEventListener(`mouseup`,f)},style:{width:`100%`,height:50,background:`#ffffff`,borderRadius:25,position:`relative`,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`inset 0 2px 6px rgba(148, 163, 184, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04)`,cursor:t?`default`:`pointer`,userSelect:`none`,touchAction:`none`},children:[(0,$.jsx)(`div`,{ref:i,style:{position:`absolute`,left:-2,top:0,bottom:0,width:t?s+4:50,background:t?`linear-gradient(90deg, #dcfce7 0%, #bbf7d0 100%)`:`linear-gradient(90deg, rgba(224, 231, 255, 0.6) 0%, rgba(199, 210, 254, 0.8) 100%)`,borderRadius:t?0:`0 25px 25px 0`,boxShadow:t?`none`:`4px 0 12px rgba(99, 102, 241, 0.2), 2px 0 4px rgba(99, 102, 241, 0.1)`,transition:o.current?`all 0.3s ease`:`none`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,left:0,right:0,top:0,bottom:0,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:14,fontWeight:500,color:t?`#16a34a`:`#64748b`,zIndex:1,pointerEvents:`none`,letterSpacing:.5},children:t?(0,$.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,$.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),`验证成功`]}):`滑动发送`}),(0,$.jsx)(`div`,{ref:r,style:{position:`absolute`,left:t?l:0,top:5,width:40,height:40,background:t?`linear-gradient(135deg, #22c55e 0%, #16a34a 100%)`:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:t?`0 4px 12px rgba(34, 197, 94, 0.4), 0 0 0 4px rgba(34, 197, 94, 0.1)`:`0 4px 12px rgba(99, 102, 241, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.8)`,cursor:t?`default`:`grab`,transition:o.current?`all 0.3s ease`:`none`,userSelect:`none`,zIndex:2},children:t?(0,$.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#fff`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,$.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}):(0,$.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#fff`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,$.jsx)(`polyline`,{points:`9 18 15 12 9 6`})})})]})},G7=()=>({page:1,pageSize:10,total:0,items:[]}),K7=t5((e,t)=>({projects:[],records:G7(),loading:!1,fetchProjects:async()=>{e({loading:!0});try{e({projects:await w5(),loading:!1})}catch{e({loading:!1})}},createProject:async(n,r)=>{let i=await T5(n,r);return e({projects:[i,...t().projects]}),i},deleteProject:async n=>{await E5(n),e({projects:t().projects.filter(e=>e.id!==n)})},fetchRecords:async(t={})=>{e({loading:!0});try{e({records:await D5(t),loading:!1})}catch{e({loading:!1})}},optimizePrompt:async(n,r)=>{let i=await O5(n,r);try{await P7.getState().checkAuth()}catch{}let a=t().records;return e({records:{...a,total:a.total+1,items:[i.record,...a.items]}}),i},generateVideo:async(n,r)=>{let i=await N5(n,r);try{await P7.getState().checkAuth()}catch{}let a=t().records;return e({records:{...a,items:a.items.map(e=>e.id===n?i:e)}}),i},updateRecordReferences:(n,r)=>{let i=t().records;e({records:{...i,items:i.items.map(e=>e.id===n?{...e,references:r}:e)}})}}));function q7(e){if(!e)return`-`;let t=e.trim();t.includes(`T`)||(t=t.replace(` `,`T`));let n=t.indexOf(`.`);return n>0&&(t=t.slice(0,n)),t=t.replace(/[+-]\d{2}:?\d{0,2}$/,``).replace(/Z$/,``),t.replace(`T`,` `).slice(0,16)}var J7=[`#f97316`,`#3b82f6`,`#8b5cf6`,`#10b981`,`#eab308`,`#6366f1`,`#ef4444`,`#06b6d4`,`#64748b`,`#78716c`],Y7={ShoppingCartOutlined:(0,$.jsx)(U6,{}),BookOutlined:(0,$.jsx)(P2,{}),HomeOutlined:(0,$.jsx)(g3,{}),FireOutlined:(0,$.jsx)(Y4,{}),RocketOutlined:(0,$.jsx)(O6,{}),SkinOutlined:(0,$.jsx)(Q6,{}),CompassOutlined:(0,$.jsx)(S4,{}),HeartOutlined:(0,$.jsx)(s3,{}),CarOutlined:(0,$.jsx)(Y2,{}),CameraOutlined:(0,$.jsx)(K2,{}),CloudOutlined:(0,$.jsx)(s4,{}),StarOutlined:(0,$.jsx)(u8,{}),TrophyOutlined:(0,$.jsx)(T8,{}),ThunderboltOutlined:(0,$.jsx)(y8,{}),BulbOutlined:(0,$.jsx)(B2,{}),CoffeeOutlined:(0,$.jsx)(y4,{}),CrownOutlined:(0,$.jsx)(O4,{}),DashboardOutlined:(0,$.jsx)(j4,{}),FlagOutlined:(0,$.jsx)(Q4,{}),GlobalOutlined:(0,$.jsx)(i3,{}),GiftOutlined:(0,$.jsx)(t3,{}),LaptopOutlined:(0,$.jsx)(S3,{}),MobileOutlined:(0,$.jsx)(U3,{}),MonitorOutlined:(0,$.jsx)(K3,{}),PayCircleOutlined:(0,$.jsx)(Q3,{}),PictureOutlined:(0,$.jsx)(i6,{}),PlayCircleOutlined:(0,$.jsx)(p6,{}),SafetyOutlined:(0,$.jsx)(j6,{}),ShoppingOutlined:(0,$.jsx)(K6,{}),SmileOutlined:(0,$.jsx)(t8,{}),SoundOutlined:(0,$.jsx)(s8,{}),TagOutlined:(0,$.jsx)(p8,{}),TeamOutlined:(0,$.jsx)(g8,{}),ToolOutlined:(0,$.jsx)(S8,{}),TruckOutlined:(0,$.jsx)(O8,{}),VideoCameraOutlined:(0,$.jsx)(L8,{}),WalletOutlined:(0,$.jsx)(B8,{}),BankOutlined:(0,$.jsx)(T2,{}),BuildOutlined:(0,$.jsx)(L2,{}),ExperimentOutlined:(0,$.jsx)(B4,{}),HighlightOutlined:(0,$.jsx)(u3,{}),IdcardOutlined:(0,$.jsx)(y3,{}),MedicineBoxOutlined:(0,$.jsx)(B3,{}),ReadOutlined:(0,$.jsx)(y6,{}),RestOutlined:(0,$.jsx)(S6,{}),SketchOutlined:(0,$.jsx)(Y6,{}),SolutionOutlined:(0,$.jsx)(i8,{})},X7=()=>{let[e,t]=(0,x.useState)(!1),[n]=DW.useForm(),r=Ge(),{projects:i,fetchProjects:a,createProject:o,deleteProject:s}=K7(),[c,l]=(0,x.useState)([]);(0,x.useEffect)(()=>{a(),H5().then(l).catch(()=>{})},[]);let u=Object.fromEntries(c.map((e,t)=>[e.key,{label:e.label,color:J7[t%J7.length],icon:e.icon||`AppstoreOutlined`}]));return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{className:`animate-fadeInUp`,style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:24,padding:`22px 24px`,borderRadius:16,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,position:`relative`,overflow:`hidden`,flexWrap:`wrap`,gap:12},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,right:-20,top:-20,width:200,height:200,borderRadius:`50%`,background:`rgba(255,255,255,0.08)`}}),(0,$.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,$.jsx)(S1.Title,{level:3,style:{margin:`0 0 4px`,color:`#fff`,fontWeight:700},children:`我的项目`}),(0,$.jsxs)(S1.Text,{style:{color:`rgba(255,255,255,0.7)`,fontSize:14},children:[`共 `,i.length,` 个项目 · 按行业分类管理`]})]}),(0,$.jsx)(kD,{icon:(0,$.jsx)(IR,{}),onClick:()=>t(!0),size:`large`,style:{background:`rgba(255,255,255,0.15)`,border:`1px solid rgba(255,255,255,0.3)`,color:`#fff`,fontWeight:600,backdropFilter:`blur(10px)`,borderRadius:10,height:42},children:`新建项目`})]}),i.length===0?(0,$.jsx)(WC,{image:WC.PRESENTED_IMAGE_SIMPLE,description:`还没有项目,创建您的第一个视频项目`,style:{padding:`60px 0`},children:(0,$.jsx)(kD,{type:`primary`,icon:(0,$.jsx)(IR,{}),onClick:()=>t(!0),size:`large`,children:`创建第一个项目`})}):(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:12},className:`stagger-children`,children:i.map((e,t)=>(0,$.jsxs)(`div`,{className:`project-card project-item animate-slideInCard`,onClick:()=>r(`/projects/${e.id}/generate`),style:{display:`flex`,alignItems:`center`,padding:`18px 22px`,borderRadius:16,background:`#fff`,border:`1px solid #f0f0f5`,cursor:`pointer`,animationDelay:`${t*.06}s`},children:[(0,$.jsx)(`div`,{style:{width:50,height:50,borderRadius:14,flexShrink:0,background:`${u[e.industry]?.color||`#64748b`}12`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:24,marginRight:16,color:u[e.industry]?.color||`#64748b`},children:Y7[u[e.industry]?.icon]||(0,$.jsx)(s2,{})}),(0,$.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:4,flexWrap:`wrap`},children:[(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:15,color:`#1a1a2e`},children:e.name}),(0,$.jsx)(x$,{color:u[e.industry]?.color||`#64748b`,style:{borderRadius:6,margin:0},children:u[e.industry]?.label||e.industry})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:4},children:[(0,$.jsx)(GH,{style:{fontSize:12,color:`#94a3b8`}}),(0,$.jsxs)(`span`,{className:`date-display`,translate:`no`,style:{fontSize:12,color:`#94a3b8`},children:[`创建于 `,q7(e.createdAt)]})]})]}),(0,$.jsxs)(`div`,{className:`project-actions`,style:{display:`flex`,alignItems:`center`,gap:8,marginLeft:16},children:[(0,$.jsx)(kD,{type:`primary`,icon:(0,$.jsx)(p6,{}),onClick:t=>{t.stopPropagation(),r(`/projects/${e.id}/generate`)},style:{background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,border:`none`,borderRadius:10,fontWeight:600,height:36,boxShadow:`0 4px 12px rgba(99,102,241,0.25)`},children:`生成`}),(0,$.jsx)(Lq,{title:`确定删除该项目?`,description:`项目下的生成记录将一并删除`,onConfirm:async t=>{t?.stopPropagation(),await s(e.id),Aq.success(`项目已删除`)},onCancel:e=>e?.stopPropagation(),children:(0,$.jsx)(kD,{danger:!0,icon:(0,$.jsx)(w$,{}),onClick:e=>e.stopPropagation(),style:{borderRadius:10,height:36,background:`rgba(239,68,68,0.06)`,border:`1px solid rgba(239,68,68,0.15)`,color:`#ef4444`}})}),(0,$.jsx)(Bg,{className:`mobile-hide`,style:{color:`#cbd5e1`,fontSize:12}})]})]},e.id))}),(0,$.jsx)(Nq,{title:(0,$.jsxs)(NU,{children:[(0,$.jsx)(s2,{}),`新建项目`]}),open:e,onOk:async()=>{try{let e=await n.validateFields(),i=await o(e.name,e.industry);Aq.success(`项目创建成功`),t(!1),n.resetFields(),r(`/projects/${i.id}/generate`)}catch{}},onCancel:()=>{t(!1),n.resetFields()},okText:`创建`,cancelText:`取消`,width:480,children:(0,$.jsxs)(DW,{form:n,layout:`vertical`,style:{marginTop:20},children:[(0,$.jsx)(DW.Item,{name:`name`,label:`项目名称`,rules:[{required:!0,message:`请输入项目名称`}],children:(0,$.jsx)(cK,{placeholder:`例如:618电商大促宣传片`,prefix:(0,$.jsx)(_Z,{}),size:`large`})}),(0,$.jsx)(DW.Item,{name:`industry`,label:`所属行业`,rules:[{required:!0,message:`请选择行业`}],children:(0,$.jsx)(bw,{placeholder:`选择项目所属行业`,size:`large`,children:c.map((e,t)=>(0,$.jsx)(bw.Option,{value:e.key,children:(0,$.jsxs)(NU,{children:[Y7[e.icon]||(0,$.jsx)(s2,{}),` `,e.label]})},e.key))})})]})})]})};function Z7(){if(typeof crypto<`u`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID();if(typeof crypto<`u`&&typeof crypto.getRandomValues==`function`){let e=crypto.getRandomValues(new Uint8Array(16));e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}return`${Date.now().toString(16).padStart(12,`0`)}-${Math.random().toString(16).slice(2,10).padStart(8,`0`)}-4xxx-yxxx-${Math.random().toString(16).slice(2,12)}`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}var Q7=({src:e,width:t=48,height:n=48})=>{let[r,i]=(0,x.useState)(null),[a,o]=(0,x.useState)(null);return(0,x.useEffect)(()=>{let r=document.createElement(`video`);r.muted=!0,r.preload=`metadata`,r.crossOrigin=`anonymous`;let a=()=>{o(r.duration),r.currentTime=Math.min(1,r.duration*.1)},s=()=>{try{let e=document.createElement(`canvas`);e.width=t*2,e.height=n*2;let a=e.getContext(`2d`);a&&(a.drawImage(r,0,0,e.width,e.height),i(e.toDataURL(`image/jpeg`,.7)))}catch{}};return r.addEventListener(`loadedmetadata`,a),r.addEventListener(`seeked`,s),r.src=e,()=>{r.removeEventListener(`loadedmetadata`,a),r.removeEventListener(`seeked`,s)}},[e,t,n]),(0,$.jsxs)(`div`,{style:{width:`100%`,height:`100%`,position:`relative`,background:`#1a1a2e`},children:[r?(0,$.jsx)(`img`,{src:r,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(p6,{style:{color:`#fff`,fontSize:18}})}),a!=null&&(0,$.jsx)(`span`,{style:{position:`absolute`,bottom:2,right:2,fontSize:9,color:`#fff`,background:`rgba(0,0,0,0.6)`,borderRadius:4,padding:`1px 4px`,lineHeight:1.3},children:(e=>`${Math.round(e)}s`)(a)})]})},$7=()=>{let{projectId:e}=Ye(),t=Ge(),[n]=DW.useForm(),{projects:r,records:i,fetchProjects:a,fetchRecords:o,optimizePrompt:s,generateVideo:c}=K7(),l=i.items,{user:u}=P7(),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(!1),[h,g]=(0,x.useState)(null),[_,v]=(0,x.useState)(``),[y,b]=(0,x.useState)(!1),[S,C]=(0,x.useState)({}),[w,T]=(0,x.useState)({}),[E,D]=(0,x.useState)({}),[O,k]=(0,x.useState)(null),[A,j]=(0,x.useState)(null),[M,N]=(0,x.useState)([]),[P,F]=(0,x.useState)(!1),[I,L]=(0,x.useState)(``),[R,z]=(0,x.useState)(!1),[B,V]=(0,x.useState)(``),H=(0,x.useRef)(null),[U,W]=(0,x.useState)({}),[G,K]=(0,x.useState)({}),[ee,te]=(0,x.useState)({}),[q,J]=(0,x.useState)(null),[Y,ne]=(0,x.useState)({}),[X,re]=(0,x.useState)(null),[ie,ae]=(0,x.useState)(5),[oe,se]=(0,x.useState)(`16:9`),[ce,le]=(0,x.useState)(`720p`),[ue,de]=(0,x.useState)(null),[fe,pe]=(0,x.useState)({ratios:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:[`720p`,`1080p`],durations:[5,8,10,12,15]}),[me,he]=(0,x.useState)(0),[ge,_e]=(0,x.useState)(0),[ve,ye]=(0,x.useState)(`image`),[be,xe]=(0,x.useState)(`1:1`),[Se,Ce]=(0,x.useState)(`2K`),[we,Te]=(0,x.useState)(2048),[Ee,De]=(0,x.useState)(2048),[Oe,ke]=(0,x.useState)(!1),[Ae,je]=(0,x.useState)([]),[Me,Ne]=(0,x.useState)([]);(0,x.useEffect)(()=>{if(X5().then(e=>{je(e.video),Ne(e.image)}),!Oe)return;let e=e=>{let t=e.target;!t.closest(`.image-settings-popover`)&&!t.closest(`.image-settings-trigger`)&&ke(!1)};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[Oe]);let Pe=(e,t)=>{for(let n=0;n<Ae.length;n++){let r=Ae[n];if(r.resolution===t){let t=r;return Math.round((t.baseCredits+t.perSecondCredits*e)*t.ratio)}}},Fe=e=>{let t=e===`2k`?`2048`:e===`4k`?`4096`:e;for(let e=0;e<Me.length;e++){let n=Me[e];if(n.resolution===t)return n.baseCredits}return 0},Ie=e=>{Ke(e)},Le=e=>{Je(parseInt(e))},[Re,ze]=(0,x.useState)([]),[Be,Ve]=(0,x.useState)([]),[He,Ue]=(0,x.useState)([]),[We,Ke]=(0,x.useState)(0),[qe,Je]=(0,x.useState)(0);(0,x.useEffect)(()=>{He[qe]&&He[qe][We]!==void 0&&(Te(He[qe][We].substring(0,4)),De(He[qe][We].substring(5)))},[We]),(0,x.useEffect)(()=>{He[qe]&&He[qe][We]!==void 0&&(Te(He[qe][We].substring(0,4)),De(He[qe][We].substring(5)))},[qe]);let Xe=()=>{Te(Ee),De(we)},Ze=e=>{ye(e.target.value===`image`?`image`:`video`)};(0,x.useEffect)(()=>{H5().then(e=>{W(Object.fromEntries(e.map(e=>[e.key,e.label]))),K(Object.fromEntries(e.map(e=>[e.key,e.optionGroups||[]])))}).catch(()=>{}),L5().then(e=>{let t=e.items?.[0]?.supportedSizes||{},n=[],r=[],i=[];for(let e in t[`2K`])n.push(e),r.push(t[`2K`][e]);n.forEach((e,t)=>{ze(n=>[...n,{value:e,label:String(t)}])});for(let e in t[`4K`])i.push(t[`4K`][e]);Ue([r,i]);let a=[];for(let e in t)a.push(e);a.forEach((e,t)=>{Ve(n=>[...n,{value:e,label:String(t)}])})}).catch(()=>{}),I5().then(e=>{if(e.items?.length){let t=e.items[0];pe({ratios:t.supportedRatios?.length?t.supportedRatios:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:t.supportedResolutions?.length?t.supportedResolutions:[`720p`,`1080p`],durations:t.supportedDurations?.length?t.supportedDurations:[5,8,10,12,15]})}}).catch(()=>{})},[]),(0,x.useEffect)(()=>{a(),o({projectId:e,page:1,pageSize:100})},[e,a,o]);let Qe=(0,x.useRef)(!1);(0,x.useEffect)(()=>{Qe.current||l.length===0||(Qe.current=!0,console.log(`aaaa`,l),l.forEach(t=>{t.projectId===e&&t.status===`generating`&&(T(e=>({...e,[t.id]:`generating`})),Tt(t.id)),t.projectId===e&&t.status===`optimizing`&&ot(t.id)}))},[l,e]);let $e=(0,x.useRef)(new Set),et=(0,x.useRef)(null),tt=(0,x.useRef)(null),nt=e=>{$e.current.add(e),at()},rt=e=>{$e.current.delete(e),$e.current.size===0&&it()},it=()=>{et.current&&=(clearInterval(et.current),null),tt.current&&=(tt.current.abort(),null)},at=()=>{et.current||=setInterval(async()=>{try{tt.current&&tt.current.abort();let t=new AbortController;tt.current=t;let n=await D5({projectId:e,page:1,pageSize:100,signal:t.signal});tt.current=null;let r=Array.from($e.current),i=[];if(r.length>0){let e=K7.getState().records,t=e.items.map(e=>{if(r.includes(e.id)){let t=n.items.find(t=>t.id===e.id);if(t)return t.status!==`optimizing`&&i.push(e.id),t}return e});K7.setState({records:{...e,items:t}}),i.forEach(e=>{rt(e)})}}catch(e){e.name!==`AbortError`&&console.error(`Optimizing polling error:`,e)}},3e3)},ot=e=>{nt(e)},st=(0,x.useRef)(!1),ct=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(st.current||l.length===0)return;let t=localStorage.getItem(`pending_optimize`);if(t)try{let{key:n,projectId:r,prompt:i,duration:a,ts:o}=JSON.parse(t);if(Date.now()-o>300*1e3||r!==e){localStorage.removeItem(`pending_optimize`);return}if(ct.current===n)return;let s=l.find(e=>e.projectId===r&&e.originalPrompt===i&&e.duration===a&&e.status===`prompt_optimized`&&new Date(e.createdAt).getTime()>o-1e4);s?(st.current=!0,localStorage.removeItem(`pending_optimize`),g(s),v(s.optimizedPrompt||``),he(s.textCreditsCost),_e(s.textTokensUsed),m(!0),Aq.success({content:`优化请求已恢复,消耗 ${s.textCreditsCost} 积分`,key:`recovery`})):Date.now()-o>3e4&&localStorage.removeItem(`pending_optimize`)}catch{localStorage.removeItem(`pending_optimize`)}},[l,e]);let lt=r.find(t=>t.id===e),ut=l.filter(t=>t.projectId===e),dt=lt?.name??`项目`,ft=lt&&G[lt.industry]||[],pt=u?.credits??0,mt=e=>{let t=e===`2k`?`2048`:e===`4k`?`4096`:e;for(let e=0;e<Me.length;e++){let n=Me[e];if(n.resolution===t)return n.baseCredits}return 0},ht=ve===`image`?mt(Se):Pe(ie,ce),gt=pt>=ht,_t=async()=>{try{if(!e){Aq.error(`项目ID为空,请先选择项目`);return}let t=await n.validateFields();if(!t.prompt||!t.prompt.trim()){Aq.error(`请输入视频/图片描述`);return}f(!0);let r=Object.entries(ee).map(([e,t])=>`@${e}:${t}`),i=r.length>0?`${t.prompt}\n\n${r.join(`;`)}`:t.prompt,a=Z7();localStorage.setItem(`pending_optimize`,JSON.stringify({key:a,projectId:e,prompt:i,duration:ie,ts:Date.now()})),ct.current=a;let o=await s(e,{prompt:i,duration:ie,genType:ve,resolution:Se,references:M.length>0?M:void 0,idempotencyKey:a,image_size:Se,image_proportion:be,image_px:we+`x`+Ee});localStorage.removeItem(`pending_optimize`),ct.current=null,g(o.record),v(o.record.optimizedPrompt||``),he(o.textCreditsCost),_e(o.textTokensUsed),m(!0),Aq.success({content:`「${dt}」提示词优化完成,消耗 ${o.textCreditsCost} 积分`,key:`optimize`})}catch(e){console.error(`优化提示词失败:`,e);let t=e?.response?.data?.message||e?.message||`操作失败,请稍后重试`;Aq.error(t)}finally{f(!1),localStorage.removeItem(`pending_optimize`),ct.current=null}},vt=(0,x.useRef)(new Set),yt=(0,x.useRef)(null),bt=(0,x.useRef)(null),xt=e=>{vt.current.add(e),wt()},St=e=>{vt.current.delete(e),vt.current.size===0&&Ct()},Ct=()=>{yt.current&&=(clearInterval(yt.current),null),bt.current&&=(bt.current.abort(),null)},wt=()=>{yt.current||=setInterval(async()=>{try{bt.current&&bt.current.abort();let t=new AbortController;bt.current=t;let n=await D5({projectId:e,page:1,pageSize:100,signal:t.signal});bt.current=null;let r=Array.from(vt.current),i=[];if(r.length>0){let e=K7.getState().records,t=e.items.map(e=>{if(r.includes(e.id)){let t=n.items.find(t=>t.id===e.id);if(t)return t.status!==`generating`&&i.push(e.id),t}return e});K7.setState({records:{...e,items:t}}),i.forEach(e=>{let t=n.items.find(t=>t.id===e);St(e),t?.status===`completed`?(T(t=>({...t,[e]:`done`})),g(n=>n?.id===e?t:n),Aq.success({content:`「${dt}」视频生成完成!`,key:e,duration:5})):t?.status===`failed`&&(T(t=>({...t,[e]:`failed`})),g(n=>n?.id===e?t:n),Aq.error({content:`「${dt}」视频生成失败: ${t.errorMessage||`未知错误`}`,key:e,duration:5}))})}}catch(e){e.name!==`AbortError`&&console.error(`Global polling error:`,e)}},5e3)},Tt=e=>{xt(e)};(0,x.useEffect)(()=>()=>{Ct(),it()},[]);let Et=async e=>{if(!gt){Aq.error(`积分不足,请先充值`);return}C(t=>({...t,[e]:!0})),T(t=>({...t,[e]:`generating`})),Aq.loading({content:`「${dt}」正在提交视频生成...`,duration:0,key:e});try{(await c(e,{aspectRatio:oe,resolution:ce})).status===`failed`?(T(t=>({...t,[e]:`failed`})),Aq.error({content:`「${dt}」提交失败`,key:e,duration:3})):(Aq.success({content:`「${dt}」已提交,正在生成中...`,key:e,duration:3}),Tt(e))}catch(t){T(t=>({...t,[e]:`failed`}));let n=`提交失败`;t?.response?.data?.detail?n=t.response.data.detail:t?.data?.detail?n=t.data.detail:t?.detail?n=t.detail:t?.message&&(n=t.message),Aq.error({content:`${n}`,key:e,duration:3})}finally{C(t=>({...t,[e]:!1}))}},Dt=async e=>{let t=ut.find(t=>t.id===e);if(t){C(t=>({...t,[e]:!0})),T(t=>({...t,[e]:`generating`})),Aq.loading({content:`「${dt}」正在重新提交...`,duration:0,key:e});try{let n=E[e];n&&n!==t.optimizedPrompt&&await M5(e,n);let r=await c(e,{aspectRatio:t.aspectRatio||`16:9`,resolution:t.resolution||`720p`});console.log(`重新提交视频生成结果:`,r),r.status===`failed`?(T(t=>({...t,[e]:`failed`})),console.log(`12312`),Aq.error({content:`「${dt}」提交失败`,key:e,duration:3})):(Aq.success({content:`「${dt}」已提交,正在生成中...`,key:e,duration:3}),Tt(e))}catch(t){T(t=>({...t,[e]:`failed`})),console.log(`1231`,t);let n=`提交失败`;t?.response?.data?.detail?n=t.response.data.detail:t?.data?.detail?n=t.data.detail:t?.detail?n=t.detail:t?.message&&(n=t.message),Aq.error({content:`${n}`,key:e,duration:3})}finally{C(t=>({...t,[e]:!1}))}}},Ot=e=>{let t=w[e.id];return t===`generating`?`generating`:t===`done`?`completed`:t===`failed`?`failed`:e.status},kt={optimizing:{color:`processing`,text:`优化中`,icon:(0,$.jsx)(qm,{style:{animation:`spinSlow 1s linear infinite`}})},prompt_optimized:{color:`processing`,text:`待生成`,icon:(0,$.jsx)(JH,{})},generating:{color:`warning`,text:`生成中`,icon:(0,$.jsx)(qm,{style:{animation:`spinSlow 1s linear infinite`}})},completed:{color:`success`,text:`已完成`,icon:(0,$.jsx)(t4,{})},failed:{color:`error`,text:`失败`,icon:(0,$.jsx)(i4,{})}},At=({label:e,value:t,options:n,suffix:r,expanded:i,onToggle:a,onSelect:o,onClose:s})=>{let c=(0,x.useRef)(null),l=(0,x.useRef)(null),u=(0,x.useRef)(i),[d,f]=(0,x.useState)(null);return u.current=i,(0,x.useEffect)(()=>{if(i&&c.current){let e=c.current.getBoundingClientRect();f({bottom:window.innerHeight-e.top+4,left:e.left,width:Math.max(e.width,100)})}else f(null)},[i]),(0,x.useEffect)(()=>{if(!i)return;let e=e=>{c.current?.contains(e.target)||l.current?.contains(e.target)||u.current&&s()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[i,s]),(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{ref:c,onClick:a,translate:`no`,style:{display:`flex`,alignItems:`center`,gap:6,padding:`5px 12px`,borderRadius:8,cursor:`pointer`,userSelect:`none`,transition:`background 0.2s, border-color 0.2s`,background:i?`rgba(99,102,241,0.08)`:`#f8f9fc`,border:i?`1px solid #6366f1`:`1px solid #e2e8f0`,minWidth:70,whiteSpace:`nowrap`,flexShrink:0},children:[(0,$.jsxs)(`span`,{style:{fontSize:12,color:`#6366f1`,fontWeight:500,lineHeight:`18px`},children:[t,r]}),(0,$.jsx)(bQ,{style:{fontSize:9,color:`#94a3b8`,transition:`transform 0.2s`,transform:i?`rotate(180deg)`:`rotate(0deg)`}})]}),d&&(0,Ii.createPortal)((0,$.jsxs)(`div`,{ref:l,style:{position:`fixed`,bottom:d.bottom,left:d.left,minWidth:d.width,background:`#fff`,borderRadius:12,padding:6,zIndex:99999,boxShadow:`0 8px 30px rgba(0,0,0,0.12)`,border:`1px solid #e2e8f0`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:10,color:`#94a3b8`,display:`block`,padding:`2px 6px 4px`},children:e}),(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:2},children:n.map((e,n)=>{let r=t===e;return(0,$.jsx)(`div`,{onClick:()=>{o(e),s()},style:{padding:`6px 10px`,borderRadius:8,fontSize:13,cursor:`pointer`,transition:`all 0.15s`,background:r?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`transparent`,color:r?`#fff`:`#1a1a2e`,fontWeight:r?600:400},onMouseEnter:e=>{r||(e.currentTarget.style.background=`#f1f5f9`)},onMouseLeave:e=>{r||(e.currentTarget.style.background=`transparent`)},children:e},n)})})]}),document.body)]})},jt=({group:e,selected:t,expanded:n,onToggle:r,onSelect:i,onClose:a})=>{let o=(0,x.useRef)(null),s=(0,x.useRef)(null),c=(0,x.useRef)(n),[l,u]=(0,x.useState)(null);return c.current=n,(0,x.useEffect)(()=>{if(n&&o.current){let e=o.current.getBoundingClientRect();u({bottom:window.innerHeight-e.top+4,left:e.left})}else u(null)},[n]),(0,x.useEffect)(()=>{if(!n)return;let e=e=>{o.current?.contains(e.target)||s.current?.contains(e.target)||c.current&&a()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[n,a]),(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{ref:o,onClick:r,style:{display:`flex`,alignItems:`center`,gap:6,padding:`5px 12px`,borderRadius:8,cursor:`pointer`,userSelect:`none`,transition:`all 0.2s`,background:t?`rgba(99,102,241,0.08)`:`#f8f9fc`,border:n?`1px solid #6366f1`:`1px solid #e2e8f0`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:t?`#6366f1`:`#64748b`,fontWeight:t?600:400},children:t||e.name}),(0,$.jsx)(bQ,{style:{fontSize:9,color:t?`#6366f1`:`#94a3b8`,transition:`transform 0.2s`,transform:n?`rotate(180deg)`:`rotate(0deg)`}})]}),l&&(0,Ii.createPortal)((0,$.jsxs)(`div`,{ref:s,style:{position:`fixed`,bottom:l.bottom,left:l.left,background:`#fff`,borderRadius:12,padding:8,minWidth:160,zIndex:99999,boxShadow:`0 8px 30px rgba(0,0,0,0.12)`,border:`1px solid #e2e8f0`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:10,color:`#94a3b8`,display:`block`,padding:`2px 6px 4px`},children:e.name}),(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:2},children:e.options.map((e,n)=>{let r=t===e;return(0,$.jsx)(`div`,{onClick:()=>{i(e),a()},style:{padding:`6px 10px`,borderRadius:8,fontSize:13,cursor:`pointer`,transition:`all 0.15s`,background:r?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`transparent`,color:r?`#fff`:`#1a1a2e`,fontWeight:r?600:400},onMouseEnter:e=>{r||(e.currentTarget.style.background=`#f1f5f9`)},onMouseLeave:e=>{r||(e.currentTarget.style.background=`transparent`)},children:e},n)})})]}),document.body)]})};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{className:`gen-header animate-fadeInUp`,style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:24,padding:`20px 28px`,borderRadius:16,background:`linear-gradient(135deg, #1e1b4b 0%, #312e81 100%)`,position:`relative`,overflow:`hidden`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,right:-30,bottom:-30,width:160,height:160,borderRadius:`50%`,background:`rgba(255,255,255,0.05)`}}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:14,position:`relative`},children:[(0,$.jsx)(kD,{icon:(0,$.jsx)(p2,{}),onClick:()=>t(`/projects`),style:{background:`rgba(255,255,255,0.1)`,border:`1px solid rgba(255,255,255,0.2)`,color:`#fff`,borderRadius:10}}),(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(S1.Title,{level:4,style:{margin:0,color:`#fff`,fontWeight:700},children:dt}),lt&&(0,$.jsx)(x$,{style:{background:`rgba(255,255,255,0.12)`,border:`1px solid rgba(255,255,255,0.2)`,color:`rgba(255,255,255,0.8)`,borderRadius:6},children:U[lt.industry]||lt.industry})]}),(0,$.jsx)(S1.Text,{style:{color:`rgba(255,255,255,0.5)`,fontSize:13},children:`描述视频 → AI优化 → 生成视频`})]})]}),(0,$.jsxs)(x$,{style:{background:`rgba(255,255,255,0.1)`,border:`1px solid rgba(255,255,255,0.2)`,color:`#fff`,borderRadius:20,fontSize:13,padding:`4px 14px`},children:[`剩余 `,pt,` 积分`]})]}),!p&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`animate-fadeInUp`,style:{marginBottom:24,padding:`16px 20px`,borderRadius:16,background:`#fff`,border:`1px solid #f0f0f5`,boxShadow:`0 2px 12px rgba(0,0,0,0.03)`},children:(0,$.jsxs)(`div`,{style:{width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`flex-start`},children:[(0,$.jsxs)(`div`,{style:{marginRight:70,position:`relative`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:14,fontWeight:500,color:`#475569`,marginRight:16},children:`生成类型:`}),(0,$.jsxs)(GL.Group,{defaultValue:`image`,buttonStyle:`solid`,onChange:Ze,children:[(0,$.jsxs)(GL.Button,{value:`image`,style:{zIndex:0},children:[(0,$.jsx)(i6,{style:{marginRight:6,fontSize:14}}),` `,`图片`]}),(0,$.jsxs)(GL.Button,{value:`video`,children:[(0,$.jsx)(L8,{style:{marginRight:6,fontSize:14}}),` `,`视频`]})]})]}),ve===`video`&&[{icon:(0,$.jsx)(D$,{}),label:`描述视频+时长`,color:`#6366f1`},{icon:(0,$.jsx)(y8,{}),label:`AI智能优化`,color:`#8b5cf6`},{icon:(0,$.jsx)(O6,{}),label:`选择参数生成`,color:`#10b981`}].map((e,t)=>(0,$.jsxs)(x.Fragment,{children:[t>0&&(0,$.jsx)(`div`,{style:{width:40,height:1,background:`linear-gradient(90deg, #e2e8f0, #cbd5e1, #e2e8f0)`,margin:`0 12px`,flexShrink:0}}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:10,background:`${e.color}12`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(`span`,{style:{color:e.color,fontSize:15},children:e.icon})}),(0,$.jsx)(S1.Text,{style:{fontSize:13,fontWeight:500,color:`#1a1a2e`},children:e.label})]})]},t)),ve===`image`&&[{icon:(0,$.jsx)(D$,{}),label:`描述图片+尺寸`,color:`#6366f1`},{icon:(0,$.jsx)(y8,{}),label:`AI智能优化`,color:`#8b5cf6`},{icon:(0,$.jsx)(O6,{}),label:`图片生成`,color:`#10b981`}].map((e,t)=>(0,$.jsxs)(x.Fragment,{children:[t>0&&(0,$.jsx)(`div`,{style:{width:40,height:1,background:`linear-gradient(90deg, #e2e8f0, #cbd5e1, #e2e8f0)`,margin:`0 12px`,flexShrink:0}}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:10,background:`${e.color}12`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(`span`,{style:{color:e.color,fontSize:15},children:e.icon})}),(0,$.jsx)(S1.Text,{style:{fontSize:13,fontWeight:500,color:`#1a1a2e`},children:e.label})]})]},t))]})}),(0,$.jsxs)(DW,{form:n,initialValues:{},children:[(0,$.jsx)(DW.Item,{name:`prompt`,noStyle:!0,rules:[{required:!0,message:`请输入视频描述`}],style:{display:`none`}}),(0,$.jsxs)(`div`,{className:`animate-fadeInUp`,style:{borderRadius:20,background:`#fff`,border:`1px solid #f0f0f5`,boxShadow:`0 4px 24px rgba(0,0,0,0.04)`,overflow:`visible`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,padding:`12px 16px 0`,minHeight:60},children:[M.map((e,t)=>(0,$.jsxs)(`div`,{className:`ref-thumb`,style:{position:`relative`,width:48,height:48,borderRadius:12,overflow:`visible`,flexShrink:0},children:[(0,$.jsx)(`div`,{style:{width:48,height:48,borderRadius:12,overflow:`hidden`,border:`1px solid #e2e8f0`,cursor:`pointer`},onClick:()=>{e.type===`video`&&re(`http://ceshi.apiforeign.minzhong.cn${e.url}`)},children:e.type===`image`?(0,$.jsx)(DG,{src:`http://ceshi.apiforeign.minzhong.cn${e.url}`,style:{width:`100%`,height:`100%`,objectFit:`cover`}}):(0,$.jsx)(Q7,{src:`http://ceshi.apiforeign.minzhong.cn${e.url}`})}),(0,$.jsx)(`div`,{className:`ref-delete`,onClick:n=>{n.stopPropagation(),j5(e.url).catch(()=>{}),N(e=>e.filter((e,n)=>n!==t))},style:{position:`absolute`,top:-4,right:-4,width:16,height:16,borderRadius:`50%`,background:`rgba(0,0,0,0.55)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,zIndex:10,opacity:0,transition:`opacity 0.15s`,backdropFilter:`blur(4px)`},children:(0,$.jsx)(i4,{style:{color:`#fff`,fontSize:10}})})]},t)),(0,$.jsx)(g0,{accept:`image/*,video/*`,showUploadList:!1,multiple:!0,beforeUpload:e=>{let t=e.type.startsWith(`image/`),n=e.type.startsWith(`video/`);if(!t&&!n)return Aq.error(`仅支持图片或视频文件`),!1;let r=n?100:10;if(e.size/1024/1024>r)return Aq.error(`${n?`视频`:`图片`}大小不能超过${r}MB`),!1;let i=M.filter(e=>e.type===`image`).length,a=M.filter(e=>e.type===`video`).length;return t&&i>=10?(Aq.error(`最多上传10张图片`),!1):n&&a>=3?(Aq.error(`最多上传3个视频`),!1):(F(!0),(t?k5:A5)(e).then(e=>{let n=t?`图片`:`视频`,r=t?i+1:a+1;N(i=>[...i,{url:e.url,type:t?`image`:`video`,name:`${n}${r}`}]),Aq.success(`${n}上传成功`)}).catch(()=>Aq.error(`上传失败`)).finally(()=>F(!1)),!1)},children:(0,$.jsx)(lT,{title:`参考内容(${M.length}/10)`,children:(0,$.jsx)(`div`,{style:{width:48,height:48,borderRadius:12,border:`1.5px dashed #d9d9d9`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.2s`,flexShrink:0},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#6366f1`,e.currentTarget.style.background=`rgba(99,102,241,0.04)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`#d9d9d9`,e.currentTarget.style.background=`transparent`},children:P?(0,$.jsx)(qm,{style:{fontSize:18,color:`#6366f1`}}):(0,$.jsx)(IR,{style:{fontSize:18,color:`#94a3b8`}})})})})]}),(0,$.jsx)(`div`,{style:{padding:`8px 16px 4px`},children:(0,$.jsx)(cK.TextArea,{ref:H,value:I,onChange:e=>{let t=e.target.value;L(t),n.setFieldsValue({prompt:t});let r=t.lastIndexOf(`@`);if(r>=0){let e=t.slice(r+1);if(!e.includes(` `)&&!e.includes(`
|
||
`)){z(!0),V(e);return}}z(!1)},rows:3,placeholder:`上传参考素材、输入文字,自由组合图、文多元素。输入 @ 可引用参考内容...`,maxLength:500,bordered:!1,autoSize:{minRows:2,maxRows:6},style:{padding:`6px 2px`,fontSize:15,lineHeight:1.7,resize:`none`,caretColor:`#6366f1`}})}),R&&M.length>0&&(0,$.jsx)(`div`,{style:{margin:`0 16px 8px`,background:`#fff`,borderRadius:10,boxShadow:`0 6px 24px rgba(0,0,0,0.12)`,border:`1px solid #e2e8f0`,padding:6,maxHeight:180,overflowY:`auto`},children:M.filter(e=>!B||e.name.includes(B)).map((e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10,padding:`8px 10px`,borderRadius:8,cursor:`pointer`,transition:`background 0.15s`},onMouseEnter:e=>e.currentTarget.style.background=`#f1f5f9`,onMouseLeave:e=>e.currentTarget.style.background=`transparent`,onMouseDown:t=>{t.preventDefault();let r=H.current?.resizableTextArea?.textArea||H.current?.nativeElement?.querySelector(`textarea`)||H.current;if(!r||!r.value)return;let i=r.value,a=i.lastIndexOf(`@`),o=i.slice(0,a)+`@${e.name} `;L(o),n.setFieldValue(`prompt`,o),z(!1),setTimeout(()=>{r.focus(),r.selectionStart=o.length,r.selectionEnd=o.length},50)},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,overflow:`hidden`,background:e.type===`image`?`#f1f5f9`:`#1a1a2e`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:e.type===`image`?(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${e.url}`,style:{width:`100%`,height:`100%`,objectFit:`cover`}}):(0,$.jsx)(p6,{style:{color:`#fff`,fontSize:14}})}),(0,$.jsx)(S1.Text,{style:{fontSize:13},children:e.name}),(0,$.jsx)(x$,{style:{marginLeft:`auto`,fontSize:11},children:e.type===`image`?`图片`:`视频`})]},t))}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`8px 12px 12px`,gap:8,flexWrap:`wrap`,position:`relative`,zIndex:50,minHeight:48},children:[ve!==`image`&&(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6,flex:1,flexWrap:`wrap`},children:[(0,$.jsx)(At,{label:`时长`,value:`${ie}`,options:fe.durations.map(e=>`${e}`),suffix:`秒`,expanded:ue===`duration`,onToggle:()=>de(ue===`duration`?null:`duration`),onSelect:e=>ae(parseInt(e)),onClose:()=>de(null)}),ft.map((e,t)=>{let n=q===e.name,r=ee[e.name];return(0,$.jsx)(jt,{group:e,selected:r,expanded:n,onToggle:()=>J(n?null:e.name),onSelect:t=>{te(n=>{let r={...n};return r[e.name]===t?delete r[e.name]:r[e.name]=t,r})},onClose:()=>J(null)},`og-${t}`)})]}),ve==`image`&&(0,$.jsxs)(`div`,{style:{position:`relative`,display:`inline-block`},children:[(0,$.jsxs)(`button`,{onClick:()=>ke(!Oe),className:`image-settings-trigger`,style:{minWidth:220,padding:`0px 16px`,height:30,borderRadius:10,border:`1px solid #e2e8f0`,backgroundColor:`#f8f9fc`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:12,transition:`all 0.2s`},children:[(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:(0,$.jsxs)(`div`,{style:{textAlign:`left`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:13,fontWeight:600,color:`#374151`,marginRight:10},children:be===`auto`?`智能`:be}),(0,$.jsxs)(S1.Text,{style:{fontSize:12,color:`#9ca3af`},children:[Se==`2K`?`高清 2K`:`超清 4K`,`| `,we,`×`,Ee]})]})}),(0,$.jsx)(bQ,{style:{fontSize:14,color:`#9ca3af`}})]}),Oe&&(0,$.jsxs)(`div`,{className:`image-settings-popover`,style:{position:`absolute`,bottom:`calc(100% + 8px)`,left:0,width:520,backgroundColor:`#fff`,borderRadius:16,boxShadow:`0 10px 40px rgba(0,0,0,0.15)`,padding:20,border:`none`,zIndex:9999},onClick:e=>e.stopPropagation(),children:[(0,$.jsxs)(`div`,{style:{marginBottom:20},children:[(0,$.jsx)(S1.Text,{style:{display:`block`,marginBottom:10,fontSize:13,fontWeight:500,color:`#666666`},children:`选择比例`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:6},children:Re.map(e=>(0,$.jsxs)(`button`,{onClick:()=>{xe(e.value),Ie(e.label)},style:{flex:`0 0 calc(11.11% - 5px)`,minWidth:48,height:56,borderRadius:8,border:be===e.value?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:be===e.value?`#fff`:`#f9fafb`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:[(0,$.jsx)(`div`,{style:{width:e.value===`auto`?16:20,height:e.value===`auto`?16:20,border:`2px solid ${be===e.value?`#6366f1`:`#9ca3af`}`,borderRadius:(e.value,3),marginBottom:3,display:`flex`,alignItems:`center`,justifyContent:`center`},children:e.value===`auto`&&(0,$.jsx)(`span`,{style:{fontSize:8,color:be===e.value?`#6366f1`:`#9ca3af`},children:`智`})}),(0,$.jsx)(`span`,{style:{fontSize:10,color:be===e.value?`#6366f1`:`#6b7280`,fontWeight:be===e.value?600:400},children:e.value})]},e.value))})]}),(0,$.jsxs)(`div`,{style:{marginBottom:20},children:[(0,$.jsx)(S1.Text,{style:{display:`block`,marginBottom:10,fontSize:13,fontWeight:500,color:`#666666`},children:`选择分辨率`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:8},children:Be.map(e=>(0,$.jsx)(`button`,{onClick:()=>{Ce(e.value),Le(e.label)},style:{flex:1,height:48,borderRadius:8,border:Se===e.value?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:Se===e.value?`#6366f1`:`#f9fafb`,cursor:`pointer`,display:`flex`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:(0,$.jsxs)(`span`,{style:{fontSize:13,fontWeight:600,color:Se===e.value?`#fff`:`#4b5563`},children:[e.value,e.value===`4k`&&(0,$.jsx)(`span`,{style:{marginLeft:3},children:`✨`})]})},e.value))})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(S1.Text,{style:{display:`block`,marginBottom:10,fontSize:13,fontWeight:500,color:`#666666`},children:`尺寸`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,flex:1,maxWidth:140},children:[(0,$.jsx)(`span`,{style:{color:`#9ca3af`,fontSize:12,marginRight:6},children:`W`}),(0,$.jsx)(cK,{value:we,onChange:e=>Te(Number(e.target.value)||0),style:{flex:1,textAlign:`center`,borderRadius:6,height:40,border:`1px solid #e5e7eb`,backgroundColor:`#f9fafb`,fontSize:14,fontWeight:600,color:`#1f2937`}})]}),(0,$.jsx)(`button`,{onClick:Xe,style:{width:28,height:28,borderRadius:6,border:`1px solid #e5e7eb`,backgroundColor:`#fff`,cursor:`pointer`,display:`flex`,justifyContent:`center`,alignItems:`center`,color:`#6366f1`},children:(0,$.jsx)(fG,{style:{fontSize:12}})}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,flex:1,maxWidth:140},children:[(0,$.jsx)(`span`,{style:{color:`#9ca3af`,fontSize:12,marginRight:6},children:`H`}),(0,$.jsx)(cK,{value:Ee,onChange:e=>De(Number(e.target.value)||0),style:{flex:1,textAlign:`center`,borderRadius:6,height:40,border:`1px solid #e5e7eb`,backgroundColor:`#f9fafb`,fontSize:14,fontWeight:600,color:`#1f2937`}})]}),(0,$.jsx)(`span`,{style:{color:`#9ca3af`,fontSize:12},children:`PX`})]})]})]})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,flexShrink:0},children:[ve===`image`&&(0,$.jsx)(`span`,{style:{color:`#7c7c7c`,fontSize:14},children:`(请在左侧选择图片比例和尺寸)`}),(0,$.jsx)(kD,{type:`primary`,size:`large`,onClick:_t,loading:d,style:{borderRadius:10,fontWeight:600,minWidth:140,height:40,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,boxShadow:`0 4px 16px rgba(99,102,241,0.35)`},children:`AI优化提示词`})]})]})]})]})]}),p&&h&&(0,$.jsxs)(Jz,{className:`animate-fadeInUp`,style:{borderRadius:16},styles:{body:{padding:`24px 28px`}},children:[!w[h.id]||w[h.id]===`idle`?(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:14,marginBottom:24,padding:`14px 18px`,borderRadius:12,background:`linear-gradient(135deg, rgba(16,185,129,0.06), rgba(5,150,105,0.06))`,border:`1px solid rgba(16,185,129,0.15)`},children:[(0,$.jsx)(t4,{style:{color:`#10b981`,fontSize:22}}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:15,display:`block`},children:`提示词优化完成`}),(0,$.jsxs)(S1.Text,{style:{fontSize:12,color:`#94a3b8`},children:[`文本优化消耗 `,me,` 积分· 您可以编辑提示词后选择参数生成视频`]})]})]}):(0,$.jsxs)(`div`,{style:{marginBottom:24,padding:`16px 18px`,borderRadius:12,display:`flex`,alignItems:`center`,gap:12,background:w[h.id]===`failed`?`rgba(239,68,68,0.04)`:w[h.id]===`done`?`rgba(16,185,129,0.04)`:`rgba(99,102,241,0.04)`,border:`1px solid ${w[h.id]===`failed`?`rgba(239,68,68,0.12)`:w[h.id]===`done`?`rgba(16,185,129,0.12)`:`rgba(99,102,241,0.12)`}`},children:[w[h.id]===`generating`&&(0,$.jsx)(qm,{style:{color:`#6366f1`,fontSize:18},spin:!0}),w[h.id]===`done`&&(0,$.jsx)(t4,{style:{color:`#10b981`,fontSize:18}}),w[h.id]===`failed`&&(0,$.jsx)(i4,{style:{color:`#ef4444`,fontSize:18}}),(0,$.jsxs)(S1.Text,{strong:!0,style:{fontSize:14,color:w[h.id]===`failed`?`#ef4444`:w[h.id]===`done`?`#10b981`:`#6366f1`},children:[w[h.id]===`generating`&&`${ve===`image`?`图片`:`视频`}生成中,请稍候...`,w[h.id]===`done`&&`${ve===`image`?`图片`:`视频`}生成成功`,w[h.id]===`failed`&&`${ve===`image`?`图片`:`视频`}生成失败,请重试`]})]}),!w[h.id]||w[h.id]===`idle`||w[h.id]===`failed`?(0,$.jsxs)(`div`,{className:`gen-prompt-row`,style:{display:`flex`,gap:20,flexWrap:`wrap`},children:[(0,$.jsxs)(`div`,{style:{flex:`1 1 45%`,minWidth:240},children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:8},children:`原始提示词`}),(0,$.jsx)(`div`,{style:{padding:14,borderRadius:12,background:`#f8f9fc`,border:`1px solid #f0f0f5`,minHeight:100},children:(0,$.jsx)(S1.Text,{style:{fontSize:14,color:`#64748b`,lineHeight:1.7},children:h.originalPrompt})})]}),(0,$.jsxs)(`div`,{style:{flex:`1 1 45%`,minWidth:240},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:8},children:[(0,$.jsxs)(S1.Text,{style:{fontSize:12,color:`#94a3b8`},children:[`优化后的提示词`,` `,!y&&(0,$.jsx)(`span`,{style:{color:`#6366f1`},children:`(可编辑)`})]}),!y&&(0,$.jsxs)(NU,{size:4,children:[(0,$.jsx)(lT,{title:`复制`,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(X$,{}),onClick:()=>{navigator.clipboard.writeText(_),Aq.success(`已复制`)},style:{color:`#94a3b8`}})}),(0,$.jsx)(lT,{title:`编辑`,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(D$,{}),onClick:()=>b(!0),style:{color:`#6366f1`}})})]})]}),y?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(cK.TextArea,{value:_,onChange:e=>v(e.target.value),rows:5,style:{borderRadius:12,fontSize:14,lineHeight:1.7,border:`1px solid rgba(99,102,241,0.25)`,background:`rgba(99,102,241,0.02)`}}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:8,marginTop:8},children:[(0,$.jsx)(kD,{size:`small`,onClick:()=>{v(h.optimizedPrompt||``),b(!1)},children:`取消`}),(0,$.jsx)(kD,{size:`small`,type:`primary`,onClick:()=>{b(!1),Aq.success(`提示词已更新`)},style:{borderRadius:6,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,border:`none`},children:`保存`})]})]}):(0,$.jsx)(`div`,{style:{padding:14,borderRadius:12,background:`rgba(99,102,241,0.02)`,border:`1px solid rgba(99,102,241,0.1)`,minHeight:100},children:(0,$.jsx)(S1.Text,{style:{fontSize:14,color:`#1a1a2e`,lineHeight:1.7},children:_})})]})]}):(0,$.jsxs)(`div`,{className:`gen-prompt-row`,style:{display:`flex`,gap:24,flexWrap:`wrap`},children:[(0,$.jsxs)(`div`,{style:{flex:`1 1 55%`,minWidth:280},children:[(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:8},children:`原始提示词`}),(0,$.jsx)(`div`,{style:{padding:14,borderRadius:12,background:`#f8f9fc`,border:`1px solid #f0f0f5`,minHeight:80},children:(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#64748b`,lineHeight:1.6},children:h.originalPrompt})})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:8},children:[(0,$.jsxs)(S1.Text,{style:{fontSize:12,color:`#94a3b8`},children:[`优化后的提示词`,` `,!y&&(0,$.jsx)(`span`,{style:{color:`#6366f1`},children:`(可编辑)`})]}),!y&&(0,$.jsxs)(NU,{size:4,children:[(0,$.jsx)(lT,{title:`复制`,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(X$,{}),onClick:()=>{navigator.clipboard.writeText(_),Aq.success(`已复制`)},style:{color:`#94a3b8`}})}),(0,$.jsx)(lT,{title:`编辑`,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(D$,{}),onClick:()=>b(!0),style:{color:`#6366f1`}})})]})]}),y?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(cK.TextArea,{value:_,onChange:e=>v(e.target.value),rows:5,style:{borderRadius:12,fontSize:13,lineHeight:1.6,border:`1px solid rgba(99,102,241,0.25)`,background:`rgba(99,102,241,0.02)`}}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:8,marginTop:8},children:[(0,$.jsx)(kD,{size:`small`,onClick:()=>{v(h.optimizedPrompt||``),b(!1)},children:`取消`}),(0,$.jsx)(kD,{size:`small`,type:`primary`,onClick:()=>{b(!1),Aq.success(`提示词已更新`)},style:{borderRadius:6,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,border:`none`},children:`保存`})]})]}):(0,$.jsx)(`div`,{style:{padding:14,borderRadius:12,background:`rgba(99,102,241,0.02)`,border:`1px solid rgba(99,102,241,0.1)`,minHeight:120},children:(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#1a1a2e`,lineHeight:1.6},children:_})})]})]}),(0,$.jsxs)(`div`,{style:{flex:`1 1 40%`,minWidth:280},children:[h.videoUrl&&(0,$.jsxs)(`div`,{children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:8},children:`生成视频`}),(0,$.jsx)(`div`,{style:{borderRadius:12,overflow:`hidden`,border:`1px solid #f0f0f5`,background:`#000`},children:(0,$.jsx)(`video`,{src:`http://ceshi.apiforeign.minzhong.cn${h.videoUrl}`,controls:!0,style:{width:`100%`,maxHeight:350,display:`block`}})})]}),h.imageUrl&&(0,$.jsxs)(`div`,{children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:8},children:`生成图片`}),(0,$.jsx)(DG,{src:`http://ceshi.apiforeign.minzhong.cn${h.imageUrl}`,style:{width:`100%`,maxHeight:350,objectFit:`contain`,borderRadius:12,border:`1px solid #f0f0f5`},preview:!0})]})]})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginTop:20,padding:`14px 18px`,borderRadius:12,background:`#f8f9fc`,border:`1px solid #f0f0f5`},children:[ve!==`image`&&(0,$.jsxs)(`div`,{style:{marginTop:24,borderRadius:12,background:`#f8f9fc`,width:`25%`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#1a1a2e`,fontWeight:600,display:`block`,marginBottom:12},children:`选择视频参数`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,flexWrap:`wrap`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6,padding:`5px 12px`,borderRadius:8,background:`#f8f9fc`,border:`1px solid #e2e8f0`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`},children:`时长`}),(0,$.jsxs)(S1.Text,{strong:!0,style:{fontSize:13,color:`#6366f1`},children:[ie,`s`]})]}),(0,$.jsx)(At,{label:`比例`,value:oe,options:fe.ratios,expanded:ue===`ratio`,onToggle:()=>de(ue===`ratio`?null:`ratio`),onSelect:e=>se(e),onClose:()=>de(null)}),(0,$.jsx)(At,{label:`分辨率`,value:ce,options:fe.resolutions,expanded:ue===`resolution`,onToggle:()=>de(ue===`resolution`?null:`resolution`),onSelect:e=>le(e),onClose:()=>de(null)})]})]}),ve==`image`&&h&&(0,$.jsx)(`div`,{style:{marginTop:24,borderRadius:12,background:`#f8f9fc`,width:`25%`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-around`},children:[(0,$.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`,marginBottom:4},children:`分辨率`}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#1a1a2e`},children:h.imageSize||`-`})]}),(0,$.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`,marginBottom:4},children:`画面比例`}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#1a1a2e`},children:h.imageProportion||`-`})]}),(0,$.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`,marginBottom:4},children:`画面尺寸`}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#1a1a2e`},children:h.imagePx||`-`})]})]})}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:16},children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`文字积分`}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#6366f1`},children:me})]}),(0,$.jsx)(S1.Text,{style:{color:`#cbd5e1`,fontSize:18},children:`+`}),(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:[`预估`,ve===`image`?`图片`:`视频`,`积分`]}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#10b981`},children:ve===`image`&&h.imageSize?mt(h.imageSize)||ht:Pe(ie,ce)})]}),(0,$.jsx)(S1.Text,{style:{color:`#cbd5e1`,fontSize:18},children:`=`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`总计`}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:16,color:`#1a1a2e`},children:(me+(ve===`image`?mt(h.imageSize):Pe(ie,ce))).toFixed(2)})]})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12},children:[(0,$.jsxs)(kD,{size:`large`,onClick:()=>{m(!1),g(null),v(``),L(``),N([]),te({}),J(null),de(null),n.resetFields()},style:{borderRadius:12,minWidth:120,height:44,fontWeight:500},children:[`配置新`,ve===`image`?`图片`:`视频`]}),(0,$.jsx)(lT,{title:gt?``:`积分不足`,children:(0,$.jsx)(kD,{type:`primary`,size:`large`,icon:(0,$.jsx)(O6,{}),onClick:()=>Et(h.id),loading:w[h.id]===`generating`,disabled:!gt||w[h.id]===`generating`||w[h.id]===`done`,style:{borderRadius:12,minWidth:180,height:44,fontWeight:600,background:w[h.id]===`done`?`#10b981`:gt?`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`:`#d1d5db`,border:`none`,boxShadow:gt?`0 8px 24px rgba(99,102,241,0.3)`:`none`},children:w[h.id]===`done`?`生成完成`:w[h.id]===`generating`?`生成中...`:`生成${ve===`image`?`图片`:`视频`} (${ve===`image`?mt(h.imageSize):Pe(ie,ce)}积分)`})})]})]}),h.references&&h.references.length>0&&(0,$.jsxs)(`div`,{style:{marginTop:16},children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:8},children:`参考内容`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:8,flexWrap:`wrap`},children:h.references.map((e,t)=>(0,$.jsxs)(`div`,{style:{width:64,height:64,borderRadius:10,overflow:`hidden`,border:`1px solid #e2e8f0`,position:`relative`,cursor:`pointer`},onClick:()=>{e.type===`video`&&re(`http://ceshi.apiforeign.minzhong.cn${e.url}`)},children:[e.type===`image`?(0,$.jsx)(DG,{src:`http://ceshi.apiforeign.minzhong.cn${e.url}`,style:{width:`100%`,height:`100%`,objectFit:`cover`},preview:!0}):(0,$.jsx)(Q7,{src:`http://ceshi.apiforeign.minzhong.cn${e.url}`,width:64,height:64}),(0,$.jsx)(x$,{style:{position:`absolute`,bottom:0,left:0,right:0,margin:0,fontSize:9,textAlign:`center`,borderRadius:`0 0 8px 8px`,background:`rgba(0,0,0,0.5)`,border:`none`,color:`#fff`,padding:`0 2px`},children:e.name})]},t))})]})]}),ut.length>0&&(0,$.jsxs)(`div`,{style:{marginTop:24},children:[(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:15,display:`block`,marginBottom:12},children:`本项目生成记录`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8},className:`stagger-children`,children:ut.map((e,t)=>{let n=Ot(e),r=E[e.id]??(e.optimizedPrompt||e.originalPrompt),i=A===e.id,a=e.genType||`image`;return(0,$.jsxs)(`div`,{className:`animate-slideInCard`,style:{animationDelay:`${t*.05}s`},children:[(0,$.jsxs)(`div`,{className:`record-item`,onClick:()=>j(i?null:e.id),style:{padding:`12px 16px`,borderRadius:i?`12px 12px 0 0`:12,background:`#fff`,border:`1px solid #f0f0f5`,cursor:`pointer`,transition:`all 0.2s`,display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:28,height:28,borderRadius:8,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,background:a===`image`?`#fef3c7`:`#dbeafe`},children:a===`image`?(0,$.jsx)(i6,{style:{color:`#d97706`,fontSize:12}}):(0,$.jsx)(L8,{style:{color:`#2563eb`,fontSize:12}})}),i?(0,$.jsx)(bQ,{style:{color:`#6366f1`,fontSize:11,flexShrink:0}}):(0,$.jsx)(Q2,{style:{color:`#cbd5e1`,fontSize:11,flexShrink:0}}),(0,$.jsx)(x$,{color:kt[n]?.color,icon:kt[n]?.icon,style:{margin:0},children:kt[n]?.text}),(0,$.jsx)(S1.Text,{style:{flex:1,fontSize:13,color:`#475569`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:r}),n===`prompt_optimized`&&(0,$.jsx)(x$,{color:`processing`,style:{padding:`3px 10px`,fontSize:12,margin:0,flexShrink:0},children:`待配置`}),a===`image`?(0,$.jsxs)(`span`,{className:`mobile-meta`,translate:`no`,style:{fontSize:12,color:`#94a3b8`,flexShrink:0},children:[e.duration?`${e.imageSize}`:`-`,` ·`,` `,e.imageProportion||`-`,` ·`,` `,e.imagePx||`-`,` ·`,` `,(0,$.jsx)(`span`,{className:`date-display`,translate:`no`,children:q7(e.createdAt)})]}):(0,$.jsxs)(`span`,{className:`mobile-meta`,translate:`no`,style:{fontSize:12,color:`#94a3b8`,flexShrink:0},children:[e.duration?`${e.duration}秒`:`-`,` ·`,` `,e.aspectRatio||`-`,` · `,e.resolution||`-`,` `,`·`,` `,(0,$.jsx)(`span`,{className:`date-display`,translate:`no`,children:q7(e.createdAt)})]}),(0,$.jsx)(`div`,{className:`record-actions`,onClick:e=>e.stopPropagation(),children:(0,$.jsx)(NU,{children:n===`failed`&&(0,$.jsx)(kD,{type:`primary`,danger:!0,size:`small`,icon:(0,$.jsx)(p6,{}),loading:S[e.id],onClick:()=>Dt(e.id),style:{borderRadius:8},children:`重试`})})})]}),i&&(0,$.jsx)(`div`,{style:{background:`#fff`,border:`1px solid #f0f0f5`,borderTop:`none`,borderRadius:`0 0 12px 12px`,padding:`18px 20px`,animation:`fadeInUp 0.25s ease both`},children:(0,$.jsxs)(`div`,{className:`gen-detail-row`,style:{display:`flex`,gap:20,flexWrap:`wrap`},children:[(0,$.jsxs)(`div`,{style:{flex:`1 1 50%`,minWidth:260},children:[(0,$.jsxs)(`div`,{style:{marginBottom:14},children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`原始提示词`}),(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,border:`1px solid #f0f0f5`},children:(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#64748b`,lineHeight:1.7},children:e.originalPrompt})})]}),(0,$.jsxs)(`div`,{style:{marginBottom:14},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:6},children:[(0,$.jsxs)(S1.Text,{style:{fontSize:12,color:`#94a3b8`},children:[`优化后的提示词`,` `,(n===`prompt_optimized`||n===`failed`)&&O!==e.id&&(0,$.jsx)(`span`,{style:{color:`#6366f1`},children:`(可编辑)`})]}),O!==e.id&&(0,$.jsxs)(NU,{size:4,children:[(0,$.jsx)(lT,{title:`复制`,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(X$,{}),onClick:()=>{navigator.clipboard.writeText(r),Aq.success(`已复制`)},style:{color:`#94a3b8`}})}),(n===`prompt_optimized`||n===`failed`)&&(0,$.jsx)(lT,{title:`编辑`,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(D$,{}),onClick:()=>{k(e.id),D(t=>({...t,[e.id]:t[e.id]??e.optimizedPrompt??``}))},style:{color:`#6366f1`}})})]})]}),O===e.id?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(cK.TextArea,{value:r,onChange:t=>D(n=>({...n,[e.id]:t.target.value})),rows:4,style:{borderRadius:10,fontSize:13,lineHeight:1.7,border:`1px solid rgba(99,102,241,0.25)`,background:`rgba(99,102,241,0.02)`}}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:8,marginTop:8},children:[(0,$.jsx)(kD,{size:`small`,onClick:()=>k(null),children:`取消`}),(0,$.jsx)(kD,{size:`small`,type:`primary`,onClick:()=>{D(t=>({...t,[e.id]:r})),k(null),Aq.success(`提示词已更新`)},style:{borderRadius:6,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,border:`none`},children:`保存`})]})]}):(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:n===`prompt_optimized`?`rgba(99,102,241,0.02)`:`#f8f9fc`,border:n===`prompt_optimized`?`1px solid rgba(99,102,241,0.1)`:`1px solid #f0f0f5`},children:(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#1a1a2e`,lineHeight:1.7},children:r})})]}),a===`image`?(0,$.jsx)(`div`,{style:{display:`flex`,gap:14,padding:`10px 14px`,borderRadius:10,background:`#f8f9fc`},children:[{label:`文字积分`,value:`${e.textCreditsCost||0}`},{label:`图片积分`,value:`${e.creditsCost||0}`},{label:`分辨率`,value:e.imageSize?`${e.imageSize}`:`-`},{label:`比例`,value:e.imageProportion||`-`},{label:`尺寸`,value:e.imagePx||`-`}].map((e,t)=>(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e.label}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:13,color:`#1a1a2e`},children:e.value})]},t))}):(0,$.jsx)(`div`,{style:{display:`flex`,gap:14,padding:`10px 14px`,borderRadius:10,background:`#f8f9fc`},children:[{label:`文字积分`,value:`${e.textCreditsCost||0}`},{label:`视频积分`,value:`${e.creditsCost||0}`},{label:`时长`,value:e.duration?`${e.duration}秒`:`-`},{label:`比例`,value:e.aspectRatio||`-`},{label:`分辨率`,value:e.resolution||`-`}].map((e,t)=>(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e.label}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:13,color:`#1a1a2e`},children:e.value})]},t))}),(e.references&&e.references.length>0||n===`failed`)&&(0,$.jsxs)(`div`,{style:{marginTop:14},children:[(0,$.jsxs)(S1.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:8},children:[`参考素材`,` `,n===`failed`&&(0,$.jsx)(`span`,{style:{color:`#6366f1`},children:`(可删除/添加后重试)`})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:8,flexWrap:`wrap`},children:[e.references?.map((t,r)=>(0,$.jsxs)(`div`,{style:{width:64,height:64,borderRadius:10,overflow:`visible`,border:`1px solid #e2e8f0`,position:`relative`,cursor:`pointer`},onClick:()=>{t.type===`video`&&re(`http://ceshi.apiforeign.minzhong.cn${t.url}`)},children:[(0,$.jsx)(`div`,{style:{width:64,height:64,borderRadius:10,overflow:`hidden`},children:t.type===`image`?(0,$.jsx)(DG,{src:`http://ceshi.apiforeign.minzhong.cn${t.url}`,style:{width:`100%`,height:`100%`,objectFit:`cover`},preview:!0}):(0,$.jsx)(Q7,{src:`http://ceshi.apiforeign.minzhong.cn${t.url}`,width:64,height:64})}),(0,$.jsx)(x$,{style:{position:`absolute`,bottom:0,left:0,right:0,margin:0,fontSize:9,textAlign:`center`,borderRadius:`0 0 8px 8px`,background:`rgba(0,0,0,0.5)`,border:`none`,color:`#fff`,padding:`0 2px`},children:t.name}),n===`failed`&&(0,$.jsx)(`div`,{className:`ref-delete`,onClick:n=>{n.stopPropagation(),j5(t.url).catch(()=>{});let i=e.references.filter((e,t)=>t!==r);K7.getState().updateRecordReferences(e.id,i)},style:{position:`absolute`,top:-4,right:-4,width:16,height:16,borderRadius:`50%`,background:`rgba(239,68,68,0.8)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,zIndex:10,opacity:0,transition:`opacity 0.15s`},children:(0,$.jsx)(i4,{style:{color:`#fff`,fontSize:10}})})]},r)),n===`failed`&&(0,$.jsx)(g0,{accept:`image/*,video/*`,showUploadList:!1,multiple:!0,beforeUpload:t=>{let n=t.type.startsWith(`image/`),r=t.type.startsWith(`video/`);return!n&&!r?(Aq.error(`仅支持图片或视频文件`),!1):((n?k5:A5)(t).then(r=>{let i={url:r.url,type:n?`image`:`video`,name:t.name||(n?`图片`:`视频`)},a=e.references||[];K7.getState().updateRecordReferences(e.id,[...a,i]),Aq.success(`上传成功`)}).catch(()=>Aq.error(`上传失败`)),!1)},children:(0,$.jsx)(lT,{title:`添加参考素材`,children:(0,$.jsx)(`div`,{style:{width:64,height:64,borderRadius:10,border:`1.5px dashed #d9d9d9`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#6366f1`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`#d9d9d9`},children:(0,$.jsx)(IR,{style:{fontSize:18,color:`#94a3b8`}})})})})]})]})]}),(0,$.jsxs)(`div`,{style:{flex:`1 1 40%`,minWidth:220,position:`relative`},children:[n===`prompt_optimized`&&(0,$.jsxs)(`div`,{style:{marginTop:16,position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,backgroundColor:`transparent`},children:[a===`video`&&(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,flexWrap:`wrap`,marginBottom:12},children:[(0,$.jsxs)(`div`,{translate:`no`,style:{display:`flex`,alignItems:`center`,gap:6,padding:`5px 12px`,borderRadius:8,background:`#f8f9fc`,border:`1px solid #e2e8f0`,marginLeft:12},children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`},children:`时长`}),(0,$.jsxs)(S1.Text,{strong:!0,style:{fontSize:13,color:`#6366f1`},children:[e.duration,`秒`]})]}),(0,$.jsx)(At,{label:`比例`,value:Y[e.id]?.aspectRatio||`选择比例`,options:fe.ratios,expanded:ue===`ratio-${e.id}`,onToggle:()=>de(ue===`ratio-${e.id}`?null:`ratio-${e.id}`),onSelect:t=>ne(n=>({...n,[e.id]:{...n[e.id],aspectRatio:t,resolution:n[e.id]?.resolution||``}})),onClose:()=>de(null)}),(0,$.jsx)(At,{label:`分辨率`,value:Y[e.id]?.resolution||`选择分辨率`,options:fe.resolutions,expanded:ue===`res-${e.id}`,onToggle:()=>de(ue===`res-${e.id}`?null:`res-${e.id}`),onSelect:t=>ne(n=>({...n,[e.id]:{...n[e.id],aspectRatio:n[e.id]?.aspectRatio||``,resolution:t}})),onClose:()=>de(null)})]}),(0,$.jsxs)(kD,{type:`primary`,size:`large`,icon:(0,$.jsx)(O6,{}),block:!0,loading:S[e.id],disabled:a===`video`&&(!Y[e.id]?.aspectRatio||!Y[e.id]?.resolution),onClick:async()=>{let t=Y[e.id];if(a===`video`){if(!t?.aspectRatio||!t?.resolution){Aq.error(`请选择比例和分辨率`);return}if(pt<Pe(e.duration||5,t.resolution)){Aq.error(`积分不足,请先充值`);return}}C(t=>({...t,[e.id]:!0})),T(t=>({...t,[e.id]:`generating`}));let n=a===`video`?`视频`:`图片`;Aq.loading({content:`「${dt}」正在生成${n}...`,duration:0,key:e.id});try{await c(e.id,{aspectRatio:t?.aspectRatio,resolution:t?.resolution}),T(t=>({...t,[e.id]:`done`})),Aq.success({content:`「${dt}」${n}生成成功!`,key:e.id,duration:3})}catch{T(t=>({...t,[e.id]:`failed`})),Aq.error({content:`「${dt}」${n}生成失败`,key:e.id,duration:3})}finally{C(t=>({...t,[e.id]:!1}))}},style:{borderRadius:12,fontWeight:600,color:`#fff`,height:48,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,position:`absolute`,bottom:18,left:0},children:[`生成`,a===`video`?`视频`:`图片`,a===`video`?(0,$.jsx)(`span`,{style:{color:`#d2d2d2`,fontSize:`14px`,marginLeft:`6px`},children:`(请选择上方的比例分辨率)`}):``,` `,a===`video`&&Y[e.id]?.resolution?`(${Pe(e.duration||5,Y[e.id].resolution)}积分)`:``,a===`image`&&e.imageSize?`(${Fe(e.imageSize)}积分)`:a===`image`?`(积分)`:``]})]}),n===`failed`&&(0,$.jsx)(`div`,{style:{position:`absolute`,bottom:18,right:20},children:(0,$.jsxs)(kD,{type:`primary`,danger:!0,size:`large`,icon:(0,$.jsx)(p6,{}),block:!0,loading:S[e.id],onClick:()=>Dt(e.id),style:{borderRadius:12,fontWeight:600,height:48},children:[`重新生成`,a===`video`?`视频`:`图片`]})}),n===`generating`?(0,$.jsxs)(`div`,{style:{height:`100%`,minHeight:180,borderRadius:12,background:`linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04))`,border:`1px dashed rgba(99,102,241,0.2)`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:10},children:[(0,$.jsx)(qm,{style:{color:`#6366f1`,fontSize:28},spin:!0}),(0,$.jsxs)(S1.Text,{style:{color:`#94a3b8`,fontSize:13},children:[a===`video`?`视频`:`图片`,`生成中...`]})]}):n===`completed`&&e.videoUrl||e.imageUrl?(0,$.jsxs)(`div`,{style:{borderRadius:12,overflow:`hidden`,border:`1px solid #f0f0f5`,position:`relative`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:10,right:10,zIndex:10},children:(0,$.jsx)(lT,{title:`下载${a===`video`?`视频`:`图片`}`,children:(0,$.jsx)(kD,{size:`small`,icon:(0,$.jsx)(u0,{}),onClick:()=>{let t=document.createElement(`a`);t.href=`http://ceshi.apiforeign.minzhong.cn${a===`video`?e.videoUrl:e.imageUrl}&download=1`,t.download=`${e.projectName}${a===`video`?`.mp4`:`.png`}`,t.click()},style:{background:`rgba(0,0,0,0.5)`,border:`none`,color:`#fff`,backdropFilter:`blur(4px)`,borderRadius:8},children:`下载`})})}),(0,$.jsx)(`div`,{style:{minHeight:180,overflow:`hidden`},children:a===`video`?(0,$.jsx)(`video`,{src:`http://ceshi.apiforeign.minzhong.cn${e.videoUrl}`,controls:!0,preload:`metadata`,style:{width:`100%`,height:`400px`,borderRadius:0}}):(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${e.imageUrl}`,alt:e.projectName,style:{width:`100%`,maxHeight:`400px`,objectFit:`contain`,borderRadius:0}})}),(0,$.jsxs)(`div`,{style:{padding:`8px 12px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,background:`#fafbff`},children:[(0,$.jsxs)(NU,{children:[a===`video`?(0,$.jsx)(L8,{style:{color:`#6366f1`,fontSize:13}}):(0,$.jsx)(i6,{style:{color:`#6366f1`,fontSize:13}}),(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#475569`},children:e.projectName})]}),e.generatedAt&&(0,$.jsx)(`span`,{className:`date-display`,translate:`no`,style:{fontSize:11,color:`#94a3b8`},children:q7(e.generatedAt)})]})]}):n===`failed`?(0,$.jsxs)(`div`,{style:{height:`100%`,minHeight:180,borderRadius:12,background:`rgba(239,68,68,0.03)`,border:`1px dashed rgba(239,68,68,0.2)`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:10,padding:16},children:[(0,$.jsx)(i4,{style:{color:`#ef4444`,fontSize:28}}),(0,$.jsxs)(S1.Text,{style:{color:`#ef4444`,fontSize:14,fontWeight:600},children:[a===`video`?`视频`:`图片`,`生成失败`]}),e.errorMessage&&(0,$.jsx)(S1.Text,{style:{color:`#ef4444`,fontSize:12,textAlign:`center`,lineHeight:1.6},children:e.errorMessage})]}):(0,$.jsxs)(`div`,{style:{height:`100%`,minHeight:180,borderRadius:12,background:`#f8f9fc`,border:`1px dashed #e2e8f0`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:10},children:[(0,$.jsx)(JH,{style:{color:`#94a3b8`,fontSize:28}}),(0,$.jsx)(S1.Text,{style:{color:`#94a3b8`,fontSize:13},children:a===`image`?`待生成图片`:n===`prompt_optimized`?`待配置视频参数`:`待生成视频`})]})]})]})})]},e.id)})})]}),(0,$.jsx)(Nq,{open:!!X,onCancel:()=>re(null),footer:null,width:480,centered:!0,destroyOnClose:!0,closable:!1,title:null,styles:{body:{padding:0,background:`#000`,position:`relative`}},children:X&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`video`,{src:X,controls:!0,autoPlay:!0,style:{width:`100%`,display:`block`,maxHeight:`70vh`}}),(0,$.jsx)(`div`,{onClick:()=>re(null),style:{position:`absolute`,top:8,right:8,width:28,height:28,borderRadius:`50%`,background:`rgba(0,0,0,0.6)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,zIndex:10,transition:`background 0.15s`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(0,0,0,0.85)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(0,0,0,0.6)`},children:(0,$.jsx)(i4,{style:{color:`#fff`,fontSize:16}})})]})})]})},e9={optimizing:{color:`processing`,text:`优化中`,icon:(0,$.jsx)(qm,{spin:!0})},prompt_optimized:{color:`processing`,text:`待生成`,icon:(0,$.jsx)(JH,{})},generating:{color:`warning`,text:`生成中`,icon:(0,$.jsx)(qm,{spin:!0})},completed:{color:`success`,text:`已完成`,icon:(0,$.jsx)(t4,{})},failed:{color:`error`,text:`失败`,icon:(0,$.jsx)(i4,{})}},t9=()=>{let{records:e,projects:t,fetchRecords:n,fetchProjects:r,generateVideo:i}=K7(),a=e.items,[o,s]=(0,x.useState)(1),[c,l]=(0,x.useState)(10),[u,d]=(0,x.useState)({}),[f,p]=(0,x.useState)(void 0),[m,h]=(0,x.useState)(void 0),[g,_]=(0,x.useState)({}),[v,y]=(0,x.useState)(null),[b,S]=(0,x.useState)(null),[C,w]=(0,x.useState)(null);(0,x.useEffect)(()=>{r()},[r]),(0,x.useEffect)(()=>{n({projectId:f,status:m,page:o,pageSize:c})},[n,f,m,o,c]);let T=async()=>{if(!C)return;let{recordId:e,projectName:t,ratio:n,resolution:r}=C;d(t=>({...t,[e]:!0})),w(null),Aq.loading({content:`「${t}」正在生成视频...`,duration:0,key:e});try{await i(e,{aspectRatio:n,resolution:r}),Aq.success({content:`「${t}」视频生成成功!`,key:e,duration:3})}catch{Aq.error({content:`「${t}」视频生成失败`,key:e,duration:3})}finally{d(t=>({...t,[e]:!1}))}},E=e=>{if((e.genType||`image`)===`image`){d(t=>({...t,[e.id]:!0})),Aq.loading({content:`「${e.projectName}」正在生成图片...`,duration:0,key:e.id}),i(e.id,{}).then(()=>{Aq.success({content:`「${e.projectName}」图片生成成功!`,key:e.id,duration:3})}).catch(()=>{Aq.error({content:`「${e.projectName}」图片生成失败`,key:e.id,duration:3})}).finally(()=>{d(t=>({...t,[e.id]:!1}))});return}w({recordId:e.id,projectName:e.projectName,ratio:e.aspectRatio||`16:9`,resolution:e.resolution||`720p`})},D=a;return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{marginBottom:20},children:(0,$.jsx)(S1.Text,{style:{fontSize:14,color:`#94a3b8`},children:`查看所有视频生成记录,点击记录查看完整内容和视频`})}),(0,$.jsxs)(`div`,{className:`record-filter-bar animate-fadeInUp`,style:{display:`flex`,gap:12,marginBottom:20,padding:`14px 20px`,borderRadius:14,background:`#fff`,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(NU,{children:[(0,$.jsx)(U4,{style:{color:`#94a3b8`}}),(0,$.jsx)(bw,{placeholder:`全部项目`,allowClear:!0,style:{width:200},onChange:e=>{p(e),s(1)},children:t.map(e=>(0,$.jsx)(bw.Option,{value:e.id,children:e.name},e.id))}),(0,$.jsxs)(bw,{placeholder:`全部状态`,allowClear:!0,style:{width:140},onChange:e=>{h(e),s(1)},children:[(0,$.jsx)(bw.Option,{value:`prompt_optimized`,children:`待生成`}),(0,$.jsx)(bw.Option,{value:`generating`,children:`生成中`}),(0,$.jsx)(bw.Option,{value:`completed`,children:`已完成`}),(0,$.jsx)(bw.Option,{value:`failed`,children:`失败`})]})]}),(0,$.jsxs)(S1.Text,{style:{marginLeft:`auto`,lineHeight:`32px`,color:`#94a3b8`,fontSize:13},children:[`共 `,e.total,` 条记录`]})]}),D.length===0?(0,$.jsx)(WC,{image:WC.PRESENTED_IMAGE_SIMPLE,description:`暂无生成记录`,style:{padding:60}}):(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8},className:`stagger-children`,children:D.map((e,t)=>{let n=v===e.id,r=g[e.id]??e.optimizedPrompt,i=u[e.id],a=b===e.id,o=e.genType||`image`;return(0,$.jsxs)(`div`,{className:`animate-slideInCard`,style:{animationDelay:`${t*.04}s`},children:[(0,$.jsxs)(`div`,{className:`record-item`,onClick:()=>S(a?null:e.id),style:{padding:`14px 20px`,borderRadius:a?`14px 14px 0 0`:14,background:`#fff`,border:`1px solid #f0f0f5`,cursor:`pointer`,transition:`all 0.2s`,display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:28,height:28,borderRadius:8,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,background:o===`image`?`#fef3c7`:`#dbeafe`},children:o===`image`?(0,$.jsx)(i6,{style:{color:`#d97706`,fontSize:12}}):(0,$.jsx)(L8,{style:{color:`#2563eb`,fontSize:12}})}),a?(0,$.jsx)(bQ,{style:{color:`#6366f1`,fontSize:12,flexShrink:0}}):(0,$.jsx)(Q2,{style:{color:`#cbd5e1`,fontSize:12,flexShrink:0}}),(0,$.jsx)(x$,{color:e9[e.status].color,icon:e9[e.status].icon,style:{margin:0},children:e9[e.status].text}),(0,$.jsx)(x$,{style:{background:`#f0f0ff`,border:`none`,color:`#6366f1`,margin:0},children:e.projectName}),(0,$.jsx)(S1.Text,{style:{flex:1,fontSize:13,color:`#475569`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:r}),o===`image`?(0,$.jsxs)(`span`,{className:`mobile-meta`,translate:`no`,style:{fontSize:12,color:`#94a3b8`,flexShrink:0},children:[e.duration?`${e.imageSize}`:`-`,` · `,e.imageProportion||`-`,` · `,e.imagePx||`-`,` · `,(0,$.jsx)(`span`,{className:`date-display`,translate:`no`,children:q7(e.createdAt)})]}):(0,$.jsxs)(`span`,{className:`mobile-meta`,translate:`no`,style:{fontSize:12,color:`#94a3b8`,flexShrink:0},children:[e.duration?`${e.duration}秒`:`-`,` · `,e.aspectRatio||`-`,` · `,e.resolution||`-`,` · `,(0,$.jsx)(`span`,{className:`date-display`,translate:`no`,children:q7(e.createdAt)})]}),(0,$.jsx)(`div`,{className:`record-actions`,onClick:e=>e.stopPropagation(),children:(0,$.jsxs)(NU,{children:[e.status===`prompt_optimized`&&(0,$.jsx)(kD,{type:`primary`,size:`small`,icon:(0,$.jsx)(p6,{}),loading:i,onClick:()=>E(e),style:{borderRadius:8,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,border:`none`},children:`生成`}),e.status===`generating`&&(0,$.jsx)(x$,{color:`processing`,icon:(0,$.jsx)(qm,{spin:!0}),style:{padding:`4px 12px`,fontSize:12},children:`生成中...`}),e.status===`failed`&&(0,$.jsx)(kD,{type:`primary`,danger:!0,size:`small`,icon:(0,$.jsx)(p6,{}),loading:i,onClick:()=>E(e),style:{borderRadius:8},children:`重试`})]})})]}),a&&(0,$.jsx)(`div`,{style:{background:`#fff`,border:`1px solid #f0f0f5`,borderTop:`none`,borderRadius:`0 0 14px 14px`,padding:`20px 24px`,animation:`fadeInUp 0.25s ease both`},children:(0,$.jsxs)(`div`,{className:`gen-detail-row`,style:{display:`flex`,gap:24,flexWrap:`wrap`},children:[(0,$.jsxs)(`div`,{style:{flex:`1 1 50%`,minWidth:280},children:[(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`原始提示词`}),(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,border:`1px solid #f0f0f5`},children:(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#64748b`,lineHeight:1.7},children:e.originalPrompt})})]}),(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:6},children:[(0,$.jsxs)(S1.Text,{style:{fontSize:12,color:`#94a3b8`},children:[`优化后的提示词 `,e.status===`prompt_optimized`&&(0,$.jsx)(`span`,{style:{color:`#6366f1`},children:`(可编辑)`})]}),!n&&(0,$.jsxs)(NU,{size:4,children:[(0,$.jsx)(lT,{title:`复制`,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(X$,{}),onClick:()=>{navigator.clipboard.writeText(r),Aq.success(`已复制`)},style:{color:`#94a3b8`}})}),e.status===`prompt_optimized`&&(0,$.jsx)(lT,{title:`编辑`,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(D$,{}),onClick:()=>{y(e.id),_(t=>({...t,[e.id]:t[e.id]??e.optimizedPrompt}))},style:{color:`#6366f1`}})})]})]}),n?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(cK.TextArea,{value:r,onChange:t=>_(n=>({...n,[e.id]:t.target.value})),rows:4,style:{borderRadius:10,fontSize:13,lineHeight:1.7,border:`1px solid rgba(99,102,241,0.25)`,background:`rgba(99,102,241,0.02)`}}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:8,marginTop:8},children:[(0,$.jsx)(kD,{size:`small`,onClick:()=>y(null),children:`取消`}),(0,$.jsx)(kD,{size:`small`,type:`primary`,onClick:()=>{_(t=>({...t,[e.id]:r})),y(null),Aq.success(`提示词已更新`)},style:{borderRadius:6,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,border:`none`},children:`保存`})]})]}):(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`rgba(99,102,241,0.02)`,border:`1px solid rgba(99,102,241,0.1)`},children:(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#1a1a2e`,lineHeight:1.7},children:r})})]}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:16,padding:`12px 16px`,borderRadius:10,background:`#f8f9fc`},children:o===`image`?[{label:`分辨率`,value:e.imageSize?`${e.imageSize} `:`-`},{label:`画面比例`,value:e.imageProportion?`${e.imageProportion} `:`-`},{label:`画面尺寸`,value:e.imageProportion?`${e.imageProportion} `:`-`},{label:`消耗积分`,value:e.creditsCost?`${e.creditsCost} `:`-`,highlight:!!e.creditsCost}].map((e,t)=>(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e.label}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:e.highlight?`#6366f1`:`#1a1a2e`},children:e.value})]},t)):[{label:`时长`,value:e.duration?`${e.duration} 秒`:`-`},{label:`画面比例`,value:e.aspectRatio||(e.status===`prompt_optimized`?`待选择`:`-`)},{label:`分辨率`,value:e.resolution||(e.status===`prompt_optimized`?`待选择`:`-`)},{label:`消耗积分`,value:e.creditsCost?`${e.creditsCost}`:`-`,highlight:!!e.creditsCost}].map((e,t)=>(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e.label}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:e.highlight?`#6366f1`:`#1a1a2e`},children:e.value})]},t))}),e.status===`prompt_optimized`&&(0,$.jsx)(`div`,{style:{marginTop:16,display:`flex`,justifyContent:`flex-end`},children:(0,$.jsx)(kD,{type:`primary`,size:`large`,icon:(0,$.jsx)(O6,{}),loading:i,onClick:()=>E(e),style:{borderRadius:12,fontWeight:600,height:44,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,boxShadow:`0 8px 24px rgba(99,102,241,0.3)`},children:o===`video`?`选择参数生成视频`:`生成图片`})}),e.status===`failed`&&(0,$.jsx)(`div`,{style:{marginTop:16,display:`flex`,justifyContent:`flex-end`},children:(0,$.jsxs)(kD,{type:`primary`,danger:!0,size:`large`,icon:(0,$.jsx)(p6,{}),loading:i,onClick:()=>E(e),style:{borderRadius:12,fontWeight:600,height:44},children:[`重新生成`,o===`video`?`视频`:`图片`]})})]}),(0,$.jsx)(`div`,{style:{flex:`1 1 40%`,minWidth:240},children:e.status===`generating`?(0,$.jsxs)(`div`,{style:{height:`100%`,minHeight:200,borderRadius:14,background:`linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04))`,border:`1px dashed rgba(99,102,241,0.2)`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:12},children:[(0,$.jsx)(qm,{style:{color:`#6366f1`,fontSize:32},spin:!0}),(0,$.jsxs)(S1.Text,{style:{color:`#94a3b8`,fontSize:14},children:[o===`video`?`视频`:`图片`,`生成中...`]}),(0,$.jsx)(S1.Text,{style:{color:`#cbd5e1`,fontSize:12},children:`请耐心等待,生成完成后将自动展示`})]}):e.status===`completed`&&(e.videoUrl||e.imageUrl)?(0,$.jsxs)(`div`,{style:{borderRadius:14,overflow:`hidden`,border:`1px solid #f0f0f5`,position:`relative`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:10,right:10,zIndex:10},children:(0,$.jsx)(lT,{title:`下载${o===`video`?`视频`:`图片`}`,children:(0,$.jsx)(kD,{size:`small`,icon:(0,$.jsx)(u0,{}),onClick:()=>{let t=document.createElement(`a`);t.href=`http://ceshi.apiforeign.minzhong.cn${o===`video`?e.videoUrl:e.imageUrl}&download=1`,t.download=`${e.projectName}${o===`video`?`.mp4`:`.png`}`,t.click()},style:{background:`rgba(0,0,0,0.5)`,border:`none`,color:`#fff`,backdropFilter:`blur(4px)`,borderRadius:8},children:`下载`})})}),(0,$.jsx)(`div`,{style:{minHeight:280,overflow:`hidden`},children:o===`video`?(0,$.jsx)(`video`,{src:`http://ceshi.apiforeign.minzhong.cn${e.videoUrl}`,controls:!0,preload:`metadata`,style:{width:`100%`,height:`400px`,display:`block`}}):(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${e.imageUrl}`,alt:e.projectName,style:{width:`100%`,maxHeight:`400px`,objectFit:`contain`,display:`block`}})}),(0,$.jsxs)(`div`,{style:{padding:`10px 14px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,background:`#fafbff`},children:[(0,$.jsxs)(NU,{children:[o===`video`?(0,$.jsx)(L8,{style:{color:`#6366f1`}}):(0,$.jsx)(i6,{style:{color:`#6366f1`}}),(0,$.jsx)(S1.Text,{style:{fontSize:13,color:`#475569`},children:e.projectName})]}),e.generatedAt&&(0,$.jsxs)(`span`,{className:`date-display`,translate:`no`,style:{fontSize:12,color:`#94a3b8`},children:[`生成于 `,q7(e.generatedAt)]})]})]}):e.status===`failed`?(0,$.jsxs)(`div`,{style:{height:`100%`,minHeight:200,borderRadius:14,background:`rgba(239,68,68,0.03)`,border:`1px dashed rgba(239,68,68,0.2)`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:12},children:[(0,$.jsx)(i4,{style:{color:`#ef4444`,fontSize:32}}),(0,$.jsxs)(S1.Text,{style:{color:`#ef4444`,fontSize:14},children:[o===`video`?`视频`:`图片`,`生成失败`]}),(0,$.jsx)(S1.Text,{style:{color:`#94a3b8`,fontSize:12},children:`请在左侧点击重新生成`})]}):(0,$.jsxs)(`div`,{style:{height:`100%`,minHeight:200,borderRadius:14,background:`#f8f9fc`,border:`1px dashed #e2e8f0`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:12},children:[(0,$.jsx)(JH,{style:{color:`#94a3b8`,fontSize:32}}),(0,$.jsxs)(S1.Text,{style:{color:`#94a3b8`,fontSize:14},children:[`待生成`,o===`video`?`视频`:`图片`]}),(0,$.jsx)(S1.Text,{style:{color:`#cbd5e1`,fontSize:12},children:`点击左侧生成按钮开始生成`})]})})]})})]},e.id)})}),e.total>0&&(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:18},children:(0,$.jsx)(JK,{current:e.page||o,pageSize:e.pageSize||c,total:e.total,showSizeChanger:!0,showTotal:e=>`共 ${e} 条记录`,onChange:(e,t)=>{s(e),l(t)}})}),(0,$.jsx)(Nq,{title:(0,$.jsxs)(NU,{children:[(0,$.jsx)(O6,{}),`生成视频`]}),open:!!C,onCancel:()=>w(null),onOk:T,okText:`提交生成`,cancelText:`取消`,width:420,children:C&&(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,marginTop:16},children:(()=>{let e=a.find(e=>e.id===C.recordId);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(S1.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`时长`}),(0,$.jsxs)(S1.Text,{strong:!0,children:[e?.duration||5,`秒`]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#64748b`,display:`block`,marginBottom:6},children:`画面比例`}),(0,$.jsx)(bw,{value:C.ratio,onChange:e=>w(t=>t?{...t,ratio:e}:null),style:{width:`100%`},options:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`].map(e=>({value:e,label:e}))})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(S1.Text,{style:{fontSize:12,color:`#64748b`,display:`block`,marginBottom:6},children:`分辨率`}),(0,$.jsx)(bw,{value:C.resolution,onChange:e=>w(t=>t?{...t,resolution:e}:null),style:{width:`100%`},options:[`480p`,`720p`,`1080p`].map(e=>({value:e,label:e}))})]})]})})()})})]})},n9=({value:e,duration:t=1200})=>{let[n,r]=(0,x.useState)(0),i=(0,x.useRef)(0);return(0,x.useEffect)(()=>{let a=n,o=e-a;if(o===0)return;let s=performance.now(),c=e=>{let n=e-s,l=Math.min(n/t,1);r(a+o*(1-(1-l)**3)),l<1&&(i.current=requestAnimationFrame(c))};return i.current=requestAnimationFrame(c),()=>cancelAnimationFrame(i.current)},[e]),(0,$.jsx)($.Fragment,{children:n.toLocaleString()})},r9=()=>{let{user:e}=P7(),[t,n]=(0,x.useState)([]),[r,i]=(0,x.useState)(!1),[a,o]=(0,x.useState)(1),[s,c]=(0,x.useState)(10),[l,u]=(0,x.useState)(0);(0,x.useEffect)(()=>{(async()=>{i(!0);let e=await P5(a,s);n(e.records),u(e.total),i(!1)})()},[a,s]);let d=(e,t)=>{o(e),c(t)},f=t.filter(e=>e.type===`recharge`).reduce((e,t)=>e+t.amount,0),p=t.filter(e=>e.type===`consume`).reduce((e,t)=>e+Math.abs(t.amount),0);return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(bJ,{gutter:[16,16],style:{marginBottom:24},children:[(0,$.jsx)(MV,{xs:24,sm:8,children:(0,$.jsxs)(`div`,{className:`animate-fadeInUp`,style:{borderRadius:16,padding:24,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,position:`relative`,overflow:`hidden`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,right:-20,top:-20,width:120,height:120,borderRadius:`50%`,background:`rgba(255,255,255,0.1)`}}),(0,$.jsxs)(`div`,{style:{position:`relative`},children:[(0,$.jsxs)(NU,{style:{marginBottom:10},children:[(0,$.jsx)(B8,{style:{color:`rgba(255,255,255,0.8)`,fontSize:16}}),(0,$.jsx)(`span`,{style:{color:`rgba(255,255,255,0.8)`,fontSize:14},children:`当前可用积分`})]}),(0,$.jsx)(`div`,{style:{color:`#fff`,fontSize:38,fontWeight:800,lineHeight:1},children:(0,$.jsx)(n9,{value:e?.credits??0})})]})]})}),(0,$.jsx)(MV,{xs:12,sm:8,children:(0,$.jsxs)(`div`,{className:`animate-fadeInUp`,style:{borderRadius:16,padding:24,background:`#fff`,border:`1px solid #f0f0f5`,animationDelay:`0.06s`},children:[(0,$.jsxs)(NU,{style:{marginBottom:10},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:`rgba(16,185,129,0.1)`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(g2,{style:{color:`#10b981`,fontSize:14}})}),(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:14},children:`累计获得`})]}),(0,$.jsx)(`div`,{style:{color:`#10b981`,fontSize:28,fontWeight:800},children:(0,$.jsx)(n9,{value:f})})]})}),(0,$.jsx)(MV,{xs:12,sm:8,children:(0,$.jsxs)(`div`,{className:`animate-fadeInUp`,style:{borderRadius:16,padding:24,background:`#fff`,border:`1px solid #f0f0f5`,animationDelay:`0.12s`},children:[(0,$.jsxs)(NU,{style:{marginBottom:10},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:`rgba(239,68,68,0.1)`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(u2,{style:{color:`#ef4444`,fontSize:14}})}),(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:14},children:`累计消耗`})]}),(0,$.jsx)(`div`,{style:{color:`#ef4444`,fontSize:28,fontWeight:800},children:(0,$.jsx)(n9,{value:p})})]})})]}),(0,$.jsxs)(`div`,{className:`animate-fadeInUp`,style:{animationDelay:`0.15s`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:12},children:[(0,$.jsx)(y8,{style:{color:`#6366f1`,fontSize:16}}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:16},children:`积分明细`})]}),(0,$.jsx)(`div`,{style:{borderRadius:16,background:`#fff`,border:`1px solid #f0f0f5`,overflow:`hidden`},children:(0,$.jsx)(c$,{columns:[{title:`类型`,dataIndex:`type`,key:`type`,width:100,render:e=>(0,$.jsx)(x$,{color:e===`recharge`?`green`:`orange`,icon:e===`recharge`?(0,$.jsx)(g2,{}):(0,$.jsx)(u2,{}),children:e===`recharge`?`充值`:`消费`})},{title:`积分变动`,dataIndex:`amount`,key:`amount`,width:120,render:e=>(0,$.jsxs)(S1.Text,{strong:!0,style:{color:e>0?`#10b981`:`#ef4444`,fontSize:15},children:[e>0?`+`:``,e]})},{title:`说明`,dataIndex:`description`,key:`description`},{title:`时间`,dataIndex:`createdAt`,key:`createdAt`,width:160,render:e=>(0,$.jsx)(`span`,{className:`date-display`,translate:`no`,style:{color:`#94a3b8`},children:q7(e)})}],dataSource:t,rowKey:`id`,loading:r,pagination:{current:a,pageSize:s,total:l,onChange:d,showSizeChanger:!0,showTotal:e=>`共 ${e} 条`},scroll:{x:500}})})]})]})},i9=()=>{let[e,t]=(0,x.useState)(!0),[n,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(0),[o,s]=(0,x.useState)(0),[c,l]=(0,x.useState)(1),[u]=(0,x.useState)(10);(0,x.useEffect)(()=>{d()},[c]);let d=async()=>{t(!0);try{let e=await P5(c,u);r(e.records||[]),a(e.credits||0),s(e.total||0)}catch{r([])}t(!1)};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(bJ,{gutter:[16,16],style:{marginBottom:24},children:[(0,$.jsx)(MV,{xs:24,sm:8,children:(0,$.jsxs)(`div`,{style:{borderRadius:16,padding:24,background:`linear-gradient(135deg, #f59e0b 0%, #ea580c 100%)`,position:`relative`,overflow:`hidden`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,right:-20,top:-20,width:120,height:120,borderRadius:`50%`,background:`rgba(255,255,255,0.1)`}}),(0,$.jsxs)(`div`,{style:{position:`relative`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:10},children:[(0,$.jsx)(B8,{style:{color:`rgba(255,255,255,0.8)`,fontSize:16}}),(0,$.jsx)(`span`,{style:{color:`rgba(255,255,255,0.8)`,fontSize:14},children:`可用积分`})]}),(0,$.jsx)(`div`,{style:{color:`#fff`,fontSize:38,fontWeight:800,lineHeight:1},children:i.toLocaleString()})]})]})}),(0,$.jsx)(MV,{xs:12,sm:8,children:(0,$.jsxs)(`div`,{style:{borderRadius:16,padding:24,background:`#fff`,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:10},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:`rgba(16,185,129,0.1)`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(g6,{style:{color:`#10b981`,fontSize:14}})}),(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:14},children:`累计获得`})]}),(0,$.jsx)(`div`,{style:{color:`#10b981`,fontSize:28,fontWeight:800},children:n.filter(e=>e.amount>0).reduce((e,t)=>e+t.amount,0).toLocaleString()})]})}),(0,$.jsx)(MV,{xs:12,sm:8,children:(0,$.jsxs)(`div`,{style:{borderRadius:16,padding:24,background:`#fff`,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:10},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:`rgba(239,68,68,0.1)`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(y8,{style:{color:`#ef4444`,fontSize:14}})}),(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:14},children:`累计消耗`})]}),(0,$.jsx)(`div`,{style:{color:`#ef4444`,fontSize:28,fontWeight:800},children:n.filter(e=>e.amount<0).reduce((e,t)=>e+Math.abs(t.amount),0).toLocaleString()})]})})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:12},children:[(0,$.jsx)(y8,{style:{color:`#f59e0b`,fontSize:16}}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:16},children:`积分明细`})]}),(0,$.jsx)(`div`,{style:{borderRadius:16,background:`#fff`,border:`1px solid #f0f0f5`,overflow:`hidden`},children:(0,$.jsx)(hq,{spinning:e,children:n.length===0?(0,$.jsx)(WC,{description:(0,$.jsx)(`span`,{style:{color:`#94a3b8`},children:`暂无积分变动记录`})}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c$,{dataSource:n,columns:[{title:`变动类型`,dataIndex:`type`,key:`type`,width:120,render:e=>{let t={recharge:{color:`#10b981`,label:`充值`,bg:`rgba(16,185,129,0.1)`},consume:{color:`#ef4444`,label:`消费`,bg:`rgba(239,68,68,0.1)`},admin:{color:`#f59e0b`,label:`管理员调整`,bg:`rgba(245,158,11,0.1)`},refund:{color:`#8b5cf6`,label:`退款`,bg:`rgba(139,92,246,0.1)`}}[e]||{color:`#64748b`,label:e,bg:`rgba(100,116,139,0.1)`};return(0,$.jsx)(x$,{color:t.color,style:{background:t.bg,fontWeight:500,padding:`4px 12px`},children:t.label})}},{title:`描述`,dataIndex:`description`,key:`description`,ellipsis:!0},{title:`变动积分`,dataIndex:`amount`,key:`amount`,width:120,align:`right`,render:e=>(0,$.jsxs)(S1.Text,{strong:!0,style:{fontWeight:700,color:e>0?`#10b981`:`#ef4444`,fontSize:15},children:[e>0?`+`:``,e]})},{title:`创建时间`,key:`createdAt`,width:180,render:(e,t)=>{let n=t.created_at||t.createdAt||t.create_time||t.createTime;return n?new Date(n).toLocaleString(`zh-CN`):`-`}}],rowKey:`id`,pagination:!1,bordered:!1}),(0,$.jsx)(`div`,{style:{padding:`16px`,textAlign:`right`},children:(0,$.jsx)(JK,{current:c,pageSize:u,total:o,onChange:e=>{l(e)},size:`small`})})]})})})]})]})},a9=()=>{let[e,t]=(0,x.useState)(!0),[n,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(0),[o,s]=(0,x.useState)(1),[c]=(0,x.useState)(10);(0,x.useEffect)(()=>{l()},[o]);let l=async()=>{t(!0);try{let e=await q5(o,c);r(e.items||[]),a(e.total||0)}catch{r([])}t(!1)};return(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:12},children:[(0,$.jsx)(RU,{style:{color:`#0ea5e9`,fontSize:16}}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:16},children:`订单记录`}),(0,$.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:[`共 `,n.length,` 条记录`]})]}),(0,$.jsx)(`div`,{style:{borderRadius:16,background:`#fff`,border:`1px solid #f0f0f5`,overflow:`hidden`},children:(0,$.jsx)(hq,{spinning:e,children:n.length===0?(0,$.jsx)(WC,{description:(0,$.jsx)(`span`,{style:{color:`#94a3b8`},children:`暂无订单记录`})}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c$,{dataSource:n,columns:[{title:`订单号`,key:`orderNo`,width:200,render:(e,t)=>(0,$.jsx)(`span`,{style:{fontFamily:`monospace`,fontSize:13,color:`#64748b`},children:t.order_no||t.orderNo||t.id})},{title:`支付方式`,key:`paymentMethod`,width:100,render:(e,t)=>{let n=t.payment_method||t.paymentMethod||`wechat`,r={alipay:{icon:(0,$.jsx)(t2,{style:{fontSize:16}}),label:`支付宝`,color:`#1677ff`},wechat:{icon:(0,$.jsx)(K8,{style:{fontSize:16}}),label:`微信支付`,color:`#07c160`}},i=r[n]||r.wechat;return(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{color:i.color},children:i.icon}),(0,$.jsx)(`span`,{style:{fontSize:13,color:`#374151`},children:i.label})]})}},{title:`金额`,key:`amount`,width:100,align:`right`,render:(e,t)=>{let n=t.amount||t.total_amount||0;return(0,$.jsxs)(S1.Text,{strong:!0,style:{fontWeight:700,fontSize:14,color:`#1e293b`},children:[`¥`,n]})}},{title:`获得积分`,key:`credits`,width:100,align:`center`,render:(e,t)=>{let n=t.credits||t.credit_amount||0;return(0,$.jsx)(S1.Text,{strong:!0,style:{fontWeight:600,fontSize:14,color:`#f59e0b`},children:n})}},{title:`状态`,key:`status`,width:100,render:(e,t)=>{let n=t.status||`pending`,r={pending:{color:`#f59e0b`,label:`待支付`,bg:`rgba(245,158,11,0.1)`},paid:{color:`#10b981`,label:`已支付`,bg:`rgba(16,185,129,0.1)`},refunded:{color:`#94a3b8`,label:`已退款`,bg:`rgba(148,163,184,0.1)`},failed:{color:`#ef4444`,label:`支付失败`,bg:`rgba(239,68,68,0.1)`},cancelled:{color:`#64748b`,label:`已取消`,bg:`rgba(100,116,139,0.1)`},processing:{color:`#0ea5e9`,label:`处理中`,bg:`rgba(14,165,233,0.1)`}}[n]||{color:`#64748b`,label:n,bg:`rgba(100,116,139,0.1)`};return(0,$.jsx)(x$,{color:r.color,style:{background:r.bg,fontWeight:500,padding:`4px 12px`},children:r.label})}},{title:`创建时间`,key:`createdAt`,width:180,render:(e,t)=>{let n=t.created_at||t.createdAt;return n?new Date(n).toLocaleString(`zh-CN`):`-`}},{title:`支付时间`,key:`paidAt`,width:180,render:(e,t)=>{let n=t.paid_at||t.paidAt;return n?new Date(n).toLocaleString(`zh-CN`):`-`}}],rowKey:`order_no`,pagination:!1,bordered:!1}),(0,$.jsx)(`div`,{style:{padding:`16px`,textAlign:`right`},children:(0,$.jsx)(JK,{current:o,pageSize:c,total:i,onChange:e=>{s(e)},size:`small`})})]})})})]})})},o9=()=>{let[e,t]=(0,x.useState)(!0),[n,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(0),[o,s]=(0,x.useState)(0),[c,l]=(0,x.useState)(1),[u]=(0,x.useState)(10);(0,x.useEffect)(()=>{d(),f()},[c]);let d=async()=>{t(!0);try{let e=await z5(c,u);r(e.items||[]),s(e.total||0)}catch{r([])}t(!1)},f=async()=>{try{a(await B5())}catch{a(0)}},p=async e=>{try{await V5(e),d(),f()}catch{}};return(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:12},children:[(0,$.jsx)(j2,{style:{color:`#6366f1`,fontSize:16}}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:16},children:`消息中心`}),(0,$.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:[`未读 `,i,` 条`]})]}),(0,$.jsx)(`div`,{style:{borderRadius:16,background:`#fff`,border:`1px solid #f0f0f5`,overflow:`hidden`},children:(0,$.jsx)(hq,{spinning:e,children:n.length===0?(0,$.jsx)(WC,{description:(0,$.jsx)(`span`,{style:{color:`#94a3b8`},children:`暂无消息`})}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c$,{dataSource:n,columns:[{title:`类型`,dataIndex:`type`,key:`type`,width:100,render:e=>{let t={system:{color:`#6366f1`,label:`系统`,bg:`rgba(99,102,241,0.1)`,icon:(0,$.jsx)(B6,{style:{fontSize:14}})},credit:{color:`#f59e0b`,label:`积分`,bg:`rgba(245,158,11,0.1)`,icon:(0,$.jsx)(B8,{style:{fontSize:14}})},promo:{color:`#8b5cf6`,label:`活动`,bg:`rgba(139,92,246,0.1)`,icon:(0,$.jsx)(t3,{style:{fontSize:14}})}},n=t[e]||t.system;return(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{color:n.color},children:n.icon}),(0,$.jsx)(`span`,{style:{fontSize:13,color:n.color,fontWeight:500},children:n.label})]})}},{title:`标题`,dataIndex:`title`,key:`title`,ellipsis:!0},{title:`内容`,dataIndex:`content`,key:`content`,ellipsis:!0},{title:`状态`,dataIndex:`isRead`,key:`isRead`,width:80,render:(e,t)=>e??t.is_read?(0,$.jsx)(x$,{color:`gray`,style:{background:`rgba(148,163,184,0.1)`},children:`已读`}):(0,$.jsx)(x$,{color:`purple`,style:{background:`rgba(139,92,246,0.1)`},children:`未读`})},{title:`创建时间`,dataIndex:`createdAt`,key:`createdAt`,width:160,render:e=>{if(!e)return`-`;let t=new Date(e),n=new Date().getTime()-t.getTime(),r=Math.floor(n/(1e3*60*60));if(r<1)return`刚刚`;if(r<24)return`${r}小时前`;let i=Math.floor(r/24);return i<7?`${i}天前`:t.toLocaleDateString(`zh-CN`)}},{title:`操作`,key:`action`,width:100,render:(e,t)=>t.isRead??t.is_read?null:(0,$.jsx)(kD,{type:`text`,size:`small`,onClick:()=>p(t.id),style:{color:`#6366f1`},children:`标记已读`})}],rowKey:`id`,pagination:!1,bordered:!1}),(0,$.jsx)(`div`,{style:{padding:`16px`,textAlign:`right`},children:(0,$.jsx)(JK,{current:c,pageSize:u,total:o,onChange:e=>{l(e)},size:`small`})})]})})})]})})},s9=()=>{let[e]=wn(),[t,n]=(0,x.useState)(`credits`);return(0,x.useEffect)(()=>{(e.get(`tab`)||`credits`)===`orders`?n(`orders`):n(`credits`)},[e]),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Pz,{activeKey:t,onChange:n,items:[{key:`credits`,label:`积分明细`},{key:`orders`,label:`订单记录`}],style:{marginBottom:24},size:`large`}),t===`credits`&&(0,$.jsx)(i9,{}),t===`orders`&&(0,$.jsx)(a9,{})]})},{Header:c9,Sider:Lee,Content:l9}=_K,{TextArea:u9}=cK,{Option:d9}=bw,{Text:f9}=S1,p9=()=>{let[e,t]=(0,x.useState)(!1),[n,r]=(0,x.useState)(`1`),[i,a]=(0,x.useState)([]),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(`image`),[u,d]=(0,x.useState)(`请选择`),[f,p]=(0,x.useState)(!1),[m,h]=(0,x.useState)(!1),[g,_]=(0,x.useState)([]),[v,y]=(0,x.useState)(!1),[b,S]=(0,x.useState)(``),[C,w]=(0,x.useState)(`image`),T=(0,x.useRef)(null),[E,D]=(0,x.useState)(new Set),O=e=>{if(!e)return null;try{let t=new URL(e).searchParams.get(`exp`);return t?parseInt(t,10):null}catch{try{let t=e.indexOf(`?`);if(t!==-1){let n=e.substring(t+1),r=new URLSearchParams(n).get(`exp`);if(r)return parseInt(r,10)}return null}catch{return null}}},k=e=>{let t=O(e);return t?Math.floor(Date.now()/1e3)>t:!1},[A,j]=(0,x.useState)(!1),[M,N]=(0,x.useState)(``),[P,F]=(0,x.useState)(`image`),[I,L]=(0,x.useState)(``),[R,z]=(0,x.useState)(!1),[B,V]=(0,x.useState)(null),[H,U]=(0,x.useState)({x:0,y:0}),[W,G]=(0,x.useState)(`1:1`),[K,ee]=(0,x.useState)(`2K`),[te,q]=(0,x.useState)(2048),[J,Y]=(0,x.useState)(2048),[ne,X]=(0,x.useState)(!1),[re,ie]=(0,x.useState)(!1),[ae,oe]=(0,x.useState)([]),[se,ce]=(0,x.useState)([]),[le,ue]=(0,x.useState)([]),[de,fe]=(0,x.useState)(0),[pe,me]=(0,x.useState)(0),[he,ge]=(0,x.useState)(5),[_e,ve]=(0,x.useState)(`16:9`),[ye,be]=(0,x.useState)(`720p`),[xe,Se]=(0,x.useState)(!1),[Ce,we]=(0,x.useState)({ratios:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:[`480p`,`720p`,`1080p`],durations:[5,8,10,12,15]}),[Te,Ee]=(0,x.useState)([]),[De,Oe]=(0,x.useState)([]),[ke,Ae]=(0,x.useState)([]),[je,Me]=(0,x.useState)([]),Ne=()=>{let e={};return e=je.find(e=>e.modelConfigId===u&&e.genType===c&&e.resolution===(c===`video`?ye:K)),e||(c===`video`?(e={perSecondCredits:2,baseCredits:60,ratio:1},ye===`1080p`?e.ratio=2:ye===`720p`?e.ratio=1.5:ye===`480p`&&(e.ratio=1)):(e={perSecondCredits:.1,baseCredits:4,ratio:1},K===`2K`?e.ratio=1:K===`4K`&&(e.ratio=2))),c===`video`?Math.round((he*e.perSecondCredits+e.baseCredits)*e.ratio):e.baseCredits*e.ratio},Pe=(0,x.useRef)(null),Fe=(0,x.useRef)(null),Ie=(0,x.useRef)(null);(0,x.useRef)(!0),i.find(e=>e.id===n);let[Le,Re]=(0,x.useState)([]),[ze,Be]=(0,x.useState)({page:1,pageSize:20}),[Ve,He]=(0,x.useState)(0),[Ue,We]=(0,x.useState)(!1),Ge=(0,x.useRef)(!1),Ke=(0,x.useCallback)((e=`instant`)=>{let t=Fe.current;t&&requestAnimationFrame(()=>{t.scrollTo({top:t.scrollHeight,behavior:e})})},[]);(0,x.useEffect)(()=>{if(Le.length>0&&!Ge.current){let e=setTimeout(()=>{Ke(`smooth`),Ge.current=!0},300);return()=>clearTimeout(e)}},[Le.length,Ke]),(0,x.useEffect)(()=>{let e=c===`image`?Te.image:Te.video;e&&e.length>0&&(e.some(e=>e.id===u)||d(e[0].id))},[c,Te]),(0,x.useEffect)(()=>{let e=e=>{let t=e.target;xe&&!t.closest(`.image-settings-popover`)&&!t.closest(`.image-settings-trigger`)&&Se(!1),ne&&!t.closest(`.image-settings-popover`)&&!t.closest(`.image-settings-trigger`)&&X(!1),re&&!t.closest(`.image-settings-popover`)&&!t.closest(`.image-settings-trigger`)&&ie(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[xe,ne,re]),(0,x.useEffect)(()=>{Z5().then(e=>{if(Ee(e.engine),e.engine.video&&e.engine.video.length>0){let t=e.engine.video[0];we({ratios:t.supportedRatios||[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:t.supportedResolutions||[`480p`,`720p`,`1080p`],durations:t.supportedDurations||[5,8,10,12,15]}),t.supportedRatios?.length>0&&ve(t.supportedRatios[0]),t.supportedResolutions?.length>0&&be(t.supportedResolutions[0]),t.supportedDurations?.length>0&&ge(t.supportedDurations[0]),d(t.id)}}).catch(()=>{}),X5().then(e=>{Oe(e.video||[]),Ae(e.image||[])}).catch(e=>{}),r7().then(e=>{Me(e)}),$5(ze).then(e=>{let t=e.items,n=e.total;Re(t),He(n)}),L5().then(e=>{let t=e.items?.[0]?.supportedSizes||{},n=[],r=[],i=[];for(let e in t[`2K`])n.push(e),r.push(t[`2K`][e]);oe(n.map((e,t)=>({value:e,label:String(t)})));for(let e in t[`4K`])i.push(t[`4K`][e]);ue([r,i]),ce([{value:`2K`,label:`高清 2K`},{value:`4K`,label:`超清 4K`}])}).catch(()=>{})},[]),(0,x.useEffect)(()=>{if(Ie.current&&=(clearInterval(Ie.current),null),Le.some(e=>e.status===`generating`))return Ie.current=window.setInterval(()=>{$5(ze).then(e=>{Re(t=>t.map(t=>t.status===`generating`&&e.items.find(e=>e.id===t.id)||t)),He(e.total)}).catch(e=>{})},1e4),()=>{Ie.current&&=(clearInterval(Ie.current),null)}},[Le,ze]),(0,x.useEffect)(()=>{if(!ne)return;let e=e=>{let t=e.target;!t.closest(`.image-settings-popover`)&&!t.closest(`.image-settings-trigger`)&&X(!1)};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[ne]),(0,x.useEffect)(()=>{if(!re)return;let e=e=>{let t=e.target;!t.closest(`.image-settings-popover`)&&!t.closest(`.image-settings-trigger`)&&ie(!1)};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[re]),(0,x.useEffect)(()=>{le[pe]&&le[pe][de]!==void 0&&(q(Number(le[pe][de].substring(0,4))),Y(Number(le[pe][de].substring(5))))},[de]),(0,x.useEffect)(()=>{le[pe]&&le[pe][de]!==void 0&&(q(Number(le[pe][de].substring(0,4))),Y(Number(le[pe][de].substring(5))))},[pe]);let qe=e=>{fe(e)},Je=e=>{me(parseInt(e===`2K`?`0`:`1`))},Ye=()=>{q(J),Y(te)},Xe=async()=>{if(!o.trim()&&g.length===0){Aq.warning(`请输入内容或上传图片/视频`);return}let e={id:``,gen_type:c,original_prompt:o.trim(),engine_id:u,idempotency_key:new Date().toLocaleString(`zh-CN`),media_references:g.length>0?[...g]:void 0,...c===`image`&&{image_size:K,image_proportion:W,image_px:te+`x`+J},...c===`video`&&{duration:he,aspect_ratio:_e,resolution:ye}};h(!0),Q5(e).then(()=>{s(``),_([]);let e={...ze,page:1};Be(e),$5(e).then(e=>{Re(t=>[...t,e.items[e.items.length-1]]),He(e.total),setTimeout(()=>{Pe.current?.scrollIntoView({behavior:`smooth`})},100)}).catch(e=>{})}).catch(e=>{let t=`创建任务失败`;e?.response?.data?.detail?t=e.response.data.detail:e?.data?.detail?t=e.data.detail:e?.detail?t=e.detail:e?.message&&(t=e.message),Aq.error({content:t,duration:3})}).finally(()=>{h(!1)}),setTimeout(()=>{h(!1)},3e3)},Ze=async()=>{if(Le.length>=Ve)return;let e=Fe.current;if(!e)return;let t=e.scrollTop,n=e.scrollHeight;We(!0);try{let r=ze.page+1,i=await $5({...ze,page:r}),a=Array.isArray(i)?{items:i,total:i.length}:i;a.total&&He(a.total),Be(e=>({...e,page:r})),Re(e=>{let t=new Set(e.map(e=>e.id));return[...a.items.filter(e=>!e.id||t.has(e.id)?!1:(t.add(e.id),!0)),...e]}),setTimeout(()=>{e.scrollTop=t+(e.scrollHeight-n)},200)}catch{}finally{We(!1)}},Qe=async e=>{let t=e.type.startsWith(`image/`),n=e.type.startsWith(`video/`);if(!t&&!n)return Aq.error(`仅支持图片或视频文件`),!1;let r=n?100:10;if(e.size/1024/1024>r)return Aq.error(`${n?`视频`:`图片`}大小不能超过${r}MB`),!1;let i=g.filter(e=>e.type===`image`).length;if(t&&i>=4)return Aq.error(`最多上传4张图片`),!1;let a=g.filter(e=>e.type===`video`).length;if(n&&a>=1)return Aq.error(`最多上传1个视频`),!1;p(!0);try{let n=await(t?k5:A5)(e);_(r=>[...r,{name:e.name,type:t?`image`:`video`,url:n.url}]),Aq.success(`${t?`图片`:`视频`}上传成功`)}catch{Aq.error(`上传失败`)}finally{p(!1)}return!1},$e=e=>{_(t=>t.filter((t,n)=>n!==e))},et=e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),Xe())},tt=()=>{y(!1),S(``),T.current&&T.current.pause()},nt=e=>{if(e.preventDefault(),e.stopPropagation(),!b)return;let t=document.createElement(`a`);t.href=`http://ceshi.apiforeign.minzhong.cn${b}&download=1`,t.download=C===`image`?`image.png`:`video.mp4`,document.body.appendChild(t),t.click(),document.body.removeChild(t)};return(0,$.jsxs)(_K,{style:{height:`calc(100vh - 90px)`,overflow:`auto`},children:[!1,(0,$.jsxs)(_K,{style:{flex:1,background:`#ffffffff`},children:[(0,$.jsx)(c9,{style:{background:`#fff`,borderBottom:`1px solid #f0f0f0`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:(0,$.jsx)(`div`,{children:(0,$.jsx)(f9,{strong:!0,style:{fontSize:16},children:`开启创作`})})}),(0,$.jsxs)(l9,{style:{margin:0,display:`flex`,flexDirection:`column`,overflow:`hidden`},children:[Le.length===0&&(0,$.jsxs)(`div`,{style:{flex:1,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`},children:[(0,$.jsx)(`div`,{style:{width:80,height:80,borderRadius:50,background:`linear-gradient(135deg, #6366f1 0%, #a78bfa 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginBottom:16},children:(0,$.jsx)(T6,{style:{fontSize:40,color:`#fff`}})}),(0,$.jsx)(`h2`,{style:{margin:0,fontSize:18,fontWeight:500,color:`#333`},children:`你好,想创作什么?`}),(0,$.jsx)(`p`,{style:{margin:8,fontSize:13,color:`#999`},children:`输入想法、剧本或上传参考,开始你的创作之旅`})]}),Le.length>0&&(0,$.jsxs)(`div`,{ref:Fe,style:{height:`calc(100vh - 280px)`,overflowY:`auto`,paddingBottom:24,paddingRight:8},children:[(0,$.jsx)(`div`,{style:{padding:`8px 0`,textAlign:`center`,marginBottom:16},children:Le.length>=Ve?(0,$.jsx)(`span`,{style:{fontSize:12,color:`#999`},children:`消息全部加载`}):(0,$.jsx)(`button`,{onClick:Ze,disabled:Ue,style:{fontSize:12,color:`#6366f1`,background:`none`,border:`none`,cursor:Ue?`not-allowed`:`pointer`},children:Ue?`加载中...`:`加载更多`})}),(()=>{let e=Aq;return Le.map(t=>(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-start`,marginBottom:16},children:(0,$.jsxs)(`div`,{style:{display:`flex`,gap:10,maxWidth:`70%`},children:[(0,$.jsx)(`div`,{style:{width:36,height:36,borderRadius:50,background:`#e0e0e0`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:(0,$.jsx)(T6,{style:{color:`#666`,fontSize:16}})}),(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{margin:4,fontSize:11,color:`#999`,textAlign:`left`,display:`flex`,flexWrap:`wrap`,gap:8,alignItems:`center`},children:[(0,$.jsx)(`span`,{children:t.createdAt?.replace(`T`,` `).split(`.`)[0]}),(0,$.jsx)(`span`,{children:t.engineSnapshot.name}),(0,$.jsx)(`span`,{children:t.genType===`image`?`${t.imageProportion||``} · ${t.imagePx||``} · ${t.imageSize||``}`:`${t.duration||``}s · ${t.aspectRatio||``} · ${t.resolution||``}`}),(0,$.jsxs)(`span`,{style:{marginLeft:8},children:[`消耗积分:`,t.creditsCost]}),t.mediaReferences&&t.mediaReferences.length>0&&(0,$.jsx)(`span`,{style:{marginLeft:20,color:`#6366f1`,cursor:`pointer`},onClick:e=>{e.stopPropagation();let n=e.currentTarget.getBoundingClientRect();U({x:n.left,y:n.top-10}),V(t.id),z(!0)},children:`附件详情`})]}),(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:`16px 16px 16px 4px`,padding:`12px 16px`,width:`600px`,boxShadow:`0 2px 8px rgba(0,0,0,0.06)`,position:`relative`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:8,right:8,zIndex:100},children:(0,$.jsx)(Lq,{title:`确定要删除吗?`,onConfirm:async()=>{try{await n7(t.id),e.success(`删除成功`),Re(e=>e.filter(e=>e.id!==t.id)),He(e=>e-1)}catch(t){let n=t?.response?.data?.message||t?.message||`删除失败`;e.error(n)}},okText:`确定`,cancelText:`取消`,children:(0,$.jsx)(`button`,{onClick:e=>e.stopPropagation(),style:{width:28,height:28,borderRadius:8,border:`none`,background:`rgba(146, 144, 144, 1)`,color:`#ffffffff`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s ease`,padding:0},onMouseEnter:e=>{e.currentTarget.style.background=`#fff2f0`,e.currentTarget.style.color=`#ff4d4f`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(0,0,0,0.05)`,e.currentTarget.style.color=`#999`},children:(0,$.jsx)(w$,{style:{fontSize:12}})})})}),(0,$.jsxs)(`div`,{style:{position:`relative`,margin:`8px 0`,padding:`12px 16px`,backgroundColor:`#f8fafc`,borderRadius:8,border:`1px solid #e2e8f0`,fontSize:13,color:`#475569`,lineHeight:1.6,cursor:`pointer`,transition:`all 0.2s ease`,boxShadow:`0 1px 3px rgba(0,0,0,0.05)`},onMouseEnter:()=>{D(e=>{let n=new Set(e);return n.add(t.id),n})},onMouseLeave:()=>{D(e=>{let n=new Set(e);return n.delete(t.id),n})},children:[(0,$.jsx)(`div`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,display:E.has(t.id)?`none`:`block`},children:t.originalPrompt}),(0,$.jsx)(`div`,{style:{maxHeight:200,overflowY:`auto`,display:E.has(t.id)?`block`:`none`,wordBreak:`break-word`},children:t.originalPrompt})]}),t.status===`generating`&&(0,$.jsxs)(`div`,{style:{height:200,marginBottom:10,marginTop:12,borderRadius:8,overflow:`hidden`,position:`relative`,background:`linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #e0e7ff 100%)`},children:[(0,$.jsxs)(`div`,{style:{position:`absolute`,top:12,left:12,display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsx)(`div`,{style:{width:24,height:24,border:`2px solid #c7d2fe`,borderTopColor:`#6366f1`,borderRadius:`50%`,animation:`spin 1s linear infinite`}}),(0,$.jsx)(`span`,{style:{fontSize:13,color:`#6366f1`},children:`生成中...`})]}),(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,background:`linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%)`,animation:`shimmer 2s infinite`}})]}),t.status===`failed`&&(0,$.jsx)(`div`,{style:{height:200,marginBottom:10,marginTop:12,borderRadius:8,overflow:`hidden`,position:`relative`,backgroundColor:`#fafafa`,border:`1px dashed #e2e8f0`},children:(0,$.jsxs)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:48,height:48,borderRadius:`50%`,background:`#fff2f0`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(U8,{style:{color:`#ff4d4f`,fontSize:22}})}),(0,$.jsx)(`span`,{style:{fontSize:14,color:`#94a3b8`},children:`生成失败`})]})}),t.status===`completed`&&(0,$.jsx)(`div`,{style:{gridTemplateColumns:`repeat(auto-fill, minmax(150px, 1fr))`,gap:8,marginBottom:10,marginTop:12,width:`100%`},children:(0,$.jsx)(`div`,{onClick:()=>{S(t.genType===`image`?t.imageUrl:t.videoUrl),w(t.genType===`image`?`image`:`video`),y(!0)},style:{cursor:`pointer`,overflow:`hidden`,borderRadius:8,position:`relative`,height:200},children:t.genType===`image`?(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn/static${t.imageUrl}&w=300&p=50`,alt:t.name,style:{width:`100%`,height:`100%`,borderRadius:8,objectFit:`contain`,backgroundColor:`#f1f5f9`,transition:`transform 0.2s`},onMouseEnter:e=>{e.currentTarget.style.transform=`scale(1.05)`},onMouseLeave:e=>{e.currentTarget.style.transform=`scale(1)`}}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn/static${t.videoCoverUrl}&w=300&p=50`,alt:t.name,style:{width:`100%`,height:`100%`,borderRadius:8,objectFit:`contain`,backgroundColor:`#f1f5f9`,transition:`transform 0.2s`},onMouseEnter:e=>{e.currentTarget.style.transform=`scale(1.05)`},onMouseLeave:e=>{e.currentTarget.style.transform=`scale(1)`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:56,height:56,background:`rgba(0,0,0,0.6)`,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`,boxShadow:`0 4px 12px rgba(0,0,0,0.3)`},children:(0,$.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`#fff`,children:(0,$.jsx)(`path`,{d:`M8 5v14l11-7z`})})})]})})})]})]})]})},t.id))})(),(0,$.jsx)(`div`,{ref:Pe})]}),R&&B&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{position:`fixed`,top:0,left:0,right:0,bottom:0,background:`transparent`,zIndex:9998},onClick:()=>{z(!1),V(null)}}),(0,$.jsxs)(`div`,{style:{position:`fixed`,top:H.y-100,left:H.x,background:`#fff`,borderRadius:12,boxShadow:`0 4px 20px rgba(0,0,0,0.15)`,padding:16,minWidth:200,zIndex:9999},onClick:e=>e.stopPropagation(),children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:12},children:[(0,$.jsx)(`span`,{style:{fontSize:14,fontWeight:500},children:`附件列表`}),(0,$.jsx)(`button`,{onClick:()=>{z(!1),V(null)},style:{width:24,height:24,borderRadius:`50%`,border:`none`,background:`#ff4d4f`,cursor:`pointer`,fontSize:14,color:`#fff`,fontWeight:`bold`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.background=`#ff7875`,e.currentTarget.style.transform=`scale(1.1)`},onMouseLeave:e=>{e.currentTarget.style.background=`#ff4d4f`,e.currentTarget.style.transform=`scale(1)`},children:`×`})]}),Le.find(e=>e.id===B)?.mediaReferences?.map((e,t)=>(0,$.jsxs)(`div`,{onClick:()=>{N(e.url),F(e.url.includes(`.mp4`)||e.url.includes(`.mov`)||e.url.includes(`.avi`)||e.url.includes(`.video`)?`video`:`image`),L(e.name),j(!0),z(!1),V(null)},style:{display:`flex`,alignItems:`center`,gap:8,padding:`8px 12px`,borderRadius:6,cursor:`pointer`,fontSize:13,color:`#333`,transition:`background 0.2s`},onMouseEnter:e=>e.currentTarget.style.background=`#f5f5f5`,onMouseLeave:e=>e.currentTarget.style.background=`transparent`,children:[e.type===`image`?(0,$.jsx)(i6,{style:{color:`#3b82f6`,fontSize:14}}):(0,$.jsx)(L8,{style:{color:`#f59e0b`,fontSize:14}}),e.name]},t))]})]}),(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:24,padding:16,boxShadow:`0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06)`,transition:`all 0.3s ease`},children:[g.length>0&&(0,$.jsx)(`div`,{style:{display:`flex`,gap:8,marginBottom:12,overflowX:`auto`},children:g.map((e,t)=>(0,$.jsxs)(`div`,{style:{position:`relative`,width:e.type===`video`?120:80,flexShrink:0},children:[e.type===`image`?(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${e.url}`,alt:e.name,style:{width:`100%`,height:80,objectFit:`cover`,borderRadius:8}}):(0,$.jsx)(`video`,{src:`http://ceshi.apiforeign.minzhong.cn${e.url}`,style:{width:`100%`,height:80,objectFit:`cover`,borderRadius:8}}),(0,$.jsx)(`button`,{onClick:()=>$e(t),style:{position:`absolute`,top:0,right:0,width:20,height:20,border:`none`,background:`#ff4d4f`,borderRadius:50,cursor:`pointer`,color:`#fff`,fontSize:12,display:`flex`,alignItems:`center`,justifyContent:`center`},children:`×`})]},`media-${t}`))}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12,padding:`12px 16px`,backgroundColor:`#ffffff`,borderRadius:16,border:`1px solid #e2e8f0`,boxShadow:`0 2px 8px rgba(0, 0, 0, 0.06)`,transition:`all 0.2s ease`},children:[(0,$.jsx)(g0,{accept:`image/*,video/*`,showUploadList:!1,beforeUpload:Qe,children:(0,$.jsx)(lT,{title:`图片${g.filter(e=>e.type===`image`).length}/4,视频${g.filter(e=>e.type===`video`).length}/1`,children:(0,$.jsx)(`div`,{style:{width:48,height:48,borderRadius:12,border:`2px dashed #cbd5e1`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.25s ease`,flexShrink:0,backgroundColor:`#f8fafc`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#6366f1`,e.currentTarget.style.backgroundColor=`rgba(99, 102, 241, 0.06)`,e.currentTarget.style.transform=`scale(1.05)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`#cbd5e1`,e.currentTarget.style.backgroundColor=`#f8fafc`,e.currentTarget.style.transform=`scale(1)`},children:f?(0,$.jsx)(qm,{style:{fontSize:18,color:`#6366f1`}}):(0,$.jsx)(IR,{style:{fontSize:18,color:`#64748b`}})})})}),(0,$.jsx)(u9,{value:o,onChange:e=>s(e.target.value),onKeyPress:et,placeholder:`上传最多4张参考图,输入提示词描述您想生成的画面...`,autoSize:{minRows:1,maxRows:4},style:{flex:1,borderRadius:12,border:`none`,outline:`none`,boxShadow:`none`,fontSize:14,lineHeight:1.5,color:`#1e293b`,resize:`none`},disabled:m}),(0,$.jsx)(kD,{type:`primary`,shape:`circle`,icon:(0,$.jsx)(L6,{}),onClick:Xe,disabled:!o.trim()&&g.length===0,loading:m,style:{flexShrink:0,width:48,height:48,borderRadius:14,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.35)`,transition:`all 0.2s ease`}})]}),(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginTop:12,paddingTop:12,borderTop:`1px solid #f0f0f0`},children:(0,$.jsxs)(NU,{size:`middle`,children:[(0,$.jsxs)(bw,{value:c,onChange:e=>l(e),style:{width:100,outline:`none`,background:`#f1f5f9`,border:`none`,borderRadius:8,height:34},size:`middle`,children:[(0,$.jsxs)(d9,{value:`image`,children:[(0,$.jsx)(i6,{style:{marginRight:6,fontSize:14}}),(0,$.jsx)(`span`,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:`图片`})]}),(0,$.jsxs)(d9,{value:`video`,children:[(0,$.jsx)(L8,{style:{marginRight:6,fontSize:14}}),(0,$.jsx)(`span`,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:`视频`})]})]}),(0,$.jsxs)(`div`,{style:{position:`relative`,display:`inline-block`},children:[(0,$.jsxs)(`button`,{onClick:()=>Se(!0),className:`image-settings-trigger`,style:{minWidth:200,padding:`4px 12px`,height:34,borderRadius:8,border:`none`,backgroundColor:`#f1f5f9`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,gap:6,transition:`all 0.2s`},children:[(0,$.jsx)(B6,{style:{fontSize:14,color:`#64748b`}}),(0,$.jsx)(f9,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:c===`image`?Te.image?.find(e=>e.id===u)?.name:Te.video?.find(e=>e.id===u)?.name||`选择引擎`})]}),xe&&(0,$.jsx)(`div`,{className:`image-settings-popover`,style:{position:`absolute`,bottom:`calc(100% + 8px)`,left:0,width:360,backgroundColor:`#fff`,borderRadius:16,boxShadow:`0 10px 40px rgba(0,0,0,0.15)`,padding:16,border:`none`,zIndex:9999},onClick:e=>e.stopPropagation(),children:(0,$.jsxs)(`div`,{style:{marginBottom:8},children:[(0,$.jsx)(f9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择引擎`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:4},children:(c===`image`?Te.image:Te.video)?.map(e=>(0,$.jsxs)(`button`,{onClick:()=>{d(e.id),c===`video`&&(we({ratios:e.supportedRatios||[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:e.supportedResolutions||[`480p`,`720p`,`1080p`],durations:e.supportedDurations||[5,8,10,12,15]}),e.supportedRatios?.includes(_e)||ve(e.supportedRatios?.[0]||`16:9`),e.supportedResolutions?.includes(ye)||be(e.supportedResolutions?.[0]||`720p`),e.supportedDurations?.includes(he)||ge(e.supportedDurations?.[0]||5)),Se(!1)},style:{flex:1,minHeight:48,borderRadius:8,border:u===e.id?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:u===e.id?`#fff`:`#f9fafb`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`flex-start`,padding:`8px 12px`,transition:`all 0.2s`,textAlign:`left`},children:[(0,$.jsx)(`span`,{style:{fontSize:13,fontWeight:u===e.id?600:500,color:u===e.id?`#6366f1`:`#4b5563`,marginBottom:2},children:e.name}),(0,$.jsx)(`span`,{style:{fontSize:11,color:`#9ca3af`}})]},e.id))})]})})]}),c===`image`&&(0,$.jsxs)(`div`,{style:{position:`relative`,display:`inline-block`},children:[(0,$.jsxs)(`button`,{onClick:()=>X(!ne),className:`image-settings-trigger`,style:{minWidth:220,padding:`4px 12px`,height:34,borderRadius:8,border:`none`,backgroundColor:`#f1f5f9`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,gap:6,transition:`all 0.2s`},children:[(0,$.jsx)(T3,{style:{fontSize:14,color:`#64748b`}}),(0,$.jsxs)(f9,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:[W===`auto`?`智能`:W,` · `,K==`2K`?`2K高清`:`4K超清`,` · `,te,`×`,J]})]}),ne&&(0,$.jsxs)(`div`,{className:`image-settings-popover`,style:{position:`absolute`,bottom:`calc(100% + 8px)`,left:0,width:480,backgroundColor:`#fff`,borderRadius:16,boxShadow:`0 10px 40px rgba(0,0,0,0.15)`,padding:16,border:`none`,zIndex:9999},onClick:e=>e.stopPropagation(),children:[(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(f9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择比例`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:4},children:ae.map(e=>(0,$.jsxs)(`button`,{onClick:()=>{G(e.value),qe(e.label)},style:{flex:`0 0 calc(11.11% - 4px)`,minWidth:44,height:52,borderRadius:6,border:W===e.value?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:W===e.value?`#fff`:`#f9fafb`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:[(0,$.jsx)(`div`,{style:{width:e.value===`auto`?14:18,height:e.value===`auto`?14:18,border:`2px solid ${W===e.value?`#6366f1`:`#9ca3af`}`,borderRadius:2,marginBottom:2,display:`flex`,alignItems:`center`,justifyContent:`center`},children:e.value===`auto`&&(0,$.jsx)(`span`,{style:{fontSize:7,color:W===e.value?`#6366f1`:`#9ca3af`},children:`智`})}),(0,$.jsx)(`span`,{style:{fontSize:9,color:W===e.value?`#6366f1`:`#6b7280`,fontWeight:W===e.value?600:400},children:e.value})]},e.value))})]}),(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(f9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择分辨率`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:6},children:se.map(e=>(0,$.jsx)(`button`,{onClick:()=>{ee(e.value),Je(e.value)},style:{flex:1,height:42,borderRadius:6,border:K===e.value?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:K===e.value?`#6366f1`:`#f9fafb`,cursor:`pointer`,display:`flex`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:(0,$.jsxs)(`span`,{style:{fontSize:12,fontWeight:600,color:K===e.value?`#fff`:`#4b5563`},children:[e.value,e.value===`4K`&&(0,$.jsx)(`span`,{style:{marginLeft:2},children:`✨`})]})},e.value))})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(f9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`尺寸`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,flex:1,maxWidth:120},children:[(0,$.jsx)(`span`,{style:{color:`#9ca3af`,fontSize:11,marginRight:4},children:`W`}),(0,$.jsx)(cK,{value:te,onChange:e=>q(Number(e.target.value)||0),style:{flex:1,textAlign:`center`,borderRadius:4,height:34,border:`1px solid #e5e7eb`,backgroundColor:`#f9fafb`,fontSize:12,fontWeight:600,color:`#1f2937`}})]}),(0,$.jsx)(`button`,{onClick:Ye,style:{width:24,height:24,borderRadius:4,border:`1px solid #e5e7eb`,backgroundColor:`#fff`,cursor:`pointer`,display:`flex`,justifyContent:`center`,alignItems:`center`,color:`#6366f1`},children:(0,$.jsx)(fG,{style:{fontSize:10}})}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,flex:1,maxWidth:120},children:[(0,$.jsx)(`span`,{style:{color:`#9ca3af`,fontSize:11,marginRight:4},children:`H`}),(0,$.jsx)(cK,{value:J,onChange:e=>Y(Number(e.target.value)||0),style:{flex:1,textAlign:`center`,borderRadius:4,height:34,border:`1px solid #e5e7eb`,backgroundColor:`#f9fafb`,fontSize:12,fontWeight:600,color:`#1f2937`}})]}),(0,$.jsx)(`span`,{style:{color:`#9ca3af`,fontSize:11},children:`PX`})]})]})]})]}),c===`video`&&(0,$.jsxs)(`div`,{style:{position:`relative`,display:`inline-block`},children:[(0,$.jsxs)(`button`,{onClick:()=>ie(!re),className:`image-settings-trigger`,style:{minWidth:220,padding:`4px 12px`,height:34,borderRadius:8,border:`none`,backgroundColor:`#f1f5f9`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,gap:6,transition:`all 0.2s`},children:[(0,$.jsx)(T3,{style:{fontSize:14,color:`#64748b`}}),(0,$.jsxs)(f9,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:[_e,` · `,he,`s · `,ye]})]}),re&&(0,$.jsxs)(`div`,{className:`image-settings-popover`,style:{position:`absolute`,bottom:`calc(100% + 8px)`,left:0,width:400,backgroundColor:`#fff`,borderRadius:16,boxShadow:`0 10px 40px rgba(0,0,0,0.15)`,padding:16,border:`none`,zIndex:9999},onClick:e=>e.stopPropagation(),children:[(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(f9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择比例`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:4},children:Ce.ratios.map(e=>(0,$.jsxs)(`button`,{onClick:()=>ve(e),style:{flex:`0 0 calc(14.28% - 4px)`,minWidth:44,height:52,borderRadius:6,border:_e===e?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:_e===e?`#fff`:`#f9fafb`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:[(0,$.jsx)(`div`,{style:{width:18,height:18,border:`2px solid ${_e===e?`#6366f1`:`#9ca3af`}`,borderRadius:2,marginBottom:2}}),(0,$.jsx)(`span`,{style:{fontSize:9,color:_e===e?`#6366f1`:`#6b7280`,fontWeight:_e===e?600:400},children:e})]},e))})]}),(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(f9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择时长`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsxs)(`div`,{style:{flex:1,position:`relative`,height:24,display:`flex`,alignItems:`center`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:0,right:0,height:6,borderRadius:3,background:`#e5e7eb`,transform:`translateY(-50%)`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:0,height:6,borderRadius:3,background:`#6366f1`,width:`${(he-Math.min(...Ce.durations))/(Math.max(...Ce.durations)-Math.min(...Ce.durations))*100}%`,transform:`translateY(-50%)`}}),(0,$.jsx)(`input`,{type:`range`,min:Math.min(...Ce.durations),max:Math.max(...Ce.durations),value:he,onChange:e=>ge(Number(e.target.value)),style:{position:`relative`,width:`100%`,height:24,borderRadius:3,background:`transparent`,outline:`none`,appearance:`none`,cursor:`pointer`,zIndex:1}})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:4,padding:`4px 12px`,backgroundColor:`#f1f5f9`,borderRadius:6},children:[(0,$.jsx)(`span`,{style:{fontSize:14,fontWeight:600,color:`#64748b`},children:he}),(0,$.jsx)(`span`,{style:{fontSize:12,color:`#9ca3af`},children:`秒`})]})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(f9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择分辨率`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:6},children:Ce.resolutions.map(e=>(0,$.jsx)(`button`,{onClick:()=>be(e),style:{flex:1,height:42,borderRadius:6,border:ye===e?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:ye===e?`#6366f1`:`#f9fafb`,cursor:`pointer`,display:`flex`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:(0,$.jsx)(`span`,{style:{fontSize:12,fontWeight:600,color:ye===e?`#fff`:`#4b5563`},children:e})},e))})]})]})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:4},children:[(0,$.jsx)(f9,{style:{fontSize:12,color:`#94a3b8`},children:`预估积分`}),(0,$.jsx)(f9,{style:{fontSize:12,color:`#666666`},children:Ne()})]})]})})]})]})]}),(0,$.jsx)(`style`,{children:`
|
||
@keyframes blink {
|
||
0%, 50% { opacity: 1; }
|
||
51%, 100% { opacity: 0.3; }
|
||
}
|
||
`}),(0,$.jsx)(Nq,{open:v,onCancel:tt,footer:[(0,$.jsx)(kD,{type:`primary`,onClick:nt,children:`下载`},`download`)],width:800,centered:!0,closeIcon:(0,$.jsx)(`button`,{onClick:tt,style:{width:28,height:28,borderRadius:`50%`,border:`none`,background:`#ff4d4f`,cursor:`pointer`,fontSize:14,color:`#fff`,fontWeight:`bold`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.background=`#ff7875`,e.currentTarget.style.transform=`scale(1.1)`},onMouseLeave:e=>{e.currentTarget.style.background=`#ff4d4f`,e.currentTarget.style.transform=`scale(1)`},children:`×`}),styles:{body:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`400px`}},children:(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:`100%`,height:`100%`},children:k(b)?(0,$.jsx)(`div`,{style:{textAlign:`center`,padding:`40px`},children:(0,$.jsx)(`p`,{style:{fontSize:16,color:`#ff4d4f`,marginBottom:16},children:`图片/视频资源已过期,请刷新重新加载~`})}):C===`image`?(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn/static${b}&w=300&q=50`,alt:`预览`,style:{width:`100%`,maxHeight:`400px`,objectFit:`contain`}}):(0,$.jsx)(`video`,{ref:T,src:`http://ceshi.apiforeign.minzhong.cn${b}`,controls:!0,style:{maxWidth:`100%`,maxHeight:`400px`}})})}),(0,$.jsx)(Nq,{open:A,onCancel:()=>j(!1),footer:[(0,$.jsx)(kD,{type:`primary`,onClick:()=>{if(!M)return;let e=document.createElement(`a`);e.href=`http://ceshi.apiforeign.minzhong.cn${M}&download=1`,e.download=I||(P===`image`?`image.png`:`video.mp4`),document.body.appendChild(e),e.click(),document.body.removeChild(e)},children:`下载`},`download`)],width:800,centered:!0,closeIcon:(0,$.jsx)(`button`,{onClick:()=>j(!1),style:{width:28,height:28,borderRadius:`50%`,border:`none`,background:`#ff4d4f`,cursor:`pointer`,fontSize:14,color:`#fff`,fontWeight:`bold`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.background=`#ff7875`,e.currentTarget.style.transform=`scale(1.1)`},onMouseLeave:e=>{e.currentTarget.style.background=`#ff4d4f`,e.currentTarget.style.transform=`scale(1)`},children:`×`}),styles:{body:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`400px`}},children:(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:`100%`,height:`100%`},children:P===`image`?(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${M}`,alt:`预览`,style:{width:`100%`,maxHeight:`400px`,objectFit:`contain`}}):(0,$.jsx)(`video`,{src:`http://ceshi.apiforeign.minzhong.cn${M}`,controls:!0,style:{maxWidth:`100%`,maxHeight:`400px`}})})})]})},{Header:m9,Content:Ree}=_K,{TextArea:h9}=cK,g9=()=>{let e=Ge(),[t,n]=(0,x.useState)([]),[r,i]=(0,x.useState)(1),[a,o]=(0,x.useState)(20),[s,c]=(0,x.useState)(0),[l,u]=(0,x.useState)([]),[d,f]=(0,x.useState)(1),[p,m]=(0,x.useState)(8),[h,g]=(0,x.useState)(0),[_,v]=(0,x.useState)(``),[y,b]=(0,x.useState)(``),[S,C]=(0,x.useState)(``),[w,T]=(0,x.useState)(null),[E,D]=(0,x.useState)(``),[O,k]=(0,x.useState)(null),[A,j]=(0,x.useState)(``),[M,N]=(0,x.useState)(!1),[P,F]=(0,x.useState)(!1),[I,L]=(0,x.useState)(!1),R=(0,x.useRef)(null),z=(0,x.useRef)(null),B=(e,t,n=!1)=>{a7(e,t).then(e=>{if(e.items){u(n?t=>t.map(t=>{let n=e.items.find(e=>e.id===t.id);return n&&n.status!==t.status?n:t}):e.items);let t=e.items.some(e=>e.status===`processing`);t&&!R.current?R.current=setInterval(()=>{B(d,p,!0)},5e3):!t&&R.current&&(clearInterval(R.current),R.current=null)}e.total!==void 0&&g(e.total)}).catch(e=>{})},V=e=>{f(e),B(e,p)},H=(e,t,i=!1)=>{a7(e,t).then(e=>{if(e.items){n(i?t=>t.map(t=>{let n=e.items.find(e=>e.id===t.id);return n&&n.status!==t.status?n:t}):e.items);let t=e.items.some(e=>e.status===`processing`);t&&!z.current?z.current=setInterval(()=>{H(r,a,!0)},5e3):!t&&z.current&&(clearInterval(z.current),z.current=null)}e.total!==void 0&&c(e.total)}).catch(e=>{})};return(0,x.useEffect)(()=>(H(r,a),B(d,p),()=>{R.current&&=(clearInterval(R.current),null),z.current&&=(clearInterval(z.current),null)}),[]),(0,$.jsxs)(`div`,{className:`replication-container`,style:{margin:`-24px -32px -32px`,height:`calc(100vh - 32px)`,display:`flex`,justifyContent:`space-between`,alignItems:`stretch`,gap:`2%`,position:`relative`,boxSizing:`border-box`},children:[(0,$.jsxs)(`div`,{className:`replication-preview`,style:{width:`70%`,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(20px)`,display:`flex`,flexDirection:`column`,borderRadius:20,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`,position:`relative`,zIndex:10},children:[(0,$.jsxs)(m9,{style:{background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`,padding:`16px 24px`,borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:16},children:[(0,$.jsx)(`div`,{style:{width:32,height:2,background:`linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent)`,borderRadius:1}}),(0,$.jsx)(`h2`,{style:{margin:0,fontSize:18,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`爆款开头复刻`}),(0,$.jsx)(`div`,{style:{width:32,height:2,background:`linear-gradient(90deg, transparent, #8b5cf6, #6366f1, transparent)`,borderRadius:1}})]}),(0,$.jsx)(kD,{type:`primary`,ghost:!0,style:{borderRadius:10,padding:`6px 16px`,fontSize:13,background:`rgba(99, 102, 241, 0.1)`,borderColor:`rgba(99, 102, 241, 0.2)`,color:`#6366f1`},onClick:()=>L(!0),children:`创作记录`})]}),(0,$.jsx)(`div`,{style:{flex:1,background:`rgba(248, 250, 252, 0.5)`,borderRight:`1px solid rgba(99, 102, 241, 0.08)`,overflowY:`auto`},children:l.length>0?(0,$.jsxs)(`div`,{style:{height:`100%`,padding:`24px`},children:[(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:24},children:(0,$.jsx)(`h2`,{style:{margin:0,fontSize:16,fontWeight:600,color:`#1e293b`},children:`历史生成作品`})}),(0,$.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(190px, 1fr))`,gap:16},children:l.map(t=>(0,$.jsxs)(`div`,{style:{background:`rgba(255,255,255,0.9)`,backdropFilter:`blur(10px)`,borderRadius:16,overflow:`hidden`,boxShadow:`0 4px 16px rgba(99, 102, 241, 0.06)`,cursor:`pointer`,transition:`transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1)`,border:`1px solid rgba(99, 102, 241, 0.06)`},onClick:()=>e(`/initial/${t.id}/initialinfo`),onMouseEnter:e=>{e.currentTarget.style.transform=`translateY(-6px)`,e.currentTarget.style.boxShadow=`0 12px 32px rgba(99, 102, 241, 0.12)`},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 4px 16px rgba(99, 102, 241, 0.06)`},children:[(0,$.jsxs)(`div`,{style:{position:`relative`,aspectRatio:`1/1`,background:`#f8fafc`},children:[t.finalVideoUrl?(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${t.finalVideoCoverUrl}`,alt:t.targetProjectName,style:{width:`100%`,height:`100%`,objectFit:`cover`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(`div`,{style:{width:60,height:60,borderRadius:`50%`,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(L8,{style:{fontSize:24,color:`#fff`}})})}),(0,$.jsx)(`div`,{style:{position:`absolute`,bottom:8,right:8,padding:`4px 12px`,background:`rgba(0,0,0,0.7)`,borderRadius:16,fontSize:10,color:`#fff`,backdropFilter:`blur(4px)`},children:(()=>{let e=t.status,n=t.current_step_code||t.currentStepCode;if(n===`image_prompt_optimize`)switch(e){case`waiting_user`:return`等待融合图生成`;case`processing`:return`图片提示词生成中`;case`completed`:return`图片提示词生成成功`;case`failed`:return`图片提示词生成失败`;default:return e||`待处理`}else if(n===`image_generate`)switch(e){case`waiting_user`:return`等待生成视频提示词`;case`processing`:return`融合图生成中`;case`completed`:return`融合图生成成功`;case`failed`:return`融合图生成失败`;default:return e||`待处理`}else if(n===`video_prompt_optimize`)switch(e){case`waiting_user`:return`等待最终视频生成`;case`processing`:return`视频提示词生成中`;case`completed`:return`视频提示词生成成功`;case`failed`:return`视频提示词生成失败`;default:return e||`待处理`}else if(n===`video_generate`)switch(e){case`waiting_user`:return``;case`processing`:return`最终视频生成中`;case`completed`:return`最终视频生成成功`;case`failed`:return`最终视频生成失败`;default:return e||`待处理`}else if(n===`material_input`)switch(e){case`waiting_user`:return`等待生成图片提示词`;case`processing`:return`素材处理中`;case`completed`:return`素材上传成功`;case`failed`:return`素材上传失败`;default:return e||`待处理`}else return{pending:`子任务待处理`,waiting_user:`等待用户确认或触发`,processing:`子任务处理中`,completed:`子任务完成`,failed:`子任务失败`,cancelled:`子任务取消`}[e]||e||`待处理`})()})]}),(0,$.jsxs)(`div`,{style:{padding:14},children:[(0,$.jsx)(`h4`,{style:{margin:0,fontSize:14,fontWeight:600,color:`#1e293b`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t.targetProjectName||`未命名作品`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginTop:6},children:[(0,$.jsx)(`p`,{style:{margin:0,fontSize:12,color:`#64748b`},children:t.createdAt?new Date(t.createdAt).toLocaleDateString(`zh-CN`):``}),(()=>{let e=t.status;return e===`waiting_user`?(0,$.jsx)(`span`,{style:{fontSize:11,color:`#f59e0b`},children:`等待下一步`}):e===`processing`?(0,$.jsxs)(`span`,{style:{fontSize:11,color:`#6366f1`,display:`flex`,alignItems:`center`},children:[(0,$.jsx)(`span`,{children:`进行中`}),(0,$.jsx)(`span`,{style:{animation:`dots 1s infinite`},children:`...`}),(0,$.jsx)(`style`,{children:`
|
||
@keyframes dots {
|
||
0%, 20% { opacity: 0; }
|
||
50% { opacity: 1; }
|
||
100% { opacity: 0; }
|
||
}
|
||
`})]}):e===`failed`?(0,$.jsx)(`span`,{style:{fontSize:11,color:`#ef4444`},children:`失败`}):e===`completed`&&t.finalVideoUrl?(0,$.jsx)(`span`,{style:{fontSize:11,color:`#10b981`},children:`任务完成`}):null})()]})]})]},t.id))}),(0,$.jsx)(`div`,{style:{paddingTop:20,paddingBottom:20,display:`flex`,justifyContent:`center`},children:(0,$.jsx)(JK,{current:d,pageSize:p,total:h,onChange:V,showSizeChanger:!1,showQuickJumper:!1,showTotal:e=>`共 ${e} 条`,itemRender:(e,t,n)=>t===`prev`?(0,$.jsx)(`button`,{style:{minWidth:32,height:32,border:`1px solid #e5e7eb`,borderRadius:6,background:d===1?`#f9fafb`:`#fff`,cursor:d===1?`not-allowed`:`pointer`,color:d===1?`#d1d5db`:`#6b7280`,fontSize:14},disabled:d===1,children:`‹`}):t===`next`?(0,$.jsx)(`button`,{style:{minWidth:32,height:32,border:`1px solid #e5e7eb`,borderRadius:6,background:d>=Math.ceil(h/p)?`#f9fafb`:`#fff`,cursor:d>=Math.ceil(h/p)?`not-allowed`:`pointer`,color:d>=Math.ceil(h/p)?`#d1d5db`:`#6b7280`,fontSize:14},disabled:d>=Math.ceil(h/p),children:`›`}):t===`page`?(0,$.jsx)(`button`,{style:{minWidth:32,height:32,border:`none`,borderRadius:6,background:e===d?`#6366f1`:`#fff`,color:e===d?`#fff`:`#374151`,fontWeight:e===d?500:400,cursor:`pointer`,fontSize:14},children:e}):n})})]}):(0,$.jsxs)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`40px`},children:[(0,$.jsxs)(`div`,{style:{width:120,height:120,display:`flex`,alignItems:`center`,justifyContent:`center`,marginBottom:24,position:`relative`},children:[(0,$.jsx)(`div`,{style:{width:60,height:60,background:`linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%)`,borderRadius:20,position:`absolute`,bottom:0,right:10}}),(0,$.jsx)(`div`,{style:{width:50,height:50,border:`2px solid rgba(99, 102, 241, 0.2)`,borderRadius:16,position:`absolute`,top:0,left:10}}),(0,$.jsx)(`div`,{style:{width:56,height:56,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:18,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 8px 24px rgba(99, 102, 241, 0.25)`},children:(0,$.jsx)(L8,{style:{fontSize:28,color:`#fff`}})})]}),(0,$.jsx)(`h3`,{style:{margin:0,fontSize:16,fontWeight:600,color:`#1e293b`,marginBottom:8},children:`暂无生成内容`}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:13,color:`#64748b`,textAlign:`center`,padding:`0 40px`,lineHeight:1.6},children:`请完善素材与卖点,生成专属爆款开头复刻视频`})]})})]}),(0,$.jsx)(`div`,{className:`replication-form`,style:{flex:1,overflow:`auto`,width:`28%`,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(20px)`,borderRadius:20,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`,position:`relative`,zIndex:10},children:(0,$.jsxs)(`div`,{className:`replication-form-content`,style:{width:`100%`,height:`100%`,background:`rgba(248, 250, 252, 0.5)`,padding:24,overflowY:`auto`},children:[(0,$.jsxs)(`div`,{style:{marginBottom:20},children:[(0,$.jsx)(`p`,{style:{margin:0,fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10},children:`上传复刻视频`}),E?(0,$.jsxs)(`div`,{style:{position:`relative`},children:[(0,$.jsx)(`video`,{src:E,controls:!0,style:{width:`100%`,borderRadius:12,maxHeight:200,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.08)`}}),(0,$.jsx)(`button`,{onClick:()=>{E&&URL.revokeObjectURL(E),T(null),D(``)},style:{position:`absolute`,top:8,right:8,width:28,height:28,border:`none`,background:`rgba(239, 68, 68, 0.9)`,borderRadius:`50%`,cursor:`pointer`,color:`#fff`,fontSize:16,display:`flex`,alignItems:`center`,justifyContent:`center`,zIndex:10,transition:`all 0.2s`},children:`×`}),(0,$.jsxs)(`div`,{style:{marginTop:10,display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsx)(L8,{style:{color:`#6366f1`,fontSize:14}}),(0,$.jsx)(`span`,{style:{fontSize:12,color:`#475569`},children:w?.name}),(0,$.jsxs)(`span`,{style:{fontSize:11,color:`#94a3b8`},children:[`(`,w?.size?(w.size/1024/1024).toFixed(2):0,`MB)`]})]})]}):(0,$.jsx)(g0,{beforeUpload:async e=>{if(!e.type.startsWith(`video/`))return Aq.error(`只能上传视频文件`),!1;if(!(e.size/1024/1024<50))return Aq.error(`视频大小不能超过50MB`),!1;let t=document.createElement(`video`);return t.preload=`metadata`,new Promise(n=>{t.onloadedmetadata=async()=>{if(t.duration<2){Aq.error(`视频时长不能少于2秒`),URL.revokeObjectURL(t.src),n(!1);return}if(t.duration>15){Aq.error(`视频时长不能超过15秒`),URL.revokeObjectURL(t.src),n(!1);return}N(!0);try{let t=await A5(e);T(e),D(`http://ceshi.apiforeign.minzhong.cn${t.url}`),Aq.success(`视频上传成功`),n(!1)}catch(e){let t=``;if(e instanceof Error)try{t=JSON.parse(e.message).detail||e.message}catch{t=e.message}Aq.error(t||`视频上传失败`),n(!1)}finally{N(!1),URL.revokeObjectURL(t.src)}},t.onerror=()=>{Aq.error(`视频文件无效`),URL.revokeObjectURL(t.src),n(!1)},t.src=URL.createObjectURL(e)})},showUploadList:!1,accept:`video/mp4,video/quicktime,.mp4,.mov`,children:(0,$.jsx)(`div`,{style:{border:`2px dashed rgba(99, 102, 241, 0.3)`,borderRadius:12,padding:24,textAlign:`center`,cursor:`pointer`,transition:`all 0.25s cubic-bezier(0.4, 0, 0.2, 1)`,background:`rgba(99, 102, 241, 0.02)`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#6366f1`,e.currentTarget.style.background=`rgba(99, 102, 241, 0.05)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(99, 102, 241, 0.3)`,e.currentTarget.style.background=`rgba(99, 102, 241, 0.02)`},children:M?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{width:40,height:40,margin:`0 auto 12px`,border:`3px solid rgba(99, 102, 241, 0.2)`,borderTopColor:`#6366f1`,borderRadius:`50%`,animation:`spin 1s linear infinite`}}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:13,color:`#6366f1`,fontWeight:500},children:`上传中...`}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:11,color:`#94a3b8`,marginTop:4},children:`支持的文件类型:MP4、MOV | 视频最大时长:15 秒 | 最大大小:50M`})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{width:48,height:48,margin:`0 auto 12px`,background:`linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%)`,borderRadius:16,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(L8,{style:{fontSize:24,color:`#6366f1`}})}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:13,color:`#475569`,fontWeight:500},children:`点击或拖拽上传视频`}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:11,color:`#94a3b8`,marginTop:4},children:`支持的文件类型:MP4、MOV | 视频最大时长:15 秒 | 最大大小:50M`})]})})})]}),(0,$.jsxs)(`div`,{style:{marginBottom:20},children:[(0,$.jsx)(`p`,{style:{margin:0,fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10},children:`上传产品图片`}),A?(0,$.jsxs)(`div`,{style:{position:`relative`},children:[(0,$.jsx)(`img`,{src:A,alt:`产品图片`,style:{width:`100%`,borderRadius:12,maxHeight:200,objectFit:`contain`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.08)`}}),(0,$.jsx)(`button`,{onClick:()=>{A&&URL.revokeObjectURL(A),k(null),j(``)},style:{position:`absolute`,top:8,right:8,width:28,height:28,border:`none`,background:`rgba(239, 68, 68, 0.9)`,borderRadius:`50%`,cursor:`pointer`,color:`#fff`,fontSize:16,display:`flex`,alignItems:`center`,justifyContent:`center`,zIndex:10,transition:`all 0.2s`},children:`×`}),(0,$.jsxs)(`div`,{style:{marginTop:10,display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsx)(i6,{style:{color:`#6366f1`,fontSize:14}}),(0,$.jsx)(`span`,{style:{fontSize:12,color:`#475569`},children:O?.name}),(0,$.jsxs)(`span`,{style:{fontSize:11,color:`#94a3b8`},children:[`(`,O?.size?(O.size/1024/1024).toFixed(2):0,`MB)`]})]})]}):(0,$.jsx)(g0,{beforeUpload:async e=>{if(!e.type.startsWith(`image/`))return Aq.error(`只能上传图片文件`),!1;if(!(e.size/1024/1024<10))return Aq.error(`图片大小不能超过10MB`),!1;let t=new Image;return new Promise(n=>{t.onload=async()=>{let r=t.width/t.height;Math.abs(r-.75)<.1||Math.abs(r-.5625),F(!0);try{let t=await k5(e);k(e),j(`http://ceshi.apiforeign.minzhong.cn${t.url}`),Aq.success(`图片上传成功`),n(!1)}catch(e){let t=``;if(e instanceof Error)try{t=JSON.parse(e.message).detail||e.message}catch{t=e.message}Aq.error(t||`图片上传失败`),n(!1)}finally{F(!1),URL.revokeObjectURL(t.src)}},t.onerror=()=>{Aq.error(`图片文件无效`),URL.revokeObjectURL(t.src),n(!1)},t.src=URL.createObjectURL(e)})},showUploadList:!1,accept:`image/jpeg,image/jpg,image/png,.jpg,.jpeg,.png`,children:(0,$.jsx)(`div`,{style:{border:`2px dashed rgba(99, 102, 241, 0.3)`,borderRadius:12,padding:20,textAlign:`center`,cursor:`pointer`,transition:`all 0.25s cubic-bezier(0.4, 0, 0.2, 1)`,background:`rgba(99, 102, 241, 0.02)`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#6366f1`,e.currentTarget.style.background=`rgba(99, 102, 241, 0.05)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(99, 102, 241, 0.3)`,e.currentTarget.style.background=`rgba(99, 102, 241, 0.02)`},children:P?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{width:36,height:36,margin:`0 auto 10px`,border:`3px solid rgba(99, 102, 241, 0.2)`,borderTopColor:`#6366f1`,borderRadius:`50%`,animation:`spin 1s linear infinite`}}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:13,color:`#6366f1`,fontWeight:500},children:`上传中...`}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:11,color:`#94a3b8`,marginTop:4},children:`支持 JPG, JPEG, PNG 格式,图片比例为 3:4 或 9:16 效果最佳`})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{width:44,height:44,margin:`0 auto 10px`,background:`linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%)`,borderRadius:14,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(i6,{style:{fontSize:22,color:`#6366f1`}})}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:13,color:`#475569`,fontWeight:500},children:`+ 点击上传`}),(0,$.jsx)(`p`,{style:{margin:0,fontSize:11,color:`#94a3b8`,marginTop:4},children:`支持 JPG, JPEG, PNG 格式,图片比例为 3:4 或 9:16 效果最佳`})]})})})]}),(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(`p`,{style:{margin:0,fontSize:13,fontWeight:500,color:`#475569`,marginBottom:8},children:`原视频产品名称`}),(0,$.jsx)(cK,{value:_,onChange:e=>v(e.target.value),placeholder:`请输入原视频产品名称`,style:{borderRadius:10,height:40,fontSize:13,border:`1px solid rgba(99, 102, 241, 0.15)`,background:`rgba(255,255,255,0.8)`},maxLength:10,suffix:(0,$.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:12},children:[_.length,`/10`]})})]}),(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(`p`,{style:{margin:0,fontSize:13,fontWeight:500,color:`#475569`,marginBottom:8},children:`自有产品名称`}),(0,$.jsx)(cK,{value:y,onChange:e=>b(e.target.value),placeholder:`请输入自有产品名称`,style:{borderRadius:10,height:40,fontSize:13,border:`1px solid rgba(99, 102, 241, 0.15)`,background:`rgba(255,255,255,0.8)`},maxLength:10,suffix:(0,$.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:12},children:[y.length,`/10`]})})]}),(0,$.jsxs)(`div`,{style:{marginBottom:24},children:[(0,$.jsx)(`p`,{style:{margin:0,fontSize:13,fontWeight:500,color:`#475569`,marginBottom:8},children:`产品卖点`}),(0,$.jsxs)(`div`,{style:{position:`relative`},children:[(0,$.jsx)(h9,{value:S,onChange:e=>C(e.target.value),placeholder:`请输入产品卖点`,style:{borderRadius:10,fontSize:13,height:80,resize:`none`,border:`1px solid rgba(99, 102, 241, 0.15)`,background:`rgba(255,255,255,0.8)`},rows:3,maxLength:30}),(0,$.jsxs)(`span`,{style:{position:`absolute`,right:10,bottom:8,color:`#94a3b8`,fontSize:12},children:[S.length,`/30`]})]})]}),(0,$.jsx)(kD,{type:`primary`,block:!0,size:`large`,onClick:()=>{if(!E){Aq.warning(`请上传复刻视频`);return}if(!A){Aq.warning(`请上传产品图片`);return}if(!_.trim()){Aq.warning(`请输入原视频产品名称`);return}if(!y.trim()){Aq.warning(`请输入自有产品名称`);return}if(!S.trim()){Aq.warning(`请输入产品卖点`);return}i7({material_video_url:E,material_image_url:A,source_project_name:_,target_project_name:y,core_content_point:S,idempotency_key:Date.now().toString()}).then(t=>{let r=``,i=``;D(``),j(``),v(``),b(``),C(``),B(1,8),a7(1,20).then(t=>{if(t.items){let a=t.items[0].id;n(t.items),o7(t.items[0].id).then(t=>{r=t.id,i=t.steps[0].id,s7(r,i).then(t=>{Aq.loading(`创建中...`,3),setTimeout(()=>{e(`/initial/${a}/initialinfo`)},3e3)})}).catch(e=>{})}}).catch(e=>{})}).catch(e=>{Aq.error(`视频开头复刻失败`)})},style:{borderRadius:12,height:44,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%)`,border:`none`,fontSize:15,boxShadow:`0 4px 16px rgba(99, 102, 241, 0.3)`,transition:`all 0.25s cubic-bezier(0.4, 0, 0.2, 1)`},children:`立即生成+`})]})}),(0,$.jsxs)(Nq,{title:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:4,height:20,background:`linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:16,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`创作记录`})]}),open:I,onCancel:()=>L(!1),width:850,footer:null,style:{borderRadius:20},styles:{body:{height:580,display:`flex`,flexDirection:`column`,padding:0},header:{background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`,borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,padding:`16px 24px`}},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,margin:`16px 24px`,flexShrink:0},children:[(0,$.jsx)(cK,{placeholder:`搜索产品名称`,style:{width:220,borderRadius:10,marginRight:10,border:`1px solid rgba(99, 102, 241, 0.15)`,background:`rgba(255,255,255,0.8)`}}),(0,$.jsx)(kD,{type:`primary`,style:{borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`},children:`搜索`})]}),(0,$.jsx)(`div`,{style:{flex:1,overflow:`auto`,padding:`0 24px 24px`},children:(0,$.jsx)(`div`,{style:{background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(10px)`,borderRadius:16,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.08)`,boxShadow:`0 4px 16px rgba(99, 102, 241, 0.06)`},children:(0,$.jsx)(c$,{columns:[{title:`产品名称`,dataIndex:`targetProjectName`,key:`targetProjectName`,align:`center`,width:200,render:e=>(0,$.jsx)(`span`,{style:{fontSize:13,color:`#1e293b`,fontWeight:500},children:e||`-`})},{title:`状态`,dataIndex:`status`,key:`status`,align:`center`,width:220,render:(e,t)=>{let n=e,r=t.current_step_code||t.currentStepCode,i=(()=>{if(r===`image_prompt_optimize`)switch(n){case`waiting_user`:return{text:`等待融合图生成`,color:`#f59e0b`};case`processing`:return{text:`图片提示词生成中`,color:`#f59e0b`};case`completed`:return{text:`图片提示词生成成功`,color:`#10b981`};case`failed`:return{text:`图片提示词生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#64748b`}}else if(r===`image_generate`)switch(n){case`waiting_user`:return{text:`等待生成视频提示词`,color:`#f59e0b`};case`processing`:return{text:`融合图生成中`,color:`#f59e0b`};case`completed`:return{text:`融合图生成成功`,color:`#10b981`};case`failed`:return{text:`融合图生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#64748b`}}else if(r===`video_prompt_optimize`)switch(n){case`waiting_user`:return{text:`等待最终视频生成`,color:`#f59e0b`};case`processing`:return{text:`视频提示词生成中`,color:`#f59e0b`};case`completed`:return{text:`视频提示词生成成功`,color:`#10b981`};case`failed`:return{text:`视频提示词生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#64748b`}}else if(r===`video_generate`)switch(n){case`waiting_user`:return{text:``,color:`#64748b`};case`processing`:return{text:`最终视频生成中`,color:`#f59e0b`};case`completed`:return{text:`任务完成`,color:`#10b981`};case`failed`:return{text:`最终视频生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#64748b`}}else if(r===`material_input`)switch(n){case`waiting_user`:return{text:`等待生成图片提示词`,color:`#f59e0b`};case`processing`:return{text:`素材处理中`,color:`#f59e0b`};case`completed`:return{text:`素材上传成功`,color:`#10b981`};case`failed`:return{text:`素材上传失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#64748b`}}else return{pending:{text:`子任务待处理`,color:`#f59e0b`},waiting_user:{text:`等待用户确认或触发`,color:`#f59e0b`},processing:{text:`子任务处理中`,color:`#f59e0b`},completed:{text:`子任务完成`,color:`#10b981`},failed:{text:`子任务失败`,color:`#ef4444`},cancelled:{text:`子任务取消`,color:`#94a3b8`}}[n]||{text:n||`-`,color:`#64748b`}})();return(0,$.jsx)(`span`,{style:{fontSize:12,color:i.color,fontWeight:500},children:i.text})}},{title:`创建时间`,dataIndex:`createdAt`,key:`createdAt`,align:`center`,width:200,render:e=>{if(!e)return`-`;let t=new Date(e);return(0,$.jsx)(`span`,{style:{fontSize:12,color:`#64748b`},children:`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)} ${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`})}},{title:`操作`,key:`action`,align:`center`,width:120,render:(t,n)=>(0,$.jsx)(`button`,{onClick:()=>e(`/initial/${n.id}/initialinfo`),style:{color:`#6366f1`,textDecoration:`none`,fontSize:13,border:`none`,background:`rgba(99, 102, 241, 0.08)`,padding:`4px 12px`,borderRadius:8,cursor:`pointer`,transition:`all 0.2s`},children:`查看详情`})}],dataSource:t,rowKey:`id`,pagination:{current:r,pageSize:a,total:s,showSizeChanger:!0,showQuickJumper:!0,showTotal:e=>`共 ${e} 条`,onChange:(e,t)=>{i(e),o(t),H(e,t)},itemRender:(e,t,n)=>t===`prev`?(0,$.jsx)(`button`,{style:{minWidth:32,height:32,border:`1px solid rgba(99, 102, 241, 0.15)`,borderRadius:8,background:r===1?`rgba(243, 244, 246, 0.5)`:`#fff`,cursor:r===1?`not-allowed`:`pointer`,color:r===1?`#94a3b8`:`#6366f1`,fontSize:14},disabled:r===1,children:`‹`}):t===`next`?(0,$.jsx)(`button`,{style:{minWidth:32,height:32,border:`1px solid rgba(99, 102, 241, 0.15)`,borderRadius:8,background:r>=Math.ceil(s/a)?`rgba(243, 244, 246, 0.5)`:`#fff`,cursor:r>=Math.ceil(s/a)?`not-allowed`:`pointer`,color:r>=Math.ceil(s/a)?`#94a3b8`:`#6366f1`,fontSize:14},disabled:r>=Math.ceil(s/a),children:`›`}):t===`page`?(0,$.jsx)(`button`,{style:{minWidth:32,height:32,border:`none`,borderRadius:8,background:e===r?`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`:`#fff`,color:e===r?`#fff`:`#475569`,fontWeight:e===r?600:400,cursor:`pointer`,fontSize:14},children:e}):n},style:{fontSize:13},scroll:{y:380}})})})]})]})};function _9(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function v9(e,...t){for(let n of t){let t=e[n];if(t!=null&&String(t).trim()!==``)return String(t)}return``}function y9(e,t,...n){for(let t of n){let n=e[t];if(n===!0||n===!1)return n;if(n===`true`)return!0;if(n===`false`)return!1}return t}function b9(e,...t){for(let n of t){let t=e[n];if(typeof t==`number`&&Number.isFinite(t)&&t>0)return t;if(typeof t==`string`&&t.trim()){let e=Number(t);if(Number.isFinite(e)&&e>0)return e}}}function x9(e){if(!_9(e))return null;let t=v9(e,`key`);return t?{key:t,label:v9(e,`label`)||t,type:v9(e,`type`)||void 0,enabled:y9(e,!0,`enabled`),editable:y9(e,!0,`editable`),maxLength:b9(e,`maxLength`,`max_length`)}:null}function S9(e){if(!_9(e))return null;let t=e.data;return _9(t)?t:Array.isArray(e.sections)?e:null}function zee(e){return!!S9(e)}function C9(e){let t=S9(e);return(Array.isArray(t?.sections)?t.sections:[]).map(e=>{let t=x9(e);if(!t||!_9(e))return null;let n=Array.isArray(e.children)?e.children.map(x9).filter(Boolean):[],r=Array.isArray(e.itemFields)?e.itemFields.map(x9).filter(Boolean):Array.isArray(e.item_fields)?e.item_fields.map(x9).filter(Boolean):[];return{...t,contentKey:v9(e,`contentKey`,`content_key`)||void 0,children:n,itemFields:r}}).filter(e=>!!e&&e.enabled)}function w9(e){if(e==null)return``;if(typeof e==`object`)try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)}function T9(e){let t=w9(e);return t.length>40||t.includes(`
|
||
`)||t.includes(`,`)||t.includes(`。`)||t.includes(`;`)||t.includes(`;`)}function E9(e){return e===void 0?e:JSON.parse(JSON.stringify(e))}function Bee(e,t,n,r){let i=E9(e||{});return _9(i[t])||(i[t]={}),i[t][n]=r,i}function Vee(e,t,n,r,i){let a=E9(e||{});return Array.isArray(a[t])||(a[t]=[]),_9(a[t][n])||(a[t][n]={}),a[t][n][r]=i,a}function D9(e,t){if(!_9(e))return`视频提示词不能为空`;let n=C9(t);if(!n.length)return`视频提词配置缺失,无法保存`;for(let t of n){if(!t.editable)continue;let n=e[t.key];if(t.type===`object`){if(!_9(n))continue;for(let e of t.children)if(!(!e.enabled||!e.editable||!e.maxLength)&&w9(n[e.key]).length>e.maxLength)return`字段【${t.label}.${e.label}】长度不能超过 ${e.maxLength} 个字符`;continue}if(t.type===`flow`){if(!Array.isArray(n))continue;for(let e=0;e<n.length;e+=1){let r=n[e];if(_9(r)){for(let n of t.itemFields)if(!(!n.enabled||!n.editable||!n.maxLength)&&w9(r[n.key]).length>n.maxLength)return`字段【${t.label} 第 ${e+1} 项.${n.label}】长度不能超过 ${n.maxLength} 个字符`}}continue}if(t.editable&&t.maxLength&&w9(n).length>t.maxLength)return`字段【${t.label}】长度不能超过 ${t.maxLength} 个字符`}return null}var{Text:O9}=S1,{TextArea:k9}=cK;function A9(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function j9({value:e}){let t=w9(e);return T9(e)?(0,$.jsx)(k9,{value:t,rows:Math.min(6,Math.max(2,Math.ceil(t.length/42))),disabled:!0,style:{borderRadius:8,color:`#64748b`}}):(0,$.jsx)(cK,{value:t,disabled:!0,style:{borderRadius:8,color:`#64748b`}})}function M9({value:e,maxLength:t,onChange:n}){let r=w9(e),i={value:r,maxLength:t,showCount:!!t,onChange:e=>n(e.target.value),style:{borderRadius:8}};return T9(e)?(0,$.jsx)(k9,{...i,rows:Math.min(8,Math.max(3,Math.ceil(r.length/42)))}):(0,$.jsx)(cK,{...i})}function N9(e){return e.editable?(0,$.jsx)(x$,{color:`processing`,children:`可编辑`}):(0,$.jsx)(x$,{color:`default`,children:`只读`})}var P9=({value:e,schemaConfigSnapshot:t,onChange:n})=>{let r=A9(e)?e:{},i=C9(t);if(!zee(t))return(0,$.jsxs)(NU,{direction:`vertical`,size:12,style:{width:`100%`},children:[(0,$.jsx)(Uf,{type:`warning`,showIcon:!0,message:`视频提词配置缺失,暂不能编辑`,description:`请刷新详情后重试;如果仍然缺失,请联系管理员排查第4步 schema_config_snapshot 返回。`}),Object.keys(r).length?(0,$.jsx)(`pre`,{style:{margin:0,padding:12,borderRadius:10,background:`#f8fafc`,maxHeight:420,overflow:`auto`,color:`#475569`},children:JSON.stringify(r,null,2)}):null]});if(!i.length)return(0,$.jsx)(Uf,{type:`warning`,showIcon:!0,message:`视频提词配置为空`,description:`当前 Schema 配置没有可展示字段。`});let a=e=>{let t=A9(r[e.key])?r[e.key]:{},i=e.children.filter(e=>e.enabled);return i.length?(0,$.jsxs)(`div`,{style:{marginBottom:18},children:[(0,$.jsxs)(NU,{style:{marginBottom:8},children:[(0,$.jsx)(O9,{strong:!0,style:{color:`#334155`,fontSize:13},children:e.label}),N9(e)]}),(0,$.jsx)(`div`,{style:{borderLeft:`3px solid #6366f1`,paddingLeft:12,marginLeft:4},children:i.map(i=>(0,$.jsxs)(`div`,{style:{marginBottom:12},children:[(0,$.jsxs)(NU,{style:{marginBottom:4},children:[(0,$.jsx)(O9,{style:{color:`#64748b`,fontSize:12},children:i.label}),N9(i)]}),i.editable?(0,$.jsx)(M9,{value:t[i.key],maxLength:i.maxLength,onChange:t=>n(Bee(r,e.key,i.key,t))}):(0,$.jsx)(j9,{value:t[i.key]})]},i.key))})]},e.key):null},o=e=>{let t=Array.isArray(r[e.key])?r[e.key]:[],i=[{key:`时间段`,label:`时间段`,enabled:!0,editable:!1},...e.itemFields.filter(e=>e.enabled)];return(0,$.jsxs)(`div`,{style:{marginBottom:18},children:[(0,$.jsxs)(NU,{style:{marginBottom:8},children:[(0,$.jsx)(O9,{strong:!0,style:{color:`#334155`,fontSize:13},children:e.label}),(0,$.jsx)(x$,{color:`default`,children:`锁定条目和时间段`})]}),(0,$.jsx)(`div`,{style:{border:`1px solid #e5e7eb`,borderRadius:10,padding:12,background:`#fff`},children:t.length===0?(0,$.jsx)(O9,{style:{color:`#94a3b8`,fontSize:12},children:`暂无内容`}):t.map((a,o)=>{let s=A9(a)?a:{};return(0,$.jsxs)(`div`,{style:{marginBottom:o===t.length-1?0:14,paddingBottom:o===t.length-1?0:14,borderBottom:o===t.length-1?`none`:`1px dashed #e2e8f0`},children:[(0,$.jsxs)(O9,{strong:!0,style:{display:`block`,marginBottom:8,color:`#475569`,fontSize:12},children:[`第 `,o+1,` 段`]}),i.map(t=>(0,$.jsxs)(`div`,{style:{marginBottom:10},children:[(0,$.jsxs)(NU,{style:{marginBottom:4},children:[(0,$.jsx)(O9,{style:{color:`#64748b`,fontSize:12},children:t.label}),N9(t)]}),t.editable?(0,$.jsx)(M9,{value:s[t.key],maxLength:t.maxLength,onChange:i=>n(Vee(r,e.key,o,t.key,i))}):(0,$.jsx)(j9,{value:s[t.key]})]},t.key))]},`${e.key}-${o}`)})})]},e.key)},s=e=>e.key in r?(0,$.jsxs)(`div`,{style:{marginBottom:18},children:[(0,$.jsxs)(NU,{style:{marginBottom:8},children:[(0,$.jsx)(O9,{strong:!0,style:{color:`#334155`,fontSize:13},children:e.label}),N9(e)]}),e.editable?(0,$.jsx)(M9,{value:r[e.key],maxLength:e.maxLength,onChange:t=>{let i=E9(r);i[e.key]=t,n(i)}}):(0,$.jsx)(j9,{value:r[e.key]})]},e.key):null;return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Uf,{type:`info`,showIcon:!0,style:{marginBottom:14},message:`仅可修改后台 Schema 配置允许编辑的字段`,description:`视频规格、时间段、流程条目数量、输出规格、质量控制、合规控制等锁定内容由服务端最终校验。`}),i.map(e=>e.key in r?e.type===`object`?a(e):e.type===`flow`?o(e):s(e):null)]})},{Title:Hee,Text:F9}=S1,{TextArea:Uee}=cK;function Wee(e){return e===void 0?e:JSON.parse(JSON.stringify(e))}function Gee(){let e=Ge(),{creatID:t}=Ye(),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)(``),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(`image`),[u,d]=(0,x.useState)({}),[f,p]=(0,x.useState)(null),[m,h]=(0,x.useState)(``),[g,_]=(0,x.useState)(!1),[v,y]=(0,x.useState)(null),[b,S]=(0,x.useState)({}),[C,w]=(0,x.useState)(``),[T,E]=(0,x.useState)(!1),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(5),[j,M]=(0,x.useState)(`16:9`),[N,P]=(0,x.useState)(`480p`),[F,I]=(0,x.useState)({ratios:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:[`480p`,`720p`,`1080p`],durations:[5,8,10,12,15]}),[L,R]=(0,x.useState)([]),[z,B]=(0,x.useState)(1),[V,H]=(0,x.useState)(20),[U,W]=(0,x.useState)(0),[G,K]=(0,x.useState)({}),[ee,te]=(0,x.useState)([]),q=[{id:1,title:`原始素材`,description:`上传原始视频素材`,childId:1},{id:2,title:`生成提示词`,description:`根据素材生成描述词`,childId:2},{id:3,title:`生成产品融合图`,description:`生成产品与场景融合图`,childId:3},{id:4,title:`生成视频提示词`,description:`生成视频生成提示词`,childId:4},{id:5,title:`生成最终视频`,description:`合成最终视频`,childId:5}].map((e,t)=>({...e,status:ee[t]?.status||``,id:ee[t]?.id||t,output:ee[t]?.output||``,engineId:ee[t]?.input?.payload?.videoConfig?.engineId||``})),J=(e,t)=>{a7(e,t).then(e=>{e.items&&R(e.items),e.total!==void 0&&W(e.total)}).catch(e=>{})},Y=(e,t)=>{B(e),H(t),J(e,t)};(0,x.useEffect)(()=>{J(z,V)},[]),(0,x.useEffect)(()=>{Z5().then(e=>{if(S(e.engine||{}),e.engine?.video&&e.engine.video.length>0){w(e.engine.video[0].id);let t=e.engine.video[0];I({ratios:t.supportedRatios||[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:t.supportedResolutions||[`480p`,`720p`,`1080p`],durations:t.supportedDurations||[5,8,10,12,15]})}}).catch(e=>{})},[]),(0,x.useEffect)(()=>()=>{v&&(clearInterval(v),y(null))},[v]),(0,x.useEffect)(()=>{let e=e=>{let t=e.target;!t.closest(`.image-settings-trigger`)&&!t.closest(`.image-settings-popover`)&&(E(!1),O(!1))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,x.useEffect)(()=>{t&&o7(t).then(e=>{K(e),e.steps&&te(e.steps)}).catch(e=>{})},[t]),(0,x.useEffect)(()=>{let e=q[4];e&&e.status!==`completed`&&e.status!==`failed`?v||y(setInterval(re,3e4)):e&&v&&(clearInterval(v),y(null))},[q]);let ne=(e,t,n,i)=>{l(t||`image`),h(n?String(n):``),t===`video`?(p(i||null),d(e&&typeof e==`object`?Wee(e):{}),a(``)):(p(null),a(e||``),d({})),r(!0)},X=async()=>{if(c===`image`){if(!G?.id||!m){Aq.warning(`缺少任务或步骤 ID,无法保存图片提示词`);return}if(!i||!i.trim()){Aq.warning(`图片提示词不能为空`);return}_(!0);try{await c7(G.id,m,{prompt:i.trim()}),Aq.success(`图片提示词已保存`),ie(),r(!1),h(``)}catch(e){Aq.error(e?.message||`保存图片提示词失败`)}finally{_(!1)}return}if(!G?.id||!m){Aq.warning(`缺少任务或步骤 ID,无法保存视频提示词`);return}if(!u||typeof u!=`object`||Object.keys(u).length===0){Aq.warning(`视频提示词不能为空`);return}if(!f){Aq.warning(`视频提词配置缺失,暂不能保存`);return}let e=D9(u,f);if(e){Aq.warning(e);return}_(!0);try{await v7(G.id,m,{prompt_schema:u}),Aq.success(`视频提示词已保存`),ie(),r(!1),h(``)}catch(e){Aq.error(e?.message||`保存视频提示词失败`)}finally{_(!1)}},re=()=>{t&&o7(t).then(e=>{K(e),e.steps&&te(e.steps)}).catch(e=>{})},ie=()=>{t&&o7(t).then(e=>{K(e),e.steps&&te(e.steps)}).catch(e=>{})},ae=e=>{l7(G.id,e.toString(),{engine_id:`0019e3dac0b795b925b`,image_proportion:`1:1`,image_px:`2048x2048`,image_size:`2K`}).then(e=>{ie()}).catch(e=>{})},oe=()=>{l7(G.id,q[1].id.toString(),{engine_id:`0019e3dac0b795b925b`,image_proportion:`1:1`,image_px:`2048x2048`,image_size:`2K`}).then(e=>{ie()}).catch(e=>{})},se=e=>{let t={engine_id:C,duration:k,aspect_ratio:j,resolution:N,target_platform:`抖音`};u7(G.id,e.toString(),t).then(e=>{ie()}).catch(e=>{})},ce=(e,t)=>{let n={engine_id:t};d7(G.id,e.toString(),n).then(e=>{ie()}).catch(e=>{})},le=()=>{let e={engine_id:q[2].engineId};d7(G.id,q[2].id.toString(),e).then(e=>{ie()}).catch(e=>{})};return(0,$.jsxs)(x.Fragment,{children:[(0,$.jsx)(`div`,{className:`initialinfo-container`,style:{margin:`-24px -32px -32px`,height:`calc(100vh - 34px)`,position:`relative`,boxSizing:`border-box`,overflow:`hidden`,display:`flex`,flexDirection:`column`},children:(0,$.jsxs)(`div`,{style:{flex:1,display:`flex`,justifyContent:`space-between`,alignItems:`stretch`,gap:`2%`,position:`relative`,zIndex:1,minHeight:0},children:[(0,$.jsxs)(`div`,{className:`replication-preview`,style:{flex:4,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(20px)`,borderRadius:20,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`,display:`flex`,flexDirection:`column`,minHeight:0},children:[(0,$.jsxs)(`div`,{style:{borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`16px 24px`,background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`,boxSizing:`border-box`},children:[(0,$.jsx)(kD,{type:`text`,icon:(0,$.jsx)(p2,{}),onClick:()=>e(-1),style:{color:`#64748b`,borderRadius:10,fontSize:13,height:32,transition:`all 0.25s cubic-bezier(0.4, 0, 0.2, 1)`},children:`返回`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:32,height:2,background:`linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent)`,borderRadius:1}}),(0,$.jsx)(`h3`,{style:{margin:0,fontSize:16,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`爆款开头复刻 - 任务详情`}),(0,$.jsx)(`div`,{style:{width:32,height:2,background:`linear-gradient(90deg, transparent, #8b5cf6, #6366f1, transparent)`,borderRadius:1}})]}),(0,$.jsx)(kD,{type:`primary`,ghost:!0,style:{borderRadius:10,padding:`4px 16px`,fontSize:13,background:`rgba(99, 102, 241, 0.1)`,borderColor:`rgba(99, 102, 241, 0.2)`,color:`#6366f1`},onClick:()=>s(!0),children:`创作记录`})]}),(0,$.jsx)(`div`,{style:{flex:1,overflowY:`auto`},children:(0,$.jsxs)(`div`,{className:`material_box`,children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:24,flexWrap:`wrap`,alignItems:`flex-start`},children:[(0,$.jsxs)(`div`,{style:{flex:1,minWidth:250},children:[(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10,display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{width:3,height:14,background:`linear-gradient(180deg, #6366f1, #8b5cf6)`,borderRadius:2,display:`inline-block`}}),`视频`]}),(0,$.jsx)(`div`,{className:`medio_box`,style:{aspectRatio:`16/9`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,borderRadius:14,overflow:`hidden`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.06)`,border:`1px solid rgba(99, 102, 241, 0.08)`},children:G?.material?.materialVideoUrl?(0,$.jsx)(`video`,{controls:!0,src:G.material.materialVideoUrl,style:{width:`100%`,height:`100%`,objectFit:`contain`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:13},children:`暂无视频`})})]}),(0,$.jsxs)(`div`,{className:`product_img`,style:{flex:1,minWidth:250},children:[(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10,display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{width:3,height:14,background:`linear-gradient(180deg, #6366f1, #8b5cf6)`,borderRadius:2,display:`inline-block`}}),`产品图片`]}),(0,$.jsx)(`div`,{className:`medio_box`,style:{aspectRatio:`1/1`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,borderRadius:14,overflow:`hidden`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.06)`,border:`1px solid rgba(99, 102, 241, 0.08)`},children:G?.material?.materialImageUrl?(0,$.jsx)(`img`,{src:G.material.materialImageUrl,alt:``,style:{width:`100%`,height:`100%`,objectFit:`contain`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:13},children:`暂无图片`})})]})]}),G?.finalImageUrl&&(0,$.jsx)(`div`,{style:{marginTop:16},children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10,display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{width:3,height:14,background:`linear-gradient(180deg, #6366f1, #8b5cf6)`,borderRadius:2,display:`inline-block`}}),`生成图片`]}),(0,$.jsx)(`div`,{className:`medio_box`,style:{aspectRatio:`1/1`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,borderRadius:14,overflow:`hidden`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.06)`,border:`1px solid rgba(99, 102, 241, 0.08)`},children:(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${G.finalImageUrl}`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`contain`}})})]})}),G?.finalVideoUrl&&(0,$.jsx)(`div`,{style:{marginTop:16},children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10,display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{width:3,height:14,background:`linear-gradient(180deg, #6366f1, #8b5cf6)`,borderRadius:2,display:`inline-block`}}),`生成视频`]}),(0,$.jsx)(`div`,{className:`medio_box`,style:{aspectRatio:`16/9`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,borderRadius:14,overflow:`hidden`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.06)`,border:`1px solid rgba(99, 102, 241, 0.08)`},children:(0,$.jsx)(`video`,{controls:!0,src:`http://ceshi.apiforeign.minzhong.cn${G.finalVideoUrl}`,style:{width:`100%`,height:`100%`,objectFit:`contain`}})})]})})]})})]}),(0,$.jsxs)(`div`,{className:`replication-form`,style:{flex:1,minWidth:`400px`,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(20px)`,borderRadius:20,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`,display:`flex`,flexDirection:`column`,minHeight:0},children:[(0,$.jsxs)(`div`,{style:{padding:`16px 24px`,borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,display:`flex`,alignItems:`center`,gap:10,background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`},children:[(0,$.jsx)(`div`,{style:{width:4,height:18,background:`linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:15,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`生成步骤`})]}),(0,$.jsx)(`div`,{style:{flex:1,overflowY:`auto`,padding:`8px 16px 16px`},children:(0,$.jsx)(Qg,{defaultActiveKey:[``],ghost:!0,bordered:!1,style:{background:`transparent`},expandIconPlacement:`end`,items:q.map(e=>({key:String(e.id),label:(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,width:`100%`,justifyContent:`space-between`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:16,height:16},children:e.status===`completed`?(0,$.jsx)(t4,{style:{fontSize:16,color:`#22c55e`}}):e.status===`processing`?(0,$.jsx)(`div`,{style:{width:16,height:16,borderRadius:`50%`,border:`2px solid #e2e8f0`,borderTopColor:`#6366f1`,animation:`spinSlow 1s linear infinite`}}):e.status===`failed`?(0,$.jsx)(`div`,{style:{width:16,height:16,borderRadius:`50%`,background:`#ef4444`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(`span`,{style:{color:`#fff`,fontSize:10},children:`×`})}):(0,$.jsx)(`div`,{style:{width:8,height:8,borderRadius:`50%`,background:`#cbd5e1`}})}),(0,$.jsx)(`span`,{style:{fontSize:14,color:e.status===`processing`||e.status===`waiting_user`?`#6366f1`:`#1e293b`,fontWeight:500},children:e.title}),(e.status===`processing`||e.status===`waiting_user`)&&(0,$.jsx)(`span`,{style:{fontSize:12,color:`#6366f1`,marginLeft:8},children:`生成中`}),e.status===`failed`&&(0,$.jsx)(`span`,{style:{fontSize:12,color:`#ef4444`,marginLeft:8},children:`失败`}),e.status===``&&(0,$.jsx)(`span`,{style:{fontSize:12,color:`#717d8b`,marginLeft:8},children:`待生成`})]})}),children:(0,$.jsxs)(`div`,{style:{padding:`16px`,background:`linear-gradient(135deg, rgba(248,250,252,0.6) 0%, rgba(238,242,255,0.4) 100%)`,borderRadius:12,marginTop:8,border:`1px solid rgba(99, 102, 241, 0.06)`},children:[e.childId===1&&(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{style:{display:`flex`,gap:20,marginBottom:20,alignItems:`flex-start`,flexWrap:`wrap`},children:[(0,$.jsxs)(`div`,{style:{flex:1,minWidth:200},children:[(0,$.jsx)(F9,{style:{color:`#475569`,fontSize:13,marginBottom:10,display:`block`,fontWeight:500},children:`原视频`}),(0,$.jsx)(`div`,{style:{height:180,borderRadius:12,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,border:`1px solid rgba(99, 102, 241, 0.08)`,boxShadow:`0 2px 8px rgba(99, 102, 241, 0.04)`},children:G?.material?.materialVideoUrl?(0,$.jsx)(`video`,{src:G.material.materialVideoUrl,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,borderRadius:10},controls:!0}):(0,$.jsxs)(`div`,{style:{textAlign:`center`,color:`#94a3b8`},children:[(0,$.jsxs)(`svg`,{width:`32`,height:`32`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,style:{marginBottom:8},children:[(0,$.jsx)(`rect`,{x:`2`,y:`2`,width:`20`,height:`16`,rx:`2`,ry:`2`}),(0,$.jsx)(`path`,{d:`M8 12l4 2 4-2`})]}),(0,$.jsx)(`div`,{style:{fontSize:13},children:`暂无视频`})]})})]}),(0,$.jsxs)(`div`,{style:{flex:1,minWidth:200},children:[(0,$.jsx)(F9,{style:{color:`#64748b`,fontSize:13,marginBottom:10,display:`block`,fontWeight:500},children:`产品图片`}),(0,$.jsx)(`div`,{style:{height:180,borderRadius:10,background:`#f1f5f9`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:G?.material?.materialImageUrl?(0,$.jsx)(`img`,{src:G.material.materialImageUrl,alt:`产品图片`,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,borderRadius:10}}):(0,$.jsxs)(`div`,{style:{textAlign:`center`,color:`#94a3b8`},children:[(0,$.jsxs)(`svg`,{width:`32`,height:`32`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,style:{marginBottom:8},children:[(0,$.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,$.jsx)(`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`,fill:`currentColor`}),(0,$.jsx)(`path`,{d:`M21 15l-5-5L5 21`})]}),(0,$.jsx)(`div`,{style:{fontSize:13},children:`暂无图片`})]})})]})]})}),e.childId===2&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{padding:`12px 14px`,background:`rgba(255,255,255,0.6)`,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.08)`,marginBottom:4},children:(0,$.jsx)(F9,{style:{color:`#475569`,fontSize:13,lineHeight:1.8,whiteSpace:`pre-wrap`},children:e?.output?.payload?.prompt||`暂无提示词`})}),(0,$.jsxs)(NU,{style:{marginTop:16,gap:12,width:`100%`},children:[(0,$.jsx)(kD,{type:`default`,icon:(0,$.jsx)(D$,{}),onClick:()=>ne(e?.output?.payload?.prompt,`image`,e.id),style:{flex:1,borderRadius:10,borderColor:`rgba(99, 102, 241, 0.3)`,color:`#6366f1`,height:36,fontWeight:500,background:`rgba(99, 102, 241, 0.04)`},disabled:e.status!==`completed`,children:`修改提示词`}),(0,$.jsx)(kD,{onClick:()=>{Aq.info(`正在生成图片,请稍候...`),ae(e.id)},type:`primary`,style:{flex:1,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},disabled:e.status!==`completed`,children:`下一步:生成图片`})]})]}),e.childId===3&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{borderRadius:12,overflow:`hidden`,marginBottom:16,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,border:`1px solid rgba(99, 102, 241, 0.08)`,boxShadow:`0 2px 8px rgba(99, 102, 241, 0.04)`,position:`relative`},children:[G.finalImageUrl?(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${G.finalImageUrl}`,alt:`融合图`,style:{width:`100%`,height:180,objectFit:`cover`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:180,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:14},children:`暂无融合图`}),(0,$.jsx)(kD,{type:`default`,icon:(0,$.jsx)(D$,{}),onClick:()=>oe(),disabled:e.status!==`completed`,style:{position:`absolute`,bottom:8,left:8,borderRadius:8,borderColor:`rgba(99, 102, 241, 0.3)`,color:`#6366f1`,height:30,fontWeight:500,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(4px)`,padding:`0 12px`,fontSize:12},children:`重新生成`})]}),(0,$.jsx)(`p`,{style:{marginBottom:6,fontSize:14,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`视频参数选择:`}),(0,$.jsxs)(`div`,{style:{width:`100%`,display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{flex:1,position:`relative`,display:`inline-block`},children:[(0,$.jsxs)(`button`,{onClick:()=>{E(!T),O(!1)},className:`image-settings-trigger`,style:{width:`100%`,padding:`4px 12px`,height:34,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.15)`,backgroundColor:`rgba(255,255,255,0.7)`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,gap:6,transition:`all 0.2s`},children:[(0,$.jsx)(B6,{style:{fontSize:14,color:`#6366f1`}}),(0,$.jsx)(F9,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:b.video?.find(e=>e.id===C)?.name||`选择引擎`})]}),T&&(0,$.jsx)(`div`,{className:`image-settings-popover`,style:{position:`absolute`,bottom:`calc(100% + 8px)`,left:-10,width:350,backgroundColor:`#fff`,borderRadius:16,boxShadow:`0 10px 40px rgba(0,0,0,0.15)`,padding:16,border:`none`,zIndex:9999},onClick:e=>e.stopPropagation(),children:(0,$.jsxs)(`div`,{style:{marginBottom:8},children:[(0,$.jsx)(F9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择引擎`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:4},children:b.video?.map(e=>(0,$.jsxs)(`button`,{onClick:()=>{w(e.id),I({ratios:e.supportedRatios||[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:e.supportedResolutions||[`480p`,`720p`,`1080p`],durations:e.supportedDurations||[5,8,10,12,15]}),e.supportedRatios?.includes(j)||M(e.supportedRatios?.[0]||`16:9`),e.supportedResolutions?.includes(N)||P(e.supportedResolutions?.[0]||`720p`),e.supportedDurations?.includes(k)||A(e.supportedDurations?.[0]||5),E(!1)},style:{flex:1,minHeight:48,borderRadius:8,border:C===e.id?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:C===e.id?`#fff`:`#f9fafb`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`flex-start`,padding:`8px 12px`,transition:`all 0.2s`,textAlign:`left`},children:[(0,$.jsx)(`span`,{style:{fontSize:13,fontWeight:C===e.id?600:500,color:C===e.id?`#6366f1`:`#4b5563`,marginBottom:2},children:e.name}),(0,$.jsx)(`span`,{style:{fontSize:11,color:`#9ca3af`}})]},e.id))})]})})]}),(0,$.jsxs)(`div`,{style:{flex:1,position:`relative`,display:`inline-block`},children:[(0,$.jsxs)(`button`,{onClick:()=>{O(!D),E(!1)},className:`image-settings-trigger`,style:{width:`100%`,padding:`4px 12px`,height:34,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.15)`,backgroundColor:`rgba(255,255,255,0.7)`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,gap:6,transition:`all 0.2s`},children:[(0,$.jsx)(T3,{style:{fontSize:14,color:`#6366f1`}}),(0,$.jsxs)(F9,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:[j,` · `,k,`s · `,N]})]}),D&&(0,$.jsxs)(`div`,{className:`image-settings-popover`,style:{position:`absolute`,bottom:`calc(100% + 8px)`,left:-160,width:350,backgroundColor:`#fff`,borderRadius:16,boxShadow:`0 10px 40px rgba(0,0,0,0.15)`,padding:16,border:`none`,zIndex:9999},onClick:e=>e.stopPropagation(),children:[(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(F9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择比例`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:4},children:F.ratios.map(e=>(0,$.jsxs)(`button`,{onClick:()=>M(e),style:{flex:`0 0 calc(14.28% - 4px)`,minWidth:44,height:52,borderRadius:6,border:j===e?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:j===e?`#fff`:`#f9fafb`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:[(0,$.jsx)(`div`,{style:{width:18,height:18,border:`2px solid ${j===e?`#6366f1`:`#9ca3af`}`,borderRadius:2,marginBottom:2}}),(0,$.jsx)(`span`,{style:{fontSize:9,color:j===e?`#6366f1`:`#6b7280`,fontWeight:j===e?600:400},children:e})]},e))})]}),(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(F9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择时长`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsxs)(`div`,{style:{flex:1,position:`relative`,height:24,display:`flex`,alignItems:`center`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:0,right:0,height:6,borderRadius:3,background:`#e5e7eb`,transform:`translateY(-50%)`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:0,height:6,borderRadius:3,background:`#6366f1`,width:`${(k-Math.min(...F.durations))/(Math.max(...F.durations)-Math.min(...F.durations))*100}%`,transform:`translateY(-50%)`}}),(0,$.jsx)(`input`,{type:`range`,min:Math.min(...F.durations),max:Math.max(...F.durations),value:k,onChange:e=>A(Number(e.target.value)),style:{position:`relative`,width:`100%`,height:24,borderRadius:3,background:`transparent`,outline:`none`,appearance:`none`,cursor:`pointer`,zIndex:1}})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:4,padding:`4px 12px`,backgroundColor:`#f1f5f9`,borderRadius:6},children:[(0,$.jsx)(`span`,{style:{fontSize:14,fontWeight:600,color:`#64748b`},children:k}),(0,$.jsx)(`span`,{style:{fontSize:12,color:`#9ca3af`},children:`秒`})]})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(F9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择分辨率`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:6},children:F.resolutions.map(e=>(0,$.jsx)(`button`,{onClick:()=>P(e),style:{flex:1,height:42,borderRadius:6,border:N===e?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:N===e?`#6366f1`:`#f9fafb`,cursor:`pointer`,display:`flex`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:(0,$.jsx)(`span`,{style:{fontSize:12,fontWeight:600,color:N===e?`#fff`:`#4b5563`},children:e})},e))})]})]})]})]}),(0,$.jsx)(kD,{type:`primary`,style:{width:`100%`,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},onClick:()=>{Aq.info(`正在生成视频提示词,请稍候...`),se(e.id)},disabled:e.status!==`completed`,children:`下一步:生成视频提示词`})]}),e.childId===4&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{padding:`12px 14px`,background:`rgba(255,255,255,0.6)`,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.08)`,marginBottom:4},children:(0,$.jsx)(F9,{style:{color:`#64748b`,fontSize:13,lineHeight:1.8},children:`视频提词已生成,可点击按钮查看并修改后台 Schema 允许编辑的字段。`})}),(0,$.jsxs)(NU,{style:{marginTop:16,gap:12,width:`100%`},children:[(0,$.jsx)(kD,{type:`default`,icon:(0,$.jsx)(D$,{}),onClick:()=>ne(G?.videoGeneration?.promptSchema,`video`,e.id,G?.videoGeneration?.schemaConfigSnapshot),style:{flex:1,borderRadius:10,borderColor:`rgba(99, 102, 241, 0.3)`,color:`#6366f1`,height:36,fontWeight:500,background:`rgba(99, 102, 241, 0.04)`},disabled:e.status!==`completed`||!G?.videoGeneration?.promptSchema||!G?.videoGeneration?.schemaConfigSnapshot,children:`查看视频提词`}),(0,$.jsx)(kD,{onClick:()=>{Aq.info(`正在生成视频,请稍候...`),ce(e.id,e.engineId)},type:`primary`,style:{flex:1,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},disabled:e.status!==`completed`,children:`下一步:生成视频`})]})]}),e.childId===5&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{borderRadius:12,overflow:`hidden`,marginBottom:16,position:`relative`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,border:`1px solid rgba(99, 102, 241, 0.08)`,boxShadow:`0 2px 8px rgba(99, 102, 241, 0.04)`},children:e.status===`completed`&&G?.finalVideoUrl?(0,$.jsx)(`video`,{src:`http://ceshi.apiforeign.minzhong.cn${G.finalVideoUrl}`,style:{width:`100%`,height:180,objectFit:`cover`},controls:!0}):e.status===`processing`?(0,$.jsxs)(`div`,{style:{width:`100%`,height:180,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:8},children:[(0,$.jsx)(`div`,{style:{width:20,height:20,borderRadius:`50%`,border:`2px solid #e2e8f0`,borderTopColor:`#6366f1`,animation:`spinSlow 1s linear infinite`}}),(0,$.jsx)(`span`,{style:{color:`#6366f1`,fontSize:14},children:`视频生成中...`})]}):e.status===`failed`?(0,$.jsx)(`div`,{style:{width:`100%`,height:180,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ef4444`,fontSize:14},children:`视频生成失败`}):(0,$.jsx)(`div`,{style:{width:`100%`,height:180,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:14},children:`暂无视频`})}),(0,$.jsxs)(NU,{style:{width:`100%`,gap:12},children:[(0,$.jsx)(kD,{onClick:()=>le(),type:`default`,icon:(0,$.jsx)(D$,{}),style:{flex:1,borderRadius:10,borderColor:`rgba(99, 102, 241, 0.3)`,color:`#6366f1`,height:36,fontWeight:500,background:`rgba(99, 102, 241, 0.04)`},disabled:e.status!==`completed`,children:`重新生成`}),(0,$.jsx)(kD,{type:`primary`,icon:(0,$.jsx)(u0,{}),style:{flex:1,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},disabled:e.status!==`completed`,onClick:()=>{let e=`http://ceshi.apiforeign.minzhong.cn${G?.finalVideoUrl}&download=1`,t=document.createElement(`a`);t.href=e,t.download=`video_${Date.now()}.mp4`,document.body.appendChild(t),t.click(),document.body.removeChild(t)},children:`下载视频`})]})]})]})}))})})]})]})}),(0,$.jsx)(Nq,{title:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:4,height:18,background:`linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:15,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:c===`video`?`查看/编辑视频提词`:`修改提示词`})]}),open:n,onCancel:()=>{g||r(!1)},footer:[(0,$.jsx)(kD,{onClick:()=>r(!1),disabled:g,style:{borderRadius:8},children:`取消`},`cancel`),(0,$.jsx)(kD,{type:`primary`,onClick:X,loading:g,disabled:g,style:{borderRadius:8,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`},children:`确认`},`confirm`)],width:800,style:{borderRadius:16},styles:{header:{background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`,borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,padding:`16px 24px`},body:{background:`linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%)`,padding:`20px 24px`}},children:c===`image`?(0,$.jsx)(Uee,{value:i,onChange:e=>a(e.target.value),rows:8,style:{width:`100%`,height:300,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.15)`,background:`rgba(255,255,255,0.8)`},placeholder:`请输入提示词`}):(0,$.jsx)(`div`,{style:{maxHeight:500,overflowY:`auto`,paddingRight:10},children:(0,$.jsx)(P9,{value:u,schemaConfigSnapshot:f,onChange:d})})}),(0,$.jsxs)(Nq,{title:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:4,height:18,background:`linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:15,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`创作记录`})]}),open:o,onCancel:()=>s(!1),width:850,footer:null,style:{borderRadius:16},styles:{header:{background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`,borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,padding:`16px 24px`},body:{background:`linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%)`}},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginBottom:16},children:[(0,$.jsx)(cK,{placeholder:`搜索产品名称`,style:{width:200,borderRadius:8,marginRight:8,border:`1px solid rgba(99, 102, 241, 0.15)`,background:`rgba(255,255,255,0.8)`}}),(0,$.jsx)(kD,{type:`primary`,style:{borderRadius:8,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},children:`搜索`})]}),(0,$.jsx)(c$,{columns:[{title:`产品名称`,dataIndex:`targetProjectName`,key:`targetProjectName`,align:`center`},{title:`状态`,dataIndex:`status`,key:`status`,align:`center`,render:(e,t)=>{let n=e,r=t.current_step_code||t.currentStepCode,i=(()=>{if(r===`image_prompt_optimize`)switch(n){case`waiting_user`:return{text:`等待融合图生成`,color:`#f59e0b`};case`processing`:return{text:`图片提示词生成中`,color:`#f59e0b`};case`completed`:return{text:`图片提示词生成成功`,color:`#10b981`};case`failed`:return{text:`图片提示词生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else if(r===`image_generate`)switch(n){case`waiting_user`:return{text:`等待生成视频提示词`,color:`#f59e0b`};case`processing`:return{text:`融合图生成中`,color:`#f59e0b`};case`completed`:return{text:`融合图生成成功`,color:`#10b981`};case`failed`:return{text:`融合图生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else if(r===`video_prompt_optimize`)switch(n){case`waiting_user`:return{text:`等待最终视频生成`,color:`#f59e0b`};case`processing`:return{text:`视频提示词生成中`,color:`#f59e0b`};case`completed`:return{text:`视频提示词生成成功`,color:`#10b981`};case`failed`:return{text:`视频提示词生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else if(r===`video_generate`)switch(n){case`waiting_user`:return{text:``,color:`#666`};case`processing`:return{text:`最终视频生成中`,color:`#f59e0b`};case`completed`:return{text:`任务完成`,color:`#10b981`};case`failed`:return{text:`最终视频生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else if(r===`material_input`)switch(n){case`waiting_user`:return{text:`等待生成图片提示词`,color:`#f59e0b`};case`processing`:return{text:`素材处理中`,color:`#f59e0b`};case`completed`:return{text:`素材上传成功`,color:`#10b981`};case`failed`:return{text:`素材上传失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else return{pending:{text:`子任务待处理`,color:`#f59e0b`},waiting_user:{text:`等待用户确认或触发`,color:`#f59e0b`},processing:{text:`子任务处理中`,color:`#f59e0b`},completed:{text:`子任务完成`,color:`#10b981`},failed:{text:`子任务失败`,color:`#ef4444`},cancelled:{text:`子任务取消`,color:`#94a3b8`}}[n]||{text:n||`-`,color:`#666`}})();return typeof i==`string`?(0,$.jsx)(`span`,{style:{fontSize:12,color:`#666`,fontWeight:500},children:i}):(0,$.jsx)(`span`,{style:{fontSize:12,color:i.color,fontWeight:500},children:i.text})}},{title:`创建时间`,dataIndex:`createdAt`,key:`createdAt`,align:`center`,render:e=>{if(!e)return`-`;let t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)} ${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`}},{title:`操作`,key:`action`,align:`center`,render:(t,n)=>(0,$.jsx)(`button`,{onClick:()=>e(`/initial/${n.id}/initialinfo`),style:{color:`#6366f1`,textDecoration:`none`,fontSize:12,border:`none`,background:`rgba(99, 102, 241, 0.08)`,padding:`4px 12px`,borderRadius:8,cursor:`pointer`,transition:`all 0.2s`,fontWeight:500},children:`查看详情`})}],dataSource:L,rowKey:`id`,pagination:{current:z,pageSize:V,total:U,showSizeChanger:!0,showQuickJumper:!0,showTotal:e=>`共 ${e} 条`,onChange:Y},style:{fontSize:13},scroll:{y:350}})]})]})}function Kee(){let e=Ge(),[t,n]=(0,x.useState)(``),[r,i]=(0,x.useState)(``),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(0),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)([]),[h,g]=(0,x.useState)(1),[_,v]=(0,x.useState)(10),[y,b]=(0,x.useState)(0),S=(0,x.useRef)(null),C=(0,x.useRef)(null),w=(0,x.useCallback)(()=>{t&&URL.revokeObjectURL(t),n(``),i(``),u(0),c(``)},[t]),T=async e=>{if(!e.type.startsWith(`video/`))return i(`请选择视频文件`),!1;if(e.size>100*1024*1024)return i(`视频文件大小不能超过 100MB`),!1;w(),f(!0);try{n((await A5(e)).url),i(``),Aq.success(`视频上传成功`)}catch{i(`视频上传失败,请重试`),Aq.error(`视频上传失败`)}finally{f(!1)}return!1},E=(0,x.useCallback)(()=>{S.current&&u(S.current.duration)},[]),D=async()=>{if(!t||!s.trim()){Aq.warning(`请先上传视频并输入产品名称`);return}f(!0);try{await y7({video_url:t,video_duration_seconds:l,title:s.trim(),idempotency_key:`shot_${Date.now()}`}),Aq.success(`任务创建成功`),w()}catch{Aq.error(`任务创建失败,请重试`)}finally{f(!1)}},O=async(e,t)=>{try{let n=await b7(e,t);m(n.items||[]),b(n.total||0),g(e),v(t)}catch{Aq.error(`获取列表失败`)}};return(0,$.jsx)(`div`,{style:{margin:`-24px -32px -32px`,borderRadius:20,minHeight:`calc(100vh - 32px)`,overflow:`auto`,background:`linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%)`,position:`relative`,padding:`20px 32px`},children:(0,$.jsxs)(`div`,{style:{maxWidth:1200,margin:`50px auto`,position:`relative`,zIndex:10},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:32},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:16,marginBottom:50},children:[(0,$.jsx)(`div`,{style:{width:40,height:2,background:`linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent)`,borderRadius:1}}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h1`,{style:{fontSize:24,fontWeight:700,margin:0,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`AI视频拆镜工作台`}),(0,$.jsx)(`p`,{style:{fontSize:13,color:`#64748b`,margin:`4px 0 0 0`},children:`一键拆解画面分镜,助力仿拍或创作`})]}),(0,$.jsx)(`div`,{style:{width:40,height:2,background:`linear-gradient(90deg, transparent, #8b5cf6, #6366f1, transparent)`,borderRadius:1}})]}),(0,$.jsx)(kD,{type:`text`,icon:(0,$.jsx)(RU,{}),onClick:()=>{o(!0),O(1,10)},style:{fontSize:14,color:`#6366f1`,background:`rgba(99, 102, 241, 0.1)`,borderRadius:12,padding:`10px 20px`,display:`flex`,alignItems:`center`,gap:8,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.15)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.1)`},children:`创作记录`})]}),(0,$.jsxs)(`div`,{style:{width:`100%`,maxWidth:720,margin:`0 auto`},children:[r&&(0,$.jsx)(`div`,{style:{background:`linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%)`,backdropFilter:`blur(10px)`,border:`1px solid rgba(239, 68, 68, 0.2)`,borderRadius:12,padding:`14px 20px`,marginBottom:24,color:`#ef4444`,fontSize:14,textAlign:`center`,fontWeight:500},children:r}),!t&&(0,$.jsxs)(`div`,{style:{background:`linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%)`,backdropFilter:`blur(20px)`,borderRadius:24,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`,position:`relative`,overflow:`hidden`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:-50,right:-50,width:200,height:200,background:`radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%)`,borderRadius:`50%`}}),(0,$.jsx)(g0.Dragger,{accept:`video/*`,beforeUpload:T,showUploadList:!1,disabled:d,style:{background:d?`rgba(243, 244, 246, 0.3)`:`transparent`,border:`2px dashed ${d?`rgba(209, 213, 219, 0.5)`:`rgba(99, 102, 241, 0.3)`}`,borderRadius:24,padding:`56px 20px`,cursor:d?`not-allowed`:`pointer`,margin:0},children:d?(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,$.jsx)(`div`,{style:{width:100,height:100,margin:`0 auto 20px`,background:`linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%)`,borderRadius:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(`div`,{style:{width:40,height:40,border:`4px solid #6366f1`,borderTopColor:`transparent`,borderRadius:`50%`,animation:`spin 1s linear infinite`}})}),(0,$.jsx)(`p`,{style:{fontSize:16,color:`#6366f1`,margin:`0 0 8px 0`,fontWeight:600},children:`上传中...`}),(0,$.jsx)(`p`,{style:{fontSize:13,color:`#64748b`,margin:0},children:`请稍候,视频正在上传`})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{width:100,height:100,margin:`0 auto 20px`,background:`linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%)`,borderRadius:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(p4,{style:{fontSize:40,color:`#6366f1`}})}),(0,$.jsx)(`p`,{style:{fontSize:16,color:`#1e293b`,margin:`0 0 8px 0`,fontWeight:600},children:`点击或拖拽到此上传视频文件`}),(0,$.jsx)(`p`,{style:{fontSize:13,color:`#64748b`,margin:0},children:`支持 MP4、MOV 格式视频,最大支持 100MB 的文件,支持上传 3 分钟内的视频`})]})})]}),t&&(0,$.jsxs)(`div`,{style:{background:`linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%)`,backdropFilter:`blur(20px)`,borderRadius:24,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`,overflow:`hidden`,position:`relative`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:-50,right:-50,width:200,height:200,background:`radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%)`,borderRadius:`50%`}}),(0,$.jsxs)(`div`,{style:{borderRadius:22,background:`#ffffff`,padding:`24px`,position:`relative`,zIndex:1},children:[(0,$.jsx)(Lq,{title:`确定要删除吗?`,okText:`确定`,cancelText:`取消`,onConfirm:w,children:(0,$.jsx)(`button`,{style:{position:`absolute`,top:20,right:20,width:36,height:36,border:`1px solid rgba(99, 102, 241, 0.2)`,background:`rgba(99, 102, 241, 0.05)`,borderRadius:10,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:16,color:`#6366f1`,zIndex:10,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(239, 68, 68, 0.1)`,e.currentTarget.style.borderColor=`rgba(239, 68, 68, 0.3)`,e.currentTarget.style.color=`#ef4444`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.05)`,e.currentTarget.style.borderColor=`rgba(99, 102, 241, 0.2)`,e.currentTarget.style.color=`#6366f1`},children:`🗑️`})}),(0,$.jsx)(`div`,{style:{textAlign:`center`,marginBottom:20},children:(0,$.jsx)(`video`,{ref:S,src:`http://ceshi.apiforeign.minzhong.cn${t}`,controls:!0,onLoadedMetadata:E,style:{maxWidth:`100%`,maxHeight:320,borderRadius:12,background:`#000`,boxShadow:`0 4px 16px rgba(0,0,0,0.1)`}})}),(0,$.jsxs)(`div`,{style:{marginBottom:24},children:[(0,$.jsxs)(`label`,{style:{display:`block`,fontSize:14,fontWeight:500,color:`#334155`,marginBottom:8},children:[`产品名称 `,(0,$.jsx)(`span`,{style:{color:`#ef4444`},children:`*`})]}),(0,$.jsx)(cK,{placeholder:`请输入产品名称`,value:s,onChange:e=>c(e.target.value),style:{width:`100%`,height:44,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.2)`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(99, 102, 241, 0.4)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(99, 102, 241, 0.2)`}})]}),(0,$.jsx)(`div`,{style:{textAlign:`center`,marginTop:16},children:(0,$.jsx)(`button`,{onClick:D,disabled:!t||!s.trim()||d,style:{padding:`14px 56px`,background:t&&s.trim()&&!d?`linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%)`:`#e2e8f0`,color:`white`,border:`none`,borderRadius:12,fontSize:15,fontWeight:600,cursor:t&&s.trim()&&!d?`pointer`:`not-allowed`,boxShadow:t&&s.trim()&&!d?`0 6px 20px rgba(99, 102, 241, 0.3)`:`none`,display:`inline-flex`,alignItems:`center`,gap:10,transition:`all 0.3s ease`},onMouseEnter:e=>{t&&s.trim()&&!d&&(e.currentTarget.style.transform=`translateY(-2px)`,e.currentTarget.style.boxShadow=`0 8px 25px rgba(99, 102, 241, 0.4)`)},onMouseLeave:e=>{t&&s.trim()&&!d&&(e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 6px 20px rgba(99, 102, 241, 0.3)`)},children:(0,$.jsx)(`span`,{children:d?`创建中...`:`创建`})})})]})]}),(0,$.jsx)(`canvas`,{ref:C,style:{display:`none`}}),(0,$.jsxs)(Nq,{title:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:4,height:20,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:16,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`},children:`创作记录`})]}),open:a,onCancel:()=>o(!1),width:800,footer:null,styles:{body:{background:`linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%)`},header:{background:`#fff`,borderBottom:`1px solid rgba(99, 102, 241, 0.1)`,padding:`20px 24px`}},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginBottom:16,gap:8},children:[(0,$.jsx)(cK,{placeholder:`搜索产品名称`,style:{width:200,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.2)`,height:40}}),(0,$.jsx)(kD,{type:`primary`,style:{borderRadius:10,height:40,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`},children:`搜索`})]}),(0,$.jsx)(`div`,{style:{background:`linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%)`,backdropFilter:`blur(20px)`,borderRadius:16,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`},children:(0,$.jsx)(c$,{columns:[{title:`产品名称`,dataIndex:`title`,key:`title`,render:e=>(0,$.jsx)(`span`,{style:{fontSize:14,color:`#1e293b`,fontWeight:500},children:e})},{title:`创建时间`,dataIndex:`createdAt`,key:`createdAt`,render:e=>{if(!e)return`-`;let t=new Date(e);return(0,$.jsx)(`span`,{style:{fontSize:13,color:`#64748b`},children:`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)} ${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`})}},{title:`操作`,key:`action`,align:`center`,render:t=>(0,$.jsx)(kD,{type:`text`,onClick:()=>e(`/removelens/${t.id}/removeinfo`),style:{color:`#6366f1`,fontSize:13,padding:`4px 12px`,borderRadius:6,background:`rgba(99, 102, 241, 0.1)`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.15)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.1)`},children:`查看详情`})}],dataSource:p,rowKey:`id`,pagination:{current:h,pageSize:_,total:y,showSizeChanger:!0,showQuickJumper:!0,showTotal:e=>`共 ${e} 条`,onChange:(e,t)=>{O(e,t)},style:{padding:`16px 24px`,borderTop:`1px solid rgba(99, 102, 241, 0.1)`}},style:{fontSize:13},scroll:{y:350},components:{body:{row:({className:e,style:t,...n})=>(0,$.jsx)(`tr`,{...n,className:e,style:{...t,transition:`all 0.2s ease`,borderBottom:`1px solid rgba(99, 102, 241, 0.05)`}}),cell:({className:e,style:t,...n})=>(0,$.jsx)(`td`,{...n,className:e,style:{...t,padding:`16px 24px`}})},header:{cell:({className:e,style:t,...n})=>(0,$.jsx)(`th`,{...n,className:e,style:{...t,background:`rgba(99, 102, 241, 0.03)`,color:`#64748b`,fontWeight:500,fontSize:13,padding:`16px 24px`,borderBottom:`none`}})}}})})]})]})]})})}var{Search:qee}=cK,{Text:Jee}=S1,Yee=()=>{let[e,t]=(0,x.useState)(`project`),[n,r]=(0,x.useState)(`video`),[i,a]=(0,x.useState)([]),[o,s]=(0,x.useState)({page:1,pageSize:10}),[c,l]=(0,x.useState)(0),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(new Set),[m,h]=(0,x.useState)(!1),[g,_]=(0,x.useState)(null),v=x.createRef(),[y,b]=(0,x.useState)(``),[S,C]=(0,x.useState)(!1),[w,T]=(0,x.useState)([]),[E,D]=(0,x.useState)({}),[O,k]=(0,x.useState)(!1),[A,j]=(0,x.useState)(!1),[M,N]=(0,x.useState)([{id:`template_001`,name:`前测模板A`},{id:`template_002`,name:`前测模板B`},{id:`template_003`,name:`前测模板C`}]),[P,F]=(0,x.useState)(!1),[I,L]=(0,x.useState)([]),[R,z]=(0,x.useState)(``),[B,V]=(0,x.useState)([]),[H,U]=(0,x.useState)(!1),[W,G]=(0,x.useState)(0),[K,ee]=(0,x.useState)([]),[te,q]=(0,x.useState)(1),[J,Y]=(0,x.useState)(10),[ne,X]=(0,x.useState)(!1),[re,ie]=(0,x.useState)([]),[ae,oe]=(0,x.useState)(!1),[se,ce]=(0,x.useState)(new Set),le=null,ue=new Map,de=[],fe=0,pe=0,me=(e,t,n)=>{if(n&&pe<8)pe++,fe++,e();else if(fe<15)fe++,e();else{let r={callback:e,priority:n?2:1,element:t};de.push(r),de.sort((e,t)=>t.priority-e.priority)}},he=()=>{if(fe--,pe>0&&pe--,de.length>0){let e=de.shift();e&&(fe++,e.priority===2&&pe++,e.callback())}},ge=()=>(le||=new IntersectionObserver(e=>{e.forEach(e=>{let t=ue.get(e.target);if(e.isIntersecting&&t){ue.delete(e.target),le?.unobserve(e.target);let n=e.intersectionRatio>=1;me(t,e.target,n)}})},{rootMargin:`400px`,threshold:[.01,.5,1]}),le),_e=e=>{if(!e)return null;try{let t=new URL(e).searchParams.get(`exp`);return t?parseInt(t,10):null}catch{try{let t=e.indexOf(`?`);if(t!==-1){let n=e.substring(t+1),r=new URLSearchParams(n).get(`exp`);if(r)return parseInt(r,10)}return null}catch{return null}}},ve=e=>{let t=_e(e);return t?Math.floor(Date.now()/1e3)>t:!1},ye=({item:e,mediaType:t,onClick:n,isSelected:r=!1,onToggleSelect:i,isSelectionMode:a=!1})=>{let[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),m=(0,x.useRef)(null),h=(0,x.useRef)(null),g=(0,x.useRef)(null);(0,x.useEffect)(()=>{let n=t===`video`?e.videoUrl:e.imageUrl;n&&ve(n)&&d(!0)},[e,t]),(0,x.useEffect)(()=>{if(u)return;let e=m.current;if(!e)return;let t=ge();return ue.set(e,()=>{p(!0)}),t.observe(e),()=>{ue.delete(e),t.unobserve(e)}},[u]);let _=(e,t=!1)=>{let n=`http://ceshi.apiforeign.minzhong.cn`,r=e.startsWith(`/`)?e.slice(1):e,i=n.endsWith(`/`)?n.slice(0,-1):n;return t?`${i}/static/${r}&w=300&q=50`:`${i}/${r}`},v=()=>{g.current&&clearTimeout(g.current),s(!0),p(!1),he()},y=()=>{g.current=setTimeout(()=>{_(t===`video`?e.videoUrl:e.imageUrl),l(!0),p(!1),he()},1e3)},b=t===`video`?_(e.videoUrl):_(e.imageUrl,!0),S=e.videoCoverUrl?_(e.videoCoverUrl,!0):void 0;return(0,$.jsxs)(`div`,{ref:m,style:{width:160,height:120,position:`relative`,borderRadius:4,cursor:`pointer`,overflow:`hidden`,boxShadow:`0 2px 8px rgba(0,0,0,0.1)`,transition:`transform 0.2s, box-shadow 0.2s`},onClick:a?void 0:n,onMouseEnter:e=>{a||(e.currentTarget.style.transform=`scale(1.05)`,e.currentTarget.style.boxShadow=`0 4px 16px rgba(0,0,0,0.2)`)},onMouseLeave:e=>{a||(e.currentTarget.style.transform=`scale(1)`,e.currentTarget.style.boxShadow=`0 2px 8px rgba(0,0,0,0.1)`)},children:[(t===`video`&&e.videoCoverUrl||t===`image`)&&(f||o)&&!c&&(0,$.jsxs)(`div`,{style:{width:`100%`,height:`100%`,position:`relative`},children:[f&&!o&&(0,$.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundColor:`rgba(248, 250, 252, 0.9)`,display:`flex`,alignItems:`center`,justifyContent:`center`,zIndex:1},children:(0,$.jsx)(`div`,{style:{width:28,height:28,border:`3px solid #e2e8f0`,borderTopColor:`#3b82f6`,borderRadius:`50%`,animation:`spin 0.8s linear infinite`}})}),t===`video`&&e.videoCoverUrl&&(0,$.jsx)(`img`,{ref:h,src:S,style:{width:`100%`,height:`100%`,objectFit:`cover`,opacity:+!!o,transition:`opacity 0.3s ease-in-out`},loading:`lazy`,onLoad:v,onError:y}),t===`image`&&(0,$.jsx)(`img`,{ref:h,src:b,alt:`图片预览`,style:{width:`100%`,height:`100%`,objectFit:`cover`,opacity:+!!o,transition:`opacity 0.3s ease-in-out`},loading:`lazy`,onLoad:v,onError:y})]}),!f&&!o&&!c&&(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%)`},children:(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,backgroundColor:`#cbd5e1`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:t===`video`?(0,$.jsx)(L8,{style:{color:`#64748b`,fontSize:16}}):(0,$.jsx)(i6,{style:{color:`#64748b`,fontSize:16}})})}),t===`video`&&!e.videoCoverUrl&&!c&&(0,$.jsxs)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,backgroundColor:`#1e293b`},children:[(0,$.jsx)(L8,{style:{color:`#64748b`,fontSize:24}}),(0,$.jsx)(Jee,{style:{fontSize:12,color:`#94a3b8`,marginTop:4},children:`暂无封面`})]}),u&&(0,$.jsxs)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:`#fef3c7`,color:`#d97706`,fontSize:12,flexDirection:`column`,gap:4},children:[(0,$.jsx)(JH,{style:{fontSize:24}}),`图片过期`]}),c&&(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:`#fef2f2`,color:`#dc2626`,fontSize:12},children:`加载失败`}),!u&&!a&&(0,$.jsx)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,background:`linear-gradient(transparent, rgba(0,0,0,0.5))`,padding:`8px`,color:`#fff`,fontSize:12,opacity:0,transition:`opacity 0.2s`},onMouseEnter:e=>{e.currentTarget.style.opacity=`1`},onMouseLeave:e=>{e.currentTarget.style.opacity=`0`},children:`点击预览`}),a&&(0,$.jsx)(`div`,{style:{position:`absolute`,top:8,right:8,width:20,height:20,borderRadius:`50%`,backgroundColor:r?`#10b981`:`rgba(255,255,255,0.9)`,border:r?`2px solid #10b981`:`2px solid #d1d5db`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,zIndex:10,transition:`all 0.2s`},onClick:t=>{t.stopPropagation(),i?.(e.id)},onMouseEnter:e=>{e.currentTarget.style.transform=`scale(1.1)`},onMouseLeave:e=>{e.currentTarget.style.transform=`scale(1)`},children:r&&(0,$.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 12 12`,fill:`none`,children:(0,$.jsx)(`path`,{d:`M10 3L4.5 8.5L2 6`,stroke:`white`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`})})}),a&&r&&(0,$.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,border:`3px solid #10b981`,borderRadius:4,pointerEvents:`none`,zIndex:5}})]})},be=e=>{_(e),h(!0),window.dispatchEvent(new Event(`previewOpen`))},xe=()=>{v.current&&(v.current.pause(),v.current.currentTime=0),document.querySelectorAll(`video`).forEach(e=>{e.pause(),e.currentTime=0}),h(!1)},Se=e=>{let t=e.fileList.filter(e=>{let t=e.type.toLowerCase();return t.startsWith(`image/`)||t.startsWith(`video/`)}),n=e.fileList.filter(e=>{let t=e.type.toLowerCase();return!t.startsWith(`image/`)&&!t.startsWith(`video/`)});n.length>0&&Aq.warning(`已过滤 ${n.length} 个无效文件,仅支持图片和视频`),T(t)},Ce=e=>{T(t=>t.filter(t=>t.uid!==e.uid))},we=async()=>{if(w.length===0){Aq.warning(`请先选择要上传的文件`);return}k(!0);for(let e=0;e<w.length;e++){let t=w[e];D(e=>({...e,[t.uid]:0}));for(let e=0;e<=100;e+=10)await new Promise(e=>setTimeout(e,100)),D(n=>({...n,[t.uid]:e}))}await new Promise(e=>setTimeout(e,500)),Aq.success(`成功上传 ${w.length} 个文件`),k(!1),T([]),C(!1),s(e=>({...e,page:1}))},Te=e=>{ce(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},Ee=()=>{let e=i.flatMap(e=>e.items.map(e=>e.id));se.size===e.length?ce(new Set):ce(new Set(e))},De=()=>{if(se.size===0){Aq.warning(`请先选择要上传的媒体`);return}L([]),z(``),ie([]),j(!0)},Oe=async(e,t)=>{U(!0);try{let n=await m7({page:e,page_size:t}),r=n?.data||n;console.log(n),V(r||[]),G(n.pagination.total||0)}catch(e){console.error(`加载授权列表失败:`,e),V([]),G(0)}finally{U(!1)}},ke=async()=>{k(!0);let e={};for(let t of se)e[t]={status:`pending`,message:``};ie(Object.entries(e).map(([e,t])=>({itemId:e,...t})));try{for(let t of se){let r=null,a=``,o=``;for(let e of i){let n=e.items.find(e=>e.id===t);if(n){r=n;break}}if(r){if(n===`video`&&r.videoUrl)a=`http://ceshi.apiforeign.minzhong.cn${r.videoUrl}`,o=`video`;else if(n===`image`&&r.imageUrl)a=`http://ceshi.apiforeign.minzhong.cn/static${r.imageUrl}`,o=`image`;else continue;e[t]={status:`uploading`,message:`正在上传...`},ie(Object.entries(e).map(([e,t])=>({itemId:e,...t})));try{let n=await fetch(a);if(!n.ok)throw Error(`下载失败`);let i=await n.blob(),s=new File([i],r.title||`media_${t}`,{type:o===`video`?`video/mp4`:`image/jpeg`});for(let e of I){let n=new FormData;n.append(`file`,s),n.append(`media_type`,o),n.append(`original_id`,t),n.append(`account_id`,e.accountId);let r=localStorage.getItem(`auth_token`),i=await fetch(`http://ceshi.apiforeign.minzhong.cn/api/generation-records/batch-upload`,{method:`POST`,headers:r?{Authorization:`Bearer ${r}`}:{},body:n}),a=await i.json();if(!i.ok)throw Error(a.message||`上传失败`)}e[t]={status:`success`,message:`上传成功`}}catch(n){console.error(`上传失败: ${t}`,n),e[t]={status:`error`,message:n.message||`上传失败`}}ie(Object.entries(e).map(([e,t])=>({itemId:e,...t})))}}let t=Object.values(e).filter(e=>e.status===`success`).length,r=Object.values(e).filter(e=>e.status===`error`).length;r===0?Aq.success(`成功上传 ${t} 个文件`):Aq.warning(`上传完成:成功 ${t} 个,失败 ${r} 个`),oe(!1),ce(new Set)}catch(e){Aq.error(`批量上传失败`),console.error(e)}finally{k(!1)}},Ae=e=>{console.log(e),console.log(`qweqwe`),b(e)};(0,x.useEffect)(()=>{d(!0);let t=``;if(t=e===`project`?`?gen_type=${n}&history_source=generation_record&page=${o.page}&page_size=${o.pageSize}`:`?gen_type=${n}&page=${o.page}&page_size=${o.pageSize}`,y){let t=``;t=e===`project`?`${y}?gen_type=${n}&history_source=generation_record&page=${o.page}&page_size=${o.pageSize}`:`${y}?gen_type=${n}&page=${o.page}&page_size=${o.pageSize}`,t7(t).then(e=>{let t=Array.isArray(e)?e:e?.items||[],n=[{generatedDate:e.generatedDate,items:t,total:e.total,page:e.page}];console.log(`data`,t),n&&n[0].items.length>0?a(n):a([]),console.log(`recordList`,n)}).catch(e=>{}).finally(()=>{d(!1)})}else e7(t).then(e=>{let t=Array.isArray(e)?e:e?.groups||[];t.forEach(e=>{e.page=1}),console.log(`qweqweqwe`,t),o.page===1?a(t):a(e=>[...e,...t]),l(e?.totalDays||0)}).catch(e=>{o.page===1&&a([])}).finally(()=>{d(!1)})},[e,n,o.page,y]),(0,x.useEffect)(()=>{F(!0),_7().then(e=>{let t=e?.data||e;N(Array.isArray(t)?t:[])}).catch(()=>{N([{id:`template_001`,name:`前测模板A`},{id:`template_002`,name:`前测模板B`},{id:`template_003`,name:`前测模板C`}])}).finally(()=>{F(!1)})},[]);let je=()=>{u||s(e=>({...e,page:e.page+1}))},Me=async(t,r,i)=>{if(f.has(r))return;p(e=>new Set([...e,r]));let s=i+1,c=``;c=e===`project`?`${t}?gen_type=${n}&history_source=generation_record&page=${s}&page_size=${o.pageSize}`:`${t}?gen_type=${n}&page=${s}&page_size=${o.pageSize}`;try{let e=(await t7(c)).items||[];e&&e.length>0&&a(n=>n.map(n=>n.generatedDate===t?{...n,items:[...n.items,...e],page:s}:n))}catch{}finally{p(e=>{let t=new Set(e);return t.delete(r),t})}};return(0,x.useEffect)(()=>{s(e=>({...e,page:1}))},[e,n]),(0,$.jsxs)(`div`,{style:{minHeight:`calc(100vh - 90px)`,background:`#ffffffff`,overflowY:`auto`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,marginBottom:16,padding:`12px 20px`,borderRadius:12,background:`#fff`,border:`1px solid #f0f0f5`,justifyContent:`space-between`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(U4,{style:{color:`#94a3b8`,fontSize:14}}),(0,$.jsxs)(NU,{children:[(0,$.jsx)(kD,{type:e===`project`?`primary`:`default`,onClick:()=>t(`project`),style:{borderRadius:8,background:e===`project`?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`#f8f9fc`,border:e===`project`?`none`:`1px solid #e2e8f0`,color:e===`project`?`#fff`:`#64748b`,fontWeight:600},icon:(0,$.jsx)(_Z,{}),children:`项目记录`}),(0,$.jsx)(kD,{type:e===`creation`?`primary`:`default`,onClick:()=>t(`creation`),style:{borderRadius:8,background:e===`creation`?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`#f8f9fc`,border:e===`creation`?`none`:`1px solid #e2e8f0`,color:e===`creation`?`#fff`:`#64748b`,fontWeight:600},icon:(0,$.jsx)(RU,{}),children:`创作记录`})]})]}),(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:ae?(0,$.jsxs)(NU,{children:[(0,$.jsx)(kD,{onClick:Ee,style:{borderRadius:8,background:`#f8f9fc`,border:`1px solid #e2e8f0`,color:`#64748b`,fontWeight:600},children:se.size===i.reduce((e,t)=>e+t.items.length,0)?`取消全选`:`全选`}),(0,$.jsx)(kD,{onClick:()=>{oe(!1),ce(new Set)},style:{borderRadius:8,background:`#f8f9fc`,border:`1px solid #e2e8f0`,color:`#64748b`,fontWeight:600},children:`取消选择`}),(0,$.jsx)(kD,{type:`primary`,onClick:De,loading:O,disabled:O||se.size===0,style:{borderRadius:8,background:`linear-gradient(135deg, #10b981, #059669)`,border:`none`,fontWeight:600},children:O?`上传中...`:`上传选中 (${se.size})`})]}):(0,$.jsx)(kD,{type:`primary`,icon:(0,$.jsx)(j8,{}),onClick:()=>oe(!0),style:{borderRadius:8,background:`linear-gradient(135deg, #10b981, #059669)`,border:`none`,fontWeight:600},children:`批量上传`})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,marginBottom:24,padding:`12px 20px`,borderRadius:12,background:`#fff`,border:`1px solid #f0f0f5`},children:[(0,$.jsx)(S1.Text,{style:{color:`#94a3b8`,fontSize:14},children:`媒体类型:`}),(0,$.jsxs)(NU,{children:[(0,$.jsx)(kD,{type:n===`video`?`primary`:`default`,onClick:()=>r(`video`),style:{borderRadius:8,background:n===`video`?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`#f8f9fc`,border:n===`video`?`none`:`1px solid #e2e8f0`,color:n===`video`?`#fff`:`#64748b`,fontWeight:600},icon:(0,$.jsx)(L8,{}),children:`视频`}),(0,$.jsx)(kD,{type:n===`image`?`primary`:`default`,onClick:()=>r(`image`),style:{borderRadius:8,background:n===`image`?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`#f8f9fc`,border:n===`image`?`none`:`1px solid #e2e8f0`,color:n===`image`?`#fff`:`#64748b`,fontWeight:600},icon:(0,$.jsx)(i6,{}),children:`图片`}),(0,$.jsx)(tU,{picker:`date`,value:y?(0,LD.default)(y):void 0,onChange:(e,t)=>Ae(t||``),format:`YYYY-MM-DD`,style:{width:160,borderRadius:8,border:`1px solid #e2e8f0`},placeholder:`选择日期`}),y&&(0,$.jsx)(kD,{type:`text`,onClick:()=>Ae(``),style:{color:`#94a3b8`,fontSize:12},children:`清除`})]})]}),i.length===0?(0,$.jsx)(WC,{image:WC.PRESENTED_IMAGE_SIMPLE,description:`暂无生成记录`,style:{padding:`60px 0`}}):(0,$.jsxs)(`div`,{style:{padding:`0 4px`},children:[i.map((e,t)=>(0,$.jsxs)(`div`,{style:{marginBottom:32},children:[(0,$.jsx)(`div`,{style:{fontSize:14,fontWeight:600,color:`#64748b`,marginBottom:12,paddingLeft:8},children:e.generatedDate}),(0,$.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:8},children:e.items.map(e=>(0,$.jsx)(ye,{item:e,mediaType:n,onClick:()=>ae?Te(e.id):be(e),isSelected:se.has(e.id),onToggleSelect:Te,isSelectionMode:ae},e.id))}),e.total&&e.total>e.items.length&&(0,$.jsx)(`div`,{style:{padding:`12px 0`,textAlign:`left`},children:(0,$.jsx)(kD,{onClick:()=>Me(e.generatedDate,e.items,e.page),loading:f.has(e.generatedDate),disabled:f.has(e.generatedDate),size:`small`,style:{borderRadius:6,background:`transparent`,border:`1px dashed #cbd5e1`,color:`#64748b`,fontSize:12},children:f.has(e.date)?`加载中...`:`查看全部 (${e.total})`})})]},t)),i.length>0&&c>i.length&&(0,$.jsx)(`div`,{style:{textAlign:`center`,padding:`20px 0`},children:(0,$.jsx)(kD,{onClick:je,loading:u,disabled:u,style:{borderRadius:8,background:`#f8f9fc`,border:`1px solid #e2e8f0`,color:`#64748b`,fontWeight:500},children:u?`加载中...`:`加载更多`})})]}),(0,$.jsx)(Nq,{title:`批量上传媒体`,open:S,onCancel:()=>{C(!1),T([])},footer:null,width:600,children:(0,$.jsxs)(`div`,{style:{padding:`16px 0`},children:[(0,$.jsx)(g0,{multiple:!0,fileList:w,onChange:Se,beforeUpload:()=>!1,accept:`image/*,video/*`,listType:`picture-card`,onRemove:Ce,children:(0,$.jsxs)(`div`,{style:{width:100,height:100,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,border:`1px dashed #d9d9d9`,borderRadius:8,cursor:`pointer`},children:[(0,$.jsx)(IR,{style:{fontSize:24,color:`#999`}}),(0,$.jsx)(`span`,{style:{marginTop:8,color:`#999`,fontSize:12},children:`点击上传`})]})}),w.length>0&&(0,$.jsxs)(`div`,{style:{marginTop:16},children:[(0,$.jsxs)(S1.Text,{strong:!0,style:{fontSize:14,color:`#475569`},children:[`已选择 `,w.length,` 个文件`]}),(0,$.jsx)(`div`,{style:{marginTop:12,maxHeight:200,overflowY:`auto`},children:w.map(e=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,padding:8,border:`1px solid #e8e8e8`,borderRadius:6,marginBottom:8},children:[(0,$.jsx)(`div`,{style:{width:40,height:40,borderRadius:4,overflow:`hidden`,backgroundColor:`#f5f5f5`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:e.type?.startsWith(`image/`)?(0,$.jsx)(i6,{style:{color:`#3b82f6`,fontSize:16}}):e.type?.startsWith(`video/`)?(0,$.jsx)(L8,{style:{color:`#f59e0b`,fontSize:16}}):(0,$.jsx)(RU,{style:{color:`#999`,fontSize:16}})}),(0,$.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,$.jsx)(`div`,{style:{fontSize:13,color:`#333`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.name}),E[e.uid]!==void 0&&(0,$.jsx)(gJ,{percent:E[e.uid],size:`small`,showInfo:!1,style:{marginTop:4}})]}),(0,$.jsx)(kD,{icon:(0,$.jsx)(Y8,{}),onClick:()=>Ce(e),style:{background:`transparent`,border:`none`,color:`#999`}})]},e.uid))})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12,marginTop:24,paddingTop:16,borderTop:`1px solid #f0f0f0`,justifyContent:`flex-end`},children:[(0,$.jsx)(kD,{onClick:()=>{C(!1),T([])},style:{borderRadius:8},children:`取消`}),(0,$.jsx)(kD,{type:`primary`,onClick:we,loading:O,disabled:O||w.length===0,style:{borderRadius:8},children:O?`上传中...`:`开始上传`})]})]})}),(0,$.jsx)(Nq,{title:`批量上传配置`,open:A,onCancel:()=>{j(!1),L([]),z(``),ee([]),ie([])},footer:null,width:900,children:(0,$.jsxs)(`div`,{style:{padding:`16px 0`},children:[(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#475569`,marginBottom:8,display:`block`},children:`选择授权账户(可多选)`}),(0,$.jsx)(bw,{mode:`multiple`,value:K,onChange:e=>{ee(e);let t=B.filter(t=>e.includes(String(t.id))).map(e=>({accountId:String(e.accountId),authStatus:`authorized`})),n=R.split(`
|
||
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>({accountId:e,authStatus:`pending`})),r=[...t,...n],i=new Set;L(r.filter(e=>i.has(e.accountId)?!1:(i.add(e.accountId),!0)))},placeholder:`点击选择授权账户`,style:{width:`100%`,marginBottom:16,borderRadius:8},popupRender:()=>(0,$.jsx)(`div`,{style:{padding:8,width:800,maxHeight:500,overflow:`auto`},children:(0,$.jsx)(c$,{dataSource:B,columns:[{title:`授权账户ID`,dataIndex:`accountId`,key:`accountId`,width:120},{title:`授权账户名称`,dataIndex:`accountName`,key:`accountName`},{title:`授权账户角色`,dataIndex:`accountRole`,key:`accountRole`,width:200,render:e=>({ADVERTISER:`客户`,CUSTOMER_ADMIN:`普通版工作台-管理员`,CUSTOMER_OPERATOR:`普通版工作台-协作者`,AGENT:`代理商`,CHILD_AGENT:`二级代理商`,PLATFORM_ROLE_STAR:`星图账户`,PLATFORM_ROLE_SHOP_ACCOUNT:`抖音店铺账户`,PLATFORM_ROLE_QIANCHUAN_AGENT:`千川代理商`,PLATFORM_ROLE_STAR_AGENT:`星图代理商`,PLATFORM_ROLE_AWEME:`抖音号`,PLATFORM_ROLE_STAR_MCN:`星图MCN机构`,PLATFORM_ROLE_STAR_ISV:`星图服务商`,AGENT_SYSTEM_ACCOUNT:`代理商系统账户`,PLATFORM_ROLE_LOCAL_AGENT:`本地推代理商`,PLATFORM_ROLE_YUNTU_BRAND_ISV_ADMIN:`云图品牌服务商管理员`,PLATFORM_ROLE_LIFE:`抖音来客账户`,PLATFORM_ROLE_ENTERPRISE_BP_ADMIN:`升级版工作台管理员`,PLATFORM_ROLE_ENTERPRISE_BP_OPERATOR:`升级版工作台协作者`})[e]||e},{title:`授权账户用户名`,dataIndex:`accountUsername`,key:`accountUsername`,width:120,render:e=>(0,$.jsx)(`span`,{style:{color:e?`#1e293b`:`#94a3b8`},children:e||`-`})}],loading:H,pagination:{current:te,pageSize:J,total:W,showSizeChanger:!0,showTotal:e=>`共 ${e} 条记录`,onChange:(e,t)=>{q(e),Y(t),Oe(e,t)}},rowKey:`id`,size:`small`,onRow:e=>({onClick:()=>{let t=String(e.id);ee(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},style:{cursor:`pointer`,backgroundColor:K.includes(String(e.id))?`#e6f7ff`:void 0}})})}),open:ne,onOpenChange:e=>{X(e),e&&Oe(1,J)}}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#475569`,marginBottom:8,display:`block`,marginTop:16},children:`粘贴账户ID(每行一个)`}),(0,$.jsx)(cK.TextArea,{value:R,onChange:e=>{let t=e.target.value;z(t);let n=t.split(`
|
||
`).map(e=>e.trim()).filter(e=>e.length>0),r=[...new Set(n)].map(e=>({accountId:e,authStatus:`pending`})),i=[...B.filter(e=>K.includes(String(e.id))).map(e=>({accountId:String(e.accountId),authStatus:`authorized`})),...r],a=new Set;L(i.filter(e=>a.has(e.accountId)?!1:(a.add(e.accountId),!0)))},placeholder:`粘贴账户ID,每行一个,例如:\r
|
||
10001\r
|
||
10002\r
|
||
10003`,rows:4,style:{borderRadius:8,marginBottom:16}}),I.length>0&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(S1.Text,{style:{fontSize:13,color:`#64748b`,marginBottom:8,display:`block`},children:[`已导入 `,I.length,` 个账户`]}),(0,$.jsx)(c$,{dataSource:I.map((e,t)=>({...e,key:t})),columns:[{title:`账户ID`,dataIndex:`accountId`,key:`accountId`,width:`70%`},{title:`授权状态`,dataIndex:`authStatus`,key:`authStatus`,width:`30%`,render:e=>e===`authorized`?(0,$.jsx)(x$,{color:`success`,style:{borderRadius:4},children:`已授权`}):e===`failed`?(0,$.jsx)(x$,{color:`error`,style:{borderRadius:4},children:`授权失败`}):(0,$.jsx)(x$,{color:`default`,style:{borderRadius:4},children:`待授权`})}],pagination:!1,size:`small`,style:{maxHeight:300,overflow:`auto`,border:`1px solid #e8e8e8`,borderRadius:8}}),(0,$.jsx)(kD,{type:`text`,danger:!0,onClick:()=>{L([]),z(``),ee([])},style:{marginTop:8},children:`清空账户列表`})]}),re.length>0&&(0,$.jsxs)(`div`,{style:{marginTop:16,padding:12,border:`1px solid #e8e8e8`,borderRadius:8,maxHeight:200,overflowY:`auto`},children:[(0,$.jsxs)(S1.Text,{strong:!0,style:{fontSize:13,color:`#475569`,marginBottom:8,display:`block`},children:[`上传进度 (`,re.filter(e=>e.status===`success`).length,`/`,re.length,`)`]}),re.map(e=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,padding:8,marginBottom:6,borderRadius:6,background:e.status===`error`?`#fef2f2`:e.status===`success`?`#f0fdf4`:`#f9fafb`},children:[(0,$.jsxs)(`div`,{style:{width:16,height:16,borderRadius:50,display:`flex`,alignItems:`center`,justifyContent:`center`},children:[e.status===`success`&&(0,$.jsx)(`span`,{style:{color:`#10b981`,fontSize:12},children:`✓`}),e.status===`error`&&(0,$.jsx)(`span`,{style:{color:`#ef4444`,fontSize:12},children:`✗`}),e.status===`uploading`&&(0,$.jsx)(`span`,{style:{color:`#6366f1`,fontSize:12},children:`●`}),e.status===`pending`&&(0,$.jsx)(`span`,{style:{color:`#9ca3af`,fontSize:12},children:`○`})]}),(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(`div`,{style:{fontSize:12,color:`#374151`},children:e.itemId}),e.message&&(0,$.jsx)(`div`,{style:{fontSize:11,color:e.status===`error`?`#ef4444`:`#64748b`,marginTop:2},children:e.message})]})]},e.itemId))]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12,marginTop:16,paddingTop:16,borderTop:`1px solid #f0f0f0`,justifyContent:`flex-end`},children:[(0,$.jsx)(kD,{onClick:()=>{j(!1),L([]),z(``),ee([]),ie([])},style:{borderRadius:8},children:`取消`}),(0,$.jsx)(kD,{type:`primary`,onClick:ke,loading:O,disabled:O||I.length===0,style:{borderRadius:8},children:O?`上传中...`:`开始上传`})]})]})}),m&&g&&(0,$.jsx)(`div`,{style:{position:`fixed`,top:0,left:0,right:0,bottom:0,background:`rgba(0,0,0,0.85)`,display:`flex`,alignItems:`center`,justifyContent:`center`,zIndex:1e3,padding:16,boxSizing:`border-box`,overflow:`auto`},onClick:xe,children:(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:16,padding:0,width:`100%`,maxWidth:`1200px`,maxHeight:`95vh`,minHeight:`300px`,overflow:`hidden`,position:`relative`,display:`flex`,flexDirection:`column`,boxShadow:`0 20px 60px rgba(0,0,0,0.3)`},onClick:e=>e.stopPropagation(),children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`12px 16px`,borderBottom:`1px solid #f0f0f0`,flexShrink:0},children:[(0,$.jsx)(S1.Title,{level:5,style:{margin:0,color:`#1a1a2e`,fontSize:16},children:g.title||`预览`}),(0,$.jsx)(kD,{icon:(0,$.jsx)(Y8,{}),onClick:xe,style:{background:`transparent`,border:`none`,color:`#94a3b8`,fontSize:16}})]}),(0,$.jsxs)(`div`,{style:{flex:1,display:`flex`,flexWrap:`wrap`,height:`500px`,gap:20,padding:20,overflow:`auto`,justifyContent:`center`,alignItems:`center`},children:[(0,$.jsx)(`div`,{style:{flex:1,minWidth:`280px`,maxWidth:`800px`,display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`200px`},children:ve(g.videoUrl||g.imageUrl)?(0,$.jsxs)(`div`,{style:{textAlign:`center`,padding:`40px`},children:[(0,$.jsx)(`div`,{style:{fontSize:48,marginBottom:16},children:`⚠️`}),(0,$.jsx)(`p`,{style:{fontSize:16,color:`#ff4d4f`,marginBottom:16},children:`图片/视频资源已过期,请刷新重新加载~`})]}):n===`video`?(0,$.jsx)(`video`,{ref:v,src:`http://ceshi.apiforeign.minzhong.cn${g.videoUrl}`,controls:!0,autoPlay:!0,style:{maxWidth:`100%`,maxHeight:`55vh`,borderRadius:8,objectFit:`contain`}}):(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn/static${g.imageUrl}&w=300&q=50`,alt:`预览`,style:{maxWidth:`100%`,maxHeight:`55vh`,objectFit:`contain`,borderRadius:8}})}),(0,$.jsxs)(`div`,{style:{width:`100%`,minWidth:`280px`,maxWidth:`320px`,background:`#f8fafc`,borderRadius:12,padding:20,maxHeight:`55vh`,overflowY:`auto`,overflowX:`hidden`},children:[(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#475569`,display:`block`,marginBottom:16},children:`文件信息`}),(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:12},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`类型`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:n===`video`?`视频`:`图片`})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13,flexShrink:0,width:40},children:`请求`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500,flex:1,wordBreak:`break-all`},children:g.originalPrompt})]}),n===`image`&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`比例`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:g.imageProportion})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`分辨率`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:g.imageSize})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`尺寸`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:g.imagePx})]})]}),n===`video`&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`比例`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:g.aspectRatio})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`分辨率`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:g.resolution})]})]}),n===`video`&&(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`时长`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:`${g.duration}秒`||`-`})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`创建时间`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:Xee(g.createdAt||g.generatedDate)})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`},children:[(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`生成引擎`}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13,fontWeight:500},children:g.engine||g.engineName||`-`})]})]}),(0,$.jsx)(`div`,{style:{borderTop:`1px dashed #e2e8f0`,margin:`16px 0`}}),g.mediaReferences&&g.mediaReferences.length>0&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:14,color:`#475569`,display:`block`,marginBottom:12},children:`依靠附件`}),g.mediaReferences.map((e,t)=>(0,$.jsxs)(`div`,{onClick:()=>{v.current&&v.current.pause();let t=`http://ceshi.apiforeign.minzhong.cn${e.url}`;window.open(t,`_blank`)},style:{display:`flex`,alignItems:`center`,gap:8,padding:8,borderRadius:6,cursor:`pointer`,backgroundColor:`#f1f5f9`,marginBottom:4,transition:`background-color 0.2s`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`#e2e8f0`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=`#f1f5f9`},children:[e.type===`image`?(0,$.jsx)(i6,{style:{color:`#3b82f6`,fontSize:14}}):(0,$.jsx)(L8,{style:{color:`#f59e0b`,fontSize:14}}),(0,$.jsx)(`span`,{style:{color:`#334155`,fontSize:13},children:e.name||`媒体${t+1}`})]},e.url))]}),(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12,marginTop:20},children:[(0,$.jsx)(kD,{type:`primary`,icon:(0,$.jsx)(u0,{}),onClick:()=>{v.current&&v.current.pause();let e=`http://ceshi.apiforeign.minzhong.cn${g.videoUrl||g.imageUrl}&download=1`;window.open(e,`_blank`)},style:{flex:1,borderRadius:8},disabled:ve(g.videoUrl||g.imageUrl),children:ve(g.videoUrl||g.imageUrl)?`资源已过期`:`下载`}),(0,$.jsx)(kD,{onClick:xe,style:{flex:1,borderRadius:8},children:`关闭`})]}),(0,$.jsx)(`div`,{children:(0,$.jsx)(kD,{style:{width:`100%`,borderRadius:8,marginTop:20,color:`#4c49cc`},children:`推送媒体后台`})})]})]})]})]})})]})},I9=document.createElement(`style`);I9.textContent=`
|
||
@keyframes spin {
|
||
from { transform: rotate(0deg); }
|
||
to { transform: rotate(360deg); }
|
||
}
|
||
`,document.head.appendChild(I9);function Xee(e){if(!e)return`-`;let t=new Date(e);return isNaN(t.getTime())?`-`:`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)} ${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`}var L9=[{id:`AD_APP_ACTIVATE`,name:`AD_APP_ACTIVATE`,label:`应用-激活`,description:`应用激活行为`},{id:`AD_APP_AUTH`,name:`AD_APP_AUTH`,label:`应用-授信`,description:`应用授信行为`},{id:`AD_APP_BOOK`,name:`AD_APP_BOOK`,label:`应用-预约表单`,description:`应用预约表单`},{id:`AD_APP_BUY`,name:`AD_APP_BUY`,label:`应用-APP内付费`,description:`APP内付费行为`},{id:`AD_APP_CLICKS`,name:`AD_APP_CLICKS`,label:`应用-点击量`,description:`应用点击量`},{id:`AD_APP_DETAIL`,name:`AD_APP_DETAIL`,label:`应用-APP内详情页到站UV`,description:`APP内详情页到站UV`},{id:`AD_APP_DOWNLOADED`,name:`AD_APP_DOWNLOADED`,label:`应用-下载完成`,description:`应用下载完成`},{id:`AD_APP_INSTALLED`,name:`AD_APP_INSTALLED`,label:`应用-安装完成`,description:`应用安装完成`},{id:`AD_APP_KEY_BEHAVIOR`,name:`AD_APP_KEY_BEHAVIOR`,label:`应用-关键行为`,description:`应用关键行为`},{id:`AD_APP_ORDER`,name:`AD_APP_ORDER`,label:`应用-APP内下单`,description:`APP内下单行为`},{id:`AD_APP_PAY`,name:`AD_APP_PAY`,label:`应用-付费`,description:`应用付费行为`},{id:`AD_APP_PRE_AUTH`,name:`AD_APP_PRE_AUTH`,label:`应用-预授信`,description:`应用预授信行为`},{id:`AD_APP_PRE_DOWNLOAD`,name:`AD_APP_PRE_DOWNLOAD`,label:`应用-预约下载`,description:`应用预约下载`},{id:`AD_APP_PUSH_ORDER`,name:`AD_APP_PUSH_ORDER`,label:`应用-首次发单(乘客)`,description:`首次发单行为`},{id:`AD_APP_REGISTER`,name:`AD_APP_REGISTER`,label:`应用-注册`,description:`应用注册行为`},{id:`AD_APP_SHOW`,name:`AD_APP_SHOW`,label:`应用-展示量`,description:`应用展示量`},{id:`AD_APP_SUBMIT`,name:`AD_APP_SUBMIT`,label:`应用-提交认证`,description:`应用提交认证`},{id:`AD_APP_VIEW`,name:`AD_APP_VIEW`,label:`应用-APP内访问`,description:`APP内访问行为`},{id:`AD_CLUE_AUTH`,name:`AD_CLUE_AUTH`,label:`销售线索收集-授信`,description:`销售线索授信`},{id:`AD_CLUE_BUTTON`,name:`AD_CLUE_BUTTON`,label:`销售线索收集-按钮跳转`,description:`按钮跳转`},{id:`AD_CLUE_CLICKS`,name:`AD_CLUE_CLICKS`,label:`销售线索收集-点击量`,description:`点击量`},{id:`AD_CLUE_CONFIRM`,name:`AD_CLUE_CONFIRM`,label:`销售线索收集-回访-信息确认`,description:`回访信息确认`},{id:`AD_CLUE_CONSULT`,name:`AD_CLUE_CONSULT`,label:`销售线索收集-有效咨询`,description:`有效咨询`},{id:`AD_CLUE_CONSULT_MSG`,name:`AD_CLUE_CONSULT_MSG`,label:`销售线索收集-留资咨询`,description:`留资咨询`},{id:`AD_CLUE_COUPON`,name:`AD_CLUE_COUPON`,label:`销售线索收集-卡券领取`,description:`卡券领取`},{id:`AD_CLUE_CUSTOMER`,name:`AD_CLUE_CUSTOMER`,label:`销售线索收集-有效获客`,description:`有效获客`},{id:`AD_CLUE_CVT`,name:`AD_CLUE_CVT`,label:`销售线索收集-多转化`,description:`多转化`},{id:`AD_CLUE_DONE`,name:`AD_CLUE_DONE`,label:`销售线索收集-完件`,description:`完件`},{id:`AD_CLUE_FORM`,name:`AD_CLUE_FORM`,label:`销售线索收集-表单提交`,description:`表单提交`},{id:`AD_CLUE_FRIENDS`,name:`AD_CLUE_FRIENDS`,label:`销售线索收集-回访-加为好友`,description:`回访加为好友`},{id:`AD_CLUE_INSURANCE`,name:`AD_CLUE_INSURANCE`,label:`销售线索收集-保险支付`,description:`保险支付`},{id:`AD_CLUE_INTENTION`,name:`AD_CLUE_INTENTION`,label:`销售线索收集-存在意向`,description:`存在意向`},{id:`AD_CLUE_INTENTION_FORM`,name:`AD_CLUE_INTENTION_FORM`,label:`销售线索收集-意向表单`,description:`意向表单`},{id:`AD_CLUE_INTENTION_TEL`,name:`AD_CLUE_INTENTION_TEL`,label:`销售线索收集-意向话单`,description:`意向话单`},{id:`AD_CLUE_MESSAGE`,name:`AD_CLUE_MESSAGE`,label:`销售线索收集-私信消息`,description:`私信消息`},{id:`AD_CLUE_MONEY`,name:`AD_CLUE_MONEY`,label:`销售线索收集-放款`,description:`放款`},{id:`AD_CLUE_MSG`,name:`AD_CLUE_MSG`,label:`销售线索收集-私信留资`,description:`私信留资`},{id:`AD_CLUE_PAGE`,name:`AD_CLUE_PAGE`,label:`销售线索收集-访问目标页面`,description:`访问目标页面`},{id:`AD_CLUE_PAY`,name:`AD_CLUE_PAY`,label:`销售线索收集-付费`,description:`付费`},{id:`AD_CLUE_PRE_AUTH`,name:`AD_CLUE_PRE_AUTH`,label:`销售线索收集-预授信`,description:`预授信`},{id:`AD_CLUE_PROTENTIAL_DEAL`,name:`AD_CLUE_PROTENTIAL_DEAL`,label:`销售线索收集-回访-高潜成交`,description:`回访高潜成交`},{id:`AD_CLUE_PUSH_ORDER`,name:`AD_CLUE_PUSH_ORDER`,label:`销售线索收集-首次发单(乘客)`,description:`首次发单`},{id:`AD_CLUE_REGISTER`,name:`AD_CLUE_REGISTER`,label:`销售线索收集-注册`,description:`注册`},{id:`AD_CLUE_SHOW`,name:`AD_CLUE_SHOW`,label:`销售线索收集-展示量`,description:`展示量`},{id:`AD_CLUE_SUBMIT`,name:`AD_CLUE_SUBMIT`,label:`销售线索收集-提交认证`,description:`提交认证`},{id:`AD_CLUE_TEL`,name:`AD_CLUE_TEL`,label:`销售线索收集-智能电话确认接通`,description:`智能电话确认接通`},{id:`AD_CLUE_TEL_CALL`,name:`AD_CLUE_TEL_CALL`,label:`销售线索收集-电话接通`,description:`电话接通`},{id:`AD_CLUE_WX_ADD`,name:`AD_CLUE_WX_ADD`,label:`销售线索收集-微信-添加企业微信`,description:`添加企业微信`},{id:`AD_CLUE_WX_COPY`,name:`AD_CLUE_WX_COPY`,label:`销售线索收集-微信复制`,description:`微信复制`},{id:`AD_CLUE_WX_MSG`,name:`AD_CLUE_WX_MSG`,label:`销售线索收集-微信-用户首次消息`,description:`用户首次消息`},{id:`AD_ECP_APP_BUY`,name:`AD_ECP_APP_BUY`,label:`电商-app内下单`,description:`电商app内下单`},{id:`AD_ECP_APP_DETAIL`,name:`AD_ECP_APP_DETAIL`,label:`电商-app内详情页到站uv`,description:`电商app内详情页到站uv`},{id:`AD_ECP_APP_VIEW`,name:`AD_ECP_APP_VIEW`,label:`电商-app内访问`,description:`电商app内访问`},{id:`AD_ECP_BUTTON`,name:`AD_ECP_BUTTON`,label:`电商-按钮跳转`,description:`电商按钮跳转`},{id:`AD_ECP_INTEREST`,name:`AD_ECP_INTEREST`,label:`电商-引流电商种草`,description:`引流电商种草`},{id:`AD_ECP_SHOP`,name:`AD_ECP_SHOP`,label:`电商-调起店铺`,description:`调起店铺`},{id:`AD_ECP_SHOP_STAY`,name:`AD_ECP_SHOP_STAY`,label:`电商-店铺停留`,description:`店铺停留`},{id:`AD_MINIAPP_ACTIVATE`,name:`AD_MINIAPP_ACTIVATE`,label:`快应用-激活`,description:`快应用激活`},{id:`AD_MINIAPP_KEY_BEHAVIOR`,name:`AD_MINIAPP_KEY_BEHAVIOR`,label:`快应用-关键行为`,description:`快应用关键行为`},{id:`AD_MINIAPP_PAY`,name:`AD_MINIAPP_PAY`,label:`快应用-付费`,description:`快应用付费`},{id:`AD_MINIAPP_REGISTER`,name:`AD_MINIAPP_REGISTER`,label:`快应用-注册`,description:`快应用注册`},{id:`AD_NATIVE_ACTIVATE`,name:`AD_NATIVE_ACTIVATE`,label:`原声互动-激活`,description:`原声互动激活`},{id:`AD_NATIVE_CLICKS`,name:`AD_NATIVE_CLICKS`,label:`原声互动-组件点击`,description:`组件点击`},{id:`AD_NATIVE_FANS_GROUP`,name:`AD_NATIVE_FANS_GROUP`,label:`原声互动-粉丝入群`,description:`粉丝入群`},{id:`AD_NATIVE_FOLLOW`,name:`AD_NATIVE_FOLLOW`,label:`原声互动-帐号关注`,description:`帐号关注`},{id:`AD_NATIVE_INTERACTIVE`,name:`AD_NATIVE_INTERACTIVE`,label:`原声互动-互动`,description:`互动`},{id:`AD_NATIVE_LIVE`,name:`AD_NATIVE_LIVE`,label:`原声互动-预约直播`,description:`预约直播`},{id:`AD_NATIVE_LIVE_DONATE`,name:`AD_NATIVE_LIVE_DONATE`,label:`原声互动-直播间营销捐赠`,description:`直播间营销捐赠`},{id:`AD_NATIVE_LIVE_PAY`,name:`AD_NATIVE_LIVE_PAY`,label:`原声互动-直播间打赏`,description:`直播间打赏`},{id:`AD_NATIVE_LIVE_STAY`,name:`AD_NATIVE_LIVE_STAY`,label:`原声互动-直播间停留`,description:`直播间停留`},{id:`AD_NATIVE_LIVE_VIEW`,name:`AD_NATIVE_LIVE_VIEW`,label:`原声互动-直播间观看`,description:`直播间观看`},{id:`AD_NATIVE_PAY`,name:`AD_NATIVE_PAY`,label:`原声互动-付费`,description:`原声互动付费`},{id:`AD_PRODUCT_ACTIVATE`,name:`AD_PRODUCT_ACTIVATE`,label:`商品-激活`,description:`商品激活`},{id:`AD_PRODUCT_APP_BUY`,name:`AD_PRODUCT_APP_BUY`,label:`商品-app内下单`,description:`商品app内下单`},{id:`AD_PRODUCT_APP_DETAIL`,name:`AD_PRODUCT_APP_DETAIL`,label:`商品-app内详情页到站uv`,description:`商品app内详情页到站uv`},{id:`AD_PRODUCT_APP_PAY`,name:`AD_PRODUCT_APP_PAY`,label:`商品-app内付费`,description:`商品app内付费`},{id:`AD_PRODUCT_APP_VIEW`,name:`AD_PRODUCT_APP_VIEW`,label:`商品-app内访问`,description:`商品app内访问`},{id:`AD_PRODUCT_FORM`,name:`AD_PRODUCT_FORM`,label:`商品-表单提交`,description:`商品表单提交`},{id:`AD_PRODUCT_KEY_BEHAVIOR`,name:`AD_PRODUCT_KEY_BEHAVIOR`,label:`商品-关键行为`,description:`商品关键行为`},{id:`AD_PRODUCT_PAY`,name:`AD_PRODUCT_PAY`,label:`商品-付费`,description:`商品付费`},{id:`AD_TINYAPP_ACTIVATE`,name:`AD_TINYAPP_ACTIVATE`,label:`小程序-激活`,description:`小程序激活`},{id:`AD_TINYAPP_KEY_BEHAVIOR`,name:`AD_TINYAPP_KEY_BEHAVIOR`,label:`小程序-关键行为`,description:`小程序关键行为`},{id:`AD_TINYAPP_PAY`,name:`AD_TINYAPP_PAY`,label:`小程序-付费`,description:`小程序付费`},{id:`QC_LIVE_BUY`,name:`QC_LIVE_BUY`,label:`直播投放-直播间下单`,description:`直播间下单`},{id:`QC_LIVE_CHECK`,name:`QC_LIVE_CHECK`,label:`直播投放-直播间结算`,description:`直播间结算`},{id:`QC_LIVE_COMMENTS`,name:`QC_LIVE_COMMENTS`,label:`直播投放-直播间评论`,description:`直播间评论`},{id:`QC_LIVE_DEAL`,name:`QC_LIVE_DEAL`,label:`直播投放-直播间成交`,description:`直播间成交`},{id:`QC_LIVE_ENTRY`,name:`QC_LIVE_ENTRY`,label:`直播投放-进入直播间`,description:`进入直播间`},{id:`QC_LIVE_FANS`,name:`QC_LIVE_FANS`,label:`直播投放-直播间粉丝提升`,description:`直播间粉丝提升`},{id:`QC_LIVE_HIT`,name:`QC_LIVE_HIT`,label:`直播投放-直播加热`,description:`直播加热`},{id:`QC_LIVE_PRODUCT_CLICKS`,name:`QC_LIVE_PRODUCT_CLICKS`,label:`直播投放-直播间商品点击`,description:`直播间商品点击`},{id:`QC_LIVE_ROI_CHECK`,name:`QC_LIVE_ROI_CHECK`,label:`直播投放-结算roi`,description:`结算roi`},{id:`QC_LIVE_ROI_DEAL`,name:`QC_LIVE_ROI_DEAL`,label:`直播投放-支付roi-直播间成交`,description:`支付roi直播间成交`},{id:`QC_LIVE_ROI_QC`,name:`QC_LIVE_ROI_QC`,label:`直播投放-支付roi-千川直接+间接订单`,description:`支付roi千川订单`},{id:`QC_PRODUCT_BUY`,name:`QC_PRODUCT_BUY`,label:`商品投放-商品购买`,description:`商品购买`},{id:`QC_PRODUCT_COMMENTS`,name:`QC_PRODUCT_COMMENTS`,label:`商品投放-点赞评论`,description:`点赞评论`},{id:`QC_PRODUCT_FANS`,name:`QC_PRODUCT_FANS`,label:`商品投放-粉丝提升`,description:`粉丝提升`},{id:`QC_PRODUCT_INTEREST`,name:`QC_PRODUCT_INTEREST`,label:`商品投放-人群种草`,description:`人群种草`},{id:`QC_PRODUCT_QC`,name:`QC_PRODUCT_QC`,label:`商品投放-千川直接+间接订单`,description:`千川订单`},{id:`QC_PRODUCT_ROI`,name:`QC_PRODUCT_ROI`,label:`商品投放-商品支付roi`,description:`商品支付roi`}],Zee=[{title:`前测模板ID`,dataIndex:`id`,key:`id`,width:110,render:e=>(0,$.jsx)(S1.Text,{strong:!0,style:{color:`#1e293b`,fontSize:13},children:e})},{title:`模板名称`,dataIndex:`name`,key:`name`,ellipsis:!0,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontWeight:500,fontSize:13},children:e})},{title:`平台`,dataIndex:`platform`,key:`platform`,render:e=>(0,$.jsx)(x$,{color:e===`AD`?`blue`:e===`QIANCHUAN`?`green`:`orange`,style:{borderRadius:6,fontSize:12},children:e===`AD`?`AD`:e===`QIANCHUAN`?`千川`:`本地推`})},{title:`转化目标`,dataIndex:`externalAction`,key:`externalAction`,ellipsis:!0,width:200,render:e=>e?(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:e.split(`,`).filter(e=>e.trim()).map(e=>{let t=L9.find(t=>t.name===e.trim());return t?t.label:e}).join(`, `)}):(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:13},children:`-`})},{title:`目标转化成本`,dataIndex:`cpaBid`,key:`cpaBid`,width:120,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:e===void 0?`-`:e})},{title:`受众性别`,dataIndex:`audienceGender`,key:`audienceGender`,width:90,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:e===`ALL`?`不限`:e===`MALE`?`男`:e===`FEMALE`?`女`:e||`-`})},{title:`受众年龄`,dataIndex:`audienceAge`,key:`audienceAge`,width:90,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:Array.isArray(e)?e.join(`, `):e||`-`})},{title:`受众地区`,dataIndex:`audience_region`,key:`audience_region`,ellipsis:!0,width:150,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:Array.isArray(e)?e.join(`, `):e||`-`})},{title:`网络类型`,dataIndex:`audienceNetwork`,key:`audienceNetwork`,width:90,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:Array.isArray(e)?e.join(`, `):e||`-`})},{title:`客户主体名称`,dataIndex:`cusName`,key:`cusName`,ellipsis:!0,width:120,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:e||`-`})},{title:`出价类型`,dataIndex:`pricingType`,key:`pricingType`,width:90,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:e||`-`})},{title:`目标点击成本`,dataIndex:`cpcBid`,key:`cpcBid`,width:120,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:e===void 0?`-`:e})},{title:`预算金额`,dataIndex:`budget`,key:`budget`,width:100,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontSize:13},children:e===void 0?`-`:e})},{title:`默认模板`,dataIndex:`isDefault`,key:`isDefault`,width:90,render:e=>(0,$.jsx)(x$,{color:e?`green`:`default`,style:{borderRadius:6,fontSize:12},children:e?`是`:`否`})},{title:`创建时间`,dataIndex:`createdAt`,key:`createdAt`,width:160,render:e=>(0,$.jsx)(S1.Text,{style:{color:`#94a3b8`,fontSize:12},children:e})},{title:`操作`,dataIndex:`operation`,key:`operation`,width:140,render:(e,t)=>(0,$.jsx)(NU,{size:4,children:(0,$.jsx)(kD,{type:`text`,size:`small`,icon:(0,$.jsx)(D$,{}),style:{color:`#6366f1`,fontSize:12},children:`编辑`})})}],Qee=()=>{let{message:e}=Fx.useApp(),[t,n]=(0,x.useState)([]),[r,i]=(0,x.useState)(0),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(!1),[l]=DW.useForm(),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(1),[m,h]=(0,x.useState)(10),[g,_]=(0,x.useState)(`AD`),[v,y]=(0,x.useState)([]);(0,x.useEffect)(()=>{b()},[f,m]),(0,x.useEffect)(()=>{S()},[]);let b=async()=>{o(!0);try{let e=await h7({page:f,pageSize:m});console.log(e),n(e.data||[]),i(e.pagination?.total||0),p(e.pagination?.page||1),h(e.pagination?.pageSize||10)}catch{e.error(`获取前测列表失败`)}finally{o(!1)}},S=async()=>{try{y(((await N7({level:`ONE_LEVEL`})).data||[]).map(e=>({value:e.code,label:e.name,isLeaf:!1})))}catch{e.error(`获取省份信息失败`)}},C=async t=>{let n=t[t.length-1];n.loading=!0;try{n.children=((await N7({level:`TWO_LEVEL`,parent_code:n.value})).data||[]).map(e=>({value:e.code,label:e.name,isLeaf:!0})),n.loading=!1,y([...v])}catch{e.error(`获取城市信息失败`),n.loading=!1,y([...v])}},w=t.map((e,t)=>({...e,index:(f-1)*m+t+1,key:e.id}));return(0,$.jsxs)(`div`,{style:{minHeight:`calc(100vh - 80px)`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:12},children:[(0,$.jsx)(RU,{style:{color:`#6366f1`,fontSize:16}}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:16},children:`前测管理`})]}),(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:12,marginBottom:16},children:(0,$.jsx)(kD,{type:`primary`,size:`medium`,icon:(0,$.jsx)(IR,{}),loading:a,onClick:()=>{l.resetFields(),_(`AD`),c(!0)},style:{borderRadius:12,fontSize:14,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,boxShadow:`0 4px 14px rgba(99,102,241,0.3)`},children:`新增前测`})}),(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:16,boxShadow:`0 4px 20px rgba(0,0,0,0.04)`,overflow:`hidden`},children:[(0,$.jsx)(c$,{dataSource:w,columns:Zee,loading:a,pagination:!1,rowKey:`id`,bordered:!1,scroll:{x:`max-content`},onRow:()=>({style:{cursor:`pointer`,transition:`background-color 0.15s`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`#f8fafc`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=`transparent`}})}),(0,$.jsx)(`div`,{style:{padding:`16px`,textAlign:`right`},children:(0,$.jsx)(JK,{current:f,pageSize:m,total:r,showSizeChanger:!0,showTotal:e=>`共 ${e} 条记录`,pageSizeOptions:[`10`,`20`,`50`,`100`],onChange:(e,t)=>{p(e),h(t)},size:`small`})})]}),(0,$.jsx)(Nq,{title:(0,$.jsx)(NU,{children:`新增前测模板`}),open:s,onCancel:()=>{c(!1),l.resetFields(),_(`AD`)},onOk:async()=>{try{let t=await l.validateFields();d(!0);let n=(t.audience_region||[]).map(e=>e[e.length-1]),r=(t.external_action||[]).join(`,`);await g7({name:t.name,note:t.note,platform:t.platform,external_action:r,cpa_bid:t.cpa_bid||0,audience_gender:t.audience_gender,audience_age:t.audience_age||[],audience_region:n,audience_network:t.audience_network||[],cus_name:t.cus_name,pricing_type:t.pricing_type,cost_cap:t.cost_cap||!1,target_cost:t.target_cost||!1,nobid:t.nobid||!1,cpc_bid:t.cpc_bid||0,budget:t.budget||0,is_default:t.is_default||!1}),e.success(`前测模板创建成功`),c(!1),l.resetFields(),b()}catch(t){t?.message?e.error(t.message):t?.response?.data?.message?e.error(t.response.data.message):e.error(`创建失败,请重试`)}finally{d(!1)}},okText:`提交`,cancelText:`取消`,width:720,height:600,confirmLoading:u,style:{borderRadius:16},children:(0,$.jsxs)(DW,{form:l,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(DW.Item,{name:`name`,label:`模板名称`,rules:[{required:!0,message:`请输入模板名称`}],children:(0,$.jsx)(cK,{placeholder:`请输入模板名称`,style:{borderRadius:8,height:40}})}),(0,$.jsx)(DW.Item,{name:`platform`,label:`平台`,initialValue:`AD`,rules:[{required:!0,message:`请选择平台`}],children:(0,$.jsx)(bw,{placeholder:`请选择平台`,style:{borderRadius:8,height:40},onChange:e=>{_(e)},options:[{value:`AD`,label:`AD`},{value:`QIANCHUAN`,label:`千川`},{value:`LOCAL`,label:`本地推`}]})}),(0,$.jsx)(DW.Item,{name:`external_action`,label:`转化目标`,children:(0,$.jsx)(bw,{mode:`multiple`,placeholder:`请选择转化目标(可多选)`,style:{borderRadius:8,minHeight:40},maxTagCount:`responsive`,options:L9.filter(e=>g===`AD`?e.name.startsWith(`AD_`):g===`QIANCHUAN`?e.name.startsWith(`QC_`):g===`LOCAL`?e.name.startsWith(`LOCAL_`):!0).map(e=>({value:e.name,label:(0,$.jsxs)(`span`,{children:[e.label,e.description&&(0,$.jsxs)(S1.Text,{style:{color:`#94a3b8`,fontSize:12,marginLeft:4},children:[`(`,e.description,`)`]})]})}))})}),(0,$.jsx)(DW.Item,{name:`cpa_bid`,label:`目标转化成本`,rules:[{type:`number`,min:1,max:1e4,message:`取值范围: 1-10000`}],getValueFromEvent:e=>parseFloat(e.target.value)||void 0,children:(0,$.jsx)(cK,{type:`number`,placeholder:`取值范围: 1-10000,精确到小数点后2位`,style:{borderRadius:8,height:40},min:1,max:1e4,step:.01})}),(0,$.jsx)(DW.Item,{name:`audience_gender`,label:`受众性别`,children:(0,$.jsx)(bw,{placeholder:`请选择受众性别`,style:{borderRadius:8,height:40},options:[{value:`ALL`,label:`不限`},{value:`MALE`,label:`男`},{value:`FEMALE`,label:`女`}]})}),(0,$.jsx)(DW.Item,{name:`audience_age`,label:`受众年龄`,children:(0,$.jsx)(bw,{mode:`multiple`,placeholder:`请选择受众年龄(可多选)`,style:{borderRadius:8,minHeight:40},maxTagCount:`responsive`,options:[{value:`ALL`,label:`不限`},{value:`18-23`,label:`18-23岁`},{value:`24-30`,label:`24-30岁`},{value:`31-40`,label:`31-40岁`},{value:`41-49`,label:`41-49岁`},{value:`50`,label:`50岁以上`}]})}),(0,$.jsx)(DW.Item,{name:`audience_region`,label:`受众地区`,children:(0,$.jsx)(bV,{multiple:!0,placeholder:`请选择受众地区(可多选)`,style:{borderRadius:8,minHeight:40},options:v,loadData:C,changeOnSelect:!0,maxTagCount:`responsive`})}),(0,$.jsx)(DW.Item,{name:`audience_network`,label:`网络类型`,children:(0,$.jsx)(bw,{mode:`multiple`,placeholder:`请选择网络类型(可多选)`,style:{borderRadius:8,minHeight:40},maxTagCount:`responsive`,options:[{value:`ALL`,label:`不限`},{value:`5G`,label:`5G`},{value:`4G`,label:`4G`},{value:`3G`,label:`3G`},{value:`2G`,label:`2G`},{value:`WIFI`,label:`wifi`}]})}),(0,$.jsx)(DW.Item,{name:`cus_name`,label:`客户主体名称`,children:(0,$.jsx)(cK,{placeholder:`请输入客户主体名称`,style:{borderRadius:8,height:40}})}),(0,$.jsx)(DW.Item,{name:`pricing_type`,label:`出价类型`,children:(0,$.jsx)(bw,{placeholder:`请选择出价类型`,style:{borderRadius:8,height:40},options:[{value:`OCPC`,label:`OCPC`},{value:`CPA`,label:`CPA`},{value:`OCPM`,label:`OCPM`}]})}),g==`AD`&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(DW.Item,{name:`cost_cap`,label:`是否最优成本出价`,valuePropName:`checked`,children:(0,$.jsx)(bw,{placeholder:`是否最优成本出价`,style:{borderRadius:8,height:40},options:[{value:!0,label:`开启`},{value:!1,label:`关闭`}]})}),(0,$.jsx)(DW.Item,{name:`target_cost`,label:`是否稳定成本出价`,valuePropName:`checked`,children:(0,$.jsx)(bw,{placeholder:`是否稳定成本出价`,style:{borderRadius:8,height:40},options:[{value:!0,label:`开启`},{value:!1,label:`关闭`}]})}),(0,$.jsx)(DW.Item,{name:`nobid`,label:`是否最大转化出价`,valuePropName:`checked`,children:(0,$.jsx)(bw,{placeholder:`是否最大转化出价`,style:{borderRadius:8,height:40},options:[{value:!0,label:`开启`},{value:!1,label:`关闭`}]})})]}),(0,$.jsx)(DW.Item,{name:`cpc_bid`,label:`目标点击成本`,getValueFromEvent:e=>parseFloat(e.target.value)||void 0,children:(0,$.jsx)(cK,{type:`number`,placeholder:`请输入目标点击成本`,style:{borderRadius:8,height:40}})}),(0,$.jsx)(DW.Item,{name:`budget`,label:`预算金额`,getValueFromEvent:e=>parseFloat(e.target.value)||void 0,children:(0,$.jsx)(cK,{type:`number`,placeholder:`请输入预算金额`,style:{borderRadius:8,height:40}})}),(0,$.jsx)(DW.Item,{name:`note`,label:`备注`,children:(0,$.jsx)(cK.TextArea,{placeholder:`请输入备注`,rows:3,style:{borderRadius:8}})}),(0,$.jsx)(DW.Item,{name:`is_default`,label:`默认模板`,initialValue:!1,valuePropName:`checked`,children:(0,$.jsx)(bw,{placeholder:`请选择默认模板`,style:{borderRadius:8,height:40},options:[{value:!0,label:`是`},{value:!1,label:`否`}]})})]})})]})},R9={1:`千川`,2:`广告`,3:`本地推`,4:`星图`,5:`快手代理商`,6:`巨量星图`,7:`巨量服务单`,8:`腾讯服务单`,9:`腾讯营销K2`,10:`腾讯营销K3`},$ee={1:`巨量`,2:`磁力`,3:`巨量星图`,4:`服务单`,5:`腾讯`},z9=e=>{if(!e)return``;let t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)} ${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`},ete=()=>{let{message:e}=Fx.useApp(),[t,n]=(0,x.useState)([]),[r,i]=(0,x.useState)(!1),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(void 0),[d,f]=(0,x.useState)(1),[p,m]=(0,x.useState)(10),[h,g]=(0,x.useState)(0),[_,v]=(0,x.useState)({account_userid:``,open_type:void 0,account_id:``});(0,x.useEffect)(()=>{y(),b()},[]);let y=async(t=1,r=10,i=_)=>{o(!0);try{let e=await m7({page:t,page_size:r,account_userid:i.account_userid||void 0,open_type:i.open_type,account_id:i.account_id||void 0});e?(e.data&&n(e.data.data||e.data),e.pagination&&(g(e.pagination.total||0),f(e.pagination.page||1),m(e.pagination.pageSize||10))):n(e||[])}catch{e.error(`获取授权列表失败`)}finally{o(!1)}},b=async()=>{let t=new URLSearchParams(window.location.search),n=t.get(`auth_code`),r=t.get(`state`);if(n&&r)try{await p7({auth_code:n,state:r}),e.success(`授权成功`),window.history.replaceState({},document.title,window.location.pathname),y()}catch{e.error(`授权回调失败`)}},S=()=>{c(!0)},C=async()=>{if(!l){e.warning(`请选择开户方式`);return}i(!0);try{let t=await f7({open_type:l});t.authUrl?window.open(t.authUrl,`_blank`):e.error(`获取授权链接失败`)}catch{e.error(`请求授权失败`)}finally{i(!1),c(!1),u(void 0)}},w=[{title:`ID`,dataIndex:`id`,key:`id`},{title:`授权账户ID`,dataIndex:`accountId`,key:`accountId`,width:160},{title:`授权账户名称`,dataIndex:`accountName`,key:`accountName`},{title:`授权账户角色`,dataIndex:`accountRole`,key:`accountRole`,render:e=>({ADVERTISER:`客户`,CUSTOMER_ADMIN:`普通版工作台-管理员`,CUSTOMER_OPERATOR:`普通版工作台-协作者`,AGENT:`代理商`,CHILD_AGENT:`二级代理商`,PLATFORM_ROLE_STAR:`星图账户`,PLATFORM_ROLE_SHOP_ACCOUNT:`抖音店铺账户`,PLATFORM_ROLE_QIANCHUAN_AGENT:`千川代理商`,PLATFORM_ROLE_STAR_AGENT:`星图代理商`,PLATFORM_ROLE_AWEME:`抖音号`,PLATFORM_ROLE_STAR_MCN:`星图MCN机构`,PLATFORM_ROLE_STAR_ISV:`星图服务商`,AGENT_SYSTEM_ACCOUNT:`代理商系统账户`,PLATFORM_ROLE_LOCAL_AGENT:`本地推代理商`,PLATFORM_ROLE_YUNTU_BRAND_ISV_ADMIN:`云图品牌服务商管理员`,PLATFORM_ROLE_LIFE:`抖音来客账户`,PLATFORM_ROLE_ENTERPRISE_BP_ADMIN:`升级版工作台管理员`,PLATFORM_ROLE_ENTERPRISE_BP_OPERATOR:`升级版工作台协作者`})[e]||e},{title:`授权账户用户ID`,dataIndex:`accountUserid`,key:`accountUserid`,render:e=>(0,$.jsx)(`span`,{style:{color:e?`#1e293b`:`#94a3b8`},children:e||`-`})},{title:`授权账户用户名`,dataIndex:`accountUsername`,key:`accountUsername`},{title:`授权应用ID`,dataIndex:`appid`,key:`appid`},{title:`是否敏感物料授权`,dataIndex:`materialAuthStatus`,key:`materialAuthStatus`,width:100,render:e=>(0,$.jsx)(x$,{color:e?`green`:`default`,children:e?`是`:`否`})},{title:`开户方式`,dataIndex:`openType`,key:`openType`,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`},children:R9[e]||e})},{title:`平台端口`,dataIndex:`portType`,key:`portType`,ellipsis:!0,render:e=>(0,$.jsx)(`span`,{style:{color:`#1e293b`},children:$ee[e]||e})},{title:`用户id`,dataIndex:`userId`,key:`userId`},{title:`创建时间`,dataIndex:`createdAt`,key:`createdAt`,width:160,render:e=>(0,$.jsx)(`span`,{style:{color:`#64748b`},children:z9(e)})},{title:`更新时间`,dataIndex:`updatedAt`,key:`updatedAt`,width:160,render:e=>(0,$.jsx)(`span`,{style:{color:`#64748b`},children:z9(e)})},{title:`操作`,key:`action`,width:120,render:(e,t)=>(0,$.jsx)(gn,{to:`/consume?accountId=${t.id}`,style:{color:`#6366f1`},children:`查看消耗`})}],T=t.map((e,t)=>({...e,index:t+1,key:e.id}));return(0,$.jsxs)(`div`,{style:{minHeight:`94vh`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:12},children:[(0,$.jsx)(j3,{style:{color:`#6366f1`,fontSize:16}}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:16},children:`授权管理`})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,gap:12,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12},children:[(0,$.jsx)(cK,{placeholder:`账号用户ID`,value:_.account_userid,onChange:e=>v(t=>({...t,account_userid:e.target.value})),style:{width:180},onPressEnter:()=>{f(1),y(1,p)}}),(0,$.jsx)(bw,{placeholder:`开户方式`,value:_.open_type,onChange:e=>v(t=>({...t,open_type:e})),style:{width:140},options:Object.entries(R9).map(([e,t])=>({value:Number(e),label:t}))}),(0,$.jsx)(cK,{placeholder:`账号ID`,value:_.account_id,onChange:e=>v(t=>({...t,account_id:e.target.value})),style:{width:180},onPressEnter:()=>{f(1),y(1,p)}}),(0,$.jsx)(kD,{type:`primary`,size:`medium`,onClick:()=>{f(1),y(1,p)},children:`搜索`}),(0,$.jsx)(kD,{size:`medium`,onClick:()=>{v({account_userid:``,open_type:void 0,account_id:``}),f(1),y(1,p)},children:`重置`})]}),(0,$.jsx)(kD,{type:`primary`,size:`medium`,icon:(0,$.jsx)(IR,{}),onClick:S,loading:r,style:{borderRadius:8,fontSize:14,fontWeight:500},children:`点击授权`})]}),(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:12,boxShadow:`0 1px 3px rgba(0,0,0,0.05)`},children:[(0,$.jsx)(c$,{dataSource:T,columns:w,loading:a,pagination:!1,rowKey:`id`,bordered:!1,scroll:{x:`max-content`}}),(0,$.jsx)(`div`,{style:{padding:`16px`,textAlign:`right`},children:(0,$.jsx)(JK,{current:d,pageSize:p,total:h,showSizeChanger:!0,showTotal:e=>`共 ${e} 条记录`,onChange:(e,t)=>{f(e),m(t),y(e,t)},size:`small`})})]}),(0,$.jsx)(Nq,{title:`选择开户方式`,open:s,onOk:C,onCancel:()=>{c(!1),u(void 0)},okText:`确认授权`,cancelText:`取消`,confirmLoading:r,children:(0,$.jsx)(bw,{placeholder:`请选择开户方式`,value:l,onChange:e=>u(e),style:{width:`100%`},options:Object.entries(R9).map(([e,t])=>({value:Number(e),label:t}))})})]})},{Text:tte}=S1,nte=2,rte=15,B9=7,V9=160,H9=90;function U9(e){return String(e).padStart(2,`0`)}function W9(e){return Number.isFinite(e)?Math.max(0,Math.round(e)):0}function G9(e){let t=W9(e),n=Math.floor(t/60),r=t%60;return`${U9(n)}:${U9(r)}`}function K9(e,t,n){return Math.min(Math.max(e,t),n)}function ite(e,t){return e[0]===t[0]&&e[1]===t[1]}function q9(e,t,n=8e3){return new Promise((r,i)=>{let a,o=()=>{a&&window.clearTimeout(a),e.removeEventListener(t,s),e.removeEventListener(`error`,c)},s=()=>{o(),r()},c=()=>{o(),i(Error(`视频${t}失败`))};e.addEventListener(t,s,{once:!0}),e.addEventListener(`error`,c,{once:!0}),a=window.setTimeout(()=>{o(),i(Error(`视频${t}超时`))},n)})}function ate(){return new Promise(e=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>e())})})}async function ote(e,t){let n=Math.max(0,t);if(Math.abs(e.currentTime-n)>.01){let t=q9(e,`seeked`);e.currentTime=n,await t}await ate()}function ste(e,t,n){let r;try{r=e.getImageData(0,0,t,n).data}catch{return!1}let i=0,a=0;for(let e=0;e<n;e+=8)for(let n=0;n<t;n+=8){let o=(e*t+n)*4,s=r[o],c=r[o+1],l=r[o+2];if(r[o+3]<20)continue;let u=.299*s+.587*c+.114*l;i+=1,u<18&&(a+=1)}return i>0&&a/i>=.85}async function cte(e,t,n,r,i){let a=Math.max(0,i-.05),o=Array.from(new Set([r,r+.2,r+.5,r+1,r+2].map(e=>Math.min(e,a)).filter(e=>e>=0&&e<=a)));for(let i of o)try{if(await ote(e,i),t.clearRect(0,0,V9,H9),t.drawImage(e,0,0,V9,H9),ste(t,V9,H9))continue;return{second:r,captureSecond:i,image:n.toDataURL(`image/jpeg`,.76),status:`success`,fallback:Math.abs(i-r)>.01}}catch{}return{second:r,image:``,status:`failed`}}function lte(e,t,n,r,i){if(!n||n<=0)return[0,0];let a=Math.min(i,n),o=Math.min(r,a),[s,c]=e;s=W9(K9(s,0,n)),c=W9(K9(c,0,n)),c<s&&([s,c]=[c,s]);let l=Math.abs(s-t[0])>=Math.abs(c-t[1]),u=c-s;return u<o&&(l?(s=W9(K9(c-o,0,Math.max(0,n-o))),c=s+o):(c=W9(K9(s+o,o,n)),s=c-o)),u=c-s,u>a&&(l?s=W9(K9(c-a,0,Math.max(0,n-a))):c=W9(K9(s+a,a,n))),s=W9(K9(s,0,n)),c=W9(K9(c,s,n)),[s,c]}function J9(e,t,n){return!e||e<=0?[0,t]:[0,Math.min(e,Math.max(t,Math.min(B9,n)))]}var ute=({open:e,videoUrl:t,title:n=`手动拆镜`,loading:r=!1,minDuration:i=nte,maxDuration:a=rte,onCancel:o,onConfirm:s})=>{let c=(0,x.useRef)(null),l=(0,x.useRef)(!1),u=(0,x.useRef)([0,i]),d=(0,x.useRef)(0),[f,p]=(0,x.useState)(0),[m,h]=(0,x.useState)(0),[g,_]=(0,x.useState)([0,i]),[v,y]=(0,x.useState)([]),[b,S]=(0,x.useState)(!1),[C,w]=(0,x.useState)(!1),[T,E]=(0,x.useState)(``),D=(0,x.useMemo)(()=>Math.max(0,Math.floor(f||0)),[f]),O=(0,x.useMemo)(()=>Math.max(0,g[1]-g[0]),[g]),k=D>0&&D<i,A=(0,x.useCallback)(e=>{_(t=>{let n=typeof e==`function`?e(t):e;return ite(t,n)?t:(u.current=n,n)})},[]),j=(0,x.useCallback)(e=>{let t=W9(e);d.current!==t&&(d.current=t,h(t))},[]),M=(0,x.useCallback)(e=>{let t=c.current;if(!t||!D)return;let n=W9(K9(e,0,D));try{t.currentTime=n}catch{}j(n)},[D,j]);(0,x.useEffect)(()=>{if(!e){l.current=!0,w(!1),y([]),S(!1),p(0),j(0),E(``),A([0,i]),c.current&&c.current.pause();return}l.current=!1,w(!1),S(!0),y([]),p(0),j(0),E(``),A([0,i]);let n=document.createElement(`video`);return n.crossOrigin=`anonymous`,n.muted=!0,n.playsInline=!0,n.preload=`auto`,n.src=t,(async()=>{try{if(await q9(n,`loadedmetadata`),await q9(n,`loadeddata`).catch(()=>void 0),l.current)return;let e=Number.isFinite(n.duration)?n.duration:0,t=Math.max(0,Math.floor(e));if(p(e),A(J9(t,i,a)),!e||t<=0){E(`视频时长异常,无法抽取帧`);return}let r=document.createElement(`canvas`);r.width=V9,r.height=H9;let o=r.getContext(`2d`,{willReadFrequently:!0});if(!o){E(`当前浏览器不支持 Canvas 抽帧`);return}let s=Array.from({length:t},(e,t)=>({second:t,image:``,status:`loading`}));y(s);let c=[...s];for(let i=0;i<t;i+=1){if(l.current)return;let t=await cte(n,o,r,i,e);if(l.current)return;c[i]=t,y([...c])}}catch(e){l.current||E(e?.message||`视频帧抽取失败,请确认视频资源允许跨域访问`)}finally{l.current||S(!1)}})(),()=>{l.current=!0,n.pause(),n.removeAttribute(`src`),n.load()}},[e,t,i,a,j,A]);let N=(0,x.useCallback)(e=>{D&&(E(``),A(t=>lte([Number(e[0]),Number(e[1])],t,D,i,a)))},[D,a,i,A]),P=(0,x.useCallback)(()=>{M(u.current[0])},[M]),F=(0,x.useCallback)(e=>{if(!D||k)return;let t=K9(O||Math.min(B9,a),i,Math.min(a,D)),n=K9(e,0,Math.max(0,D-t));n=W9(n);let r=[n,n+t];A(r),M(r[0])},[k,D,a,i,M,O,A]);return(0,$.jsx)(Nq,{title:n,open:e,onCancel:o,width:980,destroyOnHidden:!0,footer:[(0,$.jsx)(kD,{onClick:o,disabled:r,children:`取消`},`cancel`),(0,$.jsx)(kD,{type:`primary`,onClick:async()=>{if(!D||D<=0){E(`请等待视频加载完成`);return}if(k){E(`视频总时长不足 ${i} 秒,无法手动拆镜`);return}if(O<i){E(`拆镜片段不能低于 ${i} 秒`);return}if(O>a){E(`拆镜片段不能超过 ${a} 秒`);return}E(``),await s({startSecond:g[0],endSecond:g[1],durationSecond:O})},loading:r,disabled:r||k||!D,children:`确认拆镜`},`confirm`)],children:(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:18},children:[(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,background:`#fff`},children:(0,$.jsx)(`video`,{ref:c,src:t,crossOrigin:`anonymous`,preload:`metadata`,playsInline:!0,onLoadedMetadata:e=>{let t=Number.isFinite(e.currentTarget.duration)?e.currentTarget.duration:0;if(!t)return;let n=Math.max(0,Math.floor(t));p(e=>Math.floor(e||0)===n?e:t),A(e=>e[1]>i||e[0]!==0?e:J9(n,i,a))},onTimeUpdate:()=>{let e=c.current;e&&(j(W9(e.currentTime||0)),C&&e.currentTime>=u.current[1]&&(e.pause(),e.currentTime=u.current[1],j(u.current[1]),w(!1)))},onPause:()=>w(!1),style:{width:`100%`,maxHeight:420,objectFit:`contain`,background:`#111`,borderRadius:8}})}),(0,$.jsxs)(`div`,{style:{borderRadius:24,background:`#f3f6ff`,padding:`26px 34px 18px`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,gap:28,marginBottom:22},children:[(0,$.jsx)(kD,{type:`text`,icon:C?(0,$.jsx)(Y3,{}):(0,$.jsx)(u6,{}),onClick:async()=>{let e=c.current;if(!(!e||!D)){if(C){e.pause(),w(!1);return}(e.currentTime<g[0]||e.currentTime>=g[1])&&(e.currentTime=g[0],j(g[0]));try{await e.play(),w(!0),E(``)}catch{E(`视频播放失败,请检查视频地址`)}}},disabled:!D||k,style:{fontSize:22,color:`#111`}}),(0,$.jsxs)(`span`,{style:{fontSize:26,color:`#111`,letterSpacing:1},children:[G9(m),` / `,G9(D)]})]}),(0,$.jsxs)(`div`,{style:{position:`relative`,padding:`0 6px`},children:[(0,$.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(${Math.max(v.length,1)}, minmax(42px, 1fr))`,height:86,overflow:`hidden`,borderRadius:10,background:`#dbe2ff`},children:b&&v.length===0?(0,$.jsxs)(`div`,{style:{gridColumn:`1 / -1`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:[(0,$.jsx)(hq,{size:`small`}),(0,$.jsx)(tte,{style:{marginLeft:8,color:`#64748b`},children:`正在抽取每秒帧...`})]}):v.length>0?v.map(e=>(0,$.jsxs)(`button`,{type:`button`,onClick:()=>F(e.second),title:`${e.second}s${e.fallback?`,实际取帧 ${e.captureSecond?.toFixed(1)}s`:``}`,style:{minWidth:0,height:86,border:`none`,padding:0,background:`#eef2ff`,overflow:`hidden`,cursor:k?`not-allowed`:`pointer`,position:`relative`},children:[e.status===`success`&&e.image?(0,$.jsx)(`img`,{src:e.image,alt:`${e.second}s`,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}}):e.status===`loading`?(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(hq,{size:`small`})}):(0,$.jsxs)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,color:`#64748b`,fontSize:12,background:`#eef2ff`},children:[(0,$.jsxs)(`span`,{children:[e.second,`s`]}),(0,$.jsx)(`span`,{style:{fontSize:11},children:`无有效帧`})]}),(0,$.jsxs)(`span`,{style:{position:`absolute`,left:4,bottom:3,color:`#fff`,fontSize:11,textShadow:`0 1px 3px rgba(0,0,0,.7)`},children:[e.second,`s`]})]},e.second)):(0,$.jsx)(`div`,{style:{gridColumn:`1 / -1`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#64748b`},children:`暂无帧预览,请确认视频是否加载完成`})}),(0,$.jsx)(`div`,{style:{marginTop:0,padding:`0 8px 0`},children:(0,$.jsx)(TH,{range:!0,min:0,max:D||a,step:1,value:g,onChange:N,onChangeComplete:P,tooltip:{formatter:e=>`${W9(Number(e||0))}s`},disabled:!D||k,styles:{track:{background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,height:6,borderRadius:3},rail:{background:`#e2e8f0`,height:6,borderRadius:3},handle:{width:18,height:18,marginTop:0,transition:`all 0.2s cubic-bezier(0.4, 0, 0.2, 1)`}}})})]}),(0,$.jsxs)(`div`,{style:{marginTop:30,textAlign:`center`,color:`#64748b`,fontSize:16},children:[`已选取 `,O,`s`,(0,$.jsxs)(`span`,{style:{marginLeft:12,fontSize:13,color:`#94a3b8`},children:[`最小 `,i,`s,最大 `,a,`s`]})]}),T&&(0,$.jsx)(`div`,{style:{marginTop:12,textAlign:`center`,color:`#ef4444`,fontSize:13},children:T})]})]})})},{TextArea:dte}=cK,fte=`http://ceshi.apiforeign.minzhong.cn`,Y9=2,X9=15;function Z9(e){return e?/^https?:\/\//i.test(e)?e:`${fte}${e}`:``}function pte(){let{creatID:e}=Ye(),t=Ge(),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(null),[c,l]=(0,x.useState)(null),[u,d]=(0,x.useState)(null),[f,p]=(0,x.useState)(!1),m=(0,x.useRef)(null),[h,g]=(0,x.useState)(``),[_,v]=(0,x.useState)(``),[y,b]=(0,x.useState)(``),[S,C]=(0,x.useState)(null),[w,T]=(0,x.useState)([]),[E,D]=(0,x.useState)(!1),[O,k]=(0,x.useState)(!1),[A,j]=(0,x.useState)(!1),M=(0,x.useRef)(null),N=(0,x.useMemo)(()=>Z9(S?.videoUrl),[S?.videoUrl]),P=(0,x.useMemo)(()=>w.length===0?`AI自动拆分`:w.some(e=>e.sourceMode===`ai_suggestion`)?`AI重拆`:`AI自动拆分`,[w]),F=(0,x.useCallback)(async()=>{if(e)try{C(await x7(e))}catch{Aq.error(`获取任务详情失败`)}},[e]),I=(0,x.useCallback)(async()=>{if(e)try{let t=(await w7(e)).items||[];T(t),t.some(e=>e.moduleProjectCurrentStepCode!==`video_generate`&&e.moduleProjectStatus!==`completed`&&e.moduleProjectStatus!==`failed`)?M.current||=window.setInterval(async()=>{try{let t=(await w7(e)).items||[];T(e=>e.map(e=>{let n=t.find(t=>t.id===e.id);return n&&(e.moduleProjectCurrentStepCode!==`video_generate`||e.moduleProjectStatus!==`completed`&&e.moduleProjectStatus!==`failed`)?n:e})),t.every(e=>e.moduleProjectCurrentStepCode===`video_generate`||e.moduleProjectStatus===`completed`||e.moduleProjectStatus===`failed`)&&(M.current&&=(clearInterval(M.current),null))}catch(e){console.error(`轮询获取拆镜列表失败:`,e)}},3e4):M.current&&=(clearInterval(M.current),null)}catch{Aq.error(`获取拆镜列表失败`)}},[e]),L=(0,x.useCallback)(async()=>{await Promise.all([F(),I()])},[F,I]);(0,x.useEffect)(()=>(L(),()=>{M.current&&=(clearInterval(M.current),null)}),[L]);let R=(e,t)=>{s(e),l(t),r(!0)},z=()=>{r(!1),s(null),g(``),l(``),v(``),b(``)},B=e=>{e.fileList.length===0&&b(``)},V=async e=>{try{b((await k5(e)).url),Aq.success(`图片上传成功`)}catch{Aq.error(`图片上传失败,请重试`)}return!1},H=async()=>{if(!o){Aq.warning(`请先选择拆镜片段`);return}if(!y){Aq.warning(`请上传产品图`);return}if(!h.trim()){Aq.warning(`请输入产品名称`);return}if(!_.trim()){Aq.warning(`请输入产品卖点`);return}D(!0);try{await T7(o,{target_project_name:h.trim(),core_content_point:_.trim(),material_image_url:Z9(y),idempotency_key:`replication_${Date.now()}`}),Aq.success(`视频生成任务创建成功`),z(),await I()}catch(e){Aq.error(e?.message||`创建失败,请重试`)}finally{D(!1)}},U=async()=>{if(e){j(!0);try{let t=w.some(e=>e.sourceMode===`ai_suggestion`);await S7(e,{selected_indices:[],replace_existing:t}),Aq.success(t?`AI 重拆任务已提交`:`AI 拆镜任务已提交`),await L()}catch(e){Aq.error(e?.message||`拆镜失败`)}finally{j(!1)}}},W=()=>{if(!N){Aq.warning(`原视频地址不存在`);return}a(!0)},G=async t=>{if(e){if(t.durationSecond<Y9){Aq.warning(`拆镜片段不能低于 ${Y9} 秒`);return}if(t.durationSecond>X9){Aq.warning(`拆镜片段不能超过 ${X9} 秒`);return}k(!0);try{await C7(e,{start_second:t.startSecond,end_second:t.endSecond}),Aq.success(`手动拆镜任务已提交`),a(!1),await L()}catch(e){Aq.error(e?.message||`手动拆镜失败`)}finally{k(!1)}}},K=e=>e?.splitStatus===`completed`&&!!e?.segmentVideoUrl;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{margin:`-24px -32px -32px`,borderRadius:20,minHeight:`calc(100vh - 32px)`,display:`flex`,flexDirection:`column`,overflow:`hidden`,background:`linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%)`,position:`relative`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:-100,right:-100,width:300,height:300,background:`radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%)`,borderRadius:`50%`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,bottom:-100,left:-100,width:300,height:300,background:`radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%)`,borderRadius:`50%`}}),(0,$.jsxs)(`div`,{style:{padding:`20px 32px`,display:`flex`,alignItems:`center`,gap:16,position:`relative`,zIndex:10},children:[(0,$.jsx)(kD,{type:`text`,icon:(0,$.jsx)(p2,{}),onClick:()=>t(-1),style:{fontSize:16,color:`#6366f1`,background:`rgba(99, 102, 241, 0.1)`,borderRadius:12,padding:`8px 16px`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.15)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.1)`}}),(0,$.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:16},children:[(0,$.jsx)(`div`,{style:{width:40,height:2,background:`linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent)`,borderRadius:1}}),(0,$.jsx)(`h1`,{style:{fontSize:22,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,margin:0},children:`AI视频拆镜工作台`}),(0,$.jsx)(`div`,{style:{width:40,height:2,background:`linear-gradient(90deg, transparent, #8b5cf6, #6366f1, transparent)`,borderRadius:1}})]})})]}),S?(0,$.jsxs)(`div`,{style:{flex:1,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,overflow:`hidden`,padding:`0 32px 32px`},children:[(0,$.jsxs)(`div`,{style:{flex:1,background:`linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%)`,backdropFilter:`blur(20px)`,borderRadius:20,display:`flex`,alignItems:`center`,gap:30,padding:24,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8)`,position:`relative`,overflow:`hidden`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:-50,right:-50,width:200,height:200,background:`radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%)`,borderRadius:`50%`}}),(0,$.jsx)(`div`,{style:{position:`relative`,width:280,height:160,borderRadius:12,overflow:`hidden`,flexShrink:0,boxShadow:`0 4px 16px rgba(0,0,0,0.1)`},children:(0,$.jsx)(`video`,{controls:!0,src:N,style:{width:`100%`,height:`100%`,objectFit:`cover`}})}),(0,$.jsx)(`div`,{style:{flex:1,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,position:`relative`,zIndex:1},children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,$.jsx)(`h2`,{style:{fontSize:20,fontWeight:600,marginBottom:16,background:`linear-gradient(135deg, #1e293b 0%, #334155 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`},children:`视频总结`}),(0,$.jsx)(`div`,{style:{textAlign:`right`},children:(0,$.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:12},children:[`上传时间: `,S.createdAt?new Date(S.createdAt).toLocaleString(`zh-CN`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}):`-`]})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,marginBottom:12},children:[(0,$.jsx)(`span`,{style:{color:`#64748b`,fontSize:14,marginRight:12,width:80,flexShrink:0},children:`产品名称:`}),(0,$.jsx)(`span`,{style:{color:`#1e293b`,fontWeight:500},children:S.title})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,marginBottom:12},children:[(0,$.jsx)(`span`,{style:{color:`#64748b`,fontSize:14,marginRight:12,width:80,flexShrink:0},children:`受众群体:`}),S.analysisStatus===`processing`?(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(hq,{size:`small`,style:{color:`#f59e0b`}}),(0,$.jsx)(`span`,{style:{fontSize:14,color:`#f59e0b`},children:`分析中`})]}):S.analysisStatus===`completed`?(0,$.jsx)(`div`,{style:{display:`flex`,gap:8,flexWrap:`wrap`},children:(S.originalVideoAudience?.split(`、`)||[]).map((e,t)=>(0,$.jsx)(x$,{style:{fontSize:12,background:`rgba(99, 102, 241, 0.1)`,color:`#6366f1`,border:`none`,borderRadius:20},children:e},t))}):null]}),(0,$.jsxs)(`div`,{style:{display:`flex`},children:[(0,$.jsx)(`span`,{style:{color:`#64748b`,fontSize:14,marginRight:12,width:80,flexShrink:0},children:`视频内容:`}),S.analysisStatus===`processing`?(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(hq,{size:`small`,style:{color:`#f59e0b`}}),(0,$.jsx)(`span`,{style:{fontSize:14,color:`#f59e0b`},children:`分析中`})]}):S.analysisStatus===`completed`?(0,$.jsx)(`span`,{style:{color:`#475569`,lineHeight:1.6},children:S.originalVideoContent}):null]})]})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,marginBottom:20,marginTop:20},children:[(0,$.jsx)(kD,{type:`default`,onClick:W,disabled:!N||O,style:{flex:1,height:52,borderRadius:12,border:`2px solid rgba(99, 102, 241, 0.3)`,color:`#6366f1`,fontWeight:600,fontSize:15,background:`rgba(255, 255, 255, 0.9)`,backdropFilter:`blur(10px)`,transition:`all 0.3s cubic-bezier(0.4, 0, 0.2, 1)`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#6366f1`,e.currentTarget.style.boxShadow=`0 4px 20px rgba(99, 102, 241, 0.2)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(99, 102, 241, 0.3)`,e.currentTarget.style.boxShadow=`none`},children:`手动`}),(0,$.jsx)(Lq,{title:P===`AI重拆`?`确定要AI重拆吗?`:`确定要AI拆分吗?`,okText:`确定`,cancelText:`取消`,onConfirm:U,children:(0,$.jsxs)(kD,{type:`primary`,loading:A,disabled:A,style:{flex:1,height:52,borderRadius:12,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%)`,fontWeight:600,fontSize:15,border:`none`,boxShadow:`0 4px 20px rgba(99, 102, 241, 0.3)`,transition:`all 0.3s cubic-bezier(0.4, 0, 0.2, 1)`,position:`relative`,overflow:`hidden`},onMouseEnter:e=>{e.currentTarget.style.transform=`translateY(-2px)`,e.currentTarget.style.boxShadow=`0 6px 25px rgba(99, 102, 241, 0.4)`},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 4px 20px rgba(99, 102, 241, 0.3)`},children:[(0,$.jsx)(`span`,{style:{position:`relative`,zIndex:1},children:P}),(0,$.jsx)(`div`,{style:{position:`absolute`,top:0,left:`-100%`,width:`100%`,height:`100%`,background:`linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent)`,transition:`left 0.5s ease`},onMouseEnter:e=>{e.currentTarget.style.left=`100%`}}),S?.aiSuggestions&&S.aiSuggestions.length>0&&(0,$.jsx)(lT,{title:(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{fontWeight:600,marginBottom:8,color:`#6366f1`},children:`AI拆分方案`}),(S?.ai_suggestions||S?.aiSuggestions||[]).map(e=>(0,$.jsxs)(`div`,{style:{marginBottom:8,fontSize:13,lineHeight:1.5},children:[(0,$.jsxs)(`span`,{style:{fontWeight:500,color:`#6366f1`},children:[e.index,`.`]}),(0,$.jsx)(`span`,{style:{marginLeft:4,color:`#000000ff`},children:e.timeNode}),(0,$.jsx)(`br`,{}),(0,$.jsx)(`span`,{style:{color:`#666`},children:e.content})]},e.index))]}),placement:`top`,trigger:`hover`,children:(0,$.jsx)(`span`,{style:{marginLeft:8,fontSize:13,opacity:.9},children:`(AI 镜头拆分方案)`})})]})})]}),(0,$.jsxs)(`div`,{style:{flex:2,background:`linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%)`,backdropFilter:`blur(20px)`,borderRadius:20,overflow:`hidden`,display:`flex`,flexDirection:`column`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`},children:[(0,$.jsxs)(`div`,{style:{padding:`16px 24px`,borderBottom:`1px solid rgba(99, 102, 241, 0.1)`,background:`linear-gradient(135deg, rgba(99,102,241,0.02) 0%, transparent 100%)`},children:[(0,$.jsx)(`h3`,{style:{fontSize:16,fontWeight:600,color:`#1e293b`,margin:0},children:`拆镜片段列表`}),(0,$.jsxs)(`span`,{style:{fontSize:12,color:`#64748b`,marginLeft:12},children:[`共 `,w.length,` 个片段`]})]}),(0,$.jsx)(c$,{columns:[{title:`片段`,width:100,fixed:`left`,align:`center`,render:(e,t)=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{fontSize:16,fontWeight:600,color:`#333`},children:t.segmentName||`片段${t.segmentIndex||``}`}),(0,$.jsx)(`div`,{style:{fontSize:12,color:`#999`},children:t.timeNode}),t.sourceMode===`custom`&&(0,$.jsx)(x$,{color:`blue`,style:{marginTop:6},children:`手动`}),t.sourceMode===`ai_suggestion`&&(0,$.jsx)(x$,{color:`orange`,style:{marginTop:6},children:`自动`})]})},{title:`片段视频`,width:150,align:`center`,render:(e,t)=>(0,$.jsx)(`div`,{style:{position:`relative`,width:120,height:80,borderRadius:6,overflow:`hidden`,background:`#f1f5f9`,cursor:`pointer`},onClick:()=>{console.log(`video clicked:`,t.segmentVideoUrl),t.segmentVideoUrl&&(d(Z9(t.segmentVideoUrl)),p(!0))},children:t.segmentVideoUrl?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`video`,{src:Z9(t.segmentVideoUrl),style:{width:`100%`,height:`100%`,objectFit:`cover`,pointerEvents:`none`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`rgba(0,0,0,0.3)`},children:(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:`50%`,background:`rgba(255,255,255,0.9)`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(`div`,{style:{width:0,height:0,borderTop:`8px solid transparent`,borderBottom:`8px solid transparent`,borderLeft:`14px solid #6366f1`,marginLeft:2}})})})]}):(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:12},children:t.splitStatus===`failed`?`切割失败`:`切割中`})})},{title:`视频内容`,width:500,align:`left`,render:(e,t)=>{if(t.source_mode===`ai_suggestion`||t.sourceMode===`ai_suggestion`)return(0,$.jsx)(`div`,{style:{fontSize:14,color:`#333`,lineHeight:1.6},children:t.segmentContent||t.lastError||`-`});let n=t.analysis_status||t.analysisStatus,r={not_required:`无需单独分析`,pending:`等待分析`,processing:`分析中`,failed:`分析失败`};return n===`processing`?(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(hq,{size:`small`}),(0,$.jsx)(`span`,{style:{fontSize:14,color:`#f59e0b`},children:`分析中`})]}):n===`failed`?(0,$.jsx)(`div`,{style:{fontSize:14,color:`#ef4444`,lineHeight:1.6},children:`分析失败`}):(0,$.jsx)(`div`,{style:{fontSize:14,color:`#333`,lineHeight:1.6},children:n&&r[n]?r[n]:t.segmentContent||t.lastError||`-`})}},{title:`视频类型`,width:120,align:`center`,render:(e,t)=>(0,$.jsx)(`div`,{style:{fontSize:14,color:`#333`,fontWeight:500},children:t.segmentCategory||`-`})},{title:`状态`,width:120,align:`center`,dataIndex:`moduleProjectStatus`,render:(e,t)=>{let n=e,r=t.moduleProjectCurrentStepCode||t.currentStepCode,i=(()=>{if(r===`image_prompt_optimize`)switch(n){case`waiting_user`:return{text:`等待融合图生成`,color:`#f59e0b`};case`processing`:return{text:`图片提示词生成中`,color:`#f59e0b`};case`completed`:return{text:`图片提示词生成成功`,color:`#10b981`};case`failed`:return{text:`图片提示词生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else if(r===`image_generate`)switch(n){case`waiting_user`:return{text:`等待生成视频提示词`,color:`#f59e0b`};case`processing`:return{text:`融合图生成中`,color:`#f59e0b`};case`completed`:return{text:`融合图生成成功`,color:`#10b981`};case`failed`:return{text:`融合图生成失败`,color:`#ef4444`};default:return n||`-`}else if(r===`video_prompt_optimize`)switch(n){case`waiting_user`:return{text:`等待最终视频生成`,color:`#f59e0b`};case`processing`:return{text:`视频提示词生成中`,color:`#f59e0b`};case`completed`:return{text:`视频提示词生成成功`,color:`#10b981`};case`failed`:return{text:`视频提示词生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else if(r===`video_generate`)switch(n){case`waiting_user`:return{text:``,color:`#666`};case`processing`:return{text:`最终视频生成中`,color:`#f59e0b`};case`completed`:return{text:`任务完成`,color:`#10b981`};case`failed`:return{text:`最终视频生成失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else if(r===`material_input`)switch(n){case`waiting_user`:return{text:`等待生成图片提示词`,color:`#f59e0b`};case`processing`:return{text:`素材处理中`,color:`#f59e0b`};case`completed`:return{text:`素材上传成功`,color:`#10b981`};case`failed`:return{text:`素材上传失败`,color:`#ef4444`};default:return{text:n||`-`,color:`#666`}}else return t.moduleProjectId?{pending:{text:`子任务待处理`,color:`#f59e0b`},waiting_user:{text:`等待用户确认或触发`,color:`#f59e0b`},processing:{text:`子任务处理中`,color:`#f59e0b`},completed:{text:`子任务完成`,color:`#10b981`},failed:{text:`子任务失败`,color:`#ef4444`},cancelled:{text:`子任务取消`,color:`#94a3b8`}}[n]||{text:n||`-`,color:`#666`}:{text:`待生成任务`,color:`#94a3b8`}})();return typeof i==`string`?(0,$.jsx)(`span`,{style:{fontSize:12,color:`#666`,fontWeight:500},children:i}):(0,$.jsx)(`span`,{style:{fontSize:12,color:i.color,fontWeight:500},children:i.text})}},{title:`操作`,width:140,fixed:`right`,align:`center`,render:(e,n)=>(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:8},children:n.moduleProjectId?(0,$.jsx)(kD,{type:`text`,onClick:()=>t(`/removelens/${n.moduleProjectId}/removefenbu`),style:{color:`#10b981`,fontSize:12,padding:0,display:`flex`,alignItems:`center`,gap:4},children:`详情任务`}):(0,$.jsx)(kD,{type:`text`,onClick:()=>R(String(n.id),n.segmentName),disabled:!K(n),style:{color:K(n)?`#f59e0b`:`#94a3b8`,fontSize:12,padding:0,display:`flex`,alignItems:`center`,gap:4},children:K(n)?`视频生成`:`待切割完成`})})}],dataSource:w,pagination:!1,bordered:!1,rowKey:`id`,scroll:{y:300},style:{flex:1},components:{body:{row:({className:e,style:t,...n})=>(0,$.jsx)(`tr`,{...n,className:e,style:{...t,transition:`all 0.2s ease`,borderBottom:`1px solid rgba(99, 102, 241, 0.05)`}}),cell:({className:e,style:t,...n})=>(0,$.jsx)(`td`,{...n,className:e,style:{...t,padding:`16px 24px`}})},header:{cell:({className:e,style:t,...n})=>(0,$.jsx)(`th`,{...n,className:e,style:{...t,background:`rgba(99, 102, 241, 0.03)`,color:`#64748b`,fontWeight:500,fontSize:13,padding:`16px 24px`,borderBottom:`none`}})}}})]})]}):(0,$.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(`span`,{style:{fontSize:16,color:`#999`},children:`加载中...`})})]}),(0,$.jsx)(ute,{open:i,videoUrl:N,title:`手动视频切片`,loading:O,minDuration:Y9,maxDuration:X9,onCancel:()=>a(!1),onConfirm:G}),(0,$.jsx)(wU,{title:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:4,height:20,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:18,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`},children:`智能视频复刻`}),c&&(0,$.jsxs)(`span`,{style:{fontSize:14,color:`#64748b`},children:[`- `,c]})]}),(0,$.jsx)(kD,{type:`text`,icon:(0,$.jsx)(Y8,{}),onClick:z,style:{padding:0,color:`#64748b`,fontSize:14}})]}),placement:`right`,closable:!1,onClose:z,open:n,size:480,styles:{body:{padding:`24px`,background:`linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%)`},header:{background:`#fff`,borderBottom:`1px solid rgba(99, 102, 241, 0.1)`,padding:`20px 24px`},content:{borderRadius:`20px 0 0 20px`,overflow:`hidden`}},children:(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:20},children:[(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:12,padding:16,border:`1px solid rgba(99, 102, 241, 0.1)`},children:[(0,$.jsxs)(`label`,{style:{fontWeight:500,color:`#334155`,marginBottom:8,display:`block`,fontSize:14},children:[`产品白底图 `,(0,$.jsx)(`span`,{style:{color:`#ef4444`},children:`*`})]}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:12},children:(0,$.jsx)(g0,{listType:`picture-card`,onChange:B,beforeUpload:V,maxCount:1,accept:`image/*`,style:{width:120,height:120,borderRadius:8,border:`2px dashed rgba(99, 102, 241, 0.3)`,background:`rgba(99, 102, 241, 0.02)`},children:!y&&(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:6},children:[(0,$.jsx)(IR,{style:{fontSize:20,color:`#6366f1`}}),(0,$.jsx)(`span`,{style:{fontSize:12,color:`#64748b`},children:`上传产品图`})]})})})]}),(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:12,padding:16,border:`1px solid rgba(99, 102, 241, 0.1)`},children:[(0,$.jsxs)(`label`,{style:{fontWeight:500,color:`#334155`,marginBottom:8,display:`block`,fontSize:14},children:[`产品名称 `,(0,$.jsx)(`span`,{style:{color:`#ef4444`},children:`*`})]}),(0,$.jsx)(cK,{value:h,onChange:e=>g(e.target.value),placeholder:`请输入产品名称`,style:{height:44,borderRadius:8,border:`1px solid rgba(99, 102, 241, 0.2)`},maxLength:10,showCount:!0})]}),(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:12,padding:16,border:`1px solid rgba(99, 102, 241, 0.1)`},children:[(0,$.jsxs)(`label`,{style:{fontWeight:500,color:`#334155`,marginBottom:8,display:`block`,fontSize:14},children:[`产品卖点 `,(0,$.jsx)(`span`,{style:{color:`#ef4444`},children:`*`})]}),(0,$.jsx)(dte,{value:_,onChange:e=>v(e.target.value),placeholder:`请输入产品卖点`,style:{borderRadius:8,border:`1px solid rgba(99, 102, 241, 0.2)`},maxLength:100,showCount:!0,rows:3})]}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:12,marginTop:8},children:(0,$.jsx)(kD,{type:`primary`,onClick:H,loading:E,disabled:E,style:{flex:1,height:48,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,fontWeight:600,fontSize:15,border:`none`,boxShadow:`0 4px 15px rgba(99, 102, 241, 0.3)`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.boxShadow=`0 6px 20px rgba(99, 102, 241, 0.4)`,e.currentTarget.style.transform=`translateY(-1px)`},onMouseLeave:e=>{e.currentTarget.style.boxShadow=`0 4px 15px rgba(99, 102, 241, 0.3)`,e.currentTarget.style.transform=`translateY(0)`},children:E?`生成中...`:`手动生成`})})]})}),(0,$.jsx)(Nq,{title:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:4,height:20,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:16,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`},children:`视频预览`})]}),open:f,onCancel:()=>p(!1),afterClose:()=>{m.current&&(m.current.pause(),m.current.currentTime=0)},footer:null,width:640,centered:!0,styles:{body:{padding:24,background:`#0f172a`},header:{background:`#1e293b`,borderBottom:`none`,padding:`20px 24px`}},children:(0,$.jsx)(`div`,{style:{borderRadius:12,overflow:`hidden`,boxShadow:`0 8px 32px rgba(0,0,0,0.3)`},children:(0,$.jsx)(`video`,{ref:m,controls:!0,src:u||``,style:{width:`100%`,maxHeight:420,objectFit:`contain`,backgroundColor:`#000`},playsInline:!0,"webkit-playsinline":!0,autoPlay:!0})})})]})}var{Title:mte,Text:Q9}=S1,{TextArea:hte}=cK;function gte(e){return e===void 0?e:JSON.parse(JSON.stringify(e))}function _te(){let e=Ge(),{creatID:t}=Ye(),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)(``),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(`image`),[u,d]=(0,x.useState)({}),[f,p]=(0,x.useState)(null),[m,h]=(0,x.useState)(null),[g,_]=(0,x.useState)(``),[v,y]=(0,x.useState)(!1),[b,S]=(0,x.useState)({}),[C,w]=(0,x.useState)(``),[T,E]=(0,x.useState)(!1),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(5),[j,M]=(0,x.useState)(`16:9`),[N,P]=(0,x.useState)(`480p`),[F,I]=(0,x.useState)({ratios:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:[`480p`,`720p`,`1080p`],durations:[5,8,10,12,15]}),[L,R]=(0,x.useState)([]),[z,B]=(0,x.useState)(1),[V,H]=(0,x.useState)(20),[U,W]=(0,x.useState)(0),[G,K]=(0,x.useState)({}),[ee,te]=(0,x.useState)([]),q=[{id:1,title:`原始素材`,description:`上传原始视频素材`,childId:1},{id:2,title:`生成提示词`,description:`根据素材生成描述词`,childId:2},{id:3,title:`生成产品融合图`,description:`生成产品与场景融合图`,childId:3},{id:4,title:`生成视频提示词`,description:`生成视频生成提示词`,childId:4},{id:5,title:`生成最终视频`,description:`合成最终视频`,childId:5}].map((e,t)=>({...e,status:ee[t]?.status||``,id:ee[t]?.id||t,output:ee[t]?.output||``,engineId:ee[t]?.input?.payload?.videoConfig?.engineId||``})),J=(e,t)=>{b7(e,t).then(e=>{e.items&&R(e.items),e.total!==void 0&&W(e.total)}).catch(e=>{})},Y=(e,t)=>{B(e),H(t),J(e,t)};(0,x.useEffect)(()=>{J(z,V)},[]),(0,x.useEffect)(()=>{Z5().then(e=>{if(S(e.engine||{}),e.engine?.video&&e.engine.video.length>0){w(e.engine.video[0].id);let t=e.engine.video[0];I({ratios:t.supportedRatios||[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:t.supportedResolutions||[`480p`,`720p`,`1080p`],durations:t.supportedDurations||[5,8,10,12,15]})}}).catch(e=>{})},[]),(0,x.useEffect)(()=>()=>{m&&(clearInterval(m),h(null))},[m]),(0,x.useEffect)(()=>{let e=e=>{let t=e.target;!t.closest(`.image-settings-trigger`)&&!t.closest(`.image-settings-popover`)&&(E(!1),O(!1))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,x.useEffect)(()=>{console.log(`creatID`,t),t&&E7(t).then(e=>{K(e),e.steps&&te(e.steps)}).catch(e=>{})},[t]),(0,x.useEffect)(()=>{let e=q[4];e&&e.status!==`completed`&&e.status!==`failed`?m||h(setInterval(re,3e4)):e&&m&&(clearInterval(m),h(null))},[q]);let ne=(e,t,n,i)=>{l(t||`image`),_(n?String(n):``),t===`video`?(p(i||null),d(e&&typeof e==`object`?gte(e):{}),a(``)):(p(null),a(e||``),d({})),r(!0)},X=async()=>{if(c===`image`){if(!G?.id||!g){Aq.warning(`缺少任务或步骤 ID,无法保存图片提示词`);return}if(!i||!i.trim()){Aq.warning(`图片提示词不能为空`);return}y(!0);try{await O7(G.id,g,{prompt:i.trim()}),Aq.success(`图片提示词已保存`),ie(),r(!1),_(``)}catch(e){Aq.error(e?.message||`保存图片提示词失败`)}finally{y(!1)}return}if(!G?.id||!g){Aq.warning(`缺少任务或步骤 ID,无法保存视频提示词`);return}if(!u||typeof u!=`object`||Object.keys(u).length===0){Aq.warning(`视频提示词不能为空`);return}if(!f){Aq.warning(`视频提词配置缺失,暂不能保存`);return}let e=D9(u,f);if(e){Aq.warning(e);return}y(!0);try{await k7(G.id,g,{prompt_schema:u}),Aq.success(`视频提示词已保存`),ie(),r(!1),_(``)}catch(e){Aq.error(e?.message||`保存视频提示词失败`)}finally{y(!1)}},re=()=>{t&&E7(t).then(e=>{K(e),e.steps&&te(e.steps)}).catch(e=>{})},ie=()=>{t&&E7(t).then(e=>{K(e),e.steps&&te(e.steps)}).catch(e=>{})},ae=e=>{D7(G.id,e.toString()).then(e=>{ie()}).catch(e=>{})},oe=e=>{A7(G.id,e.toString(),{engine_id:`0019e3dac0b795b925b`,image_proportion:`1:1`,image_px:`2048x2048`,image_size:`2K`}).then(e=>{ie()}).catch(e=>{})},se=()=>{A7(G.id,q[1].id.toString(),{engine_id:`0019e3dac0b795b925b`,image_proportion:`1:1`,image_px:`2048x2048`,image_size:`2K`}).then(e=>{ie()}).catch(e=>{})},ce=e=>{let t={engine_id:C,duration:k,aspect_ratio:j,resolution:N,target_platform:`抖音`};j7(G.id,e.toString(),t).then(e=>{ie()}).catch(e=>{})},le=(e,t)=>{let n={engine_id:t};M7(G.id,e.toString(),n).then(e=>{ie()}).catch(e=>{})},ue=()=>{let e={engine_id:q[2].engineId};M7(G.id,q[2].id.toString(),e).then(e=>{ie()}).catch(e=>{})};return(0,$.jsxs)(x.Fragment,{children:[(0,$.jsxs)(`div`,{className:`initialinfo-container`,style:{margin:`-24px -32px -32px`,height:`calc(100vh - 34px)`,position:`relative`,boxSizing:`border-box`,overflow:`hidden`,display:`flex`,flexDirection:`column`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:-100,right:-100,width:300,height:300,background:`radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%)`,borderRadius:`50%`,pointerEvents:`none`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,bottom:-100,left:-100,width:300,height:300,background:`radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%)`,borderRadius:`50%`,pointerEvents:`none`}}),(0,$.jsxs)(`div`,{style:{flex:1,display:`flex`,justifyContent:`space-between`,alignItems:`stretch`,gap:`2%`,position:`relative`,zIndex:1,minHeight:0},children:[(0,$.jsxs)(`div`,{className:`replication-preview`,style:{flex:4,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(20px)`,borderRadius:20,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`,display:`flex`,flexDirection:`column`,minHeight:0},children:[(0,$.jsxs)(`div`,{style:{borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`16px 24px`,background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`,boxSizing:`border-box`},children:[(0,$.jsx)(kD,{type:`text`,icon:(0,$.jsx)(p2,{}),onClick:()=>e(-1),style:{color:`#64748b`,borderRadius:10,fontSize:13,height:32,transition:`all 0.25s cubic-bezier(0.4, 0, 0.2, 1)`},children:`返回`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:32,height:2,background:`linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent)`,borderRadius:1}}),(0,$.jsx)(`h3`,{style:{margin:0,fontSize:16,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`拆镜复刻 - 任务详情`}),(0,$.jsx)(`div`,{style:{width:32,height:2,background:`linear-gradient(90deg, transparent, #8b5cf6, #6366f1, transparent)`,borderRadius:1}})]}),(0,$.jsx)(kD,{type:`primary`,ghost:!0,style:{borderRadius:10,padding:`4px 16px`,fontSize:13,background:`rgba(99, 102, 241, 0.1)`,borderColor:`rgba(99, 102, 241, 0.2)`,color:`#6366f1`},onClick:()=>s(!0),children:`创作记录`})]}),(0,$.jsx)(`div`,{style:{flex:1,overflowY:`auto`},children:(0,$.jsxs)(`div`,{className:`material_box`,children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:24,flexWrap:`wrap`,alignItems:`flex-start`},children:[(0,$.jsxs)(`div`,{style:{flex:1,minWidth:250},children:[(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10,display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{width:3,height:14,background:`linear-gradient(180deg, #6366f1, #8b5cf6)`,borderRadius:2,display:`inline-block`}}),`视频`]}),(0,$.jsx)(`div`,{className:`medio_box`,style:{aspectRatio:`16/9`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,borderRadius:14,overflow:`hidden`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.06)`,border:`1px solid rgba(99, 102, 241, 0.08)`},children:G?.material?.materialVideoUrl?(0,$.jsx)(`video`,{controls:!0,src:`http://ceshi.apiforeign.minzhong.cn${G.material.materialVideoUrl}`,style:{width:`100%`,height:`100%`,objectFit:`contain`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:13},children:`暂无视频`})})]}),(0,$.jsxs)(`div`,{className:`product_img`,style:{flex:1,minWidth:250},children:[(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10,display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{width:3,height:14,background:`linear-gradient(180deg, #6366f1, #8b5cf6)`,borderRadius:2,display:`inline-block`}}),`产品图片`]}),(0,$.jsx)(`div`,{className:`medio_box`,style:{aspectRatio:`1/1`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,borderRadius:14,overflow:`hidden`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.06)`,border:`1px solid rgba(99, 102, 241, 0.08)`},children:G?.material?.materialImageUrl?(0,$.jsx)(`img`,{src:G.material.materialImageUrl,alt:``,style:{width:`100%`,height:`100%`,objectFit:`contain`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:13},children:`暂无图片`})})]})]}),G?.finalImageUrl&&(0,$.jsx)(`div`,{style:{marginTop:24},children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10,display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{width:3,height:14,background:`linear-gradient(180deg, #6366f1, #8b5cf6)`,borderRadius:2,display:`inline-block`}}),`生成图片`]}),(0,$.jsx)(`div`,{className:`medio_box`,style:{aspectRatio:`1/1`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,borderRadius:14,overflow:`hidden`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.06)`,border:`1px solid rgba(99, 102, 241, 0.08)`},children:(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${G.finalImageUrl}`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`contain`}})})]})}),G?.finalVideoUrl&&(0,$.jsx)(`div`,{style:{marginTop:24},children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`span`,{style:{fontSize:14,fontWeight:600,color:`#1e293b`,marginBottom:10,display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(`span`,{style:{width:3,height:14,background:`linear-gradient(180deg, #6366f1, #8b5cf6)`,borderRadius:2,display:`inline-block`}}),`生成视频`]}),(0,$.jsx)(`div`,{className:`medio_box`,style:{aspectRatio:`16/9`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,borderRadius:14,overflow:`hidden`,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.06)`,border:`1px solid rgba(99, 102, 241, 0.08)`},children:(0,$.jsx)(`video`,{controls:!0,src:`http://ceshi.apiforeign.minzhong.cn${G.finalVideoUrl}`,style:{width:`100%`,height:`100%`,objectFit:`contain`}})})]})})]})})]}),(0,$.jsxs)(`div`,{className:`replication-form`,style:{flex:1,minWidth:`400px`,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(20px)`,borderRadius:20,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`,display:`flex`,flexDirection:`column`,minHeight:0},children:[(0,$.jsxs)(`div`,{style:{padding:`16px 24px`,borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,display:`flex`,alignItems:`center`,gap:10,background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`},children:[(0,$.jsx)(`div`,{style:{width:4,height:18,background:`linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:15,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`生成步骤`})]}),(0,$.jsx)(`div`,{style:{flex:1,overflowY:`auto`,padding:`8px 16px 16px`},children:(0,$.jsx)(Qg,{defaultActiveKey:[``],ghost:!0,bordered:!1,style:{background:`transparent`},expandIconPlacement:`end`,items:q.map(e=>({key:String(e.id),label:(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,width:`100%`,justifyContent:`space-between`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:16,height:16},children:e.status===`completed`?(0,$.jsx)(t4,{style:{fontSize:16,color:`#22c55e`}}):e.status===`processing`?(0,$.jsx)(`div`,{style:{width:16,height:16,borderRadius:`50%`,border:`2px solid #e2e8f0`,borderTopColor:`#6366f1`,animation:`spinSlow 1s linear infinite`}}):e.status===`failed`?(0,$.jsx)(`div`,{style:{width:16,height:16,borderRadius:`50%`,background:`#ef4444`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(`span`,{style:{color:`#fff`,fontSize:10},children:`×`})}):(0,$.jsx)(`div`,{style:{width:8,height:8,borderRadius:`50%`,background:`#cbd5e1`}})}),(0,$.jsx)(`span`,{style:{fontSize:14,color:e.status===`processing`||e.status===`waiting_user`?`#6366f1`:`#1e293b`,fontWeight:500},children:e.title}),(e.status===`processing`||e.status===`waiting_user`)&&(0,$.jsx)(`span`,{style:{fontSize:12,color:`#6366f1`,marginLeft:8},children:`生成中`}),e.status===`failed`&&(0,$.jsx)(`span`,{style:{fontSize:12,color:`#ef4444`,marginLeft:8},children:`失败`}),e.status===``&&(0,$.jsx)(`span`,{style:{fontSize:12,color:`#717d8b`,marginLeft:8},children:`待生成`})]})}),children:(0,$.jsxs)(`div`,{style:{padding:`16px`,background:`linear-gradient(135deg, rgba(248,250,252,0.6) 0%, rgba(238,242,255,0.4) 100%)`,borderRadius:12,marginTop:8,border:`1px solid rgba(99, 102, 241, 0.06)`},children:[e.childId===1&&(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{style:{display:`flex`,gap:20,marginBottom:20,alignItems:`flex-start`,flexWrap:`wrap`},children:[(0,$.jsxs)(`div`,{style:{flex:1,minWidth:200},children:[(0,$.jsx)(Q9,{style:{color:`#64748b`,fontSize:13,marginBottom:10,display:`block`,fontWeight:500},children:`原视频`}),(0,$.jsx)(`div`,{style:{height:180,borderRadius:12,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,border:`1px solid rgba(99, 102, 241, 0.06)`},children:G?.material?.materialVideoUrl?(0,$.jsx)(`video`,{src:`http://ceshi.apiforeign.minzhong.cn${G.material.materialVideoUrl}`,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,borderRadius:10},controls:!0}):(0,$.jsxs)(`div`,{style:{textAlign:`center`,color:`#94a3b8`},children:[(0,$.jsxs)(`svg`,{width:`32`,height:`32`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,style:{marginBottom:8},children:[(0,$.jsx)(`rect`,{x:`2`,y:`2`,width:`20`,height:`16`,rx:`2`,ry:`2`}),(0,$.jsx)(`path`,{d:`M8 12l4 2 4-2`})]}),(0,$.jsx)(`div`,{style:{fontSize:13},children:`暂无视频`})]})})]}),(0,$.jsxs)(`div`,{style:{flex:1,minWidth:200},children:[(0,$.jsx)(Q9,{style:{color:`#64748b`,fontSize:13,marginBottom:10,display:`block`,fontWeight:500},children:`产品图片`}),(0,$.jsx)(`div`,{style:{height:180,borderRadius:12,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,border:`1px solid rgba(99, 102, 241, 0.06)`},children:G?.material?.materialImageUrl?(0,$.jsx)(`img`,{src:G.material.materialImageUrl,alt:`产品图片`,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,borderRadius:10}}):(0,$.jsxs)(`div`,{style:{textAlign:`center`,color:`#94a3b8`},children:[(0,$.jsxs)(`svg`,{width:`32`,height:`32`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,style:{marginBottom:8},children:[(0,$.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,$.jsx)(`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`,fill:`currentColor`}),(0,$.jsx)(`path`,{d:`M21 15l-5-5L5 21`})]}),(0,$.jsx)(`div`,{style:{fontSize:13},children:`暂无图片`})]})})]}),(0,$.jsx)(kD,{onClick:()=>{Aq.info(`正在生成图片提示词,请稍候...`),ae(e.id)},type:`primary`,style:{flex:1,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},disabled:e.status!==`completed`,children:`下一步:生成图片提示词`})]})}),e.childId===2&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{padding:`12px 14px`,background:`rgba(255,255,255,0.6)`,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.08)`,marginBottom:4},children:(0,$.jsx)(Q9,{style:{color:`#475569`,fontSize:13,lineHeight:1.8,whiteSpace:`pre-wrap`},children:e?.output?.payload?.prompt||`暂无提示词`})}),(0,$.jsxs)(NU,{style:{marginTop:16,gap:12,width:`100%`},children:[(0,$.jsx)(kD,{type:`default`,icon:(0,$.jsx)(D$,{}),onClick:()=>ne(e?.output?.payload?.prompt,`image`,e.id),style:{flex:1,borderRadius:10,borderColor:`rgba(99, 102, 241, 0.3)`,color:`#6366f1`,height:36,fontWeight:500,background:`rgba(99, 102, 241, 0.04)`},disabled:e.status!==`completed`,children:`修改提示词`}),(0,$.jsx)(kD,{onClick:()=>{Aq.info(`正在生成图片,请稍候...`),oe(e.id)},type:`primary`,style:{flex:1,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},disabled:e.status!==`completed`,children:`下一步:生成图片`})]})]}),e.childId===3&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{borderRadius:12,overflow:`hidden`,marginBottom:16,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,border:`1px solid rgba(99, 102, 241, 0.08)`,boxShadow:`0 2px 8px rgba(99, 102, 241, 0.04)`,position:`relative`},children:[G.finalImageUrl?(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${G.finalImageUrl}`,alt:`融合图`,style:{width:`100%`,height:180,objectFit:`cover`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:180,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:14},children:`暂无融合图`}),(0,$.jsx)(kD,{type:`default`,icon:(0,$.jsx)(D$,{}),onClick:()=>se(),disabled:e.status!==`completed`,style:{position:`absolute`,bottom:8,left:8,borderRadius:8,borderColor:`rgba(99, 102, 241, 0.3)`,color:`#6366f1`,height:30,fontWeight:500,background:`rgba(255,255,255,0.85)`,backdropFilter:`blur(4px)`,padding:`0 12px`,fontSize:12},children:`重新生成`})]}),(0,$.jsx)(`p`,{style:{marginBottom:6,fontSize:14,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:`视频参数选择:`}),(0,$.jsxs)(`div`,{style:{width:`100%`,display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{flex:1,position:`relative`,display:`inline-block`},children:[(0,$.jsxs)(`button`,{onClick:()=>{E(!T),O(!1)},className:`image-settings-trigger`,style:{width:`100%`,padding:`4px 12px`,height:34,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.15)`,backgroundColor:`rgba(255,255,255,0.7)`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,gap:6,transition:`all 0.2s`},children:[(0,$.jsx)(B6,{style:{fontSize:14,color:`#6366f1`}}),(0,$.jsx)(Q9,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:b.video?.find(e=>e.id===C)?.name||`选择引擎`})]}),T&&(0,$.jsx)(`div`,{className:`image-settings-popover`,style:{position:`absolute`,bottom:`calc(100% + 8px)`,left:-10,width:350,backgroundColor:`#fff`,borderRadius:16,boxShadow:`0 10px 40px rgba(0,0,0,0.15)`,padding:16,border:`none`,zIndex:9999},onClick:e=>e.stopPropagation(),children:(0,$.jsxs)(`div`,{style:{marginBottom:8},children:[(0,$.jsx)(Q9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择引擎`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:4},children:b.video?.map(e=>(0,$.jsxs)(`button`,{onClick:()=>{w(e.id),I({ratios:e.supportedRatios||[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],resolutions:e.supportedResolutions||[`480p`,`720p`,`1080p`],durations:e.supportedDurations||[5,8,10,12,15]}),e.supportedRatios?.includes(j)||M(e.supportedRatios?.[0]||`16:9`),e.supportedResolutions?.includes(N)||P(e.supportedResolutions?.[0]||`720p`),e.supportedDurations?.includes(k)||A(e.supportedDurations?.[0]||5),E(!1)},style:{flex:1,minHeight:48,borderRadius:8,border:C===e.id?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:C===e.id?`#fff`:`#f9fafb`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`flex-start`,padding:`8px 12px`,transition:`all 0.2s`,textAlign:`left`},children:[(0,$.jsx)(`span`,{style:{fontSize:13,fontWeight:C===e.id?600:500,color:C===e.id?`#6366f1`:`#4b5563`,marginBottom:2},children:e.name}),(0,$.jsx)(`span`,{style:{fontSize:11,color:`#9ca3af`}})]},e.id))})]})})]}),(0,$.jsxs)(`div`,{style:{flex:1,position:`relative`,display:`inline-block`},children:[(0,$.jsxs)(`button`,{onClick:()=>{O(!D),E(!1)},className:`image-settings-trigger`,style:{width:`100%`,padding:`4px 12px`,height:34,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.15)`,backgroundColor:`rgba(255,255,255,0.7)`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,gap:6,transition:`all 0.2s`},children:[(0,$.jsx)(T3,{style:{fontSize:14,color:`#6366f1`}}),(0,$.jsxs)(Q9,{style:{fontSize:14,fontWeight:500,color:`#64748b`},children:[j,` · `,k,`s · `,N]})]}),D&&(0,$.jsxs)(`div`,{className:`image-settings-popover`,style:{position:`absolute`,bottom:`calc(100% + 8px)`,left:-160,width:350,backgroundColor:`#fff`,borderRadius:16,boxShadow:`0 10px 40px rgba(0,0,0,0.15)`,padding:16,border:`none`,zIndex:9999},onClick:e=>e.stopPropagation(),children:[(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(Q9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择比例`}),(0,$.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:4},children:F.ratios.map(e=>(0,$.jsxs)(`button`,{onClick:()=>M(e),style:{flex:`0 0 calc(14.28% - 4px)`,minWidth:44,height:52,borderRadius:6,border:j===e?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:j===e?`#fff`:`#f9fafb`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:[(0,$.jsx)(`div`,{style:{width:18,height:18,border:`2px solid ${j===e?`#6366f1`:`#9ca3af`}`,borderRadius:2,marginBottom:2}}),(0,$.jsx)(`span`,{style:{fontSize:9,color:j===e?`#6366f1`:`#6b7280`,fontWeight:j===e?600:400},children:e})]},e))})]}),(0,$.jsxs)(`div`,{style:{marginBottom:16},children:[(0,$.jsx)(Q9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择时长`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsxs)(`div`,{style:{flex:1,position:`relative`,height:24,display:`flex`,alignItems:`center`},children:[(0,$.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:0,right:0,height:6,borderRadius:3,background:`#e5e7eb`,transform:`translateY(-50%)`}}),(0,$.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:0,height:6,borderRadius:3,background:`#6366f1`,width:`${(k-Math.min(...F.durations))/(Math.max(...F.durations)-Math.min(...F.durations))*100}%`,transform:`translateY(-50%)`}}),(0,$.jsx)(`input`,{type:`range`,min:Math.min(...F.durations),max:Math.max(...F.durations),value:k,onChange:e=>A(Number(e.target.value)),style:{position:`relative`,width:`100%`,height:24,borderRadius:3,background:`transparent`,outline:`none`,appearance:`none`,cursor:`pointer`,zIndex:1}})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:4,padding:`4px 12px`,backgroundColor:`#f1f5f9`,borderRadius:6},children:[(0,$.jsx)(`span`,{style:{fontSize:14,fontWeight:600,color:`#64748b`},children:k}),(0,$.jsx)(`span`,{style:{fontSize:12,color:`#9ca3af`},children:`秒`})]})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q9,{style:{display:`block`,marginBottom:8,fontSize:12,fontWeight:500,color:`#666666`},children:`选择分辨率`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:6},children:F.resolutions.map(e=>(0,$.jsx)(`button`,{onClick:()=>P(e),style:{flex:1,height:42,borderRadius:6,border:N===e?`2px solid #6366f1`:`1px solid #e5e7eb`,backgroundColor:N===e?`#6366f1`:`#f9fafb`,cursor:`pointer`,display:`flex`,justifyContent:`center`,alignItems:`center`,transition:`all 0.2s`},children:(0,$.jsx)(`span`,{style:{fontSize:12,fontWeight:600,color:N===e?`#fff`:`#4b5563`},children:e})},e))})]})]})]})]}),(0,$.jsx)(kD,{type:`primary`,style:{width:`100%`,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},onClick:()=>{Aq.info(`正在生成视频提示词,请稍候...`),ce(e.id)},disabled:e.status!==`completed`,children:`下一步:生成视频提示词`})]}),e.childId===4&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{padding:`12px 14px`,background:`rgba(255,255,255,0.6)`,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.08)`,marginBottom:4},children:(0,$.jsx)(Q9,{style:{color:`#64748b`,fontSize:13,lineHeight:1.8},children:`视频提词已生成,可点击按钮查看并修改后台 Schema 允许编辑的字段。`})}),(0,$.jsxs)(NU,{style:{marginTop:16,gap:12,width:`100%`},children:[(0,$.jsx)(kD,{type:`default`,icon:(0,$.jsx)(D$,{}),onClick:()=>ne(G?.videoGeneration?.promptSchema,`video`,e.id,G?.videoGeneration?.schemaConfigSnapshot),style:{flex:1,borderRadius:10,borderColor:`rgba(99, 102, 241, 0.3)`,color:`#6366f1`,height:36,fontWeight:500,background:`rgba(99, 102, 241, 0.04)`},disabled:e.status!==`completed`||!G?.videoGeneration?.promptSchema||!G?.videoGeneration?.schemaConfigSnapshot,children:`查看视频提词`}),(0,$.jsx)(kD,{onClick:()=>{Aq.info(`正在生成视频,请稍候...`),le(e.id,e.engineId)},type:`primary`,style:{flex:1,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},disabled:e.status!==`completed`,children:`下一步:生成视频`})]})]}),e.childId===5&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{style:{borderRadius:12,overflow:`hidden`,marginBottom:16,position:`relative`,background:`linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(238,242,255,0.6) 100%)`,border:`1px solid rgba(99, 102, 241, 0.08)`,boxShadow:`0 2px 8px rgba(99, 102, 241, 0.04)`},children:e.status===`completed`&&G?.finalVideoUrl?(0,$.jsx)(`video`,{src:`http://ceshi.apiforeign.minzhong.cn${G.finalVideoUrl}`,style:{width:`100%`,height:180,objectFit:`cover`},controls:!0}):e.status===`processing`?(0,$.jsxs)(`div`,{style:{width:`100%`,height:180,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:8},children:[(0,$.jsx)(`div`,{style:{width:20,height:20,borderRadius:`50%`,border:`2px solid #e2e8f0`,borderTopColor:`#6366f1`,animation:`spinSlow 1s linear infinite`}}),(0,$.jsx)(`span`,{style:{color:`#6366f1`,fontSize:14},children:`视频生成中...`})]}):e.status===`failed`?(0,$.jsx)(`div`,{style:{width:`100%`,height:180,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ef4444`,fontSize:14},children:`视频生成失败`}):(0,$.jsx)(`div`,{style:{width:`100%`,height:180,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#94a3b8`,fontSize:14},children:`暂无视频`})}),(0,$.jsxs)(NU,{style:{width:`100%`,gap:12},children:[(0,$.jsx)(kD,{onClick:()=>ue(),type:`default`,icon:(0,$.jsx)(D$,{}),style:{flex:1,borderRadius:10,borderColor:`rgba(99, 102, 241, 0.3)`,color:`#6366f1`,height:36,fontWeight:500,background:`rgba(99, 102, 241, 0.04)`},disabled:e.status!==`completed`,children:`重新生成`}),(0,$.jsx)(kD,{type:`primary`,icon:(0,$.jsx)(u0,{}),style:{flex:1,borderRadius:10,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`,height:36,fontWeight:500,boxShadow:`0 4px 12px rgba(99, 102, 241, 0.3)`},disabled:e.status!==`completed`,onClick:()=>{let e=`http://ceshi.apiforeign.minzhong.cn${G?.finalVideoUrl}&download=1`,t=document.createElement(`a`);t.href=e,t.download=`video_${Date.now()}.mp4`,document.body.appendChild(t),t.click(),document.body.removeChild(t)},children:`下载视频`})]})]})]})}))})})]})]})]}),(0,$.jsx)(Nq,{title:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:4,height:18,background:`linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:15,fontWeight:700,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`},children:c===`video`?`查看/编辑视频提词`:`修改提示词`})]}),open:n,onCancel:()=>{v||r(!1)},footer:[(0,$.jsx)(kD,{onClick:()=>r(!1),disabled:v,style:{borderRadius:8},children:`取消`},`cancel`),(0,$.jsx)(kD,{type:`primary`,onClick:X,loading:v,disabled:v,style:{borderRadius:8,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`},children:`确认`},`confirm`)],width:800,style:{borderRadius:16},styles:{header:{background:`rgba(255,255,255,0.6)`,backdropFilter:`blur(10px)`,borderBottom:`1px solid rgba(99, 102, 241, 0.08)`,padding:`16px 24px`},body:{background:`linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%)`,padding:`20px 24px`}},children:c===`image`?(0,$.jsx)(hte,{value:i,onChange:e=>a(e.target.value),rows:8,style:{width:`100%`,height:300,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.15)`,background:`rgba(255,255,255,0.8)`},placeholder:`请输入提示词`}):(0,$.jsx)(`div`,{style:{maxHeight:500,overflowY:`auto`,paddingRight:10},children:(0,$.jsx)(P9,{value:u,schemaConfigSnapshot:f,onChange:d})})}),(0,$.jsxs)(Nq,{title:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:4,height:20,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,borderRadius:2}}),(0,$.jsx)(`span`,{style:{fontSize:16,fontWeight:600,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`},children:`创作记录`})]}),open:o,onCancel:()=>s(!1),width:800,footer:null,styles:{body:{background:`linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%)`},header:{background:`#fff`,borderBottom:`1px solid rgba(99, 102, 241, 0.1)`,padding:`20px 24px`}},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginBottom:16,gap:8},children:[(0,$.jsx)(cK,{placeholder:`搜索产品名称`,style:{width:200,borderRadius:10,border:`1px solid rgba(99, 102, 241, 0.2)`,height:40}}),(0,$.jsx)(kD,{type:`primary`,style:{borderRadius:10,height:40,background:`linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)`,border:`none`},children:`搜索`})]}),(0,$.jsx)(`div`,{style:{background:`linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%)`,backdropFilter:`blur(20px)`,borderRadius:16,overflow:`hidden`,border:`1px solid rgba(99, 102, 241, 0.1)`,boxShadow:`0 8px 32px rgba(99, 102, 241, 0.08)`},children:(0,$.jsx)(c$,{columns:[{title:`产品名称`,dataIndex:`title`,key:`title`,render:e=>(0,$.jsx)(`span`,{style:{fontSize:14,color:`#1e293b`,fontWeight:500},children:e})},{title:`创建时间`,dataIndex:`createdAt`,key:`createdAt`,render:e=>{if(!e)return`-`;let t=new Date(e);return(0,$.jsx)(`span`,{style:{fontSize:13,color:`#64748b`},children:`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)} ${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`})}},{title:`操作`,key:`action`,align:`center`,render:t=>(0,$.jsx)(kD,{type:`text`,onClick:()=>e(`/removelens/${t.id}/removeinfo`),style:{color:`#6366f1`,fontSize:13,padding:`4px 12px`,borderRadius:6,background:`rgba(99, 102, 241, 0.1)`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.15)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(99, 102, 241, 0.1)`},children:`查看详情`})}],dataSource:L,rowKey:`id`,pagination:{current:z,pageSize:V,total:U,showSizeChanger:!0,showQuickJumper:!0,showTotal:e=>`共 ${e} 条`,onChange:Y,style:{padding:`16px 24px`,borderTop:`1px solid rgba(99, 102, 241, 0.1)`}},style:{fontSize:13},scroll:{y:350},components:{body:{row:({className:e,style:t,...n})=>(0,$.jsx)(`tr`,{...n,className:e,style:{...t,transition:`all 0.2s ease`,borderBottom:`1px solid rgba(99, 102, 241, 0.05)`}}),cell:({className:e,style:t,...n})=>(0,$.jsx)(`td`,{...n,className:e,style:{...t,padding:`16px 24px`}})},header:{cell:({className:e,style:t,...n})=>(0,$.jsx)(`th`,{...n,className:e,style:{...t,background:`rgba(99, 102, 241, 0.03)`,color:`#64748b`,fontWeight:500,fontSize:13,padding:`16px 24px`,borderBottom:`none`}})}}})})]})]})}var $9=[{id:`C001`,authorizationId:`1867060028363785`,amount:100,type:`video`,description:`视频生成消耗`,createdAt:`2024-01-15 10:30:00`},{id:`C002`,authorizationId:`1867060028363785`,amount:50,type:`audio`,description:`音频转换消耗`,createdAt:`2024-01-15 11:20:00`},{id:`C003`,authorizationId:`1867059808785418`,amount:200,type:`video`,description:`视频生成消耗`,createdAt:`2024-01-14 14:45:00`},{id:`C004`,authorizationId:`1867060028363785`,amount:75,type:`image`,description:`图片处理消耗`,createdAt:`2024-01-14 09:15:00`},{id:`C005`,authorizationId:`1867059757929740`,amount:150,type:`video`,description:`视频生成消耗`,createdAt:`2024-01-13 16:00:00`}],vte={video:{label:`视频生成`,color:`blue`},audio:{label:`音频转换`,color:`purple`},image:{label:`图片处理`,color:`green`}},yte=[{title:`序号`,dataIndex:`index`,key:`index`,width:80,fixed:`left`,render:e=>(0,$.jsx)(`span`,{style:{color:`#94a3b8`},children:e})},{title:`消耗ID`,dataIndex:`id`,key:`id`,ellipsis:!0,render:e=>(0,$.jsx)(`span`,{style:{fontWeight:500,color:`#1e293b`},children:e})},{title:`授权ID`,dataIndex:`authorizationId`,key:`authorizationId`,ellipsis:!0},{title:`消耗类型`,dataIndex:`type`,key:`type`,width:120,render:e=>{let t=vte[e];return(0,$.jsx)(x$,{color:t?.color,children:t?.label})}},{title:`消耗金额`,dataIndex:`amount`,key:`amount`,width:120,render:e=>(0,$.jsxs)(`span`,{style:{color:`#ef4444`,fontWeight:500},children:[e,` 元`]})},{title:`消耗描述`,dataIndex:`description`,key:`description`,ellipsis:!0},{title:`消耗时间`,dataIndex:`createdAt`,key:`createdAt`,width:160,fixed:`right`}],bte=()=>{Ge();let[e,t]=(0,x.useState)($9),[n,r]=(0,x.useState)(!1);(0,x.useEffect)(()=>{r(!0),setTimeout(()=>{t($9),r(!1)},500)},[]);let i=e.map((e,t)=>({...e,index:t+1,key:e.id}));return(0,$.jsxs)(`div`,{style:{minHeight:`94vh`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:12},children:[(0,$.jsx)(L4,{style:{color:`#6366f1`,fontSize:16}}),(0,$.jsx)(S1.Text,{strong:!0,style:{fontSize:16},children:`消耗记录`})]}),(0,$.jsxs)(`div`,{style:{background:`#fff`,borderRadius:12,boxShadow:`0 1px 3px rgba(0,0,0,0.05)`},children:[(0,$.jsx)(c$,{dataSource:i,columns:yte,loading:n,pagination:!1,rowKey:`id`,bordered:!1,scroll:{x:`max-content`}}),(0,$.jsx)(`div`,{style:{padding:`16px`,textAlign:`right`},children:(0,$.jsx)(JK,{pageSize:10,total:e.length,showSizeChanger:!0,showTotal:e=>`共 ${e} 条记录`,size:`small`})})]})]})},xte=({children:e})=>{let{user:t,loading:n,checkAuth:r}=P7();return(0,x.useEffect)(()=>{!localStorage.getItem(`auth_token`)&&!n&&!t&&(window.location.href=`/login`)},[t,n]),n?(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100vh`},children:(0,$.jsx)(hq,{size:`large`})}):t?(0,$.jsx)($.Fragment,{children:e}):(window.location.href=`/login`,null)};(0,g.createRoot)(document.getElementById(`root`)).render((0,$.jsx)(()=>{let{checkAuth:e}=P7();return(0,x.useEffect)(()=>{e()},[]),(0,$.jsx)(km,{locale:T0.default,theme:{token:{colorPrimary:`#6366f1`,borderRadius:8,fontFamily:`'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif`},components:{Button:{controlHeight:36,controlHeightLG:44},Card:{boxShadow:`0 1px 3px rgba(0,0,0,0.04)`},Table:{headerBg:`#fafbfc`}}},children:(0,$.jsx)(Fx,{children:(0,$.jsx)(pn,{children:(0,$.jsxs)(Ct,{children:[(0,$.jsx)(xt,{path:`/login`,element:(0,$.jsx)(U7,{})}),(0,$.jsxs)(xt,{path:`/`,element:(0,$.jsx)(xte,{children:(0,$.jsx)(V7,{})}),children:[(0,$.jsx)(xt,{index:!0,element:(0,$.jsx)(yt,{to:`/projects`,replace:!0})}),(0,$.jsx)(xt,{path:`projects`,element:(0,$.jsx)(X7,{})}),(0,$.jsx)(xt,{path:`projects/:projectId/generate`,element:(0,$.jsx)($7,{})}),(0,$.jsx)(xt,{path:`records`,element:(0,$.jsx)(t9,{})}),(0,$.jsx)(xt,{path:`credits`,element:(0,$.jsx)(r9,{})}),(0,$.jsx)(xt,{path:`credit-records`,element:(0,$.jsx)(s9,{})}),(0,$.jsx)(xt,{path:`order-records`,element:(0,$.jsx)(s9,{})}),(0,$.jsx)(xt,{path:`user-center`,element:(0,$.jsx)(s9,{})}),(0,$.jsx)(xt,{path:`messages`,element:(0,$.jsx)(o9,{})}),(0,$.jsx)(xt,{path:`conversation`,element:(0,$.jsx)(p9,{})}),(0,$.jsx)(xt,{path:`initial`,element:(0,$.jsx)(g9,{})}),(0,$.jsx)(xt,{path:`initial/:creatID/initialinfo`,element:(0,$.jsx)(Gee,{})}),(0,$.jsx)(xt,{path:`removelens`,element:(0,$.jsx)(Kee,{})}),(0,$.jsx)(xt,{path:`removelens/:creatID/removeinfo`,element:(0,$.jsx)(pte,{})}),(0,$.jsx)(xt,{path:`removelens/:creatID/removefenbu`,element:(0,$.jsx)(_te,{})}),(0,$.jsx)(xt,{path:`generated`,element:(0,$.jsx)(Yee,{})}),(0,$.jsx)(xt,{path:`pretest`,element:(0,$.jsx)(Qee,{})}),(0,$.jsx)(xt,{path:`authorization`,element:(0,$.jsx)(ete,{})}),(0,$.jsx)(xt,{path:`consume`,element:(0,$.jsx)(bte,{})})]}),(0,$.jsx)(xt,{path:`*`,element:(0,$.jsx)(yt,{to:`/projects`,replace:!0})})]})})})})},{})); |