diff --git a/.i18nrc.js b/.i18nrc.js new file mode 100644 index 0000000..319c6e8 --- /dev/null +++ b/.i18nrc.js @@ -0,0 +1,16 @@ +const { description } = require('./package.json'); +const { defineConfig } = require('@lobehub/i18n-cli'); +const options = require('./locales/options.json'); + +const outputLocales = options.map((item) => item.value).filter((item) => item !== 'en_US'); + +module.exports = defineConfig({ + reference: description, + entry: 'locales/en_US.json', + entryLocale: 'en_US', + output: 'locales', + outputLocales: outputLocales, + splitToken: 2500, + temperature: 0, + modelName: 'gpt-3.5-turbo', +}); diff --git a/README-zh_CN.md b/README-zh_CN.md index 95f669f..b07ec71 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -56,7 +56,7 @@ - [x] 🎛️ 高定制侧边栏,左侧为快捷设置侧边栏,右侧为模型侧边栏 - [x] 🖼️ 可调节画板比例,使生成图像始终置顶 - [x] 📱 移动端友好,针对手机屏幕完成部分优化 -- [x] 🌍 支持 i18n 并欢迎提交 [PR](https://github.com/canisminor1990/sd-webui-lobe-theme/tree/main/src/i18n/lang) 贡献 +- [x] 🌍 支持 i18n 并欢迎提交 [PR](https://github.com/canisminor1990/sd-webui-lobe-theme/tree/main/locales) 贡献 - [x] 📝 语法高亮的 Prompt 输入框 - [x] 📦 支持 [PWA](https://support.google.com/chrome/answer/9658361?hl=zh-Hans) 渐进式 Web 应用 diff --git a/README.md b/README.md index 7f2c572..7f7f91a 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ English · [简体中文](./README-zh_CN.md) · [Changelog](./CHANGELOG.md) · [ - [x] 🎛️ Highly customizable sidebar, with a quick settings sidebar on the left and a model sidebar on the right - [x] 🖼️ Adjustable canvas ratio, ensuring that generated images are always displayed at the top - [x] 📱 Mobile-friendly, with partial optimization for mobile screens -- [x] 🌍Support i18n and welcome [PR](https://github.com/canisminor1990/sd-webui-lobe-theme/tree/main/src/i18n/lang) contributions +- [x] 🌍Support i18n and welcome [PR](https://github.com/canisminor1990/sd-webui-lobe-theme/tree/main/locales) contributions - [x] 📝 Syntax highlighting in the prompt input box - [x] 📦 Support [PWA](https://support.google.com/chrome/answer/9658361) progressive web app diff --git a/javascript/main.js b/javascript/main.js index e4d07f2..9d8d7e9 100644 --- a/javascript/main.js +++ b/javascript/main.js @@ -1,4 +1,4 @@ -function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t,n;return e.__esModule?e:("function"==typeof(t=e.default)?(n=function e(){var n;return this instanceof e?((n=[null]).push.apply(n,arguments),new(Function.bind.apply(t,n))):t.apply(this,arguments)},n.prototype=t.prototype):n={},Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n)}function r(e,t,n){this.props=e,this.context=t,this.refs=gQ,this.updater=n||mQ}function o(){}function a(e,t,n){this.props=e,this.context=t,this.refs=gQ,this.updater=n||mQ}function i(e,t,n){var r,o,a,i,s={},l=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)U_.call(t,r)&&!B_.hasOwnProperty(r)&&(s[r]=t[r]);if(1==(o=arguments.length-2))s.children=n;else if(1t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!uy.call(my,e)||!uy.call(dy,e)&&(py.test(e)?my[e]=!0:(dy[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function y(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Iy&&e[Iy]||e["@@iterator"])?e:null}function v(e){if(void 0===Ay)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ay=t&&t[1]||""}return"\n"+Ay+e}function w(e,t){var n,r,o,a,i,s,l;if(!e||Ry)return"";Ry=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s])return l="\n"+o[i].replace(" at new "," at "),e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{Ry=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?v(e):""}function k(e){switch(e.tag){case 5:return v(e.type);case 16:return v("Lazy");case 13:return v("Suspense");case 19:return v("SuspenseList");case 0:case 2:case 15:return w(e.type,!1);case 11:return w(e.type.render,!1);case 1:return w(e.type,!0);default:return""}}function C(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case yy:return"Fragment";case _y:return"Portal";case wy:return"Profiler";case vy:return"StrictMode";case xy:return"Suspense";case Sy:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Cy:return(e.displayName||"Context")+".Consumer";case ky:return(e._context.displayName||"Context")+".Provider";case Dy:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ey:return null!==(t=e.displayName||null)?t:C(e.type)||"Memo";case Oy:t=e._payload,e=e._init;try{return C(e(t))}catch(n){}}return null}function D(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return C(t);case 8:return t===vy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function x(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function S(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function E(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=S(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),a=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set)return t=o.get,n=o.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){a=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function O(e){var t,n,r;return!(!e||(t=e._valueTracker)&&(n=t.getValue(),r="",e&&(r=S(e)?e.checked?"true":"false":e.value),(e=r)===n||(t.setValue(e),0)))}function P(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function I(e,t){var n=t.checked;return Ny({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function N(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=x(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function A(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function R(e,t){A(e,t);var n=x(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?j(e,t.type,n):t.hasOwnProperty("defaultValue")&&j(e,t.type,x(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function T(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function j(e,t,n){"number"===t&&P(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function $(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=(o=t&-t)||16===r&&0!=(4194240&o)))return t;if(0!=(4&n)&&(n|=16&s),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0n;n++)t.push(e);return t}function ge(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-pv(t)]=n}function he(e,t){var n,r,o=e.entangledLanes|=t;for(e=e.entanglements;o;)(r=1<<(n=31-pv(o)))&t|e[n]&t&&(e[n]|=t),o&=~r}function be(e){return 1<(e&=-e)?4=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Je(r)}}function et(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?et(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tt(){var e,t,n;for(e=window,t=P();t instanceof e.HTMLIFrameElement;){try{n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=P((e=t.contentWindow).document)}return t}function nt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rt(e){var t,n,r,o=tt(),a=e.focusedElem,i=e.selectionRange;if(o!==a&&a&&a.ownerDocument&&et(a.ownerDocument.documentElement,a)){null!==i&&nt(a)&&(o=i.start,void 0===(e=i.end)&&(e=o),"selectionStart"in a?(a.selectionStart=o,a.selectionEnd=Math.min(e,a.value.length)):(e=(o=a.ownerDocument||document)&&o.defaultView||window).getSelection&&(e=e.getSelection(),t=a.textContent.length,n=Math.min(i.start,t),i=void 0===i.end?n:Math.min(i.end,t),!e.extend&&n>i&&(t=i,i=n,n=t),t=Ze(a,n),r=Ze(a,i),t&&r&&(1!==e.rangeCount||e.anchorNode!==t.node||e.anchorOffset!==t.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((o=o.createRange()).setStart(t.node,t.offset),e.removeAllRanges(),n>i?(e.addRange(o),e.extend(r.node,r.offset)):(o.setEnd(r.node,r.offset),e.addRange(o))))),o=[];for(e=a;e=e.parentNode;)1===e.nodeType&&o.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof a.focus&&a.focus(),a=0;adk||(e.current=pk[dk],pk[dk]=null,dk--)}function Rt(e,t){dk++,pk[dk]=e.current,e.current=t}function Tt(e,t){var n,r,o,a=e.type.contextTypes;if(!a)return mk;if((n=e.stateNode)&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;for(o in r={},a)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function jt(e){return null!=e.childContextTypes}function $t(){At(gk),At(fk)}function Ft(e,t,n){if(fk.current!==mk)throw Error(m(168));Rt(fk,t),Rt(gk,n)}function Mt(e,t,n){var r,o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(r in o=o.getChildContext())if(!(r in t))throw Error(m(108,D(e)||"Unknown",r));return Ny({},n,o)}function Lt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mk,hk=fk.current,Rt(fk,e),Rt(gk,gk.current),!0}function Ut(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Mt(e,t,hk),r.__reactInternalMemoizedMergedChildContext=e,At(gk),At(fk),Rt(fk,e)):At(gk),Rt(gk,n)}function zt(e){null===bk?bk=[e]:bk.push(e)}function Bt(){var e,t,n,r;if(!yk&&null!==bk){yk=!0,e=0,t=hv;try{for(n=bk,hv=1;e>=i,o-=i,Ek=1<<32-pv(t)+o|n<g?(h=m,m=null):h=m.sibling,null===(b=d(o,m,s[g],l))){null===m&&(m=h);break}e&&m&&null===b.alternate&&t(o,m),i=a(b,i,g),null===u?c=b:u.sibling=b,u=b,m=h}if(g===s.length)return n(o,m),Nk&&Ht(o,g),c;if(null===m){for(;gg?(h=u,u=null):h=u.sibling,null===(_=d(o,u,b.value,l))){null===u&&(u=h);break}e&&u&&null===_.alternate&&t(o,u),i=a(_,i,g),null===c?v=_:c.sibling=_,c=_,u=h}if(b.done)return n(o,u),Nk&&Ht(o,g),v;if(null===u){for(;!b.done;g++,b=s.next())null!==(b=p(o,b.value,l))&&(i=a(b,i,g),null===c?v=b:c.sibling=b,c=b);return Nk&&Ht(o,g),v}for(u=r(o,u);!b.done;g++,b=s.next())null!==(b=f(u,o,g,b.value,l))&&(e&&null!==b.alternate&&u.delete(null===b.key?g:b.key),i=a(b,i,g),null===c?v=b:c.sibling=b,c=b);return e&&u.forEach((function(e){return t(o,e)})),Nk&&Ht(o,g),v}(l,c,u,g);Sn(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=na(u,l.mode,g)).return=l,l=c),i(l)):n(l,c)}}function Pn(e){if(e===Wk)throw Error(m(174));return e}function In(e,t){switch(Rt(qk,t),Rt(Gk,e),Rt(Vk,Wk),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:B(null,"");break;default:t=B(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}At(Vk),Rt(Vk,t)}function Nn(){At(Vk),At(Gk),At(qk)}function An(e){var t,n;Pn(qk.current),(t=Pn(Vk.current))!==(n=B(t,e.type))&&(Rt(Gk,e),Rt(Vk,n))}function Rn(e){Gk.current===e&&(At(Vk),At(Gk))}function Tn(e){var t,n;for(t=e;null!==t;){if(13===t.tag){if(null!==(n=t.memoizedState)&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function jn(){for(var e=0;er?r:4,e(!0),n=Qk.transition,Qk.transition={};try{e(!1),t()}finally{hv=r,Qk.transition=n}}function fr(){return zn().memoizedState}function gr(e,t,n){var r=vo(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?_r(t,n):null!==(n=un(e,t,n,r))&&(wo(n,e,r,yo()),yr(n,t,r))}function hr(e,t,n){var r,o,a,i,s=vo(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))_r(t,l);else{if(r=e.alternate,0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{if(a=r(o=t.lastRenderedState,n),l.hasEagerState=!0,l.eagerState=a,Iw(a,o))return null===(i=t.interleaved)?(l.next=l,cn(t)):(l.next=i.next,i.next=l),void(t.interleaved=l)}catch(c){}null!==(n=un(e,t,l,s))&&(wo(n,e,s,l=yo()),yr(n,t,s))}}function br(e){var t=e.alternate;return e===Zk||null!==t&&t===Zk}function _r(e,t){rC=nC=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yr(e,t,n){if(0!=(4194240&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,he(e,n)}}function vr(e,t){var n,r,o;try{n="",r=t;do{n+=k(r),r=r.return}while(r);o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function wr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function kr(e,t,n){(n=fn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){VC||(VC=!0,GC=r)},n}function Cr(e,t,n){var r,o,a;return(n=fn(-1,n)).tag=3,"function"==typeof(r=e.type.getDerivedStateFromError)&&(o=t.value,n.payload=function(){return r(o)},n.callback=function(){}),null!==(a=e.stateNode)&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===qC?qC=new Set([this]):qC.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Dr(e,t,n){var r,o=e.pingCache;null===o?(o=e.pingCache=new uC).set(t,r=new Set):void 0===(r=o.get(t))&&o.set(t,r=new Set),r.has(n)||(r.add(n),e=Wo.bind(null,e,t,n),t.then(e,e))}function xr(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Sr(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=fn(-1,1)).tag=2,gn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function Er(e,t,n,r){t.child=null===e?Hk(t,null,n,r):Bk(t,e.child,n,r)}function Or(e,t,n,r,o){n=n.render;var a=t.ref;return sn(t,o),r=Mn(e,t,n,r,a,o),n=Ln(),null===e||dC?(Nk&&n&&Vt(t),t.flags|=1,Er(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function Pr(e,t,n,r,o){var a;return null===e?"function"!=typeof(a=n.type)||Qo(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ir(e,t,a,r,o)):(a=e.child,0==(e.lanes&o)&&(n=null!==(n=n.compare)?n:Qe)(a.memoizedProps,r)&&e.ref===t.ref?Gr(e,t,o):(t.flags|=1,(e=Jo(a,r)).ref=t.ref,e.return=t,t.child=e))}function Ir(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Qe(a,r)&&e.ref===t.ref){if(dC=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Gr(e,t,o);0!=(131072&e.flags)&&(dC=!0)}}return Rr(e,t,n,r,o)}function Nr(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rt(TC,RC),RC|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Rt(TC,RC),RC|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Rt(TC,RC),RC|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Rt(TC,RC),RC|=r;return Er(e,t,o,n),t.child}function Ar(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rr(e,t,n,r,o){var a=jt(n)?hk:fk.current;return a=Tt(t,a),sn(t,o),n=Mn(e,t,n,r,a,o),r=Ln(),null===e||dC?(Nk&&r&&Vt(t),t.flags|=1,Er(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function Tr(e,t,n,r,o){var a,i,s,l,c,u,p,d,m,f;return jt(n)?(a=!0,Lt(t)):a=!1,sn(t,o),null===t.stateNode?(Vr(e,t),kn(t,n,r),Dn(t,n,r,o),r=!0):null===e?((i=t.stateNode).props=s=t.memoizedProps,l=i.context,c="object"==typeof(c=n.contextType)&&null!==c?ln(c):Tt(t,c=jt(n)?hk:fk.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Cn(t,i,r,c),Lk=!1,i.state=d=t.memoizedState,_n(t,r,i,o),l=t.memoizedState,s!==r||d!==l||gk.current||Lk?("function"==typeof u&&(vn(t,n,u,r),l=t.memoizedState),(s=Lk||wn(t,n,s,r,d,l,c))?(p||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)):(i=t.stateNode,mn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:nn(t.type,s),i.props=c,p=t.pendingProps,d=i.context,l="object"==typeof(l=n.contextType)&&null!==l?ln(l):Tt(t,l=jt(n)?hk:fk.current),(u="function"==typeof(m=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==p||d!==l)&&Cn(t,i,r,l),Lk=!1,i.state=d=t.memoizedState,_n(t,r,i,o),f=t.memoizedState,s!==p||d!==f||gk.current||Lk?("function"==typeof m&&(vn(t,n,m,r),f=t.memoizedState),(c=Lk||wn(t,n,c,r,d,f,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,f,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),i.props=r,i.state=f,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)),jr(e,t,n,r,a,o)}function jr(e,t,n,r,o,a){var i,s;return Ar(e,t),i=0!=(128&t.flags),r||i?(r=t.stateNode,pC.current=t,s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render(),t.flags|=1,null!==e&&i?(t.child=Bk(t,e.child,null,a),t.child=Bk(t,null,s,a)):Er(e,t,s,a),t.memoizedState=r.state,o&&Ut(t,n,!0),t.child):(o&&Ut(t,n,!1),Gr(e,t,a))}function $r(e){var t=e.stateNode;t.pendingContext?Ft(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ft(0,t.context,!1),In(e,t.containerInfo)}function Fr(e,t,n,r,o){return en(),tn(o),t.flags|=256,Er(e,t,n,r),t.child}function Mr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lr(e,t,n){var r,o,a=t.pendingProps,i=Xk.current,s=!1,l=0!=(128&t.flags);return(r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Rt(Xk,1&i),null===e?(Yt(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(t.lanes=0==(1&t.mode)?1:"$!"===e.data?8:1073741824,null):(l=a.children,e=a.fallback,s?(s=t.child,l={mode:"hidden",children:l},0==(1&(a=t.mode))&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ta(l,a,0,null),e=ea(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Mr(n),t.memoizedState=mC,e):Ur(t,l))):null!==(i=e.memoizedState)&&null!==(r=i.dehydrated)?function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,zr(e,t,i,r=wr(Error(m(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,r=ta({mode:"visible",children:r.children},o=t.mode,0,null),(a=ea(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Bk(t,e.child,null,i),t.child.memoizedState=Mr(i),t.memoizedState=mC,a);if(0==(1&t.mode))return zr(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zr(e,t,i,r=wr(a=Error(m(419)),r,void 0))}if(s=0!=(i&e.childLanes),dC||s){if(null!==(r=IC)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,pn(e,o),wo(r,e,o,-1))}return To(),zr(e,t,i,r=wr(Error(m(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Go.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ik=xt(o.nextSibling),Pk=t,Nk=!0,Ak=null,null!==e&&(Dk[xk++]=Ek,Dk[xk++]=Ok,Dk[xk++]=Sk,Ek=e.id,Ok=e.overflow,Sk=t),(t=Ur(t,r.children)).flags|=4096,t)}(e,t,l,a,r,i,n):s?(s=a.fallback,r=(i=e.child).sibling,o={mode:"hidden",children:a.children},0==(1&(l=t.mode))&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=o,t.deletions=null):(a=Jo(i,o)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Jo(r,s):(s=ea(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Mr(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=mC,a):(e=(s=e.child).sibling,a=Jo(s,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function Ur(e,t){return(t=ta({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zr(e,t,n,r){return null!==r&&tn(r),Bk(t,e.child,null,n),(e=Ur(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Br(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),an(e.return,t,n)}function Hr(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Wr(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Er(e,t,r.children,n),0!=(2&(r=Xk.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Br(e,n,t);else if(19===e.tag)Br(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Rt(Xk,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Tn(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hr(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Tn(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hr(t,!0,n,null,a);break;case"together":Hr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vr(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),FC|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(m(153));if(null!==t.child){for(n=Jo(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Jo(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function qr(e,t){var n,r;if(!Nk)switch(e.tailMode){case"hidden":for(t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":for(n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xr(e){var t,n=null!==e.alternate&&e.alternate.child===e.child,r=0,o=0;if(n)for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=14680064&t.subtreeFlags,o|=14680064&t.flags,t.return=e,t=t.sibling;else for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=t.subtreeFlags,o|=t.flags,t.return=e,t=t.sibling;return e.subtreeFlags|=o,e.childLanes=r,n}function Kr(e,t,n){var r,o,a,i,s,l=t.pendingProps;switch(Gt(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:case 17:return jt(t.type)&&$t(),Xr(t),null;case 3:return l=t.stateNode,Nn(),At(gk),At(fk),jn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(Jt(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Ak&&(xo(Ak),Ak=null))),gC(e,t),Xr(t),null;case 5:if(Rn(t),r=Pn(qk.current),n=t.type,null!==e&&null!=t.stateNode)hC(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(m(166));return Xr(t),null}if(e=Pn(Vk.current),Jt(t)){switch(n=t.type,o=t.memoizedProps,(l=t.stateNode)[ak]=t,l[ik]=o,e=0!=(1&t.mode),n){case"dialog":ut("cancel",l),ut("close",l);break;case"iframe":case"object":case"embed":ut("load",l);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=a.createElement(n,{is:l.is}):(e=a.createElement(n),"select"===n&&(a=e,l.multiple?a.multiple=!0:l.size&&(a.size=l.size))):e=a.createElementNS(e,n),e[ak]=t,e[ik]=l,fC(e,t,!1,!1),t.stateNode=e;e:{switch(a=q(n,l),n){case"dialog":ut("cancel",e),ut("close",e),r=l;break;case"iframe":case"object":case"embed":ut("load",e),r=l;break;case"video":case"audio":for(r=0;rHC&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=Tn(a))){if(t.flags|=128,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Nk)return Xr(t),null}else 2*nv()-o.renderingStartTime>HC&&1073741824!==n&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(o.rendering=t=o.tail,o.tail=t.sibling,o.renderingStartTime=nv(),t.sibling=null,n=Xk.current,Rt(Xk,l?1&n|2:1&n),t):(Xr(t),null);case 22:case 23:return Io(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&0!=(1&t.mode)?0!=(1073741824&RC)&&(Xr(t),6&t.subtreeFlags&&(t.flags|=8192)):Xr(t),null;case 24:case 25:return null}throw Error(m(156,t.tag))}function Yr(e,t){switch(Gt(t),t.tag){case 1:return jt(t.type)&&$t(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Nn(),At(gk),At(fk),jn(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Rn(t),null;case 13:if(At(Xk),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(m(340));en()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return At(Xk),null;case 4:return Nn(),null;case 10:return on(t.type._context),null;case 22:case 23:return Io(),null;default:return null}}function Qr(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Ho(e,t,r)}else n.current=null}function Jr(e,t,n){try{n()}catch(r){Ho(e,t,r)}}function Zr(e,t,n){var r,o,a=t.updateQueue;if(null!==(a=null!==a?a.lastEffect:null)){r=a=a.next;do{(r.tag&e)===e&&(o=r.destroy,r.destroy=void 0,void 0!==o&&Jr(t,n,o)),r=r.next}while(r!==a)}}function eo(e,t){var n;if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){n=t=t.next;do{(n.tag&e)===e&&(n.destroy=(0,n.create)()),n=n.next}while(n!==t)}}function to(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function no(e){var t=e.alternate;null!==t&&(e.alternate=null,no(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ak],delete t[ik],delete t[lk],delete t[ck],delete t[uk]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ro(e){return 5===e.tag||3===e.tag||4===e.tag}function oo(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ro(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ao(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=wt));else if(4!==r&&null!==(e=e.child))for(ao(e,t,n),e=e.sibling;null!==e;)ao(e,t,n),e=e.sibling}function io(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(io(e,t,n),e=e.sibling;null!==e;)io(e,t,n),e=e.sibling}function so(e,t,n){for(n=n.child;null!==n;)lo(e,t,n),n=n.sibling}function lo(e,t,n){var r,o,a,i;if(uv&&"function"==typeof uv.onCommitFiberUnmount)try{uv.onCommitFiberUnmount(cv,n)}catch(s){}switch(n.tag){case 5:yC||Qr(n,t);case 6:r=CC,o=DC,CC=null,so(e,t,n),DC=o,null!==(CC=r)&&(DC?(n=n.stateNode,8===(e=CC).nodeType?e.parentNode.removeChild(n):e.removeChild(n)):CC.removeChild(n.stateNode));break;case 18:null!==CC&&(DC?(n=n.stateNode,8===(e=CC).nodeType?Dt(e.parentNode,n):1===e.nodeType&&Dt(e,n),xe(e)):Dt(CC,n.stateNode));break;case 4:r=CC,o=DC,CC=n.stateNode.containerInfo,DC=!0,so(e,t,n),CC=r,DC=o;break;case 0:case 11:case 14:case 15:if(!yC&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{i=(a=o).destroy,a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Jr(n,t,i),o=o.next}while(o!==r)}so(e,t,n);break;case 1:if(!yC&&(Qr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ho(n,t,s)}so(e,t,n);break;case 21:so(e,t,n);break;case 22:1&n.mode?(yC=(r=yC)||null!==n.memoizedState,so(e,t,n),yC=r):so(e,t,n);break;default:so(e,t,n)}}function co(e){var t,n=e.updateQueue;null!==n&&(e.updateQueue=null,null===(t=e.stateNode)&&(t=e.stateNode=new vC),n.forEach((function(n){var r=qo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})))}function uo(e,t){var n,r,o,a,i,s,l=t.deletions;if(null!==l)for(n=0;no&&(o=i),r&=~a;if(r=o,10<(r=(120>(r=nv()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xC(r/1960))-r)){e.timeoutHandle=ek(Uo.bind(null,e,zC,WC),r);break}Uo(e,zC,WC);break;default:throw Error(m(329))}}}return ko(e,nv()),e.callbackNode===n?Co.bind(null,e):null}function Do(e,t){var n=UC;return e.current.memoizedState.isDehydrated&&(No(e,t).flags|=256),2!==(e=jo(e,t))&&(t=zC,zC=n,null!==t&&xo(t)),e}function xo(e){null===zC?zC=e:zC.push.apply(zC,e)}function So(e,t){for(t&=~LC,e.suspendedLanes|=t&=~MC,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===KC)r=!1;else{if(e=KC,KC=null,YC=0,0!=(6&PC))throw Error(m(331));for(o=PC,PC|=4,wC=e.current;null!==wC;){if(i=(a=wC).child,0!=(16&wC.flags)&&null!==(s=a.deletions)){for(l=0;lnv()-BC?No(e,0):LC|=n),ko(e,t)}function Vo(e,t){0===t&&(0==(1&e.mode)?t=1:(t=gv,0==(130023424&(gv<<=1))&&(gv=4194304)));var n=yo();null!==(e=pn(e,t))&&(ge(e,t,n),ko(e,n))}function Go(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Vo(e,n)}function qo(e,t){var n,r,o=0;switch(e.tag){case 13:n=e.stateNode,null!==(r=e.memoizedState)&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(m(314))}null!==n&&n.delete(t),Vo(e,o)}function Xo(e,t){return Jy(e,t)}function Ko(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.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 Yo(e,t,n,r){return new Ko(e,t,n,r)}function Qo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jo(e,t){var n=e.alternate;return null===n?((n=Yo(e.tag,t,e.key,e.mode)).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=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zo(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Qo(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case yy:return ea(n.children,o,a,t);case vy:i=8,o|=8;break;case wy:return(e=Yo(12,n,t,2|o)).elementType=wy,e.lanes=a,e;case xy:return(e=Yo(13,n,t,o)).elementType=xy,e.lanes=a,e;case Sy:return(e=Yo(19,n,t,o)).elementType=Sy,e.lanes=a,e;case Py:return ta(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ky:i=10;break e;case Cy:i=9;break e;case Dy:i=11;break e;case Ey:i=14;break e;case Oy:i=16,r=null;break e}throw Error(m(130,null==e?e:typeof e,""))}return(t=Yo(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function ea(e,t,n,r){return(e=Yo(7,e,r,t)).lanes=n,e}function ta(e,t,n,r){return(e=Yo(22,e,r,t)).elementType=Py,e.lanes=n,e.stateNode={isHidden:!1},e}function na(e,t,n){return(e=Yo(6,e,null,t)).lanes=n,e}function ra(e,t,n){return(t=Yo(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oa(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fe(0),this.expirationTimes=fe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fe(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function aa(e,t,n,r,o,a,i,s,l){return e=new oa(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Yo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dn(a),e}function ia(e){var t,n;if(!e)return mk;e:{if(oe(e=e._reactInternals)!==e||1!==e.tag)throw Error(m(170));t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(m(171))}return 1===e.tag&&jt(n=e.type)?Mt(e,n,t):t}function sa(e,t,n,r,o,a,i,s,l){return(e=aa(n,r,!0,e,0,a,0,s,l)).context=ia(null),n=e.current,(a=fn(r=yo(),o=vo(n))).callback=null!=t?t:null,gn(n,a,o),e.current.lanes=o,ge(e,o,r),ko(e,r),e}function la(e,t,n,r){var o=t.current,a=yo(),i=vo(o);return n=ia(n),null===t.context?t.context=n:t.pendingContext=n,(t=fn(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=gn(o,t,i))&&(wo(e,o,i,a),hn(e,o,i)),i}function ca(e){return(e=e.current).child?e.child.stateNode:null}function ua(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(n[o]=e[o]);return n}(e,t),Object.getOwnPropertySymbols)for(a=Object.getOwnPropertySymbols(e),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Ea(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pa(e,t){var n,r;for(n=0;n2||Va(Lx)>3?"":" "}function Ya(e,t){for(;--t&&za()&&!(Lx<48||Lx>102||Lx>57&&Lx<65||Lx>70&&Lx<97););return Wa(e,Ha()+(t<6&&32==Ba()&&32==za()))}function Qa(e){for(;za();)switch(Lx){case e:return Mx;case 34:case 39:34!==e&&39!==e&&Qa(Lx);break;case 40:41===e&&Qa(e);break;case 92:za()}return Mx}function Ja(e,t){for(;za()&&e+Lx!==57&&(e+Lx!==84||47!==Ba()););return"/*"+Wa(t,Mx-1)+"*"+Rx(47===e?e:za())}function Za(e){for(;!Va(Ba());)za();return Wa(e,Mx)}function ei(e){return qa(ti("",null,null,null,[""],e=Ga(e),0,[0],e))}function ti(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,p=i,d=0,m=0,f=0,g=1,h=1,b=1,_=0,y="",v=o,w=a,k=r,C=y;h;)switch(f=_,_=za()){case 40:if(108!=f&&58==Ta(C,p-1)){-1!=Ra(C+=Aa(Xa(_),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=Xa(_);break;case 9:case 10:case 13:case 32:C+=Ka(f);break;case 92:C+=Ya(Ha()-1,7);continue;case 47:switch(Ba()){case 42:case 47:Ma(ri(Ja(za(),Ha()),t,n),l);break;default:C+="/"}break;case 123*g:s[c++]=$a(C)*b;case 125*g:case 59:case 0:switch(_){case 0:case 125:h=0;case 59+u:-1==b&&(C=Aa(C,/\f/g,"")),m>0&&$a(C)-p&&Ma(m>32?oi(C+";",r,n,p-1):oi(Aa(C," ","")+";",r,n,p-2),l);break;case 59:C+=";";default:if(Ma(k=ni(C,t,n,c,u,o,s,y,v=[],w=[],p),a),123===_)if(0===u)ti(C,t,k,k,v,a,p,s,w);else switch(99===d&&110===Ta(C,3)?100:d){case 100:case 108:case 109:case 115:ti(e,k,k,r&&Ma(ni(e,k,k,0,0,o,s,y,o,v=[],p),w),o,w,p,s,r?v:w);break;default:ti(C,k,k,k,[""],w,0,s,w)}}c=u=m=0,g=b=1,y=C="",p=i;break;case 58:p=1+$a(C),m=f;default:if(g<1)if(123==_)--g;else if(125==_&&0==g++&&125==(Lx=Mx>0?Ta(Ux,--Mx):0,$x--,10===Lx&&($x=1,jx--),Lx))continue;switch(C+=Rx(_),_*g){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=($a(C)-1)*b,b=1;break;case 64:45===Ba()&&(C+=Xa(za())),d=Ba(),u=p=$a(y=C+=Za(Ha())),_++;break;case 45:45===f&&2==$a(C)&&(g=0)}}return a}function ni(e,t,n,r,o,a,i,s,l,c,u){var p,d,m,f,g,h,b=o-1,_=0===o?a:[""],y=Fa(_);for(p=0,d=0,m=0;p0?_[f]+" "+g:Aa(g,/&\f/g,_[f])))&&(l[m++]=h);return La(e,t,n,0===o?Ex:s,l,c,u)}function ri(e,t,n){return La(e,t,n,Sx,Rx(Lx),ja(e,2,-2),0)}function oi(e,t,n,r){return La(e,t,n,Ox,ja(e,0,r),ja(e,r+1,-1),r)}function ai(e,t){var n,r="",o=Fa(e);for(n=0;n6)switch(Ta(e,t+1)){case 109:if(45!==Ta(e,t+4))break;case 102:return Aa(e,/(.+:)(.+)-([^]+)/,"$1"+xx+"$2-$3$1"+Dx+(108==Ta(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ra(e,"stretch")?li(Aa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ta(e,t+1))break;case 6444:switch(Ta(e,$a(e)-3-(~Ra(e,"!important")&&10))){case 107:return Aa(e,":",":"+xx)+e;case 101:return Aa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xx+(45===Ta(e,14)?"inline-":"")+"box$3$1"+xx+"$2$3$1"+Cx+"$2box$3")+e}break;case 5936:switch(Ta(e,t+11)){case 114:return xx+e+Cx+Aa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xx+e+Cx+Aa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xx+e+Cx+Aa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xx+e+Cx+e+e}return e}function ci(e,t,n){var r,o,a,i;if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return oS={name:n.name,styles:n.styles,next:oS},n.name;if(void 0!==n.styles){if(void 0!==(r=n.next))for(;void 0!==r;)oS={name:r.name,styles:r.styles,next:oS},r=r.next;return n.styles+";"}return function(e,t,n){var r,o,a,i,s,l="";if(Array.isArray(n))for(r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Si(e,t,n){var r=q_.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Ei(){}function Oi(){}function Pi(e,t,n){t||gE[n]||(e(!1,n),gE[n]=!0)}function Ii(e,t){Pi(Ei,e,t)}function Ni(e,t,n){var r=arguments.length>2&&void 0!==n&&n,o=new Set;return function e(t,n,a){var i,s,l,c=arguments.length>2&&void 0!==a?a:1,u=o.has(t);if(Ii(!u,"Warning: There may be circular references"),u)return!1;if(t===n)return!0;if(r&&c>1)return!1;if(o.add(t),i=c+1,Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(s=0;s0&&void 0!==e?e:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):DE}function $i(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Fi(e){return Array.from((xE.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Mi(e,t){var n,r,o,a,i,s,l=arguments.length>1&&void 0!==t?t:{};if(!Ri())return null;if(n=l.csp,r=l.prepend,(o=document.createElement("style")).setAttribute(CE,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r)),null!=n&&n.nonce&&(o.nonce=null==n?void 0:n.nonce),o.innerHTML=e,i=(a=$i(l)).firstChild,r){if("queue"===r&&(s=Fi(a).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(CE))}))).length)return a.insertBefore(o,s[s.length-1].nextSibling),o;a.insertBefore(o,i)}else a.appendChild(o);return o}function Li(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Fi($i(n)).find((function(t){return t.getAttribute(ji(n))===e}))}function Ui(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=Li(e,n);r&&$i(n).removeChild(r)}function zi(e,t,n){var r,o,a,i,s,l=arguments.length>2&&void 0!==n?n:{};return function(e,t){var n,r=xE.get(e);r&&Ti(document,r)||(n=Mi("",t),xE.set(e,n.parentNode),e.removeChild(n))}($i(l),l),(r=Li(t,l))?(null!==(o=l.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(a=l.csp)||void 0===a?void 0:a.nonce)&&(r.nonce=null===(i=l.csp)||void 0===i?void 0:i.nonce),r.innerHTML!==e&&(r.innerHTML=e),r):((s=Mi(e,l)).setAttribute(ji(l),t),s)}function Bi(e){var t="";return Object.keys(e).forEach((function(n){var r=e[n];t+=n,r&&"object"===Ca(r)?t+=Bi(r):t+=r})),t}function Hi(e){if(Array.isArray(e))return e}function Wi(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Vi(e,t){return Hi(e)||function(e,t){var n,r,o,a,i,s,l,c=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=c){i=[],s=!0,l=!1;try{if(o=(c=c.call(e)).next,0===t){if(Object(c)!==c)return;s=!1}else for(;!(s=(n=o.call(c)).done)&&(i.push(n.value),i.length!==t);s=!0);}catch(u){l=!0,r=u}finally{try{if(!s&&null!=c.return&&(a=c.return(),Object(a)!==a))return}finally{if(l)throw r}}return i}}(e,t)||wi(e,t)||Wi()}function Gi(e,t,n,r){var o=q_.useContext(QQ).cache,a=[e].concat(ki(t));return q_.useMemo((function(){o.update(a,(function(e){var t=Vi(e||[],2),r=t[0];return[(void 0===r?0:r)+1,t[1]||n()]}))}),[a.join("_")]),q_.useEffect((function(){return function(){o.update(a,(function(e){var t=Vi(e||[],2),n=t[0],o=void 0===n?0:n,a=t[1];return 0==o-1?(null==r||r(a,!1),null):[o-1,a]}))}}),a),o.get(a)[1]}function qi(e){return e.trim()}function Xi(e,t){return(e=t.exec(e))?e[0]:e}function Ki(e,t,n){return e.replace(t,n)}function Yi(e,t){return e.indexOf(t)}function Qi(e,t){return 0|e.charCodeAt(t)}function Ji(e,t,n){return e.slice(t,n)}function Zi(e){return e.length}function es(e){return e.length}function ts(e,t){return t.push(e),e}function ns(e,t){return e.filter((function(e){return!Xi(e,t)}))}function rs(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:GE,column:qE,length:i,return:"",siblings:s}}function os(e,t){return VE(rs("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function as(e){for(;e.root;)e=os(e.root,{children:[e]});ts(e,e.siblings)}function is(){return YE=KE2||us(YE)>3?"":" "}function ms(e,t){for(;--t&&is()&&!(YE<48||YE>102||YE>57&&YE<65||YE>70&&YE<97););return cs(e,ls()+(t<6&&32==ss()&&32==is()))}function fs(e){for(;is();)switch(YE){case e:return KE;case 34:case 39:34!==e&&39!==e&&fs(YE);break;case 40:41===e&&fs(e);break;case 92:is()}return KE}function gs(e,t){for(;is()&&e+YE!==57&&(e+YE!==84||47!==ss()););return"/*"+cs(t,KE-1)+"*"+WE(47===e?e:is())}function hs(e){for(;!us(ss());)is();return cs(e,KE)}function bs(e){return function(e){return QE="",e}(_s("",null,null,null,[""],e=function(e){return GE=qE=1,XE=Zi(QE=e),KE=0,[]}(e),0,[0],e))}function _s(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,p=i,d=0,m=0,f=0,g=1,h=1,b=1,_=0,y="",v=o,w=a,k=r,C=y;h;)switch(f=_,_=is()){case 40:if(108!=f&&58==Qi(C,p-1)){-1!=Yi(C+=Ki(ps(_),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=ps(_);break;case 9:case 10:case 13:case 32:C+=ds(f);break;case 92:C+=ms(ls()-1,7);continue;case 47:switch(ss()){case 42:case 47:ts(vs(gs(is(),ls()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=Zi(C)*b;case 125*g:case 59:case 0:switch(_){case 0:case 125:h=0;case 59+u:-1==b&&(C=Ki(C,/\f/g,"")),m>0&&Zi(C)-p&&ts(m>32?ws(C+";",r,n,p-1,l):ws(Ki(C," ","")+";",r,n,p-2,l),l);break;case 59:C+=";";default:if(ts(k=ys(C,t,n,c,u,o,s,y,v=[],w=[],p,a),a),123===_)if(0===u)_s(C,t,k,k,v,a,p,s,w);else switch(99===d&&110===Qi(C,3)?100:d){case 100:case 108:case 109:case 115:_s(e,k,k,r&&ts(ys(e,k,k,0,0,o,s,y,o,v=[],p,w),w),o,w,p,s,r?v:w);break;default:_s(C,k,k,k,[""],w,0,s,w)}}c=u=m=0,g=b=1,y=C="",p=i;break;case 58:p=1+Zi(C),m=f;default:if(g<1)if(123==_)--g;else if(125==_&&0==g++&&125==(YE=KE>0?Qi(QE,--KE):0,qE--,10===YE&&(qE=1,GE--),YE))continue;switch(C+=WE(_),_*g){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Zi(C)-1)*b,b=1;break;case 64:45===ss()&&(C+=ps(is())),d=ss(),u=p=Zi(y=C+=hs(ls())),_++;break;case 45:45===f&&2==Zi(C)&&(g=0)}}return a}function ys(e,t,n,r,o,a,i,s,l,c,u,p){var d,m,f,g,h,b,_=o-1,y=0===o?a:[""],v=es(y);for(d=0,m=0,f=0;d0?y[g]+" "+h:Ki(h,/&\f/g,y[g])))&&(l[f++]=b);return rs(e,t,n,0===o?ME:s,l,c,u,p)}function vs(e,t,n,r){return rs(e,t,n,FE,WE(YE),Ji(e,2,-2),0,r)}function ws(e,t,n,r,o){return rs(e,t,n,LE,Ji(e,0,r),Ji(e,r+1,-1),r,o)}function ks(e,t,n){switch(function(e,t){return 45^Qi(e,0)?(((t<<2^Qi(e,0))<<2^Qi(e,1))<<2^Qi(e,2))<<2^Qi(e,3):0}(e,t)){case 5103:return $E+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $E+e+e;case 4789:return jE+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $E+e+jE+e+TE+e+e;case 5936:switch(Qi(e,t+11)){case 114:return $E+e+TE+Ki(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $E+e+TE+Ki(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $E+e+TE+Ki(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $E+e+TE+e+e;case 6165:return $E+e+TE+"flex-"+e+e;case 5187:return $E+e+Ki(e,/(\w+).+(:[^]+)/,$E+"box-$1$2"+TE+"flex-$1$2")+e;case 5443:return $E+e+TE+"flex-item-"+Ki(e,/flex-|-self/g,"")+(Xi(e,/flex-|baseline/)?"":TE+"grid-row-"+Ki(e,/flex-|-self/g,""))+e;case 4675:return $E+e+TE+"flex-line-pack"+Ki(e,/align-content|flex-|-self/g,"")+e;case 5548:return $E+e+TE+Ki(e,"shrink","negative")+e;case 5292:return $E+e+TE+Ki(e,"basis","preferred-size")+e;case 6060:return $E+"box-"+Ki(e,"-grow","")+$E+e+TE+Ki(e,"grow","positive")+e;case 4554:return $E+Ki(e,/([^-])(transform)/g,"$1"+$E+"$2")+e;case 6187:return Ki(Ki(Ki(e,/(zoom-|grab)/,$E+"$1"),/(image-set)/,$E+"$1"),e,"")+e;case 5495:case 3959:return Ki(e,/(image-set\([^]*)/,$E+"$1$`$1");case 4968:return Ki(Ki(e,/(.+:)(flex-)?(.*)/,$E+"box-pack:$3"+TE+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$E+e+e;case 4200:if(!Xi(e,/flex-|baseline/))return TE+"grid-column-align"+Ji(e,t)+e;break;case 2592:case 3360:return TE+Ki(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Xi(e.props,/grid-\w+-end/)}))?~Yi(e+(n=n[t].value),"span")?e:TE+Ki(e,"-start","")+e+TE+"grid-row-span:"+(~Yi(n,"span")?Xi(n,/\d+/):+Xi(n,/\d+/)-+Xi(e,/\d+/))+";":TE+Ki(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Xi(e.props,/grid-\w+-start/)}))?e:TE+Ki(Ki(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ki(e,/(.+)-inline(.+)/,$E+"$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(Zi(e)-1-t>6)switch(Qi(e,t+1)){case 109:if(45!==Qi(e,t+4))break;case 102:return Ki(e,/(.+:)(.+)-([^]+)/,"$1"+$E+"$2-$3$1"+jE+(108==Qi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Yi(e,"stretch")?ks(Ki(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ki(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,a,i,s){return TE+n+":"+r+s+(o?TE+n+"-span:"+(a?i:+i-+r)+s:"")+e}));case 4949:if(121===Qi(e,t+6))return Ki(e,":",":"+$E)+e;break;case 6444:switch(Qi(e,45===Qi(e,14)?18:11)){case 120:return Ki(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$E+(45===Qi(e,14)?"inline-":"")+"box$3$1"+$E+"$2$3$1"+TE+"$2box$3")+e;case 100:return Ki(e,":",":"+TE)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ki(e,"scroll-","scroll-snap-")+e}return e}function Cs(e,t){var n,r="";for(n=0;n-1&&!e.return)switch(e.type){case LE:return void(e.return=ks(e.value,e.length,n));case zE:return Cs([os(e,{value:Ki(e.value,"@","@"+$E)})],r);case ME:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Xi(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":as(os(e,{props:[Ki(t,/:(read-\w+)/,":"+jE+"$1")]})),as(os(e,{props:[t]})),VE(e,{props:ns(n,r)});break;case"::placeholder":as(os(e,{props:[Ki(t,/:(plac\w+)/,":"+$E+"input-$1")]})),as(os(e,{props:[Ki(t,/:(plac\w+)/,":"+jE+"$1")]})),as(os(e,{props:[Ki(t,/:(plac\w+)/,TE+"input-$1")]})),as(os(e,{props:[t]})),VE(e,{props:ns(n,r)})}return""}))}}function Ss(e){return Cs(bs(e),Ds).replace(/\{%%%\:[^;];}/g,";")}function Es(){return null}function Os(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b=e.token,_=e.path,y=e.hashId,v=e.layer,w=e.nonce,k=q_.useContext(QQ),C=k.autoClear;return n=k.defaultCache,r=k.hashPriority,o=k.container,a=k.ssrInline,i=k.transformers,s=k.linters,l=k.cache,u=[c=b._tokenKey].concat(ki(_)),p=JE,d=Gi("style",u,(function(){var e,n,a,d=t(),m=Vi(eO(d,{hashId:y,hashPriority:r,layer:v,path:_.join("-"),transformers:i,linters:s}),2),f=m[1],g=Ss(m[0]),h=function(e,t){return xi("".concat(e.join("%")).concat(t))}(u,g);return p&&(e={mark:yE,prepend:"queue",attachTo:o},(n="function"==typeof w?w():w)&&(e.csp={nonce:n}),(a=zi(g,h,e))[vE]=l.instanceId,a.setAttribute(_E,c),Object.keys(f).forEach((function(t){zi(Ss(f[t]),"_effect-".concat(t),e)}))),[g,c,h]}),(function(e,t){var n=Vi(e,3);(t||C)&&JE&&Ui(n[2],{mark:yE})})),m=Vi(d,3),f=m[0],g=m[1],h=m[2],function(e){var t,r;return t=a&&!p&&n?q_.createElement("style",mi({},(xa(r={},_E,g),xa(r,yE,h),r),{dangerouslySetInnerHTML:{__html:f}})):q_.createElement(Es,null),q_.createElement(q_.Fragment,null,t,e)}}function Ps(e){var t=Array.isArray(e)?e:[e];return aO.has(t)||aO.set(t,new oO(t)),aO.get(t)}function Is(e){return e.notSplit=!0,e}function Ns(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function As(e){var t,n;for(t=1;t1&&void 0!==t?t:{},r=[];return hQ.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Ls(e)):qS.isFragment(e)&&e.props?r=r.concat(Ls(e.props.children,n)):r.push(e))})),r}function Us(e,t){"function"==typeof e?e(t):"object"===Ca(e)&&e&&"current"in e&&(e.current=t)}function zs(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n3&&void 0!==r&&r;return t.length&&o&&void 0===n&&!el(e,t.slice(0,-1))?e:tl(e,t,n,o)}function rl(e){return Array.isArray(e)?[]:{}}function ol(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function ul(e){return e<=1?"".concat(100*Number(e),"%"):e}function pl(e){return 1===e.length?"0"+e:String(e)}function dl(e,t,n){var r,o,a,i,s,l;if(e=sl(e,255),t=sl(t,255),n=sl(n,255),a=0,i=0,s=((r=Math.max(e,t,n))+(o=Math.min(e,t,n)))/2,r===o)i=0,a=0;else{switch(l=r-o,i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fl(e,t,n){var r,o,a,i,s,l;if(e=sl(e,255),t=sl(t,255),n=sl(n,255),a=0,i=r=Math.max(e,t,n),s=r-(o=Math.min(e,t,n)),l=0===r?0:s/r,r===o)a=0;else{switch(r){case e:a=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-XO*t:Math.round(e.h)+XO*t:n?Math.round(e.h)+XO*t:Math.round(e.h)-XO*t)<0?r+=360:r>=360&&(r-=360),r}function Cl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-KO*t:t===eP?e.s+KO:e.s+YO*t)>1&&(r=1),n&&t===ZO&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Dl(e,t,n){var r;return(r=n?e.v+QO*t:e.v-JO*t)>1&&(r=1),Number(r.toFixed(2))}function xl(e,t){var n,r,o,a,i,s,l=arguments.length>1&&void 0!==t?t:{},c=[],u=_l(e);for(n=ZO;n>0;n-=1)o=wl(_l({h:kl(r=vl(u),n,!0),s:Cl(r,n,!0),v:Dl(r,n,!0)})),c.push(o);for(c.push(wl(u)),a=1;a<=eP;a+=1)s=wl(_l({h:kl(i=vl(u),a),s:Cl(i,a),v:Dl(i,a)})),c.push(s);return"dark"===l.theme?tP.map((function(e){var t,n,r,o=e.index,a=e.opacity;return wl((t=_l(l.backgroundColor||"#141414"),{r:((n=_l(c[o])).r-t.r)*(r=100*a/100)+t.r,g:(n.g-t.g)*r+t.g,b:(n.b-t.b)*r+t.b}))})):c}function Sl(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,p=n(l),d=n(o),m=n(a),f=n(i),g=n(s),h=r(c,u);return Object.assign(Object.assign({},h),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg: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:f[1],colorErrorBgHover:f[2],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new qO("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function El(e){const t=Object.keys(dJ).map((t=>{const n=xl(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Sl(e,{generateColorPalettes:bJ,generateNeutralColorPalettes:_J})),yJ(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),pJ(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},fJ(r))}(e))}function Ol(e){return e>=0&&e<=255}function Pl(e,t){const{r:n,g:r,b:o,a:a}=new qO(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new qO(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-i*(1-c))/c),t=Math.round((r-s*(1-c))/c),a=Math.round((o-l*(1-c))/c);if(Ol(e)&&Ol(t)&&Ol(a))return new qO({r:e,g:t,b:a,a:Math.round(100*c)/100}).toRgbString()}return new qO({r:n,g:r,b:o,a:1}).toRgbString()}function Il(e){const{override:t}=e,n=iP(e,["override"]),r=Object.assign({},t);Object.keys(mJ).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Pl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Pl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Pl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Pl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new qO("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new qO("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new qO("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function Nl(e){var t,n=q_.useRef();return n.current=e,t=q_.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o{const[a,i,s]=Ll(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=q_.useContext(wJ),p=l(),d={theme:a,token:i,hashId:s,nonce:()=>null==u?void 0:u.nonce};return Os(Object.assign(Object.assign({},d),{path:["Shared",p]}),(()=>[{"&":xJ(i)}])),[Os(Object.assign(Object.assign({},d),{path:[e,o,c]}),(()=>{const{token:a,flush:l}=function(e){let t,n=e,r=Fl;return PJ&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(IJ&&t.add(n),e[n])}),r=()=>{Array.from(t)}),{token:n,keys:t,flush:r}}(i),u=Object.assign({},i[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==u?void 0:u[t])||(null==u?void 0:u[n]))&&(null!==(r=u[n])&&void 0!==r||(u[n]=null==u?void 0:u[t]))}))}const d="function"==typeof n?n($l(a,null!=u?u:{})):n,m=Object.assign(Object.assign({},d),u),f=$l(a,{componentCls:`.${o}`,prefixCls:o,iconCls:`.${c}`,antCls:`.${p}`},m),g=t(f,{hashId:s,prefixCls:o,rootPrefixCls:p,iconPrefixCls:c,overrideComponentToken:u});return l(e,m),[!1===(null==r?void 0:r.resetStyle)?null:SJ(i,o),g]})),s]}}function $l(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),IJ=!0,r}function Fl(){}function Ml(e,t){return uJ.reduce(((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))}),{})}function Ll(){const{token:e,hashed:t,theme:n,components:r}=hQ.useContext(RJ),o=`${cJ}-${t||""}`,a=n||NJ,[i,s]=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:{},o=q_.useContext(QQ).cache.instanceId,a=r.salt,i=void 0===a?"":a,s=r.override,l=void 0===s?PE:s,c=r.formatToken,u=q_.useMemo((function(){return Object.assign.apply(Object,[{}].concat(ki(t)))}),[t]),p=q_.useMemo((function(){return Bi(u)}),[u]),d=q_.useMemo((function(){return Bi(l)}),[l]),m=Gi("token",[i,e.id,p,d],(function(){var t,n=AE(u,l,e,c),r=function(e,t){return xi("".concat(t,"_").concat(Bi(e)))}(n,i);return n._tokenKey=r,function(e){NE.set(e,(NE.get(e)||0)+1)}(r),t="".concat(IE,"-").concat(xi(r)),n._hashId=t,[n,t]}),(function(e){!function(e,t){var n,r;NE.set(e,(NE.get(e)||0)-1),(r=(n=Array.from(NE.keys())).filter((function(e){return(NE.get(e)||0)<=0}))).length0&&void 0!==e?e:[]).map(Vl)}function ql(e){const{children:t}=e,[,n]=Ll(),{motion:r}=n,o=q_.useRef(!1);return o.current=o.current||!1===r,o.current?q_.createElement(Ul,{motion:r},t):t}function Xl(){return VJ||"ant"}function Kl(){return GJ||vJ}function Yl(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ql(e){return function(e){return Yl(e)!==(null==e?void 0:e.ownerDocument)}(e)?Yl(e):null}function Jl(e){return"object"===Ca(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Ca(e.icon)||"function"==typeof e.icon)}function Zl(e){var t=arguments.length>0&&void 0!==e?e:{};return Object.keys(t).reduce((function(e,n){var r=t[n];return"class"===n?(e.className=r,delete e.class):e[n]=r,e}),{})}function ec(e,t,n){return hQ.createElement(e.tag,n?Di(Di({key:t},Zl(e.attrs)),n):Di({key:t},Zl(e.attrs)),(e.children||[]).map((function(n,r){return ec(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function tc(e){return xl(e)[0]}function nc(e){return e?Array.isArray(e)?e:[e]:[]}function rc(e){var t=Vi(nc(e),2);return JJ.setTwoToneColors({primaryColor:t[0],secondaryColor:t[1]})}function oc(e,t){return 0===e.indexOf(t)}function ac(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t;return n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:Di({},o),r={},Object.keys(e).forEach((function(t){(n.aria&&("role"===t||oc(t,YP))||n.data&&oc(t,QP)||n.attr&&KP.includes(t))&&(r[t]=e[t])})),r}function ic(e){return e&&cZ(e)&&e.type===q_.Fragment}function sc(e,t){return function(e,t,n){return cZ(e)?q_.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function lc(e){var t=arguments.length>0&&void 0!==e?e:{},n=t.getContainer,r=void 0===n?nI:n,o=t.motion,a=t.prefixCls,i=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,u=Sa(t,tI),p=Vi(q_.useState(),2),d=p[0],m=p[1],f=q_.useRef(),g=q_.createElement(eI,{container:d,ref:f,prefixCls:a,motion:o,maxCount:i,className:s,style:l,onAllRemoved:c}),h=Vi(q_.useState([]),2),b=h[0],_=h[1],y=q_.useMemo((function(){return{open:function(e){var t=function(){var e,t,n,r={};for(e=arguments.length,t=new Array(e),n=0;n{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function uc(e){let{prefixCls:t,type:n,icon:r,children:o}=e;return q_.createElement("div",{className:JQ(`${t}-custom-content`,`${t}-${n}`)},r||wZ[n],q_.createElement("span",null,o))}function pc(e){const t=q_.useRef(null);return[q_.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,hashId:a}=t.current,i=`${o}-notice`,{content:s,icon:l,type:c,key:u,className:p,onClose:d}=n,m=aI(n,["content","icon","type","key","className","onClose"]);let f=u;return null==f&&(DZ+=1,f=`antd-message-${DZ}`),cc((t=>(r(Object.assign(Object.assign({},m),{key:f,content:q_.createElement(uc,{prefixCls:o,type:c,icon:l},s),placement:"top",className:JQ(c&&`${i}-${c}`,a,p),onClose:()=>{null==d||d(),t()}})),()=>{e(f)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let a,i,s;a=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(i=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:i},a),{type:e});return n(l)}})),r}),[]),q_.createElement(CZ,Object.assign({key:"message-holder"},e,{ref:t}))]}function dc(e){return pc(e)}function mc(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,o){var a=Object.create((t&&t.prototype instanceof r?t:r).prototype),i=new d(o||[]);return _(a,"_invoke",{value:l(e,n,i)}),a}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function r(){}function o(){}function a(){}function i(t){["next","throw","return"].forEach((function(n){e(t,n,(function(e){return this._invoke(n,e)}))}))}function s(e,t){function r(o,a,i,s){var l,c,u=n(e[o],e,a);if("throw"!==u.type)return(c=(l=u.arg).value)&&"object"==Ca(c)&&b.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(c).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,s)}));s(u.arg)}var o;_(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function l(e,t,r){var o="suspendedStart";return function(a,i){var s,l,u;if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===a)throw i;return{value:void 0,done:!0}}for(r.method=a,r.arg=i;;){if((s=r.delegate)&&(l=c(s,r))){if(l===C)continue;return l}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(o="executing","normal"===(u=n(e,t,r)).type){if(o=r.done?"completed":"suspendedYield",u.arg===C)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o="completed",r.method="throw",r.arg=u.arg)}}}function c(e,t){var r,o,a=t.method,i=e.iterator[a];return void 0===i?(t.delegate=null,"throw"===a&&e.iterator.return&&(t.method="return",t.arg=void 0,c(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),C):"throw"===(r=n(i,e.iterator,t.arg)).type?(t.method="throw",t.arg=r.arg,t.delegate=null,C):(o=r.arg)?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,C):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,C)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function m(e){var t,n,r;if(e){if(t=e[v])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(a=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(i=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc"),i&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),C},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,p(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:m(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),C}},g}function fc(e,t,n,r,o,a,i){var s,l;try{l=(s=e[a](i)).value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function gc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function a(e){fc(s,r,o,a,i,"next",e)}function i(e){fc(s,r,o,a,i,"throw",e)}var s=e.apply(t,n);a(void 0)}))}}function hc(e){var t=iI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Ca(t)&&(t.usingClientEntryPoint=e)}function bc(e,t){uI?function(e,t){hc(!0);var n=t[pI]||uI(t);hc(!1),n.render(e),t[pI]=n}(e,t):function(e,t){lI(e,t)}(e,t)}function _c(e){return yc.apply(this,arguments)}function yc(){return(yc=gc(mc().mark((function e(t){return mc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[pI])||void 0===e||e.unmount(),delete t[pI]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vc(e){cI(e)}function wc(e){return kc.apply(this,arguments)}function kc(){return(kc=gc(mc().mark((function e(t){return mc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===uI){e.next=2;break}return e.abrupt("return",_c(t));case 2:vc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Dc(e){return Number.isNaN(e)?0:e}function xc(e){return"text"===e||"link"===e}function Sc(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Ec(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Oc(e,t){let n=arguments.length>1&&void 0!==t?t:{focus:!0};const{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},Sc(e,o,n)),Ec(r,o,n))}}function Pc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ic(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Pc(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}function Nc(e){return"danger"===e?{danger:!0}:{type:e}}function Ac(e){return!(!e||!e.then)}function Rc(e){var t=Vi(q_.useState("ssr-id"),2),n=t[0],r=t[1],o=Di({},bQ).useId,a=null==o?void 0:o();return q_.useEffect((function(){if(!o){var e=kI;kI+=1,r("rc_unique_".concat(e))}}),[]),e||a||n}function Tc(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function jc(e,t){var n,r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");return"number"!=typeof r&&"number"!=typeof(r=(n=e.document).documentElement[o])&&(r=n.body[o]),r}function $c(e){var t=e.prefixCls,n=e.style,r=e.maskProps;return q_.createElement(BJ,{key:"mask",visible:e.visible,motionName:e.motionName,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var a=e.className;return q_.createElement("div",mi({ref:o,style:Di(Di({},e.style),n),className:JQ("".concat(t,"-mask"),a)},r))}))}function Fc(e){function t(e){null==f||f(e)}var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,a=e.visible,i=void 0!==a&&a,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,p=e.wrapStyle,d=e.wrapClassName,m=e.wrapProps,f=e.onClose,g=e.afterOpenChange,h=e.afterClose,b=e.transitionName,_=e.animation,y=e.closable,v=void 0===y||y,w=e.mask,k=void 0===w||w,C=e.maskTransitionName,D=e.maskAnimation,x=e.maskClosable,S=void 0===x||x,E=e.maskStyle,O=e.maskProps,P=e.rootClassName,I=q_.useRef(),N=q_.useRef(),A=q_.useRef(),R=Vi(q_.useState(i),2),T=R[0],j=R[1],$=Rc(),F=q_.useRef(!1),M=q_.useRef(),L=null;return S&&(L=function(e){F.current?F.current=!1:N.current===e.target&&t(e)}),q_.useEffect((function(){i&&(j(!0),Ti(N.current,document.activeElement)||(I.current=document.activeElement))}),[i]),q_.useEffect((function(){return function(){clearTimeout(M.current)}}),[]),q_.createElement("div",mi({className:JQ("".concat(r,"-root"),P)},ac(e,{data:!0})),q_.createElement($c,{prefixCls:r,visible:k&&i,motionName:Tc(r,C,D),style:Di({zIndex:o},E),maskProps:O}),q_.createElement("div",mi({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===JP.ESC)return e.stopPropagation(),void t(e);i&&e.keyCode===JP.TAB&&A.current.changeActive(!e.shiftKey)},className:JQ("".concat(r,"-wrap"),d),ref:N,onClick:L,style:Di(Di({zIndex:o},p),{},{display:T?null:"none"})},m),q_.createElement(xI,mi({},e,{onMouseDown:function(){clearTimeout(M.current),F.current=!0},onMouseUp:function(){M.current=setTimeout((function(){F.current=!1}))},ref:A,closable:v,ariaId:$,prefixCls:r,visible:i&&T,onClose:t,onVisibleChanged:function(e){if(e)Ti(N.current,document.activeElement)||null===(t=A.current)||void 0===t||t.focus();else{if(j(!1),k&&I.current&&u){try{I.current.focus({preventScroll:!0})}catch(bY){}I.current=null}T&&(null==h||h())}var t;null==g||g(e)},motionName:Tc(r,b,_)}))))}function Mc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t1?t-1:0),r=1;r=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function Gc(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function qc(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var s=r;r+=1,s=a||n<0||n>=a?e:(r=e[t],(o=t-n)>0?[].concat(ki(e.slice(0,n)),[r],ki(e.slice(n,t)),ki(e.slice(t+1,a))):o<0?[].concat(ki(e.slice(0,t)),ki(e.slice(t+1,n+1)),[r],ki(e.slice(n+1,a))):e)}function cu(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}function uu(e){var t=e.name,n=Sa(e,QI),r=q_.useContext(PI),o=q_.useContext(II),a=void 0!==t?ru(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),q_.createElement(ZI,mi({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function pu(e){return e.map((function(e){return"".concat(Ca(e),":").concat(e)})).join(tN)}function du(e){var t,n=q_.useRef(),r=Vi(q_.useState({}),2)[1];return n.current||(e?n.current=e:(t=new oN((function(){r({})})),n.current=t.getForm())),[n.current]}function mu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function fu(){var e,t,n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_;for(e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(ki(n.slice(1))));for(let e=0;e{const e=il(),{getPrefixCls:a,getIconPrefixCls:l,getTheme:c}=XJ(),u=a(void 0,N1),p=r||`${u}-modal`,d=l(),m=c();let f=i;!1===f&&(f=void 0),bc(q_.createElement(P1,Object.assign({},s,{getContainer:f,prefixCls:p,rootPrefixCls:u,iconPrefixCls:d,okText:t,locale:e,theme:m,cancelText:n||e.cancelText})),o)}))}function r(){for(var r=arguments.length,o=new Array(r),a=0;a{"function"==typeof e.afterClose&&e.afterClose(),t.apply(this,o)}}),i.visible&&delete i.visible,n(i)}const o=document.createDocumentFragment();let a,i=Object.assign(Object.assign({},e),{close:r,open:!0});return n(i),I1.push(r),{destroy:r,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),n(i)}}}function yu(e){return Object.assign(Object.assign({},e),{type:"warning"})}function vu(e){return Object.assign(Object.assign({},e),{type:"info"})}function wu(e){return Object.assign(Object.assign({},e),{type:"success"})}function ku(e){return Object.assign(Object.assign({},e),{type:"error"})}function Cu(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Du(){const e=q_.useRef(null),[t,n]=q_.useState([]);q_.useEffect((()=>{t.length&&(ki(t).forEach((e=>{e()})),n([]))}),[t]);const r=q_.useCallback((t=>function(r){var o;T1+=1;const a=q_.createRef();let i;const s=q_.createElement(R1,{key:`modal-${T1}`,config:t(r),ref:a,afterClose:()=>{null==i||i()}});return i=null===(o=e.current)||void 0===o?void 0:o.patchElement(s),i&&I1.push(i),{destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(ki(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(ki(e),[t])))}}}),[]);return[q_.useMemo((()=>({info:r(vu),success:r(wu),error:r(ku),warning:r(yu),confirm:r(Cu)})),[]),q_.createElement(j1,{key:"modal-holder",ref:e})]}function xu(e,t){return t||q_.createElement("span",{className:`${e}-close-x`},q_.createElement(oZ,{className:`${e}-close-icon`}))}function Su(e){let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:s="alert"}=e,l=null;return n?l=q_.createElement("span",{className:`${t}-icon`},n):r&&(l=q_.createElement(L1[r]||null,{className:JQ(`${t}-icon`,`${t}-icon-${r}`)})),q_.createElement("div",{className:JQ({[`${t}-with-icon`]:l}),role:s},l,q_.createElement("div",{className:`${t}-message`},o),q_.createElement("div",{className:`${t}-description`},a),i&&q_.createElement("div",{className:`${t}-btn`},i))}function Eu(e){const t=q_.useRef(null);return[q_.useMemo((()=>{const e=e=>{if(!t.current)return;const{open:n,prefixCls:r,hashId:o}=t.current,a=`${r}-notice`,{message:i,description:s,icon:l,type:c,btn:u,className:p,role:d="alert"}=e,m=mN(e,["message","description","icon","type","btn","className","role"]);return n(Object.assign(Object.assign({placement:"topRight"},m),{content:q_.createElement(Su,{prefixCls:a,icon:l,type:c,message:i,description:s,btn:u,role:d}),className:JQ(c&&`${a}-${c}`,o,p)}))},n={open:e,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((t=>{n[t]=n=>e(Object.assign(Object.assign({},n),{type:t}))})),n}),[]),q_.createElement(U1,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Ou(e){return Eu(e)}function Pu(e){var t=arguments.length>0&&void 0!==e?e:250,n=q_.useRef(null),r=q_.useRef(null);return q_.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}function Iu(e,t){function n(e){m(f,e)}var r,o,a,i,s=e.prefixCls,l=e.invalidate,c=e.item,u=e.renderItem,p=e.responsive,d=e.responsiveDisabled,m=e.registerSize,f=e.itemKey,g=e.className,h=e.style,b=e.children,_=e.display,y=e.order,v=e.component,w=void 0===v?"div":v,k=Sa(e,gN),C=p&&!_;return q_.useEffect((function(){return function(){n(null)}}),[]),r=u&&c!==hN?u(c):b,l||(o={opacity:C?0:1,height:C?0:hN,overflowY:C?"hidden":hN,order:p?y:hN,pointerEvents:C?"none":hN,position:C?"absolute":hN}),a={},C&&(a["aria-hidden"]=!0),i=q_.createElement(w,mi({className:JQ(!l&&s,g),style:Di(Di({},o),h)},a,k,{ref:t}),r),p&&(i=q_.createElement(jO,{onResize:function(e){n(e.offsetWidth)},disabled:d},i)),i}function Nu(e,t){var n=Vi(q_.useState(t),2),r=n[1];return[n[0],Nl((function(t){e((function(){r(t)}))}))]}function Au(e){return"+ ".concat(e.length," ...")}function Ru(e,t){function n(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(le(eS,ge=q_.useMemo((function(){var e=b;return de?e=null===M&&j?b:b.slice(0,Math.min(b.length,U/k)):"number"==typeof S&&(e=b.slice(0,S)),e}),[b,k,M,S,de]),he=q_.useMemo((function(){return b.slice(de?ae+1:ge.length)}),[b,ge,de,ae]),be=q_.useCallback((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),_e=q_.useCallback(_||function(e){return e},[_]);return lP((function(){var e,t,r,a,i;if(U&&"number"==typeof ue&&ge){if(e=Q,r=(t=ge.length)-1,!t)return void n(0,null);for(a=0;aU){n(a-1,e-i-Q+X);break}}P&&o(0)+Q>U&&te(null)}}),[U,B,X,Q,be,ge]),i={},null!==ee&&de&&(i={position:"absolute",left:ee,top:0}),s={prefixCls:ce,responsive:de,component:A,invalidate:me},l=y?function(e,t){var n=be(e,t);return q_.createElement(_N.Provider,{key:n,value:Di(Di({},s),{},{order:t,item:e,itemKey:n,registerSize:r,display:t<=ae})},y(e,t))}:function(e,t){var n=be(e,t);return q_.createElement(bN,mi({},s,{order:t,key:n,item:e,renderItem:_e,itemKey:n,registerSize:r,display:t<=ae}))},u={order:(a=se&&!!he.length)?ae:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){K(t),G(X)},display:a},O?O&&(c=q_.createElement(_N.Provider,{value:Di(Di({},s),u)},O(he))):(p=E||Au,c=q_.createElement(bN,mi({},s,u),"function"==typeof p?p(he):p)),d=q_.createElement(N,mi({className:JQ(!me&&g,x),style:D,ref:t},T),ge.map(l),fe?c:null,P&&q_.createElement(bN,mi({},s,{responsive:pe,responsiveDisabled:!de,order:ae,className:"".concat(ce,"-suffix"),registerSize:function(e,t){J(t)},display:!0,style:i}),P)),pe&&(d=q_.createElement(jO,{onResize:function(e,t){L(t.clientWidth)},disabled:!de},d)),d}function Tu(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function ju(e){return["string","number"].includes(Ca(e))}function $u(e){var t=void 0;return e&&(ju(e.title)?t=e.title.toString():ju(e.label)&&(t=e.label.toString())),t}function Fu(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}function Mu(e){return e?Array.isArray(e)?e:[e]:[]}function Lu(e,t,n){var r=arguments.length>0&&void 0!==e?e:[],o=arguments.length>1&&void 0!==t?t:[];return(arguments.length>2?n:void 0)?r[0]===o[0]:r[0]===o[0]&&r[1]===o[1]}function Uu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function zu(e){return e.ownerDocument.defaultView}function Bu(e){for(var t,n=[],r=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];r;)[(t=zu(r).getComputedStyle(r)).overflowX,t.overflowY,t.overflow].some((function(e){return o.includes(e)}))&&n.push(r),r=r.parentElement;return n}function Hu(e,t){var n=arguments.length>1&&void 0!==t?t:1;return Number.isNaN(e)?n:e}function Wu(e){return Hu(parseFloat(e),0)}function Vu(e,t){var n=Di({},e);return(t||[]).forEach((function(e){var t,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A;e instanceof HTMLBodyElement||(r=(t=zu(e).getComputedStyle(e)).overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,p=e.clientHeight,d=e.offsetWidth,m=e.clientWidth,f=Wu(a),g=Wu(i),v=(d-m-(h=Wu(s))-(b=Wu(l)))*(_=Hu(Math.round(c.width/d*1e3)/1e3)),w=(u-p-f-g)*(y=Hu(Math.round(c.height/u*1e3)/1e3)),k=f*y,C=g*y,D=h*_,x=b*_,S=0,E=0,"clip"===r&&(S=(O=Wu(o))*_,E=O*y),N=(P=c.x+D-S)+c.width+2*S-D-x-v,A=(I=c.y+k-E)+c.height+2*E-k-C-w,n.left=Math.max(n.left,P),n.top=Math.max(n.top,I),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,A))})),n}function Gu(e,t){var n="".concat(arguments.length>1&&void 0!==t?t:0),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function qu(e,t){var n=Vi(t||[],2),r=n[1];return[Gu(e.width,n[0]),Gu(e.height,r)]}function Xu(e){var t=arguments.length>0&&void 0!==e?e:"";return[t[0],t[1]]}function Ku(e,t){var n=t[0],r=t[1];return{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:"t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2}}function Yu(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function Qu(e){var t,n,r,o,a,i,s=e.prefixCls,l=e.align,c=e.arrowPos,u=e.arrow||{},p=u.className,d=u.content,m=c.x,f=void 0===m?0:m,g=c.y,h=void 0===g?0:g,b=q_.useRef();return l&&l.points?(t={position:"absolute"},!1!==l.autoArrow&&(a=(n=l.points[0])[1],i=(r=l.points[1])[1],(o=n[0])!==r[0]&&["t","b"].includes(o)?"t"===o?t.top=0:t.bottom=0:t.top=h,a!==i&&["l","r"].includes(a)?"l"===a?t.left=0:t.right=0:t.left=f),q_.createElement("div",{ref:b,className:JQ("".concat(s,"-arrow"),p),style:t},d)):null}function Ju(e){var t=e.prefixCls,n=e.zIndex;return e.mask?q_.createElement(BJ,mi({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),(function(e){var r=e.className;return q_.createElement("div",{style:{zIndex:n},className:JQ("".concat(t,"-mask"),r)})})):null}function Zu(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function ep(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function tp(e){var t=Di({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ii(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function np(e){return"tags"===e||"multiple"===e}function rp(e,t){var n=arguments.length>1&&void 0!==t&&t;return Ls(e).map((function(e,t){if(!q_.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,a=e.props,i=a.children,s=Sa(a,JN);return n||!r?function(e){var t=e.key,n=e.props,r=n.value;return Di({key:t,value:void 0!==r?r:t,children:n.children},Sa(n,QN))}(e):Di(Di({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},s),{},{options:rp(i)})})).filter((function(e){return e}))}function op(e){var t,n=q_.useRef();return n.current=e,t=q_.useCallback((function(){return n.current.apply(n,arguments)}),[]),t}function ap(e){return"touches"in e?e.touches[0].pageY:e.pageY}function ip(e){var t=e.children,n=e.setRef,r=q_.useCallback((function(e){n(e)}),[]);return q_.cloneElement(t,{ref:r})}function sp(e,t){function n(e){X((function(t){var n;return n=function(e){var t=e;return Number.isNaN(f.current)||(t=Math.min(t,f.current)),Math.max(t,0)}("function"==typeof e?e(t):e),ee.current.scrollTop=n,n}))}var r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x=e.prefixCls,S=void 0===x?"rc-virtual-list":x,E=e.className,O=e.height,P=e.itemHeight,I=e.fullHeight,N=void 0===I||I,A=e.style,R=e.data,T=e.children,j=e.itemKey,$=e.virtual,F=e.direction,M=e.component,L=void 0===M?"div":M,U=e.onScroll,z=e.onVisibleChange,B=e.innerProps,H=Sa(e,iA),W=!(!1===$||!O||!P),V=W&&R&&P*R.length>O,G=Vi(q_.useState(0),2),q=G[0],X=G[1],K=Vi(q_.useState(!1),2),Y=K[0],Q=K[1],J=JQ(S,xa({},"".concat(S,"-rtl"),"rtl"===F),E),Z=R||sA,ee=q_.useRef(),te=q_.useRef(),ne=q_.useRef(),re=q_.useCallback((function(e){return"function"==typeof j?j(e):null==e?void 0:e[j]}),[j]),oe={getKey:re},ae=q_.useRef({start:0,end:Z.length}),ie=q_.useRef(),se=function(e,t){var n=Vi(q_.useState(e),2),r=n[0],o=n[1],a=Vi(q_.useState(null),2),i=a[0],s=a[1];return q_.useEffect((function(){var n=function(e,t,n){function r(e){return void 0!==e?n(e):i}var o,a,i,s,l,c,u,p=e.length,d=t.length;if(0===p&&0===d)return null;for(p=q&&void 0===n&&(n=i,r=t),u>q+O&&void 0===o&&(o=i),t=u;return void 0===n&&(n=0,r=0,o=Math.ceil(O/P)),void 0===o&&(o=Z.length-1),{scrollHeight:t,start:n,end:o=Math.min(o+1,Z.length),offset:r}}),[V,W,q,Z,o[3],O])).scrollHeight,p=l.end,d=l.offset,ae.current.start=u=l.start,ae.current.end=p,(f=q_.useRef(m=c-O)).current=m,b=K1(g=q<=0,h=q>=m),_=function(e,t,r){var o=q_.useRef(0),a=q_.useRef(null),i=q_.useRef(null),s=q_.useRef(!1),l=K1(t,r);return[function(t){if(e){UO.cancel(a.current);var r=t.deltaY;o.current+=r,i.current=r,l(r)||(oA||t.preventDefault(),a.current=UO((function(){var e;e=o.current*(s.current?10:1),n((function(t){return t+e})),o.current=0})))}},function(t){e&&(s.current=t.detail===i.current)}]}(W,g,h),y=Vi(_,2),v=y[0],w=y[1],function(e,t,n){var r=q_.useRef(!1),o=q_.useRef(0),a=q_.useRef(null),i=q_.useRef(null),s=function(e){var t,a;r.current&&(t=Math.ceil(e.touches[0].pageY),a=o.current-t,o.current=t,n(a)&&e.preventDefault(),clearInterval(i.current),i.current=setInterval((function(){(!n(a*=aA,!0)||Math.abs(a)<=.1)&&clearInterval(i.current)}),16))},l=function(){r.current=!1,u()},c=function(e){u(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",s),a.current.addEventListener("touchend",l))},u=function(){a.current&&(a.current.removeEventListener("touchmove",s),a.current.removeEventListener("touchend",l))};lP((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),u(),clearInterval(i.current)}}),[e])}(W,ee,(function(e,t){return!b(e,t)&&(v({preventDefault:function(){},deltaY:e}),!0)})),lP((function(){function e(e){W&&e.preventDefault()}return ee.current.addEventListener("wheel",v),ee.current.addEventListener("DOMMouseScroll",w),ee.current.addEventListener("MozMousePixelScroll",e),function(){ee.current&&(ee.current.removeEventListener("wheel",v),ee.current.removeEventListener("DOMMouseScroll",w),ee.current.removeEventListener("MozMousePixelScroll",e))}}),[W]),k=function(e,t,n,r,o,a,i){var s=q_.useRef();return function(l){var c,u,p,d,m;null!=l?(UO.cancel(s.current),"number"==typeof l?i(l):l&&"object"===Ca(l)&&(u=l.align,c="index"in l?l.index:t.findIndex((function(e){return o(e)===l.key})),d=void 0===(p=l.offset)?0:p,function l(p,m){var f,g,h,b,_,y,v,w,k,C,D,x,S;if(!(p<0)&&e.current){if(g=!1,h=m,f=e.current.clientHeight){for(b=m||u,_=0,y=0,v=0,w=Math.min(t.length,c),k=0;k<=w;k+=1)C=o(t[k]),_=v=(y=_)+(void 0===(D=n.get(C))?r:D),k===c&&void 0===D&&(g=!0);switch(x=null,b){case"top":x=y-d;break;case"bottom":x=v-f+d;break;default:y<(S=e.current.scrollTop)?h="top":v>S+f&&(h="bottom")}null!==x&&x!==e.current.scrollTop&&i(x)}s.current=UO((function(){g&&a(),l(p-1,h)}),2)}}(3))):null===(m=ne.current)||void 0===m||m.delayHidden()}}(ee,Z,s,P,re,i,n),q_.useImperativeHandle(t,(function(){return{scrollTo:k}})),lP((function(){if(z){var e=Z.slice(u,p+1);z(e,Z)}}),[u,p,Z]),C=function(e,t,n,r,o,a){var i=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=o(e,t+n,{}),s=i(e);return q_.createElement(ip,{key:s,setRef:function(t){return r(e,t)}},a)}))}(Z,u,p,a,T,oe),D=null,O&&(D=Di(xa({},N?"height":"maxHeight",O),lA),W&&(D.overflowY="hidden",Y&&(D.pointerEvents="none"))),q_.createElement("div",mi({style:Di(Di({},A),{},{position:"relative"}),className:J},H),q_.createElement(L,{className:"".concat(S,"-holder"),style:D,ref:ee,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==q&&n(t),null==U||U(e)}},q_.createElement(tA,{prefixCls:S,height:c,offset:d,onInnerResize:i,ref:te,innerProps:B},C)),W&&q_.createElement(nA,{ref:ne,prefixCls:S,scrollTop:q,height:O,scrollHeight:c,count:Z.length,direction:F,onScroll:function(e){n(e)},onStartMove:function(){Q(!0)},onStopMove:function(){Q(!1)}}))}function lp(e){return"string"==typeof e||"number"==typeof e}function cp(e,t,n){return JQ({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}function up(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.controlHeightSM,[i]=l2(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:i-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:a-2*e.lineWidth+"px",background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function pp(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},DJ(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function dp(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[pp(e),pp($l(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},pp($l(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function mp(){const[,e]=Ll(),t=O2(P2(e));return hQ.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(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()},unregister(){Object.keys(t).forEach((e=>{const n=this.matchHandlers[t[e]];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},a=window.matchMedia(n);a.addListener(o),this.matchHandlers[n]={mql:a,listener:o},o(a)}))},responsiveMap:t}}),[e])}function fp(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return q_.createElement("div",{className:JQ("".concat(n,"-content"),a),style:i},q_.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function gp(e){const t=N2,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function hp(e,t){return e?t:{}}function bp(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:p={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:m}=gp({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},kJ(r,o,a,s,i)),{"&:before":{background:s}})]},hp(!!p.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),hp(!!p.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),hp(!!p.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:d},[`&-placement-leftBottom ${n}-arrow`]:{bottom:d}})),hp(!!p.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:d},[`&-placement-rightBottom ${n}-arrow`]:{bottom:d}}))}}function _p(e,t){return arguments.length>1&&void 0!==t&&!t?uJ.includes(e):[].concat(ki(B2),ki(uJ)).includes(e)}function yp(e,t){const n=_p(t),r=JQ({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}function vp(e,t){var n,r,o,a,i,s,l,c,u,p=e.arrow,d=void 0!==p&&p,m=e.prefixCls,f=void 0===m?"rc-dropdown":m,g=e.transitionName,h=e.animation,b=e.align,_=e.placement,y=void 0===_?"bottomLeft":_,v=e.placements,w=void 0===v?AA:v,k=e.getPopupContainer,C=e.showAction,D=e.hideAction,x=e.overlayClassName,S=e.overlayStyle,E=e.visible,O=e.trigger,P=void 0===O?["hover"]:O,I=e.autoFocus,N=e.overlay,A=e.children,R=e.onVisibleChange,T=Sa(e,RA),j=Vi(hQ.useState(),2),$=j[1],F="visible"in e?E:j[0],M=hQ.useRef(null),L=hQ.useRef(null),U=hQ.useRef(null);return hQ.useImperativeHandle(t,(function(){return M.current})),function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=q_.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),i.current=!0,0))},c=function(e){switch(e.keyCode){case EA:s();break;case OA:var t=!1;i.current||(t=l()),t?e.preventDefault():s()}};q_.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&UO(l,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}}),[t])}({visible:F,triggerRef:U,onVisibleChange:r=function(e){$(e),null==R||R(e)},autoFocus:I,overlayRef:L}),o=function(t){var n=e.onOverlayClick;$(!1),n&&n(t)},a=function(){return hQ.createElement(PA,{ref:L,overlay:N,prefixCls:f,arrow:d})},i=function(){return"function"==typeof N?a:a()},s=function(){return"minOverlayWidthMatchTrigger"in e?e.minOverlayWidthMatchTrigger:!e.alignPoint},l=hQ.cloneElement(A,{className:JQ(null===(n=A.props)||void 0===n?void 0:n.className,F&&(u=e.openClassName,void 0!==u?u:"".concat(f,"-open"))),ref:Hs(A)?zs(U,A.ref):void 0}),(c=D)||-1===P.indexOf("contextMenu")||(c=["click"]),hQ.createElement(X1,mi({builtinPlacements:w},T,{prefixCls:f,ref:M,popupClassName:JQ(x,xa({},"".concat(f,"-show-arrow"),d)),popupStyle:S,action:P,showAction:C,hideAction:c,popupPlacement:y,popupAlign:b,popupTransitionName:g,popupAnimation:h,popupVisible:F,stretch:s()?"minWidth":"",popup:i(),onPopupVisibleChange:r,onPopupClick:o,getPopupContainer:k}),l)}function wp(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function kp(e){return wp(q_.useContext(TA),e)}function Cp(e){var t=e.children,n=e.locked,r=Sa(e,jA),o=q_.useContext($A),a=Si((function(){return e=r,t=Di({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Ni(e[1],t[1],!0))}));return q_.createElement($A.Provider,{value:a},t)}function Dp(){return q_.useContext(MA)}function xp(e){var t=q_.useContext(LA);return q_.useMemo((function(){return void 0!==e?[].concat(ki(t),[e]):t}),[t,e])}function Sp(e,t){var n,r,o,a,i,s=arguments.length>1&&void 0!==t&&t;return!!xZ(e)&&(n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null,o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||s&&i<0))}function Ep(e,t){var n=function(e,t){var n=arguments.length>1&&void 0!==t&&t,r=ki(e.querySelectorAll("*")).filter((function(e){return Sp(e,n)}));return Sp(e,n)&&r.unshift(e),r}(e,!0);return n.filter((function(e){return t.has(e)}))}function Op(e,t,n,r){var o,a,i,s=arguments.length>3&&void 0!==r?r:1;return e?(a=(o=Ep(e,t)).length,i=o.findIndex((function(e){return n===e})),s<0?-1===i?i=a-1:i-=1:s>0&&(i+=1),o[i=(i+a)%a]):null}function Pp(e){var t,n=q_.useRef(e);return n.current=e,t=q_.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o1&&(a.motionAppear=!1),i=a.onVisibleChanged,a.onVisibleChanged=function(e){return _.current||e||r(!0),null==i?void 0:i(e)},n?null:q_.createElement(Cp,{mode:p,locked:!_.current},q_.createElement(BJ,mi({visible:o},a,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(m,"-hidden")}),(function(e){return q_.createElement(pR,{id:s,className:e.className,style:e.style},u)})))}function zp(e){var t=e.eventKey,n=e.children,r=xp(t),o=jp(n,r),a=Dp();return q_.useEffect((function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}}),[r]),q_.createElement(LA.Provider,{value:r},a?o:q_.createElement(yR,e,o))}function Bp(e){var t=e.children,n=Sa(e,CR),r=jp(t,xp(n.eventKey));return Dp()?r:q_.createElement(DR,Qs(n,["warnKey"]),r)}function Hp(e){var t=e.className,n=e.style,r=q_.useContext($A).prefixCls;return Dp()?null:q_.createElement("li",{className:JQ("".concat(r,"-item-divider"),t),style:n})}function Wp(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:a,type:i}=n,s=ER(n,["label","children","key","type"]),l=null!=a?a:`tmp-${t}`;return o||"group"===i?q_.createElement("group"===i?Bp:o5,Object.assign({key:l},s,{title:r}),Wp(o)):"divider"===i?q_.createElement(t5,Object.assign({key:l},s)):q_.createElement(r5,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function Vp(e){return q_.useMemo((()=>e?Wp(e):e),[e])}function Gp(e){return $l(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}function qp(e){return e&&"object"==typeof e?e:{}}function Xp(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=q_.useContext(n3),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return q_.createElement("div",{className:JQ("".concat(s,"-content-holder"))},q_.createElement("div",{className:JQ("".concat(s,"-content"),"".concat(s,"-content-").concat(o),xa({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,i=e.forceRender,s=e.style,l=e.className,p=Sa(e,IR),d=o===n;return q_.createElement(BJ,mi({key:o,visible:d,forceRender:i,removeOnLeave:!!a,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return q_.createElement(PR,mi({},p,{prefixCls:u,id:t,tabKey:o,animated:c,active:d,style:Di(Di({},s),r),className:JQ(l,a),ref:n}))}))}))))}function Kp(e,t){var n=q_.useRef(e),r=Vi(q_.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}function Yp(e){var t=Vi(q_.useState(0),2),n=t[0],r=t[1],o=q_.useRef(0),a=q_.useRef();return a.current=e,cP((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function Qp(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Jp(e){return String(e).replace(/"/g,FR)}function Zp(e,t){var n=e.editable,r=e.locale,o=e.style;return n&&!1!==n.showAdd?q_.createElement("button",{ref:t,type:"button",className:"".concat(e.prefixCls,"-nav-add"),style:o,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},n.addIcon||"+"):null}function ed(e,t){function n(e){var t,n,r=l.filter((function(e){return!e.disabled})),o=r.findIndex((function(e){return e.key===E}))||0,a=r.length;for(t=0;tUe?Ue:e}function r(){u(Date.now())}function o(){window.clearTimeout(s.current)}function a(){UO.cancel(E.current)}var i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,M,L=q_.useContext(n3),U=L.prefixCls,z=L.tabs,B=e.className,H=e.style,W=e.id,V=e.animated,G=e.activeKey,q=e.rtl,X=e.extra,K=e.editable,Y=e.locale,Q=e.tabPosition,J=e.tabBarGutter,Z=e.children,ee=e.onTabClick,te=e.onTabScroll,ne=q_.useRef(),re=q_.useRef(),oe=q_.useRef(),ae=q_.useRef(),ie=q_.useRef(),se=q_.useRef(),le=q_.useRef(),ce="top"===Q||"bottom"===Q,ue=Vi(Kp(0,(function(e,t){ce&&te&&te({direction:e>t?"left":"right"})})),2),pe=ue[0],de=ue[1],me=Vi(Kp(0,(function(e,t){!ce&&te&&te({direction:e>t?"top":"bottom"})})),2),fe=me[0],ge=me[1],he=Vi(q_.useState([0,0]),2),be=he[0],_e=he[1],ye=Vi(q_.useState([0,0]),2),ve=ye[0],we=ye[1],ke=Vi(q_.useState([0,0]),2),Ce=ke[0],De=ke[1],xe=Vi(q_.useState([0,0]),2),Se=xe[0],Ee=xe[1],Oe=(T=new Map,j=q_.useRef([]),$=Vi(q_.useState({}),2)[1],F=q_.useRef("function"==typeof T?T():T),M=Yp((function(){var e=F.current;j.current.forEach((function(t){e=t(e)})),j.current=[],F.current=e,$({})})),[F.current,function(e){j.current.push(e),M()}]),Pe=Vi(Oe,2),Ie=Pe[1],Ne=function(e,t,n){return q_.useMemo((function(){var n,r,o,a,i,s,l=new Map,c=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||NR,u=c.left+c.width;for(r=0;ri?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},q_.useEffect((function(){function t(e){h.current.onTouchMove(e)}function n(e){h.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){h.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){h.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(ae,(function(e,t){function a(e,t){e((function(e){return n(e+t)}))}return!!$e&&(ce?a(de,e):a(ge,t),o(),r(),!0)})),q_.useEffect((function(){return o(),c&&(s.current=window.setTimeout((function(){u(0)}),100)),o}),[c]),p=function(e,t,n,r,o,a,i){var s,l,c,u=i.tabs,p=i.tabPosition,d=i.rtl;return["top","bottom"].includes(p)?(s="width",l=d?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),q_.useMemo((function(){var n,r,o,a,i,p;if(!u.length)return[0,0];for(r=n=u.length,o=0;oc+t){r=o-1;break}for(i=0,p=n-1;p>=0;p-=1)if((e.get(u[p].key)||$R)[l]=r?[0,0]:[i,r]}),[e,t,r,o,a,c,p,u.map((function(e){return e.key})).join("_"),d])}(Ne,Fe,ce?pe:fe,Re,Te,je,Di(Di({},e),{},{tabs:z})),m=(d=Vi(p,2))[0],f=d[1],g=Nl((function(e){var t,r,o=Ne.get(arguments.length>0&&void 0!==e?e:G)||{width:0,height:0,left:0,right:0,top:0};ce?(t=pe,q?o.rightpe+Fe&&(t=o.right+o.width-Fe):o.left<-pe?t=-o.left:o.left+o.width>-pe+Fe&&(t=-(o.left+o.width-Fe)),ge(0),de(n(t))):(r=fe,o.top<-fe?r=-o.top:o.top+o.height>-fe+Fe&&(r=-(o.top+o.height-Fe)),de(0),ge(n(r)))})),h={},"top"===Q||"bottom"===Q?h[q?"marginRight":"marginLeft"]=J:h.marginTop=J,b=z.map((function(e,t){var n=e.key;return q_.createElement(td,{id:W,prefixCls:U,key:n,tab:e,style:0===t?void 0:h,closable:e.closable,editable:K,active:n===G,renderWrapper:Z,removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,onClick:function(e){ee(n,e)},onFocus:function(){g(n),r(),ae.current&&(q||(ae.current.scrollLeft=0),ae.current.scrollTop=0)}})})),_=function(){return Ie((function(){var e=new Map;return z.forEach((function(t){var n,r=t.key,o=null===(n=ie.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(Jp(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},q_.useEffect((function(){_()}),[z.map((function(e){return e.key})).join("_")]),y=Yp((function(){var e,t,n,r=LR(ne),o=LR(re),a=LR(oe);_e([r[0]-o[0]-a[0],r[1]-o[1]-a[1]]),e=LR(le),De(e),t=LR(se),Ee(t),n=LR(ie),we([n[0]-e[0],n[1]-e[1]]),_()})),v=z.slice(0,m),w=z.slice(f+1),k=[].concat(ki(v),ki(w)),D=(C=Vi(q_.useState(),2))[0],x=C[1],S=Ne.get(G),E=q_.useRef(),q_.useEffect((function(){var e={};return S&&(ce?(q?e.right=S.right:e.left=S.left,e.width=S.width):(e.top=S.top,e.height=S.height)),a(),E.current=UO((function(){x(e)})),a}),[S,ce,q]),q_.useEffect((function(){g()}),[G,Le,Ue,Qp(S),Qp(Ne),ce]),q_.useEffect((function(){y()}),[q]),O=!!k.length,P="".concat(U,"-nav-wrap"),ce?q?(N=pe>0,I=pe!==Ue):(I=pe<0,N=pe!==Le):(A=fe<0,R=fe!==Le),q_.createElement(jO,{onResize:y},q_.createElement("div",{ref:Bs(t,ne),role:"tablist",className:JQ("".concat(U,"-nav"),B),style:H,onKeyDown:function(){r()}},q_.createElement(MR,{ref:re,position:"left",extra:X,prefixCls:U}),q_.createElement("div",{className:JQ(P,(i={},xa(i,"".concat(P,"-ping-left"),I),xa(i,"".concat(P,"-ping-right"),N),xa(i,"".concat(P,"-ping-top"),A),xa(i,"".concat(P,"-ping-bottom"),R),i)),ref:ae},q_.createElement(jO,{onResize:y},q_.createElement("div",{ref:ie,className:"".concat(U,"-nav-list"),style:{transform:"translate(".concat(pe,"px, ").concat(fe,"px)"),transition:c?"none":void 0}},b,q_.createElement(r3,{ref:le,prefixCls:U,locale:Y,editable:K,style:Di(Di({},0===b.length?void 0:h),{},{visibility:O?"hidden":null})}),q_.createElement("div",{className:JQ("".concat(U,"-ink-bar"),xa({},"".concat(U,"-ink-bar-animated"),V.inkBar)),style:D})))),q_.createElement(o3,mi({},e,{removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,ref:se,prefixCls:U,tabs:k,className:!O&&Me,tabMoving:!!c})),q_.createElement(MR,{ref:oe,position:"right",extra:X,prefixCls:U})))}function rd(e){var t=e.renderTabBar,n=Sa(e,zR),r=q_.useContext(n3).tabs;return t?t(Di(Di({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Sa(e,BR);return q_.createElement(PR,mi({tab:t,key:n,tabKey:n},r))}))}),a3):q_.createElement(a3,n)}function od(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f=e.id,g=e.prefixCls,h=void 0===g?"rc-tabs":g,b=e.className,_=e.items,y=e.direction,v=e.activeKey,w=e.defaultActiveKey,k=e.editable,C=e.animated,D=e.tabPosition,x=void 0===D?"top":D,S=e.tabBarGutter,E=e.tabBarStyle,O=e.tabBarExtraContent,P=e.locale,I=e.moreIcon,N=e.moreTransitionName,A=e.destroyInactiveTabPane,R=e.renderTabBar,T=e.onChange,j=e.onTabClick,$=e.onTabScroll,F=e.getPopupContainer,M=e.popupClassName,L=Sa(e,HR),U=q_.useMemo((function(){return(_||[]).filter((function(e){return e&&"object"===Ca(e)&&"key"in e}))}),[_]),z="rtl"===y,B=function(e){var t,n=arguments.length>0&&void 0!==e?e:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!1}:Di({inkBar:!0},"object"===Ca(n)?n:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(C),H=Vi(q_.useState(!1),2),W=H[0],V=H[1];return q_.useEffect((function(){V(q1())}),[]),r=Vi(Tl((function(){var e;return null===(e=U[0])||void 0===e?void 0:e.key}),{value:v,defaultValue:w}),2),o=r[0],a=r[1],i=Vi(q_.useState((function(){return U.findIndex((function(e){return e.key===o}))})),2),s=i[0],l=i[1],q_.useEffect((function(){var e,t=U.findIndex((function(e){return e.key===o}));-1===t&&(t=Math.max(0,Math.min(s,U.length-1)),a(null===(e=U[t])||void 0===e?void 0:e.key)),l(t)}),[U.map((function(e){return e.key})).join("_"),o,s]),u=(c=Vi(Tl(null,{value:f}),2))[0],p=c[1],q_.useEffect((function(){f||(p("rc-tabs-".concat(WR)),WR+=1)}),[]),m=Di(Di({},d={id:u,activeKey:o,animated:B,tabPosition:x,rtl:z,mobile:W}),{},{editable:k,locale:P,moreIcon:I,moreTransitionName:N,tabBarGutter:S,onTabClick:function(e,t){null==j||j(e,t);var n=e!==o;a(e),n&&(null==T||T(e))},onTabScroll:$,extra:O,style:E,panes:null,getPopupContainer:F,popupClassName:M}),q_.createElement(n3.Provider,{value:{tabs:U,prefixCls:h}},q_.createElement("div",mi({ref:t,id:f,className:JQ(h,"".concat(h,"-").concat(x),(n={},xa(n,"".concat(h,"-mobile"),W),xa(n,"".concat(h,"-editable"),k),xa(n,"".concat(h,"-rtl"),z),n),b)},L),void 0,q_.createElement(rd,mi({},m,{renderTabBar:R})),q_.createElement(Xp,mi({destroyInactiveTabPane:A},d,{animated:B}))))}function ad(e){var{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:p,animated:d}=e,m=qR(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:f,moreIcon:g=q_.createElement(J2,null)}=m,{direction:h,getPrefixCls:b,getPopupContainer:_}=q_.useContext(wJ),y=b("tabs",f),[v,w]=g3(y);let k;"editable-card"===t&&(k={onEdit:(e,t)=>{let{key:n,event:r}=t;null==a||a("add"===e?r:n,e)},removeIcon:q_.createElement(oZ,null),addIcon:l||q_.createElement(t3,null),showAdd:!0!==i});const C=b(),D=function(e,t){return e||function(e){return e.filter((e=>e))}(Ls(t).map((e=>{if(q_.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,a=GR(r,["tab"]);return Object.assign(Object.assign({key:String(t)},a),{label:o})}return null})))}(p,u),x=function(e,t){let n,r=arguments.length>1&&void 0!==t?t:{inkBar:!0,tabPane:!1};return n=!1===r?{inkBar:!1,tabPane:!1}:!0===r?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof r?r:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},i3),{motionName:x0(e,"switch")})),n}(y,d),S=MJ(o);return v(q_.createElement(VR,Object.assign({direction:h,getPopupContainer:_,moreTransitionName:`${C}-slide-up`},m,{items:D,className:JQ({[`${y}-${S}`]:S,[`${y}-card`]:["card","editable-card"].includes(t),[`${y}-editable-card`]:"editable-card"===t,[`${y}-centered`]:s},n,r,w),popupClassName:JQ(c,w),editable:k,moreIcon:g,prefixCls:y,animated:x})))}function id(e,t){const[n,r]=q_.useState("string"==typeof e?e:"");return q_.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;nNumber.MAX_SAFE_INTEGER)return String(ld()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e3&&void 0!==r&&r;return""===e?"":(a=(o=ud(e)).negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i),n>=0?(u=Number(s[n]))>=5&&!p?hd(gd(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,p):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n)):".0"===l?c:"".concat(c).concat(l))}function bd(e){var t,n,r,o,a,i,s=e.prefixCls,l=e.upNode,c=e.downNode,u=e.upDisabled,p=e.downDisabled,d=e.onStep,m=q_.useRef(),f=q_.useRef();return f.current=d,t=function(e,t){e.preventDefault(),f.current(t),m.current=setTimeout((function e(){f.current(t),m.current=setTimeout(e,iT)}),sT)},n=function(){clearTimeout(m.current)},q_.useEffect((function(){return n}),[]),aT()?null:(r="".concat(s,"-handler"),o=JQ(r,"".concat(r,"-up"),xa({},"".concat(r,"-up-disabled"),u)),a=JQ(r,"".concat(r,"-down"),xa({},"".concat(r,"-down-disabled"),p)),i={unselectable:"on",role:"button",onMouseUp:n,onMouseLeave:n},q_.createElement("div",{className:"".concat(r,"-wrap")},q_.createElement("span",mi({},i,{onMouseDown:function(e){t(e,!0)},"aria-label":"Increase Value","aria-disabled":u,className:o}),l||q_.createElement("span",{unselectable:"on",className:"".concat(s,"-handler-up-inner")})),q_.createElement("span",mi({},i,{onMouseDown:function(e){t(e,!1)},"aria-label":"Decrease Value","aria-disabled":p,className:a}),c||q_.createElement("span",{unselectable:"on",className:"".concat(s,"-handler-down-inner")}))))}function _d(e){var t="number"==typeof e?md(e):ud(e).fullStr;return t.includes(".")?ud(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function yd(e){return!(!e.addonBefore&&!e.addonAfter)}function vd(e){return!!(e.prefix||e.suffix||e.allowClear)}function wd(e,t,n,r){var o,a;if(n)return o=t,"click"===t.type?(a=e.cloneNode(!0),o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",void n(o)):void 0!==r?(o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o)):void n(o)}function kd(e){return null==e?"":String(e)}function Cd(e,t){const n=q_.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return q_.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}function Dd(e,t){return ki(e||"").slice(0,t).join("")}function xd(e,t,n,r){var o=n;return e?o=Dd(n,r):ki(t||"").lengthr&&(o=t),o}function Sd(e){return"string"==typeof e&&String(Number(e))===e?(Ii(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Ed(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y=e.prefixCls,v=e.open,w=e.placement,k=e.inline,C=e.push,D=e.forceRender,x=e.autoFocus,S=e.keyboard,E=e.rootClassName,O=e.rootStyle,P=e.zIndex,I=e.className,N=e.style,A=e.motion,R=e.width,T=e.height,j=e.children,$=e.contentWrapperStyle,F=e.mask,M=e.maskClosable,L=e.maskMotion,U=e.maskClassName,z=e.maskStyle,B=e.afterOpenChange,H=e.onClose,W=e.onMouseEnter,V=e.onMouseOver,G=e.onMouseLeave,q=e.onClick,X=e.onKeyDown,K=e.onKeyUp,Y=q_.useRef(),Q=q_.useRef(),J=q_.useRef();if(q_.useImperativeHandle(t,(function(){return Y.current})),i=function(e){var t,n,r=e.keyCode,o=e.shiftKey;switch(r){case JP.TAB:r===JP.TAB&&(o||document.activeElement!==J.current?o&&document.activeElement===Q.current&&(null===(n=J.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=Q.current)||void 0===t||t.focus({preventScroll:!0}));break;case JP.ESC:H&&S&&(e.stopPropagation(),H(e))}},q_.useEffect((function(){var e;v&&x&&(null===(e=Y.current)||void 0===e||e.focus({preventScroll:!0}))}),[v]),l=(s=Vi(q_.useState(!1),2))[0],c=s[1],u=q_.useContext(ET),p=null!==(n=null!==(r=null===(o=!1===C?{distance:0}:!0===C?{}:C||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==u?void 0:u.pushDistance)&&void 0!==n?n:180,d=q_.useMemo((function(){return{pushDistance:p,push:function(){c(!0)},pull:function(){c(!1)}}}),[p]),q_.useEffect((function(){var e,t;v?null==u||null===(e=u.push)||void 0===e||e.call(u):null==u||null===(t=u.pull)||void 0===t||t.call(u)}),[v]),q_.useEffect((function(){return function(){var e;null==u||null===(e=u.pull)||void 0===e||e.call(u)}}),[]),m=F&&q_.createElement(BJ,mi({key:"mask"},L,{visible:v}),(function(e,t){var n=e.className,r=e.style;return q_.createElement("div",{className:JQ("".concat(y,"-mask"),n,U),style:Di(Di({},r),z),onClick:M&&v?H:void 0,ref:t})})),f="function"==typeof A?A(w):A,g={},l&&p)switch(w){case"top":g.transform="translateY(".concat(p,"px)");break;case"bottom":g.transform="translateY(".concat(-p,"px)");break;case"left":g.transform="translateX(".concat(p,"px)");break;default:g.transform="translateX(".concat(-p,"px)")}return"left"===w||"right"===w?g.width=Sd(R):g.height=Sd(T),h={onMouseEnter:W,onMouseOver:V,onMouseLeave:G,onClick:q,onKeyDown:X,onKeyUp:K},b=q_.createElement(BJ,mi({key:"panel"},f,{visible:v,forceRender:D,onVisibleChanged:function(e){null==B||B(e)},removeOnLeave:!1,leavedClassName:"".concat(y,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return q_.createElement("div",mi({className:JQ("".concat(y,"-content-wrapper"),r),style:Di(Di(Di({},g),o),$)},ac(e,{data:!0})),q_.createElement(OT,mi({containerRef:n,prefixCls:y,className:I,style:N},h),j))})),_=Di({},O),P&&(_.zIndex=P),q_.createElement(ET.Provider,{value:d},q_.createElement("div",{className:JQ(y,"".concat(y,"-").concat(w),E,(a={},xa(a,"".concat(y,"-open"),v),xa(a,"".concat(y,"-inline"),k),a)),style:_,tabIndex:-1,ref:Y,onKeyDown:i},m,q_.createElement("div",{tabIndex:0,ref:Q,style:PT,"aria-hidden":"true","data-sentinel":"start"}),b,q_.createElement("div",{tabIndex:0,ref:J,style:PT,"aria-hidden":"true","data-sentinel":"end"})))}function Od(e){const{rootClassName:t,width:n,height:r,size:o="default",mask:a=!0,push:i=p4,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:p,visible:d,afterVisibleChange:m}=e,f=AT(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","visible","afterVisibleChange"]),{getPopupContainer:g,getPrefixCls:h,direction:b}=q_.useContext(wJ),_=h("drawer",u),[y,v]=u4(_),w=void 0===p&&g?()=>g(document.body):p,k=JQ({"no-mask":!a,[`${_}-rtl`]:"rtl"===b},t,v),C=q_.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),D=q_.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),x={motionName:x0(_,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};return y(q_.createElement(jZ,null,q_.createElement(T0,{status:!0,override:!0},q_.createElement(NT,Object.assign({prefixCls:_,onClose:c,maskMotion:x,motion:e=>({motionName:x0(_,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},f,{open:null!=s?s:d,mask:a,push:i,width:C,height:D,rootClassName:k,getContainer:w,afterOpenChange:null!=l?l:m}),q_.createElement(s4,Object.assign({prefixCls:_},f,{onClose:c}))))))}function Pd(e){let{className:t,direction:n,index:r,marginDirection:o,children:a,split:i,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:p,supportFlexGap:d}=q_.useContext(d4);let m={};return d||("vertical"===n?r{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}function Nd(e,t,n,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==r?r:0}`,error:e,errorStatus:n}}function Ad(e){let{help:t,helpStatus:n,errors:r=O4,warnings:o=O4,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:l}=q_.useContext(A0),c=`${l}-item-explain`,[,u]=E4(l),p=q_.useMemo((()=>C0(l)),[l]),d=Id(r),m=Id(o),f=q_.useMemo((()=>null!=t?[Nd(t,"help",n)]:[].concat(ki(d.map(((e,t)=>Nd(e,"error","error",t)))),ki(m.map(((e,t)=>Nd(e,"warning","warning",t)))))),[t,n,d,m]),g={};return i&&(g.id=`${i}_help`),q_.createElement(BJ,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!f.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return q_.createElement("div",Object.assign({},g,{className:JQ(c,t,a,u),style:n,role:"alert"}),q_.createElement(HJ,Object.assign({keys:f},C0(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:a}=e;return q_.createElement("div",{key:t,className:JQ(o,{[`${c}-${r}`]:r}),style:a},n)})))}))}function Rd(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Td(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:P4.includes(n)?`${I4}_${n}`:n}function jd(e){return Rd(e).join("_")}function $d(e){const[t]=du(),n=q_.useRef({}),r=q_.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=jd(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e,t){let n=arguments.length>1&&void 0!==t?t:{};const o=Td(Rd(e),r.__INTERNAL__.name),a=o?document.getElementById(o):null;a&&function(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;if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior(gZ(e,t));var n;const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:a,left:i}of gZ(e,hZ(t)))o.scroll({top:a,left:i,behavior:r})}(a,Object.assign({scrollMode:"if-needed",block:"nearest"},n))},getFieldInstance:e=>{const t=jd(e);return n.current[t]}})),[e,t]);return[r]}function Fd(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:p,children:d,fieldId:m,required:f,isRequired:g,onSubItemMetaChange:h}=e,b=$T(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),_=`${t}-item`,{requiredMark:y}=q_.useContext(P0),v=q_.useRef(null),w=Id(i),k=Id(s),C=null!=a,D=!!(C||i.length||s.length),x=!!v.current&&xZ(v.current),[S,E]=q_.useState(null);lP((()=>{if(D&&v.current){const e=getComputedStyle(v.current);E(parseInt(e.marginBottom,10))}}),[D,x]);const O=function(e){let t=arguments.length>0&&void 0!==e&&e,n="";return void 0!==l?n=l:c.validating?n="validating":(t?w:c.errors).length?n="error":(t?k:c.warnings).length?n="warning":(c.touched||u&&c.validated)&&(n="success"),n}(),P=q_.useMemo((()=>{let e;if(u){const t=O&&L4[O];e=t?q_.createElement("span",{className:JQ(`${_}-feedback-icon`,`${_}-feedback-icon-${O}`)},q_.createElement(t,null)):null}return{status:O,errors:i,warnings:s,hasFeedback:u,feedbackIcon:e,isFormItemInput:!0}}),[O,u]),I=JQ(_,n,r,{[`${_}-with-help`]:C||w.length||k.length,[`${_}-has-feedback`]:O&&u,[`${_}-has-success`]:"success"===O,[`${_}-has-warning`]:"warning"===O,[`${_}-has-error`]:"error"===O,[`${_}-is-validating`]:"validating"===O,[`${_}-hidden`]:p});return q_.createElement("div",{className:I,style:o,ref:v},q_.createElement(x3,Object.assign({className:`${_}-row`},Qs(b,["_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"])),q_.createElement(M4,Object.assign({htmlFor:m},e,{requiredMark:y,required:null!=f?f:g,prefixCls:t})),q_.createElement(j4,Object.assign({},e,c,{errors:w,warnings:k,prefixCls:t,status:O,help:a,marginBottom:S,onErrorVisibleChanged:e=>{e||E(null)}}),q_.createElement(I0.Provider,{value:h},q_.createElement(R0.Provider,{value:P},d)))),!!S&&q_.createElement("div",{className:`${_}-margin-offset`,style:{marginBottom:-S}}))}function Md(){if(!W4){const e=document.createDocumentFragment(),t={fragment:e};return W4=t,void V4((()=>{bc(q_.createElement(X4,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Md())}))}}),e)}))}W4.instance&&(G4.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":V4((()=>{const t=W4.instance.open(Object.assign(Object.assign({},q4),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":V4((()=>{null==W4||W4.instance.destroy(e.key)}));break;default:V4((()=>{var n;const r=(n=W4.instance)[t].apply(n,ki(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),G4=[])}function Ld(e){return _u(yu(e))}function Ud(){if(!e8){const e=document.createDocumentFragment(),t={fragment:e};return e8=t,void t8((()=>{bc(q_.createElement(o8,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Ud())}))}}),e)}))}e8.instance&&(n8.forEach((e=>{switch(e.type){case"open":t8((()=>{e8.instance.open(Object.assign(Object.assign({},r8),e.config))}));break;case"destroy":t8((()=>{null==e8||e8.instance.destroy(e.key)}))}})),n8=[])}function zd(e){n8.push({type:"open",config:e}),Ud()}function Bd(e){var t,n,r=e.prefixCls,o=e.containerRef,a=e.value,i=e.getValueIndex,s=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,u=e.direction,p=q_.useRef(null),d=Vi(q_.useState(a),2),m=d[0],f=d[1],g=function(e){var t,n=i(e),a=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".".concat(r,"-item"))[n];return(null==a?void 0:a.offsetParent)&&a},h=Vi(q_.useState(null),2),b=h[0],_=h[1],y=Vi(q_.useState(null),2),v=y[0],w=y[1];return lP((function(){var e,t,n,r;m!==a&&(e=g(m),t=g(a),n=LT(e),r=LT(t),f(a),_(n),w(r),e&&t?l():c())}),[a]),t=q_.useMemo((function(){return UT("rtl"===u?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,b]),n=q_.useMemo((function(){return UT("rtl"===u?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[u,v]),b&&v?q_.createElement(BJ,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){_(null),w(null),c()}},(function(e,o){var a=e.className,i=Di(Di({},e.style),{},{"--thumb-start-left":t,"--thumb-start-width":UT(null==b?void 0:b.width),"--thumb-active-left":n,"--thumb-active-width":UT(null==v?void 0:v.width)}),s={ref:zs(p,o),style:i,className:JQ("".concat(r,"-thumb"),a)};return q_.createElement("div",s)})):null}function Hd(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Wd(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}function Vd(e,t,n){return(e-t)/(n-t)}function Gd(e,t,n,r){var o=Vd(t,n,r),a={};switch(e){case"rtl":a.right="".concat(100*o,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(100*o,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(100*o,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(100*o,"%"),a.transform="translateX(-50%)"}return a}function qd(e,t){return Array.isArray(e)?e[t]:e}function Xd(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Kd(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,i=e.onStartMove,s=q_.useContext(VT),l=s.direction,c=s.min,u=s.max,p=s.disabled,d=s.range,m="".concat(t,"-track"),f=Vd(r,c,u),g=Vd(o,c,u),h=function(e){!p&&i&&i(e,-1)},b={};switch(l){case"rtl":b.right="".concat(100*f,"%"),b.width="".concat(100*g-100*f,"%");break;case"btt":b.bottom="".concat(100*f,"%"),b.height="".concat(100*g-100*f,"%");break;case"ttb":b.top="".concat(100*f,"%"),b.height="".concat(100*g-100*f,"%");break;default:b.left="".concat(100*f,"%"),b.width="".concat(100*g-100*f,"%")}return q_.createElement("div",{className:JQ(m,d&&"".concat(m,"-").concat(a+1)),style:Di(Di({},b),n),onMouseDown:h,onTouchStart:h})}function Yd(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=q_.useContext(VT),s=i.included,l=i.range,c=i.min,u=q_.useMemo((function(){var e,t,n,a;if(!l)return 0===r.length?[]:(e=null!=o?o:c,t=r[0],[{start:Math.min(e,t),end:Math.max(e,t)}]);for(n=[],a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,c=i):o>=3&&o<4?(l=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i),r(s+(u=n-a/2),l+u,c+u))}function Tm(e){var t,n,r,o,a,i,s,l,c,u,p;if("string"!=typeof e)throw new J$(3);if(t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Z$[t]?"#"+Z$[t]:e}(e),t.match(eF))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(tF))return n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n};if(t.match(nF))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(rF))return r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r};if(o=oF.exec(t))return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};if(a=aF.exec(t.substring(0,50)))return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};if(i=iF.exec(t)){if(s="rgb("+Rm(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",!(l=oF.exec(s)))throw new J$(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}if(c=sF.exec(t.substring(0,50))){if(u="rgb("+Rm(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",!(p=oF.exec(u)))throw new J$(4,t,u);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new J$(5)}function jm(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function $m(e){return jm(Math.round(255*e))}function Fm(e,t,n){return lF("#"+$m(e)+$m(t)+$m(n))}function Mm(e,t,n){return Rm(e,t,n,Fm)}function Lm(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return lF("#"+jm(e)+jm(t)+jm(n));if("object"==typeof e&&void 0===t&&void 0===n)return lF("#"+jm(e.red)+jm(e.green)+jm(e.blue));throw new J$(6)}function Um(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Tm(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Lm(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Lm(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new J$(7)}function zm(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):zm(e,t,r)}}function Bm(e){return zm(e,e.length,[])}function Hm(e,t){if("transparent"===t)return t;var n=function(e){return function(e){var t,n,r,o=e.red/255,a=e.green/255,i=e.blue/255,s=Math.max(o,a,i),l=Math.min(o,a,i),c=(s+l)/2;if(s===l)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};switch(n=s-l,r=c>.5?n/(2-s-l):n/(s+l),s){case o:t=(a-i)/n+(a=1?Mm(e.hue,e.saturation,e.lightness):"rgba("+Rm(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new J$(2)}(e);if(pF(e))return function(e){if("object"==typeof e)return Mm(e.hue,e.saturation,e.lightness);throw new J$(1)}(e);throw new J$(8)}(mi({},n,{hue:n.hue+parseFloat(e)}))}function Wm(e){var t,n;return"transparent"===e?0:(t=Tm(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),parseFloat((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3)))}function Vm(e,t,n,r){var o,a,i,s,l;return void 0===t&&(t=fF),void 0===n&&(n=gF),void 0===r&&(r=!0),a=(o=Wm(e)>.179)?t:n,!r||(i=a,s=Wm(e),l=Wm(i),parseFloat((s>l?(s+.05)/(l+.05):(l+.05)/(s+.05)).toFixed(2))>=4.5)?a:o?fF:gF}function Gm(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function qm(e){var t,n;for(t=1;t=48&&e<=57}function lf(e){return`${r6}${e}`}async function cf(e){const t=[],n=n6(await async function(e){const t=lf(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e),t,{allowTrailingComma:!0});if(t.length)throw t[0];return n}async function uf(e){const t=pf(await cf(e));if(t.include){const n=await uf(rf(...nf(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function pf(e){const t={name:e.name,type:e.type||"dark",...e,...df(e)};var n;return e.include&&(t.include=e.include),e.tokenColors&&(t.settings=e.tokenColors,delete t.tokenColors),(n=t).settings||(n.settings=[]),n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}}),t}function df(e){var t,n,r,o;let a,i,s=e.settings?e.settings:e.tokenColors;const l=s?s.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==l?void 0:l.settings)?void 0:t.foreground)&&(a=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(i=l.settings.background),!a&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(a=e.colors["editor.foreground"]),!i&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(i=e.colors["editor.background"]),a||(a="light"===e.type?i6.light:i6.dark),i||(i="light"===e.type?s6.light:s6.dark),{fg:a,bg:i}}function mf(e,t){let n=[];for(let r=0,o=t.length;r=0&&a>=0;)ff(t[o],r[a])&&o--,a--;return-1===o}function hf(e,t,n){let r=[],o=0;for(let a=0,i=e.settings.length;ae.trim()));else{if(!Array.isArray(s.scope))continue;i=s.scope}for(let e=0,a=i.length;e{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function _f(e){function t(e){const t=e?c.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(c.setTheme(t),p=t);const n=c.getColorMap();return"css"===t.type&&function(e,t){e.bg=d[e.bg]||e.bg,e.fg=d[e.fg]||e.fg,t.forEach(((e,n)=>{t[n]=d[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function n(e,n="text",r,o={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(n))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:a}=function(e){const t=c.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(n),{_theme:i,_colorMap:s}=t(r);return function(e,t,n,r,o){let a=n.split(/\r\n|\r|\n/),i=UF.INITIAL,s=[],l=[];for(let c=0,u=a.length;c({createOnigScanner:e=>LF.createOnigScanner(e),createOnigString:e=>LF.createOnigString(e)})))}return a6}(s),"vscode-oniguruma"),c=new p6(l);(null==(r=e.paths)?void 0:r.themes)&&(c.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(o=e.paths)?void 0:o.languages)&&(l.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await c.loadThemes(i))[0];let p;await c.loadLanguages(a);let d={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};return{codeToThemedTokens:n,codeToHtml:function(e,r="text",o){let a;a="object"==typeof r?r:{lang:r,theme:o};const i=n(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:s}=t(a.theme);return function(e,t={}){function n(e="",t={},n){const r=a[e]||c6[e];return r?r({...t,children:(n=n.filter(Boolean)).join("code"===e?"\n":"")}):""}const r=t.bg||"#fff",o=function(e){const t=new Map;for(const n of e){const e=n.line;t.has(e)?t.get(e).push(n):t.set(e,[n])}return t}(t.lineOptions??[]),a=t.elements||{};return n("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`
${t.langId}
`:"",n("code",{},e.map(((r,a)=>n("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(o.get(a+1)??[]).join(" "),lines:e,line:r,index:a},r.map(((e,o)=>{const a=[`color: ${e.color||t.fg}`];return e.fontStyle&zF.Italic&&a.push("font-style: italic"),e.fontStyle&zF.Bold&&a.push("font-weight: bold"),e.fontStyle&zF.Underline&&a.push("text-decoration: underline"),n("token",{style:a.join("; "),tokens:r,token:e,index:o},[(i=e.content,i.replace(/[&<>"']/g,(e=>u6[e])))]);var i}))))))])}(i,{fg:s.fg,bg:s.bg,lineOptions:null==a?void 0:a.lineOptions,themeName:s.name})},getTheme:e=>t(e)._theme,loadTheme:async function(e){await c.loadTheme(e)},loadLanguage:async function(e){const t=bf(e);l.addLanguage(t),await c.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:n}=t(e);return n.bg},getForegroundColor:function(e){const{_theme:n}=t(e);return n.fg},getLoadedThemes:function(){return c.getLoadedThemes()},getLoadedLanguages:function(){return c.getLoadedLanguages()},setColorReplacements:function(e){d=e}}}function yf(e){var t,n=e.getSnapshot;e=e.value;try{return t=n(),!JF(e,t)}catch(r){return!0}}function vf(e,t){var n,r,o,a,i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;n=i.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(a)throw a.error}}return o}function wf(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o52;t=t/52|0)n=LW(t%52)+n;return(LW(t%52)+n).replace(MW,"$1-$2")}function fg(e){return"string"==typeof e&&!0}function gg(e){return("type"in(t=e)&&t.type.$$typeof)===WW?XW:"$$typeof"in e?KW[e.$$typeof]:GW;var t}function hg(e,t,n){var r,o,a,i,s,l,c;if("string"!=typeof t)for(tV&&(r=eV(t))&&r!==tV&&hg(e,r,n),o=QW(t),JW&&(o=o.concat(JW(t))),a=gg(e),i=gg(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}function xg(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=xg(e.children,t)),e}))}function Sg(){return q_.useContext(CV)}function Eg(e){var t,n,r;for(t="",n=0;n>>0)}("6.0.1"+p+NV[p])),c?"".concat(c,"-").concat(u):u):b,y=t.displayName,v=void 0===y?function(e){return fg(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):y,w=t.displayName&&t.componentId?"".concat(dg(t.displayName),"-").concat(t.componentId):t.componentId||_,k=d&&m.attrs?m.attrs.concat(h).filter(Boolean):h,C=t.shouldForwardProp;return d&&m.shouldForwardProp&&(o=m.shouldForwardProp,t.shouldForwardProp?(a=t.shouldForwardProp,C=function(e,t){return o(e,t)&&a(e,t)}):C=o),i=new PV(n,w,d?m.componentStyle:void 0),r.displayName=v,(s=hQ.forwardRef(r)).attrs=k,s.componentStyle=i,s.displayName=v,s.shouldForwardProp=C,s.foldedComponentIds=d?yg(m.foldedComponentIds,m.styledComponentId):"",s.styledComponentId=w,s.target=d?m.target:e,Object.defineProperty(s,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=d?function(e){var t,n,r,o;for(t=[],n=1;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return o=!0,a=!1,{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==s.return||s.return()}finally{if(a)throw i}}}}function $g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,n7(e,r))}function Xg(e,t){function n(){return s.getFixedT(r.lng||null,"fallback"===l.nsMode?p:p[0],u)}let r=arguments.length>1&&void 0!==t?t:{};const{i18n:o}=r,{i18n:a,defaultNS:i}=q_.useContext(c7)||{},s=o||a||i7;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new u7),!s){Vg("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&Vg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...s7,...s.options.react,...r},{useSuspense:c,keyPrefix:u}=l;let p=e||i||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);const d=(s.isInitialized||s.initializedStoreOnce)&&p.every((e=>function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=t.languages[0],a=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(o,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(o,e)||a&&!s(i,e)))}(e,t,r):(Vg("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l))),[m,f]=q_.useState(n);let g=p.join();r.lng&&(g=`${r.lng}${g}`);const h=(e=>{const t=q_.useRef();return q_.useEffect((()=>{t.current=e}),[e,void 0]),t.current})(g),b=q_.useRef(!0);q_.useEffect((()=>{function e(){b.current&&f(n)}const{bindI18n:t,bindI18nStore:o}=l;return b.current=!0,d||c||(r.lng?qg(s,r.lng,p,(()=>{b.current&&f(n)})):Gg(s,p,(()=>{b.current&&f(n)}))),d&&h&&h!==g&&b.current&&f(n),t&&s&&s.on(t,e),o&&s&&s.store.on(o,e),()=>{b.current=!1,t&&s&&t.split(" ").forEach((t=>s.off(t,e))),o&&s&&o.split(" ").forEach((t=>s.store.off(t,e)))}}),[s,g]);const _=q_.useRef(!0);q_.useEffect((()=>{b.current&&!_.current&&f(n),_.current=!1}),[s,u]);const y=[m,s,d];if(y.t=m,y.i18n=s,y.ready=d,d)return y;if(!d&&!c)return y;throw new Promise((e=>{r.lng?qg(s,r.lng,p,(()=>e())):Gg(s,p,(()=>e()))}))}function Kg(e){var t,n,r=this;if(r instanceof Kg||(r=new Kg),r.tail=null,r.head=null,r.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(t=0,n=arguments.length;tthis.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!m(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&f(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&p)|(this.options.loose&&d))+":"+e,a=t.get(n);if(a)return a;const f=this.options.loose;e=e.replace(f?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE],S(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(i[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(i[s.CARETTRIM],u),o("caret trim",e);let g=e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>x(e,this.options)));f&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(i[s.COMPARATORLOOSE]))))),o("range list",g);const b=new Map,_=g.map((e=>new r(e,this.options)));for(const t of _){if(m(t))return[t];b.set(t.value,t)}b.size>1&&b.has("")&&b.delete("");const y=[...b.values()];return t.set(n,y),y}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(t){return!1}for(let n=0;n"<0.0.0-0"===e.value,f=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},h=(e,t)=>(o("comp",e,t),e=v(e,t),o("caret",e),e=_(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=D(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>e.replace(t.loose?i[s.TILDELOOSE]:i[s.TILDE],((t,n,r,a,i)=>{let s;return o("tilde",e,t,n,r,a,i),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(a)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:i?(o("replaceTilde pr",i),s=`>=${n}.${r}.${a}-${i} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,o("tilde return",s),s})),v=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?i[s.CARETLOOSE]:i[s.CARET],((t,r,a,i,s)=>{let l;return o("caret",e,t,r,a,i,s),b(r)?l="":b(a)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(i)?l="0"===r?`>=${r}.${a}.0${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.0${n} <${+r+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===r?"0"===a?`>=${r}.${a}.${i}-${s} <${r}.${a}.${+i+1}-0`:`>=${r}.${a}.${i}-${s} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${i}-${s} <${+r+1}.0.0-0`):(o("no pr"),l="0"===r?"0"===a?`>=${r}.${a}.${i}${n} <${r}.${a}.${+i+1}-0`:`>=${r}.${a}.${i}${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${i} <${+r+1}.0.0-0`),o("caret return",l),l}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>(e=e.trim()).replace(t.loose?i[s.XRANGELOOSE]:i[s.XRANGE],((n,r,a,i,s,l)=>{o("xRange",e,n,r,a,i,s,l);const c=b(a),u=c||b(i),p=u||b(s);return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),s=0,">"===r?(r=">=",u?(a=+a+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(l="-0"),n=`${r+a}.${i}.${s}${l}`):u?n=`>=${a}.0.0${l} <${+a+1}.0.0-0`:p&&(n=`>=${a}.${i}.0${l} <${a}.${+i+1}.0-0`),o("xRange return",n),n})),D=(e,t)=>(o("replaceStars",e,t),e.trim().replace(i[s.STAR],"")),x=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(i[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),S=e=>(t,n,r,o,a,i,s,l,c,u,p,d)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(a)?`>=${r}.${o}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),E=(e,t,n)=>{for(let r=0;r0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return XG}function Jg(){if(QG)return YG;QG=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,i("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new s(n[2],this.options.loose):e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(n){return!1}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}YG=t;const n=_G,{safeRe:r,t:o}=bG,a=BG,i=hG,s=vG,l=Qg();return YG}function Zg(e,t){var n,r,o,a,i;for(n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0&&void 0!==t?t:[],l=arguments.length>1&&void 0!==n?n:{publishSource:!0},c=l.publishSource,u=void 0===c||c,p=l.clientOffset,d=l.getSourceClientOffset,m=e.getMonitor(),f=e.getRegistry();if(e.dispatch(eh(p)),function(e,t,n){Zg(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){Zg(n.getSource(e),"Expected sourceIds to be registered.")}))}(s,m,f),r=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(s,m),null!==r){if(o=null,p){if(!d)throw new Error("getSourceClientOffset must be defined");!function(e){Zg("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(d),o=d(r)}if(e.dispatch(eh(p,o)),null!=(a=f.getSource(r).beginDrag(m,r)))return function(e){Zg(nh(e),"Item must be an object.")}(a),f.pinSource(r),i=f.getSourceType(r),{type:fq,payload:{itemType:i,item:a,sourceId:r,clientOffset:p||null,sourceClientOffset:o||null,isSourcePublic:!!u}}}else e.dispatch(yq)}}function oh(e){return function(){if(e.getMonitor().isDragging())return{type:gq}}}function ah(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function ih(e){return function(t,n){var r,o,a,i=(arguments.length>1&&void 0!==n?n:{}).clientOffset;return function(e){Zg(Array.isArray(e),"Expected targetIds to be an array.")}(t),function(e,t,n){var r,o;for(Zg(t.isDragging(),"Cannot call hover while not dragging."),Zg(!t.didDrop(),"Cannot call hover after drop."),r=0;r=0;r--)ah(t.getTargetType(e[r]),n)||e.splice(r,1)}(r,a,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,a),{type:hq,payload:{targetIds:r,clientOffset:i||null}}}}function sh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function lh(e){var t,n;for(t=1;t0&&void 0!==t?t:{},o=e.getMonitor(),a=e.getRegistry();!function(e){Zg(e.isDragging(),"Cannot call drop while not dragging."),Zg(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(o),n=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(o),n.forEach((function(t,n){var i=function(e,t,n,r){var o=n.getTarget(e),a=o?o.drop(r,e):void 0;return function(e){Zg(void 0===e||nh(e),"Drop result must either be an object or undefined.")}(a),void 0===a&&(a=0===t?{}:r.getDropResult()),a}(t,n,a,o),s={type:bq,payload:{dropResult:lh(lh({},r),i)}};e.dispatch(s)}))}}function ph(e){return function(){var t,n=e.getMonitor(),r=e.getRegistry();return function(e){Zg(e.isDragging(),"Cannot call endDrag while not dragging.")}(n),null!=(t=n.getSourceId())&&(r.getSource(t,!0).endDrag(n,t),r.unpinSource()),{type:_q}}}function dh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mh(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}function fh(e,t,n,r){function o(){d===p&&(d=p.slice())}function a(){if(m)throw new Error(mh(3));return u}function i(e){if("function"!=typeof e)throw new Error(mh(4));if(m)throw new Error(mh(5));var t=!0;return o(),d.push(e),function(){if(t){if(m)throw new Error(mh(6));t=!1,o();var n=d.indexOf(e);d.splice(n,1),p=null}}}function s(e){var t,n;if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(mh(7));if(void 0===e.type)throw new Error(mh(8));if(m)throw new Error(mh(9));try{m=!0,u=c(u,e)}finally{m=!1}for(t=p=d,n=0;n0&&void 0!==e?e:xq,a=arguments.length>1?t:void 0,i=a.payload;switch(a.type){case mq:case fq:return{initialSourceClientOffset:i.sourceClientOffset,initialClientOffset:i.clientOffset,clientOffset:i.clientOffset};case hq:return r=i.clientOffset,!(n=o.clientOffset)&&!r||n&&r&&n.x===r.x&&n.y===r.y?o:hh(hh({},o),{},{clientOffset:i.clientOffset});case _q:case bq:return xq;default:return o}}function yh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function vh(e){var t,n;for(t=1;t0&&void 0!==e?e:Iq,a=arguments.length>1?t:void 0,i=a.payload;switch(a.type){case fq:return vh(vh({},o),{},{itemType:i.itemType,item:i.item,sourceId:i.sourceId,isSourcePublic:i.isSourcePublic,dropResult:null,didDrop:!1});case gq:return vh(vh({},o),{},{isSourcePublic:!0});case hq:return vh(vh({},o),{},{targetIds:i.targetIds});case Pq:return-1===o.targetIds.indexOf(i.targetId)?o:vh(vh({},o),{},{targetIds:(n=o.targetIds,r=i.targetId,n.filter((function(e){return e!==r})))});case bq:return vh(vh({},o),{},{dropResult:i.dropResult,didDrop:!0,targetIds:[]});case _q:return vh(vh({},o),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return o}}function Ch(e,t){var n=arguments.length>0&&void 0!==e?e:0;switch((arguments.length>1?t:void 0).type){case Sq:case Eq:return n+1;case Oq:case Pq:return n-1;default:return n}}function Dh(e,t){var n,r,o,a,i,s,l,c,u,p=arguments.length>1?t:void 0;switch(p.type){case hq:break;case Sq:case Eq:case Pq:case Oq:return Nq;default:return Aq}return l=(s=function(e,t){var n,r=new Map,o=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};return e.forEach(o),t.forEach(o),n=[],r.forEach((function(e,t){1===e&&n.push(t)})),n}(o=void 0===(r=(n=p.payload).targetIds)?[]:r,i=void 0===(a=n.prevTargetIds)?[]:a)).length>0||!function(e,t,n){var r,o=arguments.length>2&&void 0!==n?n:Dq;if(e.length!==t.length)return!1;for(r=0;r0&&void 0!==e?e:0)+1}function Sh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Eh(e){var t,n;for(t=1;t0&&void 0!==e?e:{},a=arguments.length>1?t:void 0;return{dirtyHandlerIds:Dh(o.dirtyHandlerIds,{type:a.type,payload:Eh(Eh({},a.payload),{},{prevTargetIds:(n=o,r=[],"dragOperation.targetIds".split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),n))})}),dragOffset:_h(o.dragOffset,a),refCount:Ch(o.refCount,a),dragOperation:kh(o.dragOperation,a),stateId:xh(o.stateId)}}function Ih(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ah(e){return(Ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rh(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Rh(e,!1)})):Zg("string"==typeof e||"symbol"===Ah(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Th(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}const n=setTimeout(t,0),r=setInterval(t,50)}}function jh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==t?t:void 0,i=arguments.length>2&&void 0!==n?n:{},s=(o="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,fh(Ph,arguments.length>3&&void 0!==r&&r&&o&&o({name:"dnd-core",instanceId:"dnd-core"}))),l=new Rq(s,new jq(s)),c=new vq(s,l),u=e(c,a,i);return c.receiveBackend(u),c}function Uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==t?t:null,i=arguments.length>1&&void 0!==n?n:null;return q_.isValidElement(a)?(function(e){if("string"!=typeof e.type)throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e.type.displayName||e.type.name||"the component"," into a
, or turn it into a ")+"drag source or a drop target itself.")}(o=a),function(e,t){var n=e.ref;return Zg("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),q_.cloneElement(e,n?{ref:function(e){Vh(n,e),Vh(t,e)}}:{ref:t})}(o,i?function(t){return e(t,i)}:e)):(e(r=a,i),r)}}(o),t[n]=function(){return r})})),t}function Vh(e,t){"function"==typeof e?e(t):e.current=t}function Gh(e){return(Gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qh(e){return null!==e&&"object"===Gh(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function Xh(e,t,n,r){var o,a,i,s,l,c,u,p=n?n.call(r,e,t):void 0;if(void 0!==p)return!!p;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;if(o=Object.keys(e),a=Object.keys(t),o.length!==a.length)return!1;for(i=Object.prototype.hasOwnProperty.bind(t),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}))}))[0]||null}function Kb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Qb(e){var t,n;for(t=1;tNumber(e)-Number(t))).map((t=>e[t])):e}function f_(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g_(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h_(e){const t=(e=f_(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function b_(e,t){u_((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),r[e=e.replace(/\[]$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),r[e=e.replace(/:list$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!o&&d_(n,e).includes(e.arrayFormatSeparator);n=a?d_(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>d_(t,e))):null===n?n:d_(n,e);r[t]=i};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?d_(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>d_(t,e)));r[t]=void 0!==r[t]?[...r[t],...a]:a};default:return(e,t,n)=>{n[e]=void 0!==n[e]?[...[n[e]].flat(),t]:t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[a,i]=l_(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:d_(i,t),n(d_(a,t),i,r)}for(const[o,a]of Object.entries(r))if("object"==typeof a&&null!==a)for(const[e,n]of Object.entries(a))a[e]=g_(n,t);else r[o]=g_(a,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?m_(n):n,e}),Object.create(null))}function __(e,t){if(!e)return"";u_((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&nte(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[p_(t,e),"[",o,"]"].join("")]:[...n,[p_(t,e),"[",p_(o,e),"]=",p_(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[p_(t,e),"[]"].join("")]:[...n,[p_(t,e),"[]=",p_(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[p_(t,e),":list="].join("")]:[...n,[p_(t,e),":list=",p_(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[p_(n,e),t,p_(o,e)].join("")]:[[r,p_(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,p_(t,e)]:[...n,[p_(t,e),"=",p_(r,e)].join("")]}}(t),o={};for(const[i,s]of Object.entries(e))n(i)||(o[i]=s);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const o=e[n];return void 0===o?"":null===o?p_(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?p_(n,t)+"[]":o.reduce(r(n),[]).join("&"):p_(n,t)+"="+p_(o,t)})).filter((e=>e.length>0)).join("&")}function y_(e,t){var n;t={decode:!0,...t};let[r,o]=l_(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:b_(h_(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:d_(o,t)}:{}}}function v_(e,t){t={encode:!0,strict:!0,[ote]:!0,...t};const n=f_(e.url).split("?")[0]||"";let r=__({...b_(h_(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[ote]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function w_(e,t,n){n={parseFragmentIdentifier:!0,[ote]:!1,...n};const{url:r,query:o,fragmentIdentifier:a}=y_(e,n);return v_({url:r,query:c_(o,t),fragmentIdentifier:a},n)}function k_(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function C_(e){return null==e?"":""+e}function D_(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const a="string"!=typeof t?[].concat(t):t.split(".");for(;a.length>1;){if(o())return{};const t=r(a.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function x_(e,t,n){const{obj:r,k:o}=D_(e,t,Object);r[o]=n}function S_(e,t){const{obj:n,k:r}=D_(e,t);if(n)return n[r]}function E_(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):E_(e[r],t[r],n):e[r]=t[r]);return e}function O_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function P_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>nY[e])):e}function I_(e,t,n){let r=arguments.length>2&&void 0!==n?n:".";if(!e)return;if(e[t])return e[t];const o=t.split(r);let a=e;for(let i=0;ii+e;)e++,n=o.slice(i,i+e).join(r),s=a[n];if(void 0===s)return;if(null===s)return null;if(t.endsWith(n)){if("string"==typeof s)return s;if(n&&"string"==typeof s[n])return s[n]}const l=o.slice(i+e).join(r);return l?I_(s,l,r):void 0}a=a[o[i]]}return a}function N_(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}function A_(e){return e.charAt(0).toUpperCase()+e.slice(1)}function R_(e,t,n,r,o){let a=arguments.length>3&&void 0!==r?r:".",i=!(arguments.length>4&&void 0!==o)||o,s=function(e,t,n){const r=S_(e,n);return void 0!==r?r:S_(t,n)}(e,t,n);return!s&&i&&"string"==typeof n&&(s=I_(e,n,a),void 0===s&&(s=I_(t,n,a))),s}function T_(e){const t={};return function(n,r,o){const a=r+JSON.stringify(o);let i=t[a];return i||(i=e(N_(r),o),t[a]=i),i(n)}}function j_(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function $_(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function F_(){}var M_,L_,U_,z_,B_,H_,W_,V_,G_,q_,X_,K_,Y_,Q_,J_,Z_,ey,ty,ny,ry,oy,ay,iy,sy,ly,cy,uy,py,dy,my,fy,gy,hy,by,_y,yy,vy,wy,ky,Cy,Dy,xy,Sy,Ey,Oy,Py,Iy,Ny,Ay,Ry,Ty,jy,$y,Fy,My,Ly,Uy,zy,By,Hy,Wy,Vy,Gy,qy,Xy,Ky,Yy,Qy,Jy,Zy,ev,tv,nv,rv,ov,av,iv,sv,lv,cv,uv,pv,dv,mv,fv,gv,hv,bv,_v,yv,vv,wv,kv,Cv,Dv,xv,Sv,Ev,Ov,Pv,Iv,Nv,Av,Rv,Tv,jv,$v,Fv,Mv,Lv,Uv,zv,Bv,Hv,Wv,Vv,Gv,qv,Xv,Kv,Yv,Qv,Jv,Zv,ew,tw,nw,rw,ow,aw,iw,sw,lw,cw,uw,pw,dw,mw,fw,gw,hw,bw,_w,yw,vw,ww,kw,Cw,Dw,xw,Sw,Ew,Ow,Pw,Iw,Nw,Aw,Rw,Tw,jw,$w,Fw,Mw,Lw,Uw,zw,Bw,Hw,Ww,Vw,Gw,qw,Xw,Kw,Yw,Qw,Jw,Zw,ek,tk,nk,rk,ok,ak,ik,sk,lk,ck,uk,pk,dk,mk,fk,gk,hk,bk,_k,yk,vk,wk,kk,Ck,Dk,xk,Sk,Ek,Ok,Pk,Ik,Nk,Ak,Rk,Tk,jk,$k,Fk,Mk,Lk,Uk,zk,Bk,Hk,Wk,Vk,Gk,qk,Xk,Kk,Yk,Qk,Jk,Zk,eC,tC,nC,rC,oC,aC,iC,sC,lC,cC,uC,pC,dC,mC,fC,gC,hC,bC,_C,yC,vC,wC,kC,CC,DC,xC,SC,EC,OC,PC,IC,NC,AC,RC,TC,jC,$C,FC,MC,LC,UC,zC,BC,HC,WC,VC,GC,qC,XC,KC,YC,QC,JC,ZC,eD,tD,nD,rD,oD,aD,iD,sD,lD,cD,uD,pD,dD,mD,fD,gD,hD,bD,_D,yD,vD,wD,kD,CD,DD,xD,SD,ED,OD,PD,ID,ND,AD,RD,TD,jD,$D,FD,MD,LD,UD,zD,BD,HD,WD,VD,GD,qD,XD,KD,YD,QD,JD,ZD,ex,tx,nx,rx,ox,ax,ix,sx,lx,cx,ux,px,dx,mx,fx,gx,hx,bx,_x,yx,vx,wx,kx,Cx,Dx,xx,Sx,Ex,Ox,Px,Ix,Nx,Ax,Rx,Tx,jx,$x,Fx,Mx,Lx,Ux,zx,Bx,Hx,Wx,Vx,Gx,qx,Xx,Kx,Yx,Qx,Jx,Zx,eS,tS,nS,rS,oS,aS,iS,sS,lS,cS,uS,pS,dS,mS,fS,gS,hS,bS,_S,yS,vS,wS,kS,CS,DS,xS,SS,ES,OS,PS,IS,NS,AS,RS,TS,jS,$S,FS,MS,LS,US,zS,BS,HS,WS,VS,GS,qS,XS,KS,YS,QS,JS,ZS,eE,tE,nE,rE,oE,aE,iE,sE,lE,cE,uE,pE,dE,mE,fE,gE,hE,bE,_E,yE,vE,wE,kE,CE,DE,xE,SE,EE,OE,PE,IE,NE,AE,RE,TE,jE,$E,FE,ME,LE,UE,zE,BE,HE,WE,VE,GE,qE,XE,KE,YE,QE,JE,ZE,eO,tO,nO,rO,oO,aO,iO,sO,lO,cO,uO,pO,dO,mO,fO,gO,hO,bO,_O,yO,vO,wO,kO,CO,DO,xO,SO,EO,OO,PO,IO,NO,AO,RO,TO,jO,$O,FO,MO,LO,UO,zO,BO,HO,WO,VO,GO,qO,XO,KO,YO,QO,JO,ZO,eP,tP,nP,rP,oP,aP,iP,sP,lP,cP,uP,pP,dP,mP,fP,gP,hP,bP,_P,yP,vP,wP,kP,CP,DP,xP,SP,EP,OP,PP,IP,NP,AP,RP,TP,jP,$P,FP,MP,LP,UP,zP,BP,HP,WP,VP,GP,qP,XP,KP,YP,QP,JP,ZP,eI,tI,nI,rI,oI,aI,iI,sI,lI,cI,uI,pI,dI,mI,fI,gI,hI,bI,_I,yI,vI,wI,kI,CI,DI,xI,SI,EI,OI,PI,II,NI,AI,RI,TI,jI,$I,FI,MI,LI,UI,zI,BI,HI,WI,VI,GI,qI,XI,KI,YI,QI,JI,ZI,eN,tN,nN,rN,oN,aN,iN,sN,lN,cN,uN,pN,dN,mN,fN,gN,hN,bN,_N,yN,vN,wN,kN,CN,DN,xN,SN,EN,ON,PN,IN,NN,AN,RN,TN,jN,$N,FN,MN,LN,UN,zN,BN,HN,WN,VN,GN,qN,XN,KN,YN,QN,JN,ZN,eA,tA,nA,rA,oA,aA,iA,sA,lA,cA,uA,pA,dA,mA,fA,gA,hA,bA,_A,yA,vA,wA,kA,CA,DA,xA,SA,EA,OA,PA,IA,NA,AA,RA,TA,jA,$A,FA,MA,LA,UA,zA,BA,HA,WA,VA,GA,qA,XA,KA,YA,QA,JA,ZA,eR,tR,nR,rR,oR,aR,iR,sR,lR,cR,uR,pR,dR,mR,fR,gR,hR,bR,_R,yR,vR,wR,kR,CR,DR,xR,SR,ER,OR,PR,IR,NR,AR,RR,TR,jR,$R,FR,MR,LR,UR,zR,BR,HR,WR,VR,GR,qR,XR,KR,YR,QR,JR,ZR,eT,tT,nT,rT,oT,aT,iT,sT,lT,cT,uT,pT,dT,mT,fT,gT,hT,bT,_T,yT,vT,wT,kT,CT,DT,xT,ST,ET,OT,PT,IT,NT,AT,RT,TT,jT,$T,FT,MT,LT,UT,zT,BT,HT,WT,VT,GT,qT,XT,KT,YT,QT,JT,ZT,ej,tj,nj,rj,oj,aj,ij,sj,lj,cj,uj,pj,dj,mj,fj,gj,hj,bj,_j,yj,vj,wj,kj,Cj,Dj,xj,Sj,Ej,Oj,Pj,Ij,Nj,Aj,Rj,Tj,jj,$j,Fj,Mj,Lj,Uj,zj,Bj,Hj,Wj,Vj,Gj,qj,Xj,Kj,Yj,Qj,Jj,Zj,e$,t$,n$,r$,o$,a$,i$,s$,l$,c$,u$,p$,d$,m$,f$,g$,h$,b$,_$,y$,v$,w$,k$,C$,D$,x$,S$,E$,O$,P$,I$,N$,A$,R$,T$,j$,$$,F$,M$,L$,U$,z$,B$,H$,W$,V$,G$,q$,X$,K$,Y$,Q$,J$,Z$,eF,tF,nF,rF,oF,aF,iF,sF,lF,cF,uF,pF,dF,mF,fF,gF,hF,bF,_F,yF,vF,wF,kF,CF,DF,xF,SF,EF,OF,PF,IF,NF,AF,RF,TF,jF,$F,FF,MF,LF,UF,zF,BF,HF,WF,VF,GF,qF,XF,KF,YF,QF,JF,ZF,eM,tM,nM,rM,oM,aM,iM,sM,lM,cM,uM,pM,dM,mM,fM,gM,hM,bM,_M,yM,vM,wM,kM,CM,DM,xM,SM,EM,OM,PM,IM,NM,AM,RM,TM,jM,$M,FM,MM,LM,UM,zM,BM,HM,WM,VM,GM,qM,XM,KM,YM,QM,JM,ZM,eL,tL,nL,rL,oL,aL,iL,sL,lL,cL,uL,pL,dL,mL,fL,gL,hL,bL,_L,yL,vL,wL,kL,CL,DL,xL,SL,EL,OL,PL,IL,NL,AL,RL,TL,jL,$L,FL,ML,LL,UL,zL,BL,HL,WL,VL,GL,qL,XL,KL,YL,QL,JL,ZL,eU,tU,nU,rU,oU,aU,iU,sU,lU,cU,uU,pU,dU,mU,fU,gU,hU,bU,_U,yU,vU,wU,kU,CU,DU,xU,SU,EU,OU,PU,IU,NU,AU,RU,TU,jU,$U,FU,MU,LU,UU,zU,BU,HU,WU,VU,GU,qU,XU,KU,YU,QU,JU,ZU,ez,tz,nz,rz,oz,az,iz,sz,lz,cz,uz,pz,dz,mz,fz,gz,hz,bz,_z,yz,vz,wz,kz,Cz,Dz,xz,Sz,Ez,Oz,Pz,Iz,Nz,Az,Rz,Tz,jz,$z,Fz,Mz,Lz,Uz,zz,Bz,Hz,Wz,Vz,Gz,qz,Xz,Kz,Yz,Qz,Jz,Zz,eB,tB,nB,rB,oB,aB,iB,sB,lB,cB,uB,pB,dB,mB,fB,gB,hB,bB,_B,yB,vB,wB,kB,CB,DB,xB,SB,EB,OB,PB,IB,NB,AB,RB,TB,jB,$B,FB,MB,LB,UB,zB,BB,HB,WB,VB,GB,qB,XB,KB,YB,QB,JB,ZB,eH,tH,nH,rH,oH,aH,iH,sH,lH,cH,uH,pH,dH,mH,fH,gH,hH,bH,_H,yH,vH,wH,kH,CH,DH,xH,SH,EH,OH,PH,IH,NH,AH,RH,TH,jH,$H,FH,MH,LH,UH,zH,BH,HH,WH,VH,GH,qH,XH,KH,YH,QH,JH,ZH,eW,tW,nW,rW,oW,aW,iW,sW,lW,cW,uW,pW,dW,mW,fW,gW,hW,bW,_W,yW,vW,wW,kW,CW,DW,xW,SW,EW,OW,PW,IW,NW,AW,RW,TW,jW,$W,FW,MW,LW,UW,zW,BW,HW,WW,VW,GW,qW,XW,KW,YW,QW,JW,ZW,eV,tV,nV,rV,oV,aV,iV,sV,lV,cV,uV,pV,dV,mV,fV,gV,hV,bV,_V,yV,vV,wV,kV,CV,DV,xV,SV,EV,OV,PV,IV,NV,AV,RV,TV,jV,$V,FV,MV,LV,UV,zV,BV,HV,WV,VV,GV,qV,XV,KV,YV,QV,JV,ZV,eG,tG,nG,rG,oG,aG,iG,sG,lG,cG,uG,pG,dG,mG,fG,gG,hG,bG,_G,yG,vG,wG,kG,CG,DG,xG,SG,EG,OG,PG,IG,NG,AG,RG,TG,jG,$G,FG,MG,LG,UG,zG,BG,HG,WG,VG,GG,qG,XG,KG,YG,QG,JG,ZG,eq,tq,nq,rq,oq,aq,iq,sq,lq,cq,uq,pq,dq,mq,fq,gq,hq,bq,_q,yq,vq,wq,kq,Cq,Dq,xq,Sq,Eq,Oq,Pq,Iq,Nq,Aq,Rq,Tq,jq,$q,Fq,Mq,Lq,Uq,zq,Bq,Hq,Wq,Vq,Gq,qq,Xq,Kq,Yq,Qq,Jq,Zq,eX,tX,nX,rX,oX,aX,iX,sX,lX,cX,uX,pX,dX,mX,fX,gX,hX,bX,_X,yX,vX,wX,kX,CX,DX,xX,SX,EX,OX,PX,IX,NX,AX,RX,TX,jX,$X,FX,MX,LX,UX,zX,BX,HX,WX,VX,GX,qX,XX,KX,YX,QX,JX,ZX,eK,tK,nK,rK,oK,aK,iK,sK,lK,cK,uK,pK,dK,mK,fK,gK,hK,bK,_K,yK,vK,wK,kK,CK,DK,xK,SK,EK,OK,PK,IK,NK,AK,RK,TK,jK,$K,FK,MK,LK,UK,zK,BK,HK,WK,VK,GK,qK,XK,KK,YK,QK,JK,ZK,eY,tY,nY,rY,oY,aY,iY,sY,lY,cY,uY,pY,dY,mY,fY,gY,hY,bY,_Y,yY,vY,wY,kY,CY,DY,xY,SY,EY,OY,PY,IY,NY,AY,RY,TY,jY,$Y,FY,MY,LY,UY,zY,BY,HY,WY,VY,GY,qY,XY,KY,YY="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},QY={exports:{}},JY={},ZY={exports:{}},eQ={},tQ=Symbol.for("react.element"),nQ=Symbol.for("react.portal"),rQ=Symbol.for("react.fragment"),oQ=Symbol.for("react.strict_mode"),aQ=Symbol.for("react.profiler"),iQ=Symbol.for("react.provider"),sQ=Symbol.for("react.context"),lQ=Symbol.for("react.forward_ref"),cQ=Symbol.for("react.suspense"),uQ=Symbol.for("react.memo"),pQ=Symbol.for("react.lazy"),dQ=Symbol.iterator,mQ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fQ=Object.assign,gQ={};r.prototype.isReactComponent={},r.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=r.prototype,(M_=a.prototype=new o).constructor=a,fQ(M_,r.prototype),M_.isPureReactComponent=!0,L_=Array.isArray,U_=Object.prototype.hasOwnProperty,B_={key:!0,ref:!0,__self:!0,__source:!0},H_=/\/+/g,G_={ReactCurrentDispatcher:W_={current:null},ReactCurrentBatchConfig:V_={transition:null},ReactCurrentOwner:z_={current:null}},eQ.Children={map:u,forEach:function(e,t,n){u(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return u(e,(function(){t++})),t},toArray:function(e){return u(e,(function(e){return e}))||[]},only:function(e){if(!s(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},eQ.Component=r,eQ.Fragment=rQ,eQ.Profiler=aQ,eQ.PureComponent=a,eQ.StrictMode=oQ,eQ.Suspense=cQ,eQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G_,eQ.cloneElement=function(e,t,n){var r,o,a,i,s,l,c;if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");if(r=fQ({},e.props),o=e.key,a=e.ref,i=e._owner,null!=t)for(l in void 0!==t.ref&&(a=t.ref,i=z_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)U_.call(t,l)&&!B_.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l]);if(1==(l=arguments.length-2))r.children=n;else if(1>>1],t);)e[n]=t,e[a]=r,a=n}function n(e){return 0===e.length?null:e[0]}function r(e){var t,n,r,a,i,s,l,c,u;if(0===e.length)return null;if(t=e[0],(n=e.pop())!==t){e[0]=n;e:for(r=0,a=e.length,i=a>>>1;ro(l=e[s],n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function a(e){for(var o=n(h);null!==o;){if(null===o.callback)r(h);else{if(!(o.startTime<=e))break;r(h),o.sortIndex=o.expirationTime,t(g,o)}o=n(h)}}function i(e){if(k=!1,a(e),!w)if(null!==n(g))w=!0,u(s);else{var t=n(h);null!==t&&p(i,t.startTime-e)}}function s(t,o){var s,c,u,d,m;w=!1,k&&(k=!1,D(O),O=-1),v=!0,s=y;try{for(a(o),_=n(g);null!==_&&(!(_.expirationTime>o)||t&&!l());)"function"==typeof(c=_.callback)?(_.callback=null,y=_.priorityLevel,u=c(_.expirationTime<=o),o=e.unstable_now(),"function"==typeof u?_.callback=u:_===n(g)&&r(g),a(o)):r(g),_=n(g);return null!==_?d=!0:(null!==(m=n(h))&&p(i,m.startTime-o),d=!1),d}finally{_=null,y=s,v=!1}}function l(){return!(e.unstable_now()-Ie||125c?(r.sortIndex=a,t(h,r),null===n(g)&&r===n(h)&&(k?(D(O),O=-1):k=!0,p(i,a-c))):(r.sortIndex=l,t(g,r),w||v||(w=!0,u(s))),r},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var t=y;return function(){var n=y;y=t;try{return e.apply(this,arguments)}finally{y=n}}}}(oy={}),ry.exports=oy,ay=q_,iy=ry.exports,sy=new Set,ly={},cy=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),uy=Object.prototype.hasOwnProperty,py=/^[: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]*$/,dy={},my={},fy={},"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){fy[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];fy[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){fy[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){fy[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){fy[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){fy[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){fy[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){fy[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){fy[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)})),gy=/[\-:]([a-z])/g,"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(gy,b);fy[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(gy,b);fy[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(gy,b);fy[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){fy[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),fy.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){fy[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)})),hy=ay.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,by=Symbol.for("react.element"),_y=Symbol.for("react.portal"),yy=Symbol.for("react.fragment"),vy=Symbol.for("react.strict_mode"),wy=Symbol.for("react.profiler"),ky=Symbol.for("react.provider"),Cy=Symbol.for("react.context"),Dy=Symbol.for("react.forward_ref"),xy=Symbol.for("react.suspense"),Sy=Symbol.for("react.suspense_list"),Ey=Symbol.for("react.memo"),Oy=Symbol.for("react.lazy"),Py=Symbol.for("react.offscreen"),Iy=Symbol.iterator,Ny=Object.assign,Ry=!1,Ty=Array.isArray,oY=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((jy=jy||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=jy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},$y="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t){MSApp.execUnsafeLocalFunction((function(){return oY(e,t)}))}:oY,Fy={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},My=["Webkit","ms","Moz","O"],Object.keys(Fy).forEach((function(e){My.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fy[t]=Fy[e]}))})),Ly=Ny({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Uy=null,zy=null,By=null,Hy=null,Wy=!1,Vy=!1,cy)try{Gy={},Object.defineProperty(Gy,"passive",{get:function(){Vy=!0}}),window.addEventListener("test",Gy,Gy),window.removeEventListener("test",Gy,Gy)}catch(oY){Vy=!1}qy=!1,Xy=null,Ky=!1,Yy=null,Qy={onError:function(e){qy=!0,Xy=e}},Jy=iy.unstable_scheduleCallback,Zy=iy.unstable_cancelCallback,ev=iy.unstable_shouldYield,tv=iy.unstable_requestPaint,nv=iy.unstable_now,rv=iy.unstable_getCurrentPriorityLevel,ov=iy.unstable_ImmediatePriority,av=iy.unstable_UserBlockingPriority,iv=iy.unstable_NormalPriority,sv=iy.unstable_LowPriority,lv=iy.unstable_IdlePriority,cv=null,uv=null,pv=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(dv(e)/mv|0)|0},dv=Math.log,mv=Math.LN2,fv=64,gv=4194304,hv=0,kv=!1,Cv=[],Dv=null,xv=null,Sv=null,Ev=new Map,Ov=new Map,Pv=[],Iv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Nv=hy.ReactCurrentBatchConfig,Av=!0,Rv=null,Tv=null,jv=null,$v=null,Fv={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mv=je(Fv),Lv=Ny({},Fv,{view:0,detail:0}),Uv=je(Lv),Wv=Ny({},Lv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fe,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hv&&(Hv&&"mousemove"===e.type?(zv=e.screenX-Hv.screenX,Bv=e.screenY-Hv.screenY):Bv=zv=0,Hv=e),zv)},movementY:function(e){return"movementY"in e?e.movementY:Bv}}),Vv=je(Wv),Gv=Ny({},Wv,{dataTransfer:0}),qv=je(Gv),Xv=Ny({},Lv,{relatedTarget:0}),Kv=je(Xv),Yv=Ny({},Fv,{animationName:0,elapsedTime:0,pseudoElement:0}),Qv=je(Yv),Jv=Ny({},Fv,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zv=je(Jv),ew=Ny({},Fv,{data:0}),tw=je(ew),nw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rw={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"},ow={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},aw=Ny({},Lv,{key:function(e){if(e.key){var t=nw[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ae(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?rw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fe,charCode:function(e){return"keypress"===e.type?Ae(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ae(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),iw=je(aw),sw=Ny({},Wv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lw=je(sw),cw=Ny({},Lv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fe}),uw=je(cw),pw=Ny({},Fv,{propertyName:0,elapsedTime:0,pseudoElement:0}),dw=je(pw),mw=Ny({},Wv,{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}),fw=je(mw),gw=[9,13,27,32],hw=cy&&"CompositionEvent"in window,bw=null,cy&&"documentMode"in document&&(bw=document.documentMode),_w=cy&&"TextEvent"in window&&!bw,yw=cy&&(!hw||bw&&8=bw),vw=String.fromCharCode(32),ww=!1,kw=!1,Cw={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},Dw=null,xw=null,Sw=!1,cy&&(cy?((Ow="oninput"in document)||((Pw=document.createElement("div")).setAttribute("oninput","return;"),Ow="function"==typeof Pw.oninput),Ew=Ow):Ew=!1,Sw=Ew&&(!document.documentMode||9=document.documentMode,Aw=null,Rw=null,Tw=null,jw=!1,$w={animationend:at("Animation","AnimationEnd"),animationiteration:at("Animation","AnimationIteration"),animationstart:at("Animation","AnimationStart"),transitionend:at("Transition","TransitionEnd")},Fw={},Mw={},cy&&(Mw=document.createElement("div").style,"AnimationEvent"in window||(delete $w.animationend.animation,delete $w.animationiteration.animation,delete $w.animationstart.animation),"TransitionEvent"in window||delete $w.transitionend.transition),Lw=it("animationend"),Uw=it("animationiteration"),zw=it("animationstart"),Bw=it("transitionend"),Hw=new Map,Ww="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");for(Vw=0;Vw=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},zD=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},BD=function(e,t){return!1===(!(arguments.length>1&&void 0!==t)||t)?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},HD=function(e){var t,n=XD(e,xD.TITLE),r=XD(e,"titleTemplate");return r&&n?r.replace(/%s/g,(function(){return Array.isArray(n)?n.join(""):n})):(t=XD(e,"defaultTitle"),n||t||void 0)},WD=function(e){return XD(e,"onChangeClientState")||function(){}},VD=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return MD({},e,t)}),{})},GD=function(e,t){return t.filter((function(e){return void 0!==e[xD.BASE]})).map((function(e){return e[xD.BASE]})).reverse().reduce((function(t,n){var r,o,a;if(!t.length)for(r=Object.keys(n),o=0;o=0;n--)if((r=e[n]).hasOwnProperty(t))return r[t];return null},KD=function(e){return{baseTag:GD([ED,"target"],e),bodyAttributes:VD(CD,e),defer:XD(e,"defer"),encode:XD(e,"encodeSpecialCharacters"),htmlAttributes:VD(DD,e),linkTags:qD(xD.LINK,[ID,ED],e),metaTags:qD(xD.META,["name","charset","http-equiv","property",PD],e),noscriptTags:qD(xD.NOSCRIPT,[OD],e),onChangeClientState:WD(e),scriptTags:qD(xD.SCRIPT,["src",OD],e),styleTags:qD(xD.STYLE,[SD],e),title:HD(e),titleAttributes:VD("titleAttributes",e)}},iY=Date.now(),YD=function(e){var t=Date.now();t-iY>16?(iY=t,e(t)):setTimeout((function(){YD(e)}),0)},QD=function(e){return clearTimeout(e)},JD="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||YD:global.requestAnimationFrame||YD,ZD="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||QD:global.cancelAnimationFrame||QD,ex=function(){return console&&"function"==typeof console.warn&&void 0},tx=null,nx=function(e){tx&&ZD(tx),e.defer?tx=JD((function(){rx(e,(function(){tx=null}))})):(rx(e),tx=null)},rx=function(e,t){var n,r,o,a=e.baseTag,i=e.htmlAttributes,s=e.linkTags,l=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,p=e.scriptTags,d=e.styleTags,m=e.title,f=e.titleAttributes;ix(xD.BODY,e.bodyAttributes),ix(xD.HTML,i),ax(m,f),n={baseTag:sx(xD.BASE,a),linkTags:sx(xD.LINK,s),metaTags:sx(xD.META,l),noscriptTags:sx(xD.NOSCRIPT,c),scriptTags:sx(xD.SCRIPT,p),styleTags:sx(xD.STYLE,d)},r={},o={},Object.keys(n).forEach((function(e){var t=n[e],a=t.newTags,i=t.oldTags;a.length&&(r[e]=a),i.length&&(o[e]=n[e].oldTags)})),t&&t(),u(e,r,o)},ox=function(e){return Array.isArray(e)?e.join(""):e},ax=function(e,t){void 0!==e&&document.title!==e&&(document.title=ox(e)),ix(xD.TITLE,t)},ix=function(e,t){var n,r,o,a,i,s,l,c,u,p=document.getElementsByTagName(e)[0];if(p){for(r=(n=p.getAttribute(TD))?n.split(","):[],o=[].concat(r),a=Object.keys(t),i=0;i=0;u--)p.removeAttribute(o[u]);r.length===o.length?p.removeAttribute(TD):p.getAttribute(TD)!==a.join(",")&&p.setAttribute(TD,a.join(","))}},sx=function(e,t){var n=document.head||document.querySelector(xD.HEAD),r=n.querySelectorAll(e+"["+TD+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n,r=document.createElement(e);for(n in t)t.hasOwnProperty(n)&&(n===OD?r.innerHTML=t.innerHTML:n===SD?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(n,void 0===t[n]?"":t[n]));r.setAttribute(TD,"true"),o.some((function(e,t){return i=t,r.isEqualNode(e)}))?o.splice(i,1):a.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},lx=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},cx=function(e,t,n,r){var o=lx(n),a=ox(t);return o?"<"+e+" "+TD+'="true" '+o+">"+BD(a,r)+"":"<"+e+" "+TD+'="true">'+BD(a,r)+""},ux=function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===OD||e===SD)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+BD(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===RD.indexOf(e);return t+"<"+e+" "+TD+'="true" '+o+(i?"/>":">"+a+"")}),"")},px=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[ND[n]||n]=e[n],t}),n)},dx=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[AD[n]||n]=e[n],t}),n)},mx=function(e,t,n){var r,o=((r={key:t})[TD]=!0,r),a=px(n,o);return[hQ.createElement(xD.TITLE,a,t)]},fx=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[TD]=!0,r);return Object.keys(t).forEach((function(e){var n=ND[e]||e;n===OD||n===SD?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),hQ.createElement(e,o)}))},gx=function(e,t,n){switch(e){case xD.TITLE:return{toComponent:function(){return mx(0,t.title,t.titleAttributes)},toString:function(){return cx(e,t.title,t.titleAttributes,n)}};case CD:case DD:return{toComponent:function(){return px(t)},toString:function(){return lx(t)}};default:return{toComponent:function(){return fx(e,t)},toString:function(){return ux(e,t,n)}}}},bx=function(e){var t,n;return n=t=function(t){function n(){return $D(this,n),zD(this,t.apply(this,arguments))}return LD(n,t),n.prototype.shouldComponentUpdate=function(e){return!kQ(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case xD.SCRIPT:case xD.NOSCRIPT:return{innerHTML:t};case xD.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return MD({},r,((t={})[n.type]=[].concat(r[n.type]||[],[MD({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case xD.TITLE:return MD({},o,((t={})[r.type]=i,t.titleAttributes=MD({},a),t));case xD.BODY:return MD({},o,{bodyAttributes:MD({},a)});case xD.HTML:return MD({},o,{htmlAttributes:MD({},a)})}return MD({},o,((n={})[r.type]=MD({},a),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=MD({},t);return Object.keys(e).forEach((function(t){var r;n=MD({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return hQ.Children.forEach(e,(function(e){var o,a,i,s;if(e&&e.props)switch(a=(o=e.props).children,i=UD(o,["children"]),s=dx(i),n.warnOnInvalidChildren(e,a),e.type){case xD.LINK:case xD.META:case xD.NOSCRIPT:case xD.SCRIPT:case xD.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=UD(t,["children"]),o=MD({},r);return n&&(o=this.mapChildrenToProps(n,o)),hQ.createElement(e,o)},FD(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(hQ.Component),t.propTypes={base:vQ.object,bodyAttributes:vQ.object,children:vQ.oneOfType([vQ.arrayOf(vQ.node),vQ.node]),defaultTitle:vQ.string,defer:vQ.bool,encodeSpecialCharacters:vQ.bool,htmlAttributes:vQ.object,link:vQ.arrayOf(vQ.object),meta:vQ.arrayOf(vQ.object),noscript:vQ.arrayOf(vQ.object),onChangeClientState:vQ.func,script:vQ.arrayOf(vQ.object),style:vQ.arrayOf(vQ.object),title:vQ.string,titleAttributes:vQ.object,titleTemplate:vQ.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=hx({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n},_x=function(){return null},yx=wQ(KD,nx,hx=function(e){var t=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,o=e.linkTags,a=e.metaTags,i=e.noscriptTags,s=e.scriptTags,l=e.styleTags,c=e.title,u=void 0===c?"":c,p=e.titleAttributes;return{base:gx(xD.BASE,e.baseTag,n),bodyAttributes:gx(CD,t,n),htmlAttributes:gx(DD,r,n),link:gx(xD.LINK,o,n),meta:gx(xD.META,a,n),noscript:gx(xD.NOSCRIPT,i,n),script:gx(xD.SCRIPT,s,n),style:gx(xD.STYLE,l,n),title:gx(xD.TITLE,{title:u,titleAttributes:p},n)}})(_x),(vx=bx(yx)).renderStatic=vx.rewind,wx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const DQ=(e,t)=>{const n=q_.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:a,children:i,...s},l)=>{return q_.createElement("svg",{ref:l,...wx,width:r,height:r,stroke:n,strokeWidth:a?24*Number(o)/Number(r):o,className:`lucide lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>q_.createElement(e,t))),...(Array.isArray(i)?i:[i])||[]]);var c}));return n.displayName=`${e}`,n},xQ=DQ("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),SQ=DQ("Bug",[["rect",{width:"8",height:"14",x:"8",y:"6",rx:"4",key:"hq8nra"}],["path",{d:"m19 7-3 2",key:"fmg8ec"}],["path",{d:"m5 7 3 2",key:"dkxqes"}],["path",{d:"m19 19-3-2",key:"1hbhi4"}],["path",{d:"m5 19 3-2",key:"dvt2ee"}],["path",{d:"M20 13h-4",key:"1agfp2"}],["path",{d:"M4 13h4",key:"1bwh8b"}],["path",{d:"m10 4 1 2",key:"1pot59"}],["path",{d:"m14 4-1 2",key:"m8sn0o"}]]),EQ=DQ("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),OQ=DQ("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),PQ=DQ("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),IQ=DQ("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),NQ=DQ("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),AQ=DQ("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9",key:"c89w8i"}],["path",{d:"M12 12v3",key:"158kv8"}]]),RQ=DQ("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),TQ=DQ("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),jQ=DQ("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),$Q=DQ("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),FQ=DQ("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),MQ=DQ("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),LQ=DQ("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),UQ=DQ("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),zQ=DQ("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),BQ=DQ("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),HQ=DQ("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),WQ=DQ("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),VQ=DQ("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),GQ=DQ("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),qQ=DQ("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),XQ=DQ("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),KQ=DQ("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);kx=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){var t,n;if(this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this)),t=this.tags[this.tags.length-1],this.isSpeedy){n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case Ox:e.return=li(e.value,e.length);break;case Ix:return ai([Ua(e,{value:Aa(e.value,"@","@"+xx)})],r);case Ex:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ai([Ua(e,{props:[Aa(t,/:(read-\w+)/,":"+Dx+"$1")]})],r);case"::placeholder":return ai([Ua(e,{props:[Aa(t,/:(plac\w+)/,":"+xx+"input-$1")]}),Ua(e,{props:[Aa(t,/:(plac\w+)/,":"+Dx+"$1")]}),Ua(e,{props:[Aa(t,/:(plac\w+)/,Cx+"input-$1")]})],r)}return""}))}}],Kx=function(e){var t,n,r,o,a,i,s,l,c,u,p,d,m,f,g=e.key;return"css"===g&&(t=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))),n=e.stylisPlugins||Xx,r={},a=[],o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+g+' "]'),(function(e){var t,n=e.getAttribute("data-emotion").split(" ");for(t=1;t=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s,{name:c,styles:o,next:oS}},iS=function(e,t,n){var r=e.key+"-"+t.name;!1!==n||void 0!==e.registered[r]||(e.registered[r]=t.styles)},sS=function(e,t,n){var r,o;if(iS(e,t,n),r=e.key+"-"+t.name,void 0===e.inserted[t.name]){o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},lS=function(e){var t,n,r,o,a=Kx(e);return a.sheet.speedy=function(e){this.isSpeedy=e},a.compat=!0,t=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1&&void 0!==n?n:{},f=arguments.length>2&&void 0!==r?r:{root:!0,parentSelectors:[]},g=f.root,h=f.injectHash,b=f.parentSelectors,_=m.hashId,y=m.layer;return a=m.hashPriority,s=void 0===(i=m.transformers)?[]:i,l="",c={},u=function e(t,n){var r=arguments.length>1&&void 0!==n?n:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]),u.forEach((function(t){var n,r="string"!=typeof t||g?t:{};"string"==typeof r?l+="".concat(r,"\n"):r._keyframe?o(r):(n=s.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r),Object.keys(n).forEach((function(t){var r,i,s,u,p,d,f,y,v=n[t];if("object"!==Ca(v)||!v||"animationName"===t&&v._keyframe||function(e){return"object"===Ca(e)&&e&&("_skip_check_"in e||ZE in e)}(v)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;RE[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(o(t),r=t.getName(_)),l+="".concat(n,":").concat(r,";")};y=null!==(f=null==v?void 0:v.value)&&void 0!==f?f:v,"object"===Ca(v)&&null!=v&&v[ZE]&&Array.isArray(y)?y.forEach((function(n){e(t,n)})):e(t,y)}else r=!1,i=t.trim(),s=!1,(g||h)&&_?i.startsWith("@")?r=!0:i=function(e,t,n){var r,o;return t?(r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat(ki(n.slice(1))).join(" ")})).join(",")):e}(t,_,a):!g||_||"&"!==i&&""!==i||(i="",s=!0),p=(u=Vi(e(v,m,{root:s,injectHash:r,parentSelectors:[].concat(ki(b),[i])}),2))[0],d=u[1],c=Di(Di({},c),d),l+="".concat(i).concat(p)})))})),g?y&&function(){var e,t,n,r,o;return void 0===OE&&(e="@layer ".concat(SE," { .").concat(SE," { width: ").concat(EE,"!important; } }"),t=function(e){e.className=SE},OE=!!Ri()&&(zi(e,SE),(r=document.createElement("div")).style.position="fixed",r.style.left="0",r.style.top="0",null==t||t(r),document.body.appendChild(r),o=getComputedStyle(r).width===EE,null===(n=r.parentNode)||void 0===n||n.removeChild(r),Ui(SE),o)),OE}()&&(d=(p=y.split(","))[p.length-1].trim(),l="@layer ".concat(d," {").concat(l,"}"),p.length>1&&(l="@layer ".concat(y,"{%%%:%}").concat(l))):l="{".concat(l,"}"),[l,c]},tO=function(){function e(t,n){Oa(this,e),xa(this,"name",void 0),xa(this,"style",void 0),xa(this,"_keyframe",!0),this.name=t,this.style=n}return Ia(e,[{key:"getName",value:function(e){var t=arguments.length>0&&void 0!==e?e:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e}(),nO=function(){function e(){Oa(this,e),xa(this,"cache",void 0),xa(this,"keys",void 0),xa(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ia(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t,a={map:this.cache};return e.forEach((function(e){var t,n;a=a?null===(t=a)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(n=a)&&void 0!==n&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),null===(r=a)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r,o,a,i=this;this.has(t)||(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET&&(r=this.keys.reduce((function(e,t){var n=Vi(e,2)[1];return i.internalGet(t)[1]0},e.prototype.connect_=function(){mO&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),bO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){mO&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;hO.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),yO=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n0},e}(),SO="undefined"!=typeof WeakMap?new WeakMap:new dO,EO=function e(t){var n,r;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");n=_O.getInstance(),r=new xO(t,n,this),SO.set(this,r)},["observe","unobserve","disconnect"].forEach((function(e){EO.prototype[e]=function(){var t;return(t=SO.get(this))[e].apply(t,arguments)}})),OO=void 0!==fO.ResizeObserver?fO.ResizeObserver:EO,PO=new Map,IO=new OO((function(e){e.forEach((function(e){var t,n=e.target;null===(t=PO.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),NO=function(){function e(){return Oa(this,e),t.apply(this,arguments)}Ts(e,q_.Component);var t=Ms(e);return Ia(e,[{key:"render",value:function(){return this.props.children}}]),e}(),AO=q_.createContext(null),RO=q_.forwardRef(Ks),TO="rc-observer-key",(jO=q_.forwardRef(Ys)).Collection=function(e){var t=e.children,n=e.onBatchResize,r=q_.useRef(0),o=q_.useRef([]),a=q_.useContext(AO),i=q_.useCallback((function(e,t,i){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==a||a(e,t,i)}),[n,a]);return q_.createElement(AO.Provider,{value:i},t)},$O=function(e){return+setTimeout(e,16)},FO=function(e){return clearTimeout(e)},"undefined"!=typeof window&&"requestAnimationFrame"in window&&($O=function(e){return window.requestAnimationFrame(e)},FO=function(e){return window.cancelAnimationFrame(e)}),MO=0,LO=new Map,(UO=function(e,t){var n;return n=MO+=1,function t(r){if(0===r)Js(n),e();else{var o=$O((function(){t(r-1)}));LO.set(n,o)}}(arguments.length>1&&void 0!==t?t:1),n}).cancel=function(e){var t=LO.get(e);return Js(t),FO(t)};const ZQ=q_.createContext({});zO="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const eJ=q_.createContext(void 0),tJ={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},nJ={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},tJ)},rJ="${label} is not a valid ${type}",oJ={locale:"en",Pagination:{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"},DatePicker:nJ,TimePicker:tJ,Calendar:nJ,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:rJ,method:rJ,array:rJ,object:rJ,number:rJ,date:rJ,boolean:rJ,integer:rJ,float:rJ,regexp:rJ,email:rJ,url:rJ,hex:rJ},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let aJ=Object.assign({},oJ.Modal);const iJ=q_.createContext(void 0),sJ=(e,t)=>{const n=q_.useContext(iJ);return[q_.useMemo((()=>{var r;const o=t||oJ[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})}),[e,t,n]),q_.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?oJ.locale:e}),[n])]},lJ=e=>{const{locale:t={},children:n}=e;q_.useEffect((()=>(al(t&&t.Modal),()=>{al()})),[t]);const r=q_.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return q_.createElement(iJ.Provider,{value:r},n)},cJ="5.6.3",uJ=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];BO={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},HO="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),WO="[\\s|\\(]+(".concat(HO,")[,|\\s]+(").concat(HO,")[,|\\s]+(").concat(HO,")\\s*\\)?"),VO="[\\s|\\(]+(".concat(HO,")[,|\\s]+(").concat(HO,")[,|\\s]+(").concat(HO,")[,|\\s]+(").concat(HO,")\\s*\\)?"),GO={CSS_UNIT:new RegExp(HO),rgb:new RegExp("rgb"+WO),rgba:new RegExp("rgba"+VO),hsl:new RegExp("hsl"+WO),hsla:new RegExp("hsla"+VO),hsv:new RegExp("hsv"+WO),hsva:new RegExp("hsva"+VO),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},qO=function(){function e(t,n){var r,o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t,o=_l(t),this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=cl(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=fl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=fl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=dl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=dl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),gl(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var a,i=[pl(Math.round(e).toString(16)),pl(Math.round(t).toString(16)),pl(Math.round(n).toString(16)),pl((a=r,Math.round(255*parseFloat(a)).toString(16)))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*sl(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*sl(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){var e,t,n,r;if(0===this.a)return"transparent";if(this.a<1)return!1;for(e="#"+gl(this.r,this.g,this.b,!1),t=0,n=Object.entries(BO);t=0)||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ll(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ll(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ll(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ll(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){var r,o,a;return void 0===n&&(n=50),r=this.toRgb(),o=new e(t).toRgb(),new e({r:(o.r-r.r)*(a=n/100)+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){var r,o,a;for(void 0===t&&(t=6),void 0===n&&(n=30),a=[this],(r=this.toHsl()).h=(r.h-((o=360/n)*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){var n,r,o,a,i,s;for(void 0===t&&(t=6),r=(n=this.toHsv()).h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){var n,r=this.toHsl(),o=r.h,a=[this],i=360/t;for(n=1;n{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},dJ={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"},mJ=Object.assign(Object.assign({},dJ),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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}),fJ=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},gJ=(e,t)=>new qO(e).setAlpha(t).toRgbString(),hJ=(e,t)=>new qO(e).darken(t).toHexString(),bJ=e=>{const t=xl(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]}},_J=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:gJ(r,.88),colorTextSecondary:gJ(r,.65),colorTextTertiary:gJ(r,.45),colorTextQuaternary:gJ(r,.25),colorFill:gJ(r,.15),colorFillSecondary:gJ(r,.06),colorFillTertiary:gJ(r,.04),colorFillQuaternary:gJ(r,.02),colorBgLayout:hJ(n,4),colorBgContainer:hJ(n,0),colorBgElevated:hJ(n,0),colorBgSpotlight:gJ(r,.85),colorBorder:hJ(n,15),colorBorderSecondary:hJ(n,6)}},yJ=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=e*Math.pow(2.71828,(n-1)/5),o=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};iP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rt||(e?`ant-${e}`:"ant"),iconPrefixCls:vJ}),kJ=(e,t,n,r,o)=>{const a=e/2,i=a,s=1*n/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),c=a-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),p=2*a-c,d=u,m=2*a-s,f=l,g=2*a-0,h=i,b=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),_=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${_}px 100%, 50% ${_}px, ${2*a-_}px 100%, ${_}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${p} ${d} L ${m} ${f} A ${n} ${n} 0 0 0 ${g} ${h} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},CJ={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},DJ=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),xJ=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),SJ=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},EJ=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),OJ=e=>({"&:focus-visible":Object.assign({},EJ(e))}),PJ="undefined"!=typeof CSSINJS_STATISTIC;let IJ=!0;const NJ=Ps(El),AJ={token:mJ,hashed:!0},RJ=hQ.createContext(AJ),TJ=`-ant-${Date.now()}-${Math.random()}`,jJ=q_.createContext(!1),$J=e=>{let{children:t,disabled:n}=e;const r=q_.useContext(jJ);return q_.createElement(jJ.Provider,{value:null!=n?n:r},t)},FJ=jJ,MJ=e=>{const t=hQ.useContext(zJ);return hQ.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},LJ=q_.createContext(void 0),UJ=e=>{let{children:t,size:n}=e;const r=MJ(n);return q_.createElement(LJ.Provider,{value:r},t)},zJ=LJ;uP=["children"],pP=q_.createContext({}),dP=function(){function e(){return Oa(this,e),t.apply(this,arguments)}Ts(e,q_.Component);var t=Ms(e);return Ia(e,[{key:"render",value:function(){return this.props.children}}]),e}(),mP="none",fP="appear",gP="enter",hP="leave",bP="none",_P="prepare",yP="start",vP="active",wP="end",kP="prepared",lY=Ri(),cY="undefined"!=typeof window?window:{},uY={animationend:zl("Animation","AnimationEnd"),transitionend:zl("Transition","TransitionEnd")},lY&&("AnimationEvent"in cY||delete uY.animationend.animation,"TransitionEvent"in cY||delete uY.transitionend.transition),CP=uY,DP={},Ri()&&(xP=document.createElement("div"),DP=xP.style),SP={},EP=Bl("animationend"),OP=Bl("transitionend"),PP=!(!EP||!OP),IP=EP||"animationend",NP=OP||"transitionend",AP=Ri()?q_.useLayoutEffect:q_.useEffect,RP=[_P,yP,vP,wP],TP=[_P,kP];const BJ=(mY=pY=PP,"object"===Ca(pY)&&(mY=pY.transitionSupport),(dY=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l=e.visible,c=void 0===l||l,u=e.removeOnLeave,p=void 0===u||u,d=e.forceRender,m=e.children,f=e.motionName,g=e.leavedClassName,h=e.eventProps,b=function(e,t){return!(!e.motionName||!mY||!1===t)}(e,q_.useContext(pP).motion),_=q_.useRef(),y=q_.useRef(),v=function(e,t,n,r){function o(){return n()}function a(){j(mP,!0),M(null,!0)}function i(e){var t,n,r=o();e&&!e.deadline&&e.target!==r||(t=z.current,T===fP&&t?n=null==S?void 0:S(r,e):T===gP&&t?n=null==E?void 0:E(r,e):T===hP&&t&&(n=null==O?void 0:O(r,e)),T!==mP&&t&&!1!==n&&a())}var s,l,c=r.motionEnter,u=void 0===c||c,p=r.motionAppear,d=void 0===p||p,m=r.motionLeave,f=void 0===m||m,g=r.motionDeadline,h=r.motionLeaveImmediately,b=r.onAppearPrepare,_=r.onEnterPrepare,y=r.onLeavePrepare,v=r.onAppearStart,w=r.onEnterStart,k=r.onLeaveStart,C=r.onAppearActive,D=r.onEnterActive,x=r.onLeaveActive,S=r.onAppearEnd,E=r.onEnterEnd,O=r.onLeaveEnd,P=r.onVisibleChanged,I=Vi(Al(),2),N=I[0],A=I[1],R=Vi(Al(mP),2),T=R[0],j=R[1],$=Vi(Al(null),2),F=$[0],M=$[1],L=q_.useRef(!1),U=q_.useRef(null),z=q_.useRef(!1),B=Vi(function(e){function t(e){e&&(e.removeEventListener(NP,n),e.removeEventListener(IP,n))}var n,r=q_.useRef(),o=q_.useRef(e);return o.current=e,n=q_.useCallback((function(e){o.current(e)}),[]),q_.useEffect((function(){return function(){t(r.current)}}),[]),[function(e){r.current&&r.current!==e&&t(r.current),e&&e!==r.current&&(e.addEventListener(NP,n),e.addEventListener(IP,n),r.current=e)},t]}(i),1)[0],H=function(e){var t,n,r;switch(e){case fP:return xa(t={},_P,b),xa(t,yP,v),xa(t,vP,C),t;case gP:return xa(n={},_P,_),xa(n,yP,w),xa(n,vP,D),n;case hP:return xa(r={},_P,y),xa(r,yP,k),xa(r,vP,x),r;default:return{}}},W=q_.useMemo((function(){return H(T)}),[T]),V=function(e,t,n){var r=Vi(Al(bP),2),o=r[0],a=r[1],i=function(){function e(){UO.cancel(t.current)}var t=q_.useRef(null);return q_.useEffect((function(){return function(){e()}}),[]),[function n(r,o){var a,i=arguments.length>1&&void 0!==o?o:2;e(),a=UO((function(){i<=1?r({isCanceled:function(){return a!==t.current}}):n(r,i-1)})),t.current=a},e]}(),s=Vi(i,2),l=s[0],c=s[1],u=t?TP:RP;return AP((function(){var e,t,r;o!==bP&&o!==wP&&(e=u.indexOf(o),t=u[e+1],!1===(r=n(o))?a(t,!0):t&&l((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)})))}),[e,o]),q_.useEffect((function(){return function(){c()}}),[]),[function(){a(_P,!0)},o]}(T,!e,(function(e){var t,n;return e===_P?!!(t=W[_P])&&t(o()):(X in W&&M((null===(n=W[X])||void 0===n?void 0:n.call(W,o(),null))||null),X===vP&&(B(o()),g>0&&(clearTimeout(U.current),U.current=setTimeout((function(){i({deadline:!0})}),g))),X===kP&&a(),!0)})),G=Vi(V,2),q=G[0],X=G[1],K=Wl(X);return z.current=K,AP((function(){var n,r,o;A(t),n=L.current,L.current=!0,!n&&t&&d&&(r=fP),n&&t&&u&&(r=gP),(n&&!t&&f||!n&&h&&!t&&f)&&(r=hP),o=H(r),r&&(e||o[_P])?(j(r),q()):j(mP)}),[t]),q_.useEffect((function(){(T===fP&&!d||T===gP&&!u||T===hP&&!f)&&j(mP)}),[d,u,f]),q_.useEffect((function(){return function(){L.current=!1,clearTimeout(U.current)}}),[]),s=q_.useRef(!1),q_.useEffect((function(){N&&(s.current=!0),void 0!==N&&T===mP&&((s.current||N)&&(null==P||P(N)),s.current=!0)}),[N,T]),l=F,W[_P]&&X===yP&&(l=Di({transition:"none"},l)),[T,X,l,null!=N?N:t]}(b,c,(function(){try{return _.current instanceof HTMLElement?_.current:Vs(y.current)}catch(bY){return null}}),e),w=Vi(v,4),k=w[0],C=w[1],D=w[2],x=w[3],S=q_.useRef(x);return x&&(S.current=!0),n=q_.useCallback((function(e){_.current=e,Us(t,e)}),[t]),o=Di(Di({},h),{},{visible:c}),m?k===mP?r=x?m(Di({},o),n):!p&&S.current&&g?m(Di(Di({},o),{},{className:g}),n):d||!p&&!g?m(Di(Di({},o),{},{style:{display:"none"}}),n):null:(C===_P?i="prepare":Wl(C)?i="active":C===yP&&(i="start"),s=Hl(f,"".concat(k,"-").concat(i)),r=m(Di(Di({},o),{},{className:JQ(Hl(f,k),(a={},xa(a,s,s&&i),xa(a,f,"string"==typeof f),a)),style:D}),n)):r=null,q_.isValidElement(r)&&Hs(r)&&(r.ref||(r=q_.cloneElement(r,{ref:n}))),q_.createElement(dP,{ref:y},r)}))).displayName="CSSMotion",dY);jP="add",$P="keep",FP="remove",MP="removed",LP=["component","children","onVisibleChanged","onAllRemoved"],UP=["status"],zP=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const HJ=function(e,t){var n=arguments.length>1&&void 0!==t?t:BJ,r=function(){function e(){var n,r,o,a;for(Oa(this,e),r=arguments.length,o=new Array(r),a=0;a1&&void 0!==t?t:[],o=[],a=0,i=r.length,s=Gl(arguments.length>0&&void 0!==e?e:[]),l=Gl(r);return s.forEach((function(e){var t,n,r=!1;for(t=a;t1})).forEach((function(e){(o=o.filter((function(t){return t.key!==e||t.status!==FP}))).forEach((function(t){t.key===e&&(t.status=$P)}))})),o}(n,r);return{keyEntities:o.filter((function(e){var t=n.find((function(t){return e.key===t.key}));return!t||t.status!==MP||e.status!==FP}))}}}]),e}();return xa(r,"defaultProps",{component:"div"}),r}(PP);BP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${Xl()}-${e}`:Xl()),getIconPrefixCls:Kl,getRootPrefixCls:()=>VJ||Xl(),getTheme:()=>qJ}),KJ=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:a,componentSize:i,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:p,popupOverflow:d,legacyLocale:m,parentContext:f,iconPrefixCls:g,theme:h,componentDisabled:b}=e,_=q_.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||f.getPrefixCls("");return t?`${o}-${t}`:o}),[f.getPrefixCls,e.prefixCls]),y=g||f.iconPrefixCls||vJ,v=y!==f.iconPrefixCls,w=n||f.csp,k=((e,t)=>{const[n,r]=Ll();return Os({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))})(y,w),C=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:AJ;return Si((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Ni(e,t[n],!0)))))}(h,f.theme),D={csp:w,autoInsertSpaceInButton:r,locale:a||m,direction:s,space:l,virtual:c,popupMatchSelectWidth:null!=p?p:u,popupOverflow:d,getPrefixCls:_,iconPrefixCls:y,theme:C},x=Object.assign({},f);Object.keys(D).forEach((e=>{void 0!==D[e]&&(x[e]=D[e])})),WJ.forEach((t=>{const n=e[t];n&&(x[t]=n)}));const S=Si((()=>x),x,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),E=q_.useMemo((()=>({prefixCls:y,csp:w})),[y,w]);let O=v?k(t):t;const P=q_.useMemo((()=>{var e,t,n;return ol((null===(e=oJ.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=S.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null==o?void 0:o.validateMessages)||{})}),[S,null==o?void 0:o.validateMessages]);Object.keys(P).length>0&&(O=q_.createElement(eJ.Provider,{value:P},t)),a&&(O=q_.createElement(lJ,{locale:a,_ANT_MARK__:"internalMark"},O)),(y||w)&&(O=q_.createElement(ZQ.Provider,{value:E},O)),i&&(O=q_.createElement(UJ,{size:i},O)),O=q_.createElement(ql,null,O);const I=q_.useMemo((()=>{const e=C||{},{algorithm:t,token:n}=e,r=BP(e,["algorithm","token"]),o=t&&(!Array.isArray(t)||t.length>0)?Ps(t):void 0;return Object.assign(Object.assign({},r),{theme:o,token:Object.assign(Object.assign({},mJ),n)})}),[C]);return h&&(O=q_.createElement(RJ.Provider,{value:I},O)),void 0!==b&&(O=q_.createElement($J,{disabled:b},O)),q_.createElement(wJ.Provider,{value:S},O)},YJ=e=>{const t=q_.useContext(wJ),n=q_.useContext(iJ);return q_.createElement(KJ,Object.assign({parentContext:t,legacyLocale:n},e))};YJ.ConfigContext=wJ,YJ.SizeContext=zJ,YJ.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(VJ=t),void 0!==n&&(GJ=n),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new qO(e),a=xl(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new qO(t.primaryColor),a=xl(e.toRgbString());a.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const i=new qO(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(i,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Ri()&&zi(n,`${TJ}-dynamic-theme`)}(Xl(),r):qJ=r)},YJ.useConfig=function(){return{componentDisabled:q_.useContext(FJ),componentSize:q_.useContext(zJ)}},Object.defineProperty(YJ,"SizeContext",{get:()=>zJ});const QJ={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"};HP=function(e){var t=q_.useContext(ZQ),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),q_.useEffect((function(){var t=Ql(e.current);zi(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},WP=["icon","className","onClick","style","primaryColor","secondaryColor"],VP={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},(GP=function(e){var t,n,r,o=e.icon,a=e.className,i=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=Sa(e,WP),p=q_.useRef(),d=VP;return l&&(d={primaryColor:l,secondaryColor:c||tc(l)}),HP(p),n=Jl(o),r="icon should be icon definiton, but got ".concat(o),Ii(n,"[@ant-design/icons] ".concat(r)),Jl(o)?((t=o)&&"function"==typeof t.icon&&(t=Di(Di({},t),{},{icon:t.icon(d.primaryColor,d.secondaryColor)})),ec(t.icon,"svg-".concat(t.name),Di(Di({className:a,onClick:i,style:s,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:p}))):null}).displayName="IconReact",GP.getTwoToneColors=function(){return Di({},VP)},GP.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;VP.primaryColor=t,VP.secondaryColor=n||tc(t),VP.calculated=!!n};const JJ=GP;qP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"],rc(aP.primary),(XP=q_.forwardRef((function(e,t){var n,r,o,a,i,s=e.className,l=e.icon,c=e.spin,u=e.rotate,p=e.tabIndex,d=e.onClick,m=e.twoToneColor,f=Sa(e,qP),g=q_.useContext(ZQ),h=g.prefixCls,b=void 0===h?"anticon":h,_=JQ(g.rootClassName,b,(xa(n={},"".concat(b,"-").concat(l.name),!!l.name),xa(n,"".concat(b,"-spin"),!!c||"loading"===l.name),n),s),y=p;return void 0===y&&d&&(y=-1),r=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,a=(o=Vi(nc(m),2))[0],i=o[1],q_.createElement("span",mi({role:"img","aria-label":l.name},f,{ref:t,tabIndex:y,onClick:d,className:_}),q_.createElement(JJ,{icon:l,primaryColor:a,secondaryColor:i,style:r}))}))).displayName="AntdIcon",XP.getTwoToneColor=function(){var e=JJ.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},XP.setTwoToneColor=rc;const ZJ=XP,eZ=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:QJ}))})),tZ={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},nZ=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:tZ}))})),rZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},oZ=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:rZ}))})),aZ={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"},iZ=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:aZ}))})),sZ={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"},lZ=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:sZ}))}));KP="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),YP="aria-",QP="data-";const{isValidElement:cZ}=bQ,uZ=e=>"object"==typeof e&&null!=e&&1===e.nodeType,pZ=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,dZ=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightat||a>e&&i=t&&s>=n?a-e-r:i>t&&sn?i-t+o:0,fZ=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},gZ=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,p="function"==typeof c?c:e=>e!==c;if(!uZ(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,m=[];let f=e;for(;uZ(f)&&p(f);){if(f=fZ(f),f===d){m.push(f);break}null!=f&&f===document.body&&dZ(f)&&!dZ(document.documentElement)||null!=f&&dZ(f,u)&&m.push(f)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:_}=window,{height:y,width:v,top:w,right:k,bottom:C,left:D}=e.getBoundingClientRect();let x="start"===s||"nearest"===s?w:"end"===s?C:w+y/2,S="center"===l?D+v/2:"end"===l?k:D;const E=[];for(let O=0;O=0&&D>=0&&C<=h&&k<=g&&w>=r&&C<=a&&D>=c&&k<=o)return E;const u=getComputedStyle(e),p=parseInt(u.borderLeftWidth,10),f=parseInt(u.borderTopWidth,10),P=parseInt(u.borderRightWidth,10),I=parseInt(u.borderBottomWidth,10);let N=0,A=0;const R="offsetWidth"in e?e.offsetWidth-e.clientWidth-p-P:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-f-I:0,j="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,$="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(d===e)N="start"===s?x:"end"===s?x-h:"nearest"===s?mZ(_,_+h,h,f,I,_+x,_+x+y,y):x-h/2,A="start"===l?S:"center"===l?S-g/2:"end"===l?S-g:mZ(b,b+g,g,p,P,b+S,b+S+v,v),N=Math.max(0,N+_),A=Math.max(0,A+b);else{N="start"===s?x-r-f:"end"===s?x-a+I+T:"nearest"===s?mZ(r,a,t,f,I+T,x,x+y,y):x-(r+t/2)+T/2,A="start"===l?S-c-p:"center"===l?S-(c+n/2)+R/2:"end"===l?S-o+P+R:mZ(c,o,n,p,P+R,S,S+v,v);const{scrollLeft:i,scrollTop:u}=e;N=Math.max(0,Math.min(u+N/$,e.scrollHeight-t/$+T)),A=Math.max(0,Math.min(i+A/j,e.scrollWidth-n/j+R)),x+=u-N,S+=i-A}E.push({el:e,top:N,left:A})}return E},hZ=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};JP={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){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=JP.F1&&t<=JP.F12)return!1;switch(t){case JP.ALT:case JP.CAPS_LOCK:case JP.CONTEXT_MENU:case JP.CTRL:case JP.DOWN:case JP.END:case JP.ESC:case JP.HOME:case JP.INSERT:case JP.LEFT:case JP.MAC_FF_META:case JP.META:case JP.NUMLOCK:case JP.NUM_CENTER:case JP.PAGE_DOWN:case JP.PAGE_UP:case JP.PAUSE:case JP.PRINT_SCREEN:case JP.RIGHT:case JP.SHIFT:case JP.UP:case JP.WIN_KEY:case JP.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=JP.ZERO&&e<=JP.NINE)return!0;if(e>=JP.NUM_ZERO&&e<=JP.NUM_MULTIPLY)return!0;if(e>=JP.A&&e<=JP.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case JP.SPACE:case JP.QUESTION_MARK:case JP.NUM_PLUS:case JP.NUM_MINUS:case JP.NUM_PERIOD:case JP.NUM_DIVISION:case JP.SEMICOLON:case JP.DASH:case JP.EQUALS:case JP.COMMA:case JP.PERIOD:case JP.SLASH:case JP.APOSTROPHE:case JP.SINGLE_QUOTE:case JP.OPEN_SQUARE_BRACKET:case JP.BACKSLASH:case JP.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ZP=q_.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.style,a=e.className,i=e.duration,s=void 0===i?4.5:i,l=e.eventKey,c=e.content,u=e.closable,p=e.closeIcon,d=void 0===p?"x":p,m=e.props,f=e.onClick,g=e.onNoticeClose,h=e.times,b=Vi(q_.useState(!1),2),_=b[0],y=b[1],v=function(){g(l)};return q_.useEffect((function(){if(!_&&s>0){var e=setTimeout((function(){v()}),1e3*s);return function(){clearTimeout(e)}}}),[s,_,h]),n="".concat(r,"-notice"),q_.createElement("div",mi({},m,{ref:t,className:JQ(n,a,xa({},"".concat(n,"-closable"),u)),style:o,onMouseEnter:function(){y(!0)},onMouseLeave:function(){y(!1)},onClick:f}),q_.createElement("div",{className:"".concat(n,"-content")},c),u&&q_.createElement("a",{tabIndex:0,className:"".concat(n,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==JP.ENTER||v()},onClick:function(e){e.preventDefault(),e.stopPropagation(),v()}},d))})),eI=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l=e.prefixCls,c=void 0===l?"rc-notification":l,u=e.container,p=e.motion,d=e.maxCount,m=e.className,f=e.style,g=e.onAllRemoved,h=Vi(q_.useState([]),2),b=h[0],_=h[1],y=function(e){var t,n=b.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),_((function(t){return t.filter((function(t){return t.key!==e}))}))};return q_.useImperativeHandle(t,(function(){return{open:function(e){_((function(t){var n,r=ki(t),o=r.findIndex((function(t){return t.key===e.key})),a=Di({},e);return o>=0?(a.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=a):(a.times=0,r.push(a)),d>0&&r.length>d&&(r=r.slice(-d)),r}))},close:function(e){y(e)},destroy:function(){_([])}}})),n=Vi(q_.useState({}),2),r=n[0],o=n[1],q_.useEffect((function(){var e={};b.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(r).forEach((function(t){e[t]=e[t]||[]})),o(e)}),[b]),a=function(e){o((function(t){var n=Di({},t);return(n[e]||[]).length||delete n[e],n}))},i=q_.useRef(!1),q_.useEffect((function(){Object.keys(r).length>0?i.current=!0:i.current&&(null==g||g(),i.current=!1)}),[r]),u?(s=Object.keys(r),sD.createPortal(q_.createElement(q_.Fragment,null,s.map((function(e){var t=r[e].map((function(e){return{config:e,key:e.key}})),n="function"==typeof p?p(e):p;return q_.createElement(HJ,mi({key:e,className:JQ(c,"".concat(c,"-").concat(e),null==m?void 0:m(e)),style:null==f?void 0:f(e),keys:t,motionAppear:!0},n,{onAllRemoved:function(){a(e)}}),(function(e,t){var n=e.config,r=e.style,o=n.key,a=n.times,i=n.style;return q_.createElement(ZP,mi({},n,{ref:t,prefixCls:c,className:JQ(e.className,n.className),style:Di(Di({},r),i),times:a,key:o,eventKey:o,onNoticeClose:y}))}))}))),u)):null})),tI=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],nI=function(){return document.body},rI=0;const bZ=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:p,marginXS:d,paddingXS:m,borderRadiusLG:f,zIndexPopup:g,contentPadding:h,contentBg:b}=e,_=`${t}-notice`,y=new tO("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),v=new tO("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:m,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:c},[`${_}-content`]:{display:"inline-block",padding:h,background:b,borderRadius:f,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},DJ(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:v,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[_]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},_Z=jl("Message",(e=>{const t=$l(e,{height:150});return[bZ(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),yZ={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"},vZ=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:yZ}))}));oI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=kZ,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:p}=q_.useContext(wJ),d=r||u("message"),[,m]=_Z(d),f=q_.createElement("span",{className:`${d}-close-x`},q_.createElement(oZ,{className:`${d}-close-icon`})),[g,h]=lc({prefixCls:d,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>JQ(m,s?`${d}-rtl`:""),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(d,l),closable:!1,closeIcon:f,duration:i,getContainer:()=>(null==o?void 0:o())||(null==p?void 0:p())||document.body,maxCount:a,onAllRemoved:c});return q_.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:d,hashId:m}))),h}));let DZ=0;sI=(iI=Di({},yQ)).version,lI=iI.render,cI=iI.unmountComponentAtNode;try{Number((sI||"").split(".")[0])>=18&&(uI=iI.createRoot)}catch(bY){}pI="__rc_react_root__";const xZ=function(e){var t,n;if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox&&((t=e.getBBox()).width||t.height))return!0;if(e.getBoundingClientRect&&((n=e.getBoundingClientRect()).width||n.height))return!0}return!1},SZ=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},EZ=jl("Wave",(e=>[SZ(e)])),OZ=e=>{function t(){const e=getComputedStyle(r);i(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Cc(t)?t:Cc(n)?n:Cc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;u(t?r.offsetLeft:Dc(-parseFloat(n))),d(t?r.offsetTop:Dc(-parseFloat(o))),f(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:p}=e;l([a,s,p,c].map((e=>Dc(parseFloat(e)))))}const{className:n,target:r}=e,o=q_.useRef(null),[a,i]=q_.useState(null),[s,l]=q_.useState([]),[c,u]=q_.useState(0),[p,d]=q_.useState(0),[m,f]=q_.useState(0),[g,h]=q_.useState(0),[b,_]=q_.useState(!1),y={left:c,top:p,width:m,height:g,borderRadius:s.map((e=>`${e}px`)).join(" ")};return a&&(y["--wave-color"]=a),q_.useEffect((()=>{if(r){const e=UO((()=>{t(),_(!0)}));let n;return"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(r)),()=>{UO.cancel(e),null==n||n.disconnect()}}}),[]),b?q_.createElement(BJ,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;wc(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:t}=e;return q_.createElement("div",{ref:o,className:JQ(n,t),style:y})})):null},PZ=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=q_.useContext(wJ),o=q_.useRef(null),a=r("wave"),[,i]=EZ(a),s=(l=o,c=JQ(a,i),function(){!function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),bc(q_.createElement(OZ,{target:e,className:t}),n)}(l.current,c)});var l,c;return hQ.useEffect((()=>{const e=o.current;if(!e||1!==e.nodeType||n)return;const t=t=>{"INPUT"===t.target.tagName||!xZ(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s()};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),hQ.isValidElement(t)?sc(t,{ref:Hs(t)?zs(t.ref,o):o}):null!=t?t:null},IZ=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},NZ=e=>{const{componentCls:t}=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"}}}},AZ=jl("Space",(e=>[NZ(e),IZ(e)]),(()=>({})),{resetStyle:!1});dI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=q_.useContext(RZ),r=q_.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,i="vertical"===r?"-vertical-":"-";return JQ({[`${e}-compact${i}item`]:!0,[`${e}-compact${i}first-item`]:o,[`${e}-compact${i}last-item`]:a,[`${e}-compact${i}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},jZ=e=>{let{children:t}=e;return q_.createElement(RZ.Provider,{value:null},t)},$Z=e=>{var{children:t}=e,n=dI(e,["children"]);return q_.createElement(RZ.Provider,{value:n},t)},FZ=q_.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=JQ(`${a}-icon`,n);return hQ.createElement("span",{ref:t,className:i,style:r},o)})),MZ=q_.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=JQ(`${n}-loading-icon`,r);return hQ.createElement(FZ,{prefixCls:n,className:i,style:o,ref:t},hQ.createElement(vZ,{className:a}))})),LZ=()=>({width:0,opacity:0,transform:"scale(0)"}),UZ=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),zZ=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e;const i=!!n;return r?hQ.createElement(MZ,{prefixCls:t,className:o,style:a}):hQ.createElement(BJ,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:LZ,onAppearActive:UZ,onEnterStart:LZ,onEnterActive:UZ,onLeaveStart:UZ,onLeaveActive:LZ},((e,n)=>{let{className:r,style:i}=e;return hQ.createElement(MZ,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),i),ref:n,iconClassName:r})}))};mI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),GZ=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},VZ(`${t}-primary`,o),VZ(`${t}-danger`,a)]}},qZ=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},OJ(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},XZ=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),KZ=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),YZ=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),QZ=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),JZ=(e,t,n,r,o,a,i)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},XZ(Object.assign({backgroundColor:"transparent"},a),Object.assign({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),ZZ=e=>({"&:disabled":Object.assign({},QZ(e))}),e0=e=>Object.assign({},ZZ(e)),t0=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),n0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e0(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),XZ({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),JZ(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},XZ({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),JZ(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ZZ(e))}),r0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e0(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),XZ({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),JZ(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},XZ({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),JZ(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ZZ(e))}),o0=e=>Object.assign(Object.assign({},n0(e)),{borderStyle:"dashed"}),a0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},XZ({color:e.colorLinkHover},{color:e.colorLinkActive})),t0(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},XZ({color:e.colorErrorHover},{color:e.colorErrorActive})),t0(e))}),i0=e=>Object.assign(Object.assign(Object.assign({},XZ({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),t0(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},t0(e)),XZ({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),s0=e=>Object.assign(Object.assign({},QZ(e)),{[`&${e.componentCls}:hover`]:Object.assign({},QZ(e))}),l0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:n0(e),[`${t}-primary`]:r0(e),[`${t}-dashed`]:o0(e),[`${t}-link`]:a0(e),[`${t}-text`]:i0(e),[`${t}-disabled`]:s0(e)}},c0=function(e,t){let n=arguments.length>1&&void 0!==t?t:"";const{componentCls:r,controlHeight:o,fontSize:a,lineHeight:i,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e;return[{[`${r}${n}`]:{fontSize:a,height:o,padding:`${Math.max(0,(o-a*i)/2-s)}px ${c-s}px`,borderRadius:l,[`&${r}-icon-only`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${n}`]:KZ(e)},{[`${r}${r}-round${n}`]:YZ(e)}]},u0=e=>c0(e),p0=e=>{const t=$l(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return c0(t,`${e.componentCls}-sm`)},d0=e=>{const t=$l(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return c0(t,`${e.componentCls}-lg`)},m0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},f0=jl("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=$l(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return[qZ(r),p0(r),u0(r),d0(r),m0(r),l0(r),GZ(r),Oc(e),Ic(e)]}));fI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:p,className:d,rootClassName:m,children:f,icon:g,ghost:h=!1,block:b=!1,htmlType:_="button",classNames:y,style:v={}}=e,w=fI(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:k,autoInsertSpaceInButton:C,direction:D,button:x}=q_.useContext(wJ),S=k("btn",a),[E,O]=f0(S),P=q_.useContext(FJ),I=null!=p?p:P,N=q_.useContext(BZ),A=q_.useMemo((()=>function(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(o)),[o]),[R,T]=q_.useState(A.loading),[j,$]=q_.useState(!1),F=zs(t,q_.createRef()),M=1===q_.Children.count(f)&&!g&&!xc(i);q_.useEffect((()=>{let e=null;return A.delay>0?e=setTimeout((()=>{e=null,T(!0)}),A.delay):T(A.loading),function(){e&&(clearTimeout(e),e=null)}}),[A]),q_.useEffect((()=>{F&&F.current&&!1!==C&&(M&&WZ(F.current.textContent)?j||$(!0):j&&$(!1))}),[F]);const L=t=>{const{onClick:n}=e;R||I?t.preventDefault():null==n||n(t)},U=!1!==C,{compactSize:z,compactItemClassnames:B}=TZ(S,D),H=MJ((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:z)&&void 0!==t?t:N)&&void 0!==n?n:e})),W=H&&{large:"lg",small:"sm",middle:void 0}[H]||"",V=R?"loading":g,G=Qs(w,["navigate"]),q=void 0!==G.href&&I,X=JQ(S,O,{[`${S}-${l}`]:"default"!==l&&l,[`${S}-${i}`]:i,[`${S}-${W}`]:W,[`${S}-icon-only`]:!f&&0!==f&&!!V,[`${S}-background-ghost`]:h&&!xc(i),[`${S}-loading`]:R,[`${S}-two-chinese-chars`]:j&&U&&!R,[`${S}-block`]:b,[`${S}-dangerous`]:!!s,[`${S}-rtl`]:"rtl"===D,[`${S}-disabled`]:q},B,d,m,null==x?void 0:x.className),K=Object.assign(Object.assign({},null==x?void 0:x.style),v),Y=JQ(null==y?void 0:y.icon,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.icon),Q=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==x?void 0:x.styles)||void 0===r?void 0:r.icon)||{}),J=g&&!R?hQ.createElement(FZ,{prefixCls:S,className:Y,style:Q},g):hQ.createElement(zZ,{existIcon:!!g,prefixCls:S,loading:!!R}),Z=f||0===f?function(e,t){let n=!1;const r=[];return hQ.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1;r[t]=`${r[t]}${e}`}else r.push(e);n=o})),hQ.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&WZ(e.props.children)?sc(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?WZ(e)?hQ.createElement("span",null,e.split("").join(n)):hQ.createElement("span",null,e):ic(e)?hQ.createElement("span",null,e):e}(e,t)))}(f,M&&U):null;if(void 0!==G.href)return E(hQ.createElement("a",Object.assign({},G,{className:X,style:K,onClick:L,ref:F}),J,Z));let ee=hQ.createElement("button",Object.assign({},w,{type:_,className:X,style:K,onClick:L,disabled:I,ref:F}),J,Z);return xc(i)||(ee=hQ.createElement(PZ,{disabled:!!R},ee)),E(ee)},h0=q_.forwardRef(g0);h0.Group=e=>{const{getPrefixCls:t,direction:n}=q_.useContext(wJ),{prefixCls:r,size:o,className:a}=e,i=mI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ll();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=JQ(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},a,l);return q_.createElement(BZ.Provider,{value:o},q_.createElement("div",Object.assign({},i,{className:u})))},h0.__ANT_BUTTON=!0;const b0=h0,_0=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=q_.useRef(!1),p=q_.useRef(null),[d,m]=Al(!1),f=function(){null==a||a.apply(void 0,arguments)};return q_.useEffect((()=>{let e=null;return i&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),q_.createElement(b0,Object.assign({},Nc(t),{onClick:e=>{if(u.current)return;if(u.current=!0,!c)return void f();let t;if(s){if(t=c(e),l&&!Ac(t))return u.current=!1,void f(e)}else if(c.length)t=c(a),u.current=!1;else if(t=c(),!t)return void f();(e=>{Ac(e)&&(m(!0),e.then((function(){m(!1,!0),f.apply(void 0,arguments),u.current=!1}),(e=>(m(!1,!0),u.current=!1,Promise.reject(e)))))})(t)},loading:d,prefixCls:r},o,{ref:p}),n)},y0=()=>({height:0,opacity:0}),v0=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},w0=e=>({height:e?e.offsetHeight:0}),k0=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,C0=function(e){return{motionName:`${arguments.length>0&&void 0!==e?e:"ant"}-motion-collapse`,onAppearStart:y0,onEnterStart:y0,onAppearActive:v0,onEnterActive:v0,onLeaveStart:w0,onLeaveActive:y0,onAppearEnd:k0,onEnterEnd:k0,onLeaveEnd:k0,motionDeadline:500}},D0=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",x0=(e,t,n)=>void 0!==n?n:`${e}-${t}`;gI=q_.createContext(null),hI=[],_I="rc-util-locker-".concat(Date.now()),yI=0,vI=function(e){return!1!==e&&(Ri()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},wI=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C=e.open,D=e.autoLock,x=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,a=Vi(q_.useState(C),2),i=a[1],s=a[0]||C,q_.useEffect((function(){(r||C)&&i(C)}),[C,r]),c=(l=Vi(q_.useState((function(){return vI(x)})),2))[0],u=l[1],q_.useEffect((function(){var e=vI(x);u(null!=e?e:null)})),p=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=Vi(q_.useState((function(){return Ri()?document.createElement("div"):null})),1)[0],o=q_.useRef(!1),a=q_.useContext(gI),i=Vi(q_.useState(hI),2),s=i[0],l=i[1],c=a||(o.current?void 0:function(e){l((function(t){return[e].concat(ki(t))}))});return lP((function(){return e?a?a(t):t():n(),n}),[e]),lP((function(){s.length&&(s.forEach((function(e){return e()})),l(hI))}),[s]),[r,c]}(s&&!c),m=(d=Vi(p,2))[0],f=d[1],g=null!=c?c:m,v=D&&C&&Ri()&&(g===m||g===document.body),w=!!v,k=Vi(q_.useState((function(){return yI+=1,"".concat(_I,"_").concat(yI)})),1)[0],lP((function(){var e,t,n,r,o,a,i;return w?(e="undefined"==typeof document?0:(void 0===bI&&((n=document.createElement("div")).style.width="100%",n.style.height="200px",(o=(r=document.createElement("div")).style).position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",r.appendChild(n),document.body.appendChild(r),a=n.offsetWidth,r.style.overflow="scroll",a===(i=n.offsetWidth)&&(i=r.clientWidth),document.body.removeChild(r),bI=a-i),bI),t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,zi("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),k)):Ui(k),function(){Ui(k)}}),[w,k]),h=null,o&&Hs(o)&&t&&(h=o.ref),b=Bs(h,t),s&&Ri()&&void 0!==c?(_=!1===g||false,y=o,t&&(y=q_.cloneElement(o,{ref:b})),q_.createElement(gI.Provider,{value:f},_?y:sD.createPortal(y,g))):null})),kI=0;const S0=q_.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));CI={width:0,height:0,overflow:"hidden",outline:"none"},DI=hQ.forwardRef((function(e,t){var n,r,o,a,i,s=e.prefixCls,l=e.className,c=e.style,u=e.title,p=e.ariaId,d=e.footer,m=e.closable,f=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,_=e.bodyProps,y=e.modalRender,v=e.onMouseDown,w=e.onMouseUp,k=e.holderRef,C=e.visible,D=e.forceRender,x=e.width,S=e.height,E=q_.useRef(),O=q_.useRef();return hQ.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?E.current.focus():e||t!==E.current||O.current.focus()}}})),n={},void 0!==x&&(n.width=x),void 0!==S&&(n.height=S),d&&(r=hQ.createElement("div",{className:"".concat(s,"-footer")},d)),u&&(o=hQ.createElement("div",{className:"".concat(s,"-header")},hQ.createElement("div",{className:"".concat(s,"-title"),id:p},u))),m&&(a=hQ.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(s,"-close")},f||hQ.createElement("span",{className:"".concat(s,"-close-x")}))),i=hQ.createElement("div",{className:"".concat(s,"-content")},a,o,hQ.createElement("div",mi({className:"".concat(s,"-body"),style:b},_),h),r),hQ.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?p:null,"aria-modal":"true",ref:k,style:Di(Di({},c),n),className:JQ(s,l),onMouseDown:v,onMouseUp:w},hQ.createElement("div",{tabIndex:0,ref:E,style:CI,"aria-hidden":"true"}),hQ.createElement(S0,{shouldUpdate:C||D},y?y(i):i),hQ.createElement("div",{tabIndex:0,ref:O,style:CI,"aria-hidden":"true"}))})),(xI=q_.forwardRef((function(e,t){function n(){var e,t,n,r,o,a=((n={left:(t=(e=f.current).getBoundingClientRect()).left,top:t.top}).left+=jc(o=(r=e.ownerDocument).defaultView||r.parentWindow),n.top+=jc(o,!0),n);b(m?"".concat(m.x-a.left,"px ").concat(m.y-a.top,"px"):"")}var r=e.prefixCls,o=e.title,a=e.style,i=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,p=e.ariaId,d=e.onVisibleChanged,m=e.mousePosition,f=q_.useRef(),g=Vi(q_.useState(),2),h=g[0],b=g[1],_={};return h&&(_.transformOrigin=h),q_.createElement(BJ,{visible:s,onVisibleChanged:d,onAppearPrepare:n,onEnterPrepare:n,forceRender:l,motionName:u,removeOnLeave:c,ref:f},(function(n,s){var l=n.className;return q_.createElement(DI,mi({},e,{ref:t,title:o,ariaId:p,prefixCls:r,holderRef:s,style:Di(Di(Di({},n.style),a),_),className:JQ(i,l)}))}))}))).displayName="Content",(SI=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,i=e.afterClose,s=Vi(q_.useState(t),2),l=s[0],c=s[1];return q_.useEffect((function(){t&&c(!0)}),[t]),r||!a||l?q_.createElement(wI,{open:t||r||l,autoDestroy:!1,getContainer:n,autoLock:t||l},q_.createElement(Fc,mi({},e,{destroyOnClose:a,afterClose:function(){null==i||i(),c(!1)}}))):null}).displayName="Dialog";const E0=()=>Ri()&&window.document.documentElement;let O0;EI="RC_FORM_INTERNAL_HOOKS",PI=q_.createContext({getFieldValue:OI=function(){Ii(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},getFieldsValue:OI,getFieldError:OI,getFieldWarning:OI,getFieldsError:OI,isFieldsTouched:OI,isFieldTouched:OI,isFieldValidating:OI,isFieldsValidating:OI,resetFields:OI,setFields:OI,setFieldValue:OI,setFieldsValue:OI,validateFields:OI,submit:OI,getInternalHooks:function(){return OI(),{dispatch:OI,initEntityValue:OI,registerField:OI,useSubscribe:OI,setInitialValues:OI,destroyForm:OI,setCallbacks:OI,registerWatch:OI,getFields:OI,setValidateMessages:OI,setPreserve:OI,getInitialValue:OI}}}),II=q_.createContext(null),NI=/%[sdj%]/g,AI=function(){},RI=function(e){function t(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,zc(n,r),t}(Hc(Error)),$I=function(){var e,t,n,r,o,a,i,s,l,c,u;return jI||(e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o=("\n(?:\n(?:"+(r="[a-fA-F\\d]{1,4}")+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+(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+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),(l=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")}).v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")},c=l.v4().source,u=l.v6().source,jI=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[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"]*)?$)',"i"))},FI=/^(([^<>()\[\]\\.,;:\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,}))$/,MI=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,LI={integer:function(e){return LI.number(e)&&parseInt(e,10)===e},float:function(e){return LI.number(e)&&!LI.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(bY){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!LI.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(FI)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match($I())},hex:function(e){return"string"==typeof e&&!!e.match(MI)}},UI=function(e,t,n,r,o){var a;e.required&&void 0===t?TI(e,t,n,r,o):["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a=e.type)>-1?LI[a](t)||r.push(Vc(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(Vc(o.messages.types[a],e.fullField,e.type))},zI="enum",BI={required:TI=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!Gc(t,a||e.type)||r.push(Vc(o.messages.required,e.fullField))},whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Vc(o.messages.whitespace,e.fullField))},type:UI,range:function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,p="string"==typeof t,d=Array.isArray(t);if(u?c="number":p?c="string":d&&(c="array"),!c)return!1;d&&(l=t.length),p&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&r.push(Vc(o.messages[c].len,e.fullField,e.len)):i&&!s&&le.max?r.push(Vc(o.messages[c].max,e.fullField,e.max)):i&&s&&(le.max)&&r.push(Vc(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[zI]=Array.isArray(e[zI])?e[zI]:[],-1===e[zI].indexOf(t)&&r.push(Vc(o.messages[zI],e.fullField,e[zI].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Vc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Vc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},WI={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t,"string")&&!e.required)return n();BI.required(e,t,r,a,o,"string"),Gc(t,"string")||(BI.type(e,t,r,a,o),BI.range(e,t,r,a,o),BI.pattern(e,t,r,a,o),!0===e.whitespace&&BI.whitespace(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o),void 0!==t&&BI.type(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o),void 0!==t&&(BI.type(e,t,r,a,o),BI.range(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o),void 0!==t&&BI.type(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o),Gc(t)||BI.type(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o),void 0!==t&&(BI.type(e,t,r,a,o),BI.range(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o),void 0!==t&&(BI.type(e,t,r,a,o),BI.range(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();BI.required(e,t,r,a,o,"array"),null!=t&&(BI.type(e,t,r,a,o),BI.range(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o),void 0!==t&&BI.type(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o),void 0!==t&&BI.enum(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t,"string")&&!e.required)return n();BI.required(e,t,r,a,o),Gc(t,"string")||BI.pattern(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t,"date")&&!e.required)return n();BI.required(e,t,r,i,o),Gc(t,"date")||(a=t instanceof Date?t:new Date(t),BI.type(e,a,r,i,o),a&&BI.range(e,a.getTime(),r,i,o))}n(i)},url:HI=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t,a)&&!e.required)return n();BI.required(e,t,r,i,o,a),Gc(t,a)||BI.type(e,t,r,i,o)}n(i)},hex:HI,email:HI,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;BI.required(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();BI.required(e,t,r,a,o)}n(a)}},VI=Yc(),GI=function(){function e(e){this.rules=null,this._messages=VI,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new 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]}))},t.messages=function(e){return e&&(this._messages=Kc(Yc(),e)),this._messages},t.validate=function(t,n,r){var o,a,i,s,l,c,u=this;return void 0===n&&(n={}),void 0===r&&(r=function(){}),o=t,i=r,"function"==typeof(a=n)&&(i=a,a={}),this.rules&&0!==Object.keys(this.rules).length?(a.messages?((s=this.messages())===VI&&(s=Yc()),Kc(s,a.messages),a.messages=s):a.messages=this.messages(),l={},(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o[e];u.rules[e].forEach((function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=Lc({},o)),n=o[e]=a.transform(n)),(a="function"==typeof a?{validator:a}:Lc({},a)).validator=u.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=u.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:n,source:o,field:e}))}))})),c={},function(e,t,n,r,o){var a,i,s,l,c,u,p;return t.first?(a=new Promise((function(t,a){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);qc(i,n,(function(e){return r(e),e.length?a(new RI(e,Wc(e))):t(o)}))})),a.catch((function(e){return e})),a):(i=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],p=new Promise((function(t,a){var p=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?a(new RI(u,Wc(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?qc(r,n,p):function(e,t,n){function r(e){o.push.apply(o,e||[]),++a===i&&n(o)}var o=[],a=0,i=e.length;e.forEach((function(e){t(e,r)}))}(r,n,p)}))})),p.catch((function(e){return e})),p)}(l,a,(function(t,n){function r(e,t){return Lc({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function i(i){var s,p,d,m,f;if(void 0===i&&(i=[]),s=Array.isArray(i)?i:[i],!a.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==l.message&&(s=[].concat(l.message)),p=s.map(Xc(l,o)),a.first&&p.length)return c[l.field]=1,n(p);if(u){if(l.required&&!t.value)return void 0!==l.message?p=[].concat(l.message).map(Xc(l,o)):a.error&&(p=[a.error(l,Vc(a.messages.required,l.field))]),n(p);d={},l.defaultField&&Object.keys(t.value).map((function(e){d[e]=l.defaultField})),d=Lc({},d,t.rule.fields),m={},Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];m[e]=n.map(r.bind(null,e))})),(f=new e(m)).messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),f.validate(t.value,t.rule.options||a,(function(e){var t=[];p&&p.length&&t.push.apply(t,p),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(p)}var s,l=t.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!=typeof l.fields&&"object"!=typeof l.defaultField);if(u=u&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)s=l.asyncValidator(l,t.value,i,t.source,a);else if(l.validator){try{s=l.validator(l,t.value,i,t.source,a)}catch(p){console,a.suppressValidatorError||setTimeout((function(){throw p}),0),i(p.message)}!0===s?i():!1===s?i("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):s instanceof Array?i(s):s instanceof Error&&i(s.message)}s&&s.then&&s.then((function(){return i()}),(function(e){return i(e)}))}),(function(e){!function(e){var t,n,r,a=[],s={};for(t=0;t0&&void 0!==e?e:JI;r.validatePromise===l&&(r.validatePromise=null,n=[],o=[],null===(t=a.forEach)||void 0===t||t.call(a,(function(e){var t=e.errors,r=void 0===t?JI:t;e.rule.warningOnly?o.push.apply(o,ki(r)):n.push.apply(n,ki(r))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender())})),p):[]}));return s||(r.validatePromise=l,r.dirty=!0,r.errors=JI,r.warnings=JI,r.triggerMetaEvent(),r.reRender()),l},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(EI).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}},r.getOnlyChild=function(e){var t,n;return"function"==typeof e?(t=r.getMeta(),Di(Di({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})):1===(n=Ls(e)).length&&q_.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return el(e||t(!0),n)},r.getControlled=function(e){var t=arguments.length>0&&void 0!==e?e:{},n=r.props,o=n.trigger,a=n.validateTrigger,i=n.getValueFromEvent,s=n.normalize,l=n.valuePropName,c=n.getValueProps,u=n.fieldContext,p=void 0!==a?a:u.validateTrigger,d=r.getNamePath(),m=u.getFieldsValue,f=(0,u.getInternalHooks)(EI).dispatch,g=r.getValue(),h=c||function(e){return xa({},l,e)},b=t[o],_=Di(Di({},t),h(g));return _[o]=function(){var e,t,n,o;for(r.touched=!0,r.dirty=!0,r.triggerMetaEvent(),t=arguments.length,n=new Array(t),o=0;o=0&&t<=n.length?(c.keys=[].concat(ki(c.keys.slice(0,t)),[c.id],ki(c.keys.slice(t))),o([].concat(ki(n.slice(0,t)),[e],ki(n.slice(t))))):(c.keys=[].concat(ki(c.keys),[c.id]),o([].concat(ki(n),[e]))),c.id+=1},remove:function(e){var t=i(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=i();e<0||e>=n.length||t<0||t>=n.length||(c.keys=lu(c.keys,e,t),o(lu(n,e,t)))}}},p=(void 0===n?[]:n)||[];return Array.isArray(p)||(p=[]),r(p.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),l,t)}))))},tN="__@field_split__",nN=function(){function e(){Oa(this,e),this.kvs=new Map}return Ia(e,[{key:"set",value:function(e,t){this.kvs.set(pu(e),t)}},{key:"get",value:function(e){return this.kvs.get(pu(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(pu(e))}},{key:"map",value:function(e){return ki(this.kvs.entries()).map((function(t){var n=Vi(t,2),r=n[1],o=n[0].split(tN);return e({key:o.map((function(e){var t=Vi(e.match(/^([^:]*):(.*)$/),3),n=t[2];return"number"===t[1]?Number(n):n})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.value;return e[t.key.join(".")]=n,null})),e}}]),e}(),rN=["name"],oN=Ia((function e(t){var n=this;Oa(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===EI?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Ii(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){var r,o;n.initialValues=e||{},t&&(o=ol(e,n.store),null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=nl(o,n,el(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o))},this.destroyForm=function(){var e=new nN;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=el(n.initialValues,e);return e.length?ol(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}},this.notifyWatch=function(e){var t,r,o=arguments.length>0&&void 0!==e?e:[];n.watchList.length&&(t=n.getFieldsValue(),r=n.getFieldsValue(!0),n.watchList.forEach((function(e){e(t,r,o)})))},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(e){return arguments.length>0&&void 0!==e&&e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(e){var t=arguments.length>0&&void 0!==e&&e,r=new nN;return n.getFieldEntities(t).forEach((function(e){var t=e.getNamePath();r.set(t,e)})),r},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ru(e);return t.get(n)||{INVALIDATE_NAME_PATH:ru(e)}}))},this.getFieldsValue=function(e,t){var r,o;return n.warningUnhooked(),!0!==e||t?(r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[],r.forEach((function(n){var r,a,i="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();!e&&(null===(r=n.isListField)||void 0===r?void 0:r.call(n))||(t?(a="getMeta"in n?n.getMeta():null,t(a)&&o.push(i)):o.push(i))})),ou(n.store,o.map(ru))):n.store},this.getFieldValue=function(e){n.warningUnhooked();var t=ru(e);return el(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:ru(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){var t;return n.warningUnhooked(),t=ru(e),n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){var t;return n.warningUnhooked(),t=ru(e),n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){var e,t,r,o,a,i,s,l,c,u,p,d;for(n.warningUnhooked(),e=arguments.length,t=new Array(e),r=0;r0&&void 0!==e?e:{},a=new nN,i=n.getFieldEntities(!0);i.forEach((function(e){var t,n=e.props.initialValue,r=e.getNamePath();void 0!==n&&((t=a.get(r)||new Set).add({entity:e,value:n}),a.set(r,t))})),t=function(e){e.forEach((function(e){var t,r,i;void 0!==e.props.initialValue&&(t=e.getNamePath(),void 0!==n.getInitialValue(t)?Ii(!1,"Form already set 'initialValues' with path '".concat(t.join("."),"'. Field can not overwrite it.")):(r=a.get(t))&&r.size>1?Ii(!1,"Multiple Field with path '".concat(t.join("."),"' set 'initialValue'. Can not decide which one to pick.")):r&&(i=n.getFieldValue(t),o.skipExist&&void 0!==i||n.updateStore(nl(n.store,t,ki(r)[0].value))))}))},o.entities?r=o.entities:o.namePathList?(r=[],o.namePathList.forEach((function(e){var t,n=a.get(e);n&&(t=r).push.apply(t,ki(ki(n).map((function(e){return e.entity}))))}))):r=i,t(r)},this.resetFields=function(e){var t,r;if(n.warningUnhooked(),t=n.store,!e)return n.updateStore(ol(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();(r=e.map(ru)).forEach((function(e){var t=n.getInitialValue(e);n.updateStore(nl(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){var t,r;n.warningUnhooked(),t=n.store,r=[],e.forEach((function(e){var o=e.name,a=Sa(e,rN),i=ru(o);r.push(i),"value"in a&&n.updateStore(nl(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Di(Di({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t,r=e.props.initialValue;void 0!==r&&(t=e.getNamePath(),void 0===el(n.store,t)&&n.updateStore(nl(n.store,t,r)))},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){var t,r;return n.fieldEntities.push(e),t=e.getNamePath(),n.notifyWatch([t]),void 0!==e.props.initialValue&&(r=n.store,n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})),function(r,o,a){var i,s,l=arguments.length>2&&void 0!==a?a:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),n.isMergedPreserve(o)||r&&!(l.length>1)||(i=r?void 0:n.getInitialValue(t),t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!iu(e.getNamePath(),t)}))&&(n.updateStore(nl(s=n.store,t,i,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t))),n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":n.updateValue(e.namePath,e.value);break;case"validateField":n.validateFields([e.namePath],{triggerName:e.triggerName})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=Di(Di({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(ki(r))}),r},this.updateValue=function(e,t){var r,o,a=ru(e),i=n.store;n.updateStore(nl(n.store,a,t)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]),r=n.triggerDependenciesUpdate(i,a),(o=n.callbacks.onValuesChange)&&o(ou(n.store,[a]),n.getFieldsValue()),n.triggerOnFieldsChange([a].concat(ki(r)))},this.setFieldsValue=function(e){var t,r;n.warningUnhooked(),t=n.store,e&&(r=ol(n.store,e),n.updateStore(r)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new nN;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ru(t);o.update(n,(function(t){var n=arguments.length>0&&void 0!==t?t:new Set;return n.add(e),n}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r,o,a=n.callbacks.onFieldsChange;a&&(r=n.getFields(),t&&(o=new nN,t.forEach((function(e){o.set(e.name,e.errors)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))),a(r.filter((function(t){return au(e,t.name)})),r))},this.validateFields=function(e,t){var r,o,a,i,s,l,c;return n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e,i=(a=!!r)?r.map(ru):[],s=[],n.getFieldEntities(!0).forEach((function(e){var t,l,c,u;a||i.push(e.getNamePath()),(null===(t=o)||void 0===t?void 0:t.recursive)&&a&&(l=e.getNamePath()).every((function(e,t){return r[t]===e||void 0===r[t]}))&&i.push(l),e.props.rules&&e.props.rules.length&&(c=e.getNamePath(),a&&!au(i,c)||(u=e.validateRules(Di({validateMessages:Di(Di({},XI),n.validateMessages)},o)),s.push(u.then((function(){return{name:c,errors:[],warnings:[]}})).catch((function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.errors;e.rule.warningOnly?r.push.apply(r,ki(t)):n.push.apply(n,ki(t))})),n.length?Promise.reject({name:c,errors:n,warnings:r}):{name:c,errors:n,warnings:r}})))))})),l=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,a){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))}))}))})):Promise.resolve([])}(s),n.lastValidatePromise=l,l.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)})),(c=l.then((function(){return n.lastValidatePromise===l?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==l})}))).catch((function(e){return e})),n.triggerOnFieldsChange(i),c},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t})),aN=q_.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),iN=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=q_.useContext(aN),i=q_.useRef({});return q_.createElement(aN.Provider,{value:Di(Di({},a),{},{validateMessages:Di(Di({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:i.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(i.current=Di(Di({},i.current),{},xa({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Di({},i.current);delete t[e],i.current=t,a.unregisterForm(e)}})},o)},sN=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],lN=function(e,t){var n,r,o,a,i,s,l=e.name,c=e.initialValues,u=e.fields,p=e.form,d=e.preserve,m=e.children,f=e.component,g=void 0===f?"form":f,h=e.validateMessages,b=e.validateTrigger,_=void 0===b?"onChange":b,y=e.onValuesChange,v=e.onFieldsChange,w=e.onFinish,k=e.onFinishFailed,C=Sa(e,sN),D=q_.useContext(aN),x=Vi(du(p),1)[0],S=x.getInternalHooks(EI),E=S.useSubscribe,O=S.setInitialValues,P=S.setCallbacks,I=S.setValidateMessages,N=S.setPreserve,A=S.destroyForm;return q_.useImperativeHandle(t,(function(){return x})),q_.useEffect((function(){return D.registerForm(l,x),function(){D.unregisterForm(l)}}),[D,x,l]),I(Di(Di({},D.validateMessages),h)),P({onValuesChange:y,onFieldsChange:function(e){if(D.triggerFormChange(l,e),v){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{}}),I0=q_.createContext(null),N0=e=>{const t=Qs(e,["prefixCls"]);return q_.createElement(iN,Object.assign({},t))},A0=q_.createContext({prefixCls:""}),R0=q_.createContext({}),T0=e=>{let{children:t,status:n,override:r}=e;const o=q_.useContext(R0),a=q_.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return q_.createElement(R0.Provider,{value:a},t)},j0=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:l}=e,[c]=sJ("Modal",il());return hQ.createElement(hQ.Fragment,null,hQ.createElement(b0,Object.assign({onClick:i},l),r||(null==c?void 0:c.cancelText)),hQ.createElement(b0,Object.assign({},Nc(n),{loading:o,onClick:a},s),t||(null==c?void 0:c.okText)))},$0=e=>({animationDuration:e,animationFillMode:"both"}),F0=e=>({animationDuration:e,animationFillMode:"both"}),M0=function(e,t,n,r,o){const a=arguments.length>4&&void 0!==o&&o?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:Object.assign(Object.assign({},$0(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},F0(r)),{animationPlayState:"paused"}),[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},L0=new tO("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),U0=new tO("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),z0=function(e,t){let n=arguments.length>1&&void 0!==t&&t;const{antCls:r}=e,o=`${r}-fade`,a=n?"&":"";return[M0(o,L0,U0,e.motionDurationMid,n),{[`\n ${a}${o}-enter,\n ${a}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${o}-leave`]:{animationTimingFunction:"linear"}}]},B0=new tO("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),H0=new tO("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),W0=new tO("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V0=new tO("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),G0=new tO("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),q0=new tO("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),X0={"move-up":{inKeyframes:new tO("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 tO("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:B0,outKeyframes:H0},"move-left":{inKeyframes:W0,outKeyframes:V0},"move-right":{inKeyframes:G0,outKeyframes:q0}},K0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=X0[t];return[M0(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Y0=new tO("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Q0=new tO("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),J0=new tO("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Z0=new tO("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),e1=new tO("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),t1=new tO("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),n1=new tO("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),r1=new tO("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),o1={"slide-up":{inKeyframes:Y0,outKeyframes:Q0},"slide-down":{inKeyframes:J0,outKeyframes:Z0},"slide-left":{inKeyframes:e1,outKeyframes:t1},"slide-right":{inKeyframes:n1,outKeyframes:r1}},a1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=o1[t];return[M0(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},i1=new tO("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s1=new tO("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l1=new tO("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),c1=new tO("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),u1=new tO("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),p1=new tO("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d1=new tO("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),m1=new tO("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),f1=new tO("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),g1=new tO("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),h1=new tO("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),b1=new tO("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_1={zoom:{inKeyframes:i1,outKeyframes:s1},"zoom-big":{inKeyframes:l1,outKeyframes:c1},"zoom-big-fast":{inKeyframes:l1,outKeyframes:c1},"zoom-left":{inKeyframes:d1,outKeyframes:m1},"zoom-right":{inKeyframes:f1,outKeyframes:g1},"zoom-up":{inKeyframes:u1,outKeyframes:p1},"zoom-down":{inKeyframes:h1,outKeyframes:b1}},y1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=_1[t];return[M0(r,o,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},v1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),w1=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},hu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},hu("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:z0(e)}]},k1=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${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})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},DJ(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},OJ(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},C1=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},D1=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},x1=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},S1=jl("Modal",(e=>{const t=e.padding,n=$l(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:e.lineHeightHeading5*e.fontSizeHeading5+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[k1(n),C1(n),D1(n),w1(n),e.wireframe&&x1(n),y1(n,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})));let E1;uN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{E1={x:e.pageX,y:e.pageY},setTimeout((()=>{E1=null}),100)}),!0);const O1=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o}=q_.useContext(wJ),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:i,className:s,rootClassName:l,open:c,wrapClassName:u,centered:p,getContainer:d,closeIcon:m,focusTriggerAfterClose:f=!0,visible:g,width:h=520,footer:b}=e,_=uN(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),y=r("modal",i),v=r(),[w,k]=S1(y),C=JQ(u,{[`${y}-centered`]:!!p,[`${y}-wrap-rtl`]:"rtl"===o}),D=void 0===b?q_.createElement(j0,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})):b;return w(q_.createElement(jZ,null,q_.createElement(T0,{status:!0,override:!0},q_.createElement(SI,Object.assign({width:h},_,{getContainer:void 0===d?n:d,prefixCls:y,rootClassName:JQ(k,l),wrapClassName:C,footer:D,visible:null!=c?c:g,mousePosition:null!==(t=_.mousePosition)&&void 0!==t?t:E1,onClose:a,closeIcon:gu(y,m),focusTriggerAfterClose:f,transitionName:x0(v,"zoom",e.transitionName),maskTransitionName:x0(v,"fade",e.maskTransitionName),className:JQ(k,s)})))))},P1=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:p,rootPrefixCls:d,iconPrefixCls:m,theme:f,bodyStyle:g,closable:h=!1,closeIcon:b,modalRender:_,focusTriggerAfterClose:y}=e,v=`${u}-confirm`,w=e.width||416,k=e.style||{},C=void 0===e.mask||e.mask,D=void 0!==e.maskClosable&&e.maskClosable,x=JQ(v,`${v}-${e.type}`,{[`${v}-rtl`]:"rtl"===c},e.className);return q_.createElement(YJ,{prefixCls:d,iconPrefixCls:m,direction:c,theme:f},q_.createElement(O1,{prefixCls:u,className:x,wrapClassName:JQ({[`${v}-centered`]:!!e.centered},p),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:o,title:"",footer:null,transitionName:x0(d,"zoom",e.transitionName),maskTransitionName:x0(d,"fade",e.maskTransitionName),mask:C,maskClosable:D,maskStyle:l,style:k,bodyStyle:g,width:w,zIndex:n,afterClose:r,keyboard:a,centered:i,getContainer:s,closable:h,closeIcon:b,modalRender:_,focusTriggerAfterClose:y},q_.createElement(bu,Object.assign({},e,{confirmPrefixCls:v}))))},I1=[];pN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{afterClose:n,config:r}=e;var o;const[a,i]=q_.useState(!0),[s,l]=q_.useState(r),{direction:c,getPrefixCls:u}=q_.useContext(wJ),p=u("modal"),d=u(),m=function(){i(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));s.onCancel&&r&&s.onCancel.apply(s,[()=>{}].concat(ki(t.slice(1))))};q_.useImperativeHandle(t,(()=>({destroy:m,update:e=>{l((t=>Object.assign(Object.assign({},t),e)))}})));const f=null!==(o=s.okCancel)&&void 0!==o?o:"confirm"===s.type,[g]=sJ("Modal",oJ.Modal);return q_.createElement(P1,Object.assign({prefixCls:p,rootPrefixCls:d},s,{close:m,open:a,afterClose:()=>{var e;n(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:s.direction||c,cancelText:s.cancelText||(null==g?void 0:g.cancelText)}))},R1=q_.forwardRef(A1);let T1=0;const j1=q_.memo(q_.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=q_.useState([]);return[e,q_.useCallback((e=>(t((t=>[].concat(ki(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return q_.useImperativeHandle(t,(()=>({patchElement:r})),[]),q_.createElement(q_.Fragment,null,n)}))),$1=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new tO("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new tO("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new tO("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},F1=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:p,notificationBg:d,notificationPadding:m,notificationMarginEdge:f,motionDurationMid:g,motionEaseInOut:h,fontSize:b,lineHeight:_,width:y,notificationIconSize:v,colorText:w}=e,k=`${n}-notice`,C=new tO("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),D=new tO("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),x={position:"relative",width:y,maxWidth:`calc(100vw - ${2*f}px)`,marginBottom:a,marginInlineStart:"auto",padding:m,overflow:"hidden",lineHeight:_,wordWrap:"break-word",background:d,borderRadius:i,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${k}-message`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:b,color:w},[`&${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+v,fontSize:o},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.marginSM+v,fontSize:b},[`${k}-icon`]:{position:"absolute",fontSize:v,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${k}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${k}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},DJ(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:f,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[k]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[k]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:h,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:h,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:C,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:D,animationPlayState:"running"}}),$1(e)),{"&-rtl":{direction:"rtl",[`${k}-btn`]:{float:"left"}}})},{[n]:{[k]:Object.assign({},x)}},{[`${k}-pure-panel`]:Object.assign(Object.assign({},x),{margin:0})}]},M1=jl("Notification",(e=>{const t=$l(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:e.paddingMD,notificationPaddingHorizontal:e.paddingLG,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[F1(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));dN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:u}=q_.useContext(wJ),p=o||c("notification"),[,d]=M1(p),[m,f]=lc({prefixCls:p,style:e=>function(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}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>JQ(d,{[`${p}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(p),closable:!0,closeIcon:xu(p),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==u?void 0:u())||document.body,maxCount:i,onAllRemoved:l});return q_.useImperativeHandle(t,(()=>Object.assign(Object.assign({},m),{prefixCls:p,hashId:d}))),f})),z1=hQ.createContext({}),B1=hQ.createContext({message:{},notification:{},modal:{}}),H1=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},W1=jl("App",(e=>[H1(e)])),V1=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:s}=e,{getPrefixCls:l}=q_.useContext(wJ),c=l("app",t),[u,p]=W1(c),d=JQ(p,c,r,o),m=q_.useContext(z1),f=hQ.useMemo((()=>({message:Object.assign(Object.assign({},m.message),a),notification:Object.assign(Object.assign({},m.notification),i)})),[a,i,m.message,m.message]),[g,h]=dc(f.message),[b,_]=Ou(f.notification),[y,v]=Du(),w=hQ.useMemo((()=>({message:g,notification:b,modal:y})),[g,b,y]);return u(hQ.createElement(B1.Provider,{value:w},hQ.createElement(z1.Provider,{value:f},hQ.createElement("div",{className:d,style:s},v,h,_,n))))};V1.useApp=()=>hQ.useContext(B1);const G1=V1,q1=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};fN=q_.createContext(null),gN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],hN=void 0,(bN=q_.forwardRef(Iu)).displayName="Item",_N=hQ.createContext(null),yN=["component"],vN=["className"],wN=["className"],kN=function(e,t){var n,r,o,a,i,s,l,c=q_.useContext(_N);return c?(a=c.className,i=Sa(c,vN),s=e.className,l=Sa(e,wN),q_.createElement(_N.Provider,{value:null},q_.createElement(bN,mi({ref:t,className:JQ(a,s)},i,l)))):(r=void 0===(n=e.component)?"div":n,o=Sa(e,yN),q_.createElement(r,mi({},o,{ref:t})))},(CN=q_.forwardRef(kN)).displayName="RawItem",DN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],xN="responsive",SN="invalidate",(EN=q_.forwardRef(Ru)).displayName="Overflow",EN.Item=CN,EN.RESPONSIVE=xN,EN.INVALIDATE=SN,ON=function(e){var t,n=e.className,r=e.customizeIcon,o=e.onMouseDown,a=e.onClick,i=e.children;return t="function"==typeof r?r(e.customizeIconProps):r,q_.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:q_.createElement("span",{className:JQ(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},(PN=q_.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=e.id,i=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,p=e.activeDescendantId,d=e.value,m=e.maxLength,f=e.onKeyDown,g=e.onMouseDown,h=e.onChange,b=e.onPaste,_=e.onCompositionStart,y=e.onCompositionEnd,v=e.open,w=e.attrs,k=e.inputElement||q_.createElement("input",null),C=k.ref,D=k.props,x=D.onKeyDown,S=D.onChange,E=D.onMouseDown,O=D.onCompositionStart,P=D.onCompositionEnd,I=D.style;return q_.cloneElement(k,Di(Di(Di({type:"search"},D),{},{id:a,ref:zs(t,C),disabled:i,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:JQ("".concat(o,"-selection-search-input"),null===(n=k)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":v,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":p},w),{},{value:u?d:"",maxLength:m,readOnly:!u,unselectable:u?null:"on",style:Di(Di({},I),{},{opacity:u?null:0}),onKeyDown:function(e){f(e),x&&x(e)},onMouseDown:function(e){g(e),E&&E(e)},onChange:function(e){h(e),S&&S(e)},onCompositionStart:function(e){_(e),O&&O(e)},onCompositionEnd:function(e){y(e),P&&P(e)},onPaste:b}))}))).displayName="Input",IN="undefined"!=typeof window&&window.document&&window.document.documentElement,NN=IN,AN=function(e){e.preventDefault(),e.stopPropagation()},RN=function(e){function t(e,t,n,r,o){return q_.createElement("span",{className:JQ("".concat(B,"-item"),xa({},"".concat(B,"-item-disabled"),n)),title:$u(e)},q_.createElement("span",{className:"".concat(B,"-item-content")},t),r&&q_.createElement(ON,{className:"".concat(B,"-item-remove"),onMouseDown:AN,onClick:o,customizeIcon:w},"×"))}var n,r,o,a,i=e.id,s=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,p=e.autoClearSearchValue,d=e.inputRef,m=e.placeholder,f=e.disabled,g=e.mode,h=e.showSearch,b=e.autoFocus,_=e.autoComplete,y=e.activeDescendantId,v=e.tabIndex,w=e.removeIcon,k=e.maxTagCount,C=e.maxTagTextLength,D=e.maxTagPlaceholder,x=void 0===D?function(e){return"+ ".concat(e.length," ...")}:D,S=e.tagRender,E=e.onToggleOpen,O=e.onRemove,P=e.onInputChange,I=e.onInputPaste,N=e.onInputKeyDown,A=e.onInputMouseDown,R=e.onInputCompositionStart,T=e.onInputCompositionEnd,j=q_.useRef(null),$=Vi(q_.useState(0),2),F=$[0],M=$[1],L=Vi(q_.useState(!1),2),U=L[0],z=L[1],B="".concat(s,"-selection"),H=c||"multiple"===g&&!1===p||"tags"===g?u:"",W="tags"===g||"multiple"===g&&!1===p||h&&(c||U);return o=function(){M(j.current.scrollWidth)},a=[H],NN?q_.useLayoutEffect(o,a):q_.useEffect(o,a),n=q_.createElement("div",{className:"".concat(B,"-search"),style:{width:F},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},q_.createElement(PN,{ref:d,open:c,prefixCls:s,id:i,inputElement:null,disabled:f,autoFocus:b,autoComplete:_,editable:W,activeDescendantId:y,value:H,onKeyDown:N,onMouseDown:A,onChange:P,onPaste:I,onCompositionStart:R,onCompositionEnd:T,tabIndex:v,attrs:ac(e,!0)}),q_.createElement("span",{ref:j,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},H," ")),r=q_.createElement(EN,{prefixCls:"".concat(B,"-overflow"),data:l,renderItem:function(e){var n,r,o=e.disabled,a=e.label,i=e.value,s=!f&&!o,l=a;return"number"==typeof C&&("string"!=typeof a&&"number"!=typeof a||(n=String(l)).length>C&&(l="".concat(n.slice(0,C),"..."))),r=function(t){t&&t.stopPropagation(),O(e)},"function"==typeof S?function(e,t,n,r,o){return q_.createElement("span",{onMouseDown:function(e){AN(e),E(!c)}},S({label:t,value:e,disabled:n,closable:r,onClose:o}))}(i,l,o,s,r):t(e,l,o,s,r)},renderRest:function(e){var n="function"==typeof x?x(e):x;return t({title:n},n,!1)},suffix:n,itemKey:Fu,maxCount:k}),q_.createElement(q_.Fragment,null,r,!l.length&&!H&&q_.createElement("span",{className:"".concat(B,"-placeholder")},m))},TN=function(e){var t,n,r,o=e.inputElement,a=e.prefixCls,i=e.id,s=e.inputRef,l=e.disabled,c=e.autoFocus,u=e.autoComplete,p=e.activeDescendantId,d=e.mode,m=e.open,f=e.values,g=e.placeholder,h=e.tabIndex,b=e.showSearch,_=e.searchValue,y=e.activeValue,v=e.maxLength,w=e.onInputKeyDown,k=e.onInputMouseDown,C=e.onInputChange,D=e.onInputPaste,x=e.onInputCompositionStart,S=e.onInputCompositionEnd,E=e.title,O=Vi(q_.useState(!1),2),P=O[1],I="combobox"===d,N=I||b,A=f[0],R=_||"";return I&&y&&!O[0]&&(R=y),q_.useEffect((function(){I&&P(!1)}),[I,y]),t=!("combobox"!==d&&!m&&!b||!R),n=void 0===E?$u(A):E,r=function(){if(A)return null;var e=t?{visibility:"hidden"}:void 0;return q_.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:e},g)},q_.createElement(q_.Fragment,null,q_.createElement("span",{className:"".concat(a,"-selection-search")},q_.createElement(PN,{ref:s,prefixCls:a,id:i,open:m,inputElement:o,disabled:l,autoFocus:c,autoComplete:u,editable:N,activeDescendantId:p,value:R,onKeyDown:w,onMouseDown:k,onChange:function(e){P(!0),C(e)},onPaste:D,onCompositionStart:x,onCompositionEnd:S,tabIndex:h,attrs:ac(e,!0),maxLength:I?v:void 0})),!I&&A?q_.createElement("span",{className:"".concat(a,"-selection-item"),title:n,style:t?{visibility:"hidden"}:void 0},A.label):null,r())},jN=function(e,t){var n,r,o,a,i,s,l,c,u,p,d=q_.useRef(null),m=q_.useRef(!1),f=e.prefixCls,g=e.open,h=e.mode,b=e.showSearch,_=e.tokenWithEnter,y=e.autoClearSearchValue,v=e.onSearch,w=e.onSearchSubmit,k=e.onToggleOpen,C=e.onInputKeyDown,D=e.domRef;return q_.useImperativeHandle(t,(function(){return{focus:function(){d.current.focus()},blur:function(){d.current.blur()}}})),n=Vi(Pu(0),2),r=n[0],o=n[1],a=function(e){var t=e.which;t!==JP.UP&&t!==JP.DOWN||e.preventDefault(),C&&C(e),t!==JP.ENTER||"tags"!==h||m.current||g||null==w||w(e.target.value),[JP.ESC,JP.SHIFT,JP.BACKSPACE,JP.TAB,JP.WIN_KEY,JP.ALT,JP.META,JP.WIN_KEY_RIGHT,JP.CTRL,JP.SEMICOLON,JP.EQUALS,JP.CAPS_LOCK,JP.CONTEXT_MENU,JP.F1,JP.F2,JP.F3,JP.F4,JP.F5,JP.F6,JP.F7,JP.F8,JP.F9,JP.F10,JP.F11,JP.F12].includes(t)||k(!0)},i=function(){o(!0)},s=q_.useRef(null),l=function(e){!1!==v(e,!0,m.current)&&k(!0)},c=function(e){e.target!==d.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){d.current.focus()})):d.current.focus())},u=function(e){var t=r();e.target===d.current||t||"combobox"===h||e.preventDefault(),("combobox"===h||b&&t)&&g||(g&&!1!==y&&v("",!0,!1),k())},p=q_.createElement("multiple"===h||"tags"===h?RN:TN,mi({},e,{inputRef:d,onInputKeyDown:a,onInputMouseDown:i,onInputChange:function(e){var t,n=e.target.value;_&&s.current&&/[\r\n]/.test(s.current)&&(t=s.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),n=n.replace(t,s.current)),s.current=null,l(n)},onInputPaste:function(e){var t=e.clipboardData.getData("text");s.current=t},onInputCompositionStart:function(){m.current=!0},onInputCompositionEnd:function(e){m.current=!1,"combobox"!==h&&l(e.target.value)}})),q_.createElement("div",{ref:D,className:"".concat(f,"-selector"),onClick:c,onMouseDown:u},p)},($N=q_.forwardRef(jN)).displayName="Selector",FN=q_.createContext(null),MN=q_.memo((function(e){return e.children}),(function(e,t){return t.cache})),LN=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l,c=e.popup,u=e.className,p=e.prefixCls,d=e.style,m=e.target,f=e.onVisibleChanged,g=e.open,h=e.keepDom,b=e.onClick,_=e.mask,y=e.arrow,v=e.arrowPos,w=e.align,k=e.motion,C=e.maskMotion,D=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,E=e.portal,O=e.zIndex,P=e.onMouseEnter,I=e.onMouseLeave,N=e.ready,A=e.offsetX,R=e.offsetY,T=e.offsetR,j=e.offsetB,$=e.onAlign,F=e.onPrepare,M=e.stretch,L=e.targetWidth,U=e.targetHeight,z="function"==typeof c?c():c,B=g||h,H=(null==x?void 0:x.length)>0,W=Vi(q_.useState(!x||!H),2),V=W[0],G=W[1];return lP((function(){!V&&H&&m&&G(!0)}),[V,H,m]),V?(r={left:"-1000vw",top:"-1000vh",right:n="auto",bottom:n},!N&&g||(o=w.points,s=(i=null==(a=w._experimental)?void 0:a.dynamicInset)&&"b"===o[0][0],i&&"r"===o[0][1]?(r.right=T,r.left=n):(r.left=A,r.right=n),s?(r.bottom=j,r.top=n):(r.top=R,r.bottom=n)),l={},M&&(M.includes("height")&&U?l.height=U:M.includes("minHeight")&&U&&(l.minHeight=U),M.includes("width")&&L?l.width=L:M.includes("minWidth")&&L&&(l.minWidth=L)),g||(l.pointerEvents="none"),q_.createElement(E,{open:D||B,getContainer:x&&function(){return x(m)},autoDestroy:S},q_.createElement(Ju,{prefixCls:p,open:g,zIndex:O,mask:_,motion:C}),q_.createElement(jO,{onResize:$,disabled:!g},(function(e){return q_.createElement(BJ,mi({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:D,leavedClassName:"".concat(p,"-hidden")},k,{onAppearPrepare:F,onEnterPrepare:F,visible:g,onVisibleChanged:function(e){var t;null==k||null===(t=k.onVisibleChanged)||void 0===t||t.call(k,e),f(e)}}),(function(n,o){var a=n.style,i=JQ(p,n.className,u);return q_.createElement("div",{ref:zs(e,t,o),className:i,style:Di(Di(Di(Di({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},r),l),a),{},{boxSizing:"border-box",zIndex:O},d),onMouseEnter:P,onMouseLeave:I,onClick:b},y&&q_.createElement(Qu,{prefixCls:p,arrow:y,arrowPos:v,align:w}),q_.createElement(MN,{cache:!g},z))}))})))):null})),UN=q_.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Hs(n),a=Bs(q_.useCallback((function(e){Us(t,r?r(e):e)}),[r]),n.ref);return o?q_.cloneElement(n,{ref:a}):n})),zN=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const X1=function(e){var t=arguments.length>0&&void 0!==e?e:wI,n=q_.forwardRef((function(e,n){var r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,M,L,U,z,B,H,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ae,ie,se,le,ce,ue,pe,de,me,fe,ge,he,be,_e,ye,ve,we,ke,Ce,De,xe,Se=e.prefixCls,Ee=void 0===Se?"rc-trigger-popup":Se,Oe=e.children,Pe=e.action,Ie=void 0===Pe?"hover":Pe,Ne=e.showAction,Ae=e.hideAction,Re=e.popupVisible,Te=e.defaultPopupVisible,je=e.onPopupVisibleChange,$e=e.afterPopupVisibleChange,Fe=e.mouseEnterDelay,Me=e.mouseLeaveDelay,Le=void 0===Me?.1:Me,Ue=e.focusDelay,ze=e.blurDelay,Be=e.mask,He=e.maskClosable,We=void 0===He||He,Ve=e.getPopupContainer,Ge=e.forceRender,qe=e.autoDestroy,Xe=e.destroyPopupOnHide,Ke=e.popup,Ye=e.popupClassName,Qe=e.popupStyle,Je=e.popupPlacement,Ze=e.builtinPlacements,et=void 0===Ze?{}:Ze,tt=e.popupAlign,nt=e.zIndex,rt=e.stretch,ot=e.getPopupClassNameFromAlign,at=e.alignPoint,it=e.onPopupClick,st=e.onPopupAlign,lt=e.arrow,ct=e.popupMotion,ut=e.maskMotion,pt=e.popupTransitionName,dt=e.popupAnimation,mt=e.maskTransitionName,ft=e.maskAnimation,gt=e.className,ht=e.getTriggerDOMNode,bt=Sa(e,zN),_t=qe||Xe||!1,yt=Vi(q_.useState(!1),2),vt=yt[0],wt=yt[1];return lP((function(){wt(q1())}),[]),r=q_.useRef({}),o=q_.useContext(FN),a=q_.useMemo((function(){return{registerSubPopup:function(e,t){r.current[e]=t,null==o||o.registerSubPopup(e,t)}}}),[o]),i=Rc(),s=Vi(q_.useState(null),2),l=s[0],c=s[1],u=Nl((function(e){Ws(e)&&l!==e&&c(e),null==o||o.registerSubPopup(i,e)})),p=Vi(q_.useState(null),2),d=p[0],m=p[1],f=Nl((function(e){Ws(e)&&d!==e&&m(e)})),g=q_.Children.only(Oe),h=(null==g?void 0:g.props)||{},b={},_=Nl((function(e){var t,n,o=d;return(null==o?void 0:o.contains(e))||(null===(t=Ql(o))||void 0===t?void 0:t.host)===e||e===o||(null==l?void 0:l.contains(e))||(null===(n=Ql(l))||void 0===n?void 0:n.host)===e||e===l||Object.values(r.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),y=Uu(Ee,ct,dt,pt),v=Uu(Ee,ut,ft,mt),w=Vi(q_.useState(Te||!1),2),k=w[1],C=null!=Re?Re:w[0],D=Nl((function(e){void 0===Re&&k(e)})),lP((function(){k(Re||!1)}),[Re]),(x=q_.useRef(C)).current=C,S=Nl((function(e){C!==e&&(D(e),null==je||je(e))})),E=q_.useRef(),O=function(){clearTimeout(E.current)},P=function(e,t){var n=arguments.length>1&&void 0!==t?t:0;O(),0===n?S(e):E.current=setTimeout((function(){S(e)}),1e3*n)},q_.useEffect((function(){return O}),[]),I=Vi(q_.useState(!1),2),N=I[0],A=I[1],lP((function(e){e&&!C||A(!0)}),[C]),R=Vi(q_.useState(null),2),T=R[0],j=R[1],F=($=Vi(q_.useState([0,0]),2))[0],M=$[1],L=function(e){M([e.clientX,e.clientY])},U=function(e,t,n,r,o,a,i){var s,l,c,u=Vi(q_.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),p=u[0],d=u[1],m=q_.useRef(0),f=q_.useMemo((function(){return t?Bu(t):[]}),[t]),g=q_.useRef({});return e||(g.current={}),s=Nl((function(){var s,l,c,u,p,m,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,M,L,U,z,B,H,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ae,ie,se,le,ce,ue,pe,de,me,fe,ge,he,be,_e,ye,ve,we,ke,Ce,De,xe,Se,Ee,Oe,Pe,Ie,Ne,Ae,Re,Te,je,$e,Fe,Me,Le,Ue,ze,Be,He,We,Ve,Ge,qe;if(t&&n&&e){let e=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:M,o=v.x+e,a=v.y+t,i=o+O,s=a+E,l=Math.max(o,r.left),c=Math.max(a,r.top),u=Math.min(i,r.right),p=Math.min(s,r.bottom);return Math.max(0,(u-l)*(p-c))},Xe=function(){be=(he=v.y+re)+E,ye=(_e=v.x+ne)+O};if(l=(s=t).style.left,c=s.style.top,u=s.style.right,p=s.style.bottom,m=s.ownerDocument,h=zu(s),b=Di(Di({},o[r]),a),s.style.left="0",s.style.top="0",s.style.right="auto",s.style.bottom="auto",_=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:{x:(y=n.getBoundingClientRect()).x,y:y.y,width:y.width,height:y.height},v=s.getBoundingClientRect(),k=(w=h.getComputedStyle(s)).width,C=w.height,E=v.height,O=v.width,P=_.height,I=_.width,N={left:0,top:0,right:(D=m.documentElement).clientWidth,bottom:D.clientHeight},R="visible",T="visibleFirst","scroll"!==(A=b.htmlRegion)&&A!==T&&(A=R),j=A===T,$=Vu({left:-(S=D.scrollLeft),top:-(x=D.scrollTop),right:D.scrollWidth-S,bottom:D.scrollHeight-x},f),F=Vu(N,f),M=A===R?F:$,L=j?F:M,s.style.left="auto",s.style.top="auto",s.style.right="0",s.style.bottom="0",U=s.getBoundingClientRect(),s.style.left=l,s.style.top=c,s.style.right=u,s.style.bottom=p,z=Hu(Math.round(O/parseFloat(k)*1e3)/1e3),B=Hu(Math.round(E/parseFloat(C)*1e3)/1e3),0===z||0===B||Ws(n)&&!xZ(n))return;H=b.targetOffset,V=(W=Vi(qu(v,b.offset),2))[0],G=W[1],X=(q=Vi(qu(_,H),2))[1],_.x-=q[0],_.y-=X,Y=(K=Vi(b.points||[],2))[0],Q=Xu(K[1]),J=Xu(Y),Z=Ku(_,Q),ee=Ku(v,J),te=Di({},b),oe=e(ne=Z.x-ee.x+V,re=Z.y-ee.y+G),ae=e(ne,re,F),ie=Ku(_,["t","l"]),se=Ku(v,["t","l"]),le=Ku(_,["b","r"]),ce=Ku(v,["b","r"]),pe=(ue=b.overflow||{}).adjustX,de=ue.adjustY,me=ue.shiftX,fe=ue.shiftY,ge=function(e){return"boolean"==typeof e?e:e>=0},Xe(),ve=ge(de),we=J[0]===Q[0],ve&&"t"===J[0]&&(be>L.bottom||g.current.bt)&&(ke=re,we?ke-=E-P:ke=ie.y-ce.y-G,Ce=e(ne,ke),De=e(ne,ke,F),Ce>oe||Ce===oe&&(!j||De>=ae)?(g.current.bt=!0,re=ke,te.points=[Yu(J,0),Yu(Q,0)]):g.current.bt=!1),ve&&"b"===J[0]&&(heoe||Se===oe&&(!j||Ee>=ae)?(g.current.tb=!0,re=xe,te.points=[Yu(J,0),Yu(Q,0)]):g.current.tb=!1),Oe=ge(pe),Pe=J[1]===Q[1],Oe&&"l"===J[1]&&(ye>L.right||g.current.rl)&&(Ie=ne,Pe?Ie-=O-I:Ie=ie.x-ce.x-V,Ne=e(Ie,re),Ae=e(Ie,re,F),Ne>oe||Ne===oe&&(!j||Ae>=ae)?(g.current.rl=!0,ne=Ie,te.points=[Yu(J,1),Yu(Q,1)]):g.current.rl=!1),Oe&&"r"===J[1]&&(_eoe||Te===oe&&(!j||je>=ae)?(g.current.lr=!0,ne=Re,te.points=[Yu(J,1),Yu(Q,1)]):g.current.lr=!1),Xe(),"number"==typeof($e=!0===me?0:me)&&(_eF.right&&(ne-=ye-F.right,_.x>F.right-$e&&(ne+=_.x-F.right+$e))),"number"==typeof(Fe=!0===fe?0:fe)&&(heF.bottom&&(re-=be-F.bottom,_.y>F.bottom-Fe&&(re+=_.y-F.bottom+Fe))),Le=(Me=v.x+ne)+O,ze=(Ue=v.y+re)+E,He=(Be=_.x)+I,Ve=(We=_.y)+P,Ge=(Math.max(Me,Be)+Math.min(Le,He))/2-Me,qe=(Math.max(Ue,We)+Math.min(ze,Ve))/2-Ue,null==i||i(t,te),d({ready:!0,offsetX:ne/z,offsetY:re/B,offsetR:(U.right-v.x-(ne+v.width))/z,offsetB:(U.bottom-v.y-(re+v.height))/B,arrowX:Ge/z,arrowY:qe/B,scaleX:z,scaleY:B,align:te})}})),l=function(){m.current+=1;var e=m.current;Promise.resolve().then((function(){m.current===e&&s()}))},lP(c=function(){d((function(e){return Di(Di({},e),{},{ready:!1})}))},[r]),lP((function(){e||c()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,l]}(C,l,at?F:d,Je,et,tt,st),B=(z=Vi(U,11))[0],H=z[1],W=z[2],V=z[3],G=z[4],q=z[5],X=z[6],K=z[7],Y=z[8],Q=z[9],J=z[10],Z=Nl((function(){N||J()})),function(e,t,n,r){lP((function(){var o,a,i,s,l;if(e&&t&&n){let e=function(){r()};return o=n,a=Bu(t),i=Bu(o),s=zu(o),(l=new Set([s].concat(ki(a),ki(i)))).forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(C,d,l,Z),lP((function(){Z()}),[F,Je]),lP((function(){!C||null!=et&&et[Je]||Z()}),[JSON.stringify(tt)]),ee=q_.useMemo((function(){var e=function(e,t,n,r){var o,a,i,s=n.points,l=Object.keys(e);for(o=0;o1?i-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==e?e:10,n=Vi(q_.useState(!1),2),r=n[0],o=n[1],a=q_.useRef(null),i=function(){window.clearTimeout(a.current)};return q_.useEffect((function(){return i}),[]),[r,function(e,n){i(),a.current=window.setTimeout((function(){o(e),n&&n()}),t)},i]}(),f=(m=Vi(d,3))[0],g=m[1],h=m[2],q_.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=u.current)||void 0===e?void 0:e.focus,blur:null===(t=u.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=p.current)||void 0===t?void 0:t.scrollTo(e)}}})),b=q_.useMemo((function(){var e,t;return"combobox"!==ye?Ie:"string"==typeof(t=null===(e=me[0])||void 0===e?void 0:e.value)||"number"==typeof t?String(t):""}),[Ie,ye,me]),_="combobox"===ye&&"function"==typeof ke&&ke()||null,y="function"==typeof Ce&&Ce(),v=Bs(l,null==y||null===(n=y.props)||void 0===n?void 0:n.ref),k=(w=Vi(q_.useState(!1),2))[0],C=w[1],lP((function(){C(!0)}),[]),D=Vi(Tl(!1,{defaultValue:xe,value:De}),2),x=D[0],E=!!k&&x,O=!be&&ge,(ve||O&&E&&"combobox"===ye)&&(E=!1),P=!O&&E,I=q_.useCallback((function(e){var t=void 0!==e?e:!E;ve||(S(t),E!==t&&(null==Se||Se(t)))}),[ve,E,S=D[1],Se]),N=q_.useMemo((function(){return(Te||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Te]),A=function(e,t,n){var r,o,a,i,s=!0,l=e;return null==Oe||Oe(null),r=n?null:(o=Te)&&o.length?(a=!1,i=function e(t,n){var r,o=Zs(n),i=o[0],s=o.slice(1);return i?(r=t.split(i),a=a||r.length>1,r.reduce((function(t,n){return[].concat(ki(t),ki(e(n,s)))}),[]).filter((function(e){return e}))):[t]}(e,o),a?i:null):null,"combobox"!==ye&&r&&(l="",null==Re||Re(r),I(!1),s=!1),Ae&&b!==l&&Ae(l,{source:t?"typing":"effect"}),s},R=function(e){e&&e.trim()&&Ae(e,{source:"submit"})},q_.useEffect((function(){E||ot||"combobox"===ye||A("",!1,!1)}),[E]),q_.useEffect((function(){x&&ve&&S(!1),ve&&g(!1)}),[ve]),T=Vi(Pu(),2),j=T[0],$=T[1],F=function(e){var t,n,r,o,a,i,s,l,c=j(),u=e.which;if(u===JP.ENTER&&("combobox"!==ye&&e.preventDefault(),E||I(!0)),$(!!b),u===JP.BACKSPACE&&!c&&ot&&!b&&me.length){for(n=null,r=(t=ki(me)).length-1;r>=0;r-=1)if(!(o=t[r]).disabled){t.splice(r,1),n=o;break}n&&fe(t,{type:"remove",values:[n]})}for(a=arguments.length,i=new Array(a>1?a-1:0),s=1;s1?t-1:0),r=1;r1?r-1:0),i=1;ie.height},n}Ts(e,q_.Component);var t=Ms(e);return Ia(e,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props,o=r.prefixCls,a=r.direction,i=this.getSpinHeight(),s=this.getTop(),l=this.showScroll(),c=l&&n,u="rtl"===a?{left:0}:{right:0};return q_.createElement("div",{ref:this.scrollbarRef,className:JQ("".concat(o,"-scrollbar"),xa({},"".concat(o,"-scrollbar-show"),l)),style:Di(Di({width:8,top:0,bottom:0},u),{},{position:"absolute",display:c?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},q_.createElement("div",{ref:this.thumbRef,className:JQ("".concat(o,"-scrollbar-thumb"),xa({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:s,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),e}(),rA=function(){function e(){Oa(this,e),this.maps=void 0,this.maps=Object.create(null)}return Ia(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),oA="object"===("undefined"==typeof navigator?"undefined":Ca(navigator))&&/Firefox/i.test(navigator.userAgent);const K1=function(e,t){var n=q_.useRef(!1),r=q_.useRef(null),o=q_.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e,t){var a=e<0&&o.current.top||e>0&&o.current.bottom;return arguments.length>1&&void 0!==t&&t&&a?(clearTimeout(r.current),n.current=!1):a&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&a}};aA=14/15,iA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],sA=[],lA={overflowY:"auto",overflowAnchor:"none"},(cA=q_.forwardRef(sp)).displayName="List",uA=q_.createContext(null),pA=["disabled","title","children","style","className"],dA=function(e,t){function n(e,t){return{role:e.group?"presentation":"option",id:"".concat(p,"_list_").concat(t)}}var r,o,a,i,s,l,c=q_.useContext(fN),u=c.prefixCls,p=c.id,d=c.open,m=c.multiple,f=c.mode,g=c.searchValue,h=c.toggleOpen,b=c.notFoundContent,_=c.onPopupScroll,y=q_.useContext(uA),v=y.flattenOptions,w=y.onActiveValue,k=y.defaultActiveFirstOption,C=y.onSelect,D=y.menuItemSelectedIcon,x=y.rawValues,S=y.fieldNames,E=y.virtual,O=y.direction,P=y.listHeight,I=y.listItemHeight,N="".concat(u,"-item"),A=Si((function(){return v}),[d,v],(function(e,t){return t[0]&&e[1]!==t[1]})),R=q_.useRef(null),T=function(e){e.preventDefault()},j=function(e){R.current&&R.current.scrollTo("number"==typeof e?{index:e}:e)},$=function(e,t){var n,r,o,a=arguments.length>1&&void 0!==t?t:1,i=A.length;for(n=0;n1&&void 0!==t&&t;L(e),n={source:o?"keyboard":"mouse"},(r=A[e])?w(r.value,e,n):w(null,-1,n)};return q_.useEffect((function(){U(!1!==k?$(0):-1)}),[A.length,g]),r=q_.useCallback((function(e){return x.has(e)&&"combobox"!==f}),[f,ki(x).toString(),x.size]),q_.useEffect((function(){var e,t=setTimeout((function(){var e,t;!m&&d&&1===x.size&&(e=Array.from(x)[0],-1!==(t=A.findIndex((function(t){return t.data.value===e})))&&(U(t),j(t)))}));return d&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[d,g,v.length]),o=function(e){void 0!==e&&C(e,{selected:!x.has(e)}),m||h(!1)},q_.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t,n,r,a=e.which,i=e.ctrlKey;switch(a){case JP.N:case JP.P:case JP.UP:case JP.DOWN:t=0,a===JP.UP?t=-1:a===JP.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&i&&(a===JP.N?t=1:a===JP.P&&(t=-1)),0!==t&&(n=$(M+t,t),j(n),U(n,!0));break;case JP.ENTER:o((r=A[M])&&!r.data.disabled?r.value:void 0),d&&e.preventDefault();break;case JP.ESC:h(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===A.length?q_.createElement("div",{role:"listbox",id:"".concat(p,"_list"),className:"".concat(N,"-empty"),onMouseDown:T},b):(a=Object.keys(S).map((function(e){return S[e]})),i=function(e){return e.label},s=function(e){var t,o,a,s,l,c=A[e];return c?(o=(t=c.data||{}).value,a=c.group,s=ac(t,!0),l=i(c),c?q_.createElement("div",mi({"aria-label":"string"!=typeof l||a?null:l},s,{key:e},n(c,e),{"aria-selected":r(o)}),o):null):null},l={role:"listbox",id:"".concat(p,"_list")},q_.createElement(q_.Fragment,null,E&&q_.createElement("div",mi({},l,{style:{height:0,width:0,overflow:"hidden"}}),s(M-1),s(M),s(M+1)),q_.createElement(cA,{itemKey:"key",ref:R,data:A,height:P,itemHeight:I,fullHeight:!1,onMouseDown:T,onScroll:_,virtual:E,direction:O,innerProps:E?null:l},(function(e,t){var s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k=e.groupOption,C=e.data,x=e.label,S=e.value,O=C.key;return e.group?(c=null!==(l=C.title)&&void 0!==l?l:lp(x)?x.toString():void 0,q_.createElement("div",{className:JQ(N,"".concat(N,"-group")),title:c},void 0!==x?x:O)):(u=C.disabled,p=C.title,d=C.style,m=C.className,f=Qs(Sa(C,pA),a),g=r(S),h="".concat(N,"-option"),b=JQ(N,h,m,(xa(s={},"".concat(h,"-grouped"),k),xa(s,"".concat(h,"-active"),M===t&&!u),xa(s,"".concat(h,"-disabled"),u),xa(s,"".concat(h,"-selected"),g),s)),_=i(e),y=!D||"function"==typeof D||g,w=lp(v="number"==typeof _?_:_||S)?v.toString():void 0,void 0!==p&&(w=p),q_.createElement("div",mi({},ac(f),E?{}:n(e,t),{"aria-selected":g,className:b,title:w,onMouseMove:function(){M===t||u||U(t)},onClick:function(){u||o(S)},style:d}),q_.createElement("div",{className:"".concat(h,"-content")},v),q_.isValidElement(D)||g,y&&q_.createElement(ON,{className:"".concat(N,"-option-state"),customizeIcon:D,customizeIconProps:{isSelected:g}},g?"✓":null)))}))))},(mA=q_.forwardRef(dA)).displayName="OptionList",fA=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],gA=["inputValue"],hA=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C=e.id,D=e.mode,x=e.prefixCls,S=void 0===x?"rc-select":x,E=e.backfill,O=e.fieldNames,P=e.inputValue,I=e.searchValue,N=e.onSearch,A=e.autoClearSearchValue,R=void 0===A||A,T=e.onSelect,j=e.onDeselect,$=e.dropdownMatchSelectWidth,F=void 0===$||$,M=e.filterOption,L=e.filterSort,U=e.optionFilterProp,z=e.optionLabelProp,B=e.options,H=e.children,W=e.defaultActiveFirstOption,V=e.menuItemSelectedIcon,G=e.virtual,q=e.direction,X=e.listHeight,K=void 0===X?200:X,Y=e.listItemHeight,Q=void 0===Y?20:Y,J=e.value,Z=e.defaultValue,ee=e.labelInValue,te=e.onChange,ne=Sa(e,fA),re=function(e){var t=Vi(q_.useState(),2),n=t[0],r=t[1];return q_.useEffect((function(){var e;r("rc_select_".concat((YN?(e=KN,KN+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(C),oe=np(D),ae=!(B||!H),ie=q_.useMemo((function(){return(void 0!==M||"combobox"!==D)&&M}),[M,D]),se=q_.useMemo((function(){return ep(O,ae)}),[JSON.stringify(O),ae]),le=Vi(Tl("",{value:void 0!==I?I:P,postState:function(e){return e||""}}),2),ce=le[0],ue=le[1],pe=function(e,t,n,r,o){return q_.useMemo((function(){var a,i,s,l=e;return!e&&(l=rp(t)),a=new Map,i=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)},function e(t,l){var c,u,p=arguments.length>1&&void 0!==l&&l;for(c=0;c1&&void 0!==t?t:{},r=n.childrenAsData,o=[],a=ep(n.fieldNames,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;return function e(t,n){t.forEach((function(t){var a,u;n||!(l in t)?(a=t[s],o.push({key:Zu(t,o.length),groupOption:n,data:t,label:t[i],value:a})):(void 0===(u=t[c])&&r&&(u=t.label),o.push({key:Zu(t,o.length),group:!0,data:t,label:u}),e(t[l],!0))}))}(e,!1),o}(i,{fieldNames:se,childrenAsData:ae})}),[i,se,ae]),l=function(e){var t,n,r=ge(e);_e(r),te&&(r.length!==we.length||r.some((function(e,t){var n;return(null===(n=we[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))&&(t=ee?r:r.map((function(e){return e.value})),n=r.map((function(e){return tp(ke(e.value))})),te(oe?t:t[0],oe?n:n[0]))},u=(c=Vi(q_.useState(null),2))[0],p=c[1],m=(d=Vi(q_.useState(0),2))[0],f=d[1],g=void 0!==W?W:"combobox"!==D,h=q_.useCallback((function(e,t,n){var r=(arguments.length>2&&void 0!==n?n:{}).source,o=void 0===r?"keyboard":r;f(t),E&&"combobox"===D&&null!==e&&"keyboard"===o&&p(String(e))}),[E,D]),b=function(e,t,n){var r,o,a=function(){var t,n=ke(e);return[ee?{label:null==n?void 0:n[se.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,tp(n)]};t&&T?(r=Vi(a(),2),T(r[0],r[1])):!t&&j&&"clear"!==n&&(o=Vi(a(),2),j(o[0],o[1]))},_=op((function(e,t){var n,r=!oe||t.selected;n=r?oe?[].concat(ki(we),[e]):[e]:we.filter((function(t){return t.value!==e})),l(n),b(e,r),"combobox"===D?p(""):np&&!R||(ue(""),p(""))})),y=function(e,t){l(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach((function(e){b(e.value,!1,n)}))},v=function(e,t){var n,r;ue(e),p(null),"submit"!==t.source?"blur"!==t.source&&("combobox"===D&&l(e),null==N||N(e)):(n=(e||"").trim())&&(r=Array.from(new Set([].concat(ki(De),[n]))),l(r),b(n,!0),ue(""))},w=function(e){var t,n=e;"tags"!==D&&(n=e.map((function(e){var t=me.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e}))),t=Array.from(new Set([].concat(ki(De),ki(n)))),l(t),t.forEach((function(e){b(e,!0)}))},k=q_.useMemo((function(){var e=!1!==G&&!1!==F;return Di(Di({},pe),{},{flattenOptions:s,onActiveValue:h,defaultActiveFirstOption:g,onSelect:_,menuItemSelectedIcon:V,rawValues:De,fieldNames:se,virtual:e,direction:q,listHeight:K,listItemHeight:Q,childrenAsData:ae})}),[pe,s,h,g,_,V,De,se,G,F,K,Q,ae]),q_.createElement(uA.Provider,{value:k},q_.createElement(XN,mi({},ne,{id:re,prefixCls:S,ref:t,omitDomProps:gA,mode:D,displayValues:Ce,onDisplayValuesChange:y,direction:q,searchValue:ce,onSearch:v,autoClearSearchValue:R,onSearchSplit:w,dropdownMatchSelectWidth:F,OptionList:mA,emptyOptions:!s.length,activeValue:u,activeDescendantId:"".concat(re,"_list_").concat(m)})))})),(bA=hA).Option=eA,bA.OptGroup=ZN;const Y1=(e,t)=>t||e,Q1=()=>{const[,e]=Ll(),t=new qO(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return q_.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},q_.createElement("g",{fill:"none",fillRule:"evenodd"},q_.createElement("g",{transform:"translate(24 31.67)"},q_.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),q_.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),q_.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),q_.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),q_.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),q_.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),q_.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},q_.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),q_.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},J1=()=>{const[,e]=Ll(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=q_.useMemo((()=>({borderColor:new qO(t).onBackground(o).toHexShortString(),shadowColor:new qO(n).onBackground(o).toHexShortString(),contentColor:new qO(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return q_.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},q_.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},q_.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),q_.createElement("g",{fillRule:"nonzero",stroke:a},q_.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),q_.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},Z1=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},e2=jl("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=$l(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[Z1(r)]}));_A=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:r,image:o=t2,description:a,children:i,imageStyle:s}=e,l=_A(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:u}=q_.useContext(wJ),p=c("empty",r),[d,m]=e2(p),[f]=sJ("Empty"),g=void 0!==a?a:null==f?void 0:f.description;let h=null;return h="string"==typeof o?q_.createElement("img",{alt:"string"==typeof g?g:"empty",src:o}):o,d(q_.createElement("div",Object.assign({className:JQ(m,p,{[`${p}-normal`]:o===n2,[`${p}-rtl`]:"rtl"===u},t,n)},l),q_.createElement("div",{className:`${p}-image`,style:s},h),g&&q_.createElement("div",{className:`${p}-description`},g),i&&q_.createElement("div",{className:`${p}-footer`},i)))};r2.PRESENTED_IMAGE_DEFAULT=t2,r2.PRESENTED_IMAGE_SIMPLE=n2;const o2=r2,a2=e=>{const{componentName:t}=e,{getPrefixCls:n}=q_.useContext(wJ),r=n("empty");switch(t){case"Table":case"List":return hQ.createElement(o2,{image:o2.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return hQ.createElement(o2,{image:o2.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return hQ.createElement(o2,null)}},i2=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},s2=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},DJ(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,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:Y0},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:J0},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Q0},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Z0},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},i2(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},CJ),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},a1(e,"slide-up"),a1(e,"slide-down"),K0(e,"move-up"),K0(e,"move-down")]},l2=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]},c2=e=>{const{componentCls:t}=e,n=$l(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$l(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=l2(e);return[up(e),up(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},up(r,"lg")]},u2=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},p2=function(e,t,n){let r=arguments.length>2&&void 0!==n&&n;const{componentCls:o,borderHoverColor:a,outlineColor:i,antCls:s}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${s}-pagination-size-changer)`]:Object.assign(Object.assign({},r?{[`${o}-selector`]:{borderColor:a}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:a}})}}},d2=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},m2=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},DJ(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},u2(e)),d2(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},CJ),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},CJ),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},f2=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},m2(e),dp(e),c2(e),s2(e),{[`${t}-rtl`]:{direction:"rtl"}},p2(t,$l(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),p2(`${t}-status-error`,$l(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),p2(`${t}-status-warning`,$l(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Oc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},g2=jl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=$l(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[f2(r)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),h2={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"},b2=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:h2}))})),_2={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"},y2=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:_2}))})),v2={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"},w2=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:v2}))}));yA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{prefixCls:r,bordered:o=!0,className:a,rootClassName:i,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:p,listItemHeight:d=24,size:m,disabled:f,notFoundContent:g,status:h,showArrow:b,builtinPlacements:_,dropdownMatchSelectWidth:y,popupMatchSelectWidth:v,direction:w}=e,k=yA(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);const{getPopupContainer:C,getPrefixCls:D,renderEmpty:x,direction:S,virtual:E,popupMatchSelectWidth:O,popupOverflow:P,select:I}=q_.useContext(wJ),N=D("select",r),A=D(),R=null!=w?w:S,{compactSize:T,compactItemClassnames:j}=TZ(N,R),[$,F]=g2(N),M=q_.useMemo((()=>{const{mode:e}=k;if("combobox"!==e)return e===k2?"combobox":e}),[k.mode]),L="multiple"===M||"tags"===M,U=function(e){return null==e||e}(b),z=null!==(n=null!=v?v:y)&&void 0!==n?n:O,{status:B,hasFeedback:H,isFormItemInput:W,feedbackIcon:V}=q_.useContext(R0),G=Y1(B,h);let q;q=void 0!==g?g:"combobox"===M?null:(null==x?void 0:x("Select"))||q_.createElement(a2,{componentName:"Select"});const{suffixIcon:X,itemIcon:K,removeIcon:Y,clearIcon:Q}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const p=null!=n?n:q_.createElement(nZ,null),d=e=>q_.createElement(q_.Fragment,null,!1!==c&&e,s&&u);let m=null;if(void 0!==t)m=d(t);else if(a)m=d(q_.createElement(vZ,{spin:!0}));else{const e=`${l}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return d(q_.createElement(n&&r?w2:y2,{className:e}))}}let f=null;f=void 0!==r?r:i?q_.createElement(b2,null):null;let g=null;return g=void 0!==o?o:q_.createElement(oZ,null),{clearIcon:p,suffixIcon:m,itemIcon:f,removeIcon:g}}(Object.assign(Object.assign({},k),{multiple:L,hasFeedback:H,feedbackIcon:V,showArrow:U,prefixCls:N})),J=Qs(k,["suffixIcon","itemIcon"]),Z=JQ(l||c,{[`${N}-dropdown-${R}`]:"rtl"===R},i,F),ee=MJ((e=>{var t;return null!==(t=null!=m?m:T)&&void 0!==t?t:e})),te=q_.useContext(FJ),ne=null!=f?f:te,re=JQ({[`${N}-lg`]:"large"===ee,[`${N}-sm`]:"small"===ee,[`${N}-rtl`]:"rtl"===R,[`${N}-borderless`]:!o,[`${N}-in-form-item`]:W},cp(N,G,H),j,a,i,F),oe=q_.useMemo((()=>void 0!==p?p:"rtl"===R?"bottomRight":"bottomLeft"),[p,R]),ae=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible"};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}(_,P);return $(q_.createElement(bA,Object.assign({ref:t,virtual:E,showSearch:null==I?void 0:I.showSearch},J,{dropdownMatchSelectWidth:z,builtinPlacements:ae,transitionName:x0(A,D0(p),k.transitionName),listHeight:u,listItemHeight:d,mode:M,prefixCls:N,placement:oe,direction:R,inputIcon:X,menuItemSelectedIcon:K,removeIcon:Y,clearIcon:Q,notFoundContent:q,className:re,getPopupContainer:s||C,dropdownClassName:Z,showArrow:H||U,disabled:ne})))},D2=q_.forwardRef(C2),x2=(fY=D2,function(e){const{prefixCls:t,style:n}=e,r=q_.useRef(null),[o,a]=q_.useState(0),[i,s]=q_.useState(0),[l,c]=Tl(!1,{value:e.open}),{getPrefixCls:u}=q_.useContext(wJ),p=u("select",t);q_.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;a(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=null===(n=r.current)||void 0===n?void 0:n.querySelector(`.${p}-dropdown`);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let d=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return q_.createElement(YJ,{theme:{token:{motion:!1}}},q_.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:i}},q_.createElement(fY,Object.assign({},d))))});D2.SECRET_COMBOBOX_MODE_DO_NOT_USE=k2,D2.Option=eA,D2.OptGroup=ZN,D2._InternalPanelDoNotUseOrYouWillBeFired=x2;const S2=D2,E2=["xxl","xl","lg","md","sm","xs"],O2=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)`}),P2=e=>{const t=e,n=[].concat(E2).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),a=`screen${o}Min`,i=`screen${o}`;if(!(t[a]<=t[i]))throw new Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(rnew qO(e).setAlpha(t).toRgbString(),$2=(e,t)=>new qO(e).lighten(t).toHexString(),F2=e=>{const t=xl(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},M2=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:j2(r,.85),colorTextSecondary:j2(r,.65),colorTextTertiary:j2(r,.45),colorTextQuaternary:j2(r,.25),colorFill:j2(r,.18),colorFillSecondary:j2(r,.12),colorFillTertiary:j2(r,.08),colorFillQuaternary:j2(r,.04),colorBgElevated:$2(n,12),colorBgContainer:$2(n,8),colorBgLayout:$2(n,0),colorBgSpotlight:$2(n,26),colorBorder:$2(n,26),colorBorderSecondary:$2(n,19)}},L2={defaultConfig:AJ,defaultSeed:AJ.token,useToken:function(){const[e,t,n]=Ll();return{theme:e,token:t,hashId:n}},defaultAlgorithm:El,darkAlgorithm:(e,t)=>{const n=Object.keys(dJ).map((t=>{const n=xl(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:El(e);return Object.assign(Object.assign(Object.assign({},r),n),Sl(e,{generateColorPalettes:F2,generateNeutralColorPalettes:M2}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:El(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),yJ(r)),{controlHeight:o}),pJ(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=Ps((null==e?void 0:e.algorithm)?e.algorithm:El),n=Object.assign(Object.assign({},mJ),null==e?void 0:e.token);return AE(n,{override:null==e?void 0:e.token},t,Il)}},U2=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:p}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},DJ(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,N2)}},[`${t}-content`]:{position:"relative"}}),Ml(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},bp($l(e,{borderRadiusOuter:p}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},z2=(e,t)=>jl("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:a}=e,i=$l(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:a>4?4:a});return[U2(i),y1(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),B2=uJ.map((e=>`${e}-inverse`)),H2=["success","processing","error","default","warning"];SA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:p,afterVisibleChange:d,destroyTooltipOnHide:m,arrow:f=!0,title:g,overlay:h,builtinPlacements:b,arrowPointAtCenter:_=!1,autoAdjustOverflow:y=!0}=e,v=!!f,{token:w}=W2(),{getPopupContainer:k,getPrefixCls:C,direction:D}=q_.useContext(wJ),x=q_.useRef(null),S=()=>{var e;null===(e=x.current)||void 0===e||e.forceAlign()};q_.useImperativeHandle(t,(()=>({forceAlign:S,forcePopupAlign:()=>{S()}})));const[E,O]=Tl(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),P=!g&&!h&&0!==g,I=q_.useMemo((()=>{var e,t;let n=_;return"object"==typeof f&&(n=null!==(t=null!==(e=f.pointAtCenter)&&void 0!==e?e:f.arrowPointAtCenter)&&void 0!==t?t:_),b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(A2).forEach((e=>{const c=Object.assign(Object.assign({},r&&R2[e]||A2[e]),{offset:[0,0]});switch(l[e]=c,T2.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=s+o}const u=gp({contentRadius:a,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-u.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":c.offset[0]=u.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":c.offset[1]=-u.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":c.offset[1]=u.dropdownArrowOffset+s}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":a.shiftY=2*t.dropdownArrowOffsetVertical+n}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,u,t,n),i&&(c.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:v?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[_,f,b,w]),N=q_.useMemo((()=>0===g?g:h||g||""),[h,g]),A=q_.createElement(jZ,null,"function"==typeof N?N():N),{getPopupContainer:R,placement:T="top",mouseEnterDelay:j=.1,mouseLeaveDelay:$=.1,overlayStyle:F,rootClassName:M}=e,L=SA(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=C("tooltip",o),z=C(),B=e["data-popover-inject"];let H=E;"open"in e||"visible"in e||!P||(H=!1);const W=function(e,t){const n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){const{picked:n,omitted:r}=(e=>{const t={},n=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach((r=>{e&&r in e&&(t[r]=e[r],delete n[r])})),{picked:t,omitted:n}})(e.props.style),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=sc(e,{style:Object.assign(Object.assign({},r),{pointerEvents:"none"}),className:null});return q_.createElement("span",{style:o,className:JQ(e.props.className,`${t}-disabled-compatible-wrapper`)},a)}return e}(cZ(u)&&!ic(u)?u:q_.createElement("span",null,u),U),V=W.props,G=V.className&&"string"!=typeof V.className?V.className:JQ(V.className,{[a||`${U}-open`]:!0}),[q,X]=z2(U,!B),K=yp(U,l),Y=Object.assign(Object.assign({},c),K.overlayStyle),Q=K.arrowStyle,J=JQ(s,{[`${U}-rtl`]:"rtl"===D},K.className,M,X);return q(q_.createElement(I2,Object.assign({},L,{showArrow:v,placement:T,mouseEnterDelay:j,mouseLeaveDelay:$,prefixCls:U,overlayClassName:J,overlayStyle:Object.assign(Object.assign({},Q),F),getTooltipContainer:R||i||k,ref:x,builtinPlacements:I,overlay:A,visible:H,onVisibleChange:t=>{var n,r;O(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=p?p:d,overlayInnerStyle:Y,arrowContent:q_.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:x0(z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),H?sc(W,{className:G}):W))}));V2._InternalPanelDoNotUseOrYouWillBeFired=function(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=q_.useContext(wJ),l=s("tooltip",t),[c,u]=z2(l,!0),p=yp(l,a),d=Object.assign(Object.assign({},i),p.overlayStyle),m=p.arrowStyle;return c(q_.createElement("div",{className:JQ(u,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className),style:m},q_.createElement("div",{className:`${l}-arrow`}),q_.createElement(fp,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:d}),o)))};const G2=V2,q2={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"},X2=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:q2}))}));EA=JP.ESC,OA=JP.TAB,PA=q_.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=q_.useMemo((function(){return"function"==typeof n?n():n}),[n]),i=zs(t,null==a?void 0:a.ref);return hQ.createElement(hQ.Fragment,null,r&&hQ.createElement("div",{className:"".concat(o,"-arrow")}),hQ.cloneElement(a,{ref:Hs(a)?i:void 0}))})),AA={topLeft:{points:["bl","tl"],overflow:IA={adjustX:1,adjustY:1},offset:[0,-4],targetOffset:NA=[0,0]},top:{points:["bc","tc"],overflow:IA,offset:[0,-4],targetOffset:NA},topRight:{points:["br","tr"],overflow:IA,offset:[0,-4],targetOffset:NA},bottomLeft:{points:["tl","bl"],overflow:IA,offset:[0,4],targetOffset:NA},bottom:{points:["tc","bc"],overflow:IA,offset:[0,4],targetOffset:NA},bottomRight:{points:["tr","br"],overflow:IA,offset:[0,4],targetOffset:NA}},RA=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const K2=hQ.forwardRef(vp);TA=q_.createContext(null),jA=["children","locked"],$A=q_.createContext(null),FA=[],MA=q_.createContext(null),LA=q_.createContext(FA),UA=q_.createContext(null),zA=q_.createContext({}),GA=JP.ENTER,qA=JP.ESC,XA=JP.HOME,KA=JP.END,YA=[WA=JP.UP,VA=JP.DOWN,BA=JP.LEFT,HA=JP.RIGHT],QA="__RC_UTIL_PATH_SPLIT__",JA=function(e){return e.join(QA)},ZA=function(e){return e.split(QA)},eR="rc-menu-more",tR=Math.random().toFixed(5).toString().slice(2),nR=0,rR=["item"],oR=["title","attribute","elementRef"],aR=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],iR=["active"],sR=function(){function e(){return Oa(this,e),t.apply(this,arguments)}Ts(e,q_.Component);var t=Ms(e);return Ia(e,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Qs(Sa(e,oR),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ii(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),q_.createElement(EN.Item,mi({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),e}(),lR=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,M,L,U,z=e.style,B=e.className,H=e.eventKey;return r=e.disabled,o=e.itemIcon,a=e.children,i=e.role,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onClick,u=e.onKeyDown,p=e.onFocus,d=Sa(e,aR),m=kp(H),g=(f=q_.useContext($A)).prefixCls,h=f.onItemClick,b=f.disabled,_=f.overflowDisabled,y=f.itemIcon,v=f.selectedKeys,w=f.onActive,k=q_.useContext(zA)._internalRenderMenuItem,C="".concat(g,"-item"),D=q_.useRef(),x=q_.useRef(),S=b||r,E=Bs(t,x),O=xp(H),P=function(e){return{key:H,keyPath:ki(O).reverse(),item:D.current,domEvent:e}},I=o||y,A=(N=Ip(H,S,s,l)).active,R=Sa(N,iR),T=v.includes(H),j=Np(O.length),$=function(e){if(!S){var t=P(e);null==c||c(Rp(t)),h(t)}},F=function(e){if(null==u||u(e),e.which===JP.ENTER){var t=P(e);null==c||c(Rp(t)),h(t)}},M=function(e){w(H),null==p||p(e)},L={},"option"===e.role&&(L["aria-selected"]=T),U=q_.createElement(sR,mi({ref:D,elementRef:E,role:null===i?"none":i||"menuitem",tabIndex:r?null:-1,"data-menu-id":_&&m?null:m},d,R,L,{component:"li","aria-disabled":r,style:Di(Di({},j),z),className:JQ(C,(n={},xa(n,"".concat(C,"-active"),A),xa(n,"".concat(C,"-selected"),T),xa(n,"".concat(C,"-disabled"),S),n),B),onClick:$,onKeyDown:F,onFocus:M}),a,q_.createElement(Ap,{props:Di(Di({},e),{},{isSelected:T}),icon:I})),k&&(U=k(U,e,{selected:T})),U}));const Y2=q_.forwardRef(Tp);cR=["className","children"],uR=function(e,t){var n=e.className,r=e.children,o=Sa(e,cR),a=q_.useContext($A),i=a.prefixCls,s=a.mode;return q_.createElement("ul",mi({className:JQ(i,a.rtl&&"".concat(i,"-rtl"),"".concat(i,"-sub"),"".concat(i,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},(pR=q_.forwardRef(uR)).displayName="SubMenuList",dR=["label","children","key","type"],fR={topLeft:{points:["bl","tl"],overflow:mR={adjustX:1,adjustY:1}},topRight:{points:["br","tr"],overflow:mR},bottomLeft:{points:["tl","bl"],overflow:mR},bottomRight:{points:["tr","br"],overflow:mR},leftTop:{points:["tr","tl"],overflow:mR},leftBottom:{points:["br","bl"],overflow:mR},rightTop:{points:["tl","tr"],overflow:mR},rightBottom:{points:["bl","br"],overflow:mR}},gR={topLeft:{points:["bl","tl"],overflow:mR},topRight:{points:["br","tr"],overflow:mR},bottomLeft:{points:["tl","bl"],overflow:mR},bottomRight:{points:["tr","br"],overflow:mR},rightTop:{points:["tr","tl"],overflow:mR},rightBottom:{points:["br","bl"],overflow:mR},leftTop:{points:["tl","tr"],overflow:mR},leftBottom:{points:["bl","br"],overflow:mR}},hR={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},bR=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_R=["active"],yR=function(e){var t,n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,M,L,U,z,B,H,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ae,ie,se,le,ce=e.style,ue=e.className,pe=e.title,de=e.eventKey;return n=e.disabled,r=e.internalPopupClose,o=e.children,a=e.itemIcon,i=e.expandIcon,s=e.popupClassName,l=e.popupOffset,c=e.onClick,u=e.onMouseEnter,p=e.onMouseLeave,d=e.onTitleClick,m=e.onTitleMouseEnter,f=e.onTitleMouseLeave,g=Sa(e,bR),h=kp(de),_=(b=q_.useContext($A)).prefixCls,y=b.mode,v=b.openKeys,w=b.disabled,k=b.overflowDisabled,C=b.activeKey,D=b.selectedKeys,x=b.itemIcon,S=b.expandIcon,E=b.onItemClick,O=b.onOpenChange,P=b.onActive,I=q_.useContext(zA)._internalRenderSubMenuItem,N=q_.useContext(UA),A=N.isSubPathKey,R=xp(),T="".concat(_,"-submenu"),j=w||n,$=q_.useRef(),F=q_.useRef(),M=a||x,L=i||S,U=v.includes(de),z=!k&&U,B=A(D,de),H=Ip(de,j,m,f),W=H.active,V=Sa(H,_R),G=Vi(q_.useState(!1),2),X=G[1],K=function(e){j||X(e)},Y=function(e){K(!0),null==u||u({key:de,domEvent:e})},Q=function(e){K(!1),null==p||p({key:de,domEvent:e})},J=q_.useMemo((function(){return W||"inline"!==y&&(q||A([C],de))}),[y,W,C,q=G[0],de,A]),Z=Np(R.length),ee=function(e){j||(null==d||d({key:de,domEvent:e}),"inline"===y&&O(de,!U))},te=Pp((function(e){null==c||c(Rp(e)),E(e)})),ne=function(e){"inline"!==y&&O(de,e)},re=function(){P(de)},oe=h&&"".concat(h,"-popup"),ae=q_.createElement("div",mi({role:"menuitem",style:Z,className:"".concat(T,"-title"),tabIndex:j?null:-1,ref:$,title:"string"==typeof pe?pe:null,"data-menu-id":k&&h?null:h,"aria-expanded":z,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":j,onClick:ee,onFocus:re},V),pe,q_.createElement(Ap,{icon:"horizontal"!==y?L:null,props:Di(Di({},e),{},{isOpen:z,isSubMenu:!0})},q_.createElement("i",{className:"".concat(T,"-arrow")}))),(ie=q_.useRef(y)).current="inline"!==y&&R.length>1?"vertical":y,k||(ae=q_.createElement(Lp,{mode:se=ie.current,prefixCls:T,visible:!r&&z&&"inline"!==y,popupClassName:s,popupOffset:l,popup:q_.createElement(Cp,{mode:"horizontal"===se?"vertical":se},q_.createElement(pR,{id:oe,ref:F},o)),disabled:j,onVisibleChange:ne},ae)),le=q_.createElement(EN.Item,mi({role:"none"},g,{component:"li",style:ce,className:JQ(T,"".concat(T,"-").concat(y),ue,(t={},xa(t,"".concat(T,"-open"),z),xa(t,"".concat(T,"-active"),J),xa(t,"".concat(T,"-selected"),B),xa(t,"".concat(T,"-disabled"),j),t)),onMouseEnter:Y,onMouseLeave:Q}),ae,!k&&q_.createElement(Up,{id:oe,open:z,keyPath:R},o)),I&&(le=I(le,e,{selected:B,active:J,open:z,disabled:j})),q_.createElement(Cp,{onItemClick:te,mode:"horizontal"===y?"vertical":y,itemIcon:M,expandIcon:L},le)},vR=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],wR=[],kR=["className","title","eventKey","children"],CR=["children"],DR=function(e){var t,n,r,o,a=e.className,i=e.title;return t=e.children,n=Sa(e,kR),r=q_.useContext($A),o="".concat(r.prefixCls,"-item-group"),q_.createElement("li",mi({role:"presentation"},n,{onClick:function(e){return e.stopPropagation()},className:JQ(o,a)}),q_.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:"string"==typeof i?i:void 0},i),q_.createElement("ul",{role:"group",className:"".concat(o,"-list")},t))},(xR=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,M,L,U,z,B,H,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ae,ie,se=e.prefixCls,le=void 0===se?"rc-menu":se,ce=e.rootClassName,ue=e.style,pe=e.className,de=e.tabIndex,me=void 0===de?0:de,fe=e.items,ge=e.children,he=e.direction,be=e.id,_e=e.mode,ye=void 0===_e?"vertical":_e,ve=e.inlineCollapsed,we=e.disabled,ke=e.disabledOverflow,Ce=e.subMenuOpenDelay,De=void 0===Ce?.1:Ce,xe=e.subMenuCloseDelay,Se=void 0===xe?.1:xe,Ee=e.forceSubMenuRender,Oe=e.defaultOpenKeys,Pe=e.openKeys,Ie=e.activeKey,Ne=e.defaultActiveFirst,Ae=e.selectable,Re=void 0===Ae||Ae,Te=e.multiple,je=void 0!==Te&&Te,$e=e.defaultSelectedKeys,Fe=e.selectedKeys,Me=e.onSelect,Le=e.onDeselect,Ue=e.inlineIndent,ze=void 0===Ue?24:Ue,Be=e.motion,He=e.defaultMotions,We=e.triggerSubMenuAction,Ve=void 0===We?"hover":We,Ge=e.builtinPlacements,qe=e.itemIcon,Xe=e.expandIcon,Ke=e.overflowedIndicator,Ye=void 0===Ke?"...":Ke,Qe=e.overflowedIndicatorPopupClassName,Je=e.getPopupContainer,Ze=e.onClick,et=e.onOpenChange,tt=e.onKeyDown;return o=e._internalRenderMenuItem,a=e._internalRenderSubMenuItem,i=Sa(e,vR),s=q_.useMemo((function(){return Fp(ge,fe,wR)}),[ge,fe]),c=(l=Vi(q_.useState(!1),2))[0],u=l[1],p=q_.useRef(),d=function(e){var t=Vi(Tl(e,{value:e}),2),n=t[0],r=t[1];return q_.useEffect((function(){nR+=1;var e="".concat(tR,"-").concat(nR);r("rc-menu-uuid-".concat(e))}),[]),n}(be),m="rtl"===he,f=Vi(Tl(Oe,{value:Pe,postState:function(e){return e||wR}}),2),h=f[1],b=function(e,t){function n(){h(e),null==et||et(e)}arguments.length>1&&void 0!==t&&t?sD.flushSync(n):n()},_=Vi(q_.useState(g=f[0]),2),y=_[0],v=_[1],w=q_.useRef(!1),k=Vi(q_.useMemo((function(){return"inline"!==ye&&"vertical"!==ye||!ve?[ye,!1]:["vertical",ve]}),[ye,ve]),2),D=k[1],x="inline"===(C=k[0]),S=Vi(q_.useState(C),2),E=S[0],O=S[1],I=(P=Vi(q_.useState(D),2))[0],N=P[1],q_.useEffect((function(){O(C),N(D),w.current&&(x?h(y):b(wR))}),[C,D]),A=Vi(q_.useState(0),2),T=A[1],j=(R=A[0])>=s.length-1||"horizontal"!==E||ke,q_.useEffect((function(){x&&v(g)}),[g]),q_.useEffect((function(){return w.current=!0,function(){w.current=!1}}),[]),$=function(){var e=Vi(q_.useState({}),2)[1],t=q_.useRef(new Map),n=q_.useRef(new Map),r=Vi(q_.useState([]),2),o=r[0],a=r[1],i=q_.useRef(0),s=q_.useRef(!1),l=q_.useCallback((function(r,o){var a,l,c=JA(o);n.current.set(c,r),t.current.set(r,c),i.current+=1,a=i.current,l=function(){a===i.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=q_.useCallback((function(e,r){var o=JA(r);n.current.delete(o),t.current.delete(e)}),[]),u=q_.useCallback((function(e){a(e)}),[]),p=q_.useCallback((function(e,n){var r=t.current.get(e)||"",a=ZA(r);return n&&o.includes(a[0])&&a.unshift(eR),a}),[o]),d=q_.useCallback((function(e,t){return e.some((function(e){return p(e,!0).includes(t)}))}),[p]),m=q_.useCallback((function(e){var r="".concat(t.current.get(e)).concat(QA),o=new Set;return ki(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return q_.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:d,getKeyPath:p,getKeys:function(){var e=ki(t.current.keys());return o.length&&e.push(eR),e},getSubPathKeys:m}}(),L=$.refreshOverflowKeys,U=$.isSubPathKey,z=$.getKeyPath,B=$.getKeys,H=$.getSubPathKeys,W=q_.useMemo((function(){return{registerPath:F,unregisterPath:M}}),[F=$.registerPath,M=$.unregisterPath]),V=q_.useMemo((function(){return{isSubPathKey:U}}),[U]),q_.useEffect((function(){L(j?wR:s.slice(R+1).map((function(e){return e.key})))}),[R,j]),G=Vi(Tl(Ie||Ne&&(null===(n=s[0])||void 0===n?void 0:n.key),{value:Ie}),2),q=G[0],X=G[1],K=Pp((function(e){X(e)})),Y=Pp((function(){X(void 0)})),q_.useImperativeHandle(t,(function(){return{list:p.current,focus:function(e){var t,n,r,o,a=null!=q?q:null===(t=s.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;a&&(null===(n=p.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(wp(d,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}})),Q=Vi(Tl($e||[],{value:Fe,postState:function(e){return Array.isArray(e)?e:null==e?wR:[e]}}),2),J=Q[0],Z=Q[1],ee=function(e){var t,n,r,o;Re&&(n=J.includes(t=e.key),r=je?n?J.filter((function(e){return e!==t})):[].concat(ki(J),[t]):[t],Z(r),o=Di(Di({},e),{},{selectedKeys:r}),n?null==Le||Le(o):null==Me||Me(o)),!je&&g.length&&"inline"!==E&&b(wR)},te=Pp((function(e){null==Ze||Ze(Rp(e)),ee(e)})),ne=Pp((function(e,t){var n,r=g.filter((function(t){return t!==e}));t?r.push(e):"inline"!==E&&(n=H(e),r=r.filter((function(e){return!n.has(e)}))),Ni(g,r,!0)||b(r,!0)})),re=function(e,t,n,r,o,a,i,s,l,c){var u,p=q_.useRef(),d=q_.useRef();return d.current=t,u=function(){UO.cancel(p.current)},q_.useEffect((function(){return function(){u()}}),[]),function(m){var f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P=m.which;if([].concat(YA,[GA,qA,XA,KA]).includes(P)){if((b=function(){return f=new Set,g=new Map,h=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(wp(r,e),"']"));t&&(f.add(t),h.set(t,e),g.set(e,t))})),f})(),_=g.get(t),y=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(_,f),v=h.get(y),w=function(e,t,n,r){var o,a,i,s,l,c,u,p="prev",d="next",m="children",f="parent";if("inline"===e&&r===GA)return{inlineTrigger:!0};switch(xa(o={},WA,p),xa(o,VA,d),l=o,xa(a={},BA,n?d:p),xa(a,HA,n?p:d),xa(a,VA,m),xa(a,GA,m),c=a,xa(i={},WA,p),xa(i,VA,d),xa(i,GA,m),xa(i,qA,f),xa(i,BA,n?m:f),xa(i,HA,n?f:m),null===(s={inline:l,horizontal:c,vertical:u=i,inlineSub:l,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case p:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case m:return{offset:1,sibling:!1};default:return null}}(e,1===i(v,!0).length,n,P),!w&&P!==XA&&P!==KA)return;(YA.includes(P)||[XA,KA].includes(P))&&m.preventDefault(),k=function(e){var t,n,r;e&&(t=e,null!=(n=e.querySelector("a"))&&n.getAttribute("href")&&(t=n),r=h.get(e),s(r),u(),p.current=UO((function(){d.current===r&&t.focus()})))},[XA,KA].includes(P)||w.sibling||!y?(x=Ep(C=y&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):o.current,f),D=P===XA?x[0]:P===KA?x[x.length-1]:Op(C,f,y,w.offset),k(D)):w.inlineTrigger?l(v):w.offset>0?(l(v,!0),u(),p.current=UO((function(){var e,t;b(),e=y.getAttribute("aria-controls"),t=Op(document.getElementById(e),f),k(t)}),5)):w.offset<0&&(S=i(v,!0),O=g.get(E=S[S.length-2]),l(E,!1),k(O))}null==c||c(m)}}(E,q,m,d,p,B,z,X,(function(e,t){var n=null!=t?t:!g.includes(e);ne(e,n)}),tt),q_.useEffect((function(){u(!0)}),[]),oe=q_.useMemo((function(){return{_internalRenderMenuItem:o,_internalRenderSubMenuItem:a}}),[o,a]),ae="horizontal"!==E||ke?s:s.map((function(e,t){return q_.createElement(Cp,{key:e.key,overflowDisabled:t>R},e)})),ie=q_.createElement(EN,mi({id:be,ref:p,prefixCls:"".concat(le,"-overflow"),component:"ul",itemComponent:Y2,className:JQ(le,"".concat(le,"-root"),"".concat(le,"-").concat(E),pe,(r={},xa(r,"".concat(le,"-inline-collapsed"),I),xa(r,"".concat(le,"-rtl"),m),r),ce),dir:he,style:ue,role:"menu",tabIndex:me,data:ae,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?s.slice(-t):null;return q_.createElement(zp,{eventKey:eR,title:Ye,disabled:j,internalPopupClose:0===t,popupClassName:Qe},n)},maxCount:"horizontal"!==E||ke?EN.INVALIDATE:EN.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){T(e)},onKeyDown:re},i)),q_.createElement(zA.Provider,{value:oe},q_.createElement(TA.Provider,{value:d},q_.createElement(Cp,{prefixCls:le,rootClassName:ce,mode:E,openKeys:g,rtl:m,disabled:we,motion:c?Be:null,defaultMotions:c?He:null,activeKey:q,onActive:K,onInactive:Y,selectedKeys:J,inlineIndent:ze,subMenuOpenDelay:De,subMenuCloseDelay:Se,forceSubMenuRender:Ee,builtinPlacements:Ge,triggerSubMenuAction:Ve,getPopupContainer:Je,itemIcon:qe,expandIcon:Xe,onItemClick:te,onOpenChange:ne},q_.createElement(UA.Provider,{value:V},ie),q_.createElement("div",{style:{display:"none"},"aria-hidden":!0},q_.createElement(MA.Provider,{value:W},s)))))}))).Item=Y2,xR.SubMenu=zp,xR.ItemGroup=Bp,xR.Divider=Hp;const Q2={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"},J2=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:Q2}))})),Z2=q_.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});globalThis&&globalThis;const e5=q_.createContext(null);SR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:r}=e,o=SR(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=q_.useContext(wJ),i=a("menu",t),s=JQ({[`${i}-item-divider-dashed`]:!!r},n);return q_.createElement(Hp,Object.assign({className:s},o))};globalThis&&globalThis;const n5=q_.createContext({}),r5=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:p}=q_.useContext(Z2),{siderCollapsed:d}=q_.useContext(n5);let m=a;void 0===a?m=l?r:"":!1===a&&(m="");const f={title:m};d||p||(f.title=null,f.open=!1);const g=Ls(r).length;let h=q_.createElement(Y2,Object.assign({},Qs(e,["title","icon","danger"]),{className:JQ({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof a?a:void 0}),sc(o,{className:JQ(cZ(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=q_.createElement("span",{className:`${s}-title-content`},r);return(!o||cZ(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?q_.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(p));return u||(h=q_.createElement(G2,Object.assign({},f,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),h)),h},o5=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=q_.useContext(Z2),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=xp();let p;if(r){const e=cZ(o)&&"span"===o.type;p=q_.createElement(q_.Fragment,null,sc(r,{className:JQ(cZ(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:q_.createElement("span",{className:`${s}-title-content`},o))}else p=l&&!u.length&&o&&"string"==typeof o?q_.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):q_.createElement("span",{className:`${s}-title-content`},o);const d=q_.useMemo((()=>Object.assign(Object.assign({},i),{firstLevel:!1})),[i]);return q_.createElement(Z2.Provider,{value:d},q_.createElement(zp,Object.assign({},Qs(e,["icon"]),{title:p,popupClassName:JQ(s,n,`${s}-${a||c}`)})))};ER=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:a,lineType:i,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${i} ${o}`,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,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},i5=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},s5=e=>Object.assign({},EJ(e)),l5=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:p,motionDurationSlow:d,motionEaseInOut:m,motionEaseOut:f,menuItemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:_,colorSplit:y,itemDisabledColor:v,dangerItemColor:w,dangerItemHoverColor:k,dangerItemSelectedColor:C,dangerItemActiveBg:D,dangerItemSelectedBg:x,itemHoverBg:S,menuSubMenuBg:E,horizontalItemSelectedColor:O,horizontalItemSelectedBg:P,horizontalItemBorderRadius:I,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},s5(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${v} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:S},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:S},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:x}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},s5(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:E},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:-p,marginBottom:0,borderRadius:I,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${d} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:P,"&::after":{borderBottomWidth:c,borderBottomColor:O}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${p}px ${_} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:p&&u?{width:`calc(100% + ${p}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(",")}}}}}},c5=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,marginXXS:s}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+a+i}}},u5=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:p,motionDurationSlow:d,paddingXS:m,boxShadowSecondary:f}=e,g={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},c5(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},c5(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${2.5*i}px)`,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 ${d}`,`background ${d}`,`padding ${s} ${l}`].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`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:2*r,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${p/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},CJ),{paddingInline:m})}}]},p5=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,motionEaseOut:i,iconCls:s,controlHeightSM:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${i}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},d5=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*a,height:.15*a,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},m5=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,lineHeight:s,paddingXS:l,padding:c,colorSplit:u,lineWidth:p,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:f,menuArrowSize:g,menuArrowOffset:h,lineType:b,menuPanelMaskInset:_}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},DJ(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${c}px`,fontSize:r,lineHeight:s,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:b,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}}}),p5(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${_}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:_},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},p5(e)),d5(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),d5(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h})`},"&::after":{transform:`rotate(45deg) translateX(-${h})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*g}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};OR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const o=q_.useContext(e5),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l}=q_.useContext(wJ),c=i(),{prefixCls:u,className:p,theme:d="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:f,inlineCollapsed:g,siderCollapsed:h,items:b,children:_,rootClassName:y,mode:v,selectable:w,onClick:k,overflowedIndicatorPopupClassName:C}=e,D=Qs(OR(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),x=Vp(b)||_;null===(n=a.validator)||void 0===n||n.call(a,{mode:v});const S=Nl((function(){var e;null==k||k.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),E=a.mode||v,O=null!=w?w:a.selectable,P=q_.useMemo((()=>void 0!==h?h:g),[g,h]),I={horizontal:{motionName:`${c}-slide-up`},inline:C0(c),other:{motionName:`${c}-zoom-big`}},N=i("menu",u||a.prefixCls),[A,R]=((e,t)=>jl("Menu",((e,n)=>{let{overrideComponentToken:r}=n;if(!1===t)return[];const{colorBgElevated:o,colorPrimary:a,colorError:i,colorErrorHover:s,colorTextLightSolid:l,controlHeightLG:c,fontSize:u}=e,p=u/7*5,d=$l(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuArrowSize:p,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*p+"px",menuPanelMaskInset:-7,menuSubMenuBg:o}),m=new qO(l).setAlpha(.65).toRgbString(),f=$l(d,{itemColor:m,itemHoverColor:l,groupTitleColor:m,itemSelectedColor:l,itemBg:"#001529",subMenuItemBg:"#000c17",itemActiveBg:"transparent",itemSelectedBg:a,activeBarWidth:0,activeBarHeight:0,activeBarBorderWidth:0,itemDisabledColor:new qO(l).setAlpha(.25).toRgbString(),dangerItemColor:i,dangerItemHoverColor:s,dangerItemSelectedColor:l,dangerItemActiveBg:i,dangerItemSelectedBg:i,menuSubMenuBg:"#001529",horizontalItemSelectedColor:l,horizontalItemSelectedBg:a},Object.assign({},r));return[m5(d),a5(d),u5(d),l5(d,"light"),l5(f,"dark"),i5(d),v1(d),a1(d,"slide-up"),a1(d,"slide-down"),y1(d,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:a,colorTextDescription:i,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:p,controlItemBgActive:d,colorBgTextHover:m}=e;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:i,groupTitleColor:i,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:c,itemActiveBg:c,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent"}}),{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"]]})(e))(N,!o),T=JQ(`${N}-${d}`,p);let j;if("function"==typeof m)j=m;else{const e=m||a.expandIcon;j=sc(e,{className:JQ(`${N}-submenu-expand-icon`,null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.className)})}const $=q_.useMemo((()=>({prefixCls:N,inlineCollapsed:P||!1,direction:l,firstLevel:!0,theme:d,mode:E,disableMenuItemTitleTooltip:f})),[N,P,l,f,d]);return A(q_.createElement(e5.Provider,{value:null},q_.createElement(Z2.Provider,{value:$},q_.createElement(xR,Object.assign({getPopupContainer:s,overflowedIndicator:q_.createElement(J2,null),overflowedIndicatorPopupClassName:JQ(N,`${N}-${d}`,C),mode:E,selectable:O,onClick:S},D,{inlineCollapsed:P,className:T,prefixCls:N,direction:l,defaultMotions:I,expandIcon:j,ref:t,rootClassName:JQ(y,R)}),x))))})),g5=q_.forwardRef(((e,t)=>{const n=q_.useRef(null),r=q_.useContext(n5);return q_.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),q_.createElement(f5,Object.assign({ref:n},e,r))}));g5.Item=r5,g5.SubMenu=o5,g5.Divider=t5,g5.ItemGroup=Bp;const h5=g5,b5=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),_5=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),y5=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),v5=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},_5($l(e,{inputBorderHoverColor:e.colorBorder})))}),w5=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},k5=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),C5=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:a,colorWarningOutline:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},y5($l(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},y5($l(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},D5=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},b5(e.colorTextPlaceholder)),{"&:hover":Object.assign({},_5(e)),"&:focus, &-focused":Object.assign({},y5(e)),"&-disabled, &[disabled]":Object.assign({},v5(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},w5(e)),"&-sm":Object.assign({},k5(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),x5=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},w5(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},k5(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${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.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},S5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},DJ(e)),D5(e)),C5(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},E5=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},O5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},D5(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},_5(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),E5(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),C5(e,`${t}-affix-wrapper`))}},P5=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},DJ(e)),x5(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},v5(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}}}})}},I5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},N5=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},A5=jl("Input",(e=>{const t=Gp(e);return[S5(t),N5(t),O5(t),P5(t),I5(t),Oc(t)]})),R5=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=JQ({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=JQ({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),l=q_.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return q_.createElement("span",{className:JQ(t,i,s,n),style:Object.assign(Object.assign({},l),r)})},T5=new tO("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),j5=e=>({height:e,lineHeight:`${e}px`}),$5=e=>Object.assign({width:e},j5(e)),F5=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:T5,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),M5=e=>Object.assign({width:5*e,minWidth:5*e},j5(e)),L5=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},$5(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},$5(o)),[`${t}${t}-sm`]:Object.assign({},$5(a))}},U5=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},M5(t)),[`${r}-lg`]:Object.assign({},M5(o)),[`${r}-sm`]:Object.assign({},M5(a))}},z5=e=>Object.assign({width:e},j5(e)),B5=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},z5(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},z5(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},H5=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},W5=e=>Object.assign({width:2*e,minWidth:2*e},j5(e)),V5=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:2*r,minWidth:2*r},W5(r))},H5(e,r,n)),{[`${n}-lg`]:Object.assign({},W5(o))}),H5(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},W5(a))}),H5(e,a,`${n}-sm`))},G5=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:p,padding:d,marginSM:m,borderRadius:f,titleHeight:g,blockRadius:h,paragraphLiHeight:b,controlHeightXS:_,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},$5(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},$5(c)),[`${n}-sm`]:Object.assign({},$5(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:p,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:p,borderRadius:h,"+ li":{marginBlockStart:_}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:f}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:m,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},V5(e)),L5(e)),U5(e)),B5(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${a},\n ${i},\n ${s}\n `]:Object.assign({},F5(e))}}},q5=jl("Skeleton",(e=>{const{componentCls:t}=e,n=$l(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[G5(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),X5={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-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},K5=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:X5}))})),Y5=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:a}=e,i=ki(Array(a)).map(((e,n)=>q_.createElement("li",{key:n,style:{width:t(n)}})));return q_.createElement("ul",{className:JQ(n,r),style:o},i)},Q5=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return q_.createElement("h3",{className:JQ(t,n),style:Object.assign({width:r},o)})},J5=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:p}=e,{getPrefixCls:d,direction:m}=q_.useContext(wJ),f=d("skeleton",t),[g,h]=q5(f);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let i,d;if(e){const e=Object.assign(Object.assign({prefixCls:`${f}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),qp(s));i=q_.createElement("div",{className:`${f}-header`},q_.createElement(R5,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${f}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),qp(l));r=q_.createElement(Q5,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${f}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),qp(c));o=q_.createElement(Y5,Object.assign({},n))}d=q_.createElement("div",{className:`${f}-content`},r,o)}const b=JQ(f,{[`${f}-with-avatar`]:e,[`${f}-active`]:u,[`${f}-rtl`]:"rtl"===m,[`${f}-round`]:p},r,o,h);return g(q_.createElement("div",{className:b,style:a},i,d))}return void 0!==i?i:null};J5.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=q_.useContext(wJ),l=s("skeleton",t),[c,u]=q5(l),p=Qs(e,["prefixCls"]),d=JQ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(q_.createElement("div",{className:d},q_.createElement(R5,Object.assign({prefixCls:`${l}-button`,size:i},p))))},J5.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=q_.useContext(wJ),l=s("skeleton",t),[c,u]=q5(l),p=Qs(e,["prefixCls","className"]),d=JQ(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(q_.createElement("div",{className:d},q_.createElement(R5,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:i},p))))},J5.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=q_.useContext(wJ),l=s("skeleton",t),[c,u]=q5(l),p=Qs(e,["prefixCls"]),d=JQ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(q_.createElement("div",{className:d},q_.createElement(R5,Object.assign({prefixCls:`${l}-input`,size:i},p))))},J5.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=q_.useContext(wJ),s=i("skeleton",t),[l,c]=q5(s),u=JQ(s,`${s}-element`,{[`${s}-active`]:a},n,r,c);return l(q_.createElement("div",{className:u},q_.createElement("div",{className:JQ(`${s}-image`,n),style:o},q_.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},q_.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},J5.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=q_.useContext(wJ),l=s("skeleton",t),[c,u]=q5(l),p=JQ(l,`${l}-element`,{[`${l}-active`]:a},u,n,r),d=null!=i?i:q_.createElement(K5,null);return c(q_.createElement("div",{className:p},q_.createElement("div",{className:JQ(`${l}-image`,n),style:o},d)))};const Z5=J5,e3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},t3=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:e3}))})),n3=q_.createContext(null);PR=q_.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,l=e.children;return q_.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:JQ(n,i&&"".concat(n,"-active"),r),ref:t},l)})),IR=["key","forceRender","style","className"],NR={width:0,height:0,left:0,top:0},AR=.1,RR=.01,TR=20,jR=Math.pow(.995,TR),$R={width:0,height:0,left:0,top:0,right:0},FR="TABS_DQ";const r3=q_.forwardRef(Zp);MR=q_.forwardRef((function(e,t){var n,r,o=e.position,a=e.prefixCls,i=e.extra;return i?(r={},"object"!==Ca(i)||q_.isValidElement(i)?r.right=i:r=i,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?q_.createElement("div",{className:"".concat(a,"-extra-content"),ref:t},n):null):null}));const o3=q_.memo(q_.forwardRef(ed),(function(e,t){return t.tabMoving}));LR=function(e){var t=e.current||{},n=t.offsetWidth,r=t.offsetHeight;return[void 0===n?0:n,void 0===r?0:r]},UR=function(e,t){return e[t?0:1]};const a3=q_.forwardRef(nd);zR=["renderTabBar"],BR=["label","key"],HR=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],WR=0,VR=q_.forwardRef(od);const i3={motionAppear:!1,motionEnter:!0,motionLeave:!0};GR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[a1(e,"slide-up"),a1(e,"slide-down")]]},l3=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},c3=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},DJ(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:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},CJ),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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.colorTextDescription,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"}}})}})}},u3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,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:1.25*e.controlHeight,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},p3=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},d3=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},OJ(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},m3=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=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}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},f3=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},DJ(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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},OJ(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),d3(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},g3=jl("Tabs",(e=>{const t=$l(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[p3(t),m3(t),u3(t),c3(t),l3(t),f3(t),s3(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:e.controlHeightLG,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2})));qR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rnull;const h3=q_.createContext({}),b3=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},_3=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},y3=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let a=r;a>=0;a--)0===a?(o[`${n}${t}-${a}`]={display:"none"},o[`${n}-push-${a}`]={insetInlineStart:"auto"},o[`${n}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${a}`]={marginInlineStart:0},o[`${n}${t}-order-${a}`]={order:0}):(o[`${n}${t}-${a}`]={display:"block",flex:`0 0 ${a/r*100}%`,maxWidth:a/r*100+"%"},o[`${n}${t}-push-${a}`]={insetInlineStart:a/r*100+"%"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:a/r*100+"%"},o[`${n}${t}-offset-${a}`]={marginInlineStart:a/r*100+"%"},o[`${n}${t}-order-${a}`]={order:a});return o})(e,t),v3=jl("Grid",(e=>[b3(e)])),w3=jl("Grid",(e=>{const t=$l(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[_3(t),y3(t,""),y3(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},y3(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));XR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=q_.useContext(wJ),{gutter:o,wrap:a,supportFlexGap:i}=q_.useContext(h3),{prefixCls:s,span:l,order:c,offset:u,push:p,pull:d,className:m,children:f,flex:g,style:h}=e,b=XR(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),_=n("col",s),[y,v]=w3(_);let w={};k3.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete b[t],w=Object.assign(Object.assign({},w),{[`${_}-${t}-${n.span}`]:void 0!==n.span,[`${_}-${t}-order-${n.order}`]:n.order||0===n.order,[`${_}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${_}-${t}-push-${n.push}`]:n.push||0===n.push,[`${_}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${_}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${_}-rtl`]:"rtl"===r})}));const k=JQ(_,{[`${_}-${l}`]:void 0!==l,[`${_}-order-${c}`]:c,[`${_}-offset-${u}`]:u,[`${_}-push-${p}`]:p,[`${_}-pull-${d}`]:d},m,w,v),C={};if(o&&o[0]>0){const e=o[0]/2;C.paddingLeft=e,C.paddingRight=e}if(o&&o[1]>0&&!i){const e=o[1]/2;C.paddingTop=e,C.paddingBottom=e}return g&&(C.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(g),!1!==a||C.minWidth||(C.minWidth=0)),y(q_.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},C),h),className:k,ref:t}),f))})),D3=()=>{const[e,t]=q_.useState(!1);return q_.useEffect((()=>{t((()=>{if(!E0())return!1;if(void 0!==O0)return O0;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),O0=1===e.scrollHeight,document.body.removeChild(e),O0})())}),[]),e};KR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=KR(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:d}=q_.useContext(wJ),[m,f]=q_.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,h]=q_.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=id(o,g),_=id(r,g),y=D3(),v=q_.useRef(l),w=mp();q_.useEffect((()=>{const e=w.subscribe((e=>{h(e);const t=v.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&f(e)}));return()=>w.unsubscribe(e)}),[]);const k=p("row",n),[C,D]=v3(k),x=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?x[0]/-2:void 0,P=null!=x[1]&&x[1]>0?x[1]/-2:void 0;O&&(E.marginLeft=O,E.marginRight=O),y?[,E.rowGap]=x:P&&(E.marginTop=P,E.marginBottom=P);const[I,N]=x,A=q_.useMemo((()=>({gutter:[I,N],wrap:c,supportFlexGap:y})),[I,N,c,y]);return C(q_.createElement(h3.Provider,{value:A},q_.createElement("div",Object.assign({},u,{className:S,style:Object.assign(Object.assign({},E),i),ref:t}),s)))}));(YR=hQ.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=Vi(hQ.useState(l||o),2),p=u[0],d=u[1];return hQ.useEffect((function(){(o||l)&&d(!0)}),[o,l]),p?hQ.createElement("div",{ref:t,className:JQ("".concat(r,"-content"),(n={},xa(n,"".concat(r,"-content-active"),l),xa(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},hQ.createElement("div",{className:"".concat(r,"-content-box")},s)):null}))).displayName="PanelContent",QR=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],JR=hQ.forwardRef((function(e,t){var n,r,o,a,i=e.showArrow,s=void 0===i||i,l=e.headerClass,c=e.isActive,u=e.onItemClick,p=e.forceRender,d=e.className,m=e.prefixCls,f=e.collapsible,g=e.accordion,h=e.panelKey,b=e.extra,_=e.header,y=e.expandIcon,v=e.openMotion,w=e.destroyInactivePanel,k=e.children,C=Sa(e,QR),D="disabled"===f,x="header"===f,S="icon"===f,E=null!=b&&"boolean"!=typeof b,O=function(){null==u||u(h)},P="function"==typeof y?y(e):hQ.createElement("i",{className:"arrow"});return P&&(P=hQ.createElement("div",{className:"".concat(m,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},P)),o=JQ((xa(n={},"".concat(m,"-item"),!0),xa(n,"".concat(m,"-item-active"),c),xa(n,"".concat(m,"-item-disabled"),D),n),d),a={className:JQ((xa(r={},"".concat(m,"-header"),!0),xa(r,"headerClass",l),xa(r,"".concat(m,"-header-collapsible-only"),x),xa(r,"".concat(m,"-icon-collapsible-only"),S),r)),"aria-expanded":c,"aria-disabled":D,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==JP.ENTER&&e.which!==JP.ENTER||O()}},x||S||(a.onClick=O,a.role=g?"tab":"button",a.tabIndex=D?-1:0),hQ.createElement("div",mi({},C,{ref:t,className:o}),hQ.createElement("div",a,s&&P,hQ.createElement("span",{className:"".concat(m,"-header-text"),onClick:"header"===f?O:void 0},_),E&&hQ.createElement("div",{className:"".concat(m,"-extra")},b)),hQ.createElement(BJ,mi({visible:c,leavedClassName:"".concat(m,"-content-hidden")},v,{forceRender:p,removeOnLeave:w}),(function(e,t){return hQ.createElement(YR,{ref:t,prefixCls:m,className:e.className,style:e.style,isActive:c,forceRender:p,role:g?"tabpanel":void 0},k)})))})),ZR=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],eT=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,a=t.destroyInactivePanel,i=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,p=e.children,d=e.label,m=e.key,f=e.collapsible,g=e.onItemClick,h=e.destroyInactivePanel,b=Sa(e,ZR),_=String(null!=m?m:t),y=null!=f?f:o,v=null!=h?h:a;return u=r?s[0]===_:s.indexOf(_)>-1,hQ.createElement(JR,mi({},b,{prefixCls:n,key:_,panelKey:_,isActive:u,accordion:r,openMotion:l,expandIcon:c,header:d,collapsible:y,onItemClick:function(e){"disabled"!==y&&(i(e),null==g||g(e))},destroyInactivePanel:v}),p)}))},tT=function(e,t,n){var r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v;return e?(r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,p=e.key||String(t),m=(d=e.props).header,f=d.headerClass,g=d.destroyInactivePanel,h=d.collapsible,b=d.onItemClick,_=o?l[0]===p:l.indexOf(p)>-1,v={key:p,panelKey:p,header:m,headerClass:f,isActive:_,prefixCls:r,destroyInactivePanel:null!=g?g:i,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==y&&(s(e),null==b||b(e))},expandIcon:u,collapsible:y=null!=h?h:a},"string"==typeof e.type?e:(Object.keys(v).forEach((function(e){void 0===v[e]&&delete v[e]})),hQ.cloneElement(e,v))):null};const S3=Object.assign(hQ.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,a=e.destroyInactivePanel,i=void 0!==a&&a,s=e.style,l=e.accordion,c=e.children,u=e.collapsible,p=e.openMotion,d=e.expandIcon,m=e.activeKey,f=e.defaultActiveKey,g=e.onChange,h=e.items,b=JQ(o,e.className),_=Vi(Tl([],{value:m,onChange:function(e){return null==g?void 0:g(e)},defaultValue:f,postState:sd}),2),y=_[0],v=_[1];return Ii(!c,"`children` will be removed in next major version. Please use `items` instead."),n=function(e,t,n){return Array.isArray(e)?eT(e,n):Ls(t).map((function(e,t){return tT(e,t,n)}))}(h,c,{prefixCls:o,accordion:l,openMotion:p,expandIcon:d,collapsible:u,destroyInactivePanel:i,onItemClick:function(e){return v((function(){return l?y[0]===e?[]:[e]:y.indexOf(e)>-1?y.filter((function(t){return t!==e})):[].concat(ki(y),[e])}))},activeKey:y}),hQ.createElement("div",{ref:t,className:b,style:s,role:l?"tablist":void 0},n)})),{Panel:JR}),E3=q_.forwardRef(((e,t)=>{const{getPrefixCls:n}=q_.useContext(wJ),{prefixCls:r,className:o="",showArrow:a=!0}=e,i=n("collapse",r),s=JQ({[`${i}-no-arrow`]:!a},o);return q_.createElement(S3.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))})),O3=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:a,collapseHeaderPadding:i,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:p,colorBorder:d,colorText:m,colorTextHeading:f,colorTextDisabled:g,fontSize:h,fontSizeLG:b,lineHeight:_,marginSM:y,paddingSM:v,paddingLG:w,paddingXS:k,motionDurationSlow:C,fontSizeIcon:D}=e,x=`${u}px ${p} ${d}`;return{[t]:Object.assign(Object.assign({},DJ(e)),{backgroundColor:a,border:x,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:x,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,paddingInlineStart:v,color:f,lineHeight:_,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*_,display:"flex",alignItems:"center",paddingInlineEnd:y,marginInlineStart:r-v},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:D,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:x,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:k,[`> ${t}-expand-icon`]:{marginInlineStart:v-k}},[`> ${t}-content > ${t}-content-box`]:{padding:v}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*_,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},P3=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},I3=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},N3=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},A3=jl("Collapse",(e=>{const t=$l(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[O3(t),I3(t),N3(t),P3(t),v1(t)]})),R3=q_.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=q_.useContext(wJ),{prefixCls:o,className:a,rootClassName:i,bordered:s=!0,ghost:l,size:c,expandIconPosition:u="start",children:p,expandIcon:d}=e,m=MJ((e=>{var t;return null!==(t=null!=c?c:e)&&void 0!==t?t:"middle"})),f=n("collapse",o),g=n(),[h,b]=A3(f),_=q_.useMemo((()=>"left"===u?"start":"right"===u?"end":u),[u]),y=JQ(`${f}-icon-position-${_}`,{[`${f}-borderless`]:!s,[`${f}-rtl`]:"rtl"===r,[`${f}-ghost`]:!!l,[`${f}-${m}`]:"middle"!==m},a,i,b),v=Object.assign(Object.assign({},C0(g)),{motionAppear:!1,leavedClassName:`${f}-content-hidden`}),w=q_.useMemo((()=>p?Ls(p).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:a}=e.props;return sc(e,Object.assign(Object.assign({},Qs(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0}))}return e})):null),[p]);return h(q_.createElement(S3,Object.assign({ref:t,openMotion:v},Qs(e,["rootClassName"]),{expandIcon:function(e){let t=arguments.length>0&&void 0!==e?e:{};const n=d?d(t):q_.createElement(X2,{rotate:t.isActive?90:void 0});return sc(n,(()=>({className:JQ(n.props.className,`${f}-arrow`)})))},prefixCls:f,className:y}),w))})),T3=Object.assign(R3,{Panel:E3}),j3=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},DJ(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},$3=jl("Divider",(e=>{const t=$l(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[j3(t)]}),{sizePaddingEdgeHorizontal:0});nT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n}=q_.useContext(wJ),{prefixCls:r,type:o="horizontal",orientation:a="center",orientationMargin:i,className:s,rootClassName:l,children:c,dashed:u,plain:p}=e,d=nT(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),m=t("divider",r),[f,g]=$3(m),h=!!c,b="left"===a&&null!=i,_="right"===a&&null!=i,y=JQ(m,g,`${m}-${o}`,{[`${m}-with-text`]:h,[`${m}-with-text${a.length>0?`-${a}`:a}`]:h,[`${m}-dashed`]:!!u,[`${m}-plain`]:!!p,[`${m}-rtl`]:"rtl"===n,[`${m}-no-default-orientation-margin-left`]:b,[`${m}-no-default-orientation-margin-right`]:_},s,l),v=q_.useMemo((()=>"number"==typeof i?i:/^\d+$/.test(i)?Number(i):i),[i]),w=Object.assign(Object.assign({},b&&{marginLeft:v}),_&&{marginRight:v});return f(q_.createElement("div",Object.assign({className:y},d,{role:"separator"}),c&&"vertical"!==o&&q_.createElement("span",{className:`${m}-inner-text`,style:w},c)))},M3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},L3=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:M3}))}));rT=function(){function e(t){var n,r,o,a;Oa(this,e),xa(this,"origin",""),xa(this,"negative",void 0),xa(this,"integer",void 0),xa(this,"decimal",void 0),xa(this,"decimalLen",void 0),xa(this,"empty",void 0),xa(this,"nan",void 0),cd(t)?this.empty=!0:(this.origin=String(t),"-"===t||Number.isNaN(t)?this.nan=!0:(pd(n=t)&&(n=Number(n)),fd(n="string"==typeof n?n:md(n))?(r=ud(n),this.negative=r.negative,o=r.trimStr.split("."),this.integer=BigInt(o[0]),a=o[1]||"0",this.decimal=BigInt(a),this.decimalLen=a.length):this.nan=!0))}return Ia(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),i=r(o),s=ud(a),l=s.trimStr,c="".concat(s.negativeStr).concat(l.padStart(i+1,"0"));return new e("".concat(c.slice(0,-i),".").concat(c.slice(-i)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(e){return arguments.length>0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":ud("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),oT=function(){function e(t){Oa(this,e),xa(this,"origin",""),xa(this,"number",void 0),xa(this,"empty",void 0),cd(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ia(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){var n,r,o;return this.isInvalidate()?new e(t):(n=Number(t),Number.isNaN(n)?this:(r=this.number+n)>Number.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):rNumber.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):n0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":md(this.number)}}]),e}(),aT=function(){var e=Vi(q_.useState(!1),2),t=e[0],n=e[1];return lP((function(){n(q1())}),[]),t},iT=200,sT=600,lT=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],cT=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},uT=function(e){var t=gd(e);return t.isInvalidate()?null:t},pT=q_.forwardRef((function(e,t){function n(e,t){we(_e(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N=e.prefixCls,A=void 0===N?"rc-input-number":N,R=e.className,T=e.style,j=e.min,$=e.max,F=e.step,M=void 0===F?1:F,L=e.defaultValue,U=e.value,z=e.disabled,B=e.readOnly,H=e.upHandler,W=e.downHandler,V=e.keyboard,G=e.controls,q=void 0===G||G,X=e.stringMode,K=e.parser,Y=e.formatter,Q=e.precision,J=e.decimalSeparator,Z=e.onChange,ee=e.onInput,te=e.onPressEnter,ne=e.onStep,re=Sa(e,lT),oe="".concat(A,"-input"),ae=q_.useRef(null),ie=Vi(q_.useState(!1),2),se=ie[0],le=ie[1],ce=q_.useRef(!1),ue=q_.useRef(!1),pe=q_.useRef(!1),de=Vi(q_.useState((function(){return gd(null!=U?U:L)})),2),me=de[0],fe=de[1],ge=q_.useCallback((function(e,t){if(!t)return Q>=0?Q:Math.max(dd(e),dd(M))}),[Q,M]),he=q_.useCallback((function(e){var t,n=String(e);return K?K(n):(t=n,J&&(t=t.replace(J,".")),t.replace(/[^\w.-]+/g,""))}),[K,J]),be=q_.useRef(""),_e=q_.useCallback((function(e,t){var n,r;return Y?Y(e,{userTyping:t,input:String(be.current)}):(n="number"==typeof e?md(e):e,t||(r=ge(n,t),fd(n)&&(J||r>=0)&&(n=hd(n,J||".",r))),n)}),[Y,ge,J]),ye=Vi(q_.useState((function(){var e=null!=L?L:U;return me.isInvalidate()&&["string","number"].includes(Ca(e))?Number.isNaN(e)?"":e:_e(me.toString(),!1)})),2),ve=ye[0],we=ye[1];return be.current=ve,o=q_.useMemo((function(){return uT($)}),[$,Q]),a=q_.useMemo((function(){return uT(j)}),[j,Q]),i=q_.useMemo((function(){return!(!o||!me||me.isInvalidate())&&o.lessEquals(me)}),[o,me]),s=q_.useMemo((function(){return!(!a||!me||me.isInvalidate())&&me.lessEquals(a)}),[a,me]),S=ae.current,E=se,O=q_.useRef(null),l=[function(){var e,t,n,r,o;try{t=S.selectionEnd,r=(n=S.value).substring(0,e=S.selectionStart),o=n.substring(t),O.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(bY){}},function(){var e,t,n,r,o,a;if(S&&O.current&&E)try{n=(t=O.current).beforeTxt,r=t.start,o=(e=S.value).length,e.endsWith(t.afterTxt)?o=e.length-O.current.afterTxt.length:e.startsWith(n)?o=n.length:-1!==(a=e.indexOf(n[r-1],r-1))&&(o=a+1),S.setSelectionRange(o,o)}catch(bY){Ii(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(bY.message))}}],c=Vi(l,2),u=c[0],p=c[1],d=function(e){return o&&!e.lessEquals(o)?o:a&&!a.lessEquals(e)?a:null},m=function(e){return!d(e)},f=function(e,t){var r,o,a=e,i=m(a)||a.isEmpty();return a.isEmpty()||t||(a=d(a)||a,i=!0),B||z||!i?me:(r=a.toString(),(o=ge(r,t))>=0&&(a=gd(hd(r,".",o)),m(a)||(a=gd(hd(r,".",o,!0)))),a.equals(me)||(void 0===U&&fe(a),null==Z||Z(a.isEmpty()?null:cT(X,a)),void 0===U&&n(a,t)),a)},P=q_.useRef(0),I=function(){UO.cancel(P.current)},q_.useEffect((function(){return I}),[]),g=function(e){I(),P.current=UO((function(){e()}))},h=function e(t){var n;u(),we(t),ue.current||(n=gd(he(t))).isNaN()||f(n,!0),null==ee||ee(t),g((function(){var n=t;K||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},b=function(){ue.current=!0},_=function(){ue.current=!1,h(ae.current.value)},y=function(e){h(e.target.value)},v=function(e){var t,n,r,o;e&&i||!e&&s||(ce.current=!1,n=gd(pe.current?_d(M):M),e||(n=n.negate()),r=(me||gd(0)).add(n.toString()),o=f(r,!1),null==ne||ne(cT(X,o),{offset:pe.current?_d(M):M,type:e?"up":"down"}),null===(t=ae.current)||void 0===t||t.focus())},w=function(e){var t=gd(he(ve)),r=t;r=t.isNaN()?me:f(t,e),void 0!==U?n(me,!1):r.isNaN()||n(r,!1)},k=function(){ce.current=!0},C=function(e){var t=e.which,n=e.shiftKey;ce.current=!0,pe.current=!!n,t===JP.ENTER&&(ue.current||(ce.current=!1),w(!1),null==te||te(e)),!1!==V&&!ue.current&&[JP.UP,JP.DOWN].includes(t)&&(v(JP.UP===t),e.preventDefault())},D=function(){ce.current=!1,pe.current=!1},x=function(){w(!1),le(!1),ce.current=!1},cP((function(){me.isInvalidate()||n(me,!1)}),[Q]),cP((function(){var e,t=gd(U);fe(t),e=gd(he(ve)),t.equals(e)&&ce.current&&!Y||n(t,ce.current)}),[U]),cP((function(){Y&&p()}),[ve]),q_.createElement("div",{className:JQ(A,R,(r={},xa(r,"".concat(A,"-focused"),se),xa(r,"".concat(A,"-disabled"),z),xa(r,"".concat(A,"-readonly"),B),xa(r,"".concat(A,"-not-a-number"),me.isNaN()),xa(r,"".concat(A,"-out-of-range"),!me.isInvalidate()&&!m(me)),r)),style:T,onFocus:function(){le(!0)},onBlur:x,onKeyDown:C,onKeyUp:D,onCompositionStart:b,onCompositionEnd:_,onBeforeInput:k},q&&q_.createElement(bd,{prefixCls:A,upNode:H,downNode:W,upDisabled:i,downDisabled:s,onStep:v}),q_.createElement("div",{className:"".concat(oe,"-wrap")},q_.createElement("input",mi({autoComplete:"off",role:"spinbutton","aria-valuemin":j,"aria-valuemax":$,"aria-valuenow":me.isInvalidate()?null:me.toString(),step:M},re,{ref:zs(ae,t),className:oe,value:ve,onChange:y,disabled:z,readOnly:B}))))})),pT.displayName="InputNumber";const U3=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:p,motionDurationMid:d,colorPrimary:m,controlHeight:f,inputPaddingHorizontal:g,colorBgContainer:h,colorTextDisabled:b,borderRadiusSM:_,borderRadiusLG:y,controlWidth:v,handleVisible:w}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},DJ(e)),D5(e)),C5(e,t)),{display:"inline-block",width:v,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:y,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:_,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},_5(e)),"&-focused":Object.assign({},y5(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},DJ(e)),x5(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},v5(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},DJ(e)),{width:"100%",height:f-2*n,padding:`0 ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${d} linear`,appearance:"textfield",fontSize:"inherit"}),b5(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:h,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${d} linear ${d}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${d} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:p,transition:`all ${d} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},z3=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:a,borderRadiusSM:i}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},D5(e)),C5(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:i},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},_5(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},B3=jl("InputNumber",(e=>{const t=Gp(e);return[U3(t),z3(t),Oc(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"})));dT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=q_.useContext(wJ),[o,a]=q_.useState(!1),i=q_.useRef(null);q_.useImperativeHandle(t,(()=>i.current));const{className:s,rootClassName:l,size:c,disabled:u,prefixCls:p,addonBefore:d,addonAfter:m,prefix:f,bordered:g=!0,readOnly:h,status:b,controls:_}=e,y=dT(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),v=n("input-number",p),[w,k]=B3(v),{compactSize:C,compactItemClassnames:D}=TZ(v,r);let x=q_.createElement(L3,{className:`${v}-handler-up-inner`}),S=q_.createElement(y2,{className:`${v}-handler-down-inner`});const E="boolean"==typeof _?_:void 0;"object"==typeof _&&(x=void 0===_.upIcon?x:q_.createElement("span",{className:`${v}-handler-up-inner`},_.upIcon),S=void 0===_.downIcon?S:q_.createElement("span",{className:`${v}-handler-down-inner`},_.downIcon));const{hasFeedback:O,status:P,isFormItemInput:I,feedbackIcon:N}=q_.useContext(R0),A=Y1(P,b),R=MJ((e=>{var t;return null!==(t=null!=c?c:C)&&void 0!==t?t:e})),T=null!=f||O,j=!(!d&&!m),$=q_.useContext(FJ),F=null!=u?u:$,M=JQ({[`${v}-lg`]:"large"===R,[`${v}-sm`]:"small"===R,[`${v}-rtl`]:"rtl"===r,[`${v}-borderless`]:!g,[`${v}-in-form-item`]:I},cp(v,A),D,k,s,!T&&!j&&l);let L=q_.createElement(pT,Object.assign({ref:i,disabled:F,className:M,upHandler:x,downHandler:S,prefixCls:v,readOnly:h,controls:E},y));if(T){const t=JQ(`${v}-affix-wrapper`,cp(`${v}-affix-wrapper`,A,O),{[`${v}-affix-wrapper-focused`]:o,[`${v}-affix-wrapper-disabled`]:e.disabled,[`${v}-affix-wrapper-sm`]:"small"===R,[`${v}-affix-wrapper-lg`]:"large"===R,[`${v}-affix-wrapper-rtl`]:"rtl"===r,[`${v}-affix-wrapper-readonly`]:h,[`${v}-affix-wrapper-borderless`]:!g},!j&&s,!j&&l,k);L=q_.createElement("div",{className:t,style:e.style,onMouseUp:()=>i.current.focus()},f&&q_.createElement("span",{className:`${v}-prefix`},f),sc(L,{style:null,value:e.value,onFocus:t=>{var n;a(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:t=>{var n;a(!1),null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),O&&q_.createElement("span",{className:`${v}-suffix`},N))}if(j){const t=`${v}-group`,n=`${t}-addon`,o=d?q_.createElement("div",{className:n},d):null,a=m?q_.createElement("div",{className:n},m):null,i=JQ(`${v}-wrapper`,t,k,{[`${t}-rtl`]:"rtl"===r,[`${v}-wrapper-disabled`]:F}),c=JQ(`${v}-group-wrapper`,{[`${v}-group-wrapper-sm`]:"small"===R,[`${v}-group-wrapper-lg`]:"large"===R,[`${v}-group-wrapper-rtl`]:"rtl"===r},cp(`${v}-group-wrapper`,A,O),k,s,l);L=q_.createElement("div",{className:c,style:e.style},q_.createElement("div",{className:i},o&&q_.createElement(jZ,null,q_.createElement(T0,{status:!0,override:!0},o)),sc(L,{style:null,disabled:F}),a&&q_.createElement(jZ,null,q_.createElement(T0,{status:!0,override:!0},a))))}return w(L)})),W3=H3;W3._InternalPanelDoNotUseOrYouWillBeFired=e=>q_.createElement(YJ,{theme:{components:{InputNumber:{handleVisible:!0}}}},q_.createElement(H3,Object.assign({},e)));const V3=W3;mT=function(e){var t,n,r,o,a,i,s,l,c,u,p,d,m,f,g=e.inputElement,h=e.prefixCls,b=e.prefix,_=e.suffix,y=e.addonBefore,v=e.addonAfter,w=e.className,k=e.style,C=e.disabled,D=e.readOnly,x=e.focused,S=e.triggerFocus,E=e.allowClear,O=e.value,P=e.handleReset,I=e.hidden,N=e.classes,A=e.classNames,R=e.dataAttrs,T=e.styles,j=q_.useRef(null),$=q_.cloneElement(g,{value:O,hidden:I,className:JQ(null===(t=g.props)||void 0===t?void 0:t.className,!vd(e)&&!yd(e)&&w)||null,style:Di(Di({},null===(n=g.props)||void 0===n?void 0:n.style),vd(e)||yd(e)?{}:k)});return vd(e)&&(o="".concat(h,"-affix-wrapper"),a=JQ(o,(xa(r={},"".concat(o,"-disabled"),C),xa(r,"".concat(o,"-focused"),x),xa(r,"".concat(o,"-readonly"),D),xa(r,"".concat(o,"-input-with-clear-btn"),_&&E&&O),r),!yd(e)&&w,null==N?void 0:N.affixWrapper),i=(_||E)&&hQ.createElement("span",{className:JQ("".concat(h,"-suffix"),null==A?void 0:A.suffix),style:null==T?void 0:T.suffix},E?(d=!C&&!D&&O,m="".concat(h,"-clear-icon"),f="object"===Ca(E)&&null!=E&&E.clearIcon?E.clearIcon:"✖",hQ.createElement("span",{onClick:P,onMouseDown:function(e){return e.preventDefault()},className:JQ(m,(p={},xa(p,"".concat(m,"-hidden"),!d),xa(p,"".concat(m,"-has-suffix"),!!_),p)),role:"button",tabIndex:-1},f)):null,_),$=hQ.createElement("span",mi({className:a,style:yd(e)?void 0:k,hidden:!yd(e)&&I,onClick:function(e){var t;null!==(t=j.current)&&void 0!==t&&t.contains(e.target)&&(null==S||S())}},null==R?void 0:R.affixWrapper,{ref:j}),b&&hQ.createElement("span",{className:JQ("".concat(h,"-prefix"),null==A?void 0:A.prefix),style:null==T?void 0:T.prefix},b),q_.cloneElement(g,{value:O,hidden:null}),i)),yd(e)?(s="".concat(h,"-group"),l="".concat(s,"-addon"),c=JQ("".concat(h,"-wrapper"),s,null==N?void 0:N.wrapper),u=JQ("".concat(h,"-group-wrapper"),w,null==N?void 0:N.group),hQ.createElement("span",{className:u,style:k,hidden:I},hQ.createElement("span",{className:c},y&&hQ.createElement("span",{className:l},y),q_.cloneElement($,{hidden:null}),v&&hQ.createElement("span",{className:l},v)))):$},fT=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],gT=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l,c=e.autoComplete,u=e.onChange,p=e.onFocus,d=e.onBlur,m=e.onPressEnter,f=e.onKeyDown,g=e.prefixCls,h=void 0===g?"rc-input":g,b=e.disabled,_=e.htmlSize,y=e.className,v=e.maxLength,w=e.suffix,k=e.showCount,C=e.type,D=void 0===C?"text":C,x=e.classes,S=e.classNames,E=e.styles,O=Sa(e,fT),P=Vi(Tl(e.defaultValue,{value:e.value}),2),I=P[0],N=P[1],A=Vi(q_.useState(!1),2),R=A[0],T=A[1],j=q_.useRef(null),$=function(e){j.current&&function(e,t){var n,r;if(e&&(e.focus(t),n=(t||{}).cursor))switch(r=e.value.length,n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}(j.current,e)};return q_.useImperativeHandle(t,(function(){return{focus:$,blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=j.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.current}})),q_.useEffect((function(){T((function(e){return(!e||!b)&&e}))}),[b]),n=function(t){void 0===e.value&&N(t.target.value),j.current&&wd(j.current,t,u)},r=function(e){m&&"Enter"===e.key&&m(e),null==f||f(e)},o=function(e){T(!0),null==p||p(e)},a=function(e){T(!1),null==d||d(e)},i=function(e){N(""),$(),j.current&&wd(j.current,e,u)},s=function(){var t=Qs(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return hQ.createElement("input",mi({autoComplete:c},t,{onChange:n,onFocus:o,onBlur:a,onKeyDown:r,className:JQ(h,xa({},"".concat(h,"-disabled"),b),null==S?void 0:S.input),style:null==E?void 0:E.input,ref:j,size:_,type:D}))},l=function(){var e,t,n,r=Number(v)>0;return w||k?(t=ki(e=kd(I)).length,n="object"===Ca(k)?k.formatter({value:e,count:t,maxLength:v}):"".concat(t).concat(r?" / ".concat(v):""),hQ.createElement(hQ.Fragment,null,!!k&&hQ.createElement("span",{className:JQ("".concat(h,"-show-count-suffix"),xa({},"".concat(h,"-show-count-has-suffix"),!!w),null==S?void 0:S.count),style:Di({},null==E?void 0:E.count)},n),w)):null},hQ.createElement(mT,mi({},O,{prefixCls:h,className:y,inputElement:s(),handleReset:i,value:kd(I),focused:R,triggerFocus:$,suffix:l(),disabled:b,classes:x,classNames:S,styles:E}))})),hT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:p,addonBefore:d,className:m,rootClassName:f,onChange:g,classNames:h}=e,b=hT(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:_,direction:y,input:v}=hQ.useContext(wJ),w=_("input",n),k=q_.useRef(null),[C,D]=A5(w),{compactSize:x,compactItemClassnames:S}=TZ(w,y),E=MJ((e=>{var t;return null!==(t=null!=a?a:x)&&void 0!==t?t:e})),O=hQ.useContext(FJ),P=null!=i?i:O,{status:I,hasFeedback:N,feedbackIcon:A}=q_.useContext(R0),R=Y1(I,o),T=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!N,j=q_.useRef(T);q_.useEffect((()=>{j.current=T}),[T]);const $=Cd(k,!0),F=(N||c)&&hQ.createElement(hQ.Fragment,null,c,N&&A);let M;return"object"==typeof u&&(null==u?void 0:u.clearIcon)?M=u:u&&(M={clearIcon:hQ.createElement(nZ,null)}),C(hQ.createElement(gT,Object.assign({ref:zs(t,k),prefixCls:w,autoComplete:null==v?void 0:v.autoComplete},b,{disabled:P,onBlur:e=>{$(),null==s||s(e)},onFocus:e=>{$(),null==l||l(e)},suffix:F,allowClear:M,className:JQ(m,f,S),onChange:e=>{$(),null==g||g(e)},addonAfter:p&&hQ.createElement(jZ,null,hQ.createElement(T0,{override:!0,status:!0},p)),addonBefore:d&&hQ.createElement(jZ,null,hQ.createElement(T0,{override:!0,status:!0},d)),classNames:Object.assign(Object.assign({},h),{input:JQ({[`${w}-sm`]:"small"===E,[`${w}-lg`]:"large"===E,[`${w}-rtl`]:"rtl"===y,[`${w}-borderless`]:!r},!T&&cp(w,R),null==h?void 0:h.input,D)}),classes:{affixWrapper:JQ({[`${w}-affix-wrapper-sm`]:"small"===E,[`${w}-affix-wrapper-lg`]:"large"===E,[`${w}-affix-wrapper-rtl`]:"rtl"===y,[`${w}-affix-wrapper-borderless`]:!r},cp(`${w}-affix-wrapper`,R,N),D),wrapper:JQ({[`${w}-group-rtl`]:"rtl"===y},D),group:JQ({[`${w}-group-wrapper-sm`]:"small"===E,[`${w}-group-wrapper-lg`]:"large"===E,[`${w}-group-wrapper-rtl`]:"rtl"===y,[`${w}-group-wrapper-disabled`]:P},cp(`${w}-group-wrapper`,R,N),D)}})))})),q3=G3,X3={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"},K3=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:X3}))})),Y3={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"},Q3=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:Y3}))}));bT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rq_.createElement(e?Q3:K3,null),Z3={click:"onClick",hover:"onMouseOver"},e4=q_.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,a]=q_.useState((()=>!!r&&n.visible)),i=q_.useRef(null);q_.useEffect((()=>{r&&a(n.visible)}),[r,n]);const s=Cd(i),l=()=>{const{disabled:t}=e;t||(o&&s(),a((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:p,size:d}=e,m=bT(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:f}=q_.useContext(wJ),g=f("input",p),h=f("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=J3}=e,a=Z3[n]||"",i=r(o),s={[a]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return q_.cloneElement(q_.isValidElement(i)?i:q_.createElement("span",null,i),s)})(h),_=JQ(h,c,{[`${h}-${d}`]:!!d}),y=Object.assign(Object.assign({},Qs(m,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:_,prefixCls:g,suffix:b});return d&&(y.size=d),q_.createElement(q3,Object.assign({ref:zs(t,i)},y))})),t4=e4;_T=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:p,onChange:d,onCompositionStart:m,onCompositionEnd:f}=e,g=_T(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=q_.useContext(wJ),_=q_.useRef(!1),y=h("input-search",n),v=h("input",r),{compactSize:w}=TZ(y,b),k=MJ((e=>{var t;return null!==(t=null!=a?a:w)&&void 0!==t?t:e})),C=q_.useRef(null),D=e=>{var t;document.activeElement===(null===(t=C.current)||void 0===t?void 0:t.input)&&e.preventDefault()},x=e=>{var t,n;p&&p(null===(n=null===(t=C.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},S="boolean"==typeof s?q_.createElement(w2,null):null,E=`${y}-button`;let O;const P=s||{},I=P.type&&!0===P.type.__ANT_BUTTON;O=I||"button"===P.type?sc(P,Object.assign({onMouseDown:D,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),x(e)},key:"enterButton"},I?{className:E,size:k}:{})):q_.createElement(b0,{className:E,type:s?"primary":void 0,size:k,disabled:u,key:"enterButton",onMouseDown:D,onClick:x,loading:c,icon:S},s),l&&(O=[O,sc(l,{key:"addonAfter"})]);const N=JQ(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${k}`]:!!k,[`${y}-with-button`]:!!s},o);return q_.createElement(q3,Object.assign({ref:zs(C,t),onPressEnter:e=>{_.current||c||x(e)}},g,{size:k,onCompositionStart:e=>{_.current=!0,null==m||m(e)},onCompositionEnd:e=>{_.current=!1,null==f||f(e)},prefixCls:v,addonAfter:O,suffix:i,onChange:e=>{e&&e.target&&"click"===e.type&&p&&p(e.target.value,e),d&&d(e)},className:N,disabled:u}))})),r4=n4;yT=["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"],vT={},kT=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],CT=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R=e.prefixCls;return n=e.defaultValue,r=e.value,o=e.autoSize,a=e.onResize,i=e.className,s=e.style,l=e.disabled,c=e.onChange,u=Sa(e,kT),d=(p=Vi(Tl(n,{value:r,postState:function(e){return null!=e?e:""}}),2))[0],m=p[1],f=function(e){m(e.target.value),null==c||c(e)},g=q_.useRef(),q_.useImperativeHandle(t,(function(){return{textArea:g.current}})),h=Vi(q_.useMemo((function(){return o&&"object"===Ca(o)?[o.minRows,o.maxRows]:[]}),[o]),2),b=h[0],_=h[1],y=!!o,v=function(){try{if(document.activeElement===g.current){var e=g.current,t=e.scrollTop;g.current.setSelectionRange(e.selectionStart,e.selectionEnd),g.current.scrollTop=t}}catch(bY){}},w=Vi(q_.useState(2),2),k=w[0],C=w[1],x=(D=Vi(q_.useState(),2))[0],S=D[1],E=function(){C(0)},lP((function(){y&&E()}),[r,b,_,y]),lP((function(){if(0===k)C(1);else if(1===k){var e=function(e,t,n,r){var o,a,i,s,l,c,u,p,d,m,f=arguments.length>1&&void 0!==t&&t,g=arguments.length>2&&void 0!==n?n:null,h=arguments.length>3&&void 0!==r?r:null;return wT||((wT=document.createElement("textarea")).setAttribute("tab-index","-1"),wT.setAttribute("aria-hidden","true"),document.body.appendChild(wT)),e.getAttribute("wrap")?wT.setAttribute("wrap",e.getAttribute("wrap")):wT.removeAttribute("wrap"),o=function(e,t){var n,r,o,a,i,s=arguments.length>1&&void 0!==t&&t,l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");return s&&vT[l]?vT[l]:(r=(n=window.getComputedStyle(e)).getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),i={sizingStyle:yT.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:a,boxSizing:r},s&&l&&(vT[l]=i),i)}(e,f),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,wT.setAttribute("style","".concat(o.sizingStyle,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),wT.value=e.value||e.placeholder||"",l=void 0,c=void 0,p=wT.scrollHeight,"border-box"===s?p+=i:"content-box"===s&&(p-=a),null===g&&null===h||(wT.value=" ",d=wT.scrollHeight-a,null!==g&&(l=d*g,"border-box"===s&&(l=l+a+i),p=Math.max(l,p)),null!==h&&(c=d*h,"border-box"===s&&(c=c+a+i),u=p>c?"":"hidden",p=Math.min(c,p))),m={height:p,overflowY:u,resize:"none"},l&&(m.minHeight=l),c&&(m.maxHeight=c),m}(g.current,!1,b,_);C(2),S(e)}else v()}),[k]),O=q_.useRef(),P=function(){UO.cancel(O.current)},I=function(e){2===k&&(null==a||a(e),o&&(P(),O.current=UO((function(){E()}))))},q_.useEffect((function(){return P}),[]),N=y?x:null,A=Di(Di({},s),N),0!==k&&1!==k||(A.overflowY="hidden",A.overflowX="hidden"),q_.createElement(jO,{onResize:I,disabled:!(o||a)},q_.createElement("textarea",mi({},u,{ref:g,style:A,className:JQ(R,i,xa({},"".concat(R,"-disabled"),l)),disabled:l,value:d,onChange:f})))})),DT=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"],xT=hQ.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h=e.defaultValue,b=e.value,_=e.onFocus,y=e.onBlur,v=e.onChange,w=e.allowClear,k=e.maxLength,C=e.onCompositionStart,D=e.onCompositionEnd,x=e.suffix,S=e.prefixCls,E=void 0===S?"rc-textarea":S,O=e.classes,P=e.showCount,I=e.className,N=e.style,A=e.disabled,R=e.hidden,T=e.classNames,j=e.styles,$=e.onResize,F=Sa(e,DT),M=Vi(Tl(h,{value:b,defaultValue:h}),2),L=M[0],U=M[1],z=q_.useRef(null),B=Vi(hQ.useState(!1),2),H=B[0],W=B[1],V=Vi(hQ.useState(!1),2),G=V[0],q=V[1],X=hQ.useRef(),K=hQ.useRef(0),Y=Vi(hQ.useState(null),2),Q=Y[0],J=Y[1],Z=function(){z.current.textArea.focus()};return q_.useImperativeHandle(t,(function(){return{resizableTextArea:z.current,focus:Z,blur:function(){z.current.textArea.blur()}}})),q_.useEffect((function(){W((function(e){return!A&&e}))}),[A]),r=Number(k)>0,o=function(e){q(!0),X.current=L,K.current=e.currentTarget.selectionStart,null==C||C(e)},a=function(e){var t,n;q(!1),t=e.currentTarget.value,r&&(t=xd(K.current>=k+1||K.current===(null===(n=X.current)||void 0===n?void 0:n.length),X.current,t,k)),t!==L&&(U(t),wd(e.currentTarget,e,v,t)),null==D||D(e)},i=function(e){var t=e.target.value;!G&&r&&(t=xd(e.target.selectionStart>=k+1||e.target.selectionStart===t.length||!e.target.selectionStart,L,t,k)),U(t),wd(e.currentTarget,e,v,t)},s=function(e){var t=F.onPressEnter,n=F.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},l=function(e){W(!0),null==_||_(e)},c=function(e){W(!1),null==y||y(e)},u=function(e){U(""),Z(),wd(z.current.textArea,e,v)},p=kd(L),!G&&r&&null==b&&(p=Dd(p,k)),d=x,P&&(f=ki(p).length,m="object"===Ca(P)?P.formatter({value:p,count:f,maxLength:k}):"".concat(f).concat(r?" / ".concat(k):""),d=hQ.createElement(hQ.Fragment,null,d,hQ.createElement("span",{className:JQ("".concat(E,"-data-count"),null==T?void 0:T.count),style:null==j?void 0:j.count},m))),g=function(e){null==$||$(e),null===Q?J("mounted"):"mounted"===Q&&J("resized")},hQ.createElement(mT,{value:p,allowClear:w,handleReset:u,suffix:d,prefixCls:E,classes:{affixWrapper:JQ(null==O?void 0:O.affixWrapper,(n={},xa(n,"".concat(E,"-show-count"),P),xa(n,"".concat(E,"-textarea-allow-clear"),w),n))},disabled:A,focused:H,className:I,style:Di(Di({},N),"resized"===Q?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof m?m:void 0}},hidden:R,inputElement:hQ.createElement(CT,mi({},F,{onKeyDown:s,onChange:i,onFocus:l,onBlur:c,onCompositionStart:o,onCompositionEnd:a,className:null==T?void 0:T.textarea,style:Di(Di({},null==j?void 0:j.textarea),{},{resize:null==N?void 0:N.resize}),disabled:A,prefixCls:E,onResize:g,ref:z}))})})),ST=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{prefixCls:n,bordered:r=!0,size:o,disabled:a,status:i,allowClear:s,showCount:l,classNames:c}=e,u=ST(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:p,direction:d}=q_.useContext(wJ),m=MJ(o),f=q_.useContext(FJ),g=null!=a?a:f,{status:h,hasFeedback:b,feedbackIcon:_}=q_.useContext(R0),y=Y1(h,i),v=q_.useRef(null);q_.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=v.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const 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)}}}(null===(n=null===(t=v.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.blur()}}}));const w=p("input",n);let k;"object"==typeof s&&(null==s?void 0:s.clearIcon)?k=s:s&&(k={clearIcon:q_.createElement(nZ,null)});const[C,D]=A5(w);return C(q_.createElement(xT,Object.assign({},u,{disabled:g,allowClear:k,classes:{affixWrapper:JQ(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:"rtl"===d,[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:"small"===m,[`${w}-affix-wrapper-lg`]:"large"===m,[`${w}-textarea-show-count`]:l},cp(`${w}-affix-wrapper`,y),D)},classNames:Object.assign(Object.assign({},c),{textarea:JQ({[`${w}-borderless`]:!r,[`${w}-sm`]:"small"===m,[`${w}-lg`]:"large"===m},cp(w,y),D,null==c?void 0:c.textarea)}),prefixCls:w,suffix:b&&q_.createElement("span",{className:`${w}-textarea-suffix`},_),showCount:l,ref:v})))})),a4=q3;a4.Group=e=>{const{getPrefixCls:t,direction:n}=q_.useContext(wJ),{prefixCls:r,className:o=""}=e,a=t("input-group",r),i=t("input"),[s,l]=A5(i),c=JQ(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},l,o),u=q_.useContext(R0),p=q_.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(q_.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},q_.createElement(R0.Provider,{value:p},e.children)))},a4.Search=r4,a4.TextArea=o4,a4.Password=t4;const i4=a4;ET=q_.createContext(null),OT=function(e){var t=e.className,n=e.style,r=e.children,o=e.containerRef,a={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp};return q_.createElement(q_.Fragment,null,q_.createElement("div",mi({className:JQ("".concat(e.prefixCls,"-content"),t),style:Di({},n),"aria-modal":"true",role:"dialog",ref:o},a),r))},PT={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},IT=q_.forwardRef(Ed),NT=function(e){var t,n,r,o,a,i,s=e.open,l=void 0!==s&&s,c=e.prefixCls,u=void 0===c?"rc-drawer":c,p=e.placement,d=void 0===p?"right":p,m=e.autoFocus,f=void 0===m||m,g=e.keyboard,h=void 0===g||g,b=e.width,_=void 0===b?378:b,y=e.mask,v=void 0===y||y,w=e.maskClosable,k=void 0===w||w,C=e.getContainer,D=e.forceRender,x=e.afterOpenChange,S=e.destroyOnClose,E=e.onMouseEnter,O=e.onMouseOver,P=e.onMouseLeave,I=e.onClick,N=e.onKeyDown,A=e.onKeyUp,R=Vi(q_.useState(!1),2),T=R[0],j=R[1],$=Vi(q_.useState(!1),2),F=$[0],M=$[1];return lP((function(){M(!0)}),[]),t=!!F&&l,n=q_.useRef(),r=q_.useRef(),lP((function(){t&&(r.current=document.activeElement)}),[t]),o=function(e){var t,o;j(e),null==x||x(e),e||!r.current||(null===(t=n.current)||void 0===t?void 0:t.contains(r.current))||null===(o=r.current)||void 0===o||o.focus({preventScroll:!0})},D||T||t||!S?(a={onMouseEnter:E,onMouseOver:O,onMouseLeave:P,onClick:I,onKeyDown:N,onKeyUp:A},i=Di(Di({},e),{},{open:t,prefixCls:u,placement:d,autoFocus:f,keyboard:h,width:_,mask:v,maskClosable:k,inline:!1===C,afterOpenChange:o,ref:n},a),q_.createElement(wI,{open:t||D||T,autoDestroy:!1,getContainer:C,autoLock:v&&(t||T)},q_.createElement(IT,i))):null};const s4=e=>{const{prefixCls:t,title:n,footer:r,extra:o,closable:a=!0,closeIcon:i=q_.createElement(oZ,null),onClose:s,headerStyle:l,drawerStyle:c,bodyStyle:u,footerStyle:p,children:d}=e,m=a&&q_.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},i),f=q_.useMemo((()=>n||a?q_.createElement("div",{style:l,className:JQ(`${t}-header`,{[`${t}-header-close-only`]:a&&!n&&!o})},q_.createElement("div",{className:`${t}-header-title`},m,n&&q_.createElement("div",{className:`${t}-title`},n)),o&&q_.createElement("div",{className:`${t}-extra`},o)):null),[a,m,o,l,t,n]),g=q_.useMemo((()=>r?q_.createElement("div",{className:`${t}-footer`,style:p},r):null),[r,p,t]);return q_.createElement("div",{className:`${t}-wrapper-body`,style:c},f,q_.createElement("div",{className:`${t}-body`,style:u},d),g)},l4=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},c4=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:i,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:p,lineType:d,colorSplit:m,marginSM:f,colorIcon:g,colorIconHover:h,colorText:b,fontWeightStrong:_,footerPaddingBlock:y,footerPaddingInline:v}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:c,lineHeight:u,borderBottom:`${p}px ${d} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:f,color:g,fontWeight:_,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${v}px`,borderTop:`${p}px ${d} ${m}`},"&-rtl":{direction:"rtl"}}}},u4=jl("Drawer",(e=>{const t=$l(e,{});return[c4(t),l4(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));AT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{getPrefixCls:o,space:a,direction:i}=q_.useContext(wJ),{size:s=(null==a?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:p,direction:d="horizontal",prefixCls:m,split:f,style:g,wrap:h=!1,classNames:b,styles:_}=e,y=RT(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),v=D3(),[w,k]=q_.useMemo((()=>(Array.isArray(s)?s:[s,s]).map((e=>function(e){return"string"==typeof e?f4[e]:e||0}(e)))),[s]),C=Ls(p,{keepEmpty:!0}),D=void 0===l&&"horizontal"===d?"center":l,x=o("space",m),[S,E]=AZ(x),O=JQ(x,E,`${x}-${d}`,{[`${x}-rtl`]:"rtl"===i,[`${x}-align-${D}`]:D},null!=c?c:null==a?void 0:a.className,u),P=JQ(`${x}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==a?void 0:a.classNames)||void 0===r?void 0:r.item),I="rtl"===i?"marginLeft":"marginRight";let N=0;const A=C.map(((e,t)=>{var n,r;return null!=e&&(N=t),q_.createElement(Pd,{className:P,key:e&&e.key||`${P}-${t}`,direction:d,index:t,marginDirection:I,split:f,wrap:h,style:null!==(n=null==_?void 0:_.item)&&void 0!==n?n:null===(r=null==a?void 0:a.styles)||void 0===r?void 0:r.item},e)})),R=q_.useMemo((()=>({horizontalSize:w,verticalSize:k,latestIndex:N,supportFlexGap:v})),[w,k,N,v]);if(0===C.length)return null;const T={};return h&&(T.flexWrap="wrap",v||(T.marginBottom=-k)),v&&(T.columnGap=w,T.rowGap=k),S(q_.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},T),null==a?void 0:a.style),g)},y),q_.createElement(m4,{value:R},A)))}));g4.Compact=e=>{const{getPrefixCls:t,direction:n}=q_.useContext(wJ),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=dI(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=MJ((e=>null!=r?r:e)),d=t("space-compact",i),[m,f]=AZ(d),g=JQ(d,f,{[`${d}-rtl`]:"rtl"===n,[`${d}-block`]:a,[`${d}-vertical`]:"vertical"===o},s,l),h=q_.useContext(RZ),b=Ls(c),_=q_.useMemo((()=>b.map(((e,t)=>q_.createElement($Z,{key:e&&e.key||`${d}-item-${t}`,compactSize:p,compactDirection:o,isFirstItem:0===t&&(!h||(null==h?void 0:h.isFirstItem)),isLastItem:t===b.length-1&&(!h||(null==h?void 0:h.isLastItem))},e)))),[r,b,h]);return 0===b.length?null:m(q_.createElement("div",Object.assign({className:g},u),_))};const h4=g4,b4=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},_4=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),y4=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},v4=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},DJ(e)),_4(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},y4(e,e.controlHeightSM)),"&-large":Object.assign({},y4(e,e.controlHeightLG))})}},w4=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:Object.assign(Object.assign({},DJ(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-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:i1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},k4=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},C4=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},D4=e=>({padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),x4=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:D4(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},S4=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:D4(e),[`@media (max-width: ${e.screenXSMax}px)`]:[x4(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:D4(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:D4(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:D4(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:D4(e)}}}},E4=jl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=$l(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[v4(r),w4(r),b4(r),k4(r),C4(r),S4(r),v1(r),i1]})),O4=[],P4=["parentNode"],I4="form_item";TT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=q_.useContext(FJ),{getPrefixCls:r,direction:o,form:a}=q_.useContext(wJ),{prefixCls:i,className:s,rootClassName:l,size:c,disabled:u=n,form:p,colon:d,labelAlign:m,labelWrap:f,labelCol:g,wrapperCol:h,hideRequiredMark:b,layout:_="horizontal",scrollToFirstError:y,requiredMark:v,onFinishFailed:w,name:k}=e,C=TT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),D=MJ(c),x=q_.useContext(eJ),S=q_.useMemo((()=>void 0!==v?v:a&&void 0!==a.requiredMark?a.requiredMark:!b),[b,v,a]),E=null!=d?d:null==a?void 0:a.colon,O=r("form",i),[P,I]=E4(O),N=JQ(O,{[`${O}-${_}`]:!0,[`${O}-hide-required-mark`]:!1===S,[`${O}-rtl`]:"rtl"===o,[`${O}-${D}`]:D},I,s,l),[A]=$d(p),{__INTERNAL__:R}=A;R.name=k;const T=q_.useMemo((()=>({name:k,labelAlign:m,labelCol:g,labelWrap:f,wrapperCol:h,vertical:"vertical"===_,colon:E,requiredMark:S,itemRef:R.itemRef,form:A})),[k,m,g,h,_,E,S,A]);q_.useImperativeHandle(t,(()=>A));const j=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),A.scrollToField(t,n)}};return P(q_.createElement($J,{disabled:u},q_.createElement(UJ,{size:D},q_.createElement(N0,{validateMessages:x},q_.createElement(P0.Provider,{value:T},q_.createElement(cN,Object.assign({id:k},C,{name:k,onFinishFailed:e=>{if(null==w||w(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void j(y,t);a&&void 0!==a.scrollToFirstError&&j(a.scrollToFirstError,t)}},form:A,className:N})))))))},A4=q_.forwardRef(N4),R4=()=>{const{status:e,errors:t=[],warnings:n=[]}=q_.useContext(R0);return{status:e,errors:t,warnings:n}};R4.Context=R0;const T4=R4,j4=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:p,onErrorVisibleChanged:d}=e,m=`${t}-item`,f=q_.useContext(P0),g=r||f.wrapperCol||{},h=JQ(`${m}-control`,g.className),b=q_.useMemo((()=>Object.assign({},f)),[f]);delete b.labelCol,delete b.wrapperCol;const _=q_.createElement("div",{className:`${m}-control-input`},q_.createElement("div",{className:`${m}-control-input-content`},o)),y=q_.useMemo((()=>({prefixCls:t,status:n})),[t,n]),v=null!==p||a.length||i.length?q_.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},q_.createElement(A0.Provider,{value:y},q_.createElement(Ad,{fieldId:u,errors:a,warnings:i,help:c,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:d})),!!p&&q_.createElement("div",{style:{width:0,height:p}})):null,w={};u&&(w.id=`${u}_extra`);const k=l?q_.createElement("div",Object.assign({},w,{className:`${m}-extra`}),l):null,C=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:_,errorList:v,extra:k}):q_.createElement(q_.Fragment,null,_,v,k);return q_.createElement(P0.Provider,{value:b},q_.createElement(C3,Object.assign({},g,{className:h}),C))},$4={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"},F4=q_.forwardRef((function(e,t){return q_.createElement(ZJ,mi({},e,{ref:t,icon:$4}))}));jT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:s,requiredMark:l,tooltip:c}=e;var u;const[p]=sJ("Form"),{vertical:d,labelAlign:m,labelCol:f,labelWrap:g,colon:h}=q_.useContext(P0);if(!n)return null;const b=o||f||{},_=`${t}-item-label`,y=JQ(_,"left"===(a||m)&&`${_}-left`,b.className,{[`${_}-wrap`]:!!g});let v=n;const w=!0===i||!1!==h&&!1!==i;w&&!d&&"string"==typeof n&&""!==n.trim()&&(v=n.replace(/[:|:]\s*$/,""));const k=function(e){return e?"object"!=typeof e||q_.isValidElement(e)?{title:e}:e:null}(c);if(k){const{icon:e=q_.createElement(F4,null)}=k,n=jT(k,["icon"]),r=q_.createElement(G2,Object.assign({},n),q_.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));v=q_.createElement(q_.Fragment,null,v,r)}"optional"!==l||s||(v=q_.createElement(q_.Fragment,null,v,q_.createElement("span",{className:`${t}-item-optional`,title:""},(null==p?void 0:p.optional)||(null===(u=oJ.Form)||void 0===u?void 0:u.optional))));const C=JQ({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:"optional"===l,[`${t}-item-no-colon`]:!w});return q_.createElement(C3,Object.assign({},b,{className:y}),q_.createElement("label",{htmlFor:r,className:C,title:"string"==typeof n?n:""},v))};$T=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),z4=function(e){function t(t,n,a){return r&&!g?t:q_.createElement(Fd,Object.assign({key:"row"},e,{className:JQ(o,E),prefixCls:x,fieldId:n,isRequired:a,errors:j,warnings:$,meta:A,onSubItemMetaChange:T}),t)}const{name:n,noStyle:r,className:o,dependencies:a,prefixCls:i,shouldUpdate:s,rules:l,children:c,required:u,label:p,messageVariables:d,trigger:m="onChange",validateTrigger:f,hidden:g,help:h}=e,{getPrefixCls:b}=q_.useContext(wJ),{name:_}=q_.useContext(P0),y=function(e){if("function"==typeof e)return e;const t=Ls(e);return t.length<=1?t[0]:t}(c),v="function"==typeof y,w=q_.useContext(I0),{validateTrigger:k}=q_.useContext(PI),C=void 0!==f?f:k,D=function(e){return!(null==e)}(n),x=b("form",i),[S,E]=E4(x),O=q_.useContext(II),P=q_.useRef(),[I,N]=function(){const[e,t]=q_.useState({}),n=q_.useRef(null),r=q_.useRef([]),o=q_.useRef(!1);return q_.useEffect((()=>(o.current=!1,()=>{o.current=!0,UO.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=UO((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[A,R]=Al((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),T=(e,t)=>{N((n=>{const r=Object.assign({},n),o=[].concat(ki(e.name.slice(0,-1)),ki(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[j,$]=q_.useMemo((()=>{const e=ki(A.errors),t=ki(A.warnings);return Object.values(I).forEach((n=>{e.push.apply(e,ki(n.errors||[])),t.push.apply(t,ki(n.warnings||[]))})),[e,t]}),[I,A.errors,A.warnings]),F=function(){const{itemRef:e}=q_.useContext(P0),t=q_.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,a=n.join("_");return t.current.name===a&&t.current.originRef===o||(t.current.name=a,t.current.originRef=o,t.current.ref=zs(e(n),o)),t.current.ref}}();if(!D&&!v&&!a)return S(t(y));let M={};return"string"==typeof p?M.label=p:n&&(M.label=String(n)),d&&(M=Object.assign(Object.assign({},M),d)),S(q_.createElement(uu,Object.assign({},e,{messageVariables:M,trigger:m,validateTrigger:C,onMetaChange:e=>{const t=null==O?void 0:O.getKey(e.name);if(R(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==h&&w){let n=e.name;if(e.destroy)n=P.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(ki(r)),P.current=n}w(e,n)}}}),((r,o,i)=>{const c=Rd(n).length&&o?o.name:[],p=Td(c,_),d=void 0!==u?u:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),f=Object.assign({},r);let g=null;if(Array.isArray(y)&&D)g=y;else if(v&&(!s&&!a||D));else if(!a||v||D)if(cZ(y)){const t=Object.assign(Object.assign({},y.props),f);if(t.id||(t.id=p),h||j.length>0||$.length>0||e.extra){const n=[];(h||j.length>0)&&n.push(`${p}_help`),e.extra&&n.push(`${p}_extra`),t["aria-describedby"]=n.join(" ")}j.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),Hs(y)&&(t.ref=F(c,y)),new Set([].concat(ki(Rd(m)),ki(Rd(C)))).forEach((e=>{t[e]=function(){var t,n,r,o,a,i,s,l;for(i=arguments.length,s=new Array(i),l=0;l{var{prefixCls:t,children:n}=e,r=FT(e,["prefixCls","children"]);const{getPrefixCls:o}=q_.useContext(wJ),a=o("form",t),i=q_.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return q_.createElement(eN,Object.assign({},r),((e,t,r)=>q_.createElement(A0.Provider,{value:i},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},B4.ErrorList=Ad,B4.useForm=$d,B4.useFormInstance=function(){const{form:e}=q_.useContext(P0);return e},B4.useWatch=fu,B4.Provider=N0,B4.create=()=>{};const H4=B4;let W4=null,V4=e=>e(),G4=[],q4={};const X4=q_.forwardRef(((e,t)=>{const n=()=>{const{prefixCls:e,container:t,maxCount:n,duration:r,rtl:o,top:a}=function(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:a}=q4;return{prefixCls:null!=e?e:XJ().getPrefixCls("message"),container:(null==t?void 0:t())||document.body,duration:n,rtl:r,maxCount:o,top:a}}();return{prefixCls:e,getContainer:()=>t,maxCount:n,duration:r,rtl:o,top:a}},[r,o]=q_.useState(n),[a,i]=pc(r),s=XJ(),l=s.getRootPrefixCls(),c=s.getIconPrefixCls(),u=s.getTheme(),p=()=>{o(n)};return q_.useEffect(p,[]),q_.useImperativeHandle(t,(()=>{const e=Object.assign({},a);return Object.keys(e).forEach((t=>{e[t]=function(){return p(),a[t].apply(a,arguments)}})),{instance:e,sync:p}})),q_.createElement(YJ,{prefixCls:l,iconPrefixCls:c,theme:u},i)})),K4={open:function(e){const t=cc((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return G4.push(r),()=>{n?V4((()=>{n()})):r.skipped=!0}}));return Md(),t},destroy:function(e){G4.push({type:"destroy",key:e}),Md()},config:function(e){q4=Object.assign(Object.assign({},q4),e),V4((()=>{var e;null===(e=null==W4?void 0:W4.sync)||void 0===e||e.call(W4)}))},useMessage:dc,_InternalPanelDoNotUseOrYouWillBeFired:function(e){const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=oI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=q_.useContext(wJ),l=t||s("message"),[,c]=_Z(l);return q_.createElement(ZP,Object.assign({},i,{prefixCls:l,className:JQ(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:q_.createElement(uc,{prefixCls:l,type:r,icon:o},a)}))}},Y4=K4;["success","info","warning","error","loading"].forEach((e=>{Y4[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return G4.push(o),()=>{r?V4((()=>{r()})):o.skipped=!0}}));return Md(),n}(e,n)}}));const Q4=Y4;MT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s}=e,l=MT(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=q_.useContext(wJ),u=c(),p=t||c("modal"),[,d]=S1(p),m=`${p}-confirm`;let f={};return f=a?{closable:null!=o&&o,title:"",footer:"",children:q_.createElement(bu,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:u,content:s}))}:{closable:null==o||o,title:i,footer:void 0===e.footer?q_.createElement(j0,Object.assign({},e)):e.footer,children:s},q_.createElement(DI,Object.assign({prefixCls:p,className:JQ(d,`${p}-pure-panel`,a&&m,a&&`${m}-${a}`,n)},l,{closeIcon:gu(p,r),closable:o},f))};const Z4=J4;let e8=null,t8=e=>e(),n8=[],r8={};const o8=q_.forwardRef(((e,t)=>{const[n,r]=q_.useState(),[o,a]=q_.useState(),[i,s]=q_.useState(),[l,c]=q_.useState(),[u,p]=q_.useState(),[d,m]=q_.useState(),[f,g]=Eu({prefixCls:n,getContainer:()=>o,maxCount:i,rtl:l,top:u,bottom:d}),h=XJ(),b=h.getRootPrefixCls(),_=h.getIconPrefixCls(),y=h.getTheme(),v=()=>{const{prefixCls:e,container:t,maxCount:n,rtl:o,top:i,bottom:l}=function(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:a}=r8;return{prefixCls:null!=e?e:XJ().getPrefixCls("notification"),container:(null==t?void 0:t())||document.body,rtl:n,maxCount:r,top:o,bottom:a}}();r(e),a(t),s(n),c(o),p(i),m(l)};return q_.useEffect(v,[]),q_.useImperativeHandle(t,(()=>{const e=Object.assign({},f);return Object.keys(e).forEach((t=>{e[t]=function(){return v(),f[t].apply(f,arguments)}})),{instance:e,sync:v}})),q_.createElement(YJ,{prefixCls:b,iconPrefixCls:_,theme:y},g)})),a8={open:zd,destroy:function(e){n8.push({type:"destroy",key:e}),Ud()},config:function(e){r8=Object.assign(Object.assign({},r8),e),t8((()=>{var e;null===(e=null==e8?void 0:e8.sync)||void 0===e||e.call(e8)}))},useNotification:Ou,_InternalPanelDoNotUseOrYouWillBeFired:function(e){const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:s,closable:l=!0,closeIcon:c}=e,u=dN(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:p}=q_.useContext(wJ),d=t||p("notification"),m=`${d}-notice`,[,f]=M1(d);return q_.createElement(ZP,Object.assign({},u,{prefixCls:d,className:JQ(n,f,`${m}-pure-panel`),eventKey:"pure",duration:null,closable:l,closeIcon:xu(d,c),content:q_.createElement(Su,{prefixCls:m,icon:r,type:o,message:a,description:i,btn:s})}))}},i8=a8;["success","info","warning","error"].forEach((e=>{i8[e]=t=>zd(Object.assign(Object.assign({},t),{type:e}))}));const s8=i8;LT=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},UT=function(e){return void 0!==e?"".concat(e,"px"):void 0},zT=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"],BT=function(e){var t=e.prefixCls,n=e.disabled,r=e.checked,o=e.label,a=e.title,i=e.value,s=e.onChange;return q_.createElement("label",{className:JQ(e.className,xa({},"".concat(t,"-item-disabled"),n))},q_.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:r,onChange:function(e){n||s(e,i)}}),q_.createElement("div",{className:"".concat(t,"-item-label"),title:a},o))},HT=q_.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=void 0===o?"rc-segmented":o,i=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,p=e.onChange,d=e.className,m=void 0===d?"":d,f=e.motionName,g=void 0===f?"thumb-motion":f,h=Sa(e,zT),b=q_.useRef(null),_=q_.useMemo((function(){return zs(b,t)}),[b,t]),y=q_.useMemo((function(){return function(e){return e.map((function(e){if("object"===Ca(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Ca(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Di(Di({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(s)}),[s]),v=Vi(Tl(null===(n=y[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),w=v[0],k=v[1],C=Vi(q_.useState(!1),2),D=C[0],x=C[1],S=function(e,t){l||(k(t),null==p||p(t))},E=Qs(h,["children"]);return q_.createElement("div",mi({},E,{className:JQ(a,(r={},xa(r,"".concat(a,"-rtl"),"rtl"===i),xa(r,"".concat(a,"-disabled"),l),r),m),ref:_}),q_.createElement("div",{className:"".concat(a,"-group")},q_.createElement(Bd,{prefixCls:a,value:w,containerRef:b,motionName:"".concat(a,"-").concat(g),direction:i,getValueIndex:function(e){return y.findIndex((function(t){return t.value===e}))},onMotionStart:function(){x(!0)},onMotionEnd:function(){x(!1)}}),y.map((function(e){return q_.createElement(BT,mi({},e,{key:e.value,prefixCls:a,className:JQ(e.className,"".concat(a,"-item"),xa({},"".concat(a,"-item-selected"),e.value===w&&!D)),checked:e.value===w,onChange:S,disabled:!!l||!!e.disabled}))}))))})),HT.displayName="Segmented",HT.defaultProps={options:[]};const l8=Object.assign({overflow:"hidden"},CJ),c8=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},DJ(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":Object.assign(Object.assign({},Wd(e)),{color:e.itemHoverColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},l8),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Wd(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Hd(`&-disabled ${t}-item`,e)),Hd(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},u8=jl("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=$l(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[c8(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:a}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:a}}));WT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,block:a,options:i=[],size:s="middle"}=e,l=WT(e,["prefixCls","className","rootClassName","block","options","size"]),{getPrefixCls:c,direction:u}=q_.useContext(wJ),p=c("segmented",n),[d,m]=u8(p),f=MJ(s),g=q_.useMemo((()=>i.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=WT(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:q_.createElement(q_.Fragment,null,q_.createElement("span",{className:`${p}-item-icon`},t),n&&q_.createElement("span",null,n))})}return e}))),[i,p]);return d(q_.createElement(HT,Object.assign({},l,{className:JQ(r,o,{[`${p}-block`]:a,[`${p}-sm`]:"small"===f,[`${p}-lg`]:"large"===f},m),options:g,ref:t,prefixCls:p,direction:u})))}));VT=q_.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),GT=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],qT=q_.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,p=e.onOffsetChange,d=Sa(e,GT),m=q_.useContext(VT),f=m.min,g=m.max,h=m.direction,b=m.disabled,_=m.keyboard,y=m.range,v=m.tabIndex,w=m.ariaLabelForHandle,k=m.ariaLabelledByForHandle,C=m.ariaValueTextFormatterForHandle,D="".concat(o,"-handle"),x=function(e){b||s(e,i)},S=Gd(h,a,f,g),E=q_.createElement("div",mi({ref:t,className:JQ(D,(n={},xa(n,"".concat(D,"-").concat(i+1),y),xa(n,"".concat(D,"-dragging"),u),n)),style:Di(Di({},S),l),onMouseDown:x,onTouchStart:x,onKeyDown:function(e){if(!b&&_){var t=null;switch(e.which||e.keyCode){case JP.LEFT:t="ltr"===h||"btt"===h?-1:1;break;case JP.RIGHT:t="ltr"===h||"btt"===h?1:-1;break;case JP.UP:t="ttb"!==h?1:-1;break;case JP.DOWN:t="ttb"!==h?-1:1;break;case JP.HOME:t="min";break;case JP.END:t="max";break;case JP.PAGE_UP:t=2;break;case JP.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),p(t,i))}},tabIndex:b?null:qd(v,i),role:"slider","aria-valuemin":f,"aria-valuemax":g,"aria-valuenow":a,"aria-disabled":b,"aria-label":qd(w,i),"aria-labelledby":qd(k,i),"aria-valuetext":null===(r=qd(C,i))||void 0===r?void 0:r(a)},d));return c&&(E=c(E,{index:i,prefixCls:o,value:a,dragging:u})),E})),XT=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],KT=q_.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,c=Sa(e,XT),u=q_.useRef({});return q_.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),q_.createElement(q_.Fragment,null,i.map((function(e,t){return q_.createElement(qT,mi({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:qd(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:a,render:s},c))})))})),YT=q_.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x=e.prefixCls,S=void 0===x?"rc-slider":x,E=e.className,O=e.style,P=e.disabled,I=void 0!==P&&P,N=e.keyboard,A=void 0===N||N,R=e.autoFocus,T=e.onFocus,j=e.onBlur,$=e.min,F=void 0===$?0:$,M=e.max,L=void 0===M?100:M,U=e.step,z=void 0===U?1:U,B=e.value,H=e.defaultValue,W=e.range,V=e.count,G=e.onChange,q=e.onBeforeChange,X=e.onAfterChange,K=e.allowCross,Y=void 0===K||K,Q=e.pushable,J=void 0!==Q&&Q,Z=e.draggableTrack,ee=e.reverse,te=e.vertical,ne=e.included,re=void 0===ne||ne,oe=e.startPoint,ae=e.trackStyle,ie=e.handleStyle,se=e.railStyle,le=e.dotStyle,ce=e.activeDotStyle,ue=e.marks,pe=e.dots,de=e.handleRender,me=e.tabIndex,fe=void 0===me?0:me,ge=e.ariaLabelForHandle,he=e.ariaLabelledByForHandle,be=e.ariaValueTextFormatterForHandle,_e=q_.useRef(),ye=q_.useRef(),ve=q_.useMemo((function(){return te?ee?"ttb":"btt":ee?"rtl":"ltr"}),[ee,te]),we=q_.useMemo((function(){return isFinite(F)?F:0}),[F]),ke=q_.useMemo((function(){return isFinite(L)?L:100}),[L]),Ce=q_.useMemo((function(){return null!==z&&z<=0?1:z}),[z]),De=q_.useMemo((function(){return!0===J?Ce:J>=0&&J}),[J,Ce]),xe=q_.useMemo((function(){return Object.keys(ue||{}).map((function(e){var t=ue[e],n={value:Number(e)};return t&&"object"===Ca(t)&&!q_.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[ue]),Se=function(e,t,n,r,o,a){var i=q_.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=q_.useCallback((function(r){var o,a,s,l;return null!==n?(o=e+Math.round((i(r)-e)/n)*n,a=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(a(n),a(t),a(e)),l=Number(o.toFixed(s)),e<=l&&l<=t?l:null):null}),[n,e,t,i]),l=q_.useCallback((function(o){var a,l,c=i(o),u=r.map((function(e){return e.value}));return null!==n&&u.push(s(o)),u.push(e,t),a=u[0],l=t-e,u.forEach((function(e){var t=Math.abs(c-e);t<=l&&(a=e,l=t)})),a}),[e,t,r,n,i,s]),c=function o(a,i,l,c){var u,p,d,m,f,g,h,b,_=arguments.length>3&&void 0!==c?c:"unit";return"number"==typeof i?(d=(p=a[l])+i,m=[],r.forEach((function(e){m.push(e.value)})),m.push(e,t),m.push(s(p)),f=i>0?1:-1,m.push(s("unit"===_?p+f*n:d)),m=m.filter((function(e){return null!==e})).filter((function(e){return i<0?e<=p:e>=p})),"unit"===_&&(m=m.filter((function(e){return e!==p}))),g="unit"===_?p:d,u=m[0],h=Math.abs(u-g),m.forEach((function(e){var t=Math.abs(e-g);t1?((b=ki(a))[l]=u,o(b,i-f,l,_)):u):"min"===i?e:"max"===i?t:void 0},u=function(e,t,n,r){var o=e[n],a=c(e,t,n,arguments.length>3&&void 0!==r?r:"unit");return{value:a,changed:a!==o}},p=function(e){return null===a&&0===e||"number"==typeof a&&e3&&void 0!==r?r:"unit",D=e.map(l),x=D[n],S=c(D,t,n,C);if(D[n]=S,!1===o)i=a||0,n>0&&D[n-1]!==x&&(D[n]=Math.max(D[n],D[n-1]+i)),n0;f-=1)for(g=!0;p(D[f]-D[f-1])&&g;)h=u(D,-1,f-1),D[f-1]=h.value,g=h.changed;for(b=D.length-1;b>0;b-=1)for(_=!0;p(D[b]-D[b-1])&&_;)y=u(D,-1,b-1),D[b-1]=y.value,_=y.changed;for(v=0;v=0?V+1:2);o.length=0&&_e.current.focus(e)}c(null)}),[l=s[0]]),p=q_.useMemo((function(){return(!Z||null!==Ce)&&Z}),[Z,Ce]),d=function(e,t,n,o,a,i,s,l,c){var u,p,d,m,f,g=Vi(q_.useState(null),2),h=g[0],b=g[1],_=Vi(q_.useState(-1),2),y=_[0],v=_[1],w=Vi(q_.useState(n),2),k=w[0],C=w[1],D=Vi(q_.useState(n),2),x=D[0],S=D[1],E=q_.useRef(null),O=q_.useRef(null);return q_.useEffect((function(){-1===y&&C(n)}),[n,y]),q_.useEffect((function(){return function(){document.removeEventListener("mousemove",E.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",E.current),document.removeEventListener("touchend",O.current)}}),[]),u=function(e,t){k.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&b(t),C(e),s(e))},(d=q_.useRef(p=function(e,t){var n,r,s,l,p,d,m,f;-1===e?(n=x[0],r=a-x[x.length-1],s=t*(a-o),s=Math.max(s,o-n),s=Math.min(s,r),l=i(n+s),s=l-n,p=x.map((function(e){return e+s})),u(p)):(d=(a-o)*t,(m=ki(k))[e]=x[e],f=c(m,d,e,"dist"),u(f.values,f.value))})).current=p,m=function(o,a){var i,s,l,c,u,p;o.stopPropagation(),i=n[a],v(a),b(i),S(n),s=Xd(o),l=s.pageX,c=s.pageY,u=function(n){var r,o,i,s,u,p,m;switch(n.preventDefault(),o=(r=Xd(n)).pageX-l,i=r.pageY-c,u=(s=e.current.getBoundingClientRect()).width,p=s.height,t){case"btt":m=-i/p;break;case"ttb":m=i/p;break;case"rtl":m=-o/u;break;default:m=o/u}d.current(a,m)},p=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),E.current=null,O.current=null,v(-1),null==X||X(r(Te.current))},document.addEventListener("mouseup",p),document.addEventListener("mousemove",u),document.addEventListener("touchend",p),document.addEventListener("touchmove",u),E.current=u,O.current=p},f=q_.useMemo((function(){var e=ki(n).sort((function(e,t){return e-t})),t=ki(k).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?k:n}),[n,k]),[y,h,f,m]}(ye,ve,Re,we,ke,Oe,o,0,Pe),m=Vi(d,4),g=m[1],h=m[2],b=m[3],_=function(e,t){b(e,t),null==q||q(r(Te.current))},q_.useEffect((function(){if(!y){var e=Re.lastIndexOf(g);_e.current.focus(e)}}),[y=-1!==(f=m[0])]),v=q_.useMemo((function(){return ki(h).sort((function(e,t){return e-t}))}),[h]),w=Vi(q_.useMemo((function(){return W?[v[0],v[v.length-1]]:[we,v[0]]}),[v,W,we]),2),k=w[0],C=w[1],q_.useImperativeHandle(t,(function(){return{focus:function(){_e.current.focus(0)},blur:function(){var e=document.activeElement;ye.current.contains(e)&&(null==e||e.blur())}}})),q_.useEffect((function(){R&&_e.current.focus(0)}),[]),D=q_.useMemo((function(){return{min:we,max:ke,direction:ve,disabled:I,keyboard:A,step:Ce,included:re,includedStart:k,includedEnd:C,range:W,tabIndex:fe,ariaLabelForHandle:ge,ariaLabelledByForHandle:he,ariaValueTextFormatterForHandle:be}}),[we,ke,ve,I,A,Ce,re,k,C,W,fe,ge,he,be]),q_.createElement(VT.Provider,{value:D},q_.createElement("div",{ref:ye,className:JQ(S,E,(n={},xa(n,"".concat(S,"-disabled"),I),xa(n,"".concat(S,"-vertical"),te),xa(n,"".concat(S,"-horizontal"),!te),xa(n,"".concat(S,"-with-marks"),xe.length),n)),style:O,onMouseDown:i},q_.createElement("div",{className:"".concat(S,"-rail"),style:se}),q_.createElement(Yd,{prefixCls:S,style:ae,values:v,startPoint:oe,onStartMove:p?_:null}),q_.createElement(em,{prefixCls:S,marks:xe,dots:pe,style:le,activeStyle:ce}),q_.createElement(KT,{ref:_e,prefixCls:S,style:ie,values:h,draggingIndex:f,onStartMove:_,onOffsetChange:u,onFocus:T,onBlur:j,handleRender:de}),q_.createElement(Jd,{prefixCls:S,marks:xe,onClick:a})))}));const d8=q_.forwardRef(((e,t)=>{function n(){UO.cancel(a.current),a.current=null}const{open:r}=e,o=q_.useRef(null),a=q_.useRef(null);return q_.useEffect((()=>(r?a.current=UO((()=>{var e;null===(e=o.current)||void 0===e||e.forceAlign(),a.current=null})):n(),n)),[r,e.title]),q_.createElement(G2,Object.assign({ref:zs(o,t)},e))})),m8=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:a,colorFillContentHover:i}=e;return{[t]:Object.assign(Object.assign({},DJ(e)),{position:"relative",height:n,margin:`${a}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${o}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:i},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${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:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new qO(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}}})}},f8=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[i]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[l]:(3*r-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:o,[i]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[i]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-a)/2}}},g8=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},f8(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},h8=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},f8(e,!1)),{height:"100%"})}},b8=jl("Slider",(e=>{const t=$l(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[m8(t),g8(t),h8(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3}}));QT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",y8=hQ.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,disabled:i,tooltipPrefixCls:s,tipFormatter:l,tooltipVisible:c,getTooltipPopupContainer:u,tooltipPlacement:p}=e,d=QT(e,["prefixCls","range","className","rootClassName","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:m,direction:f,getPopupContainer:g}=hQ.useContext(wJ),h=hQ.useContext(FJ),b=null!=i?i:h,[_,y]=hQ.useState({}),v=(e,t)=>{y((n=>Object.assign(Object.assign({},n),{[e]:t})))},w=(e,t)=>e||(t?"rtl"===f?"left":"right":"top"),k=m("slider",n),[C,D]=b8(k),x=JQ(o,a,{[`${k}-rtl`]:"rtl"===f},D);"rtl"!==f||d.vertical||(d.reverse=!d.reverse);const[S,E]=hQ.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]);return C(hQ.createElement(YT,Object.assign({},d,{step:d.step,range:S,draggableTrack:E,className:x,disabled:b,ref:t,prefixCls:k,handleRender:(t,n)=>{var r;const{index:o,dragging:a}=n,{tooltip:i={},vertical:d}=e,f=Object.assign({},i),{open:h,placement:b,getPopupContainer:y,prefixCls:C,formatter:D}=f;let x;x=D||null===D?D:l||null===l?l:_8;const S=null!==(r=null!=h?h:c)&&void 0!==r?r:void 0===h&&!!x&&(_[o]||a),E=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>v(o,!0),onMouseLeave:()=>v(o,!1)}),O=m("tooltip",null!=C?C:s);return hQ.createElement(d8,{prefixCls:O,title:x?x(n.value):"",open:S,placement:w(null!=b?b:p,d),key:o,overlayClassName:`${k}-tooltip`,getPopupContainer:y||u||g},hQ.cloneElement(t,E))}})))}));JT=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ZT=q_.forwardRef((function(e,t){function n(e,t){var n=_;return c||(y(n=e),null==f||f(n,t)),n}var r,o=e.prefixCls,a=void 0===o?"rc-switch":o,i=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,p=e.checkedChildren,d=e.unCheckedChildren,m=e.onClick,f=e.onChange,g=e.onKeyDown,h=Sa(e,JT),b=Vi(Tl(!1,{value:s,defaultValue:l}),2),_=b[0],y=b[1],v=JQ(a,i,(xa(r={},"".concat(a,"-checked"),_),xa(r,"".concat(a,"-disabled"),c),r));return q_.createElement("button",mi({},h,{type:"button",role:"switch","aria-checked":_,disabled:c,className:v,ref:t,onKeyDown:function(e){e.which===JP.LEFT?n(!1,e):e.which===JP.RIGHT&&n(!0,e),null==g||g(e)},onClick:function(e){var t=n(!_,e);null==m||m(t,e)}}),u,q_.createElement("span",{className:"".concat(a,"-inner")},q_.createElement("span",{className:"".concat(a,"-inner-checked")},p),q_.createElement("span",{className:"".concat(a,"-inner-unchecked")},d)))})),ZT.displayName="Switch";const v8=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},w8=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},k8=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return{[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},C8=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:2*-e.switchPadding}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:2*-e.switchPadding,marginInlineEnd:2*e.switchPadding}}}}}},D8=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},DJ(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),OJ(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},x8=jl("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=t-4,o=n-4,a=$l(e,{switchMinWidth:2*r+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+2+4,switchPadding:2,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:2*o+4,switchHeightSM:n,switchInnerMarginMinSM:o/2,switchInnerMarginMaxSM:o+2+4,switchPinSizeSM:o,switchHandleShadow:`0 2px 4px 0 ${new qO("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[D8(a),C8(a),k8(a),w8(a),v8(a)]}));ej=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s}=e,l=ej(e,["prefixCls","size","disabled","loading","className","rootClassName"]);const{getPrefixCls:c,direction:u}=q_.useContext(wJ),p=q_.useContext(FJ),d=(null!=o?o:p)||a,m=c("switch",n),f=q_.createElement("div",{className:`${m}-handle`},a&&q_.createElement(vZ,{className:`${m}-loading-icon`})),[g,h]=x8(m),b=MJ(r),_=JQ({[`${m}-small`]:"small"===b,[`${m}-loading`]:a,[`${m}-rtl`]:"rtl"===u},i,s,h);return g(q_.createElement(PZ,null,q_.createElement(ZT,Object.assign({},l,{prefixCls:m,className:_,disabled:d,ref:t,loadingIcon:f}))))}));S8.__ANT_SWITCH=!0;const E8=S8,O8=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},P8=e=>Ml(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),I8=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return{[o]:Object.assign(Object.assign({},DJ(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},N8=jl("Tag",(e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=$l(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[I8(o),P8(o),O8(o,"success","Success"),O8(o,"processing","Info"),O8(o,"error","Error"),O8(o,"warning","Warning")]}),(e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText})));tj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:p=!1,bordered:d=!0}=e,m=nj(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:f,direction:g}=q_.useContext(wJ),[h,b]=q_.useState(!0);q_.useEffect((()=>{"visible"in m&&b(m.visible)}),[m.visible]);const _=_p(l)||function(e){return H2.includes(e)}(l),y=Object.assign({backgroundColor:l&&!_?l:void 0},a),v=f("tag",n),[w,k]=N8(v),C=JQ(v,{[`${v}-${l}`]:_,[`${v}-has-color`]:l&&!_,[`${v}-hidden`]:!h,[`${v}-rtl`]:"rtl"===g,[`${v}-borderless`]:!d},r,o,k),D=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||b(!1)},x=q_.useMemo((()=>p?u?q_.createElement("span",{className:`${v}-close-icon`,onClick:D},u):q_.createElement(oZ,{className:`${v}-close-icon`,onClick:D}):null),[p,u,v,D]),S="function"==typeof m.onClick||i&&"a"===i.type,E=s||null,O=E?q_.createElement(q_.Fragment,null,E,q_.createElement("span",null,i)):i,P=q_.createElement("span",Object.assign({},m,{ref:t,className:C,style:y}),O,x);return w(S?q_.createElement(PZ,null,P):P)},R8=q_.forwardRef(A8);R8.CheckableTag=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:a}=e,i=tj(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=q_.useContext(wJ),l=s("tag",t),[c,u]=N8(l),p=JQ(l,{[`${l}-checkable`]:!0,[`${l}-checkable-checked`]:r},n,u);return c(q_.createElement("span",Object.assign({},i,{className:p,onClick:e=>{null==o||o(!r),null==a||a(e)}})))};const T8=R8;rj=function(){return L2.useToken().token},ij=q_.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(aj=(oj=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}})("dark"))&&void 0!==aj&&aj.matches?"dark":"light"}),sj=function(){return q_.useContext(ij)},lj=function(){var e=rj(),t=sj(),n=t.appearance,r=t.isDarkMode;return q_.useMemo((function(){return cO(lO({token:e,css:DS,appearance:n,isDarkMode:r}))}),[e,n,r])},cj=function(){var e=rj(),t=lj();return q_.useMemo((function(){return rm(rm({},e),{},{stylish:t})}),[e,t])},uj=function(e){return am(am({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},pj=function(){var e=function(e){let t=!(arguments.length>0&&void 0!==e)||e;const n=q_.useRef({}),r=function(){const[,e]=q_.useReducer((e=>e+1),0);return e}(),o=mp();return q_.useEffect((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current}();return q_.useMemo((function(){return uj(e)}),[e])},dj=function(){var e=rj(),t={xs:"@media (max-width: ".concat(e.screenXSMax,"px)"),sm:"@media (max-width: ".concat(e.screenSMMax,"px)"),md:"@media (max-width: ".concat(e.screenMDMax,"px)"),lg:"@media (max-width: ".concat(e.screenLGMax,"px)"),xl:"@media (max-width: ".concat(e.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(e.screenXXLMin,"px)")};return q_.useMemo((function(){return uj(t)}),[e])},mj=function(e,t){return Object.entries(e).map((function(e){var n=Vi(e,2),r=n[0],o=n[1],a=o;return _S(o)||(a=DS(o)),t[r]?"".concat(t[r]," {").concat(a.styles,"}"):""})).join("")},fj=["stylish","appearance","isDarkMode","prefixCls"],gj=["prefixCls"],hj=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var a=null==o?void 0:o.__BABEL_FILE_NAME__,i=!!a;return function(s){var l=n(),c=q_.useContext(r),u=CS(c.cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),p=u.cx,d=u.css,m=dj(),f=q_.useMemo((function(){var t,n,r,o,c,u,f;return e instanceof Function?(n=l.stylish,r=l.appearance,o=l.isDarkMode,c=l.prefixCls,u=Sa(l,fj),f=function(e){return mj(e,m)},Object.assign(f,m),t=e({token:u,stylish:n,appearance:r,isDarkMode:o,prefixCls:c,cx:p,css:DS,responsive:f},s)):t=e,"object"===Ca(t)&&(t=_S(t)?d(t):Object.fromEntries(Object.entries(t).map((function(e){var t=Vi(e,2),n=t[0],r=t[1],o=i?"".concat(a,"-").concat(n):void 0;return"object"===Ca(r)?i?[n,d(r,"label:".concat(o))]:[n,d(r)]:[n,r]})))),t}),[s,l]);return q_.useMemo((function(){var e=l.prefixCls,t=Sa(l,gj);return{styles:f,cx:p,theme:t,prefixCls:e}}),[f,l])}}},bj=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return ey.jsx(t.Provider,{value:e.theme,children:e.children})}},_j=pE,yj=lE,vj=function(e){if(!e.ThemeContext)throw"ThemeContext is required. Please check your config.";yj=e.ThemeContext,_j=bj(e)};const j8=q_.memo((function(e){var t,n=e.children,r=e.theme,o=e.prefixCls,a=e.getStaticInstance,i=e.staticInstanceConfig,s=sj(),l=s.appearance,c=s.isDarkMode,u=Vi(Q4.useMessage(null==i?void 0:i.message),2),p=u[0],d=u[1],m=Vi(s8.useNotification(null==i?void 0:i.notification),2),f=m[0],g=m[1],h=Vi(Z4.useModal(),2),b=h[0],_=h[1];return q_.useEffect((function(){null==a||a({message:p,modal:b,notification:f})}),[]),t=q_.useMemo((function(){var e,t=c?L2.darkAlgorithm:L2.defaultAlgorithm,n=r;return"function"==typeof r&&(n=r(l)),n?(e=n.algorithm?n.algorithm instanceof Array?n.algorithm:[n.algorithm]:[],sm(sm({},n),{},{algorithm:n.algorithm?[t].concat(ki(e)):t})):{algorithm:t}}),[r,c]),ey.jsxs(YJ,{prefixCls:o,theme:t,children:[d,g,_,n]})}));wj=function(e){"function"==typeof q_.startTransition?q_.startTransition(e):e()},Cj=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){oj("dark").matches?n("dark"):n("light")},a=function(){oj("dark").matches?r("dark"):r("light")};return q_.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),kj||(kj=oj("dark")),kj.addEventListener("change",o),function(){kj.removeEventListener("change",o)};wj((function(){n(t)}))}),[t]),q_.useLayoutEffect((function(){return kj||(kj=oj("dark")),kj.addEventListener("change",a),function(){kj.removeEventListener("change",a)}}),[]),null};const $8=q_.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,a=e.onAppearanceChange,i=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,p=Vi(cm("light",{value:i,defaultValue:null!=s?s:c.themeMode,onChange:function(e){return null==l?void 0:l(e)}}),2),d=p[0],m=p[1],f=Vi(cm("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==a?void 0:a(e)}}),2),g=f[0],h=f[1],b=Vi(q_.useState(null!==(t=oj("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),_=b[0],y=b[1],v=Vi(q_.useState(!1),2),w=v[0],k=v[1];return q_.useEffect((function(){wj((function(){k(!0)}))}),[]),ey.jsxs(ij.Provider,{value:{themeMode:d,setThemeMode:m,appearance:g,setAppearance:h,isDarkMode:"dark"===g,browserPrefers:_},children:[w&&ey.jsx(Cj,{themeMode:d,setAppearance:h,setBrowserPrefers:y}),n]})}));Dj=["stylish"];const F8=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,a=e.prefixCls,i=void 0===a?"ant":a,s=e.StyledThemeProvider,l=sj(),c=l.appearance,u=l.isDarkMode,p=cj(),d=p.stylish,m=Sa(p,Dj),f=q_.useMemo((function(){return r?r instanceof Function?r({token:m,appearance:c,isDarkMode:u}):r:{}}),[r,m,c]),g=q_.useMemo((function(){return pm(pm({},f),n instanceof Function?n({token:m,appearance:c,isDarkMode:u}):n)}),[f,n,m,c]),h=q_.useMemo((function(){return o?o({token:pm(pm({},m),g),stylish:d,appearance:c,isDarkMode:u,css:DS}):{}}),[o,m,g,d,c]),b=q_.useMemo((function(){return pm(pm({},h),d)}),[h,d]),_=pm(pm(pm(pm({},m),g),{},{stylish:b},l),{},{prefixCls:i});return ey.jsx(s,{theme:_,children:t})};xj=function(e){var t=e.styledConfig?bj(e.styledConfig):void 0,n=e.StyleEngineContext;return q_.memo((function(r){var o=r.children,a=r.customToken,i=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,p=r.appearance,d=r.defaultAppearance,m=r.onAppearanceChange,f=r.themeMode,g=r.defaultThemeMode,h=r.onThemeModeChange,b=r.styled,_=q_.useContext(n),y=_.prefixCls,v=_.StyledThemeContext,w=_.CustomThemeContext,k=q_.useContext(w),C=b?bj(b):t||_j,D=c||y;return ey.jsx(n.Provider,{value:{prefixCls:D,StyledThemeContext:(null==b?void 0:b.ThemeContext)||v||yj,CustomThemeContext:w},children:ey.jsx($8,{themeMode:f,defaultThemeMode:g,onThemeModeChange:h,defaultAppearance:d,appearance:p,onAppearanceChange:m,useTheme:e.useTheme,children:ey.jsx(j8,{prefixCls:D,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:ey.jsx(F8,{prefixCls:D,customToken:a,defaultCustomToken:k,customStylish:i,StyledThemeProvider:C,children:o})})})})}))},Sj=function(e){return function(){var t=q_.useContext(e.StyleEngineContext),n=t.StyledThemeContext,r=t.CustomThemeContext,o=t.prefixCls,a=cj(),i=sj(),s=q_.useContext(r),l=q_.useContext(null!=n?n:yj)||{},c=q_.useMemo((function(){return mm(mm(mm(mm({},a),i),s),{},{prefixCls:o||"ant"})}),[a,i,o,s]);return l&&0!==Object.keys(l).length?l:c}},Ej=new fS,"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=Ej),Ij=(OY={key:"acss",speedy:!1},UY=gm(gm({},OY),{},{key:null!==(PY=OY.key)&&void 0!==PY?PY:"zcss",speedy:null!==(IY=OY.speedy)&&void 0!==IY&&IY}),zY=lS({key:UY.key,speedy:UY.speedy,container:UY.container}),BY=xS(zY),HY=sO(BY),Ej.add(zY.cache),AY=null===(NY=UY.styled)||void 0===NY?void 0:NY.ThemeContext,TY=Sj({StyleEngineContext:RY=q_.createContext({CustomThemeContext:q_.createContext(UY.customToken?UY.customToken:{}),StyledThemeContext:AY,prefixCls:null==UY?void 0:UY.prefixCls})}),jY=hj({hashPriority:UY.hashPriority,useTheme:TY,EmotionContext:BY}),$Y=mE(TY),FY=fE(jY),MY=xj({styledConfig:UY.styled,StyleEngineContext:RY,useTheme:TY}),LY=CS(zY.cache,{hashPriority:UY.hashPriority}),Oj={createStyles:jY,createGlobalStyle:$Y,createStylish:FY,css:DS,cx:LY.cx,keyframes:zY.keyframes,injectGlobal:zY.injectGlobal,styleManager:zY,useTheme:TY,StyleProvider:HY,ThemeProvider:MY}).createGlobalStyle,Nj=Oj.css,Aj=Oj.cx,Rj=Oj.keyframes,Tj=Oj.ThemeProvider,jj=Oj.StyleProvider,$j=Oj.useTheme,Lj=(Pj=Oj.createStyles)((function(e){var t=e.css,n=Rj(Fj||(Fj=Ea(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(Mj||(Mj=Ea(["\n animation: "," 1s linear infinite;\n "])),n)}})),Uj=["icon","size","className","spin"],zj=function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}};const M8=q_.memo((function(e){var t=e.icon,n=e.size,r=e.className,o=e.spin,a=Sa(e,Uj),i=Lj(),s=i.styles,l=i.cx,c=t,u=q_.useMemo((function(){return zj(n)}),[n]),p=u.fontSize,d=u.strokeWidth;return ey.jsx("span",bm(bm({className:l("anticon",o&&s.spin,r),role:"img"},a),{},{children:ey.jsx(c,{focusable:!1,height:p,size:p,strokeWidth:d,width:p})}))}));Hj=Pj((function(e,t){var n,r,o=e.token,a=e.isDarkMode,i=t.offset,s=(null!==(n=null==i?void 0:i.x)&&void 0!==n?n:0)+"px",l=(null!==(r=null==i?void 0:i.y)&&void 0!==r?r:0)+"px",c=t.outside?"0":".1",u=t.size+"px";return(0,e.css)(Bj||(Bj=Ea(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),c,u,s,l,a?o.colorText:"#fff",a?"transparent":o.colorTextQuaternary)})),Wj=["className","size"],Vj=function(){var e=Vi(q_.useState(),2),t=e[0],n=e[1],r=Vi(q_.useState(!0),2),o=r[0],a=r[1],i=q_.useRef();return q_.useEffect((function(){var e,t,r;if(i.current&&i.current.parentElement)return t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),a(!1)},r=function(){a(!0)},(e=i.current.parentElement).addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}),[]),[t,o,i]};const L8=q_.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Sa(e,Wj),a=Vi(Vj(),3),i=a[2],s=Hj({offset:a[0],outside:a[1],size:r});return ey.jsx("div",function(e){var t,n;for(t=1;ta?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0,r=Array(a);++o .ant-menu-item-only-child,\n .ant-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .ant-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .ant-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .ant-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .ant-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .ant-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .ant-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),n.colorText,n.colorFill,n.colorText,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFillSecondary,n.colorFillSecondary,n.borderRadius,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),RF=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];const J8=q_.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,a=e.setOpened,i=e.className,s=e.headerHeight,l=void 0===s?64:s,c=Sa(e,RF),u=AF(l),p=u.styles;return ey.jsxs(Q8,Zm(Zm({className:(0,u.cx)(p.container,i),onClick:function(){a(!o)}},c),{},{children:[ey.jsx(z8,{icon:o?qQ:$Q,size:"site"}),ey.jsxs(Od,{bodyStyle:{padding:0},className:p.drawer,closeIcon:void 0,headerStyle:{display:"none"},open:o,placement:"left",rootClassName:p.drawerRoot,width:"100vw",children:[ey.jsx(h5,{className:p.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),ey.jsx("div",{className:p.fillRect})]})]}))}));TF={exports:{}},function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(jF={exports:{}}),$F=jF.exports,function(e){function t(){function r(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function o(e,t,n,r){var o=Object.create((t&&t.prototype instanceof i?t:i).prototype),a=new g(r||[]);return w(o,"_invoke",{value:p(e,n,a)}),o}function a(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function i(){}function s(){}function l(){}function c(e){["next","throw","return"].forEach((function(t){r(e,t,(function(e){return this._invoke(t,e)}))}))}function u(e,t){function r(o,i,s,l){var c,u,p=a(e[o],e,i);if("throw"!==p.type)return(u=(c=p.arg).value)&&"object"==n(u)&&v.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,l)}));l(p.arg)}var o;w(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function p(e,t,n){var r="suspendedStart";return function(o,i){var s,l,c;if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){if((s=n.delegate)&&(l=d(s,n))){if(l===S)continue;return l}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);if(r="executing","normal"===(c=a(e,t,n)).type){if(r=n.done?"completed":"suspendedYield",c.arg===S)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function d(e,t){var n,r,o=t.method,i=e.iterator[o];return void 0===i?(t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,d(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),S):"throw"===(n=a(i,e.iterator,t.arg)).type?(t.method="throw",t.arg=n.arg,t.delegate=null,S):(r=n.arg)?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,S):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,S)}function m(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(m,this),this.reset(!0)}function h(e){var t,n,r;if(e){if(t=e[C])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(a=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(i=v.call(o,"catchLoc"),s=v.call(o,"finallyLoc"),i&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),S},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,f(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),S}},_}var n=$F.default;e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(TF),MF=FF=(0,TF.exports)();try{regeneratorRuntime=FF}catch(Ane){"object"==typeof globalThis?globalThis.regeneratorRuntime=FF:Function("r","regeneratorRuntime = r")(FF)}const Z8=t(MF);"undefined"!=typeof globalThis?globalThis:void 0!=={}||("undefined"!=typeof global?global:"undefined"!=typeof self&&self),LF={},hY=()=>{return e={770:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const o=r(n(418));let a=null,i=!1;class s{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n=55296&&o<=56319&&n+1=56320&&t<=57343&&(a=65536+(o-55296<<10)|t-56320,i=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,i&&n++}return t}constructor(e){const t=e.length,n=s._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const i=new Uint8Array(n);let l=0;for(let s=0;s=55296&&n<=56319&&s+1=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?a[l+0]=s:c<=2047?(a[l+0]=s,a[l+1]=s):c<=65535?(a[l+0]=s,a[l+1]=s,a[l+2]=s):(a[l+0]=s,a[l+1]=s,a[l+2]=s,a[l+3]=s)),c<=127?i[l++]=c:c<=2047?(i[l++]=192|(1984&c)>>>6,i[l++]=128|(63&c)>>>0):c<=65535?(i[l++]=224|(61440&c)>>>12,i[l++]=128|(4032&c)>>>6,i[l++]=128|(63&c)>>>0):(i[l++]=240|(1835008&c)>>>18,i[l++]=128|(258048&c)>>>12,i[l++]=128|(4032&c)>>>6,i[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=i,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!a)throw new Error("Must invoke loadWASM first.");this._onigBinding=a,this.content=e;const t=new s(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=a._omalloc(1e4)),l._sharedPtrInUse=!0,a.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(a)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!a)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let l=0,c=e.length;lWebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}var s;return p=new Promise(((e,t)=>{r=e,i=t})),function(e,t,n,r){(0,o.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{a=e,n()}))}(t,n,r,i),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){i=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document,function(e){function t(e,t,n){var r,o,a,i,s,l,c;for(r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&w)return w.decode(e.subarray(t,o));for(a="";t>10,56320|1023&c))):a+=String.fromCharCode((31&i)<<6|s)):a+=String.fromCharCode(i);return a}function n(e){_=e,T.HEAP8=new Int8Array(e),T.HEAP16=new Int16Array(e),T.HEAP32=new Int32Array(e),T.HEAPU8=y=new Uint8Array(e),T.HEAPU16=new Uint16Array(e),T.HEAPU32=v=new Uint32Array(e),T.HEAPF32=new Float32Array(e),T.HEAPF64=new Float64Array(e)}function r(e){T.onAbort&&T.onAbort(e),h(e="Aborted("+e+")"),b=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw u(t),t}function o(e){return e.startsWith(P)}function a(e){for(;e.length>0;)e.shift()(T)}function i(e){try{return f.grow(e-_.byteLength+65535>>>16),n(f.buffer),1}catch(t){}}function s(e,n){var r=I[e];0===n||10===n?((1===e?g:h)(t(r,0)),r.length=0):r.push(n)}function l(){function e(){N||(N=!0,T.calledRun=!0,b||(a(C),c(T),T.onRuntimeInitialized&&T.onRuntimeInitialized(),function(){if(T.postRun)for("function"==typeof T.postRun&&(T.postRun=[T.postRun]);T.postRun.length;)e=T.postRun.shift(),D.unshift(e);var e;a(D)}()))}x>0||(function(){if(T.preRun)for("function"==typeof T.preRun&&(T.preRun=[T.preRun]);T.preRun.length;)e=T.preRun.shift(),k.unshift(e);var e;a(k)}(),x>0||(T.setStatus?(T.setStatus("Running..."),setTimeout((function(){setTimeout((function(){T.setStatus("")}),1),e()}),1)):e()))}var c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T=void 0!==(e=e||{})?e:{};if(T.ready=new Promise((function(e,t){c=e,u=t})),d=Object.assign({},T),p=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e){e||r(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print),g=T.print||void 0,h=T.printErr||void 0,Object.assign(T,d),d=null,T.wasmBinary&&(m=T.wasmBinary),"object"!=typeof WebAssembly&&r("no native wasm support detected"),b=!1,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,k=[],C=[],D=[],x=0,S=null,P="data:application/octet-stream;base64,",o(E="onig.wasm")||(R=E,E=T.locateFile?T.locateFile(R,""):""+R),O="undefined"!=typeof dateNow?dateNow:()=>performance.now(),I=[null,[],[]],A={emscripten_get_now:O,emscripten_memcpy_big:function(e,t,n){y.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n,r,o=y.length,a=2147483648;if((e>>>=0)>a)return!1;for(n=1;n<=4;n*=2)if(r=o*(1+.2/n),r=Math.min(r,e+100663296),i(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0;return!1},fd_write:function(e,t,n,r){var o,a,i,l,c;for(o=0,a=0;a>2],l=v[t+4>>2],t+=8,c=0;c>2]=o,0}},function(){function e(e){T.asm=e.exports,n((f=T.asm.memory).buffer),function(e){C.unshift(e)}(T.asm.__wasm_call_ctors),function(){if(x--,T.monitorRunDependencies&&T.monitorRunDependencies(x),0==x&&S){var e=S;S=null,e()}}()}function t(t){e(t.instance)}function a(e){return Promise.resolve().then((function(){return function(e){try{if(e==E&&m)return new Uint8Array(m);if(p)return p(e);throw"both async and sync fetching of the wasm failed"}catch(t){r(t)}}(E)})).then((function(e){return WebAssembly.instantiate(e,i)})).then((function(e){return e})).then(e,(function(e){h("failed to asynchronously prepare wasm: "+e),r(e)}))}var i={env:A,wasi_snapshot_preview1:A};if(x++,T.monitorRunDependencies&&T.monitorRunDependencies(x),T.instantiateWasm)try{return T.instantiateWasm(i,e)}catch(s){h("Module.instantiateWasm callback failed with error: "+s),u(s)}(m||"function"!=typeof WebAssembly.instantiateStreaming||o(E)||"function"!=typeof fetch?a(t):fetch(E,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,i).then(t,(function(e){return h("wasm streaming compile failed: "+e),h("falling back to ArrayBuffer instantiation"),a(t)}))}))).catch(u)}(),T.___wasm_call_ctors=function(){return(T.___wasm_call_ctors=T.asm.__wasm_call_ctors).apply(null,arguments)},T.___errno_location=function(){return(T.___errno_location=T.asm.__errno_location).apply(null,arguments)},T._omalloc=function(){return(T._omalloc=T.asm.omalloc).apply(null,arguments)},T._ofree=function(){return(T._ofree=T.asm.ofree).apply(null,arguments)},T._getLastOnigError=function(){return(T._getLastOnigError=T.asm.getLastOnigError).apply(null,arguments)},T._createOnigScanner=function(){return(T._createOnigScanner=T.asm.createOnigScanner).apply(null,arguments)},T._freeOnigScanner=function(){return(T._freeOnigScanner=T.asm.freeOnigScanner).apply(null,arguments)},T._findNextOnigScannerMatch=function(){return(T._findNextOnigScannerMatch=T.asm.findNextOnigScannerMatch).apply(null,arguments)},T._findNextOnigScannerMatchDbg=function(){return(T._findNextOnigScannerMatchDbg=T.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},T.stackSave=function(){return(T.stackSave=T.asm.stackSave).apply(null,arguments)},T.stackRestore=function(){return(T.stackRestore=T.asm.stackRestore).apply(null,arguments)},T.stackAlloc=function(){return(T.stackAlloc=T.asm.stackAlloc).apply(null,arguments)},T.dynCall_jiji=function(){return(T.dynCall_jiji=T.asm.dynCall_jiji).apply(null,arguments)},T.UTF8ToString=function(e,n){return e?t(y,e,n):""},S=function e(){N||l(),N||(S=e)},T.preInit)for("function"==typeof T.preInit&&(T.preInit=[T.preInit]);T.preInit.length>0;)T.preInit.pop()();return l(),e.ready});e.exports=t}},t={},function n(r){var o,a=t[r];return void 0!==a?a.exports:(o=t[r]={exports:{}},e[r].call(o.exports,o,o.exports,n),o.exports)}(770);var e,t},{get exports(){return LF},set exports(e){LF=e}}.exports=hY(),UF={},{get exports(){return UF},set exports(e){UF=e}}.exports=(bY={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!{ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\i\\AppData\\Roaming",ChocolateyInstall:"C:\\ProgramData\\chocolatey",ChocolateyLastPathUpdate:'"133236781557883687"',CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"CANISMINOR-PRO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",CONDA_PROMPT_MODIFIER:"False",CUDA_PATH:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",CUDA_PATH_V11_8:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8",CUDA_PATH_V12_1:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EFC_16764:"1",FIG_JETBRAINS_SHELL_INTEGRATION:"1",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",HOME:"C:\\Users\\i",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\i",IDEA_INITIAL_DIRECTORY:"C:\\WINDOWS\\system32",INIT_CWD:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",INTEL_DEV_REDIST:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",LOCALAPPDATA:"C:\\Users\\i\\AppData\\Local",LOGONSERVER:"\\\\CANISMINOR-PRO",MIC_LD_LIBRARY_PATH:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",NDI_RUNTIME_DIR_V2:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V3:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V4:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V5:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_PATH:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@4.3.9_@types+node@20.3.3_terser@5.18.2\\node_modules\\vite\\bin\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@4.3.9_@types+node@20.3.3_terser@5.18.2\\node_modules\\vite\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@4.3.9_@types+node@20.3.3_terser@5.18.2\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\bin\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\node_modules",npm_command:"run-script",npm_config_lockfile:"",npm_config_node_gyp:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_registry:"https://registry.npmmirror.com",npm_config_resolution_mode:"highest",npm_config_user_agent:"pnpm/8.6.1 npm/? node/v18.15.0 win32 x64",npm_execpath:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build",npm_lifecycle_script:"vite build",npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_author:"canisminor1990 ",npm_package_bugs_url:"https://github.com/canisminor1990/sd-webui-lobe-theme/issues/new",npm_package_description:"The modern theme for stable diffusion webui, legacy verison a.k.a kitchen theme",npm_package_devDependencies_ahooks:"^3",npm_package_devDependencies_antd:"^5",npm_package_devDependencies_antd_style:"latest",npm_package_devDependencies_babel_plugin_antd_style:"^1",npm_package_devDependencies_babel_plugin_styled_components:"^2",npm_package_devDependencies_commitlint:"^17",npm_package_devDependencies_concurrently:"^8",npm_package_devDependencies_eslint:"^8",npm_package_devDependencies_fast_deep_equal:"^3",npm_package_devDependencies_husky:"^8",npm_package_devDependencies_i18next:"^23",npm_package_devDependencies_lint_staged:"^13",npm_package_devDependencies_lodash_es:"^4",npm_package_devDependencies_lucide_react:"latest",npm_package_devDependencies_lucide_static:"latest",npm_package_devDependencies_polished:"^4",npm_package_devDependencies_prettier:"^2",npm_package_devDependencies_query_string:"^8",npm_package_devDependencies_react:"^18",npm_package_devDependencies_react_dom:"^18",npm_package_devDependencies_react_helmet:"^6",npm_package_devDependencies_react_i18next:"^13",npm_package_devDependencies_react_layout_kit:"^1",npm_package_devDependencies_react_rnd:"^10",npm_package_devDependencies_react_tag_input:"^6",npm_package_devDependencies_remark:"^14",npm_package_devDependencies_remark_cli:"^11",npm_package_devDependencies_semantic_release:"^21",npm_package_devDependencies_semver:"^7.5.4",npm_package_devDependencies_styled_components:"^6",npm_package_devDependencies_stylelint:"^15",npm_package_devDependencies_swr:"^2",npm_package_devDependencies_terser:"^5",npm_package_devDependencies_typescript:"^5",npm_package_devDependencies_vite:"^4",npm_package_devDependencies_zustand:"^4",npm_package_devDependencies__babel_plugin_syntax_import_assertions:"^7",npm_package_devDependencies__commitlint_cli:"^17",npm_package_devDependencies__lobehub_lint:"latest",npm_package_devDependencies__lobehub_ui:"latest",npm_package_devDependencies__types_lodash_es:"^4",npm_package_devDependencies__types_node:"^20",npm_package_devDependencies__types_react:"^18",npm_package_devDependencies__types_react_dom:"^18",npm_package_devDependencies__types_react_helmet:"^6",npm_package_devDependencies__types_react_tag_input:"^6",npm_package_devDependencies__types_semver:"^7.5.0",npm_package_devDependencies__types_styled_components:"^5",npm_package_devDependencies__vitejs_plugin_react:"^4",npm_package_files_0:"javascript",npm_package_homepage:"https://github.com/canisminor1990/sd-webui-lobe-theme",npm_package_keywords_0:"stable-diffusion-webui",npm_package_keywords_1:"sd-webui-kitchen-theme",npm_package_keywords_2:"kitchen-theme",npm_package_keywords_3:"extensions",npm_package_license:"AGPL3",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_lint_staged____js_jsx__1:"stylelint --fix --allow-empty-input",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_main:"javascript/main.js",npm_package_name:"sd-webui-lobe-theme",npm_package_peerDependencies_antd:">=5",npm_package_peerDependencies_antd_style:">=3",npm_package_peerDependencies_react:">=18",npm_package_peerDependencies_react_dom:">=18",npm_package_private:"true",npm_package_publishConfig_access:"public",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_repository_type:"git",npm_package_repository_url:"https://github.com/canisminor1990/sd-webui-lobe-theme.git",npm_package_scripts_build:"vite build",npm_package_scripts_dev:"vite",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_lint_md:"remark . --quiet --output",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',npm_package_scripts_prepare:"husky install",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_scripts_release:"semantic-release",npm_package_scripts_start:"npm run dev",npm_package_scripts_test:"npm run type-check",npm_package_scripts_type_check:"tsc --noEmit",npm_package_sideEffects:"false",npm_package_version:"2.8.1",NUMBER_OF_PROCESSORS:"32",NVAFX_SDK_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Audio Effects SDK",NVTOOLSEXT_PATH:"C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\",NVVFX_MODEL_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Video Effects\\models",OneDrive:"C:\\Users\\i\\OneDrive",OneDriveConsumer:"C:\\Users\\i\\OneDrive",OPENAI_API_KEY:'"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"',OS:"Windows_NT",Path:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\dist\\node-gyp-bin;C:\\Users\\i\\AppData\\Local\\oh-my-posh;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\cudnn\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\cudnn\\bin;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\nodejs\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.3.0\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\i\\AppData\\Local\\pnpm;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\;c:\\users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\jetbrains\\toolbox\\scripts;c:\\users\\i\\appdata\\roaming\\npm;c:\\users\\i\\appdata\\local\\programs\\oh-my-posh\\bin;;C:\\Users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\microsoft\\winget\\links;C:\\Users\\i\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\i\\AppData\\Local\\Microsoft\\WindowsApps;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\i\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",POSH_AZURE_ENABLED:"False",POSH_CURSOR_COLUMN:"1",POSH_CURSOR_LINE:"16",POSH_GIT_ENABLED:"True",POSH_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh",POSH_PID:"11616",POSH_THEME:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes\\mytheme.omp.json",POSH_THEMES_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes",POWERLINE_COMMAND:"oh-my-posh",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Pro",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 183 Stepping 1, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"b701",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"D:\\本地资源库\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\i\\AppData\\Local\\Temp",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"623cd029-beb2-4da3-8ace-bfc2e61e78c3",TMP:"C:\\Users\\i\\AppData\\Local\\Temp",USERDOMAIN:"CANISMINOR-PRO",USERDOMAIN_ROAMINGPROFILE:"CANISMINOR-PRO",USERNAME:"i",USERPROFILE:"C:\\Users\\i",windir:"C:\\WINDOWS"}.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){n.getLanguageId(e),n.getTokenType(e),n.getFontStyle(e),n.getForeground(e),n.getBackground(e)},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,o,a,i,s){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),d=n.getForeground(e),m=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==a&&(p=a),0!==i&&(d=i),0!==s&&(m=s),(l<<0|c<<8|u<<10|p<<11|d<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class a{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new o(t,n)})),this._defaultAttributes=new o(e,8),this._embeddedLanguagesMatcher=new i(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?a._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(a.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=a,a._NULL_SCOPE_METADATA=new o(0,0),a.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class i{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{function r(e,t,n,r,a){const i=c.createMatchers(t,o),s=p.RuleFactory.getCompiledRuleId(n,r,a.repository);for(const o of i)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:a,priority:o.priority})}function o(e,t){if(t.length{for(let r=n;rn&&e.substr(0,n)===t&&"."===e[n]}function i(e,t){return(e=m.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=n(350),l=n(36),c=n(736),u=n(44),p=n(792),d=n(583),m=n(878),f=n(996),g=n(47);t.createGrammar=function(e,t,n,r,o,a,i,s){return new h(e,t,n,r,o,a,i,s)};class h{constructor(e,t,n,r,a,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new f.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=i(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const i of Object.keys(a)){const e=c.createMatchers(i,o);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:a[i]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const o=n.injections;if(o)for(let t in o)r(e,t,o[t],this,n);const a=this._grammarRepository.injections(t);a&&a.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&r(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0))for(const e of this._injections);return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(p.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[p.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=i(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let o;if(-1===this._rootId&&(this._rootId=p.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==_.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=l.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null);let i;i=a?b.createRootAndLookUpScopeName(a,r,this):b.createRoot("unknown",r),t=new _(null,this._rootId,-1,-1,!1,null,i,i)}const a=this.createOnigString(e+="\n"),i=a.content.length,s=new y(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=g._tokenizeString(this,a,o,0,t,s,!0,r);return u.disposeOnigString(a),{lineLength:i,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}t.Grammar=h;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new d.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new d.ScopeStack(null,e),a=n.themeProvider.themeMatch(o),i=b.mergeAttributes(t,r,a);return new b(null,o,i)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,a=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,a=n.backgroundId),l.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,o,a)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const o of n)r=b._pushAttributed(r,o,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),o=e.scopePath.push(t),a=n.themeProvider.themeMatch(o),i=b.mergeAttributes(e.tokenAttributes,r,a);return new b(e,o,i)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class _{constructor(e,t,n,r,o,a,i,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=i,this.contentNameScopesList=s,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&_._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){_._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,a,i){return new _(this,e,t,n,r,o,a,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new _(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=_,_.NULL=new _(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):c.createMatchers(e,o).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>c.createMatchers(e,o).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class y{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=s.DebugFlags.InDebugMode?t:null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e.tokenAttributes,o=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(r=l.EncodedTokenAttributes.set(r,0,l.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(r=l.EncodedTokenAttributes.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const t=e.getScopeNames();for(let e=0;e0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r{function r(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof c?a({baseGrammar:s,selfGrammar:i},r):o(e.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const l=n.injections(e.scopeName);if(l)for(const o of l)r.add(new c(o))}function o(e,t,n){t.repository&&t.repository[e]&&i([t.repository[e]],t,n)}function a(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&i(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&i(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function i(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?l.mergeObjects({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&i(r.patterns,{...t,repository:e},n);const p=r.include;if(!p)continue;const d=s(p);switch(d.kind){case 0:a({...t,selfGrammar:t.baseGrammar},n);break;case 1:a(t,n);break;case 2:o(d.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===d.kind?o(d.ruleName,i,n):a(i,n)}else n.add(4===d.kind?new u(d.scopeName,d.ruleName):new c(d.scopeName))}}}function s(e){if("$base"===e)return new d;if("$self"===e)return new m;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new f(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new h(n,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const l=n(878);class c{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=c;class u{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=u;class p{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}t.ExternalReferenceCollector=p,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new c(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new p;for(const n of e)r(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof c){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class d{constructor(){this.kind=0}}t.BaseReference=d;class m{constructor(){this.kind=1}}t.SelfReference=m;class f{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=f;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class h{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}t.TopLevelRepositoryReference=h,t.parseInclude=s},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{function r(e,t,n,r,i,c,m,f){function g(){const a=function(e,t,n,r,a,i){const s=function(e,t,n,r,a,i){const s=a.getRule(e),{ruleScanner:c,findOptions:u}=o(s,e,a.endRule,n,r===i);l.DebugFlags.InDebugMode&&p.performanceNow();const d=c.findNextMatchSync(t,r,u);return l.DebugFlags.InDebugMode&&p.performanceNow(),d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}(e,t,n,r,a,i),c=e.getInjections();if(0===c.length)return s;const u=function(e,t,n,r,a,i,s){let l,c=Number.MAX_VALUE,u=null,p=0;const d=i.contentNameScopesList.getScopeNames();for(let m=0,f=e.length;m=c)&&(c=_,u=b.captureIndices,l=b.ruleId,p=i.priority,c===a))break}return u?{priorityMatch:-1===p,captureIndices:u,matchedRuleId:l}:null}(c,e,t,n,r,a,i);if(!u)return s;if(!s)return u;const d=s.captureIndices[0].start,m=u.captureIndices[0].start;return m0)&&d[0].end>r;if(m===u.endRuleId){const o=i.getRule(e);c.produce(i,d[0].start),i=i.withContentNameScopesList(i.nameScopesList),s(e,t,n,i,c,o.endCaptures,d),c.produce(i,d[0].end);const a=i;if(i=i.parent,_=a.getAnchorPos(),!f&&a.getEnterPos()===r)return c.produce(i=a,h),void(b=!0)}else{const o=e.getRule(m);c.produce(i,d[0].start);const a=i,l=o.getName(t.content,d),p=i.contentNameScopesList.pushAttributed(l,e);if(i=i.push(m,r,_,d[0].end===h,null,p,p),o instanceof u.BeginEndRule){const r=o;s(e,t,n,i,c,r.beginCaptures,d),c.produce(i,d[0].end),_=d[0].end;const l=r.getContentName(t.content,d),u=p.pushAttributed(l,e);if(i=i.withContentNameScopesList(u),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,d))),!f&&a.hasSameRuleAs(i))return i=i.pop(),c.produce(i,h),void(b=!0)}else if(o instanceof u.BeginWhileRule){const r=o;s(e,t,n,i,c,r.beginCaptures,d),c.produce(i,d[0].end),_=d[0].end;const l=r.getContentName(t.content,d),u=p.pushAttributed(l,e);if(i=i.withContentNameScopesList(u),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,d))),!f&&a.hasSameRuleAs(i))return i=i.pop(),c.produce(i,h),void(b=!0)}else if(s(e,t,n,i,c,o.captures,d),c.produce(i,d[0].end),i=i.pop(),!f)return i=i.safePop(),c.produce(i,h),void(b=!0)}d[0].end>r&&(r=d[0].end,n=!1)}const h=t.content.length;let b=!1,_=-1;if(m){const o=function(e,t,n,r,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let a=o;a;a=a.pop()){const t=a.getRule(e);t instanceof u.BeginWhileRule&&c.push({rule:t,stack:a})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:d}=a(p.rule,e,p.stack.endRule,n,r===l),m=c.findNextMatchSync(t,r,d);if(!m){o=p.stack.pop();break}if(m.ruleId!==u.whileRuleId){o=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),s(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}(e,t,n,r,i,c);i=o.stack,r=o.linePos,n=o.isFirstLine,_=o.anchorPosition}const y=Date.now();for(;!b;){if(0!==f&&Date.now()-y>f)return new d(i,!0);g()}return new d(i,!1)}function o(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:i(r,o)}:{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function a(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:i(r,o)}:{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function i(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function s(e,t,n,o,a,i,s){if(0===i.length)return;const l=t.content,u=Math.min(i.length,s.length),p=[],d=s[0].end;for(let f=0;fd)break;for(;p.length>0&&p[p.length-1].endPos<=u.start;)a.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?a.produceFromScopes(p[p.length-1].scopes,u.start):a.produce(o,u.start),t.retokenizeCapturedWithRuleId){const i=t.getName(l,s),p=o.contentNameScopesList.pushAttributed(i,e),d=t.getContentName(l,s),m=p.pushAttributed(d,e),f=o.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,p,m),g=e.createOnigString(l.substring(0,u.end));r(e,g,n&&0===u.start,u.start,f,a,!1,0),c.disposeOnigString(g);continue}const g=t.getName(l,s);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:o.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,u.end))}}for(;p.length>0;)a.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const l=n(350),c=n(44),u=n(792),p=n(878);class d{constructor(e,t){this.stack=e,this.stoppedEarly=t}}t._tokenizeString=r;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,o=e.source,a=e.pos,i=e.len,s=e.line,l=e.char;for(;;){if(a>=i)return!1;if(r=o.charCodeAt(a),32!==r&&9!==r&&13!==r){if(10!==r)break;a++,s++,l=0}else a++,l++}if(t.offset=a,t.line=s,t.char=l,34===r){for(t.type=1,a++,l++;;){if(a>=i)return!1;if(r=o.charCodeAt(a),a++,l++,92!==r){if(34===r)break}else a++,l++}t.value=o.substring(t.offset+1,a-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,a++,l++;else if(123===r)t.type=3,a++,l++;else if(93===r)t.type=4,a++,l++;else if(125===r)t.type=5,a++,l++;else if(58===r)t.type=6,a++,l++;else if(44===r)t.type=7,a++,l++;else if(110===r){if(t.type=8,a++,l++,r=o.charCodeAt(a),117!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;a++,l++}else if(116===r){if(t.type=9,a++,l++,r=o.charCodeAt(a),114!==r)return!1;if(a++,l++,r=o.charCodeAt(a),117!==r)return!1;if(a++,l++,r=o.charCodeAt(a),101!==r)return!1;a++,l++}else if(102===r){if(t.type=10,a++,l++,r=o.charCodeAt(a),97!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;if(a++,l++,r=o.charCodeAt(a),115!==r)return!1;if(a++,l++,r=o.charCodeAt(a),101!==r)return!1;a++,l++}else for(t.type=11;;){if(a>=i)return!1;if(r=o.charCodeAt(a),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;a++,l++}return t.len=a-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=a,e.line=s,e.char=l,!0}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,i){function s(){f.push(d),g.push(m)}function l(){d=f.pop(),m=g.pop()}function c(e){n(u,e)}let u=new o(e),p=new a,d=0,m=null,f=[],g=[];for(;r(u,p);){if(0===d){if(null!==m&&c("too many constructs in root"),3===p.type){m={},i&&(m.$vscodeTextmateLocation=p.toLocation(t)),s(),d=1;continue}if(2===p.type){m=[],s(),d=4;continue}c("unexpected token in root")}if(2===d){if(5===p.type){l();continue}if(7===p.type){d=3;continue}c("expected , or }")}if(1===d||3===d){if(1===d&&5===p.type){l();continue}if(1===p.type){let e=p.value;if(r(u,p)&&6===p.type||c("expected colon"),r(u,p)||c("expected value"),d=2,1===p.type){m[e]=p.value;continue}if(8===p.type){m[e]=null;continue}if(9===p.type){m[e]=!0;continue}if(10===p.type){m[e]=!1;continue}if(11===p.type){m[e]=parseFloat(p.value);continue}if(2===p.type){let t=[];m[e]=t,s(),d=4,m=t;continue}if(3===p.type){let n={};i&&(n.$vscodeTextmateLocation=p.toLocation(t)),m[e]=n,s(),d=1,m=n;continue}}c("unexpected token in dict")}if(5===d){if(4===p.type){l();continue}if(7===p.type){d=6;continue}c("expected , or ]")}if(4===d||6===d){if(4===d&&4===p.type){l();continue}if(d=5,1===p.type){m.push(p.value);continue}if(8===p.type){m.push(null);continue}if(9===p.type){m.push(!0);continue}if(10===p.type){m.push(!1);continue}if(11===p.type){m.push(parseFloat(p.value));continue}if(2===p.type){let e=[];m.push(e),s(),d=4,m=e;continue}if(3===p.type){let e={};i&&(e.$vscodeTextmateLocation=p.toLocation(t)),m.push(e),s(),d=1,m=e;continue}c("unexpected token in array")}c("unknown state")}return 0!==g.length&&c("unclosed constructs"),m};class o{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class a{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const a=n(391),i=n(50),s=n(652),l=n(583),c=n(965);o(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new s.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new a.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const a=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;a.Q.length>0;)await Promise.all(a.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),a.processQueue();return this._grammarForScopeName(e,t,n,r,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},t.INITIAL=a.StateStack.NULL,t.parseRawGrammar=i.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){function r(){if("-"===s){s=i.next();const e=r();return t=>!!e&&!e(t)}if("("===s){s=i.next();const e=function(){const e=[];let t=o();for(;t&&(e.push(t),"|"===s||","===s);){do{s=i.next()}while("|"===s||","===s);t=o()}return t=>e.some((e=>e(t)))}();return")"===s&&(s=i.next()),e}if(n(s)){const e=[];do{e.push(s),s=i.next()}while(n(s));return n=>t(e,n)}return null}function o(){const e=[];let t=r();for(;t;)e.push(t),t=r();return t=>e.every((e=>e(t)))}const a=[],i=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let s=i.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1}s=i.next()}let t=o();if(a.push({matcher:t,priority:e}),","!==s)break;s=i.next()}return a}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),a=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(i=e,o.DebugFlags.InDebugMode?a.parseJSON(i,t,!0):JSON.parse(i)):(n=e,o.DebugFlags.InDebugMode?r.parseWithLocation(n,t,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,i}},69:(e,t)=>{function n(e,t,n){function r(t){if(null===n)C+=t;else for(;t>0;)10===e.charCodeAt(C)?(C++,D++,x=0):(C++,x++),t--}function o(e){null===n?C=e:r(e-C)}function a(){for(;C");u()}function m(){return 1===S||2!==S?p("unexpected "):void u()}function f(e){if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function g(e){if(isNaN(e))return p("cannot parse float");if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function h(e){if(isNaN(e))return p("cannot parse integer");if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function b(e){if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function _(e){if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function y(e){if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function v(){let e=l(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function w(e){if(e.isClosed)return"";let t=l(""),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}const k=e.length;let C=0,D=1,x=0;k>0&&65279===e.charCodeAt(0)&&(C=1);let S=0,E=null,O=[],P=[],I=null;const N=function(){if(null===I)return p("missing ");let e={};null!==n&&(e[n]={filename:t,line:D,char:x}),E[I]=e,I=null,c(1,e)},A=function(){if(null===I)return p("missing ");let e=[];E[I]=e,I=null,c(2,e)},R=function(){let e={};null!==n&&(e[n]={filename:t,line:D,char:x}),E.push(e),c(1,e)},T=function(){let e=[];E.push(e),c(2,e)};for(;C=k));){const o=e.charCodeAt(C);if(r(1),60!==o)return p("expected <");if(C>=k)return p("unexpected end of input");const l=e.charCodeAt(C);if(63===l){r(1),s("?>");continue}if(33===l){if(r(1),i("--")){s("--\x3e");continue}s(">");continue}if(47===l){if(r(1),a(),i("plist")){s(">");continue}if(i("dict")){s(">"),d();continue}if(i("array")){s(">"),m();continue}return p("unexpected closed tag")}let u=v();switch(u.name){case"dict":1===S?N():2===S?R():(E={},null!==n&&(E[n]={filename:t,line:D,char:x}),c(1,E)),u.isClosed&&d();continue;case"array":1===S?A():2===S?T():(E=[],c(2,E)),u.isClosed&&m();continue;case"key":j=w(u),1!==S?p("unexpected "):null!==I?p("too many "):I=j;continue;case"string":f(w(u));continue;case"real":g(parseFloat(w(u)));continue;case"integer":h(parseInt(w(u),10));continue;case"date":b(new Date(w(u)));continue;case"data":_(w(u));continue;case"true":w(u),y(!0);continue;case"false":w(u),y(!1);continue}if(!/^plist/.test(u.name))return p("unexpected opened tag "+u.name)}var j;return E}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,o,a){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,r.createGrammar(e,i,t,n,o,a,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),o=n(965),a=/\\(\d+)/,i=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class s{constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=s;class l extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends s{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new f(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends s{constructor(e,t,n,r,o,a,i,s,l,c){super(e,t,n,r),this._begin=new f(o,this.id),this.beginCaptures=a,this._end=new f(i||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&this._cachedCompiledPatterns.setSource(this.applyEndPatternLast?this._cachedCompiledPatterns.length()-1:0,t),this._cachedCompiledPatterns}}t.BeginEndRule=p;class d extends s{constructor(e,n,r,o,a,i,s,l,c){super(e,n,r,o),this._begin=new f(a,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new f(s,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=d;class m{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new l(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((o=>{if(e.id=o,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let o=e.patterns;return void 0===o&&e.include&&(o=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(o,t,n))}return e.while?new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,n),m._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,m._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let o=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>o&&(o=e)}for(let e=0;e<=o;e++)r[e]=null;for(const a in e){if("$vscodeTextmateLocation"===a)continue;const o=parseInt(a,10);let i=0;e[a].patterns&&(i=m.getCompiledRuleId(e[a],t,n)),r[o]=m.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,i)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let a=0,i=e.length;ae.substring(t.start,t.end)));return i.lastIndex=0,this.source.replace(i,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],a=[],i=[],s=[];for(e=0,t=this.source.length;ee.source));this._cached=new h(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new h(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class h{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t{function r(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}function o(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,i=t.length;o1&&(p=a.slice(0,a.length-1),p.reverse()),n[r++]=new c(i,p,o,s,l,u)}}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=n(878);class i{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(o(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=a.strcmp(e.scope,t.scope);return 0!==n?n:(n=a.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let s=new u(t),c=new l(n,s.getId(r),s.getId(o)),m=new d(new p(0,null,-1,0,0),[]);for(let a=0,i=e.length;afunction(e,t){if(null===t)return!0;let n=0,o=t[n];for(;e;){if(r(e.scopeName,o)){if(n++,n===t.length)return!0;o=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return t?new l(t.fontStyle,t.foreground,t.background):null}}t.Theme=i;class s{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;ne||(this.scopeDepth=e),-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=p;class d{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let o=null===n?0:n.length,a=null===r?0:r.length;if(o===a)for(let e=0;e{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;rt?1:0}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let o=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;t.RegexSource=class{static hasCaptures(e){return null!==e&&(o.lastIndex=0,o.test(e))}static replaceCaptures(e,t,n){return e.replace(o,((e,r,o,a)=>{let i=n[parseInt(r||o,10)];if(!i)return e;{let e=t.substring(i.start,i.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=r,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let o=0;o(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(zF||{});class t6{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){t6.getLanguageId(e),t6.getTokenType(e),t6.getFontStyle(e),t6.getForeground(e),t6.getBackground(e)}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,o,a){let i=t6.getLanguageId(e),s=t6.getTokenType(e),l=t6.getFontStyle(e),c=t6.getForeground(e),u=t6.getBackground(e);return 0!==t&&(i=t),0!==n&&(s=8===n?0:n),-1!==r&&(l=r),0!==o&&(c=o),0!==a&&(u=a),(i<<0|s<<8|l<<11|(t6.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}(yY=BF||(BF={}))[yY.lineFeed=10]="lineFeed",yY[yY.carriageReturn=13]="carriageReturn",yY[yY.space=32]="space",yY[yY._0=48]="_0",yY[yY._1=49]="_1",yY[yY._2=50]="_2",yY[yY._3=51]="_3",yY[yY._4=52]="_4",yY[yY._5=53]="_5",yY[yY._6=54]="_6",yY[yY._7=55]="_7",yY[yY._8=56]="_8",yY[yY._9=57]="_9",yY[yY.a=97]="a",yY[yY.b=98]="b",yY[yY.c=99]="c",yY[yY.d=100]="d",yY[yY.e=101]="e",yY[yY.f=102]="f",yY[yY.g=103]="g",yY[yY.h=104]="h",yY[yY.i=105]="i",yY[yY.j=106]="j",yY[yY.k=107]="k",yY[yY.l=108]="l",yY[yY.m=109]="m",yY[yY.n=110]="n",yY[yY.o=111]="o",yY[yY.p=112]="p",yY[yY.q=113]="q",yY[yY.r=114]="r",yY[yY.s=115]="s",yY[yY.t=116]="t",yY[yY.u=117]="u",yY[yY.v=118]="v",yY[yY.w=119]="w",yY[yY.x=120]="x",yY[yY.y=121]="y",yY[yY.z=122]="z",yY[yY.A=65]="A",yY[yY.B=66]="B",yY[yY.C=67]="C",yY[yY.D=68]="D",yY[yY.E=69]="E",yY[yY.F=70]="F",yY[yY.G=71]="G",yY[yY.H=72]="H",yY[yY.I=73]="I",yY[yY.J=74]="J",yY[yY.K=75]="K",yY[yY.L=76]="L",yY[yY.M=77]="M",yY[yY.N=78]="N",yY[yY.O=79]="O",yY[yY.P=80]="P",yY[yY.Q=81]="Q",yY[yY.R=82]="R",yY[yY.S=83]="S",yY[yY.T=84]="T",yY[yY.U=85]="U",yY[yY.V=86]="V",yY[yY.W=87]="W",yY[yY.X=88]="X",yY[yY.Y=89]="Y",yY[yY.Z=90]="Z",yY[yY.asterisk=42]="asterisk",yY[yY.backslash=92]="backslash",yY[yY.closeBrace=125]="closeBrace",yY[yY.closeBracket=93]="closeBracket",yY[yY.colon=58]="colon",yY[yY.comma=44]="comma",yY[yY.dot=46]="dot",yY[yY.doubleQuote=34]="doubleQuote",yY[yY.minus=45]="minus",yY[yY.openBrace=123]="openBrace",yY[yY.openBracket=91]="openBracket",yY[yY.plus=43]="plus",yY[yY.slash=47]="slash",yY[yY.formFeed=12]="formFeed",yY[yY.tab=9]="tab",(HF||(HF={})).DEFAULT={allowTrailingComma:!1},(vY=WF||(WF={}))[vY.None=0]="None",vY[vY.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",vY[vY.UnexpectedEndOfString=2]="UnexpectedEndOfString",vY[vY.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",vY[vY.InvalidUnicode=4]="InvalidUnicode",vY[vY.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",vY[vY.InvalidCharacter=6]="InvalidCharacter",(wY=VF||(VF={}))[wY.OpenBraceToken=1]="OpenBraceToken",wY[wY.CloseBraceToken=2]="CloseBraceToken",wY[wY.OpenBracketToken=3]="OpenBracketToken",wY[wY.CloseBracketToken=4]="CloseBracketToken",wY[wY.CommaToken=5]="CommaToken",wY[wY.ColonToken=6]="ColonToken",wY[wY.NullKeyword=7]="NullKeyword",wY[wY.TrueKeyword=8]="TrueKeyword",wY[wY.FalseKeyword=9]="FalseKeyword",wY[wY.StringLiteral=10]="StringLiteral",wY[wY.NumericLiteral=11]="NumericLiteral",wY[wY.LineCommentTrivia=12]="LineCommentTrivia",wY[wY.BlockCommentTrivia=13]="BlockCommentTrivia",wY[wY.LineBreakTrivia=14]="LineBreakTrivia",wY[wY.Trivia=15]="Trivia",wY[wY.Unknown=16]="Unknown",wY[wY.EOF=17]="EOF";const n6=function(e,t=[],n=HF.DEFAULT){function r(e){Array.isArray(a)?a.push(e):null!==o&&(a[o]=e)}let o=null,a=[];const i=[];return function(e,t,n=HF.DEFAULT){function r(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>p.slice())):()=>!0}function a(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function i(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>p.slice())):()=>!0}function s(){for(;;){const e=u.scan();switch(u.getTokenError()){case 4:l(14);break;case 5:l(15);break;case 3:l(13);break;case 1:w||l(11);break;case 2:l(12);break;case 6:l(16)}switch(e){case 12:case 13:w?l(10):y();break;case 16:l(1);break;case 15:case 14:break;default:return e}}}function l(e,t=[],n=[]){if(v(e),t.length+n.length>0){let e=u.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){s();break}if(-1!==n.indexOf(e))break;e=s()}}}function c(e){const t=u.getTokenValue();return e?b(t):(m(t),p.push(t)),s(),!0}const u=function(e,t=!1){function n(t,n){let r=0,o=0;for(;r=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}i++,r++}return r=a)return l=a,c=17;let t=e.charCodeAt(i);if(of(t)){do{i++,s+=String.fromCharCode(t),t=e.charCodeAt(i)}while(of(t));return c=15}if(af(t))return i++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(i)&&(i++,s+="\n"),u++,d=i,c=14;switch(t){case 123:return i++,c=1;case 125:return i++,c=2;case 91:return i++,c=3;case 93:return i++,c=4;case 58:return i++,c=6;case 44:return i++,c=5;case 34:return i++,s=function(){let t="",r=i;for(;;){if(i>=a){t+=e.substring(r,i),f=2;break}const o=e.charCodeAt(i);if(34===o){t+=e.substring(r,i),i++;break}if(92!==o){if(o>=0&&o<=31){if(af(o)){t+=e.substring(r,i),f=2;break}f=6}i++}else{if(t+=e.substring(r,i),i++,i>=a){f=2;break}switch(e.charCodeAt(i++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=n(4,!0);e>=0?t+=String.fromCharCode(e):f=4;break;default:f=5}r=i}}return t}(),c=10;case 47:const r=i-1;if(47===e.charCodeAt(i+1)){for(i+=2;ii,scan:t?function(){let e;do{e=r()}while(e>=12&&e<=15);return e}:r,getToken:()=>c,getTokenValue:()=>s,getTokenOffset:()=>l,getTokenLength:()=>i-l,getTokenStartLine:()=>p,getTokenStartCharacter:()=>l-m,getTokenError:()=>f}}(e,!1),p=[],d=o(t.onObjectBegin),m=i(t.onObjectProperty),f=r(t.onObjectEnd),g=o(t.onArrayBegin),h=r(t.onArrayEnd),b=i(t.onLiteralValue),_=a(t.onSeparator),y=r(t.onComment),v=a(t.onError),w=n&&n.disallowComments,k=n&&n.allowTrailingComma;s(),17===u.getToken()?n.allowEmptyContent||l(4,[],[]):function e(){switch(u.getToken()){case 3:return function(){g(),s();let t=!0,n=!1;for(;4!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(n||l(4,[],[]),_(","),s(),4===u.getToken()&&k)break}else n&&l(6,[],[]);t?(p.push(0),t=!1):p[p.length-1]++,e()||l(4,[],[4,5]),n=!0}return h(),t||p.pop(),4!==u.getToken()?l(8,[4],[]):s(),!0}();case 1:return function(){d(),s();let t=!1;for(;2!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(t||l(4,[],[]),_(","),s(),2===u.getToken()&&k)break}else t&&l(6,[],[]);(10!==u.getToken()?(l(3,[],[2,5]),!1):(c(!1),6===u.getToken()?(_(":"),s(),e()||l(4,[],[2,5])):l(5,[],[2,5]),p.pop(),!0))||l(4,[],[2,5]),t=!0}return f(),2!==u.getToken()?l(7,[2],[]):s(),!0}();case 10:return c(!0);default:return function(){switch(u.getToken()){case 11:const e=u.getTokenValue();let t=Number(e);isNaN(t)&&(l(2),t=0),b(t);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return s(),!0}()}}()?17!==u.getToken()&&l(9,[],[]):l(4,[],[])}(e,{onObjectBegin:()=>{const e={};r(e),i.push(a),a=e,o=null},onObjectProperty:e=>{o=e},onObjectEnd:()=>{a=i.pop()},onArrayBegin:()=>{const e=[];r(e),i.push(a),a=e,o=null},onArrayEnd:()=>{a=i.pop()},onLiteralValue:r,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),a[0]};(kY=GF||(GF={}))[kY.InvalidSymbol=1]="InvalidSymbol",kY[kY.InvalidNumberFormat=2]="InvalidNumberFormat",kY[kY.PropertyNameExpected=3]="PropertyNameExpected",kY[kY.ValueExpected=4]="ValueExpected",kY[kY.ColonExpected=5]="ColonExpected",kY[kY.CommaExpected=6]="CommaExpected",kY[kY.CloseBraceExpected=7]="CloseBraceExpected",kY[kY.CloseBracketExpected=8]="CloseBracketExpected",kY[kY.EndOfFileExpected=9]="EndOfFileExpected",kY[kY.InvalidCommentToken=10]="InvalidCommentToken",kY[kY.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",kY[kY.UnexpectedEndOfString=12]="UnexpectedEndOfString",kY[kY.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",kY[kY.InvalidUnicode=14]="InvalidUnicode",kY[kY.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",kY[kY.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process;let r6="";const o6="dist/";let a6=null;const i6={light:"#333333",dark:"#bbbbbb"},s6={light:"#fffffe",dark:"#1e1e1e"};class l6{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await cf(e)}(e6.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}const c6={pre:({className:e,style:t,children:n})=>`
${n}
`,code:({children:e})=>`${e}`,line:({className:e,children:t})=>`${t}`,token:({style:e,children:t})=>`${t}`},u6={"&":"&","<":"<",">":">",'"':""","'":"'"};class p6 extends UF.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=e6.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await uf(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=pf(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){var t;const n={embeddedLanguages:null==(t=e.embeddedLangs)?void 0:t.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=r,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=r}))}async loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.values());for(const n of t)this._resolver.addLanguage(n);for(const n of t)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}r6=(CY="https://cdn.jsdelivr.net/npm/shiki-es@0.2.0/dist/assets/").endsWith("/")?CY:CY+"/";const d6=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}};return t=e(r,o,a),a};qF={exports:{}},XF={},KF={exports:{}},YF={},QF=q_,JF="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ZF=QF.useState,eM=QF.useEffect,tM=QF.useLayoutEffect,nM=QF.useDebugValue,rM="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=ZF({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return tM((function(){o.value=n,o.getSnapshot=t,yf(o)&&a({inst:o})}),[e,n,t]),eM((function(){return yf(o)&&a({inst:o}),e((function(){yf(o)&&a({inst:o})}))}),[e]),nM(n),n},YF.useSyncExternalStore=void 0!==QF.useSyncExternalStore?QF.useSyncExternalStore:rM,KF.exports=YF,oM=q_,aM="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},iM=KF.exports.useSyncExternalStore,sM=oM.useRef,lM=oM.useEffect,cM=oM.useMemo,uM=oM.useDebugValue,XF.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a,i,s=sM(null);return null===s.current?s.current=a={hasValue:!1,value:null}:a=s.current,s=cM((function(){function e(e){var t,n;return l?(t=s,aM(i,e)?t:(n=r(e),void 0!==o&&o(t,n)?t:(i=e,s=n))):(l=!0,i=e,e=r(e),s=void 0!==o&&a.hasValue&&o(t=a.value,e)?t:e)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]),i=iM(e,s[0],s[1]),lM((function(){a.hasValue=!0,a.value=i}),[i]),uM(i),i},qF.exports=XF;const m6=t(qF.exports),{useSyncExternalStoreWithSelector:f6}=m6,g6=e=>{const t="function"==typeof e?(e=>e?d6(e):d6)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=f6(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return q_.useDebugValue(r),r}(t,e,n);return Object.assign(n,t),n},h6=e=>e?g6(e):g6;pM={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},dM=function(e){var t=e?"dark":"light",n=pM.gray[t][11],r=pM.gray[t][7],o=e?pM.red[t][9]:pM.volcano[t][9],a=e?pM.gold[t][9]:pM.orange[t][9],i=e?pM.lime[t][9]:pM.green[t][9],s=e?pM.blue[t][9]:pM.geekblue[t][9];return{colors:{"editor.foreground":pM.gray[t][10]},name:t,semanticHighlighting:!0,semanticTokenColors:{"annotation:dart":{foreground:i},enumMember:{foreground:s},macro:{foreground:i},"parameter.label:dart":{foreground:r},"property:dart":{foreground:i},tomlArrayKey:{foreground:o},"variable.constant":{foreground:i},"variable.defaultLibrary":{foreground:o},"variable:dart":{foreground:i}},tokenColors:[{scope:"meta.embedded",settings:{foreground:r}},{name:"unison punctuation",scope:"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison",settings:{foreground:n}},{name:"haskell variable generic-type",scope:"variable.other.generic-type.haskell",settings:{foreground:s}},{name:"haskell storage type",scope:"storage.type.haskell",settings:{foreground:i}},{name:"support.variable.magic.python",scope:"support.variable.magic.python",settings:{foreground:n}},{name:"punctuation.separator.parameters.python",scope:"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python",settings:{foreground:r}},{name:"variable.parameter.function.language.special.self.python",scope:"variable.parameter.function.language.special.self.python",settings:{foreground:o}},{name:"variable.parameter.function.language.special.cls.python",scope:"variable.parameter.function.language.special.cls.python",settings:{foreground:o}},{name:"storage.modifier.lifetime.rust",scope:"storage.modifier.lifetime.rust",settings:{foreground:r}},{name:"support.function.std.rust",scope:"support.function.std.rust",settings:{foreground:a}},{name:"entity.name.lifetime.rust",scope:"entity.name.lifetime.rust",settings:{foreground:o}},{name:"variable.language.rust",scope:"variable.language.rust",settings:{foreground:n}},{name:"support.constant.edge",scope:"support.constant.edge",settings:{foreground:s}},{name:"regexp constant character-class",scope:"constant.other.character-class.regexp",settings:{foreground:n}},{name:"keyword.operator",scope:["keyword.operator.word"],settings:{foreground:s}},{name:"regexp operator.quantifier",scope:"keyword.operator.quantifier.regexp",settings:{foreground:i}},{name:"Text",scope:"variable.parameter.function",settings:{foreground:r}},{name:"Comment Markup Link",scope:"comment markup.link",settings:{foreground:r}},{name:"markup diff",scope:"markup.changed.diff",settings:{foreground:o}},{name:"diff",scope:"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff",settings:{foreground:a}},{name:"inserted.diff",scope:"markup.inserted.diff",settings:{foreground:i}},{name:"deleted.diff",scope:"markup.deleted.diff",settings:{foreground:n}},{name:"c++ function",scope:"meta.function.c,meta.function.cpp",settings:{foreground:n}},{name:"c++ block",scope:"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c",settings:{foreground:r}},{name:"js/ts punctuation separator key-value",scope:"punctuation.separator.key-value",settings:{foreground:r}},{name:"js/ts import keyword",scope:"keyword.operator.expression.import",settings:{foreground:a}},{name:"math js/ts",scope:"support.constant.math",settings:{foreground:o}},{name:"math property js/ts",scope:"support.constant.property.math",settings:{foreground:i}},{name:"js/ts variable.other.constant",scope:"variable.other.constant",settings:{foreground:o}},{name:"java type",scope:["storage.type.annotation.java","storage.type.object.array.java"],settings:{foreground:o}},{name:"java source",scope:"source.java",settings:{foreground:n}},{name:"java modifier.import",scope:"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java",settings:{foreground:r}},{name:"java modifier.import",scope:"meta.method.java",settings:{foreground:a}},{name:"java modifier.import",scope:"storage.modifier.import.java,storage.type.java,storage.type.generic.java",settings:{foreground:o}},{name:"java instanceof",scope:"keyword.operator.instanceof.java",settings:{foreground:s}},{name:"java variable.name",scope:"meta.definition.variable.name.java",settings:{foreground:n}},{name:"operator logical",scope:"keyword.operator.logical",settings:{foreground:s}},{name:"operator bitwise",scope:"keyword.operator.bitwise",settings:{foreground:s}},{name:"operator channel",scope:"keyword.operator.channel",settings:{foreground:s}},{name:"support.constant.property-value.scss",scope:"support.constant.property-value.scss,support.constant.property-value.css",settings:{foreground:i}},{name:"CSS/SCSS/LESS Operators",scope:"keyword.operator.css,keyword.operator.scss,keyword.operator.less",settings:{foreground:s}},{name:"css color standard name",scope:"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss",settings:{foreground:i}},{name:"css comma",scope:"punctuation.separator.list.comma.css",settings:{foreground:r}},{name:"css attribute-name.id",scope:"support.constant.color.w3c-standard-color-name.css",settings:{foreground:i}},{name:"css property-name",scope:"support.type.vendored.property-name.css",settings:{foreground:s}},{name:"js/ts module",scope:"support.module.node,support.type.object.module,support.module.node",settings:{foreground:o}},{name:"entity.name.type.module",scope:"entity.name.type.module",settings:{foreground:o}},{name:"js variable readwrite",scope:"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node",settings:{foreground:n}},{name:"js/ts json",scope:"support.constant.json",settings:{foreground:i}},{name:"js/ts Keyword",scope:["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],settings:{foreground:s}},{name:"js/ts console",scope:"support.type.object.console",settings:{foreground:n}},{name:"js/ts support.variable.property.process",scope:"support.variable.property.process",settings:{foreground:i}},{name:"js console function",scope:"entity.name.function,support.function.console",settings:{foreground:a}},{name:"keyword.operator.misc.rust",scope:"keyword.operator.misc.rust",settings:{foreground:r}},{name:"keyword.operator.sigil.rust",scope:"keyword.operator.sigil.rust",settings:{foreground:s}},{name:"operator",scope:"keyword.operator.delete",settings:{foreground:s}},{name:"js dom",scope:"support.type.object.dom",settings:{foreground:s}},{name:"js dom variable",scope:"support.variable.dom,support.variable.property.dom",settings:{foreground:n}},{name:"keyword.operator",scope:"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational",settings:{foreground:s}},{name:"C operator assignment",scope:"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp",settings:{foreground:s}},{name:"Punctuation",scope:"punctuation.separator.delimiter",settings:{foreground:r}},{name:"Other punctuation .c",scope:"punctuation.separator.c,punctuation.separator.cpp",settings:{foreground:s}},{name:"C type posix-reserved",scope:"support.type.posix-reserved.c,support.type.posix-reserved.cpp",settings:{foreground:s}},{name:"keyword.operator.sizeof.c",scope:"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp",settings:{foreground:s}},{name:"python parameter",scope:"variable.parameter.function.language.python",settings:{foreground:i}},{name:"python type",scope:"support.type.python",settings:{foreground:s}},{name:"python logical",scope:"keyword.operator.logical.python",settings:{foreground:s}},{name:"pyCs",scope:"variable.parameter.function.python",settings:{foreground:i}},{name:"python block",scope:"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python",settings:{foreground:r}},{name:"python function-call.generic",scope:"meta.function-call.generic.python",settings:{foreground:a}},{name:"python placeholder reset to normal string",scope:"constant.character.format.placeholder.other.python",settings:{foreground:i}},{name:"Operators",scope:"keyword.operator",settings:{foreground:r}},{name:"Compound Assignment Operators",scope:"keyword.operator.assignment.compound",settings:{foreground:s}},{name:"Compound Assignment Operators js/ts",scope:"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts",settings:{foreground:s}},{name:"Keywords",scope:"keyword",settings:{foreground:s}},{name:"Namespaces",scope:"entity.name.namespace",settings:{foreground:o}},{name:"Variables",scope:"variable",settings:{foreground:n}},{name:"Variables",scope:"variable.c",settings:{foreground:r}},{name:"Language variables",scope:"variable.language",settings:{foreground:o}},{name:"Java Variables",scope:"token.variable.parameter.java",settings:{foreground:r}},{name:"Java Imports",scope:"import.storage.java",settings:{foreground:o}},{name:"Packages",scope:"token.package.keyword",settings:{foreground:s}},{name:"Packages",scope:"token.package",settings:{foreground:r}},{name:"Functions",scope:["entity.name.function","meta.require","support.function.any-method","variable.function"],settings:{foreground:a}},{name:"Classes",scope:"entity.name.type.namespace",settings:{foreground:o}},{name:"Classes",scope:"support.class, entity.name.type.class",settings:{foreground:o}},{name:"Class name",scope:"entity.name.class.identifier.namespace.type",settings:{foreground:o}},{name:"Class name",scope:["entity.name.class","variable.other.class.js","variable.other.class.ts"],settings:{foreground:o}},{name:"Class name php",scope:"variable.other.class.php",settings:{foreground:n}},{name:"Type Name",scope:"entity.name.type",settings:{foreground:o}},{name:"Keyword Control",scope:"keyword.control",settings:{foreground:s}},{name:"Control Elements",scope:"control.elements, keyword.operator.less",settings:{foreground:i}},{name:"Methods",scope:"keyword.other.special-method",settings:{foreground:a}},{name:"Storage",scope:"storage",settings:{foreground:s}},{name:"Storage JS TS",scope:"token.storage",settings:{foreground:s}},{name:"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void",scope:"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void",settings:{foreground:s}},{name:"Java Storage",scope:"token.storage.type.java",settings:{foreground:o}},{name:"Support",scope:"support.function",settings:{foreground:s}},{name:"Support type",scope:"support.type.property-name",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] toml support",scope:"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml",settings:{foreground:n}},{name:"Support type",scope:"support.constant.property-value",settings:{foreground:r}},{name:"Support type",scope:"support.constant.font-name",settings:{foreground:i}},{name:"Meta tag",scope:"meta.tag",settings:{foreground:r}},{name:"Strings",scope:"string",settings:{foreground:i}},{name:"Constant other symbol",scope:"constant.other.symbol",settings:{foreground:s}},{name:"Integers",scope:"constant.numeric",settings:{foreground:i}},{name:"Constants",scope:"constant",settings:{foreground:i}},{name:"Constants",scope:"punctuation.definition.constant",settings:{foreground:i}},{name:"Tags",scope:"entity.name.tag",settings:{foreground:n}},{name:"Attributes",scope:"entity.other.attribute-name",settings:{foreground:i}},{name:"Attribute IDs",scope:"entity.other.attribute-name.id",settings:{foreground:a}},{name:"Attribute class",scope:"entity.other.attribute-name.class.css",settings:{foreground:i}},{name:"Selector",scope:"meta.selector",settings:{foreground:s}},{name:"Headings",scope:"markup.heading",settings:{foreground:n}},{name:"Headings",scope:"markup.heading punctuation.definition.heading, entity.name.section",settings:{foreground:a}},{name:"Units",scope:"keyword.other.unit",settings:{foreground:n}},{name:"Bold",scope:"markup.bold,todo.bold",settings:{foreground:i}},{name:"Bold",scope:"punctuation.definition.bold",settings:{foreground:o}},{name:"markup Italic",scope:"markup.italic, punctuation.definition.italic,todo.emphasis",settings:{foreground:s}},{name:"emphasis md",scope:"emphasis md",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Markdown headings",scope:"entity.name.section.markdown",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown heading Punctuation Definition",scope:"punctuation.definition.heading.markdown",settings:{foreground:n}},{name:"punctuation.definition.list.begin.markdown",scope:"punctuation.definition.list.begin.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown heading setext",scope:"markup.heading.setext",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold",scope:"punctuation.definition.bold.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.string.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw punctuation",scope:"punctuation.definition.raw.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown List Punctuation Definition",scope:"punctuation.definition.list.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition String",scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],settings:{foreground:n}},{name:"beginning.punctuation.definition.list.markdown",scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Link",scope:"punctuation.definition.metadata.markdown",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown Underline Link/Image",scope:"markup.underline.link.markdown,markup.underline.link.image.markdown",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Markdown Link Title/Description",scope:"string.other.link.title.markdown,string.other.link.description.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw",scope:"markup.raw.monospace.asciidoc",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition",scope:"punctuation.definition.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition",scope:"markup.list.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc underline link",scope:"markup.link.asciidoc,markup.other.url.asciidoc",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Asciidoc link name",scope:"string.unquoted.asciidoc,markup.other.url.asciidoc",settings:{foreground:a}},{name:"Regular Expressions",scope:"string.regexp",settings:{foreground:s}},{name:"Embedded",scope:"punctuation.section.embedded, variable.interpolation",settings:{foreground:n}},{name:"Embedded",scope:"punctuation.section.embedded.begin,punctuation.section.embedded.end",settings:{foreground:s}},{name:"illegal",scope:"invalid.illegal",settings:{foreground:n}},{name:"illegal",scope:"invalid.illegal.bad-ampersand.html",settings:{foreground:r}},{scope:"invalid.illegal.unrecognized-tag.html",settings:{foreground:n}},{name:"Broken",scope:"invalid.broken",settings:{foreground:n}},{name:"Deprecated",scope:"invalid.deprecated",settings:{foreground:n}},{name:"html Deprecated",scope:"invalid.deprecated.entity.other.attribute-name.html",settings:{foreground:i}},{name:"Unimplemented",scope:"invalid.unimplemented",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json",scope:"source.json meta.structure.dictionary.json > string.quoted.json",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String",scope:"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation",scope:"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation",settings:{foreground:i}},{name:"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json",scope:"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] JSON Property Name",scope:"support.type.property-name.json",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] JSON Punctuation for Property Name",scope:"support.type.property-name.json punctuation",settings:{foreground:n}},{name:"laravel blade tag",scope:"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade",settings:{foreground:s}},{name:"laravel blade @",scope:"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade",settings:{foreground:s}},{name:"use statement for other classes",scope:"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php",settings:{foreground:o}},{name:"error suppression",scope:"keyword.operator.error-control.php",settings:{foreground:s}},{name:"php instanceof",scope:"keyword.operator.type.php",settings:{foreground:s}},{name:"style double quoted array index normal begin",scope:"punctuation.section.array.begin.php",settings:{foreground:r}},{name:"style double quoted array index normal end",scope:"punctuation.section.array.end.php",settings:{foreground:r}},{name:"php illegal.non-undefined-typehinted",scope:"invalid.illegal.non-undefined-typehinted.php",settings:{foreground:o}},{name:"php types",scope:"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php",settings:{foreground:o}},{name:"php call-function",scope:"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php",settings:{foreground:a}},{name:"php function-resets",scope:"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php",settings:{foreground:r}},{name:"support php constants",scope:"support.constant.core.rust",settings:{foreground:i}},{name:"support php constants",scope:"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php",settings:{foreground:i}},{name:"php goto",scope:"entity.name.goto-label.php,support.other.php",settings:{foreground:a}},{name:"php logical/bitwise operator",scope:"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php",settings:{foreground:s}},{name:"php regexp operator",scope:"keyword.operator.regexp.php",settings:{foreground:s}},{name:"php comparison",scope:"keyword.operator.comparison.php",settings:{foreground:s}},{name:"php heredoc/nowdoc",scope:"keyword.operator.heredoc.php,keyword.operator.nowdoc.php",settings:{foreground:s}},{name:"python function decorator @",scope:"meta.function.decorator.python",settings:{foreground:a}},{name:"python function support",scope:"support.token.decorator.python,meta.function.decorator.identifier.python",settings:{foreground:s}},{name:"parameter function js/ts",scope:"function.parameter",settings:{foreground:r}},{name:"brace function",scope:"function.brace",settings:{foreground:r}},{name:"parameter function ruby cs",scope:"function.parameter.ruby, function.parameter.cs",settings:{foreground:r}},{name:"constant.language.symbol.ruby",scope:"constant.language.symbol.ruby",settings:{foreground:s}},{name:"constant.language.symbol.hashkey.ruby",scope:"constant.language.symbol.hashkey.ruby",settings:{foreground:s}},{name:"rgb-value",scope:"rgb-value",settings:{foreground:s}},{name:"rgb value",scope:"inline-color-decoration rgb-value",settings:{foreground:i}},{name:"rgb value less",scope:"less rgb-value",settings:{foreground:i}},{name:"sass selector",scope:"selector.sass",settings:{foreground:n}},{name:"ts primitive/builtin types",scope:"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx",settings:{foreground:o}},{name:"block scope",scope:"block.scope.end,block.scope.begin",settings:{foreground:r}},{name:"cs storage type",scope:"storage.type.cs",settings:{foreground:o}},{name:"cs local variable",scope:"entity.name.variable.local.cs",settings:{foreground:n}},{scope:"token.info-token",settings:{foreground:a}},{scope:"token.warn-token",settings:{foreground:i}},{scope:"token.error-token",settings:{foreground:o}},{scope:"token.debug-token",settings:{foreground:s}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:s}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:r}},{name:"Import module JS",scope:["keyword.operator.module"],settings:{foreground:s}},{name:"js Flowtype",scope:["support.type.type.flowtype"],settings:{foreground:a}},{name:"js Flow",scope:["support.type.primitive"],settings:{foreground:o}},{name:"js class prop",scope:["meta.property.object"],settings:{foreground:n}},{name:"js func parameter",scope:["variable.parameter.function.js"],settings:{foreground:n}},{name:"js template literals begin",scope:["keyword.other.template.begin"],settings:{foreground:i}},{name:"js template literals end",scope:["keyword.other.template.end"],settings:{foreground:i}},{name:"js template literals variable braces begin",scope:["keyword.other.substitution.begin"],settings:{foreground:i}},{name:"js template literals variable braces end",scope:["keyword.other.substitution.end"],settings:{foreground:i}},{name:"js operator.assignment",scope:["keyword.operator.assignment"],settings:{foreground:s}},{name:"go operator",scope:["keyword.operator.assignment.go"],settings:{foreground:o}},{name:"go operator",scope:["keyword.operator.arithmetic.go","keyword.operator.address.go"],settings:{foreground:s}},{name:"Go package name",scope:["entity.name.package.go"],settings:{foreground:o}},{name:"elm prelude",scope:["support.type.prelude.elm"],settings:{foreground:s}},{name:"elm constant",scope:["support.constant.elm"],settings:{foreground:i}},{name:"template literal",scope:["punctuation.quasi.element"],settings:{foreground:s}},{name:"html/pug (jade) escaped characters and entities",scope:["constant.character.entity"],settings:{foreground:n}},{name:"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour",scope:["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],settings:{foreground:s}},{name:"Clojure globals",scope:["entity.global.clojure"],settings:{foreground:o}},{name:"Clojure symbols",scope:["meta.symbol.clojure"],settings:{foreground:n}},{name:"Clojure constants",scope:["constant.keyword.clojure"],settings:{foreground:s}},{name:"CoffeeScript Function Argument",scope:["meta.arguments.coffee","variable.parameter.function.coffee"],settings:{foreground:n}},{name:"Ini Default Text",scope:["source.ini"],settings:{foreground:i}},{name:"Makefile prerequisities",scope:["meta.scope.prerequisites.makefile"],settings:{foreground:n}},{name:"Makefile text colour",scope:["source.makefile"],settings:{foreground:o}},{name:"Groovy import names",scope:["storage.modifier.import.groovy"],settings:{foreground:o}},{name:"Groovy Methods",scope:["meta.method.groovy"],settings:{foreground:a}},{name:"Groovy Variables",scope:["meta.definition.variable.name.groovy"],settings:{foreground:n}},{name:"Groovy Inheritance",scope:["meta.definition.class.inherited.classes.groovy"],settings:{foreground:i}},{name:"HLSL Semantic",scope:["support.variable.semantic.hlsl"],settings:{foreground:o}},{name:"HLSL Types",scope:["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],settings:{foreground:s}},{name:"SQL Variables",scope:["text.variable","text.bracketed"],settings:{foreground:n}},{name:"types",scope:["support.type.swift","support.type.vb.asp"],settings:{foreground:o}},{name:"heading 1, keyword",scope:["entity.name.function.xi"],settings:{foreground:o}},{name:"heading 2, callable",scope:["entity.name.class.xi"],settings:{foreground:s}},{name:"heading 3, property",scope:["constant.character.character-class.regexp.xi"],settings:{foreground:n}},{name:"heading 4, type, class, interface",scope:["constant.regexp.xi"],settings:{foreground:s}},{name:"heading 5, enums, preprocessor, constant, decorator",scope:["keyword.control.xi"],settings:{foreground:s}},{name:"heading 6, number",scope:["invalid.xi"],settings:{foreground:r}},{name:"string",scope:["beginning.punctuation.definition.quote.markdown.xi"],settings:{foreground:i}},{name:"comments",scope:["beginning.punctuation.definition.list.markdown.xi"],settings:{foreground:r}},{name:"link",scope:["constant.character.xi"],settings:{foreground:a}},{name:"accent",scope:["accent.xi"],settings:{foreground:a}},{name:"wikiword",scope:["wikiword.xi"],settings:{foreground:i}},{name:"language operators like '+', '-' etc",scope:["constant.other.color.rgb-value.xi"],settings:{foreground:n}},{name:"elements to dim",scope:["punctuation.definition.tag.xi"],settings:{foreground:r}},{name:"C++/C#",scope:["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],settings:{foreground:o}},{name:"Markdown underscore-style headers",scope:["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],settings:{foreground:n}},{name:"meta.brace.square",scope:[" meta.brace.square"],settings:{foreground:r}},{name:"Comments",scope:"comment, punctuation.definition.comment",settings:{fontStyle:"italic",foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Quote",scope:"markup.quote.markdown",settings:{foreground:r}},{name:"punctuation.definition.block.sequence.item.yaml",scope:"punctuation.definition.block.sequence.item.yaml",settings:{foreground:r}},{scope:["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],settings:{foreground:s}},{scope:["entity.name.variable.parameter.cs"],settings:{foreground:o}},{scope:["entity.name.variable.field.cs"],settings:{foreground:n}},{name:"Deleted",scope:"markup.deleted",settings:{foreground:n}},{name:"Inserted",scope:"markup.inserted",settings:{foreground:i}},{name:"Underline",scope:"markup.underline",settings:{fontStyle:"underline"}},{name:"punctuation.section.embedded.begin.php",scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:o}},{name:"support.other.namespace.php",scope:["support.other.namespace.php"],settings:{foreground:r}},{name:"variable.other.object",scope:["variable.other.object"],settings:{foreground:o}},{name:"variable.other.constant.property",scope:["variable.other.constant.property"],settings:{foreground:n}},{name:"entity.other.inherited-class",scope:["entity.other.inherited-class"],settings:{foreground:o}},{name:"c variable readwrite",scope:"variable.other.readwrite.c",settings:{foreground:n}},{name:"php scope",scope:"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php",settings:{foreground:r}},{name:"Assembly",scope:["constant.numeric.decimal.asm.x86_64"],settings:{foreground:s}},{scope:["support.other.parenthesis.regexp"],settings:{foreground:i}},{scope:["constant.character.escape"],settings:{foreground:s}},{scope:["string.regexp"],settings:{foreground:n}},{scope:["log.info"],settings:{foreground:i}},{scope:["log.warning"],settings:{foreground:o}},{scope:["log.error"],settings:{foreground:n}},{name:"js/ts italic",scope:"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super",settings:{fontStyle:"italic"}},{name:"comment",scope:"comment.line.double-slash,comment.block.documentation",settings:{fontStyle:"italic"}},{name:"Python Keyword Control",scope:"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python",settings:{fontStyle:"italic"}},{name:"markup.italic.markdown",scope:"markup.italic.markdown",settings:{fontStyle:"italic"}}],type:t}},mM=["javascript","js","jsx","json","markdown","md","less","css","typescript","ts","tsx","diff","bash"],fM=h6((function(e,t){return{codeToHtml:function(e,n,r){var o=t().highlighter;if(!o)return"";try{return null==o?void 0:o.codeToHtml(e,{lang:n,theme:r?"dark":"light"})}catch(a){return e}},highlighter:void 0,initHighlighter:(n=gc(Z8.mark((function n(r){return Z8.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t().highlighter){n.next=5;break}return n.next=3,_f({langs:(null==r?void 0:r.langs)||mM,themes:(null==r?void 0:r.themes)||[dM(!0),dM(!1)]});case 3:e({highlighter:n.sent});case 5:case"end":return n.stop()}}),n)}))),function(e){return n.apply(this,arguments)})};var n})),_M=Pj((function(e){var t=e.css,n=e.token,r=e.cx,o=e.stylish,a="".concat(e.prefixCls,"-highlighter");return{loading:r(o.blur,t(gM||(gM=Ea(["\n position: absolute;\n z-index: 10;\n top: 0;\n right: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n height: 34px;\n padding: 0 8px;\n\n font-family: ",";\n color: ",";\n\n border-radius: ",";\n "])),n.fontFamilyCode,n.colorTextTertiary,n.borderRadius)),prism:t(hM||(hM=Ea(["\n pre {\n overflow: auto;\n font-family: "," !important;\n }\n "])),n.fontFamilyCode),shiki:r("".concat(a,"-shiki"),t(bM||(bM=Ea(["\n .shiki {\n overflow-x: auto;\n background: none !important;\n }\n "]))))}}));const b6=q_.memo((function(e){var t=e.children,n=e.language,r=e.options,o=_M().styles,a=sj().isDarkMode,i=Vi(fM((function(e){return[e.codeToHtml,!e.highlighter]}),ka),2),s=i[0],l=i[1];return q_.useEffect((function(){fM.getState().initHighlighter(r)}),[r]),ey.jsxs(ey.Fragment,{children:[ey.jsx("div",l?{className:o.shiki,children:ey.jsx("pre",{children:ey.jsx("code",{children:t})})}:{className:o.shiki,dangerouslySetInnerHTML:{__html:s(t,n,a)||""}}),l&&ey.jsxs(Q8,{className:o.loading,gap:8,horizontal:!0,children:[ey.jsx(M8,{icon:jQ,spin:!0}),"Highlighting..."]})]})}));yM=function(){return yM=Object.assign||function(e){var t,n,r,o;for(n=1,r=arguments.length;n-1},ZM=function(e,t){var n=this.__data__,r=KM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},xf.prototype.clear=function(){this.__data__=[],this.size=0},xf.prototype.delete=YM,xf.prototype.get=QM,xf.prototype.has=JM,xf.prototype.set=ZM,tL=eL=xf,nL=function(){this.__data__=new tL,this.size=0},rL=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},oL=function(e){return this.__data__.get(e)},aL=function(e){return this.__data__.has(e)},iL=FM,sL=kM,lL=function(e){if(!sL(e))return!1;var t=iL(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},DY=/[^.]+$/.exec((cL=xM["__core-js_shared__"])&&cL.keys&&cL.keys.IE_PROTO||""),uL=DY?"Symbol(src)_1."+DY:"",pL=Function.prototype.toString,mL=lL,fL=function(e){return!!uL&&uL in e},gL=kM,hL=dL=function(e){if(null!=e){try{return pL.call(e)}catch(bY){}try{return e+""}catch(bY){}}return""},bL=/[\\^$.*+?()[\]{}|]/g,_L=/^\[object .+?Constructor\]$/,yL=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(bL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vL=function(e,t){return null==e?void 0:e[t]},wL=function(e){return!(!gL(e)||fL(e))&&(mL(e)?yL:_L).test(hL(e))},kL=vL,CL=function(e,t){var n=kL(e,t);return wL(n)?n:void 0},DL=CL(xM,"Map"),xL=CL(Object,"create"),EL=SL=xL,OL=SL,PL=Object.prototype.hasOwnProperty,IL=SL,NL=Object.prototype.hasOwnProperty,AL=SL,RL=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},TL=function(e){var t,n=this.__data__;return OL?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:PL.call(n,e)?n[e]:void 0},jL=function(e){var t=this.__data__;return IL?void 0!==t[e]:NL.call(t,e)},$L=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=AL&&void 0===t?"__lodash_hash_undefined__":t,this},Sf.prototype.clear=function(){this.__data__=EL?EL(null):{},this.size=0},Sf.prototype.delete=RL,Sf.prototype.get=TL,Sf.prototype.has=jL,Sf.prototype.set=$L,FL=Sf,ML=eL,LL=DL,UL=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},BL=zL=function(e,t){var n=e.__data__;return UL(t)?n["string"==typeof t?"string":"hash"]:n.map},HL=zL,WL=zL,VL=zL,GL=function(e){var t=BL(this,e).delete(e);return this.size-=t?1:0,t},qL=function(e){return HL(this,e).get(e)},XL=function(e){return WL(this,e).has(e)},KL=function(e,t){var n=VL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ef.prototype.clear=function(){this.size=0,this.__data__={hash:new FL,map:new(LL||ML),string:new FL}},Ef.prototype.delete=GL,Ef.prototype.get=qL,Ef.prototype.has=XL,Ef.prototype.set=KL,QL=eL,JL=DL,ZL=YL=Ef,eU=eL,tU=rL,nU=oL,rU=aL,oU=function(e,t){var n,r=this.__data__;if(r instanceof QL){if(n=r.__data__,!JL||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ZL(n)}return r.set(e,t),this.size=r.size,this},Of.prototype.clear=nL,Of.prototype.delete=tU,Of.prototype.get=nU,Of.prototype.has=rU,Of.prototype.set=oU,aU=Of,iU=YL,sU=function(e){return this.__data__.has(e)},Pf.prototype.add=Pf.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Pf.prototype.has=sU,uU=lU=Pf,pU=function(e,t){for(var n=-1,r=null==e?0:e.length;++ng))return!1;if(i=a.get(e),s=a.get(t),i&&s)return i==t&&s==e;for(l=-1,c=!0,u=2&n?new uU:void 0,a.set(e,t),a.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},YU=MM,(QU={})["[object Float32Array]"]=QU["[object Float64Array]"]=QU["[object Int8Array]"]=QU["[object Int16Array]"]=QU["[object Int32Array]"]=QU["[object Uint8Array]"]=QU["[object Uint8ClampedArray]"]=QU["[object Uint16Array]"]=QU["[object Uint32Array]"]=!0,QU["[object Arguments]"]=QU["[object Array]"]=QU["[object ArrayBuffer]"]=QU["[object Boolean]"]=QU["[object DataView]"]=QU["[object Date]"]=QU["[object Error]"]=QU["[object Function]"]=QU["[object Map]"]=QU["[object Number]"]=QU["[object Object]"]=QU["[object RegExp]"]=QU["[object Set]"]=QU["[object String]"]=QU["[object WeakMap]"]=!1,JU=function(e){return YU(e)&&KU(e.length)&&!!QU[XU(e)]},ZU=function(e){return function(t){return e(t)}},function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&CM.process,a=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(bY){}}();e.exports=a}(ez={exports:{}},ez.exports),tz=JU,oz=(rz=(nz=ez.exports)&&nz.isTypedArray)?ZU(rz):tz,iz=RU,sz=zU,lz=DU,cz=WU,uz=GU,pz=az=oz,dz=Object.prototype.hasOwnProperty,mz=function(e,t){var n,r=lz(e),o=!r&&sz(e),a=!r&&!o&&cz(e),i=!r&&!o&&!a&&pz(e),s=r||o||a||i,l=s?iz(e.length,String):[],c=l.length;for(n in e)!t&&!dz.call(e,n)||s&&("length"==n||a&&("offset"==n||"parent"==n)||i&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||uz(n,c))||l.push(n);return l},fz=Object.prototype,gz=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fz)},WY=Object.keys,VY=Object,hz=gz,bz=function(e){return WY(VY(e))},_z=Object.prototype.hasOwnProperty,yz=function(e){var t,n;if(!hz(e))return bz(e);for(n in t=[],Object(e))_z.call(e,n)&&"constructor"!=n&&t.push(n);return t},vz=lL,wz=qU,kz=mz,Cz=yz,Dz=function(e){return null!=e&&wz(e.length)&&!vz(e)},xz=function(e){return Dz(e)?kz(e):Cz(e)},Sz=EU,Ez=AU,Oz=xz,Pz=function(e){return Sz(e,Oz,Ez)},Iz=Pz,Nz=Object.prototype.hasOwnProperty,Az=function(e,t,n,r,o,a){var i,s,l,c,u,p,d,m,f,g,h,b=1&n,_=Iz(e),y=_.length;if(y!=Iz(t).length&&!b)return!1;for(i=y;i--;)if(s=_[i],!(b?s in t:Nz.call(t,s)))return!1;if(l=a.get(e),c=a.get(t),l&&c)return l==t&&c==e;for(u=!0,a.set(e,t),a.set(t,e),p=b;++i div {\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),t.motionEaseOut,t.colorTextTertiary,t.colorFillTertiary,t.colorBorderSecondary,t.motionEaseOut,t.colorTextSecondary,t.colorFillSecondary,t.colorText,t.colorFill),o=Nj(zB||(zB=Ea(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:Aj(o,Nj(BB||(BB=Ea(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:Aj("".concat(iH,"-bottom-handle"),Nj(HB||(HB=Ea(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),n)),container:Aj(iH,Nj(WB||(WB=Ea(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),t.colorBorderSecondary,iH)),fixed:Nj(VB||(VB=Ea(["\n position: relative;\n "]))),fullscreen:Nj(GB||(GB=Ea(["\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n "]))),handlerIcon:Nj(qB||(qB=Ea(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),t.motionEaseOut),leftFloat:Aj(o,Nj(XB||(XB=Ea(["\n top: 0;\n bottom: 0;\n left: 0;\n height: 100%;\n "])))),leftHandle:Aj(Nj(KB||(KB=Ea(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),n),"".concat(iH,"-left-handle")),panel:Aj("".concat(iH,"-fixed"),Nj(YB||(YB=Ea(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),t.motionEaseOut)),rightFloat:Aj(o,Nj(QB||(QB=Ea(["\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n "])))),rightHandle:Aj(Nj(JB||(JB=Ea(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),n),"".concat(iH,"-right-handle")),toggleBottom:Aj("".concat(iH,"-toggle"),"".concat(iH,"-toggle-bottom"),r,Nj(ZB||(ZB=Ea(["\n bottom: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: 16px;\n margin-left: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,aH,40)),toggleLeft:Aj("".concat(iH,"-toggle"),"".concat(iH,"-toggle-left"),r,Nj(eH||(eH=Ea(["\n left: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,aH,aH,40)),toggleRight:Aj("".concat(iH,"-toggle"),"".concat(iH,"-toggle-right"),r,Nj(tH||(tH=Ea(["\n right: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,aH,aH,40)),toggleTop:Aj("".concat(iH,"-toggle"),"".concat(iH,"-toggle-top"),r,Nj(nH||(nH=Ea(["\n top: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: ","px;\n margin-left: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,aH,40,aH)),topFloat:Aj(o,Nj(rH||(rH=Ea(["\n top: 0;\n right: 0;\n left: 0;\n width: 100%;\n "])))),topHandle:Aj("".concat(iH,"-top-handle"),Nj(oH||(oH=Ea(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),n))}})),lH=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};const C6=q_.memo((function(e){var t,n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E=e.fullscreen,O=e.maxHeight,P=e.pin,I=void 0===P?"true":P,N=e.mode,A=void 0===N?"fixed":N,R=e.children,T=e.placement,j=void 0===T?"right":T,$=e.resize,F=e.style,M=e.size,L=e.defaultSize,U=e.minWidth,z=e.minHeight,B=e.maxWidth,H=e.onSizeChange,W=e.onSizeDragging,V=e.expandable,G=void 0===V||V,q=e.expand,X=e.defaultExpand,K=void 0===X||X,Y=e.onExpandChange,Q=e.className,J=e.showHandlerWhenUnexpand,Z=e.destroyOnClose,ee=e.hanlderStyle,te=e.classNames,ne=void 0===te?{}:te,re=q_.useRef(),oe=(b=re,y=(_={}).onEnter,v=_.onLeave,w=_.onChange,k=vf(function(e){var t,n,r,o;return void 0===e&&(e=!1),t=vf(function(e){var t,n;return void 0===e&&(e=!1),t=vf(q_.useState(e),2),n=t[1],[t[0],q_.useMemo((function(){var t=!e;return{toggle:function(){return n((function(n){return n===e?t:e}))},set:function(e){return n(e)},setLeft:function(){return n(e)},setRight:function(){return n(t)}}}),[])]}(!!e),2),r=(n=t[1]).toggle,o=n.set,[t[0],q_.useMemo((function(){return{toggle:r,set:function(e){return o(!!e)},setTrue:function(){return o(!0)},setFalse:function(){return o(!1)}}}),[])]}(!1),2),C=k[0],x=(D=k[1]).setTrue,S=D.setFalse,If("mouseenter",(function(){null==y||y(),x(),null==w||w(!0)}),{target:b}),If("mouseleave",(function(){null==v||v(),S(),null==w||w(!1)}),{target:b}),C),ae="top"===j||"bottom"===j,ie=sH(),se=ie.styles,le=ie.cx,ce=Vi(cm(K,{onChange:Y,value:q}),2),ue=ce[0],pe=ce[1];return q_.useEffect((function(){I||(oe&&!ue?pe(!0):!oe&&ue&&pe(!1))}),[I,oe,ue]),n=(t=Vi(q_.useState(!0),2))[0],r=t[1],a=(o=Vi(q_.useState(!1),2))[0],i=o[1],l=q_.useMemo((function(){return s?xa({},lH(j),se["".concat(lH(j),"Handle")]):{}}),[s=!1!==$&&ue,j]),c=Rf(xa({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},lH(j),!0),$),u=q_.useMemo((function(){return Rf(ae?{height:180,width:"100%"}:{height:"100%",width:280},L)}),[ae]),p=ue?{defaultSize:u,maxHeight:"number"==typeof O?Math.max(O,0):O,maxWidth:"number"==typeof B?Math.max(B,0):B,minHeight:"number"==typeof z?Math.max(z,0):z,minWidth:"number"==typeof U?Math.max(U,0):U,size:M}:ae?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},m=(d=q_.useMemo((function(){switch(j){case"top":return{Arrow:EQ,className:"Bottom"};case"bottom":return{Arrow:IQ,className:"Top"};case"right":return{Arrow:OQ,className:"Left"};case"left":return{Arrow:PQ,className:"Right"}}}),[se,j])).Arrow,g=ey.jsx(Q8,{className:le(se["toggle".concat(f=d.className)],ne.handle),style:{opacity:ue?I?void 0:0:J?1:0},children:ey.jsx(Q8,{onClick:function(){pe(!ue)},style:ee,children:ey.jsx("div",{className:se.handlerIcon,style:{transform:"rotate(".concat(ue?180:0,"deg)")},children:ey.jsx(m,{size:16,strokeWidth:1.5})})})}),h=ey.jsx(MB,Rf(Rf({},p),{},{className:le(se.panel,ne.content),enable:s?c:void 0,handleClasses:l,onResize:function(e,t,n,r){null==W||W(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){i(!0),r(!1)},onResizeStop:function(e,t,n,o){i(!1),r(!0),null==H||H(o,{height:n.style.height,width:n.style.width})},style:Rf({transition:a?"unset":void 0},F),children:R})),E?ey.jsx("div",{className:le(se.fullscreen,Q),children:R}):ey.jsxs("aside",{className:le(se.container,se["fixed"===A?"fixed":"".concat(j,"Float")],Q),ref:re,style:ue?xa({},"border".concat(f,"Width"),1):{},children:[G&&n&&g,Z?ue&&h:h]})}));mH=Pj((function(e){var t=e.css,n=e.token;return{body:t(cH||(cH=Ea(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(uH||(uH=Ea(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(pH||(pH=Ea(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n\n padding: 8px 16px;\n\n border-top: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(dH||(dH=Ea(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 16px;\n\n font-weight: 500;\n\n border-bottom: 1px solid ",";\n "])),n.colorBorderSecondary)}})),fH=["className","children"];const D6=q_.memo((function(e){var t=e.className,n=e.children,r=Sa(e,fH),o=mH();return ey.jsx("div",jf(jf({className:(0,o.cx)(o.styles.body,t)},r),{},{children:n}))}));gH=["className","children"];const x6=q_.memo((function(e){var t=e.className,n=e.children,r=Sa(e,gH),o=mH();return ey.jsx("div",Ff(Ff({className:(0,o.cx)(o.styles.container,t)},r),{},{children:n}))}));hH=["className","children"];const S6=q_.memo((function(e){var t=e.className,n=e.children,r=Sa(e,hH),o=mH();return ey.jsx("div",Lf(Lf({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));bH=["pin","setPin","className","setExpand","title","position"];const E6=q_.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,a=e.title,i=e.position,s=void 0===i?"left":i,l=Sa(e,bH),c=mH(),u=c.cx,p=c.styles,d=ey.jsx(z8,{icon:UQ,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),m=ey.jsx(z8,{active:t,icon:t?HQ:BQ,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return ey.jsxs("div",zf(zf({className:u(p.header,r)},l),{},{children:["left"===s?d:m,a,"left"===s?m:d]}))}));_H=function e(t,n){var r,o,a,i;if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!=o--;)if(!e(t[i=a[o]],n[i]))return!1;return!0}return t!=t&&n!=n};const O6=t(_H),P6=new Map,I6=e=>{const t=P6.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},N6=(e,t)=>{let n;try{n=JSON.parse(e)}catch(bY){}void 0!==n&&t(n)};yH=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t};const A6=q_.memo((function(e){var t=e.url;return q_.useEffect((function(){var e=yH(t);document.head.append(e)}),[]),!1}));vH=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,a=void 0===o?[]:o,i=e.style,s=e.className;return hQ.createElement("div",{className:JQ("".concat(t,"-column"),s),style:i},(r||n)&&hQ.createElement("h2",null,n&&hQ.createElement("span",{className:"".concat(t,"-column-icon")},n),r),a.map((function(e,n){var r=e.LinkComponent||"a";return hQ.createElement("div",{className:JQ("".concat(t,"-item"),e.className),style:e.style,key:n},hQ.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&hQ.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&hQ.createElement(hQ.Fragment,null,hQ.createElement("span",{className:"".concat(t,"-item-separator")},"-"),hQ.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},wH=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],kH=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,a=e.bottom,i=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,p=void 0===u?"dark":u,d=Sa(e,wH),m=JQ("".concat(n),r,xa({},"".concat(n,"-").concat(p),!!p)),f="number"==typeof s&&s>0;return hQ.createElement("footer",Di(Di({},d),{},{className:m,style:Di(Di({},o),{},{backgroundColor:l})}),hQ.createElement("section",{className:"".concat(n,"-container")},i&&i.length>0&&hQ.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:f?"wrap":void 0}},i.map((function(e,t){var r=e.title,o=e.icon,a=e.className,i=e.items,l=void 0===i?[]:i,c=Di({},e.style);return f&&(c.flex="0 0 ".concat(100/(s+1)+.1,"%")),hQ.createElement(vH,{key:t,prefixCls:n,title:r,icon:o,items:l,style:c,className:a})})))),a&&hQ.createElement("section",{className:"".concat(n,"-bottom")},hQ.createElement("div",{className:"".concat(n,"-bottom-container")},a)))},xH=Pj((function(e,t){var n=e.css,r=e.responsive,o=e.token,a=t.isEmpty,i=t.contentMaxWidth,s="rc-footer";return{container:n(CH||(CH=Ea(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-top: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(DH||(DH=Ea(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: left;\n\n h2 {\n position: relative;\n\n margin: 0 auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin: 12px 0;\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin: 0 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin: 0 auto;\n padding: 16px 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-top-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding: 40px 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-bottom: 40px;\n text-align: center;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,s,o.colorTextTertiary,o.colorLinkHover,s,i,a?"0":"60px 0 20px",o.colorText,o.colorTextDescription,i,r.mobile,s)}}));const R6=q_.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,a=xH({contentMaxWidth:void 0===o?960:o,isEmpty:!t||0===(null==t?void 0:t.length)}).styles;return ey.jsx("section",{className:a.container,children:ey.jsx(kH,{bottom:n,className:a.footer,columns:t,theme:r})})}));NH=Pj((function(e){var t=e.css,n=e.token;return{footer:t(SH||(SH=Ea(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:t(EH||(EH=Ea(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 4px;\n\n text-align: left;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1.1;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n "])),n.colorTextDescription),group:t(OH||(OH=Ea(["\n .ant-collapse-header {\n background: ",";\n border-radius: 0 !important;\n }\n\n .ant-collapse-content {\n background: transparent;\n }\n\n .ant-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n "])),n.colorFillTertiary),item:t(PH||(PH=Ea(["\n padding: 8px 0;\n\n .ant-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n "]))),title:t(IH||(IH=Ea(["\n display: flex;\n gap: 8px;\n align-items: center;\n\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n "])),n.colorPrimary)}})),AH=["className","children"];const T6=q_.memo((function(e){var t=e.className,n=e.children,r=Sa(e,AH),o=NH();return ey.jsx("div",Hf(Hf({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));RH=["className","icon","title","children"];const j6=q_.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,a=Sa(e,RH),i=NH(),s=i.styles;return ey.jsx(T3,function(e){var t,n;for(t=1;t label {\n height: unset;\n }\n\n .ant-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .ant-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .ant-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n "])))}})),UH=["className","footer","items","children"];const L6=q_.memo((function(e){var t=e.className,n=e.footer,r=e.items,o=e.children,a=Sa(e,UH),i=LH();return ey.jsxs(H4,Yf(Yf({className:(0,i.cx)(i.styles.form,t),colon:!1,layout:"horizontal"},a),{},{children:[null==r?void 0:r.map((function(e,t){return ey.jsx(j6,{icon:e.icon,title:e.title,children:e.children.map((function(e,t){return ey.jsx(M6,Yf({divider:0!==t},e),t)}))},t)})),o,n&&ey.jsx(T6,{children:n})]}))}));zH={};const U6=ey,z6=q_;HH=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:a,mapping:i,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:p,theme:d,lang:m,loading:f}){const[g,h]=z6.useState(!1);return z6.useEffect((()=>{g||(Promise.resolve().then((()=>(BH||(BH=1,function(e){function t(e,n,r=e,o){var a,i,s,l;if(n===q)return n;let c=void 0!==o?null===(a=r._$Co)||void 0===a?void 0:a[o]:r._$Cl;const u=F(n)?void 0:n._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(i=null==c?void 0:c._$AO)||void 0===i||i.call(c,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,r,o)),void 0!==o?(null!==(s=(l=r)._$Co)&&void 0!==s?s:l._$Co=[])[o]=c:r._$Cl=c),void 0!==c&&(n=t(e,c._$AS(e,n.values),c,o)),n}function r(e){return(t,n)=>void 0!==n?void t.constructor.createProperty(n,e):ce(e,t)}function a(e){void 0!==this._$AN?(de(this),this._$AM=e,me(this)):this._$AM=e}function i(e,t=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let a=n;ae:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new y("string"==typeof e?e:e+"",void 0,b))(t)})(e):e,w=window,k=w.trustedTypes,C=k?k.emptyScript:"",D=w.reactiveElementPolyfillSupport,x={toAttribute(e,t){switch(t){case Boolean:e=e?C:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},S=(e,t)=>t!==e&&(t==t||e==e),E={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:S};let O=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=E){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||E}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(v(e))}else void 0!==e&&t.push(v(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{h?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=f.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=E){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const a=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:x).toAttribute(t,n.type);this._$El=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:x;this._$El=o,this[o]=a.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||S)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(g){Promise.reject(g)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(n){throw t=!1,this._$Ek(),n}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==D||D({ReactiveElement:O}),(null!==(s=w.reactiveElementVersions)&&void 0!==s?s:w.reactiveElementVersions=[]).push("1.6.1");const P=window,I=P.trustedTypes,N=I?I.createPolicy("lit-html",{createHTML:e=>e}):void 0,A=`lit$${(Math.random()+"").slice(9)}$`,R="?"+A,T=`<${R}>`,j=document,$=(e="")=>j.createComment(e),F=e=>null===e||"object"!=typeof e&&"function"!=typeof e,M=Array.isArray,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,z=/>/g,B=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,W=/"/g,V=/^(?:script|style|textarea|title)$/i,G=(e,...t)=>({_$litType$:1,strings:e,values:t}),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),K=new WeakMap,Y=j.createTreeWalker(j,129,null,!1);class Q{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,a=0;const i=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,a=2===t?"":"",i=L;for(let l=0;l"===s[0]?(i=o??L,c=-1):void 0===s[1]?c=-2:(c=i.lastIndex-s[2].length,n=s[1],i=void 0===s[3]?B:'"'===s[3]?W:H):i===W||i===H?i=B:i===U||i===z?i=L:(i=B,o=void 0);const p=i===B&&e[l+1].startsWith("/>")?" ":"";a+=i===L?t+T:c>=0?(r.push(n),t.slice(0,c)+"$lit$"+t.slice(c)+A+p):t+A+(-2===c?(r.push(void 0),l):p)}const s=a+(e[n]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(s):s,r]})(e,t);if(this.el=Q.createElement(l,n),Y.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Y.nextNode())&&s.length0){r.textContent=I?I.emptyScript:"";for(let n=0;nM(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==X&&F(this._$AH)?this._$AA.nextSibling.data=e:this.T(j.createTextNode(e)),this._$AH=e}$(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=Q.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.p(n);else{const e=new J(o,this),t=e.v(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=K.get(e.strings);return void 0===t&&K.set(e.strings,t=new Q(e)),t}k(e){M(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new Z(this.O($()),this.O($()),this,this.options)):n=t[r],n._$AI(o),r++;r2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,n=this,r,o){const a=this.strings;let i=!1;if(void 0===a)e=t(this,e,n,0),i=!F(e)||e!==this._$AH&&e!==q,i&&(this._$AH=e);else{const o=e;let s,l;for(e=a[0],s=0;s{var r,o;const a=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let i=a._$litPart$;if(void 0===i){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;a._$litPart$=i=new Z(t.insertBefore($(),e),e,void 0,n??{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return q}};se.finalized=!0,se._$litElement$=!0,null===(c=globalThis.litElementHydrateSupport)||void 0===c||c.call(globalThis,{LitElement:se});const le=globalThis.litElementPolyfillSupport;null==le||le({LitElement:se}),(null!==(u=globalThis.litElementVersions)&&void 0!==u?u:globalThis.litElementVersions=[]).push("3.2.2");const ce=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};window;class ue{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const pe=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const a of o)null===(r=(n=a)._$AO)||void 0===r||r.call(n,t,!1),pe(a,t);return!0},de=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},me=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),fe(t)}},fe=e=>{var t,n,r,o;2==e.type&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=i),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=a))};class ge extends ue{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),me(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(pe(this,e),de(this))}setValue(e){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class he{}const be=new WeakMap,_e=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ge{render(e){return X}update(e,[t]){var n;const r=t!==this.Y;return r&&void 0!==this.Y&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.dt=null===(n=e.options)||void 0===n?void 0:n.host,this.rt(this.ct=e.element)),X}rt(e){var t;if("function"==typeof this.Y){const n=null!==(t=this.dt)&&void 0!==t?t:globalThis;let r=be.get(n);void 0===r&&(r=new WeakMap,be.set(n,r)),void 0!==r.get(this.Y)&&this.Y.call(this.dt,void 0),r.set(this.Y,e),void 0!==e&&this.Y.call(this.dt,e)}else this.Y.value=e}get lt(){var e,t,n;return"function"==typeof this.Y?null===(t=be.get(null!==(e=this.dt)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.Y):null===(n=this.Y)||void 0===n?void 0:n.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,m=(e,t,n,r)=>{for(var o,a=r>1?void 0:r?d(t,n):t,i=e.length-1;i>=0;i--)(o=e[i])&&(a=(r?o(t,n,a):o(a))||a);return r&&a&&p(t,n,a),a},e.GiscusWidget=class extends se{constructor(){super(),this.GISCUS_SESSION_KEY="giscus-session",this.GISCUS_DEFAULT_HOST="https://giscus.app",this.ERROR_SUGGESTION="Please consider reporting this error at https://github.com/giscus/giscus/issues/new.",this.__session="",this._iframeRef=new he,this.messageEventHandler=this.handleMessageEvent.bind(this),this.hasLoaded=!1,this.host=this.GISCUS_DEFAULT_HOST,this.strict="0",this.reactionsEnabled="1",this.emitMetadata="0",this.inputPosition="bottom",this.theme="light",this.lang="en",this.loading="eager",this.setupSession(),window.addEventListener("message",this.messageEventHandler)}get iframeRef(){var e;return null==(e=this._iframeRef)?void 0:e.value}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const e=location.href,t=new URL(e),n=localStorage.getItem(this.GISCUS_SESSION_KEY),r=t.searchParams.get("giscus")||"";if(this.__session="",r)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(r)),this.__session=r,t.searchParams.delete("giscus"),t.hash="",void history.replaceState(void 0,document.title,t.toString());if(n)try{this.__session=JSON.parse(n)}catch(o){localStorage.removeItem(this.GISCUS_SESSION_KEY)}}signOut(){localStorage.removeItem(this.GISCUS_SESSION_KEY),this.__session="",this.update(new Map)}handleMessageEvent(e){if(e.origin!==this.host)return;const{data:t}=e;if("object"!=typeof t||!t.giscus)return;if(this.iframeRef&&t.giscus.resizeHeight&&(this.iframeRef.style.height=`${t.giscus.resizeHeight}px`),t.giscus.signOut)return void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired"))&&null!==localStorage.getItem(this.GISCUS_SESSION_KEY)?this.signOut():n.includes("Discussion not found")}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||this.iframeRef.contentWindow.postMessage({giscus:e},this.host)}updateConfig(){const e={setConfig:{repo:this.repo,repoId:this.repoId,category:this.category,categoryId:this.categoryId,term:this.getTerm(),number:+this.getNumber(),strict:"1"===this.strict,reactionsEnabled:"1"===this.reactionsEnabled,emitMetadata:"1"===this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,lang:this.lang}};this.sendMessage(e)}firstUpdated(){var e;null==(e=this.iframeRef)||e.addEventListener("load",(()=>{var e;null==(e=this.iframeRef)||e.classList.remove("loading"),this.hasLoaded=!0,this.updateConfig()}))}requestUpdate(e,t,n){this.hasUpdated&&"host"!==e?this.updateConfig():super.requestUpdate(e,t,n)}getMetaContent(e,t=!1){const n=document.querySelector((t?`meta[property='og:${e}'],`:"")+`meta[name='${e}']`);return n?n.content:""}_getCleanedUrl(){const e=new URL(location.href);return e.searchParams.delete("giscus"),e.hash="",e}getTerm(){switch(this.mapping){case"url":return`${this._getCleanedUrl()}`;case"title":return document.title;case"og:title":return this.getMetaContent("title",!0);case"specific":return this.term||"";case"number":return"";default:return location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}}getNumber(){return"number"===this.mapping&&this.term||""}getIframeSrc(){const e=this._getCleanedUrl().toString(),t=`${e}${this.id?"#"+this.id:""}`,n=this.getMetaContent("description",!0),r=this.getMetaContent("giscus:backlink")||e,o={origin:t,session:this.__session,repo:this.repo,repoId:this.repoId||"",category:this.category||"",categoryId:this.categoryId||"",term:this.getTerm(),number:this.getNumber(),strict:this.strict,reactionsEnabled:this.reactionsEnabled,emitMetadata:this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,description:n,backLink:r};return`${this.host||this.GISCUS_DEFAULT_HOST}${this.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return G` +function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t,n;return e.__esModule?e:("function"==typeof(t=e.default)?(n=function e(){var n;return this instanceof e?((n=[null]).push.apply(n,arguments),new(Function.bind.apply(t,n))):t.apply(this,arguments)},n.prototype=t.prototype):n={},Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n)}function r(e,t,n){this.props=e,this.context=t,this.refs=MJ,this.updater=n||FJ}function o(){}function a(e,t,n){this.props=e,this.context=t,this.refs=MJ,this.updater=n||FJ}function i(e,t,n){var r,o,a,i,s={},l=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)q_.call(t,r)&&!K_.hasOwnProperty(r)&&(s[r]=t[r]);if(1==(o=arguments.length-2))s.children=n;else if(1t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!by.call(vy,e)||!by.call(yy,e)&&(_y.test(e)?vy[e]=!0:(yy[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function y(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Fy&&e[Fy]||e["@@iterator"])?e:null}function v(e){if(void 0===My)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);My=t&&t[1]||""}return"\n"+My+e}function w(e,t){var n,r,o,a,i,s,l;if(!e||Uy)return"";Uy=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s])return l="\n"+o[i].replace(" at new "," at "),e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{Uy=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?v(e):""}function k(e){switch(e.tag){case 5:return v(e.type);case 16:return v("Lazy");case 13:return v("Suspense");case 19:return v("SuspenseList");case 0:case 2:case 15:return w(e.type,!1);case 11:return w(e.type.render,!1);case 1:return w(e.type,!0);default:return""}}function C(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Sy:return"Fragment";case xy:return"Portal";case Oy:return"Profiler";case Ey:return"StrictMode";case Ay:return"Suspense";case Ry:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Iy:return(e.displayName||"Context")+".Consumer";case Py:return(e._context.displayName||"Context")+".Provider";case Ny:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ty:return null!==(t=e.displayName||null)?t:C(e.type)||"Memo";case jy:t=e._payload,e=e._init;try{return C(e(t))}catch(n){}}return null}function D(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return C(t);case 8:return t===Ey?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function x(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function S(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function E(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=S(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),a=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set)return t=o.get,n=o.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){a=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function O(e){var t,n,r;return!(!e||(t=e._valueTracker)&&(n=t.getValue(),r="",e&&(r=S(e)?e.checked?"true":"false":e.value),(e=r)===n||(t.setValue(e),0)))}function P(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function I(e,t){var n=t.checked;return Ly({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function N(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=x(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function A(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function R(e,t){A(e,t);var n=x(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?j(e,t.type,n):t.hasOwnProperty("defaultValue")&&j(e,t.type,x(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function T(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function j(e,t,n){"number"===t&&P(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function $(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=(o=t&-t)||16===r&&0!=(4194240&o)))return t;if(0!=(4&n)&&(n|=16&s),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0n;n++)t.push(e);return t}function ge(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-_v(t)]=n}function he(e,t){var n,r,o=e.entangledLanes|=t;for(e=e.entanglements;o;)(r=1<<(n=31-_v(o)))&t|e[n]&t&&(e[n]|=t),o&=~r}function be(e){return 1<(e&=-e)?4=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Qe(r)}}function et(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?et(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tt(){var e,t,n;for(e=window,t=P();t instanceof e.HTMLIFrameElement;){try{n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=P((e=t.contentWindow).document)}return t}function nt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rt(e){var t,n,r,o=tt(),a=e.focusedElem,i=e.selectionRange;if(o!==a&&a&&a.ownerDocument&&et(a.ownerDocument.documentElement,a)){null!==i&&nt(a)&&(o=i.start,void 0===(e=i.end)&&(e=o),"selectionStart"in a?(a.selectionStart=o,a.selectionEnd=Math.min(e,a.value.length)):(e=(o=a.ownerDocument||document)&&o.defaultView||window).getSelection&&(e=e.getSelection(),t=a.textContent.length,n=Math.min(i.start,t),i=void 0===i.end?n:Math.min(i.end,t),!e.extend&&n>i&&(t=i,i=n,n=t),t=Ze(a,n),r=Ze(a,i),t&&r&&(1!==e.rangeCount||e.anchorNode!==t.node||e.anchorOffset!==t.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((o=o.createRange()).setStart(t.node,t.offset),e.removeAllRanges(),n>i?(e.addRange(o),e.extend(r.node,r.offset)):(o.setEnd(r.node,r.offset),e.addRange(o))))),o=[];for(e=a;e=e.parentNode;)1===e.nodeType&&o.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof a.focus&&a.focus(),a=0;ayk||(e.current=_k[yk],_k[yk]=null,yk--)}function Rt(e,t){yk++,_k[yk]=e.current,e.current=t}function Tt(e,t){var n,r,o,a=e.type.contextTypes;if(!a)return vk;if((n=e.stateNode)&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;for(o in r={},a)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function jt(e){return null!=e.childContextTypes}function $t(){At(kk),At(wk)}function Ft(e,t,n){if(wk.current!==vk)throw Error(m(168));Rt(wk,t),Rt(kk,n)}function Lt(e,t,n){var r,o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(r in o=o.getChildContext())if(!(r in t))throw Error(m(108,D(e)||"Unknown",r));return Ly({},n,o)}function Mt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vk,Ck=wk.current,Rt(wk,e),Rt(kk,kk.current),!0}function Ut(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Lt(e,t,Ck),r.__reactInternalMemoizedMergedChildContext=e,At(kk),At(wk),Rt(wk,e)):At(kk),Rt(kk,n)}function zt(e){null===Dk?Dk=[e]:Dk.push(e)}function Ht(){var e,t,n,r;if(!Sk&&null!==Dk){Sk=!0,e=0,t=Cv;try{for(n=Dk,Cv=1;e>=i,o-=i,Tk=1<<32-_v(t)+o|n<g?(h=m,m=null):h=m.sibling,null===(b=d(o,m,s[g],l))){null===m&&(m=h);break}e&&m&&null===b.alternate&&t(o,m),i=a(b,i,g),null===u?c=b:u.sibling=b,u=b,m=h}if(g===s.length)return n(o,m),Lk&&Bt(o,g),c;if(null===m){for(;gg?(h=u,u=null):h=u.sibling,null===(_=d(o,u,b.value,l))){null===u&&(u=h);break}e&&u&&null===_.alternate&&t(o,u),i=a(_,i,g),null===c?v=_:c.sibling=_,c=_,u=h}if(b.done)return n(o,u),Lk&&Bt(o,g),v;if(null===u){for(;!b.done;g++,b=s.next())null!==(b=p(o,b.value,l))&&(i=a(b,i,g),null===c?v=b:c.sibling=b,c=b);return Lk&&Bt(o,g),v}for(u=r(o,u);!b.done;g++,b=s.next())null!==(b=f(u,o,g,b.value,l))&&(e&&null!==b.alternate&&u.delete(null===b.key?g:b.key),i=a(b,i,g),null===c?v=b:c.sibling=b,c=b);return e&&u.forEach((function(e){return t(o,e)})),Lk&&Bt(o,g),v}(l,c,u,g);Sn(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=na(u,l.mode,g)).return=l,l=c),i(l)):n(l,c)}}function Pn(e){if(e===Jk)throw Error(m(174));return e}function In(e,t){switch(Rt(eC,t),Rt(Zk,e),Rt(Qk,Jk),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:H(null,"");break;default:t=H(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}At(Qk),Rt(Qk,t)}function Nn(){At(Qk),At(Zk),At(eC)}function An(e){var t,n;Pn(eC.current),(t=Pn(Qk.current))!==(n=H(t,e.type))&&(Rt(Zk,e),Rt(Qk,n))}function Rn(e){Zk.current===e&&(At(Qk),At(Zk))}function Tn(e){var t,n;for(t=e;null!==t;){if(13===t.tag){if(null!==(n=t.memoizedState)&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function jn(){for(var e=0;er?r:4,e(!0),n=oC.transition,oC.transition={};try{e(!1),t()}finally{Cv=r,oC.transition=n}}function fr(){return zn().memoizedState}function gr(e,t,n){var r=vo(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?_r(t,n):null!==(n=un(e,t,n,r))&&(wo(n,e,r,yo()),yr(n,t,r))}function hr(e,t,n){var r,o,a,i,s=vo(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))_r(t,l);else{if(r=e.alternate,0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{if(a=r(o=t.lastRenderedState,n),l.hasEagerState=!0,l.eagerState=a,Fw(a,o))return null===(i=t.interleaved)?(l.next=l,cn(t)):(l.next=i.next,i.next=l),void(t.interleaved=l)}catch(c){}null!==(n=un(e,t,l,s))&&(wo(n,e,s,l=yo()),yr(n,t,s))}}function br(e){var t=e.alternate;return e===iC||null!==t&&t===iC}function _r(e,t){uC=cC=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yr(e,t,n){if(0!=(4194240&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,he(e,n)}}function vr(e,t){var n,r,o;try{n="",r=t;do{n+=k(r),r=r.return}while(r);o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function wr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function kr(e,t,n){(n=fn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){QC||(QC=!0,ZC=r)},n}function Cr(e,t,n){var r,o,a;return(n=fn(-1,n)).tag=3,"function"==typeof(r=e.type.getDerivedStateFromError)&&(o=t.value,n.payload=function(){return r(o)},n.callback=function(){}),null!==(a=e.stateNode)&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===eD?eD=new Set([this]):eD.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Dr(e,t,n){var r,o=e.pingCache;null===o?(o=e.pingCache=new bC).set(t,r=new Set):void 0===(r=o.get(t))&&o.set(t,r=new Set),r.has(n)||(r.add(n),e=Wo.bind(null,e,t,n),t.then(e,e))}function xr(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Sr(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=fn(-1,1)).tag=2,gn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function Er(e,t,n,r){t.child=null===e?Yk(t,null,n,r):Kk(t,e.child,n,r)}function Or(e,t,n,r,o){n=n.render;var a=t.ref;return sn(t,o),r=Ln(e,t,n,r,a,o),n=Mn(),null===e||yC?(Lk&&n&&Vt(t),t.flags|=1,Er(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function Pr(e,t,n,r,o){var a;return null===e?"function"!=typeof(a=n.type)||Jo(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ir(e,t,a,r,o)):(a=e.child,0==(e.lanes&o)&&(n=null!==(n=n.compare)?n:Je)(a.memoizedProps,r)&&e.ref===t.ref?Gr(e,t,o):(t.flags|=1,(e=Qo(a,r)).ref=t.ref,e.return=t,t.child=e))}function Ir(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Je(a,r)&&e.ref===t.ref){if(yC=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Gr(e,t,o);0!=(131072&e.flags)&&(yC=!0)}}return Rr(e,t,n,r,o)}function Nr(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rt(zC,UC),UC|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Rt(zC,UC),UC|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Rt(zC,UC),UC|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Rt(zC,UC),UC|=r;return Er(e,t,o,n),t.child}function Ar(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rr(e,t,n,r,o){var a=jt(n)?Ck:wk.current;return a=Tt(t,a),sn(t,o),n=Ln(e,t,n,r,a,o),r=Mn(),null===e||yC?(Lk&&r&&Vt(t),t.flags|=1,Er(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function Tr(e,t,n,r,o){var a,i,s,l,c,u,p,d,m,f;return jt(n)?(a=!0,Mt(t)):a=!1,sn(t,o),null===t.stateNode?(Vr(e,t),kn(t,n,r),Dn(t,n,r,o),r=!0):null===e?((i=t.stateNode).props=s=t.memoizedProps,l=i.context,c="object"==typeof(c=n.contextType)&&null!==c?ln(c):Tt(t,c=jt(n)?Ck:wk.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Cn(t,i,r,c),Gk=!1,i.state=d=t.memoizedState,_n(t,r,i,o),l=t.memoizedState,s!==r||d!==l||kk.current||Gk?("function"==typeof u&&(vn(t,n,u,r),l=t.memoizedState),(s=Gk||wn(t,n,s,r,d,l,c))?(p||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)):(i=t.stateNode,mn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:nn(t.type,s),i.props=c,p=t.pendingProps,d=i.context,l="object"==typeof(l=n.contextType)&&null!==l?ln(l):Tt(t,l=jt(n)?Ck:wk.current),(u="function"==typeof(m=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==p||d!==l)&&Cn(t,i,r,l),Gk=!1,i.state=d=t.memoizedState,_n(t,r,i,o),f=t.memoizedState,s!==p||d!==f||kk.current||Gk?("function"==typeof m&&(vn(t,n,m,r),f=t.memoizedState),(c=Gk||wn(t,n,c,r,d,f,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,f,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),i.props=r,i.state=f,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)),jr(e,t,n,r,a,o)}function jr(e,t,n,r,o,a){var i,s;return Ar(e,t),i=0!=(128&t.flags),r||i?(r=t.stateNode,_C.current=t,s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render(),t.flags|=1,null!==e&&i?(t.child=Kk(t,e.child,null,a),t.child=Kk(t,null,s,a)):Er(e,t,s,a),t.memoizedState=r.state,o&&Ut(t,n,!0),t.child):(o&&Ut(t,n,!1),Gr(e,t,a))}function $r(e){var t=e.stateNode;t.pendingContext?Ft(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ft(0,t.context,!1),In(e,t.containerInfo)}function Fr(e,t,n,r,o){return en(),tn(o),t.flags|=256,Er(e,t,n,r),t.child}function Lr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mr(e,t,n){var r,o,a=t.pendingProps,i=tC.current,s=!1,l=0!=(128&t.flags);return(r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Rt(tC,1&i),null===e?(Yt(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(t.lanes=0==(1&t.mode)?1:"$!"===e.data?8:1073741824,null):(l=a.children,e=a.fallback,s?(s=t.child,l={mode:"hidden",children:l},0==(1&(a=t.mode))&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ta(l,a,0,null),e=ea(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Lr(n),t.memoizedState=vC,e):Ur(t,l))):null!==(i=e.memoizedState)&&null!==(r=i.dehydrated)?function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,zr(e,t,i,r=wr(Error(m(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,r=ta({mode:"visible",children:r.children},o=t.mode,0,null),(a=ea(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Kk(t,e.child,null,i),t.child.memoizedState=Lr(i),t.memoizedState=vC,a);if(0==(1&t.mode))return zr(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zr(e,t,i,r=wr(a=Error(m(419)),r,void 0))}if(s=0!=(i&e.childLanes),yC||s){if(null!==(r=FC)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,pn(e,o),wo(r,e,o,-1))}return To(),zr(e,t,i,r=wr(Error(m(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Go.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Fk=xt(o.nextSibling),$k=t,Lk=!0,Mk=null,null!==e&&(Nk[Ak++]=Tk,Nk[Ak++]=jk,Nk[Ak++]=Rk,Tk=e.id,jk=e.overflow,Rk=t),(t=Ur(t,r.children)).flags|=4096,t)}(e,t,l,a,r,i,n):s?(s=a.fallback,r=(i=e.child).sibling,o={mode:"hidden",children:a.children},0==(1&(l=t.mode))&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=o,t.deletions=null):(a=Qo(i,o)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Qo(r,s):(s=ea(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Lr(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=vC,a):(e=(s=e.child).sibling,a=Qo(s,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function Ur(e,t){return(t=ta({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zr(e,t,n,r){return null!==r&&tn(r),Kk(t,e.child,null,n),(e=Ur(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hr(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),an(e.return,t,n)}function Br(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Wr(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Er(e,t,r.children,n),0!=(2&(r=tC.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hr(e,n,t);else if(19===e.tag)Hr(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Rt(tC,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Tn(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Br(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Tn(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Br(t,!0,n,null,a);break;case"together":Br(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vr(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),WC|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(m(153));if(null!==t.child){for(n=Qo(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Qo(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function qr(e,t){var n,r;if(!Lk)switch(e.tailMode){case"hidden":for(t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":for(n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xr(e){var t,n=null!==e.alternate&&e.alternate.child===e.child,r=0,o=0;if(n)for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=14680064&t.subtreeFlags,o|=14680064&t.flags,t.return=e,t=t.sibling;else for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=t.subtreeFlags,o|=t.flags,t.return=e,t=t.sibling;return e.subtreeFlags|=o,e.childLanes=r,n}function Kr(e,t,n){var r,o,a,i,s,l=t.pendingProps;switch(Gt(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:case 17:return jt(t.type)&&$t(),Xr(t),null;case 3:return l=t.stateNode,Nn(),At(kk),At(wk),jn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(Qt(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Mk&&(xo(Mk),Mk=null))),kC(e,t),Xr(t),null;case 5:if(Rn(t),r=Pn(eC.current),n=t.type,null!==e&&null!=t.stateNode)CC(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(m(166));return Xr(t),null}if(e=Pn(Qk.current),Qt(t)){switch(n=t.type,o=t.memoizedProps,(l=t.stateNode)[dk]=t,l[mk]=o,e=0!=(1&t.mode),n){case"dialog":ut("cancel",l),ut("close",l);break;case"iframe":case"object":case"embed":ut("load",l);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=a.createElement(n,{is:l.is}):(e=a.createElement(n),"select"===n&&(a=e,l.multiple?a.multiple=!0:l.size&&(a.size=l.size))):e=a.createElementNS(e,n),e[dk]=t,e[mk]=l,wC(e,t,!1,!1),t.stateNode=e;e:{switch(a=q(n,l),n){case"dialog":ut("cancel",e),ut("close",e),r=l;break;case"iframe":case"object":case"embed":ut("load",e),r=l;break;case"video":case"audio":for(r=0;rYC&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=Tn(a))){if(t.flags|=128,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Lk)return Xr(t),null}else 2*cv()-o.renderingStartTime>YC&&1073741824!==n&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(o.rendering=t=o.tail,o.tail=t.sibling,o.renderingStartTime=cv(),t.sibling=null,n=tC.current,Rt(tC,l?1&n|2:1&n),t):(Xr(t),null);case 22:case 23:return Io(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&0!=(1&t.mode)?0!=(1073741824&UC)&&(Xr(t),6&t.subtreeFlags&&(t.flags|=8192)):Xr(t),null;case 24:case 25:return null}throw Error(m(156,t.tag))}function Yr(e,t){switch(Gt(t),t.tag){case 1:return jt(t.type)&&$t(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Nn(),At(kk),At(wk),jn(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Rn(t),null;case 13:if(At(tC),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(m(340));en()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return At(tC),null;case 4:return Nn(),null;case 10:return on(t.type._context),null;case 22:case 23:return Io(),null;default:return null}}function Jr(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Bo(e,t,r)}else n.current=null}function Qr(e,t,n){try{n()}catch(r){Bo(e,t,r)}}function Zr(e,t,n){var r,o,a=t.updateQueue;if(null!==(a=null!==a?a.lastEffect:null)){r=a=a.next;do{(r.tag&e)===e&&(o=r.destroy,r.destroy=void 0,void 0!==o&&Qr(t,n,o)),r=r.next}while(r!==a)}}function eo(e,t){var n;if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){n=t=t.next;do{(n.tag&e)===e&&(n.destroy=(0,n.create)()),n=n.next}while(n!==t)}}function to(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function no(e){var t=e.alternate;null!==t&&(e.alternate=null,no(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[dk],delete t[mk],delete t[gk],delete t[hk],delete t[bk]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ro(e){return 5===e.tag||3===e.tag||4===e.tag}function oo(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ro(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ao(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=wt));else if(4!==r&&null!==(e=e.child))for(ao(e,t,n),e=e.sibling;null!==e;)ao(e,t,n),e=e.sibling}function io(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(io(e,t,n),e=e.sibling;null!==e;)io(e,t,n),e=e.sibling}function so(e,t,n){for(n=n.child;null!==n;)lo(e,t,n),n=n.sibling}function lo(e,t,n){var r,o,a,i;if(bv&&"function"==typeof bv.onCommitFiberUnmount)try{bv.onCommitFiberUnmount(hv,n)}catch(s){}switch(n.tag){case 5:SC||Jr(n,t);case 6:r=IC,o=NC,IC=null,so(e,t,n),NC=o,null!==(IC=r)&&(NC?(n=n.stateNode,8===(e=IC).nodeType?e.parentNode.removeChild(n):e.removeChild(n)):IC.removeChild(n.stateNode));break;case 18:null!==IC&&(NC?(n=n.stateNode,8===(e=IC).nodeType?Dt(e.parentNode,n):1===e.nodeType&&Dt(e,n),xe(e)):Dt(IC,n.stateNode));break;case 4:r=IC,o=NC,IC=n.stateNode.containerInfo,NC=!0,so(e,t,n),IC=r,NC=o;break;case 0:case 11:case 14:case 15:if(!SC&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{i=(a=o).destroy,a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Qr(n,t,i),o=o.next}while(o!==r)}so(e,t,n);break;case 1:if(!SC&&(Jr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Bo(n,t,s)}so(e,t,n);break;case 21:so(e,t,n);break;case 22:1&n.mode?(SC=(r=SC)||null!==n.memoizedState,so(e,t,n),SC=r):so(e,t,n);break;default:so(e,t,n)}}function co(e){var t,n=e.updateQueue;null!==n&&(e.updateQueue=null,null===(t=e.stateNode)&&(t=e.stateNode=new EC),n.forEach((function(n){var r=qo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})))}function uo(e,t){var n,r,o,a,i,s,l=t.deletions;if(null!==l)for(n=0;no&&(o=i),r&=~a;if(r=o,10<(r=(120>(r=cv()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*AC(r/1960))-r)){e.timeoutHandle=sk(Uo.bind(null,e,XC,JC),r);break}Uo(e,XC,JC);break;default:throw Error(m(329))}}}return ko(e,cv()),e.callbackNode===n?Co.bind(null,e):null}function Do(e,t){var n=qC;return e.current.memoizedState.isDehydrated&&(No(e,t).flags|=256),2!==(e=jo(e,t))&&(t=XC,XC=n,null!==t&&xo(t)),e}function xo(e){null===XC?XC=e:XC.push.apply(XC,e)}function So(e,t){for(t&=~GC,e.suspendedLanes|=t&=~VC,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===nD)r=!1;else{if(e=nD,nD=null,rD=0,0!=(6&$C))throw Error(m(331));for(o=$C,$C|=4,OC=e.current;null!==OC;){if(i=(a=OC).child,0!=(16&OC.flags)&&null!==(s=a.deletions)){for(l=0;lcv()-KC?No(e,0):GC|=n),ko(e,t)}function Vo(e,t){0===t&&(0==(1&e.mode)?t=1:(t=kv,0==(130023424&(kv<<=1))&&(kv=4194304)));var n=yo();null!==(e=pn(e,t))&&(ge(e,t,n),ko(e,n))}function Go(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Vo(e,n)}function qo(e,t){var n,r,o=0;switch(e.tag){case 13:n=e.stateNode,null!==(r=e.memoizedState)&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(m(314))}null!==n&&n.delete(t),Vo(e,o)}function Xo(e,t){return av(e,t)}function Ko(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.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 Yo(e,t,n,r){return new Ko(e,t,n,r)}function Jo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Qo(e,t){var n=e.alternate;return null===n?((n=Yo(e.tag,t,e.key,e.mode)).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=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zo(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Jo(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Sy:return ea(n.children,o,a,t);case Ey:i=8,o|=8;break;case Oy:return(e=Yo(12,n,t,2|o)).elementType=Oy,e.lanes=a,e;case Ay:return(e=Yo(13,n,t,o)).elementType=Ay,e.lanes=a,e;case Ry:return(e=Yo(19,n,t,o)).elementType=Ry,e.lanes=a,e;case $y:return ta(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Py:i=10;break e;case Iy:i=9;break e;case Ny:i=11;break e;case Ty:i=14;break e;case jy:i=16,r=null;break e}throw Error(m(130,null==e?e:typeof e,""))}return(t=Yo(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function ea(e,t,n,r){return(e=Yo(7,e,r,t)).lanes=n,e}function ta(e,t,n,r){return(e=Yo(22,e,r,t)).elementType=$y,e.lanes=n,e.stateNode={isHidden:!1},e}function na(e,t,n){return(e=Yo(6,e,null,t)).lanes=n,e}function ra(e,t,n){return(t=Yo(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oa(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fe(0),this.expirationTimes=fe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fe(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function aa(e,t,n,r,o,a,i,s,l){return e=new oa(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Yo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dn(a),e}function ia(e){var t,n;if(!e)return vk;e:{if(oe(e=e._reactInternals)!==e||1!==e.tag)throw Error(m(170));t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(m(171))}return 1===e.tag&&jt(n=e.type)?Lt(e,n,t):t}function sa(e,t,n,r,o,a,i,s,l){return(e=aa(n,r,!0,e,0,a,0,s,l)).context=ia(null),n=e.current,(a=fn(r=yo(),o=vo(n))).callback=null!=t?t:null,gn(n,a,o),e.current.lanes=o,ge(e,o,r),ko(e,r),e}function la(e,t,n,r){var o=t.current,a=yo(),i=vo(o);return n=ia(n),null===t.context?t.context=n:t.pendingContext=n,(t=fn(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=gn(o,t,i))&&(wo(e,o,i,a),hn(e,o,i)),i}function ca(e){return(e=e.current).child?e.child.stateNode:null}function ua(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(n[o]=e[o]);return n}(e,t),Object.getOwnPropertySymbols)for(a=Object.getOwnPropertySymbols(e),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Ea(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pa(e,t){var n,r;for(n=0;n2||Va(Gx)>3?"":" "}function Ya(e,t){for(;--t&&za()&&!(Gx<48||Gx>102||Gx>57&&Gx<65||Gx>70&&Gx<97););return Wa(e,Ba()+(t<6&&32==Ha()&&32==za()))}function Ja(e){for(;za();)switch(Gx){case e:return Vx;case 34:case 39:34!==e&&39!==e&&Ja(Gx);break;case 40:41===e&&Ja(e);break;case 92:za()}return Vx}function Qa(e,t){for(;za()&&e+Gx!==57&&(e+Gx!==84||47!==Ha()););return"/*"+Wa(t,Vx-1)+"*"+Ux(47===e?e:za())}function Za(e){for(;!Va(Ha());)za();return Wa(e,Vx)}function ei(e){return qa(ti("",null,null,null,[""],e=Ga(e),0,[0],e))}function ti(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,p=i,d=0,m=0,f=0,g=1,h=1,b=1,_=0,y="",v=o,w=a,k=r,C=y;h;)switch(f=_,_=za()){case 40:if(108!=f&&58==Ta(C,p-1)){-1!=Ra(C+=Aa(Xa(_),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=Xa(_);break;case 9:case 10:case 13:case 32:C+=Ka(f);break;case 92:C+=Ya(Ba()-1,7);continue;case 47:switch(Ha()){case 42:case 47:La(ri(Qa(za(),Ba()),t,n),l);break;default:C+="/"}break;case 123*g:s[c++]=$a(C)*b;case 125*g:case 59:case 0:switch(_){case 0:case 125:h=0;case 59+u:-1==b&&(C=Aa(C,/\f/g,"")),m>0&&$a(C)-p&&La(m>32?oi(C+";",r,n,p-1):oi(Aa(C," ","")+";",r,n,p-2),l);break;case 59:C+=";";default:if(La(k=ni(C,t,n,c,u,o,s,y,v=[],w=[],p),a),123===_)if(0===u)ti(C,t,k,k,v,a,p,s,w);else switch(99===d&&110===Ta(C,3)?100:d){case 100:case 108:case 109:case 115:ti(e,k,k,r&&La(ni(e,k,k,0,0,o,s,y,o,v=[],p),w),o,w,p,s,r?v:w);break;default:ti(C,k,k,k,[""],w,0,s,w)}}c=u=m=0,g=b=1,y=C="",p=i;break;case 58:p=1+$a(C),m=f;default:if(g<1)if(123==_)--g;else if(125==_&&0==g++&&125==(Gx=Vx>0?Ta(qx,--Vx):0,Bx--,10===Gx&&(Bx=1,Hx--),Gx))continue;switch(C+=Ux(_),_*g){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=($a(C)-1)*b,b=1;break;case 64:45===Ha()&&(C+=Xa(za())),d=Ha(),u=p=$a(y=C+=Za(Ba())),_++;break;case 45:45===f&&2==$a(C)&&(g=0)}}return a}function ni(e,t,n,r,o,a,i,s,l,c,u){var p,d,m,f,g,h,b=o-1,_=0===o?a:[""],y=Fa(_);for(p=0,d=0,m=0;p0?_[f]+" "+g:Aa(g,/&\f/g,_[f])))&&(l[m++]=h);return Ma(e,t,n,0===o?Tx:s,l,c,u)}function ri(e,t,n){return Ma(e,t,n,Rx,Ux(Gx),ja(e,2,-2),0)}function oi(e,t,n,r){return Ma(e,t,n,jx,ja(e,0,r),ja(e,r+1,-1),r)}function ai(e,t){var n,r="",o=Fa(e);for(n=0;n6)switch(Ta(e,t+1)){case 109:if(45!==Ta(e,t+4))break;case 102:return Aa(e,/(.+:)(.+)-([^]+)/,"$1"+Ax+"$2-$3$1"+Nx+(108==Ta(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ra(e,"stretch")?li(Aa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ta(e,t+1))break;case 6444:switch(Ta(e,$a(e)-3-(~Ra(e,"!important")&&10))){case 107:return Aa(e,":",":"+Ax)+e;case 101:return Aa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ax+(45===Ta(e,14)?"inline-":"")+"box$3$1"+Ax+"$2$3$1"+Ix+"$2box$3")+e}break;case 5936:switch(Ta(e,t+11)){case 114:return Ax+e+Ix+Aa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ax+e+Ix+Aa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ax+e+Ix+Aa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ax+e+Ix+e+e}return e}function ci(e,t,n){var r,o,a,i;if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return pS={name:n.name,styles:n.styles,next:pS},n.name;if(void 0!==n.styles){if(void 0!==(r=n.next))for(;void 0!==r;)pS={name:r.name,styles:r.styles,next:pS},r=r.next;return n.styles+";"}return function(e,t,n){var r,o,a,i,s,l="";if(Array.isArray(n))for(r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Si(e,t,n){var r=ey.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Ei(){}function Oi(){}function Pi(e,t,n){t||kE[n]||(e(!1,n),kE[n]=!0)}function Ii(e,t){Pi(Ei,e,t)}function Ni(e,t,n){var r=arguments.length>2&&void 0!==n&&n,o=new Set;return function e(t,n,a){var i,s,l,c=arguments.length>2&&void 0!==a?a:1,u=o.has(t);if(Ii(!u,"Warning: There may be circular references"),u)return!1;if(t===n)return!0;if(r&&c>1)return!1;if(o.add(t),i=c+1,Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(s=0;s0&&void 0!==e?e:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):NE}function $i(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Fi(e){return Array.from((AE.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Li(e,t){var n,r,o,a,i,s,l=arguments.length>1&&void 0!==t?t:{};if(!Ri())return null;if(n=l.csp,r=l.prepend,(o=document.createElement("style")).setAttribute(IE,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r)),null!=n&&n.nonce&&(o.nonce=null==n?void 0:n.nonce),o.innerHTML=e,i=(a=$i(l)).firstChild,r){if("queue"===r&&(s=Fi(a).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(IE))}))).length)return a.insertBefore(o,s[s.length-1].nextSibling),o;a.insertBefore(o,i)}else a.appendChild(o);return o}function Mi(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Fi($i(n)).find((function(t){return t.getAttribute(ji(n))===e}))}function Ui(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=Mi(e,n);r&&$i(n).removeChild(r)}function zi(e,t,n){var r,o,a,i,s,l=arguments.length>2&&void 0!==n?n:{};return function(e,t){var n,r=AE.get(e);r&&Ti(document,r)||(n=Li("",t),AE.set(e,n.parentNode),e.removeChild(n))}($i(l),l),(r=Mi(t,l))?(null!==(o=l.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(a=l.csp)||void 0===a?void 0:a.nonce)&&(r.nonce=null===(i=l.csp)||void 0===i?void 0:i.nonce),r.innerHTML!==e&&(r.innerHTML=e),r):((s=Li(e,l)).setAttribute(ji(l),t),s)}function Hi(e){var t="";return Object.keys(e).forEach((function(n){var r=e[n];t+=n,r&&"object"===Ca(r)?t+=Hi(r):t+=r})),t}function Bi(e){if(Array.isArray(e))return e}function Wi(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Vi(e,t){return Bi(e)||function(e,t){var n,r,o,a,i,s,l,c=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=c){i=[],s=!0,l=!1;try{if(o=(c=c.call(e)).next,0===t){if(Object(c)!==c)return;s=!1}else for(;!(s=(n=o.call(c)).done)&&(i.push(n.value),i.length!==t);s=!0);}catch(u){l=!0,r=u}finally{try{if(!s&&null!=c.return&&(a=c.return(),Object(a)!==a))return}finally{if(l)throw r}}return i}}(e,t)||wi(e,t)||Wi()}function Gi(e,t,n,r){var o=ey.useContext(wQ).cache,a=[e].concat(ki(t));return ey.useMemo((function(){o.update(a,(function(e){var t=Vi(e||[],2),r=t[0];return[(void 0===r?0:r)+1,t[1]||n()]}))}),[a.join("_")]),ey.useEffect((function(){return function(){o.update(a,(function(e){var t=Vi(e||[],2),n=t[0],o=void 0===n?0:n,a=t[1];return 0==o-1?(null==r||r(a,!1),null):[o-1,a]}))}}),a),o.get(a)[1]}function qi(e){return e.trim()}function Xi(e,t){return(e=t.exec(e))?e[0]:e}function Ki(e,t,n){return e.replace(t,n)}function Yi(e,t){return e.indexOf(t)}function Ji(e,t){return 0|e.charCodeAt(t)}function Qi(e,t,n){return e.slice(t,n)}function Zi(e){return e.length}function es(e){return e.length}function ts(e,t){return t.push(e),e}function ns(e,t){return e.filter((function(e){return!Xi(e,t)}))}function rs(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:ZE,column:eO,length:i,return:"",siblings:s}}function os(e,t){return QE(rs("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function as(e){for(;e.root;)e=os(e.root,{children:[e]});ts(e,e.siblings)}function is(){return rO=nO2||us(rO)>3?"":" "}function ms(e,t){for(;--t&&is()&&!(rO<48||rO>102||rO>57&&rO<65||rO>70&&rO<97););return cs(e,ls()+(t<6&&32==ss()&&32==is()))}function fs(e){for(;is();)switch(rO){case e:return nO;case 34:case 39:34!==e&&39!==e&&fs(rO);break;case 40:41===e&&fs(e);break;case 92:is()}return nO}function gs(e,t){for(;is()&&e+rO!==57&&(e+rO!==84||47!==ss()););return"/*"+cs(t,nO-1)+"*"+JE(47===e?e:is())}function hs(e){for(;!us(ss());)is();return cs(e,nO)}function bs(e){return function(e){return oO="",e}(_s("",null,null,null,[""],e=function(e){return ZE=eO=1,tO=Zi(oO=e),nO=0,[]}(e),0,[0],e))}function _s(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,p=i,d=0,m=0,f=0,g=1,h=1,b=1,_=0,y="",v=o,w=a,k=r,C=y;h;)switch(f=_,_=is()){case 40:if(108!=f&&58==Ji(C,p-1)){-1!=Yi(C+=Ki(ps(_),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=ps(_);break;case 9:case 10:case 13:case 32:C+=ds(f);break;case 92:C+=ms(ls()-1,7);continue;case 47:switch(ss()){case 42:case 47:ts(vs(gs(is(),ls()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=Zi(C)*b;case 125*g:case 59:case 0:switch(_){case 0:case 125:h=0;case 59+u:-1==b&&(C=Ki(C,/\f/g,"")),m>0&&Zi(C)-p&&ts(m>32?ws(C+";",r,n,p-1,l):ws(Ki(C," ","")+";",r,n,p-2,l),l);break;case 59:C+=";";default:if(ts(k=ys(C,t,n,c,u,o,s,y,v=[],w=[],p,a),a),123===_)if(0===u)_s(C,t,k,k,v,a,p,s,w);else switch(99===d&&110===Ji(C,3)?100:d){case 100:case 108:case 109:case 115:_s(e,k,k,r&&ts(ys(e,k,k,0,0,o,s,y,o,v=[],p,w),w),o,w,p,s,r?v:w);break;default:_s(C,k,k,k,[""],w,0,s,w)}}c=u=m=0,g=b=1,y=C="",p=i;break;case 58:p=1+Zi(C),m=f;default:if(g<1)if(123==_)--g;else if(125==_&&0==g++&&125==(rO=nO>0?Ji(oO,--nO):0,eO--,10===rO&&(eO=1,ZE--),rO))continue;switch(C+=JE(_),_*g){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Zi(C)-1)*b,b=1;break;case 64:45===ss()&&(C+=ps(is())),d=ss(),u=p=Zi(y=C+=hs(ls())),_++;break;case 45:45===f&&2==Zi(C)&&(g=0)}}return a}function ys(e,t,n,r,o,a,i,s,l,c,u,p){var d,m,f,g,h,b,_=o-1,y=0===o?a:[""],v=es(y);for(d=0,m=0,f=0;d0?y[g]+" "+h:Ki(h,/&\f/g,y[g])))&&(l[f++]=b);return rs(e,t,n,0===o?VE:s,l,c,u,p)}function vs(e,t,n,r){return rs(e,t,n,WE,JE(rO),Qi(e,2,-2),0,r)}function ws(e,t,n,r,o){return rs(e,t,n,GE,Qi(e,0,r),Qi(e,r+1,-1),r,o)}function ks(e,t,n){switch(function(e,t){return 45^Ji(e,0)?(((t<<2^Ji(e,0))<<2^Ji(e,1))<<2^Ji(e,2))<<2^Ji(e,3):0}(e,t)){case 5103:return BE+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return BE+e+e;case 4789:return HE+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return BE+e+HE+e+zE+e+e;case 5936:switch(Ji(e,t+11)){case 114:return BE+e+zE+Ki(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return BE+e+zE+Ki(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return BE+e+zE+Ki(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return BE+e+zE+e+e;case 6165:return BE+e+zE+"flex-"+e+e;case 5187:return BE+e+Ki(e,/(\w+).+(:[^]+)/,BE+"box-$1$2"+zE+"flex-$1$2")+e;case 5443:return BE+e+zE+"flex-item-"+Ki(e,/flex-|-self/g,"")+(Xi(e,/flex-|baseline/)?"":zE+"grid-row-"+Ki(e,/flex-|-self/g,""))+e;case 4675:return BE+e+zE+"flex-line-pack"+Ki(e,/align-content|flex-|-self/g,"")+e;case 5548:return BE+e+zE+Ki(e,"shrink","negative")+e;case 5292:return BE+e+zE+Ki(e,"basis","preferred-size")+e;case 6060:return BE+"box-"+Ki(e,"-grow","")+BE+e+zE+Ki(e,"grow","positive")+e;case 4554:return BE+Ki(e,/([^-])(transform)/g,"$1"+BE+"$2")+e;case 6187:return Ki(Ki(Ki(e,/(zoom-|grab)/,BE+"$1"),/(image-set)/,BE+"$1"),e,"")+e;case 5495:case 3959:return Ki(e,/(image-set\([^]*)/,BE+"$1$`$1");case 4968:return Ki(Ki(e,/(.+:)(flex-)?(.*)/,BE+"box-pack:$3"+zE+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+BE+e+e;case 4200:if(!Xi(e,/flex-|baseline/))return zE+"grid-column-align"+Qi(e,t)+e;break;case 2592:case 3360:return zE+Ki(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Xi(e.props,/grid-\w+-end/)}))?~Yi(e+(n=n[t].value),"span")?e:zE+Ki(e,"-start","")+e+zE+"grid-row-span:"+(~Yi(n,"span")?Xi(n,/\d+/):+Xi(n,/\d+/)-+Xi(e,/\d+/))+";":zE+Ki(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Xi(e.props,/grid-\w+-start/)}))?e:zE+Ki(Ki(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ki(e,/(.+)-inline(.+)/,BE+"$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(Zi(e)-1-t>6)switch(Ji(e,t+1)){case 109:if(45!==Ji(e,t+4))break;case 102:return Ki(e,/(.+:)(.+)-([^]+)/,"$1"+BE+"$2-$3$1"+HE+(108==Ji(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Yi(e,"stretch")?ks(Ki(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ki(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,a,i,s){return zE+n+":"+r+s+(o?zE+n+"-span:"+(a?i:+i-+r)+s:"")+e}));case 4949:if(121===Ji(e,t+6))return Ki(e,":",":"+BE)+e;break;case 6444:switch(Ji(e,45===Ji(e,14)?18:11)){case 120:return Ki(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+BE+(45===Ji(e,14)?"inline-":"")+"box$3$1"+BE+"$2$3$1"+zE+"$2box$3")+e;case 100:return Ki(e,":",":"+zE)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ki(e,"scroll-","scroll-snap-")+e}return e}function Cs(e,t){var n,r="";for(n=0;n-1&&!e.return)switch(e.type){case GE:return void(e.return=ks(e.value,e.length,n));case XE:return Cs([os(e,{value:Ki(e.value,"@","@"+BE)})],r);case VE:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Xi(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":as(os(e,{props:[Ki(t,/:(read-\w+)/,":"+HE+"$1")]})),as(os(e,{props:[t]})),QE(e,{props:ns(n,r)});break;case"::placeholder":as(os(e,{props:[Ki(t,/:(plac\w+)/,":"+BE+"input-$1")]})),as(os(e,{props:[Ki(t,/:(plac\w+)/,":"+HE+"$1")]})),as(os(e,{props:[Ki(t,/:(plac\w+)/,zE+"input-$1")]})),as(os(e,{props:[t]})),QE(e,{props:ns(n,r)})}return""}))}}function Ss(e){return Cs(bs(e),Ds).replace(/\{%%%\:[^;];}/g,";")}function Es(){return null}function Os(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b=e.token,_=e.path,y=e.hashId,v=e.layer,w=e.nonce,k=ey.useContext(wQ),C=k.autoClear;return n=k.defaultCache,r=k.hashPriority,o=k.container,a=k.ssrInline,i=k.transformers,s=k.linters,l=k.cache,u=[c=b._tokenKey].concat(ki(_)),p=aO,d=Gi("style",u,(function(){var e,n,a,d=t(),m=Vi(sO(d,{hashId:y,hashPriority:r,layer:v,path:_.join("-"),transformers:i,linters:s}),2),f=m[1],g=Ss(m[0]),h=function(e,t){return xi("".concat(e.join("%")).concat(t))}(u,g);return p&&(e={mark:SE,prepend:"queue",attachTo:o},(n="function"==typeof w?w():w)&&(e.csp={nonce:n}),(a=zi(g,h,e))[EE]=l.instanceId,a.setAttribute(xE,c),Object.keys(f).forEach((function(t){zi(Ss(f[t]),"_effect-".concat(t),e)}))),[g,c,h]}),(function(e,t){var n=Vi(e,3);(t||C)&&aO&&Ui(n[2],{mark:SE})})),m=Vi(d,3),f=m[0],g=m[1],h=m[2],function(e){var t,r;return t=a&&!p&&n?ey.createElement("style",mi({},(xa(r={},xE,g),xa(r,SE,h),r),{dangerouslySetInnerHTML:{__html:f}})):ey.createElement(Es,null),ey.createElement(ey.Fragment,null,t,e)}}function Ps(e){var t=Array.isArray(e)?e:[e];return dO.has(t)||dO.set(t,new pO(t)),dO.get(t)}function Is(e){return e.notSplit=!0,e}function Ns(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function As(e){var t,n;for(t=1;t1&&void 0!==t?t:{},r=[];return UJ.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Ms(e)):eE.isFragment(e)&&e.props?r=r.concat(Ms(e.props.children,n)):r.push(e))})),r}function Us(e,t){"function"==typeof e?e(t):"object"===Ca(e)&&e&&"current"in e&&(e.current=t)}function zs(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n3&&void 0!==r&&r;return t.length&&o&&void 0===n&&!el(e,t.slice(0,-1))?e:tl(e,t,n,o)}function rl(e){return Array.isArray(e)?[]:{}}function ol(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function ul(e){return e<=1?"".concat(100*Number(e),"%"):e}function pl(e){return 1===e.length?"0"+e:String(e)}function dl(e,t,n){var r,o,a,i,s,l;if(e=sl(e,255),t=sl(t,255),n=sl(n,255),a=0,i=0,s=((r=Math.max(e,t,n))+(o=Math.min(e,t,n)))/2,r===o)i=0,a=0;else{switch(l=r-o,i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fl(e,t,n){var r,o,a,i,s,l;if(e=sl(e,255),t=sl(t,255),n=sl(n,255),a=0,i=r=Math.max(e,t,n),s=r-(o=Math.min(e,t,n)),l=0===r?0:s/r,r===o)a=0;else{switch(r){case e:a=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-tP*t:Math.round(e.h)+tP*t:n?Math.round(e.h)+tP*t:Math.round(e.h)-tP*t)<0?r+=360:r>=360&&(r-=360),r}function Cl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-nP*t:t===sP?e.s+nP:e.s+rP*t)>1&&(r=1),n&&t===iP&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Dl(e,t,n){var r;return(r=n?e.v+oP*t:e.v-aP*t)>1&&(r=1),Number(r.toFixed(2))}function xl(e,t){var n,r,o,a,i,s,l=arguments.length>1&&void 0!==t?t:{},c=[],u=_l(e);for(n=iP;n>0;n-=1)o=wl(_l({h:kl(r=vl(u),n,!0),s:Cl(r,n,!0),v:Dl(r,n,!0)})),c.push(o);for(c.push(wl(u)),a=1;a<=sP;a+=1)s=wl(_l({h:kl(i=vl(u),a),s:Cl(i,a),v:Dl(i,a)})),c.push(s);return"dark"===l.theme?lP.map((function(e){var t,n,r,o=e.index,a=e.opacity;return wl((t=_l(l.backgroundColor||"#141414"),{r:((n=_l(c[o])).r-t.r)*(r=100*a/100)+t.r,g:(n.g-t.g)*r+t.g,b:(n.b-t.b)*r+t.b}))})):c}function Sl(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,p=n(l),d=n(o),m=n(a),f=n(i),g=n(s),h=r(c,u);return Object.assign(Object.assign({},h),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg: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:f[1],colorErrorBgHover:f[2],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new eP("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function El(e){const t=Object.keys($Q).map((t=>{const n=xl(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Sl(e,{generateColorPalettes:zQ,generateNeutralColorPalettes:HQ})),BQ(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),jQ(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},LQ(r))}(e))}function Ol(e){return e>=0&&e<=255}function Pl(e,t){const{r:n,g:r,b:o,a:a}=new eP(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new eP(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-i*(1-c))/c),t=Math.round((r-s*(1-c))/c),a=Math.round((o-l*(1-c))/c);if(Ol(e)&&Ol(t)&&Ol(a))return new eP({r:e,g:t,b:a,a:Math.round(100*c)/100}).toRgbString()}return new eP({r:n,g:r,b:o,a:1}).toRgbString()}function Il(e){const{override:t}=e,n=mP(e,["override"]),r=Object.assign({},t);Object.keys(FQ).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Pl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Pl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Pl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Pl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new eP("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new eP("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new eP("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function Nl(e){var t,n=ey.useRef();return n.current=e,t=ey.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o{const[a,i,s]=Ml(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=ey.useContext(VQ),p=l(),d={theme:a,token:i,hashId:s,nonce:()=>null==u?void 0:u.nonce};return Os(Object.assign(Object.assign({},d),{path:["Shared",p]}),(()=>[{"&":KQ(i)}])),[Os(Object.assign(Object.assign({},d),{path:[e,o,c]}),(()=>{const{token:a,flush:l}=function(e){let t,n=e,r=Fl;return ZQ&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(eZ&&t.add(n),e[n])}),r=()=>{Array.from(t)}),{token:n,keys:t,flush:r}}(i),u=Object.assign({},i[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==u?void 0:u[t])||(null==u?void 0:u[n]))&&(null!==(r=u[n])&&void 0!==r||(u[n]=null==u?void 0:u[t]))}))}const d="function"==typeof n?n($l(a,null!=u?u:{})):n,m=Object.assign(Object.assign({},d),u),f=$l(a,{componentCls:`.${o}`,prefixCls:o,iconCls:`.${c}`,antCls:`.${p}`},m),g=t(f,{hashId:s,prefixCls:o,rootPrefixCls:p,iconPrefixCls:c,overrideComponentToken:u});return l(e,m),[!1===(null==r?void 0:r.resetStyle)?null:YQ(i,o),g]})),s]}}function $l(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),eZ=!0,r}function Fl(){}function Ll(e,t){return TQ.reduce(((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))}),{})}function Ml(){const{token:e,hashed:t,theme:n,components:r}=UJ.useContext(rZ),o=`${RQ}-${t||""}`,a=n||tZ,[i,s]=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:{},o=ey.useContext(wQ).cache.instanceId,a=r.salt,i=void 0===a?"":a,s=r.override,l=void 0===s?$E:s,c=r.formatToken,u=ey.useMemo((function(){return Object.assign.apply(Object,[{}].concat(ki(t)))}),[t]),p=ey.useMemo((function(){return Hi(u)}),[u]),d=ey.useMemo((function(){return Hi(l)}),[l]),m=Gi("token",[i,e.id,p,d],(function(){var t,n=ME(u,l,e,c),r=function(e,t){return xi("".concat(t,"_").concat(Hi(e)))}(n,i);return n._tokenKey=r,function(e){LE.set(e,(LE.get(e)||0)+1)}(r),t="".concat(FE,"-").concat(xi(r)),n._hashId=t,[n,t]}),(function(e){!function(e,t){var n,r;LE.set(e,(LE.get(e)||0)-1),(r=(n=Array.from(LE.keys())).filter((function(e){return(LE.get(e)||0)<=0}))).length0&&void 0!==e?e:[]).map(Vl)}function ql(e){const{children:t}=e,[,n]=Ml(),{motion:r}=n,o=ey.useRef(!1);return o.current=o.current||!1===r,o.current?ey.createElement(Ul,{motion:r},t):t}function Xl(){return gZ||"ant"}function Kl(){return hZ||WQ}function Yl(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Jl(e){return function(e){return Yl(e)!==(null==e?void 0:e.ownerDocument)}(e)?Yl(e):null}function Ql(e){return"object"===Ca(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Ca(e.icon)||"function"==typeof e.icon)}function Zl(e){var t=arguments.length>0&&void 0!==e?e:{};return Object.keys(t).reduce((function(e,n){var r=t[n];return"class"===n?(e.className=r,delete e.class):e[n]=r,e}),{})}function ec(e,t,n){return UJ.createElement(e.tag,n?Di(Di({key:t},Zl(e.attrs)),n):Di({key:t},Zl(e.attrs)),(e.children||[]).map((function(n,r){return ec(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function tc(e){return xl(e)[0]}function nc(e){return e?Array.isArray(e)?e:[e]:[]}function rc(e){var t=Vi(nc(e),2);return kZ.setTwoToneColors({primaryColor:t[0],secondaryColor:t[1]})}function oc(e,t){return 0===e.indexOf(t)}function ac(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t;return n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:Di({},o),r={},Object.keys(e).forEach((function(t){(n.aria&&("role"===t||oc(t,rI))||n.data&&oc(t,oI)||n.attr&&nI.includes(t))&&(r[t]=e[t])})),r}function ic(e){return e&&RZ(e)&&e.type===ey.Fragment}function sc(e,t){return function(e,t,n){return RZ(e)?ey.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function lc(e){var t=arguments.length>0&&void 0!==e?e:{},n=t.getContainer,r=void 0===n?cI:n,o=t.motion,a=t.prefixCls,i=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,u=Sa(t,lI),p=Vi(ey.useState(),2),d=p[0],m=p[1],f=ey.useRef(),g=ey.createElement(sI,{container:d,ref:f,prefixCls:a,motion:o,maxCount:i,className:s,style:l,onAllRemoved:c}),h=Vi(ey.useState([]),2),b=h[0],_=h[1],y=ey.useMemo((function(){return{open:function(e){var t=function(){var e,t,n,r={};for(e=arguments.length,t=new Array(e),n=0;n{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function uc(e){let{prefixCls:t,type:n,icon:r,children:o}=e;return ey.createElement("div",{className:kQ(`${t}-custom-content`,`${t}-${n}`)},r||VZ[n],ey.createElement("span",null,o))}function pc(e){const t=ey.useRef(null);return[ey.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,hashId:a}=t.current,i=`${o}-notice`,{content:s,icon:l,type:c,key:u,className:p,onClose:d}=n,m=dI(n,["content","icon","type","key","className","onClose"]);let f=u;return null==f&&(XZ+=1,f=`antd-message-${XZ}`),cc((t=>(r(Object.assign(Object.assign({},m),{key:f,content:ey.createElement(uc,{prefixCls:o,type:c,icon:l},s),placement:"top",className:kQ(c&&`${i}-${c}`,a,p),onClose:()=>{null==d||d(),t()}})),()=>{e(f)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let a,i,s;a=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(i=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:i},a),{type:e});return n(l)}})),r}),[]),ey.createElement(qZ,Object.assign({key:"message-holder"},e,{ref:t}))]}function dc(e){return pc(e)}function mc(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,o){var a=Object.create((t&&t.prototype instanceof r?t:r).prototype),i=new d(o||[]);return _(a,"_invoke",{value:l(e,n,i)}),a}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function r(){}function o(){}function a(){}function i(t){["next","throw","return"].forEach((function(n){e(t,n,(function(e){return this._invoke(n,e)}))}))}function s(e,t){function r(o,a,i,s){var l,c,u=n(e[o],e,a);if("throw"!==u.type)return(c=(l=u.arg).value)&&"object"==Ca(c)&&b.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(c).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,s)}));s(u.arg)}var o;_(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function l(e,t,r){var o="suspendedStart";return function(a,i){var s,l,u;if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===a)throw i;return{value:void 0,done:!0}}for(r.method=a,r.arg=i;;){if((s=r.delegate)&&(l=c(s,r))){if(l===C)continue;return l}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(o="executing","normal"===(u=n(e,t,r)).type){if(o=r.done?"completed":"suspendedYield",u.arg===C)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o="completed",r.method="throw",r.arg=u.arg)}}}function c(e,t){var r,o,a=t.method,i=e.iterator[a];return void 0===i?(t.delegate=null,"throw"===a&&e.iterator.return&&(t.method="return",t.arg=void 0,c(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),C):"throw"===(r=n(i,e.iterator,t.arg)).type?(t.method="throw",t.arg=r.arg,t.delegate=null,C):(o=r.arg)?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,C):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,C)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function m(e){var t,n,r;if(e){if(t=e[v])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(a=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(i=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc"),i&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),C},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,p(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:m(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),C}},g}function fc(e,t,n,r,o,a,i){var s,l;try{l=(s=e[a](i)).value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function gc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function a(e){fc(s,r,o,a,i,"next",e)}function i(e){fc(s,r,o,a,i,"throw",e)}var s=e.apply(t,n);a(void 0)}))}}function hc(e){var t=mI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Ca(t)&&(t.usingClientEntryPoint=e)}function bc(e,t){bI?function(e,t){hc(!0);var n=t[_I]||bI(t);hc(!1),n.render(e),t[_I]=n}(e,t):function(e,t){gI(e,t)}(e,t)}function _c(e){return yc.apply(this,arguments)}function yc(){return(yc=gc(mc().mark((function e(t){return mc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[_I])||void 0===e||e.unmount(),delete t[_I]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vc(e){hI(e)}function wc(e){return kc.apply(this,arguments)}function kc(){return(kc=gc(mc().mark((function e(t){return mc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===bI){e.next=2;break}return e.abrupt("return",_c(t));case 2:vc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Dc(e){return Number.isNaN(e)?0:e}function xc(e){return"text"===e||"link"===e}function Sc(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Ec(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Oc(e,t){let n=arguments.length>1&&void 0!==t?t:{focus:!0};const{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},Sc(e,o,n)),Ec(r,o,n))}}function Pc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ic(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Pc(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}function Nc(e){return"danger"===e?{danger:!0}:{type:e}}function Ac(e){return!(!e||!e.then)}function Rc(e){var t=Vi(ey.useState("ssr-id"),2),n=t[0],r=t[1],o=Di({},zJ).useId,a=null==o?void 0:o();return ey.useEffect((function(){if(!o){var e=PI;PI+=1,r("rc_unique_".concat(e))}}),[]),e||a||n}function Tc(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function jc(e,t){var n,r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");return"number"!=typeof r&&"number"!=typeof(r=(n=e.document).documentElement[o])&&(r=n.body[o]),r}function $c(e){var t=e.prefixCls,n=e.style,r=e.maskProps;return ey.createElement(dZ,{key:"mask",visible:e.visible,motionName:e.motionName,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var a=e.className;return ey.createElement("div",mi({ref:o,style:Di(Di({},e.style),n),className:kQ("".concat(t,"-mask"),a)},r))}))}function Fc(e){function t(e){null==f||f(e)}var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,a=e.visible,i=void 0!==a&&a,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,p=e.wrapStyle,d=e.wrapClassName,m=e.wrapProps,f=e.onClose,g=e.afterOpenChange,h=e.afterClose,b=e.transitionName,_=e.animation,y=e.closable,v=void 0===y||y,w=e.mask,k=void 0===w||w,C=e.maskTransitionName,D=e.maskAnimation,x=e.maskClosable,S=void 0===x||x,E=e.maskStyle,O=e.maskProps,P=e.rootClassName,I=ey.useRef(),N=ey.useRef(),A=ey.useRef(),R=Vi(ey.useState(i),2),T=R[0],j=R[1],$=Rc(),F=ey.useRef(!1),L=ey.useRef(),M=null;return S&&(M=function(e){F.current?F.current=!1:N.current===e.target&&t(e)}),ey.useEffect((function(){i&&(j(!0),Ti(N.current,document.activeElement)||(I.current=document.activeElement))}),[i]),ey.useEffect((function(){return function(){clearTimeout(L.current)}}),[]),ey.createElement("div",mi({className:kQ("".concat(r,"-root"),P)},ac(e,{data:!0})),ey.createElement($c,{prefixCls:r,visible:k&&i,motionName:Tc(r,C,D),style:Di({zIndex:o},E),maskProps:O}),ey.createElement("div",mi({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===aI.ESC)return e.stopPropagation(),void t(e);i&&e.keyCode===aI.TAB&&A.current.changeActive(!e.shiftKey)},className:kQ("".concat(r,"-wrap"),d),ref:N,onClick:M,style:Di(Di({zIndex:o},p),{},{display:T?null:"none"})},m),ey.createElement(AI,mi({},e,{onMouseDown:function(){clearTimeout(L.current),F.current=!0},onMouseUp:function(){L.current=setTimeout((function(){F.current=!1}))},ref:A,closable:v,ariaId:$,prefixCls:r,visible:i&&T,onClose:t,onVisibleChanged:function(e){if(e)Ti(N.current,document.activeElement)||null===(t=A.current)||void 0===t||t.focus();else{if(j(!1),k&&I.current&&u){try{I.current.focus({preventScroll:!0})}catch(zY){}I.current=null}T&&(null==h||h())}var t;null==g||g(e)},motionName:Tc(r,b,_)}))))}function Lc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t1?t-1:0),r=1;r=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function Gc(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function qc(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var s=r;r+=1,s=a||n<0||n>=a?e:(r=e[t],(o=t-n)>0?[].concat(ki(e.slice(0,n)),[r],ki(e.slice(n,t)),ki(e.slice(t+1,a))):o<0?[].concat(ki(e.slice(0,t)),ki(e.slice(t+1,n+1)),[r],ki(e.slice(n+1,a))):e)}function cu(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}function uu(e){var t=e.name,n=Sa(e,oN),r=ey.useContext($I),o=ey.useContext(FI),a=void 0!==t?ru(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),ey.createElement(iN,mi({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function pu(e){return e.map((function(e){return"".concat(Ca(e),":").concat(e)})).join(lN)}function du(e){var t,n=ey.useRef(),r=Vi(ey.useState({}),2)[1];return n.current||(e?n.current=e:(t=new pN((function(){r({})})),n.current=t.getForm())),[n.current]}function mu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function fu(){var e,t,n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_;for(e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(ki(n.slice(1))));for(let e=0;e{const e=il(),{getPrefixCls:a,getIconPrefixCls:l,getTheme:c}=_Z(),u=a(void 0,t2),p=r||`${u}-modal`,d=l(),m=c();let f=i;!1===f&&(f=void 0),bc(ey.createElement(Z1,Object.assign({},s,{getContainer:f,prefixCls:p,rootPrefixCls:u,iconPrefixCls:d,okText:t,locale:e,theme:m,cancelText:n||e.cancelText})),o)}))}function r(){for(var r=arguments.length,o=new Array(r),a=0;a{"function"==typeof e.afterClose&&e.afterClose(),t.apply(this,o)}}),i.visible&&delete i.visible,n(i)}const o=document.createDocumentFragment();let a,i=Object.assign(Object.assign({},e),{close:r,open:!0});return n(i),e2.push(r),{destroy:r,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),n(i)}}}function yu(e){return Object.assign(Object.assign({},e),{type:"warning"})}function vu(e){return Object.assign(Object.assign({},e),{type:"info"})}function wu(e){return Object.assign(Object.assign({},e),{type:"success"})}function ku(e){return Object.assign(Object.assign({},e),{type:"error"})}function Cu(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Du(){const e=ey.useRef(null),[t,n]=ey.useState([]);ey.useEffect((()=>{t.length&&(ki(t).forEach((e=>{e()})),n([]))}),[t]);const r=ey.useCallback((t=>function(r){var o;o2+=1;const a=ey.createRef();let i;const s=ey.createElement(r2,{key:`modal-${o2}`,config:t(r),ref:a,afterClose:()=>{null==i||i()}});return i=null===(o=e.current)||void 0===o?void 0:o.patchElement(s),i&&e2.push(i),{destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(ki(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(ki(e),[t])))}}}),[]);return[ey.useMemo((()=>({info:r(vu),success:r(wu),error:r(ku),warning:r(yu),confirm:r(Cu)})),[]),ey.createElement(a2,{key:"modal-holder",ref:e})]}function xu(e,t){return t||ey.createElement("span",{className:`${e}-close-x`},ey.createElement(OZ,{className:`${e}-close-icon`}))}function Su(e){let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:s="alert"}=e,l=null;return n?l=ey.createElement("span",{className:`${t}-icon`},n):r&&(l=ey.createElement(c2[r]||null,{className:kQ(`${t}-icon`,`${t}-icon-${r}`)})),ey.createElement("div",{className:kQ({[`${t}-with-icon`]:l}),role:s},l,ey.createElement("div",{className:`${t}-message`},o),ey.createElement("div",{className:`${t}-description`},a),i&&ey.createElement("div",{className:`${t}-btn`},i))}function Eu(e){const t=ey.useRef(null);return[ey.useMemo((()=>{const e=e=>{if(!t.current)return;const{open:n,prefixCls:r,hashId:o}=t.current,a=`${r}-notice`,{message:i,description:s,icon:l,type:c,btn:u,className:p,role:d="alert"}=e,m=vN(e,["message","description","icon","type","btn","className","role"]);return n(Object.assign(Object.assign({placement:"topRight"},m),{content:ey.createElement(Su,{prefixCls:a,icon:l,type:c,message:i,description:s,btn:u,role:d}),className:kQ(c&&`${a}-${c}`,o,p)}))},n={open:e,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((t=>{n[t]=n=>e(Object.assign(Object.assign({},n),{type:t}))})),n}),[]),ey.createElement(u2,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Ou(e){return Eu(e)}function Pu(e){var t=arguments.length>0&&void 0!==e?e:250,n=ey.useRef(null),r=ey.useRef(null);return ey.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}function Iu(e,t){function n(e){m(f,e)}var r,o,a,i,s=e.prefixCls,l=e.invalidate,c=e.item,u=e.renderItem,p=e.responsive,d=e.responsiveDisabled,m=e.registerSize,f=e.itemKey,g=e.className,h=e.style,b=e.children,_=e.display,y=e.order,v=e.component,w=void 0===v?"div":v,k=Sa(e,kN),C=p&&!_;return ey.useEffect((function(){return function(){n(null)}}),[]),r=u&&c!==CN?u(c):b,l||(o={opacity:C?0:1,height:C?0:CN,overflowY:C?"hidden":CN,order:p?y:CN,pointerEvents:C?"none":CN,position:C?"absolute":CN}),a={},C&&(a["aria-hidden"]=!0),i=ey.createElement(w,mi({className:kQ(!l&&s,g),style:Di(Di({},o),h)},a,k,{ref:t}),r),p&&(i=ey.createElement(HO,{onResize:function(e){n(e.offsetWidth)},disabled:d},i)),i}function Nu(e,t){var n=Vi(ey.useState(t),2),r=n[1];return[n[0],Nl((function(t){e((function(){r(t)}))}))]}function Au(e){return"+ ".concat(e.length," ...")}function Ru(e,t){function n(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(le(eS,ge=ey.useMemo((function(){var e=b;return de?e=null===L&&j?b:b.slice(0,Math.min(b.length,U/k)):"number"==typeof S&&(e=b.slice(0,S)),e}),[b,k,L,S,de]),he=ey.useMemo((function(){return b.slice(de?ae+1:ge.length)}),[b,ge,de,ae]),be=ey.useCallback((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),_e=ey.useCallback(_||function(e){return e},[_]);return gP((function(){var e,t,r,a,i;if(U&&"number"==typeof ue&&ge){if(e=J,r=(t=ge.length)-1,!t)return void n(0,null);for(a=0;aU){n(a-1,e-i-J+X);break}}P&&o(0)+J>U&&te(null)}}),[U,H,X,J,be,ge]),i={},null!==ee&&de&&(i={position:"absolute",left:ee,top:0}),s={prefixCls:ce,responsive:de,component:A,invalidate:me},l=y?function(e,t){var n=be(e,t);return ey.createElement(xN.Provider,{key:n,value:Di(Di({},s),{},{order:t,item:e,itemKey:n,registerSize:r,display:t<=ae})},y(e,t))}:function(e,t){var n=be(e,t);return ey.createElement(DN,mi({},s,{order:t,key:n,item:e,renderItem:_e,itemKey:n,registerSize:r,display:t<=ae}))},u={order:(a=se&&!!he.length)?ae:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){K(t),G(X)},display:a},O?O&&(c=ey.createElement(xN.Provider,{value:Di(Di({},s),u)},O(he))):(p=E||Au,c=ey.createElement(DN,mi({},s,u),"function"==typeof p?p(he):p)),d=ey.createElement(N,mi({className:kQ(!me&&g,x),style:D,ref:t},T),ge.map(l),fe?c:null,P&&ey.createElement(DN,mi({},s,{responsive:pe,responsiveDisabled:!de,order:ae,className:"".concat(ce,"-suffix"),registerSize:function(e,t){Q(t)},display:!0,style:i}),P)),pe&&(d=ey.createElement(HO,{onResize:function(e,t){M(t.clientWidth)},disabled:!de},d)),d}function Tu(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function ju(e){return["string","number"].includes(Ca(e))}function $u(e){var t=void 0;return e&&(ju(e.title)?t=e.title.toString():ju(e.label)&&(t=e.label.toString())),t}function Fu(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}function Lu(e){return e?Array.isArray(e)?e:[e]:[]}function Mu(e,t,n){var r=arguments.length>0&&void 0!==e?e:[],o=arguments.length>1&&void 0!==t?t:[];return(arguments.length>2?n:void 0)?r[0]===o[0]:r[0]===o[0]&&r[1]===o[1]}function Uu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function zu(e){return e.ownerDocument.defaultView}function Hu(e){for(var t,n=[],r=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];r;)[(t=zu(r).getComputedStyle(r)).overflowX,t.overflowY,t.overflow].some((function(e){return o.includes(e)}))&&n.push(r),r=r.parentElement;return n}function Bu(e,t){var n=arguments.length>1&&void 0!==t?t:1;return Number.isNaN(e)?n:e}function Wu(e){return Bu(parseFloat(e),0)}function Vu(e,t){var n=Di({},e);return(t||[]).forEach((function(e){var t,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A;e instanceof HTMLBodyElement||(r=(t=zu(e).getComputedStyle(e)).overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,p=e.clientHeight,d=e.offsetWidth,m=e.clientWidth,f=Wu(a),g=Wu(i),v=(d-m-(h=Wu(s))-(b=Wu(l)))*(_=Bu(Math.round(c.width/d*1e3)/1e3)),w=(u-p-f-g)*(y=Bu(Math.round(c.height/u*1e3)/1e3)),k=f*y,C=g*y,D=h*_,x=b*_,S=0,E=0,"clip"===r&&(S=(O=Wu(o))*_,E=O*y),N=(P=c.x+D-S)+c.width+2*S-D-x-v,A=(I=c.y+k-E)+c.height+2*E-k-C-w,n.left=Math.max(n.left,P),n.top=Math.max(n.top,I),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,A))})),n}function Gu(e,t){var n="".concat(arguments.length>1&&void 0!==t?t:0),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function qu(e,t){var n=Vi(t||[],2),r=n[1];return[Gu(e.width,n[0]),Gu(e.height,r)]}function Xu(e){var t=arguments.length>0&&void 0!==e?e:"";return[t[0],t[1]]}function Ku(e,t){var n=t[0],r=t[1];return{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:"t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2}}function Yu(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function Ju(e){var t,n,r,o,a,i,s=e.prefixCls,l=e.align,c=e.arrowPos,u=e.arrow||{},p=u.className,d=u.content,m=c.x,f=void 0===m?0:m,g=c.y,h=void 0===g?0:g,b=ey.useRef();return l&&l.points?(t={position:"absolute"},!1!==l.autoArrow&&(a=(n=l.points[0])[1],i=(r=l.points[1])[1],(o=n[0])!==r[0]&&["t","b"].includes(o)?"t"===o?t.top=0:t.bottom=0:t.top=h,a!==i&&["l","r"].includes(a)?"l"===a?t.left=0:t.right=0:t.left=f),ey.createElement("div",{ref:b,className:kQ("".concat(s,"-arrow"),p),style:t},d)):null}function Qu(e){var t=e.prefixCls,n=e.zIndex;return e.mask?ey.createElement(dZ,mi({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),(function(e){var r=e.className;return ey.createElement("div",{style:{zIndex:n},className:kQ("".concat(t,"-mask"),r)})})):null}function Zu(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function ep(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function tp(e){var t=Di({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ii(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function np(e){return"tags"===e||"multiple"===e}function rp(e,t){var n=arguments.length>1&&void 0!==t&&t;return Ms(e).map((function(e,t){if(!ey.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,a=e.props,i=a.children,s=Sa(a,aA);return n||!r?function(e){var t=e.key,n=e.props,r=n.value;return Di({key:t,value:void 0!==r?r:t,children:n.children},Sa(n,oA))}(e):Di(Di({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},s),{},{options:rp(i)})})).filter((function(e){return e}))}function op(e){var t,n=ey.useRef();return n.current=e,t=ey.useCallback((function(){return n.current.apply(n,arguments)}),[]),t}function ap(e){return"touches"in e?e.touches[0].pageY:e.pageY}function ip(e){var t=e.children,n=e.setRef,r=ey.useCallback((function(e){n(e)}),[]);return ey.cloneElement(t,{ref:r})}function sp(e,t){function n(e){X((function(t){var n;return n=function(e){var t=e;return Number.isNaN(f.current)||(t=Math.min(t,f.current)),Math.max(t,0)}("function"==typeof e?e(t):e),ee.current.scrollTop=n,n}))}var r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x=e.prefixCls,S=void 0===x?"rc-virtual-list":x,E=e.className,O=e.height,P=e.itemHeight,I=e.fullHeight,N=void 0===I||I,A=e.style,R=e.data,T=e.children,j=e.itemKey,$=e.virtual,F=e.direction,L=e.component,M=void 0===L?"div":L,U=e.onScroll,z=e.onVisibleChange,H=e.innerProps,B=Sa(e,mA),W=!(!1===$||!O||!P),V=W&&R&&P*R.length>O,G=Vi(ey.useState(0),2),q=G[0],X=G[1],K=Vi(ey.useState(!1),2),Y=K[0],J=K[1],Q=kQ(S,xa({},"".concat(S,"-rtl"),"rtl"===F),E),Z=R||fA,ee=ey.useRef(),te=ey.useRef(),ne=ey.useRef(),re=ey.useCallback((function(e){return"function"==typeof j?j(e):null==e?void 0:e[j]}),[j]),oe={getKey:re},ae=ey.useRef({start:0,end:Z.length}),ie=ey.useRef(),se=function(e,t){var n=Vi(ey.useState(e),2),r=n[0],o=n[1],a=Vi(ey.useState(null),2),i=a[0],s=a[1];return ey.useEffect((function(){var n=function(e,t,n){function r(e){return void 0!==e?n(e):i}var o,a,i,s,l,c,u,p=e.length,d=t.length;if(0===p&&0===d)return null;for(p=q&&void 0===n&&(n=i,r=t),u>q+O&&void 0===o&&(o=i),t=u;return void 0===n&&(n=0,r=0,o=Math.ceil(O/P)),void 0===o&&(o=Z.length-1),{scrollHeight:t,start:n,end:o=Math.min(o+1,Z.length),offset:r}}),[V,W,q,Z,o[3],O])).scrollHeight,p=l.end,d=l.offset,ae.current.start=u=l.start,ae.current.end=p,(f=ey.useRef(m=c-O)).current=m,b=y2(g=q<=0,h=q>=m),_=function(e,t,r){var o=ey.useRef(0),a=ey.useRef(null),i=ey.useRef(null),s=ey.useRef(!1),l=y2(t,r);return[function(t){if(e){qO.cancel(a.current);var r=t.deltaY;o.current+=r,i.current=r,l(r)||(pA||t.preventDefault(),a.current=qO((function(){var e;e=o.current*(s.current?10:1),n((function(t){return t+e})),o.current=0})))}},function(t){e&&(s.current=t.detail===i.current)}]}(W,g,h),y=Vi(_,2),v=y[0],w=y[1],function(e,t,n){var r=ey.useRef(!1),o=ey.useRef(0),a=ey.useRef(null),i=ey.useRef(null),s=function(e){var t,a;r.current&&(t=Math.ceil(e.touches[0].pageY),a=o.current-t,o.current=t,n(a)&&e.preventDefault(),clearInterval(i.current),i.current=setInterval((function(){(!n(a*=dA,!0)||Math.abs(a)<=.1)&&clearInterval(i.current)}),16))},l=function(){r.current=!1,u()},c=function(e){u(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",s),a.current.addEventListener("touchend",l))},u=function(){a.current&&(a.current.removeEventListener("touchmove",s),a.current.removeEventListener("touchend",l))};gP((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),u(),clearInterval(i.current)}}),[e])}(W,ee,(function(e,t){return!b(e,t)&&(v({preventDefault:function(){},deltaY:e}),!0)})),gP((function(){function e(e){W&&e.preventDefault()}return ee.current.addEventListener("wheel",v),ee.current.addEventListener("DOMMouseScroll",w),ee.current.addEventListener("MozMousePixelScroll",e),function(){ee.current&&(ee.current.removeEventListener("wheel",v),ee.current.removeEventListener("DOMMouseScroll",w),ee.current.removeEventListener("MozMousePixelScroll",e))}}),[W]),k=function(e,t,n,r,o,a,i){var s=ey.useRef();return function(l){var c,u,p,d,m;null!=l?(qO.cancel(s.current),"number"==typeof l?i(l):l&&"object"===Ca(l)&&(u=l.align,c="index"in l?l.index:t.findIndex((function(e){return o(e)===l.key})),d=void 0===(p=l.offset)?0:p,function l(p,m){var f,g,h,b,_,y,v,w,k,C,D,x,S;if(!(p<0)&&e.current){if(g=!1,h=m,f=e.current.clientHeight){for(b=m||u,_=0,y=0,v=0,w=Math.min(t.length,c),k=0;k<=w;k+=1)C=o(t[k]),_=v=(y=_)+(void 0===(D=n.get(C))?r:D),k===c&&void 0===D&&(g=!0);switch(x=null,b){case"top":x=y-d;break;case"bottom":x=v-f+d;break;default:y<(S=e.current.scrollTop)?h="top":v>S+f&&(h="bottom")}null!==x&&x!==e.current.scrollTop&&i(x)}s.current=qO((function(){g&&a(),l(p-1,h)}),2)}}(3))):null===(m=ne.current)||void 0===m||m.delayHidden()}}(ee,Z,s,P,re,i,n),ey.useImperativeHandle(t,(function(){return{scrollTo:k}})),gP((function(){if(z){var e=Z.slice(u,p+1);z(e,Z)}}),[u,p,Z]),C=function(e,t,n,r,o,a){var i=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=o(e,t+n,{}),s=i(e);return ey.createElement(ip,{key:s,setRef:function(t){return r(e,t)}},a)}))}(Z,u,p,a,T,oe),D=null,O&&(D=Di(xa({},N?"height":"maxHeight",O),gA),W&&(D.overflowY="hidden",Y&&(D.pointerEvents="none"))),ey.createElement("div",mi({style:Di(Di({},A),{},{position:"relative"}),className:Q},B),ey.createElement(M,{className:"".concat(S,"-holder"),style:D,ref:ee,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==q&&n(t),null==U||U(e)}},ey.createElement(lA,{prefixCls:S,height:c,offset:d,onInnerResize:i,ref:te,innerProps:H},C)),W&&ey.createElement(cA,{ref:ne,prefixCls:S,scrollTop:q,height:O,scrollHeight:c,count:Z.length,direction:F,onScroll:function(e){n(e)},onStartMove:function(){J(!0)},onStopMove:function(){J(!1)}}))}function lp(e){return"string"==typeof e||"number"==typeof e}function cp(e,t,n){return kQ({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}function up(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.controlHeightSM,[i]=A2(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:i-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:a-2*e.lineWidth+"px",background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function pp(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},XQ(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function dp(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[pp(e),pp($l(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},pp($l(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function mp(){const[,e]=Ml(),t=Q2(Z2(e));return UJ.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(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()},unregister(){Object.keys(t).forEach((e=>{const n=this.matchHandlers[t[e]];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},a=window.matchMedia(n);a.addListener(o),this.matchHandlers[n]={mql:a,listener:o},o(a)}))},responsiveMap:t}}),[e])}function fp(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return ey.createElement("div",{className:kQ("".concat(n,"-content"),a),style:i},ey.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function gp(e){const t=t5,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function hp(e,t){return e?t:{}}function bp(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:p={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:m}=gp({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},GQ(r,o,a,s,i)),{"&:before":{background:s}})]},hp(!!p.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),hp(!!p.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),hp(!!p.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:d},[`&-placement-leftBottom ${n}-arrow`]:{bottom:d}})),hp(!!p.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:d},[`&-placement-rightBottom ${n}-arrow`]:{bottom:d}}))}}function _p(e,t){return arguments.length>1&&void 0!==t&&!t?TQ.includes(e):[].concat(ki(d5),ki(TQ)).includes(e)}function yp(e,t){const n=_p(t),r=kQ({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}function vp(e,t){var n,r,o,a,i,s,l,c,u,p=e.arrow,d=void 0!==p&&p,m=e.prefixCls,f=void 0===m?"rc-dropdown":m,g=e.transitionName,h=e.animation,b=e.align,_=e.placement,y=void 0===_?"bottomLeft":_,v=e.placements,w=void 0===v?MA:v,k=e.getPopupContainer,C=e.showAction,D=e.hideAction,x=e.overlayClassName,S=e.overlayStyle,E=e.visible,O=e.trigger,P=void 0===O?["hover"]:O,I=e.autoFocus,N=e.overlay,A=e.children,R=e.onVisibleChange,T=Sa(e,UA),j=Vi(UJ.useState(),2),$=j[1],F="visible"in e?E:j[0],L=UJ.useRef(null),M=UJ.useRef(null),U=UJ.useRef(null);return UJ.useImperativeHandle(t,(function(){return L.current})),function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=ey.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),i.current=!0,0))},c=function(e){switch(e.keyCode){case TA:s();break;case jA:var t=!1;i.current||(t=l()),t?e.preventDefault():s()}};ey.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&qO(l,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}}),[t])}({visible:F,triggerRef:U,onVisibleChange:r=function(e){$(e),null==R||R(e)},autoFocus:I,overlayRef:M}),o=function(t){var n=e.onOverlayClick;$(!1),n&&n(t)},a=function(){return UJ.createElement($A,{ref:M,overlay:N,prefixCls:f,arrow:d})},i=function(){return"function"==typeof N?a:a()},s=function(){return"minOverlayWidthMatchTrigger"in e?e.minOverlayWidthMatchTrigger:!e.alignPoint},l=UJ.cloneElement(A,{className:kQ(null===(n=A.props)||void 0===n?void 0:n.className,F&&(u=e.openClassName,void 0!==u?u:"".concat(f,"-open"))),ref:Bs(A)?zs(U,A.ref):void 0}),(c=D)||-1===P.indexOf("contextMenu")||(c=["click"]),UJ.createElement(_2,mi({builtinPlacements:w},T,{prefixCls:f,ref:L,popupClassName:kQ(x,xa({},"".concat(f,"-show-arrow"),d)),popupStyle:S,action:P,showAction:C,hideAction:c,popupPlacement:y,popupAlign:b,popupTransitionName:g,popupAnimation:h,popupVisible:F,stretch:s()?"minWidth":"",popup:i(),onPopupVisibleChange:r,onPopupClick:o,getPopupContainer:k}),l)}function wp(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function kp(e){return wp(ey.useContext(zA),e)}function Cp(e){var t=e.children,n=e.locked,r=Sa(e,HA),o=ey.useContext(BA),a=Si((function(){return e=r,t=Di({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Ni(e[1],t[1],!0))}));return ey.createElement(BA.Provider,{value:a},t)}function Dp(){return ey.useContext(VA)}function xp(e){var t=ey.useContext(GA);return ey.useMemo((function(){return void 0!==e?[].concat(ki(t),[e]):t}),[t,e])}function Sp(e,t){var n,r,o,a,i,s=arguments.length>1&&void 0!==t&&t;return!!KZ(e)&&(n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null,o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||s&&i<0))}function Ep(e,t){var n=function(e,t){var n=arguments.length>1&&void 0!==t&&t,r=ki(e.querySelectorAll("*")).filter((function(e){return Sp(e,n)}));return Sp(e,n)&&r.unshift(e),r}(e,!0);return n.filter((function(e){return t.has(e)}))}function Op(e,t,n,r){var o,a,i,s=arguments.length>3&&void 0!==r?r:1;return e?(a=(o=Ep(e,t)).length,i=o.findIndex((function(e){return n===e})),s<0?-1===i?i=a-1:i-=1:s>0&&(i+=1),o[i=(i+a)%a]):null}function Pp(e){var t,n=ey.useRef(e);return n.current=e,t=ey.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o1&&(a.motionAppear=!1),i=a.onVisibleChanged,a.onVisibleChanged=function(e){return _.current||e||r(!0),null==i?void 0:i(e)},n?null:ey.createElement(Cp,{mode:p,locked:!_.current},ey.createElement(dZ,mi({visible:o},a,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(m,"-hidden")}),(function(e){return ey.createElement(_R,{id:s,className:e.className,style:e.style},u)})))}function zp(e){var t=e.eventKey,n=e.children,r=xp(t),o=jp(n,r),a=Dp();return ey.useEffect((function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}}),[r]),ey.createElement(GA.Provider,{value:r},a?o:ey.createElement(SR,e,o))}function Hp(e){var t=e.children,n=Sa(e,IR),r=jp(t,xp(n.eventKey));return Dp()?r:ey.createElement(NR,Js(n,["warnKey"]),r)}function Bp(e){var t=e.className,n=e.style,r=ey.useContext(BA).prefixCls;return Dp()?null:ey.createElement("li",{className:kQ("".concat(r,"-item-divider"),t),style:n})}function Wp(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:a,type:i}=n,s=TR(n,["label","children","key","type"]),l=null!=a?a:`tmp-${t}`;return o||"group"===i?ey.createElement("group"===i?Hp:O5,Object.assign({key:l},s,{title:r}),Wp(o)):"divider"===i?ey.createElement(x5,Object.assign({key:l},s)):ey.createElement(E5,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function Vp(e){return ey.useMemo((()=>e?Wp(e):e),[e])}function Gp(e){return $l(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}function qp(e){return e&&"object"==typeof e?e:{}}function Xp(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=ey.useContext(S3),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return ey.createElement("div",{className:kQ("".concat(s,"-content-holder"))},ey.createElement("div",{className:kQ("".concat(s,"-content"),"".concat(s,"-content-").concat(o),xa({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,i=e.forceRender,s=e.style,l=e.className,p=Sa(e,FR),d=o===n;return ey.createElement(dZ,mi({key:o,visible:d,forceRender:i,removeOnLeave:!!a,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return ey.createElement($R,mi({},p,{prefixCls:u,id:t,tabKey:o,animated:c,active:d,style:Di(Di({},s),r),className:kQ(l,a),ref:n}))}))}))))}function Kp(e,t){var n=ey.useRef(e),r=Vi(ey.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}function Yp(e){var t=Vi(ey.useState(0),2),n=t[0],r=t[1],o=ey.useRef(0),a=ey.useRef();return a.current=e,hP((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function Jp(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Qp(e){return String(e).replace(/"/g,WR)}function Zp(e,t){var n=e.editable,r=e.locale,o=e.style;return n&&!1!==n.showAdd?ey.createElement("button",{ref:t,type:"button",className:"".concat(e.prefixCls,"-nav-add"),style:o,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},n.addIcon||"+"):null}function ed(e,t){function n(e){var t,n,r=l.filter((function(e){return!e.disabled})),o=r.findIndex((function(e){return e.key===E}))||0,a=r.length;for(t=0;tUe?Ue:e}function r(){u(Date.now())}function o(){window.clearTimeout(s.current)}function a(){qO.cancel(E.current)}var i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,L,M=ey.useContext(S3),U=M.prefixCls,z=M.tabs,H=e.className,B=e.style,W=e.id,V=e.animated,G=e.activeKey,q=e.rtl,X=e.extra,K=e.editable,Y=e.locale,J=e.tabPosition,Q=e.tabBarGutter,Z=e.children,ee=e.onTabClick,te=e.onTabScroll,ne=ey.useRef(),re=ey.useRef(),oe=ey.useRef(),ae=ey.useRef(),ie=ey.useRef(),se=ey.useRef(),le=ey.useRef(),ce="top"===J||"bottom"===J,ue=Vi(Kp(0,(function(e,t){ce&&te&&te({direction:e>t?"left":"right"})})),2),pe=ue[0],de=ue[1],me=Vi(Kp(0,(function(e,t){!ce&&te&&te({direction:e>t?"top":"bottom"})})),2),fe=me[0],ge=me[1],he=Vi(ey.useState([0,0]),2),be=he[0],_e=he[1],ye=Vi(ey.useState([0,0]),2),ve=ye[0],we=ye[1],ke=Vi(ey.useState([0,0]),2),Ce=ke[0],De=ke[1],xe=Vi(ey.useState([0,0]),2),Se=xe[0],Ee=xe[1],Oe=(T=new Map,j=ey.useRef([]),$=Vi(ey.useState({}),2)[1],F=ey.useRef("function"==typeof T?T():T),L=Yp((function(){var e=F.current;j.current.forEach((function(t){e=t(e)})),j.current=[],F.current=e,$({})})),[F.current,function(e){j.current.push(e),L()}]),Pe=Vi(Oe,2),Ie=Pe[1],Ne=function(e,t,n){return ey.useMemo((function(){var n,r,o,a,i,s,l=new Map,c=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||LR,u=c.left+c.width;for(r=0;ri?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},ey.useEffect((function(){function t(e){h.current.onTouchMove(e)}function n(e){h.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){h.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){h.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(ae,(function(e,t){function a(e,t){e((function(e){return n(e+t)}))}return!!$e&&(ce?a(de,e):a(ge,t),o(),r(),!0)})),ey.useEffect((function(){return o(),c&&(s.current=window.setTimeout((function(){u(0)}),100)),o}),[c]),p=function(e,t,n,r,o,a,i){var s,l,c,u=i.tabs,p=i.tabPosition,d=i.rtl;return["top","bottom"].includes(p)?(s="width",l=d?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),ey.useMemo((function(){var n,r,o,a,i,p;if(!u.length)return[0,0];for(r=n=u.length,o=0;oc+t){r=o-1;break}for(i=0,p=n-1;p>=0;p-=1)if((e.get(u[p].key)||BR)[l]=r?[0,0]:[i,r]}),[e,t,r,o,a,c,p,u.map((function(e){return e.key})).join("_"),d])}(Ne,Fe,ce?pe:fe,Re,Te,je,Di(Di({},e),{},{tabs:z})),m=(d=Vi(p,2))[0],f=d[1],g=Nl((function(e){var t,r,o=Ne.get(arguments.length>0&&void 0!==e?e:G)||{width:0,height:0,left:0,right:0,top:0};ce?(t=pe,q?o.rightpe+Fe&&(t=o.right+o.width-Fe):o.left<-pe?t=-o.left:o.left+o.width>-pe+Fe&&(t=-(o.left+o.width-Fe)),ge(0),de(n(t))):(r=fe,o.top<-fe?r=-o.top:o.top+o.height>-fe+Fe&&(r=-(o.top+o.height-Fe)),de(0),ge(n(r)))})),h={},"top"===J||"bottom"===J?h[q?"marginRight":"marginLeft"]=Q:h.marginTop=Q,b=z.map((function(e,t){var n=e.key;return ey.createElement(td,{id:W,prefixCls:U,key:n,tab:e,style:0===t?void 0:h,closable:e.closable,editable:K,active:n===G,renderWrapper:Z,removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,onClick:function(e){ee(n,e)},onFocus:function(){g(n),r(),ae.current&&(q||(ae.current.scrollLeft=0),ae.current.scrollTop=0)}})})),_=function(){return Ie((function(){var e=new Map;return z.forEach((function(t){var n,r=t.key,o=null===(n=ie.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(Qp(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},ey.useEffect((function(){_()}),[z.map((function(e){return e.key})).join("_")]),y=Yp((function(){var e,t,n,r=GR(ne),o=GR(re),a=GR(oe);_e([r[0]-o[0]-a[0],r[1]-o[1]-a[1]]),e=GR(le),De(e),t=GR(se),Ee(t),n=GR(ie),we([n[0]-e[0],n[1]-e[1]]),_()})),v=z.slice(0,m),w=z.slice(f+1),k=[].concat(ki(v),ki(w)),D=(C=Vi(ey.useState(),2))[0],x=C[1],S=Ne.get(G),E=ey.useRef(),ey.useEffect((function(){var e={};return S&&(ce?(q?e.right=S.right:e.left=S.left,e.width=S.width):(e.top=S.top,e.height=S.height)),a(),E.current=qO((function(){x(e)})),a}),[S,ce,q]),ey.useEffect((function(){g()}),[G,Me,Ue,Jp(S),Jp(Ne),ce]),ey.useEffect((function(){y()}),[q]),O=!!k.length,P="".concat(U,"-nav-wrap"),ce?q?(N=pe>0,I=pe!==Ue):(I=pe<0,N=pe!==Me):(A=fe<0,R=fe!==Me),ey.createElement(HO,{onResize:y},ey.createElement("div",{ref:Hs(t,ne),role:"tablist",className:kQ("".concat(U,"-nav"),H),style:B,onKeyDown:function(){r()}},ey.createElement(VR,{ref:re,position:"left",extra:X,prefixCls:U}),ey.createElement("div",{className:kQ(P,(i={},xa(i,"".concat(P,"-ping-left"),I),xa(i,"".concat(P,"-ping-right"),N),xa(i,"".concat(P,"-ping-top"),A),xa(i,"".concat(P,"-ping-bottom"),R),i)),ref:ae},ey.createElement(HO,{onResize:y},ey.createElement("div",{ref:ie,className:"".concat(U,"-nav-list"),style:{transform:"translate(".concat(pe,"px, ").concat(fe,"px)"),transition:c?"none":void 0}},b,ey.createElement(E3,{ref:le,prefixCls:U,locale:Y,editable:K,style:Di(Di({},0===b.length?void 0:h),{},{visibility:O?"hidden":null})}),ey.createElement("div",{className:kQ("".concat(U,"-ink-bar"),xa({},"".concat(U,"-ink-bar-animated"),V.inkBar)),style:D})))),ey.createElement(O3,mi({},e,{removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,ref:se,prefixCls:U,tabs:k,className:!O&&Le,tabMoving:!!c})),ey.createElement(VR,{ref:oe,position:"right",extra:X,prefixCls:U})))}function rd(e){var t=e.renderTabBar,n=Sa(e,XR),r=ey.useContext(S3).tabs;return t?t(Di(Di({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Sa(e,KR);return ey.createElement($R,mi({tab:t,key:n,tabKey:n},r))}))}),P3):ey.createElement(P3,n)}function od(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f=e.id,g=e.prefixCls,h=void 0===g?"rc-tabs":g,b=e.className,_=e.items,y=e.direction,v=e.activeKey,w=e.defaultActiveKey,k=e.editable,C=e.animated,D=e.tabPosition,x=void 0===D?"top":D,S=e.tabBarGutter,E=e.tabBarStyle,O=e.tabBarExtraContent,P=e.locale,I=e.moreIcon,N=e.moreTransitionName,A=e.destroyInactiveTabPane,R=e.renderTabBar,T=e.onChange,j=e.onTabClick,$=e.onTabScroll,F=e.getPopupContainer,L=e.popupClassName,M=Sa(e,YR),U=ey.useMemo((function(){return(_||[]).filter((function(e){return e&&"object"===Ca(e)&&"key"in e}))}),[_]),z="rtl"===y,H=function(e){var t,n=arguments.length>0&&void 0!==e?e:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!1}:Di({inkBar:!0},"object"===Ca(n)?n:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(C),B=Vi(ey.useState(!1),2),W=B[0],V=B[1];return ey.useEffect((function(){V(b2())}),[]),r=Vi(Tl((function(){var e;return null===(e=U[0])||void 0===e?void 0:e.key}),{value:v,defaultValue:w}),2),o=r[0],a=r[1],i=Vi(ey.useState((function(){return U.findIndex((function(e){return e.key===o}))})),2),s=i[0],l=i[1],ey.useEffect((function(){var e,t=U.findIndex((function(e){return e.key===o}));-1===t&&(t=Math.max(0,Math.min(s,U.length-1)),a(null===(e=U[t])||void 0===e?void 0:e.key)),l(t)}),[U.map((function(e){return e.key})).join("_"),o,s]),u=(c=Vi(Tl(null,{value:f}),2))[0],p=c[1],ey.useEffect((function(){f||(p("rc-tabs-".concat(JR)),JR+=1)}),[]),m=Di(Di({},d={id:u,activeKey:o,animated:H,tabPosition:x,rtl:z,mobile:W}),{},{editable:k,locale:P,moreIcon:I,moreTransitionName:N,tabBarGutter:S,onTabClick:function(e,t){null==j||j(e,t);var n=e!==o;a(e),n&&(null==T||T(e))},onTabScroll:$,extra:O,style:E,panes:null,getPopupContainer:F,popupClassName:L}),ey.createElement(S3.Provider,{value:{tabs:U,prefixCls:h}},ey.createElement("div",mi({ref:t,id:f,className:kQ(h,"".concat(h,"-").concat(x),(n={},xa(n,"".concat(h,"-mobile"),W),xa(n,"".concat(h,"-editable"),k),xa(n,"".concat(h,"-rtl"),z),n),b)},M),void 0,ey.createElement(rd,mi({},m,{renderTabBar:R})),ey.createElement(Xp,mi({destroyInactiveTabPane:A},d,{animated:H}))))}function ad(e){var{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:p,animated:d}=e,m=eT(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:f,moreIcon:g=ey.createElement(k5,null)}=m,{direction:h,getPrefixCls:b,getPopupContainer:_}=ey.useContext(VQ),y=b("tabs",f),[v,w]=M3(y);let k;"editable-card"===t&&(k={onEdit:(e,t)=>{let{key:n,event:r}=t;null==a||a("add"===e?r:n,e)},removeIcon:ey.createElement(OZ,null),addIcon:l||ey.createElement(x3,null),showAdd:!0!==i});const C=b(),D=function(e,t){return e||function(e){return e.filter((e=>e))}(Ms(t).map((e=>{if(ey.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,a=ZR(r,["tab"]);return Object.assign(Object.assign({key:String(t)},a),{label:o})}return null})))}(p,u),x=function(e,t){let n,r=arguments.length>1&&void 0!==t?t:{inkBar:!0,tabPane:!1};return n=!1===r?{inkBar:!1,tabPane:!1}:!0===r?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof r?r:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},I3),{motionName:K0(e,"switch")})),n}(y,d),S=lZ(o);return v(ey.createElement(QR,Object.assign({direction:h,getPopupContainer:_,moreTransitionName:`${C}-slide-up`},m,{items:D,className:kQ({[`${y}-${S}`]:S,[`${y}-card`]:["card","editable-card"].includes(t),[`${y}-editable-card`]:"editable-card"===t,[`${y}-centered`]:s},n,r,w),popupClassName:kQ(c,w),editable:k,moreIcon:g,prefixCls:y,animated:x})))}function id(e,t){const[n,r]=ey.useState("string"==typeof e?e:"");return ey.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;nNumber.MAX_SAFE_INTEGER)return String(ld()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e3&&void 0!==r&&r;return""===e?"":(a=(o=ud(e)).negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i),n>=0?(u=Number(s[n]))>=5&&!p?hd(gd(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,p):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n)):".0"===l?c:"".concat(c).concat(l))}function bd(e){var t,n,r,o,a,i,s=e.prefixCls,l=e.upNode,c=e.downNode,u=e.upDisabled,p=e.downDisabled,d=e.onStep,m=ey.useRef(),f=ey.useRef();return f.current=d,t=function(e,t){e.preventDefault(),f.current(t),m.current=setTimeout((function e(){f.current(t),m.current=setTimeout(e,mT)}),fT)},n=function(){clearTimeout(m.current)},ey.useEffect((function(){return n}),[]),dT()?null:(r="".concat(s,"-handler"),o=kQ(r,"".concat(r,"-up"),xa({},"".concat(r,"-up-disabled"),u)),a=kQ(r,"".concat(r,"-down"),xa({},"".concat(r,"-down-disabled"),p)),i={unselectable:"on",role:"button",onMouseUp:n,onMouseLeave:n},ey.createElement("div",{className:"".concat(r,"-wrap")},ey.createElement("span",mi({},i,{onMouseDown:function(e){t(e,!0)},"aria-label":"Increase Value","aria-disabled":u,className:o}),l||ey.createElement("span",{unselectable:"on",className:"".concat(s,"-handler-up-inner")})),ey.createElement("span",mi({},i,{onMouseDown:function(e){t(e,!1)},"aria-label":"Decrease Value","aria-disabled":p,className:a}),c||ey.createElement("span",{unselectable:"on",className:"".concat(s,"-handler-down-inner")}))))}function _d(e){var t="number"==typeof e?md(e):ud(e).fullStr;return t.includes(".")?ud(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function yd(e){return!(!e.addonBefore&&!e.addonAfter)}function vd(e){return!!(e.prefix||e.suffix||e.allowClear)}function wd(e,t,n,r){var o,a;if(n)return o=t,"click"===t.type?(a=e.cloneNode(!0),o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",void n(o)):void 0!==r?(o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o)):void n(o)}function kd(e){return null==e?"":String(e)}function Cd(e,t){const n=ey.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return ey.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}function Dd(e,t){return ki(e||"").slice(0,t).join("")}function xd(e,t,n,r){var o=n;return e?o=Dd(n,r):ki(t||"").lengthr&&(o=t),o}function Sd(e){return"string"==typeof e&&String(Number(e))===e?(Ii(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Ed(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y=e.prefixCls,v=e.open,w=e.placement,k=e.inline,C=e.push,D=e.forceRender,x=e.autoFocus,S=e.keyboard,E=e.rootClassName,O=e.rootStyle,P=e.zIndex,I=e.className,N=e.style,A=e.motion,R=e.width,T=e.height,j=e.children,$=e.contentWrapperStyle,F=e.mask,L=e.maskClosable,M=e.maskMotion,U=e.maskClassName,z=e.maskStyle,H=e.afterOpenChange,B=e.onClose,W=e.onMouseEnter,V=e.onMouseOver,G=e.onMouseLeave,q=e.onClick,X=e.onKeyDown,K=e.onKeyUp,Y=ey.useRef(),J=ey.useRef(),Q=ey.useRef();if(ey.useImperativeHandle(t,(function(){return Y.current})),i=function(e){var t,n,r=e.keyCode,o=e.shiftKey;switch(r){case aI.TAB:r===aI.TAB&&(o||document.activeElement!==Q.current?o&&document.activeElement===J.current&&(null===(n=Q.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=J.current)||void 0===t||t.focus({preventScroll:!0}));break;case aI.ESC:B&&S&&(e.stopPropagation(),B(e))}},ey.useEffect((function(){var e;v&&x&&(null===(e=Y.current)||void 0===e||e.focus({preventScroll:!0}))}),[v]),l=(s=Vi(ey.useState(!1),2))[0],c=s[1],u=ey.useContext(TT),p=null!==(n=null!==(r=null===(o=!1===C?{distance:0}:!0===C?{}:C||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==u?void 0:u.pushDistance)&&void 0!==n?n:180,d=ey.useMemo((function(){return{pushDistance:p,push:function(){c(!0)},pull:function(){c(!1)}}}),[p]),ey.useEffect((function(){var e,t;v?null==u||null===(e=u.push)||void 0===e||e.call(u):null==u||null===(t=u.pull)||void 0===t||t.call(u)}),[v]),ey.useEffect((function(){return function(){var e;null==u||null===(e=u.pull)||void 0===e||e.call(u)}}),[]),m=F&&ey.createElement(dZ,mi({key:"mask"},M,{visible:v}),(function(e,t){var n=e.className,r=e.style;return ey.createElement("div",{className:kQ("".concat(y,"-mask"),n,U),style:Di(Di({},r),z),onClick:L&&v?B:void 0,ref:t})})),f="function"==typeof A?A(w):A,g={},l&&p)switch(w){case"top":g.transform="translateY(".concat(p,"px)");break;case"bottom":g.transform="translateY(".concat(-p,"px)");break;case"left":g.transform="translateX(".concat(p,"px)");break;default:g.transform="translateX(".concat(-p,"px)")}return"left"===w||"right"===w?g.width=Sd(R):g.height=Sd(T),h={onMouseEnter:W,onMouseOver:V,onMouseLeave:G,onClick:q,onKeyDown:X,onKeyUp:K},b=ey.createElement(dZ,mi({key:"panel"},f,{visible:v,forceRender:D,onVisibleChanged:function(e){null==H||H(e)},removeOnLeave:!1,leavedClassName:"".concat(y,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return ey.createElement("div",mi({className:kQ("".concat(y,"-content-wrapper"),r),style:Di(Di(Di({},g),o),$)},ac(e,{data:!0})),ey.createElement(jT,mi({containerRef:n,prefixCls:y,className:I,style:N},h),j))})),_=Di({},O),P&&(_.zIndex=P),ey.createElement(TT.Provider,{value:d},ey.createElement("div",{className:kQ(y,"".concat(y,"-").concat(w),E,(a={},xa(a,"".concat(y,"-open"),v),xa(a,"".concat(y,"-inline"),k),a)),style:_,tabIndex:-1,ref:Y,onKeyDown:i},m,ey.createElement("div",{tabIndex:0,ref:J,style:$T,"aria-hidden":"true","data-sentinel":"start"}),b,ey.createElement("div",{tabIndex:0,ref:Q,style:$T,"aria-hidden":"true","data-sentinel":"end"})))}function Od(e){const{rootClassName:t,width:n,height:r,size:o="default",mask:a=!0,push:i=j4,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:p,visible:d,afterVisibleChange:m}=e,f=MT(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","visible","afterVisibleChange"]),{getPopupContainer:g,getPrefixCls:h,direction:b}=ey.useContext(VQ),_=h("drawer",u),[y,v]=T4(_),w=void 0===p&&g?()=>g(document.body):p,k=kQ({"no-mask":!a,[`${_}-rtl`]:"rtl"===b},t,v),C=ey.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),D=ey.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),x={motionName:K0(_,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};return y(ey.createElement(a0,null,ey.createElement(o1,{status:!0,override:!0},ey.createElement(LT,Object.assign({prefixCls:_,onClose:c,maskMotion:x,motion:e=>({motionName:K0(_,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},f,{open:null!=s?s:d,mask:a,push:i,width:C,height:D,rootClassName:k,getContainer:w,afterOpenChange:null!=l?l:m}),ey.createElement(N4,Object.assign({prefixCls:_},f,{onClose:c}))))))}function Pd(e){let{className:t,direction:n,index:r,marginDirection:o,children:a,split:i,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:p,supportFlexGap:d}=ey.useContext($4);let m={};return d||("vertical"===n?r{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}function Nd(e,t,n,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==r?r:0}`,error:e,errorStatus:n}}function Ad(e){let{help:t,helpStatus:n,errors:r=Q4,warnings:o=Q4,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:l}=ey.useContext(n1),c=`${l}-item-explain`,[,u]=J4(l),p=ey.useMemo((()=>q0(l)),[l]),d=Id(r),m=Id(o),f=ey.useMemo((()=>null!=t?[Nd(t,"help",n)]:[].concat(ki(d.map(((e,t)=>Nd(e,"error","error",t)))),ki(m.map(((e,t)=>Nd(e,"warning","warning",t)))))),[t,n,d,m]),g={};return i&&(g.id=`${i}_help`),ey.createElement(dZ,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!f.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return ey.createElement("div",Object.assign({},g,{className:kQ(c,t,a,u),style:n,role:"alert"}),ey.createElement(mZ,Object.assign({keys:f},q0(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:a}=e;return ey.createElement("div",{key:t,className:kQ(o,{[`${c}-${r}`]:r}),style:a},n)})))}))}function Rd(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Td(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Z4.includes(n)?`${e8}_${n}`:n}function jd(e){return Rd(e).join("_")}function $d(e){const[t]=du(),n=ey.useRef({}),r=ey.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=jd(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e,t){let n=arguments.length>1&&void 0!==t?t:{};const o=Td(Rd(e),r.__INTERNAL__.name),a=o?document.getElementById(o):null;a&&function(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;if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior(MZ(e,t));var n;const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:a,left:i}of MZ(e,UZ(t)))o.scroll({top:a,left:i,behavior:r})}(a,Object.assign({scrollMode:"if-needed",block:"nearest"},n))},getFieldInstance:e=>{const t=jd(e);return n.current[t]}})),[e,t]);return[r]}function Fd(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:p,children:d,fieldId:m,required:f,isRequired:g,onSubItemMetaChange:h}=e,b=BT(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),_=`${t}-item`,{requiredMark:y}=ey.useContext(Z0),v=ey.useRef(null),w=Id(i),k=Id(s),C=null!=a,D=!!(C||i.length||s.length),x=!!v.current&&KZ(v.current),[S,E]=ey.useState(null);gP((()=>{if(D&&v.current){const e=getComputedStyle(v.current);E(parseInt(e.marginBottom,10))}}),[D,x]);const O=function(e){let t=arguments.length>0&&void 0!==e&&e,n="";return void 0!==l?n=l:c.validating?n="validating":(t?w:c.errors).length?n="error":(t?k:c.warnings).length?n="warning":(c.touched||u&&c.validated)&&(n="success"),n}(),P=ey.useMemo((()=>{let e;if(u){const t=O&&c8[O];e=t?ey.createElement("span",{className:kQ(`${_}-feedback-icon`,`${_}-feedback-icon-${O}`)},ey.createElement(t,null)):null}return{status:O,errors:i,warnings:s,hasFeedback:u,feedbackIcon:e,isFormItemInput:!0}}),[O,u]),I=kQ(_,n,r,{[`${_}-with-help`]:C||w.length||k.length,[`${_}-has-feedback`]:O&&u,[`${_}-has-success`]:"success"===O,[`${_}-has-warning`]:"warning"===O,[`${_}-has-error`]:"error"===O,[`${_}-is-validating`]:"validating"===O,[`${_}-hidden`]:p});return ey.createElement("div",{className:I,style:o,ref:v},ey.createElement(K3,Object.assign({className:`${_}-row`},Js(b,["_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"])),ey.createElement(l8,Object.assign({htmlFor:m},e,{requiredMark:y,required:null!=f?f:g,prefixCls:t})),ey.createElement(a8,Object.assign({},e,c,{errors:w,warnings:k,prefixCls:t,status:O,help:a,marginBottom:S,onErrorVisibleChanged:e=>{e||E(null)}}),ey.createElement(e1.Provider,{value:h},ey.createElement(r1.Provider,{value:P},d)))),!!S&&ey.createElement("div",{className:`${_}-margin-offset`,style:{marginBottom:-S}}))}function Ld(){if(!f8){const e=document.createDocumentFragment(),t={fragment:e};return f8=t,void g8((()=>{bc(ey.createElement(_8,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Ld())}))}}),e)}))}f8.instance&&(h8.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":g8((()=>{const t=f8.instance.open(Object.assign(Object.assign({},b8),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":g8((()=>{null==f8||f8.instance.destroy(e.key)}));break;default:g8((()=>{var n;const r=(n=f8.instance)[t].apply(n,ki(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),h8=[])}function Md(e){return _u(yu(e))}function Ud(){if(!D8){const e=document.createDocumentFragment(),t={fragment:e};return D8=t,void x8((()=>{bc(ey.createElement(O8,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Ud())}))}}),e)}))}D8.instance&&(S8.forEach((e=>{switch(e.type){case"open":x8((()=>{D8.instance.open(Object.assign(Object.assign({},E8),e.config))}));break;case"destroy":x8((()=>{null==D8||D8.instance.destroy(e.key)}))}})),S8=[])}function zd(e){S8.push({type:"open",config:e}),Ud()}function Hd(e){var t,n,r=e.prefixCls,o=e.containerRef,a=e.value,i=e.getValueIndex,s=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,u=e.direction,p=ey.useRef(null),d=Vi(ey.useState(a),2),m=d[0],f=d[1],g=function(e){var t,n=i(e),a=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".".concat(r,"-item"))[n];return(null==a?void 0:a.offsetParent)&&a},h=Vi(ey.useState(null),2),b=h[0],_=h[1],y=Vi(ey.useState(null),2),v=y[0],w=y[1];return gP((function(){var e,t,n,r;m!==a&&(e=g(m),t=g(a),n=GT(e),r=GT(t),f(a),_(n),w(r),e&&t?l():c())}),[a]),t=ey.useMemo((function(){return qT("rtl"===u?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,b]),n=ey.useMemo((function(){return qT("rtl"===u?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[u,v]),b&&v?ey.createElement(dZ,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){_(null),w(null),c()}},(function(e,o){var a=e.className,i=Di(Di({},e.style),{},{"--thumb-start-left":t,"--thumb-start-width":qT(null==b?void 0:b.width),"--thumb-active-left":n,"--thumb-active-width":qT(null==v?void 0:v.width)}),s={ref:zs(p,o),style:i,className:kQ("".concat(r,"-thumb"),a)};return ey.createElement("div",s)})):null}function Bd(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Wd(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}function Vd(e,t,n){return(e-t)/(n-t)}function Gd(e,t,n,r){var o=Vd(t,n,r),a={};switch(e){case"rtl":a.right="".concat(100*o,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(100*o,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(100*o,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(100*o,"%"),a.transform="translateX(-50%)"}return a}function qd(e,t){return Array.isArray(e)?e[t]:e}function Xd(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Kd(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,i=e.onStartMove,s=ey.useContext(QT),l=s.direction,c=s.min,u=s.max,p=s.disabled,d=s.range,m="".concat(t,"-track"),f=Vd(r,c,u),g=Vd(o,c,u),h=function(e){!p&&i&&i(e,-1)},b={};switch(l){case"rtl":b.right="".concat(100*f,"%"),b.width="".concat(100*g-100*f,"%");break;case"btt":b.bottom="".concat(100*f,"%"),b.height="".concat(100*g-100*f,"%");break;case"ttb":b.top="".concat(100*f,"%"),b.height="".concat(100*g-100*f,"%");break;default:b.left="".concat(100*f,"%"),b.width="".concat(100*g-100*f,"%")}return ey.createElement("div",{className:kQ(m,d&&"".concat(m,"-").concat(a+1)),style:Di(Di({},b),n),onMouseDown:h,onTouchStart:h})}function Yd(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=ey.useContext(QT),s=i.included,l=i.range,c=i.min,u=ey.useMemo((function(){var e,t,n,a;if(!l)return 0===r.length?[]:(e=null!=o?o:c,t=r[0],[{start:Math.min(e,t),end:Math.max(e,t)}]);for(n=[],a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,c=i):o>=3&&o<4?(l=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i),r(s+(u=n-a/2),l+u,c+u))}function Tm(e){var t,n,r,o,a,i,s,l,c,u,p;if("string"!=typeof e)throw new oF(3);if(t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return aF[t]?"#"+aF[t]:e}(e),t.match(iF))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(sF))return n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n};if(t.match(lF))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(cF))return r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r};if(o=uF.exec(t))return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};if(a=pF.exec(t.substring(0,50)))return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};if(i=dF.exec(t)){if(s="rgb("+Rm(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",!(l=uF.exec(s)))throw new oF(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}if(c=mF.exec(t.substring(0,50))){if(u="rgb("+Rm(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",!(p=uF.exec(u)))throw new oF(4,t,u);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new oF(5)}function jm(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function $m(e){return jm(Math.round(255*e))}function Fm(e,t,n){return fF("#"+$m(e)+$m(t)+$m(n))}function Lm(e,t,n){return Rm(e,t,n,Fm)}function Mm(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return fF("#"+jm(e)+jm(t)+jm(n));if("object"==typeof e&&void 0===t&&void 0===n)return fF("#"+jm(e.red)+jm(e.green)+jm(e.blue));throw new oF(6)}function Um(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Tm(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Mm(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Mm(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new oF(7)}function zm(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):zm(e,t,r)}}function Hm(e){return zm(e,e.length,[])}function Bm(e,t){if("transparent"===t)return t;var n=function(e){return function(e){var t,n,r,o=e.red/255,a=e.green/255,i=e.blue/255,s=Math.max(o,a,i),l=Math.min(o,a,i),c=(s+l)/2;if(s===l)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};switch(n=s-l,r=c>.5?n/(2-s-l):n/(s+l),s){case o:t=(a-i)/n+(a=1?Lm(e.hue,e.saturation,e.lightness):"rgba("+Rm(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new oF(2)}(e);if(bF(e))return function(e){if("object"==typeof e)return Lm(e.hue,e.saturation,e.lightness);throw new oF(1)}(e);throw new oF(8)}(mi({},n,{hue:n.hue+parseFloat(e)}))}function Wm(e){var t,n;return"transparent"===e?0:(t=Tm(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),parseFloat((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3)))}function Vm(e,t,n,r){var o,a,i,s,l;return void 0===t&&(t=vF),void 0===n&&(n=wF),void 0===r&&(r=!0),a=(o=Wm(e)>.179)?t:n,!r||(i=a,s=Wm(e),l=Wm(i),parseFloat((s>l?(s+.05)/(l+.05):(l+.05)/(s+.05)).toFixed(2))>=4.5)?a:o?vF:wF}function Gm(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function qm(e){var t,n;for(t=1;t=48&&e<=57}function lf(e){return`${E6}${e}`}async function cf(e){const t=[],n=S6(await async function(e){const t=lf(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e),t,{allowTrailingComma:!0});if(t.length)throw t[0];return n}async function uf(e){const t=pf(await cf(e));if(t.include){const n=await uf(rf(...nf(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function pf(e){const t={name:e.name,type:e.type||"dark",...e,...df(e)};var n;return e.include&&(t.include=e.include),e.tokenColors&&(t.settings=e.tokenColors,delete t.tokenColors),(n=t).settings||(n.settings=[]),n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}}),t}function df(e){var t,n,r,o;let a,i,s=e.settings?e.settings:e.tokenColors;const l=s?s.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==l?void 0:l.settings)?void 0:t.foreground)&&(a=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(i=l.settings.background),!a&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(a=e.colors["editor.foreground"]),!i&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(i=e.colors["editor.background"]),a||(a="light"===e.type?I6.light:I6.dark),i||(i="light"===e.type?N6.light:N6.dark),{fg:a,bg:i}}function mf(e,t){let n=[];for(let r=0,o=t.length;r=0&&a>=0;)ff(t[o],r[a])&&o--,a--;return-1===o}function hf(e,t,n){let r=[],o=0;for(let a=0,i=e.settings.length;ae.trim()));else{if(!Array.isArray(s.scope))continue;i=s.scope}for(let e=0,a=i.length;e{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function _f(e){function t(e){const t=e?c.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(c.setTheme(t),p=t);const n=c.getColorMap();return"css"===t.type&&function(e,t){e.bg=d[e.bg]||e.bg,e.fg=d[e.fg]||e.fg,t.forEach(((e,n)=>{t[n]=d[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function n(e,n="text",r,o={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(n))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:a}=function(e){const t=c.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(n),{_theme:i,_colorMap:s}=t(r);return function(e,t,n,r,o){let a=n.split(/\r\n|\r|\n/),i=GF.INITIAL,s=[],l=[];for(let c=0,u=a.length;c({createOnigScanner:e=>VF.createOnigScanner(e),createOnigString:e=>VF.createOnigString(e)})))}return P6}(s),"vscode-oniguruma"),c=new j6(l);(null==(r=e.paths)?void 0:r.themes)&&(c.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(o=e.paths)?void 0:o.languages)&&(l.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await c.loadThemes(i))[0];let p;await c.loadLanguages(a);let d={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};return{codeToThemedTokens:n,codeToHtml:function(e,r="text",o){let a;a="object"==typeof r?r:{lang:r,theme:o};const i=n(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:s}=t(a.theme);return function(e,t={}){function n(e="",t={},n){const r=a[e]||R6[e];return r?r({...t,children:(n=n.filter(Boolean)).join("code"===e?"\n":"")}):""}const r=t.bg||"#fff",o=function(e){const t=new Map;for(const n of e){const e=n.line;t.has(e)?t.get(e).push(n):t.set(e,[n])}return t}(t.lineOptions??[]),a=t.elements||{};return n("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`
${t.langId}
`:"",n("code",{},e.map(((r,a)=>n("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(o.get(a+1)??[]).join(" "),lines:e,line:r,index:a},r.map(((e,o)=>{const a=[`color: ${e.color||t.fg}`];return e.fontStyle&qF.Italic&&a.push("font-style: italic"),e.fontStyle&qF.Bold&&a.push("font-weight: bold"),e.fontStyle&qF.Underline&&a.push("text-decoration: underline"),n("token",{style:a.join("; "),tokens:r,token:e,index:o},[(i=e.content,i.replace(/[&<>"']/g,(e=>T6[e])))]);var i}))))))])}(i,{fg:s.fg,bg:s.bg,lineOptions:null==a?void 0:a.lineOptions,themeName:s.name})},getTheme:e=>t(e)._theme,loadTheme:async function(e){await c.loadTheme(e)},loadLanguage:async function(e){const t=bf(e);l.addLanguage(t),await c.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:n}=t(e);return n.bg},getForegroundColor:function(e){const{_theme:n}=t(e);return n.fg},getLoadedThemes:function(){return c.getLoadedThemes()},getLoadedLanguages:function(){return c.getLoadedLanguages()},setColorReplacements:function(e){d=e}}}function yf(e){var t,n=e.getSnapshot;e=e.value;try{return t=n(),!oL(e,t)}catch(r){return!0}}function vf(e,t){var n,r,o,a,i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;n=i.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(a)throw a.error}}return o}function wf(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o52;t=t/52|0)n=VW(t%52)+n;return(VW(t%52)+n).replace(WW,"$1-$2")}function fg(e){return"string"==typeof e&&!0}function gg(e){return("type"in(t=e)&&t.type.$$typeof)===YW?eV:"$$typeof"in e?tV[e.$$typeof]:QW;var t}function hg(e,t,n){var r,o,a,i,s,l,c;if("string"!=typeof t)for(sV&&(r=iV(t))&&r!==sV&&hg(e,r,n),o=rV(t),oV&&(o=o.concat(oV(t))),a=gg(e),i=gg(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}function xg(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=xg(e.children,t)),e}))}function Sg(){return ey.useContext(PV)}function Eg(e){var t,n,r;for(t="",n=0;n>>0)}("6.0.1"+p+FV[p])),c?"".concat(c,"-").concat(u):u):b,y=t.displayName,v=void 0===y?function(e){return fg(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):y,w=t.displayName&&t.componentId?"".concat(dg(t.displayName),"-").concat(t.componentId):t.componentId||_,k=d&&m.attrs?m.attrs.concat(h).filter(Boolean):h,C=t.shouldForwardProp;return d&&m.shouldForwardProp&&(o=m.shouldForwardProp,t.shouldForwardProp?(a=t.shouldForwardProp,C=function(e,t){return o(e,t)&&a(e,t)}):C=o),i=new jV(n,w,d?m.componentStyle:void 0),r.displayName=v,(s=UJ.forwardRef(r)).attrs=k,s.componentStyle=i,s.displayName=v,s.shouldForwardProp=C,s.foldedComponentIds=d?yg(m.foldedComponentIds,m.styledComponentId):"",s.styledComponentId=w,s.target=d?m.target:e,Object.defineProperty(s,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=d?function(e){var t,n,r,o;for(t=[],n=1;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return o=!0,a=!1,{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==s.return||s.return()}finally{if(a)throw i}}}}function $g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,S7(e,r))}function Xg(e,t){function n(){return s.getFixedT(r.lng||null,"fallback"===l.nsMode?p:p[0],u)}let r=arguments.length>1&&void 0!==t?t:{};const{i18n:o}=r,{i18n:a,defaultNS:i}=ey.useContext(R7)||{},s=o||a||I7;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new T7),!s){Vg("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&Vg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...N7,...s.options.react,...r},{useSuspense:c,keyPrefix:u}=l;let p=e||i||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);const d=(s.isInitialized||s.initializedStoreOnce)&&p.every((e=>function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=t.languages[0],a=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(o,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(o,e)||a&&!s(i,e)))}(e,t,r):(Vg("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l))),[m,f]=ey.useState(n);let g=p.join();r.lng&&(g=`${r.lng}${g}`);const h=(e=>{const t=ey.useRef();return ey.useEffect((()=>{t.current=e}),[e,void 0]),t.current})(g),b=ey.useRef(!0);ey.useEffect((()=>{function e(){b.current&&f(n)}const{bindI18n:t,bindI18nStore:o}=l;return b.current=!0,d||c||(r.lng?qg(s,r.lng,p,(()=>{b.current&&f(n)})):Gg(s,p,(()=>{b.current&&f(n)}))),d&&h&&h!==g&&b.current&&f(n),t&&s&&s.on(t,e),o&&s&&s.store.on(o,e),()=>{b.current=!1,t&&s&&t.split(" ").forEach((t=>s.off(t,e))),o&&s&&o.split(" ").forEach((t=>s.store.off(t,e)))}}),[s,g]);const _=ey.useRef(!0);ey.useEffect((()=>{b.current&&!_.current&&f(n),_.current=!1}),[s,u]);const y=[m,s,d];if(y.t=m,y.i18n=s,y.ready=d,d)return y;if(!d&&!c)return y;throw new Promise((e=>{r.lng?qg(s,r.lng,p,(()=>e())):Gg(s,p,(()=>e()))}))}function Kg(e){var t,n,r=this;if(r instanceof Kg||(r=new Kg),r.tail=null,r.head=null,r.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(t=0,n=arguments.length;tthis.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!m(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&f(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&p)|(this.options.loose&&d))+":"+e,a=t.get(n);if(a)return a;const f=this.options.loose;e=e.replace(f?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE],S(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(i[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(i[s.CARETTRIM],u),o("caret trim",e);let g=e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>x(e,this.options)));f&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(i[s.COMPARATORLOOSE]))))),o("range list",g);const b=new Map,_=g.map((e=>new r(e,this.options)));for(const t of _){if(m(t))return[t];b.set(t.value,t)}b.size>1&&b.has("")&&b.delete("");const y=[...b.values()];return t.set(n,y),y}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(t){return!1}for(let n=0;n"<0.0.0-0"===e.value,f=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},h=(e,t)=>(o("comp",e,t),e=v(e,t),o("caret",e),e=_(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=D(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>e.replace(t.loose?i[s.TILDELOOSE]:i[s.TILDE],((t,n,r,a,i)=>{let s;return o("tilde",e,t,n,r,a,i),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(a)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:i?(o("replaceTilde pr",i),s=`>=${n}.${r}.${a}-${i} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,o("tilde return",s),s})),v=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?i[s.CARETLOOSE]:i[s.CARET],((t,r,a,i,s)=>{let l;return o("caret",e,t,r,a,i,s),b(r)?l="":b(a)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(i)?l="0"===r?`>=${r}.${a}.0${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.0${n} <${+r+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===r?"0"===a?`>=${r}.${a}.${i}-${s} <${r}.${a}.${+i+1}-0`:`>=${r}.${a}.${i}-${s} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${i}-${s} <${+r+1}.0.0-0`):(o("no pr"),l="0"===r?"0"===a?`>=${r}.${a}.${i}${n} <${r}.${a}.${+i+1}-0`:`>=${r}.${a}.${i}${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${i} <${+r+1}.0.0-0`),o("caret return",l),l}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>(e=e.trim()).replace(t.loose?i[s.XRANGELOOSE]:i[s.XRANGE],((n,r,a,i,s,l)=>{o("xRange",e,n,r,a,i,s,l);const c=b(a),u=c||b(i),p=u||b(s);return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),s=0,">"===r?(r=">=",u?(a=+a+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(l="-0"),n=`${r+a}.${i}.${s}${l}`):u?n=`>=${a}.0.0${l} <${+a+1}.0.0-0`:p&&(n=`>=${a}.${i}.0${l} <${a}.${+i+1}.0-0`),o("xRange return",n),n})),D=(e,t)=>(o("replaceStars",e,t),e.trim().replace(i[s.STAR],"")),x=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(i[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),S=e=>(t,n,r,o,a,i,s,l,c,u,p,d)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(a)?`>=${r}.${o}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),E=(e,t,n)=>{for(let r=0;r0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return eq}function Qg(){if(rq)return nq;rq=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,i("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new s(n[2],this.options.loose):e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(n){return!1}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}nq=t;const n=DG,{safeRe:r,t:o}=CG,a=XG,i=kG,s=SG,l=Jg();return nq}function Zg(e,t){var n,r,o,a,i;for(n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0&&void 0!==t?t:[],l=arguments.length>1&&void 0!==n?n:{publishSource:!0},c=l.publishSource,u=void 0===c||c,p=l.clientOffset,d=l.getSourceClientOffset,m=e.getMonitor(),f=e.getRegistry();if(e.dispatch(eh(p)),function(e,t,n){Zg(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){Zg(n.getSource(e),"Expected sourceIds to be registered.")}))}(s,m,f),r=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(s,m),null!==r){if(o=null,p){if(!d)throw new Error("getSourceClientOffset must be defined");!function(e){Zg("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(d),o=d(r)}if(e.dispatch(eh(p,o)),null!=(a=f.getSource(r).beginDrag(m,r)))return function(e){Zg(nh(e),"Item must be an object.")}(a),f.pinSource(r),i=f.getSourceType(r),{type:vq,payload:{itemType:i,item:a,sourceId:r,clientOffset:p||null,sourceClientOffset:o||null,isSourcePublic:!!u}}}else e.dispatch(xq)}}function oh(e){return function(){if(e.getMonitor().isDragging())return{type:wq}}}function ah(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function ih(e){return function(t,n){var r,o,a,i=(arguments.length>1&&void 0!==n?n:{}).clientOffset;return function(e){Zg(Array.isArray(e),"Expected targetIds to be an array.")}(t),function(e,t,n){var r,o;for(Zg(t.isDragging(),"Cannot call hover while not dragging."),Zg(!t.didDrop(),"Cannot call hover after drop."),r=0;r=0;r--)ah(t.getTargetType(e[r]),n)||e.splice(r,1)}(r,a,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,a),{type:kq,payload:{targetIds:r,clientOffset:i||null}}}}function sh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function lh(e){var t,n;for(t=1;t0&&void 0!==t?t:{},o=e.getMonitor(),a=e.getRegistry();!function(e){Zg(e.isDragging(),"Cannot call drop while not dragging."),Zg(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(o),n=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(o),n.forEach((function(t,n){var i=function(e,t,n,r){var o=n.getTarget(e),a=o?o.drop(r,e):void 0;return function(e){Zg(void 0===e||nh(e),"Drop result must either be an object or undefined.")}(a),void 0===a&&(a=0===t?{}:r.getDropResult()),a}(t,n,a,o),s={type:Cq,payload:{dropResult:lh(lh({},r),i)}};e.dispatch(s)}))}}function ph(e){return function(){var t,n=e.getMonitor(),r=e.getRegistry();return function(e){Zg(e.isDragging(),"Cannot call endDrag while not dragging.")}(n),null!=(t=n.getSourceId())&&(r.getSource(t,!0).endDrag(n,t),r.unpinSource()),{type:Dq}}}function dh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mh(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}function fh(e,t,n,r){function o(){d===p&&(d=p.slice())}function a(){if(m)throw new Error(mh(3));return u}function i(e){if("function"!=typeof e)throw new Error(mh(4));if(m)throw new Error(mh(5));var t=!0;return o(),d.push(e),function(){if(t){if(m)throw new Error(mh(6));t=!1,o();var n=d.indexOf(e);d.splice(n,1),p=null}}}function s(e){var t,n;if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(mh(7));if(void 0===e.type)throw new Error(mh(8));if(m)throw new Error(mh(9));try{m=!0,u=c(u,e)}finally{m=!1}for(t=p=d,n=0;n0&&void 0!==e?e:Nq,a=arguments.length>1?t:void 0,i=a.payload;switch(a.type){case yq:case vq:return{initialSourceClientOffset:i.sourceClientOffset,initialClientOffset:i.clientOffset,clientOffset:i.clientOffset};case kq:return r=i.clientOffset,!(n=o.clientOffset)&&!r||n&&r&&n.x===r.x&&n.y===r.y?o:hh(hh({},o),{},{clientOffset:i.clientOffset});case Dq:case Cq:return Nq;default:return o}}function yh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function vh(e){var t,n;for(t=1;t0&&void 0!==e?e:$q,a=arguments.length>1?t:void 0,i=a.payload;switch(a.type){case vq:return vh(vh({},o),{},{itemType:i.itemType,item:i.item,sourceId:i.sourceId,isSourcePublic:i.isSourcePublic,dropResult:null,didDrop:!1});case wq:return vh(vh({},o),{},{isSourcePublic:!0});case kq:return vh(vh({},o),{},{targetIds:i.targetIds});case jq:return-1===o.targetIds.indexOf(i.targetId)?o:vh(vh({},o),{},{targetIds:(n=o.targetIds,r=i.targetId,n.filter((function(e){return e!==r})))});case Cq:return vh(vh({},o),{},{dropResult:i.dropResult,didDrop:!0,targetIds:[]});case Dq:return vh(vh({},o),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return o}}function Ch(e,t){var n=arguments.length>0&&void 0!==e?e:0;switch((arguments.length>1?t:void 0).type){case Aq:case Rq:return n+1;case Tq:case jq:return n-1;default:return n}}function Dh(e,t){var n,r,o,a,i,s,l,c,u,p=arguments.length>1?t:void 0;switch(p.type){case kq:break;case Aq:case Rq:case jq:case Tq:return Fq;default:return Lq}return l=(s=function(e,t){var n,r=new Map,o=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};return e.forEach(o),t.forEach(o),n=[],r.forEach((function(e,t){1===e&&n.push(t)})),n}(o=void 0===(r=(n=p.payload).targetIds)?[]:r,i=void 0===(a=n.prevTargetIds)?[]:a)).length>0||!function(e,t,n){var r,o=arguments.length>2&&void 0!==n?n:Iq;if(e.length!==t.length)return!1;for(r=0;r0&&void 0!==e?e:0)+1}function Sh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Eh(e){var t,n;for(t=1;t0&&void 0!==e?e:{},a=arguments.length>1?t:void 0;return{dirtyHandlerIds:Dh(o.dirtyHandlerIds,{type:a.type,payload:Eh(Eh({},a.payload),{},{prevTargetIds:(n=o,r=[],"dragOperation.targetIds".split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),n))})}),dragOffset:_h(o.dragOffset,a),refCount:Ch(o.refCount,a),dragOperation:kh(o.dragOperation,a),stateId:xh(o.stateId)}}function Ih(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ah(e){return(Ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rh(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Rh(e,!1)})):Zg("string"==typeof e||"symbol"===Ah(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Th(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}const n=setTimeout(t,0),r=setInterval(t,50)}}function jh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==t?t:void 0,i=arguments.length>2&&void 0!==n?n:{},s=(o="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,fh(Ph,arguments.length>3&&void 0!==r&&r&&o&&o({name:"dnd-core",instanceId:"dnd-core"}))),l=new Mq(s,new zq(s)),c=new Sq(s,l),u=e(c,a,i);return c.receiveBackend(u),c}function Uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==t?t:null,i=arguments.length>1&&void 0!==n?n:null;return ey.isValidElement(a)?(function(e){if("string"!=typeof e.type)throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e.type.displayName||e.type.name||"the component"," into a
, or turn it into a ")+"drag source or a drop target itself.")}(o=a),function(e,t){var n=e.ref;return Zg("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),ey.cloneElement(e,n?{ref:function(e){Vh(n,e),Vh(t,e)}}:{ref:t})}(o,i?function(t){return e(t,i)}:e)):(e(r=a,i),r)}}(o),t[n]=function(){return r})})),t}function Vh(e,t){"function"==typeof e?e(t):e.current=t}function Gh(e){return(Gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qh(e){return null!==e&&"object"===Gh(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function Xh(e,t,n,r){var o,a,i,s,l,c,u,p=n?n.call(r,e,t):void 0;if(void 0!==p)return!!p;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;if(o=Object.keys(e),a=Object.keys(t),o.length!==a.length)return!1;for(i=Object.prototype.hasOwnProperty.bind(t),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}))}))[0]||null}function Kb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Jb(e){var t,n;for(t=1;tNumber(e)-Number(t))).map((t=>e[t])):e}function f_(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g_(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h_(e){const t=(e=f_(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function b_(e,t){u_((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),r[e=e.replace(/\[]$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),r[e=e.replace(/:list$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!o&&d_(n,e).includes(e.arrayFormatSeparator);n=a?d_(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>d_(t,e))):null===n?n:d_(n,e);r[t]=i};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?d_(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>d_(t,e)));r[t]=void 0!==r[t]?[...r[t],...a]:a};default:return(e,t,n)=>{n[e]=void 0!==n[e]?[...[n[e]].flat(),t]:t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[a,i]=l_(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:d_(i,t),n(d_(a,t),i,r)}for(const[o,a]of Object.entries(r))if("object"==typeof a&&null!==a)for(const[e,n]of Object.entries(a))a[e]=g_(n,t);else r[o]=g_(a,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?m_(n):n,e}),Object.create(null))}function __(e,t){if(!e)return"";u_((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&Ste(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[p_(t,e),"[",o,"]"].join("")]:[...n,[p_(t,e),"[",p_(o,e),"]=",p_(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[p_(t,e),"[]"].join("")]:[...n,[p_(t,e),"[]=",p_(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[p_(t,e),":list="].join("")]:[...n,[p_(t,e),":list=",p_(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[p_(n,e),t,p_(o,e)].join("")]:[[r,p_(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,p_(t,e)]:[...n,[p_(t,e),"=",p_(r,e)].join("")]}}(t),o={};for(const[i,s]of Object.entries(e))n(i)||(o[i]=s);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const o=e[n];return void 0===o?"":null===o?p_(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?p_(n,t)+"[]":o.reduce(r(n),[]).join("&"):p_(n,t)+"="+p_(o,t)})).filter((e=>e.length>0)).join("&")}function y_(e,t){var n;t={decode:!0,...t};let[r,o]=l_(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:b_(h_(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:d_(o,t)}:{}}}function v_(e,t){t={encode:!0,strict:!0,[Ote]:!0,...t};const n=f_(e.url).split("?")[0]||"";let r=__({...b_(h_(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[Ote]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function w_(e,t,n){n={parseFragmentIdentifier:!0,[Ote]:!1,...n};const{url:r,query:o,fragmentIdentifier:a}=y_(e,n);return v_({url:r,query:c_(o,t),fragmentIdentifier:a},n)}function k_(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function C_(e){return null==e?"":""+e}function D_(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const a="string"!=typeof t?[].concat(t):t.split(".");for(;a.length>1;){if(o())return{};const t=r(a.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function x_(e,t,n){const{obj:r,k:o}=D_(e,t,Object);r[o]=n}function S_(e,t){const{obj:n,k:r}=D_(e,t);if(n)return n[r]}function E_(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):E_(e[r],t[r],n):e[r]=t[r]);return e}function O_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function P_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>lY[e])):e}function I_(e,t,n){let r=arguments.length>2&&void 0!==n?n:".";if(!e)return;if(e[t])return e[t];const o=t.split(r);let a=e;for(let i=0;ii+e;)e++,n=o.slice(i,i+e).join(r),s=a[n];if(void 0===s)return;if(null===s)return null;if(t.endsWith(n)){if("string"==typeof s)return s;if(n&&"string"==typeof s[n])return s[n]}const l=o.slice(i+e).join(r);return l?I_(s,l,r):void 0}a=a[o[i]]}return a}function N_(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}function A_(e){return e.charAt(0).toUpperCase()+e.slice(1)}function R_(e,t,n,r,o){let a=arguments.length>3&&void 0!==r?r:".",i=!(arguments.length>4&&void 0!==o)||o,s=function(e,t,n){const r=S_(e,n);return void 0!==r?r:S_(t,n)}(e,t,n);return!s&&i&&"string"==typeof n&&(s=I_(e,n,a),void 0===s&&(s=I_(t,n,a))),s}function T_(e){const t={};return function(n,r,o){const a=r+JSON.stringify(o);let i=t[a];return i||(i=e(N_(r),o),t[a]=i),i(n)}}function j_(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function $_(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function F_(){}function L_(e){return(L_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M_(e){return pY.call(dY.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function U_(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":L_(XMLHttpRequest))}function z_(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function H_(e){return(H_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B_(e){return(B_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W_(e){var t=function(e){var t,n;if("object"!==B_(e)||null===e)return e;if(void 0!==(t=e[Symbol.toPrimitive])){if("object"!==B_(n=t.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===B_(t)?t:String(t)}var V_,G_,q_,X_,K_,Y_,J_,Q_,Z_,ey,ty,ny,ry,oy,ay,iy,sy,ly,cy,uy,py,dy,my,fy,gy,hy,by,_y,yy,vy,wy,ky,Cy,Dy,xy,Sy,Ey,Oy,Py,Iy,Ny,Ay,Ry,Ty,jy,$y,Fy,Ly,My,Uy,zy,Hy,By,Wy,Vy,Gy,qy,Xy,Ky,Yy,Jy,Qy,Zy,ev,tv,nv,rv,ov,av,iv,sv,lv,cv,uv,pv,dv,mv,fv,gv,hv,bv,_v,yv,vv,wv,kv,Cv,Dv,xv,Sv,Ev,Ov,Pv,Iv,Nv,Av,Rv,Tv,jv,$v,Fv,Lv,Mv,Uv,zv,Hv,Bv,Wv,Vv,Gv,qv,Xv,Kv,Yv,Jv,Qv,Zv,ew,tw,nw,rw,ow,aw,iw,sw,lw,cw,uw,pw,dw,mw,fw,gw,hw,bw,_w,yw,vw,ww,kw,Cw,Dw,xw,Sw,Ew,Ow,Pw,Iw,Nw,Aw,Rw,Tw,jw,$w,Fw,Lw,Mw,Uw,zw,Hw,Bw,Ww,Vw,Gw,qw,Xw,Kw,Yw,Jw,Qw,Zw,ek,tk,nk,rk,ok,ak,ik,sk,lk,ck,uk,pk,dk,mk,fk,gk,hk,bk,_k,yk,vk,wk,kk,Ck,Dk,xk,Sk,Ek,Ok,Pk,Ik,Nk,Ak,Rk,Tk,jk,$k,Fk,Lk,Mk,Uk,zk,Hk,Bk,Wk,Vk,Gk,qk,Xk,Kk,Yk,Jk,Qk,Zk,eC,tC,nC,rC,oC,aC,iC,sC,lC,cC,uC,pC,dC,mC,fC,gC,hC,bC,_C,yC,vC,wC,kC,CC,DC,xC,SC,EC,OC,PC,IC,NC,AC,RC,TC,jC,$C,FC,LC,MC,UC,zC,HC,BC,WC,VC,GC,qC,XC,KC,YC,JC,QC,ZC,eD,tD,nD,rD,oD,aD,iD,sD,lD,cD,uD,pD,dD,mD,fD,gD,hD,bD,_D,yD,vD,wD,kD,CD,DD,xD,SD,ED,OD,PD,ID,ND,AD,RD,TD,jD,$D,FD,LD,MD,UD,zD,HD,BD,WD,VD,GD,qD,XD,KD,YD,JD,QD,ZD,ex,tx,nx,rx,ox,ax,ix,sx,lx,cx,ux,px,dx,mx,fx,gx,hx,bx,_x,yx,vx,wx,kx,Cx,Dx,xx,Sx,Ex,Ox,Px,Ix,Nx,Ax,Rx,Tx,jx,$x,Fx,Lx,Mx,Ux,zx,Hx,Bx,Wx,Vx,Gx,qx,Xx,Kx,Yx,Jx,Qx,Zx,eS,tS,nS,rS,oS,aS,iS,sS,lS,cS,uS,pS,dS,mS,fS,gS,hS,bS,_S,yS,vS,wS,kS,CS,DS,xS,SS,ES,OS,PS,IS,NS,AS,RS,TS,jS,$S,FS,LS,MS,US,zS,HS,BS,WS,VS,GS,qS,XS,KS,YS,JS,QS,ZS,eE,tE,nE,rE,oE,aE,iE,sE,lE,cE,uE,pE,dE,mE,fE,gE,hE,bE,_E,yE,vE,wE,kE,CE,DE,xE,SE,EE,OE,PE,IE,NE,AE,RE,TE,jE,$E,FE,LE,ME,UE,zE,HE,BE,WE,VE,GE,qE,XE,KE,YE,JE,QE,ZE,eO,tO,nO,rO,oO,aO,iO,sO,lO,cO,uO,pO,dO,mO,fO,gO,hO,bO,_O,yO,vO,wO,kO,CO,DO,xO,SO,EO,OO,PO,IO,NO,AO,RO,TO,jO,$O,FO,LO,MO,UO,zO,HO,BO,WO,VO,GO,qO,XO,KO,YO,JO,QO,ZO,eP,tP,nP,rP,oP,aP,iP,sP,lP,cP,uP,pP,dP,mP,fP,gP,hP,bP,_P,yP,vP,wP,kP,CP,DP,xP,SP,EP,OP,PP,IP,NP,AP,RP,TP,jP,$P,FP,LP,MP,UP,zP,HP,BP,WP,VP,GP,qP,XP,KP,YP,JP,QP,ZP,eI,tI,nI,rI,oI,aI,iI,sI,lI,cI,uI,pI,dI,mI,fI,gI,hI,bI,_I,yI,vI,wI,kI,CI,DI,xI,SI,EI,OI,PI,II,NI,AI,RI,TI,jI,$I,FI,LI,MI,UI,zI,HI,BI,WI,VI,GI,qI,XI,KI,YI,JI,QI,ZI,eN,tN,nN,rN,oN,aN,iN,sN,lN,cN,uN,pN,dN,mN,fN,gN,hN,bN,_N,yN,vN,wN,kN,CN,DN,xN,SN,EN,ON,PN,IN,NN,AN,RN,TN,jN,$N,FN,LN,MN,UN,zN,HN,BN,WN,VN,GN,qN,XN,KN,YN,JN,QN,ZN,eA,tA,nA,rA,oA,aA,iA,sA,lA,cA,uA,pA,dA,mA,fA,gA,hA,bA,_A,yA,vA,wA,kA,CA,DA,xA,SA,EA,OA,PA,IA,NA,AA,RA,TA,jA,$A,FA,LA,MA,UA,zA,HA,BA,WA,VA,GA,qA,XA,KA,YA,JA,QA,ZA,eR,tR,nR,rR,oR,aR,iR,sR,lR,cR,uR,pR,dR,mR,fR,gR,hR,bR,_R,yR,vR,wR,kR,CR,DR,xR,SR,ER,OR,PR,IR,NR,AR,RR,TR,jR,$R,FR,LR,MR,UR,zR,HR,BR,WR,VR,GR,qR,XR,KR,YR,JR,QR,ZR,eT,tT,nT,rT,oT,aT,iT,sT,lT,cT,uT,pT,dT,mT,fT,gT,hT,bT,_T,yT,vT,wT,kT,CT,DT,xT,ST,ET,OT,PT,IT,NT,AT,RT,TT,jT,$T,FT,LT,MT,UT,zT,HT,BT,WT,VT,GT,qT,XT,KT,YT,JT,QT,ZT,ej,tj,nj,rj,oj,aj,ij,sj,lj,cj,uj,pj,dj,mj,fj,gj,hj,bj,_j,yj,vj,wj,kj,Cj,Dj,xj,Sj,Ej,Oj,Pj,Ij,Nj,Aj,Rj,Tj,jj,$j,Fj,Lj,Mj,Uj,zj,Hj,Bj,Wj,Vj,Gj,qj,Xj,Kj,Yj,Jj,Qj,Zj,e$,t$,n$,r$,o$,a$,i$,s$,l$,c$,u$,p$,d$,m$,f$,g$,h$,b$,_$,y$,v$,w$,k$,C$,D$,x$,S$,E$,O$,P$,I$,N$,A$,R$,T$,j$,$$,F$,L$,M$,U$,z$,H$,B$,W$,V$,G$,q$,X$,K$,Y$,J$,Q$,Z$,eF,tF,nF,rF,oF,aF,iF,sF,lF,cF,uF,pF,dF,mF,fF,gF,hF,bF,_F,yF,vF,wF,kF,CF,DF,xF,SF,EF,OF,PF,IF,NF,AF,RF,TF,jF,$F,FF,LF,MF,UF,zF,HF,BF,WF,VF,GF,qF,XF,KF,YF,JF,QF,ZF,eL,tL,nL,rL,oL,aL,iL,sL,lL,cL,uL,pL,dL,mL,fL,gL,hL,bL,_L,yL,vL,wL,kL,CL,DL,xL,SL,EL,OL,PL,IL,NL,AL,RL,TL,jL,$L,FL,LL,ML,UL,zL,HL,BL,WL,VL,GL,qL,XL,KL,YL,JL,QL,ZL,eM,tM,nM,rM,oM,aM,iM,sM,lM,cM,uM,pM,dM,mM,fM,gM,hM,bM,_M,yM,vM,wM,kM,CM,DM,xM,SM,EM,OM,PM,IM,NM,AM,RM,TM,jM,$M,FM,LM,MM,UM,zM,HM,BM,WM,VM,GM,qM,XM,KM,YM,JM,QM,ZM,eU,tU,nU,rU,oU,aU,iU,sU,lU,cU,uU,pU,dU,mU,fU,gU,hU,bU,_U,yU,vU,wU,kU,CU,DU,xU,SU,EU,OU,PU,IU,NU,AU,RU,TU,jU,$U,FU,LU,MU,UU,zU,HU,BU,WU,VU,GU,qU,XU,KU,YU,JU,QU,ZU,ez,tz,nz,rz,oz,az,iz,sz,lz,cz,uz,pz,dz,mz,fz,gz,hz,bz,_z,yz,vz,wz,kz,Cz,Dz,xz,Sz,Ez,Oz,Pz,Iz,Nz,Az,Rz,Tz,jz,$z,Fz,Lz,Mz,Uz,zz,Hz,Bz,Wz,Vz,Gz,qz,Xz,Kz,Yz,Jz,Qz,Zz,eH,tH,nH,rH,oH,aH,iH,sH,lH,cH,uH,pH,dH,mH,fH,gH,hH,bH,_H,yH,vH,wH,kH,CH,DH,xH,SH,EH,OH,PH,IH,NH,AH,RH,TH,jH,$H,FH,LH,MH,UH,zH,HH,BH,WH,VH,GH,qH,XH,KH,YH,JH,QH,ZH,eB,tB,nB,rB,oB,aB,iB,sB,lB,cB,uB,pB,dB,mB,fB,gB,hB,bB,_B,yB,vB,wB,kB,CB,DB,xB,SB,EB,OB,PB,IB,NB,AB,RB,TB,jB,$B,FB,LB,MB,UB,zB,HB,BB,WB,VB,GB,qB,XB,KB,YB,JB,QB,ZB,eW,tW,nW,rW,oW,aW,iW,sW,lW,cW,uW,pW,dW,mW,fW,gW,hW,bW,_W,yW,vW,wW,kW,CW,DW,xW,SW,EW,OW,PW,IW,NW,AW,RW,TW,jW,$W,FW,LW,MW,UW,zW,HW,BW,WW,VW,GW,qW,XW,KW,YW,JW,QW,ZW,eV,tV,nV,rV,oV,aV,iV,sV,lV,cV,uV,pV,dV,mV,fV,gV,hV,bV,_V,yV,vV,wV,kV,CV,DV,xV,SV,EV,OV,PV,IV,NV,AV,RV,TV,jV,$V,FV,LV,MV,UV,zV,HV,BV,WV,VV,GV,qV,XV,KV,YV,JV,QV,ZV,eG,tG,nG,rG,oG,aG,iG,sG,lG,cG,uG,pG,dG,mG,fG,gG,hG,bG,_G,yG,vG,wG,kG,CG,DG,xG,SG,EG,OG,PG,IG,NG,AG,RG,TG,jG,$G,FG,LG,MG,UG,zG,HG,BG,WG,VG,GG,qG,XG,KG,YG,JG,QG,ZG,eq,tq,nq,rq,oq,aq,iq,sq,lq,cq,uq,pq,dq,mq,fq,gq,hq,bq,_q,yq,vq,wq,kq,Cq,Dq,xq,Sq,Eq,Oq,Pq,Iq,Nq,Aq,Rq,Tq,jq,$q,Fq,Lq,Mq,Uq,zq,Hq,Bq,Wq,Vq,Gq,qq,Xq,Kq,Yq,Jq,Qq,Zq,eX,tX,nX,rX,oX,aX,iX,sX,lX,cX,uX,pX,dX,mX,fX,gX,hX,bX,_X,yX,vX,wX,kX,CX,DX,xX,SX,EX,OX,PX,IX,NX,AX,RX,TX,jX,$X,FX,LX,MX,UX,zX,HX,BX,WX,VX,GX,qX,XX,KX,YX,JX,QX,ZX,eK,tK,nK,rK,oK,aK,iK,sK,lK,cK,uK,pK,dK,mK,fK,gK,hK,bK,_K,yK,vK,wK,kK,CK,DK,xK,SK,EK,OK,PK,IK,NK,AK,RK,TK,jK,$K,FK,LK,MK,UK,zK,HK,BK,WK,VK,GK,qK,XK,KK,YK,JK,QK,ZK,eY,tY,nY,rY,oY,aY,iY,sY,lY,cY,uY,pY,dY,mY,fY,gY,hY,bY,_Y,yY,vY,wY,kY,CY,DY,xY,SY,EY,OY,PY,IY,NY,AY,RY,TY,jY,$Y,FY,LY,MY,UY,zY,HY,BY,WY,VY,GY,qY,XY,KY,YY,JY,QY,ZY,eJ,tJ,nJ,rJ,oJ,aJ,iJ,sJ,lJ,cJ,uJ,pJ,dJ,mJ,fJ,gJ,hJ,bJ,_J,yJ,vJ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},wJ={exports:{}},kJ={},CJ={exports:{}},DJ={},xJ=Symbol.for("react.element"),SJ=Symbol.for("react.portal"),EJ=Symbol.for("react.fragment"),OJ=Symbol.for("react.strict_mode"),PJ=Symbol.for("react.profiler"),IJ=Symbol.for("react.provider"),NJ=Symbol.for("react.context"),AJ=Symbol.for("react.forward_ref"),RJ=Symbol.for("react.suspense"),TJ=Symbol.for("react.memo"),jJ=Symbol.for("react.lazy"),$J=Symbol.iterator,FJ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},LJ=Object.assign,MJ={};r.prototype.isReactComponent={},r.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=r.prototype,(V_=a.prototype=new o).constructor=a,LJ(V_,r.prototype),V_.isPureReactComponent=!0,G_=Array.isArray,q_=Object.prototype.hasOwnProperty,K_={key:!0,ref:!0,__self:!0,__source:!0},Y_=/\/+/g,Z_={ReactCurrentDispatcher:J_={current:null},ReactCurrentBatchConfig:Q_={transition:null},ReactCurrentOwner:X_={current:null}},DJ.Children={map:u,forEach:function(e,t,n){u(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return u(e,(function(){t++})),t},toArray:function(e){return u(e,(function(e){return e}))||[]},only:function(e){if(!s(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},DJ.Component=r,DJ.Fragment=EJ,DJ.Profiler=PJ,DJ.PureComponent=a,DJ.StrictMode=OJ,DJ.Suspense=RJ,DJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z_,DJ.cloneElement=function(e,t,n){var r,o,a,i,s,l,c;if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");if(r=LJ({},e.props),o=e.key,a=e.ref,i=e._owner,null!=t)for(l in void 0!==t.ref&&(a=t.ref,i=X_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)q_.call(t,l)&&!K_.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l]);if(1==(l=arguments.length-2))r.children=n;else if(1>>1],t);)e[n]=t,e[a]=r,a=n}function n(e){return 0===e.length?null:e[0]}function r(e){var t,n,r,a,i,s,l,c,u;if(0===e.length)return null;if(t=e[0],(n=e.pop())!==t){e[0]=n;e:for(r=0,a=e.length,i=a>>>1;ro(l=e[s],n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function a(e){for(var o=n(h);null!==o;){if(null===o.callback)r(h);else{if(!(o.startTime<=e))break;r(h),o.sortIndex=o.expirationTime,t(g,o)}o=n(h)}}function i(e){if(k=!1,a(e),!w)if(null!==n(g))w=!0,u(s);else{var t=n(h);null!==t&&p(i,t.startTime-e)}}function s(t,o){var s,c,u,d,m;w=!1,k&&(k=!1,D(O),O=-1),v=!0,s=y;try{for(a(o),_=n(g);null!==_&&(!(_.expirationTime>o)||t&&!l());)"function"==typeof(c=_.callback)?(_.callback=null,y=_.priorityLevel,u=c(_.expirationTime<=o),o=e.unstable_now(),"function"==typeof u?_.callback=u:_===n(g)&&r(g),a(o)):r(g),_=n(g);return null!==_?d=!0:(null!==(m=n(h))&&p(i,m.startTime-o),d=!1),d}finally{_=null,y=s,v=!1}}function l(){return!(e.unstable_now()-Ie||125c?(r.sortIndex=a,t(h,r),null===n(g)&&r===n(h)&&(k?(D(O),O=-1):k=!0,p(i,a-c))):(r.sortIndex=l,t(g,r),w||v||(w=!0,u(s))),r},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var t=y;return function(){var n=y;y=t;try{return e.apply(this,arguments)}finally{y=n}}}}(py={}),uy.exports=py,dy=ey,my=uy.exports,fy=new Set,gy={},hy=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),by=Object.prototype.hasOwnProperty,_y=/^[: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]*$/,yy={},vy={},wy={},"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){wy[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];wy[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){wy[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){wy[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){wy[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){wy[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){wy[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){wy[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){wy[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)})),ky=/[\-:]([a-z])/g,"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ky,b);wy[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ky,b);wy[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ky,b);wy[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){wy[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),wy.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){wy[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)})),Cy=dy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Dy=Symbol.for("react.element"),xy=Symbol.for("react.portal"),Sy=Symbol.for("react.fragment"),Ey=Symbol.for("react.strict_mode"),Oy=Symbol.for("react.profiler"),Py=Symbol.for("react.provider"),Iy=Symbol.for("react.context"),Ny=Symbol.for("react.forward_ref"),Ay=Symbol.for("react.suspense"),Ry=Symbol.for("react.suspense_list"),Ty=Symbol.for("react.memo"),jy=Symbol.for("react.lazy"),$y=Symbol.for("react.offscreen"),Fy=Symbol.iterator,Ly=Object.assign,Uy=!1,zy=Array.isArray,OY=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Hy=Hy||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=Hy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},By="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t){MSApp.execUnsafeLocalFunction((function(){return OY(e,t)}))}:OY,Wy={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vy=["Webkit","ms","Moz","O"],Object.keys(Wy).forEach((function(e){Vy.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wy[t]=Wy[e]}))})),Gy=Ly({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),qy=null,Xy=null,Ky=null,Yy=null,Jy=!1,Qy=!1,hy)try{Zy={},Object.defineProperty(Zy,"passive",{get:function(){Qy=!0}}),window.addEventListener("test",Zy,Zy),window.removeEventListener("test",Zy,Zy)}catch(OY){Qy=!1}ev=!1,tv=null,nv=!1,rv=null,ov={onError:function(e){ev=!0,tv=e}},av=my.unstable_scheduleCallback,iv=my.unstable_cancelCallback,sv=my.unstable_shouldYield,lv=my.unstable_requestPaint,cv=my.unstable_now,uv=my.unstable_getCurrentPriorityLevel,pv=my.unstable_ImmediatePriority,dv=my.unstable_UserBlockingPriority,mv=my.unstable_NormalPriority,fv=my.unstable_LowPriority,gv=my.unstable_IdlePriority,hv=null,bv=null,_v=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(yv(e)/vv|0)|0},yv=Math.log,vv=Math.LN2,wv=64,kv=4194304,Cv=0,Pv=!1,Iv=[],Nv=null,Av=null,Rv=null,Tv=new Map,jv=new Map,$v=[],Fv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Lv=Cy.ReactCurrentBatchConfig,Mv=!0,Uv=null,zv=null,Hv=null,Bv=null,Wv={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vv=je(Wv),Gv=Ly({},Wv,{view:0,detail:0}),qv=je(Gv),Jv=Ly({},Gv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fe,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yv&&(Yv&&"mousemove"===e.type?(Xv=e.screenX-Yv.screenX,Kv=e.screenY-Yv.screenY):Kv=Xv=0,Yv=e),Xv)},movementY:function(e){return"movementY"in e?e.movementY:Kv}}),Qv=je(Jv),Zv=Ly({},Jv,{dataTransfer:0}),ew=je(Zv),tw=Ly({},Gv,{relatedTarget:0}),nw=je(tw),rw=Ly({},Wv,{animationName:0,elapsedTime:0,pseudoElement:0}),ow=je(rw),aw=Ly({},Wv,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iw=je(aw),sw=Ly({},Wv,{data:0}),lw=je(sw),cw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uw={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"},pw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},dw=Ly({},Gv,{key:function(e){if(e.key){var t=cw[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ae(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?uw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fe,charCode:function(e){return"keypress"===e.type?Ae(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ae(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),mw=je(dw),fw=Ly({},Jv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gw=je(fw),hw=Ly({},Gv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fe}),bw=je(hw),_w=Ly({},Wv,{propertyName:0,elapsedTime:0,pseudoElement:0}),yw=je(_w),vw=Ly({},Jv,{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}),ww=je(vw),kw=[9,13,27,32],Cw=hy&&"CompositionEvent"in window,Dw=null,hy&&"documentMode"in document&&(Dw=document.documentMode),xw=hy&&"TextEvent"in window&&!Dw,Sw=hy&&(!Cw||Dw&&8=Dw),Ew=String.fromCharCode(32),Ow=!1,Pw=!1,Iw={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},Nw=null,Aw=null,Rw=!1,hy&&(hy?((jw="oninput"in document)||(($w=document.createElement("div")).setAttribute("oninput","return;"),jw="function"==typeof $w.oninput),Tw=jw):Tw=!1,Rw=Tw&&(!document.documentMode||9=document.documentMode,Mw=null,Uw=null,zw=null,Hw=!1,Bw={animationend:at("Animation","AnimationEnd"),animationiteration:at("Animation","AnimationIteration"),animationstart:at("Animation","AnimationStart"),transitionend:at("Transition","TransitionEnd")},Ww={},Vw={},hy&&(Vw=document.createElement("div").style,"AnimationEvent"in window||(delete Bw.animationend.animation,delete Bw.animationiteration.animation,delete Bw.animationstart.animation),"TransitionEvent"in window||delete Bw.transitionend.transition),Gw=it("animationend"),qw=it("animationiteration"),Xw=it("animationstart"),Kw=it("transitionend"),Yw=new Map,Jw="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");for(Qw=0;Qw=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},XD=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},KD=function(e,t){return!1===(!(arguments.length>1&&void 0!==t)||t)?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},YD=function(e){var t,n=tx(e,AD.TITLE),r=tx(e,"titleTemplate");return r&&n?r.replace(/%s/g,(function(){return Array.isArray(n)?n.join(""):n})):(t=tx(e,"defaultTitle"),n||t||void 0)},JD=function(e){return tx(e,"onChangeClientState")||function(){}},QD=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return VD({},e,t)}),{})},ZD=function(e,t){return t.filter((function(e){return void 0!==e[AD.BASE]})).map((function(e){return e[AD.BASE]})).reverse().reduce((function(t,n){var r,o,a;if(!t.length)for(r=Object.keys(n),o=0;o=0;n--)if((r=e[n]).hasOwnProperty(t))return r[t];return null},nx=function(e){return{baseTag:ZD([TD,"target"],e),bodyAttributes:QD(ID,e),defer:tx(e,"defer"),encode:tx(e,"encodeSpecialCharacters"),htmlAttributes:QD(ND,e),linkTags:ex(AD.LINK,[FD,TD],e),metaTags:ex(AD.META,["name","charset","http-equiv","property",$D],e),noscriptTags:ex(AD.NOSCRIPT,[jD],e),onChangeClientState:JD(e),scriptTags:ex(AD.SCRIPT,["src",jD],e),styleTags:ex(AD.STYLE,[RD],e),title:YD(e),titleAttributes:QD("titleAttributes",e)}},IY=Date.now(),rx=function(e){var t=Date.now();t-IY>16?(IY=t,e(t)):setTimeout((function(){rx(e)}),0)},ox=function(e){return clearTimeout(e)},ax="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||rx:global.requestAnimationFrame||rx,ix="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ox:global.cancelAnimationFrame||ox,sx=function(){return console&&"function"==typeof console.warn&&void 0},lx=null,cx=function(e){lx&&ix(lx),e.defer?lx=ax((function(){ux(e,(function(){lx=null}))})):(ux(e),lx=null)},ux=function(e,t){var n,r,o,a=e.baseTag,i=e.htmlAttributes,s=e.linkTags,l=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,p=e.scriptTags,d=e.styleTags,m=e.title,f=e.titleAttributes;mx(AD.BODY,e.bodyAttributes),mx(AD.HTML,i),dx(m,f),n={baseTag:fx(AD.BASE,a),linkTags:fx(AD.LINK,s),metaTags:fx(AD.META,l),noscriptTags:fx(AD.NOSCRIPT,c),scriptTags:fx(AD.SCRIPT,p),styleTags:fx(AD.STYLE,d)},r={},o={},Object.keys(n).forEach((function(e){var t=n[e],a=t.newTags,i=t.oldTags;a.length&&(r[e]=a),i.length&&(o[e]=n[e].oldTags)})),t&&t(),u(e,r,o)},px=function(e){return Array.isArray(e)?e.join(""):e},dx=function(e,t){void 0!==e&&document.title!==e&&(document.title=px(e)),mx(AD.TITLE,t)},mx=function(e,t){var n,r,o,a,i,s,l,c,u,p=document.getElementsByTagName(e)[0];if(p){for(r=(n=p.getAttribute(zD))?n.split(","):[],o=[].concat(r),a=Object.keys(t),i=0;i=0;u--)p.removeAttribute(o[u]);r.length===o.length?p.removeAttribute(zD):p.getAttribute(zD)!==a.join(",")&&p.setAttribute(zD,a.join(","))}},fx=function(e,t){var n=document.head||document.querySelector(AD.HEAD),r=n.querySelectorAll(e+"["+zD+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n,r=document.createElement(e);for(n in t)t.hasOwnProperty(n)&&(n===jD?r.innerHTML=t.innerHTML:n===RD?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(n,void 0===t[n]?"":t[n]));r.setAttribute(zD,"true"),o.some((function(e,t){return i=t,r.isEqualNode(e)}))?o.splice(i,1):a.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},gx=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},hx=function(e,t,n,r){var o=gx(n),a=px(t);return o?"<"+e+" "+zD+'="true" '+o+">"+KD(a,r)+"":"<"+e+" "+zD+'="true">'+KD(a,r)+""},bx=function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===jD||e===RD)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+KD(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===UD.indexOf(e);return t+"<"+e+" "+zD+'="true" '+o+(i?"/>":">"+a+"")}),"")},_x=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[LD[n]||n]=e[n],t}),n)},yx=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[MD[n]||n]=e[n],t}),n)},vx=function(e,t,n){var r,o=((r={key:t})[zD]=!0,r),a=_x(n,o);return[UJ.createElement(AD.TITLE,a,t)]},wx=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[zD]=!0,r);return Object.keys(t).forEach((function(e){var n=LD[e]||e;n===jD||n===RD?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),UJ.createElement(e,o)}))},kx=function(e,t,n){switch(e){case AD.TITLE:return{toComponent:function(){return vx(0,t.title,t.titleAttributes)},toString:function(){return hx(e,t.title,t.titleAttributes,n)}};case ID:case ND:return{toComponent:function(){return _x(t)},toString:function(){return gx(t)}};default:return{toComponent:function(){return wx(e,t)},toString:function(){return bx(e,t,n)}}}},Dx=function(e){var t,n;return n=t=function(t){function n(){return BD(this,n),XD(this,t.apply(this,arguments))}return GD(n,t),n.prototype.shouldComponentUpdate=function(e){return!GJ(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case AD.SCRIPT:case AD.NOSCRIPT:return{innerHTML:t};case AD.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return VD({},r,((t={})[n.type]=[].concat(r[n.type]||[],[VD({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case AD.TITLE:return VD({},o,((t={})[r.type]=i,t.titleAttributes=VD({},a),t));case AD.BODY:return VD({},o,{bodyAttributes:VD({},a)});case AD.HTML:return VD({},o,{htmlAttributes:VD({},a)})}return VD({},o,((n={})[r.type]=VD({},a),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=VD({},t);return Object.keys(e).forEach((function(t){var r;n=VD({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return UJ.Children.forEach(e,(function(e){var o,a,i,s;if(e&&e.props)switch(a=(o=e.props).children,i=qD(o,["children"]),s=yx(i),n.warnOnInvalidChildren(e,a),e.type){case AD.LINK:case AD.META:case AD.NOSCRIPT:case AD.SCRIPT:case AD.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=qD(t,["children"]),o=VD({},r);return n&&(o=this.mapChildrenToProps(n,o)),UJ.createElement(e,o)},WD(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(UJ.Component),t.propTypes={base:WJ.object,bodyAttributes:WJ.object,children:WJ.oneOfType([WJ.arrayOf(WJ.node),WJ.node]),defaultTitle:WJ.string,defer:WJ.bool,encodeSpecialCharacters:WJ.bool,htmlAttributes:WJ.object,link:WJ.arrayOf(WJ.object),meta:WJ.arrayOf(WJ.object),noscript:WJ.arrayOf(WJ.object),onChangeClientState:WJ.func,script:WJ.arrayOf(WJ.object),style:WJ.arrayOf(WJ.object),title:WJ.string,titleAttributes:WJ.object,titleTemplate:WJ.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=Cx({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n},xx=function(){return null},Sx=VJ(nx,cx,Cx=function(e){var t=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,o=e.linkTags,a=e.metaTags,i=e.noscriptTags,s=e.scriptTags,l=e.styleTags,c=e.title,u=void 0===c?"":c,p=e.titleAttributes;return{base:kx(AD.BASE,e.baseTag,n),bodyAttributes:kx(ID,t,n),htmlAttributes:kx(ND,r,n),link:kx(AD.LINK,o,n),meta:kx(AD.META,a,n),noscript:kx(AD.NOSCRIPT,i,n),script:kx(AD.SCRIPT,s,n),style:kx(AD.STYLE,l,n),title:kx(AD.TITLE,{title:u,titleAttributes:p},n)}})(xx),(Ex=Dx(Sx)).renderStatic=Ex.rewind,Ox={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const XJ=(e,t)=>{const n=ey.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:a,children:i,...s},l)=>{return ey.createElement("svg",{ref:l,...Ox,width:r,height:r,stroke:n,strokeWidth:a?24*Number(o)/Number(r):o,className:`lucide lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>ey.createElement(e,t))),...(Array.isArray(i)?i:[i])||[]]);var c}));return n.displayName=`${e}`,n},KJ=XJ("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),YJ=XJ("Bug",[["rect",{width:"8",height:"14",x:"8",y:"6",rx:"4",key:"hq8nra"}],["path",{d:"m19 7-3 2",key:"fmg8ec"}],["path",{d:"m5 7 3 2",key:"dkxqes"}],["path",{d:"m19 19-3-2",key:"1hbhi4"}],["path",{d:"m5 19 3-2",key:"dvt2ee"}],["path",{d:"M20 13h-4",key:"1agfp2"}],["path",{d:"M4 13h4",key:"1bwh8b"}],["path",{d:"m10 4 1 2",key:"1pot59"}],["path",{d:"m14 4-1 2",key:"m8sn0o"}]]),JJ=XJ("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),QJ=XJ("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),ZJ=XJ("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),eQ=XJ("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),tQ=XJ("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),nQ=XJ("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9",key:"c89w8i"}],["path",{d:"M12 12v3",key:"158kv8"}]]),rQ=XJ("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),oQ=XJ("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),aQ=XJ("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),iQ=XJ("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),sQ=XJ("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),lQ=XJ("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),cQ=XJ("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),uQ=XJ("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),pQ=XJ("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),dQ=XJ("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),mQ=XJ("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),fQ=XJ("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),gQ=XJ("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),hQ=XJ("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),bQ=XJ("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_Q=XJ("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),yQ=XJ("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);Px=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){var t,n;if(this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this)),t=this.tags[this.tags.length-1],this.isSpeedy){n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case jx:e.return=li(e.value,e.length);break;case Fx:return ai([Ua(e,{value:Aa(e.value,"@","@"+Ax)})],r);case Tx:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ai([Ua(e,{props:[Aa(t,/:(read-\w+)/,":"+Nx+"$1")]})],r);case"::placeholder":return ai([Ua(e,{props:[Aa(t,/:(plac\w+)/,":"+Ax+"input-$1")]}),Ua(e,{props:[Aa(t,/:(plac\w+)/,":"+Nx+"$1")]}),Ua(e,{props:[Aa(t,/:(plac\w+)/,Ix+"input-$1")]})],r)}return""}))}}],nS=function(e){var t,n,r,o,a,i,s,l,c,u,p,d,m,f,g=e.key;return"css"===g&&(t=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))),n=e.stylisPlugins||tS,r={},a=[],o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+g+' "]'),(function(e){var t,n=e.getAttribute("data-emotion").split(" ");for(t=1;t=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s,{name:c,styles:o,next:pS}},mS=function(e,t,n){var r=e.key+"-"+t.name;!1!==n||void 0!==e.registered[r]||(e.registered[r]=t.styles)},fS=function(e,t,n){var r,o;if(mS(e,t,n),r=e.key+"-"+t.name,void 0===e.inserted[t.name]){o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},gS=function(e){var t,n,r,o,a=nS(e);return a.sheet.speedy=function(e){this.isSpeedy=e},a.compat=!0,t=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1&&void 0!==n?n:{},f=arguments.length>2&&void 0!==r?r:{root:!0,parentSelectors:[]},g=f.root,h=f.injectHash,b=f.parentSelectors,_=m.hashId,y=m.layer;return a=m.hashPriority,s=void 0===(i=m.transformers)?[]:i,l="",c={},u=function e(t,n){var r=arguments.length>1&&void 0!==n?n:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]),u.forEach((function(t){var n,r="string"!=typeof t||g?t:{};"string"==typeof r?l+="".concat(r,"\n"):r._keyframe?o(r):(n=s.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r),Object.keys(n).forEach((function(t){var r,i,s,u,p,d,f,y,v=n[t];if("object"!==Ca(v)||!v||"animationName"===t&&v._keyframe||function(e){return"object"===Ca(e)&&e&&("_skip_check_"in e||iO in e)}(v)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;UE[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(o(t),r=t.getName(_)),l+="".concat(n,":").concat(r,";")};y=null!==(f=null==v?void 0:v.value)&&void 0!==f?f:v,"object"===Ca(v)&&null!=v&&v[iO]&&Array.isArray(y)?y.forEach((function(n){e(t,n)})):e(t,y)}else r=!1,i=t.trim(),s=!1,(g||h)&&_?i.startsWith("@")?r=!0:i=function(e,t,n){var r,o;return t?(r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat(ki(n.slice(1))).join(" ")})).join(",")):e}(t,_,a):!g||_||"&"!==i&&""!==i||(i="",s=!0),p=(u=Vi(e(v,m,{root:s,injectHash:r,parentSelectors:[].concat(ki(b),[i])}),2))[0],d=u[1],c=Di(Di({},c),d),l+="".concat(i).concat(p)})))})),g?y&&function(){var e,t,n,r,o;return void 0===jE&&(e="@layer ".concat(RE," { .").concat(RE," { width: ").concat(TE,"!important; } }"),t=function(e){e.className=RE},jE=!!Ri()&&(zi(e,RE),(r=document.createElement("div")).style.position="fixed",r.style.left="0",r.style.top="0",null==t||t(r),document.body.appendChild(r),o=getComputedStyle(r).width===TE,null===(n=r.parentNode)||void 0===n||n.removeChild(r),Ui(RE),o)),jE}()&&(d=(p=y.split(","))[p.length-1].trim(),l="@layer ".concat(d," {").concat(l,"}"),p.length>1&&(l="@layer ".concat(y,"{%%%:%}").concat(l))):l="{".concat(l,"}"),[l,c]},lO=function(){function e(t,n){Oa(this,e),xa(this,"name",void 0),xa(this,"style",void 0),xa(this,"_keyframe",!0),this.name=t,this.style=n}return Ia(e,[{key:"getName",value:function(e){var t=arguments.length>0&&void 0!==e?e:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e}(),cO=function(){function e(){Oa(this,e),xa(this,"cache",void 0),xa(this,"keys",void 0),xa(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ia(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t,a={map:this.cache};return e.forEach((function(e){var t,n;a=a?null===(t=a)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(n=a)&&void 0!==n&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),null===(r=a)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r,o,a,i=this;this.has(t)||(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET&&(r=this.keys.reduce((function(e,t){var n=Vi(e,2)[1];return i.internalGet(t)[1]0},e.prototype.connect_=function(){vO&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),DO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){vO&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;CO.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),SO=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n0},e}(),RO="undefined"!=typeof WeakMap?new WeakMap:new yO,TO=function e(t){var n,r;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");n=xO.getInstance(),r=new AO(t,n,this),RO.set(this,r)},["observe","unobserve","disconnect"].forEach((function(e){TO.prototype[e]=function(){var t;return(t=RO.get(this))[e].apply(t,arguments)}})),jO=void 0!==wO.ResizeObserver?wO.ResizeObserver:TO,$O=new Map,FO=new jO((function(e){e.forEach((function(e){var t,n=e.target;null===(t=$O.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),LO=function(){function e(){return Oa(this,e),t.apply(this,arguments)}Ts(e,ey.Component);var t=Ls(e);return Ia(e,[{key:"render",value:function(){return this.props.children}}]),e}(),MO=ey.createContext(null),UO=ey.forwardRef(Ks),zO="rc-observer-key",(HO=ey.forwardRef(Ys)).Collection=function(e){var t=e.children,n=e.onBatchResize,r=ey.useRef(0),o=ey.useRef([]),a=ey.useContext(MO),i=ey.useCallback((function(e,t,i){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==a||a(e,t,i)}),[n,a]);return ey.createElement(MO.Provider,{value:i},t)},BO=function(e){return+setTimeout(e,16)},WO=function(e){return clearTimeout(e)},"undefined"!=typeof window&&"requestAnimationFrame"in window&&(BO=function(e){return window.requestAnimationFrame(e)},WO=function(e){return window.cancelAnimationFrame(e)}),VO=0,GO=new Map,(qO=function(e,t){var n;return n=VO+=1,function t(r){if(0===r)Qs(n),e();else{var o=BO((function(){t(r-1)}));GO.set(n,o)}}(arguments.length>1&&void 0!==t?t:1),n}).cancel=function(e){var t=GO.get(e);return Qs(t),WO(t)};const CQ=ey.createContext({});XO="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const DQ=ey.createContext(void 0),xQ={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},SQ={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},xQ)},EQ="${label} is not a valid ${type}",OQ={locale:"en",Pagination:{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"},DatePicker:SQ,TimePicker:xQ,Calendar:SQ,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:EQ,method:EQ,array:EQ,object:EQ,number:EQ,date:EQ,boolean:EQ,integer:EQ,float:EQ,regexp:EQ,email:EQ,url:EQ,hex:EQ},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let PQ=Object.assign({},OQ.Modal);const IQ=ey.createContext(void 0),NQ=(e,t)=>{const n=ey.useContext(IQ);return[ey.useMemo((()=>{var r;const o=t||OQ[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})}),[e,t,n]),ey.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?OQ.locale:e}),[n])]},AQ=e=>{const{locale:t={},children:n}=e;ey.useEffect((()=>(al(t&&t.Modal),()=>{al()})),[t]);const r=ey.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return ey.createElement(IQ.Provider,{value:r},n)},RQ="5.6.3",TQ=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];KO={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},YO="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),JO="[\\s|\\(]+(".concat(YO,")[,|\\s]+(").concat(YO,")[,|\\s]+(").concat(YO,")\\s*\\)?"),QO="[\\s|\\(]+(".concat(YO,")[,|\\s]+(").concat(YO,")[,|\\s]+(").concat(YO,")[,|\\s]+(").concat(YO,")\\s*\\)?"),ZO={CSS_UNIT:new RegExp(YO),rgb:new RegExp("rgb"+JO),rgba:new RegExp("rgba"+QO),hsl:new RegExp("hsl"+JO),hsla:new RegExp("hsla"+QO),hsv:new RegExp("hsv"+JO),hsva:new RegExp("hsva"+QO),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},eP=function(){function e(t,n){var r,o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t,o=_l(t),this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=cl(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=fl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=fl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=dl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=dl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),gl(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var a,i=[pl(Math.round(e).toString(16)),pl(Math.round(t).toString(16)),pl(Math.round(n).toString(16)),pl((a=r,Math.round(255*parseFloat(a)).toString(16)))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*sl(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*sl(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){var e,t,n,r;if(0===this.a)return"transparent";if(this.a<1)return!1;for(e="#"+gl(this.r,this.g,this.b,!1),t=0,n=Object.entries(KO);t=0)||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ll(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ll(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ll(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ll(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){var r,o,a;return void 0===n&&(n=50),r=this.toRgb(),o=new e(t).toRgb(),new e({r:(o.r-r.r)*(a=n/100)+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){var r,o,a;for(void 0===t&&(t=6),void 0===n&&(n=30),a=[this],(r=this.toHsl()).h=(r.h-((o=360/n)*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){var n,r,o,a,i,s;for(void 0===t&&(t=6),r=(n=this.toHsv()).h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){var n,r=this.toHsl(),o=r.h,a=[this],i=360/t;for(n=1;n{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},$Q={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"},FQ=Object.assign(Object.assign({},$Q),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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}),LQ=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},MQ=(e,t)=>new eP(e).setAlpha(t).toRgbString(),UQ=(e,t)=>new eP(e).darken(t).toHexString(),zQ=e=>{const t=xl(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]}},HQ=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:MQ(r,.88),colorTextSecondary:MQ(r,.65),colorTextTertiary:MQ(r,.45),colorTextQuaternary:MQ(r,.25),colorFill:MQ(r,.15),colorFillSecondary:MQ(r,.06),colorFillTertiary:MQ(r,.04),colorFillQuaternary:MQ(r,.02),colorBgLayout:UQ(n,4),colorBgContainer:UQ(n,0),colorBgElevated:UQ(n,0),colorBgSpotlight:MQ(r,.85),colorBorder:UQ(n,15),colorBorderSecondary:UQ(n,6)}},BQ=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=e*Math.pow(2.71828,(n-1)/5),o=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};mP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rt||(e?`ant-${e}`:"ant"),iconPrefixCls:WQ}),GQ=(e,t,n,r,o)=>{const a=e/2,i=a,s=1*n/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),c=a-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),p=2*a-c,d=u,m=2*a-s,f=l,g=2*a-0,h=i,b=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),_=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${_}px 100%, 50% ${_}px, ${2*a-_}px 100%, ${_}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${p} ${d} L ${m} ${f} A ${n} ${n} 0 0 0 ${g} ${h} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},qQ={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},XQ=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),KQ=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),YQ=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},JQ=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),QQ=e=>({"&:focus-visible":Object.assign({},JQ(e))}),ZQ="undefined"!=typeof CSSINJS_STATISTIC;let eZ=!0;const tZ=Ps(El),nZ={token:FQ,hashed:!0},rZ=UJ.createContext(nZ),oZ=`-ant-${Date.now()}-${Math.random()}`,aZ=ey.createContext(!1),iZ=e=>{let{children:t,disabled:n}=e;const r=ey.useContext(aZ);return ey.createElement(aZ.Provider,{value:null!=n?n:r},t)},sZ=aZ,lZ=e=>{const t=UJ.useContext(pZ);return UJ.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},cZ=ey.createContext(void 0),uZ=e=>{let{children:t,size:n}=e;const r=lZ(n);return ey.createElement(cZ.Provider,{value:r},t)},pZ=cZ;bP=["children"],_P=ey.createContext({}),yP=function(){function e(){return Oa(this,e),t.apply(this,arguments)}Ts(e,ey.Component);var t=Ls(e);return Ia(e,[{key:"render",value:function(){return this.props.children}}]),e}(),vP="none",wP="appear",kP="enter",CP="leave",DP="none",xP="prepare",SP="start",EP="active",OP="end",PP="prepared",AY=Ri(),RY="undefined"!=typeof window?window:{},TY={animationend:zl("Animation","AnimationEnd"),transitionend:zl("Transition","TransitionEnd")},AY&&("AnimationEvent"in RY||delete TY.animationend.animation,"TransitionEvent"in RY||delete TY.transitionend.transition),IP=TY,NP={},Ri()&&(AP=document.createElement("div"),NP=AP.style),RP={},TP=Hl("animationend"),jP=Hl("transitionend"),$P=!(!TP||!jP),FP=TP||"animationend",LP=jP||"transitionend",MP=Ri()?ey.useLayoutEffect:ey.useEffect,UP=[xP,SP,EP,OP],zP=[xP,PP];const dZ=(FY=jY=$P,"object"===Ca(jY)&&(FY=jY.transitionSupport),($Y=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l=e.visible,c=void 0===l||l,u=e.removeOnLeave,p=void 0===u||u,d=e.forceRender,m=e.children,f=e.motionName,g=e.leavedClassName,h=e.eventProps,b=function(e,t){return!(!e.motionName||!FY||!1===t)}(e,ey.useContext(_P).motion),_=ey.useRef(),y=ey.useRef(),v=function(e,t,n,r){function o(){return n()}function a(){j(vP,!0),L(null,!0)}function i(e){var t,n,r=o();e&&!e.deadline&&e.target!==r||(t=z.current,T===wP&&t?n=null==S?void 0:S(r,e):T===kP&&t?n=null==E?void 0:E(r,e):T===CP&&t&&(n=null==O?void 0:O(r,e)),T!==vP&&t&&!1!==n&&a())}var s,l,c=r.motionEnter,u=void 0===c||c,p=r.motionAppear,d=void 0===p||p,m=r.motionLeave,f=void 0===m||m,g=r.motionDeadline,h=r.motionLeaveImmediately,b=r.onAppearPrepare,_=r.onEnterPrepare,y=r.onLeavePrepare,v=r.onAppearStart,w=r.onEnterStart,k=r.onLeaveStart,C=r.onAppearActive,D=r.onEnterActive,x=r.onLeaveActive,S=r.onAppearEnd,E=r.onEnterEnd,O=r.onLeaveEnd,P=r.onVisibleChanged,I=Vi(Al(),2),N=I[0],A=I[1],R=Vi(Al(vP),2),T=R[0],j=R[1],$=Vi(Al(null),2),F=$[0],L=$[1],M=ey.useRef(!1),U=ey.useRef(null),z=ey.useRef(!1),H=Vi(function(e){function t(e){e&&(e.removeEventListener(LP,n),e.removeEventListener(FP,n))}var n,r=ey.useRef(),o=ey.useRef(e);return o.current=e,n=ey.useCallback((function(e){o.current(e)}),[]),ey.useEffect((function(){return function(){t(r.current)}}),[]),[function(e){r.current&&r.current!==e&&t(r.current),e&&e!==r.current&&(e.addEventListener(LP,n),e.addEventListener(FP,n),r.current=e)},t]}(i),1)[0],B=function(e){var t,n,r;switch(e){case wP:return xa(t={},xP,b),xa(t,SP,v),xa(t,EP,C),t;case kP:return xa(n={},xP,_),xa(n,SP,w),xa(n,EP,D),n;case CP:return xa(r={},xP,y),xa(r,SP,k),xa(r,EP,x),r;default:return{}}},W=ey.useMemo((function(){return B(T)}),[T]),V=function(e,t,n){var r=Vi(Al(DP),2),o=r[0],a=r[1],i=function(){function e(){qO.cancel(t.current)}var t=ey.useRef(null);return ey.useEffect((function(){return function(){e()}}),[]),[function n(r,o){var a,i=arguments.length>1&&void 0!==o?o:2;e(),a=qO((function(){i<=1?r({isCanceled:function(){return a!==t.current}}):n(r,i-1)})),t.current=a},e]}(),s=Vi(i,2),l=s[0],c=s[1],u=t?zP:UP;return MP((function(){var e,t,r;o!==DP&&o!==OP&&(e=u.indexOf(o),t=u[e+1],!1===(r=n(o))?a(t,!0):t&&l((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)})))}),[e,o]),ey.useEffect((function(){return function(){c()}}),[]),[function(){a(xP,!0)},o]}(T,!e,(function(e){var t,n;return e===xP?!!(t=W[xP])&&t(o()):(X in W&&L((null===(n=W[X])||void 0===n?void 0:n.call(W,o(),null))||null),X===EP&&(H(o()),g>0&&(clearTimeout(U.current),U.current=setTimeout((function(){i({deadline:!0})}),g))),X===PP&&a(),!0)})),G=Vi(V,2),q=G[0],X=G[1],K=Wl(X);return z.current=K,MP((function(){var n,r,o;A(t),n=M.current,M.current=!0,!n&&t&&d&&(r=wP),n&&t&&u&&(r=kP),(n&&!t&&f||!n&&h&&!t&&f)&&(r=CP),o=B(r),r&&(e||o[xP])?(j(r),q()):j(vP)}),[t]),ey.useEffect((function(){(T===wP&&!d||T===kP&&!u||T===CP&&!f)&&j(vP)}),[d,u,f]),ey.useEffect((function(){return function(){M.current=!1,clearTimeout(U.current)}}),[]),s=ey.useRef(!1),ey.useEffect((function(){N&&(s.current=!0),void 0!==N&&T===vP&&((s.current||N)&&(null==P||P(N)),s.current=!0)}),[N,T]),l=F,W[xP]&&X===SP&&(l=Di({transition:"none"},l)),[T,X,l,null!=N?N:t]}(b,c,(function(){try{return _.current instanceof HTMLElement?_.current:Vs(y.current)}catch(zY){return null}}),e),w=Vi(v,4),k=w[0],C=w[1],D=w[2],x=w[3],S=ey.useRef(x);return x&&(S.current=!0),n=ey.useCallback((function(e){_.current=e,Us(t,e)}),[t]),o=Di(Di({},h),{},{visible:c}),m?k===vP?r=x?m(Di({},o),n):!p&&S.current&&g?m(Di(Di({},o),{},{className:g}),n):d||!p&&!g?m(Di(Di({},o),{},{style:{display:"none"}}),n):null:(C===xP?i="prepare":Wl(C)?i="active":C===SP&&(i="start"),s=Bl(f,"".concat(k,"-").concat(i)),r=m(Di(Di({},o),{},{className:kQ(Bl(f,k),(a={},xa(a,s,s&&i),xa(a,f,"string"==typeof f),a)),style:D}),n)):r=null,ey.isValidElement(r)&&Bs(r)&&(r.ref||(r=ey.cloneElement(r,{ref:n}))),ey.createElement(yP,{ref:y},r)}))).displayName="CSSMotion",$Y);HP="add",BP="keep",WP="remove",VP="removed",GP=["component","children","onVisibleChanged","onAllRemoved"],qP=["status"],XP=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const mZ=function(e,t){var n=arguments.length>1&&void 0!==t?t:dZ,r=function(){function e(){var n,r,o,a;for(Oa(this,e),r=arguments.length,o=new Array(r),a=0;a1&&void 0!==t?t:[],o=[],a=0,i=r.length,s=Gl(arguments.length>0&&void 0!==e?e:[]),l=Gl(r);return s.forEach((function(e){var t,n,r=!1;for(t=a;t1})).forEach((function(e){(o=o.filter((function(t){return t.key!==e||t.status!==WP}))).forEach((function(t){t.key===e&&(t.status=BP)}))})),o}(n,r);return{keyEntities:o.filter((function(e){var t=n.find((function(t){return e.key===t.key}));return!t||t.status!==VP||e.status!==WP}))}}}]),e}();return xa(r,"defaultProps",{component:"div"}),r}($P);KP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${Xl()}-${e}`:Xl()),getIconPrefixCls:Kl,getRootPrefixCls:()=>gZ||Xl(),getTheme:()=>bZ}),yZ=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:a,componentSize:i,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:p,popupOverflow:d,legacyLocale:m,parentContext:f,iconPrefixCls:g,theme:h,componentDisabled:b}=e,_=ey.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||f.getPrefixCls("");return t?`${o}-${t}`:o}),[f.getPrefixCls,e.prefixCls]),y=g||f.iconPrefixCls||WQ,v=y!==f.iconPrefixCls,w=n||f.csp,k=((e,t)=>{const[n,r]=Ml();return Os({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))})(y,w),C=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:nZ;return Si((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Ni(e,t[n],!0)))))}(h,f.theme),D={csp:w,autoInsertSpaceInButton:r,locale:a||m,direction:s,space:l,virtual:c,popupMatchSelectWidth:null!=p?p:u,popupOverflow:d,getPrefixCls:_,iconPrefixCls:y,theme:C},x=Object.assign({},f);Object.keys(D).forEach((e=>{void 0!==D[e]&&(x[e]=D[e])})),fZ.forEach((t=>{const n=e[t];n&&(x[t]=n)}));const S=Si((()=>x),x,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),E=ey.useMemo((()=>({prefixCls:y,csp:w})),[y,w]);let O=v?k(t):t;const P=ey.useMemo((()=>{var e,t,n;return ol((null===(e=OQ.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=S.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null==o?void 0:o.validateMessages)||{})}),[S,null==o?void 0:o.validateMessages]);Object.keys(P).length>0&&(O=ey.createElement(DQ.Provider,{value:P},t)),a&&(O=ey.createElement(AQ,{locale:a,_ANT_MARK__:"internalMark"},O)),(y||w)&&(O=ey.createElement(CQ.Provider,{value:E},O)),i&&(O=ey.createElement(uZ,{size:i},O)),O=ey.createElement(ql,null,O);const I=ey.useMemo((()=>{const e=C||{},{algorithm:t,token:n}=e,r=KP(e,["algorithm","token"]),o=t&&(!Array.isArray(t)||t.length>0)?Ps(t):void 0;return Object.assign(Object.assign({},r),{theme:o,token:Object.assign(Object.assign({},FQ),n)})}),[C]);return h&&(O=ey.createElement(rZ.Provider,{value:I},O)),void 0!==b&&(O=ey.createElement(iZ,{disabled:b},O)),ey.createElement(VQ.Provider,{value:S},O)},vZ=e=>{const t=ey.useContext(VQ),n=ey.useContext(IQ);return ey.createElement(yZ,Object.assign({parentContext:t,legacyLocale:n},e))};vZ.ConfigContext=VQ,vZ.SizeContext=pZ,vZ.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(gZ=t),void 0!==n&&(hZ=n),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new eP(e),a=xl(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new eP(t.primaryColor),a=xl(e.toRgbString());a.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const i=new eP(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(i,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Ri()&&zi(n,`${oZ}-dynamic-theme`)}(Xl(),r):bZ=r)},vZ.useConfig=function(){return{componentDisabled:ey.useContext(sZ),componentSize:ey.useContext(pZ)}},Object.defineProperty(vZ,"SizeContext",{get:()=>pZ});const wZ={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"};YP=function(e){var t=ey.useContext(CQ),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),ey.useEffect((function(){var t=Jl(e.current);zi(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},JP=["icon","className","onClick","style","primaryColor","secondaryColor"],QP={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},(ZP=function(e){var t,n,r,o=e.icon,a=e.className,i=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=Sa(e,JP),p=ey.useRef(),d=QP;return l&&(d={primaryColor:l,secondaryColor:c||tc(l)}),YP(p),n=Ql(o),r="icon should be icon definiton, but got ".concat(o),Ii(n,"[@ant-design/icons] ".concat(r)),Ql(o)?((t=o)&&"function"==typeof t.icon&&(t=Di(Di({},t),{},{icon:t.icon(d.primaryColor,d.secondaryColor)})),ec(t.icon,"svg-".concat(t.name),Di(Di({className:a,onClick:i,style:s,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:p}))):null}).displayName="IconReact",ZP.getTwoToneColors=function(){return Di({},QP)},ZP.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;QP.primaryColor=t,QP.secondaryColor=n||tc(t),QP.calculated=!!n};const kZ=ZP;eI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"],rc(dP.primary),(tI=ey.forwardRef((function(e,t){var n,r,o,a,i,s=e.className,l=e.icon,c=e.spin,u=e.rotate,p=e.tabIndex,d=e.onClick,m=e.twoToneColor,f=Sa(e,eI),g=ey.useContext(CQ),h=g.prefixCls,b=void 0===h?"anticon":h,_=kQ(g.rootClassName,b,(xa(n={},"".concat(b,"-").concat(l.name),!!l.name),xa(n,"".concat(b,"-spin"),!!c||"loading"===l.name),n),s),y=p;return void 0===y&&d&&(y=-1),r=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,a=(o=Vi(nc(m),2))[0],i=o[1],ey.createElement("span",mi({role:"img","aria-label":l.name},f,{ref:t,tabIndex:y,onClick:d,className:_}),ey.createElement(kZ,{icon:l,primaryColor:a,secondaryColor:i,style:r}))}))).displayName="AntdIcon",tI.getTwoToneColor=function(){var e=kZ.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},tI.setTwoToneColor=rc;const CZ=tI,DZ=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:wZ}))})),xZ={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},SZ=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:xZ}))})),EZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},OZ=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:EZ}))})),PZ={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"},IZ=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:PZ}))})),NZ={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"},AZ=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:NZ}))}));nI="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),rI="aria-",oI="data-";const{isValidElement:RZ}=zJ,TZ=e=>"object"==typeof e&&null!=e&&1===e.nodeType,jZ=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,$Z=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightat||a>e&&i=t&&s>=n?a-e-r:i>t&&sn?i-t+o:0,LZ=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},MZ=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,p="function"==typeof c?c:e=>e!==c;if(!TZ(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,m=[];let f=e;for(;TZ(f)&&p(f);){if(f=LZ(f),f===d){m.push(f);break}null!=f&&f===document.body&&$Z(f)&&!$Z(document.documentElement)||null!=f&&$Z(f,u)&&m.push(f)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:_}=window,{height:y,width:v,top:w,right:k,bottom:C,left:D}=e.getBoundingClientRect();let x="start"===s||"nearest"===s?w:"end"===s?C:w+y/2,S="center"===l?D+v/2:"end"===l?k:D;const E=[];for(let O=0;O=0&&D>=0&&C<=h&&k<=g&&w>=r&&C<=a&&D>=c&&k<=o)return E;const u=getComputedStyle(e),p=parseInt(u.borderLeftWidth,10),f=parseInt(u.borderTopWidth,10),P=parseInt(u.borderRightWidth,10),I=parseInt(u.borderBottomWidth,10);let N=0,A=0;const R="offsetWidth"in e?e.offsetWidth-e.clientWidth-p-P:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-f-I:0,j="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,$="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(d===e)N="start"===s?x:"end"===s?x-h:"nearest"===s?FZ(_,_+h,h,f,I,_+x,_+x+y,y):x-h/2,A="start"===l?S:"center"===l?S-g/2:"end"===l?S-g:FZ(b,b+g,g,p,P,b+S,b+S+v,v),N=Math.max(0,N+_),A=Math.max(0,A+b);else{N="start"===s?x-r-f:"end"===s?x-a+I+T:"nearest"===s?FZ(r,a,t,f,I+T,x,x+y,y):x-(r+t/2)+T/2,A="start"===l?S-c-p:"center"===l?S-(c+n/2)+R/2:"end"===l?S-o+P+R:FZ(c,o,n,p,P+R,S,S+v,v);const{scrollLeft:i,scrollTop:u}=e;N=Math.max(0,Math.min(u+N/$,e.scrollHeight-t/$+T)),A=Math.max(0,Math.min(i+A/j,e.scrollWidth-n/j+R)),x+=u-N,S+=i-A}E.push({el:e,top:N,left:A})}return E},UZ=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};aI={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){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=aI.F1&&t<=aI.F12)return!1;switch(t){case aI.ALT:case aI.CAPS_LOCK:case aI.CONTEXT_MENU:case aI.CTRL:case aI.DOWN:case aI.END:case aI.ESC:case aI.HOME:case aI.INSERT:case aI.LEFT:case aI.MAC_FF_META:case aI.META:case aI.NUMLOCK:case aI.NUM_CENTER:case aI.PAGE_DOWN:case aI.PAGE_UP:case aI.PAUSE:case aI.PRINT_SCREEN:case aI.RIGHT:case aI.SHIFT:case aI.UP:case aI.WIN_KEY:case aI.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=aI.ZERO&&e<=aI.NINE)return!0;if(e>=aI.NUM_ZERO&&e<=aI.NUM_MULTIPLY)return!0;if(e>=aI.A&&e<=aI.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case aI.SPACE:case aI.QUESTION_MARK:case aI.NUM_PLUS:case aI.NUM_MINUS:case aI.NUM_PERIOD:case aI.NUM_DIVISION:case aI.SEMICOLON:case aI.DASH:case aI.EQUALS:case aI.COMMA:case aI.PERIOD:case aI.SLASH:case aI.APOSTROPHE:case aI.SINGLE_QUOTE:case aI.OPEN_SQUARE_BRACKET:case aI.BACKSLASH:case aI.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},iI=ey.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.style,a=e.className,i=e.duration,s=void 0===i?4.5:i,l=e.eventKey,c=e.content,u=e.closable,p=e.closeIcon,d=void 0===p?"x":p,m=e.props,f=e.onClick,g=e.onNoticeClose,h=e.times,b=Vi(ey.useState(!1),2),_=b[0],y=b[1],v=function(){g(l)};return ey.useEffect((function(){if(!_&&s>0){var e=setTimeout((function(){v()}),1e3*s);return function(){clearTimeout(e)}}}),[s,_,h]),n="".concat(r,"-notice"),ey.createElement("div",mi({},m,{ref:t,className:kQ(n,a,xa({},"".concat(n,"-closable"),u)),style:o,onMouseEnter:function(){y(!0)},onMouseLeave:function(){y(!1)},onClick:f}),ey.createElement("div",{className:"".concat(n,"-content")},c),u&&ey.createElement("a",{tabIndex:0,className:"".concat(n,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==aI.ENTER||v()},onClick:function(e){e.preventDefault(),e.stopPropagation(),v()}},d))})),sI=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l=e.prefixCls,c=void 0===l?"rc-notification":l,u=e.container,p=e.motion,d=e.maxCount,m=e.className,f=e.style,g=e.onAllRemoved,h=Vi(ey.useState([]),2),b=h[0],_=h[1],y=function(e){var t,n=b.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),_((function(t){return t.filter((function(t){return t.key!==e}))}))};return ey.useImperativeHandle(t,(function(){return{open:function(e){_((function(t){var n,r=ki(t),o=r.findIndex((function(t){return t.key===e.key})),a=Di({},e);return o>=0?(a.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=a):(a.times=0,r.push(a)),d>0&&r.length>d&&(r=r.slice(-d)),r}))},close:function(e){y(e)},destroy:function(){_([])}}})),n=Vi(ey.useState({}),2),r=n[0],o=n[1],ey.useEffect((function(){var e={};b.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(r).forEach((function(t){e[t]=e[t]||[]})),o(e)}),[b]),a=function(e){o((function(t){var n=Di({},t);return(n[e]||[]).length||delete n[e],n}))},i=ey.useRef(!1),ey.useEffect((function(){Object.keys(r).length>0?i.current=!0:i.current&&(null==g||g(),i.current=!1)}),[r]),u?(s=Object.keys(r),fD.createPortal(ey.createElement(ey.Fragment,null,s.map((function(e){var t=r[e].map((function(e){return{config:e,key:e.key}})),n="function"==typeof p?p(e):p;return ey.createElement(mZ,mi({key:e,className:kQ(c,"".concat(c,"-").concat(e),null==m?void 0:m(e)),style:null==f?void 0:f(e),keys:t,motionAppear:!0},n,{onAllRemoved:function(){a(e)}}),(function(e,t){var n=e.config,r=e.style,o=n.key,a=n.times,i=n.style;return ey.createElement(iI,mi({},n,{ref:t,prefixCls:c,className:kQ(e.className,n.className),style:Di(Di({},r),i),times:a,key:o,eventKey:o,onNoticeClose:y}))}))}))),u)):null})),lI=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],cI=function(){return document.body},uI=0;const zZ=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:p,marginXS:d,paddingXS:m,borderRadiusLG:f,zIndexPopup:g,contentPadding:h,contentBg:b}=e,_=`${t}-notice`,y=new lO("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),v=new lO("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:m,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:c},[`${_}-content`]:{display:"inline-block",padding:h,background:b,borderRadius:f,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},XQ(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:v,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[_]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},HZ=jl("Message",(e=>{const t=$l(e,{height:150});return[zZ(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),BZ={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"},WZ=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:BZ}))}));pI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=GZ,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:p}=ey.useContext(VQ),d=r||u("message"),[,m]=HZ(d),f=ey.createElement("span",{className:`${d}-close-x`},ey.createElement(OZ,{className:`${d}-close-icon`})),[g,h]=lc({prefixCls:d,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>kQ(m,s?`${d}-rtl`:""),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(d,l),closable:!1,closeIcon:f,duration:i,getContainer:()=>(null==o?void 0:o())||(null==p?void 0:p())||document.body,maxCount:a,onAllRemoved:c});return ey.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:d,hashId:m}))),h}));let XZ=0;fI=(mI=Di({},BJ)).version,gI=mI.render,hI=mI.unmountComponentAtNode;try{Number((fI||"").split(".")[0])>=18&&(bI=mI.createRoot)}catch(zY){}_I="__rc_react_root__";const KZ=function(e){var t,n;if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox&&((t=e.getBBox()).width||t.height))return!0;if(e.getBoundingClientRect&&((n=e.getBoundingClientRect()).width||n.height))return!0}return!1},YZ=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},JZ=jl("Wave",(e=>[YZ(e)])),QZ=e=>{function t(){const e=getComputedStyle(r);i(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Cc(t)?t:Cc(n)?n:Cc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;u(t?r.offsetLeft:Dc(-parseFloat(n))),d(t?r.offsetTop:Dc(-parseFloat(o))),f(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:p}=e;l([a,s,p,c].map((e=>Dc(parseFloat(e)))))}const{className:n,target:r}=e,o=ey.useRef(null),[a,i]=ey.useState(null),[s,l]=ey.useState([]),[c,u]=ey.useState(0),[p,d]=ey.useState(0),[m,f]=ey.useState(0),[g,h]=ey.useState(0),[b,_]=ey.useState(!1),y={left:c,top:p,width:m,height:g,borderRadius:s.map((e=>`${e}px`)).join(" ")};return a&&(y["--wave-color"]=a),ey.useEffect((()=>{if(r){const e=qO((()=>{t(),_(!0)}));let n;return"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(r)),()=>{qO.cancel(e),null==n||n.disconnect()}}}),[]),b?ey.createElement(dZ,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;wc(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:t}=e;return ey.createElement("div",{ref:o,className:kQ(n,t),style:y})})):null},ZZ=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=ey.useContext(VQ),o=ey.useRef(null),a=r("wave"),[,i]=JZ(a),s=(l=o,c=kQ(a,i),function(){!function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),bc(ey.createElement(QZ,{target:e,className:t}),n)}(l.current,c)});var l,c;return UJ.useEffect((()=>{const e=o.current;if(!e||1!==e.nodeType||n)return;const t=t=>{"INPUT"===t.target.tagName||!KZ(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s()};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),UJ.isValidElement(t)?sc(t,{ref:Bs(t)?zs(t.ref,o):o}):null!=t?t:null},e0=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},t0=e=>{const{componentCls:t}=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"}}}},n0=jl("Space",(e=>[t0(e),e0(e)]),(()=>({})),{resetStyle:!1});yI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=ey.useContext(r0),r=ey.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,i="vertical"===r?"-vertical-":"-";return kQ({[`${e}-compact${i}item`]:!0,[`${e}-compact${i}first-item`]:o,[`${e}-compact${i}last-item`]:a,[`${e}-compact${i}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},a0=e=>{let{children:t}=e;return ey.createElement(r0.Provider,{value:null},t)},i0=e=>{var{children:t}=e,n=yI(e,["children"]);return ey.createElement(r0.Provider,{value:n},t)},s0=ey.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=kQ(`${a}-icon`,n);return UJ.createElement("span",{ref:t,className:i,style:r},o)})),l0=ey.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=kQ(`${n}-loading-icon`,r);return UJ.createElement(s0,{prefixCls:n,className:i,style:o,ref:t},UJ.createElement(WZ,{className:a}))})),c0=()=>({width:0,opacity:0,transform:"scale(0)"}),u0=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),p0=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e;const i=!!n;return r?UJ.createElement(l0,{prefixCls:t,className:o,style:a}):UJ.createElement(dZ,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:c0,onAppearActive:u0,onEnterStart:c0,onEnterActive:u0,onLeaveStart:u0,onLeaveActive:c0},((e,n)=>{let{className:r,style:i}=e;return UJ.createElement(l0,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),i),ref:n,iconClassName:r})}))};vI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),h0=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},g0(`${t}-primary`,o),g0(`${t}-danger`,a)]}},b0=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},QQ(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},_0=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),y0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),v0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),w0=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),k0=(e,t,n,r,o,a,i)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},_0(Object.assign({backgroundColor:"transparent"},a),Object.assign({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),C0=e=>({"&:disabled":Object.assign({},w0(e))}),D0=e=>Object.assign({},C0(e)),x0=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),S0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},D0(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),_0({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),k0(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},_0({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),k0(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),C0(e))}),E0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},D0(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),_0({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),k0(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},_0({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),k0(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),C0(e))}),O0=e=>Object.assign(Object.assign({},S0(e)),{borderStyle:"dashed"}),P0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},_0({color:e.colorLinkHover},{color:e.colorLinkActive})),x0(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},_0({color:e.colorErrorHover},{color:e.colorErrorActive})),x0(e))}),I0=e=>Object.assign(Object.assign(Object.assign({},_0({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),x0(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},x0(e)),_0({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),N0=e=>Object.assign(Object.assign({},w0(e)),{[`&${e.componentCls}:hover`]:Object.assign({},w0(e))}),A0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:S0(e),[`${t}-primary`]:E0(e),[`${t}-dashed`]:O0(e),[`${t}-link`]:P0(e),[`${t}-text`]:I0(e),[`${t}-disabled`]:N0(e)}},R0=function(e,t){let n=arguments.length>1&&void 0!==t?t:"";const{componentCls:r,controlHeight:o,fontSize:a,lineHeight:i,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e;return[{[`${r}${n}`]:{fontSize:a,height:o,padding:`${Math.max(0,(o-a*i)/2-s)}px ${c-s}px`,borderRadius:l,[`&${r}-icon-only`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${n}`]:y0(e)},{[`${r}${r}-round${n}`]:v0(e)}]},T0=e=>R0(e),j0=e=>{const t=$l(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return R0(t,`${e.componentCls}-sm`)},$0=e=>{const t=$l(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return R0(t,`${e.componentCls}-lg`)},F0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},L0=jl("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=$l(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return[b0(r),j0(r),T0(r),$0(r),F0(r),A0(r),h0(r),Oc(e),Ic(e)]}));wI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:p,className:d,rootClassName:m,children:f,icon:g,ghost:h=!1,block:b=!1,htmlType:_="button",classNames:y,style:v={}}=e,w=wI(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:k,autoInsertSpaceInButton:C,direction:D,button:x}=ey.useContext(VQ),S=k("btn",a),[E,O]=L0(S),P=ey.useContext(sZ),I=null!=p?p:P,N=ey.useContext(d0),A=ey.useMemo((()=>function(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(o)),[o]),[R,T]=ey.useState(A.loading),[j,$]=ey.useState(!1),F=zs(t,ey.createRef()),L=1===ey.Children.count(f)&&!g&&!xc(i);ey.useEffect((()=>{let e=null;return A.delay>0?e=setTimeout((()=>{e=null,T(!0)}),A.delay):T(A.loading),function(){e&&(clearTimeout(e),e=null)}}),[A]),ey.useEffect((()=>{F&&F.current&&!1!==C&&(L&&f0(F.current.textContent)?j||$(!0):j&&$(!1))}),[F]);const M=t=>{const{onClick:n}=e;R||I?t.preventDefault():null==n||n(t)},U=!1!==C,{compactSize:z,compactItemClassnames:H}=o0(S,D),B=lZ((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:z)&&void 0!==t?t:N)&&void 0!==n?n:e})),W=B&&{large:"lg",small:"sm",middle:void 0}[B]||"",V=R?"loading":g,G=Js(w,["navigate"]),q=void 0!==G.href&&I,X=kQ(S,O,{[`${S}-${l}`]:"default"!==l&&l,[`${S}-${i}`]:i,[`${S}-${W}`]:W,[`${S}-icon-only`]:!f&&0!==f&&!!V,[`${S}-background-ghost`]:h&&!xc(i),[`${S}-loading`]:R,[`${S}-two-chinese-chars`]:j&&U&&!R,[`${S}-block`]:b,[`${S}-dangerous`]:!!s,[`${S}-rtl`]:"rtl"===D,[`${S}-disabled`]:q},H,d,m,null==x?void 0:x.className),K=Object.assign(Object.assign({},null==x?void 0:x.style),v),Y=kQ(null==y?void 0:y.icon,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.icon),J=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==x?void 0:x.styles)||void 0===r?void 0:r.icon)||{}),Q=g&&!R?UJ.createElement(s0,{prefixCls:S,className:Y,style:J},g):UJ.createElement(p0,{existIcon:!!g,prefixCls:S,loading:!!R}),Z=f||0===f?function(e,t){let n=!1;const r=[];return UJ.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1;r[t]=`${r[t]}${e}`}else r.push(e);n=o})),UJ.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&f0(e.props.children)?sc(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?f0(e)?UJ.createElement("span",null,e.split("").join(n)):UJ.createElement("span",null,e):ic(e)?UJ.createElement("span",null,e):e}(e,t)))}(f,L&&U):null;if(void 0!==G.href)return E(UJ.createElement("a",Object.assign({},G,{className:X,style:K,onClick:M,ref:F}),Q,Z));let ee=UJ.createElement("button",Object.assign({},w,{type:_,className:X,style:K,onClick:M,disabled:I,ref:F}),Q,Z);return xc(i)||(ee=UJ.createElement(ZZ,{disabled:!!R},ee)),E(ee)},U0=ey.forwardRef(M0);U0.Group=e=>{const{getPrefixCls:t,direction:n}=ey.useContext(VQ),{prefixCls:r,size:o,className:a}=e,i=vI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ml();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=kQ(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},a,l);return ey.createElement(d0.Provider,{value:o},ey.createElement("div",Object.assign({},i,{className:u})))},U0.__ANT_BUTTON=!0;const z0=U0,H0=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=ey.useRef(!1),p=ey.useRef(null),[d,m]=Al(!1),f=function(){null==a||a.apply(void 0,arguments)};return ey.useEffect((()=>{let e=null;return i&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),ey.createElement(z0,Object.assign({},Nc(t),{onClick:e=>{if(u.current)return;if(u.current=!0,!c)return void f();let t;if(s){if(t=c(e),l&&!Ac(t))return u.current=!1,void f(e)}else if(c.length)t=c(a),u.current=!1;else if(t=c(),!t)return void f();(e=>{Ac(e)&&(m(!0),e.then((function(){m(!1,!0),f.apply(void 0,arguments),u.current=!1}),(e=>(m(!1,!0),u.current=!1,Promise.reject(e)))))})(t)},loading:d,prefixCls:r},o,{ref:p}),n)},B0=()=>({height:0,opacity:0}),W0=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},V0=e=>({height:e?e.offsetHeight:0}),G0=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,q0=function(e){return{motionName:`${arguments.length>0&&void 0!==e?e:"ant"}-motion-collapse`,onAppearStart:B0,onEnterStart:B0,onAppearActive:W0,onEnterActive:W0,onLeaveStart:V0,onLeaveActive:B0,onAppearEnd:G0,onEnterEnd:G0,onLeaveEnd:G0,motionDeadline:500}},X0=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",K0=(e,t,n)=>void 0!==n?n:`${e}-${t}`;kI=ey.createContext(null),CI=[],xI="rc-util-locker-".concat(Date.now()),SI=0,EI=function(e){return!1!==e&&(Ri()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},OI=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C=e.open,D=e.autoLock,x=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,a=Vi(ey.useState(C),2),i=a[1],s=a[0]||C,ey.useEffect((function(){(r||C)&&i(C)}),[C,r]),c=(l=Vi(ey.useState((function(){return EI(x)})),2))[0],u=l[1],ey.useEffect((function(){var e=EI(x);u(null!=e?e:null)})),p=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=Vi(ey.useState((function(){return Ri()?document.createElement("div"):null})),1)[0],o=ey.useRef(!1),a=ey.useContext(kI),i=Vi(ey.useState(CI),2),s=i[0],l=i[1],c=a||(o.current?void 0:function(e){l((function(t){return[e].concat(ki(t))}))});return gP((function(){return e?a?a(t):t():n(),n}),[e]),gP((function(){s.length&&(s.forEach((function(e){return e()})),l(CI))}),[s]),[r,c]}(s&&!c),m=(d=Vi(p,2))[0],f=d[1],g=null!=c?c:m,v=D&&C&&Ri()&&(g===m||g===document.body),w=!!v,k=Vi(ey.useState((function(){return SI+=1,"".concat(xI,"_").concat(SI)})),1)[0],gP((function(){var e,t,n,r,o,a,i;return w?(e="undefined"==typeof document?0:(void 0===DI&&((n=document.createElement("div")).style.width="100%",n.style.height="200px",(o=(r=document.createElement("div")).style).position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",r.appendChild(n),document.body.appendChild(r),a=n.offsetWidth,r.style.overflow="scroll",a===(i=n.offsetWidth)&&(i=r.clientWidth),document.body.removeChild(r),DI=a-i),DI),t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,zi("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),k)):Ui(k),function(){Ui(k)}}),[w,k]),h=null,o&&Bs(o)&&t&&(h=o.ref),b=Hs(h,t),s&&Ri()&&void 0!==c?(_=!1===g||false,y=o,t&&(y=ey.cloneElement(o,{ref:b})),ey.createElement(kI.Provider,{value:f},_?y:fD.createPortal(y,g))):null})),PI=0;const Y0=ey.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));II={width:0,height:0,overflow:"hidden",outline:"none"},NI=UJ.forwardRef((function(e,t){var n,r,o,a,i,s=e.prefixCls,l=e.className,c=e.style,u=e.title,p=e.ariaId,d=e.footer,m=e.closable,f=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,_=e.bodyProps,y=e.modalRender,v=e.onMouseDown,w=e.onMouseUp,k=e.holderRef,C=e.visible,D=e.forceRender,x=e.width,S=e.height,E=ey.useRef(),O=ey.useRef();return UJ.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?E.current.focus():e||t!==E.current||O.current.focus()}}})),n={},void 0!==x&&(n.width=x),void 0!==S&&(n.height=S),d&&(r=UJ.createElement("div",{className:"".concat(s,"-footer")},d)),u&&(o=UJ.createElement("div",{className:"".concat(s,"-header")},UJ.createElement("div",{className:"".concat(s,"-title"),id:p},u))),m&&(a=UJ.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(s,"-close")},f||UJ.createElement("span",{className:"".concat(s,"-close-x")}))),i=UJ.createElement("div",{className:"".concat(s,"-content")},a,o,UJ.createElement("div",mi({className:"".concat(s,"-body"),style:b},_),h),r),UJ.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?p:null,"aria-modal":"true",ref:k,style:Di(Di({},c),n),className:kQ(s,l),onMouseDown:v,onMouseUp:w},UJ.createElement("div",{tabIndex:0,ref:E,style:II,"aria-hidden":"true"}),UJ.createElement(Y0,{shouldUpdate:C||D},y?y(i):i),UJ.createElement("div",{tabIndex:0,ref:O,style:II,"aria-hidden":"true"}))})),(AI=ey.forwardRef((function(e,t){function n(){var e,t,n,r,o,a=((n={left:(t=(e=f.current).getBoundingClientRect()).left,top:t.top}).left+=jc(o=(r=e.ownerDocument).defaultView||r.parentWindow),n.top+=jc(o,!0),n);b(m?"".concat(m.x-a.left,"px ").concat(m.y-a.top,"px"):"")}var r=e.prefixCls,o=e.title,a=e.style,i=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,p=e.ariaId,d=e.onVisibleChanged,m=e.mousePosition,f=ey.useRef(),g=Vi(ey.useState(),2),h=g[0],b=g[1],_={};return h&&(_.transformOrigin=h),ey.createElement(dZ,{visible:s,onVisibleChanged:d,onAppearPrepare:n,onEnterPrepare:n,forceRender:l,motionName:u,removeOnLeave:c,ref:f},(function(n,s){var l=n.className;return ey.createElement(NI,mi({},e,{ref:t,title:o,ariaId:p,prefixCls:r,holderRef:s,style:Di(Di(Di({},n.style),a),_),className:kQ(i,l)}))}))}))).displayName="Content",(RI=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,i=e.afterClose,s=Vi(ey.useState(t),2),l=s[0],c=s[1];return ey.useEffect((function(){t&&c(!0)}),[t]),r||!a||l?ey.createElement(OI,{open:t||r||l,autoDestroy:!1,getContainer:n,autoLock:t||l},ey.createElement(Fc,mi({},e,{destroyOnClose:a,afterClose:function(){null==i||i(),c(!1)}}))):null}).displayName="Dialog";const J0=()=>Ri()&&window.document.documentElement;let Q0;TI="RC_FORM_INTERNAL_HOOKS",$I=ey.createContext({getFieldValue:jI=function(){Ii(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},getFieldsValue:jI,getFieldError:jI,getFieldWarning:jI,getFieldsError:jI,isFieldsTouched:jI,isFieldTouched:jI,isFieldValidating:jI,isFieldsValidating:jI,resetFields:jI,setFields:jI,setFieldValue:jI,setFieldsValue:jI,validateFields:jI,submit:jI,getInternalHooks:function(){return jI(),{dispatch:jI,initEntityValue:jI,registerField:jI,useSubscribe:jI,setInitialValues:jI,destroyForm:jI,setCallbacks:jI,registerWatch:jI,getFields:jI,setValidateMessages:jI,setPreserve:jI,getInitialValue:jI}}}),FI=ey.createContext(null),LI=/%[sdj%]/g,MI=function(){},UI=function(e){function t(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,zc(n,r),t}(Bc(Error)),BI=function(){var e,t,n,r,o,a,i,s,l,c,u;return HI||(e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o=("\n(?:\n(?:"+(r="[a-fA-F\\d]{1,4}")+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+(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+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),(l=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")}).v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")},c=l.v4().source,u=l.v6().source,HI=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[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"]*)?$)',"i"))},WI=/^(([^<>()\[\]\\.,;:\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,}))$/,VI=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,GI={integer:function(e){return GI.number(e)&&parseInt(e,10)===e},float:function(e){return GI.number(e)&&!GI.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(zY){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!GI.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(WI)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(BI())},hex:function(e){return"string"==typeof e&&!!e.match(VI)}},qI=function(e,t,n,r,o){var a;e.required&&void 0===t?zI(e,t,n,r,o):["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a=e.type)>-1?GI[a](t)||r.push(Vc(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(Vc(o.messages.types[a],e.fullField,e.type))},XI="enum",KI={required:zI=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!Gc(t,a||e.type)||r.push(Vc(o.messages.required,e.fullField))},whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Vc(o.messages.whitespace,e.fullField))},type:qI,range:function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,p="string"==typeof t,d=Array.isArray(t);if(u?c="number":p?c="string":d&&(c="array"),!c)return!1;d&&(l=t.length),p&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&r.push(Vc(o.messages[c].len,e.fullField,e.len)):i&&!s&&le.max?r.push(Vc(o.messages[c].max,e.fullField,e.max)):i&&s&&(le.max)&&r.push(Vc(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[XI]=Array.isArray(e[XI])?e[XI]:[],-1===e[XI].indexOf(t)&&r.push(Vc(o.messages[XI],e.fullField,e[XI].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Vc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Vc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},JI={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t,"string")&&!e.required)return n();KI.required(e,t,r,a,o,"string"),Gc(t,"string")||(KI.type(e,t,r,a,o),KI.range(e,t,r,a,o),KI.pattern(e,t,r,a,o),!0===e.whitespace&&KI.whitespace(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o),void 0!==t&&KI.type(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o),void 0!==t&&(KI.type(e,t,r,a,o),KI.range(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o),void 0!==t&&KI.type(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o),Gc(t)||KI.type(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o),void 0!==t&&(KI.type(e,t,r,a,o),KI.range(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o),void 0!==t&&(KI.type(e,t,r,a,o),KI.range(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();KI.required(e,t,r,a,o,"array"),null!=t&&(KI.type(e,t,r,a,o),KI.range(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o),void 0!==t&&KI.type(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o),void 0!==t&&KI.enum(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t,"string")&&!e.required)return n();KI.required(e,t,r,a,o),Gc(t,"string")||KI.pattern(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t,"date")&&!e.required)return n();KI.required(e,t,r,i,o),Gc(t,"date")||(a=t instanceof Date?t:new Date(t),KI.type(e,a,r,i,o),a&&KI.range(e,a.getTime(),r,i,o))}n(i)},url:YI=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t,a)&&!e.required)return n();KI.required(e,t,r,i,o,a),Gc(t,a)||KI.type(e,t,r,i,o)}n(i)},hex:YI,email:YI,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;KI.required(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Gc(t)&&!e.required)return n();KI.required(e,t,r,a,o)}n(a)}},QI=Yc(),ZI=function(){function e(e){this.rules=null,this._messages=QI,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new 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]}))},t.messages=function(e){return e&&(this._messages=Kc(Yc(),e)),this._messages},t.validate=function(t,n,r){var o,a,i,s,l,c,u=this;return void 0===n&&(n={}),void 0===r&&(r=function(){}),o=t,i=r,"function"==typeof(a=n)&&(i=a,a={}),this.rules&&0!==Object.keys(this.rules).length?(a.messages?((s=this.messages())===QI&&(s=Yc()),Kc(s,a.messages),a.messages=s):a.messages=this.messages(),l={},(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o[e];u.rules[e].forEach((function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=Mc({},o)),n=o[e]=a.transform(n)),(a="function"==typeof a?{validator:a}:Mc({},a)).validator=u.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=u.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:n,source:o,field:e}))}))})),c={},function(e,t,n,r,o){var a,i,s,l,c,u,p;return t.first?(a=new Promise((function(t,a){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);qc(i,n,(function(e){return r(e),e.length?a(new UI(e,Wc(e))):t(o)}))})),a.catch((function(e){return e})),a):(i=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],p=new Promise((function(t,a){var p=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?a(new UI(u,Wc(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?qc(r,n,p):function(e,t,n){function r(e){o.push.apply(o,e||[]),++a===i&&n(o)}var o=[],a=0,i=e.length;e.forEach((function(e){t(e,r)}))}(r,n,p)}))})),p.catch((function(e){return e})),p)}(l,a,(function(t,n){function r(e,t){return Mc({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function i(i){var s,p,d,m,f;if(void 0===i&&(i=[]),s=Array.isArray(i)?i:[i],!a.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==l.message&&(s=[].concat(l.message)),p=s.map(Xc(l,o)),a.first&&p.length)return c[l.field]=1,n(p);if(u){if(l.required&&!t.value)return void 0!==l.message?p=[].concat(l.message).map(Xc(l,o)):a.error&&(p=[a.error(l,Vc(a.messages.required,l.field))]),n(p);d={},l.defaultField&&Object.keys(t.value).map((function(e){d[e]=l.defaultField})),d=Mc({},d,t.rule.fields),m={},Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];m[e]=n.map(r.bind(null,e))})),(f=new e(m)).messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),f.validate(t.value,t.rule.options||a,(function(e){var t=[];p&&p.length&&t.push.apply(t,p),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(p)}var s,l=t.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!=typeof l.fields&&"object"!=typeof l.defaultField);if(u=u&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)s=l.asyncValidator(l,t.value,i,t.source,a);else if(l.validator){try{s=l.validator(l,t.value,i,t.source,a)}catch(p){console,a.suppressValidatorError||setTimeout((function(){throw p}),0),i(p.message)}!0===s?i():!1===s?i("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):s instanceof Array?i(s):s instanceof Error&&i(s.message)}s&&s.then&&s.then((function(){return i()}),(function(e){return i(e)}))}),(function(e){!function(e){var t,n,r,a=[],s={};for(t=0;t0&&void 0!==e?e:aN;r.validatePromise===l&&(r.validatePromise=null,n=[],o=[],null===(t=a.forEach)||void 0===t||t.call(a,(function(e){var t=e.errors,r=void 0===t?aN:t;e.rule.warningOnly?o.push.apply(o,ki(r)):n.push.apply(n,ki(r))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender())})),p):[]}));return s||(r.validatePromise=l,r.dirty=!0,r.errors=aN,r.warnings=aN,r.triggerMetaEvent(),r.reRender()),l},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(TI).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}},r.getOnlyChild=function(e){var t,n;return"function"==typeof e?(t=r.getMeta(),Di(Di({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})):1===(n=Ms(e)).length&&ey.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return el(e||t(!0),n)},r.getControlled=function(e){var t=arguments.length>0&&void 0!==e?e:{},n=r.props,o=n.trigger,a=n.validateTrigger,i=n.getValueFromEvent,s=n.normalize,l=n.valuePropName,c=n.getValueProps,u=n.fieldContext,p=void 0!==a?a:u.validateTrigger,d=r.getNamePath(),m=u.getFieldsValue,f=(0,u.getInternalHooks)(TI).dispatch,g=r.getValue(),h=c||function(e){return xa({},l,e)},b=t[o],_=Di(Di({},t),h(g));return _[o]=function(){var e,t,n,o;for(r.touched=!0,r.dirty=!0,r.triggerMetaEvent(),t=arguments.length,n=new Array(t),o=0;o=0&&t<=n.length?(c.keys=[].concat(ki(c.keys.slice(0,t)),[c.id],ki(c.keys.slice(t))),o([].concat(ki(n.slice(0,t)),[e],ki(n.slice(t))))):(c.keys=[].concat(ki(c.keys),[c.id]),o([].concat(ki(n),[e]))),c.id+=1},remove:function(e){var t=i(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=i();e<0||e>=n.length||t<0||t>=n.length||(c.keys=lu(c.keys,e,t),o(lu(n,e,t)))}}},p=(void 0===n?[]:n)||[];return Array.isArray(p)||(p=[]),r(p.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),l,t)}))))},lN="__@field_split__",cN=function(){function e(){Oa(this,e),this.kvs=new Map}return Ia(e,[{key:"set",value:function(e,t){this.kvs.set(pu(e),t)}},{key:"get",value:function(e){return this.kvs.get(pu(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(pu(e))}},{key:"map",value:function(e){return ki(this.kvs.entries()).map((function(t){var n=Vi(t,2),r=n[1],o=n[0].split(lN);return e({key:o.map((function(e){var t=Vi(e.match(/^([^:]*):(.*)$/),3),n=t[2];return"number"===t[1]?Number(n):n})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.value;return e[t.key.join(".")]=n,null})),e}}]),e}(),uN=["name"],pN=Ia((function e(t){var n=this;Oa(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===TI?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Ii(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){var r,o;n.initialValues=e||{},t&&(o=ol(e,n.store),null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=nl(o,n,el(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o))},this.destroyForm=function(){var e=new cN;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=el(n.initialValues,e);return e.length?ol(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}},this.notifyWatch=function(e){var t,r,o=arguments.length>0&&void 0!==e?e:[];n.watchList.length&&(t=n.getFieldsValue(),r=n.getFieldsValue(!0),n.watchList.forEach((function(e){e(t,r,o)})))},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(e){return arguments.length>0&&void 0!==e&&e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(e){var t=arguments.length>0&&void 0!==e&&e,r=new cN;return n.getFieldEntities(t).forEach((function(e){var t=e.getNamePath();r.set(t,e)})),r},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ru(e);return t.get(n)||{INVALIDATE_NAME_PATH:ru(e)}}))},this.getFieldsValue=function(e,t){var r,o;return n.warningUnhooked(),!0!==e||t?(r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[],r.forEach((function(n){var r,a,i="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();!e&&(null===(r=n.isListField)||void 0===r?void 0:r.call(n))||(t?(a="getMeta"in n?n.getMeta():null,t(a)&&o.push(i)):o.push(i))})),ou(n.store,o.map(ru))):n.store},this.getFieldValue=function(e){n.warningUnhooked();var t=ru(e);return el(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:ru(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){var t;return n.warningUnhooked(),t=ru(e),n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){var t;return n.warningUnhooked(),t=ru(e),n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){var e,t,r,o,a,i,s,l,c,u,p,d;for(n.warningUnhooked(),e=arguments.length,t=new Array(e),r=0;r0&&void 0!==e?e:{},a=new cN,i=n.getFieldEntities(!0);i.forEach((function(e){var t,n=e.props.initialValue,r=e.getNamePath();void 0!==n&&((t=a.get(r)||new Set).add({entity:e,value:n}),a.set(r,t))})),t=function(e){e.forEach((function(e){var t,r,i;void 0!==e.props.initialValue&&(t=e.getNamePath(),void 0!==n.getInitialValue(t)?Ii(!1,"Form already set 'initialValues' with path '".concat(t.join("."),"'. Field can not overwrite it.")):(r=a.get(t))&&r.size>1?Ii(!1,"Multiple Field with path '".concat(t.join("."),"' set 'initialValue'. Can not decide which one to pick.")):r&&(i=n.getFieldValue(t),o.skipExist&&void 0!==i||n.updateStore(nl(n.store,t,ki(r)[0].value))))}))},o.entities?r=o.entities:o.namePathList?(r=[],o.namePathList.forEach((function(e){var t,n=a.get(e);n&&(t=r).push.apply(t,ki(ki(n).map((function(e){return e.entity}))))}))):r=i,t(r)},this.resetFields=function(e){var t,r;if(n.warningUnhooked(),t=n.store,!e)return n.updateStore(ol(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();(r=e.map(ru)).forEach((function(e){var t=n.getInitialValue(e);n.updateStore(nl(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){var t,r;n.warningUnhooked(),t=n.store,r=[],e.forEach((function(e){var o=e.name,a=Sa(e,uN),i=ru(o);r.push(i),"value"in a&&n.updateStore(nl(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Di(Di({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t,r=e.props.initialValue;void 0!==r&&(t=e.getNamePath(),void 0===el(n.store,t)&&n.updateStore(nl(n.store,t,r)))},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){var t,r;return n.fieldEntities.push(e),t=e.getNamePath(),n.notifyWatch([t]),void 0!==e.props.initialValue&&(r=n.store,n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})),function(r,o,a){var i,s,l=arguments.length>2&&void 0!==a?a:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),n.isMergedPreserve(o)||r&&!(l.length>1)||(i=r?void 0:n.getInitialValue(t),t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!iu(e.getNamePath(),t)}))&&(n.updateStore(nl(s=n.store,t,i,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t))),n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":n.updateValue(e.namePath,e.value);break;case"validateField":n.validateFields([e.namePath],{triggerName:e.triggerName})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=Di(Di({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(ki(r))}),r},this.updateValue=function(e,t){var r,o,a=ru(e),i=n.store;n.updateStore(nl(n.store,a,t)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]),r=n.triggerDependenciesUpdate(i,a),(o=n.callbacks.onValuesChange)&&o(ou(n.store,[a]),n.getFieldsValue()),n.triggerOnFieldsChange([a].concat(ki(r)))},this.setFieldsValue=function(e){var t,r;n.warningUnhooked(),t=n.store,e&&(r=ol(n.store,e),n.updateStore(r)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new cN;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ru(t);o.update(n,(function(t){var n=arguments.length>0&&void 0!==t?t:new Set;return n.add(e),n}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r,o,a=n.callbacks.onFieldsChange;a&&(r=n.getFields(),t&&(o=new cN,t.forEach((function(e){o.set(e.name,e.errors)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))),a(r.filter((function(t){return au(e,t.name)})),r))},this.validateFields=function(e,t){var r,o,a,i,s,l,c;return n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e,i=(a=!!r)?r.map(ru):[],s=[],n.getFieldEntities(!0).forEach((function(e){var t,l,c,u;a||i.push(e.getNamePath()),(null===(t=o)||void 0===t?void 0:t.recursive)&&a&&(l=e.getNamePath()).every((function(e,t){return r[t]===e||void 0===r[t]}))&&i.push(l),e.props.rules&&e.props.rules.length&&(c=e.getNamePath(),a&&!au(i,c)||(u=e.validateRules(Di({validateMessages:Di(Di({},tN),n.validateMessages)},o)),s.push(u.then((function(){return{name:c,errors:[],warnings:[]}})).catch((function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.errors;e.rule.warningOnly?r.push.apply(r,ki(t)):n.push.apply(n,ki(t))})),n.length?Promise.reject({name:c,errors:n,warnings:r}):{name:c,errors:n,warnings:r}})))))})),l=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,a){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))}))}))})):Promise.resolve([])}(s),n.lastValidatePromise=l,l.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)})),(c=l.then((function(){return n.lastValidatePromise===l?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==l})}))).catch((function(e){return e})),n.triggerOnFieldsChange(i),c},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t})),dN=ey.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mN=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=ey.useContext(dN),i=ey.useRef({});return ey.createElement(dN.Provider,{value:Di(Di({},a),{},{validateMessages:Di(Di({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:i.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(i.current=Di(Di({},i.current),{},xa({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Di({},i.current);delete t[e],i.current=t,a.unregisterForm(e)}})},o)},fN=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],gN=function(e,t){var n,r,o,a,i,s,l=e.name,c=e.initialValues,u=e.fields,p=e.form,d=e.preserve,m=e.children,f=e.component,g=void 0===f?"form":f,h=e.validateMessages,b=e.validateTrigger,_=void 0===b?"onChange":b,y=e.onValuesChange,v=e.onFieldsChange,w=e.onFinish,k=e.onFinishFailed,C=Sa(e,fN),D=ey.useContext(dN),x=Vi(du(p),1)[0],S=x.getInternalHooks(TI),E=S.useSubscribe,O=S.setInitialValues,P=S.setCallbacks,I=S.setValidateMessages,N=S.setPreserve,A=S.destroyForm;return ey.useImperativeHandle(t,(function(){return x})),ey.useEffect((function(){return D.registerForm(l,x),function(){D.unregisterForm(l)}}),[D,x,l]),I(Di(Di({},D.validateMessages),h)),P({onValuesChange:y,onFieldsChange:function(e){if(D.triggerFormChange(l,e),v){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{}}),e1=ey.createContext(null),t1=e=>{const t=Js(e,["prefixCls"]);return ey.createElement(mN,Object.assign({},t))},n1=ey.createContext({prefixCls:""}),r1=ey.createContext({}),o1=e=>{let{children:t,status:n,override:r}=e;const o=ey.useContext(r1),a=ey.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return ey.createElement(r1.Provider,{value:a},t)},a1=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:l}=e,[c]=NQ("Modal",il());return UJ.createElement(UJ.Fragment,null,UJ.createElement(z0,Object.assign({onClick:i},l),r||(null==c?void 0:c.cancelText)),UJ.createElement(z0,Object.assign({},Nc(n),{loading:o,onClick:a},s),t||(null==c?void 0:c.okText)))},i1=e=>({animationDuration:e,animationFillMode:"both"}),s1=e=>({animationDuration:e,animationFillMode:"both"}),l1=function(e,t,n,r,o){const a=arguments.length>4&&void 0!==o&&o?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:Object.assign(Object.assign({},i1(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},s1(r)),{animationPlayState:"paused"}),[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},c1=new lO("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),u1=new lO("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),p1=function(e,t){let n=arguments.length>1&&void 0!==t&&t;const{antCls:r}=e,o=`${r}-fade`,a=n?"&":"";return[l1(o,c1,u1,e.motionDurationMid,n),{[`\n ${a}${o}-enter,\n ${a}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${o}-leave`]:{animationTimingFunction:"linear"}}]},d1=new lO("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m1=new lO("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),f1=new lO("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g1=new lO("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),h1=new lO("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b1=new lO("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_1={"move-up":{inKeyframes:new lO("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 lO("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:d1,outKeyframes:m1},"move-left":{inKeyframes:f1,outKeyframes:g1},"move-right":{inKeyframes:h1,outKeyframes:b1}},y1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=_1[t];return[l1(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},v1=new lO("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),w1=new lO("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),k1=new lO("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),C1=new lO("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),D1=new lO("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),x1=new lO("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),S1=new lO("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),E1=new lO("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),O1={"slide-up":{inKeyframes:v1,outKeyframes:w1},"slide-down":{inKeyframes:k1,outKeyframes:C1},"slide-left":{inKeyframes:D1,outKeyframes:x1},"slide-right":{inKeyframes:S1,outKeyframes:E1}},P1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=O1[t];return[l1(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},I1=new lO("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),N1=new lO("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),A1=new lO("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),R1=new lO("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),T1=new lO("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),j1=new lO("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$1=new lO("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),F1=new lO("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),L1=new lO("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),M1=new lO("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),U1=new lO("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),z1=new lO("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),H1={zoom:{inKeyframes:I1,outKeyframes:N1},"zoom-big":{inKeyframes:A1,outKeyframes:R1},"zoom-big-fast":{inKeyframes:A1,outKeyframes:R1},"zoom-left":{inKeyframes:$1,outKeyframes:F1},"zoom-right":{inKeyframes:L1,outKeyframes:M1},"zoom-up":{inKeyframes:T1,outKeyframes:j1},"zoom-down":{inKeyframes:U1,outKeyframes:z1}},B1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=H1[t];return[l1(r,o,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},W1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),V1=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},hu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},hu("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:p1(e)}]},G1=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${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})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},XQ(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},QQ(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},q1=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},X1=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},K1=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},Y1=jl("Modal",(e=>{const t=e.padding,n=$l(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:e.lineHeightHeading5*e.fontSizeHeading5+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[G1(n),q1(n),X1(n),V1(n),e.wireframe&&K1(n),B1(n,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})));let J1;bN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{J1={x:e.pageX,y:e.pageY},setTimeout((()=>{J1=null}),100)}),!0);const Q1=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o}=ey.useContext(VQ),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:i,className:s,rootClassName:l,open:c,wrapClassName:u,centered:p,getContainer:d,closeIcon:m,focusTriggerAfterClose:f=!0,visible:g,width:h=520,footer:b}=e,_=bN(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),y=r("modal",i),v=r(),[w,k]=Y1(y),C=kQ(u,{[`${y}-centered`]:!!p,[`${y}-wrap-rtl`]:"rtl"===o}),D=void 0===b?ey.createElement(a1,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})):b;return w(ey.createElement(a0,null,ey.createElement(o1,{status:!0,override:!0},ey.createElement(RI,Object.assign({width:h},_,{getContainer:void 0===d?n:d,prefixCls:y,rootClassName:kQ(k,l),wrapClassName:C,footer:D,visible:null!=c?c:g,mousePosition:null!==(t=_.mousePosition)&&void 0!==t?t:J1,onClose:a,closeIcon:gu(y,m),focusTriggerAfterClose:f,transitionName:K0(v,"zoom",e.transitionName),maskTransitionName:K0(v,"fade",e.maskTransitionName),className:kQ(k,s)})))))},Z1=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:p,rootPrefixCls:d,iconPrefixCls:m,theme:f,bodyStyle:g,closable:h=!1,closeIcon:b,modalRender:_,focusTriggerAfterClose:y}=e,v=`${u}-confirm`,w=e.width||416,k=e.style||{},C=void 0===e.mask||e.mask,D=void 0!==e.maskClosable&&e.maskClosable,x=kQ(v,`${v}-${e.type}`,{[`${v}-rtl`]:"rtl"===c},e.className);return ey.createElement(vZ,{prefixCls:d,iconPrefixCls:m,direction:c,theme:f},ey.createElement(Q1,{prefixCls:u,className:x,wrapClassName:kQ({[`${v}-centered`]:!!e.centered},p),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:o,title:"",footer:null,transitionName:K0(d,"zoom",e.transitionName),maskTransitionName:K0(d,"fade",e.maskTransitionName),mask:C,maskClosable:D,maskStyle:l,style:k,bodyStyle:g,width:w,zIndex:n,afterClose:r,keyboard:a,centered:i,getContainer:s,closable:h,closeIcon:b,modalRender:_,focusTriggerAfterClose:y},ey.createElement(bu,Object.assign({},e,{confirmPrefixCls:v}))))},e2=[];_N=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{afterClose:n,config:r}=e;var o;const[a,i]=ey.useState(!0),[s,l]=ey.useState(r),{direction:c,getPrefixCls:u}=ey.useContext(VQ),p=u("modal"),d=u(),m=function(){i(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));s.onCancel&&r&&s.onCancel.apply(s,[()=>{}].concat(ki(t.slice(1))))};ey.useImperativeHandle(t,(()=>({destroy:m,update:e=>{l((t=>Object.assign(Object.assign({},t),e)))}})));const f=null!==(o=s.okCancel)&&void 0!==o?o:"confirm"===s.type,[g]=NQ("Modal",OQ.Modal);return ey.createElement(Z1,Object.assign({prefixCls:p,rootPrefixCls:d},s,{close:m,open:a,afterClose:()=>{var e;n(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:s.direction||c,cancelText:s.cancelText||(null==g?void 0:g.cancelText)}))},r2=ey.forwardRef(n2);let o2=0;const a2=ey.memo(ey.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=ey.useState([]);return[e,ey.useCallback((e=>(t((t=>[].concat(ki(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return ey.useImperativeHandle(t,(()=>({patchElement:r})),[]),ey.createElement(ey.Fragment,null,n)}))),i2=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new lO("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new lO("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new lO("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},s2=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:p,notificationBg:d,notificationPadding:m,notificationMarginEdge:f,motionDurationMid:g,motionEaseInOut:h,fontSize:b,lineHeight:_,width:y,notificationIconSize:v,colorText:w}=e,k=`${n}-notice`,C=new lO("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),D=new lO("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),x={position:"relative",width:y,maxWidth:`calc(100vw - ${2*f}px)`,marginBottom:a,marginInlineStart:"auto",padding:m,overflow:"hidden",lineHeight:_,wordWrap:"break-word",background:d,borderRadius:i,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${k}-message`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:b,color:w},[`&${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+v,fontSize:o},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.marginSM+v,fontSize:b},[`${k}-icon`]:{position:"absolute",fontSize:v,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${k}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${k}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},XQ(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:f,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[k]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[k]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:h,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:h,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:C,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:D,animationPlayState:"running"}}),i2(e)),{"&-rtl":{direction:"rtl",[`${k}-btn`]:{float:"left"}}})},{[n]:{[k]:Object.assign({},x)}},{[`${k}-pure-panel`]:Object.assign(Object.assign({},x),{margin:0})}]},l2=jl("Notification",(e=>{const t=$l(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:e.paddingMD,notificationPaddingHorizontal:e.paddingLG,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[s2(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));yN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:u}=ey.useContext(VQ),p=o||c("notification"),[,d]=l2(p),[m,f]=lc({prefixCls:p,style:e=>function(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}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>kQ(d,{[`${p}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(p),closable:!0,closeIcon:xu(p),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==u?void 0:u())||document.body,maxCount:i,onAllRemoved:l});return ey.useImperativeHandle(t,(()=>Object.assign(Object.assign({},m),{prefixCls:p,hashId:d}))),f})),p2=UJ.createContext({}),d2=UJ.createContext({message:{},notification:{},modal:{}}),m2=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},f2=jl("App",(e=>[m2(e)])),g2=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:s}=e,{getPrefixCls:l}=ey.useContext(VQ),c=l("app",t),[u,p]=f2(c),d=kQ(p,c,r,o),m=ey.useContext(p2),f=UJ.useMemo((()=>({message:Object.assign(Object.assign({},m.message),a),notification:Object.assign(Object.assign({},m.notification),i)})),[a,i,m.message,m.message]),[g,h]=dc(f.message),[b,_]=Ou(f.notification),[y,v]=Du(),w=UJ.useMemo((()=>({message:g,notification:b,modal:y})),[g,b,y]);return u(UJ.createElement(d2.Provider,{value:w},UJ.createElement(p2.Provider,{value:f},UJ.createElement("div",{className:d,style:s},v,h,_,n))))};g2.useApp=()=>UJ.useContext(d2);const h2=g2,b2=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};wN=ey.createContext(null),kN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],CN=void 0,(DN=ey.forwardRef(Iu)).displayName="Item",xN=UJ.createContext(null),SN=["component"],EN=["className"],ON=["className"],PN=function(e,t){var n,r,o,a,i,s,l,c=ey.useContext(xN);return c?(a=c.className,i=Sa(c,EN),s=e.className,l=Sa(e,ON),ey.createElement(xN.Provider,{value:null},ey.createElement(DN,mi({ref:t,className:kQ(a,s)},i,l)))):(r=void 0===(n=e.component)?"div":n,o=Sa(e,SN),ey.createElement(r,mi({},o,{ref:t})))},(IN=ey.forwardRef(PN)).displayName="RawItem",NN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],AN="responsive",RN="invalidate",(TN=ey.forwardRef(Ru)).displayName="Overflow",TN.Item=IN,TN.RESPONSIVE=AN,TN.INVALIDATE=RN,jN=function(e){var t,n=e.className,r=e.customizeIcon,o=e.onMouseDown,a=e.onClick,i=e.children;return t="function"==typeof r?r(e.customizeIconProps):r,ey.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:ey.createElement("span",{className:kQ(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},($N=ey.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=e.id,i=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,p=e.activeDescendantId,d=e.value,m=e.maxLength,f=e.onKeyDown,g=e.onMouseDown,h=e.onChange,b=e.onPaste,_=e.onCompositionStart,y=e.onCompositionEnd,v=e.open,w=e.attrs,k=e.inputElement||ey.createElement("input",null),C=k.ref,D=k.props,x=D.onKeyDown,S=D.onChange,E=D.onMouseDown,O=D.onCompositionStart,P=D.onCompositionEnd,I=D.style;return ey.cloneElement(k,Di(Di(Di({type:"search"},D),{},{id:a,ref:zs(t,C),disabled:i,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:kQ("".concat(o,"-selection-search-input"),null===(n=k)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":v,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":p},w),{},{value:u?d:"",maxLength:m,readOnly:!u,unselectable:u?null:"on",style:Di(Di({},I),{},{opacity:u?null:0}),onKeyDown:function(e){f(e),x&&x(e)},onMouseDown:function(e){g(e),E&&E(e)},onChange:function(e){h(e),S&&S(e)},onCompositionStart:function(e){_(e),O&&O(e)},onCompositionEnd:function(e){y(e),P&&P(e)},onPaste:b}))}))).displayName="Input",FN="undefined"!=typeof window&&window.document&&window.document.documentElement,LN=FN,MN=function(e){e.preventDefault(),e.stopPropagation()},UN=function(e){function t(e,t,n,r,o){return ey.createElement("span",{className:kQ("".concat(H,"-item"),xa({},"".concat(H,"-item-disabled"),n)),title:$u(e)},ey.createElement("span",{className:"".concat(H,"-item-content")},t),r&&ey.createElement(jN,{className:"".concat(H,"-item-remove"),onMouseDown:MN,onClick:o,customizeIcon:w},"×"))}var n,r,o,a,i=e.id,s=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,p=e.autoClearSearchValue,d=e.inputRef,m=e.placeholder,f=e.disabled,g=e.mode,h=e.showSearch,b=e.autoFocus,_=e.autoComplete,y=e.activeDescendantId,v=e.tabIndex,w=e.removeIcon,k=e.maxTagCount,C=e.maxTagTextLength,D=e.maxTagPlaceholder,x=void 0===D?function(e){return"+ ".concat(e.length," ...")}:D,S=e.tagRender,E=e.onToggleOpen,O=e.onRemove,P=e.onInputChange,I=e.onInputPaste,N=e.onInputKeyDown,A=e.onInputMouseDown,R=e.onInputCompositionStart,T=e.onInputCompositionEnd,j=ey.useRef(null),$=Vi(ey.useState(0),2),F=$[0],L=$[1],M=Vi(ey.useState(!1),2),U=M[0],z=M[1],H="".concat(s,"-selection"),B=c||"multiple"===g&&!1===p||"tags"===g?u:"",W="tags"===g||"multiple"===g&&!1===p||h&&(c||U);return o=function(){L(j.current.scrollWidth)},a=[B],LN?ey.useLayoutEffect(o,a):ey.useEffect(o,a),n=ey.createElement("div",{className:"".concat(H,"-search"),style:{width:F},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},ey.createElement($N,{ref:d,open:c,prefixCls:s,id:i,inputElement:null,disabled:f,autoFocus:b,autoComplete:_,editable:W,activeDescendantId:y,value:B,onKeyDown:N,onMouseDown:A,onChange:P,onPaste:I,onCompositionStart:R,onCompositionEnd:T,tabIndex:v,attrs:ac(e,!0)}),ey.createElement("span",{ref:j,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},B," ")),r=ey.createElement(TN,{prefixCls:"".concat(H,"-overflow"),data:l,renderItem:function(e){var n,r,o=e.disabled,a=e.label,i=e.value,s=!f&&!o,l=a;return"number"==typeof C&&("string"!=typeof a&&"number"!=typeof a||(n=String(l)).length>C&&(l="".concat(n.slice(0,C),"..."))),r=function(t){t&&t.stopPropagation(),O(e)},"function"==typeof S?function(e,t,n,r,o){return ey.createElement("span",{onMouseDown:function(e){MN(e),E(!c)}},S({label:t,value:e,disabled:n,closable:r,onClose:o}))}(i,l,o,s,r):t(e,l,o,s,r)},renderRest:function(e){var n="function"==typeof x?x(e):x;return t({title:n},n,!1)},suffix:n,itemKey:Fu,maxCount:k}),ey.createElement(ey.Fragment,null,r,!l.length&&!B&&ey.createElement("span",{className:"".concat(H,"-placeholder")},m))},zN=function(e){var t,n,r,o=e.inputElement,a=e.prefixCls,i=e.id,s=e.inputRef,l=e.disabled,c=e.autoFocus,u=e.autoComplete,p=e.activeDescendantId,d=e.mode,m=e.open,f=e.values,g=e.placeholder,h=e.tabIndex,b=e.showSearch,_=e.searchValue,y=e.activeValue,v=e.maxLength,w=e.onInputKeyDown,k=e.onInputMouseDown,C=e.onInputChange,D=e.onInputPaste,x=e.onInputCompositionStart,S=e.onInputCompositionEnd,E=e.title,O=Vi(ey.useState(!1),2),P=O[1],I="combobox"===d,N=I||b,A=f[0],R=_||"";return I&&y&&!O[0]&&(R=y),ey.useEffect((function(){I&&P(!1)}),[I,y]),t=!("combobox"!==d&&!m&&!b||!R),n=void 0===E?$u(A):E,r=function(){if(A)return null;var e=t?{visibility:"hidden"}:void 0;return ey.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:e},g)},ey.createElement(ey.Fragment,null,ey.createElement("span",{className:"".concat(a,"-selection-search")},ey.createElement($N,{ref:s,prefixCls:a,id:i,open:m,inputElement:o,disabled:l,autoFocus:c,autoComplete:u,editable:N,activeDescendantId:p,value:R,onKeyDown:w,onMouseDown:k,onChange:function(e){P(!0),C(e)},onPaste:D,onCompositionStart:x,onCompositionEnd:S,tabIndex:h,attrs:ac(e,!0),maxLength:I?v:void 0})),!I&&A?ey.createElement("span",{className:"".concat(a,"-selection-item"),title:n,style:t?{visibility:"hidden"}:void 0},A.label):null,r())},HN=function(e,t){var n,r,o,a,i,s,l,c,u,p,d=ey.useRef(null),m=ey.useRef(!1),f=e.prefixCls,g=e.open,h=e.mode,b=e.showSearch,_=e.tokenWithEnter,y=e.autoClearSearchValue,v=e.onSearch,w=e.onSearchSubmit,k=e.onToggleOpen,C=e.onInputKeyDown,D=e.domRef;return ey.useImperativeHandle(t,(function(){return{focus:function(){d.current.focus()},blur:function(){d.current.blur()}}})),n=Vi(Pu(0),2),r=n[0],o=n[1],a=function(e){var t=e.which;t!==aI.UP&&t!==aI.DOWN||e.preventDefault(),C&&C(e),t!==aI.ENTER||"tags"!==h||m.current||g||null==w||w(e.target.value),[aI.ESC,aI.SHIFT,aI.BACKSPACE,aI.TAB,aI.WIN_KEY,aI.ALT,aI.META,aI.WIN_KEY_RIGHT,aI.CTRL,aI.SEMICOLON,aI.EQUALS,aI.CAPS_LOCK,aI.CONTEXT_MENU,aI.F1,aI.F2,aI.F3,aI.F4,aI.F5,aI.F6,aI.F7,aI.F8,aI.F9,aI.F10,aI.F11,aI.F12].includes(t)||k(!0)},i=function(){o(!0)},s=ey.useRef(null),l=function(e){!1!==v(e,!0,m.current)&&k(!0)},c=function(e){e.target!==d.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){d.current.focus()})):d.current.focus())},u=function(e){var t=r();e.target===d.current||t||"combobox"===h||e.preventDefault(),("combobox"===h||b&&t)&&g||(g&&!1!==y&&v("",!0,!1),k())},p=ey.createElement("multiple"===h||"tags"===h?UN:zN,mi({},e,{inputRef:d,onInputKeyDown:a,onInputMouseDown:i,onInputChange:function(e){var t,n=e.target.value;_&&s.current&&/[\r\n]/.test(s.current)&&(t=s.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),n=n.replace(t,s.current)),s.current=null,l(n)},onInputPaste:function(e){var t=e.clipboardData.getData("text");s.current=t},onInputCompositionStart:function(){m.current=!0},onInputCompositionEnd:function(e){m.current=!1,"combobox"!==h&&l(e.target.value)}})),ey.createElement("div",{ref:D,className:"".concat(f,"-selector"),onClick:c,onMouseDown:u},p)},(BN=ey.forwardRef(HN)).displayName="Selector",WN=ey.createContext(null),VN=ey.memo((function(e){return e.children}),(function(e,t){return t.cache})),GN=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l,c=e.popup,u=e.className,p=e.prefixCls,d=e.style,m=e.target,f=e.onVisibleChanged,g=e.open,h=e.keepDom,b=e.onClick,_=e.mask,y=e.arrow,v=e.arrowPos,w=e.align,k=e.motion,C=e.maskMotion,D=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,E=e.portal,O=e.zIndex,P=e.onMouseEnter,I=e.onMouseLeave,N=e.ready,A=e.offsetX,R=e.offsetY,T=e.offsetR,j=e.offsetB,$=e.onAlign,F=e.onPrepare,L=e.stretch,M=e.targetWidth,U=e.targetHeight,z="function"==typeof c?c():c,H=g||h,B=(null==x?void 0:x.length)>0,W=Vi(ey.useState(!x||!B),2),V=W[0],G=W[1];return gP((function(){!V&&B&&m&&G(!0)}),[V,B,m]),V?(r={left:"-1000vw",top:"-1000vh",right:n="auto",bottom:n},!N&&g||(o=w.points,s=(i=null==(a=w._experimental)?void 0:a.dynamicInset)&&"b"===o[0][0],i&&"r"===o[0][1]?(r.right=T,r.left=n):(r.left=A,r.right=n),s?(r.bottom=j,r.top=n):(r.top=R,r.bottom=n)),l={},L&&(L.includes("height")&&U?l.height=U:L.includes("minHeight")&&U&&(l.minHeight=U),L.includes("width")&&M?l.width=M:L.includes("minWidth")&&M&&(l.minWidth=M)),g||(l.pointerEvents="none"),ey.createElement(E,{open:D||H,getContainer:x&&function(){return x(m)},autoDestroy:S},ey.createElement(Qu,{prefixCls:p,open:g,zIndex:O,mask:_,motion:C}),ey.createElement(HO,{onResize:$,disabled:!g},(function(e){return ey.createElement(dZ,mi({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:D,leavedClassName:"".concat(p,"-hidden")},k,{onAppearPrepare:F,onEnterPrepare:F,visible:g,onVisibleChanged:function(e){var t;null==k||null===(t=k.onVisibleChanged)||void 0===t||t.call(k,e),f(e)}}),(function(n,o){var a=n.style,i=kQ(p,n.className,u);return ey.createElement("div",{ref:zs(e,t,o),className:i,style:Di(Di(Di(Di({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},r),l),a),{},{boxSizing:"border-box",zIndex:O},d),onMouseEnter:P,onMouseLeave:I,onClick:b},y&&ey.createElement(Ju,{prefixCls:p,arrow:y,arrowPos:v,align:w}),ey.createElement(VN,{cache:!g},z))}))})))):null})),qN=ey.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Bs(n),a=Hs(ey.useCallback((function(e){Us(t,r?r(e):e)}),[r]),n.ref);return o?ey.cloneElement(n,{ref:a}):n})),XN=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const _2=function(e){var t=arguments.length>0&&void 0!==e?e:OI,n=ey.forwardRef((function(e,n){var r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,L,M,U,z,H,B,W,V,G,q,X,K,Y,J,Q,Z,ee,te,ne,re,oe,ae,ie,se,le,ce,ue,pe,de,me,fe,ge,he,be,_e,ye,ve,we,ke,Ce,De,xe,Se=e.prefixCls,Ee=void 0===Se?"rc-trigger-popup":Se,Oe=e.children,Pe=e.action,Ie=void 0===Pe?"hover":Pe,Ne=e.showAction,Ae=e.hideAction,Re=e.popupVisible,Te=e.defaultPopupVisible,je=e.onPopupVisibleChange,$e=e.afterPopupVisibleChange,Fe=e.mouseEnterDelay,Le=e.mouseLeaveDelay,Me=void 0===Le?.1:Le,Ue=e.focusDelay,ze=e.blurDelay,He=e.mask,Be=e.maskClosable,We=void 0===Be||Be,Ve=e.getPopupContainer,Ge=e.forceRender,qe=e.autoDestroy,Xe=e.destroyPopupOnHide,Ke=e.popup,Ye=e.popupClassName,Je=e.popupStyle,Qe=e.popupPlacement,Ze=e.builtinPlacements,et=void 0===Ze?{}:Ze,tt=e.popupAlign,nt=e.zIndex,rt=e.stretch,ot=e.getPopupClassNameFromAlign,at=e.alignPoint,it=e.onPopupClick,st=e.onPopupAlign,lt=e.arrow,ct=e.popupMotion,ut=e.maskMotion,pt=e.popupTransitionName,dt=e.popupAnimation,mt=e.maskTransitionName,ft=e.maskAnimation,gt=e.className,ht=e.getTriggerDOMNode,bt=Sa(e,XN),_t=qe||Xe||!1,yt=Vi(ey.useState(!1),2),vt=yt[0],wt=yt[1];return gP((function(){wt(b2())}),[]),r=ey.useRef({}),o=ey.useContext(WN),a=ey.useMemo((function(){return{registerSubPopup:function(e,t){r.current[e]=t,null==o||o.registerSubPopup(e,t)}}}),[o]),i=Rc(),s=Vi(ey.useState(null),2),l=s[0],c=s[1],u=Nl((function(e){Ws(e)&&l!==e&&c(e),null==o||o.registerSubPopup(i,e)})),p=Vi(ey.useState(null),2),d=p[0],m=p[1],f=Nl((function(e){Ws(e)&&d!==e&&m(e)})),g=ey.Children.only(Oe),h=(null==g?void 0:g.props)||{},b={},_=Nl((function(e){var t,n,o=d;return(null==o?void 0:o.contains(e))||(null===(t=Jl(o))||void 0===t?void 0:t.host)===e||e===o||(null==l?void 0:l.contains(e))||(null===(n=Jl(l))||void 0===n?void 0:n.host)===e||e===l||Object.values(r.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),y=Uu(Ee,ct,dt,pt),v=Uu(Ee,ut,ft,mt),w=Vi(ey.useState(Te||!1),2),k=w[1],C=null!=Re?Re:w[0],D=Nl((function(e){void 0===Re&&k(e)})),gP((function(){k(Re||!1)}),[Re]),(x=ey.useRef(C)).current=C,S=Nl((function(e){C!==e&&(D(e),null==je||je(e))})),E=ey.useRef(),O=function(){clearTimeout(E.current)},P=function(e,t){var n=arguments.length>1&&void 0!==t?t:0;O(),0===n?S(e):E.current=setTimeout((function(){S(e)}),1e3*n)},ey.useEffect((function(){return O}),[]),I=Vi(ey.useState(!1),2),N=I[0],A=I[1],gP((function(e){e&&!C||A(!0)}),[C]),R=Vi(ey.useState(null),2),T=R[0],j=R[1],F=($=Vi(ey.useState([0,0]),2))[0],L=$[1],M=function(e){L([e.clientX,e.clientY])},U=function(e,t,n,r,o,a,i){var s,l,c,u=Vi(ey.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),p=u[0],d=u[1],m=ey.useRef(0),f=ey.useMemo((function(){return t?Hu(t):[]}),[t]),g=ey.useRef({});return e||(g.current={}),s=Nl((function(){var s,l,c,u,p,m,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,L,M,U,z,H,B,W,V,G,q,X,K,Y,J,Q,Z,ee,te,ne,re,oe,ae,ie,se,le,ce,ue,pe,de,me,fe,ge,he,be,_e,ye,ve,we,ke,Ce,De,xe,Se,Ee,Oe,Pe,Ie,Ne,Ae,Re,Te,je,$e,Fe,Le,Me,Ue,ze,He,Be,We,Ve,Ge,qe;if(t&&n&&e){let e=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:L,o=v.x+e,a=v.y+t,i=o+O,s=a+E,l=Math.max(o,r.left),c=Math.max(a,r.top),u=Math.min(i,r.right),p=Math.min(s,r.bottom);return Math.max(0,(u-l)*(p-c))},Xe=function(){be=(he=v.y+re)+E,ye=(_e=v.x+ne)+O};if(l=(s=t).style.left,c=s.style.top,u=s.style.right,p=s.style.bottom,m=s.ownerDocument,h=zu(s),b=Di(Di({},o[r]),a),s.style.left="0",s.style.top="0",s.style.right="auto",s.style.bottom="auto",_=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:{x:(y=n.getBoundingClientRect()).x,y:y.y,width:y.width,height:y.height},v=s.getBoundingClientRect(),k=(w=h.getComputedStyle(s)).width,C=w.height,E=v.height,O=v.width,P=_.height,I=_.width,N={left:0,top:0,right:(D=m.documentElement).clientWidth,bottom:D.clientHeight},R="visible",T="visibleFirst","scroll"!==(A=b.htmlRegion)&&A!==T&&(A=R),j=A===T,$=Vu({left:-(S=D.scrollLeft),top:-(x=D.scrollTop),right:D.scrollWidth-S,bottom:D.scrollHeight-x},f),F=Vu(N,f),L=A===R?F:$,M=j?F:L,s.style.left="auto",s.style.top="auto",s.style.right="0",s.style.bottom="0",U=s.getBoundingClientRect(),s.style.left=l,s.style.top=c,s.style.right=u,s.style.bottom=p,z=Bu(Math.round(O/parseFloat(k)*1e3)/1e3),H=Bu(Math.round(E/parseFloat(C)*1e3)/1e3),0===z||0===H||Ws(n)&&!KZ(n))return;B=b.targetOffset,V=(W=Vi(qu(v,b.offset),2))[0],G=W[1],X=(q=Vi(qu(_,B),2))[1],_.x-=q[0],_.y-=X,Y=(K=Vi(b.points||[],2))[0],J=Xu(K[1]),Q=Xu(Y),Z=Ku(_,J),ee=Ku(v,Q),te=Di({},b),oe=e(ne=Z.x-ee.x+V,re=Z.y-ee.y+G),ae=e(ne,re,F),ie=Ku(_,["t","l"]),se=Ku(v,["t","l"]),le=Ku(_,["b","r"]),ce=Ku(v,["b","r"]),pe=(ue=b.overflow||{}).adjustX,de=ue.adjustY,me=ue.shiftX,fe=ue.shiftY,ge=function(e){return"boolean"==typeof e?e:e>=0},Xe(),ve=ge(de),we=Q[0]===J[0],ve&&"t"===Q[0]&&(be>M.bottom||g.current.bt)&&(ke=re,we?ke-=E-P:ke=ie.y-ce.y-G,Ce=e(ne,ke),De=e(ne,ke,F),Ce>oe||Ce===oe&&(!j||De>=ae)?(g.current.bt=!0,re=ke,te.points=[Yu(Q,0),Yu(J,0)]):g.current.bt=!1),ve&&"b"===Q[0]&&(heoe||Se===oe&&(!j||Ee>=ae)?(g.current.tb=!0,re=xe,te.points=[Yu(Q,0),Yu(J,0)]):g.current.tb=!1),Oe=ge(pe),Pe=Q[1]===J[1],Oe&&"l"===Q[1]&&(ye>M.right||g.current.rl)&&(Ie=ne,Pe?Ie-=O-I:Ie=ie.x-ce.x-V,Ne=e(Ie,re),Ae=e(Ie,re,F),Ne>oe||Ne===oe&&(!j||Ae>=ae)?(g.current.rl=!0,ne=Ie,te.points=[Yu(Q,1),Yu(J,1)]):g.current.rl=!1),Oe&&"r"===Q[1]&&(_eoe||Te===oe&&(!j||je>=ae)?(g.current.lr=!0,ne=Re,te.points=[Yu(Q,1),Yu(J,1)]):g.current.lr=!1),Xe(),"number"==typeof($e=!0===me?0:me)&&(_eF.right&&(ne-=ye-F.right,_.x>F.right-$e&&(ne+=_.x-F.right+$e))),"number"==typeof(Fe=!0===fe?0:fe)&&(heF.bottom&&(re-=be-F.bottom,_.y>F.bottom-Fe&&(re+=_.y-F.bottom+Fe))),Me=(Le=v.x+ne)+O,ze=(Ue=v.y+re)+E,Be=(He=_.x)+I,Ve=(We=_.y)+P,Ge=(Math.max(Le,He)+Math.min(Me,Be))/2-Le,qe=(Math.max(Ue,We)+Math.min(ze,Ve))/2-Ue,null==i||i(t,te),d({ready:!0,offsetX:ne/z,offsetY:re/H,offsetR:(U.right-v.x-(ne+v.width))/z,offsetB:(U.bottom-v.y-(re+v.height))/H,arrowX:Ge/z,arrowY:qe/H,scaleX:z,scaleY:H,align:te})}})),l=function(){m.current+=1;var e=m.current;Promise.resolve().then((function(){m.current===e&&s()}))},gP(c=function(){d((function(e){return Di(Di({},e),{},{ready:!1})}))},[r]),gP((function(){e||c()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,l]}(C,l,at?F:d,Qe,et,tt,st),H=(z=Vi(U,11))[0],B=z[1],W=z[2],V=z[3],G=z[4],q=z[5],X=z[6],K=z[7],Y=z[8],J=z[9],Q=z[10],Z=Nl((function(){N||Q()})),function(e,t,n,r){gP((function(){var o,a,i,s,l;if(e&&t&&n){let e=function(){r()};return o=n,a=Hu(t),i=Hu(o),s=zu(o),(l=new Set([s].concat(ki(a),ki(i)))).forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(C,d,l,Z),gP((function(){Z()}),[F,Qe]),gP((function(){!C||null!=et&&et[Qe]||Z()}),[JSON.stringify(tt)]),ee=ey.useMemo((function(){var e=function(e,t,n,r){var o,a,i,s=n.points,l=Object.keys(e);for(o=0;o1?i-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==e?e:10,n=Vi(ey.useState(!1),2),r=n[0],o=n[1],a=ey.useRef(null),i=function(){window.clearTimeout(a.current)};return ey.useEffect((function(){return i}),[]),[r,function(e,n){i(),a.current=window.setTimeout((function(){o(e),n&&n()}),t)},i]}(),f=(m=Vi(d,3))[0],g=m[1],h=m[2],ey.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=u.current)||void 0===e?void 0:e.focus,blur:null===(t=u.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=p.current)||void 0===t?void 0:t.scrollTo(e)}}})),b=ey.useMemo((function(){var e,t;return"combobox"!==ye?Ie:"string"==typeof(t=null===(e=me[0])||void 0===e?void 0:e.value)||"number"==typeof t?String(t):""}),[Ie,ye,me]),_="combobox"===ye&&"function"==typeof ke&&ke()||null,y="function"==typeof Ce&&Ce(),v=Hs(l,null==y||null===(n=y.props)||void 0===n?void 0:n.ref),k=(w=Vi(ey.useState(!1),2))[0],C=w[1],gP((function(){C(!0)}),[]),D=Vi(Tl(!1,{defaultValue:xe,value:De}),2),x=D[0],E=!!k&&x,O=!be&&ge,(ve||O&&E&&"combobox"===ye)&&(E=!1),P=!O&&E,I=ey.useCallback((function(e){var t=void 0!==e?e:!E;ve||(S(t),E!==t&&(null==Se||Se(t)))}),[ve,E,S=D[1],Se]),N=ey.useMemo((function(){return(Te||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Te]),A=function(e,t,n){var r,o,a,i,s=!0,l=e;return null==Oe||Oe(null),r=n?null:(o=Te)&&o.length?(a=!1,i=function e(t,n){var r,o=Zs(n),i=o[0],s=o.slice(1);return i?(r=t.split(i),a=a||r.length>1,r.reduce((function(t,n){return[].concat(ki(t),ki(e(n,s)))}),[]).filter((function(e){return e}))):[t]}(e,o),a?i:null):null,"combobox"!==ye&&r&&(l="",null==Re||Re(r),I(!1),s=!1),Ae&&b!==l&&Ae(l,{source:t?"typing":"effect"}),s},R=function(e){e&&e.trim()&&Ae(e,{source:"submit"})},ey.useEffect((function(){E||ot||"combobox"===ye||A("",!1,!1)}),[E]),ey.useEffect((function(){x&&ve&&S(!1),ve&&g(!1)}),[ve]),T=Vi(Pu(),2),j=T[0],$=T[1],F=function(e){var t,n,r,o,a,i,s,l,c=j(),u=e.which;if(u===aI.ENTER&&("combobox"!==ye&&e.preventDefault(),E||I(!0)),$(!!b),u===aI.BACKSPACE&&!c&&ot&&!b&&me.length){for(n=null,r=(t=ki(me)).length-1;r>=0;r-=1)if(!(o=t[r]).disabled){t.splice(r,1),n=o;break}n&&fe(t,{type:"remove",values:[n]})}for(a=arguments.length,i=new Array(a>1?a-1:0),s=1;s1?t-1:0),r=1;r1?r-1:0),i=1;ie.height},n}Ts(e,ey.Component);var t=Ls(e);return Ia(e,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props,o=r.prefixCls,a=r.direction,i=this.getSpinHeight(),s=this.getTop(),l=this.showScroll(),c=l&&n,u="rtl"===a?{left:0}:{right:0};return ey.createElement("div",{ref:this.scrollbarRef,className:kQ("".concat(o,"-scrollbar"),xa({},"".concat(o,"-scrollbar-show"),l)),style:Di(Di({width:8,top:0,bottom:0},u),{},{position:"absolute",display:c?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},ey.createElement("div",{ref:this.thumbRef,className:kQ("".concat(o,"-scrollbar-thumb"),xa({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:s,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),e}(),uA=function(){function e(){Oa(this,e),this.maps=void 0,this.maps=Object.create(null)}return Ia(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),pA="object"===("undefined"==typeof navigator?"undefined":Ca(navigator))&&/Firefox/i.test(navigator.userAgent);const y2=function(e,t){var n=ey.useRef(!1),r=ey.useRef(null),o=ey.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e,t){var a=e<0&&o.current.top||e>0&&o.current.bottom;return arguments.length>1&&void 0!==t&&t&&a?(clearTimeout(r.current),n.current=!1):a&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&a}};dA=14/15,mA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],fA=[],gA={overflowY:"auto",overflowAnchor:"none"},(hA=ey.forwardRef(sp)).displayName="List",bA=ey.createContext(null),_A=["disabled","title","children","style","className"],yA=function(e,t){function n(e,t){return{role:e.group?"presentation":"option",id:"".concat(p,"_list_").concat(t)}}var r,o,a,i,s,l,c=ey.useContext(wN),u=c.prefixCls,p=c.id,d=c.open,m=c.multiple,f=c.mode,g=c.searchValue,h=c.toggleOpen,b=c.notFoundContent,_=c.onPopupScroll,y=ey.useContext(bA),v=y.flattenOptions,w=y.onActiveValue,k=y.defaultActiveFirstOption,C=y.onSelect,D=y.menuItemSelectedIcon,x=y.rawValues,S=y.fieldNames,E=y.virtual,O=y.direction,P=y.listHeight,I=y.listItemHeight,N="".concat(u,"-item"),A=Si((function(){return v}),[d,v],(function(e,t){return t[0]&&e[1]!==t[1]})),R=ey.useRef(null),T=function(e){e.preventDefault()},j=function(e){R.current&&R.current.scrollTo("number"==typeof e?{index:e}:e)},$=function(e,t){var n,r,o,a=arguments.length>1&&void 0!==t?t:1,i=A.length;for(n=0;n1&&void 0!==t&&t;M(e),n={source:o?"keyboard":"mouse"},(r=A[e])?w(r.value,e,n):w(null,-1,n)};return ey.useEffect((function(){U(!1!==k?$(0):-1)}),[A.length,g]),r=ey.useCallback((function(e){return x.has(e)&&"combobox"!==f}),[f,ki(x).toString(),x.size]),ey.useEffect((function(){var e,t=setTimeout((function(){var e,t;!m&&d&&1===x.size&&(e=Array.from(x)[0],-1!==(t=A.findIndex((function(t){return t.data.value===e})))&&(U(t),j(t)))}));return d&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[d,g,v.length]),o=function(e){void 0!==e&&C(e,{selected:!x.has(e)}),m||h(!1)},ey.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t,n,r,a=e.which,i=e.ctrlKey;switch(a){case aI.N:case aI.P:case aI.UP:case aI.DOWN:t=0,a===aI.UP?t=-1:a===aI.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&i&&(a===aI.N?t=1:a===aI.P&&(t=-1)),0!==t&&(n=$(L+t,t),j(n),U(n,!0));break;case aI.ENTER:o((r=A[L])&&!r.data.disabled?r.value:void 0),d&&e.preventDefault();break;case aI.ESC:h(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===A.length?ey.createElement("div",{role:"listbox",id:"".concat(p,"_list"),className:"".concat(N,"-empty"),onMouseDown:T},b):(a=Object.keys(S).map((function(e){return S[e]})),i=function(e){return e.label},s=function(e){var t,o,a,s,l,c=A[e];return c?(o=(t=c.data||{}).value,a=c.group,s=ac(t,!0),l=i(c),c?ey.createElement("div",mi({"aria-label":"string"!=typeof l||a?null:l},s,{key:e},n(c,e),{"aria-selected":r(o)}),o):null):null},l={role:"listbox",id:"".concat(p,"_list")},ey.createElement(ey.Fragment,null,E&&ey.createElement("div",mi({},l,{style:{height:0,width:0,overflow:"hidden"}}),s(L-1),s(L),s(L+1)),ey.createElement(hA,{itemKey:"key",ref:R,data:A,height:P,itemHeight:I,fullHeight:!1,onMouseDown:T,onScroll:_,virtual:E,direction:O,innerProps:E?null:l},(function(e,t){var s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k=e.groupOption,C=e.data,x=e.label,S=e.value,O=C.key;return e.group?(c=null!==(l=C.title)&&void 0!==l?l:lp(x)?x.toString():void 0,ey.createElement("div",{className:kQ(N,"".concat(N,"-group")),title:c},void 0!==x?x:O)):(u=C.disabled,p=C.title,d=C.style,m=C.className,f=Js(Sa(C,_A),a),g=r(S),h="".concat(N,"-option"),b=kQ(N,h,m,(xa(s={},"".concat(h,"-grouped"),k),xa(s,"".concat(h,"-active"),L===t&&!u),xa(s,"".concat(h,"-disabled"),u),xa(s,"".concat(h,"-selected"),g),s)),_=i(e),y=!D||"function"==typeof D||g,w=lp(v="number"==typeof _?_:_||S)?v.toString():void 0,void 0!==p&&(w=p),ey.createElement("div",mi({},ac(f),E?{}:n(e,t),{"aria-selected":g,className:b,title:w,onMouseMove:function(){L===t||u||U(t)},onClick:function(){u||o(S)},style:d}),ey.createElement("div",{className:"".concat(h,"-content")},v),ey.isValidElement(D)||g,y&&ey.createElement(jN,{className:"".concat(N,"-option-state"),customizeIcon:D,customizeIconProps:{isSelected:g}},g?"✓":null)))}))))},(vA=ey.forwardRef(yA)).displayName="OptionList",wA=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],kA=["inputValue"],CA=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C=e.id,D=e.mode,x=e.prefixCls,S=void 0===x?"rc-select":x,E=e.backfill,O=e.fieldNames,P=e.inputValue,I=e.searchValue,N=e.onSearch,A=e.autoClearSearchValue,R=void 0===A||A,T=e.onSelect,j=e.onDeselect,$=e.dropdownMatchSelectWidth,F=void 0===$||$,L=e.filterOption,M=e.filterSort,U=e.optionFilterProp,z=e.optionLabelProp,H=e.options,B=e.children,W=e.defaultActiveFirstOption,V=e.menuItemSelectedIcon,G=e.virtual,q=e.direction,X=e.listHeight,K=void 0===X?200:X,Y=e.listItemHeight,J=void 0===Y?20:Y,Q=e.value,Z=e.defaultValue,ee=e.labelInValue,te=e.onChange,ne=Sa(e,wA),re=function(e){var t=Vi(ey.useState(),2),n=t[0],r=t[1];return ey.useEffect((function(){var e;r("rc_select_".concat((rA?(e=nA,nA+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(C),oe=np(D),ae=!(H||!B),ie=ey.useMemo((function(){return(void 0!==L||"combobox"!==D)&&L}),[L,D]),se=ey.useMemo((function(){return ep(O,ae)}),[JSON.stringify(O),ae]),le=Vi(Tl("",{value:void 0!==I?I:P,postState:function(e){return e||""}}),2),ce=le[0],ue=le[1],pe=function(e,t,n,r,o){return ey.useMemo((function(){var a,i,s,l=e;return!e&&(l=rp(t)),a=new Map,i=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)},function e(t,l){var c,u,p=arguments.length>1&&void 0!==l&&l;for(c=0;c1&&void 0!==t?t:{},r=n.childrenAsData,o=[],a=ep(n.fieldNames,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;return function e(t,n){t.forEach((function(t){var a,u;n||!(l in t)?(a=t[s],o.push({key:Zu(t,o.length),groupOption:n,data:t,label:t[i],value:a})):(void 0===(u=t[c])&&r&&(u=t.label),o.push({key:Zu(t,o.length),group:!0,data:t,label:u}),e(t[l],!0))}))}(e,!1),o}(i,{fieldNames:se,childrenAsData:ae})}),[i,se,ae]),l=function(e){var t,n,r=ge(e);_e(r),te&&(r.length!==we.length||r.some((function(e,t){var n;return(null===(n=we[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))&&(t=ee?r:r.map((function(e){return e.value})),n=r.map((function(e){return tp(ke(e.value))})),te(oe?t:t[0],oe?n:n[0]))},u=(c=Vi(ey.useState(null),2))[0],p=c[1],m=(d=Vi(ey.useState(0),2))[0],f=d[1],g=void 0!==W?W:"combobox"!==D,h=ey.useCallback((function(e,t,n){var r=(arguments.length>2&&void 0!==n?n:{}).source,o=void 0===r?"keyboard":r;f(t),E&&"combobox"===D&&null!==e&&"keyboard"===o&&p(String(e))}),[E,D]),b=function(e,t,n){var r,o,a=function(){var t,n=ke(e);return[ee?{label:null==n?void 0:n[se.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,tp(n)]};t&&T?(r=Vi(a(),2),T(r[0],r[1])):!t&&j&&"clear"!==n&&(o=Vi(a(),2),j(o[0],o[1]))},_=op((function(e,t){var n,r=!oe||t.selected;n=r?oe?[].concat(ki(we),[e]):[e]:we.filter((function(t){return t.value!==e})),l(n),b(e,r),"combobox"===D?p(""):np&&!R||(ue(""),p(""))})),y=function(e,t){l(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach((function(e){b(e.value,!1,n)}))},v=function(e,t){var n,r;ue(e),p(null),"submit"!==t.source?"blur"!==t.source&&("combobox"===D&&l(e),null==N||N(e)):(n=(e||"").trim())&&(r=Array.from(new Set([].concat(ki(De),[n]))),l(r),b(n,!0),ue(""))},w=function(e){var t,n=e;"tags"!==D&&(n=e.map((function(e){var t=me.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e}))),t=Array.from(new Set([].concat(ki(De),ki(n)))),l(t),t.forEach((function(e){b(e,!0)}))},k=ey.useMemo((function(){var e=!1!==G&&!1!==F;return Di(Di({},pe),{},{flattenOptions:s,onActiveValue:h,defaultActiveFirstOption:g,onSelect:_,menuItemSelectedIcon:V,rawValues:De,fieldNames:se,virtual:e,direction:q,listHeight:K,listItemHeight:J,childrenAsData:ae})}),[pe,s,h,g,_,V,De,se,G,F,K,J,ae]),ey.createElement(bA.Provider,{value:k},ey.createElement(tA,mi({},ne,{id:re,prefixCls:S,ref:t,omitDomProps:kA,mode:D,displayValues:Ce,onDisplayValuesChange:y,direction:q,searchValue:ce,onSearch:v,autoClearSearchValue:R,onSearchSplit:w,dropdownMatchSelectWidth:F,OptionList:vA,emptyOptions:!s.length,activeValue:u,activeDescendantId:"".concat(re,"_list_").concat(m)})))})),(DA=CA).Option=sA,DA.OptGroup=iA;const v2=(e,t)=>t||e,w2=()=>{const[,e]=Ml(),t=new eP(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ey.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ey.createElement("g",{fill:"none",fillRule:"evenodd"},ey.createElement("g",{transform:"translate(24 31.67)"},ey.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ey.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),ey.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),ey.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),ey.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),ey.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),ey.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ey.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ey.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},k2=()=>{const[,e]=Ml(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=ey.useMemo((()=>({borderColor:new eP(t).onBackground(o).toHexShortString(),shadowColor:new eP(n).onBackground(o).toHexShortString(),contentColor:new eP(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return ey.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ey.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ey.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),ey.createElement("g",{fillRule:"nonzero",stroke:a},ey.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),ey.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},C2=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},D2=jl("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=$l(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[C2(r)]}));xA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:r,image:o=x2,description:a,children:i,imageStyle:s}=e,l=xA(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:u}=ey.useContext(VQ),p=c("empty",r),[d,m]=D2(p),[f]=NQ("Empty"),g=void 0!==a?a:null==f?void 0:f.description;let h=null;return h="string"==typeof o?ey.createElement("img",{alt:"string"==typeof g?g:"empty",src:o}):o,d(ey.createElement("div",Object.assign({className:kQ(m,p,{[`${p}-normal`]:o===S2,[`${p}-rtl`]:"rtl"===u},t,n)},l),ey.createElement("div",{className:`${p}-image`,style:s},h),g&&ey.createElement("div",{className:`${p}-description`},g),i&&ey.createElement("div",{className:`${p}-footer`},i)))};E2.PRESENTED_IMAGE_DEFAULT=x2,E2.PRESENTED_IMAGE_SIMPLE=S2;const O2=E2,P2=e=>{const{componentName:t}=e,{getPrefixCls:n}=ey.useContext(VQ),r=n("empty");switch(t){case"Table":case"List":return UJ.createElement(O2,{image:O2.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return UJ.createElement(O2,{image:O2.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return UJ.createElement(O2,null)}},I2=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},N2=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},XQ(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,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:v1},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:k1},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:w1},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:C1},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},I2(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},qQ),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},P1(e,"slide-up"),P1(e,"slide-down"),y1(e,"move-up"),y1(e,"move-down")]},A2=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]},R2=e=>{const{componentCls:t}=e,n=$l(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$l(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=A2(e);return[up(e),up(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},up(r,"lg")]},T2=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},j2=function(e,t,n){let r=arguments.length>2&&void 0!==n&&n;const{componentCls:o,borderHoverColor:a,outlineColor:i,antCls:s}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${s}-pagination-size-changer)`]:Object.assign(Object.assign({},r?{[`${o}-selector`]:{borderColor:a}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:a}})}}},$2=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},F2=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},XQ(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},T2(e)),$2(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},qQ),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},qQ),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},L2=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},F2(e),dp(e),R2(e),N2(e),{[`${t}-rtl`]:{direction:"rtl"}},j2(t,$l(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),j2(`${t}-status-error`,$l(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),j2(`${t}-status-warning`,$l(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Oc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},M2=jl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=$l(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[L2(r)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),U2={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"},z2=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:U2}))})),H2={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"},B2=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:H2}))})),W2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},V2=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:W2}))}));SA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{prefixCls:r,bordered:o=!0,className:a,rootClassName:i,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:p,listItemHeight:d=24,size:m,disabled:f,notFoundContent:g,status:h,showArrow:b,builtinPlacements:_,dropdownMatchSelectWidth:y,popupMatchSelectWidth:v,direction:w}=e,k=SA(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);const{getPopupContainer:C,getPrefixCls:D,renderEmpty:x,direction:S,virtual:E,popupMatchSelectWidth:O,popupOverflow:P,select:I}=ey.useContext(VQ),N=D("select",r),A=D(),R=null!=w?w:S,{compactSize:T,compactItemClassnames:j}=o0(N,R),[$,F]=M2(N),L=ey.useMemo((()=>{const{mode:e}=k;if("combobox"!==e)return e===G2?"combobox":e}),[k.mode]),M="multiple"===L||"tags"===L,U=function(e){return null==e||e}(b),z=null!==(n=null!=v?v:y)&&void 0!==n?n:O,{status:H,hasFeedback:B,isFormItemInput:W,feedbackIcon:V}=ey.useContext(r1),G=v2(H,h);let q;q=void 0!==g?g:"combobox"===L?null:(null==x?void 0:x("Select"))||ey.createElement(P2,{componentName:"Select"});const{suffixIcon:X,itemIcon:K,removeIcon:Y,clearIcon:J}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const p=null!=n?n:ey.createElement(SZ,null),d=e=>ey.createElement(ey.Fragment,null,!1!==c&&e,s&&u);let m=null;if(void 0!==t)m=d(t);else if(a)m=d(ey.createElement(WZ,{spin:!0}));else{const e=`${l}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return d(ey.createElement(n&&r?V2:B2,{className:e}))}}let f=null;f=void 0!==r?r:i?ey.createElement(z2,null):null;let g=null;return g=void 0!==o?o:ey.createElement(OZ,null),{clearIcon:p,suffixIcon:m,itemIcon:f,removeIcon:g}}(Object.assign(Object.assign({},k),{multiple:M,hasFeedback:B,feedbackIcon:V,showArrow:U,prefixCls:N})),Q=Js(k,["suffixIcon","itemIcon"]),Z=kQ(l||c,{[`${N}-dropdown-${R}`]:"rtl"===R},i,F),ee=lZ((e=>{var t;return null!==(t=null!=m?m:T)&&void 0!==t?t:e})),te=ey.useContext(sZ),ne=null!=f?f:te,re=kQ({[`${N}-lg`]:"large"===ee,[`${N}-sm`]:"small"===ee,[`${N}-rtl`]:"rtl"===R,[`${N}-borderless`]:!o,[`${N}-in-form-item`]:W},cp(N,G,B),j,a,i,F),oe=ey.useMemo((()=>void 0!==p?p:"rtl"===R?"bottomRight":"bottomLeft"),[p,R]),ae=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible"};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}(_,P);return $(ey.createElement(DA,Object.assign({ref:t,virtual:E,showSearch:null==I?void 0:I.showSearch},Q,{dropdownMatchSelectWidth:z,builtinPlacements:ae,transitionName:K0(A,X0(p),k.transitionName),listHeight:u,listItemHeight:d,mode:L,prefixCls:N,placement:oe,direction:R,inputIcon:X,menuItemSelectedIcon:K,removeIcon:Y,clearIcon:J,notFoundContent:q,className:re,getPopupContainer:s||C,dropdownClassName:Z,showArrow:B||U,disabled:ne})))},X2=ey.forwardRef(q2),K2=(LY=X2,function(e){const{prefixCls:t,style:n}=e,r=ey.useRef(null),[o,a]=ey.useState(0),[i,s]=ey.useState(0),[l,c]=Tl(!1,{value:e.open}),{getPrefixCls:u}=ey.useContext(VQ),p=u("select",t);ey.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;a(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=null===(n=r.current)||void 0===n?void 0:n.querySelector(`.${p}-dropdown`);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let d=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return ey.createElement(vZ,{theme:{token:{motion:!1}}},ey.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:i}},ey.createElement(LY,Object.assign({},d))))});X2.SECRET_COMBOBOX_MODE_DO_NOT_USE=G2,X2.Option=sA,X2.OptGroup=iA,X2._InternalPanelDoNotUseOrYouWillBeFired=K2;const Y2=X2,J2=["xxl","xl","lg","md","sm","xs"],Q2=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)`}),Z2=e=>{const t=e,n=[].concat(J2).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),a=`screen${o}Min`,i=`screen${o}`;if(!(t[a]<=t[i]))throw new Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(rnew eP(e).setAlpha(t).toRgbString(),i5=(e,t)=>new eP(e).lighten(t).toHexString(),s5=e=>{const t=xl(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},l5=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:a5(r,.85),colorTextSecondary:a5(r,.65),colorTextTertiary:a5(r,.45),colorTextQuaternary:a5(r,.25),colorFill:a5(r,.18),colorFillSecondary:a5(r,.12),colorFillTertiary:a5(r,.08),colorFillQuaternary:a5(r,.04),colorBgElevated:i5(n,12),colorBgContainer:i5(n,8),colorBgLayout:i5(n,0),colorBgSpotlight:i5(n,26),colorBorder:i5(n,26),colorBorderSecondary:i5(n,19)}},c5={defaultConfig:nZ,defaultSeed:nZ.token,useToken:function(){const[e,t,n]=Ml();return{theme:e,token:t,hashId:n}},defaultAlgorithm:El,darkAlgorithm:(e,t)=>{const n=Object.keys($Q).map((t=>{const n=xl(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:El(e);return Object.assign(Object.assign(Object.assign({},r),n),Sl(e,{generateColorPalettes:s5,generateNeutralColorPalettes:l5}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:El(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),BQ(r)),{controlHeight:o}),jQ(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=Ps((null==e?void 0:e.algorithm)?e.algorithm:El),n=Object.assign(Object.assign({},FQ),null==e?void 0:e.token);return ME(n,{override:null==e?void 0:e.token},t,Il)}},u5=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:p}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},XQ(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,t5)}},[`${t}-content`]:{position:"relative"}}),Ll(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},bp($l(e,{borderRadiusOuter:p}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},p5=(e,t)=>jl("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:a}=e,i=$l(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:a>4?4:a});return[u5(i),B1(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),d5=TQ.map((e=>`${e}-inverse`)),m5=["success","processing","error","default","warning"];RA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:p,afterVisibleChange:d,destroyTooltipOnHide:m,arrow:f=!0,title:g,overlay:h,builtinPlacements:b,arrowPointAtCenter:_=!1,autoAdjustOverflow:y=!0}=e,v=!!f,{token:w}=f5(),{getPopupContainer:k,getPrefixCls:C,direction:D}=ey.useContext(VQ),x=ey.useRef(null),S=()=>{var e;null===(e=x.current)||void 0===e||e.forceAlign()};ey.useImperativeHandle(t,(()=>({forceAlign:S,forcePopupAlign:()=>{S()}})));const[E,O]=Tl(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),P=!g&&!h&&0!==g,I=ey.useMemo((()=>{var e,t;let n=_;return"object"==typeof f&&(n=null!==(t=null!==(e=f.pointAtCenter)&&void 0!==e?e:f.arrowPointAtCenter)&&void 0!==t?t:_),b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(n5).forEach((e=>{const c=Object.assign(Object.assign({},r&&r5[e]||n5[e]),{offset:[0,0]});switch(l[e]=c,o5.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=s+o}const u=gp({contentRadius:a,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-u.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":c.offset[0]=u.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":c.offset[1]=-u.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":c.offset[1]=u.dropdownArrowOffset+s}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":a.shiftY=2*t.dropdownArrowOffsetVertical+n}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,u,t,n),i&&(c.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:v?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[_,f,b,w]),N=ey.useMemo((()=>0===g?g:h||g||""),[h,g]),A=ey.createElement(a0,null,"function"==typeof N?N():N),{getPopupContainer:R,placement:T="top",mouseEnterDelay:j=.1,mouseLeaveDelay:$=.1,overlayStyle:F,rootClassName:L}=e,M=RA(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=C("tooltip",o),z=C(),H=e["data-popover-inject"];let B=E;"open"in e||"visible"in e||!P||(B=!1);const W=function(e,t){const n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){const{picked:n,omitted:r}=(e=>{const t={},n=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach((r=>{e&&r in e&&(t[r]=e[r],delete n[r])})),{picked:t,omitted:n}})(e.props.style),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=sc(e,{style:Object.assign(Object.assign({},r),{pointerEvents:"none"}),className:null});return ey.createElement("span",{style:o,className:kQ(e.props.className,`${t}-disabled-compatible-wrapper`)},a)}return e}(RZ(u)&&!ic(u)?u:ey.createElement("span",null,u),U),V=W.props,G=V.className&&"string"!=typeof V.className?V.className:kQ(V.className,{[a||`${U}-open`]:!0}),[q,X]=p5(U,!H),K=yp(U,l),Y=Object.assign(Object.assign({},c),K.overlayStyle),J=K.arrowStyle,Q=kQ(s,{[`${U}-rtl`]:"rtl"===D},K.className,L,X);return q(ey.createElement(e5,Object.assign({},M,{showArrow:v,placement:T,mouseEnterDelay:j,mouseLeaveDelay:$,prefixCls:U,overlayClassName:Q,overlayStyle:Object.assign(Object.assign({},J),F),getTooltipContainer:R||i||k,ref:x,builtinPlacements:I,overlay:A,visible:B,onVisibleChange:t=>{var n,r;O(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=p?p:d,overlayInnerStyle:Y,arrowContent:ey.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:K0(z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),B?sc(W,{className:G}):W))}));g5._InternalPanelDoNotUseOrYouWillBeFired=function(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=ey.useContext(VQ),l=s("tooltip",t),[c,u]=p5(l,!0),p=yp(l,a),d=Object.assign(Object.assign({},i),p.overlayStyle),m=p.arrowStyle;return c(ey.createElement("div",{className:kQ(u,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className),style:m},ey.createElement("div",{className:`${l}-arrow`}),ey.createElement(fp,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:d}),o)))};const h5=g5,b5={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"},_5=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:b5}))}));TA=aI.ESC,jA=aI.TAB,$A=ey.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=ey.useMemo((function(){return"function"==typeof n?n():n}),[n]),i=zs(t,null==a?void 0:a.ref);return UJ.createElement(UJ.Fragment,null,r&&UJ.createElement("div",{className:"".concat(o,"-arrow")}),UJ.cloneElement(a,{ref:Bs(a)?i:void 0}))})),MA={topLeft:{points:["bl","tl"],overflow:FA={adjustX:1,adjustY:1},offset:[0,-4],targetOffset:LA=[0,0]},top:{points:["bc","tc"],overflow:FA,offset:[0,-4],targetOffset:LA},topRight:{points:["br","tr"],overflow:FA,offset:[0,-4],targetOffset:LA},bottomLeft:{points:["tl","bl"],overflow:FA,offset:[0,4],targetOffset:LA},bottom:{points:["tc","bc"],overflow:FA,offset:[0,4],targetOffset:LA},bottomRight:{points:["tr","br"],overflow:FA,offset:[0,4],targetOffset:LA}},UA=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const y5=UJ.forwardRef(vp);zA=ey.createContext(null),HA=["children","locked"],BA=ey.createContext(null),WA=[],VA=ey.createContext(null),GA=ey.createContext(WA),qA=ey.createContext(null),XA=ey.createContext({}),ZA=aI.ENTER,eR=aI.ESC,tR=aI.HOME,nR=aI.END,rR=[JA=aI.UP,QA=aI.DOWN,KA=aI.LEFT,YA=aI.RIGHT],oR="__RC_UTIL_PATH_SPLIT__",aR=function(e){return e.join(oR)},iR=function(e){return e.split(oR)},sR="rc-menu-more",lR=Math.random().toFixed(5).toString().slice(2),cR=0,uR=["item"],pR=["title","attribute","elementRef"],dR=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],mR=["active"],fR=function(){function e(){return Oa(this,e),t.apply(this,arguments)}Ts(e,ey.Component);var t=Ls(e);return Ia(e,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Js(Sa(e,pR),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ii(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),ey.createElement(TN.Item,mi({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),e}(),gR=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,L,M,U,z=e.style,H=e.className,B=e.eventKey;return r=e.disabled,o=e.itemIcon,a=e.children,i=e.role,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onClick,u=e.onKeyDown,p=e.onFocus,d=Sa(e,dR),m=kp(B),g=(f=ey.useContext(BA)).prefixCls,h=f.onItemClick,b=f.disabled,_=f.overflowDisabled,y=f.itemIcon,v=f.selectedKeys,w=f.onActive,k=ey.useContext(XA)._internalRenderMenuItem,C="".concat(g,"-item"),D=ey.useRef(),x=ey.useRef(),S=b||r,E=Hs(t,x),O=xp(B),P=function(e){return{key:B,keyPath:ki(O).reverse(),item:D.current,domEvent:e}},I=o||y,A=(N=Ip(B,S,s,l)).active,R=Sa(N,mR),T=v.includes(B),j=Np(O.length),$=function(e){if(!S){var t=P(e);null==c||c(Rp(t)),h(t)}},F=function(e){if(null==u||u(e),e.which===aI.ENTER){var t=P(e);null==c||c(Rp(t)),h(t)}},L=function(e){w(B),null==p||p(e)},M={},"option"===e.role&&(M["aria-selected"]=T),U=ey.createElement(fR,mi({ref:D,elementRef:E,role:null===i?"none":i||"menuitem",tabIndex:r?null:-1,"data-menu-id":_&&m?null:m},d,R,M,{component:"li","aria-disabled":r,style:Di(Di({},j),z),className:kQ(C,(n={},xa(n,"".concat(C,"-active"),A),xa(n,"".concat(C,"-selected"),T),xa(n,"".concat(C,"-disabled"),S),n),H),onClick:$,onKeyDown:F,onFocus:L}),a,ey.createElement(Ap,{props:Di(Di({},e),{},{isSelected:T}),icon:I})),k&&(U=k(U,e,{selected:T})),U}));const v5=ey.forwardRef(Tp);hR=["className","children"],bR=function(e,t){var n=e.className,r=e.children,o=Sa(e,hR),a=ey.useContext(BA),i=a.prefixCls,s=a.mode;return ey.createElement("ul",mi({className:kQ(i,a.rtl&&"".concat(i,"-rtl"),"".concat(i,"-sub"),"".concat(i,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},(_R=ey.forwardRef(bR)).displayName="SubMenuList",yR=["label","children","key","type"],wR={topLeft:{points:["bl","tl"],overflow:vR={adjustX:1,adjustY:1}},topRight:{points:["br","tr"],overflow:vR},bottomLeft:{points:["tl","bl"],overflow:vR},bottomRight:{points:["tr","br"],overflow:vR},leftTop:{points:["tr","tl"],overflow:vR},leftBottom:{points:["br","bl"],overflow:vR},rightTop:{points:["tl","tr"],overflow:vR},rightBottom:{points:["bl","br"],overflow:vR}},kR={topLeft:{points:["bl","tl"],overflow:vR},topRight:{points:["br","tr"],overflow:vR},bottomLeft:{points:["tl","bl"],overflow:vR},bottomRight:{points:["tr","br"],overflow:vR},rightTop:{points:["tr","tl"],overflow:vR},rightBottom:{points:["br","bl"],overflow:vR},leftTop:{points:["tl","tr"],overflow:vR},leftBottom:{points:["bl","br"],overflow:vR}},CR={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},DR=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],xR=["active"],SR=function(e){var t,n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,L,M,U,z,H,B,W,V,G,q,X,K,Y,J,Q,Z,ee,te,ne,re,oe,ae,ie,se,le,ce=e.style,ue=e.className,pe=e.title,de=e.eventKey;return n=e.disabled,r=e.internalPopupClose,o=e.children,a=e.itemIcon,i=e.expandIcon,s=e.popupClassName,l=e.popupOffset,c=e.onClick,u=e.onMouseEnter,p=e.onMouseLeave,d=e.onTitleClick,m=e.onTitleMouseEnter,f=e.onTitleMouseLeave,g=Sa(e,DR),h=kp(de),_=(b=ey.useContext(BA)).prefixCls,y=b.mode,v=b.openKeys,w=b.disabled,k=b.overflowDisabled,C=b.activeKey,D=b.selectedKeys,x=b.itemIcon,S=b.expandIcon,E=b.onItemClick,O=b.onOpenChange,P=b.onActive,I=ey.useContext(XA)._internalRenderSubMenuItem,N=ey.useContext(qA),A=N.isSubPathKey,R=xp(),T="".concat(_,"-submenu"),j=w||n,$=ey.useRef(),F=ey.useRef(),L=a||x,M=i||S,U=v.includes(de),z=!k&&U,H=A(D,de),B=Ip(de,j,m,f),W=B.active,V=Sa(B,xR),G=Vi(ey.useState(!1),2),X=G[1],K=function(e){j||X(e)},Y=function(e){K(!0),null==u||u({key:de,domEvent:e})},J=function(e){K(!1),null==p||p({key:de,domEvent:e})},Q=ey.useMemo((function(){return W||"inline"!==y&&(q||A([C],de))}),[y,W,C,q=G[0],de,A]),Z=Np(R.length),ee=function(e){j||(null==d||d({key:de,domEvent:e}),"inline"===y&&O(de,!U))},te=Pp((function(e){null==c||c(Rp(e)),E(e)})),ne=function(e){"inline"!==y&&O(de,e)},re=function(){P(de)},oe=h&&"".concat(h,"-popup"),ae=ey.createElement("div",mi({role:"menuitem",style:Z,className:"".concat(T,"-title"),tabIndex:j?null:-1,ref:$,title:"string"==typeof pe?pe:null,"data-menu-id":k&&h?null:h,"aria-expanded":z,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":j,onClick:ee,onFocus:re},V),pe,ey.createElement(Ap,{icon:"horizontal"!==y?M:null,props:Di(Di({},e),{},{isOpen:z,isSubMenu:!0})},ey.createElement("i",{className:"".concat(T,"-arrow")}))),(ie=ey.useRef(y)).current="inline"!==y&&R.length>1?"vertical":y,k||(ae=ey.createElement(Mp,{mode:se=ie.current,prefixCls:T,visible:!r&&z&&"inline"!==y,popupClassName:s,popupOffset:l,popup:ey.createElement(Cp,{mode:"horizontal"===se?"vertical":se},ey.createElement(_R,{id:oe,ref:F},o)),disabled:j,onVisibleChange:ne},ae)),le=ey.createElement(TN.Item,mi({role:"none"},g,{component:"li",style:ce,className:kQ(T,"".concat(T,"-").concat(y),ue,(t={},xa(t,"".concat(T,"-open"),z),xa(t,"".concat(T,"-active"),Q),xa(t,"".concat(T,"-selected"),H),xa(t,"".concat(T,"-disabled"),j),t)),onMouseEnter:Y,onMouseLeave:J}),ae,!k&&ey.createElement(Up,{id:oe,open:z,keyPath:R},o)),I&&(le=I(le,e,{selected:H,active:Q,open:z,disabled:j})),ey.createElement(Cp,{onItemClick:te,mode:"horizontal"===y?"vertical":y,itemIcon:L,expandIcon:M},le)},ER=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],OR=[],PR=["className","title","eventKey","children"],IR=["children"],NR=function(e){var t,n,r,o,a=e.className,i=e.title;return t=e.children,n=Sa(e,PR),r=ey.useContext(BA),o="".concat(r.prefixCls,"-item-group"),ey.createElement("li",mi({role:"presentation"},n,{onClick:function(e){return e.stopPropagation()},className:kQ(o,a)}),ey.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:"string"==typeof i?i:void 0},i),ey.createElement("ul",{role:"group",className:"".concat(o,"-list")},t))},(AR=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T,j,$,F,L,M,U,z,H,B,W,V,G,q,X,K,Y,J,Q,Z,ee,te,ne,re,oe,ae,ie,se=e.prefixCls,le=void 0===se?"rc-menu":se,ce=e.rootClassName,ue=e.style,pe=e.className,de=e.tabIndex,me=void 0===de?0:de,fe=e.items,ge=e.children,he=e.direction,be=e.id,_e=e.mode,ye=void 0===_e?"vertical":_e,ve=e.inlineCollapsed,we=e.disabled,ke=e.disabledOverflow,Ce=e.subMenuOpenDelay,De=void 0===Ce?.1:Ce,xe=e.subMenuCloseDelay,Se=void 0===xe?.1:xe,Ee=e.forceSubMenuRender,Oe=e.defaultOpenKeys,Pe=e.openKeys,Ie=e.activeKey,Ne=e.defaultActiveFirst,Ae=e.selectable,Re=void 0===Ae||Ae,Te=e.multiple,je=void 0!==Te&&Te,$e=e.defaultSelectedKeys,Fe=e.selectedKeys,Le=e.onSelect,Me=e.onDeselect,Ue=e.inlineIndent,ze=void 0===Ue?24:Ue,He=e.motion,Be=e.defaultMotions,We=e.triggerSubMenuAction,Ve=void 0===We?"hover":We,Ge=e.builtinPlacements,qe=e.itemIcon,Xe=e.expandIcon,Ke=e.overflowedIndicator,Ye=void 0===Ke?"...":Ke,Je=e.overflowedIndicatorPopupClassName,Qe=e.getPopupContainer,Ze=e.onClick,et=e.onOpenChange,tt=e.onKeyDown;return o=e._internalRenderMenuItem,a=e._internalRenderSubMenuItem,i=Sa(e,ER),s=ey.useMemo((function(){return Fp(ge,fe,OR)}),[ge,fe]),c=(l=Vi(ey.useState(!1),2))[0],u=l[1],p=ey.useRef(),d=function(e){var t=Vi(Tl(e,{value:e}),2),n=t[0],r=t[1];return ey.useEffect((function(){cR+=1;var e="".concat(lR,"-").concat(cR);r("rc-menu-uuid-".concat(e))}),[]),n}(be),m="rtl"===he,f=Vi(Tl(Oe,{value:Pe,postState:function(e){return e||OR}}),2),h=f[1],b=function(e,t){function n(){h(e),null==et||et(e)}arguments.length>1&&void 0!==t&&t?fD.flushSync(n):n()},_=Vi(ey.useState(g=f[0]),2),y=_[0],v=_[1],w=ey.useRef(!1),k=Vi(ey.useMemo((function(){return"inline"!==ye&&"vertical"!==ye||!ve?[ye,!1]:["vertical",ve]}),[ye,ve]),2),D=k[1],x="inline"===(C=k[0]),S=Vi(ey.useState(C),2),E=S[0],O=S[1],I=(P=Vi(ey.useState(D),2))[0],N=P[1],ey.useEffect((function(){O(C),N(D),w.current&&(x?h(y):b(OR))}),[C,D]),A=Vi(ey.useState(0),2),T=A[1],j=(R=A[0])>=s.length-1||"horizontal"!==E||ke,ey.useEffect((function(){x&&v(g)}),[g]),ey.useEffect((function(){return w.current=!0,function(){w.current=!1}}),[]),$=function(){var e=Vi(ey.useState({}),2)[1],t=ey.useRef(new Map),n=ey.useRef(new Map),r=Vi(ey.useState([]),2),o=r[0],a=r[1],i=ey.useRef(0),s=ey.useRef(!1),l=ey.useCallback((function(r,o){var a,l,c=aR(o);n.current.set(c,r),t.current.set(r,c),i.current+=1,a=i.current,l=function(){a===i.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=ey.useCallback((function(e,r){var o=aR(r);n.current.delete(o),t.current.delete(e)}),[]),u=ey.useCallback((function(e){a(e)}),[]),p=ey.useCallback((function(e,n){var r=t.current.get(e)||"",a=iR(r);return n&&o.includes(a[0])&&a.unshift(sR),a}),[o]),d=ey.useCallback((function(e,t){return e.some((function(e){return p(e,!0).includes(t)}))}),[p]),m=ey.useCallback((function(e){var r="".concat(t.current.get(e)).concat(oR),o=new Set;return ki(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return ey.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:d,getKeyPath:p,getKeys:function(){var e=ki(t.current.keys());return o.length&&e.push(sR),e},getSubPathKeys:m}}(),M=$.refreshOverflowKeys,U=$.isSubPathKey,z=$.getKeyPath,H=$.getKeys,B=$.getSubPathKeys,W=ey.useMemo((function(){return{registerPath:F,unregisterPath:L}}),[F=$.registerPath,L=$.unregisterPath]),V=ey.useMemo((function(){return{isSubPathKey:U}}),[U]),ey.useEffect((function(){M(j?OR:s.slice(R+1).map((function(e){return e.key})))}),[R,j]),G=Vi(Tl(Ie||Ne&&(null===(n=s[0])||void 0===n?void 0:n.key),{value:Ie}),2),q=G[0],X=G[1],K=Pp((function(e){X(e)})),Y=Pp((function(){X(void 0)})),ey.useImperativeHandle(t,(function(){return{list:p.current,focus:function(e){var t,n,r,o,a=null!=q?q:null===(t=s.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;a&&(null===(n=p.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(wp(d,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}})),J=Vi(Tl($e||[],{value:Fe,postState:function(e){return Array.isArray(e)?e:null==e?OR:[e]}}),2),Q=J[0],Z=J[1],ee=function(e){var t,n,r,o;Re&&(n=Q.includes(t=e.key),r=je?n?Q.filter((function(e){return e!==t})):[].concat(ki(Q),[t]):[t],Z(r),o=Di(Di({},e),{},{selectedKeys:r}),n?null==Me||Me(o):null==Le||Le(o)),!je&&g.length&&"inline"!==E&&b(OR)},te=Pp((function(e){null==Ze||Ze(Rp(e)),ee(e)})),ne=Pp((function(e,t){var n,r=g.filter((function(t){return t!==e}));t?r.push(e):"inline"!==E&&(n=B(e),r=r.filter((function(e){return!n.has(e)}))),Ni(g,r,!0)||b(r,!0)})),re=function(e,t,n,r,o,a,i,s,l,c){var u,p=ey.useRef(),d=ey.useRef();return d.current=t,u=function(){qO.cancel(p.current)},ey.useEffect((function(){return function(){u()}}),[]),function(m){var f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P=m.which;if([].concat(rR,[ZA,eR,tR,nR]).includes(P)){if((b=function(){return f=new Set,g=new Map,h=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(wp(r,e),"']"));t&&(f.add(t),h.set(t,e),g.set(e,t))})),f})(),_=g.get(t),y=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(_,f),v=h.get(y),w=function(e,t,n,r){var o,a,i,s,l,c,u,p="prev",d="next",m="children",f="parent";if("inline"===e&&r===ZA)return{inlineTrigger:!0};switch(xa(o={},JA,p),xa(o,QA,d),l=o,xa(a={},KA,n?d:p),xa(a,YA,n?p:d),xa(a,QA,m),xa(a,ZA,m),c=a,xa(i={},JA,p),xa(i,QA,d),xa(i,ZA,m),xa(i,eR,f),xa(i,KA,n?m:f),xa(i,YA,n?f:m),null===(s={inline:l,horizontal:c,vertical:u=i,inlineSub:l,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case p:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case m:return{offset:1,sibling:!1};default:return null}}(e,1===i(v,!0).length,n,P),!w&&P!==tR&&P!==nR)return;(rR.includes(P)||[tR,nR].includes(P))&&m.preventDefault(),k=function(e){var t,n,r;e&&(t=e,null!=(n=e.querySelector("a"))&&n.getAttribute("href")&&(t=n),r=h.get(e),s(r),u(),p.current=qO((function(){d.current===r&&t.focus()})))},[tR,nR].includes(P)||w.sibling||!y?(x=Ep(C=y&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):o.current,f),D=P===tR?x[0]:P===nR?x[x.length-1]:Op(C,f,y,w.offset),k(D)):w.inlineTrigger?l(v):w.offset>0?(l(v,!0),u(),p.current=qO((function(){var e,t;b(),e=y.getAttribute("aria-controls"),t=Op(document.getElementById(e),f),k(t)}),5)):w.offset<0&&(S=i(v,!0),O=g.get(E=S[S.length-2]),l(E,!1),k(O))}null==c||c(m)}}(E,q,m,d,p,H,z,X,(function(e,t){var n=null!=t?t:!g.includes(e);ne(e,n)}),tt),ey.useEffect((function(){u(!0)}),[]),oe=ey.useMemo((function(){return{_internalRenderMenuItem:o,_internalRenderSubMenuItem:a}}),[o,a]),ae="horizontal"!==E||ke?s:s.map((function(e,t){return ey.createElement(Cp,{key:e.key,overflowDisabled:t>R},e)})),ie=ey.createElement(TN,mi({id:be,ref:p,prefixCls:"".concat(le,"-overflow"),component:"ul",itemComponent:v5,className:kQ(le,"".concat(le,"-root"),"".concat(le,"-").concat(E),pe,(r={},xa(r,"".concat(le,"-inline-collapsed"),I),xa(r,"".concat(le,"-rtl"),m),r),ce),dir:he,style:ue,role:"menu",tabIndex:me,data:ae,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?s.slice(-t):null;return ey.createElement(zp,{eventKey:sR,title:Ye,disabled:j,internalPopupClose:0===t,popupClassName:Je},n)},maxCount:"horizontal"!==E||ke?TN.INVALIDATE:TN.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){T(e)},onKeyDown:re},i)),ey.createElement(XA.Provider,{value:oe},ey.createElement(zA.Provider,{value:d},ey.createElement(Cp,{prefixCls:le,rootClassName:ce,mode:E,openKeys:g,rtl:m,disabled:we,motion:c?He:null,defaultMotions:c?Be:null,activeKey:q,onActive:K,onInactive:Y,selectedKeys:Q,inlineIndent:ze,subMenuOpenDelay:De,subMenuCloseDelay:Se,forceSubMenuRender:Ee,builtinPlacements:Ge,triggerSubMenuAction:Ve,getPopupContainer:Qe,itemIcon:qe,expandIcon:Xe,onItemClick:te,onOpenChange:ne},ey.createElement(qA.Provider,{value:V},ie),ey.createElement("div",{style:{display:"none"},"aria-hidden":!0},ey.createElement(VA.Provider,{value:W},s)))))}))).Item=v5,AR.SubMenu=zp,AR.ItemGroup=Hp,AR.Divider=Bp;const w5={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"},k5=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:w5}))})),C5=ey.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});globalThis&&globalThis;const D5=ey.createContext(null);RR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:r}=e,o=RR(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=ey.useContext(VQ),i=a("menu",t),s=kQ({[`${i}-item-divider-dashed`]:!!r},n);return ey.createElement(Bp,Object.assign({className:s},o))};globalThis&&globalThis;const S5=ey.createContext({}),E5=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:p}=ey.useContext(C5),{siderCollapsed:d}=ey.useContext(S5);let m=a;void 0===a?m=l?r:"":!1===a&&(m="");const f={title:m};d||p||(f.title=null,f.open=!1);const g=Ms(r).length;let h=ey.createElement(v5,Object.assign({},Js(e,["title","icon","danger"]),{className:kQ({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof a?a:void 0}),sc(o,{className:kQ(RZ(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=ey.createElement("span",{className:`${s}-title-content`},r);return(!o||RZ(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?ey.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(p));return u||(h=ey.createElement(h5,Object.assign({},f,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),h)),h},O5=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=ey.useContext(C5),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=xp();let p;if(r){const e=RZ(o)&&"span"===o.type;p=ey.createElement(ey.Fragment,null,sc(r,{className:kQ(RZ(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:ey.createElement("span",{className:`${s}-title-content`},o))}else p=l&&!u.length&&o&&"string"==typeof o?ey.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):ey.createElement("span",{className:`${s}-title-content`},o);const d=ey.useMemo((()=>Object.assign(Object.assign({},i),{firstLevel:!1})),[i]);return ey.createElement(C5.Provider,{value:d},ey.createElement(zp,Object.assign({},Js(e,["icon"]),{title:p,popupClassName:kQ(s,n,`${s}-${a||c}`)})))};TR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:a,lineType:i,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${i} ${o}`,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,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},I5=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},N5=e=>Object.assign({},JQ(e)),A5=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:p,motionDurationSlow:d,motionEaseInOut:m,motionEaseOut:f,menuItemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:_,colorSplit:y,itemDisabledColor:v,dangerItemColor:w,dangerItemHoverColor:k,dangerItemSelectedColor:C,dangerItemActiveBg:D,dangerItemSelectedBg:x,itemHoverBg:S,menuSubMenuBg:E,horizontalItemSelectedColor:O,horizontalItemSelectedBg:P,horizontalItemBorderRadius:I,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},N5(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${v} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:S},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:S},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:x}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},N5(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:E},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:-p,marginBottom:0,borderRadius:I,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${d} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:P,"&::after":{borderBottomWidth:c,borderBottomColor:O}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${p}px ${_} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:p&&u?{width:`calc(100% + ${p}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(",")}}}}}},R5=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,marginXXS:s}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+a+i}}},T5=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:p,motionDurationSlow:d,paddingXS:m,boxShadowSecondary:f}=e,g={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},R5(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},R5(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${2.5*i}px)`,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 ${d}`,`background ${d}`,`padding ${s} ${l}`].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`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:2*r,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${p/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},qQ),{paddingInline:m})}}]},j5=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,motionEaseOut:i,iconCls:s,controlHeightSM:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${i}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$5=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*a,height:.15*a,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},F5=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,lineHeight:s,paddingXS:l,padding:c,colorSplit:u,lineWidth:p,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:f,menuArrowSize:g,menuArrowOffset:h,lineType:b,menuPanelMaskInset:_}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XQ(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${c}px`,fontSize:r,lineHeight:s,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:b,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}}}),j5(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${_}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:_},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},j5(e)),$5(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),$5(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h})`},"&::after":{transform:`rotate(45deg) translateX(-${h})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*g}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};jR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const o=ey.useContext(D5),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l}=ey.useContext(VQ),c=i(),{prefixCls:u,className:p,theme:d="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:f,inlineCollapsed:g,siderCollapsed:h,items:b,children:_,rootClassName:y,mode:v,selectable:w,onClick:k,overflowedIndicatorPopupClassName:C}=e,D=Js(jR(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),x=Vp(b)||_;null===(n=a.validator)||void 0===n||n.call(a,{mode:v});const S=Nl((function(){var e;null==k||k.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),E=a.mode||v,O=null!=w?w:a.selectable,P=ey.useMemo((()=>void 0!==h?h:g),[g,h]),I={horizontal:{motionName:`${c}-slide-up`},inline:q0(c),other:{motionName:`${c}-zoom-big`}},N=i("menu",u||a.prefixCls),[A,R]=((e,t)=>jl("Menu",((e,n)=>{let{overrideComponentToken:r}=n;if(!1===t)return[];const{colorBgElevated:o,colorPrimary:a,colorError:i,colorErrorHover:s,colorTextLightSolid:l,controlHeightLG:c,fontSize:u}=e,p=u/7*5,d=$l(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuArrowSize:p,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*p+"px",menuPanelMaskInset:-7,menuSubMenuBg:o}),m=new eP(l).setAlpha(.65).toRgbString(),f=$l(d,{itemColor:m,itemHoverColor:l,groupTitleColor:m,itemSelectedColor:l,itemBg:"#001529",subMenuItemBg:"#000c17",itemActiveBg:"transparent",itemSelectedBg:a,activeBarWidth:0,activeBarHeight:0,activeBarBorderWidth:0,itemDisabledColor:new eP(l).setAlpha(.25).toRgbString(),dangerItemColor:i,dangerItemHoverColor:s,dangerItemSelectedColor:l,dangerItemActiveBg:i,dangerItemSelectedBg:i,menuSubMenuBg:"#001529",horizontalItemSelectedColor:l,horizontalItemSelectedBg:a},Object.assign({},r));return[F5(d),P5(d),T5(d),A5(d,"light"),A5(f,"dark"),I5(d),W1(d),P1(d,"slide-up"),P1(d,"slide-down"),B1(d,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:a,colorTextDescription:i,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:p,controlItemBgActive:d,colorBgTextHover:m}=e;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:i,groupTitleColor:i,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:c,itemActiveBg:c,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent"}}),{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"]]})(e))(N,!o),T=kQ(`${N}-${d}`,p);let j;if("function"==typeof m)j=m;else{const e=m||a.expandIcon;j=sc(e,{className:kQ(`${N}-submenu-expand-icon`,null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.className)})}const $=ey.useMemo((()=>({prefixCls:N,inlineCollapsed:P||!1,direction:l,firstLevel:!0,theme:d,mode:E,disableMenuItemTitleTooltip:f})),[N,P,l,f,d]);return A(ey.createElement(D5.Provider,{value:null},ey.createElement(C5.Provider,{value:$},ey.createElement(AR,Object.assign({getPopupContainer:s,overflowedIndicator:ey.createElement(k5,null),overflowedIndicatorPopupClassName:kQ(N,`${N}-${d}`,C),mode:E,selectable:O,onClick:S},D,{inlineCollapsed:P,className:T,prefixCls:N,direction:l,defaultMotions:I,expandIcon:j,ref:t,rootClassName:kQ(y,R)}),x))))})),M5=ey.forwardRef(((e,t)=>{const n=ey.useRef(null),r=ey.useContext(S5);return ey.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),ey.createElement(L5,Object.assign({ref:n},e,r))}));M5.Item=E5,M5.SubMenu=O5,M5.Divider=x5,M5.ItemGroup=Hp;const U5=M5,z5=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),H5=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),B5=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),W5=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},H5($l(e,{inputBorderHoverColor:e.colorBorder})))}),V5=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},G5=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),q5=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:a,colorWarningOutline:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},B5($l(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},B5($l(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},X5=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},z5(e.colorTextPlaceholder)),{"&:hover":Object.assign({},H5(e)),"&:focus, &-focused":Object.assign({},B5(e)),"&-disabled, &[disabled]":Object.assign({},W5(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},V5(e)),"&-sm":Object.assign({},G5(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),K5=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},V5(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},G5(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${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.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Y5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},XQ(e)),X5(e)),q5(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},J5=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},Q5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X5(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},H5(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),J5(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),q5(e,`${t}-affix-wrapper`))}},Z5=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},XQ(e)),K5(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},W5(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}}}})}},e3=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},t3=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},n3=jl("Input",(e=>{const t=Gp(e);return[Y5(t),t3(t),Q5(t),Z5(t),e3(t),Oc(t)]})),r3=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=kQ({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=kQ({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),l=ey.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return ey.createElement("span",{className:kQ(t,i,s,n),style:Object.assign(Object.assign({},l),r)})},o3=new lO("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),a3=e=>({height:e,lineHeight:`${e}px`}),i3=e=>Object.assign({width:e},a3(e)),s3=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:o3,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),l3=e=>Object.assign({width:5*e,minWidth:5*e},a3(e)),c3=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},i3(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},i3(o)),[`${t}${t}-sm`]:Object.assign({},i3(a))}},u3=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},l3(t)),[`${r}-lg`]:Object.assign({},l3(o)),[`${r}-sm`]:Object.assign({},l3(a))}},p3=e=>Object.assign({width:e},a3(e)),d3=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},p3(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},p3(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},m3=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},f3=e=>Object.assign({width:2*e,minWidth:2*e},a3(e)),g3=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:2*r,minWidth:2*r},f3(r))},m3(e,r,n)),{[`${n}-lg`]:Object.assign({},f3(o))}),m3(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},f3(a))}),m3(e,a,`${n}-sm`))},h3=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:p,padding:d,marginSM:m,borderRadius:f,titleHeight:g,blockRadius:h,paragraphLiHeight:b,controlHeightXS:_,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},i3(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},i3(c)),[`${n}-sm`]:Object.assign({},i3(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:p,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:p,borderRadius:h,"+ li":{marginBlockStart:_}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:f}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:m,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},g3(e)),c3(e)),u3(e)),d3(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${a},\n ${i},\n ${s}\n `]:Object.assign({},s3(e))}}},b3=jl("Skeleton",(e=>{const{componentCls:t}=e,n=$l(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[h3(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),_3={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-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},y3=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:_3}))})),v3=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:a}=e,i=ki(Array(a)).map(((e,n)=>ey.createElement("li",{key:n,style:{width:t(n)}})));return ey.createElement("ul",{className:kQ(n,r),style:o},i)},w3=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return ey.createElement("h3",{className:kQ(t,n),style:Object.assign({width:r},o)})},k3=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:p}=e,{getPrefixCls:d,direction:m}=ey.useContext(VQ),f=d("skeleton",t),[g,h]=b3(f);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let i,d;if(e){const e=Object.assign(Object.assign({prefixCls:`${f}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),qp(s));i=ey.createElement("div",{className:`${f}-header`},ey.createElement(r3,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${f}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),qp(l));r=ey.createElement(w3,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${f}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),qp(c));o=ey.createElement(v3,Object.assign({},n))}d=ey.createElement("div",{className:`${f}-content`},r,o)}const b=kQ(f,{[`${f}-with-avatar`]:e,[`${f}-active`]:u,[`${f}-rtl`]:"rtl"===m,[`${f}-round`]:p},r,o,h);return g(ey.createElement("div",{className:b,style:a},i,d))}return void 0!==i?i:null};k3.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=ey.useContext(VQ),l=s("skeleton",t),[c,u]=b3(l),p=Js(e,["prefixCls"]),d=kQ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(ey.createElement("div",{className:d},ey.createElement(r3,Object.assign({prefixCls:`${l}-button`,size:i},p))))},k3.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=ey.useContext(VQ),l=s("skeleton",t),[c,u]=b3(l),p=Js(e,["prefixCls","className"]),d=kQ(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(ey.createElement("div",{className:d},ey.createElement(r3,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:i},p))))},k3.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=ey.useContext(VQ),l=s("skeleton",t),[c,u]=b3(l),p=Js(e,["prefixCls"]),d=kQ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(ey.createElement("div",{className:d},ey.createElement(r3,Object.assign({prefixCls:`${l}-input`,size:i},p))))},k3.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=ey.useContext(VQ),s=i("skeleton",t),[l,c]=b3(s),u=kQ(s,`${s}-element`,{[`${s}-active`]:a},n,r,c);return l(ey.createElement("div",{className:u},ey.createElement("div",{className:kQ(`${s}-image`,n),style:o},ey.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},ey.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},k3.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=ey.useContext(VQ),l=s("skeleton",t),[c,u]=b3(l),p=kQ(l,`${l}-element`,{[`${l}-active`]:a},u,n,r),d=null!=i?i:ey.createElement(y3,null);return c(ey.createElement("div",{className:p},ey.createElement("div",{className:kQ(`${l}-image`,n),style:o},d)))};const C3=k3,D3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},x3=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:D3}))})),S3=ey.createContext(null);$R=ey.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,l=e.children;return ey.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:kQ(n,i&&"".concat(n,"-active"),r),ref:t},l)})),FR=["key","forceRender","style","className"],LR={width:0,height:0,left:0,top:0},MR=.1,UR=.01,zR=20,HR=Math.pow(.995,zR),BR={width:0,height:0,left:0,top:0,right:0},WR="TABS_DQ";const E3=ey.forwardRef(Zp);VR=ey.forwardRef((function(e,t){var n,r,o=e.position,a=e.prefixCls,i=e.extra;return i?(r={},"object"!==Ca(i)||ey.isValidElement(i)?r.right=i:r=i,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?ey.createElement("div",{className:"".concat(a,"-extra-content"),ref:t},n):null):null}));const O3=ey.memo(ey.forwardRef(ed),(function(e,t){return t.tabMoving}));GR=function(e){var t=e.current||{},n=t.offsetWidth,r=t.offsetHeight;return[void 0===n?0:n,void 0===r?0:r]},qR=function(e,t){return e[t?0:1]};const P3=ey.forwardRef(nd);XR=["renderTabBar"],KR=["label","key"],YR=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],JR=0,QR=ey.forwardRef(od);const I3={motionAppear:!1,motionEnter:!0,motionLeave:!0};ZR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[P1(e,"slide-up"),P1(e,"slide-down")]]},A3=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},R3=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},XQ(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:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},qQ),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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.colorTextDescription,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"}}})}})}},T3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,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:1.25*e.controlHeight,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},j3=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},$3=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},QQ(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},F3=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=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}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},L3=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},XQ(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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},QQ(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),$3(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},M3=jl("Tabs",(e=>{const t=$l(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[j3(t),F3(t),T3(t),R3(t),A3(t),L3(t),N3(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:e.controlHeightLG,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2})));eT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rnull;const U3=ey.createContext({}),z3=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},H3=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},B3=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let a=r;a>=0;a--)0===a?(o[`${n}${t}-${a}`]={display:"none"},o[`${n}-push-${a}`]={insetInlineStart:"auto"},o[`${n}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${a}`]={marginInlineStart:0},o[`${n}${t}-order-${a}`]={order:0}):(o[`${n}${t}-${a}`]={display:"block",flex:`0 0 ${a/r*100}%`,maxWidth:a/r*100+"%"},o[`${n}${t}-push-${a}`]={insetInlineStart:a/r*100+"%"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:a/r*100+"%"},o[`${n}${t}-offset-${a}`]={marginInlineStart:a/r*100+"%"},o[`${n}${t}-order-${a}`]={order:a});return o})(e,t),W3=jl("Grid",(e=>[z3(e)])),V3=jl("Grid",(e=>{const t=$l(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[H3(t),B3(t,""),B3(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},B3(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));tT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=ey.useContext(VQ),{gutter:o,wrap:a,supportFlexGap:i}=ey.useContext(U3),{prefixCls:s,span:l,order:c,offset:u,push:p,pull:d,className:m,children:f,flex:g,style:h}=e,b=tT(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),_=n("col",s),[y,v]=V3(_);let w={};G3.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete b[t],w=Object.assign(Object.assign({},w),{[`${_}-${t}-${n.span}`]:void 0!==n.span,[`${_}-${t}-order-${n.order}`]:n.order||0===n.order,[`${_}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${_}-${t}-push-${n.push}`]:n.push||0===n.push,[`${_}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${_}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${_}-rtl`]:"rtl"===r})}));const k=kQ(_,{[`${_}-${l}`]:void 0!==l,[`${_}-order-${c}`]:c,[`${_}-offset-${u}`]:u,[`${_}-push-${p}`]:p,[`${_}-pull-${d}`]:d},m,w,v),C={};if(o&&o[0]>0){const e=o[0]/2;C.paddingLeft=e,C.paddingRight=e}if(o&&o[1]>0&&!i){const e=o[1]/2;C.paddingTop=e,C.paddingBottom=e}return g&&(C.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(g),!1!==a||C.minWidth||(C.minWidth=0)),y(ey.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},C),h),className:k,ref:t}),f))})),X3=()=>{const[e,t]=ey.useState(!1);return ey.useEffect((()=>{t((()=>{if(!J0())return!1;if(void 0!==Q0)return Q0;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Q0=1===e.scrollHeight,document.body.removeChild(e),Q0})())}),[]),e};nT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=nT(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:d}=ey.useContext(VQ),[m,f]=ey.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,h]=ey.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=id(o,g),_=id(r,g),y=X3(),v=ey.useRef(l),w=mp();ey.useEffect((()=>{const e=w.subscribe((e=>{h(e);const t=v.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&f(e)}));return()=>w.unsubscribe(e)}),[]);const k=p("row",n),[C,D]=W3(k),x=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?x[0]/-2:void 0,P=null!=x[1]&&x[1]>0?x[1]/-2:void 0;O&&(E.marginLeft=O,E.marginRight=O),y?[,E.rowGap]=x:P&&(E.marginTop=P,E.marginBottom=P);const[I,N]=x,A=ey.useMemo((()=>({gutter:[I,N],wrap:c,supportFlexGap:y})),[I,N,c,y]);return C(ey.createElement(U3.Provider,{value:A},ey.createElement("div",Object.assign({},u,{className:S,style:Object.assign(Object.assign({},E),i),ref:t}),s)))}));(rT=UJ.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=Vi(UJ.useState(l||o),2),p=u[0],d=u[1];return UJ.useEffect((function(){(o||l)&&d(!0)}),[o,l]),p?UJ.createElement("div",{ref:t,className:kQ("".concat(r,"-content"),(n={},xa(n,"".concat(r,"-content-active"),l),xa(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},UJ.createElement("div",{className:"".concat(r,"-content-box")},s)):null}))).displayName="PanelContent",oT=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],aT=UJ.forwardRef((function(e,t){var n,r,o,a,i=e.showArrow,s=void 0===i||i,l=e.headerClass,c=e.isActive,u=e.onItemClick,p=e.forceRender,d=e.className,m=e.prefixCls,f=e.collapsible,g=e.accordion,h=e.panelKey,b=e.extra,_=e.header,y=e.expandIcon,v=e.openMotion,w=e.destroyInactivePanel,k=e.children,C=Sa(e,oT),D="disabled"===f,x="header"===f,S="icon"===f,E=null!=b&&"boolean"!=typeof b,O=function(){null==u||u(h)},P="function"==typeof y?y(e):UJ.createElement("i",{className:"arrow"});return P&&(P=UJ.createElement("div",{className:"".concat(m,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},P)),o=kQ((xa(n={},"".concat(m,"-item"),!0),xa(n,"".concat(m,"-item-active"),c),xa(n,"".concat(m,"-item-disabled"),D),n),d),a={className:kQ((xa(r={},"".concat(m,"-header"),!0),xa(r,"headerClass",l),xa(r,"".concat(m,"-header-collapsible-only"),x),xa(r,"".concat(m,"-icon-collapsible-only"),S),r)),"aria-expanded":c,"aria-disabled":D,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==aI.ENTER&&e.which!==aI.ENTER||O()}},x||S||(a.onClick=O,a.role=g?"tab":"button",a.tabIndex=D?-1:0),UJ.createElement("div",mi({},C,{ref:t,className:o}),UJ.createElement("div",a,s&&P,UJ.createElement("span",{className:"".concat(m,"-header-text"),onClick:"header"===f?O:void 0},_),E&&UJ.createElement("div",{className:"".concat(m,"-extra")},b)),UJ.createElement(dZ,mi({visible:c,leavedClassName:"".concat(m,"-content-hidden")},v,{forceRender:p,removeOnLeave:w}),(function(e,t){return UJ.createElement(rT,{ref:t,prefixCls:m,className:e.className,style:e.style,isActive:c,forceRender:p,role:g?"tabpanel":void 0},k)})))})),iT=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],sT=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,a=t.destroyInactivePanel,i=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,p=e.children,d=e.label,m=e.key,f=e.collapsible,g=e.onItemClick,h=e.destroyInactivePanel,b=Sa(e,iT),_=String(null!=m?m:t),y=null!=f?f:o,v=null!=h?h:a;return u=r?s[0]===_:s.indexOf(_)>-1,UJ.createElement(aT,mi({},b,{prefixCls:n,key:_,panelKey:_,isActive:u,accordion:r,openMotion:l,expandIcon:c,header:d,collapsible:y,onItemClick:function(e){"disabled"!==y&&(i(e),null==g||g(e))},destroyInactivePanel:v}),p)}))},lT=function(e,t,n){var r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v;return e?(r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,p=e.key||String(t),m=(d=e.props).header,f=d.headerClass,g=d.destroyInactivePanel,h=d.collapsible,b=d.onItemClick,_=o?l[0]===p:l.indexOf(p)>-1,v={key:p,panelKey:p,header:m,headerClass:f,isActive:_,prefixCls:r,destroyInactivePanel:null!=g?g:i,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==y&&(s(e),null==b||b(e))},expandIcon:u,collapsible:y=null!=h?h:a},"string"==typeof e.type?e:(Object.keys(v).forEach((function(e){void 0===v[e]&&delete v[e]})),UJ.cloneElement(e,v))):null};const Y3=Object.assign(UJ.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,a=e.destroyInactivePanel,i=void 0!==a&&a,s=e.style,l=e.accordion,c=e.children,u=e.collapsible,p=e.openMotion,d=e.expandIcon,m=e.activeKey,f=e.defaultActiveKey,g=e.onChange,h=e.items,b=kQ(o,e.className),_=Vi(Tl([],{value:m,onChange:function(e){return null==g?void 0:g(e)},defaultValue:f,postState:sd}),2),y=_[0],v=_[1];return Ii(!c,"`children` will be removed in next major version. Please use `items` instead."),n=function(e,t,n){return Array.isArray(e)?sT(e,n):Ms(t).map((function(e,t){return lT(e,t,n)}))}(h,c,{prefixCls:o,accordion:l,openMotion:p,expandIcon:d,collapsible:u,destroyInactivePanel:i,onItemClick:function(e){return v((function(){return l?y[0]===e?[]:[e]:y.indexOf(e)>-1?y.filter((function(t){return t!==e})):[].concat(ki(y),[e])}))},activeKey:y}),UJ.createElement("div",{ref:t,className:b,style:s,role:l?"tablist":void 0},n)})),{Panel:aT}),J3=ey.forwardRef(((e,t)=>{const{getPrefixCls:n}=ey.useContext(VQ),{prefixCls:r,className:o="",showArrow:a=!0}=e,i=n("collapse",r),s=kQ({[`${i}-no-arrow`]:!a},o);return ey.createElement(Y3.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))})),Q3=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:a,collapseHeaderPadding:i,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:p,colorBorder:d,colorText:m,colorTextHeading:f,colorTextDisabled:g,fontSize:h,fontSizeLG:b,lineHeight:_,marginSM:y,paddingSM:v,paddingLG:w,paddingXS:k,motionDurationSlow:C,fontSizeIcon:D}=e,x=`${u}px ${p} ${d}`;return{[t]:Object.assign(Object.assign({},XQ(e)),{backgroundColor:a,border:x,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:x,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,paddingInlineStart:v,color:f,lineHeight:_,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*_,display:"flex",alignItems:"center",paddingInlineEnd:y,marginInlineStart:r-v},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:D,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:x,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:k,[`> ${t}-expand-icon`]:{marginInlineStart:v-k}},[`> ${t}-content > ${t}-content-box`]:{padding:v}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*_,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},Z3=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},e4=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},t4=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},n4=jl("Collapse",(e=>{const t=$l(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Q3(t),e4(t),t4(t),Z3(t),W1(t)]})),r4=ey.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=ey.useContext(VQ),{prefixCls:o,className:a,rootClassName:i,bordered:s=!0,ghost:l,size:c,expandIconPosition:u="start",children:p,expandIcon:d}=e,m=lZ((e=>{var t;return null!==(t=null!=c?c:e)&&void 0!==t?t:"middle"})),f=n("collapse",o),g=n(),[h,b]=n4(f),_=ey.useMemo((()=>"left"===u?"start":"right"===u?"end":u),[u]),y=kQ(`${f}-icon-position-${_}`,{[`${f}-borderless`]:!s,[`${f}-rtl`]:"rtl"===r,[`${f}-ghost`]:!!l,[`${f}-${m}`]:"middle"!==m},a,i,b),v=Object.assign(Object.assign({},q0(g)),{motionAppear:!1,leavedClassName:`${f}-content-hidden`}),w=ey.useMemo((()=>p?Ms(p).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:a}=e.props;return sc(e,Object.assign(Object.assign({},Js(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0}))}return e})):null),[p]);return h(ey.createElement(Y3,Object.assign({ref:t,openMotion:v},Js(e,["rootClassName"]),{expandIcon:function(e){let t=arguments.length>0&&void 0!==e?e:{};const n=d?d(t):ey.createElement(_5,{rotate:t.isActive?90:void 0});return sc(n,(()=>({className:kQ(n.props.className,`${f}-arrow`)})))},prefixCls:f,className:y}),w))})),o4=Object.assign(r4,{Panel:J3}),a4=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},XQ(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},i4=jl("Divider",(e=>{const t=$l(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[a4(t)]}),{sizePaddingEdgeHorizontal:0});cT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n}=ey.useContext(VQ),{prefixCls:r,type:o="horizontal",orientation:a="center",orientationMargin:i,className:s,rootClassName:l,children:c,dashed:u,plain:p}=e,d=cT(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),m=t("divider",r),[f,g]=i4(m),h=!!c,b="left"===a&&null!=i,_="right"===a&&null!=i,y=kQ(m,g,`${m}-${o}`,{[`${m}-with-text`]:h,[`${m}-with-text${a.length>0?`-${a}`:a}`]:h,[`${m}-dashed`]:!!u,[`${m}-plain`]:!!p,[`${m}-rtl`]:"rtl"===n,[`${m}-no-default-orientation-margin-left`]:b,[`${m}-no-default-orientation-margin-right`]:_},s,l),v=ey.useMemo((()=>"number"==typeof i?i:/^\d+$/.test(i)?Number(i):i),[i]),w=Object.assign(Object.assign({},b&&{marginLeft:v}),_&&{marginRight:v});return f(ey.createElement("div",Object.assign({className:y},d,{role:"separator"}),c&&"vertical"!==o&&ey.createElement("span",{className:`${m}-inner-text`,style:w},c)))},l4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},c4=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:l4}))}));uT=function(){function e(t){var n,r,o,a;Oa(this,e),xa(this,"origin",""),xa(this,"negative",void 0),xa(this,"integer",void 0),xa(this,"decimal",void 0),xa(this,"decimalLen",void 0),xa(this,"empty",void 0),xa(this,"nan",void 0),cd(t)?this.empty=!0:(this.origin=String(t),"-"===t||Number.isNaN(t)?this.nan=!0:(pd(n=t)&&(n=Number(n)),fd(n="string"==typeof n?n:md(n))?(r=ud(n),this.negative=r.negative,o=r.trimStr.split("."),this.integer=BigInt(o[0]),a=o[1]||"0",this.decimal=BigInt(a),this.decimalLen=a.length):this.nan=!0))}return Ia(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),i=r(o),s=ud(a),l=s.trimStr,c="".concat(s.negativeStr).concat(l.padStart(i+1,"0"));return new e("".concat(c.slice(0,-i),".").concat(c.slice(-i)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(e){return arguments.length>0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":ud("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),pT=function(){function e(t){Oa(this,e),xa(this,"origin",""),xa(this,"number",void 0),xa(this,"empty",void 0),cd(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ia(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){var n,r,o;return this.isInvalidate()?new e(t):(n=Number(t),Number.isNaN(n)?this:(r=this.number+n)>Number.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):rNumber.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):n0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":md(this.number)}}]),e}(),dT=function(){var e=Vi(ey.useState(!1),2),t=e[0],n=e[1];return gP((function(){n(b2())}),[]),t},mT=200,fT=600,gT=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],hT=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},bT=function(e){var t=gd(e);return t.isInvalidate()?null:t},_T=ey.forwardRef((function(e,t){function n(e,t){we(_e(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N=e.prefixCls,A=void 0===N?"rc-input-number":N,R=e.className,T=e.style,j=e.min,$=e.max,F=e.step,L=void 0===F?1:F,M=e.defaultValue,U=e.value,z=e.disabled,H=e.readOnly,B=e.upHandler,W=e.downHandler,V=e.keyboard,G=e.controls,q=void 0===G||G,X=e.stringMode,K=e.parser,Y=e.formatter,J=e.precision,Q=e.decimalSeparator,Z=e.onChange,ee=e.onInput,te=e.onPressEnter,ne=e.onStep,re=Sa(e,gT),oe="".concat(A,"-input"),ae=ey.useRef(null),ie=Vi(ey.useState(!1),2),se=ie[0],le=ie[1],ce=ey.useRef(!1),ue=ey.useRef(!1),pe=ey.useRef(!1),de=Vi(ey.useState((function(){return gd(null!=U?U:M)})),2),me=de[0],fe=de[1],ge=ey.useCallback((function(e,t){if(!t)return J>=0?J:Math.max(dd(e),dd(L))}),[J,L]),he=ey.useCallback((function(e){var t,n=String(e);return K?K(n):(t=n,Q&&(t=t.replace(Q,".")),t.replace(/[^\w.-]+/g,""))}),[K,Q]),be=ey.useRef(""),_e=ey.useCallback((function(e,t){var n,r;return Y?Y(e,{userTyping:t,input:String(be.current)}):(n="number"==typeof e?md(e):e,t||(r=ge(n,t),fd(n)&&(Q||r>=0)&&(n=hd(n,Q||".",r))),n)}),[Y,ge,Q]),ye=Vi(ey.useState((function(){var e=null!=M?M:U;return me.isInvalidate()&&["string","number"].includes(Ca(e))?Number.isNaN(e)?"":e:_e(me.toString(),!1)})),2),ve=ye[0],we=ye[1];return be.current=ve,o=ey.useMemo((function(){return bT($)}),[$,J]),a=ey.useMemo((function(){return bT(j)}),[j,J]),i=ey.useMemo((function(){return!(!o||!me||me.isInvalidate())&&o.lessEquals(me)}),[o,me]),s=ey.useMemo((function(){return!(!a||!me||me.isInvalidate())&&me.lessEquals(a)}),[a,me]),S=ae.current,E=se,O=ey.useRef(null),l=[function(){var e,t,n,r,o;try{t=S.selectionEnd,r=(n=S.value).substring(0,e=S.selectionStart),o=n.substring(t),O.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(zY){}},function(){var e,t,n,r,o,a;if(S&&O.current&&E)try{n=(t=O.current).beforeTxt,r=t.start,o=(e=S.value).length,e.endsWith(t.afterTxt)?o=e.length-O.current.afterTxt.length:e.startsWith(n)?o=n.length:-1!==(a=e.indexOf(n[r-1],r-1))&&(o=a+1),S.setSelectionRange(o,o)}catch(zY){Ii(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(zY.message))}}],c=Vi(l,2),u=c[0],p=c[1],d=function(e){return o&&!e.lessEquals(o)?o:a&&!a.lessEquals(e)?a:null},m=function(e){return!d(e)},f=function(e,t){var r,o,a=e,i=m(a)||a.isEmpty();return a.isEmpty()||t||(a=d(a)||a,i=!0),H||z||!i?me:(r=a.toString(),(o=ge(r,t))>=0&&(a=gd(hd(r,".",o)),m(a)||(a=gd(hd(r,".",o,!0)))),a.equals(me)||(void 0===U&&fe(a),null==Z||Z(a.isEmpty()?null:hT(X,a)),void 0===U&&n(a,t)),a)},P=ey.useRef(0),I=function(){qO.cancel(P.current)},ey.useEffect((function(){return I}),[]),g=function(e){I(),P.current=qO((function(){e()}))},h=function e(t){var n;u(),we(t),ue.current||(n=gd(he(t))).isNaN()||f(n,!0),null==ee||ee(t),g((function(){var n=t;K||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},b=function(){ue.current=!0},_=function(){ue.current=!1,h(ae.current.value)},y=function(e){h(e.target.value)},v=function(e){var t,n,r,o;e&&i||!e&&s||(ce.current=!1,n=gd(pe.current?_d(L):L),e||(n=n.negate()),r=(me||gd(0)).add(n.toString()),o=f(r,!1),null==ne||ne(hT(X,o),{offset:pe.current?_d(L):L,type:e?"up":"down"}),null===(t=ae.current)||void 0===t||t.focus())},w=function(e){var t=gd(he(ve)),r=t;r=t.isNaN()?me:f(t,e),void 0!==U?n(me,!1):r.isNaN()||n(r,!1)},k=function(){ce.current=!0},C=function(e){var t=e.which,n=e.shiftKey;ce.current=!0,pe.current=!!n,t===aI.ENTER&&(ue.current||(ce.current=!1),w(!1),null==te||te(e)),!1!==V&&!ue.current&&[aI.UP,aI.DOWN].includes(t)&&(v(aI.UP===t),e.preventDefault())},D=function(){ce.current=!1,pe.current=!1},x=function(){w(!1),le(!1),ce.current=!1},hP((function(){me.isInvalidate()||n(me,!1)}),[J]),hP((function(){var e,t=gd(U);fe(t),e=gd(he(ve)),t.equals(e)&&ce.current&&!Y||n(t,ce.current)}),[U]),hP((function(){Y&&p()}),[ve]),ey.createElement("div",{className:kQ(A,R,(r={},xa(r,"".concat(A,"-focused"),se),xa(r,"".concat(A,"-disabled"),z),xa(r,"".concat(A,"-readonly"),H),xa(r,"".concat(A,"-not-a-number"),me.isNaN()),xa(r,"".concat(A,"-out-of-range"),!me.isInvalidate()&&!m(me)),r)),style:T,onFocus:function(){le(!0)},onBlur:x,onKeyDown:C,onKeyUp:D,onCompositionStart:b,onCompositionEnd:_,onBeforeInput:k},q&&ey.createElement(bd,{prefixCls:A,upNode:B,downNode:W,upDisabled:i,downDisabled:s,onStep:v}),ey.createElement("div",{className:"".concat(oe,"-wrap")},ey.createElement("input",mi({autoComplete:"off",role:"spinbutton","aria-valuemin":j,"aria-valuemax":$,"aria-valuenow":me.isInvalidate()?null:me.toString(),step:L},re,{ref:zs(ae,t),className:oe,value:ve,onChange:y,disabled:z,readOnly:H}))))})),_T.displayName="InputNumber";const u4=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:p,motionDurationMid:d,colorPrimary:m,controlHeight:f,inputPaddingHorizontal:g,colorBgContainer:h,colorTextDisabled:b,borderRadiusSM:_,borderRadiusLG:y,controlWidth:v,handleVisible:w}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},XQ(e)),X5(e)),q5(e,t)),{display:"inline-block",width:v,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:y,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:_,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},H5(e)),"&-focused":Object.assign({},B5(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},XQ(e)),K5(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},W5(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},XQ(e)),{width:"100%",height:f-2*n,padding:`0 ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${d} linear`,appearance:"textfield",fontSize:"inherit"}),z5(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:h,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${d} linear ${d}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${d} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:p,transition:`all ${d} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},p4=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:a,borderRadiusSM:i}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},X5(e)),q5(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:i},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},H5(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},d4=jl("InputNumber",(e=>{const t=Gp(e);return[u4(t),p4(t),Oc(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"})));yT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=ey.useContext(VQ),[o,a]=ey.useState(!1),i=ey.useRef(null);ey.useImperativeHandle(t,(()=>i.current));const{className:s,rootClassName:l,size:c,disabled:u,prefixCls:p,addonBefore:d,addonAfter:m,prefix:f,bordered:g=!0,readOnly:h,status:b,controls:_}=e,y=yT(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),v=n("input-number",p),[w,k]=d4(v),{compactSize:C,compactItemClassnames:D}=o0(v,r);let x=ey.createElement(c4,{className:`${v}-handler-up-inner`}),S=ey.createElement(B2,{className:`${v}-handler-down-inner`});const E="boolean"==typeof _?_:void 0;"object"==typeof _&&(x=void 0===_.upIcon?x:ey.createElement("span",{className:`${v}-handler-up-inner`},_.upIcon),S=void 0===_.downIcon?S:ey.createElement("span",{className:`${v}-handler-down-inner`},_.downIcon));const{hasFeedback:O,status:P,isFormItemInput:I,feedbackIcon:N}=ey.useContext(r1),A=v2(P,b),R=lZ((e=>{var t;return null!==(t=null!=c?c:C)&&void 0!==t?t:e})),T=null!=f||O,j=!(!d&&!m),$=ey.useContext(sZ),F=null!=u?u:$,L=kQ({[`${v}-lg`]:"large"===R,[`${v}-sm`]:"small"===R,[`${v}-rtl`]:"rtl"===r,[`${v}-borderless`]:!g,[`${v}-in-form-item`]:I},cp(v,A),D,k,s,!T&&!j&&l);let M=ey.createElement(_T,Object.assign({ref:i,disabled:F,className:L,upHandler:x,downHandler:S,prefixCls:v,readOnly:h,controls:E},y));if(T){const t=kQ(`${v}-affix-wrapper`,cp(`${v}-affix-wrapper`,A,O),{[`${v}-affix-wrapper-focused`]:o,[`${v}-affix-wrapper-disabled`]:e.disabled,[`${v}-affix-wrapper-sm`]:"small"===R,[`${v}-affix-wrapper-lg`]:"large"===R,[`${v}-affix-wrapper-rtl`]:"rtl"===r,[`${v}-affix-wrapper-readonly`]:h,[`${v}-affix-wrapper-borderless`]:!g},!j&&s,!j&&l,k);M=ey.createElement("div",{className:t,style:e.style,onMouseUp:()=>i.current.focus()},f&&ey.createElement("span",{className:`${v}-prefix`},f),sc(M,{style:null,value:e.value,onFocus:t=>{var n;a(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:t=>{var n;a(!1),null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),O&&ey.createElement("span",{className:`${v}-suffix`},N))}if(j){const t=`${v}-group`,n=`${t}-addon`,o=d?ey.createElement("div",{className:n},d):null,a=m?ey.createElement("div",{className:n},m):null,i=kQ(`${v}-wrapper`,t,k,{[`${t}-rtl`]:"rtl"===r,[`${v}-wrapper-disabled`]:F}),c=kQ(`${v}-group-wrapper`,{[`${v}-group-wrapper-sm`]:"small"===R,[`${v}-group-wrapper-lg`]:"large"===R,[`${v}-group-wrapper-rtl`]:"rtl"===r},cp(`${v}-group-wrapper`,A,O),k,s,l);M=ey.createElement("div",{className:c,style:e.style},ey.createElement("div",{className:i},o&&ey.createElement(a0,null,ey.createElement(o1,{status:!0,override:!0},o)),sc(M,{style:null,disabled:F}),a&&ey.createElement(a0,null,ey.createElement(o1,{status:!0,override:!0},a))))}return w(M)})),f4=m4;f4._InternalPanelDoNotUseOrYouWillBeFired=e=>ey.createElement(vZ,{theme:{components:{InputNumber:{handleVisible:!0}}}},ey.createElement(m4,Object.assign({},e)));const g4=f4;vT=function(e){var t,n,r,o,a,i,s,l,c,u,p,d,m,f,g=e.inputElement,h=e.prefixCls,b=e.prefix,_=e.suffix,y=e.addonBefore,v=e.addonAfter,w=e.className,k=e.style,C=e.disabled,D=e.readOnly,x=e.focused,S=e.triggerFocus,E=e.allowClear,O=e.value,P=e.handleReset,I=e.hidden,N=e.classes,A=e.classNames,R=e.dataAttrs,T=e.styles,j=ey.useRef(null),$=ey.cloneElement(g,{value:O,hidden:I,className:kQ(null===(t=g.props)||void 0===t?void 0:t.className,!vd(e)&&!yd(e)&&w)||null,style:Di(Di({},null===(n=g.props)||void 0===n?void 0:n.style),vd(e)||yd(e)?{}:k)});return vd(e)&&(o="".concat(h,"-affix-wrapper"),a=kQ(o,(xa(r={},"".concat(o,"-disabled"),C),xa(r,"".concat(o,"-focused"),x),xa(r,"".concat(o,"-readonly"),D),xa(r,"".concat(o,"-input-with-clear-btn"),_&&E&&O),r),!yd(e)&&w,null==N?void 0:N.affixWrapper),i=(_||E)&&UJ.createElement("span",{className:kQ("".concat(h,"-suffix"),null==A?void 0:A.suffix),style:null==T?void 0:T.suffix},E?(d=!C&&!D&&O,m="".concat(h,"-clear-icon"),f="object"===Ca(E)&&null!=E&&E.clearIcon?E.clearIcon:"✖",UJ.createElement("span",{onClick:P,onMouseDown:function(e){return e.preventDefault()},className:kQ(m,(p={},xa(p,"".concat(m,"-hidden"),!d),xa(p,"".concat(m,"-has-suffix"),!!_),p)),role:"button",tabIndex:-1},f)):null,_),$=UJ.createElement("span",mi({className:a,style:yd(e)?void 0:k,hidden:!yd(e)&&I,onClick:function(e){var t;null!==(t=j.current)&&void 0!==t&&t.contains(e.target)&&(null==S||S())}},null==R?void 0:R.affixWrapper,{ref:j}),b&&UJ.createElement("span",{className:kQ("".concat(h,"-prefix"),null==A?void 0:A.prefix),style:null==T?void 0:T.prefix},b),ey.cloneElement(g,{value:O,hidden:null}),i)),yd(e)?(s="".concat(h,"-group"),l="".concat(s,"-addon"),c=kQ("".concat(h,"-wrapper"),s,null==N?void 0:N.wrapper),u=kQ("".concat(h,"-group-wrapper"),w,null==N?void 0:N.group),UJ.createElement("span",{className:u,style:k,hidden:I},UJ.createElement("span",{className:c},y&&UJ.createElement("span",{className:l},y),ey.cloneElement($,{hidden:null}),v&&UJ.createElement("span",{className:l},v)))):$},wT=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],kT=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l,c=e.autoComplete,u=e.onChange,p=e.onFocus,d=e.onBlur,m=e.onPressEnter,f=e.onKeyDown,g=e.prefixCls,h=void 0===g?"rc-input":g,b=e.disabled,_=e.htmlSize,y=e.className,v=e.maxLength,w=e.suffix,k=e.showCount,C=e.type,D=void 0===C?"text":C,x=e.classes,S=e.classNames,E=e.styles,O=Sa(e,wT),P=Vi(Tl(e.defaultValue,{value:e.value}),2),I=P[0],N=P[1],A=Vi(ey.useState(!1),2),R=A[0],T=A[1],j=ey.useRef(null),$=function(e){j.current&&function(e,t){var n,r;if(e&&(e.focus(t),n=(t||{}).cursor))switch(r=e.value.length,n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}(j.current,e)};return ey.useImperativeHandle(t,(function(){return{focus:$,blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=j.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.current}})),ey.useEffect((function(){T((function(e){return(!e||!b)&&e}))}),[b]),n=function(t){void 0===e.value&&N(t.target.value),j.current&&wd(j.current,t,u)},r=function(e){m&&"Enter"===e.key&&m(e),null==f||f(e)},o=function(e){T(!0),null==p||p(e)},a=function(e){T(!1),null==d||d(e)},i=function(e){N(""),$(),j.current&&wd(j.current,e,u)},s=function(){var t=Js(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return UJ.createElement("input",mi({autoComplete:c},t,{onChange:n,onFocus:o,onBlur:a,onKeyDown:r,className:kQ(h,xa({},"".concat(h,"-disabled"),b),null==S?void 0:S.input),style:null==E?void 0:E.input,ref:j,size:_,type:D}))},l=function(){var e,t,n,r=Number(v)>0;return w||k?(t=ki(e=kd(I)).length,n="object"===Ca(k)?k.formatter({value:e,count:t,maxLength:v}):"".concat(t).concat(r?" / ".concat(v):""),UJ.createElement(UJ.Fragment,null,!!k&&UJ.createElement("span",{className:kQ("".concat(h,"-show-count-suffix"),xa({},"".concat(h,"-show-count-has-suffix"),!!w),null==S?void 0:S.count),style:Di({},null==E?void 0:E.count)},n),w)):null},UJ.createElement(vT,mi({},O,{prefixCls:h,className:y,inputElement:s(),handleReset:i,value:kd(I),focused:R,triggerFocus:$,suffix:l(),disabled:b,classes:x,classNames:S,styles:E}))})),CT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:p,addonBefore:d,className:m,rootClassName:f,onChange:g,classNames:h}=e,b=CT(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:_,direction:y,input:v}=UJ.useContext(VQ),w=_("input",n),k=ey.useRef(null),[C,D]=n3(w),{compactSize:x,compactItemClassnames:S}=o0(w,y),E=lZ((e=>{var t;return null!==(t=null!=a?a:x)&&void 0!==t?t:e})),O=UJ.useContext(sZ),P=null!=i?i:O,{status:I,hasFeedback:N,feedbackIcon:A}=ey.useContext(r1),R=v2(I,o),T=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!N,j=ey.useRef(T);ey.useEffect((()=>{j.current=T}),[T]);const $=Cd(k,!0),F=(N||c)&&UJ.createElement(UJ.Fragment,null,c,N&&A);let L;return"object"==typeof u&&(null==u?void 0:u.clearIcon)?L=u:u&&(L={clearIcon:UJ.createElement(SZ,null)}),C(UJ.createElement(kT,Object.assign({ref:zs(t,k),prefixCls:w,autoComplete:null==v?void 0:v.autoComplete},b,{disabled:P,onBlur:e=>{$(),null==s||s(e)},onFocus:e=>{$(),null==l||l(e)},suffix:F,allowClear:L,className:kQ(m,f,S),onChange:e=>{$(),null==g||g(e)},addonAfter:p&&UJ.createElement(a0,null,UJ.createElement(o1,{override:!0,status:!0},p)),addonBefore:d&&UJ.createElement(a0,null,UJ.createElement(o1,{override:!0,status:!0},d)),classNames:Object.assign(Object.assign({},h),{input:kQ({[`${w}-sm`]:"small"===E,[`${w}-lg`]:"large"===E,[`${w}-rtl`]:"rtl"===y,[`${w}-borderless`]:!r},!T&&cp(w,R),null==h?void 0:h.input,D)}),classes:{affixWrapper:kQ({[`${w}-affix-wrapper-sm`]:"small"===E,[`${w}-affix-wrapper-lg`]:"large"===E,[`${w}-affix-wrapper-rtl`]:"rtl"===y,[`${w}-affix-wrapper-borderless`]:!r},cp(`${w}-affix-wrapper`,R,N),D),wrapper:kQ({[`${w}-group-rtl`]:"rtl"===y},D),group:kQ({[`${w}-group-wrapper-sm`]:"small"===E,[`${w}-group-wrapper-lg`]:"large"===E,[`${w}-group-wrapper-rtl`]:"rtl"===y,[`${w}-group-wrapper-disabled`]:P},cp(`${w}-group-wrapper`,R,N),D)}})))})),b4=h4,_4={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"},y4=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:_4}))})),v4={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"},w4=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:v4}))}));DT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rey.createElement(e?w4:y4,null),C4={click:"onClick",hover:"onMouseOver"},D4=ey.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,a]=ey.useState((()=>!!r&&n.visible)),i=ey.useRef(null);ey.useEffect((()=>{r&&a(n.visible)}),[r,n]);const s=Cd(i),l=()=>{const{disabled:t}=e;t||(o&&s(),a((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:p,size:d}=e,m=DT(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:f}=ey.useContext(VQ),g=f("input",p),h=f("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=k4}=e,a=C4[n]||"",i=r(o),s={[a]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return ey.cloneElement(ey.isValidElement(i)?i:ey.createElement("span",null,i),s)})(h),_=kQ(h,c,{[`${h}-${d}`]:!!d}),y=Object.assign(Object.assign({},Js(m,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:_,prefixCls:g,suffix:b});return d&&(y.size=d),ey.createElement(b4,Object.assign({ref:zs(t,i)},y))})),x4=D4;xT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:p,onChange:d,onCompositionStart:m,onCompositionEnd:f}=e,g=xT(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=ey.useContext(VQ),_=ey.useRef(!1),y=h("input-search",n),v=h("input",r),{compactSize:w}=o0(y,b),k=lZ((e=>{var t;return null!==(t=null!=a?a:w)&&void 0!==t?t:e})),C=ey.useRef(null),D=e=>{var t;document.activeElement===(null===(t=C.current)||void 0===t?void 0:t.input)&&e.preventDefault()},x=e=>{var t,n;p&&p(null===(n=null===(t=C.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},S="boolean"==typeof s?ey.createElement(V2,null):null,E=`${y}-button`;let O;const P=s||{},I=P.type&&!0===P.type.__ANT_BUTTON;O=I||"button"===P.type?sc(P,Object.assign({onMouseDown:D,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),x(e)},key:"enterButton"},I?{className:E,size:k}:{})):ey.createElement(z0,{className:E,type:s?"primary":void 0,size:k,disabled:u,key:"enterButton",onMouseDown:D,onClick:x,loading:c,icon:S},s),l&&(O=[O,sc(l,{key:"addonAfter"})]);const N=kQ(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${k}`]:!!k,[`${y}-with-button`]:!!s},o);return ey.createElement(b4,Object.assign({ref:zs(C,t),onPressEnter:e=>{_.current||c||x(e)}},g,{size:k,onCompositionStart:e=>{_.current=!0,null==m||m(e)},onCompositionEnd:e=>{_.current=!1,null==f||f(e)},prefixCls:v,addonAfter:O,suffix:i,onChange:e=>{e&&e.target&&"click"===e.type&&p&&p(e.target.value,e),d&&d(e)},className:N,disabled:u}))})),E4=S4;ST=["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"],ET={},PT=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],IT=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R=e.prefixCls;return n=e.defaultValue,r=e.value,o=e.autoSize,a=e.onResize,i=e.className,s=e.style,l=e.disabled,c=e.onChange,u=Sa(e,PT),d=(p=Vi(Tl(n,{value:r,postState:function(e){return null!=e?e:""}}),2))[0],m=p[1],f=function(e){m(e.target.value),null==c||c(e)},g=ey.useRef(),ey.useImperativeHandle(t,(function(){return{textArea:g.current}})),h=Vi(ey.useMemo((function(){return o&&"object"===Ca(o)?[o.minRows,o.maxRows]:[]}),[o]),2),b=h[0],_=h[1],y=!!o,v=function(){try{if(document.activeElement===g.current){var e=g.current,t=e.scrollTop;g.current.setSelectionRange(e.selectionStart,e.selectionEnd),g.current.scrollTop=t}}catch(zY){}},w=Vi(ey.useState(2),2),k=w[0],C=w[1],x=(D=Vi(ey.useState(),2))[0],S=D[1],E=function(){C(0)},gP((function(){y&&E()}),[r,b,_,y]),gP((function(){if(0===k)C(1);else if(1===k){var e=function(e,t,n,r){var o,a,i,s,l,c,u,p,d,m,f=arguments.length>1&&void 0!==t&&t,g=arguments.length>2&&void 0!==n?n:null,h=arguments.length>3&&void 0!==r?r:null;return OT||((OT=document.createElement("textarea")).setAttribute("tab-index","-1"),OT.setAttribute("aria-hidden","true"),document.body.appendChild(OT)),e.getAttribute("wrap")?OT.setAttribute("wrap",e.getAttribute("wrap")):OT.removeAttribute("wrap"),o=function(e,t){var n,r,o,a,i,s=arguments.length>1&&void 0!==t&&t,l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");return s&&ET[l]?ET[l]:(r=(n=window.getComputedStyle(e)).getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),i={sizingStyle:ST.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:a,boxSizing:r},s&&l&&(ET[l]=i),i)}(e,f),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,OT.setAttribute("style","".concat(o.sizingStyle,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),OT.value=e.value||e.placeholder||"",l=void 0,c=void 0,p=OT.scrollHeight,"border-box"===s?p+=i:"content-box"===s&&(p-=a),null===g&&null===h||(OT.value=" ",d=OT.scrollHeight-a,null!==g&&(l=d*g,"border-box"===s&&(l=l+a+i),p=Math.max(l,p)),null!==h&&(c=d*h,"border-box"===s&&(c=c+a+i),u=p>c?"":"hidden",p=Math.min(c,p))),m={height:p,overflowY:u,resize:"none"},l&&(m.minHeight=l),c&&(m.maxHeight=c),m}(g.current,!1,b,_);C(2),S(e)}else v()}),[k]),O=ey.useRef(),P=function(){qO.cancel(O.current)},I=function(e){2===k&&(null==a||a(e),o&&(P(),O.current=qO((function(){E()}))))},ey.useEffect((function(){return P}),[]),N=y?x:null,A=Di(Di({},s),N),0!==k&&1!==k||(A.overflowY="hidden",A.overflowX="hidden"),ey.createElement(HO,{onResize:I,disabled:!(o||a)},ey.createElement("textarea",mi({},u,{ref:g,style:A,className:kQ(R,i,xa({},"".concat(R,"-disabled"),l)),disabled:l,value:d,onChange:f})))})),NT=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"],AT=UJ.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h=e.defaultValue,b=e.value,_=e.onFocus,y=e.onBlur,v=e.onChange,w=e.allowClear,k=e.maxLength,C=e.onCompositionStart,D=e.onCompositionEnd,x=e.suffix,S=e.prefixCls,E=void 0===S?"rc-textarea":S,O=e.classes,P=e.showCount,I=e.className,N=e.style,A=e.disabled,R=e.hidden,T=e.classNames,j=e.styles,$=e.onResize,F=Sa(e,NT),L=Vi(Tl(h,{value:b,defaultValue:h}),2),M=L[0],U=L[1],z=ey.useRef(null),H=Vi(UJ.useState(!1),2),B=H[0],W=H[1],V=Vi(UJ.useState(!1),2),G=V[0],q=V[1],X=UJ.useRef(),K=UJ.useRef(0),Y=Vi(UJ.useState(null),2),J=Y[0],Q=Y[1],Z=function(){z.current.textArea.focus()};return ey.useImperativeHandle(t,(function(){return{resizableTextArea:z.current,focus:Z,blur:function(){z.current.textArea.blur()}}})),ey.useEffect((function(){W((function(e){return!A&&e}))}),[A]),r=Number(k)>0,o=function(e){q(!0),X.current=M,K.current=e.currentTarget.selectionStart,null==C||C(e)},a=function(e){var t,n;q(!1),t=e.currentTarget.value,r&&(t=xd(K.current>=k+1||K.current===(null===(n=X.current)||void 0===n?void 0:n.length),X.current,t,k)),t!==M&&(U(t),wd(e.currentTarget,e,v,t)),null==D||D(e)},i=function(e){var t=e.target.value;!G&&r&&(t=xd(e.target.selectionStart>=k+1||e.target.selectionStart===t.length||!e.target.selectionStart,M,t,k)),U(t),wd(e.currentTarget,e,v,t)},s=function(e){var t=F.onPressEnter,n=F.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},l=function(e){W(!0),null==_||_(e)},c=function(e){W(!1),null==y||y(e)},u=function(e){U(""),Z(),wd(z.current.textArea,e,v)},p=kd(M),!G&&r&&null==b&&(p=Dd(p,k)),d=x,P&&(f=ki(p).length,m="object"===Ca(P)?P.formatter({value:p,count:f,maxLength:k}):"".concat(f).concat(r?" / ".concat(k):""),d=UJ.createElement(UJ.Fragment,null,d,UJ.createElement("span",{className:kQ("".concat(E,"-data-count"),null==T?void 0:T.count),style:null==j?void 0:j.count},m))),g=function(e){null==$||$(e),null===J?Q("mounted"):"mounted"===J&&Q("resized")},UJ.createElement(vT,{value:p,allowClear:w,handleReset:u,suffix:d,prefixCls:E,classes:{affixWrapper:kQ(null==O?void 0:O.affixWrapper,(n={},xa(n,"".concat(E,"-show-count"),P),xa(n,"".concat(E,"-textarea-allow-clear"),w),n))},disabled:A,focused:B,className:I,style:Di(Di({},N),"resized"===J?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof m?m:void 0}},hidden:R,inputElement:UJ.createElement(IT,mi({},F,{onKeyDown:s,onChange:i,onFocus:l,onBlur:c,onCompositionStart:o,onCompositionEnd:a,className:null==T?void 0:T.textarea,style:Di(Di({},null==j?void 0:j.textarea),{},{resize:null==N?void 0:N.resize}),disabled:A,prefixCls:E,onResize:g,ref:z}))})})),RT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{prefixCls:n,bordered:r=!0,size:o,disabled:a,status:i,allowClear:s,showCount:l,classNames:c}=e,u=RT(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:p,direction:d}=ey.useContext(VQ),m=lZ(o),f=ey.useContext(sZ),g=null!=a?a:f,{status:h,hasFeedback:b,feedbackIcon:_}=ey.useContext(r1),y=v2(h,i),v=ey.useRef(null);ey.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=v.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const 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)}}}(null===(n=null===(t=v.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.blur()}}}));const w=p("input",n);let k;"object"==typeof s&&(null==s?void 0:s.clearIcon)?k=s:s&&(k={clearIcon:ey.createElement(SZ,null)});const[C,D]=n3(w);return C(ey.createElement(AT,Object.assign({},u,{disabled:g,allowClear:k,classes:{affixWrapper:kQ(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:"rtl"===d,[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:"small"===m,[`${w}-affix-wrapper-lg`]:"large"===m,[`${w}-textarea-show-count`]:l},cp(`${w}-affix-wrapper`,y),D)},classNames:Object.assign(Object.assign({},c),{textarea:kQ({[`${w}-borderless`]:!r,[`${w}-sm`]:"small"===m,[`${w}-lg`]:"large"===m},cp(w,y),D,null==c?void 0:c.textarea)}),prefixCls:w,suffix:b&&ey.createElement("span",{className:`${w}-textarea-suffix`},_),showCount:l,ref:v})))})),P4=b4;P4.Group=e=>{const{getPrefixCls:t,direction:n}=ey.useContext(VQ),{prefixCls:r,className:o=""}=e,a=t("input-group",r),i=t("input"),[s,l]=n3(i),c=kQ(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},l,o),u=ey.useContext(r1),p=ey.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(ey.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},ey.createElement(r1.Provider,{value:p},e.children)))},P4.Search=E4,P4.TextArea=O4,P4.Password=x4;const I4=P4;TT=ey.createContext(null),jT=function(e){var t=e.className,n=e.style,r=e.children,o=e.containerRef,a={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp};return ey.createElement(ey.Fragment,null,ey.createElement("div",mi({className:kQ("".concat(e.prefixCls,"-content"),t),style:Di({},n),"aria-modal":"true",role:"dialog",ref:o},a),r))},$T={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},FT=ey.forwardRef(Ed),LT=function(e){var t,n,r,o,a,i,s=e.open,l=void 0!==s&&s,c=e.prefixCls,u=void 0===c?"rc-drawer":c,p=e.placement,d=void 0===p?"right":p,m=e.autoFocus,f=void 0===m||m,g=e.keyboard,h=void 0===g||g,b=e.width,_=void 0===b?378:b,y=e.mask,v=void 0===y||y,w=e.maskClosable,k=void 0===w||w,C=e.getContainer,D=e.forceRender,x=e.afterOpenChange,S=e.destroyOnClose,E=e.onMouseEnter,O=e.onMouseOver,P=e.onMouseLeave,I=e.onClick,N=e.onKeyDown,A=e.onKeyUp,R=Vi(ey.useState(!1),2),T=R[0],j=R[1],$=Vi(ey.useState(!1),2),F=$[0],L=$[1];return gP((function(){L(!0)}),[]),t=!!F&&l,n=ey.useRef(),r=ey.useRef(),gP((function(){t&&(r.current=document.activeElement)}),[t]),o=function(e){var t,o;j(e),null==x||x(e),e||!r.current||(null===(t=n.current)||void 0===t?void 0:t.contains(r.current))||null===(o=r.current)||void 0===o||o.focus({preventScroll:!0})},D||T||t||!S?(a={onMouseEnter:E,onMouseOver:O,onMouseLeave:P,onClick:I,onKeyDown:N,onKeyUp:A},i=Di(Di({},e),{},{open:t,prefixCls:u,placement:d,autoFocus:f,keyboard:h,width:_,mask:v,maskClosable:k,inline:!1===C,afterOpenChange:o,ref:n},a),ey.createElement(OI,{open:t||D||T,autoDestroy:!1,getContainer:C,autoLock:v&&(t||T)},ey.createElement(FT,i))):null};const N4=e=>{const{prefixCls:t,title:n,footer:r,extra:o,closable:a=!0,closeIcon:i=ey.createElement(OZ,null),onClose:s,headerStyle:l,drawerStyle:c,bodyStyle:u,footerStyle:p,children:d}=e,m=a&&ey.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},i),f=ey.useMemo((()=>n||a?ey.createElement("div",{style:l,className:kQ(`${t}-header`,{[`${t}-header-close-only`]:a&&!n&&!o})},ey.createElement("div",{className:`${t}-header-title`},m,n&&ey.createElement("div",{className:`${t}-title`},n)),o&&ey.createElement("div",{className:`${t}-extra`},o)):null),[a,m,o,l,t,n]),g=ey.useMemo((()=>r?ey.createElement("div",{className:`${t}-footer`,style:p},r):null),[r,p,t]);return ey.createElement("div",{className:`${t}-wrapper-body`,style:c},f,ey.createElement("div",{className:`${t}-body`,style:u},d),g)},A4=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},R4=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:i,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:p,lineType:d,colorSplit:m,marginSM:f,colorIcon:g,colorIconHover:h,colorText:b,fontWeightStrong:_,footerPaddingBlock:y,footerPaddingInline:v}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:c,lineHeight:u,borderBottom:`${p}px ${d} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:f,color:g,fontWeight:_,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${v}px`,borderTop:`${p}px ${d} ${m}`},"&-rtl":{direction:"rtl"}}}},T4=jl("Drawer",(e=>{const t=$l(e,{});return[R4(t),A4(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));MT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{getPrefixCls:o,space:a,direction:i}=ey.useContext(VQ),{size:s=(null==a?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:p,direction:d="horizontal",prefixCls:m,split:f,style:g,wrap:h=!1,classNames:b,styles:_}=e,y=UT(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),v=X3(),[w,k]=ey.useMemo((()=>(Array.isArray(s)?s:[s,s]).map((e=>function(e){return"string"==typeof e?L4[e]:e||0}(e)))),[s]),C=Ms(p,{keepEmpty:!0}),D=void 0===l&&"horizontal"===d?"center":l,x=o("space",m),[S,E]=n0(x),O=kQ(x,E,`${x}-${d}`,{[`${x}-rtl`]:"rtl"===i,[`${x}-align-${D}`]:D},null!=c?c:null==a?void 0:a.className,u),P=kQ(`${x}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==a?void 0:a.classNames)||void 0===r?void 0:r.item),I="rtl"===i?"marginLeft":"marginRight";let N=0;const A=C.map(((e,t)=>{var n,r;return null!=e&&(N=t),ey.createElement(Pd,{className:P,key:e&&e.key||`${P}-${t}`,direction:d,index:t,marginDirection:I,split:f,wrap:h,style:null!==(n=null==_?void 0:_.item)&&void 0!==n?n:null===(r=null==a?void 0:a.styles)||void 0===r?void 0:r.item},e)})),R=ey.useMemo((()=>({horizontalSize:w,verticalSize:k,latestIndex:N,supportFlexGap:v})),[w,k,N,v]);if(0===C.length)return null;const T={};return h&&(T.flexWrap="wrap",v||(T.marginBottom=-k)),v&&(T.columnGap=w,T.rowGap=k),S(ey.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},T),null==a?void 0:a.style),g)},y),ey.createElement(F4,{value:R},A)))}));M4.Compact=e=>{const{getPrefixCls:t,direction:n}=ey.useContext(VQ),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=yI(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=lZ((e=>null!=r?r:e)),d=t("space-compact",i),[m,f]=n0(d),g=kQ(d,f,{[`${d}-rtl`]:"rtl"===n,[`${d}-block`]:a,[`${d}-vertical`]:"vertical"===o},s,l),h=ey.useContext(r0),b=Ms(c),_=ey.useMemo((()=>b.map(((e,t)=>ey.createElement(i0,{key:e&&e.key||`${d}-item-${t}`,compactSize:p,compactDirection:o,isFirstItem:0===t&&(!h||(null==h?void 0:h.isFirstItem)),isLastItem:t===b.length-1&&(!h||(null==h?void 0:h.isLastItem))},e)))),[r,b,h]);return 0===b.length?null:m(ey.createElement("div",Object.assign({className:g},u),_))};const U4=M4,z4=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},H4=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),B4=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},W4=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},XQ(e)),H4(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},B4(e,e.controlHeightSM)),"&-large":Object.assign({},B4(e,e.controlHeightLG))})}},V4=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:Object.assign(Object.assign({},XQ(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-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:I1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},G4=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},q4=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},X4=e=>({padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),K4=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:X4(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Y4=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:X4(e),[`@media (max-width: ${e.screenXSMax}px)`]:[K4(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:X4(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:X4(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:X4(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:X4(e)}}}},J4=jl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=$l(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[W4(r),V4(r),z4(r),G4(r),q4(r),Y4(r),W1(r),I1]})),Q4=[],Z4=["parentNode"],e8="form_item";zT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=ey.useContext(sZ),{getPrefixCls:r,direction:o,form:a}=ey.useContext(VQ),{prefixCls:i,className:s,rootClassName:l,size:c,disabled:u=n,form:p,colon:d,labelAlign:m,labelWrap:f,labelCol:g,wrapperCol:h,hideRequiredMark:b,layout:_="horizontal",scrollToFirstError:y,requiredMark:v,onFinishFailed:w,name:k}=e,C=zT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),D=lZ(c),x=ey.useContext(DQ),S=ey.useMemo((()=>void 0!==v?v:a&&void 0!==a.requiredMark?a.requiredMark:!b),[b,v,a]),E=null!=d?d:null==a?void 0:a.colon,O=r("form",i),[P,I]=J4(O),N=kQ(O,{[`${O}-${_}`]:!0,[`${O}-hide-required-mark`]:!1===S,[`${O}-rtl`]:"rtl"===o,[`${O}-${D}`]:D},I,s,l),[A]=$d(p),{__INTERNAL__:R}=A;R.name=k;const T=ey.useMemo((()=>({name:k,labelAlign:m,labelCol:g,labelWrap:f,wrapperCol:h,vertical:"vertical"===_,colon:E,requiredMark:S,itemRef:R.itemRef,form:A})),[k,m,g,h,_,E,S,A]);ey.useImperativeHandle(t,(()=>A));const j=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),A.scrollToField(t,n)}};return P(ey.createElement(iZ,{disabled:u},ey.createElement(uZ,{size:D},ey.createElement(t1,{validateMessages:x},ey.createElement(Z0.Provider,{value:T},ey.createElement(hN,Object.assign({id:k},C,{name:k,onFinishFailed:e=>{if(null==w||w(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void j(y,t);a&&void 0!==a.scrollToFirstError&&j(a.scrollToFirstError,t)}},form:A,className:N})))))))},n8=ey.forwardRef(t8),r8=()=>{const{status:e,errors:t=[],warnings:n=[]}=ey.useContext(r1);return{status:e,errors:t,warnings:n}};r8.Context=r1;const o8=r8,a8=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:p,onErrorVisibleChanged:d}=e,m=`${t}-item`,f=ey.useContext(Z0),g=r||f.wrapperCol||{},h=kQ(`${m}-control`,g.className),b=ey.useMemo((()=>Object.assign({},f)),[f]);delete b.labelCol,delete b.wrapperCol;const _=ey.createElement("div",{className:`${m}-control-input`},ey.createElement("div",{className:`${m}-control-input-content`},o)),y=ey.useMemo((()=>({prefixCls:t,status:n})),[t,n]),v=null!==p||a.length||i.length?ey.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ey.createElement(n1.Provider,{value:y},ey.createElement(Ad,{fieldId:u,errors:a,warnings:i,help:c,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:d})),!!p&&ey.createElement("div",{style:{width:0,height:p}})):null,w={};u&&(w.id=`${u}_extra`);const k=l?ey.createElement("div",Object.assign({},w,{className:`${m}-extra`}),l):null,C=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:_,errorList:v,extra:k}):ey.createElement(ey.Fragment,null,_,v,k);return ey.createElement(Z0.Provider,{value:b},ey.createElement(q3,Object.assign({},g,{className:h}),C))},i8={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"},s8=ey.forwardRef((function(e,t){return ey.createElement(CZ,mi({},e,{ref:t,icon:i8}))}));HT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:s,requiredMark:l,tooltip:c}=e;var u;const[p]=NQ("Form"),{vertical:d,labelAlign:m,labelCol:f,labelWrap:g,colon:h}=ey.useContext(Z0);if(!n)return null;const b=o||f||{},_=`${t}-item-label`,y=kQ(_,"left"===(a||m)&&`${_}-left`,b.className,{[`${_}-wrap`]:!!g});let v=n;const w=!0===i||!1!==h&&!1!==i;w&&!d&&"string"==typeof n&&""!==n.trim()&&(v=n.replace(/[:|:]\s*$/,""));const k=function(e){return e?"object"!=typeof e||ey.isValidElement(e)?{title:e}:e:null}(c);if(k){const{icon:e=ey.createElement(s8,null)}=k,n=HT(k,["icon"]),r=ey.createElement(h5,Object.assign({},n),ey.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));v=ey.createElement(ey.Fragment,null,v,r)}"optional"!==l||s||(v=ey.createElement(ey.Fragment,null,v,ey.createElement("span",{className:`${t}-item-optional`,title:""},(null==p?void 0:p.optional)||(null===(u=OQ.Form)||void 0===u?void 0:u.optional))));const C=kQ({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:"optional"===l,[`${t}-item-no-colon`]:!w});return ey.createElement(q3,Object.assign({},b,{className:y}),ey.createElement("label",{htmlFor:r,className:C,title:"string"==typeof n?n:""},v))};BT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),p8=function(e){function t(t,n,a){return r&&!g?t:ey.createElement(Fd,Object.assign({key:"row"},e,{className:kQ(o,E),prefixCls:x,fieldId:n,isRequired:a,errors:j,warnings:$,meta:A,onSubItemMetaChange:T}),t)}const{name:n,noStyle:r,className:o,dependencies:a,prefixCls:i,shouldUpdate:s,rules:l,children:c,required:u,label:p,messageVariables:d,trigger:m="onChange",validateTrigger:f,hidden:g,help:h}=e,{getPrefixCls:b}=ey.useContext(VQ),{name:_}=ey.useContext(Z0),y=function(e){if("function"==typeof e)return e;const t=Ms(e);return t.length<=1?t[0]:t}(c),v="function"==typeof y,w=ey.useContext(e1),{validateTrigger:k}=ey.useContext($I),C=void 0!==f?f:k,D=function(e){return!(null==e)}(n),x=b("form",i),[S,E]=J4(x),O=ey.useContext(FI),P=ey.useRef(),[I,N]=function(){const[e,t]=ey.useState({}),n=ey.useRef(null),r=ey.useRef([]),o=ey.useRef(!1);return ey.useEffect((()=>(o.current=!1,()=>{o.current=!0,qO.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=qO((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[A,R]=Al((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),T=(e,t)=>{N((n=>{const r=Object.assign({},n),o=[].concat(ki(e.name.slice(0,-1)),ki(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[j,$]=ey.useMemo((()=>{const e=ki(A.errors),t=ki(A.warnings);return Object.values(I).forEach((n=>{e.push.apply(e,ki(n.errors||[])),t.push.apply(t,ki(n.warnings||[]))})),[e,t]}),[I,A.errors,A.warnings]),F=function(){const{itemRef:e}=ey.useContext(Z0),t=ey.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,a=n.join("_");return t.current.name===a&&t.current.originRef===o||(t.current.name=a,t.current.originRef=o,t.current.ref=zs(e(n),o)),t.current.ref}}();if(!D&&!v&&!a)return S(t(y));let L={};return"string"==typeof p?L.label=p:n&&(L.label=String(n)),d&&(L=Object.assign(Object.assign({},L),d)),S(ey.createElement(uu,Object.assign({},e,{messageVariables:L,trigger:m,validateTrigger:C,onMetaChange:e=>{const t=null==O?void 0:O.getKey(e.name);if(R(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==h&&w){let n=e.name;if(e.destroy)n=P.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(ki(r)),P.current=n}w(e,n)}}}),((r,o,i)=>{const c=Rd(n).length&&o?o.name:[],p=Td(c,_),d=void 0!==u?u:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),f=Object.assign({},r);let g=null;if(Array.isArray(y)&&D)g=y;else if(v&&(!s&&!a||D));else if(!a||v||D)if(RZ(y)){const t=Object.assign(Object.assign({},y.props),f);if(t.id||(t.id=p),h||j.length>0||$.length>0||e.extra){const n=[];(h||j.length>0)&&n.push(`${p}_help`),e.extra&&n.push(`${p}_extra`),t["aria-describedby"]=n.join(" ")}j.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),Bs(y)&&(t.ref=F(c,y)),new Set([].concat(ki(Rd(m)),ki(Rd(C)))).forEach((e=>{t[e]=function(){var t,n,r,o,a,i,s,l;for(i=arguments.length,s=new Array(i),l=0;l{var{prefixCls:t,children:n}=e,r=WT(e,["prefixCls","children"]);const{getPrefixCls:o}=ey.useContext(VQ),a=o("form",t),i=ey.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return ey.createElement(sN,Object.assign({},r),((e,t,r)=>ey.createElement(n1.Provider,{value:i},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},d8.ErrorList=Ad,d8.useForm=$d,d8.useFormInstance=function(){const{form:e}=ey.useContext(Z0);return e},d8.useWatch=fu,d8.Provider=t1,d8.create=()=>{};const m8=d8;let f8=null,g8=e=>e(),h8=[],b8={};const _8=ey.forwardRef(((e,t)=>{const n=()=>{const{prefixCls:e,container:t,maxCount:n,duration:r,rtl:o,top:a}=function(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:a}=b8;return{prefixCls:null!=e?e:_Z().getPrefixCls("message"),container:(null==t?void 0:t())||document.body,duration:n,rtl:r,maxCount:o,top:a}}();return{prefixCls:e,getContainer:()=>t,maxCount:n,duration:r,rtl:o,top:a}},[r,o]=ey.useState(n),[a,i]=pc(r),s=_Z(),l=s.getRootPrefixCls(),c=s.getIconPrefixCls(),u=s.getTheme(),p=()=>{o(n)};return ey.useEffect(p,[]),ey.useImperativeHandle(t,(()=>{const e=Object.assign({},a);return Object.keys(e).forEach((t=>{e[t]=function(){return p(),a[t].apply(a,arguments)}})),{instance:e,sync:p}})),ey.createElement(vZ,{prefixCls:l,iconPrefixCls:c,theme:u},i)})),y8={open:function(e){const t=cc((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return h8.push(r),()=>{n?g8((()=>{n()})):r.skipped=!0}}));return Ld(),t},destroy:function(e){h8.push({type:"destroy",key:e}),Ld()},config:function(e){b8=Object.assign(Object.assign({},b8),e),g8((()=>{var e;null===(e=null==f8?void 0:f8.sync)||void 0===e||e.call(f8)}))},useMessage:dc,_InternalPanelDoNotUseOrYouWillBeFired:function(e){const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=pI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=ey.useContext(VQ),l=t||s("message"),[,c]=HZ(l);return ey.createElement(iI,Object.assign({},i,{prefixCls:l,className:kQ(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:ey.createElement(uc,{prefixCls:l,type:r,icon:o},a)}))}},v8=y8;["success","info","warning","error","loading"].forEach((e=>{v8[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return h8.push(o),()=>{r?g8((()=>{r()})):o.skipped=!0}}));return Ld(),n}(e,n)}}));const w8=v8;VT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s}=e,l=VT(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=ey.useContext(VQ),u=c(),p=t||c("modal"),[,d]=Y1(p),m=`${p}-confirm`;let f={};return f=a?{closable:null!=o&&o,title:"",footer:"",children:ey.createElement(bu,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:u,content:s}))}:{closable:null==o||o,title:i,footer:void 0===e.footer?ey.createElement(a1,Object.assign({},e)):e.footer,children:s},ey.createElement(NI,Object.assign({prefixCls:p,className:kQ(d,`${p}-pure-panel`,a&&m,a&&`${m}-${a}`,n)},l,{closeIcon:gu(p,r),closable:o},f))};const C8=k8;let D8=null,x8=e=>e(),S8=[],E8={};const O8=ey.forwardRef(((e,t)=>{const[n,r]=ey.useState(),[o,a]=ey.useState(),[i,s]=ey.useState(),[l,c]=ey.useState(),[u,p]=ey.useState(),[d,m]=ey.useState(),[f,g]=Eu({prefixCls:n,getContainer:()=>o,maxCount:i,rtl:l,top:u,bottom:d}),h=_Z(),b=h.getRootPrefixCls(),_=h.getIconPrefixCls(),y=h.getTheme(),v=()=>{const{prefixCls:e,container:t,maxCount:n,rtl:o,top:i,bottom:l}=function(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:a}=E8;return{prefixCls:null!=e?e:_Z().getPrefixCls("notification"),container:(null==t?void 0:t())||document.body,rtl:n,maxCount:r,top:o,bottom:a}}();r(e),a(t),s(n),c(o),p(i),m(l)};return ey.useEffect(v,[]),ey.useImperativeHandle(t,(()=>{const e=Object.assign({},f);return Object.keys(e).forEach((t=>{e[t]=function(){return v(),f[t].apply(f,arguments)}})),{instance:e,sync:v}})),ey.createElement(vZ,{prefixCls:b,iconPrefixCls:_,theme:y},g)})),P8={open:zd,destroy:function(e){S8.push({type:"destroy",key:e}),Ud()},config:function(e){E8=Object.assign(Object.assign({},E8),e),x8((()=>{var e;null===(e=null==D8?void 0:D8.sync)||void 0===e||e.call(D8)}))},useNotification:Ou,_InternalPanelDoNotUseOrYouWillBeFired:function(e){const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:s,closable:l=!0,closeIcon:c}=e,u=yN(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:p}=ey.useContext(VQ),d=t||p("notification"),m=`${d}-notice`,[,f]=l2(d);return ey.createElement(iI,Object.assign({},u,{prefixCls:d,className:kQ(n,f,`${m}-pure-panel`),eventKey:"pure",duration:null,closable:l,closeIcon:xu(d,c),content:ey.createElement(Su,{prefixCls:m,icon:r,type:o,message:a,description:i,btn:s})}))}},I8=P8;["success","info","warning","error"].forEach((e=>{I8[e]=t=>zd(Object.assign(Object.assign({},t),{type:e}))}));const N8=I8;GT=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},qT=function(e){return void 0!==e?"".concat(e,"px"):void 0},XT=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"],KT=function(e){var t=e.prefixCls,n=e.disabled,r=e.checked,o=e.label,a=e.title,i=e.value,s=e.onChange;return ey.createElement("label",{className:kQ(e.className,xa({},"".concat(t,"-item-disabled"),n))},ey.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:r,onChange:function(e){n||s(e,i)}}),ey.createElement("div",{className:"".concat(t,"-item-label"),title:a},o))},YT=ey.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=void 0===o?"rc-segmented":o,i=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,p=e.onChange,d=e.className,m=void 0===d?"":d,f=e.motionName,g=void 0===f?"thumb-motion":f,h=Sa(e,XT),b=ey.useRef(null),_=ey.useMemo((function(){return zs(b,t)}),[b,t]),y=ey.useMemo((function(){return function(e){return e.map((function(e){if("object"===Ca(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Ca(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Di(Di({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(s)}),[s]),v=Vi(Tl(null===(n=y[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),w=v[0],k=v[1],C=Vi(ey.useState(!1),2),D=C[0],x=C[1],S=function(e,t){l||(k(t),null==p||p(t))},E=Js(h,["children"]);return ey.createElement("div",mi({},E,{className:kQ(a,(r={},xa(r,"".concat(a,"-rtl"),"rtl"===i),xa(r,"".concat(a,"-disabled"),l),r),m),ref:_}),ey.createElement("div",{className:"".concat(a,"-group")},ey.createElement(Hd,{prefixCls:a,value:w,containerRef:b,motionName:"".concat(a,"-").concat(g),direction:i,getValueIndex:function(e){return y.findIndex((function(t){return t.value===e}))},onMotionStart:function(){x(!0)},onMotionEnd:function(){x(!1)}}),y.map((function(e){return ey.createElement(KT,mi({},e,{key:e.value,prefixCls:a,className:kQ(e.className,"".concat(a,"-item"),xa({},"".concat(a,"-item-selected"),e.value===w&&!D)),checked:e.value===w,onChange:S,disabled:!!l||!!e.disabled}))}))))})),YT.displayName="Segmented",YT.defaultProps={options:[]};const A8=Object.assign({overflow:"hidden"},qQ),R8=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XQ(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":Object.assign(Object.assign({},Wd(e)),{color:e.itemHoverColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},A8),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Wd(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Bd(`&-disabled ${t}-item`,e)),Bd(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},T8=jl("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=$l(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[R8(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:a}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:a}}));JT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,block:a,options:i=[],size:s="middle"}=e,l=JT(e,["prefixCls","className","rootClassName","block","options","size"]),{getPrefixCls:c,direction:u}=ey.useContext(VQ),p=c("segmented",n),[d,m]=T8(p),f=lZ(s),g=ey.useMemo((()=>i.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=JT(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:ey.createElement(ey.Fragment,null,ey.createElement("span",{className:`${p}-item-icon`},t),n&&ey.createElement("span",null,n))})}return e}))),[i,p]);return d(ey.createElement(YT,Object.assign({},l,{className:kQ(r,o,{[`${p}-block`]:a,[`${p}-sm`]:"small"===f,[`${p}-lg`]:"large"===f},m),options:g,ref:t,prefixCls:p,direction:u})))}));QT=ey.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),ZT=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],ej=ey.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,p=e.onOffsetChange,d=Sa(e,ZT),m=ey.useContext(QT),f=m.min,g=m.max,h=m.direction,b=m.disabled,_=m.keyboard,y=m.range,v=m.tabIndex,w=m.ariaLabelForHandle,k=m.ariaLabelledByForHandle,C=m.ariaValueTextFormatterForHandle,D="".concat(o,"-handle"),x=function(e){b||s(e,i)},S=Gd(h,a,f,g),E=ey.createElement("div",mi({ref:t,className:kQ(D,(n={},xa(n,"".concat(D,"-").concat(i+1),y),xa(n,"".concat(D,"-dragging"),u),n)),style:Di(Di({},S),l),onMouseDown:x,onTouchStart:x,onKeyDown:function(e){if(!b&&_){var t=null;switch(e.which||e.keyCode){case aI.LEFT:t="ltr"===h||"btt"===h?-1:1;break;case aI.RIGHT:t="ltr"===h||"btt"===h?1:-1;break;case aI.UP:t="ttb"!==h?1:-1;break;case aI.DOWN:t="ttb"!==h?-1:1;break;case aI.HOME:t="min";break;case aI.END:t="max";break;case aI.PAGE_UP:t=2;break;case aI.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),p(t,i))}},tabIndex:b?null:qd(v,i),role:"slider","aria-valuemin":f,"aria-valuemax":g,"aria-valuenow":a,"aria-disabled":b,"aria-label":qd(w,i),"aria-labelledby":qd(k,i),"aria-valuetext":null===(r=qd(C,i))||void 0===r?void 0:r(a)},d));return c&&(E=c(E,{index:i,prefixCls:o,value:a,dragging:u})),E})),tj=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],nj=ey.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,c=Sa(e,tj),u=ey.useRef({});return ey.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),ey.createElement(ey.Fragment,null,i.map((function(e,t){return ey.createElement(ej,mi({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:qd(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:a,render:s},c))})))})),rj=ey.forwardRef((function(e,t){var n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x=e.prefixCls,S=void 0===x?"rc-slider":x,E=e.className,O=e.style,P=e.disabled,I=void 0!==P&&P,N=e.keyboard,A=void 0===N||N,R=e.autoFocus,T=e.onFocus,j=e.onBlur,$=e.min,F=void 0===$?0:$,L=e.max,M=void 0===L?100:L,U=e.step,z=void 0===U?1:U,H=e.value,B=e.defaultValue,W=e.range,V=e.count,G=e.onChange,q=e.onBeforeChange,X=e.onAfterChange,K=e.allowCross,Y=void 0===K||K,J=e.pushable,Q=void 0!==J&&J,Z=e.draggableTrack,ee=e.reverse,te=e.vertical,ne=e.included,re=void 0===ne||ne,oe=e.startPoint,ae=e.trackStyle,ie=e.handleStyle,se=e.railStyle,le=e.dotStyle,ce=e.activeDotStyle,ue=e.marks,pe=e.dots,de=e.handleRender,me=e.tabIndex,fe=void 0===me?0:me,ge=e.ariaLabelForHandle,he=e.ariaLabelledByForHandle,be=e.ariaValueTextFormatterForHandle,_e=ey.useRef(),ye=ey.useRef(),ve=ey.useMemo((function(){return te?ee?"ttb":"btt":ee?"rtl":"ltr"}),[ee,te]),we=ey.useMemo((function(){return isFinite(F)?F:0}),[F]),ke=ey.useMemo((function(){return isFinite(M)?M:100}),[M]),Ce=ey.useMemo((function(){return null!==z&&z<=0?1:z}),[z]),De=ey.useMemo((function(){return!0===Q?Ce:Q>=0&&Q}),[Q,Ce]),xe=ey.useMemo((function(){return Object.keys(ue||{}).map((function(e){var t=ue[e],n={value:Number(e)};return t&&"object"===Ca(t)&&!ey.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[ue]),Se=function(e,t,n,r,o,a){var i=ey.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=ey.useCallback((function(r){var o,a,s,l;return null!==n?(o=e+Math.round((i(r)-e)/n)*n,a=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(a(n),a(t),a(e)),l=Number(o.toFixed(s)),e<=l&&l<=t?l:null):null}),[n,e,t,i]),l=ey.useCallback((function(o){var a,l,c=i(o),u=r.map((function(e){return e.value}));return null!==n&&u.push(s(o)),u.push(e,t),a=u[0],l=t-e,u.forEach((function(e){var t=Math.abs(c-e);t<=l&&(a=e,l=t)})),a}),[e,t,r,n,i,s]),c=function o(a,i,l,c){var u,p,d,m,f,g,h,b,_=arguments.length>3&&void 0!==c?c:"unit";return"number"==typeof i?(d=(p=a[l])+i,m=[],r.forEach((function(e){m.push(e.value)})),m.push(e,t),m.push(s(p)),f=i>0?1:-1,m.push(s("unit"===_?p+f*n:d)),m=m.filter((function(e){return null!==e})).filter((function(e){return i<0?e<=p:e>=p})),"unit"===_&&(m=m.filter((function(e){return e!==p}))),g="unit"===_?p:d,u=m[0],h=Math.abs(u-g),m.forEach((function(e){var t=Math.abs(e-g);t1?((b=ki(a))[l]=u,o(b,i-f,l,_)):u):"min"===i?e:"max"===i?t:void 0},u=function(e,t,n,r){var o=e[n],a=c(e,t,n,arguments.length>3&&void 0!==r?r:"unit");return{value:a,changed:a!==o}},p=function(e){return null===a&&0===e||"number"==typeof a&&e3&&void 0!==r?r:"unit",D=e.map(l),x=D[n],S=c(D,t,n,C);if(D[n]=S,!1===o)i=a||0,n>0&&D[n-1]!==x&&(D[n]=Math.max(D[n],D[n-1]+i)),n0;f-=1)for(g=!0;p(D[f]-D[f-1])&&g;)h=u(D,-1,f-1),D[f-1]=h.value,g=h.changed;for(b=D.length-1;b>0;b-=1)for(_=!0;p(D[b]-D[b-1])&&_;)y=u(D,-1,b-1),D[b-1]=y.value,_=y.changed;for(v=0;v=0?V+1:2);o.length=0&&_e.current.focus(e)}c(null)}),[l=s[0]]),p=ey.useMemo((function(){return(!Z||null!==Ce)&&Z}),[Z,Ce]),d=function(e,t,n,o,a,i,s,l,c){var u,p,d,m,f,g=Vi(ey.useState(null),2),h=g[0],b=g[1],_=Vi(ey.useState(-1),2),y=_[0],v=_[1],w=Vi(ey.useState(n),2),k=w[0],C=w[1],D=Vi(ey.useState(n),2),x=D[0],S=D[1],E=ey.useRef(null),O=ey.useRef(null);return ey.useEffect((function(){-1===y&&C(n)}),[n,y]),ey.useEffect((function(){return function(){document.removeEventListener("mousemove",E.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",E.current),document.removeEventListener("touchend",O.current)}}),[]),u=function(e,t){k.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&b(t),C(e),s(e))},(d=ey.useRef(p=function(e,t){var n,r,s,l,p,d,m,f;-1===e?(n=x[0],r=a-x[x.length-1],s=t*(a-o),s=Math.max(s,o-n),s=Math.min(s,r),l=i(n+s),s=l-n,p=x.map((function(e){return e+s})),u(p)):(d=(a-o)*t,(m=ki(k))[e]=x[e],f=c(m,d,e,"dist"),u(f.values,f.value))})).current=p,m=function(o,a){var i,s,l,c,u,p;o.stopPropagation(),i=n[a],v(a),b(i),S(n),s=Xd(o),l=s.pageX,c=s.pageY,u=function(n){var r,o,i,s,u,p,m;switch(n.preventDefault(),o=(r=Xd(n)).pageX-l,i=r.pageY-c,u=(s=e.current.getBoundingClientRect()).width,p=s.height,t){case"btt":m=-i/p;break;case"ttb":m=i/p;break;case"rtl":m=-o/u;break;default:m=o/u}d.current(a,m)},p=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),E.current=null,O.current=null,v(-1),null==X||X(r(Te.current))},document.addEventListener("mouseup",p),document.addEventListener("mousemove",u),document.addEventListener("touchend",p),document.addEventListener("touchmove",u),E.current=u,O.current=p},f=ey.useMemo((function(){var e=ki(n).sort((function(e,t){return e-t})),t=ki(k).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?k:n}),[n,k]),[y,h,f,m]}(ye,ve,Re,we,ke,Oe,o,0,Pe),m=Vi(d,4),g=m[1],h=m[2],b=m[3],_=function(e,t){b(e,t),null==q||q(r(Te.current))},ey.useEffect((function(){if(!y){var e=Re.lastIndexOf(g);_e.current.focus(e)}}),[y=-1!==(f=m[0])]),v=ey.useMemo((function(){return ki(h).sort((function(e,t){return e-t}))}),[h]),w=Vi(ey.useMemo((function(){return W?[v[0],v[v.length-1]]:[we,v[0]]}),[v,W,we]),2),k=w[0],C=w[1],ey.useImperativeHandle(t,(function(){return{focus:function(){_e.current.focus(0)},blur:function(){var e=document.activeElement;ye.current.contains(e)&&(null==e||e.blur())}}})),ey.useEffect((function(){R&&_e.current.focus(0)}),[]),D=ey.useMemo((function(){return{min:we,max:ke,direction:ve,disabled:I,keyboard:A,step:Ce,included:re,includedStart:k,includedEnd:C,range:W,tabIndex:fe,ariaLabelForHandle:ge,ariaLabelledByForHandle:he,ariaValueTextFormatterForHandle:be}}),[we,ke,ve,I,A,Ce,re,k,C,W,fe,ge,he,be]),ey.createElement(QT.Provider,{value:D},ey.createElement("div",{ref:ye,className:kQ(S,E,(n={},xa(n,"".concat(S,"-disabled"),I),xa(n,"".concat(S,"-vertical"),te),xa(n,"".concat(S,"-horizontal"),!te),xa(n,"".concat(S,"-with-marks"),xe.length),n)),style:O,onMouseDown:i},ey.createElement("div",{className:"".concat(S,"-rail"),style:se}),ey.createElement(Yd,{prefixCls:S,style:ae,values:v,startPoint:oe,onStartMove:p?_:null}),ey.createElement(em,{prefixCls:S,marks:xe,dots:pe,style:le,activeStyle:ce}),ey.createElement(nj,{ref:_e,prefixCls:S,style:ie,values:h,draggingIndex:f,onStartMove:_,onOffsetChange:u,onFocus:T,onBlur:j,handleRender:de}),ey.createElement(Qd,{prefixCls:S,marks:xe,onClick:a})))}));const $8=ey.forwardRef(((e,t)=>{function n(){qO.cancel(a.current),a.current=null}const{open:r}=e,o=ey.useRef(null),a=ey.useRef(null);return ey.useEffect((()=>(r?a.current=qO((()=>{var e;null===(e=o.current)||void 0===e||e.forceAlign(),a.current=null})):n(),n)),[r,e.title]),ey.createElement(h5,Object.assign({ref:zs(o,t)},e))})),F8=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:a,colorFillContentHover:i}=e;return{[t]:Object.assign(Object.assign({},XQ(e)),{position:"relative",height:n,margin:`${a}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${o}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:i},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${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:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new eP(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}}})}},L8=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[i]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[l]:(3*r-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:o,[i]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[i]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-a)/2}}},M8=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},L8(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},U8=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},L8(e,!1)),{height:"100%"})}},z8=jl("Slider",(e=>{const t=$l(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[F8(t),M8(t),U8(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3}}));oj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",B8=UJ.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,disabled:i,tooltipPrefixCls:s,tipFormatter:l,tooltipVisible:c,getTooltipPopupContainer:u,tooltipPlacement:p}=e,d=oj(e,["prefixCls","range","className","rootClassName","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:m,direction:f,getPopupContainer:g}=UJ.useContext(VQ),h=UJ.useContext(sZ),b=null!=i?i:h,[_,y]=UJ.useState({}),v=(e,t)=>{y((n=>Object.assign(Object.assign({},n),{[e]:t})))},w=(e,t)=>e||(t?"rtl"===f?"left":"right":"top"),k=m("slider",n),[C,D]=z8(k),x=kQ(o,a,{[`${k}-rtl`]:"rtl"===f},D);"rtl"!==f||d.vertical||(d.reverse=!d.reverse);const[S,E]=UJ.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]);return C(UJ.createElement(rj,Object.assign({},d,{step:d.step,range:S,draggableTrack:E,className:x,disabled:b,ref:t,prefixCls:k,handleRender:(t,n)=>{var r;const{index:o,dragging:a}=n,{tooltip:i={},vertical:d}=e,f=Object.assign({},i),{open:h,placement:b,getPopupContainer:y,prefixCls:C,formatter:D}=f;let x;x=D||null===D?D:l||null===l?l:H8;const S=null!==(r=null!=h?h:c)&&void 0!==r?r:void 0===h&&!!x&&(_[o]||a),E=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>v(o,!0),onMouseLeave:()=>v(o,!1)}),O=m("tooltip",null!=C?C:s);return UJ.createElement($8,{prefixCls:O,title:x?x(n.value):"",open:S,placement:w(null!=b?b:p,d),key:o,overlayClassName:`${k}-tooltip`,getPopupContainer:y||u||g},UJ.cloneElement(t,E))}})))}));aj=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ij=ey.forwardRef((function(e,t){function n(e,t){var n=_;return c||(y(n=e),null==f||f(n,t)),n}var r,o=e.prefixCls,a=void 0===o?"rc-switch":o,i=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,p=e.checkedChildren,d=e.unCheckedChildren,m=e.onClick,f=e.onChange,g=e.onKeyDown,h=Sa(e,aj),b=Vi(Tl(!1,{value:s,defaultValue:l}),2),_=b[0],y=b[1],v=kQ(a,i,(xa(r={},"".concat(a,"-checked"),_),xa(r,"".concat(a,"-disabled"),c),r));return ey.createElement("button",mi({},h,{type:"button",role:"switch","aria-checked":_,disabled:c,className:v,ref:t,onKeyDown:function(e){e.which===aI.LEFT?n(!1,e):e.which===aI.RIGHT&&n(!0,e),null==g||g(e)},onClick:function(e){var t=n(!_,e);null==m||m(t,e)}}),u,ey.createElement("span",{className:"".concat(a,"-inner")},ey.createElement("span",{className:"".concat(a,"-inner-checked")},p),ey.createElement("span",{className:"".concat(a,"-inner-unchecked")},d)))})),ij.displayName="Switch";const W8=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},V8=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},G8=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return{[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},q8=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:2*-e.switchPadding}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:2*-e.switchPadding,marginInlineEnd:2*e.switchPadding}}}}}},X8=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},XQ(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),QQ(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},K8=jl("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=t-4,o=n-4,a=$l(e,{switchMinWidth:2*r+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+2+4,switchPadding:2,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:2*o+4,switchHeightSM:n,switchInnerMarginMinSM:o/2,switchInnerMarginMaxSM:o+2+4,switchPinSizeSM:o,switchHandleShadow:`0 2px 4px 0 ${new eP("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[X8(a),q8(a),G8(a),V8(a),W8(a)]}));sj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s}=e,l=sj(e,["prefixCls","size","disabled","loading","className","rootClassName"]);const{getPrefixCls:c,direction:u}=ey.useContext(VQ),p=ey.useContext(sZ),d=(null!=o?o:p)||a,m=c("switch",n),f=ey.createElement("div",{className:`${m}-handle`},a&&ey.createElement(WZ,{className:`${m}-loading-icon`})),[g,h]=K8(m),b=lZ(r),_=kQ({[`${m}-small`]:"small"===b,[`${m}-loading`]:a,[`${m}-rtl`]:"rtl"===u},i,s,h);return g(ey.createElement(ZZ,null,ey.createElement(ij,Object.assign({},l,{prefixCls:m,className:_,disabled:d,ref:t,loadingIcon:f}))))}));Y8.__ANT_SWITCH=!0;const J8=Y8,Q8=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Z8=e=>Ll(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),e6=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return{[o]:Object.assign(Object.assign({},XQ(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},t6=jl("Tag",(e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=$l(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[e6(o),Z8(o),Q8(o,"success","Success"),Q8(o,"processing","Info"),Q8(o,"error","Error"),Q8(o,"warning","Warning")]}),(e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText})));lj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:p=!1,bordered:d=!0}=e,m=cj(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:f,direction:g}=ey.useContext(VQ),[h,b]=ey.useState(!0);ey.useEffect((()=>{"visible"in m&&b(m.visible)}),[m.visible]);const _=_p(l)||function(e){return m5.includes(e)}(l),y=Object.assign({backgroundColor:l&&!_?l:void 0},a),v=f("tag",n),[w,k]=t6(v),C=kQ(v,{[`${v}-${l}`]:_,[`${v}-has-color`]:l&&!_,[`${v}-hidden`]:!h,[`${v}-rtl`]:"rtl"===g,[`${v}-borderless`]:!d},r,o,k),D=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||b(!1)},x=ey.useMemo((()=>p?u?ey.createElement("span",{className:`${v}-close-icon`,onClick:D},u):ey.createElement(OZ,{className:`${v}-close-icon`,onClick:D}):null),[p,u,v,D]),S="function"==typeof m.onClick||i&&"a"===i.type,E=s||null,O=E?ey.createElement(ey.Fragment,null,E,ey.createElement("span",null,i)):i,P=ey.createElement("span",Object.assign({},m,{ref:t,className:C,style:y}),O,x);return w(S?ey.createElement(ZZ,null,P):P)},r6=ey.forwardRef(n6);r6.CheckableTag=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:a}=e,i=lj(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=ey.useContext(VQ),l=s("tag",t),[c,u]=t6(l),p=kQ(l,{[`${l}-checkable`]:!0,[`${l}-checkable-checked`]:r},n,u);return c(ey.createElement("span",Object.assign({},i,{className:p,onClick:e=>{null==o||o(!r),null==a||a(e)}})))};const o6=r6;uj=function(){return c5.useToken().token},mj=ey.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(dj=(pj=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}})("dark"))&&void 0!==dj&&dj.matches?"dark":"light"}),fj=function(){return ey.useContext(mj)},gj=function(){var e=uj(),t=fj(),n=t.appearance,r=t.isDarkMode;return ey.useMemo((function(){return hO(gO({token:e,css:NS,appearance:n,isDarkMode:r}))}),[e,n,r])},hj=function(){var e=uj(),t=gj();return ey.useMemo((function(){return rm(rm({},e),{},{stylish:t})}),[e,t])},bj=function(e){return am(am({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},_j=function(){var e=function(e){let t=!(arguments.length>0&&void 0!==e)||e;const n=ey.useRef({}),r=function(){const[,e]=ey.useReducer((e=>e+1),0);return e}(),o=mp();return ey.useEffect((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current}();return ey.useMemo((function(){return bj(e)}),[e])},yj=function(){var e=uj(),t={xs:"@media (max-width: ".concat(e.screenXSMax,"px)"),sm:"@media (max-width: ".concat(e.screenSMMax,"px)"),md:"@media (max-width: ".concat(e.screenMDMax,"px)"),lg:"@media (max-width: ".concat(e.screenLGMax,"px)"),xl:"@media (max-width: ".concat(e.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(e.screenXXLMin,"px)")};return ey.useMemo((function(){return bj(t)}),[e])},vj=function(e,t){return Object.entries(e).map((function(e){var n=Vi(e,2),r=n[0],o=n[1],a=o;return xS(o)||(a=NS(o)),t[r]?"".concat(t[r]," {").concat(a.styles,"}"):""})).join("")},wj=["stylish","appearance","isDarkMode","prefixCls"],kj=["prefixCls"],Cj=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var a=null==o?void 0:o.__BABEL_FILE_NAME__,i=!!a;return function(s){var l=n(),c=ey.useContext(r),u=IS(c.cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),p=u.cx,d=u.css,m=yj(),f=ey.useMemo((function(){var t,n,r,o,c,u,f;return e instanceof Function?(n=l.stylish,r=l.appearance,o=l.isDarkMode,c=l.prefixCls,u=Sa(l,wj),f=function(e){return vj(e,m)},Object.assign(f,m),t=e({token:u,stylish:n,appearance:r,isDarkMode:o,prefixCls:c,cx:p,css:NS,responsive:f},s)):t=e,"object"===Ca(t)&&(t=xS(t)?d(t):Object.fromEntries(Object.entries(t).map((function(e){var t=Vi(e,2),n=t[0],r=t[1],o=i?"".concat(a,"-").concat(n):void 0;return"object"===Ca(r)?i?[n,d(r,"label:".concat(o))]:[n,d(r)]:[n,r]})))),t}),[s,l]);return ey.useMemo((function(){var e=l.prefixCls,t=Sa(l,kj);return{styles:f,cx:p,theme:t,prefixCls:e}}),[f,l])}}},Dj=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return sy.jsx(t.Provider,{value:e.theme,children:e.children})}},xj=_E,Sj=gE,Ej=function(e){if(!e.ThemeContext)throw"ThemeContext is required. Please check your config.";Sj=e.ThemeContext,xj=Dj(e)};const a6=ey.memo((function(e){var t,n=e.children,r=e.theme,o=e.prefixCls,a=e.getStaticInstance,i=e.staticInstanceConfig,s=fj(),l=s.appearance,c=s.isDarkMode,u=Vi(w8.useMessage(null==i?void 0:i.message),2),p=u[0],d=u[1],m=Vi(N8.useNotification(null==i?void 0:i.notification),2),f=m[0],g=m[1],h=Vi(C8.useModal(),2),b=h[0],_=h[1];return ey.useEffect((function(){null==a||a({message:p,modal:b,notification:f})}),[]),t=ey.useMemo((function(){var e,t=c?c5.darkAlgorithm:c5.defaultAlgorithm,n=r;return"function"==typeof r&&(n=r(l)),n?(e=n.algorithm?n.algorithm instanceof Array?n.algorithm:[n.algorithm]:[],sm(sm({},n),{},{algorithm:n.algorithm?[t].concat(ki(e)):t})):{algorithm:t}}),[r,c]),sy.jsxs(vZ,{prefixCls:o,theme:t,children:[d,g,_,n]})}));Oj=function(e){"function"==typeof ey.startTransition?ey.startTransition(e):e()},Ij=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){pj("dark").matches?n("dark"):n("light")},a=function(){pj("dark").matches?r("dark"):r("light")};return ey.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),Pj||(Pj=pj("dark")),Pj.addEventListener("change",o),function(){Pj.removeEventListener("change",o)};Oj((function(){n(t)}))}),[t]),ey.useLayoutEffect((function(){return Pj||(Pj=pj("dark")),Pj.addEventListener("change",a),function(){Pj.removeEventListener("change",a)}}),[]),null};const i6=ey.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,a=e.onAppearanceChange,i=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,p=Vi(cm("light",{value:i,defaultValue:null!=s?s:c.themeMode,onChange:function(e){return null==l?void 0:l(e)}}),2),d=p[0],m=p[1],f=Vi(cm("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==a?void 0:a(e)}}),2),g=f[0],h=f[1],b=Vi(ey.useState(null!==(t=pj("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),_=b[0],y=b[1],v=Vi(ey.useState(!1),2),w=v[0],k=v[1];return ey.useEffect((function(){Oj((function(){k(!0)}))}),[]),sy.jsxs(mj.Provider,{value:{themeMode:d,setThemeMode:m,appearance:g,setAppearance:h,isDarkMode:"dark"===g,browserPrefers:_},children:[w&&sy.jsx(Ij,{themeMode:d,setAppearance:h,setBrowserPrefers:y}),n]})}));Nj=["stylish"];const s6=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,a=e.prefixCls,i=void 0===a?"ant":a,s=e.StyledThemeProvider,l=fj(),c=l.appearance,u=l.isDarkMode,p=hj(),d=p.stylish,m=Sa(p,Nj),f=ey.useMemo((function(){return r?r instanceof Function?r({token:m,appearance:c,isDarkMode:u}):r:{}}),[r,m,c]),g=ey.useMemo((function(){return pm(pm({},f),n instanceof Function?n({token:m,appearance:c,isDarkMode:u}):n)}),[f,n,m,c]),h=ey.useMemo((function(){return o?o({token:pm(pm({},m),g),stylish:d,appearance:c,isDarkMode:u,css:NS}):{}}),[o,m,g,d,c]),b=ey.useMemo((function(){return pm(pm({},h),d)}),[h,d]),_=pm(pm(pm(pm({},m),g),{},{stylish:b},l),{},{prefixCls:i});return sy.jsx(s,{theme:_,children:t})};Aj=function(e){var t=e.styledConfig?Dj(e.styledConfig):void 0,n=e.StyleEngineContext;return ey.memo((function(r){var o=r.children,a=r.customToken,i=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,p=r.appearance,d=r.defaultAppearance,m=r.onAppearanceChange,f=r.themeMode,g=r.defaultThemeMode,h=r.onThemeModeChange,b=r.styled,_=ey.useContext(n),y=_.prefixCls,v=_.StyledThemeContext,w=_.CustomThemeContext,k=ey.useContext(w),C=b?Dj(b):t||xj,D=c||y;return sy.jsx(n.Provider,{value:{prefixCls:D,StyledThemeContext:(null==b?void 0:b.ThemeContext)||v||Sj,CustomThemeContext:w},children:sy.jsx(i6,{themeMode:f,defaultThemeMode:g,onThemeModeChange:h,defaultAppearance:d,appearance:p,onAppearanceChange:m,useTheme:e.useTheme,children:sy.jsx(a6,{prefixCls:D,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:sy.jsx(s6,{prefixCls:D,customToken:a,defaultCustomToken:k,customStylish:i,StyledThemeProvider:C,children:o})})})})}))},Rj=function(e){return function(){var t=ey.useContext(e.StyleEngineContext),n=t.StyledThemeContext,r=t.CustomThemeContext,o=t.prefixCls,a=hj(),i=fj(),s=ey.useContext(r),l=ey.useContext(null!=n?n:Sj)||{},c=ey.useMemo((function(){return mm(mm(mm(mm({},a),i),s),{},{prefixCls:o||"ant"})}),[a,i,o,s]);return l&&0!==Object.keys(l).length?l:c}},Tj=new wS,"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=Tj),Fj=(QY={key:"acss",speedy:!1},uJ=gm(gm({},QY),{},{key:null!==(ZY=QY.key)&&void 0!==ZY?ZY:"zcss",speedy:null!==(eJ=QY.speedy)&&void 0!==eJ&&eJ}),pJ=gS({key:uJ.key,speedy:uJ.speedy,container:uJ.container}),dJ=AS(pJ),mJ=fO(dJ),Tj.add(pJ.cache),nJ=null===(tJ=uJ.styled)||void 0===tJ?void 0:tJ.ThemeContext,oJ=Rj({StyleEngineContext:rJ=ey.createContext({CustomThemeContext:ey.createContext(uJ.customToken?uJ.customToken:{}),StyledThemeContext:nJ,prefixCls:null==uJ?void 0:uJ.prefixCls})}),aJ=Cj({hashPriority:uJ.hashPriority,useTheme:oJ,EmotionContext:dJ}),iJ=vE(oJ),sJ=wE(aJ),lJ=Aj({styledConfig:uJ.styled,StyleEngineContext:rJ,useTheme:oJ}),cJ=IS(pJ.cache,{hashPriority:uJ.hashPriority}),jj={createStyles:aJ,createGlobalStyle:iJ,createStylish:sJ,css:NS,cx:cJ.cx,keyframes:pJ.keyframes,injectGlobal:pJ.injectGlobal,styleManager:pJ,useTheme:oJ,StyleProvider:mJ,ThemeProvider:lJ}).createGlobalStyle,Lj=jj.css,Mj=jj.cx,Uj=jj.keyframes,zj=jj.ThemeProvider,Hj=jj.StyleProvider,Bj=jj.useTheme,Gj=($j=jj.createStyles)((function(e){var t=e.css,n=Uj(Wj||(Wj=Ea(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(Vj||(Vj=Ea(["\n animation: "," 1s linear infinite;\n "])),n)}})),qj=["icon","size","className","spin"],Xj=function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}};const l6=ey.memo((function(e){var t=e.icon,n=e.size,r=e.className,o=e.spin,a=Sa(e,qj),i=Gj(),s=i.styles,l=i.cx,c=t,u=ey.useMemo((function(){return Xj(n)}),[n]),p=u.fontSize,d=u.strokeWidth;return sy.jsx("span",bm(bm({className:l("anticon",o&&s.spin,r),role:"img"},a),{},{children:sy.jsx(c,{focusable:!1,height:p,size:p,strokeWidth:d,width:p})}))}));Yj=$j((function(e,t){var n,r,o=e.token,a=e.isDarkMode,i=t.offset,s=(null!==(n=null==i?void 0:i.x)&&void 0!==n?n:0)+"px",l=(null!==(r=null==i?void 0:i.y)&&void 0!==r?r:0)+"px",c=t.outside?"0":".1",u=t.size+"px";return(0,e.css)(Kj||(Kj=Ea(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),c,u,s,l,a?o.colorText:"#fff",a?"transparent":o.colorTextQuaternary)})),Jj=["className","size"],Qj=function(){var e=Vi(ey.useState(),2),t=e[0],n=e[1],r=Vi(ey.useState(!0),2),o=r[0],a=r[1],i=ey.useRef();return ey.useEffect((function(){var e,t,r;if(i.current&&i.current.parentElement)return t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),a(!1)},r=function(){a(!0)},(e=i.current.parentElement).addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}),[]),[t,o,i]};const c6=ey.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Sa(e,Jj),a=Vi(Qj(),3),i=a[2],s=Yj({offset:a[0],outside:a[1],size:r});return sy.jsx("div",function(e){var t,n;for(t=1;ta?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0,r=Array(a);++o .ant-menu-item-only-child,\n .ant-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .ant-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .ant-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .ant-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .ant-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .ant-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .ant-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),n.colorText,n.colorFill,n.colorText,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFillSecondary,n.colorFillSecondary,n.borderRadius,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),MF=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];const k6=ey.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,a=e.setOpened,i=e.className,s=e.headerHeight,l=void 0===s?64:s,c=Sa(e,MF),u=LF(l),p=u.styles;return sy.jsxs(w6,Zm(Zm({className:(0,u.cx)(p.container,i),onClick:function(){a(!o)}},c),{},{children:[sy.jsx(p6,{icon:o?bQ:iQ,size:"site"}),sy.jsxs(Od,{bodyStyle:{padding:0},className:p.drawer,closeIcon:void 0,headerStyle:{display:"none"},open:o,placement:"left",rootClassName:p.drawerRoot,width:"100vw",children:[sy.jsx(U5,{className:p.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),sy.jsx("div",{className:p.fillRect})]})]}))}));UF={exports:{}},function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zF={exports:{}}),HF=zF.exports,function(e){function t(){function r(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function o(e,t,n,r){var o=Object.create((t&&t.prototype instanceof i?t:i).prototype),a=new g(r||[]);return w(o,"_invoke",{value:p(e,n,a)}),o}function a(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function i(){}function s(){}function l(){}function c(e){["next","throw","return"].forEach((function(t){r(e,t,(function(e){return this._invoke(t,e)}))}))}function u(e,t){function r(o,i,s,l){var c,u,p=a(e[o],e,i);if("throw"!==p.type)return(u=(c=p.arg).value)&&"object"==n(u)&&v.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,l)}));l(p.arg)}var o;w(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function p(e,t,n){var r="suspendedStart";return function(o,i){var s,l,c;if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){if((s=n.delegate)&&(l=d(s,n))){if(l===S)continue;return l}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);if(r="executing","normal"===(c=a(e,t,n)).type){if(r=n.done?"completed":"suspendedYield",c.arg===S)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function d(e,t){var n,r,o=t.method,i=e.iterator[o];return void 0===i?(t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,d(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),S):"throw"===(n=a(i,e.iterator,t.arg)).type?(t.method="throw",t.arg=n.arg,t.delegate=null,S):(r=n.arg)?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,S):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,S)}function m(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(m,this),this.reset(!0)}function h(e){var t,n,r;if(e){if(t=e[C])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(a=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(i=v.call(o,"catchLoc"),s=v.call(o,"finallyLoc"),i&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),S},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,f(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),S}},_}var n=HF.default;e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(UF),WF=BF=(0,UF.exports)();try{regeneratorRuntime=BF}catch(ore){"object"==typeof globalThis?globalThis.regeneratorRuntime=BF:Function("r","regeneratorRuntime = r")(BF)}const C6=t(WF);"undefined"!=typeof globalThis?globalThis:void 0!=={}||("undefined"!=typeof global?global:"undefined"!=typeof self&&self),VF={},UY=()=>{return e={770:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const o=r(n(418));let a=null,i=!1;class s{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n=55296&&o<=56319&&n+1=56320&&t<=57343&&(a=65536+(o-55296<<10)|t-56320,i=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,i&&n++}return t}constructor(e){const t=e.length,n=s._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const i=new Uint8Array(n);let l=0;for(let s=0;s=55296&&n<=56319&&s+1=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?a[l+0]=s:c<=2047?(a[l+0]=s,a[l+1]=s):c<=65535?(a[l+0]=s,a[l+1]=s,a[l+2]=s):(a[l+0]=s,a[l+1]=s,a[l+2]=s,a[l+3]=s)),c<=127?i[l++]=c:c<=2047?(i[l++]=192|(1984&c)>>>6,i[l++]=128|(63&c)>>>0):c<=65535?(i[l++]=224|(61440&c)>>>12,i[l++]=128|(4032&c)>>>6,i[l++]=128|(63&c)>>>0):(i[l++]=240|(1835008&c)>>>18,i[l++]=128|(258048&c)>>>12,i[l++]=128|(4032&c)>>>6,i[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=i,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!a)throw new Error("Must invoke loadWASM first.");this._onigBinding=a,this.content=e;const t=new s(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=a._omalloc(1e4)),l._sharedPtrInUse=!0,a.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(a)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!a)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let l=0,c=e.length;lWebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}var s;return p=new Promise(((e,t)=>{r=e,i=t})),function(e,t,n,r){(0,o.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{a=e,n()}))}(t,n,r,i),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){i=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document,function(e){function t(e,t,n){var r,o,a,i,s,l,c;for(r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&w)return w.decode(e.subarray(t,o));for(a="";t>10,56320|1023&c))):a+=String.fromCharCode((31&i)<<6|s)):a+=String.fromCharCode(i);return a}function n(e){_=e,T.HEAP8=new Int8Array(e),T.HEAP16=new Int16Array(e),T.HEAP32=new Int32Array(e),T.HEAPU8=y=new Uint8Array(e),T.HEAPU16=new Uint16Array(e),T.HEAPU32=v=new Uint32Array(e),T.HEAPF32=new Float32Array(e),T.HEAPF64=new Float64Array(e)}function r(e){T.onAbort&&T.onAbort(e),h(e="Aborted("+e+")"),b=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw u(t),t}function o(e){return e.startsWith(P)}function a(e){for(;e.length>0;)e.shift()(T)}function i(e){try{return f.grow(e-_.byteLength+65535>>>16),n(f.buffer),1}catch(t){}}function s(e,n){var r=I[e];0===n||10===n?((1===e?g:h)(t(r,0)),r.length=0):r.push(n)}function l(){function e(){N||(N=!0,T.calledRun=!0,b||(a(C),c(T),T.onRuntimeInitialized&&T.onRuntimeInitialized(),function(){if(T.postRun)for("function"==typeof T.postRun&&(T.postRun=[T.postRun]);T.postRun.length;)e=T.postRun.shift(),D.unshift(e);var e;a(D)}()))}x>0||(function(){if(T.preRun)for("function"==typeof T.preRun&&(T.preRun=[T.preRun]);T.preRun.length;)e=T.preRun.shift(),k.unshift(e);var e;a(k)}(),x>0||(T.setStatus?(T.setStatus("Running..."),setTimeout((function(){setTimeout((function(){T.setStatus("")}),1),e()}),1)):e()))}var c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E,O,P,I,N,A,R,T=void 0!==(e=e||{})?e:{};if(T.ready=new Promise((function(e,t){c=e,u=t})),d=Object.assign({},T),p=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e){e||r(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print),g=T.print||void 0,h=T.printErr||void 0,Object.assign(T,d),d=null,T.wasmBinary&&(m=T.wasmBinary),"object"!=typeof WebAssembly&&r("no native wasm support detected"),b=!1,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,k=[],C=[],D=[],x=0,S=null,P="data:application/octet-stream;base64,",o(E="onig.wasm")||(R=E,E=T.locateFile?T.locateFile(R,""):""+R),O="undefined"!=typeof dateNow?dateNow:()=>performance.now(),I=[null,[],[]],A={emscripten_get_now:O,emscripten_memcpy_big:function(e,t,n){y.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n,r,o=y.length,a=2147483648;if((e>>>=0)>a)return!1;for(n=1;n<=4;n*=2)if(r=o*(1+.2/n),r=Math.min(r,e+100663296),i(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0;return!1},fd_write:function(e,t,n,r){var o,a,i,l,c;for(o=0,a=0;a>2],l=v[t+4>>2],t+=8,c=0;c>2]=o,0}},function(){function e(e){T.asm=e.exports,n((f=T.asm.memory).buffer),function(e){C.unshift(e)}(T.asm.__wasm_call_ctors),function(){if(x--,T.monitorRunDependencies&&T.monitorRunDependencies(x),0==x&&S){var e=S;S=null,e()}}()}function t(t){e(t.instance)}function a(e){return Promise.resolve().then((function(){return function(e){try{if(e==E&&m)return new Uint8Array(m);if(p)return p(e);throw"both async and sync fetching of the wasm failed"}catch(t){r(t)}}(E)})).then((function(e){return WebAssembly.instantiate(e,i)})).then((function(e){return e})).then(e,(function(e){h("failed to asynchronously prepare wasm: "+e),r(e)}))}var i={env:A,wasi_snapshot_preview1:A};if(x++,T.monitorRunDependencies&&T.monitorRunDependencies(x),T.instantiateWasm)try{return T.instantiateWasm(i,e)}catch(s){h("Module.instantiateWasm callback failed with error: "+s),u(s)}(m||"function"!=typeof WebAssembly.instantiateStreaming||o(E)||"function"!=typeof fetch?a(t):fetch(E,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,i).then(t,(function(e){return h("wasm streaming compile failed: "+e),h("falling back to ArrayBuffer instantiation"),a(t)}))}))).catch(u)}(),T.___wasm_call_ctors=function(){return(T.___wasm_call_ctors=T.asm.__wasm_call_ctors).apply(null,arguments)},T.___errno_location=function(){return(T.___errno_location=T.asm.__errno_location).apply(null,arguments)},T._omalloc=function(){return(T._omalloc=T.asm.omalloc).apply(null,arguments)},T._ofree=function(){return(T._ofree=T.asm.ofree).apply(null,arguments)},T._getLastOnigError=function(){return(T._getLastOnigError=T.asm.getLastOnigError).apply(null,arguments)},T._createOnigScanner=function(){return(T._createOnigScanner=T.asm.createOnigScanner).apply(null,arguments)},T._freeOnigScanner=function(){return(T._freeOnigScanner=T.asm.freeOnigScanner).apply(null,arguments)},T._findNextOnigScannerMatch=function(){return(T._findNextOnigScannerMatch=T.asm.findNextOnigScannerMatch).apply(null,arguments)},T._findNextOnigScannerMatchDbg=function(){return(T._findNextOnigScannerMatchDbg=T.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},T.stackSave=function(){return(T.stackSave=T.asm.stackSave).apply(null,arguments)},T.stackRestore=function(){return(T.stackRestore=T.asm.stackRestore).apply(null,arguments)},T.stackAlloc=function(){return(T.stackAlloc=T.asm.stackAlloc).apply(null,arguments)},T.dynCall_jiji=function(){return(T.dynCall_jiji=T.asm.dynCall_jiji).apply(null,arguments)},T.UTF8ToString=function(e,n){return e?t(y,e,n):""},S=function e(){N||l(),N||(S=e)},T.preInit)for("function"==typeof T.preInit&&(T.preInit=[T.preInit]);T.preInit.length>0;)T.preInit.pop()();return l(),e.ready});e.exports=t}},t={},function n(r){var o,a=t[r];return void 0!==a?a.exports:(o=t[r]={exports:{}},e[r].call(o.exports,o,o.exports,n),o.exports)}(770);var e,t},{get exports(){return VF},set exports(e){VF=e}}.exports=UY(),GF={},{get exports(){return GF},set exports(e){GF=e}}.exports=(zY={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!{ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\i\\AppData\\Roaming",ChocolateyInstall:"C:\\ProgramData\\chocolatey",ChocolateyLastPathUpdate:'"133236781557883687"',CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"CANISMINOR-PRO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",CONDA_PROMPT_MODIFIER:"False",CUDA_PATH:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",CUDA_PATH_V11_8:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8",CUDA_PATH_V12_1:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EFC_9956:"1",FIG_JETBRAINS_SHELL_INTEGRATION:"1",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",HOME:"C:\\Users\\i",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\i",IDEA_INITIAL_DIRECTORY:"C:\\WINDOWS\\system32",INIT_CWD:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",INTEL_DEV_REDIST:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",LOCALAPPDATA:"C:\\Users\\i\\AppData\\Local",LOGONSERVER:"\\\\CANISMINOR-PRO",MIC_LD_LIBRARY_PATH:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",NDI_RUNTIME_DIR_V2:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V3:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V4:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V5:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_PATH:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@4.3.9_@types+node@20.3.3_terser@5.18.2\\node_modules\\vite\\bin\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@4.3.9_@types+node@20.3.3_terser@5.18.2\\node_modules\\vite\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@4.3.9_@types+node@20.3.3_terser@5.18.2\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\bin\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\node_modules",npm_command:"run-script",npm_config_lockfile:"",npm_config_node_gyp:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_registry:"https://registry.npmmirror.com",npm_config_resolution_mode:"highest",npm_config_user_agent:"pnpm/8.6.1 npm/? node/v18.15.0 win32 x64",npm_execpath:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build",npm_lifecycle_script:"vite build",npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_author:"canisminor1990 ",npm_package_bugs_url:"https://github.com/canisminor1990/sd-webui-lobe-theme/issues/new",npm_package_description:"The modern theme for stable diffusion webui, legacy verison a.k.a kitchen theme",npm_package_devDependencies_ahooks:"^3",npm_package_devDependencies_antd:"^5",npm_package_devDependencies_antd_style:"latest",npm_package_devDependencies_babel_plugin_antd_style:"^1",npm_package_devDependencies_babel_plugin_styled_components:"^2",npm_package_devDependencies_commitlint:"^17",npm_package_devDependencies_concurrently:"^8",npm_package_devDependencies_eslint:"^8",npm_package_devDependencies_fast_deep_equal:"^3",npm_package_devDependencies_husky:"^8",npm_package_devDependencies_i18next:"^23",npm_package_devDependencies_i18next_http_backend:"^2.2.1",npm_package_devDependencies_lint_staged:"^13",npm_package_devDependencies_lodash_es:"^4",npm_package_devDependencies_lucide_react:"latest",npm_package_devDependencies_lucide_static:"latest",npm_package_devDependencies_polished:"^4",npm_package_devDependencies_prettier:"^3",npm_package_devDependencies_query_string:"^8",npm_package_devDependencies_react:"^18",npm_package_devDependencies_react_dom:"^18",npm_package_devDependencies_react_helmet:"^6",npm_package_devDependencies_react_i18next:"^13",npm_package_devDependencies_react_layout_kit:"^1",npm_package_devDependencies_react_rnd:"^10",npm_package_devDependencies_react_tag_input:"^6",npm_package_devDependencies_remark:"^14",npm_package_devDependencies_remark_cli:"^11",npm_package_devDependencies_semantic_release:"^21",npm_package_devDependencies_semver:"^7.5.4",npm_package_devDependencies_styled_components:"^6",npm_package_devDependencies_stylelint:"^15.10",npm_package_devDependencies_swr:"^2",npm_package_devDependencies_terser:"^5",npm_package_devDependencies_typescript:"^5",npm_package_devDependencies_vite:"^4",npm_package_devDependencies_zustand:"^4",npm_package_devDependencies__babel_plugin_syntax_import_assertions:"^7",npm_package_devDependencies__commitlint_cli:"^17",npm_package_devDependencies__lobehub_i18n_cli:"latest",npm_package_devDependencies__lobehub_lint:"latest",npm_package_devDependencies__lobehub_ui:"latest",npm_package_devDependencies__types_lodash_es:"^4",npm_package_devDependencies__types_node:"^20",npm_package_devDependencies__types_react:"^18",npm_package_devDependencies__types_react_dom:"^18",npm_package_devDependencies__types_react_helmet:"^6",npm_package_devDependencies__types_react_tag_input:"^6",npm_package_devDependencies__types_semver:"^7.5.0",npm_package_devDependencies__types_styled_components:"^5",npm_package_devDependencies__vitejs_plugin_react:"^4",npm_package_files_0:"javascript",npm_package_homepage:"https://github.com/canisminor1990/sd-webui-lobe-theme",npm_package_keywords_0:"stable-diffusion-webui",npm_package_keywords_1:"sd-webui-kitchen-theme",npm_package_keywords_2:"kitchen-theme",npm_package_keywords_3:"extensions",npm_package_license:"AGPL3",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_lint_staged____js_jsx__1:"stylelint --fix --allow-empty-input",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_main:"javascript/main.js",npm_package_name:"sd-webui-lobe-theme",npm_package_peerDependencies_antd:">=5",npm_package_peerDependencies_antd_style:">=3",npm_package_peerDependencies_react:">=18",npm_package_peerDependencies_react_dom:">=18",npm_package_private:"true",npm_package_publishConfig_access:"public",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_repository_type:"git",npm_package_repository_url:"https://github.com/canisminor1990/sd-webui-lobe-theme.git",npm_package_scripts_build:"vite build",npm_package_scripts_dev:"vite",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",npm_package_scripts_i18n:"lobe-i18n",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_lint_md:"remark . --quiet --output",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',npm_package_scripts_prepare:"husky install",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_scripts_release:"semantic-release",npm_package_scripts_start:"npm run dev",npm_package_scripts_test:"npm run type-check",npm_package_scripts_type_check:"tsc --noEmit",npm_package_sideEffects:"false",npm_package_version:"2.8.1",NUMBER_OF_PROCESSORS:"32",NVAFX_SDK_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Audio Effects SDK",NVTOOLSEXT_PATH:"C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\",NVVFX_MODEL_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Video Effects\\models",OneDrive:"C:\\Users\\i\\OneDrive",OneDriveConsumer:"C:\\Users\\i\\OneDrive",OPENAI_API_KEY:'"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"',OS:"Windows_NT",Path:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\registry.npmmirror.com+pnpm@8.6.1\\node_modules\\pnpm\\dist\\node-gyp-bin;C:\\Users\\i\\AppData\\Local\\oh-my-posh;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\cudnn\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\cudnn\\bin;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\nodejs\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.3.0\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Graphviz\\bin;C:\\Users\\i\\AppData\\Local\\pnpm;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\;c:\\users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\jetbrains\\toolbox\\scripts;c:\\users\\i\\appdata\\roaming\\npm;c:\\users\\i\\appdata\\local\\programs\\oh-my-posh\\bin;;C:\\Users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\microsoft\\winget\\links;C:\\Users\\i\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\i\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i\\AppData\\Local\\Programs\\oh-my-posh\\bin;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\i\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",POSH_AZURE_ENABLED:"False",POSH_CURSOR_COLUMN:"1",POSH_CURSOR_LINE:"16",POSH_GIT_ENABLED:"True",POSH_INSTALLER:"winget",POSH_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh",POSH_PID:"9552",POSH_SHELL_VERSION:"7.3.5",POSH_THEME:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes\\mytheme.omp.json",POSH_THEMES_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes",POWERLINE_COMMAND:"oh-my-posh",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Pro",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 183 Stepping 1, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"b701",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"D:\\本地资源库\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\i\\AppData\\Local\\Temp",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"de5ef029-91db-4d5b-b361-47c7ca21c8ae",TMP:"C:\\Users\\i\\AppData\\Local\\Temp",USERDOMAIN:"CANISMINOR-PRO",USERDOMAIN_ROAMINGPROFILE:"CANISMINOR-PRO",USERNAME:"i",USERPROFILE:"C:\\Users\\i",windir:"C:\\WINDOWS"}.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){n.getLanguageId(e),n.getTokenType(e),n.getFontStyle(e),n.getForeground(e),n.getBackground(e)},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,o,a,i,s){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),d=n.getForeground(e),m=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==a&&(p=a),0!==i&&(d=i),0!==s&&(m=s),(l<<0|c<<8|u<<10|p<<11|d<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class a{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new o(t,n)})),this._defaultAttributes=new o(e,8),this._embeddedLanguagesMatcher=new i(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?a._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(a.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=a,a._NULL_SCOPE_METADATA=new o(0,0),a.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class i{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{function r(e,t,n,r,a){const i=c.createMatchers(t,o),s=p.RuleFactory.getCompiledRuleId(n,r,a.repository);for(const o of i)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:a,priority:o.priority})}function o(e,t){if(t.length{for(let r=n;rn&&e.substr(0,n)===t&&"."===e[n]}function i(e,t){return(e=m.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=n(350),l=n(36),c=n(736),u=n(44),p=n(792),d=n(583),m=n(878),f=n(996),g=n(47);t.createGrammar=function(e,t,n,r,o,a,i,s){return new h(e,t,n,r,o,a,i,s)};class h{constructor(e,t,n,r,a,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new f.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=i(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const i of Object.keys(a)){const e=c.createMatchers(i,o);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:a[i]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const o=n.injections;if(o)for(let t in o)r(e,t,o[t],this,n);const a=this._grammarRepository.injections(t);a&&a.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&r(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0))for(const e of this._injections);return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(p.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[p.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=i(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let o;if(-1===this._rootId&&(this._rootId=p.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==_.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=l.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null);let i;i=a?b.createRootAndLookUpScopeName(a,r,this):b.createRoot("unknown",r),t=new _(null,this._rootId,-1,-1,!1,null,i,i)}const a=this.createOnigString(e+="\n"),i=a.content.length,s=new y(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=g._tokenizeString(this,a,o,0,t,s,!0,r);return u.disposeOnigString(a),{lineLength:i,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}t.Grammar=h;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new d.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new d.ScopeStack(null,e),a=n.themeProvider.themeMatch(o),i=b.mergeAttributes(t,r,a);return new b(null,o,i)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,a=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,a=n.backgroundId),l.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,o,a)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const o of n)r=b._pushAttributed(r,o,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),o=e.scopePath.push(t),a=n.themeProvider.themeMatch(o),i=b.mergeAttributes(e.tokenAttributes,r,a);return new b(e,o,i)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class _{constructor(e,t,n,r,o,a,i,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=i,this.contentNameScopesList=s,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&_._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){_._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,a,i){return new _(this,e,t,n,r,o,a,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new _(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=_,_.NULL=new _(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):c.createMatchers(e,o).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>c.createMatchers(e,o).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class y{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=s.DebugFlags.InDebugMode?t:null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e.tokenAttributes,o=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(r=l.EncodedTokenAttributes.set(r,0,l.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(r=l.EncodedTokenAttributes.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const t=e.getScopeNames();for(let e=0;e0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r{function r(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof c?a({baseGrammar:s,selfGrammar:i},r):o(e.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const l=n.injections(e.scopeName);if(l)for(const o of l)r.add(new c(o))}function o(e,t,n){t.repository&&t.repository[e]&&i([t.repository[e]],t,n)}function a(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&i(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&i(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function i(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?l.mergeObjects({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&i(r.patterns,{...t,repository:e},n);const p=r.include;if(!p)continue;const d=s(p);switch(d.kind){case 0:a({...t,selfGrammar:t.baseGrammar},n);break;case 1:a(t,n);break;case 2:o(d.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===d.kind?o(d.ruleName,i,n):a(i,n)}else n.add(4===d.kind?new u(d.scopeName,d.ruleName):new c(d.scopeName))}}}function s(e){if("$base"===e)return new d;if("$self"===e)return new m;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new f(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new h(n,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const l=n(878);class c{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=c;class u{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=u;class p{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}t.ExternalReferenceCollector=p,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new c(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new p;for(const n of e)r(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof c){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class d{constructor(){this.kind=0}}t.BaseReference=d;class m{constructor(){this.kind=1}}t.SelfReference=m;class f{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=f;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class h{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}t.TopLevelRepositoryReference=h,t.parseInclude=s},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{function r(e,t,n,r,i,c,m,f){function g(){const a=function(e,t,n,r,a,i){const s=function(e,t,n,r,a,i){const s=a.getRule(e),{ruleScanner:c,findOptions:u}=o(s,e,a.endRule,n,r===i);l.DebugFlags.InDebugMode&&p.performanceNow();const d=c.findNextMatchSync(t,r,u);return l.DebugFlags.InDebugMode&&p.performanceNow(),d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}(e,t,n,r,a,i),c=e.getInjections();if(0===c.length)return s;const u=function(e,t,n,r,a,i,s){let l,c=Number.MAX_VALUE,u=null,p=0;const d=i.contentNameScopesList.getScopeNames();for(let m=0,f=e.length;m=c)&&(c=_,u=b.captureIndices,l=b.ruleId,p=i.priority,c===a))break}return u?{priorityMatch:-1===p,captureIndices:u,matchedRuleId:l}:null}(c,e,t,n,r,a,i);if(!u)return s;if(!s)return u;const d=s.captureIndices[0].start,m=u.captureIndices[0].start;return m0)&&d[0].end>r;if(m===u.endRuleId){const o=i.getRule(e);c.produce(i,d[0].start),i=i.withContentNameScopesList(i.nameScopesList),s(e,t,n,i,c,o.endCaptures,d),c.produce(i,d[0].end);const a=i;if(i=i.parent,_=a.getAnchorPos(),!f&&a.getEnterPos()===r)return c.produce(i=a,h),void(b=!0)}else{const o=e.getRule(m);c.produce(i,d[0].start);const a=i,l=o.getName(t.content,d),p=i.contentNameScopesList.pushAttributed(l,e);if(i=i.push(m,r,_,d[0].end===h,null,p,p),o instanceof u.BeginEndRule){const r=o;s(e,t,n,i,c,r.beginCaptures,d),c.produce(i,d[0].end),_=d[0].end;const l=r.getContentName(t.content,d),u=p.pushAttributed(l,e);if(i=i.withContentNameScopesList(u),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,d))),!f&&a.hasSameRuleAs(i))return i=i.pop(),c.produce(i,h),void(b=!0)}else if(o instanceof u.BeginWhileRule){const r=o;s(e,t,n,i,c,r.beginCaptures,d),c.produce(i,d[0].end),_=d[0].end;const l=r.getContentName(t.content,d),u=p.pushAttributed(l,e);if(i=i.withContentNameScopesList(u),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,d))),!f&&a.hasSameRuleAs(i))return i=i.pop(),c.produce(i,h),void(b=!0)}else if(s(e,t,n,i,c,o.captures,d),c.produce(i,d[0].end),i=i.pop(),!f)return i=i.safePop(),c.produce(i,h),void(b=!0)}d[0].end>r&&(r=d[0].end,n=!1)}const h=t.content.length;let b=!1,_=-1;if(m){const o=function(e,t,n,r,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let a=o;a;a=a.pop()){const t=a.getRule(e);t instanceof u.BeginWhileRule&&c.push({rule:t,stack:a})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:d}=a(p.rule,e,p.stack.endRule,n,r===l),m=c.findNextMatchSync(t,r,d);if(!m){o=p.stack.pop();break}if(m.ruleId!==u.whileRuleId){o=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),s(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}(e,t,n,r,i,c);i=o.stack,r=o.linePos,n=o.isFirstLine,_=o.anchorPosition}const y=Date.now();for(;!b;){if(0!==f&&Date.now()-y>f)return new d(i,!0);g()}return new d(i,!1)}function o(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:i(r,o)}:{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function a(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:i(r,o)}:{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function i(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function s(e,t,n,o,a,i,s){if(0===i.length)return;const l=t.content,u=Math.min(i.length,s.length),p=[],d=s[0].end;for(let f=0;fd)break;for(;p.length>0&&p[p.length-1].endPos<=u.start;)a.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?a.produceFromScopes(p[p.length-1].scopes,u.start):a.produce(o,u.start),t.retokenizeCapturedWithRuleId){const i=t.getName(l,s),p=o.contentNameScopesList.pushAttributed(i,e),d=t.getContentName(l,s),m=p.pushAttributed(d,e),f=o.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,p,m),g=e.createOnigString(l.substring(0,u.end));r(e,g,n&&0===u.start,u.start,f,a,!1,0),c.disposeOnigString(g);continue}const g=t.getName(l,s);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:o.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,u.end))}}for(;p.length>0;)a.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const l=n(350),c=n(44),u=n(792),p=n(878);class d{constructor(e,t){this.stack=e,this.stoppedEarly=t}}t._tokenizeString=r;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,o=e.source,a=e.pos,i=e.len,s=e.line,l=e.char;for(;;){if(a>=i)return!1;if(r=o.charCodeAt(a),32!==r&&9!==r&&13!==r){if(10!==r)break;a++,s++,l=0}else a++,l++}if(t.offset=a,t.line=s,t.char=l,34===r){for(t.type=1,a++,l++;;){if(a>=i)return!1;if(r=o.charCodeAt(a),a++,l++,92!==r){if(34===r)break}else a++,l++}t.value=o.substring(t.offset+1,a-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,a++,l++;else if(123===r)t.type=3,a++,l++;else if(93===r)t.type=4,a++,l++;else if(125===r)t.type=5,a++,l++;else if(58===r)t.type=6,a++,l++;else if(44===r)t.type=7,a++,l++;else if(110===r){if(t.type=8,a++,l++,r=o.charCodeAt(a),117!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;a++,l++}else if(116===r){if(t.type=9,a++,l++,r=o.charCodeAt(a),114!==r)return!1;if(a++,l++,r=o.charCodeAt(a),117!==r)return!1;if(a++,l++,r=o.charCodeAt(a),101!==r)return!1;a++,l++}else if(102===r){if(t.type=10,a++,l++,r=o.charCodeAt(a),97!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;if(a++,l++,r=o.charCodeAt(a),115!==r)return!1;if(a++,l++,r=o.charCodeAt(a),101!==r)return!1;a++,l++}else for(t.type=11;;){if(a>=i)return!1;if(r=o.charCodeAt(a),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;a++,l++}return t.len=a-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=a,e.line=s,e.char=l,!0}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,i){function s(){f.push(d),g.push(m)}function l(){d=f.pop(),m=g.pop()}function c(e){n(u,e)}let u=new o(e),p=new a,d=0,m=null,f=[],g=[];for(;r(u,p);){if(0===d){if(null!==m&&c("too many constructs in root"),3===p.type){m={},i&&(m.$vscodeTextmateLocation=p.toLocation(t)),s(),d=1;continue}if(2===p.type){m=[],s(),d=4;continue}c("unexpected token in root")}if(2===d){if(5===p.type){l();continue}if(7===p.type){d=3;continue}c("expected , or }")}if(1===d||3===d){if(1===d&&5===p.type){l();continue}if(1===p.type){let e=p.value;if(r(u,p)&&6===p.type||c("expected colon"),r(u,p)||c("expected value"),d=2,1===p.type){m[e]=p.value;continue}if(8===p.type){m[e]=null;continue}if(9===p.type){m[e]=!0;continue}if(10===p.type){m[e]=!1;continue}if(11===p.type){m[e]=parseFloat(p.value);continue}if(2===p.type){let t=[];m[e]=t,s(),d=4,m=t;continue}if(3===p.type){let n={};i&&(n.$vscodeTextmateLocation=p.toLocation(t)),m[e]=n,s(),d=1,m=n;continue}}c("unexpected token in dict")}if(5===d){if(4===p.type){l();continue}if(7===p.type){d=6;continue}c("expected , or ]")}if(4===d||6===d){if(4===d&&4===p.type){l();continue}if(d=5,1===p.type){m.push(p.value);continue}if(8===p.type){m.push(null);continue}if(9===p.type){m.push(!0);continue}if(10===p.type){m.push(!1);continue}if(11===p.type){m.push(parseFloat(p.value));continue}if(2===p.type){let e=[];m.push(e),s(),d=4,m=e;continue}if(3===p.type){let e={};i&&(e.$vscodeTextmateLocation=p.toLocation(t)),m.push(e),s(),d=1,m=e;continue}c("unexpected token in array")}c("unknown state")}return 0!==g.length&&c("unclosed constructs"),m};class o{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class a{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const a=n(391),i=n(50),s=n(652),l=n(583),c=n(965);o(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new s.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new a.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const a=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;a.Q.length>0;)await Promise.all(a.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),a.processQueue();return this._grammarForScopeName(e,t,n,r,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},t.INITIAL=a.StateStack.NULL,t.parseRawGrammar=i.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){function r(){if("-"===s){s=i.next();const e=r();return t=>!!e&&!e(t)}if("("===s){s=i.next();const e=function(){const e=[];let t=o();for(;t&&(e.push(t),"|"===s||","===s);){do{s=i.next()}while("|"===s||","===s);t=o()}return t=>e.some((e=>e(t)))}();return")"===s&&(s=i.next()),e}if(n(s)){const e=[];do{e.push(s),s=i.next()}while(n(s));return n=>t(e,n)}return null}function o(){const e=[];let t=r();for(;t;)e.push(t),t=r();return t=>e.every((e=>e(t)))}const a=[],i=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let s=i.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1}s=i.next()}let t=o();if(a.push({matcher:t,priority:e}),","!==s)break;s=i.next()}return a}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),a=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(i=e,o.DebugFlags.InDebugMode?a.parseJSON(i,t,!0):JSON.parse(i)):(n=e,o.DebugFlags.InDebugMode?r.parseWithLocation(n,t,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,i}},69:(e,t)=>{function n(e,t,n){function r(t){if(null===n)C+=t;else for(;t>0;)10===e.charCodeAt(C)?(C++,D++,x=0):(C++,x++),t--}function o(e){null===n?C=e:r(e-C)}function a(){for(;C");u()}function m(){return 1===S||2!==S?p("unexpected "):void u()}function f(e){if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function g(e){if(isNaN(e))return p("cannot parse float");if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function h(e){if(isNaN(e))return p("cannot parse integer");if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function b(e){if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function _(e){if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function y(e){if(1===S){if(null===I)return p("missing ");E[I]=e,I=null}else 2===S?E.push(e):E=e}function v(){let e=l(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function w(e){if(e.isClosed)return"";let t=l(""),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}const k=e.length;let C=0,D=1,x=0;k>0&&65279===e.charCodeAt(0)&&(C=1);let S=0,E=null,O=[],P=[],I=null;const N=function(){if(null===I)return p("missing ");let e={};null!==n&&(e[n]={filename:t,line:D,char:x}),E[I]=e,I=null,c(1,e)},A=function(){if(null===I)return p("missing ");let e=[];E[I]=e,I=null,c(2,e)},R=function(){let e={};null!==n&&(e[n]={filename:t,line:D,char:x}),E.push(e),c(1,e)},T=function(){let e=[];E.push(e),c(2,e)};for(;C=k));){const o=e.charCodeAt(C);if(r(1),60!==o)return p("expected <");if(C>=k)return p("unexpected end of input");const l=e.charCodeAt(C);if(63===l){r(1),s("?>");continue}if(33===l){if(r(1),i("--")){s("--\x3e");continue}s(">");continue}if(47===l){if(r(1),a(),i("plist")){s(">");continue}if(i("dict")){s(">"),d();continue}if(i("array")){s(">"),m();continue}return p("unexpected closed tag")}let u=v();switch(u.name){case"dict":1===S?N():2===S?R():(E={},null!==n&&(E[n]={filename:t,line:D,char:x}),c(1,E)),u.isClosed&&d();continue;case"array":1===S?A():2===S?T():(E=[],c(2,E)),u.isClosed&&m();continue;case"key":j=w(u),1!==S?p("unexpected "):null!==I?p("too many "):I=j;continue;case"string":f(w(u));continue;case"real":g(parseFloat(w(u)));continue;case"integer":h(parseInt(w(u),10));continue;case"date":b(new Date(w(u)));continue;case"data":_(w(u));continue;case"true":w(u),y(!0);continue;case"false":w(u),y(!1);continue}if(!/^plist/.test(u.name))return p("unexpected opened tag "+u.name)}var j;return E}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,o,a){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,r.createGrammar(e,i,t,n,o,a,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),o=n(965),a=/\\(\d+)/,i=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class s{constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=s;class l extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends s{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new f(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends s{constructor(e,t,n,r,o,a,i,s,l,c){super(e,t,n,r),this._begin=new f(o,this.id),this.beginCaptures=a,this._end=new f(i||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&this._cachedCompiledPatterns.setSource(this.applyEndPatternLast?this._cachedCompiledPatterns.length()-1:0,t),this._cachedCompiledPatterns}}t.BeginEndRule=p;class d extends s{constructor(e,n,r,o,a,i,s,l,c){super(e,n,r,o),this._begin=new f(a,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new f(s,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=d;class m{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new l(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((o=>{if(e.id=o,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let o=e.patterns;return void 0===o&&e.include&&(o=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(o,t,n))}return e.while?new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,n),m._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,m._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let o=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>o&&(o=e)}for(let e=0;e<=o;e++)r[e]=null;for(const a in e){if("$vscodeTextmateLocation"===a)continue;const o=parseInt(a,10);let i=0;e[a].patterns&&(i=m.getCompiledRuleId(e[a],t,n)),r[o]=m.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,i)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let a=0,i=e.length;ae.substring(t.start,t.end)));return i.lastIndex=0,this.source.replace(i,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],a=[],i=[],s=[];for(e=0,t=this.source.length;ee.source));this._cached=new h(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new h(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class h{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t{function r(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}function o(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,i=t.length;o1&&(p=a.slice(0,a.length-1),p.reverse()),n[r++]=new c(i,p,o,s,l,u)}}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=n(878);class i{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(o(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=a.strcmp(e.scope,t.scope);return 0!==n?n:(n=a.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let s=new u(t),c=new l(n,s.getId(r),s.getId(o)),m=new d(new p(0,null,-1,0,0),[]);for(let a=0,i=e.length;afunction(e,t){if(null===t)return!0;let n=0,o=t[n];for(;e;){if(r(e.scopeName,o)){if(n++,n===t.length)return!0;o=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return t?new l(t.fontStyle,t.foreground,t.background):null}}t.Theme=i;class s{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;ne||(this.scopeDepth=e),-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=p;class d{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let o=null===n?0:n.length,a=null===r?0:r.length;if(o===a)for(let e=0;e{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;rt?1:0}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let o=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;t.RegexSource=class{static hasCaptures(e){return null!==e&&(o.lastIndex=0,o.test(e))}static replaceCaptures(e,t,n){return e.replace(o,((e,r,o,a)=>{let i=n[parseInt(r||o,10)];if(!i)return e;{let e=t.substring(i.start,i.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=r,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let o=0;o(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(qF||{});class x6{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){x6.getLanguageId(e),x6.getTokenType(e),x6.getFontStyle(e),x6.getForeground(e),x6.getBackground(e)}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,o,a){let i=x6.getLanguageId(e),s=x6.getTokenType(e),l=x6.getFontStyle(e),c=x6.getForeground(e),u=x6.getBackground(e);return 0!==t&&(i=t),0!==n&&(s=8===n?0:n),-1!==r&&(l=r),0!==o&&(c=o),0!==a&&(u=a),(i<<0|s<<8|l<<11|(x6.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}(BY=XF||(XF={}))[BY.lineFeed=10]="lineFeed",BY[BY.carriageReturn=13]="carriageReturn",BY[BY.space=32]="space",BY[BY._0=48]="_0",BY[BY._1=49]="_1",BY[BY._2=50]="_2",BY[BY._3=51]="_3",BY[BY._4=52]="_4",BY[BY._5=53]="_5",BY[BY._6=54]="_6",BY[BY._7=55]="_7",BY[BY._8=56]="_8",BY[BY._9=57]="_9",BY[BY.a=97]="a",BY[BY.b=98]="b",BY[BY.c=99]="c",BY[BY.d=100]="d",BY[BY.e=101]="e",BY[BY.f=102]="f",BY[BY.g=103]="g",BY[BY.h=104]="h",BY[BY.i=105]="i",BY[BY.j=106]="j",BY[BY.k=107]="k",BY[BY.l=108]="l",BY[BY.m=109]="m",BY[BY.n=110]="n",BY[BY.o=111]="o",BY[BY.p=112]="p",BY[BY.q=113]="q",BY[BY.r=114]="r",BY[BY.s=115]="s",BY[BY.t=116]="t",BY[BY.u=117]="u",BY[BY.v=118]="v",BY[BY.w=119]="w",BY[BY.x=120]="x",BY[BY.y=121]="y",BY[BY.z=122]="z",BY[BY.A=65]="A",BY[BY.B=66]="B",BY[BY.C=67]="C",BY[BY.D=68]="D",BY[BY.E=69]="E",BY[BY.F=70]="F",BY[BY.G=71]="G",BY[BY.H=72]="H",BY[BY.I=73]="I",BY[BY.J=74]="J",BY[BY.K=75]="K",BY[BY.L=76]="L",BY[BY.M=77]="M",BY[BY.N=78]="N",BY[BY.O=79]="O",BY[BY.P=80]="P",BY[BY.Q=81]="Q",BY[BY.R=82]="R",BY[BY.S=83]="S",BY[BY.T=84]="T",BY[BY.U=85]="U",BY[BY.V=86]="V",BY[BY.W=87]="W",BY[BY.X=88]="X",BY[BY.Y=89]="Y",BY[BY.Z=90]="Z",BY[BY.asterisk=42]="asterisk",BY[BY.backslash=92]="backslash",BY[BY.closeBrace=125]="closeBrace",BY[BY.closeBracket=93]="closeBracket",BY[BY.colon=58]="colon",BY[BY.comma=44]="comma",BY[BY.dot=46]="dot",BY[BY.doubleQuote=34]="doubleQuote",BY[BY.minus=45]="minus",BY[BY.openBrace=123]="openBrace",BY[BY.openBracket=91]="openBracket",BY[BY.plus=43]="plus",BY[BY.slash=47]="slash",BY[BY.formFeed=12]="formFeed",BY[BY.tab=9]="tab",(KF||(KF={})).DEFAULT={allowTrailingComma:!1},(WY=YF||(YF={}))[WY.None=0]="None",WY[WY.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",WY[WY.UnexpectedEndOfString=2]="UnexpectedEndOfString",WY[WY.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",WY[WY.InvalidUnicode=4]="InvalidUnicode",WY[WY.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",WY[WY.InvalidCharacter=6]="InvalidCharacter",(VY=JF||(JF={}))[VY.OpenBraceToken=1]="OpenBraceToken",VY[VY.CloseBraceToken=2]="CloseBraceToken",VY[VY.OpenBracketToken=3]="OpenBracketToken",VY[VY.CloseBracketToken=4]="CloseBracketToken",VY[VY.CommaToken=5]="CommaToken",VY[VY.ColonToken=6]="ColonToken",VY[VY.NullKeyword=7]="NullKeyword",VY[VY.TrueKeyword=8]="TrueKeyword",VY[VY.FalseKeyword=9]="FalseKeyword",VY[VY.StringLiteral=10]="StringLiteral",VY[VY.NumericLiteral=11]="NumericLiteral",VY[VY.LineCommentTrivia=12]="LineCommentTrivia",VY[VY.BlockCommentTrivia=13]="BlockCommentTrivia",VY[VY.LineBreakTrivia=14]="LineBreakTrivia",VY[VY.Trivia=15]="Trivia",VY[VY.Unknown=16]="Unknown",VY[VY.EOF=17]="EOF";const S6=function(e,t=[],n=KF.DEFAULT){function r(e){Array.isArray(a)?a.push(e):null!==o&&(a[o]=e)}let o=null,a=[];const i=[];return function(e,t,n=KF.DEFAULT){function r(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>p.slice())):()=>!0}function a(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function i(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>p.slice())):()=>!0}function s(){for(;;){const e=u.scan();switch(u.getTokenError()){case 4:l(14);break;case 5:l(15);break;case 3:l(13);break;case 1:w||l(11);break;case 2:l(12);break;case 6:l(16)}switch(e){case 12:case 13:w?l(10):y();break;case 16:l(1);break;case 15:case 14:break;default:return e}}}function l(e,t=[],n=[]){if(v(e),t.length+n.length>0){let e=u.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){s();break}if(-1!==n.indexOf(e))break;e=s()}}}function c(e){const t=u.getTokenValue();return e?b(t):(m(t),p.push(t)),s(),!0}const u=function(e,t=!1){function n(t,n){let r=0,o=0;for(;r=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}i++,r++}return r=a)return l=a,c=17;let t=e.charCodeAt(i);if(of(t)){do{i++,s+=String.fromCharCode(t),t=e.charCodeAt(i)}while(of(t));return c=15}if(af(t))return i++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(i)&&(i++,s+="\n"),u++,d=i,c=14;switch(t){case 123:return i++,c=1;case 125:return i++,c=2;case 91:return i++,c=3;case 93:return i++,c=4;case 58:return i++,c=6;case 44:return i++,c=5;case 34:return i++,s=function(){let t="",r=i;for(;;){if(i>=a){t+=e.substring(r,i),f=2;break}const o=e.charCodeAt(i);if(34===o){t+=e.substring(r,i),i++;break}if(92!==o){if(o>=0&&o<=31){if(af(o)){t+=e.substring(r,i),f=2;break}f=6}i++}else{if(t+=e.substring(r,i),i++,i>=a){f=2;break}switch(e.charCodeAt(i++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=n(4,!0);e>=0?t+=String.fromCharCode(e):f=4;break;default:f=5}r=i}}return t}(),c=10;case 47:const r=i-1;if(47===e.charCodeAt(i+1)){for(i+=2;ii,scan:t?function(){let e;do{e=r()}while(e>=12&&e<=15);return e}:r,getToken:()=>c,getTokenValue:()=>s,getTokenOffset:()=>l,getTokenLength:()=>i-l,getTokenStartLine:()=>p,getTokenStartCharacter:()=>l-m,getTokenError:()=>f}}(e,!1),p=[],d=o(t.onObjectBegin),m=i(t.onObjectProperty),f=r(t.onObjectEnd),g=o(t.onArrayBegin),h=r(t.onArrayEnd),b=i(t.onLiteralValue),_=a(t.onSeparator),y=r(t.onComment),v=a(t.onError),w=n&&n.disallowComments,k=n&&n.allowTrailingComma;s(),17===u.getToken()?n.allowEmptyContent||l(4,[],[]):function e(){switch(u.getToken()){case 3:return function(){g(),s();let t=!0,n=!1;for(;4!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(n||l(4,[],[]),_(","),s(),4===u.getToken()&&k)break}else n&&l(6,[],[]);t?(p.push(0),t=!1):p[p.length-1]++,e()||l(4,[],[4,5]),n=!0}return h(),t||p.pop(),4!==u.getToken()?l(8,[4],[]):s(),!0}();case 1:return function(){d(),s();let t=!1;for(;2!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(t||l(4,[],[]),_(","),s(),2===u.getToken()&&k)break}else t&&l(6,[],[]);(10!==u.getToken()?(l(3,[],[2,5]),!1):(c(!1),6===u.getToken()?(_(":"),s(),e()||l(4,[],[2,5])):l(5,[],[2,5]),p.pop(),!0))||l(4,[],[2,5]),t=!0}return f(),2!==u.getToken()?l(7,[2],[]):s(),!0}();case 10:return c(!0);default:return function(){switch(u.getToken()){case 11:const e=u.getTokenValue();let t=Number(e);isNaN(t)&&(l(2),t=0),b(t);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return s(),!0}()}}()?17!==u.getToken()&&l(9,[],[]):l(4,[],[])}(e,{onObjectBegin:()=>{const e={};r(e),i.push(a),a=e,o=null},onObjectProperty:e=>{o=e},onObjectEnd:()=>{a=i.pop()},onArrayBegin:()=>{const e=[];r(e),i.push(a),a=e,o=null},onArrayEnd:()=>{a=i.pop()},onLiteralValue:r,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),a[0]};(GY=QF||(QF={}))[GY.InvalidSymbol=1]="InvalidSymbol",GY[GY.InvalidNumberFormat=2]="InvalidNumberFormat",GY[GY.PropertyNameExpected=3]="PropertyNameExpected",GY[GY.ValueExpected=4]="ValueExpected",GY[GY.ColonExpected=5]="ColonExpected",GY[GY.CommaExpected=6]="CommaExpected",GY[GY.CloseBraceExpected=7]="CloseBraceExpected",GY[GY.CloseBracketExpected=8]="CloseBracketExpected",GY[GY.EndOfFileExpected=9]="EndOfFileExpected",GY[GY.InvalidCommentToken=10]="InvalidCommentToken",GY[GY.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",GY[GY.UnexpectedEndOfString=12]="UnexpectedEndOfString",GY[GY.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",GY[GY.InvalidUnicode=14]="InvalidUnicode",GY[GY.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",GY[GY.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process;let E6="";const O6="dist/";let P6=null;const I6={light:"#333333",dark:"#bbbbbb"},N6={light:"#fffffe",dark:"#1e1e1e"};class A6{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await cf(e)}(D6.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}const R6={pre:({className:e,style:t,children:n})=>`
${n}
`,code:({children:e})=>`${e}`,line:({className:e,children:t})=>`${t}`,token:({style:e,children:t})=>`${t}`},T6={"&":"&","<":"<",">":">",'"':""","'":"'"};class j6 extends GF.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=D6.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await uf(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=pf(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){var t;const n={embeddedLanguages:null==(t=e.embeddedLangs)?void 0:t.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=r,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=r}))}async loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.values());for(const n of t)this._resolver.addLanguage(n);for(const n of t)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}E6=(qY="https://cdn.jsdelivr.net/npm/shiki-es@0.2.0/dist/assets/").endsWith("/")?qY:qY+"/";const $6=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}};return t=e(r,o,a),a};ZF={exports:{}},eL={},tL={exports:{}},nL={},rL=ey,oL="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},aL=rL.useState,iL=rL.useEffect,sL=rL.useLayoutEffect,lL=rL.useDebugValue,cL="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=aL({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return sL((function(){o.value=n,o.getSnapshot=t,yf(o)&&a({inst:o})}),[e,n,t]),iL((function(){return yf(o)&&a({inst:o}),e((function(){yf(o)&&a({inst:o})}))}),[e]),lL(n),n},nL.useSyncExternalStore=void 0!==rL.useSyncExternalStore?rL.useSyncExternalStore:cL,tL.exports=nL,uL=ey,pL="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},dL=tL.exports.useSyncExternalStore,mL=uL.useRef,fL=uL.useEffect,gL=uL.useMemo,hL=uL.useDebugValue,eL.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a,i,s=mL(null);return null===s.current?s.current=a={hasValue:!1,value:null}:a=s.current,s=gL((function(){function e(e){var t,n;return l?(t=s,pL(i,e)?t:(n=r(e),void 0!==o&&o(t,n)?t:(i=e,s=n))):(l=!0,i=e,e=r(e),s=void 0!==o&&a.hasValue&&o(t=a.value,e)?t:e)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]),i=dL(e,s[0],s[1]),fL((function(){a.hasValue=!0,a.value=i}),[i]),hL(i),i},ZF.exports=eL;const F6=t(ZF.exports),{useSyncExternalStoreWithSelector:L6}=F6,M6=e=>{const t="function"==typeof e?(e=>e?$6(e):$6)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=L6(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ey.useDebugValue(r),r}(t,e,n);return Object.assign(n,t),n},U6=e=>e?M6(e):M6;bL={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},_L=function(e){var t=e?"dark":"light",n=bL.gray[t][11],r=bL.gray[t][7],o=e?bL.red[t][9]:bL.volcano[t][9],a=e?bL.gold[t][9]:bL.orange[t][9],i=e?bL.lime[t][9]:bL.green[t][9],s=e?bL.blue[t][9]:bL.geekblue[t][9];return{colors:{"editor.foreground":bL.gray[t][10]},name:t,semanticHighlighting:!0,semanticTokenColors:{"annotation:dart":{foreground:i},enumMember:{foreground:s},macro:{foreground:i},"parameter.label:dart":{foreground:r},"property:dart":{foreground:i},tomlArrayKey:{foreground:o},"variable.constant":{foreground:i},"variable.defaultLibrary":{foreground:o},"variable:dart":{foreground:i}},tokenColors:[{scope:"meta.embedded",settings:{foreground:r}},{name:"unison punctuation",scope:"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison",settings:{foreground:n}},{name:"haskell variable generic-type",scope:"variable.other.generic-type.haskell",settings:{foreground:s}},{name:"haskell storage type",scope:"storage.type.haskell",settings:{foreground:i}},{name:"support.variable.magic.python",scope:"support.variable.magic.python",settings:{foreground:n}},{name:"punctuation.separator.parameters.python",scope:"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python",settings:{foreground:r}},{name:"variable.parameter.function.language.special.self.python",scope:"variable.parameter.function.language.special.self.python",settings:{foreground:o}},{name:"variable.parameter.function.language.special.cls.python",scope:"variable.parameter.function.language.special.cls.python",settings:{foreground:o}},{name:"storage.modifier.lifetime.rust",scope:"storage.modifier.lifetime.rust",settings:{foreground:r}},{name:"support.function.std.rust",scope:"support.function.std.rust",settings:{foreground:a}},{name:"entity.name.lifetime.rust",scope:"entity.name.lifetime.rust",settings:{foreground:o}},{name:"variable.language.rust",scope:"variable.language.rust",settings:{foreground:n}},{name:"support.constant.edge",scope:"support.constant.edge",settings:{foreground:s}},{name:"regexp constant character-class",scope:"constant.other.character-class.regexp",settings:{foreground:n}},{name:"keyword.operator",scope:["keyword.operator.word"],settings:{foreground:s}},{name:"regexp operator.quantifier",scope:"keyword.operator.quantifier.regexp",settings:{foreground:i}},{name:"Text",scope:"variable.parameter.function",settings:{foreground:r}},{name:"Comment Markup Link",scope:"comment markup.link",settings:{foreground:r}},{name:"markup diff",scope:"markup.changed.diff",settings:{foreground:o}},{name:"diff",scope:"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff",settings:{foreground:a}},{name:"inserted.diff",scope:"markup.inserted.diff",settings:{foreground:i}},{name:"deleted.diff",scope:"markup.deleted.diff",settings:{foreground:n}},{name:"c++ function",scope:"meta.function.c,meta.function.cpp",settings:{foreground:n}},{name:"c++ block",scope:"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c",settings:{foreground:r}},{name:"js/ts punctuation separator key-value",scope:"punctuation.separator.key-value",settings:{foreground:r}},{name:"js/ts import keyword",scope:"keyword.operator.expression.import",settings:{foreground:a}},{name:"math js/ts",scope:"support.constant.math",settings:{foreground:o}},{name:"math property js/ts",scope:"support.constant.property.math",settings:{foreground:i}},{name:"js/ts variable.other.constant",scope:"variable.other.constant",settings:{foreground:o}},{name:"java type",scope:["storage.type.annotation.java","storage.type.object.array.java"],settings:{foreground:o}},{name:"java source",scope:"source.java",settings:{foreground:n}},{name:"java modifier.import",scope:"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java",settings:{foreground:r}},{name:"java modifier.import",scope:"meta.method.java",settings:{foreground:a}},{name:"java modifier.import",scope:"storage.modifier.import.java,storage.type.java,storage.type.generic.java",settings:{foreground:o}},{name:"java instanceof",scope:"keyword.operator.instanceof.java",settings:{foreground:s}},{name:"java variable.name",scope:"meta.definition.variable.name.java",settings:{foreground:n}},{name:"operator logical",scope:"keyword.operator.logical",settings:{foreground:s}},{name:"operator bitwise",scope:"keyword.operator.bitwise",settings:{foreground:s}},{name:"operator channel",scope:"keyword.operator.channel",settings:{foreground:s}},{name:"support.constant.property-value.scss",scope:"support.constant.property-value.scss,support.constant.property-value.css",settings:{foreground:i}},{name:"CSS/SCSS/LESS Operators",scope:"keyword.operator.css,keyword.operator.scss,keyword.operator.less",settings:{foreground:s}},{name:"css color standard name",scope:"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss",settings:{foreground:i}},{name:"css comma",scope:"punctuation.separator.list.comma.css",settings:{foreground:r}},{name:"css attribute-name.id",scope:"support.constant.color.w3c-standard-color-name.css",settings:{foreground:i}},{name:"css property-name",scope:"support.type.vendored.property-name.css",settings:{foreground:s}},{name:"js/ts module",scope:"support.module.node,support.type.object.module,support.module.node",settings:{foreground:o}},{name:"entity.name.type.module",scope:"entity.name.type.module",settings:{foreground:o}},{name:"js variable readwrite",scope:"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node",settings:{foreground:n}},{name:"js/ts json",scope:"support.constant.json",settings:{foreground:i}},{name:"js/ts Keyword",scope:["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],settings:{foreground:s}},{name:"js/ts console",scope:"support.type.object.console",settings:{foreground:n}},{name:"js/ts support.variable.property.process",scope:"support.variable.property.process",settings:{foreground:i}},{name:"js console function",scope:"entity.name.function,support.function.console",settings:{foreground:a}},{name:"keyword.operator.misc.rust",scope:"keyword.operator.misc.rust",settings:{foreground:r}},{name:"keyword.operator.sigil.rust",scope:"keyword.operator.sigil.rust",settings:{foreground:s}},{name:"operator",scope:"keyword.operator.delete",settings:{foreground:s}},{name:"js dom",scope:"support.type.object.dom",settings:{foreground:s}},{name:"js dom variable",scope:"support.variable.dom,support.variable.property.dom",settings:{foreground:n}},{name:"keyword.operator",scope:"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational",settings:{foreground:s}},{name:"C operator assignment",scope:"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp",settings:{foreground:s}},{name:"Punctuation",scope:"punctuation.separator.delimiter",settings:{foreground:r}},{name:"Other punctuation .c",scope:"punctuation.separator.c,punctuation.separator.cpp",settings:{foreground:s}},{name:"C type posix-reserved",scope:"support.type.posix-reserved.c,support.type.posix-reserved.cpp",settings:{foreground:s}},{name:"keyword.operator.sizeof.c",scope:"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp",settings:{foreground:s}},{name:"python parameter",scope:"variable.parameter.function.language.python",settings:{foreground:i}},{name:"python type",scope:"support.type.python",settings:{foreground:s}},{name:"python logical",scope:"keyword.operator.logical.python",settings:{foreground:s}},{name:"pyCs",scope:"variable.parameter.function.python",settings:{foreground:i}},{name:"python block",scope:"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python",settings:{foreground:r}},{name:"python function-call.generic",scope:"meta.function-call.generic.python",settings:{foreground:a}},{name:"python placeholder reset to normal string",scope:"constant.character.format.placeholder.other.python",settings:{foreground:i}},{name:"Operators",scope:"keyword.operator",settings:{foreground:r}},{name:"Compound Assignment Operators",scope:"keyword.operator.assignment.compound",settings:{foreground:s}},{name:"Compound Assignment Operators js/ts",scope:"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts",settings:{foreground:s}},{name:"Keywords",scope:"keyword",settings:{foreground:s}},{name:"Namespaces",scope:"entity.name.namespace",settings:{foreground:o}},{name:"Variables",scope:"variable",settings:{foreground:n}},{name:"Variables",scope:"variable.c",settings:{foreground:r}},{name:"Language variables",scope:"variable.language",settings:{foreground:o}},{name:"Java Variables",scope:"token.variable.parameter.java",settings:{foreground:r}},{name:"Java Imports",scope:"import.storage.java",settings:{foreground:o}},{name:"Packages",scope:"token.package.keyword",settings:{foreground:s}},{name:"Packages",scope:"token.package",settings:{foreground:r}},{name:"Functions",scope:["entity.name.function","meta.require","support.function.any-method","variable.function"],settings:{foreground:a}},{name:"Classes",scope:"entity.name.type.namespace",settings:{foreground:o}},{name:"Classes",scope:"support.class, entity.name.type.class",settings:{foreground:o}},{name:"Class name",scope:"entity.name.class.identifier.namespace.type",settings:{foreground:o}},{name:"Class name",scope:["entity.name.class","variable.other.class.js","variable.other.class.ts"],settings:{foreground:o}},{name:"Class name php",scope:"variable.other.class.php",settings:{foreground:n}},{name:"Type Name",scope:"entity.name.type",settings:{foreground:o}},{name:"Keyword Control",scope:"keyword.control",settings:{foreground:s}},{name:"Control Elements",scope:"control.elements, keyword.operator.less",settings:{foreground:i}},{name:"Methods",scope:"keyword.other.special-method",settings:{foreground:a}},{name:"Storage",scope:"storage",settings:{foreground:s}},{name:"Storage JS TS",scope:"token.storage",settings:{foreground:s}},{name:"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void",scope:"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void",settings:{foreground:s}},{name:"Java Storage",scope:"token.storage.type.java",settings:{foreground:o}},{name:"Support",scope:"support.function",settings:{foreground:s}},{name:"Support type",scope:"support.type.property-name",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] toml support",scope:"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml",settings:{foreground:n}},{name:"Support type",scope:"support.constant.property-value",settings:{foreground:r}},{name:"Support type",scope:"support.constant.font-name",settings:{foreground:i}},{name:"Meta tag",scope:"meta.tag",settings:{foreground:r}},{name:"Strings",scope:"string",settings:{foreground:i}},{name:"Constant other symbol",scope:"constant.other.symbol",settings:{foreground:s}},{name:"Integers",scope:"constant.numeric",settings:{foreground:i}},{name:"Constants",scope:"constant",settings:{foreground:i}},{name:"Constants",scope:"punctuation.definition.constant",settings:{foreground:i}},{name:"Tags",scope:"entity.name.tag",settings:{foreground:n}},{name:"Attributes",scope:"entity.other.attribute-name",settings:{foreground:i}},{name:"Attribute IDs",scope:"entity.other.attribute-name.id",settings:{foreground:a}},{name:"Attribute class",scope:"entity.other.attribute-name.class.css",settings:{foreground:i}},{name:"Selector",scope:"meta.selector",settings:{foreground:s}},{name:"Headings",scope:"markup.heading",settings:{foreground:n}},{name:"Headings",scope:"markup.heading punctuation.definition.heading, entity.name.section",settings:{foreground:a}},{name:"Units",scope:"keyword.other.unit",settings:{foreground:n}},{name:"Bold",scope:"markup.bold,todo.bold",settings:{foreground:i}},{name:"Bold",scope:"punctuation.definition.bold",settings:{foreground:o}},{name:"markup Italic",scope:"markup.italic, punctuation.definition.italic,todo.emphasis",settings:{foreground:s}},{name:"emphasis md",scope:"emphasis md",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Markdown headings",scope:"entity.name.section.markdown",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown heading Punctuation Definition",scope:"punctuation.definition.heading.markdown",settings:{foreground:n}},{name:"punctuation.definition.list.begin.markdown",scope:"punctuation.definition.list.begin.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown heading setext",scope:"markup.heading.setext",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold",scope:"punctuation.definition.bold.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.string.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw punctuation",scope:"punctuation.definition.raw.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown List Punctuation Definition",scope:"punctuation.definition.list.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition String",scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],settings:{foreground:n}},{name:"beginning.punctuation.definition.list.markdown",scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Link",scope:"punctuation.definition.metadata.markdown",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown Underline Link/Image",scope:"markup.underline.link.markdown,markup.underline.link.image.markdown",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Markdown Link Title/Description",scope:"string.other.link.title.markdown,string.other.link.description.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw",scope:"markup.raw.monospace.asciidoc",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition",scope:"punctuation.definition.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition",scope:"markup.list.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc underline link",scope:"markup.link.asciidoc,markup.other.url.asciidoc",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Asciidoc link name",scope:"string.unquoted.asciidoc,markup.other.url.asciidoc",settings:{foreground:a}},{name:"Regular Expressions",scope:"string.regexp",settings:{foreground:s}},{name:"Embedded",scope:"punctuation.section.embedded, variable.interpolation",settings:{foreground:n}},{name:"Embedded",scope:"punctuation.section.embedded.begin,punctuation.section.embedded.end",settings:{foreground:s}},{name:"illegal",scope:"invalid.illegal",settings:{foreground:n}},{name:"illegal",scope:"invalid.illegal.bad-ampersand.html",settings:{foreground:r}},{scope:"invalid.illegal.unrecognized-tag.html",settings:{foreground:n}},{name:"Broken",scope:"invalid.broken",settings:{foreground:n}},{name:"Deprecated",scope:"invalid.deprecated",settings:{foreground:n}},{name:"html Deprecated",scope:"invalid.deprecated.entity.other.attribute-name.html",settings:{foreground:i}},{name:"Unimplemented",scope:"invalid.unimplemented",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json",scope:"source.json meta.structure.dictionary.json > string.quoted.json",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String",scope:"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation",scope:"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation",settings:{foreground:i}},{name:"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json",scope:"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] JSON Property Name",scope:"support.type.property-name.json",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] JSON Punctuation for Property Name",scope:"support.type.property-name.json punctuation",settings:{foreground:n}},{name:"laravel blade tag",scope:"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade",settings:{foreground:s}},{name:"laravel blade @",scope:"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade",settings:{foreground:s}},{name:"use statement for other classes",scope:"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php",settings:{foreground:o}},{name:"error suppression",scope:"keyword.operator.error-control.php",settings:{foreground:s}},{name:"php instanceof",scope:"keyword.operator.type.php",settings:{foreground:s}},{name:"style double quoted array index normal begin",scope:"punctuation.section.array.begin.php",settings:{foreground:r}},{name:"style double quoted array index normal end",scope:"punctuation.section.array.end.php",settings:{foreground:r}},{name:"php illegal.non-undefined-typehinted",scope:"invalid.illegal.non-undefined-typehinted.php",settings:{foreground:o}},{name:"php types",scope:"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php",settings:{foreground:o}},{name:"php call-function",scope:"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php",settings:{foreground:a}},{name:"php function-resets",scope:"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php",settings:{foreground:r}},{name:"support php constants",scope:"support.constant.core.rust",settings:{foreground:i}},{name:"support php constants",scope:"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php",settings:{foreground:i}},{name:"php goto",scope:"entity.name.goto-label.php,support.other.php",settings:{foreground:a}},{name:"php logical/bitwise operator",scope:"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php",settings:{foreground:s}},{name:"php regexp operator",scope:"keyword.operator.regexp.php",settings:{foreground:s}},{name:"php comparison",scope:"keyword.operator.comparison.php",settings:{foreground:s}},{name:"php heredoc/nowdoc",scope:"keyword.operator.heredoc.php,keyword.operator.nowdoc.php",settings:{foreground:s}},{name:"python function decorator @",scope:"meta.function.decorator.python",settings:{foreground:a}},{name:"python function support",scope:"support.token.decorator.python,meta.function.decorator.identifier.python",settings:{foreground:s}},{name:"parameter function js/ts",scope:"function.parameter",settings:{foreground:r}},{name:"brace function",scope:"function.brace",settings:{foreground:r}},{name:"parameter function ruby cs",scope:"function.parameter.ruby, function.parameter.cs",settings:{foreground:r}},{name:"constant.language.symbol.ruby",scope:"constant.language.symbol.ruby",settings:{foreground:s}},{name:"constant.language.symbol.hashkey.ruby",scope:"constant.language.symbol.hashkey.ruby",settings:{foreground:s}},{name:"rgb-value",scope:"rgb-value",settings:{foreground:s}},{name:"rgb value",scope:"inline-color-decoration rgb-value",settings:{foreground:i}},{name:"rgb value less",scope:"less rgb-value",settings:{foreground:i}},{name:"sass selector",scope:"selector.sass",settings:{foreground:n}},{name:"ts primitive/builtin types",scope:"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx",settings:{foreground:o}},{name:"block scope",scope:"block.scope.end,block.scope.begin",settings:{foreground:r}},{name:"cs storage type",scope:"storage.type.cs",settings:{foreground:o}},{name:"cs local variable",scope:"entity.name.variable.local.cs",settings:{foreground:n}},{scope:"token.info-token",settings:{foreground:a}},{scope:"token.warn-token",settings:{foreground:i}},{scope:"token.error-token",settings:{foreground:o}},{scope:"token.debug-token",settings:{foreground:s}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:s}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:r}},{name:"Import module JS",scope:["keyword.operator.module"],settings:{foreground:s}},{name:"js Flowtype",scope:["support.type.type.flowtype"],settings:{foreground:a}},{name:"js Flow",scope:["support.type.primitive"],settings:{foreground:o}},{name:"js class prop",scope:["meta.property.object"],settings:{foreground:n}},{name:"js func parameter",scope:["variable.parameter.function.js"],settings:{foreground:n}},{name:"js template literals begin",scope:["keyword.other.template.begin"],settings:{foreground:i}},{name:"js template literals end",scope:["keyword.other.template.end"],settings:{foreground:i}},{name:"js template literals variable braces begin",scope:["keyword.other.substitution.begin"],settings:{foreground:i}},{name:"js template literals variable braces end",scope:["keyword.other.substitution.end"],settings:{foreground:i}},{name:"js operator.assignment",scope:["keyword.operator.assignment"],settings:{foreground:s}},{name:"go operator",scope:["keyword.operator.assignment.go"],settings:{foreground:o}},{name:"go operator",scope:["keyword.operator.arithmetic.go","keyword.operator.address.go"],settings:{foreground:s}},{name:"Go package name",scope:["entity.name.package.go"],settings:{foreground:o}},{name:"elm prelude",scope:["support.type.prelude.elm"],settings:{foreground:s}},{name:"elm constant",scope:["support.constant.elm"],settings:{foreground:i}},{name:"template literal",scope:["punctuation.quasi.element"],settings:{foreground:s}},{name:"html/pug (jade) escaped characters and entities",scope:["constant.character.entity"],settings:{foreground:n}},{name:"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour",scope:["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],settings:{foreground:s}},{name:"Clojure globals",scope:["entity.global.clojure"],settings:{foreground:o}},{name:"Clojure symbols",scope:["meta.symbol.clojure"],settings:{foreground:n}},{name:"Clojure constants",scope:["constant.keyword.clojure"],settings:{foreground:s}},{name:"CoffeeScript Function Argument",scope:["meta.arguments.coffee","variable.parameter.function.coffee"],settings:{foreground:n}},{name:"Ini Default Text",scope:["source.ini"],settings:{foreground:i}},{name:"Makefile prerequisities",scope:["meta.scope.prerequisites.makefile"],settings:{foreground:n}},{name:"Makefile text colour",scope:["source.makefile"],settings:{foreground:o}},{name:"Groovy import names",scope:["storage.modifier.import.groovy"],settings:{foreground:o}},{name:"Groovy Methods",scope:["meta.method.groovy"],settings:{foreground:a}},{name:"Groovy Variables",scope:["meta.definition.variable.name.groovy"],settings:{foreground:n}},{name:"Groovy Inheritance",scope:["meta.definition.class.inherited.classes.groovy"],settings:{foreground:i}},{name:"HLSL Semantic",scope:["support.variable.semantic.hlsl"],settings:{foreground:o}},{name:"HLSL Types",scope:["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],settings:{foreground:s}},{name:"SQL Variables",scope:["text.variable","text.bracketed"],settings:{foreground:n}},{name:"types",scope:["support.type.swift","support.type.vb.asp"],settings:{foreground:o}},{name:"heading 1, keyword",scope:["entity.name.function.xi"],settings:{foreground:o}},{name:"heading 2, callable",scope:["entity.name.class.xi"],settings:{foreground:s}},{name:"heading 3, property",scope:["constant.character.character-class.regexp.xi"],settings:{foreground:n}},{name:"heading 4, type, class, interface",scope:["constant.regexp.xi"],settings:{foreground:s}},{name:"heading 5, enums, preprocessor, constant, decorator",scope:["keyword.control.xi"],settings:{foreground:s}},{name:"heading 6, number",scope:["invalid.xi"],settings:{foreground:r}},{name:"string",scope:["beginning.punctuation.definition.quote.markdown.xi"],settings:{foreground:i}},{name:"comments",scope:["beginning.punctuation.definition.list.markdown.xi"],settings:{foreground:r}},{name:"link",scope:["constant.character.xi"],settings:{foreground:a}},{name:"accent",scope:["accent.xi"],settings:{foreground:a}},{name:"wikiword",scope:["wikiword.xi"],settings:{foreground:i}},{name:"language operators like '+', '-' etc",scope:["constant.other.color.rgb-value.xi"],settings:{foreground:n}},{name:"elements to dim",scope:["punctuation.definition.tag.xi"],settings:{foreground:r}},{name:"C++/C#",scope:["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],settings:{foreground:o}},{name:"Markdown underscore-style headers",scope:["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],settings:{foreground:n}},{name:"meta.brace.square",scope:[" meta.brace.square"],settings:{foreground:r}},{name:"Comments",scope:"comment, punctuation.definition.comment",settings:{fontStyle:"italic",foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Quote",scope:"markup.quote.markdown",settings:{foreground:r}},{name:"punctuation.definition.block.sequence.item.yaml",scope:"punctuation.definition.block.sequence.item.yaml",settings:{foreground:r}},{scope:["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],settings:{foreground:s}},{scope:["entity.name.variable.parameter.cs"],settings:{foreground:o}},{scope:["entity.name.variable.field.cs"],settings:{foreground:n}},{name:"Deleted",scope:"markup.deleted",settings:{foreground:n}},{name:"Inserted",scope:"markup.inserted",settings:{foreground:i}},{name:"Underline",scope:"markup.underline",settings:{fontStyle:"underline"}},{name:"punctuation.section.embedded.begin.php",scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:o}},{name:"support.other.namespace.php",scope:["support.other.namespace.php"],settings:{foreground:r}},{name:"variable.other.object",scope:["variable.other.object"],settings:{foreground:o}},{name:"variable.other.constant.property",scope:["variable.other.constant.property"],settings:{foreground:n}},{name:"entity.other.inherited-class",scope:["entity.other.inherited-class"],settings:{foreground:o}},{name:"c variable readwrite",scope:"variable.other.readwrite.c",settings:{foreground:n}},{name:"php scope",scope:"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php",settings:{foreground:r}},{name:"Assembly",scope:["constant.numeric.decimal.asm.x86_64"],settings:{foreground:s}},{scope:["support.other.parenthesis.regexp"],settings:{foreground:i}},{scope:["constant.character.escape"],settings:{foreground:s}},{scope:["string.regexp"],settings:{foreground:n}},{scope:["log.info"],settings:{foreground:i}},{scope:["log.warning"],settings:{foreground:o}},{scope:["log.error"],settings:{foreground:n}},{name:"js/ts italic",scope:"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super",settings:{fontStyle:"italic"}},{name:"comment",scope:"comment.line.double-slash,comment.block.documentation",settings:{fontStyle:"italic"}},{name:"Python Keyword Control",scope:"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python",settings:{fontStyle:"italic"}},{name:"markup.italic.markdown",scope:"markup.italic.markdown",settings:{fontStyle:"italic"}}],type:t}},yL=["javascript","js","jsx","json","markdown","md","less","css","typescript","ts","tsx","diff","bash"],vL=U6((function(e,t){return{codeToHtml:function(e,n,r){var o=t().highlighter;if(!o)return"";try{return null==o?void 0:o.codeToHtml(e,{lang:n,theme:r?"dark":"light"})}catch(a){return e}},highlighter:void 0,initHighlighter:(n=gc(C6.mark((function n(r){return C6.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t().highlighter){n.next=5;break}return n.next=3,_f({langs:(null==r?void 0:r.langs)||yL,themes:(null==r?void 0:r.themes)||[_L(!0),_L(!1)]});case 3:e({highlighter:n.sent});case 5:case"end":return n.stop()}}),n)}))),function(e){return n.apply(this,arguments)})};var n})),DL=$j((function(e){var t=e.css,n=e.token,r=e.cx,o=e.stylish,a="".concat(e.prefixCls,"-highlighter");return{loading:r(o.blur,t(wL||(wL=Ea(["\n position: absolute;\n z-index: 10;\n top: 0;\n right: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n height: 34px;\n padding: 0 8px;\n\n font-family: ",";\n color: ",";\n\n border-radius: ",";\n "])),n.fontFamilyCode,n.colorTextTertiary,n.borderRadius)),prism:t(kL||(kL=Ea(["\n pre {\n overflow: auto;\n font-family: "," !important;\n }\n "])),n.fontFamilyCode),shiki:r("".concat(a,"-shiki"),t(CL||(CL=Ea(["\n .shiki {\n overflow-x: auto;\n background: none !important;\n }\n "]))))}}));const z6=ey.memo((function(e){var t=e.children,n=e.language,r=e.options,o=DL().styles,a=fj().isDarkMode,i=Vi(vL((function(e){return[e.codeToHtml,!e.highlighter]}),ka),2),s=i[0],l=i[1];return ey.useEffect((function(){vL.getState().initHighlighter(r)}),[r]),sy.jsxs(sy.Fragment,{children:[sy.jsx("div",l?{className:o.shiki,children:sy.jsx("pre",{children:sy.jsx("code",{children:t})})}:{className:o.shiki,dangerouslySetInnerHTML:{__html:s(t,n,a)||""}}),l&&sy.jsxs(w6,{className:o.loading,gap:8,horizontal:!0,children:[sy.jsx(l6,{icon:aQ,spin:!0}),"Highlighting..."]})]})}));xL=function(){return xL=Object.assign||function(e){var t,n,r,o;for(n=1,r=arguments.length;n-1},aM=function(e,t){var n=this.__data__,r=tM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},xf.prototype.clear=function(){this.__data__=[],this.size=0},xf.prototype.delete=nM,xf.prototype.get=rM,xf.prototype.has=oM,xf.prototype.set=aM,sM=iM=xf,lM=function(){this.__data__=new sM,this.size=0},cM=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},uM=function(e){return this.__data__.get(e)},pM=function(e){return this.__data__.has(e)},dM=BL,mM=OL,fM=function(e){if(!mM(e))return!1;var t=dM(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},XY=/[^.]+$/.exec((gM=NL["__core-js_shared__"])&&gM.keys&&gM.keys.IE_PROTO||""),hM=XY?"Symbol(src)_1."+XY:"",bM=Function.prototype.toString,yM=fM,vM=function(e){return!!hM&&hM in e},wM=OL,kM=_M=function(e){if(null!=e){try{return bM.call(e)}catch(zY){}try{return e+""}catch(zY){}}return""},CM=/[\\^$.*+?()[\]{}|]/g,DM=/^\[object .+?Constructor\]$/,xM=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(CM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),SM=function(e,t){return null==e?void 0:e[t]},EM=function(e){return!(!wM(e)||vM(e))&&(yM(e)?xM:DM).test(kM(e))},OM=SM,PM=function(e,t){var n=OM(e,t);return EM(n)?n:void 0},IM=PM(NL,"Map"),NM=PM(Object,"create"),RM=AM=NM,TM=AM,jM=Object.prototype.hasOwnProperty,$M=AM,FM=Object.prototype.hasOwnProperty,LM=AM,MM=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},UM=function(e){var t,n=this.__data__;return TM?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:jM.call(n,e)?n[e]:void 0},zM=function(e){var t=this.__data__;return $M?void 0!==t[e]:FM.call(t,e)},HM=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=LM&&void 0===t?"__lodash_hash_undefined__":t,this},Sf.prototype.clear=function(){this.__data__=RM?RM(null):{},this.size=0},Sf.prototype.delete=MM,Sf.prototype.get=UM,Sf.prototype.has=zM,Sf.prototype.set=HM,BM=Sf,WM=iM,VM=IM,GM=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},XM=qM=function(e,t){var n=e.__data__;return GM(t)?n["string"==typeof t?"string":"hash"]:n.map},KM=qM,YM=qM,JM=qM,QM=function(e){var t=XM(this,e).delete(e);return this.size-=t?1:0,t},ZM=function(e){return KM(this,e).get(e)},eU=function(e){return YM(this,e).has(e)},tU=function(e,t){var n=JM(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ef.prototype.clear=function(){this.size=0,this.__data__={hash:new BM,map:new(VM||WM),string:new BM}},Ef.prototype.delete=QM,Ef.prototype.get=ZM,Ef.prototype.has=eU,Ef.prototype.set=tU,rU=iM,oU=IM,aU=nU=Ef,iU=iM,sU=cM,lU=uM,cU=pM,uU=function(e,t){var n,r=this.__data__;if(r instanceof rU){if(n=r.__data__,!oU||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new aU(n)}return r.set(e,t),this.size=r.size,this},Of.prototype.clear=lM,Of.prototype.delete=sU,Of.prototype.get=lU,Of.prototype.has=cU,Of.prototype.set=uU,pU=Of,dU=nU,mU=function(e){return this.__data__.has(e)},Pf.prototype.add=Pf.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Pf.prototype.has=mU,hU=fU=Pf,bU=function(e,t){for(var n=-1,r=null==e?0:e.length;++ng))return!1;if(i=a.get(e),s=a.get(t),i&&s)return i==t&&s==e;for(l=-1,c=!0,u=2&n?new hU:void 0,a.set(e,t),a.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},nz=WL,(rz={})["[object Float32Array]"]=rz["[object Float64Array]"]=rz["[object Int8Array]"]=rz["[object Int16Array]"]=rz["[object Int32Array]"]=rz["[object Uint8Array]"]=rz["[object Uint8ClampedArray]"]=rz["[object Uint16Array]"]=rz["[object Uint32Array]"]=!0,rz["[object Arguments]"]=rz["[object Array]"]=rz["[object ArrayBuffer]"]=rz["[object Boolean]"]=rz["[object DataView]"]=rz["[object Date]"]=rz["[object Error]"]=rz["[object Function]"]=rz["[object Map]"]=rz["[object Number]"]=rz["[object Object]"]=rz["[object RegExp]"]=rz["[object Set]"]=rz["[object String]"]=rz["[object WeakMap]"]=!1,oz=function(e){return nz(e)&&tz(e.length)&&!!rz[ez(e)]},az=function(e){return function(t){return e(t)}},function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&PL.process,a=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(zY){}}();e.exports=a}(iz={exports:{}},iz.exports),sz=oz,uz=(cz=(lz=iz.exports)&&lz.isTypedArray)?az(cz):sz,dz=MU,mz=qU,fz=IU,gz=YU,hz=QU,bz=pz=uz,_z=Object.prototype.hasOwnProperty,yz=function(e,t){var n,r=fz(e),o=!r&&mz(e),a=!r&&!o&&gz(e),i=!r&&!o&&!a&&bz(e),s=r||o||a||i,l=s?dz(e.length,String):[],c=l.length;for(n in e)!t&&!_z.call(e,n)||s&&("length"==n||a&&("offset"==n||"parent"==n)||i&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||hz(n,c))||l.push(n);return l},vz=Object.prototype,wz=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||vz)},fJ=Object.keys,gJ=Object,kz=wz,Cz=function(e){return fJ(gJ(e))},Dz=Object.prototype.hasOwnProperty,xz=function(e){var t,n;if(!kz(e))return Cz(e);for(n in t=[],Object(e))Dz.call(e,n)&&"constructor"!=n&&t.push(n);return t},Sz=fM,Ez=ZU,Oz=yz,Pz=xz,Iz=function(e){return null!=e&&Ez(e.length)&&!Sz(e)},Nz=function(e){return Iz(e)?Oz(e):Pz(e)},Az=RU,Rz=LU,Tz=Nz,jz=function(e){return Az(e,Tz,Rz)},$z=jz,Fz=Object.prototype.hasOwnProperty,Lz=function(e,t,n,r,o,a){var i,s,l,c,u,p,d,m,f,g,h,b=1&n,_=$z(e),y=_.length;if(y!=$z(t).length&&!b)return!1;for(i=y;i--;)if(s=_[i],!(b?s in t:Fz.call(t,s)))return!1;if(l=a.get(e),c=a.get(t),l&&c)return l==t&&c==e;for(u=!0,a.set(e,t),a.set(t,e),p=b;++i div {\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),t.motionEaseOut,t.colorTextTertiary,t.colorFillTertiary,t.colorBorderSecondary,t.motionEaseOut,t.colorTextSecondary,t.colorFillSecondary,t.colorText,t.colorFill),o=Lj(qH||(qH=Ea(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:Mj(o,Lj(XH||(XH=Ea(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:Mj("".concat(dB,"-bottom-handle"),Lj(KH||(KH=Ea(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),n)),container:Mj(dB,Lj(YH||(YH=Ea(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),t.colorBorderSecondary,dB)),fixed:Lj(JH||(JH=Ea(["\n position: relative;\n "]))),fullscreen:Lj(QH||(QH=Ea(["\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n "]))),handlerIcon:Lj(ZH||(ZH=Ea(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),t.motionEaseOut),leftFloat:Mj(o,Lj(eB||(eB=Ea(["\n top: 0;\n bottom: 0;\n left: 0;\n height: 100%;\n "])))),leftHandle:Mj(Lj(tB||(tB=Ea(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),n),"".concat(dB,"-left-handle")),panel:Mj("".concat(dB,"-fixed"),Lj(nB||(nB=Ea(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),t.motionEaseOut)),rightFloat:Mj(o,Lj(rB||(rB=Ea(["\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n "])))),rightHandle:Mj(Lj(oB||(oB=Ea(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),n),"".concat(dB,"-right-handle")),toggleBottom:Mj("".concat(dB,"-toggle"),"".concat(dB,"-toggle-bottom"),r,Lj(aB||(aB=Ea(["\n bottom: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: 16px;\n margin-left: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,pB,40)),toggleLeft:Mj("".concat(dB,"-toggle"),"".concat(dB,"-toggle-left"),r,Lj(iB||(iB=Ea(["\n left: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,pB,pB,40)),toggleRight:Mj("".concat(dB,"-toggle"),"".concat(dB,"-toggle-right"),r,Lj(sB||(sB=Ea(["\n right: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,pB,pB,40)),toggleTop:Mj("".concat(dB,"-toggle"),"".concat(dB,"-toggle-top"),r,Lj(lB||(lB=Ea(["\n top: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: ","px;\n margin-left: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,pB,40,pB)),topFloat:Mj(o,Lj(cB||(cB=Ea(["\n top: 0;\n right: 0;\n left: 0;\n width: 100%;\n "])))),topHandle:Mj("".concat(dB,"-top-handle"),Lj(uB||(uB=Ea(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),n))}})),fB=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};const q6=ey.memo((function(e){var t,n,r,o,a,i,s,l,c,u,p,d,m,f,g,h,b,_,y,v,w,k,C,D,x,S,E=e.fullscreen,O=e.maxHeight,P=e.pin,I=void 0===P?"true":P,N=e.mode,A=void 0===N?"fixed":N,R=e.children,T=e.placement,j=void 0===T?"right":T,$=e.resize,F=e.style,L=e.size,M=e.defaultSize,U=e.minWidth,z=e.minHeight,H=e.maxWidth,B=e.onSizeChange,W=e.onSizeDragging,V=e.expandable,G=void 0===V||V,q=e.expand,X=e.defaultExpand,K=void 0===X||X,Y=e.onExpandChange,J=e.className,Q=e.showHandlerWhenUnexpand,Z=e.destroyOnClose,ee=e.hanlderStyle,te=e.classNames,ne=void 0===te?{}:te,re=ey.useRef(),oe=(b=re,y=(_={}).onEnter,v=_.onLeave,w=_.onChange,k=vf(function(e){var t,n,r,o;return void 0===e&&(e=!1),t=vf(function(e){var t,n;return void 0===e&&(e=!1),t=vf(ey.useState(e),2),n=t[1],[t[0],ey.useMemo((function(){var t=!e;return{toggle:function(){return n((function(n){return n===e?t:e}))},set:function(e){return n(e)},setLeft:function(){return n(e)},setRight:function(){return n(t)}}}),[])]}(!!e),2),r=(n=t[1]).toggle,o=n.set,[t[0],ey.useMemo((function(){return{toggle:r,set:function(e){return o(!!e)},setTrue:function(){return o(!0)},setFalse:function(){return o(!1)}}}),[])]}(!1),2),C=k[0],x=(D=k[1]).setTrue,S=D.setFalse,If("mouseenter",(function(){null==y||y(),x(),null==w||w(!0)}),{target:b}),If("mouseleave",(function(){null==v||v(),S(),null==w||w(!1)}),{target:b}),C),ae="top"===j||"bottom"===j,ie=mB(),se=ie.styles,le=ie.cx,ce=Vi(cm(K,{onChange:Y,value:q}),2),ue=ce[0],pe=ce[1];return ey.useEffect((function(){I||(oe&&!ue?pe(!0):!oe&&ue&&pe(!1))}),[I,oe,ue]),n=(t=Vi(ey.useState(!0),2))[0],r=t[1],a=(o=Vi(ey.useState(!1),2))[0],i=o[1],l=ey.useMemo((function(){return s?xa({},fB(j),se["".concat(fB(j),"Handle")]):{}}),[s=!1!==$&&ue,j]),c=Rf(xa({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},fB(j),!0),$),u=ey.useMemo((function(){return Rf(ae?{height:180,width:"100%"}:{height:"100%",width:280},M)}),[ae]),p=ue?{defaultSize:u,maxHeight:"number"==typeof O?Math.max(O,0):O,maxWidth:"number"==typeof H?Math.max(H,0):H,minHeight:"number"==typeof z?Math.max(z,0):z,minWidth:"number"==typeof U?Math.max(U,0):U,size:L}:ae?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},m=(d=ey.useMemo((function(){switch(j){case"top":return{Arrow:JJ,className:"Bottom"};case"bottom":return{Arrow:eQ,className:"Top"};case"right":return{Arrow:QJ,className:"Left"};case"left":return{Arrow:ZJ,className:"Right"}}}),[se,j])).Arrow,g=sy.jsx(w6,{className:le(se["toggle".concat(f=d.className)],ne.handle),style:{opacity:ue?I?void 0:0:Q?1:0},children:sy.jsx(w6,{onClick:function(){pe(!ue)},style:ee,children:sy.jsx("div",{className:se.handlerIcon,style:{transform:"rotate(".concat(ue?180:0,"deg)")},children:sy.jsx(m,{size:16,strokeWidth:1.5})})})}),h=sy.jsx(WH,Rf(Rf({},p),{},{className:le(se.panel,ne.content),enable:s?c:void 0,handleClasses:l,onResize:function(e,t,n,r){null==W||W(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){i(!0),r(!1)},onResizeStop:function(e,t,n,o){i(!1),r(!0),null==B||B(o,{height:n.style.height,width:n.style.width})},style:Rf({transition:a?"unset":void 0},F),children:R})),E?sy.jsx("div",{className:le(se.fullscreen,J),children:R}):sy.jsxs("aside",{className:le(se.container,se["fixed"===A?"fixed":"".concat(j,"Float")],J),ref:re,style:ue?xa({},"border".concat(f,"Width"),1):{},children:[G&&n&&g,Z?ue&&h:h]})}));yB=$j((function(e){var t=e.css,n=e.token;return{body:t(gB||(gB=Ea(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(hB||(hB=Ea(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(bB||(bB=Ea(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n\n padding: 8px 16px;\n\n border-top: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(_B||(_B=Ea(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 16px;\n\n font-weight: 500;\n\n border-bottom: 1px solid ",";\n "])),n.colorBorderSecondary)}})),vB=["className","children"];const X6=ey.memo((function(e){var t=e.className,n=e.children,r=Sa(e,vB),o=yB();return sy.jsx("div",jf(jf({className:(0,o.cx)(o.styles.body,t)},r),{},{children:n}))}));wB=["className","children"];const K6=ey.memo((function(e){var t=e.className,n=e.children,r=Sa(e,wB),o=yB();return sy.jsx("div",Ff(Ff({className:(0,o.cx)(o.styles.container,t)},r),{},{children:n}))}));kB=["className","children"];const Y6=ey.memo((function(e){var t=e.className,n=e.children,r=Sa(e,kB),o=yB();return sy.jsx("div",Mf(Mf({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));CB=["pin","setPin","className","setExpand","title","position"];const J6=ey.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,a=e.title,i=e.position,s=void 0===i?"left":i,l=Sa(e,CB),c=yB(),u=c.cx,p=c.styles,d=sy.jsx(p6,{icon:uQ,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),m=sy.jsx(p6,{active:t,icon:t?mQ:dQ,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return sy.jsxs("div",zf(zf({className:u(p.header,r)},l),{},{children:["left"===s?d:m,a,"left"===s?m:d]}))}));DB=function e(t,n){var r,o,a,i;if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!=o--;)if(!e(t[i=a[o]],n[i]))return!1;return!0}return t!=t&&n!=n};const Q6=t(DB),Z6=new Map,e7=e=>{const t=Z6.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},t7=(e,t)=>{let n;try{n=JSON.parse(e)}catch(zY){}void 0!==n&&t(n)};xB=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t};const n7=ey.memo((function(e){var t=e.url;return ey.useEffect((function(){var e=xB(t);document.head.append(e)}),[]),!1}));SB=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,a=void 0===o?[]:o,i=e.style,s=e.className;return UJ.createElement("div",{className:kQ("".concat(t,"-column"),s),style:i},(r||n)&&UJ.createElement("h2",null,n&&UJ.createElement("span",{className:"".concat(t,"-column-icon")},n),r),a.map((function(e,n){var r=e.LinkComponent||"a";return UJ.createElement("div",{className:kQ("".concat(t,"-item"),e.className),style:e.style,key:n},UJ.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&UJ.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&UJ.createElement(UJ.Fragment,null,UJ.createElement("span",{className:"".concat(t,"-item-separator")},"-"),UJ.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},EB=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],OB=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,a=e.bottom,i=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,p=void 0===u?"dark":u,d=Sa(e,EB),m=kQ("".concat(n),r,xa({},"".concat(n,"-").concat(p),!!p)),f="number"==typeof s&&s>0;return UJ.createElement("footer",Di(Di({},d),{},{className:m,style:Di(Di({},o),{},{backgroundColor:l})}),UJ.createElement("section",{className:"".concat(n,"-container")},i&&i.length>0&&UJ.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:f?"wrap":void 0}},i.map((function(e,t){var r=e.title,o=e.icon,a=e.className,i=e.items,l=void 0===i?[]:i,c=Di({},e.style);return f&&(c.flex="0 0 ".concat(100/(s+1)+.1,"%")),UJ.createElement(SB,{key:t,prefixCls:n,title:r,icon:o,items:l,style:c,className:a})})))),a&&UJ.createElement("section",{className:"".concat(n,"-bottom")},UJ.createElement("div",{className:"".concat(n,"-bottom-container")},a)))},NB=$j((function(e,t){var n=e.css,r=e.responsive,o=e.token,a=t.isEmpty,i=t.contentMaxWidth,s="rc-footer";return{container:n(PB||(PB=Ea(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-top: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(IB||(IB=Ea(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: left;\n\n h2 {\n position: relative;\n\n margin: 0 auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin: 12px 0;\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin: 0 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin: 0 auto;\n padding: 16px 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-top-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding: 40px 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-bottom: 40px;\n text-align: center;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,s,o.colorTextTertiary,o.colorLinkHover,s,i,a?"0":"60px 0 20px",o.colorText,o.colorTextDescription,i,r.mobile,s)}}));const r7=ey.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,a=NB({contentMaxWidth:void 0===o?960:o,isEmpty:!t||0===(null==t?void 0:t.length)}).styles;return sy.jsx("section",{className:a.container,children:sy.jsx(OB,{bottom:n,className:a.footer,columns:t,theme:r})})}));FB=$j((function(e){var t=e.css,n=e.token;return{footer:t(AB||(AB=Ea(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:t(RB||(RB=Ea(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 4px;\n\n text-align: left;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1.1;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n "])),n.colorTextDescription),group:t(TB||(TB=Ea(["\n .ant-collapse-header {\n background: ",";\n border-radius: 0 !important;\n }\n\n .ant-collapse-content {\n background: transparent;\n }\n\n .ant-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n "])),n.colorFillTertiary),item:t(jB||(jB=Ea(["\n padding: 8px 0;\n\n .ant-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n "]))),title:t($B||($B=Ea(["\n display: flex;\n gap: 8px;\n align-items: center;\n\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n "])),n.colorPrimary)}})),LB=["className","children"];const o7=ey.memo((function(e){var t=e.className,n=e.children,r=Sa(e,LB),o=FB();return sy.jsx("div",Bf(Bf({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));MB=["className","icon","title","children"];const a7=ey.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,a=Sa(e,MB),i=FB(),s=i.styles;return sy.jsx(o4,function(e){var t,n;for(t=1;t label {\n height: unset;\n }\n\n .ant-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .ant-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .ant-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n "])))}})),GB=["className","footer","items","children"];const c7=ey.memo((function(e){var t=e.className,n=e.footer,r=e.items,o=e.children,a=Sa(e,GB),i=VB();return sy.jsxs(m8,Yf(Yf({className:(0,i.cx)(i.styles.form,t),colon:!1,layout:"horizontal"},a),{},{children:[null==r?void 0:r.map((function(e,t){return sy.jsx(a7,{icon:e.icon,title:e.title,children:e.children.map((function(e,t){return sy.jsx(l7,Yf({divider:0!==t},e),t)}))},t)})),o,n&&sy.jsx(o7,{children:n})]}))}));qB={};const u7=sy,p7=ey;KB=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:a,mapping:i,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:p,theme:d,lang:m,loading:f}){const[g,h]=p7.useState(!1);return p7.useEffect((()=>{g||(Promise.resolve().then((()=>(XB||(XB=1,function(e){function t(e,n,r=e,o){var a,i,s,l;if(n===q)return n;let c=void 0!==o?null===(a=r._$Co)||void 0===a?void 0:a[o]:r._$Cl;const u=F(n)?void 0:n._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(i=null==c?void 0:c._$AO)||void 0===i||i.call(c,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,r,o)),void 0!==o?(null!==(s=(l=r)._$Co)&&void 0!==s?s:l._$Co=[])[o]=c:r._$Cl=c),void 0!==c&&(n=t(e,c._$AS(e,n.values),c,o)),n}function r(e){return(t,n)=>void 0!==n?void t.constructor.createProperty(n,e):ce(e,t)}function a(e){void 0!==this._$AN?(de(this),this._$AM=e,me(this)):this._$AM=e}function i(e,t=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let a=n;ae:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new y("string"==typeof e?e:e+"",void 0,b))(t)})(e):e,w=window,k=w.trustedTypes,C=k?k.emptyScript:"",D=w.reactiveElementPolyfillSupport,x={toAttribute(e,t){switch(t){case Boolean:e=e?C:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},S=(e,t)=>t!==e&&(t==t||e==e),E={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:S};let O=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=E){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||E}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(v(e))}else void 0!==e&&t.push(v(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{h?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=f.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=E){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const a=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:x).toAttribute(t,n.type);this._$El=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:x;this._$El=o,this[o]=a.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||S)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(g){Promise.reject(g)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(n){throw t=!1,this._$Ek(),n}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==D||D({ReactiveElement:O}),(null!==(s=w.reactiveElementVersions)&&void 0!==s?s:w.reactiveElementVersions=[]).push("1.6.1");const P=window,I=P.trustedTypes,N=I?I.createPolicy("lit-html",{createHTML:e=>e}):void 0,A=`lit$${(Math.random()+"").slice(9)}$`,R="?"+A,T=`<${R}>`,j=document,$=(e="")=>j.createComment(e),F=e=>null===e||"object"!=typeof e&&"function"!=typeof e,L=Array.isArray,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,z=/>/g,H=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,W=/"/g,V=/^(?:script|style|textarea|title)$/i,G=(e,...t)=>({_$litType$:1,strings:e,values:t}),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),K=new WeakMap,Y=j.createTreeWalker(j,129,null,!1);class J{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,a=0;const i=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,a=2===t?"":"",i=M;for(let l=0;l"===s[0]?(i=o??M,c=-1):void 0===s[1]?c=-2:(c=i.lastIndex-s[2].length,n=s[1],i=void 0===s[3]?H:'"'===s[3]?W:B):i===W||i===B?i=H:i===U||i===z?i=M:(i=H,o=void 0);const p=i===H&&e[l+1].startsWith("/>")?" ":"";a+=i===M?t+T:c>=0?(r.push(n),t.slice(0,c)+"$lit$"+t.slice(c)+A+p):t+A+(-2===c?(r.push(void 0),l):p)}const s=a+(e[n]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(s):s,r]})(e,t);if(this.el=J.createElement(l,n),Y.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Y.nextNode())&&s.length0){r.textContent=I?I.emptyScript:"";for(let n=0;nL(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==X&&F(this._$AH)?this._$AA.nextSibling.data=e:this.T(j.createTextNode(e)),this._$AH=e}$(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=J.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.p(n);else{const e=new Q(o,this),t=e.v(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=K.get(e.strings);return void 0===t&&K.set(e.strings,t=new J(e)),t}k(e){L(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new Z(this.O($()),this.O($()),this,this.options)):n=t[r],n._$AI(o),r++;r2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,n=this,r,o){const a=this.strings;let i=!1;if(void 0===a)e=t(this,e,n,0),i=!F(e)||e!==this._$AH&&e!==q,i&&(this._$AH=e);else{const o=e;let s,l;for(e=a[0],s=0;s{var r,o;const a=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let i=a._$litPart$;if(void 0===i){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;a._$litPart$=i=new Z(t.insertBefore($(),e),e,void 0,n??{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return q}};se.finalized=!0,se._$litElement$=!0,null===(c=globalThis.litElementHydrateSupport)||void 0===c||c.call(globalThis,{LitElement:se});const le=globalThis.litElementPolyfillSupport;null==le||le({LitElement:se}),(null!==(u=globalThis.litElementVersions)&&void 0!==u?u:globalThis.litElementVersions=[]).push("3.2.2");const ce=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};window;class ue{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const pe=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const a of o)null===(r=(n=a)._$AO)||void 0===r||r.call(n,t,!1),pe(a,t);return!0},de=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},me=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),fe(t)}},fe=e=>{var t,n,r,o;2==e.type&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=i),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=a))};class ge extends ue{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),me(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(pe(this,e),de(this))}setValue(e){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class he{}const be=new WeakMap,_e=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ge{render(e){return X}update(e,[t]){var n;const r=t!==this.Y;return r&&void 0!==this.Y&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.dt=null===(n=e.options)||void 0===n?void 0:n.host,this.rt(this.ct=e.element)),X}rt(e){var t;if("function"==typeof this.Y){const n=null!==(t=this.dt)&&void 0!==t?t:globalThis;let r=be.get(n);void 0===r&&(r=new WeakMap,be.set(n,r)),void 0!==r.get(this.Y)&&this.Y.call(this.dt,void 0),r.set(this.Y,e),void 0!==e&&this.Y.call(this.dt,e)}else this.Y.value=e}get lt(){var e,t,n;return"function"==typeof this.Y?null===(t=be.get(null!==(e=this.dt)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.Y):null===(n=this.Y)||void 0===n?void 0:n.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,m=(e,t,n,r)=>{for(var o,a=r>1?void 0:r?d(t,n):t,i=e.length-1;i>=0;i--)(o=e[i])&&(a=(r?o(t,n,a):o(a))||a);return r&&a&&p(t,n,a),a},e.GiscusWidget=class extends se{constructor(){super(),this.GISCUS_SESSION_KEY="giscus-session",this.GISCUS_DEFAULT_HOST="https://giscus.app",this.ERROR_SUGGESTION="Please consider reporting this error at https://github.com/giscus/giscus/issues/new.",this.__session="",this._iframeRef=new he,this.messageEventHandler=this.handleMessageEvent.bind(this),this.hasLoaded=!1,this.host=this.GISCUS_DEFAULT_HOST,this.strict="0",this.reactionsEnabled="1",this.emitMetadata="0",this.inputPosition="bottom",this.theme="light",this.lang="en",this.loading="eager",this.setupSession(),window.addEventListener("message",this.messageEventHandler)}get iframeRef(){var e;return null==(e=this._iframeRef)?void 0:e.value}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const e=location.href,t=new URL(e),n=localStorage.getItem(this.GISCUS_SESSION_KEY),r=t.searchParams.get("giscus")||"";if(this.__session="",r)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(r)),this.__session=r,t.searchParams.delete("giscus"),t.hash="",void history.replaceState(void 0,document.title,t.toString());if(n)try{this.__session=JSON.parse(n)}catch(o){localStorage.removeItem(this.GISCUS_SESSION_KEY)}}signOut(){localStorage.removeItem(this.GISCUS_SESSION_KEY),this.__session="",this.update(new Map)}handleMessageEvent(e){if(e.origin!==this.host)return;const{data:t}=e;if("object"!=typeof t||!t.giscus)return;if(this.iframeRef&&t.giscus.resizeHeight&&(this.iframeRef.style.height=`${t.giscus.resizeHeight}px`),t.giscus.signOut)return void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired"))&&null!==localStorage.getItem(this.GISCUS_SESSION_KEY)?this.signOut():n.includes("Discussion not found")}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||this.iframeRef.contentWindow.postMessage({giscus:e},this.host)}updateConfig(){const e={setConfig:{repo:this.repo,repoId:this.repoId,category:this.category,categoryId:this.categoryId,term:this.getTerm(),number:+this.getNumber(),strict:"1"===this.strict,reactionsEnabled:"1"===this.reactionsEnabled,emitMetadata:"1"===this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,lang:this.lang}};this.sendMessage(e)}firstUpdated(){var e;null==(e=this.iframeRef)||e.addEventListener("load",(()=>{var e;null==(e=this.iframeRef)||e.classList.remove("loading"),this.hasLoaded=!0,this.updateConfig()}))}requestUpdate(e,t,n){this.hasUpdated&&"host"!==e?this.updateConfig():super.requestUpdate(e,t,n)}getMetaContent(e,t=!1){const n=document.querySelector((t?`meta[property='og:${e}'],`:"")+`meta[name='${e}']`);return n?n.content:""}_getCleanedUrl(){const e=new URL(location.href);return e.searchParams.delete("giscus"),e.hash="",e}getTerm(){switch(this.mapping){case"url":return`${this._getCleanedUrl()}`;case"title":return document.title;case"og:title":return this.getMetaContent("title",!0);case"specific":return this.term||"";case"number":return"";default:return location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}}getNumber(){return"number"===this.mapping&&this.term||""}getIframeSrc(){const e=this._getCleanedUrl().toString(),t=`${e}${this.id?"#"+this.id:""}`,n=this.getMetaContent("description",!0),r=this.getMetaContent("giscus:backlink")||e,o={origin:t,session:this.__session,repo:this.repo,repoId:this.repoId||"",category:this.category||"",categoryId:this.categoryId||"",term:this.getTerm(),number:this.getNumber(),strict:this.strict,reactionsEnabled:this.reactionsEnabled,emitMetadata:this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,description:n,backLink:r};return`${this.host||this.GISCUS_DEFAULT_HOST}${this.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return G`