1738 lines
1.4 MiB
1738 lines
1.4 MiB
function e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[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(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):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=FK,this.updater=n||IK}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=FK,this.updater=n||IK}function a(e,t,n){var r,o,i,a,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)Gb.call(t,r)&&!Xb.hasOwnProperty(r)&&(s[r]=t[r]);if(1==(o=arguments.length-2))s.children=n;else if(1<o){for(i=Array(o),a=0;a<o;a++)i[a]=arguments[a+2];s.children=i}if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===s[r]&&(s[r]=o[r]);return{$$typeof:xK,type:e,key:l,ref:c,props:s,_owner:qb.current}}function s(e){return"object"==typeof e&&null!==e&&e.$$typeof===xK}function l(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function c(e,t,n,r,o){var i,a,u,d=typeof e;if("undefined"!==d&&"boolean"!==d||(e=null),i=!1,null===e)i=!0;else switch(d){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case xK:case kK:i=!0}}if(i)return o=o(i=e),e=""===r?"."+l(i,0):r,Vb(o)?(n="",null!=e&&(n=e.replace(Kb,"$&/")+"/"),c(o,t,n,"",(function(e){return e}))):null!=o&&(s(o)&&(o=function(e,t){return{$$typeof:xK,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Kb,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",Vb(e))for(a=0;a<e.length;a++)i+=c(d=e[a],t,n,u=r+l(d,a),o);else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=PK&&e[PK]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),a=0;!(d=e.next()).done;)i+=c(d=d.value,t,n,u=r+l(d,a++),o);else if("object"===d)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function u(e,t,n){if(null==e)return e;var r=[],o=0;return c(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function d(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}function p(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ry.call(t,r)&&!iy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:ty,type:e,key:i,ref:a,props:o,_owner:oy.current}}function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e,t){g(e,t),g(e+"Capture",t)}function g(e,t){for(hy[e]=t,e=0;e<t.length;e++)fy.add(t[e])}function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=wy.hasOwnProperty(t)?wy[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!my.call(vy,e)||!my.call(yy,e)&&(by.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 v(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ay&&e[Ay]||e["@@iterator"])?e:null}function w(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 x(e,t){var n,r,o,i,a,s,l;if(!e||Ly)return"";Ly=!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"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return l="\n"+o[a].replace(" at new "," at "),e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Ly=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?w(e):""}function k(e){switch(e.tag){case 5:return w(e.type);case 16:return w("Lazy");case 13:return w("Suspense");case 19:return w("SuspenseList");case 0:case 2:case 15:return x(e.type,!1);case 11:return x(e.type.render,!1);case 1:return x(e.type,!0);default:return""}}function S(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 Ey:return"Fragment";case Cy:return"Portal";case Oy:return"Profiler";case Dy:return"StrictMode";case Ny:return"Suspense";case Py:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case $y:return(e.displayName||"Context")+".Consumer";case _y:return(e._context.displayName||"Context")+".Provider";case jy:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Iy:return null!==(t=e.displayName||null)?t:S(e.type)||"Memo";case Ty:t=e._payload,e=e._init;try{return S(e(t))}catch(n){}}return null}function C(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 S(t);case 8:return t===Dy?"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 E(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function D(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function O(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=D(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),i=""+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){i=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function _(e){var t,n,r;return!(!e||(t=e._valueTracker)&&(n=t.getValue(),r="",e&&(r=D(e)?e.checked?"true":"false":e.value),(e=r)===n||(t.setValue(e),0)))}function $(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 j(e,t){var n=t.checked;return Ry({},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=E(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 P(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function I(e,t){P(e,t);var n=E(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")?F(e,t.type,n):t.hasOwnProperty("defaultValue")&&F(e,t.type,E(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 F(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function A(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+E(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function R(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(f(91));return Ry({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function M(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(f(92));if(By(n)){if(1<n.length)throw Error(f(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:E(n)}}function L(e,t){var n=E(t.value),r=E(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function B(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function z(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function H(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?z(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function W(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function U(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Wy.hasOwnProperty(e)&&Wy[e]?(""+t).trim():t+"px"}function V(e,t){var n,r,o;for(n in e=e.style,t)t.hasOwnProperty(n)&&(r=0===n.indexOf("--"),o=U(n,t[n],r),"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o)}function G(e,t){if(t){if(Vy[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(f(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(f(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(f(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(f(62))}}function q(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function X(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function K(e){if(e=_t(e)){if("function"!=typeof qy)throw Error(f(280));var t=e.stateNode;t&&(t=jt(t),qy(e.stateNode,e.type,t))}}function Y(e){Xy?Ky?Ky.push(e):Ky=[e]:Xy=e}function Q(){if(Xy){var e=Xy,t=Ky;if(Ky=Xy=null,K(e),t)for(e=0;e<t.length;e++)K(t[e])}}function J(e,t){return e(t)}function Z(){}function ee(e,t,n){if(Yy)return e(t,n);Yy=!0;try{return J(e,t,n)}finally{Yy=!1,(null!==Xy||null!==Ky)&&(Z(),Q())}}function te(e,t){var n,r=e.stateNode;if(null===r)return null;if(null===(n=jt(r)))return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(f(231,t,typeof r));return r}function ne(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}function re(e,t,n,r,o,i,a,s,l){Zy=!1,ev=null,ne.apply(rv,arguments)}function oe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ie(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function ae(e){if(oe(e)!==e)throw Error(f(188))}function se(e){return null!==(e=function(e){var t,n,r,o,i,a,s=e.alternate;if(!s){if(null===(s=oe(e)))throw Error(f(188));return s!==e?null:e}for(t=e,n=s;null!==(r=t.return);){if(null===(o=r.alternate)){if(null!==(n=r.return)){t=n;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===t)return ae(r),e;if(o===n)return ae(r),s;o=o.sibling}throw Error(f(188))}if(t.return!==n.return)t=r,n=o;else{for(i=!1,a=r.child;a;){if(a===t){i=!0,t=r,n=o;break}if(a===n){i=!0,n=r,t=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===t){i=!0,t=o,n=r;break}if(a===n){i=!0,n=o,t=r;break}a=a.sibling}if(!i)throw Error(f(189))}}if(t.alternate!==n)throw Error(f(190))}if(3!==t.tag)throw Error(f(188));return t.stateNode.current===t?e:s}(e))?le(e):null}function le(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=le(e);if(null!==t)return t;e=e.sibling}return null}function ce(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ue(e,t){var n,r,o,i,a,s=e.pendingLanes;if(0===s)return 0;if(n=0,r=e.suspendedLanes,o=e.pingedLanes,0!=(i=268435455&s)?0!=(a=i&~r)?n=ce(a):0!=(o&=i)&&(n=ce(o)):0!=(i=s&~r)?n=ce(i):0!==o&&(n=ce(o)),0===n)return 0;if(0!==t&&t!==n&&0==(t&r)&&((r=n&-n)>=(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;0<t;)n|=e[s=31-bv(t)],t&=~(r=1<<s);return n}function de(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pe(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function fe(){var e=wv;return 0==(4194240&(wv<<=1))&&(wv=64),e}function he(e){for(var t=[],n=0;31>n;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-bv(t)]=n}function me(e,t){var n,r,o=e.entangledLanes|=t;for(e=e.entanglements;o;)(r=1<<(n=31-bv(o)))&t|e[n]&t&&(e[n]|=t),o&=~r}function be(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}function ye(e,t){switch(e){case"focusin":case"focusout":jv=null;break;case"dragenter":case"dragleave":Nv=null;break;case"mouseover":case"mouseout":Pv=null;break;case"pointerover":case"pointerout":Iv.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tv.delete(t.pointerId)}}function ve(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=_t(t))&&Cv(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function we(e){var t,n=Ot(e.target);if(null!==n&&null!==(t=oe(n)))if(13===(n=t.tag)){if(null!==(n=ie(t)))return e.blockedOn=n,void Ov(e.priority,(function(){Ev(t)}))}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null);e.blockedOn=null}function xe(e){var t,n,r;if(null!==e.blockedOn)return!1;for(t=e.targetContainers;0<t.length;){if(null!==(n=$e(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent)))return null!==(t=_t(n))&&Cv(t),e.blockedOn=n,!1;r=new(n=e.nativeEvent).constructor(n.type,n),Gy=r,n.target.dispatchEvent(r),Gy=null,t.shift()}return!0}function ke(e,t,n){xe(e)&&n.delete(t)}function Se(){_v=!1,null!==jv&&xe(jv)&&(jv=null),null!==Nv&&xe(Nv)&&(Nv=null),null!==Pv&&xe(Pv)&&(Pv=null),Iv.forEach(ke),Tv.forEach(ke)}function Ce(e,t){e.blockedOn===t&&(e.blockedOn=null,_v||(_v=!0,py.unstable_scheduleCallback(py.unstable_NormalPriority,Se)))}function Ee(e){function t(t){return Ce(t,e)}var n,r;if(0<$v.length)for(Ce($v[0],e),n=1;n<$v.length;n++)(r=$v[n]).blockedOn===e&&(r.blockedOn=null);for(null!==jv&&Ce(jv,e),null!==Nv&&Ce(Nv,e),null!==Pv&&Ce(Pv,e),Iv.forEach(t),Tv.forEach(t),n=0;n<Fv.length;n++)(r=Fv[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Fv.length&&null===(n=Fv[0]).blockedOn;)we(n),null===n.blockedOn&&Fv.shift()}function De(e,t,n,r){var o=kv,i=Rv.transition;Rv.transition=null;try{kv=1,_e(e,t,n,r)}finally{kv=o,Rv.transition=i}}function Oe(e,t,n,r){var o=kv,i=Rv.transition;Rv.transition=null;try{kv=4,_e(e,t,n,r)}finally{kv=o,Rv.transition=i}}function _e(e,t,n,r){var o,i;if(Mv)if(null===(o=$e(e,t,n,r)))ht(e,t,r,Lv,n),ye(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return jv=ve(jv,e,t,n,r,o),!0;case"dragenter":return Nv=ve(Nv,e,t,n,r,o),!0;case"mouseover":return Pv=ve(Pv,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Iv.set(i,ve(Iv.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return Tv.set(i=o.pointerId,ve(Tv.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(ye(e,r),4&t&&-1<Av.indexOf(e)){for(;null!==o&&(null!==(i=_t(o))&&Sv(i),null===(i=$e(e,t,n,r))&&ht(e,t,r,Lv,n),i!==o);)o=i;null!==o&&r.stopPropagation()}else ht(e,t,r,null,n)}function $e(e,t,n,r){if(Lv=null,null!==(e=Ot(e=X(r))))if(null===(t=oe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ie(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lv=e,null}function je(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(cv()){case uv:return 1;case dv:return 4;case pv:case fv:return 16;case hv:return 536870912;default:return 16}default:return 16}}function Ne(){var e,t,n,r,o,i,a;if(Hv)return Hv;n=(t=zv).length,i=(o="value"in Bv?Bv.value:Bv.textContent).length;for(e=0;e<n&&t[e]===o[e];e++);for(a=n-e,r=1;r<=a&&t[n-r]===o[i-r];r++);return Hv=o.slice(e,1<r?1-r:void 0)}function Pe(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ie(){return!0}function Te(){return!1}function Fe(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(this[a]=(t=e[a])?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Ie:Te,this.isPropagationStopped=Te,this}return Ry(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ie)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ie)},persist:function(){},isPersistent:Ie}),t}function Ae(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=uw[e])&&!!t[e]}function Re(){return Ae}function Me(e,t){switch(e){case"keyup":return-1!==xw.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Le(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function Be(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$w[e.type]:"textarea"===t}function ze(e,t,n,r){Y(r),0<(t=mt(t,"onChange")).length&&(n=new Uv("onChange","change",null,n,r),e.push({event:n,listeners:t}))}function He(e){ct(e,0)}function We(e){if(_($t(e)))return e}function Ue(e,t){if("change"===e)return t}function Ve(){jw&&(jw.detachEvent("onpropertychange",Ge),Nw=jw=null)}function Ge(e){if("value"===e.propertyName&&We(Nw)){var t=[];ze(t,Nw,e,X(e)),ee(He,t)}}function qe(e,t,n){"focusin"===e?(Ve(),Nw=n,(jw=t).attachEvent("onpropertychange",Ge)):"focusout"===e&&Ve()}function Xe(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return We(Nw)}function Ke(e,t){if("click"===e)return We(t)}function Ye(e,t){if("input"===e||"change"===e)return We(t)}function Qe(e,t){var n,r,o;if(Aw(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(n=Object.keys(e),r=Object.keys(t),n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!my.call(t,o=n[r])||!Aw(e[o],t[o]))return!1;return!0}function Je(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ze(e,t){var n,r=Je(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=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=$();t instanceof e.HTMLIFrameElement;){try{n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$((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(),i=e.focusedElem,a=e.selectionRange;if(o!==i&&i&&i.ownerDocument&&et(i.ownerDocument.documentElement,i)){null!==a&&nt(i)&&(o=a.start,void 0===(e=a.end)&&(e=o),"selectionStart"in i?(i.selectionStart=o,i.selectionEnd=Math.min(e,i.value.length)):(e=(o=i.ownerDocument||document)&&o.defaultView||window).getSelection&&(e=e.getSelection(),t=i.textContent.length,n=Math.min(a.start,t),a=void 0===a.end?n:Math.min(a.end,t),!e.extend&&n>a&&(t=a,a=n,n=t),t=Ze(i,n),r=Ze(i,a),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>a?(e.addRange(o),e.extend(r.node,r.offset)):(o.setEnd(r.node,r.offset),e.addRange(o))))),o=[];for(e=i;e=e.parentNode;)1===e.nodeType&&o.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;i<o.length;i++)(e=o[i]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}function ot(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;zw||null==Mw||Mw!==$(r)||(r="selectionStart"in(r=Mw)&&nt(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Bw&&Qe(Bw,r)||(Bw=r,0<(r=mt(Lw,"onSelect")).length&&(t=new Uv("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Mw)))}function it(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function at(e){if(Ww[e])return Ww[e];if(!Hw[e])return e;var t,n=Hw[e];for(t in n)if(n.hasOwnProperty(t)&&t in Uw)return Ww[e]=n[t];return e}function st(e,t){Kw.set(e,t),h(t,[e])}function lt(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,s,l){if(re.apply(this,arguments),Zy){if(!Zy)throw Error(f(198));var c=ev;Zy=!1,ev=null,tv||(tv=!0,nv=c)}}(r,t,void 0,e),e.currentTarget=null}function ct(e,t){var n,r,o,i,a,s,l,c;for(t=0!=(4&t),n=0;n<e.length;n++){o=(r=e[n]).event,r=r.listeners;e:if(i=void 0,t)for(a=r.length-1;0<=a;a--){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;lt(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;lt(o,s,c),i=l}}if(tv)throw e=nv,tv=!1,nv=null,e}function ut(e,t){var n,r=t[hx];void 0===r&&(r=t[hx]=new Set),r.has(n=e+"__bubble")||(ft(t,e,2,!1),r.add(n))}function dt(e,t,n){var r=0;t&&(r|=4),ft(n,e,r,t)}function pt(e){if(!e[tx]){e[tx]=!0,fy.forEach((function(t){"selectionchange"!==t&&(ex.has(t)||dt(t,!1,e),dt(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[tx]||(t[tx]=!0,dt("selectionchange",!1,t))}}function ft(e,t,n,r){switch(je(t)){case 1:var o=De;break;case 4:o=Oe;break;default:o=_e}n=o.bind(null,t,n,e),o=void 0,!Qy||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),e.addEventListener(t,n,r?void 0===o||{capture:!0,passive:o}:void 0!==o&&{passive:o})}function ht(e,t,n,r,o){var i,a,s,l=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;if(3===(i=r.tag)||4===i){if((a=r.stateNode.containerInfo)===o||8===a.nodeType&&a.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){if((3===(s=i.tag)||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==a;){if(null===(i=Ot(a)))return;if(5===(s=i.tag)||6===s){r=l=i;continue e}a=a.parentNode}}r=r.return}ee((function(){var r,o,i,a,s,c,u,d,p,f,h,g,m,b=l,y=X(n),v=[];e:if(void 0!==(r=Kw.get(e))){switch(o=Uv,i=e,e){case"keypress":if(0===Pe(n))break e;case"keydown":case"keyup":o=pw;break;case"focusin":i="focus",o=tw;break;case"focusout":i="blur",o=tw;break;case"beforeblur":case"afterblur":o=tw;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":o=Qv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":o=Zv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":o=mw;break;case Vw:case Gw:case qw:o=rw;break;case Xw:o=yw;break;case"scroll":o=Gv;break;case"wheel":o=ww;break;case"copy":case"cut":case"paste":o=iw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":o=hw}for(s=!(a=0!=(4&t))&&"scroll"===e,c=a?null!==r?r+"Capture":null:r,a=[],u=b;null!==u&&(p=(d=u).stateNode,5===d.tag&&null!==p&&(d=p,null!==c&&null!=(p=te(u,c))&&a.push(gt(u,p,d))),!s);)u=u.return;0<a.length&&(r=new o(r,i,null,n,y),v.push({event:r,listeners:a}))}if(0==(7&t)){if(o="mouseout"===e||"pointerout"===e,(!(r="mouseover"===e||"pointerover"===e)||n===Gy||!(i=n.relatedTarget||n.fromElement)||!Ot(i)&&!i[fx])&&(o||r)&&(r=y.window===y?y:(r=y.ownerDocument)?r.defaultView||r.parentWindow:window,o?(o=b,null!==(i=(i=n.relatedTarget||n.toElement)?Ot(i):null)&&(i!==(s=oe(i))||5!==i.tag&&6!==i.tag)&&(i=null)):(o=null,i=b),o!==i)){if(a=Qv,p="onMouseLeave",c="onMouseEnter",u="mouse","pointerout"!==e&&"pointerover"!==e||(a=hw,p="onPointerLeave",c="onPointerEnter",u="pointer"),s=null==o?r:$t(o),d=null==i?r:$t(i),(r=new a(p,u+"leave",o,n,y)).target=s,r.relatedTarget=d,p=null,Ot(y)===b&&((a=new a(c,u+"enter",i,n,y)).target=d,a.relatedTarget=s,p=a),s=p,o&&i)e:{for(c=i,u=0,d=a=o;d;d=bt(d))u++;for(d=0,p=c;p;p=bt(p))d++;for(;0<u-d;)a=bt(a),u--;for(;0<d-u;)c=bt(c),d--;for(;u--;){if(a===c||null!==c&&a===c.alternate)break e;a=bt(a),c=bt(c)}a=null}else a=null;null!==o&&yt(v,r,o,a,!1),null!==i&&null!==s&&yt(v,s,i,a,!0)}switch("select"===(o=(r=b?$t(b):window).nodeName&&r.nodeName.toLowerCase())||"input"===o&&"file"===r.type?f=Ue:Be(r)?Pw?f=Ye:(f=Xe,h=qe):(o=r.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(f=Ke),f&&(f=f(e,b))?ze(v,f,n,y):(h&&h(e,r,b),"focusout"===e&&(h=r._wrapperState)&&h.controlled&&"number"===r.type&&F(r,"number",r.value)),h=b?$t(b):window,e){case"focusin":(Be(h)||"true"===h.contentEditable)&&(Mw=h,Lw=b,Bw=null);break;case"focusout":Bw=Lw=Mw=null;break;case"mousedown":zw=!0;break;case"contextmenu":case"mouseup":case"dragend":zw=!1,ot(v,n,y);break;case"selectionchange":if(Rw)break;case"keydown":case"keyup":ot(v,n,y)}if(kw)e:{switch(e){case"compositionstart":m="onCompositionStart";break e;case"compositionend":m="onCompositionEnd";break e;case"compositionupdate":m="onCompositionUpdate";break e}m=void 0}else _w?Me(e,n)&&(m="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(m="onCompositionStart");m&&(Ew&&"ko"!==n.locale&&(_w||"onCompositionStart"!==m?"onCompositionEnd"===m&&_w&&(g=Ne()):(zv="value"in(Bv=y)?Bv.value:Bv.textContent,_w=!0)),0<(h=mt(b,m)).length&&(m=new sw(m,e,null,n,y),v.push({event:m,listeners:h}),(g||null!==(g=Le(n)))&&(m.data=g))),(g=Cw?function(e,t){switch(e){case"compositionend":return Le(t);case"keypress":return 32!==t.which?null:(Ow=!0,Dw);case"textInput":return(e=t.data)===Dw&&Ow?null:e;default:return null}}(e,n):function(e,t){if(_w)return"compositionend"===e||!kw&&Me(e,t)?(e=Ne(),Hv=zv=Bv=null,_w=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ew&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(b=mt(b,"onBeforeInput")).length&&(y=new sw("onBeforeInput","beforeinput",null,n,y),v.push({event:y,listeners:b}),y.data=g)}ct(v,t)}))}function gt(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mt(e,t){var n,r,o,i;for(n=t+"Capture",r=[];null!==e;)i=(o=e).stateNode,5===o.tag&&null!==i&&(o=i,null!=(i=te(e,n))&&r.unshift(gt(e,i,o)),null!=(i=te(e,t))&&r.push(gt(e,i,o))),e=e.return;return r}function bt(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function yt(e,t,n,r,o){var i,a,s,l,c;for(i=t._reactName,a=[];null!==n&&n!==r&&(c=(s=n).stateNode,null===(l=s.alternate)||l!==r);)5===s.tag&&null!==c&&(s=c,o?null!=(l=te(n,i))&&a.unshift(gt(n,l,s)):o||null!=(l=te(n,i))&&a.push(gt(n,l,s))),n=n.return;0!==a.length&&e.push({event:t,listeners:a})}function vt(e){return("string"==typeof e?e:""+e).replace(nx,"\n").replace(rx,"")}function wt(e,t,n){if(t=vt(t),vt(e)!==t&&n)throw Error(f(425))}function xt(){}function kt(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function St(e){setTimeout((function(){throw e}))}function Ct(e,t){var n,r=t,o=0;do{if(n=r.nextSibling,e.removeChild(r),n&&8===n.nodeType)if("/$"===(r=n.data)){if(0===o)return e.removeChild(n),void Ee(t);o--}else"$"!==r&&"$?"!==r&&"$!"!==r||o++;r=n}while(r);Ee(t)}function Et(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Dt(e){var t,n;for(e=e.previousSibling,t=0;e;){if(8===e.nodeType)if("$"===(n=e.data)||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++;e=e.previousSibling}return null}function Ot(e){var t,n=e[dx];if(n)return n;for(t=e.parentNode;t;){if(n=t[fx]||t[dx]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=Dt(e);null!==e;){if(t=e[dx])return t;e=Dt(e)}return n}t=(e=t).parentNode}return null}function _t(e){return!(e=e[dx]||e[fx])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function $t(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(f(33))}function jt(e){return e[px]||null}function Nt(e){return{current:e}}function Pt(e){0>yx||(e.current=bx[yx],bx[yx]=null,yx--)}function It(e,t){yx++,bx[yx]=e.current,e.current=t}function Tt(e,t){var n,r,o,i=e.type.contextTypes;if(!i)return vx;if((n=e.stateNode)&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;for(o in r={},i)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Ft(e){return null!=e.childContextTypes}function At(){Pt(xx),Pt(wx)}function Rt(e,t,n){if(wx.current!==vx)throw Error(f(168));It(wx,t),It(xx,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(f(108,C(e)||"Unknown",r));return Ry({},n,o)}function Lt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vx,kx=wx.current,It(wx,e),It(xx,xx.current),!0}function Bt(e,t,n){var r=e.stateNode;if(!r)throw Error(f(169));n?(e=Mt(e,t,kx),r.__reactInternalMemoizedMergedChildContext=e,Pt(xx),Pt(wx),It(wx,e)):Pt(xx),It(xx,n)}function zt(e){null===Sx?Sx=[e]:Sx.push(e)}function Ht(){var e,t,n,r;if(!Ex&&null!==Sx){Ex=!0,e=0,t=kv;try{for(n=Sx,kv=1;e<n.length;e++){r=n[e];do{r=r(!0)}while(null!==r)}Sx=null,Cx=!1}catch(GX){throw null!==Sx&&(Sx=Sx.slice(e+1)),ov(uv,Ht),GX}finally{kv=t,Ex=!1}}return null}function Wt(e,t){Dx[Ox++]=$x,Dx[Ox++]=_x,_x=e,$x=t}function Ut(e,t,n){var r,o,i,a;jx[Nx++]=Ix,jx[Nx++]=Tx,jx[Nx++]=Px,Px=e,r=Ix,e=Tx,r&=~(1<<(o=32-bv(r)-1)),n+=1,30<(i=32-bv(t)+o)?(i=(r&(1<<(a=o-o%5))-1).toString(32),r>>=a,o-=a,Ix=1<<32-bv(t)+o|n<<o|r,Tx=i+e):(Ix=1<<i|n<<o|r,Tx=e)}function Vt(e){null!==e.return&&(Wt(e,1),Ut(e,1,0))}function Gt(e){for(;e===_x;)_x=Dx[--Ox],Dx[Ox]=null,$x=Dx[--Ox],Dx[Ox]=null;for(;e===Px;)Px=jx[--Nx],jx[Nx]=null,Tx=jx[--Nx],jx[Nx]=null,Ix=jx[--Nx],jx[Nx]=null}function qt(e,t){var n=Yo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Xt(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Fx=e,Ax=Et(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Fx=e,Ax=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(e.memoizedState={dehydrated:t,treeContext:n=null!==Px?{id:Ix,overflow:Tx}:null,retryLane:1073741824},(n=Yo(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Fx=e,Ax=null,!0);default:return!1}}function Kt(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Yt(e){var t,n,r;if(Rx)if(t=Ax){if(n=t,!Xt(e,t)){if(Kt(e))throw Error(f(418));t=Et(n.nextSibling),r=Fx,t&&Xt(e,t)?qt(r,n):(e.flags=-4097&e.flags|2,Rx=!1,Fx=e)}}else{if(Kt(e))throw Error(f(418));e.flags=-4097&e.flags|2,Rx=!1,Fx=e}}function Qt(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fx=e}function Jt(e){var t,n;if(e!==Fx)return!1;if(!Rx)return Qt(e),Rx=!0,!1;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!kt(e.type,e.memoizedProps)),t&&(t=Ax)){if(Kt(e))throw Zt(),Error(f(418));for(;t;)qt(e,t),t=Et(t.nextSibling)}if(Qt(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(f(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType)if("/$"===(n=e.data)){if(0===t){Ax=Et(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++;e=e.nextSibling}Ax=null}}else Ax=Fx?Et(e.stateNode.nextSibling):null;return!0}function Zt(){for(var e=Ax;e;)e=Et(e.nextSibling)}function en(){Ax=Fx=null,Rx=!1}function tn(e){null===Mx?Mx=[e]:Mx.push(e)}function nn(e,t){if(e&&e.defaultProps){for(var n in t=Ry({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rn(){Wx=Hx=zx=null}function on(e){var t=Bx.current;Pt(Bx),e._currentValue=t}function an(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sn(e,t){zx=e,Wx=Hx=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(yk=!0),e.firstContext=null)}function ln(e){var t=e._currentValue;if(Wx!==e)if(e={context:e,memoizedValue:t,next:null},null===Hx){if(null===zx)throw Error(f(308));Hx=e,zx.dependencies={lanes:0,firstContext:e}}else Hx=Hx.next=e;return t}function cn(e){null===Ux?Ux=[e]:Ux.push(e)}function un(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,cn(t)):(n.next=o.next,o.next=n),t.interleaved=n,dn(e,r)}function dn(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fn(e,t){t.updateQueue===(e=e.updateQueue)&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gn(e,t,n){var r,o=e.updateQueue;return null===o?null:(o=o.shared,0!=(2&Fk)?(null===(r=o.pending)?t.next=t:(t.next=r.next,r.next=t),o.pending=t,dn(e,n)):(null===(r=o.interleaved)?(t.next=t,cn(o)):(t.next=r.next,r.next=t),o.interleaved=t,dn(e,n)))}function mn(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,me(e,n)}}function bn(e,t){var n,r,o,i=e.updateQueue,a=e.alternate;if(null===a||i!==(a=a.updateQueue))null===(e=i.lastBaseUpdate)?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t;else{if(n=null,r=null,null!==(i=i.firstBaseUpdate)){do{o={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===r?n=r=o:r=r.next=o,i=i.next}while(null!==i);null===r?n=r=t:r=r.next=t}else n=r=t;e.updateQueue=i={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:r,shared:a.shared,effects:a.effects}}}function yn(e,t,n,r){var o,i,a,s,l,c,u,d,p,f,h,g=e.updateQueue;if(Vx=!1,o=g.firstBaseUpdate,i=g.lastBaseUpdate,null!==(a=g.shared.pending)&&(g.shared.pending=null,l=(s=a).next,s.next=null,null===i?o=l:i.next=l,i=s,null!==(c=e.alternate)&&(a=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===a?c.firstBaseUpdate=l:a.next=l,c.lastBaseUpdate=s)),null!==o){for(u=g.baseState,i=0,c=l=s=null,a=o;;){if(p=a.eventTime,(r&(d=a.lane))===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:switch(f=e,d=t,p=n,(h=a).tag){case 1:if("function"==typeof(f=h.payload)){u=f.call(p,u,d);break e}u=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=h.payload)?f.call(p,u,d):f))break e;u=Ry({},u,d);break e;case 2:Vx=!0}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=g.effects)?g.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(l=c=p,s=u):c=c.next=p,i|=d;if(null===(a=a.next)){if(null===(a=g.shared.pending))break;a=(d=a).next,d.next=null,g.lastBaseUpdate=d,g.shared.pending=null}}if(null===c&&(s=u),g.baseState=s,g.firstBaseUpdate=l,g.lastBaseUpdate=c,null!==(t=g.shared.interleaved)){g=t;do{i|=g.lane,g=g.next}while(g!==t)}else null===o&&(g.shared.lanes=0);Wk|=i,e.lanes=i,e.memoizedState=u}}function vn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(f(191,o));o.call(r)}}}function wn(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ry({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}function xn(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&Qe(n,r)&&Qe(o,i))}function kn(e,t,n){var r=!1,o=vx,i=t.contextType;return"object"==typeof i&&null!==i?i=ln(i):(o=Ft(t)?kx:wx.current,i=(r=null!=(r=t.contextTypes))?Tt(e,o):vx),t=new t(n,i),e.memoizedState=null!=t.state?t.state:null,t.updater=qx,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Sn(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qx.enqueueReplaceState(t,t.state,null)}function Cn(e,t,n,r){var o,i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Gx,pn(e),"object"==typeof(o=t.contextType)&&null!==o?i.context=ln(o):(o=Ft(t)?kx:wx.current,i.context=Tt(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(wn(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&qx.enqueueReplaceState(i,i.state,null),yn(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function En(e,t,n){var r,o,i;if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(f(309));r=n.stateNode}if(!r)throw Error(f(147,e));return o=r,i=""+e,null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===Gx&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(f(284));if(!n._owner)throw Error(f(290,e))}return e}function Dn(e,t){throw e=Object.prototype.toString.call(t),Error(f(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function On(e){return(0,e._init)(e._payload)}function _n(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)e.set(null!==t.key?t.key:t.index,t),t=t.sibling;return e}function o(e,t){return(e=Jo(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=ni(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===Ey?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ty&&On(i)===t.type)?((r=o(t,n.props)).ref=En(e,t,n),r.return=e,r):((r=Zo(n.type,n.key,n.props,null,e.mode,r)).ref=En(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ri(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=ei(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ni(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Sy:return(n=Zo(t.type,t.key,t.props,null,e.mode,n)).ref=En(e,null,t),n.return=e,n;case Cy:return(t=ri(t,e.mode,n)).return=e,t;case Ty:return d(e,(0,t._init)(t._payload),n)}if(By(t)||v(t))return(t=ei(t,e.mode,n,null)).return=e,t;Dn(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Sy:return n.key===o?l(e,t,n,r):null;case Cy:return n.key===o?c(e,t,n,r):null;case Ty:return p(e,t,(o=n._init)(n._payload),r)}if(By(n)||v(n))return null!==o?null:u(e,t,n,r,null);Dn(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Sy:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Cy:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ty:return h(e,t,n,(0,r._init)(r._payload),o)}if(By(r)||v(r))return u(t,e=e.get(n)||null,r,o,null);Dn(t,r)}return null}return function s(l,c,u,g){if("object"==typeof u&&null!==u&&u.type===Ey&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case Sy:e:{for(var m=u.key,b=c;null!==b;){if(b.key===m){if((m=u.type)===Ey){if(7===b.tag){n(l,b.sibling),(c=o(b,u.props.children)).return=l,l=c;break e}}else if(b.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===Ty&&On(m)===b.type){n(l,b.sibling),(c=o(b,u.props)).ref=En(l,b,u),c.return=l,l=c;break e}n(l,b);break}t(l,b),b=b.sibling}u.type===Ey?((c=ei(u.props.children,l.mode,g,u.key)).return=l,l=c):((g=Zo(u.type,u.key,u.props,null,l.mode,g)).ref=En(l,c,u),g.return=l,l=g)}return a(l);case Cy:e:{for(b=u.key;null!==c;){if(c.key===b){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=o(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=ri(u,l.mode,g)).return=l,l=c}return a(l);case Ty:return s(l,c,(b=u._init)(u._payload),g)}if(By(u))return function(o,a,s,l){var c,u,f,g,m,b;for(c=null,u=null,f=a,g=a=0,m=null;null!==f&&g<s.length;g++){if(f.index>g?(m=f,f=null):m=f.sibling,null===(b=p(o,f,s[g],l))){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(o,f),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,f=m}if(g===s.length)return n(o,f),Rx&&Wt(o,g),c;if(null===f){for(;g<s.length;g++)null!==(f=d(o,s[g],l))&&(a=i(f,a,g),null===u?c=f:u.sibling=f,u=f);return Rx&&Wt(o,g),c}for(f=r(o,f);g<s.length;g++)null!==(m=h(f,o,g,s[g],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?g:m.key),a=i(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&f.forEach((function(e){return t(o,e)})),Rx&&Wt(o,g),c}(l,c,u,g);if(v(u))return function(o,a,s,l){var c,u,g,m,b,y,w=v(s);if("function"!=typeof w)throw Error(f(150));if(null==(s=w.call(s)))throw Error(f(151));for(c=w=null,u=a,g=a=0,m=null,b=s.next();null!==u&&!b.done;g++,b=s.next()){if(u.index>g?(m=u,u=null):m=u.sibling,null===(y=p(o,u,b.value,l))){null===u&&(u=m);break}e&&u&&null===y.alternate&&t(o,u),a=i(y,a,g),null===c?w=y:c.sibling=y,c=y,u=m}if(b.done)return n(o,u),Rx&&Wt(o,g),w;if(null===u){for(;!b.done;g++,b=s.next())null!==(b=d(o,b.value,l))&&(a=i(b,a,g),null===c?w=b:c.sibling=b,c=b);return Rx&&Wt(o,g),w}for(u=r(o,u);!b.done;g++,b=s.next())null!==(b=h(u,o,g,b.value,l))&&(e&&null!==b.alternate&&u.delete(null===b.key?g:b.key),a=i(b,a,g),null===c?w=b:c.sibling=b,c=b);return e&&u.forEach((function(e){return t(o,e)})),Rx&&Wt(o,g),w}(l,c,u,g);Dn(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=ni(u,l.mode,g)).return=l,l=c),a(l)):n(l,c)}}function $n(e){if(e===Yx)throw Error(f(174));return e}function jn(e,t){switch(It(Zx,t),It(Jx,e),It(Qx,Yx),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)}Pt(Qx),It(Qx,t)}function Nn(){Pt(Qx),Pt(Jx),Pt(Zx)}function Pn(e){var t,n;$n(Zx.current),(t=$n(Qx.current))!==(n=H(t,e.type))&&(It(Jx,e),It(Qx,n))}function In(e){Jx.current===e&&(Pt(Qx),Pt(Jx))}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 Fn(){for(var e=0;e<tk.length;e++)tk[e]._workInProgressVersionPrimary=null;tk.length=0}function An(){throw Error(f(321))}function Rn(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Aw(e[n],t[n]))return!1;return!0}function Mn(e,t,n,r,o,i){if(ok=i,ik=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nk.current=null===e||null===e.memoizedState?fk:hk,e=n(r,o),ck){i=0;do{if(ck=!1,uk=0,25<=i)throw Error(f(301));i+=1,sk=ak=null,t.updateQueue=null,nk.current=gk,e=n(r,o)}while(ck)}if(nk.current=pk,t=null!==ak&&null!==ak.next,ok=0,sk=ak=ik=null,lk=!1,t)throw Error(f(300));return e}function Ln(){var e=0!==uk;return uk=0,e}function Bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sk?ik.memoizedState=sk=e:sk=sk.next=e,sk}function zn(){var e,t;if(e=null===ak?null!==(e=ik.alternate)?e.memoizedState:null:ak.next,null!==(t=null===sk?ik.memoizedState:sk.next))sk=t,ak=e;else{if(null===e)throw Error(f(310));e={memoizedState:(ak=e).memoizedState,baseState:ak.baseState,baseQueue:ak.baseQueue,queue:ak.queue,next:null},null===sk?ik.memoizedState=sk=e:sk=sk.next=e}return sk}function Hn(e,t){return"function"==typeof t?t(e):t}function Wn(e){var t,n,r,o,i,a,s,l,c,u=zn(),d=u.queue;if(null===d)throw Error(f(311));if(d.lastRenderedReducer=e,n=(t=ak).baseQueue,null!==(r=d.pending)&&(null!==n&&(o=n.next,n.next=r.next,r.next=o),t.baseQueue=n=r,d.pending=null),null!==n){t=t.baseState,i=o=null,a=null,s=r=n.next;do{(ok&(l=s.lane))===l?(null!==a&&(a=a.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),t=s.hasEagerState?s.eagerState:e(t,s.action)):(c={lane:l,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},null===a?(i=a=c,o=t):a=a.next=c,ik.lanes|=l,Wk|=l),s=s.next}while(null!==s&&s!==r);null===a?o=t:a.next=i,Aw(t,u.memoizedState)||(yk=!0),u.memoizedState=t,u.baseState=o,u.baseQueue=a,d.lastRenderedState=t}if(null!==(e=d.interleaved)){n=e;do{ik.lanes|=r=n.lane,Wk|=r,n=n.next}while(n!==e)}else null===n&&(d.lanes=0);return[u.memoizedState,d.dispatch]}function Un(e){var t,n,r,o,i=zn(),a=i.queue;if(null===a)throw Error(f(311));if(a.lastRenderedReducer=e,t=a.dispatch,r=i.memoizedState,null!==(n=a.pending)){a.pending=null,o=n=n.next;do{r=e(r,o.action),o=o.next}while(o!==n);Aw(r,i.memoizedState)||(yk=!0),i.memoizedState=r,null===i.baseQueue&&(i.baseState=r),a.lastRenderedState=r}return[r,t]}function Vn(){}function Gn(e,t){var n=ik,r=zn(),o=t(),i=!Aw(r.memoizedState,o);if(i&&(r.memoizedState=o,yk=!0),or(Kn.bind(null,n,r=r.queue,e),[e]),r.getSnapshot!==t||i||null!==sk&&1&sk.memoizedState.tag){if(n.flags|=2048,Zn(9,Xn.bind(null,n,r,o,t),void 0,null),null===Ak)throw Error(f(349));0!=(30&ok)||qn(n,t,o)}return o}function qn(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ik.updateQueue)?(ik.updateQueue=t={lastEffect:null,stores:null},t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Xn(e,t,n,r){t.value=n,t.getSnapshot=r,Yn(t)&&Qn(e)}function Kn(e,t,n){return n((function(){Yn(t)&&Qn(e)}))}function Yn(e){var t,n=e.getSnapshot;e=e.value;try{return t=n(),!Aw(e,t)}catch(r){return!0}}function Qn(e){var t=dn(e,1);null!==t&&xo(t,e,1,-1)}function Jn(e){var t=Bn();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,t.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:e},e=e.dispatch=mr.bind(null,ik,e),[t.memoizedState,e]}function Zn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ik.updateQueue)?(ik.updateQueue=t={lastEffect:null,stores:null},t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function er(){return zn().memoizedState}function tr(e,t,n,r){var o=Bn();ik.flags|=e,o.memoizedState=Zn(1|t,n,void 0,void 0===r?null:r)}function nr(e,t,n,r){var o,i,a=zn();r=void 0===r?null:r,o=void 0,null!==ak&&(o=(i=ak.memoizedState).destroy,null!==r&&Rn(r,i.deps))?a.memoizedState=Zn(t,n,o,r):(ik.flags|=e,a.memoizedState=Zn(1|t,n,o,r))}function rr(e,t){return tr(8390656,8,e,t)}function or(e,t){return nr(2048,8,e,t)}function ir(e,t){return nr(4,2,e,t)}function ar(e,t){return nr(4,4,e,t)}function sr(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function lr(e,t,n){return n=null!=n?n.concat([e]):null,nr(4,4,sr.bind(null,t,e),n)}function cr(){}function ur(e,t){var n,r=zn();return t=void 0===t?null:t,null!==(n=r.memoizedState)&&null!==t&&Rn(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function dr(e,t){var n,r=zn();return t=void 0===t?null:t,null!==(n=r.memoizedState)&&null!==t&&Rn(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function pr(e,t,n){return 0==(21&ok)?(e.baseState&&(e.baseState=!1,yk=!0),e.memoizedState=n):(Aw(n,t)||(n=fe(),ik.lanes|=n,Wk|=n,e.baseState=!0),t)}function fr(e,t){var n,r=kv;kv=0!==r&&4>r?r:4,e(!0),n=rk.transition,rk.transition={};try{e(!1),t()}finally{kv=r,rk.transition=n}}function hr(){return zn().memoizedState}function gr(e,t,n){var r=wo(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?yr(t,n):null!==(n=un(e,t,n,r))&&(xo(n,e,r,vo()),vr(n,t,r))}function mr(e,t,n){var r,o,i,a,s=wo(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))yr(t,l);else{if(r=e.alternate,0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{if(i=r(o=t.lastRenderedState,n),l.hasEagerState=!0,l.eagerState=i,Aw(i,o))return null===(a=t.interleaved)?(l.next=l,cn(t)):(l.next=a.next,a.next=l),void(t.interleaved=l)}catch(c){}null!==(n=un(e,t,l,s))&&(xo(n,e,s,l=vo()),vr(n,t,s))}}function br(e){var t=e.alternate;return e===ik||null!==t&&t===ik}function yr(e,t){ck=lk=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vr(e,t,n){if(0!=(4194240&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,me(e,n)}}function wr(e,t){var n,r,o;try{n="",r=t;do{n+=k(r),r=r.return}while(r);o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function xr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function kr(e,t,n){(n=hn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qk||(Qk=!0,Jk=r)},n}function Sr(e,t,n){var r,o,i;return(n=hn(-1,n)).tag=3,"function"==typeof(r=e.type.getDerivedStateFromError)&&(o=t.value,n.payload=function(){return r(o)},n.callback=function(){}),null!==(i=e.stateNode)&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zk?Zk=new Set([this]):Zk.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Cr(e,t,n){var r,o=e.pingCache;null===o?(o=e.pingCache=new mk).set(t,r=new Set):void 0===(r=o.get(t))&&o.set(t,r=new Set),r.has(n)||(r.add(n),e=Uo.bind(null,e,t,n),t.then(e,e))}function Er(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 Dr(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=hn(-1,1)).tag=2,gn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function Or(e,t,n,r){t.child=null===e?Kx(t,null,n,r):Xx(t,e.child,n,r)}function _r(e,t,n,r,o){n=n.render;var i=t.ref;return sn(t,o),r=Mn(e,t,n,r,i,o),n=Ln(),null===e||yk?(Rx&&n&&Vt(t),t.flags|=1,Or(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function $r(e,t,n,r,o){var i;return null===e?"function"!=typeof(i=n.type)||Qo(i)||void 0!==i.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=i,jr(e,t,i,r,o)):(i=e.child,0==(e.lanes&o)&&(n=null!==(n=n.compare)?n:Qe)(i.memoizedProps,r)&&e.ref===t.ref?Gr(e,t,o):(t.flags|=1,(e=Jo(i,r)).ref=t.ref,e.return=t,t.child=e))}function jr(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Qe(i,r)&&e.ref===t.ref){if(yk=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Gr(e,t,o);0!=(131072&e.flags)&&(yk=!0)}}return Ir(e,t,n,r,o)}function Nr(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},It(Bk,Lk),Lk|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,It(Bk,Lk),Lk|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,It(Bk,Lk),Lk|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,It(Bk,Lk),Lk|=r;return Or(e,t,o,n),t.child}function Pr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ir(e,t,n,r,o){var i=Ft(n)?kx:wx.current;return i=Tt(t,i),sn(t,o),n=Mn(e,t,n,r,i,o),r=Ln(),null===e||yk?(Rx&&r&&Vt(t),t.flags|=1,Or(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 i,a,s,l,c,u,d,p,f,h;return Ft(n)?(i=!0,Lt(t)):i=!1,sn(t,o),null===t.stateNode?(Vr(e,t),kn(t,n,r),Cn(t,n,r,o),r=!0):null===e?((a=t.stateNode).props=s=t.memoizedProps,l=a.context,c="object"==typeof(c=n.contextType)&&null!==c?ln(c):Tt(t,c=Ft(n)?kx:wx.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Sn(t,a,r,c),Vx=!1,a.state=p=t.memoizedState,yn(t,r,a,o),l=t.memoizedState,s!==r||p!==l||xx.current||Vx?("function"==typeof u&&(wn(t,n,u,r),l=t.memoizedState),(s=Vx||xn(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)):(a=t.stateNode,fn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:nn(t.type,s),a.props=c,d=t.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ln(l):Tt(t,l=Ft(n)?kx:wx.current),(u="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&Sn(t,a,r,l),Vx=!1,a.state=p=t.memoizedState,yn(t,r,a,o),h=t.memoizedState,s!==d||p!==h||xx.current||Vx?("function"==typeof f&&(wn(t,n,f,r),h=t.memoizedState),(c=Vx||xn(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)),Fr(e,t,n,r,i,o)}function Fr(e,t,n,r,o,i){var a,s;return Pr(e,t),a=0!=(128&t.flags),r||a?(r=t.stateNode,bk.current=t,s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render(),t.flags|=1,null!==e&&a?(t.child=Xx(t,e.child,null,i),t.child=Xx(t,null,s,i)):Or(e,t,s,i),t.memoizedState=r.state,o&&Bt(t,n,!0),t.child):(o&&Bt(t,n,!1),Gr(e,t,i))}function Ar(e){var t=e.stateNode;t.pendingContext?Rt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Rt(0,t.context,!1),jn(e,t.containerInfo)}function Rr(e,t,n,r,o){return en(),tn(o),t.flags|=256,Or(e,t,n,r),t.child}function Mr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lr(e,t,n){var r,o,i=t.pendingProps,a=ek.current,s=!1,l=0!=(128&t.flags);return(r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),It(ek,1&a),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=i.children,e=i.fallback,s?(s=t.child,l={mode:"hidden",children:l},0==(1&(i=t.mode))&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ti(l,i,0,null),e=ei(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Mr(n),t.memoizedState=vk,e):Br(t,l))):null!==(a=e.memoizedState)&&null!==(r=a.dehydrated)?function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,zr(e,t,a,r=xr(Error(f(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,r=ti({mode:"visible",children:r.children},o=t.mode,0,null),(i=ei(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Xx(t,e.child,null,a),t.child.memoizedState=Mr(a),t.memoizedState=vk,i);if(0==(1&t.mode))return zr(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zr(e,t,a,r=xr(i=Error(f(419)),r,void 0))}if(s=0!=(a&e.childLanes),yk||s){if(null!==(r=Ak)){switch(a&-a){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|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,dn(e,o),xo(r,e,o,-1))}return To(),zr(e,t,a,r=xr(Error(f(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Go.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ax=Et(o.nextSibling),Fx=t,Rx=!0,Mx=null,null!==e&&(jx[Nx++]=Ix,jx[Nx++]=Tx,jx[Nx++]=Px,Ix=e.id,Tx=e.overflow,Px=t),(t=Br(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n):s?(s=i.fallback,r=(a=e.child).sibling,o={mode:"hidden",children:i.children},0==(1&(l=t.mode))&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=o,t.deletions=null):(i=Jo(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Jo(r,s):(s=ei(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=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=vk,i):(e=(s=e.child).sibling,i=Jo(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i)}function Br(e,t){return(t=ti({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zr(e,t,n,r){return null!==r&&tn(r),Xx(t,e.child,null,n),(e=Br(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 Wr(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ur(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Or(e,t,r.children,n),0!=(2&(r=ek.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(It(ek,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),Wr(t,!1,o,n,i);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}Wr(t,!0,n,null,i);break;case"together":Wr(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),Wk|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(f(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(!Rx)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,i,a,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 Ft(t.type)&&At(),Xr(t),null;case 3:return l=t.stateNode,Nn(),Pt(xx),Pt(wx),Fn(),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!==Mx&&(Eo(Mx),Mx=null))),xk(e,t),Xr(t),null;case 5:if(In(t),r=$n(Zx.current),n=t.type,null!==e&&null!=t.stateNode)kk(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(f(166));return Xr(t),null}if(e=$n(Qx.current),Jt(t)){switch(n=t.type,o=t.memoizedProps,(l=t.stateNode)[dx]=t,l[px]=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<Zw.length;r++)ut(Zw[r],l);break;case"source":ut("error",l);break;case"img":case"image":case"link":ut("error",l),ut("load",l);break;case"details":ut("toggle",l);break;case"input":N(l,o),ut("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!o.multiple},ut("invalid",l);break;case"textarea":M(l,o),ut("invalid",l)}for(i in G(n,o),r=null,o)o.hasOwnProperty(i)&&(a=o[i],"children"===i?"string"==typeof a?l.textContent!==a&&(!0!==o.suppressHydrationWarning&&wt(l.textContent,a,e),r=["children",a]):"number"==typeof a&&l.textContent!==""+a&&(!0!==o.suppressHydrationWarning&&wt(l.textContent,a,e),r=["children",""+a]):hy.hasOwnProperty(i)&&null!=a&&"onScroll"===i&&ut("scroll",l));switch(n){case"input":O(l),T(l,o,!0);break;case"textarea":O(l),B(l);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(l.onclick=xt)}t.updateQueue=l=r,null!==l&&(t.flags|=4)}else{i=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=z(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=i.createElement(n,{is:l.is}):(e=i.createElement(n),"select"===n&&(i=e,l.multiple?i.multiple=!0:l.size&&(i.size=l.size))):e=i.createElementNS(e,n),e[dx]=t,e[px]=l,wk(e,t,!1,!1),t.stateNode=e;e:{switch(i=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;r<Zw.length;r++)ut(Zw[r],e);r=l;break;case"source":ut("error",e),r=l;break;case"img":case"image":case"link":ut("error",e),ut("load",e),r=l;break;case"details":ut("toggle",e),r=l;break;case"input":N(e,l),r=j(e,l),ut("invalid",e);break;case"option":default:r=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},r=Ry({},l,{value:void 0}),ut("invalid",e);break;case"textarea":M(e,l),r=R(e,l),ut("invalid",e)}for(o in G(n,r),a=r)a.hasOwnProperty(o)&&(s=a[o],"style"===o?V(e,s):"dangerouslySetInnerHTML"===o?null!=(s=s?s.__html:void 0)&&Hy(e,s):"children"===o?"string"==typeof s?("textarea"!==n||""!==s)&&W(e,s):"number"==typeof s&&W(e,""+s):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(hy.hasOwnProperty(o)?null!=s&&"onScroll"===o&&ut("scroll",e):null!=s&&y(e,o,s,i)));switch(n){case"input":O(e),T(e,l,!1);break;case"textarea":O(e),B(e);break;case"option":null!=l.value&&e.setAttribute("value",""+E(l.value));break;case"select":e.multiple=!!l.multiple,null!=(o=l.value)?A(e,!!l.multiple,o,!1):null!=l.defaultValue&&A(e,!!l.multiple,l.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=xt)}switch(n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Xr(t),null;case 6:if(e&&null!=t.stateNode)Sk(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error(f(166));if(n=$n(Zx.current),$n(Qx.current),Jt(t)){if(n=t.memoizedProps,(l=t.stateNode)[dx]=t,(o=l.nodeValue!==n)&&null!==(e=Fx))switch(e.tag){case 3:wt(l.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&wt(l.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(l=(9===n.nodeType?n:n.ownerDocument).createTextNode(l))[dx]=t,t.stateNode=l}return Xr(t),null;case 13:if(Pt(ek),l=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Rx&&null!==Ax&&0!=(1&t.mode)&&0==(128&t.flags))Zt(),en(),t.flags|=98560,o=!1;else if(o=Jt(t),null!==l&&null!==l.dehydrated){if(null===e){if(!o)throw Error(f(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(f(317));o[dx]=t}else en(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xr(t),o=!1}else null!==Mx&&(Eo(Mx),Mx=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((l=null!==l)!=(null!==e&&null!==e.memoizedState)&&l&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ek.current)?0===zk&&(zk=3):To())),null!==t.updateQueue&&(t.flags|=4),Xr(t),null);case 4:return Nn(),xk(e,t),null===e&&pt(t.stateNode.containerInfo),Xr(t),null;case 10:return on(t.type._context),Xr(t),null;case 19:if(Pt(ek),null===(o=t.memoizedState))return Xr(t),null;if(l=0!=(128&t.flags),null===(i=o.rendering))if(l)qr(o,!1);else{if(0!==zk||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Tn(e))){for(t.flags|=128,qr(o,!1),null!==(l=i.updateQueue)&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=n,n=t.child;null!==n;)e=l,(o=n).flags&=14680066,null===(i=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,o.dependencies=null===(e=i.dependencies)?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return It(ek,1&ek.current|2),t.child}e=e.sibling}null!==o.tail&&lv()>Kk&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=Tn(i))){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&&!i.alternate&&!Rx)return Xr(t),null}else 2*lv()-o.renderingStartTime>Kk&&1073741824!==n&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=o.last)?n.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(o.rendering=t=o.tail,o.tail=t.sibling,o.renderingStartTime=lv(),t.sibling=null,n=ek.current,It(ek,l?1&n|2:1&n),t):(Xr(t),null);case 22:case 23:return jo(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&0!=(1&t.mode)?0!=(1073741824&Lk)&&(Xr(t),6&t.subtreeFlags&&(t.flags|=8192)):Xr(t),null;case 24:case 25:return null}throw Error(f(156,t.tag))}function Yr(e,t){switch(Gt(t),t.tag){case 1:return Ft(t.type)&&At(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Nn(),Pt(xx),Pt(wx),Fn(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return In(t),null;case 13:if(Pt(ek),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(f(340));en()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Pt(ek),null;case 4:return Nn(),null;case 10:return on(t.type._context),null;case 22:case 23:return jo(),null;default:return null}}function Qr(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Wo(e,t,r)}else n.current=null}function Jr(e,t,n){try{n()}catch(r){Wo(e,t,r)}}function Zr(e,t,n){var r,o,i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){r=i=i.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!==i)}}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[dx],delete t[px],delete t[hx],delete t[gx],delete t[mx]),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 io(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=xt));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 ao(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(ao(e,t,n),e=e.sibling;null!==e;)ao(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,i,a;if(mv&&"function"==typeof mv.onCommitFiberUnmount)try{mv.onCommitFiberUnmount(gv,n)}catch(s){}switch(n.tag){case 5:Ek||Qr(n,t);case 6:r=$k,o=jk,$k=null,so(e,t,n),jk=o,null!==($k=r)&&(jk?(n=n.stateNode,8===(e=$k).nodeType?e.parentNode.removeChild(n):e.removeChild(n)):$k.removeChild(n.stateNode));break;case 18:null!==$k&&(jk?(n=n.stateNode,8===(e=$k).nodeType?Ct(e.parentNode,n):1===e.nodeType&&Ct(e,n),Ee(e)):Ct($k,n.stateNode));break;case 4:r=$k,o=jk,$k=n.stateNode.containerInfo,jk=!0,so(e,t,n),$k=r,jk=o;break;case 0:case 11:case 14:case 15:if(!Ek&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{a=(i=o).destroy,i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Jr(n,t,a),o=o.next}while(o!==r)}so(e,t,n);break;case 1:if(!Ek&&(Qr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Wo(n,t,s)}so(e,t,n);break;case 21:so(e,t,n);break;case 22:1&n.mode?(Ek=(r=Ek)||null!==n.memoizedState,so(e,t,n),Ek=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 Dk),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,i,a,s,l=t.deletions;if(null!==l)for(n=0;n<l.length;n++){r=l[n];try{o=e,a=i=t;e:for(;null!==a;){switch(a.tag){case 5:$k=a.stateNode,jk=!1;break e;case 3:case 4:$k=a.stateNode.containerInfo,jk=!0;break e}a=a.return}if(null===$k)throw Error(f(160));lo(o,i,r),$k=null,jk=!1,null!==(s=r.alternate)&&(s.return=null),r.return=null}catch(c){Wo(r,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)po(t,e),t=t.sibling}function po(e,t){var n,r,o,i,a,s,l,c,u,d,p,h=e.alternate,g=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(uo(t,e),fo(e),4&g){try{Zr(3,e,e.return),eo(3,e)}catch(qX){Wo(e,e.return,qX)}try{Zr(5,e,e.return)}catch(qX){Wo(e,e.return,qX)}}break;case 1:uo(t,e),fo(e),512&g&&null!==h&&Qr(h,h.return);break;case 5:if(uo(t,e),fo(e),512&g&&null!==h&&Qr(h,h.return),32&e.flags){n=e.stateNode;try{W(n,"")}catch(qX){Wo(e,e.return,qX)}}if(4&g&&null!=(n=e.stateNode)&&(r=e.memoizedProps,o=null!==h?h.memoizedProps:r,i=e.type,a=e.updateQueue,e.updateQueue=null,null!==a))try{for("input"===i&&"radio"===r.type&&null!=r.name&&P(n,r),q(i,o),s=q(i,r),o=0;o<a.length;o+=2)c=a[o+1],"style"===(l=a[o])?V(n,c):"dangerouslySetInnerHTML"===l?Hy(n,c):"children"===l?W(n,c):y(n,l,c,s);switch(i){case"input":I(n,r);break;case"textarea":L(n,r);break;case"select":u=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(d=r.value)?A(n,!!r.multiple,d,!1):u!==!!r.multiple&&(null!=r.defaultValue?A(n,!!r.multiple,r.defaultValue,!0):A(n,!!r.multiple,r.multiple?[]:"",!1))}n[px]=r}catch(qX){Wo(e,e.return,qX)}break;case 6:if(uo(t,e),fo(e),4&g){if(null===e.stateNode)throw Error(f(162));n=e.stateNode,r=e.memoizedProps;try{n.nodeValue=r}catch(qX){Wo(e,e.return,qX)}}break;case 3:if(uo(t,e),fo(e),4&g&&null!==h&&h.memoizedState.isDehydrated)try{Ee(t.containerInfo)}catch(qX){Wo(e,e.return,qX)}break;case 4:default:uo(t,e),fo(e);break;case 13:uo(t,e),fo(e),8192&(n=e.child).flags&&(n.stateNode.isHidden=r=null!==n.memoizedState,!r||null!==n.alternate&&null!==n.alternate.memoizedState||(Xk=lv())),4&g&&co(e);break;case 22:if(l=null!==h&&null!==h.memoizedState,1&e.mode?(Ek=(s=Ek)||l,uo(t,e),Ek=s):uo(t,e),fo(e),8192&g){if((e.stateNode.isHidden=s=null!==e.memoizedState)&&!l&&0!=(1&e.mode))for(Ok=e,l=e.child;null!==l;){for(c=Ok=l;null!==Ok;){switch(d=(u=Ok).child,u.tag){case 0:case 11:case 14:case 15:Zr(4,u,u.return);break;case 1:if(Qr(u,u.return),"function"==typeof(p=u.stateNode).componentWillUnmount){g=u,h=u.return;try{p.props=(t=g).memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(qX){Wo(g,h,qX)}}break;case 5:Qr(u,u.return);break;case 22:if(null!==u.memoizedState){bo(c);continue}}null!==d?(d.return=u,Ok=d):bo(c)}l=l.sibling}e:for(l=null,c=e;;){if(5===c.tag){if(null===l){l=c;try{n=c.stateNode,s?"function"==typeof(r=n.style).setProperty?r.setProperty("display","none","important"):r.display="none":(i=c.stateNode,o=null!=(a=c.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,i.style.display=U("display",o))}catch(qX){Wo(e,e.return,qX)}}}else if(6===c.tag){if(null===l)try{c.stateNode.nodeValue=s?"":c.memoizedProps}catch(qX){Wo(e,e.return,qX)}}else if((22!==c.tag&&23!==c.tag||null===c.memoizedState||c===e)&&null!==c.child){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;null===c.sibling;){if(null===c.return||c.return===e)break e;l===c&&(l=null),c=c.return}l===c&&(l=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:uo(t,e),fo(e),4&g&&co(e);case 21:}}function fo(e){var t,n,r,o,i=e.flags;if(2&i){try{e:{for(t=e.return;null!==t;){if(ro(t)){n=t;break e}t=t.return}throw Error(f(160))}switch(n.tag){case 5:r=n.stateNode,32&n.flags&&(W(r,""),n.flags&=-33),ao(e,oo(e),r);break;case 3:case 4:o=n.stateNode.containerInfo,io(e,oo(e),o);break;default:throw Error(f(161))}}catch(a){Wo(e,e.return,a)}e.flags&=-3}4096&i&&(e.flags&=-4097)}function ho(e){Ok=e,go(e)}function go(e){var t,n,r,o,i,a,s;for(t=0!=(1&e.mode);null!==Ok;)if(r=(n=Ok).child,22===n.tag&&t){if(!(o=null!==n.memoizedState||Ck)){if(a=null!==(i=n.alternate)&&null!==i.memoizedState||Ek,i=Ck,s=Ek,Ck=o,(Ek=a)&&!s)for(Ok=n;null!==Ok;)a=(o=Ok).child,22===o.tag&&null!==o.memoizedState?yo(n):null!==a?(a.return=o,Ok=a):yo(n);for(;null!==r;)Ok=r,go(r),r=r.sibling;Ok=n,Ck=i,Ek=s}mo(e)}else 0!=(8772&n.subtreeFlags)&&null!==r?(r.return=n,Ok=r):mo(e)}function mo(e){for(var t,n,r,o,i,a,s,l,c,u;null!==Ok;){if(0!=(8772&(t=Ok).flags)){n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ek||eo(5,t);break;case 1:r=t.stateNode,4&t.flags&&!Ek&&(null===n?r.componentDidMount():(o=t.elementType===t.type?n.memoizedProps:nn(t.type,n.memoizedProps),r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate))),null!==(i=t.updateQueue)&&vn(t,i,r);break;case 3:if(null!==(a=t.updateQueue)){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}vn(t,a,n)}break;case 5:if(null===n&&4&t.flags)switch(n=t.stateNode,s=t.memoizedProps,t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:null===t.memoizedState&&null!==(l=t.alternate)&&null!==(c=l.memoizedState)&&null!==(u=c.dehydrated)&&Ee(u);break;default:throw Error(f(163))}Ek||512&t.flags&&to(t)}catch(d){Wo(t,t.return,d)}}if(t===e){Ok=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ok=n;break}Ok=t.return}}function bo(e){for(var t,n;null!==Ok;){if((t=Ok)===e){Ok=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ok=n;break}Ok=t.return}}function yo(e){for(var t,n,r,o,i,a,s;null!==Ok;){t=Ok;try{switch(t.tag){case 0:case 11:case 15:n=t.return;try{eo(4,t)}catch(l){Wo(t,n,l)}break;case 1:if("function"==typeof(r=t.stateNode).componentDidMount){o=t.return;try{r.componentDidMount()}catch(l){Wo(t,o,l)}}i=t.return;try{to(t)}catch(l){Wo(t,i,l)}break;case 5:a=t.return;try{to(t)}catch(l){Wo(t,a,l)}}}catch(l){Wo(t,t.return,l)}if(t===e){Ok=null;break}if(null!==(s=t.sibling)){s.return=t.return,Ok=s;break}Ok=t.return}}function vo(){return 0!=(6&Fk)?lv():-1!==iS?iS:iS=lv()}function wo(e){return 0==(1&e.mode)?1:0!=(2&Fk)&&0!==Mk?Mk&-Mk:null!==Lx.transition?(0===aS&&(aS=fe()),aS):0!==(e=kv)?e:e=void 0===(e=window.event)?16:je(e.type)}function xo(e,t,n,r){if(50<rS)throw rS=0,oS=null,Error(f(185));ge(e,n,r),0!=(2&Fk)&&e===Ak||(e===Ak&&(0==(2&Fk)&&(Uk|=n),4===zk&&Do(e,Mk)),ko(e,r),1===n&&0===Fk&&0==(1&t.mode)&&(Kk=lv()+500,Cx&&Ht()))}function ko(e,t){var n,r=e.callbackNode;if(function(e,t){var n,r,o,i,a,s,l;for(n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;)s=1<<(a=31-bv(i)),-1===(l=o[a])?0!=(s&n)&&0==(s&r)||(o[a]=de(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}(e,t),0===(n=ue(e,e===Ak?Mk:0)))null!==r&&iv(r),e.callbackNode=null,e.callbackPriority=0;else if(e.callbackPriority!==(t=n&-n)){if(null!=r&&iv(r),1===t)0===e.tag?function(e){Cx=!0,zt(e)}(Oo.bind(null,e)):zt(Oo.bind(null,e)),cx((function(){0==(6&Fk)&&Ht()})),r=null;else{switch(be(n)){case 1:r=uv;break;case 4:r=dv;break;case 16:default:r=pv;break;case 536870912:r=hv}r=Xo(r,So.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function So(e,t){var n,r,o,i,a;if(iS=-1,aS=0,0!=(6&Fk))throw Error(f(327));if(n=e.callbackNode,zo()&&e.callbackNode!==n)return null;if(0===(r=ue(e,e===Ak?Mk:0)))return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Fo(e,r);else{for(t=r,o=Fk,Fk|=2,i=Io(),Ak===e&&Mk===t||(Yk=null,Kk=lv()+500,No(e,t));;)try{Ro();break}catch(s){Po(e,s)}rn(),Pk.current=i,Fk=o,null!==Rk?t=0:(Ak=null,Mk=0,t=zk)}if(0!==t){if(2===t&&0!==(o=pe(e))&&(r=o,t=Co(e,o)),1===t)throw n=Hk,No(e,0),Do(e,r),ko(e,lv()),n;if(6===t)Do(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){var t,n,r,o,i;for(t=e;;){if(16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(r=0;r<n.length;r++){i=(o=n[r]).getSnapshot,o=o.value;try{if(!Aw(i(),o))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Fo(e,r))&&0!==(i=pe(e))&&(r=i,t=Co(e,i)),1===t))throw n=Hk,No(e,0),Do(e,r),ko(e,lv()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(f(345));case 2:case 5:Bo(e,qk,Yk);break;case 3:if(Do(e,r),(130023424&r)===r&&10<(t=Xk+500-lv())){if(0!==ue(e,0))break;if(((o=e.suspendedLanes)&r)!==r){vo(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ax(Bo.bind(null,e,qk,Yk),t);break}Bo(e,qk,Yk);break;case 4:if(Do(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;)i=1<<(a=31-bv(r)),(a=t[a])>o&&(o=a),r&=~i;if(r=o,10<(r=(120>(r=lv()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nk(r/1960))-r)){e.timeoutHandle=ax(Bo.bind(null,e,qk,Yk),r);break}Bo(e,qk,Yk);break;default:throw Error(f(329))}}}return ko(e,lv()),e.callbackNode===n?So.bind(null,e):null}function Co(e,t){var n=Gk;return e.current.memoizedState.isDehydrated&&(No(e,t).flags|=256),2!==(e=Fo(e,t))&&(t=qk,qk=n,null!==t&&Eo(t)),e}function Eo(e){null===qk?qk=e:qk.push.apply(qk,e)}function Do(e,t){for(t&=~Vk,e.suspendedLanes|=t&=~Uk,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bv(t),r=1<<n;e[n]=-1,t&=~r}}function Oo(e){var t,n,r;if(0!=(6&Fk))throw Error(f(327));if(zo(),0==(1&(t=ue(e,0))))return ko(e,lv()),null;if(n=Fo(e,t),0!==e.tag&&2===n&&0!==(r=pe(e))&&(t=r,n=Co(e,r)),1===n)throw n=Hk,No(e,0),Do(e,t),ko(e,lv()),n;if(6===n)throw Error(f(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Bo(e,qk,Yk),ko(e,lv()),null}function _o(e,t){var n=Fk;Fk|=1;try{return e(t)}finally{0===(Fk=n)&&(Kk=lv()+500,Cx&&Ht())}}function $o(e){var t,n,r;null!==tS&&0===tS.tag&&0==(6&Fk)&&zo(),t=Fk,Fk|=1,n=Tk.transition,r=kv;try{if(Tk.transition=null,kv=1,e)return e()}finally{kv=r,Tk.transition=n,0==(6&(Fk=t))&&Ht()}}function jo(){Lk=Bk.current,Pt(Bk)}function No(e,t){var n,r,o,i;if(e.finishedWork=null,e.finishedLanes=0,-1!==(n=e.timeoutHandle)&&(e.timeoutHandle=-1,sx(n)),null!==Rk)for(n=Rk.return;null!==n;){switch(Gt(r=n),r.tag){case 1:null!=(r=r.type.childContextTypes)&&At();break;case 3:Nn(),Pt(xx),Pt(wx),Fn();break;case 5:In(r);break;case 4:Nn();break;case 13:case 19:Pt(ek);break;case 10:on(r.type._context);break;case 22:case 23:jo()}n=n.return}if(Ak=e,Rk=e=Jo(e.current,null),Mk=Lk=t,zk=0,Hk=null,Vk=Uk=Wk=0,qk=Gk=null,null!==Ux){for(t=0;t<Ux.length;t++)null!==(r=(n=Ux[t]).interleaved)&&(n.interleaved=null,null!==(o=n.pending)&&(i=o.next,o.next=r.next,r.next=i),n.pending=r);Ux=null}return e}function Po(e,t){for(var n,r,o,i,a,s,l,c,u,d,p,h,g,m,b,y;;){n=Rk;try{if(rn(),nk.current=pk,lk){for(r=ik.memoizedState;null!==r;)null!==(o=r.queue)&&(o.pending=null),r=r.next;lk=!1}if(ok=0,sk=ak=ik=null,ck=!1,uk=0,Ik.current=null,null===n||null===n.return){zk=1,Hk=t,Rk=null;break}e:{if(i=e,a=n.return,l=t,t=Mk,(s=n).flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){if(c=l,d=(u=s).tag,0!=(1&u.mode)||0!==d&&11!==d&&15!==d||((p=u.alternate)?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)),null!==(h=Er(a))){h.flags&=-257,Dr(h,a,s,0,t),1&h.mode&&Cr(i,c,t),l=c,null===(g=(t=h).updateQueue)?((m=new Set).add(l),t.updateQueue=m):g.add(l);break e}if(0==(1&t)){Cr(i,c,t),To();break e}l=Error(f(426))}else if(Rx&&1&s.mode&&null!==(b=Er(a))){0==(65536&b.flags)&&(b.flags|=256),Dr(b,a,s,0,t),tn(wr(l,s));break e}i=l=wr(l,s),4!==zk&&(zk=2),null===Gk?Gk=[i]:Gk.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,i.lanes|=t&=-t,bn(i,kr(0,l,t));break e;case 1:if(s=l,y=i.stateNode,0==(128&i.flags)&&("function"==typeof i.type.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Zk||!Zk.has(y)))){i.flags|=65536,i.lanes|=t&=-t,bn(i,Sr(i,s,t));break e}}i=i.return}while(null!==i)}Lo(n)}catch(v){t=v,Rk===n&&null!==n&&(Rk=n=n.return);continue}break}}function Io(){var e=Pk.current;return Pk.current=pk,null===e?pk:e}function To(){0!==zk&&3!==zk&&2!==zk||(zk=4),null===Ak||0==(268435455&Wk)&&0==(268435455&Uk)||Do(Ak,Mk)}function Fo(e,t){var n,r=Fk;for(Fk|=2,n=Io(),Ak===e&&Mk===t||(Yk=null,No(e,t));;)try{Ao();break}catch(GX){Po(e,GX)}if(rn(),Fk=r,Pk.current=n,null!==Rk)throw Error(f(261));return Ak=null,Mk=0,zk}function Ao(){for(;null!==Rk;)Mo(Rk)}function Ro(){for(;null!==Rk&&!av();)Mo(Rk)}function Mo(e){var t=sS(e.alternate,e,Lk);e.memoizedProps=e.pendingProps,null===t?Lo(e):Rk=t,Ik.current=null}function Lo(e){var t,n=e;do{if(t=n.alternate,e=n.return,0==(32768&n.flags)){if(null!==(t=Kr(t,n,Lk)))return void(Rk=t)}else{if(null!==(t=Yr(t,n)))return t.flags&=32767,void(Rk=t);if(null===e)return zk=6,void(Rk=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(n=n.sibling))return void(Rk=n);Rk=n=e}while(null!==n);0===zk&&(zk=5)}function Bo(e,t,n){var r=kv,o=Tk.transition;try{Tk.transition=null,kv=1,function(e,t,n,r){var o,i,a,s;do{zo()}while(null!==tS);if(0!=(6&Fk))throw Error(f(327));if(o=e.finishedLanes,null===(n=e.finishedWork))return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(f(177));if(e.callbackNode=null,e.callbackPriority=0,function(e,t){var n,r,o,i=e.pendingLanes&~t;for(e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements,n=e.eventTimes,e=e.expirationTimes;0<i;)o=1<<(r=31-bv(i)),t[r]=0,n[r]=-1,e[r]=-1,i&=~o}(e,i=n.lanes|n.childLanes),e===Ak&&(Rk=Ak=null,Mk=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||eS||(eS=!0,Xo(pv,(function(){return zo(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i?(i=Tk.transition,Tk.transition=null,a=kv,kv=1,s=Fk,Fk|=4,Ik.current=null,function(e,t){var n,r,o,i,a,s,l,c,u,d,p,h,g,m,b,y,v,w;if(ox=Mv,nt(e=tt())){if("selectionStart"in e)n={start:e.selectionStart,end:e.selectionEnd};else if((r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection())&&0!==r.rangeCount){n=r.anchorNode,o=r.anchorOffset,i=r.focusNode,r=r.focusOffset,a=0,s=-1,l=-1,c=0,u=0,d=e,p=null;e:for(;;){for(;d!==n||0!==o&&3!==d.nodeType||(s=a+o),d!==i||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break e;if(p===n&&++c===o&&(s=a),p===i&&++u===r&&(l=a),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null;n=n||{start:0,end:0}}else n=null;for(ix={focusedElem:e,selectionRange:n},Mv=!1,Ok=t;null!==Ok;)if(e=(t=Ok).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ok=e;else for(;null!==Ok;){t=Ok;try{if(g=t.alternate,0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:null!==g&&(m=g.memoizedProps,b=g.memoizedState,v=(y=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?m:nn(t.type,m),b),y.__reactInternalSnapshotBeforeUpdate=v);break;case 3:1===(w=t.stateNode.containerInfo).nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(f(163))}}catch(x){Wo(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Ok=e;break}Ok=t.return}g=_k,_k=!1}(e,n),po(n,e),rt(ix),Mv=!!ox,ix=ox=null,e.current=n,ho(n),sv(),Fk=s,kv=a,Tk.transition=i):e.current=n,eS&&(eS=!1,tS=e,nS=o),0===(i=e.pendingLanes)&&(Zk=null),function(e){if(mv&&"function"==typeof mv.onCommitFiberRoot)try{mv.onCommitFiberRoot(gv,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ko(e,lv()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Qk)throw Qk=!1,e=Jk,Jk=null,e;0!=(1&nS)&&0!==e.tag&&zo(),0!=(1&(i=e.pendingLanes))?e===oS?rS++:(rS=0,oS=e):rS=0,Ht()}(e,t,n,r)}finally{Tk.transition=o,kv=r}return null}function zo(){var e,t,n,r,o,i,a,s,l,c,u,d,p,h,g,m,b,y,v,w,x;if(null!==tS){e=be(nS),t=Tk.transition,n=kv;try{if(Tk.transition=null,kv=16>e?16:e,null===tS)r=!1;else{if(e=tS,tS=null,nS=0,0!=(6&Fk))throw Error(f(331));for(o=Fk,Fk|=4,Ok=e.current;null!==Ok;){if(a=(i=Ok).child,0!=(16&Ok.flags)&&null!==(s=i.deletions)){for(l=0;l<s.length;l++)for(Ok=c=s[l];null!==Ok;){switch((u=Ok).tag){case 0:case 11:case 15:Zr(8,u,i)}if(null!==(d=u.child))d.return=u,Ok=d;else for(;null!==Ok;){if(p=(u=Ok).sibling,h=u.return,no(u),u===c){Ok=null;break}if(null!==p){p.return=h,Ok=p;break}Ok=h}}if(null!==(g=i.alternate)&&null!==(m=g.child)){g.child=null;do{b=m.sibling,m.sibling=null,m=b}while(null!==m)}Ok=i}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,Ok=a;else e:for(;null!==Ok;){if(0!=(2048&(i=Ok).flags))switch(i.tag){case 0:case 11:case 15:Zr(9,i,i.return)}if(null!==(y=i.sibling)){y.return=i.return,Ok=y;break e}Ok=i.return}}for(Ok=v=e.current;null!==Ok;)if(w=(a=Ok).child,0!=(2064&a.subtreeFlags)&&null!==w)w.return=a,Ok=w;else e:for(a=v;null!==Ok;){if(0!=(2048&(s=Ok).flags))try{switch(s.tag){case 0:case 11:case 15:eo(9,s)}}catch(k){Wo(s,s.return,k)}if(s===a){Ok=null;break e}if(null!==(x=s.sibling)){x.return=s.return,Ok=x;break e}Ok=s.return}if(Fk=o,Ht(),mv&&"function"==typeof mv.onPostCommitFiberRoot)try{mv.onPostCommitFiberRoot(gv,e)}catch(k){}r=!0}return r}finally{kv=n,Tk.transition=t}}return!1}function Ho(e,t,n){e=gn(e,t=kr(0,t=wr(n,t),1),1),t=vo(),null!==e&&(ge(e,1,t),ko(e,t))}function Wo(e,t,n){if(3===e.tag)Ho(e,e,n);else for(;null!==t;){if(3===t.tag){Ho(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zk||!Zk.has(r))){t=gn(t,e=Sr(t,e=wr(n,e),1),1),e=vo(),null!==t&&(ge(t,1,e),ko(t,e));break}}t=t.return}}function Uo(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=vo(),e.pingedLanes|=e.suspendedLanes&n,Ak===e&&(Mk&n)===n&&(4===zk||3===zk&&(130023424&Mk)===Mk&&500>lv()-Xk?No(e,0):Vk|=n),ko(e,t)}function Vo(e,t){0===t&&(0==(1&e.mode)?t=1:(t=xv,0==(130023424&(xv<<=1))&&(xv=4194304)));var n=vo();null!==(e=dn(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(f(314))}null!==n&&n.delete(t),Vo(e,o)}function Xo(e,t){return ov(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,i){var a=2;if(r=e,"function"==typeof e)Qo(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Ey:return ei(n.children,o,i,t);case Dy:a=8,o|=8;break;case Oy:return(e=Yo(12,n,t,2|o)).elementType=Oy,e.lanes=i,e;case Ny:return(e=Yo(13,n,t,o)).elementType=Ny,e.lanes=i,e;case Py:return(e=Yo(19,n,t,o)).elementType=Py,e.lanes=i,e;case Fy:return ti(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _y:a=10;break e;case $y:a=9;break e;case jy:a=11;break e;case Iy:a=14;break e;case Ty:a=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,""))}return(t=Yo(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function ei(e,t,n,r){return(e=Yo(7,e,r,t)).lanes=n,e}function ti(e,t,n,r){return(e=Yo(22,e,r,t)).elementType=Fy,e.lanes=n,e.stateNode={isHidden:!1},e}function ni(e,t,n){return(e=Yo(6,e,null,t)).lanes=n,e}function ri(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 oi(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=he(0),this.expirationTimes=he(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=he(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ii(e,t,n,r,o,i,a,s,l){return e=new oi(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Yo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pn(i),e}function ai(e){var t,n;if(!e)return vx;e:{if(oe(e=e._reactInternals)!==e||1!==e.tag)throw Error(f(170));t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(f(171))}return 1===e.tag&&Ft(n=e.type)?Mt(e,n,t):t}function si(e,t,n,r,o,i,a,s,l){return(e=ii(n,r,!0,e,0,i,0,s,l)).context=ai(null),n=e.current,(i=hn(r=vo(),o=wo(n))).callback=null!=t?t:null,gn(n,i,o),e.current.lanes=o,ge(e,o,r),ko(e,r),e}function li(e,t,n,r){var o=t.current,i=vo(),a=wo(o);return n=ai(n),null===t.context?t.context=n:t.pendingContext=n,(t=hn(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=gn(o,t,a))&&(xo(e,o,a,i),mn(e,o,a)),a}function ci(e){return(e=e.current).child?e.child.stateNode:null}function ui(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function di(e,t){ui(e,t),(e=e.alternate)&&ui(e,t)}function pi(e){this._internalRoot=e}function fi(e){this._internalRoot=e}function hi(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function gi(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function mi(){}function bi(e,t,n,r,o){var i,a,s=n._reactRootContainer;return s?("function"==typeof o&&(a=o,o=function(){var e=ci(i);a.call(e)}),li(t,i=s,e,o)):i=function(e,t,n,r,o){var i,a,s,l;if(o)return"function"==typeof r&&(i=r,r=function(){var e=ci(a);i.call(e)}),a=si(t,r,e,0,null,!1,0,"",mi),e._reactRootContainer=a,e[fx]=a.current,pt(8===e.nodeType?e.parentNode:e),$o(),a;for(;o=e.lastChild;)e.removeChild(o);return"function"==typeof r&&(s=r,r=function(){var e=ci(l);s.call(e)}),l=ii(e,0,!1,null,0,!1,0,"",mi),e._reactRootContainer=l,e[fx]=l.current,pt(8===e.nodeType?e.parentNode:e),$o((function(){li(t,l,n,r)})),l}(n,t,e,o,r),ci(i)}function yi(){}function vi(){}function wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xi(e,t){var n,r,o,i;if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!xi(e[r],t[r]))return!1;return!0}if(xS&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!xi(r.value[1],t.get(r.value[0])))return!1;return!0}if(kS&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(SS&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(wS&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!xi(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}function ki(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function Si(e){return(Si="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 Ci(e){var t=function(e){var t,n;if("object"!==Si(e)||null===e)return e;if(void 0!==(t=e[Symbol.toPrimitive])){if("object"!==Si(n=t.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Si(t)?t:String(t)}function Ei(e,t,n){return(t=Ci(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Di(e,t){var n,r,o,i;if(null==e)return{};if(n=function(e,t){var n,r,o,i;if(null==e)return{};for(n={},r=Object.keys(e),i=0;i<r.length;i++)t.indexOf(o=r[i])>=0||(n[o]=e[o]);return n}(e,t),Object.getOwnPropertySymbols)for(i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)t.indexOf(r=i[o])>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Oi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $i(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ci(r.key),r)}function ji(e,t,n){return t&&$i(e.prototype,t),n&&$i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ni(e){return e.trim()}function Pi(e,t,n){return e.replace(t,n)}function Ii(e,t){return e.indexOf(t)}function Ti(e,t){return 0|e.charCodeAt(t)}function Fi(e,t,n){return e.slice(t,n)}function Ai(e){return e.length}function Ri(e){return e.length}function Mi(e,t){return t.push(e),e}function Li(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zC,column:HC,length:a,return:""}}function Bi(e,t){return BC(Li("",null,null,"",null,null,0),e,{length:-e.length},t)}function zi(){return VC=UC<WC?Ti(GC,UC++):0,HC++,10===VC&&(HC=1,zC++),VC}function Hi(){return Ti(GC,UC)}function Wi(){return UC}function Ui(e,t){return Fi(GC,e,t)}function Vi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gi(e){return zC=HC=1,WC=Ai(GC=e),UC=0,[]}function qi(e){return GC="",e}function Xi(e){return Ni(Ui(UC-1,Qi(91===e?e+2:40===e?e+1:e)))}function Ki(e){for(;(VC=Hi())&&VC<33;)zi();return Vi(e)>2||Vi(VC)>3?"":" "}function Yi(e,t){for(;--t&&zi()&&!(VC<48||VC>102||VC>57&&VC<65||VC>70&&VC<97););return Ui(e,Wi()+(t<6&&32==Hi()&&32==zi()))}function Qi(e){for(;zi();)switch(VC){case e:return UC;case 34:case 39:34!==e&&39!==e&&Qi(VC);break;case 40:41===e&&Qi(e);break;case 92:zi()}return UC}function Ji(e,t){for(;zi()&&e+VC!==57&&(e+VC!==84||47!==Hi()););return"/*"+Ui(t,UC-1)+"*"+LC(47===e?e:zi())}function Zi(e){for(;!Vi(Hi());)zi();return Ui(e,UC)}function ea(e){return qi(ta("",null,null,null,[""],e=Gi(e),0,[0],e))}function ta(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,b=1,y=0,v="",w=o,x=i,k=r,S=v;m;)switch(h=y,y=zi()){case 40:if(108!=h&&58==Ti(S,d-1)){-1!=Ii(S+=Pi(Xi(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=Xi(y);break;case 9:case 10:case 13:case 32:S+=Ki(h);break;case 92:S+=Yi(Wi()-1,7);continue;case 47:switch(Hi()){case 42:case 47:Mi(ra(Ji(zi(),Wi()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=Ai(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==b&&(S=Pi(S,/\f/g,"")),f>0&&Ai(S)-d&&Mi(f>32?oa(S+";",r,n,d-1):oa(Pi(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Mi(k=na(S,t,n,c,u,o,s,v,w=[],x=[],d),i),123===y)if(0===u)ta(S,t,k,k,w,i,d,s,x);else switch(99===p&&110===Ti(S,3)?100:p){case 100:case 108:case 109:case 115:ta(e,k,k,r&&Mi(na(e,k,k,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:ta(S,k,k,k,[""],x,0,s,x)}}c=u=f=0,g=b=1,v=S="",d=a;break;case 58:d=1+Ai(S),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(VC=UC>0?Ti(GC,--UC):0,HC--,10===VC&&(HC=1,zC--),VC))continue;switch(S+=LC(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ai(S)-1)*b,b=1;break;case 64:45===Hi()&&(S+=Xi(zi())),p=Hi(),u=d=Ai(v=S+=Zi(Wi())),y++;break;case 45:45===h&&2==Ai(S)&&(g=0)}}return i}function na(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,h,g,m,b=o-1,y=0===o?i:[""],v=Ri(y);for(d=0,p=0,f=0;d<r;++d)for(h=0,g=Fi(e,b+1,b=MC(p=a[d])),m=e;h<v;++h)(m=Ni(p>0?y[h]+" "+g:Pi(g,/&\f/g,y[h])))&&(l[f++]=m);return Li(e,t,n,0===o?IC:s,l,c,u)}function ra(e,t,n){return Li(e,t,n,PC,LC(VC),Fi(e,2,-2),0)}function oa(e,t,n,r){return Li(e,t,n,TC,Fi(e,0,r),Fi(e,r+1,-1),r)}function ia(e,t){var n,r="",o=Ri(e);for(n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function aa(e,t,n,r){switch(e.type){case RC:if(e.children.length)break;case FC:case TC:return e.return=e.return||e.value;case PC:return"";case AC:return e.return=e.value+"{"+ia(e.children,r)+"}";case IC:e.value=e.props.join(",")}return Ai(n=ia(e.children,r))?e.return=e.value+"{"+n+"}":""}function sa(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}function la(e,t){switch(function(e,t){return 45^Ti(e,0)?(((t<<2^Ti(e,0))<<2^Ti(e,1))<<2^Ti(e,2))<<2^Ti(e,3):0}(e,t)){case 5103:return NC+"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 NC+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return NC+e+jC+e+$C+e+e;case 6828:case 4268:return NC+e+$C+e+e;case 6165:return NC+e+$C+"flex-"+e+e;case 5187:return NC+e+Pi(e,/(\w+).+(:[^]+)/,NC+"box-$1$2"+$C+"flex-$1$2")+e;case 5443:return NC+e+$C+"flex-item-"+Pi(e,/flex-|-self/,"")+e;case 4675:return NC+e+$C+"flex-line-pack"+Pi(e,/align-content|flex-|-self/,"")+e;case 5548:return NC+e+$C+Pi(e,"shrink","negative")+e;case 5292:return NC+e+$C+Pi(e,"basis","preferred-size")+e;case 6060:return NC+"box-"+Pi(e,"-grow","")+NC+e+$C+Pi(e,"grow","positive")+e;case 4554:return NC+Pi(e,/([^-])(transform)/g,"$1"+NC+"$2")+e;case 6187:return Pi(Pi(Pi(e,/(zoom-|grab)/,NC+"$1"),/(image-set)/,NC+"$1"),e,"")+e;case 5495:case 3959:return Pi(e,/(image-set\([^]*)/,NC+"$1$`$1");case 4968:return Pi(Pi(e,/(.+:)(flex-)?(.*)/,NC+"box-pack:$3"+$C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+NC+e+e;case 4095:case 3583:case 4068:case 2532:return Pi(e,/(.+)-inline(.+)/,NC+"$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(Ai(e)-1-t>6)switch(Ti(e,t+1)){case 109:if(45!==Ti(e,t+4))break;case 102:return Pi(e,/(.+:)(.+)-([^]+)/,"$1"+NC+"$2-$3$1"+jC+(108==Ti(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ii(e,"stretch")?la(Pi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ti(e,t+1))break;case 6444:switch(Ti(e,Ai(e)-3-(~Ii(e,"!important")&&10))){case 107:return Pi(e,":",":"+NC)+e;case 101:return Pi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+NC+(45===Ti(e,14)?"inline-":"")+"box$3$1"+NC+"$2$3$1"+$C+"$2box$3")+e}break;case 5936:switch(Ti(e,t+11)){case 114:return NC+e+$C+Pi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return NC+e+$C+Pi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return NC+e+$C+Pi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return NC+e+$C+e+e}return e}function ca(e,t,n){var r,o,i,a;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 uE={name:n.name,styles:n.styles,next:uE},n.name;if(void 0!==n.styles){if(void 0!==(r=n.next))for(;void 0!==r;)uE={name:r.name,styles:r.styles,next:uE},r=r.next;return n.styles+";"}return function(e,t,n){var r,o,i,a,s,l="";if(Array.isArray(n))for(r=0;r<n.length;r++)l+=ca(e,t,n[r])+";";else for(o in n)if("object"!=typeof(i=n[o]))null!=t&&void 0!==t[i]?l+=o+"{"+t[i]+"}":aE(i)&&(l+=sE(o)+":"+lE(o,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]])switch(s=ca(e,t,i),o){case"animation":case"animationName":l+=sE(o)+":"+s+";";break;default:l+=o+"{"+s+"}"}else for(a=0;a<i.length;a++)aE(i[a])&&(l+=sE(o)+":"+lE(o,i[a])+";");return l}(e,t,n);case"function":if(void 0!==e)return o=uE,i=n(e),uE=o,ca(e,t,i)}return null==t?n:void 0!==(a=t[n])?a:n}function ua(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}function da(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function pa(e,t,n){var r=[],o=ua(e,r,n);return r.length<2?n:o+t(r)}function fa(){return fa=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},fa.apply(this,arguments)}function ha(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case FE:switch(e=e.type){case HE:case WE:case RE:case LE:case ME:case VE:return e;default:switch(e=e&&e.$$typeof){case zE:case UE:case XE:case qE:case BE:return e;default:return t}}case AE:return t}}}function ga(e){return ha(e)===WE}function ma(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 ba(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?ma(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function va(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function wa(e,t){if(e){if("string"==typeof e)return ya(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ya(e,t):void 0}}function xa(e){return function(e){if(Array.isArray(e))return ya(e)}(e)||va(e)||wa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(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 Sa(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?ka(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Ca(e){for(var t,n=0,r=0,o=e.length;o>=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 Ea(e,t,n){var r=Zb.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Da(){}function Oa(){}function _a(e,t,n){t||pD[n]||(e(!1,n),pD[n]=!0)}function $a(e,t){_a(Da,e,t)}function ja(e,t,n){var r=arguments.length>2&&void 0!==n&&n,o=new Set;return function e(t,n,i){var a,s,l,c=arguments.length>2&&void 0!==i?i:1,u=o.has(t);if($a(!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),a=c+1,Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(s=0;s<t.length;s++)if(!e(t[s],n[s],a))return!1;return!0}return!(!t||!n||"object"!==Si(t)||"object"!==Si(n))&&(l=Object.keys(t)).length===Object.keys(n).length&&l.every((function(r){return e(t[r],n[r],a)}))}(e,t)}function Na(){var e,t,n,r=Math.random().toString(12).slice(2);return"undefined"!=typeof document&&document.head&&document.body&&(e=document.body.querySelectorAll("style[".concat(mD,"]"))||[],t=document.head.firstChild,Array.from(e).forEach((function(e){e[bD]=e[bD]||r,e[bD]===r&&document.head.insertBefore(e,t)})),n={},Array.from(document.querySelectorAll("style[".concat(mD,"]"))).forEach((function(e){var t,o=e.getAttribute(mD);n[o]?e[bD]===r&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e)):n[o]=!0}))),new fD(r)}function Pa(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ia(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function Ta(e){var t=(arguments.length>0&&void 0!==e?e:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):kD}function Fa(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Aa(e){return Array.from((SD.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ra(e,t){var n,r,o,i,a,s,l,c,u,d,p=arguments.length>1&&void 0!==t?t:{};if(!Pa())return null;if(n=p.csp,i=void 0===(o=p.priority)?0:o,s="prependQueue"===(a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r=p.prepend)),(l=document.createElement("style")).setAttribute(wD,a),s&&i&&l.setAttribute(xD,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e,u=(c=Fa(p)).firstChild,r){if(s&&(d=Aa(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(wD)))return!1;var t=Number(e.getAttribute(xD)||0);return i>=t}))).length)return c.insertBefore(l,d[d.length-1].nextSibling),l;c.insertBefore(l,u)}else c.appendChild(l);return l}function Ma(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Aa(Fa(n)).find((function(t){return t.getAttribute(Ta(n))===e}))}function La(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=Ma(e,n);r&&Fa(n).removeChild(r)}function Ba(e,t,n){var r,o,i,a,s,l=arguments.length>2&&void 0!==n?n:{};return function(e,t){var n,r=SD.get(e);r&&Ia(document,r)||(n=Ra("",t),SD.set(e,n.parentNode),e.removeChild(n))}(Fa(l),l),(r=Ma(t,l))?(null!==(o=l.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=l.csp)||void 0===i?void 0:i.nonce)&&(r.nonce=null===(a=l.csp)||void 0===a?void 0:a.nonce),r.innerHTML!==e&&(r.innerHTML=e),r):((s=Ra(e,l)).setAttribute(Ta(l),t),s)}function za(e){if(Array.isArray(e))return e}function Ha(){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 Wa(e,t){return za(e)||function(e,t){var n,r,o,i,a,s,l,c=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=c){a=[],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)&&(a.push(n.value),a.length!==t);s=!0);}catch(u){l=!0,r=u}finally{try{if(!s&&null!=c.return&&(i=c.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e,t)||wa(e,t)||Ha()}function Ua(e){var t=Array.isArray(e)?e:[e];return OD.has(t)||OD.set(t,new DD(t)),OD.get(t)}function Va(e){var t=jD.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof DD?t+=r.id:r&&"object"===Si(r)?t+=Va(r):t+=r})),jD.set(e,t)),t}function Ga(e,t,n,r,o){var i,a,s=Zb.useContext(bY).cache,l=[e].concat(xa(t)),c=l.join("_"),u=vY([c]),d=function(e){s.update(l,(function(t){var r=Wa(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};return Zb.useMemo((function(){d()}),[c]),i=s.get(l),a=i[1],yY((function(){null==o||o(a)}),(function(e){return d((function(t){var n=Wa(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(a)),[r+1,i]})),function(){s.update(l,(function(e){var t=Wa(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0==o-1?(u((function(){return null==r?void 0:r(i,!1)})),null):[o-1,i]}))}}),[c]),a}function qa(e){return e.trim()}function Xa(e,t,n){return e.replace(t,n)}function Ka(e,t){return e.indexOf(t)}function Ya(e,t){return 0|e.charCodeAt(t)}function Qa(e,t,n){return e.slice(t,n)}function Ja(e){return e.length}function Za(e,t){return t.push(e),e}function es(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ZD,column:eO,length:a,return:"",siblings:s}}function ts(){return rO=nO<tO?Ya(oO,nO++):0,eO++,10===rO&&(eO=1,ZD++),rO}function ns(){return Ya(oO,nO)}function rs(){return nO}function os(e,t){return Qa(oO,e,t)}function is(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function as(e){return qa(os(nO-1,cs(91===e?e+2:40===e?e+1:e)))}function ss(e){for(;(rO=ns())&&rO<33;)ts();return is(e)>2||is(rO)>3?"":" "}function ls(e,t){for(;--t&&ts()&&!(rO<48||rO>102||rO>57&&rO<65||rO>70&&rO<97););return os(e,rs()+(t<6&&32==ns()&&32==ts()))}function cs(e){for(;ts();)switch(rO){case e:return nO;case 34:case 39:34!==e&&39!==e&&cs(rO);break;case 40:41===e&&cs(e);break;case 92:ts()}return nO}function us(e,t){for(;ts()&&e+rO!==57&&(e+rO!==84||47!==ns()););return"/*"+os(t,nO-1)+"*"+JD(47===e?e:ts())}function ds(e){for(;!is(ns());)ts();return os(e,nO)}function ps(e){return function(e){return oO="",e}(fs("",null,null,null,[""],e=function(e){return ZD=eO=1,tO=Ja(oO=e),nO=0,[]}(e),0,[0],e))}function fs(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,b=1,y=0,v="",w=o,x=i,k=r,S=v;m;)switch(h=y,y=ts()){case 40:if(108!=h&&58==Ya(S,d-1)){-1!=Ka(S+=Xa(as(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=as(y);break;case 9:case 10:case 13:case 32:S+=ss(h);break;case 92:S+=ls(rs()-1,7);continue;case 47:switch(ns()){case 42:case 47:Za(gs(us(ts(),rs()),t,n,l),l);break;default:S+="/"}break;case 123*g:s[c++]=Ja(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==b&&(S=Xa(S,/\f/g,"")),f>0&&Ja(S)-d&&Za(f>32?ms(S+";",r,n,d-1,l):ms(Xa(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(Za(k=hs(S,t,n,c,u,o,s,v,w=[],x=[],d,i),i),123===y)if(0===u)fs(S,t,k,k,w,i,d,s,x);else switch(99===p&&110===Ya(S,3)?100:p){case 100:case 108:case 109:case 115:fs(e,k,k,r&&Za(hs(e,k,k,0,0,o,s,v,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:fs(S,k,k,k,[""],x,0,s,x)}}c=u=f=0,g=b=1,v=S="",d=a;break;case 58:d=1+Ja(S),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(rO=nO>0?Ya(oO,--nO):0,eO--,10===rO&&(eO=1,ZD--),rO))continue;switch(S+=JD(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ja(S)-1)*b,b=1;break;case 64:45===ns()&&(S+=as(ts())),p=ns(),u=d=Ja(v=S+=ds(rs())),y++;break;case 45:45===h&&2==Ja(S)&&(g=0)}}return i}function hs(e,t,n,r,o,i,a,s,l,c,u,d){var p,f,h,g,m,b,y=o-1,v=0===o?i:[""],w=function(e){return e.length}(v);for(p=0,f=0,h=0;p<r;++p)for(g=0,m=Qa(e,y+1,y=QD(f=a[p])),b=e;g<w;++g)(b=qa(f>0?v[g]+" "+m:Xa(m,/&\f/g,v[g])))&&(l[h++]=b);return es(e,t,n,0===o?GD:s,l,c,u,d)}function gs(e,t,n,r){return es(e,t,n,VD,JD(rO),Qa(e,2,-2),0,r)}function ms(e,t,n,r,o){return es(e,t,n,qD,Qa(e,0,r),Qa(e,r+1,-1),r,o)}function bs(e,t){var n,r="";for(n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function ys(e,t,n,r){switch(e.type){case YD:if(e.children.length)break;case XD:case qD:return e.return=e.return||e.value;case VD:return"";case KD:return e.return=e.value+"{"+bs(e.children,r)+"}";case GD:if(!Ja(e.value=e.props.join(",")))return""}return Ja(n=bs(e.children,r))?e.return=e.value+"{"+n+"}":""}function vs(e){return bs(ps(e),ys).replace(/\{%%%\:[^;];}/g,";")}function ws(){return null}function xs(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b=e.token,y=e.path,v=e.hashId,w=e.layer,x=e.nonce,k=e.clientOnly,S=e.order,C=void 0===S?0:S,E=Zb.useContext(bY),D=E.autoClear;return n=E.defaultCache,r=E.hashPriority,o=E.container,i=E.ssrInline,a=E.transformers,s=E.linters,l=E.cache,u=[c=b._tokenKey].concat(xa(y)),d=cO,p=Ga("style",u,(function(){var e,n,o,i,l,d,p,f,h=u.join("|");return function(e){var t,n,r;return sO||(sO={},Pa()&&((t=document.createElement("div")).className=iO,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t),(getComputedStyle(t).content||"").replace(/^"/,"").replace(/"$/,"").split(";").forEach((function(e){var t=Wa(e.split(":"),2);sO[t[0]]=t[1]})),(n=document.querySelector("style[".concat(iO,"]")))&&(lO=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(t))),!!sO[e]}(h)&&(e=function(e){var t,n=sO[e],r=null;return n&&Pa()&&(lO?r=aO:(t=document.querySelector("style[".concat(mD,'="').concat(sO[e],'"]')))?r=t.innerHTML:delete sO[e]),[r,n]}(h),o=(n=Wa(e,2))[0])?[o,c,n[1],{},k,C]:(i=t(),d=(l=Wa(dO(i,{hashId:v,hashPriority:r,layer:w,path:y.join("-"),transformers:a,linters:s}),2))[1],p=vs(l[0]),f=function(e,t){return Ca("".concat(e.join("%")).concat(t))}(u,p),[p,c,f,d,k,C])}),(function(e,t){var n=Wa(e,3);(t||D)&&cO&&La(n[2],{mark:mD})}),(function(e){var t,n,r,i,a,s=Wa(e,4),u=s[0];t=s[2],n=s[3],d&&u!==aO&&(r={mark:mD,prepend:"queue",attachTo:o,priority:C},(i="function"==typeof x?x():x)&&(r.csp={nonce:i}),(a=Ba(u,t,r))[bD]=l.instanceId,a.setAttribute(gD,c),Object.keys(n).forEach((function(e){Ba(vs(n[e]),"_effect-".concat(e),r)})))})),f=Wa(p,3),h=f[0],g=f[1],m=f[2],function(e){var t,r;return t=i&&!d&&n?Zb.createElement("style",fa({},(Ei(r={},gD,g),Ei(r,mD,m),r),{dangerouslySetInnerHTML:{__html:h}})):Zb.createElement(ws,null),Zb.createElement(Zb.Fragment,null,t,e)}}function ks(e){return e.notSplit=!0,e}function Ss(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 Cs(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Ss(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Es(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xO:switch(e=e.type){case SO:case EO:case CO:case jO:case NO:return e;default:switch(e=e&&e.$$typeof){case _O:case OO:case $O:case IO:case PO:case DO:return e;default:return t}}case kO:return t}}}function Ds(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=[];return AK.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Ds(e)):AO.isFragment(e)&&e.props?r=r.concat(Ds(e.props.children,n)):r.push(e))})),r}function Os(e,t){"function"==typeof e?e(t):"object"===Si(e)&&e&&"current"in e&&(e.current=t)}function _s(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(r=t.filter((function(e){return e}))).length<=1?r[0]:function(e){t.forEach((function(t){Os(t,e)}))}}function $s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ea((function(){return _s.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function js(e){var t,n,r=AO.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}function Ns(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ps(e){return Ns(e)?e:e instanceof AK.Component?MK.findDOMNode(e):null}function Is(e){return parseFloat(e)||0}function Ts(e){var t,n=[];for(t=1;t<arguments.length;t++)n[t-1]=arguments[t];return n.reduce((function(t,n){return t+Is(e["border-"+n+"-width"])}),0)}function Fs(e,t,n,r){return{x:e,y:t,width:n,height:r}}function As(e,t){return(As=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rs(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&As(e,t)}function Ms(e){return(Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ls(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(GX){return!1}}function Bs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zs(e){var t=Ls();return function(){var n,r,o=Ms(e);return t?(r=Ms(this).constructor,n=Reflect.construct(o,arguments,r)):n=o.apply(this,arguments),function(e,t){if(t&&("object"===Si(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bs(e)}(this,n)}}function Hs(e,t){var n,r,o=e.children,i=e.disabled,a=Zb.useRef(null),s=Zb.useRef(null),l=Zb.useContext(r_),c="function"==typeof o,u=c?o(a):o,d=Zb.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!c&&Zb.isValidElement(u)&&js(u),f=p?u.ref:null,h=Zb.useMemo((function(){return _s(f,a)}),[f,a]),g=function(){return Ps(a.current)||Ps(s.current)};return Zb.useImperativeHandle(t,(function(){return g()})),(n=Zb.useRef(e)).current=e,r=Zb.useCallback((function(e){var t,r,o,i,a=n.current,s=a.onResize,c=a.data,u=e.getBoundingClientRect(),p=u.width,f=u.height,h=e.offsetWidth,g=e.offsetHeight,m=Math.floor(p),b=Math.floor(f);d.current.width===m&&d.current.height===b&&d.current.offsetWidth===h&&d.current.offsetHeight===g||(d.current=t={width:m,height:b,offsetWidth:h,offsetHeight:g},r=h===Math.round(p)?p:h,o=g===Math.round(f)?f:g,i=Sa(Sa({},t),{},{offsetWidth:r,offsetHeight:o}),null==l||l(i,e,c),s&&Promise.resolve().then((function(){s(i,e)})))}),[]),Zb.useEffect((function(){var e,t,n=g();return n&&!i&&(t=r,e_.has(e=n)||(e_.set(e,new Set),t_.observe(e)),e_.get(e).add(t)),function(){return function(e,t){e_.has(e)&&(e_.get(e).delete(t),e_.get(e).size||(t_.unobserve(e),e_.delete(e)))}(n,r)}}),[a.current,i]),Zb.createElement(n_,{ref:s},p?Zb.cloneElement(u,{ref:h}):u)}function Ws(e,t){var n=e.children;return("function"==typeof n?[n]:Ds(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat(i_,"-").concat(r);return Zb.createElement(o_,fa({},e,{key:o,ref:0===r?t:void 0}),n)}))}function Us(e,t){var n=Sa({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Vs(e){u_.delete(e)}function Gs(e){return za(e)||va(e)||wa(e)||Ha()}function qs(e,t){var n,r=e;for(n=0;n<t.length;n+=1){if(null==r)return;r=r[t[n]]}return r}function Xs(e,t,n,r){var o,i,a,s;return t.length?(i=(o=Gs(t))[0],a=o.slice(1),s=e||"number"!=typeof i?Array.isArray(e)?xa(e):Sa({},e):[],r&&void 0===n&&1===a.length?delete s[i][a[0]]:s[i]=Xs(s[i],a,n,r),s):n}function Ks(e,t,n,r){var o=arguments.length>3&&void 0!==r&&r;return t.length&&o&&void 0===n&&!qs(e,t.slice(0,-1))?e:Xs(e,t,n,o)}function Ys(e){return Array.isArray(e)?[]:{}}function Qs(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=Ys(t[0]),t.forEach((function(e){!function t(n,o){var i,a,s=new Set(o),l=qs(e,n),c=Array.isArray(l);c||"object"===Si(a=l)&&null!==a&&Object.getPrototypeOf(a)===Object.prototype?s.has(l)||(s.add(l),i=qs(r,n),c?r=Ks(r,n,[]):i&&"object"===Si(i)||(r=Ks(r,n,Ys(l))),p_(l).forEach((function(e){t([].concat(xa(n),[e]),s)}))):r=Ks(r,n,l)}([])})),r}function Js(){}function Zs(){return $Y}function el(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function tl(e){return Math.min(1,Math.max(0,e))}function nl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function rl(e){return e<=1?"".concat(100*Number(e),"%"):e}function ol(e){return 1===e.length?"0"+e:String(e)}function il(e,t,n){var r,o,i,a,s,l;if(e=el(e,255),t=el(t,255),n=el(n,255),i=0,a=0,s=((r=Math.max(e,t,n))+(o=Math.min(e,t,n)))/2,r===o)a=0,i=0;else{switch(l=r-o,a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:s}}function al(e,t,n){return n<0&&(n+=1),n>1&&(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 sl(e,t,n){var r,o,i,a,s,l;if(e=el(e,255),t=el(t,255),n=el(n,255),i=0,a=r=Math.max(e,t,n),s=r-(o=Math.min(e,t,n)),l=0===r?0:s/r,r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function ll(e,t,n,r){var o=[ol(Math.round(e).toString(16)),ol(Math.round(t).toString(16)),ol(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function cl(e){return ul(e)/255}function ul(e){return parseInt(e,16)}function dl(e){var t,n,r={r:0,g:0,b:0},o=1,i=null,a=null,s=null,l=!1,c=!1;return"string"==typeof e&&(e=function(e){var t,n;if(0===(e=e.trim().toLowerCase()).length)return!1;if(t=!1,f_[e])e=f_[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=b_.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=b_.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=b_.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=b_.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=b_.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=b_.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=b_.hex8.exec(e))?{r:ul(n[1]),g:ul(n[2]),b:ul(n[3]),a:cl(n[4]),format:t?"name":"hex8"}:(n=b_.hex6.exec(e))?{r:ul(n[1]),g:ul(n[2]),b:ul(n[3]),format:t?"name":"hex"}:(n=b_.hex4.exec(e))?{r:ul(n[1]+n[1]),g:ul(n[2]+n[2]),b:ul(n[3]+n[3]),a:cl(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=b_.hex3.exec(e))&&{r:ul(n[1]+n[1]),g:ul(n[2]+n[2]),b:ul(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(pl(e.r)&&pl(e.g)&&pl(e.b)?(t=e.g,n=e.b,r={r:255*el(e.r,255),g:255*el(t,255),b:255*el(n,255)},l=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):pl(e.h)&&pl(e.s)&&pl(e.v)?(i=rl(e.s),a=rl(e.v),r=function(e,t,n){var r,o,i,a,s,l;return e=6*el(e,360),t=el(t,100),{r:255*[n=el(n,100),a=n*(1-(o=e-(r=Math.floor(e)))*t),i=n*(1-t),i,s=n*(1-(1-o)*t),n][l=r%6],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,i,a),l=!0,c="hsv"):pl(e.h)&&pl(e.s)&&pl(e.l)&&(i=rl(e.s),s=rl(e.l),r=function(e,t,n){var r,o,i,a,s;return e=el(e,360),t=el(t,100),n=el(n,100),0===t?(o=n,i=n,r=n):(r=al(s=2*n-(a=n<.5?n*(1+t):n+t-n*t),a,e+1/3),o=al(s,a,e),i=al(s,a,e-1/3)),{r:255*r,g:255*o,b:255*i}}(e.h,i,s),l=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=nl(o),{ok:l,format:e.format||c,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:o}}function pl(e){return Boolean(b_.CSS_UNIT.exec(String(e)))}function fl(e){var t=sl(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function hl(e){return"#".concat(ll(e.r,e.g,e.b,!1))}function gl(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-v_*t:Math.round(e.h)+v_*t:n?Math.round(e.h)+v_*t:Math.round(e.h)-v_*t)<0?r+=360:r>=360&&(r-=360),r}function ml(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-w_*t:t===E_?e.s+w_:e.s+x_*t)>1&&(r=1),n&&t===C_&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function bl(e,t,n){var r;return(r=n?e.v+k_*t:e.v-S_*t)>1&&(r=1),Number(r.toFixed(2))}function yl(e,t){var n,r,o,i,a,s,l=arguments.length>1&&void 0!==t?t:{},c=[],u=dl(e);for(n=C_;n>0;n-=1)o=hl(dl({h:gl(r=fl(u),n,!0),s:ml(r,n,!0),v:bl(r,n,!0)})),c.push(o);for(c.push(hl(u)),i=1;i<=E_;i+=1)s=hl(dl({h:gl(a=fl(u),i),s:ml(a,i),v:bl(a,i)})),c.push(s);return"dark"===l.theme?D_.map((function(e){var t,n,r,o=e.index,i=e.opacity;return hl((t=dl(l.backgroundColor||"#141414"),{r:((n=dl(c[o])).r-t.r)*(r=100*i/100)+t.r,g:(n.g-t.g)*r+t.g,b:(n.b-t.b)*r+t.b}))})):c}function vl(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(o),f=n(i),h=n(a),g=n(s),m=r(c,u),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg: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],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new y_("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function wl(e){const t=Object.keys(AY).map((t=>{const n=yl(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),vl(e,{generateColorPalettes:zY,generateNeutralColorPalettes:HY})),WY(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)),FY(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},MY(r))}(e))}function xl(e){return e>=0&&e<=255}function kl(e,t){const{r:n,g:r,b:o,a:i}=new y_(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new y_(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-s*(1-c))/c),i=Math.round((o-l*(1-c))/c);if(xl(e)&&xl(t)&&xl(i))return new y_({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new y_({r:n,g:r,b:o,a:1}).toRgbString()}function Sl(e){const{override:t}=e,n=N_(e,["override"]),r=Object.assign({},t);Object.keys(RY).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),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:kl(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:kl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:kl(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:kl(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 y_("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new y_("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new y_("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 Cl(){const{token:e,hashed:t,theme:n,override:r}=AK.useContext(GY),o=`${rQ}-${t||""}`,i=n||UY,[a,s]=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:{},o=Zb.useContext(bY).cache.instanceId,i=r.salt,a=void 0===i?"":i,s=r.override,l=void 0===s?LD:s,c=r.formatToken,u=r.getComputedToken,d=function(e,n){var r,o,i=_D;for(r=0;r<n.length;r+=1)i.has(o=n[r])||i.set(o,new WeakMap),i=i.get(o);return i.has($D)||i.set($D,Object.assign.apply(Object,[{}].concat(xa(t)))),i.get($D)}(0,t),p=Va(d),f=Va(l),h=Ga("token",[a,e.id,p,f],(function(){var t,n=u?u(d,l,e):WD(d,l,e,c),r=function(e,t){return Ca("".concat(t,"_").concat(Va(e)))}(n,a);return n._tokenKey=r,function(e){zD.set(e,(zD.get(e)||0)+1)}(r),t="".concat(BD,"-").concat(Ca(r)),n._hashId=t,[n,t]}),(function(e){!function(e,t){var n,r;zD.set(e,(zD.get(e)||0)-1),r=(n=Array.from(zD.keys())).filter((function(e){return(zD.get(e)||0)<=0})),n.length-r.length>HD&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(gD,'="').concat(e,'"]')).forEach((function(e){var n;e[bD]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),zD.delete(e)}))}(e[0]._tokenKey,o)}));return h}(i,[RY,e],{salt:o,override:r,getComputedToken:oQ,formatToken:Sl});return[i,a,t?s:""]}function El(e){var t,n=Zb.useRef();return n.current=e,t=Zb.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]),t}function Dl(e){var t=Zb.useRef(!1),n=Wa(Zb.useState(e),2),r=n[0],o=n[1];return Zb.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Ol(e){return void 0!==e}function _l(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Wa(Dl((function(){return Ol(o)?o:Ol(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==o?o:l,d=a?a(u):u,p=El(i),f=Wa(Dl([u]),2),h=f[0],g=f[1];return AD((function(){var e=h[0];l!==e&&p(l,e)}),[h]),AD((function(){Ol(o)||c(o)}),[o]),[d,El((function(e,t){c(e,t),g([u],t)}))]}function $l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!pQ)return Object.assign.apply(Object,[{}].concat(t));fQ=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),fQ=!0,r}function jl(){}function Nl(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};const i=Array.isArray(e)?e:[e,e],[a]=i,s=i.join("-");return e=>{const[r,i,l]=Cl(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=Zb.useContext(XY),p=c(),f={theme:r,token:i,hashId:l,nonce:()=>null==d?void 0:d.nonce,clientOnly:o.clientOnly,order:o.order||-999};return xs(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",p]}),(()=>[{"&":lQ(i)}])),gQ(u,d),[xs(Object.assign(Object.assign({},f),{path:[s,e,u]}),(()=>{const{token:r,flush:s}=function(e){let t,n=e,r=jl;return pQ&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(fQ&&t.add(n),e[n])}),r=(e,n)=>{var r;hQ[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=hQ[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(i),c=Object.assign({},i[a]);if(o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((e=>{let[t,n]=e;var r;((null==c?void 0:c[t])||(null==c?void 0:c[n]))&&(null!==(r=c[n])&&void 0!==r||(c[n]=null==c?void 0:c[t]))}))}const d="function"==typeof n?n($l(r,null!=c?c:{})):n,f=Object.assign(Object.assign({},d),c),h=$l(r,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${p}`},f),g=t(h,{hashId:l,prefixCls:e,rootPrefixCls:p,iconPrefixCls:u,overrideComponentToken:c});return s(a,f),[!1===o.resetStyle?null:cQ(i,e),g]})),l]}}function Pl(e,t){return nQ.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}function Il(e){var t=e.children,n=Di(e,I_);return Zb.createElement(T_.Provider,{value:n},t)}function Tl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Fl(e){var t,n,r,o,i;if(K_[e])return K_[e];if(t=G_[e])for(r=(n=Object.keys(t)).length,o=0;o<r;o+=1)if(i=n[o],Object.prototype.hasOwnProperty.call(t,i)&&i in q_)return K_[e]=t[i],K_[e];return""}function Al(e,t){return e?"object"===Si(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function Rl(e){return e===W_||e===U_}function Ml(e){var t;return Sa(Sa({},t=e&&"object"===Si(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ll(e){return(arguments.length>0&&void 0!==e?e:[]).map(Ml)}function Bl(e){const{children:t}=e,[,n]=Cl(),{motion:r}=n,o=Zb.useRef(!1);return o.current=o.current||!1===r,o.current?Zb.createElement(Il,{motion:r},t):t}function zl(){return xQ||"ant"}function Hl(){return kQ||qY}function Wl(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ul(e){return function(e){return Wl(e)instanceof ShadowRoot}(e)?Wl(e):null}function Vl(e){return"object"===Si(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Si(e.icon)||"function"==typeof e.icon)}function Gl(e){var t=arguments.length>0&&void 0!==e?e:{};return Object.keys(t).reduce((function(e,n){var r,o=t[n];return"class"===n?(e.className=o,delete e.class):(delete e[n],e[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),e}),{})}function ql(e,t,n){return AK.createElement(e.tag,n?Sa(Sa({key:t},Gl(e.attrs)),n):Sa({key:t},Gl(e.attrs)),(e.children||[]).map((function(n,r){return ql(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Xl(e){return yl(e)[0]}function Kl(e){return e?Array.isArray(e)?e:[e]:[]}function Yl(e){var t=Wa(Kl(e),2);return _Q.setTwoToneColors({primaryColor:t[0],secondaryColor:t[1]})}function Ql(e,t){return 0===e.indexOf(t)}function Jl(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}:Sa({},o),r={},Object.keys(e).forEach((function(t){(n.aria&&("role"===t||Ql(t,v$))||n.data&&Ql(t,w$)||n.attr&&y$.includes(t))&&(r[t]=e[t])})),r}function Zl(e){return e&&LQ(e)&&e.type===Zb.Fragment}function ec(e,t){return function(e,t,n){return LQ(e)?Zb.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function tc(e){var t=arguments.length>0&&void 0!==e?e:{},n=t.getContainer,r=void 0===n?$$:n,o=t.motion,i=t.prefixCls,a=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,u=t.stack,d=t.renderNotifications,p=Di(t,_$),f=Wa(Zb.useState(),2),h=f[0],g=f[1],m=Zb.useRef(),b=Zb.createElement(O$,{container:h,ref:m,prefixCls:i,motion:o,maxCount:a,className:s,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),y=Wa(Zb.useState([]),2),v=y[0],w=y[1],x=Zb.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<e;n++)t[n]=arguments[n];return t.forEach((function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(r[t]=n)}))})),r}(p,e);null==t.key&&(t.key="rc-notification-".concat(j$),j$+=1),w((function(e){return[].concat(xa(e),[{type:"open",config:t}])}))},close:function(e){w((function(t){return[].concat(xa(t),[{type:"close",key:e}])}))},destroy:function(){w((function(e){return[].concat(xa(e),[{type:"destroy"}])}))}}}),[]);return Zb.useEffect((function(){g(r())})),Zb.useEffect((function(){m.current&&v.length&&(v.forEach((function(e){switch(e.type){case"open":m.current.open(e.config);break;case"close":m.current.close(e.key);break;case"destroy":m.current.destroy()}})),w((function(e){return e.filter((function(e){return!v.includes(e)}))})))}),[v]),[x,b]}function nc(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function rc(e){const t=Zb.useRef(null);return SY(),[Zb.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,message:i}=t.current,a=`${o}-notice`,{content:s,icon:l,type:c,key:u,className:d,style:p,onClose:f}=n,h=P$(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(rJ+=1,g=`antd-message-${rJ}`),nc((t=>(r(Object.assign(Object.assign({},h),{key:g,content:Zb.createElement(JQ,{prefixCls:o,type:c,icon:l},s),placement:"top",className:wY(c&&`${a}-${c}`,d,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),p),onClose:()=>{null==f||f(),t()}})),()=>{e(g)})))},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 i,a,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}})),r}),[]),Zb.createElement(nJ,Object.assign({key:"message-holder"},e,{ref:t}))]}function oc(e){return rc(e)}function ic(){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 i=Object.create((t&&t.prototype instanceof r?t:r).prototype),a=new p(o||[]);return y(i,"_invoke",{value:l(e,n,a)}),i}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 i(){}function a(t){["next","throw","return"].forEach((function(n){e(t,n,(function(e){return this._invoke(n,e)}))}))}function s(e,t){function r(o,i,a,s){var l,c,u=n(e[o],e,i);if("throw"!==u.type)return(c=(l=u.arg).value)&&"object"==Si(c)&&b.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}));s(u.arg)}var o;y(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function l(e,t,r){var o=S;return function(i,a){var s,l,u;if(o===E)throw new Error("Generator is already running");if(o===D){if("throw"===i)throw a;return{value:h,done:!0}}for(r.method=i,r.arg=a;;){if((s=r.delegate)&&(l=c(s,r))){if(l===O)continue;return l}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===S)throw o=D,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(o=E,"normal"===(u=n(e,t,r)).type){if(o=r.done?D:C,u.arg===O)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=D,r.method="throw",r.arg=u.arg)}}}function c(e,t){var r,o,i=t.method,a=e.iterator[i];return a===h?(t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=h,c(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),O):"throw"===(r=n(a,e.iterator,t.arg)).type?(t.method="throw",t.arg=r.arg,t.delegate=null,O):(o=r.arg)?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=h),t.delegate=null,O):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,O)}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 d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){var t,n,r;if(e||""===e){if(t=e[w])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n<e.length;)if(b.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=h,t.done=!0,t}).next=r}throw new TypeError(Si(e)+" is not iterable")}var h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N;ic=function(){return g},g={},b=(m=Object.prototype).hasOwnProperty,y=Object.defineProperty||function(e,t,n){e[t]=n.value},v="function"==typeof Symbol?Symbol:{},w=v.iterator||"@@iterator",x=v.asyncIterator||"@@asyncIterator",k=v.toStringTag||"@@toStringTag";try{e({},"")}catch(P){e=function(e,t,n){return e[t]=n}}return g.wrap=t,S="suspendedStart",C="suspendedYield",E="executing",D="completed",O={},e(_={},w,(function(){return this})),(j=($=Object.getPrototypeOf)&&$($(f([]))))&&j!==m&&b.call(j,w)&&(_=j),N=i.prototype=r.prototype=Object.create(_),o.prototype=i,y(N,"constructor",{value:i,configurable:!0}),y(i,"constructor",{value:o,configurable:!0}),o.displayName=e(i,k,"GeneratorFunction"),g.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},g.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,i):(t.__proto__=i,e(t,k,"GeneratorFunction")),t.prototype=Object.create(N),t},g.awrap=function(e){return{__await:e}},a(s.prototype),e(s.prototype,x,(function(){return this})),g.AsyncIterator=s,g.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new s(t(e,n,r,o),i);return g.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},a(N),e(N,k,"Generator"),e(N,w,(function(){return this})),e(N,"toString",(function(){return"[object Generator]"})),g.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},g.values=f,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,this.tryEntries.forEach(d),!e)for(var t in this)"t"===t.charAt(0)&&b.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=h)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=h),!!r}var n,r,o,i,a,s;if(this.done)throw e;for(n=this,r=this.tryEntries.length-1;r>=0;--r){if(i=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(a=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc"),a&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}},abrupt:function(e,t){var n,r,o,i;for(n=this.tryEntries.length-1;n>=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev<r.finallyLoc){o=r;break}return o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null),(i=o?o.completion:{}).type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,O):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),O},finish:function(e){var t,n;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),O},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,d(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=h),O}},g}function ac(e,t,n,r,o,i,a){var s,l;try{l=(s=e[i](a)).value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function sc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){ac(s,r,o,i,a,"next",e)}function a(e){ac(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}function lc(e){var t=I$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Si(t)&&(t.usingClientEntryPoint=e)}function cc(e,t){R$?function(e,t){lc(!0);var n=t[M$]||R$(t);lc(!1),n.render(e),t[M$]=n}(e,t):function(e,t){F$(e,t)}(e,t)}function uc(e){return dc.apply(this,arguments)}function dc(){return(dc=sc(ic().mark((function e(t){return ic().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[M$])||void 0===e||e.unmount(),delete t[M$]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pc(e){A$(e)}function fc(e){return hc.apply(this,arguments)}function hc(){return(hc=sc(ic().mark((function e(t){return ic().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===R$){e.next=2;break}return e.abrupt("return",uc(t));case 2:pc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gc(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 mc(e){return Number.isNaN(e)?0:e}function bc(e){return"danger"===e?{danger:!0}:{type:e}}function yc(e){return"string"==typeof e}function vc(e){return"text"===e||"link"===e}function wc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function xc(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 kc(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({},wc(e,o,n)),xc(r,o,n))}}function Sc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Cc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Sc(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 Ec(e){return!(!e||!e.then)}function Dc(e){var t,n,r,o,i,a=e.match(/^(.*)px$/),s=Number(null==a?void 0:a[1]);return Number.isNaN(s)?"undefined"==typeof document?0:(void 0===U$&&((t=document.createElement("div")).style.width="100%",t.style.height="200px",(r=(n=document.createElement("div")).style).position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n),o=t.offsetWidth,n.style.overflow="scroll",o===(i=t.offsetWidth)&&(i=n.clientWidth),document.body.removeChild(n),U$=o-i),U$):s}function Oc(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function _c(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,o=e.className;return Zb.createElement(bQ,{key:"mask",visible:e.visible,motionName:e.motionName,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,i){var a=e.className;return Zb.createElement("div",fa({ref:i,style:Sa(Sa({},e.style),n),className:wY("".concat(t,"-mask"),a,o)},r))}))}function jc(e){function t(e){null==h||h(e)}var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,h=e.onClose,g=e.afterOpenChange,m=e.afterClose,b=e.transitionName,y=e.animation,v=e.closable,w=void 0===v||v,x=e.mask,k=void 0===x||x,S=e.maskTransitionName,C=e.maskAnimation,E=e.maskClosable,D=void 0===E||E,O=e.maskStyle,_=e.maskProps,$=e.rootClassName,j=e.classNames,N=e.styles,P=Zb.useRef(),I=Zb.useRef(),T=Zb.useRef(),F=Wa(Zb.useState(a),2),A=F[0],R=F[1],M=hZ(),L=Zb.useRef(!1),B=Zb.useRef(),z=null;return D&&(z=function(e){L.current?L.current=!1:I.current===e.target&&t(e)}),Zb.useEffect((function(){a&&(R(!0),Ia(I.current,document.activeElement)||(P.current=document.activeElement))}),[a]),Zb.useEffect((function(){return function(){clearTimeout(B.current)}}),[]),Zb.createElement("div",fa({className:wY("".concat(r,"-root"),$)},Jl(e,{data:!0})),Zb.createElement($c,{prefixCls:r,visible:k&&a,motionName:Oc(r,S,C),style:Sa(Sa({zIndex:o},O),null==N?void 0:N.mask),maskProps:_,className:null==j?void 0:j.mask}),Zb.createElement("div",fa({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===x$.ESC)return e.stopPropagation(),void t(e);a&&e.keyCode===x$.TAB&&T.current.changeActive(!e.shiftKey)},className:wY("".concat(r,"-wrap"),p,null==j?void 0:j.wrapper),ref:I,onClick:z,style:Sa(Sa(Sa({zIndex:o},d),null==N?void 0:N.wrapper),{},{display:A?null:"none"})},f),Zb.createElement(ej,fa({},e,{onMouseDown:function(){clearTimeout(B.current),L.current=!0},onMouseUp:function(){B.current=setTimeout((function(){L.current=!1}))},ref:T,closable:w,ariaId:M,prefixCls:r,visible:a&&A,onClose:t,onVisibleChanged:function(e){if(e)Ia(I.current,document.activeElement)||null===(t=T.current)||void 0===t||t.focus();else{if(R(!1),k&&P.current&&u){try{P.current.focus({preventScroll:!0})}catch(GX){}P.current=null}A&&(null==m||m())}var t;null==g||g(e)},motionName:Oc(r,b,y)}))))}function Nc(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:AK.createElement(TQ,null);const a=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==o&&o);if(!a)return[!1,null];const s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}function Pc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ic(){return Ic=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},Ic.apply(this,arguments)}function Tc(e){return(Tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fc(e,t){return(Fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ac(e,t,n){return(Ac=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(GX){return!1}}()?Reflect.construct.bind():function(e,t,n){var r,o=[null];return o.push.apply(o,t),r=new(Function.bind.apply(e,o)),n&&Fc(r,n.prototype),r}).apply(null,arguments)}function Rc(e){var t="function"==typeof Map?new Map:void 0;return Rc=function(e){function n(){return Ac(e,arguments,Tc(this).constructor)}if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fc(n,e)},Rc(e)}function Mc(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Lc(e){var t,n,r,o,i;for(t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o=0,i=n.length,"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(aj,(function(e){if("%%"===e)return"%";if(o>=i)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 Bc(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 zc(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}([])}function Hc(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){var n,r=e;for(n=0;n<t.length;n++){if(null==r)return r;r=r[t[n]]}return r}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Wc(e,t){var n,r;if(t)for(n in t)t.hasOwnProperty(n)&&(e[n]="object"==typeof(r=t[n])&&"object"==typeof e[n]?Ic({},e[n],r):r);return e}function Uc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}function Vc(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}function Gc(e,t,n,r,o){return qc.apply(this,arguments)}function qc(){return qc=sc(ic().mark((function e(t,n,r,o,i){var a,s,l,c,u,d,p,f;return ic().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=Sa({},r)).ruleIndex,Cj.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return Promise.reject(Ej)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Cj(Ei({},t,[a])),u=Qs(Sj,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(Ei({},t,n),Sa({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,r=n===Ej?u.default:n;return Zb.isValidElement(r)?Zb.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(d.length||!l){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Gc("".concat(t,".").concat(n),e,l,o,i)})));case 21:return e.abrupt("return",e.sent.reduce((function(e,t){return[].concat(xa(e),xa(t))}),[]));case 23:return p=Sa(Sa({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),f=d.map((function(e){return"string"==typeof e?Vc(e,p):e})),e.abrupt("return",f);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),qc.apply(this,arguments)}function Xc(e,t,n,r,o,i){var a,s,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=Sa(Sa({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){$a(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));$a(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly;return!!n==!!t.warningOnly?e.ruleIndex-t.ruleIndex:n?1:-1}));return!0===o?a=new Promise(function(){var e=sc(ic().mark((function e(n,o){var a,s,u;return ic().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Gc(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()):(s=c.map((function(e){return Gc(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))})),a=(o?function(e){return Yc.apply(this,arguments)}(s):function(e){return Kc.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))),a.catch((function(e){return e})),a}function Kc(){return(Kc=sc(ic().mark((function e(t){return ic().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,xa(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yc(){return(Yc=sc(ic().mark((function e(t){var n;return ic().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qc(e){return Pc(e)}function Jc(e,t){var n={};return t.forEach((function(t){var r=qs(e,t);n=Ks(n,t,r)})),n}function Zc(e,t,n){var r=arguments.length>2&&void 0!==n&&n;return e&&e.some((function(e){return eu(t,e,r)}))}function eu(e,t,n){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==n&&n)&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function tu(e,t){var n=arguments.length<=1?void 0:t;return n&&n.target&&"object"===Si(n.target)&&e in n.target?n.target[e]:n}function nu(e,t,n){var r,o,i=e.length;return t<0||t>=i||n<0||n>=i?e:(r=e[t],(o=t-n)>0?[].concat(xa(e.slice(0,n)),[r],xa(e.slice(n,t)),xa(e.slice(t+1,i))):o<0?[].concat(xa(e.slice(0,t)),xa(e.slice(t+1,n+1)),[r],xa(e.slice(n+1,i))):e)}function ru(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}function ou(e){var t=e.name,n=Di(e,Dj),r=Zb.useContext(oj),o=Zb.useContext(ij),i=void 0!==t?Qc(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),Zb.createElement(_j,fa({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function iu(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=Zb.useContext(oj),l=Zb.useContext(ij),c=Zb.useRef({keys:[],id:0}).current,u=Zb.useMemo((function(){var e=Qc(s.prefixName)||[];return[].concat(xa(e),xa(Qc(t)))}),[s.prefixName,t]),d=Zb.useMemo((function(){return Sa(Sa({},s),{},{prefixName:u})}),[s,u]),p=Zb.useMemo((function(){return{getKey:function(e){var t=u.length;return[c.keys[e[t]],e.slice(t+1)]}}}),[u]);return"function"!=typeof r?($a(!1,"Form.List only accepts function as children."),null):Zb.createElement(ij.Provider,{value:p},Zb.createElement(oj.Provider,{value:d},Zb.createElement(ou,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,o=e.onChange,i=s.getFieldValue,a=function(){return i(u||[])||[]},l={add:function(e,t){var n=a();t>=0&&t<=n.length?(c.keys=[].concat(xa(c.keys.slice(0,t)),[c.id],xa(c.keys.slice(t))),o([].concat(xa(n.slice(0,t)),[e],xa(n.slice(t))))):(c.keys=[].concat(xa(c.keys),[c.id]),o([].concat(xa(n),[e]))),c.id+=1},remove:function(e){var t=a(),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=a();e<0||e>=n.length||t<0||t>=n.length||(c.keys=nu(c.keys,e,t),o(nu(n,e,t)))}}},d=(void 0===n?[]:n)||[];return Array.isArray(d)||(d=[]),r(d.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)}))))}function au(e){return e.map((function(e){return"".concat(Si(e),":").concat(e)})).join($j)}function su(e){var t,n=Zb.useRef(),r=Wa(Zb.useState({}),2)[1];return n.current||(e?n.current=e:(t=new Pj((function(){r({})})),n.current=t.getForm())),[n.current]}function lu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function cu(){var e,t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y;for(e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o=void 0===(r=t[0])?[]:r,s=function(e){return e&&!!e._init}(a=void 0===(i=t[1])?{}:i)?{form:a}:a,l=s.form,c=Wa(Zb.useState(),2),d=c[1],p=Zb.useMemo((function(){return lu(u)}),[u=c[0]]),(f=Zb.useRef(p)).current=p,h=Zb.useContext(oj),m=(g=l||h)&&g._init,b=Qc(o),(y=Zb.useRef(b)).current=b,Zb.useEffect((function(){var e,t,n;if(m)return e=g.getFieldsValue,t=(0,(0,g.getInternalHooks)(nj).registerWatch)((function(e,t){var n=qs(s.preserve?t:e,y.current),r=lu(n);f.current!==r&&(f.current=r,d(n))})),n=qs(s.preserve?e(!0):e(),y.current),u!==n&&d(n),t}),[m]),u}function uu(){}function du(e){const t=Zb.useContext(kZ),n=Zb.useRef();return El((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}function pu(e,t){return AK.createElement("span",{className:`${e}-close-x`},t||AK.createElement(TQ,{className:`${e}-close-icon`}))}function fu(e){return{position:e,inset:0}}function hu(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=Lj(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=Zb.createElement(MQ,null);break;case"success":d=Zb.createElement(jQ,null);break;case"error":d=Zb.createElement(PQ,null);break;default:d=Zb.createElement(AQ,null)}const p=null!=s?s:"confirm"===a,f=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=IY("Modal"),g=c||h,m=Object.assign({autoFocusButton:f,cancelTextLocale:o||(null==g?void 0:g.cancelText),okTextLocale:r||(p?null==g?void 0:g.okText:null==g?void 0:g.justOkText),mergedOkCancel:p},u),b=Zb.useMemo((()=>m),xa(Object.values(m))),y=Zb.createElement(Zb.Fragment,null,Zb.createElement(pZ,null),Zb.createElement(fZ,null)),v=null!=e.title,w=`${i}-body`;return Zb.createElement("div",{className:`${i}-body-wrapper`},Zb.createElement("div",{className:wY(w,{[`${w}-has-title`]:v})},d,Zb.createElement("div",{className:`${i}-paragraph`},v&&Zb.createElement("span",{className:`${i}-title`},e.title),Zb.createElement("div",{className:`${i}-content`},e.content))),void 0===l||"function"==typeof l?Zb.createElement(dZ,{value:b},Zb.createElement("div",{className:`${i}-btns`},"function"==typeof l?l(y,{OkBtn:fZ,CancelBtn:pZ}):y)):l,Zb.createElement(x0,{prefixCls:t}))}function gu(e){function t(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const a=n.some((e=>e&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat(xa(n.slice(1))));for(let e=0;e<S0.length;e++)if(S0[e]===r){S0.splice(e,1);break}fc(o)}function n(e){var{okText:t,cancelText:n,prefixCls:r,getContainer:a}=e,s=Bj(e,["okText","cancelText","prefixCls","getContainer"]);clearTimeout(i),i=setTimeout((()=>{const e=Zs(),{getPrefixCls:i,getIconPrefixCls:l,getTheme:c}=CQ(),u=i(void 0,C0),d=r||`${u}-modal`,p=l(),f=c();let h=a;!1===h&&(h=void 0),cc(Zb.createElement(k0,Object.assign({},s,{getContainer:h,prefixCls:d,rootPrefixCls:u,iconPrefixCls:p,okText:t,locale:e,theme:f,cancelText:n||e.cancelText})),o)}))}function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];a=Object.assign(Object.assign({},a),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),t.apply(this,o)}}),a.visible&&delete a.visible,n(a)}const o=document.createDocumentFragment();let i,a=Object.assign(Object.assign({},e),{close:r,open:!0});return n(a),S0.push(r),{destroy:r,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),n(a)}}}function mu(e){return Object.assign(Object.assign({},e),{type:"warning"})}function bu(e){return Object.assign(Object.assign({},e),{type:"info"})}function yu(e){return Object.assign(Object.assign({},e),{type:"success"})}function vu(e){return Object.assign(Object.assign({},e),{type:"error"})}function wu(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function xu(){const e=Zb.useRef(null),[t,n]=Zb.useState([]);Zb.useEffect((()=>{t.length&&(xa(t).forEach((e=>{e()})),n([]))}),[t]);const r=Zb.useCallback((t=>function(r){var o;O0+=1;const i=Zb.createRef();let a;const s=new Promise((e=>{a=e}));let l,c=!1;const u=Zb.createElement(D0,{key:`modal-${O0}`,config:t(r),ref:i,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{a(e)}});return l=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),l&&S0.push(l),{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(xa(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(xa(e),[t])))},then:e=>(c=!0,s.then(e))}}),[]);return[Zb.useMemo((()=>({info:r(bu),success:r(yu),error:r(vu),warning:r(mu),confirm:r(wu)})),[]),Zb.createElement(_0,{key:"modal-holder",ref:e})]}function ku(e,t){return null===t||!1===t?null:t||Zb.createElement("span",{className:`${e}-close-x`},Zb.createElement(TQ,{className:`${e}-close-icon`}))}function Su(e){const t=Zb.useRef(null);return SY(),[Zb.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,notification:a}=t.current,s=`${i}-notice`,{message:l,description:c,icon:u,type:d,btn:p,className:f,style:h,role:g="alert",closeIcon:m}=n,b=Wj(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),y=ku(s,m);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:L0},b),{content:Zb.createElement(M0,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:p,role:g}),className:wY(d&&`${s}-${d}`,f,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),closeIcon:y,closable:!!y}))},r={open:n,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((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),Zb.createElement(H0,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Cu(e){return Su(e)}function Eu(e){return function(t){return Zb.createElement(DQ,{theme:{token:{motion:!1,zIndexPopupBase:0}}},Zb.createElement(e,Object.assign({},t)))}}function Du(e){var t=arguments.length>0&&void 0!==e?e:250,n=Zb.useRef(null),r=Zb.useRef(null);return Zb.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 Ou(e,t){function n(e){f(h,e)}var r,o,i,a,s=e.prefixCls,l=e.invalidate,c=e.item,u=e.renderItem,d=e.responsive,p=e.responsiveDisabled,f=e.registerSize,h=e.itemKey,g=e.className,m=e.style,b=e.children,y=e.display,v=e.order,w=e.component,x=void 0===w?"div":w,k=Di(e,Gj),S=d&&!y;return Zb.useEffect((function(){return function(){n(null)}}),[]),r=u&&c!==qj?u(c):b,l||(o={opacity:S?0:1,height:S?0:qj,overflowY:S?"hidden":qj,order:d?v:qj,pointerEvents:S?"none":qj,position:S?"absolute":qj}),i={},S&&(i["aria-hidden"]=!0),a=Zb.createElement(x,fa({className:wY(!l&&s,g),style:Sa(Sa({},o),m)},i,k,{ref:t}),r),d&&(a=Zb.createElement(a_,{onResize:function(e){n(e.offsetWidth)},disabled:p},a)),a}function _u(e,t){var n=Wa(Zb.useState(t),2),r=n[1];return[n[0],El((function(t){e((function(){r(t)}))}))]}function $u(e){return"+ ".concat(e.length," ...")}function ju(e,t){function n(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(le(e<b.length-1),null==I||I(e)),void 0!==t&&te(t))}function r(e,t){W((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function o(e){return H.get(be(ge[e],e))}var i,a,s,l,c,u,d,p,f,h=e.prefixCls,g=void 0===h?"rc-overflow":h,m=e.data,b=void 0===m?[]:m,y=e.renderItem,v=e.renderRawItem,w=e.itemKey,x=e.itemWidth,k=void 0===x?10:x,S=e.ssr,C=e.style,E=e.className,D=e.maxCount,O=e.renderRest,_=e.renderRawRest,$=e.suffix,j=e.component,N=void 0===j?"div":j,P=e.itemComponent,I=e.onVisibleChange,T=Di(e,tN),F="full"===S,A=(f=Zb.useRef(null),function(e){f.current||(f.current=[],function(e){if("undefined"==typeof MessageChannel)d_(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){fS.unstable_batchedUpdates((function(){f.current.forEach((function(e){e()})),f.current=null}))}))),f.current.push(e)}),R=Wa(_u(A,null),2),M=R[0],L=R[1],B=M||0,z=Wa(_u(A,new Map),2),H=z[0],W=z[1],U=Wa(_u(A,0),2),V=U[0],G=U[1],q=Wa(_u(A,0),2),X=q[0],K=q[1],Y=Wa(_u(A,0),2),Q=Y[0],J=Y[1],Z=Wa(Zb.useState(null),2),ee=Z[0],te=Z[1],ne=Wa(Zb.useState(null),2),re=ne[0],oe=ne[1],ie=Zb.useMemo((function(){return null===re&&F?Number.MAX_SAFE_INTEGER:re||0}),[re,M]),ae=Wa(Zb.useState(!1),2),se=ae[0],le=ae[1],ce="".concat(g,"-item"),ue=Math.max(V,X),de=D===nN,pe=b.length&&de,fe=D===rN,he=pe||"number"==typeof D&&b.length>D,ge=Zb.useMemo((function(){var e=b;return pe?e=null===M&&F?b:b.slice(0,Math.min(b.length,B/k)):"number"==typeof D&&(e=b.slice(0,D)),e}),[b,k,M,D,pe]),me=Zb.useMemo((function(){return b.slice(pe?ie+1:ge.length)}),[b,ge,pe,ie]),be=Zb.useCallback((function(e,t){var n;return"function"==typeof w?w(e):null!==(n=w&&(null==e?void 0:e[w]))&&void 0!==n?n:t}),[w]),ye=Zb.useCallback(y||function(e){return e},[y]);return FD((function(){var e,t,r,i,a;if(B&&"number"==typeof ue&&ge){if(e=Q,r=(t=ge.length)-1,!t)return void n(0,null);for(i=0;i<t;i+=1){if(a=o(i),F&&(a=a||0),void 0===a){n(i-1,void 0,!0);break}if(e+=a,0===r&&e<=B||i===r-1&&e+o(r)<=B){n(r,null);break}if(e+ue>B){n(i-1,e-a-Q+X);break}}$&&o(0)+Q>B&&te(null)}}),[B,H,X,Q,be,ge]),a={},null!==ee&&pe&&(a={position:"absolute",left:ee,top:0}),s={prefixCls:ce,responsive:pe,component:P,invalidate:fe},l=v?function(e,t){var n=be(e,t);return Zb.createElement(Kj.Provider,{key:n,value:Sa(Sa({},s),{},{order:t,item:e,itemKey:n,registerSize:r,display:t<=ie})},v(e,t))}:function(e,t){var n=be(e,t);return Zb.createElement(Xj,fa({},s,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:r,display:t<=ie}))},u={order:(i=se&&!!me.length)?ie:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){K(t),G(X)},display:i},_?_&&(c=Zb.createElement(Kj.Provider,{value:Sa(Sa({},s),u)},_(me))):(d=O||$u,c=Zb.createElement(Xj,fa({},s,u),"function"==typeof d?d(me):d)),p=Zb.createElement(N,fa({className:wY(!fe&&g,E),style:C,ref:t},T),ge.map(l),he?c:null,$&&Zb.createElement(Xj,fa({},s,{responsive:de,responsiveDisabled:!pe,order:ie,className:"".concat(ce,"-suffix"),registerSize:function(e,t){J(t)},display:!0,style:a}),$)),de&&(p=Zb.createElement(a_,{onResize:function(e,t){L(t.clientWidth)},disabled:!pe},p)),p}function Nu(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Pu(e){return["string","number"].includes(Si(e))}function Iu(e){var t=void 0;return e&&(Pu(e.title)?t=e.title.toString():Pu(e.label)&&(t=e.label.toString())),t}function Tu(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}function Fu(e){return e?Array.isArray(e)?e:[e]:[]}function Au(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 Ru(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Mu(e){return e.ownerDocument.defaultView}function Lu(e){for(var t,n=[],r=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];r;)[(t=Mu(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 zu(e){return Bu(parseFloat(e),0)}function Hu(e,t){var n=Sa({},e);return(t||[]).forEach((function(e){var t,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P;e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement||(r=(t=Mu(e).getComputedStyle(e)).overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=zu(i),g=zu(a),w=(p-f-(m=zu(s))-(b=zu(l)))*(y=Bu(Math.round(c.width/p*1e3)/1e3)),x=(u-d-h-g)*(v=Bu(Math.round(c.height/u*1e3)/1e3)),k=h*v,S=g*v,C=m*y,E=b*y,D=0,O=0,"clip"===r&&(D=(_=zu(o))*y,O=_*v),N=($=c.x+C-D)+c.width+2*D-C-E-w,P=(j=c.y+k-O)+c.height+2*O-k-S-x,n.left=Math.max(n.left,$),n.top=Math.max(n.top,j),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,P))})),n}function Wu(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 Uu(e,t){var n=Wa(t||[],2),r=n[1];return[Wu(e.width,n[0]),Wu(e.height,r)]}function Vu(e){var t=arguments.length>0&&void 0!==e?e:"";return[t[0],t[1]]}function Gu(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 qu(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 Xu(e){var t,n,r,o,i,a,s=e.prefixCls,l=e.align,c=e.arrowPos,u=e.arrow||{},d=u.className,p=u.content,f=c.x,h=void 0===f?0:f,g=c.y,m=void 0===g?0:g,b=Zb.useRef();return l&&l.points?(t={position:"absolute"},!1!==l.autoArrow&&(i=(n=l.points[0])[1],a=(r=l.points[1])[1],(o=n[0])!==r[0]&&["t","b"].includes(o)?"t"===o?t.top=0:t.bottom=0:t.top=m,i!==a&&["l","r"].includes(i)?"l"===i?t.left=0:t.right=0:t.left=h),Zb.createElement("div",{ref:b,className:wY("".concat(s,"-arrow"),d),style:t},p)):null}function Ku(e){var t=e.prefixCls,n=e.zIndex;return e.mask?Zb.createElement(bQ,fa({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),(function(e){var r=e.className;return Zb.createElement("div",{style:{zIndex:n},className:wY("".concat(t,"-mask"),r)})})):null}function Yu(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 Qu(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 Ju(e){var t=Sa({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return $a(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function Zu(e){return"tags"===e||"multiple"===e}function ed(e,t){var n=arguments.length>1&&void 0!==t&&t;return Ds(e).map((function(e,t){if(!Zb.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,s=Di(i,_N);return n||!r?function(e){var t=e.key,n=e.props,r=n.value;return Sa({key:t,value:void 0!==r?r:t,children:n.children},Di(n,ON))}(e):Sa(Sa({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},s),{},{options:ed(a)})})).filter((function(e){return e}))}function td(e){var t,n=Zb.useRef();return n.current=e,t=Zb.useCallback((function(){return n.current.apply(n,arguments)}),[]),t}function nd(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}function rd(e){var t=e.children,n=e.setRef,r=Zb.useCallback((function(e){n(e)}),[]);return Zb.cloneElement(t,{ref:r})}function od(e,t){var n=arguments.length>0&&void 0!==e?e:0,r=n/(arguments.length>1&&void 0!==t?t:0)*100;return isNaN(r)&&(r=0),r=Math.max(r,RN),r=Math.min(r,n/2),Math.floor(r)}function id(e,t){function n(e){we((function(t){var n;return n=function(e){var t=e;return Number.isNaN(S.current)||(t=Math.min(t,S.current)),Math.max(t,0)}("function"==typeof e?e(t):e),me.current.scrollTop=n,n}))}function r(e,t){var r=e;t?(fS.flushSync((function(){Se(r)})),$()):n(r)}var o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T,F,A,R,M,L,B,z,H=e.prefixCls,W=void 0===H?"rc-virtual-list":H,U=e.className,V=e.height,G=e.itemHeight,q=e.fullHeight,X=void 0===q||q,K=e.style,Y=e.data,Q=e.children,J=e.itemKey,Z=e.virtual,ee=e.direction,te=e.scrollWidth,ne=e.component,re=void 0===ne?"div":ne,oe=e.onScroll,ie=e.onVirtualScroll,ae=e.onVisibleChange,se=e.innerProps,le=e.extraRender,ce=e.styles,ue=Di(e,MN),de=!(!1===Z||!V||!G),pe=de&&Y&&(G*Y.length>V||!!te),fe="rtl"===ee,he=wY(W,Ei({},"".concat(W,"-rtl"),fe),U),ge=Y||LN,me=Zb.useRef(),be=Zb.useRef(),ye=Wa(Zb.useState(0),2),ve=ye[0],we=ye[1],xe=Wa(Zb.useState(0),2),ke=xe[0],Se=xe[1],Ce=Wa(Zb.useState(!1),2),Ee=Ce[0],De=Ce[1],Oe=function(){De(!0)},_e=function(){De(!1)},$e=Zb.useCallback((function(e){return"function"==typeof J?J(e):null==e?void 0:e[J]}),[J]),je={getKey:$e},Ne=Zb.useRef({start:0,end:ge.length}),Pe=Zb.useRef(),Ie=function(e,t){var n=Wa(Zb.useState(e),2),r=n[0],o=n[1],i=Wa(Zb.useState(null),2),a=i[0],s=i[1];return Zb.useEffect((function(){var n=function(e,t,n){function r(e){return void 0!==e?n(e):a}var o,i,a,s,l,c,u,d=e.length,p=t.length;if(0===d&&0===p)return null;for(d<p?(o=e,i=t):(o=t,i=e),a={__EMPTY_ITEM__:!0},s=null,l=1!==Math.abs(d-p),c=0;c<i.length;c+=1)if((u=r(o[c]))!==r(i[c])){s=c,l=l||u!==r(i[c+1]);break}return null===s?null:{index:s,multiple:l}}(r||[],e||[],t);void 0!==(null==n?void 0:n.index)&&s(e[n.index]),o(e)}),[e]),[a]}(ge,$e),Te=Wa(Ie,1);return Pe.current=Te[0],o=function(e){function t(){d_.cancel(l.current)}function n(e){var n,r=arguments.length>0&&void 0!==e&&e;t(),n=function(){a.current.forEach((function(e,t){var n,r;e&&e.offsetParent&&(r=(n=Ps(e)).offsetHeight,s.current.get(t)!==r&&s.current.set(t,n.offsetHeight))})),i((function(e){return e+1}))},r?n():l.current=d_(n)}var r=Wa(Zb.useState(0),2),o=r[0],i=r[1],a=Zb.useRef(new Map),s=Zb.useRef(new IN),l=Zb.useRef();return Zb.useEffect((function(){return t}),[]),[function(t,r){var o=e(t);a.current.get(o),r?(a.current.set(o,r),n()):a.current.delete(o)},n,s.current,o]}($e),a=(i=Wa(o,4))[0],s=i[1],l=i[2],c=Zb.useMemo((function(){var e,t,n,r,o,i,a,s,c,u;if(!de)return{scrollHeight:void 0,start:0,end:ge.length-1,offset:void 0};if(!pe)return{scrollHeight:(null===(e=be.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:ge.length-1,offset:void 0};for(t=0,i=ge.length,a=0;a<i;a+=1)s=$e(ge[a]),(u=t+(void 0===(c=l.get(s))?G:c))>=ve&&void 0===n&&(n=a,r=t),u>ve+V&&void 0===o&&(o=a),t=u;return void 0===n&&(n=0,r=0,o=Math.ceil(V/G)),void 0===o&&(o=ge.length-1),{scrollHeight:t,start:n,end:o=Math.min(o+1,ge.length-1),offset:r}}),[pe,de,ve,ge,i[3],V]),u=c.scrollHeight,p=c.end,f=c.offset,Ne.current.start=d=c.start,Ne.current.end=p,h=Wa(Zb.useState({width:0,height:V}),2),g=h[0],m=h[1],b=function(e){m({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})},y=Zb.useRef(),v=Zb.useRef(),w=Zb.useMemo((function(){return od(g.width,te)}),[g.width,te]),x=Zb.useMemo((function(){return od(g.height,u)}),[g.height,u]),(S=Zb.useRef(k=u-V)).current=k,D=Q0(C=ve<=0,E=ve>=k),_=Zb.useRef((O=function(){return{x:fe?-ke:ke,y:ve}})()),$=El((function(){if(ie){var e=O();_.current.x===e.x&&_.current.y===e.y||(ie(e),_.current=e)}})),j=function(e){var t=e,n=te-g.width;return t=Math.max(t,0),Math.min(t,n)},N=El((function(e,t){t?(fS.flushSync((function(){Se((function(t){return j(t+(fe?-e:e))}))})),$()):n((function(t){return t+e}))})),P=Wa(function(e,t,n,r,o){var i=Zb.useRef(0),a=Zb.useRef(null),s=Zb.useRef(null),l=Zb.useRef(!1),c=Q0(t,n),u=Zb.useRef(null),d=Zb.useRef(null);return[function(t){var n,p,f,h,g,m;e&&(d_.cancel(d.current),d.current=d_((function(){u.current=null}),2),f=n=t.deltaX,h=p=t.deltaY,("sx"===u.current||!u.current&&t.shiftKey&&p&&!n)&&(f=p,h=0,u.current="sx"),g=Math.abs(f),m=Math.abs(h),null===u.current&&(u.current=r&&g>m?"x":"y"),"y"===u.current?function(e,t){d_.cancel(a.current),i.current+=t,s.current=t,c(t)||(FN||e.preventDefault(),a.current=d_((function(){o(i.current*(l.current?10:1)),i.current=0})))}(t,h):function(e,t){o(t,!0),FN||e.preventDefault()}(t,f))},function(t){e&&(l.current=t.detail===s.current)}]}(de,C,E,!!te,N),2),I=P[0],T=P[1],function(e,t,n){var r=Zb.useRef(!1),o=Zb.useRef(0),i=Zb.useRef(null),a=Zb.useRef(null),s=function(e){var t,i;r.current&&(t=Math.ceil(e.touches[0].pageY),i=o.current-t,o.current=t,n(i)&&e.preventDefault(),clearInterval(a.current),a.current=setInterval((function(){(!n(i*=AN,!0)||Math.abs(i)<=.1)&&clearInterval(a.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),i.current=e.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",l))},u=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",l))};FD((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),u(),clearInterval(a.current)}}),[e])}(de,me,(function(e,t){return!D(e,t)&&(I({preventDefault:function(){},deltaY:e}),!0)})),FD((function(){function e(e){de&&e.preventDefault()}var t=me.current;return t.addEventListener("wheel",I),t.addEventListener("DOMMouseScroll",T),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",I),t.removeEventListener("DOMMouseScroll",T),t.removeEventListener("MozMousePixelScroll",e)}}),[de]),FD((function(){te&&Se((function(e){return j(e)}))}),[g.width,te]),A=function(e,t,n,r,o,i,a,s){var l=Zb.useRef(),c=Wa(Zb.useState(null),2),u=c[0],d=c[1];return FD((function(){var s,l,c,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O;if(u&&u.times<TN){if(!e.current)return void d((function(e){return Sa({},e)}));if(i(),l=u.offset,p=!1,f=s=u.targetAlign,h=null,c=e.current.clientHeight){for(g=s||u.originAlign,m=0,b=0,y=0,v=Math.min(t.length-1,u.index),w=0;w<=v;w+=1)x=o(t[w]),m=y=(b=m)+(void 0===(k=n.get(x))?r:k);for(S="top"===g?l:c-l,C=v;C>=0;C-=1){if(E=o(t[C]),void 0===(D=n.get(E))){p=!0;break}if((S-=D)<=0)break}switch(g){case"top":h=b-l;break;case"bottom":h=y-c+l;break;default:b<(O=e.current.scrollTop)?f="top":y>O+c&&(f="bottom")}null!==h&&a(h),h!==u.lastTop&&(p=!0)}p&&d((function(e){return Sa(Sa({},e),{},{times:e.times+1,targetAlign:f,lastTop:h})}))}}),[u,e.current]),function(e){var n,r,i;null!=e?(d_.cancel(l.current),"number"==typeof e?a(e):e&&"object"===Si(e)&&(r=e.align,n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key})),d({times:0,index:n,offset:void 0===(i=e.offset)?0:i,originAlign:r}))):s()}}(me,ge,l,G,$e,(function(){return s(!0)}),n,F=function(){var e,t;null===(e=y.current)||void 0===e||e.delayHidden(),null===(t=v.current)||void 0===t||t.delayHidden()}),Zb.useImperativeHandle(t,(function(){return{getScrollInfo:O,scrollTo:function(e){var t;(t=e)&&"object"===Si(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Se(j(e.left)),A(e.top)):A(e)}}})),FD((function(){if(ae){var e=ge.slice(d,p+1);ae(e,ge)}}),[d,p,ge]),R=function(e,t,n,r){var o=Wa(Zb.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o,s){var l,c,u,d,p,f=arguments.length>1&&void 0!==s?s:o,h=i.get(o),g=i.get(f);if(void 0===h||void 0===g)for(l=e.length,c=a.length;c<l&&(d=t(e[c]),i.set(d,c),p=null!==(u=n.get(d))&&void 0!==u?u:r,a[c]=(a[c-1]||0)+p,d===o&&(h=c),d===f&&(g=c),void 0===h||void 0===g);c+=1);return{top:a[h-1]||0,bottom:a[g]}}}(ge,$e,l,G),M=null==le?void 0:le({start:d,end:p,virtual:pe,offsetX:ke,offsetY:f,rtl:fe,getSize:R}),L=function(e,t,n,r,o,i,a){var s=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{style:{width:r}}),l=s(e);return Zb.createElement(rd,{key:l,setRef:function(t){return o(e,t)}},a)}))}(ge,d,p,te,a,Q,je),B=null,V&&(B=Sa(Ei({},X?"height":"maxHeight",V),BN),de&&(B.overflowY="hidden",te&&(B.overflowX="hidden"),Ee&&(B.pointerEvents="none"))),z={},fe&&(z.dir="rtl"),Zb.createElement("div",fa({style:Sa(Sa({},K),{},{position:"relative"}),className:he},z,ue),Zb.createElement(a_,{onResize:b},Zb.createElement(re,{className:"".concat(W,"-holder"),style:B,ref:me,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ve&&n(t),null==oe||oe(e),$()},onMouseEnter:F},Zb.createElement(NN,{prefixCls:W,height:u,offsetX:ke,offsetY:f,scrollWidth:te,onInnerResize:s,ref:be,innerProps:se,rtl:fe,extra:M},L))),pe&&u>V&&Zb.createElement(PN,{ref:y,prefixCls:W,scrollOffset:ve,scrollRange:u,rtl:fe,onScroll:r,onStartMove:Oe,onStopMove:_e,spinSize:x,containerSize:g.height,style:null==ce?void 0:ce.verticalScrollBar,thumbStyle:null==ce?void 0:ce.verticalScrollBarThumb}),pe&&te&&Zb.createElement(PN,{ref:v,prefixCls:W,scrollOffset:ke,scrollRange:te,rtl:fe,onScroll:r,onStartMove:Oe,onStopMove:_e,spinSize:w,containerSize:g.width,horizontal:!0,style:null==ce?void 0:ce.horizontalScrollBar,thumbStyle:null==ce?void 0:ce.horizontalScrollBarThumb}))}function ad(e){return"string"==typeof e||"number"==typeof e}function sd(e,t,n){return wY({[`${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 ld(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,[a]=u1(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",height:"100%",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}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`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,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}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}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 cd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},sQ(e,!0)),{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:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}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 ud(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[cd(e),cd($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}}}},cd($l(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function dd(){const[,e]=Cl(),t=j1(N1(e));return AK.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}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function pd(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return Zb.createElement("div",{className:wY("".concat(n,"-content"),i),style:a},Zb.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function fd(e){const t=I1,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function hd(e,t){return e?t:{}}function gd(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=fd({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"},iQ(r,o,i,s,a)),{"&:before":{background:s}})]},hd(!!d.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:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),hd(!!d.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:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),hd(!!d.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:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p}})),hd(!!d.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:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p}}))}}function md(e,t){return arguments.length>1&&void 0!==t&&!t?nQ.includes(e):[].concat(xa(L1),xa(nQ)).includes(e)}function bd(e,t){const n=md(t),r=wY({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function yd(e,t){var n,r,o,i,a,s,l,c,u,d=e.arrow,p=void 0!==d&&d,f=e.prefixCls,h=void 0===f?"rc-dropdown":f,g=e.transitionName,m=e.animation,b=e.align,y=e.placement,v=void 0===y?"bottomLeft":y,w=e.placements,x=void 0===w?uP:w,k=e.getPopupContainer,S=e.showAction,C=e.hideAction,E=e.overlayClassName,D=e.overlayStyle,O=e.visible,_=e.trigger,$=void 0===_?["hover"]:_,j=e.autoFocus,N=e.overlay,P=e.children,I=e.onVisibleChange,T=Di(e,dP),F=Wa(AK.useState(),2),A=F[1],R="visible"in e?O:F[0],M=AK.useRef(null),L=AK.useRef(null),B=AK.useRef(null);return AK.useImperativeHandle(t,(function(){return M.current})),function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=Zb.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=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case iP:s();break;case aP:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};Zb.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&d_(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:R,triggerRef:B,onVisibleChange:r=function(e){A(e),null==I||I(e)},autoFocus:j,overlayRef:L}),o=function(t){var n=e.onOverlayClick;A(!1),n&&n(t)},i=function(){return AK.createElement(sP,{ref:L,overlay:N,prefixCls:h,arrow:p})},a=function(){return"function"==typeof N?i:i()},s=function(){return"minOverlayWidthMatchTrigger"in e?e.minOverlayWidthMatchTrigger:!e.alignPoint},l=AK.cloneElement(P,{className:wY(null===(n=P.props)||void 0===n?void 0:n.className,R&&(u=e.openClassName,void 0!==u?u:"".concat(h,"-open"))),ref:js(P)?_s(B,P.ref):void 0}),(c=C)||-1===$.indexOf("contextMenu")||(c=["click"]),AK.createElement(Y0,fa({builtinPlacements:x},T,{prefixCls:h,ref:M,popupClassName:wY(E,Ei({},"".concat(h,"-show-arrow"),p)),popupStyle:D,action:$,showAction:S,hideAction:c,popupPlacement:v,popupAlign:b,popupTransitionName:g,popupAnimation:m,popupVisible:R,stretch:s()?"minWidth":"",popup:a(),onPopupVisibleChange:r,onPopupClick:o,getPopupContainer:k}),l)}function vd(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function wd(e){return vd(Zb.useContext(pP),e)}function xd(e){var t=e.children,n=e.locked,r=Di(e,fP),o=Zb.useContext(hP),i=Ea((function(){return e=r,t=Sa({},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]&&ja(e[1],t[1],!0))}));return Zb.createElement(hP.Provider,{value:i},t)}function kd(){return Zb.useContext(mP)}function Sd(e){var t=Zb.useContext(bP);return Zb.useMemo((function(){return void 0!==e?[].concat(xa(t),[e]):t}),[t,e])}function Cd(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t;return!!uJ(e)&&(n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null,o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||s&&a<0))}function Ed(e,t){var n=function(e,t){var n=arguments.length>1&&void 0!==t&&t,r=xa(e.querySelectorAll("*")).filter((function(e){return Cd(e,n)}));return Cd(e,n)&&r.unshift(e),r}(e,!0);return n.filter((function(e){return t.has(e)}))}function Dd(e,t,n,r){var o,i,a,s=arguments.length>3&&void 0!==r?r:1;return e?(i=(o=Ed(e,t)).length,a=o.findIndex((function(e){return n===e})),s<0?-1===a?a=i-1:a-=1:s>0&&(a+=1),o[a=(a+i)%i]):null}function Od(e){var t,n=Zb.useRef(e);return n.current=e,t=Zb.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]),e?t:void 0}function _d(e,t,n,r){var o=Zb.useContext(hP),i=o.onActive,a=o.onInactive,s={active:o.activeKey===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),i(e)},s.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),a(e)}),s}function $d(e){var t,n=Zb.useContext(hP),r=n.inlineIndent;return"inline"!==n.mode?null:(t=e,n.rtl?{paddingRight:t*r}:{paddingLeft:t*r})}function jd(e){var t,n=e.icon,r=e.children;return null===n||!1===n?null:("function"==typeof n?t=Zb.createElement(n,Sa({},e.props)):"boolean"!=typeof n&&(t=n),t||r||null)}function Nd(e){var t=e.item,n=Di(e,FP);return Object.defineProperty(n,"item",{get:function(){return $a(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function Pd(e,t){var n=e.eventKey,r=kd(),o=Sd(n);return Zb.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:Zb.createElement(BP,fa({},e,{ref:t}))}function Id(e,t){return Ds(e).map((function(e,n){var r,o,i;return Zb.isValidElement(e)?(null==(i=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:e.key)&&(i="tmp_key-".concat([].concat(xa(t),[n]).join("-"))),Zb.cloneElement(e,{key:i,eventKey:i})):e}))}function Td(e,t,n){return t||(n?n[e]||n.other:void 0)}function Fd(e){var t,n,r=e.prefixCls,o=e.visible,i=e.children,a=e.popup,s=e.popupStyle,l=e.popupClassName,c=e.popupOffset,u=e.disabled,d=e.mode,p=e.onVisibleChange,f=Zb.useContext(hP),h=f.getPopupContainer,g=f.rtl,m=f.subMenuOpenDelay,b=f.subMenuCloseDelay,y=f.builtinPlacements,v=f.triggerSubMenuAction,w=f.forceSubMenuRender,x=f.rootClassName,k=f.motion,S=f.defaultMotions,C=Wa(Zb.useState(!1),2),E=C[0],D=C[1],O=Sa(Sa({},g?GP:VP),y),_=qP[d],$=Td(d,k,S),j=Zb.useRef($);return"inline"!==d&&(j.current=$),t=Sa(Sa({},j.current),{},{leavedClassName:"".concat(r,"-hidden"),removeOnLeave:!1,motionAppear:!0}),n=Zb.useRef(),Zb.useEffect((function(){return n.current=d_((function(){D(o)})),function(){d_.cancel(n.current)}}),[o]),Zb.createElement(Y0,{prefixCls:r,popupClassName:wY("".concat(r,"-popup"),Ei({},"".concat(r,"-rtl"),g),l,x),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:h,builtinPlacements:O,popupPlacement:_,popupVisible:E,popup:a,popupStyle:s,popupAlign:c&&{offset:c},action:u?[]:[v],mouseEnterDelay:m,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:w,popupMotion:t,fresh:!0},i)}function Ad(e){var t,n,r,o,i,a,s=e.id,l=e.open,c=e.keyPath,u=e.children,d="inline",p=Zb.useContext(hP),f=p.prefixCls,h=p.forceSubMenuRender,g=p.motion,m=p.defaultMotions,b=p.mode,y=Zb.useRef(!1);return y.current=b===d,n=(t=Wa(Zb.useState(!y.current),2))[0],r=t[1],o=!!y.current&&l,Zb.useEffect((function(){y.current&&r(!1)}),[b]),i=Sa({},Td(d,g,m)),c.length>1&&(i.motionAppear=!1),a=i.onVisibleChanged,i.onVisibleChanged=function(e){return y.current||e||r(!0),null==a?void 0:a(e)},n?null:Zb.createElement(xd,{mode:d,locked:!y.current},Zb.createElement(bQ,fa({visible:o},i,{forceRender:h,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){return Zb.createElement(WP,{id:s,className:e.className,style:e.style},u)})))}function Rd(e){var t=e.eventKey,n=e.children,r=Sd(t),o=Id(n,r),i=kd();return Zb.useEffect((function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}}),[r]),Zb.createElement(bP.Provider,{value:r},i?o:Zb.createElement(YP,e,o))}function Md(e){var t=e.children,n=Di(e,JP),r=Id(t,Sd(n.eventKey));return kd()?r:Zb.createElement(ZP,Us(n,["warnKey"]),r)}function Ld(e){var t=e.className,n=e.style,r=Zb.useContext(hP).prefixCls;return kd()?null:Zb.createElement("li",{role:"separator",className:wY("".concat(r,"-item-divider"),t),style:n})}function Bd(e){return(e||[]).map((function(e,t){var n,r,o,i,a,s,l;return e&&"object"===Si(e)?(r=(n=e).label,o=n.children,i=n.key,a=n.type,s=Di(n,eI),l=null!=i?i:"tmp-".concat(t),o||"group"===a?Zb.createElement("group"===a?Md:Rd,fa({key:l},s,{title:r}),Bd(o)):"divider"===a?Zb.createElement(Ld,fa({key:l},s)):Zb.createElement(G1,fa({key:l},s),r)):null})).filter((function(e){return e}))}function zd(e,t,n){var r=e;return t&&(r=Bd(t)),Id(r,n)}function Hd(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,s=iI(n,["label","children","key","type"]),l=null!=i?i:`tmp-${t}`;return o||"group"===a?Zb.createElement("group"===a?Md:Q1,Object.assign({key:l},s,{title:r}),Hd(o)):"divider"===a?Zb.createElement(X1,Object.assign({key:l},s)):Zb.createElement(Y1,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function Wd(e){return Zb.useMemo((()=>e?Hd(e):e),[e])}function Ud(e){return $l(e,{inputAffixPadding:e.paddingXXS})}function Vd(e){return e&&"object"==typeof e?e:{}}function Gd(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=Zb.useContext(Z2),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return Zb.createElement("div",{className:wY("".concat(s,"-content-holder"))},Zb.createElement("div",{className:wY("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Ei({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,a=e.forceRender,s=e.style,l=e.className,d=Di(e,lI),p=o===n;return Zb.createElement(bQ,fa({key:o,visible:p,forceRender:a,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return Zb.createElement(sI,fa({},d,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Sa(Sa({},s),r),className:wY(l,i),ref:n}))}))}))))}function qd(e,t){var n=Zb.useRef(e),r=Wa(Zb.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 Xd(e){var t=Wa(Zb.useState(0),2),n=t[0],r=t[1],o=Zb.useRef(0),i=Zb.useRef();return i.current=e,AD((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function Kd(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Yd(e){return String(e).replace(/"/g,gI)}function Qd(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function Jd(e,t){var n=e.editable,r=e.locale,o=e.style;return n&&!1!==n.showAdd?Zb.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 Zd(e,t){function n(e){var t,n,r=l.filter((function(e){return!e.disabled})),o=r.findIndex((function(e){return e.key===O}))||0,i=r.length;for(t=0;t<i;t+=1)if(!(n=r[o=(o+e+i)%i]).disabled)return void _(n.key)}var r,o,i,a=e.prefixCls,s=e.id,l=e.tabs,c=e.locale,u=e.mobile,d=e.moreIcon,p=void 0===d?"More":d,f=e.moreTransitionName,h=e.style,g=e.className,m=e.editable,b=e.tabBarGutter,y=e.rtl,v=e.removeAriaLabel,w=e.onTabClick,x=e.getPopupContainer,k=e.popupClassName,S=Wa(Zb.useState(!1),2),C=S[0],E=S[1],D=Wa(Zb.useState(null),2),O=D[0],_=D[1],$="".concat(s,"-more-popup"),j="".concat(a,"-dropdown"),N=null!==O?"".concat($,"-").concat(O):null,P=null==c?void 0:c.dropdownAriaLabel,I=Zb.createElement(rI,{onClick:function(e){w(e.key,e.domEvent),E(!1)},prefixCls:"".concat(j,"-menu"),id:$,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[O],"aria-label":void 0!==P?P:"expanded dropdown"},l.map((function(e){var t=e.disabled,n=e.closeIcon,r=e.key,o=e.label,i=Qd(e.closable,n,m,t);return Zb.createElement(G1,{key:r,id:"".concat($,"-").concat(r),role:"option","aria-controls":s&&"".concat(s,"-panel-").concat(r),disabled:t},Zb.createElement("span",null,o),i&&Zb.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,r)}},n||m.removeIcon||"×"))})));return Zb.useEffect((function(){var e=document.getElementById(N);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[O]),Zb.useEffect((function(){C||_(null)}),[C]),r=Ei({},y?"marginRight":"marginLeft",b),l.length||(r.visibility="hidden",r.order=1),o=wY(Ei({},"".concat(j,"-rtl"),y)),i=u?null:Zb.createElement(V1,{prefixCls:j,overlay:I,trigger:["hover"],visible:!!l.length&&C,transitionName:f,onVisibleChange:E,overlayClassName:wY(o,k),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},Zb.createElement("button",{type:"button",className:"".concat(a,"-nav-more"),style:r,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":$,id:"".concat(s,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case x$.UP:n(-1),e.preventDefault();break;case x$.DOWN:n(1),e.preventDefault();break;case x$.ESC:E(!1);break;case x$.SPACE:case x$.ENTER:null!==O&&w(O,e)}else[x$.DOWN,x$.SPACE,x$.ENTER].includes(t)&&(E(!0),e.preventDefault())}},p)),Zb.createElement("div",{className:wY("".concat(a,"-nav-operations"),g),style:h,ref:t},i,Zb.createElement(e5,{prefixCls:a,locale:c,editable:m}))}function ep(e){function t(e){l||h(e)}var n,r=e.id,o=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=e.closable,d=e.renderWrapper,p=e.removeAriaLabel,f=e.editable,h=e.onClick,g=e.onFocus,m=e.style,b="".concat(e.prefixCls,"-tab"),y=Qd(u,c,f,l),v=Zb.createElement("div",{key:a,"data-node-key":Yd(a),className:wY(b,(n={},Ei(n,"".concat(b,"-with-remove"),y),Ei(n,"".concat(b,"-active"),o),Ei(n,"".concat(b,"-disabled"),l),n)),style:m,onClick:t},Zb.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),t(e)},onKeyDown:function(e){[x$.SPACE,x$.ENTER].includes(e.which)&&(e.preventDefault(),t(e))},onFocus:g},s),y&&Zb.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),f.onEdit("remove",{key:a,event:t})}},c||f.removeIcon||"×"));return d?d(v):v}function tp(e,t){function n(e){return e<Ae?Ae:e>Re?Re:e}function r(){c(Date.now())}function o(){window.clearTimeout(a.current)}var i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T,F=Zb.useContext(Z2),A=F.prefixCls,R=F.tabs,M=e.className,L=e.style,B=e.id,z=e.animated,H=e.activeKey,W=e.rtl,U=e.extra,V=e.editable,G=e.locale,q=e.tabPosition,X=e.tabBarGutter,K=e.children,Y=e.onTabClick,Q=e.onTabScroll,J=e.indicatorSize,Z=Zb.useRef(),ee=Zb.useRef(),te=Zb.useRef(),ne=Zb.useRef(),re=Zb.useRef(),oe=Zb.useRef(),ie=Zb.useRef(),ae="top"===q||"bottom"===q,se=Wa(qd(0,(function(e,t){ae&&Q&&Q({direction:e>t?"left":"right"})})),2),le=se[0],ce=se[1],ue=Wa(qd(0,(function(e,t){!ae&&Q&&Q({direction:e>t?"top":"bottom"})})),2),de=ue[0],pe=ue[1],fe=Wa(Zb.useState([0,0]),2),he=fe[0],ge=fe[1],me=Wa(Zb.useState([0,0]),2),be=me[0],ye=me[1],ve=Wa(Zb.useState([0,0]),2),we=ve[0],xe=ve[1],ke=Wa(Zb.useState([0,0]),2),Se=ke[0],Ce=ke[1],Ee=(j=new Map,N=Zb.useRef([]),P=Wa(Zb.useState({}),2)[1],I=Zb.useRef("function"==typeof j?j():j),T=Xd((function(){var e=I.current;N.current.forEach((function(t){e=t(e)})),N.current=[],I.current=e,P({})})),[I.current,function(e){N.current.push(e),T()}]),De=Wa(Ee,2),Oe=De[1],_e=function(e,t,n){return Zb.useMemo((function(){var n,r,o,i,a,s,l=new Map,c=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||cI,u=c.left+c.width;for(r=0;r<e.length;r+=1)(i=t.get(o=e[r].key))||(i=t.get(null===(a=e[r-1])||void 0===a?void 0:a.key)||cI),(s=l.get(o)||Sa({},i)).right=u-s.left-s.width,l.set(o,s);return l}),[e.map((function(e){return e.key})).join("_"),t,n])}(R,De[0],be[0]),$e=vI(he,ae),je=vI(be,ae),Ne=vI(we,ae),Pe=vI(Se,ae),Ie=$e<je+Ne,Te=Ie?$e-Pe:$e-Ne,Fe="".concat(A,"-nav-operations-hidden"),Ae=0,Re=0;return ae&&W?(Ae=0,Re=Math.max(0,je-Te)):(Ae=Math.min(0,Te-je),Re=0),a=Zb.useRef(),s=Wa(Zb.useState(),2),l=s[0],c=s[1],function(e,t){var n=Wa(Zb.useState(),2),r=n[0],o=n[1],i=Wa(Zb.useState(0),2),a=i[0],s=i[1],l=Wa(Zb.useState(0),2),c=l[0],u=l[1],d=Wa(Zb.useState(),2),p=d[0],f=d[1],h=Zb.useRef(),g=Zb.useRef(),m=Zb.useRef(null);m.current={onTouchStart:function(e){var t=e.touches[0];o({x:t.screenX,y:t.screenY}),window.clearInterval(h.current)},onTouchMove:function(e){var n,i,l,c,d,p;r&&(e.preventDefault(),o({x:i=(n=e.touches[0]).screenX,y:l=n.screenY}),t(c=i-r.x,d=l-r.y),p=Date.now(),s(p),u(p-a),f({x:c,y:d}))},onTouchEnd:function(){var e,n,i,a,s,l;if(r&&(o(null),f(null),p)){if(e=p.x/c,n=p.y/c,i=Math.abs(e),a=Math.abs(n),Math.max(i,a)<uI)return;s=e,l=n,h.current=window.setInterval((function(){Math.abs(s)<dI&&Math.abs(l)<dI?window.clearInterval(h.current):t((s*=fI)*pI,(l*=fI)*pI)}),pI)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===g.current?n:r:i>a?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},Zb.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(ne,(function(e,t){function i(e,t){e((function(e){return n(e+t)}))}return!!Ie&&(ae?i(ce,e):i(pe,t),o(),r(),!0)})),Zb.useEffect((function(){return o(),l&&(a.current=window.setTimeout((function(){c(0)}),100)),o}),[l]),u=function(e,t,n,r,o,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(s="width",l=p?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),Zb.useMemo((function(){var n,r,o,i,a,d;if(!u.length)return[0,0];for(r=n=u.length,o=0;o<n;o+=1)if((i=e.get(u[o].key)||hI)[l]+i[s]>c+t){r=o-1;break}for(a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||hI)[l]<c){a=d+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),p])}(_e,Te,ae?le:de,je,Ne,Pe,Sa(Sa({},e),{},{tabs:R})),p=(d=Wa(u,2))[0],f=d[1],h=El((function(e){var t,r,o=_e.get(arguments.length>0&&void 0!==e?e:H)||{width:0,height:0,left:0,right:0,top:0};ae?(t=le,W?o.right<le?t=o.right:o.right+o.width>le+Te&&(t=o.right+o.width-Te):o.left<-le?t=-o.left:o.left+o.width>-le+Te&&(t=-(o.left+o.width-Te)),pe(0),ce(n(t))):(r=de,o.top<-de?r=-o.top:o.top+o.height>-de+Te&&(r=-(o.top+o.height-Te)),ce(0),pe(n(r)))})),g={},"top"===q||"bottom"===q?g[W?"marginRight":"marginLeft"]=X:g.marginTop=X,m=R.map((function(e,t){var n=e.key;return Zb.createElement(ep,{id:B,prefixCls:A,key:n,tab:e,style:0===t?void 0:g,closable:e.closable,editable:V,active:n===H,renderWrapper:K,removeAriaLabel:null==G?void 0:G.removeAriaLabel,onClick:function(e){Y(n,e)},onFocus:function(){h(n),r(),ne.current&&(W||(ne.current.scrollLeft=0),ne.current.scrollTop=0)}})})),b=function(){return Oe((function(){var e=new Map;return R.forEach((function(t){var n,r=t.key,o=null===(n=re.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(Yd(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},Zb.useEffect((function(){b()}),[R.map((function(e){return e.key})).join("_")]),y=Xd((function(){var e,t,n,r=yI(Z),o=yI(ee),i=yI(te);ge([r[0]-o[0]-i[0],r[1]-o[1]-i[1]]),e=yI(ie),xe(e),t=yI(oe),Ce(t),n=yI(re),ye([n[0]-e[0],n[1]-e[1]]),b()})),v=R.slice(0,p),w=R.slice(f+1),x=[].concat(xa(v),xa(w)),k=_e.get(H),S=bI({activeTabOffset:k,horizontal:ae,rtl:W,indicatorSize:J}).style,Zb.useEffect((function(){h()}),[H,Ae,Re,Kd(k),Kd(_e),ae]),Zb.useEffect((function(){y()}),[W]),C=!!x.length,E="".concat(A,"-nav-wrap"),ae?W?(O=le>0,D=le!==Re):(D=le<0,O=le!==Ae):(_=de<0,$=de!==Ae),Zb.createElement(a_,{onResize:y},Zb.createElement("div",{ref:$s(t,Z),role:"tablist",className:wY("".concat(A,"-nav"),M),style:L,onKeyDown:function(){r()}},Zb.createElement(mI,{ref:ee,position:"left",extra:U,prefixCls:A}),Zb.createElement(a_,{onResize:y},Zb.createElement("div",{className:wY(E,(i={},Ei(i,"".concat(E,"-ping-left"),D),Ei(i,"".concat(E,"-ping-right"),O),Ei(i,"".concat(E,"-ping-top"),_),Ei(i,"".concat(E,"-ping-bottom"),$),i)),ref:ne},Zb.createElement(a_,{onResize:y},Zb.createElement("div",{ref:re,className:"".concat(A,"-nav-list"),style:{transform:"translate(".concat(le,"px, ").concat(de,"px)"),transition:l?"none":void 0}},m,Zb.createElement(e5,{ref:ie,prefixCls:A,locale:G,editable:V,style:Sa(Sa({},0===m.length?void 0:g),{},{visibility:C?"hidden":null})}),Zb.createElement("div",{className:wY("".concat(A,"-ink-bar"),Ei({},"".concat(A,"-ink-bar-animated"),z.inkBar)),style:S}))))),Zb.createElement(t5,fa({},e,{removeAriaLabel:null==G?void 0:G.removeAriaLabel,ref:oe,prefixCls:A,tabs:x,className:!C&&Fe,tabMoving:!!l})),Zb.createElement(mI,{ref:te,position:"right",extra:U,prefixCls:A})))}function np(e){var t=e.renderTabBar,n=Di(e,wI),r=Zb.useContext(Z2).tabs;return t?t(Sa(Sa({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Di(e,xI);return Zb.createElement(sI,fa({tab:t,key:n,tabKey:n},r))}))}),n5):Zb.createElement(n5,n)}function rp(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h=e.id,g=e.prefixCls,m=void 0===g?"rc-tabs":g,b=e.className,y=e.items,v=e.direction,w=e.activeKey,x=e.defaultActiveKey,k=e.editable,S=e.animated,C=e.tabPosition,E=void 0===C?"top":C,D=e.tabBarGutter,O=e.tabBarStyle,_=e.tabBarExtraContent,$=e.locale,j=e.moreIcon,N=e.moreTransitionName,P=e.destroyInactiveTabPane,I=e.renderTabBar,T=e.onChange,F=e.onTabClick,A=e.onTabScroll,R=e.getPopupContainer,M=e.popupClassName,L=e.indicatorSize,B=Di(e,kI),z=Zb.useMemo((function(){return(y||[]).filter((function(e){return e&&"object"===Si(e)&&"key"in e}))}),[y]),H="rtl"===v,W=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}:Sa({inkBar:!0},"object"===Si(n)?n:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(S),U=Wa(Zb.useState(!1),2),V=U[0],G=U[1];return Zb.useEffect((function(){G(K0())}),[]),r=Wa(_l((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:w,defaultValue:x}),2),o=r[0],i=r[1],a=Wa(Zb.useState((function(){return z.findIndex((function(e){return e.key===o}))})),2),s=a[0],l=a[1],Zb.useEffect((function(){var e,t=z.findIndex((function(e){return e.key===o}));-1===t&&(t=Math.max(0,Math.min(s,z.length-1)),i(null===(e=z[t])||void 0===e?void 0:e.key)),l(t)}),[z.map((function(e){return e.key})).join("_"),o,s]),u=(c=Wa(_l(null,{value:h}),2))[0],d=c[1],Zb.useEffect((function(){h||(d("rc-tabs-".concat(SI)),SI+=1)}),[]),f=Sa(Sa({},p={id:u,activeKey:o,animated:W,tabPosition:E,rtl:H,mobile:V}),{},{editable:k,locale:$,moreIcon:j,moreTransitionName:N,tabBarGutter:D,onTabClick:function(e,t){null==F||F(e,t);var n=e!==o;i(e),n&&(null==T||T(e))},onTabScroll:A,extra:_,style:O,panes:null,getPopupContainer:R,popupClassName:M,indicatorSize:L}),Zb.createElement(Z2.Provider,{value:{tabs:z,prefixCls:m}},Zb.createElement("div",fa({ref:t,id:h,className:wY(m,"".concat(m,"-").concat(E),(n={},Ei(n,"".concat(m,"-mobile"),V),Ei(n,"".concat(m,"-editable"),k),Ei(n,"".concat(m,"-rtl"),H),n),b)},B),Zb.createElement(np,fa({},f,{renderTabBar:I})),Zb.createElement(Gd,fa({destroyInactiveTabPane:P},p,{animated:W}))))}function op(e,t){const[n,r]=Zb.useState("string"==typeof e?e:"");return Zb.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<$1.length;n++){const o=$1[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}function ip(e){var t,n=e;return Array.isArray(n)||(n="number"===(t=Si(n))||"string"===t?[n]:[]),n.map((function(e){return String(e)}))}function ap(){return"function"==typeof BigInt}function sp(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function lp(e){var t,n,r,o,i,a=e.trim(),s=a.startsWith("-");return s&&(a=a.slice(1)),(a=a.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(a="0".concat(a)),o=(n=(t=a||"0").split("."))[1]||"0","0"===(r=n[0]||"0")&&"0"===o&&(s=!1),{negative:s,negativeStr:i=s?"-":"",trimStr:t,integerStr:r,decimalStr:o,fullStr:"".concat(i).concat(t)}}function cp(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function up(e){var t,n,r=String(e);return cp(e)?(t=Number(r.slice(r.indexOf("e-")+2)),null!=(n=r.match(/\.(\d+)/))&&n[1]&&(t+=n[1].length),t):r.includes(".")&&pp(r)?r.length-r.indexOf(".")-1:0}function dp(e){var t=String(e);if(cp(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ap()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(ap()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(up(t))}return lp(t).fullStr}function pp(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}function fp(e){return ap()?new AI(e):new RI(e)}function hp(e,t,n,r){var o,i,a,s,l,c,u,d=arguments.length>3&&void 0!==r&&r;return""===e?"":(i=(o=lp(e)).negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a),n>=0?(u=Number(s[n]))>=5&&!d?hp(fp(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,d):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n)):".0"===l?c:"".concat(c).concat(l))}function gp(e){return!(!e.addonBefore&&!e.addonAfter)}function mp(e){return!!(e.prefix||e.suffix||e.allowClear)}function bp(e,t,n,r){var o,i;if(n)return o=t,"click"===t.type?(i=e.cloneNode(!0),o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.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 yp(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)}}function vp(e){return null==e?"":String(e)}function wp(e){var t,n,r,o,i,a,s,l=e.prefixCls,c=e.upNode,u=e.downNode,d=e.upDisabled,p=e.downDisabled,f=e.onStep,h=Zb.useRef(),g=Zb.useRef([]),m=Zb.useRef();return m.current=f,t=function(){clearTimeout(h.current)},n=function(e,n){e.preventDefault(),t(),m.current(n),h.current=setTimeout((function e(){m.current(n),h.current=setTimeout(e,HI)}),WI)},Zb.useEffect((function(){return function(){t(),g.current.forEach((function(e){return d_.cancel(e)}))}}),[]),zI()?null:(r="".concat(l,"-handler"),o=wY(r,"".concat(r,"-up"),Ei({},"".concat(r,"-up-disabled"),d)),i=wY(r,"".concat(r,"-down"),Ei({},"".concat(r,"-down-disabled"),p)),s={unselectable:"on",role:"button",onMouseUp:a=function(){return g.current.push(d_(t))},onMouseLeave:a},Zb.createElement("div",{className:"".concat(r,"-wrap")},Zb.createElement("span",fa({},s,{onMouseDown:function(e){n(e,!0)},"aria-label":"Increase Value","aria-disabled":d,className:o}),c||Zb.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-up-inner")})),Zb.createElement("span",fa({},s,{onMouseDown:function(e){n(e,!1)},"aria-label":"Decrease Value","aria-disabled":p,className:i}),u||Zb.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-down-inner")}))))}function xp(e){var t="number"==typeof e?dp(e):lp(e).fullStr;return t.includes(".")?lp(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function kp(e,t){const n=Zb.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 Zb.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}function Sp(e,t){return xa(e||"").slice(0,t).join("")}function Cp(e,t,n,r){var o=n;return e?o=Sp(n,r):xa(t||"").length<n.length&&xa(n||"").length>r&&(o=t),o}function Ep(e){return"string"==typeof e&&String(Number(e))===e?($a(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Dp(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v=e.prefixCls,w=e.open,x=e.placement,k=e.inline,S=e.push,C=e.forceRender,E=e.autoFocus,D=e.keyboard,O=e.classNames,_=e.rootClassName,$=e.rootStyle,j=e.zIndex,N=e.className,P=e.id,I=e.style,T=e.motion,F=e.width,A=e.height,R=e.children,M=e.contentWrapperStyle,L=e.mask,B=e.maskClosable,z=e.maskMotion,H=e.maskClassName,W=e.maskStyle,U=e.afterOpenChange,V=e.onClose,G=e.onMouseEnter,q=e.onMouseOver,X=e.onMouseLeave,K=e.onClick,Y=e.onKeyDown,Q=e.onKeyUp,J=e.styles,Z=Zb.useRef(),ee=Zb.useRef(),te=Zb.useRef();if(Zb.useImperativeHandle(t,(function(){return Z.current})),a=function(e){var t,n,r=e.keyCode,o=e.shiftKey;switch(r){case x$.TAB:r===x$.TAB&&(o||document.activeElement!==te.current?o&&document.activeElement===ee.current&&(null===(n=te.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=ee.current)||void 0===t||t.focus({preventScroll:!0}));break;case x$.ESC:V&&D&&(e.stopPropagation(),V(e))}},Zb.useEffect((function(){var e;w&&E&&(null===(e=Z.current)||void 0===e||e.focus({preventScroll:!0}))}),[w]),l=(s=Wa(Zb.useState(!1),2))[0],c=s[1],u=Zb.useContext(lT),d=null!==(n=null!==(r=null===(o=!1===S?{distance:0}:!0===S?{}:S||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==u?void 0:u.pushDistance)&&void 0!==n?n:180,p=Zb.useMemo((function(){return{pushDistance:d,push:function(){c(!0)},pull:function(){c(!1)}}}),[d]),Zb.useEffect((function(){var e,t;w?null==u||null===(e=u.push)||void 0===e||e.call(u):null==u||null===(t=u.pull)||void 0===t||t.call(u)}),[w]),Zb.useEffect((function(){return function(){var e;null==u||null===(e=u.pull)||void 0===e||e.call(u)}}),[]),f=L&&Zb.createElement(bQ,fa({key:"mask"},z,{visible:w}),(function(e,t){var n=e.className,r=e.style;return Zb.createElement("div",{className:wY("".concat(v,"-mask"),n,null==O?void 0:O.mask,H),style:Sa(Sa(Sa({},r),W),null==J?void 0:J.mask),onClick:B&&w?V:void 0,ref:t})})),h="function"==typeof T?T(x):T,g={},l&&d)switch(x){case"top":g.transform="translateY(".concat(d,"px)");break;case"bottom":g.transform="translateY(".concat(-d,"px)");break;case"left":g.transform="translateX(".concat(d,"px)");break;default:g.transform="translateX(".concat(-d,"px)")}return"left"===x||"right"===x?g.width=Ep(F):g.height=Ep(A),m={onMouseEnter:G,onMouseOver:q,onMouseLeave:X,onClick:K,onKeyDown:Y,onKeyUp:Q},b=Zb.createElement(bQ,fa({key:"panel"},h,{visible:w,forceRender:C,onVisibleChanged:function(e){null==U||U(e)},removeOnLeave:!1,leavedClassName:"".concat(v,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return Zb.createElement("div",fa({className:wY("".concat(v,"-content-wrapper"),null==O?void 0:O.wrapper,r),style:Sa(Sa(Sa(Sa({},g),o),M),null==J?void 0:J.wrapper)},Jl(e,{data:!0})),Zb.createElement(uT,fa({id:P,containerRef:n,prefixCls:v,className:wY(N,null==O?void 0:O.content),style:Sa(Sa({},I),null==J?void 0:J.content)},m),R))})),y=Sa({},$),j&&(y.zIndex=j),Zb.createElement(lT.Provider,{value:p},Zb.createElement("div",{className:wY(v,"".concat(v,"-").concat(x),_,(i={},Ei(i,"".concat(v,"-open"),w),Ei(i,"".concat(v,"-inline"),k),i)),style:y,tabIndex:-1,ref:Z,onKeyDown:a},f,Zb.createElement("div",{tabIndex:0,ref:ee,style:dT,"aria-hidden":"true","data-sentinel":"start"}),b,Zb.createElement("div",{tabIndex:0,ref:te,style:dT,"aria-hidden":"true","data-sentinel":"end"})))}function Op(e){return["small","middle","large"].includes(e)}function _p(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}function $p(e){const[t,n]=Zb.useState(e);return Zb.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}function jp(e,t,n,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==r?r:0}`,error:e,errorStatus:n}}function Np(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Pp(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:P4.includes(n)?`${I4}_${n}`:n}function Ip(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function Tp(e){return Np(e).join("_")}function Fp(e){const[t]=su(),n=Zb.useRef({}),r=Zb.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=Tp(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=Pp(Np(e),r.__INTERNAL__.name),i=o?document.getElementById(o):null;i&&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;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(VQ(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:a,left:s}of VQ(e,GQ(t)))i.scroll({top:a-n.top+n.bottom,left:s-n.left+n.right,behavior:o})}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},n))},getFieldInstance:e=>{const t=Tp(e);return n.current[t]}})),[e,t]);return[r]}function Ap(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=Zb.useContext(mZ),d=Ip(n,r,s,null,!!o,i),{isFormItemInput:p,status:f,hasFeedback:h,feedbackIcon:g}=Zb.useContext(wZ),m=Zb.useMemo((()=>{var e;let t;if(o){const i=!0!==o&&o.icons||u,a=d&&(null===(e=null==i?void 0:i({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),s=d&&U4[d];t=!1!==a&&s?Zb.createElement("span",{className:wY(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||Zb.createElement(s,null)):null}const i={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return l&&(i.status=(null!=d?d:f)||"",i.isFormItemInput=p,i.hasFeedback=!!(null!=o?o:h),i.feedbackIcon=void 0!==o?i.feedbackIcon:g),i}),[d,o,l,p,f]);return Zb.createElement(wZ.Provider,{value:m},t)}function Rp(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:p,fieldId:f,required:h,isRequired:g,onSubItemMetaChange:m}=e,b=yT(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${t}-item`,{requiredMark:v}=Zb.useContext(mZ),w=Zb.useRef(null),x=$p(a),k=$p(s),S=null!=i,C=!!(S||a.length||s.length),E=!!w.current&&uJ(w.current),[D,O]=Zb.useState(null);FD((()=>{if(C&&w.current){const e=getComputedStyle(w.current);O(parseInt(e.marginBottom,10))}}),[C,E]);const _=function(e){let t=arguments.length>0&&void 0!==e&&e;return Ip(t?x:c.errors,t?k:c.warnings,c,"",!!u,l)}(),$=wY(y,n,r,{[`${y}-with-help`]:S||x.length||k.length,[`${y}-has-feedback`]:_&&u,[`${y}-has-success`]:"success"===_,[`${y}-has-warning`]:"warning"===_,[`${y}-has-error`]:"error"===_,[`${y}-is-validating`]:"validating"===_,[`${y}-hidden`]:d});return Zb.createElement("div",{className:$,style:o,ref:w},Zb.createElement(S5,Object.assign({className:`${y}-row`},Us(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","validateDebounce"])),Zb.createElement(W4,Object.assign({htmlFor:f},e,{requiredMark:v,required:null!=h?h:g,prefixCls:t})),Zb.createElement(B4,Object.assign({},e,c,{errors:x,warnings:k,prefixCls:t,status:_,help:i,marginBottom:D,onErrorVisibleChanged:e=>{e||O(null)}}),Zb.createElement(bZ.Provider,{value:m},Zb.createElement(Ap,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:_},p)))),!!D&&Zb.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-D}}))}function Mp(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=J4,a=null!=e?e:CQ().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:i}}function Lp(){if(!K4){const e=document.createDocumentFragment(),t={fragment:e};return K4=t,void Y4((()=>{cc(Zb.createElement(Z4,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Lp())}))}}),e)}))}K4.instance&&(Q4.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":Y4((()=>{const t=K4.instance.open(Object.assign(Object.assign({},J4),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":Y4((()=>{null==K4||K4.instance.destroy(e.key)}));break;default:Y4((()=>{var n;const r=(n=K4.instance)[t].apply(n,xa(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),Q4=[])}function Bp(e){return gu(mu(e))}function zp(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=c3,a=null!=e?e:CQ().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}function Hp(){if(!a3){const e=document.createDocumentFragment(),t={fragment:e};return a3=t,void s3((()=>{cc(Zb.createElement(u3,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Hp())}))}}),e)}))}a3.instance&&(l3.forEach((e=>{switch(e.type){case"open":s3((()=>{a3.instance.open(Object.assign(Object.assign({},c3),e.config))}));break;case"destroy":s3((()=>{null==a3||a3.instance.destroy(e.key)}))}})),l3=[])}function Wp(e){l3.push({type:"open",config:e}),Hp()}function Up(e){var t,n,r=e.prefixCls,o=e.containerRef,i=e.value,a=e.getValueIndex,s=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,u=e.direction,d=Zb.useRef(null),p=Wa(Zb.useState(i),2),f=p[0],h=p[1],g=function(e){var t,n=a(e),i=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".".concat(r,"-item"))[n];return(null==i?void 0:i.offsetParent)&&i},m=Wa(Zb.useState(null),2),b=m[0],y=m[1],v=Wa(Zb.useState(null),2),w=v[0],x=v[1];return FD((function(){var e,t,n,r;f!==i&&(e=g(f),t=g(i),n=xT(e),r=xT(t),h(i),y(n),x(r),e&&t?l():c())}),[i]),t=Zb.useMemo((function(){return kT("rtl"===u?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,b]),n=Zb.useMemo((function(){return kT("rtl"===u?-(null==w?void 0:w.right):null==w?void 0:w.left)}),[u,w]),b&&w?Zb.createElement(bQ,{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(){y(null),x(null),c()}},(function(e,o){var i=e.className,a=Sa(Sa({},e.style),{},{"--thumb-start-left":t,"--thumb-start-width":kT(null==b?void 0:b.width),"--thumb-active-left":n,"--thumb-active-width":kT(null==w?void 0:w.width)}),s={ref:_s(d,o),style:a,className:wY("".concat(r,"-thumb"),i)};return Zb.createElement("div",s)})):null}function Vp(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Gp(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}function qp(e,t,n){return(e-t)/(n-t)}function Xp(e,t,n,r){var o=qp(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function Kp(e,t){return Array.isArray(e)?e[t]:e}function Yp(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Qp(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=Zb.useContext(OT),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,p=a.included,f="".concat(t,"-text"),h=Xp(c,o,s,l);return Zb.createElement("span",{className:wY(f,Ei({},"".concat(f,"-active"),p&&u<=o&&o<=d)),style:Sa(Sa({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){i(o)}},r)}function Jp(e){var t=e.marks,n=e.onClick,r="".concat(e.prefixCls,"-mark");return t.length?Zb.createElement("div",{className:r},t.map((function(e){var t=e.value;return Zb.createElement(Qp,{key:t,prefixCls:r,style:e.style,value:t,onClick:n},e.label)}))):null}function Zp(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=Zb.useContext(OT),a=i.min,s=i.max,l=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,p="".concat(t,"-dot"),f=c&&u<=n&&n<=d,h=Sa(Sa({},Xp(l,n,a,s)),"function"==typeof r?r(n):r);return f&&(h=Sa(Sa({},h),"function"==typeof o?o(n):o)),Zb.createElement("span",{className:wY(p,Ei({},"".concat(p,"-active"),f)),style:h})}function ef(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=Zb.useContext(OT),s=a.min,l=a.max,c=a.step,u=Zb.useMemo((function(){var e,t=new Set;if(n.forEach((function(e){t.add(e.value)})),r&&null!==c)for(e=s;e<=l;)t.add(e),e+=c;return Array.from(t)}),[s,l,c,r,n]);return Zb.createElement("div",{className:"".concat(t,"-step")},u.map((function(e){return Zb.createElement(Zp,{prefixCls:t,key:e,value:e,style:o,activeStyle:i})})))}function tf(e){var t,n,r=e.prefixCls,o=e.style,i=e.start,a=e.end,s=e.index,l=e.onStartMove,c=e.replaceCls,u=Zb.useContext(OT),d=u.direction,p=u.min,f=u.max,h=u.disabled,g=u.range,m=u.classNames,b="".concat(r,"-track"),y=qp(i,p,f),v=qp(a,p,f),w=function(e){!h&&l&&l(e,-1)},x={};switch(d){case"rtl":x.right="".concat(100*y,"%"),x.width="".concat(100*v-100*y,"%");break;case"btt":x.bottom="".concat(100*y,"%"),x.height="".concat(100*v-100*y,"%");break;case"ttb":x.top="".concat(100*y,"%"),x.height="".concat(100*v-100*y,"%");break;default:x.left="".concat(100*y,"%"),x.width="".concat(100*v-100*y,"%")}return n=c||wY(b,(Ei(t={},"".concat(b,"-").concat(s+1),null!==s&&g),Ei(t,"".concat(r,"-track-draggable"),l),t),m.track),Zb.createElement("div",{className:n,style:Sa(Sa({},x),o),onMouseDown:w,onTouchStart:w})}function nf(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=Zb.useContext(OT),s=a.included,l=a.range,c=a.min,u=a.styles,d=a.classNames,p=Zb.useMemo((function(){var e,t,n,i;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=[],i=0;i<r.length-1;i+=1)n.push({start:r[i],end:r[i+1]});return n}),[r,l,o,c]),f=null;return(d.tracks||u.tracks)&&(f=Zb.createElement(tf,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:wY(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),s?Zb.createElement(Zb.Fragment,null,f,p.map((function(e,r){var o=e.start,a=e.end;return Zb.createElement(tf,{index:r,prefixCls:t,style:Sa(Sa({},Kp(n,r)),u.track),start:o,end:a,key:r,onStartMove:i})}))):null}function rf(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function of(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 af(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?of(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function sf(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 lf(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?sf(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function cf(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 uf(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?cf(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function df(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pf(e,t){var n,r=t||{},o=r.defaultValue,i=r.value,a=r.onChange,s=r.postState,l=(2,function(e){if(Array.isArray(e))return e}(n=AK.useState((function(){return void 0!==i?i:void 0!==o?"function"==typeof o?o():o:"function"==typeof e?e():e})))||function(e){var t,n,r,o,i,a,s,l=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=l){i=[],a=!0,s=!1;try{for(r=(l=l.call(e)).next,0;!(a=(t=r.call(l)).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(c){s=!0,n=c}finally{try{if(!a&&null!=l.return&&(o=l.return(),Object(o)!==o))return}finally{if(s)throw n}}return i}}(n)||function(e){if(e){if("string"==typeof e)return df(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?df(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[1],u=void 0!==i?i:l[0];return s&&(u=s(u)),[u,function(e){c(e),u!==e&&a&&a(e,u)}]}function ff(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 hf(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?ff(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function gf(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 mf(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?gf(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function bf(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 yf(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?bf(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function vf(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 wf(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?vf(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function xf(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 kf(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 Sf(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 Cf(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Sf(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Ef(e){return null==e?void 0===e?UF:WF:VF&&VF in Object(e)?function(e){var t,n,r=LF.call(e,zF),o=e[zF];try{e[zF]=void 0,t=!0}catch(GX){}return n=BF.call(e),t&&(r?e[zF]=o:delete e[zF]),n}(e):function(e){return HF.call(e)}(e)}function Df(e){return null!=e&&"object"==typeof e}function Of(e){if("string"==typeof e)return e;if(r6(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,Of)+"";if(function(e){return"symbol"==typeof e||Df(e)&&Ef(e)==GF}(e))return KF?KF.call(e):"";var t=e+"";return"0"==t&&1/e==-qF?"-0":t}function _f(e){return null==e?"":Of(e)}function $f(e){return YF.test(e)}function jf(e){return o6(_f(e).toLowerCase())}function Nf(e){return function(t){return function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=_f(e),void 0===t?function(e){return uA.test(e)}(e)?function(e){return e.match(DA)||[]}(e):function(e){return e.match(cA)||[]}(e):e.match(t)||[]}(function(e){return(e=_f(e))&&e.replace(sA,i6).replace(lA,"")}(t).replace(OA,"")),e,"")}}function Pf(e){return function(e){var t,n,r,o,i=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);for(e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(t=e.shift(),e[0]=t+e[0]),e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0].replace(/^([^/:]+):\/*/,"$1://"),n=0;n<e.length;n++){if("string"!=typeof(r=e[n]))throw new TypeError("Url must be a string. Received "+r);""!==r&&(n>0&&(r=r.replace(/^[\/]+/,"")),r=r.replace(/[\/]+$/,n<e.length-1?"":"/"),i.push(r))}return(o=i.join("/").replace(/\/(\?|&|#[^!])/g,"$1").split("?")).shift()+(o.length>0?"?":"")+o.join("&")}("object"==typeof e?e:[].slice.call(arguments))}function If(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 Tf(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?If(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Ff(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 Af(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Ff(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Rf(e,t,n){return(Rf=Ls()?Reflect.construct.bind():function(e,t,n){var r,o=[null];return o.push.apply(o,t),r=new(Function.bind.apply(e,o)),n&&As(r,n.prototype),r}).apply(null,arguments)}function Mf(e){var t="function"==typeof Map?new Map:void 0;return Mf=function(e){function n(){return Rf(e,arguments,Ms(this).constructor)}if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(GX){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),As(n,e)},Mf(e)}function Lf(e){return Math.round(255*e)}function Bf(e,t,n){return Lf(e)+","+Lf(t)+","+Lf(n)}function zf(e,t,n,r){var o,i,a,s,l,c,u;return void 0===r&&(r=Bf),0===t?r(n,n,n):(o=(e%360+360)%360/60,a=(i=(1-Math.abs(2*n-1))*t)*(1-Math.abs(o%2-1)),s=0,l=0,c=0,o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a),r(s+(u=n-i/2),l+u,c+u))}function Hf(e){var t,n,r,o,i,a,s,l,c,u,d;if("string"!=typeof e)throw new LA(3);if(t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return BA[t]?"#"+BA[t]:e}(e),t.match(zA))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(HA))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(WA))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(UA))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=VA.exec(t))return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};if(i=GA.exec(t.substring(0,50)))return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};if(a=qA.exec(t)){if(s="rgb("+zf(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",!(l=VA.exec(s)))throw new LA(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}if(c=XA.exec(t.substring(0,50))){if(u="rgb("+zf(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",!(d=VA.exec(u)))throw new LA(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new LA(5)}function Wf(e){return function(e){var t,n,r,o=e.red/255,i=e.green/255,a=e.blue/255,s=Math.max(o,i,a),l=Math.min(o,i,a),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=(i-a)/n+(i<a?6:0);break;case i:t=(a-o)/n+2;break;default:t=(o-i)/n+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:r,lightness:c,alpha:e.alpha}:{hue:t,saturation:r,lightness:c}}(Hf(e))}function Uf(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Vf(e){return Uf(Math.round(255*e))}function Gf(e,t,n){return KA("#"+Vf(e)+Vf(t)+Vf(n))}function qf(e,t,n){return zf(e,t,n,Gf)}function Xf(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return KA("#"+Uf(e)+Uf(t)+Uf(n));if("object"==typeof e&&void 0===t&&void 0===n)return KA("#"+Uf(e.red)+Uf(e.green)+Uf(e.blue));throw new LA(6)}function Kf(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Hf(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?Xf(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?Xf(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new LA(7)}function Yf(e){if("object"!=typeof e)throw new LA(8);if(QA(e))return Kf(e);if(YA(e))return Xf(e);if(ZA(e))return function(e){if("object"==typeof e)return e.alpha>=1?qf(e.hue,e.saturation,e.lightness):"rgba("+zf(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new LA(2)}(e);if(JA(e))return function(e){if("object"==typeof e)return qf(e.hue,e.saturation,e.lightness);throw new LA(1)}(e);throw new LA(8)}function Qf(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Qf(e,t,r)}}function Jf(e){return Qf(e,e.length,[])}function Zf(e,t){if("transparent"===t)return t;var n=Wf(t);return Yf(fa({},n,{hue:n.hue+parseFloat(e)}))}function eh(e){var t,n;return"transparent"===e?0:(t=Hf(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 th(e,t){if("transparent"===t)return t;var n,r=Wf(t);return Yf(fa({},r,{lightness:(n=r.lightness+parseFloat(e),Math.max(0,Math.min(1,n)))}))}function nh(e,t,n,r){var o,i,a,s,l;return void 0===t&&(t=nR),void 0===n&&(n=rR),void 0===r&&(r=!0),i=(o=eh(e)>.179)?t:n,!r||(a=i,s=eh(e),l=eh(a),parseFloat((s>l?(s+.05)/(l+.05):(l+.05)/(s+.05)).toFixed(2))>=4.5)?i:o?nR:rR}function rh(e,t){var n,r,o,i,a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;n=a.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(i)throw i.error}}return o}function oh(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function ih(e){var t=Zb.useRef(e);return t.current=e,t}function ah(e,t){if(f6)return e?oR(e)?e():"current"in e?e.current:e:t}function sh(e){var t,n=-1,r=null==e?0:e.length;for(this.clear();++n<r;)this.set((t=e[n])[0],t[1])}function lh(e){var t,n=-1,r=null==e?0:e.length;for(this.clear();++n<r;)this.set((t=e[n])[0],t[1])}function ch(e){var t,n=-1,r=null==e?0:e.length;for(this.clear();++n<r;)this.set((t=e[n])[0],t[1])}function uh(e){var t=this.__data__=new MM(e);this.size=t.size}function dh(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new UM;++t<n;)this.add(e[t])}function ph(e,t,n){void 0===n&&(n={});var r=ih(t);g6((function(){var t,o=ah(n.target,window);if(null==o?void 0:o.addEventListener)return o.addEventListener(e,t=function(e){return r.current(e)},{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,t,{capture:n.capture})}}),[e,n.capture,n.once,n.passive],n.target)}function fh(e){var t=Zb.useRef(0),n=rh(Zb.useState(e),2),r=n[0],o=n[1],i=Zb.useCallback((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){o(e)}))}),[]);return p6((function(){cancelAnimationFrame(t.current)})),[r,i]}function hh(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 gh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?hh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function mh(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 bh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?mh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}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;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?yh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function wh(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 xh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?wh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function kh(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 Sh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?kh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Ch(e){var t,n=e.getSnapshot;e=e.value;try{return t=n(),!Ez(e,t)}catch(r){return!0}}function Eh(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 Dh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Eh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Oh(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 _h(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Oh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function $h(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 jh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?$h(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Nh(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 Ph(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Nh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Ih(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 Th(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Ih(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Fh(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 Ah(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Fh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Rh(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 Mh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Rh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Lh(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 Bh(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 zh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Bh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Hh(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 Wh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Hh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Uh(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;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Uh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Gh(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 qh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Gh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Xh(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 Kh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Xh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}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 Qh(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Yh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Jh(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 Zh(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 eg(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Zh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function tg(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 ng(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?tg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function rg(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 og(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?rg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function ig(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 ag(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?ig(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ig(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function sg(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 lg(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?sg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function cg(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 ug(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?cg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function dg(e,t){var n,r,o,i,a,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!s){if(Array.isArray(e)||(s=function(e,t){if(e){if("string"==typeof e)return pg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pg(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),n=0,{s:r=function(){},n:function(){return 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,i=!1,{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){i=!0,a=e},f:function(){try{o||null==s.return||s.return()}finally{if(i)throw a}}}}function pg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fg(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 hg(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 gg(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?hg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function mg(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 bg(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?mg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function yg(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 vg(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?yg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function wg(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 xg(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?wg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function kg(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 Sg(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?kg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Cg(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 Eg(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Cg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}function Dg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&e8[t[0]]||("string"==typeof t[0]&&(e8[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`)}}(...t))}function Og(e,t,n){e.loadNamespaces(t,t8(e,n))}function _g(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,t8(e,r))}function $g(e,t){function n(){return s.getFixedT(r.lng||null,"fallback"===l.nsMode?d:d[0],u)}let r=arguments.length>1&&void 0!==t?t:{};const{i18n:o}=r,{i18n:i,defaultNS:a}=Zb.useContext(l8)||{},s=o||i||i8;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new c8),!s){Dg("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&&Dg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...a8,...s.options.react,...r},{useSuspense:c,keyPrefix:u}=l;let d=e||a||s.options&&s.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);const p=(s.isInitialized||s.initializedStoreOnce)&&d.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],i=!!t.options&&t.options.fallbackLng,a=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)||i&&!s(a,e)))}(e,t,r):(Dg("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l))),[f,h]=Zb.useState(n);let g=d.join();r.lng&&(g=`${r.lng}${g}`);const m=(e=>{const t=Zb.useRef();return Zb.useEffect((()=>{t.current=e}),[e,void 0]),t.current})(g),b=Zb.useRef(!0);Zb.useEffect((()=>{function e(){b.current&&h(n)}const{bindI18n:t,bindI18nStore:o}=l;return b.current=!0,p||c||(r.lng?_g(s,r.lng,d,(()=>{b.current&&h(n)})):Og(s,d,(()=>{b.current&&h(n)}))),p&&m&&m!==g&&b.current&&h(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 y=Zb.useRef(!0);Zb.useEffect((()=>{b.current&&!y.current&&h(n),y.current=!1}),[s,u]);const v=[f,s,p];if(v.t=f,v.i18n=s,v.ready=p,p)return v;if(!p&&!c)return v;throw new Promise((e=>{r.lng?_g(s,r.lng,d,(()=>e())):Og(s,d,(()=>e()))}))}function jg(e){var t,n,r=this;if(r instanceof jg||(r=new jg),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;t<n;t++)r.push(arguments[t]);return r}function Ng(e,t,n,r){if(!(this instanceof Ng))return new Ng(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}function Pg(){if(PV)return NV;PV=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.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=>!f(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&&h(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&&d)|(this.options.loose&&p))+":"+e,i=t.get(n);if(i)return i;const h=this.options.loose;e=e.replace(h?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE],D(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[s.CARETTRIM],u),o("caret trim",e);let g=e.split(" ").map((e=>m(e,this.options))).join(" ").split(/\s+/).map((e=>E(e,this.options)));h&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),o("range list",g);const b=new Map,y=g.map((e=>new r(e,this.options)));for(const t of y){if(f(t))return[t];b.set(t.value,t)}b.size>1&&b.has("")&&b.delete("");const v=[...b.values()];return t.set(n,v),v}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 i(e,this.options)}catch(t){return!1}for(let n=0;n<this.set.length;n++)if(O(this.set[n],e,this.options))return!0;return!1}}NV=e;const t=new jV({max:1e3}),n=tV,r=Ig(),o=ZU,i=rV,{safeRe:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:u}=eV,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=JU,f=e=>"<0.0.0-0"===e.value,h=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},m=(e,t)=>(o("comp",e,t),e=w(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>e.replace(t.loose?a[s.TILDELOOSE]:a[s.TILDE],((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s})),w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[s.CARETLOOSE]:a[s.CARET],((t,r,i,a,s)=>{let l;return o("caret",e,t,r,i,a,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(a)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`):(o("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),o("caret return",l),l}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>(e=e.trim()).replace(t.loose?a[s.XRANGELOOSE]:a[s.XRANGE],((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=b(i),u=c||b(a),d=u||b(s);return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n})),C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),E=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),D=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),O=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){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 NV}function Ig(){if(TV)return IV;TV=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(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,a("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(a("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 i(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("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}IV=t;const n=tV,{safeRe:r,t:o}=eV,i=EV,a=ZU,s=rV,l=Pg();return IV}function Tg(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 Fg(e,t,n,r){function o(){p===d&&(p=d.slice())}function i(){if(f)throw new Error(Tg(3));return u}function a(e){if("function"!=typeof e)throw new Error(Tg(4));if(f)throw new Error(Tg(5));var t=!0;return o(),p.push(e),function(){if(t){if(f)throw new Error(Tg(6));t=!1,o();var n=p.indexOf(e);p.splice(n,1),d=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(Tg(7));if(void 0===e.type)throw new Error(Tg(8));if(f)throw new Error(Tg(9));try{f=!0,u=c(u,e)}finally{f=!1}for(t=d=p,n=0;n<t.length;n++)(0,t[n])();return e}var l,c,u,d,p,f;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof r)throw new Error(Tg(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Tg(1));return n(Fg)(e,t)}if("function"!=typeof e)throw new Error(Tg(2));return c=e,u=t,p=d=[],f=!1,s({type:iG.INIT}),(l={dispatch:s,subscribe:a,getState:i,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Tg(10));c=e,s({type:iG.REPLACE})}})[rG]=function(){var e,t=a;return(e={subscribe:function(e){function n(){e.next&&e.next(i())}if("object"!=typeof e||null===e)throw new Error(Tg(11));return n(),{unsubscribe:t(n)}}})[rG]=function(){return this},e},l}function Ag(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Rg(e){return"object"==typeof e}function Mg(e,t){return{type:P9,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Lg(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Mg(o)),function(e,t,n){Ag(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){Ag(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(M9);let c=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Ag("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(l)}e.dispatch(Mg(o,c));const u=s.getSource(l).beginDrag(a,l);if(null==u)return;!function(e){Ag(Rg(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:I9,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function Bg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zg(e){var t,n,r;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Bg(e,t,n[t])}));return e}function Hg(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){Ag(e.isDragging(),"Cannot call drop while not dragging."),Ag(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){Ag(void 0===e||Rg(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(o,i,r,n),s={type:A9,payload:{dropResult:zg({},t,a)}};e.dispatch(s)}))}}function Wg(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){Ag(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:R9}}}function Ug(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function Vg(e){return function(t,{clientOffset:n}={}){!function(e){Ag(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--)Ug(t.getTargetType(e[r]),n)||e.splice(r,1)}(r,i,o.getItemType()),function(e,t,n){Ag(t.isDragging(),"Cannot call hover while not dragging."),Ag(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];Ag(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array."),Ag(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:F9,payload:{targetIds:r,clientOffset:n||null}}}}function Gg(e){return function(){if(e.getMonitor().isDragging())return{type:T9}}}function qg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xg(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}const n=setTimeout(t,0),r=setInterval(t,50)}}function Kg(e,t){t&&Array.isArray(e)?e.forEach((e=>Kg(e,!1))):Ag("string"==typeof e||"symbol"==typeof 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 Yg(e){switch(e[0]){case"S":return aG.SOURCE;case"T":return aG.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Qg(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}function Jg(e=B9,t){switch(t.type){case F9:break;case K9:case Y9:case J9:case Q9:return B9;default:return z9}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(n,r);if(!(o.length>0)&&function(e,t,n=tee){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r))return B9;const i=r[r.length-1],a=n[n.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function Zg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function em(e=nee,t){const{payload:n}=t;switch(t.type){case P9:case I9:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case F9:return o=n.clientOffset,!(r=e.clientOffset)&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){var t,n,r;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zg(e,t,n[t])}));return e}({},e,{clientOffset:n.clientOffset});case R9:case A9:return nee;default:return e}var r,o}function tm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nm(e){var t,n,r;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tm(e,t,n[t])}));return e}function rm(e=ree,t){const{payload:n}=t;switch(t.type){case I9:return nm({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case T9:return nm({},e,{isSourcePublic:!0});case F9:return nm({},e,{targetIds:n.targetIds});case J9:return-1===e.targetIds.indexOf(n.targetId)?e:nm({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case A9:return nm({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case R9:return nm({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function om(e=0,t){switch(t.type){case K9:case Y9:return e+1;case Q9:case J9:return e-1;default:return e}}function im(e=0){return e+1}function am(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sm(e){var t,n,r;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){am(e,t,n[t])}));return e}function lm(e={},t){return{dirtyHandlerIds:Jg(e.dirtyHandlerIds,{type:t.type,payload:sm({},t.payload,{prevTargetIds:(n=e,r=[],"dragOperation.targetIds".split(".").reduce(((e,t)=>e&&e[t]?e[t]:r||null),n))})}),dragOffset:em(e.dragOffset,t),refCount:om(e.refCount,t),dragOperation:rm(e.dragOperation,t),stateId:im(e.stateId)};var n,r}function cm(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Fg(lm,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new H9(o,new eee(o)),a=new L9(o,i),s=e(a,t,n);return a.receiveBackend(s),a}function um(){return"undefined"!=typeof global?global:window}function dm(e,t,n){const[r,o]=Zb.useState((()=>t(e))),i=Zb.useCallback((()=>{const i=t(e);O6(r,i)||(o(i),n&&n())}),[r,e,n]);return see(i),[r,i]}function pm(e,t,n){return function(e,t){const[r,o]=dm(e,t,(()=>n.reconnect()));return see((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})))}function fm(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),Zb.useMemo((()=>"function"==typeof e?e():e),n)}function hm(e){return Zb.useMemo((()=>e.hooks.dragSource()),[e])}function gm(e){return Zb.useMemo((()=>e.hooks.dragPreview()),[e])}function mm(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<i.length;l++){const a=i[l];if(!s(a))return!1;const c=e[a],u=t[a];if(o=n?n.call(r,c,u,a):void 0,!1===o||void 0===o&&c!==u)return!1}return!0}function bm(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ym(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return(t=null,n=null)=>{if(!Zb.isValidElement(t)){const r=t;return e(r,n),r}const r=t;return 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 ${e.type.displayName||e.type.name||"the component"} into a <div>, or turn it into a drag source or a drop target itself.`)}(r),function(e,t){const n=e.ref;return Ag("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 <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),Zb.cloneElement(e,n?{ref:e=>{vm(n,e),vm(t,e)}}:{ref:t})}(r,n?t=>e(t,n):e)}}(r);t[n]=()=>e}})),t}function vm(e,t){"function"==typeof e?e(t):e.current=t}function wm(){const{dragDropManager:e}=Zb.useContext(N9);return Ag(null!=e,"Expected drag drop context"),e}function xm(e){return Zb.useMemo((()=>e.hooks.dropTarget()),[e])}function km(e){let t=null;return()=>(null==t&&(t=e()),t)}function Sm(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}function Cm(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Eee).filter((e=>{const n=Eee[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}function Em(e){const t=e.nodeType===$ee?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Dm(e){return{x:e.clientX,y:e.clientY}}function Om(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _m(e){var t,n,r;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Om(e,t,n[t])}));return e}function $m(e){return e&&e.__esModule?e:{default:e}}function jm(e){return e&&e.__esModule?e:{default:e}}function Nm(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}function Pm(e){return e&&e.__esModule?e:{default:e}}function Im(e){return e&&e.__esModule?e:{default:e}}function Tm(e){return e&&e.__esModule?e:{default:e}}function Fm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Am(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;const n=e.slice(0,t=t||1),r=e.slice(t);return Array.prototype.concat.call([],Am(n),Am(r))}function Rm(e){try{return decodeURIComponent(e)}catch{let t=e.match(rte)||[];for(let n=1;n<t.length;n++)t=(e=Am(t,n).join("")).match(rte)||[];return e}}function Mm(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function Lm(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);(null==t?void 0:t.enumerable)&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);o.enumerable&&t(r,e[r],e)&&Object.defineProperty(n,r,o)}return n}function Bm(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function zm(e,t){return t.encode?t.strict?ate(e):encodeURIComponent(e):e}function Hm(e,t){return t.decode?function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"<22><>","%FF%FE":"<22><>"};let n=ote.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=Rm(n[0]);e!==n[0]&&(t[n[0]]=e)}n=ote.exec(e)}t["%C2"]="<22>";const r=Object.keys(t);for(const o of r)e=e.replace(new RegExp(o,"g"),t[o]);return e}(e)}}(e):e}function Wm(e){return Array.isArray(e)?e.sort():"object"==typeof e?Wm(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function Um(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function Vm(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 Gm(e){const t=(e=Um(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function qm(e,t){Bm((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),i="string"==typeof n&&!o&&Hm(n,e).includes(e.arrayFormatSeparator);n=i?Hm(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>Hm(t,e))):null===n?n:Hm(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?Hm(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>Hm(t,e)));r[t]=void 0!==r[t]?[...r[t],...i]:i};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[i,a]=Mm(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:Hm(a,t),n(Hm(i,t),a,r)}for(const[o,i]of Object.entries(r))if("object"==typeof i&&null!==i)for(const[e,n]of Object.entries(i))i[e]=Vm(n,t);else r[o]=Vm(i,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)?Wm(n):n,e}),Object.create(null))}function Xm(e,t){if(!e)return"";Bm((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&ite(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,[zm(t,e),"[",o,"]"].join("")]:[...n,[zm(t,e),"[",zm(o,e),"]=",zm(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[zm(t,e),"[]"].join("")]:[...n,[zm(t,e),"[]=",zm(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,[zm(t,e),":list="].join("")]:[...n,[zm(t,e),":list=",zm(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?[[zm(n,e),t,zm(o,e)].join("")]:[[r,zm(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,zm(t,e)]:[...n,[zm(t,e),"=",zm(r,e)].join("")]}}(t),o={};for(const[a,s]of Object.entries(e))n(a)||(o[a]=s);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?zm(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?zm(n,t)+"[]":o.reduce(r(n),[]).join("&"):zm(n,t)+"="+zm(o,t)})).filter((e=>e.length>0)).join("&")}function Km(e,t){var n;t={decode:!0,...t};let[r,o]=Mm(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:qm(Gm(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:Hm(o,t)}:{}}}function Ym(e,t){t={encode:!0,strict:!0,[ste]:!0,...t};const n=Um(e.url).split("?")[0]||"";let r=Xm({...qm(Gm(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[ste]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function Qm(e,t,n){n={parseFragmentIdentifier:!0,[ste]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=Km(e,n);return Ym({url:r,query:Lm(o,t),fragmentIdentifier:i},n)}function Jm(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function Zm(e){return null==e?"":""+e}function eb(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function tb(e,t,n){const{obj:r,k:o}=eb(e,t,Object);r[o]=n}function nb(e,t){const{obj:n,k:r}=eb(e,t);if(n)return n[r]}function rb(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]):rb(e[r],t[r],n):e[r]=t[r]);return e}function ob(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ib(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Uq[e])):e}function ab(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 i=e;for(let a=0;a<o.length;++a){if(!i)return;if("string"==typeof i[o[a]]&&a+1<o.length)return;if(void 0===i[o[a]]){let e=2,n=o.slice(a,a+e).join(r),s=i[n];for(;void 0===s&&o.length>a+e;)e++,n=o.slice(a,a+e).join(r),s=i[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(a+e).join(r);return l?ab(s,l,r):void 0}i=i[o[a]]}return i}function sb(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}function lb(e){return e.charAt(0).toUpperCase()+e.slice(1)}function cb(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:".",a=!(arguments.length>4&&void 0!==o)||o,s=function(e,t,n){const r=nb(e,n);return void 0!==r?r:nb(t,n)}(e,t,n);return!s&&a&&"string"==typeof n&&(s=ab(e,n,i),void 0===s&&(s=ab(t,n,i))),s}function ub(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(sb(r),o),t[i]=a),a(n)}}function db(){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 pb(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 fb(){}function hb(e){return(hb="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 gb(e){return qq.call(Xq.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function mb(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":hb(XMLHttpRequest))}function bb(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 yb(e){return(yb="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 vb(e){return(vb="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 wb(e){var t=function(e){var t,n;if("object"!==vb(e)||null===e)return e;if(void 0!==(t=e[Symbol.toPrimitive])){if("object"!==vb(n=t.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===vb(t)?t:String(t)}function xb(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function kb(e){return e.startsWith("./")?e.slice(2):e}function Sb(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function Cb(...e){return e.map(xb).map(kb).join("/")}function Eb(e){return 32===e||9===e}function Db(e){return 10===e||13===e}function Ob(e){return e>=48&&e<=57}function _b(e){return`${Ate}${e}`}async function $b(e){const t=[],n=await async function(e){const t=_b(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(GX){if(r=Fte(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function jb(e){const t=Nb(await $b(e));if(t.include){const n=await jb(Cb(...Sb(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 Nb(e){const t={name:e.name,type:e.type||"dark",...e,...Pb(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 Pb(e){var t,n,r,o;let i,a,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)&&(i=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(a=l.settings.background),!i&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(i=e.colors["editor.foreground"]),!a&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(a=e.colors["editor.background"]),i||(i="light"===e.type?Lte.light:Lte.dark),a||(a="light"===e.type?Bte.light:Bte.dark),{fg:i,bg:a}}function Ib(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let o=t.slice(0,r),i=t[r];n[r]={scopeName:i,themeMatches:Ab(e,i,o)}}return n}function Tb(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function Fb(e,t,n,r){if(!Tb(e,n))return!1;let o=t.length-1,i=r.length-1;for(;o>=0&&i>=0;)Tb(t[o],r[i])&&o--,i--;return-1===o}function Ab(e,t,n){let r=[],o=0;for(let i=0,a=e.settings.length;i<a;i++){let a,s=e.settings[i];if("string"==typeof s.scope)a=s.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(s.scope))continue;a=s.scope}for(let e=0,i=a.length;e<i;e++){let l=a[e].split(/ /);Fb(l[l.length-1],l.slice(0,l.length-1),t,n)&&(r[o++]=s,e=i)}}return r}function Rb(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function Mb(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function Lb(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)xX[r]&&t.push({type:"setDecoration",value:xX[r]});else if(r<=29){const e=xX[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:wX[r-30]}});else if(38===r){const n=Mb(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:wX[r-40]}});else if(48===r){const n=Mb(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:wX[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:wX[r-100+8]}})}return t}function Bb(e,t={}){function n(e="",t={},n){const r=i[e]||Hte[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??[]),i=t.elements||{};return n("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",n("code",{},e.map(((r,i)=>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(i+1)??[]).join(" "),lines:e,line:r,index:i},r.map(((e,o)=>{const i=[`color: ${e.color||t.fg}`];return e.fontStyle&hX.Italic&&i.push("font-style: italic"),e.fontStyle&hX.Bold&&i.push("font-weight: bold"),e.fontStyle&hX.Underline&&i.push("text-decoration: underline"),n("token",{style:i.join("; "),tokens:r,token:e,index:o},[(a=e.content,a.replace(/[&<>"']/g,(e=>Wte[e])))]);var a}))))))])}function zb(e){return"string"==typeof e?Ite.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function Hb(e){function t(e){const t=e?u.getTheme(e):d;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(u.setTheme(t),p=t);const n=u.getColorMap();return"css"===t.type&&function(e,t){e.bg=f[e.bg]||e.bg,e.fg=f[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=f[n]||n})),t.forEach(((e,n)=>{t[n]=f[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:i}=function(e){const t=u.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(n),{_theme:a,_colorMap:s}=t(r);return function(e,t,n,r,o){let i=n.split(/\r\n|\r|\n/),a=fX.INITIAL,s=[],l=[];for(let c=0,u=i.length;c<u;c++){let n,u,d,p=i[c];if(""===p){s=[],l.push([]);continue}o.includeExplanation&&(n=r.tokenizeLine(p,a),u=n.tokens,d=0);let f=r.tokenizeLine2(p,a),h=f.tokens.length/2;for(let r=0;r<h;r++){let n=f.tokens[2*r],i=r+1<h?f.tokens[2*r+2]:p.length;if(n===i)continue;let a=f.tokens[2*r+1],l=t[Tte.getForeground(a)],c=Tte.getFontStyle(a),g=[];if(o.includeExplanation){let t=0;for(;n+t<i;){let n=u[d],r=p.substring(n.startIndex,n.endIndex);t+=r.length,g.push({content:r,scopes:Ib(e,n.scopes)}),d++}}s.push({content:p.substring(n,i),color:l,fontStyle:c,explanation:g})}l.push(s),s=[],a=f.ruleStack}return l}(a,s,e,i,o)}function r(e,n){const{_theme:r}=t(n);return function(e,t){const n=t.split(/\r?\n/),r=function(e=kX){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return o=e.index,function(){if(r)return r;r=[];for(let n=0;n<wX.length;n++)r.push(t(wX[n]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let o=0;o<6;o++)for(let i=0;i<6;i++)r.push(n([e[t],e[o],e[i]]));let o=8;for(let t=0;t<24;t++,o+=10)r.push(n([o,o,o]));return r}()[o]}var o}}}(Object.fromEntries(wX.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),o=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=Rb(r,i),s=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const r=Lb(a.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}i=a.position}while(i<r.length);return o}}}();return n.map((t=>o.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let o=hX.None;return t.decorations.has("bold")&&(o|=hX.Bold),t.decorations.has("italic")&&(o|=hX.Italic),t.decorations.has("underline")&&(o|=hX.Underline),{content:t.value,color:n,fontStyle:o}}))))}(r,e)}var o,i;const{_languages:a,_themes:s,_wasmPath:l}=function(e){var t;let n=Ite,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":Rte;return e.langs&&(n=e.langs.map(zb)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),c=new zte(async function(e){if(!Mte){let t;t=dX.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(_b(Cb(...Sb(e),"onig.wasm")))}),Mte=t.then((()=>({createOnigScanner:e=>dX.createOnigScanner(e),createOnigString:e=>dX.createOnigString(e)})))}return Mte}(l),"vscode-oniguruma"),u=new Ute(c);(null==(o=e.paths)?void 0:o.themes)&&(u.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(i=e.paths)?void 0:i.languages)&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const d=(await u.loadThemes(s))[0];let p;await u.loadLanguages(a);let f=function(){const e={"#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)"};for(let t=0;t<wX.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,r=wX[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${r})`}return e}();return{codeToThemedTokens:n,codeToHtml:function(e,r="text",o){let i;i="object"==typeof r?r:{lang:r,theme:o};const a=n(e,i.lang,i.theme,{includeExplanation:!1}),{_theme:s}=t(i.theme);return Bb(a,{fg:s.fg,bg:s.bg,lineOptions:null==i?void 0:i.lineOptions,themeName:s.name})},ansiToThemedTokens:r,ansiToHtml:function(e,n){const o=r(e,null==n?void 0:n.theme),{_theme:i}=t(null==n?void 0:n.theme);return Bb(o,{fg:i.fg,bg:i.bg,lineOptions:null==n?void 0:n.lineOptions,themeName:i.name})},getTheme:e=>t(e)._theme,loadTheme:async function(e){await u.loadTheme(e)},loadLanguage:async function(e){const t=zb(e);c.addLanguage(t),await u.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 u.getLoadedThemes()},getLoadedLanguages:function(){return u.getLoadedLanguages()},setColorReplacements:function(e){f=e}}}function Wb(e){return null==e}var Ub,Vb,Gb,qb,Xb,Kb,Yb,Qb,Jb,Zb,ey,ty,ny,ry,oy,iy,ay,sy,ly,cy,uy,dy,py,fy,hy,gy,my,by,yy,vy,wy,xy,ky,Sy,Cy,Ey,Dy,Oy,_y,$y,jy,Ny,Py,Iy,Ty,Fy,Ay,Ry,My,Ly,By,zy,Hy,Wy,Uy,Vy,Gy,qy,Xy,Ky,Yy,Qy,Jy,Zy,ev,tv,nv,rv,ov,iv,av,sv,lv,cv,uv,dv,pv,fv,hv,gv,mv,bv,yv,vv,wv,xv,kv,Sv,Cv,Ev,Dv,Ov,_v,$v,jv,Nv,Pv,Iv,Tv,Fv,Av,Rv,Mv,Lv,Bv,zv,Hv,Wv,Uv,Vv,Gv,qv,Xv,Kv,Yv,Qv,Jv,Zv,ew,tw,nw,rw,ow,iw,aw,sw,lw,cw,uw,dw,pw,fw,hw,gw,mw,bw,yw,vw,ww,xw,kw,Sw,Cw,Ew,Dw,Ow,_w,$w,jw,Nw,Pw,Iw,Tw,Fw,Aw,Rw,Mw,Lw,Bw,zw,Hw,Ww,Uw,Vw,Gw,qw,Xw,Kw,Yw,Qw,Jw,Zw,ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,ux,dx,px,fx,hx,gx,mx,bx,yx,vx,wx,xx,kx,Sx,Cx,Ex,Dx,Ox,_x,$x,jx,Nx,Px,Ix,Tx,Fx,Ax,Rx,Mx,Lx,Bx,zx,Hx,Wx,Ux,Vx,Gx,qx,Xx,Kx,Yx,Qx,Jx,Zx,ek,tk,nk,rk,ok,ik,ak,sk,lk,ck,uk,dk,pk,fk,hk,gk,mk,bk,yk,vk,wk,xk,kk,Sk,Ck,Ek,Dk,Ok,_k,$k,jk,Nk,Pk,Ik,Tk,Fk,Ak,Rk,Mk,Lk,Bk,zk,Hk,Wk,Uk,Vk,Gk,qk,Xk,Kk,Yk,Qk,Jk,Zk,eS,tS,nS,rS,oS,iS,aS,sS,lS,cS,uS,dS,pS,fS,hS,gS,mS,bS,yS,vS,wS,xS,kS,SS,CS,ES,DS,OS,_S,$S,jS,NS,PS,IS,TS,FS,AS,RS,MS,LS,BS,zS,HS,WS,US,VS,GS,qS,XS,KS,YS,QS,JS,ZS,eC,tC,nC,rC,oC,iC,aC,sC,lC,cC,uC,dC,pC,fC,hC,gC,mC,bC,yC,vC,wC,xC,kC,SC,CC,EC,DC,OC,_C,$C,jC,NC,PC,IC,TC,FC,AC,RC,MC,LC,BC,zC,HC,WC,UC,VC,GC,qC,XC,KC,YC,QC,JC,ZC,eE,tE,nE,rE,oE,iE,aE,sE,lE,cE,uE,dE,pE,fE,hE,gE,mE,bE,yE,vE,wE,xE,kE,SE,CE,EE,DE,OE,_E,$E,jE,NE,PE,IE,TE,FE,AE,RE,ME,LE,BE,zE,HE,WE,UE,VE,GE,qE,XE,KE,YE,QE,JE,ZE,eD,tD,nD,rD,oD,iD,aD,sD,lD,cD,uD,dD,pD,fD,hD,gD,mD,bD,yD,vD,wD,xD,kD,SD,CD,ED,DD,OD,_D,$D,jD,ND,PD,ID,TD,FD,AD,RD,MD,LD,BD,zD,HD,WD,UD,VD,GD,qD,XD,KD,YD,QD,JD,ZD,eO,tO,nO,rO,oO,iO,aO,sO,lO,cO,uO,dO,pO,fO,hO,gO,mO,bO,yO,vO,wO,xO,kO,SO,CO,EO,DO,OO,_O,$O,jO,NO,PO,IO,TO,FO,AO,RO,MO,LO,BO,zO,HO,WO,UO,VO,GO,qO,XO,KO,YO,QO,JO,ZO,e_,t_,n_,r_,o_,i_,a_,s_,l_,c_,u_,d_,p_,f_,h_,g_,m_,b_,y_,v_,w_,x_,k_,S_,C_,E_,D_,O_,__,$_,j_,N_,P_,I_,T_,F_,A_,R_,M_,L_,B_,z_,H_,W_,U_,V_,G_,q_,X_,K_,Y_,Q_,J_,Z_,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,d$,p$,f$,h$,g$,m$,b$,y$,v$,w$,x$,k$,S$,C$,E$,D$,O$,_$,$$,j$,N$,P$,I$,T$,F$,A$,R$,M$,L$,B$,z$,H$,W$,U$,V$,G$,q$,X$,K$,Y$,Q$,J$,Z$,ej,tj,nj,rj,oj,ij,aj,sj,lj,cj,uj,dj,pj,fj,hj,gj,mj,bj,yj,vj,wj,xj,kj,Sj,Cj,Ej,Dj,Oj,_j,$j,jj,Nj,Pj,Ij,Tj,Fj,Aj,Rj,Mj,Lj,Bj,zj,Hj,Wj,Uj,Vj,Gj,qj,Xj,Kj,Yj,Qj,Jj,Zj,eN,tN,nN,rN,oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,hN,gN,mN,bN,yN,vN,wN,xN,kN,SN,CN,EN,DN,ON,_N,$N,jN,NN,PN,IN,TN,FN,AN,RN,MN,LN,BN,zN,HN,WN,UN,VN,GN,qN,XN,KN,YN,QN,JN,ZN,eP,tP,nP,rP,oP,iP,aP,sP,lP,cP,uP,dP,pP,fP,hP,gP,mP,bP,yP,vP,wP,xP,kP,SP,CP,EP,DP,OP,_P,$P,jP,NP,PP,IP,TP,FP,AP,RP,MP,LP,BP,zP,HP,WP,UP,VP,GP,qP,XP,KP,YP,QP,JP,ZP,eI,tI,nI,rI,oI,iI,aI,sI,lI,cI,uI,dI,pI,fI,hI,gI,mI,bI,yI,vI,wI,xI,kI,SI,CI,EI,DI,OI,_I,$I,jI,NI,PI,II,TI,FI,AI,RI,MI,LI,BI,zI,HI,WI,UI,VI,GI,qI,XI,KI,YI,QI,JI,ZI,eT,tT,nT,rT,oT,iT,aT,sT,lT,cT,uT,dT,pT,fT,hT,gT,mT,bT,yT,vT,wT,xT,kT,ST,CT,ET,DT,OT,_T,$T,jT,NT,PT,IT,TT,FT,AT,RT,MT,LT,BT,zT,HT,WT,UT,VT,GT,qT,XT,KT,YT,QT,JT,ZT,eF,tF,nF,rF,oF,iF,aF,sF,lF,cF,uF,dF,pF,fF,hF,gF,mF,bF,yF,vF,wF,xF,kF,SF,CF,EF,DF,OF,_F,$F,jF,NF,PF,IF,TF,FF,AF,RF,MF,LF,BF,zF,HF,WF,UF,VF,GF,qF,XF,KF,YF,QF,JF,ZF,eA,tA,nA,rA,oA,iA,aA,sA,lA,cA,uA,dA,pA,fA,hA,gA,mA,bA,yA,vA,wA,xA,kA,SA,CA,EA,DA,OA,_A,$A,jA,NA,PA,IA,TA,FA,AA,RA,MA,LA,BA,zA,HA,WA,UA,VA,GA,qA,XA,KA,YA,QA,JA,ZA,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,uR,dR,pR,fR,hR,gR,mR,bR,yR,vR,wR,xR,kR,SR,CR,ER,DR,OR,_R,$R,jR,NR,PR,IR,TR,FR,AR,RR,MR,LR,BR,zR,HR,WR,UR,VR,GR,qR,XR,KR,YR,QR,JR,ZR,eM,tM,nM,rM,oM,iM,aM,sM,lM,cM,uM,dM,pM,fM,hM,gM,mM,bM,yM,vM,wM,xM,kM,SM,CM,EM,DM,OM,_M,$M,jM,NM,PM,IM,TM,FM,AM,RM,MM,LM,BM,zM,HM,WM,UM,VM,GM,qM,XM,KM,YM,QM,JM,ZM,eL,tL,nL,rL,oL,iL,aL,sL,lL,cL,uL,dL,pL,fL,hL,gL,mL,bL,yL,vL,wL,xL,kL,SL,CL,EL,DL,OL,_L,$L,jL,NL,PL,IL,TL,FL,AL,RL,ML,LL,BL,zL,HL,WL,UL,VL,GL,qL,XL,KL,YL,QL,JL,ZL,eB,tB,nB,rB,oB,iB,aB,sB,lB,cB,uB,dB,pB,fB,hB,gB,mB,bB,yB,vB,wB,xB,kB,SB,CB,EB,DB,OB,_B,$B,jB,NB,PB,IB,TB,FB,AB,RB,MB,LB,BB,zB,HB,WB,UB,VB,GB,qB,XB,KB,YB,QB,JB,ZB,ez,tz,nz,rz,oz,iz,az,sz,lz,cz,uz,dz,pz,fz,hz,gz,mz,bz,yz,vz,wz,xz,kz,Sz,Cz,Ez,Dz,Oz,_z,$z,jz,Nz,Pz,Iz,Tz,Fz,Az,Rz,Mz,Lz,Bz,zz,Hz,Wz,Uz,Vz,Gz,qz,Xz,Kz,Yz,Qz,Jz,Zz,eH,tH,nH,rH,oH,iH,aH,sH,lH,cH,uH,dH,pH,fH,hH,gH,mH,bH,yH,vH,wH,xH,kH,SH,CH,EH,DH,OH,_H,$H,jH,NH,PH,IH,TH,FH,AH,RH,MH,LH,BH,zH,HH,WH,UH,VH,GH,qH,XH,KH,YH,QH,JH,ZH,eW,tW,nW,rW,oW,iW,aW,sW,lW,cW,uW,dW,pW,fW,hW,gW,mW,bW,yW,vW,wW,xW,kW,SW,CW,EW,DW,OW,_W,$W,jW,NW,PW,IW,TW,FW,AW,RW,MW,LW,BW,zW,HW,WW,UW,VW,GW,qW,XW,KW,YW,QW,JW,ZW,eU,tU,nU,rU,oU,iU,aU,sU,lU,cU,uU,dU,pU,fU,hU,gU,mU,bU,yU,vU,wU,xU,kU,SU,CU,EU,DU,OU,_U,$U,jU,NU,PU,IU,TU,FU,AU,RU,MU,LU,BU,zU,HU,WU,UU,VU,GU,qU,XU,KU,YU,QU,JU,ZU,eV,tV,nV,rV,oV,iV,aV,sV,lV,cV,uV,dV,pV,fV,hV,gV,mV,bV,yV,vV,wV,xV,kV,SV,CV,EV,DV,OV,_V,$V,jV,NV,PV,IV,TV,FV,AV,RV,MV,LV,BV,zV,HV,WV,UV,VV,GV,qV,XV,KV,YV,QV,JV,ZV,eG,tG,nG,rG,oG,iG,aG,sG,lG,cG,uG,dG,pG,fG,hG,gG,mG,bG,yG,vG,wG,xG,kG,SG,CG,EG,DG,OG,_G,$G,jG,NG,PG,IG,TG,FG,AG,RG,MG,LG,BG,zG,HG,WG,UG,VG,GG,qG,XG,KG,YG,QG,JG,ZG,eq,tq,nq,rq,oq,iq,aq,sq,lq,cq,uq,dq,pq,fq,hq,gq,mq,bq,yq,vq,wq,xq,kq,Sq,Cq,Eq,Dq,Oq,_q,$q,jq,Nq,Pq,Iq,Tq,Fq,Aq,Rq,Mq,Lq,Bq,zq,Hq,Wq,Uq,Vq,Gq,qq,Xq,Kq,Yq,Qq,Jq,Zq,eX,tX,nX,rX,oX,iX,aX,sX,lX,cX,uX,dX,pX,fX,hX,gX,mX,bX,yX,vX,wX,xX,kX,SX,CX,EX,DX,OX,_X,$X,jX,NX,PX,IX,TX,FX,AX,RX,MX,LX,BX,zX,HX,WX,UX,VX,GX,qX,XX,KX,YX,QX,JX,ZX,eK,tK,nK,rK,oK,iK,aK,sK,lK,cK,uK,dK,pK,fK,hK,gK,mK="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},bK={exports:{}},yK={},vK={exports:{}},wK={},xK=Symbol.for("react.element"),kK=Symbol.for("react.portal"),SK=Symbol.for("react.fragment"),CK=Symbol.for("react.strict_mode"),EK=Symbol.for("react.profiler"),DK=Symbol.for("react.provider"),OK=Symbol.for("react.context"),_K=Symbol.for("react.forward_ref"),$K=Symbol.for("react.suspense"),jK=Symbol.for("react.memo"),NK=Symbol.for("react.lazy"),PK=Symbol.iterator,IK={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},TK=Object.assign,FK={};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,(Ub=i.prototype=new o).constructor=i,TK(Ub,r.prototype),Ub.isPureReactComponent=!0,Vb=Array.isArray,Gb=Object.prototype.hasOwnProperty,Xb={key:!0,ref:!0,__self:!0,__source:!0},Kb=/\/+/g,Jb={ReactCurrentDispatcher:Yb={current:null},ReactCurrentBatchConfig:Qb={transition:null},ReactCurrentOwner:qb={current:null}},wK.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}},wK.Component=r,wK.Fragment=SK,wK.Profiler=EK,wK.PureComponent=i,wK.StrictMode=CK,wK.Suspense=$K,wK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jb,wK.cloneElement=function(e,t,n){var r,o,i,a,s,l,c;if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");if(r=TK({},e.props),o=e.key,i=e.ref,a=e._owner,null!=t)for(l in void 0!==t.ref&&(i=t.ref,a=qb.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)Gb.call(t,l)&&!Xb.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<l){for(s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:xK,type:e.type,key:o,ref:i,props:r,_owner:a}},wK.createContext=function(e){return(e={$$typeof:OK,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:DK,_context:e},e.Consumer=e},wK.createElement=a,wK.createFactory=function(e){var t=a.bind(null,e);return t.type=e,t},wK.createRef=function(){return{current:null}},wK.forwardRef=function(e){return{$$typeof:_K,render:e}},wK.isValidElement=s,wK.lazy=function(e){return{$$typeof:NK,_payload:{_status:-1,_result:e},_init:d}},wK.memo=function(e,t){return{$$typeof:jK,type:e,compare:void 0===t?null:t}},wK.startTransition=function(e){var t=Qb.transition;Qb.transition={};try{e()}finally{Qb.transition=t}},wK.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},wK.useCallback=function(e,t){return Yb.current.useCallback(e,t)},wK.useContext=function(e){return Yb.current.useContext(e)},wK.useDebugValue=function(){},wK.useDeferredValue=function(e){return Yb.current.useDeferredValue(e)},wK.useEffect=function(e,t){return Yb.current.useEffect(e,t)},wK.useId=function(){return Yb.current.useId()},wK.useImperativeHandle=function(e,t,n){return Yb.current.useImperativeHandle(e,t,n)},wK.useInsertionEffect=function(e,t){return Yb.current.useInsertionEffect(e,t)},wK.useLayoutEffect=function(e,t){return Yb.current.useLayoutEffect(e,t)},wK.useMemo=function(e,t){return Yb.current.useMemo(e,t)},wK.useReducer=function(e,t,n){return Yb.current.useReducer(e,t,n)},wK.useRef=function(e){return Yb.current.useRef(e)},wK.useState=function(e){return Yb.current.useState(e)},wK.useSyncExternalStore=function(e,t,n){return Yb.current.useSyncExternalStore(e,t,n)},wK.useTransition=function(){return Yb.current.useTransition()},wK.version="18.2.0",vK.exports=wK;const AK=t(Zb=vK.exports),RK=e({__proto__:null,default:AK},[Zb]);if(ey=Zb,ty=Symbol.for("react.element"),ny=Symbol.for("react.fragment"),ry=Object.prototype.hasOwnProperty,oy=ey.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iy={key:!0,ref:!0,__self:!0,__source:!0},yK.Fragment=ny,yK.jsx=p,yK.jsxs=p,bK.exports=yK,ay=bK.exports,sy={exports:{}},ly={},cy={exports:{}},function(e){function t(e,t){var n,r,i=e.length;for(e.push(t);0<i&&0<o(r=e[n=i-1>>>1],t);)e[n]=t,e[i]=r,i=n}function n(e){return 0===e.length?null:e[0]}function r(e){var t,n,r,i,a,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,i=e.length,a=i>>>1;r<a;)if(u=e[c=1+(s=2*(r+1)-1)],0>o(l=e[s],n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(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 i(e){for(var o=n(m);null!==o;){if(null===o.callback)r(m);else{if(!(o.startTime<=e))break;r(m),o.sortIndex=o.expirationTime,t(g,o)}o=n(m)}}function a(e){if(k=!1,i(e),!x)if(null!==n(g))x=!0,u(s);else{var t=n(m);null!==t&&d(a,t.startTime-e)}}function s(t,o){var s,c,u,p,f;x=!1,k&&(k=!1,C(_),_=-1),w=!0,s=v;try{for(i(o),y=n(g);null!==y&&(!(y.expirationTime>o)||t&&!l());)"function"==typeof(c=y.callback)?(y.callback=null,v=y.priorityLevel,u=c(y.expirationTime<=o),o=e.unstable_now(),"function"==typeof u?y.callback=u:y===n(g)&&r(g),i(o)):r(g),y=n(g);return null!==y?p=!0:(null!==(f=n(m))&&d(a,f.startTime-o),p=!1),p}finally{y=null,v=s,w=!1}}function l(){return!(e.unstable_now()-j<$)}function c(){var t,n;if(null!==O){t=e.unstable_now(),j=t,n=!0;try{n=O(!0,t)}finally{n?N():(D=!1,O=null)}}else D=!1}function u(e){O=e,D||(D=!0,N())}function d(t,n){_=S((function(){t(e.unstable_now())}),n)}var p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I;"object"==typeof performance&&"function"==typeof performance.now?(p=performance,e.unstable_now=function(){return p.now()}):(f=Date,h=f.now(),e.unstable_now=function(){return f.now()-h}),g=[],m=[],b=1,y=null,v=3,w=!1,x=!1,k=!1,S="function"==typeof setTimeout?setTimeout:null,C="function"==typeof clearTimeout?clearTimeout:null,E="undefined"!=typeof setImmediate?setImmediate:null,"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling),D=!1,O=null,_=-1,$=5,j=-1,"function"==typeof E?N=function(){E(c)}:"undefined"!=typeof MessageChannel?(P=new MessageChannel,I=P.port2,P.port1.onmessage=c,N=function(){I.postMessage(null)}):N=function(){S(c,0)},e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){x||w||(x=!0,u(s))},e.unstable_forceFrameRate=function(e){0>e||125<e||($=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(g)},e.unstable_next=function(e){var t,n;switch(v){case 1:case 2:case 3:t=3;break;default:t=v}n=v,v=t;try{return e()}finally{v=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=v;v=e;try{return t()}finally{v=n}},e.unstable_scheduleCallback=function(r,o,i){var l,c=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?c+i:c,r){case 1:l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:b++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>c?(r.sortIndex=i,t(m,r),null===n(g)&&r===n(m)&&(k?(C(_),_=-1):k=!0,d(a,i-c))):(r.sortIndex=l,t(g,r),x||w||(x=!0,u(s))),r},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var t=v;return function(){var n=v;v=t;try{return e.apply(this,arguments)}finally{v=n}}}}(uy={}),cy.exports=uy,dy=Zb,py=cy.exports,fy=new Set,hy={},gy=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),my=Object.prototype.hasOwnProperty,by=/^[: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 m(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 m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){wy[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){wy[e]=new m(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 m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){wy[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){wy[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){wy[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){wy[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)})),xy=/[\-:]([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(xy,b);wy[t]=new m(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(xy,b);wy[t]=new m(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(xy,b);wy[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){wy[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),wy.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){wy[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)})),ky=dy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sy=Symbol.for("react.element"),Cy=Symbol.for("react.portal"),Ey=Symbol.for("react.fragment"),Dy=Symbol.for("react.strict_mode"),Oy=Symbol.for("react.profiler"),_y=Symbol.for("react.provider"),$y=Symbol.for("react.context"),jy=Symbol.for("react.forward_ref"),Ny=Symbol.for("react.suspense"),Py=Symbol.for("react.suspense_list"),Iy=Symbol.for("react.memo"),Ty=Symbol.for("react.lazy"),Fy=Symbol.for("react.offscreen"),Ay=Symbol.iterator,Ry=Object.assign,Ly=!1,By=Array.isArray,SX=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((zy=zy||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},Hy="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t){MSApp.execUnsafeLocalFunction((function(){return SX(e,t)}))}:SX,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},Uy=["Webkit","ms","Moz","O"],Object.keys(Wy).forEach((function(e){Uy.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wy[t]=Wy[e]}))})),Vy=Ry({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}),Gy=null,qy=null,Xy=null,Ky=null,Yy=!1,Qy=!1,gy)try{Jy={},Object.defineProperty(Jy,"passive",{get:function(){Qy=!0}}),window.addEventListener("test",Jy,Jy),window.removeEventListener("test",Jy,Jy)}catch(SX){Qy=!1}Zy=!1,ev=null,tv=!1,nv=null,rv={onError:function(e){Zy=!0,ev=e}},ov=py.unstable_scheduleCallback,iv=py.unstable_cancelCallback,av=py.unstable_shouldYield,sv=py.unstable_requestPaint,lv=py.unstable_now,cv=py.unstable_getCurrentPriorityLevel,uv=py.unstable_ImmediatePriority,dv=py.unstable_UserBlockingPriority,pv=py.unstable_NormalPriority,fv=py.unstable_LowPriority,hv=py.unstable_IdlePriority,gv=null,mv=null,bv=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,xv=4194304,kv=0,_v=!1,$v=[],jv=null,Nv=null,Pv=null,Iv=new Map,Tv=new Map,Fv=[],Av="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(" "),Rv=ky.ReactCurrentBatchConfig,Mv=!0,Lv=null,Bv=null,zv=null,Hv=null,Wv={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uv=Fe(Wv),Vv=Ry({},Wv,{view:0,detail:0}),Gv=Fe(Vv),Yv=Ry({},Vv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Re,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!==Kv&&(Kv&&"mousemove"===e.type?(qv=e.screenX-Kv.screenX,Xv=e.screenY-Kv.screenY):Xv=qv=0,Kv=e),qv)},movementY:function(e){return"movementY"in e?e.movementY:Xv}}),Qv=Fe(Yv),Jv=Ry({},Yv,{dataTransfer:0}),Zv=Fe(Jv),ew=Ry({},Vv,{relatedTarget:0}),tw=Fe(ew),nw=Ry({},Wv,{animationName:0,elapsedTime:0,pseudoElement:0}),rw=Fe(nw),ow=Ry({},Wv,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iw=Fe(ow),aw=Ry({},Wv,{data:0}),sw=Fe(aw),lw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cw={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"},uw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},dw=Ry({},Vv,{key:function(e){if(e.key){var t=lw[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Pe(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Re,charCode:function(e){return"keypress"===e.type?Pe(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Pe(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pw=Fe(dw),fw=Ry({},Yv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hw=Fe(fw),gw=Ry({},Vv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Re}),mw=Fe(gw),bw=Ry({},Wv,{propertyName:0,elapsedTime:0,pseudoElement:0}),yw=Fe(bw),vw=Ry({},Yv,{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=Fe(vw),xw=[9,13,27,32],kw=gy&&"CompositionEvent"in window,Sw=null,gy&&"documentMode"in document&&(Sw=document.documentMode),Cw=gy&&"TextEvent"in window&&!Sw,Ew=gy&&(!kw||Sw&&8<Sw&&11>=Sw),Dw=String.fromCharCode(32),Ow=!1,_w=!1,$w={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},jw=null,Nw=null,Pw=!1,gy&&(gy?((Tw="oninput"in document)||((Fw=document.createElement("div")).setAttribute("oninput","return;"),Tw="function"==typeof Fw.oninput),Iw=Tw):Iw=!1,Pw=Iw&&(!document.documentMode||9<document.documentMode)),Aw="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Rw=gy&&"documentMode"in document&&11>=document.documentMode,Mw=null,Lw=null,Bw=null,zw=!1,Hw={animationend:it("Animation","AnimationEnd"),animationiteration:it("Animation","AnimationIteration"),animationstart:it("Animation","AnimationStart"),transitionend:it("Transition","TransitionEnd")},Ww={},Uw={},gy&&(Uw=document.createElement("div").style,"AnimationEvent"in window||(delete Hw.animationend.animation,delete Hw.animationiteration.animation,delete Hw.animationstart.animation),"TransitionEvent"in window||delete Hw.transitionend.transition),Vw=at("animationend"),Gw=at("animationiteration"),qw=at("animationstart"),Xw=at("transitionend"),Kw=new Map,Yw="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<Yw.length;Qw++)st((Jw=Yw[Qw]).toLowerCase(),"on"+(Jw[0].toUpperCase()+Jw.slice(1)));if(st(Vw,"onAnimationEnd"),st(Gw,"onAnimationIteration"),st(qw,"onAnimationStart"),st("dblclick","onDoubleClick"),st("focusin","onFocus"),st("focusout","onBlur"),st(Xw,"onTransitionEnd"),g("onMouseEnter",["mouseout","mouseover"]),g("onMouseLeave",["mouseout","mouseover"]),g("onPointerEnter",["pointerout","pointerover"]),g("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" ")),Zw="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ex=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zw)),tx="_reactListening"+Math.random().toString(36).slice(2),nx=/\r\n?/g,rx=/\u0000|\uFFFD/g,ox=null,ix=null,ax="function"==typeof setTimeout?setTimeout:void 0,sx="function"==typeof clearTimeout?clearTimeout:void 0,lx="function"==typeof Promise?Promise:void 0,cx="function"==typeof queueMicrotask?queueMicrotask:void 0!==lx?function(e){return lx.resolve(null).then(e).catch(St)}:ax,ux=Math.random().toString(36).slice(2),dx="__reactFiber$"+ux,px="__reactProps$"+ux,fx="__reactContainer$"+ux,hx="__reactEvents$"+ux,gx="__reactListeners$"+ux,mx="__reactHandles$"+ux,bx=[],yx=-1,wx=Nt(vx={}),xx=Nt(!1),kx=vx,Sx=null,Cx=!1,Ex=!1,Dx=[],Ox=0,_x=null,$x=0,jx=[],Nx=0,Px=null,Ix=1,Tx="",Fx=null,Ax=null,Rx=!1,Mx=null,Lx=ky.ReactCurrentBatchConfig,Bx=Nt(null),zx=null,Hx=null,Wx=null,Ux=null,Vx=!1,Gx=(new dy.Component).refs,qx={isMounted:function(e){return!!(e=e._reactInternals)&&oe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vo(),o=wo(e),i=hn(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=gn(e,i,o))&&(xo(t,e,o,r),mn(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vo(),o=wo(e),i=hn(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=gn(e,i,o))&&(xo(t,e,o,r),mn(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vo(),r=wo(e),o=hn(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=gn(e,o,r))&&(xo(t,e,r,n),mn(t,e,r))}},Xx=_n(!0),Kx=_n(!1),Qx=Nt(Yx={}),Jx=Nt(Yx),Zx=Nt(Yx),ek=Nt(0),tk=[],nk=ky.ReactCurrentDispatcher,rk=ky.ReactCurrentBatchConfig,ok=0,ik=null,ak=null,sk=null,lk=!1,ck=!1,uk=0,dk=0,pk={readContext:ln,useCallback:An,useContext:An,useEffect:An,useImperativeHandle:An,useInsertionEffect:An,useLayoutEffect:An,useMemo:An,useReducer:An,useRef:An,useState:An,useDebugValue:An,useDeferredValue:An,useTransition:An,useMutableSource:An,useSyncExternalStore:An,useId:An,unstable_isNewReconciler:!1},fk={readContext:ln,useCallback:function(e,t){return Bn().memoizedState=[e,void 0===t?null:t],e},useContext:ln,useEffect:rr,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,tr(4194308,4,sr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tr(4194308,4,e,t)},useInsertionEffect:function(e,t){return tr(4,2,e,t)},useMemo:function(e,t){var n=Bn();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bn();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,r.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=gr.bind(null,ik,e),[r.memoizedState,e]},useRef:function(e){return Bn().memoizedState={current:e}},useState:Jn,useDebugValue:cr,useDeferredValue:function(e){return Bn().memoizedState=e},useTransition:function(){var e=Jn(!1),t=e[0];return e=fr.bind(null,e[1]),Bn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r,o=ik,i=Bn();if(Rx){if(void 0===n)throw Error(f(407));n=n()}else{if(n=t(),null===Ak)throw Error(f(349));0!=(30&ok)||qn(o,t,n)}return i.memoizedState=n,i.queue=r={value:n,getSnapshot:t},rr(Kn.bind(null,o,r,e),[e]),o.flags|=2048,Zn(9,Xn.bind(null,o,r,n,t),void 0,null),n},useId:function(){var e,t,n=Bn(),r=Ak.identifierPrefix;return Rx?(e=Tx,r=":"+r+"R"+(e=((t=Ix)&~(1<<32-bv(t)-1)).toString(32)+e),0<(e=uk++)&&(r+="H"+e.toString(32)),r+=":"):r=":"+r+"r"+(e=dk++).toString(32)+":",n.memoizedState=r},unstable_isNewReconciler:!1},hk={readContext:ln,useCallback:ur,useContext:ln,useEffect:or,useImperativeHandle:lr,useInsertionEffect:ir,useLayoutEffect:ar,useMemo:dr,useReducer:Wn,useRef:er,useState:function(){return Wn(Hn)},useDebugValue:cr,useDeferredValue:function(e){return pr(zn(),ak.memoizedState,e)},useTransition:function(){return[Wn(Hn)[0],zn().memoizedState]},useMutableSource:Vn,useSyncExternalStore:Gn,useId:hr,unstable_isNewReconciler:!1},gk={readContext:ln,useCallback:ur,useContext:ln,useEffect:or,useImperativeHandle:lr,useInsertionEffect:ir,useLayoutEffect:ar,useMemo:dr,useReducer:Un,useRef:er,useState:function(){return Un(Hn)},useDebugValue:cr,useDeferredValue:function(e){var t=zn();return null===ak?t.memoizedState=e:pr(t,ak.memoizedState,e)},useTransition:function(){return[Un(Hn)[0],zn().memoizedState]},useMutableSource:Vn,useSyncExternalStore:Gn,useId:hr,unstable_isNewReconciler:!1},mk="function"==typeof WeakMap?WeakMap:Map,bk=ky.ReactCurrentOwner,yk=!1,vk={dehydrated:null,treeContext:null,retryLane:0},wk=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},xk=function(){},kk=function(e,t,n,r){var o,i,a,s,l,c=e.memoizedProps;if(c!==r){switch(e=t.stateNode,$n(Qx.current),o=null,n){case"input":c=j(e,c),r=j(e,r),o=[];break;case"select":c=Ry({},c,{value:void 0}),r=Ry({},r,{value:void 0}),o=[];break;case"textarea":c=R(e,c),r=R(e,r),o=[];break;default:"function"!=typeof c.onClick&&"function"==typeof r.onClick&&(e.onclick=xt)}for(l in G(n,r),n=null,c)if(!r.hasOwnProperty(l)&&c.hasOwnProperty(l)&&null!=c[l])if("style"===l)for(i in a=c[l])a.hasOwnProperty(i)&&(n||(n={}),n[i]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(hy.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r)if(s=r[l],a=null!=c?c[l]:void 0,r.hasOwnProperty(l)&&s!==a&&(null!=s||null!=a))if("style"===l)if(a){for(i in a)!a.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&a[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(l,n)),n=s;else"dangerouslySetInnerHTML"===l?(a=a?a.__html:void 0,null!=(s=s?s.__html:void 0)&&a!==s&&(o=o||[]).push(l,s)):"children"===l?"string"!=typeof s&&"number"!=typeof s||(o=o||[]).push(l,""+s):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(hy.hasOwnProperty(l)?(null!=s&&"onScroll"===l&&ut("scroll",e),o||a===s||(o=[])):(o=o||[]).push(l,s));n&&(o=o||[]).push("style",n),(t.updateQueue=l=o)&&(t.flags|=4)}},Sk=function(e,t,n,r){n!==r&&(t.flags|=4)},Ck=!1,Ek=!1,Dk="function"==typeof WeakSet?WeakSet:Set,Ok=null,_k=!1,$k=null,jk=!1,Nk=Math.ceil,Pk=ky.ReactCurrentDispatcher,Ik=ky.ReactCurrentOwner,Tk=ky.ReactCurrentBatchConfig,Fk=0,Ak=null,Rk=null,Mk=0,Lk=0,Bk=Nt(0),zk=0,Hk=null,Wk=0,Uk=0,Vk=0,Gk=null,qk=null,Xk=0,Kk=1/0,Yk=null,Qk=!1,Jk=null,Zk=null,eS=!1,tS=null,nS=0,rS=0,oS=null,iS=-1,aS=0,sS=function(e,t,n){var r,o,i,a,s,l,c,u;if(null!==e)if(e.memoizedProps!==t.pendingProps||xx.current)yk=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return yk=!1,function(e,t,n){switch(t.tag){case 3:Ar(t),en();break;case 5:Pn(t);break;case 1:Ft(t.type)&&Lt(t);break;case 4:jn(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;It(Bx,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(It(ek,1&ek.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Lr(e,t,n):(It(ek,1&ek.current),null!==(e=Gr(e,t,n))?e.sibling:null);It(ek,1&ek.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ur(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),It(ek,ek.current),r)break;return null;case 22:case 23:return t.lanes=0,Nr(e,t,n)}return Gr(e,t,n)}(e,t,n);yk=0!=(131072&e.flags)}else yk=!1,Rx&&0!=(1048576&t.flags)&&Ut(t,$x,t.index);switch(t.lanes=0,t.tag){case 2:return r=t.type,Vr(e,t),e=t.pendingProps,o=Tt(t,wx.current),sn(t,n),o=Mn(null,t,r,e,o,n),i=Ln(),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ft(r)?(i=!0,Lt(t)):i=!1,t.memoizedState=null!=o.state?o.state:null,pn(t),o.updater=qx,t.stateNode=o,o._reactInternals=t,Cn(t,r,e,n),t=Fr(null,t,r,!0,i,n)):(t.tag=0,Rx&&i&&Vt(t),Or(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vr(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Qo(e)?1:0;if(null!=e){if((e=e.$$typeof)===jy)return 11;if(e===Iy)return 14}return 2}(r),e=nn(r,e),o){case 0:t=Ir(null,t,r,e,n);break e;case 1:t=Tr(null,t,r,e,n);break e;case 11:t=_r(null,t,r,e,n);break e;case 14:t=$r(null,t,r,nn(r.type,e),n);break e}throw Error(f(306,r,""))}return t;case 0:return o=t.pendingProps,Ir(e,t,r=t.type,o=t.elementType===r?o:nn(r,o),n);case 1:return o=t.pendingProps,Tr(e,t,r=t.type,o=t.elementType===r?o:nn(r,o),n);case 3:e:{if(Ar(t),null===e)throw Error(f(387));if(r=t.pendingProps,o=(i=t.memoizedState).element,fn(e,t),yn(t,r,null,n),r=(a=t.memoizedState).element,i.isDehydrated){if(t.updateQueue.baseState=i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.memoizedState=i,256&t.flags){t=Rr(e,t,r,n,o=wr(Error(f(423)),t));break e}if(r!==o){t=Rr(e,t,r,n,o=wr(Error(f(424)),t));break e}for(Ax=Et(t.stateNode.containerInfo.firstChild),Fx=t,Rx=!0,Mx=null,n=Kx(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(en(),r===o){t=Gr(e,t,n);break e}Or(e,t,r,n)}t=t.child}return t;case 5:return Pn(t),null===e&&Yt(t),i=null!==e?e.memoizedProps:null,a=(o=t.pendingProps).children,kt(r=t.type,o)?a=null:null!==i&&kt(r,i)&&(t.flags|=32),Pr(e,t),Or(e,t,a,n),t.child;case 6:return null===e&&Yt(t),null;case 13:return Lr(e,t,n);case 4:return jn(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xx(t,null,r,n):Or(e,t,r,n),t.child;case 11:return o=t.pendingProps,_r(e,t,r=t.type,o=t.elementType===r?o:nn(r,o),n);case 7:return Or(e,t,t.pendingProps,n),t.child;case 8:case 12:return Or(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.memoizedProps,a=(o=t.pendingProps).value,It(Bx,(r=t.type._context)._currentValue),r._currentValue=a,null!==i)if(Aw(i.value,a)){if(i.children===o.children&&!xx.current){t=Gr(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){if(null!==(s=i.dependencies))for(a=i.child,l=s.firstContext;null!==l;){if(l.context===r){1===i.tag&&((l=hn(-1,n&-n)).tag=2,null!==(c=i.updateQueue)&&(null===(u=(c=c.shared).pending)?l.next=l:(l.next=u.next,u.next=l),c.pending=l)),i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),an(i.return,n,t),s.lanes|=n;break}l=l.next}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(f(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),an(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Or(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,sn(t,n),r=r(o=ln(o)),t.flags|=1,Or(e,t,r,n),t.child;case 14:return o=nn(r=t.type,t.pendingProps),$r(e,t,r,o=nn(r.type,o),n);case 15:return jr(e,t,t.type,t.pendingProps,n);case 17:return o=t.pendingProps,o=t.elementType===(r=t.type)?o:nn(r,o),Vr(e,t),t.tag=1,Ft(r)?(e=!0,Lt(t)):e=!1,sn(t,n),kn(t,r,o),Cn(t,r,o,n),Fr(null,t,r,!0,e,n);case 19:return Ur(e,t,n);case 22:return Nr(e,t,n)}throw Error(f(156,t.tag))},lS="function"==typeof reportError?reportError:function(){},fi.prototype.render=pi.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(f(409));li(e,t,null,null)},fi.prototype.unmount=pi.prototype.unmount=function(){var e,t=this._internalRoot;null!==t&&(this._internalRoot=null,e=t.containerInfo,$o((function(){li(null,t,null,null)})),e[fx]=null)},fi.prototype.unstable_scheduleHydration=function(e){var t,n;if(e){for(e={blockedOn:null,target:e,priority:t=Dv()},n=0;n<Fv.length&&0!==t&&t<Fv[n].priority;n++);Fv.splice(n,0,e),0===n&&we(e)}},Sv=function(e){var t,n;switch(e.tag){case 3:(t=e.stateNode).current.memoizedState.isDehydrated&&0!==(n=ce(t.pendingLanes))&&(me(t,1|n),ko(t,lv()),0==(6&Fk)&&(Kk=lv()+500,Ht()));break;case 13:$o((function(){var t,n=dn(e,1);null!==n&&(t=vo(),xo(n,e,1,t))})),di(e,1)}},Cv=function(e){var t;13===e.tag&&(null!==(t=dn(e,134217728))&&xo(t,e,134217728,vo()),di(e,134217728))},Ev=function(e){var t,n;13===e.tag&&(null!==(n=dn(e,t=wo(e)))&&xo(n,e,t,vo()),di(e,t))},Dv=function(){return kv},Ov=function(e,t){var n=kv;try{return kv=e,t()}finally{kv=n}},qy=function(e,t,n){var r,o;switch(t){case"input":if(I(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++)if((r=n[t])!==e&&r.form===e.form){if(!(o=jt(r)))throw Error(f(90));_(r),I(r,o)}}break;case"textarea":L(e,n);break;case"select":null!=(t=n.value)&&A(e,!!n.multiple,t,!1)}},J=_o,Z=$o,cS={usingClientEntryPoint:!1,Events:[_t,$t,jt,Y,Q,_o]},dS={bundleType:(uS={findFiberByHostInstance:Ot,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"}).bundleType,version:uS.version,rendererPackageName:uS.rendererPackageName,rendererConfig:uS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ky.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=se(e))?null:e.stateNode},findFiberByHostInstance:uS.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&!(pS=__REACT_DEVTOOLS_GLOBAL_HOOK__).isDisabled&&pS.supportsFiber)try{gv=pS.inject(dS),mv=pS}catch(SX){}ly.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cS,ly.createPortal=function(e,t,n){var r=2<arguments.length&&void 0!==n?n:null;if(!hi(t))throw Error(f(200));return function(e,t,n,r){var o=3<arguments.length&&void 0!==r?r:null;return{$$typeof:Cy,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},ly.createRoot=function(e,t){if(!hi(e))throw Error(f(299));var n=!1,r="",o=lS;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=ii(e,1,!1,null,0,n,0,r,o),e[fx]=t.current,pt(8===e.nodeType?e.parentNode:e),new pi(t)},ly.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(f(188));throw e=Object.keys(e).join(","),Error(f(268,e))}return null===(e=se(t))?null:e.stateNode},ly.flushSync=function(e){return $o(e)},ly.hydrate=function(e,t,n){if(!gi(t))throw Error(f(200));return bi(null,e,t,!0,n)},ly.hydrateRoot=function(e,t,n){if(!hi(e))throw Error(f(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=lS;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=si(t,null,e,1,null!=n?n:null,o,0,i,a),e[fx]=t.current,pt(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new fi(t)},ly.render=function(e,t,n){if(!gi(t))throw Error(f(200));return bi(null,e,t,!1,n)},ly.unmountComponentAtNode=function(e){if(!gi(e))throw Error(f(40));return!!e._reactRootContainer&&($o((function(){bi(null,null,e,!1,(function(){e._reactRootContainer=null,e[fx]=null}))})),!0)},ly.unstable_batchedUpdates=_o,ly.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!gi(n))throw Error(f(200));if(null==e||void 0===e._reactInternals)throw Error(f(38));return bi(e,t,n,!1,r)},ly.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),sy.exports=ly;const MK=t(fS=sy.exports),LK=e({__proto__:null,default:MK},[fS]);hS=fS.createRoot,gS={exports:{}},vi.resetWarningCache=yi,gS.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vi,resetWarningCache:yi};return n.PropTypes=n,n}();const BK=t(mS=gS.exports);yS=(CX=bS=Zb)&&"object"==typeof CX&&"default"in CX?CX.default:CX,vS=!("undefined"==typeof window||!window.document||!window.document.createElement);const zK=t((function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){function o(){a=e(i.map((function(e){return e.props}))),s.canUseDOM?t(a):n&&(a=n(a))}var i,a,s;if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");return i=[],s=function(e){function t(){return e.apply(this,arguments)||this}var n,s,l=e;return(n=t).prototype=Object.create(l.prototype),n.prototype.constructor=n,n.__proto__=l,t.peek=function(){return a},t.rewind=function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=a;return a=void 0,i=[],e},(s=t.prototype).UNSAFE_componentWillMount=function(){i.push(this),o()},s.componentDidUpdate=function(){o()},s.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),o()},s.render=function(){return yS.createElement(r,this.props)},t}(bS.PureComponent),wi(s,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),wi(s,"canUseDOM",vS),s}}));wS="undefined"!=typeof Element,xS="function"==typeof Map,kS="function"==typeof Set,SS="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView,CS=function(e,t){try{return xi(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return!1;throw n}};const HK=t(CS);ES=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,OS=Object.prototype.propertyIsEnumerable,_S=function(){var e,t,n,r;try{if(!Object.assign)return!1;if((e=new String("abc"))[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return"0123456789"===Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join("")&&(r={},"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(o){return!1}}()?Object.assign:function(e,t){var n,r,o,i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e);for(o=1;o<arguments.length;o++){for(i in n=Object(arguments[o]))DS.call(n,i)&&(s[i]=n[i]);if(ES)for(r=ES(n),a=0;a<r.length;a++)OS.call(n,r[a])&&(s[r[a]]=n[r[a]])}return s};const WK=t(_S);$S="bodyAttributes",jS="htmlAttributes",NS={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Object.keys(NS).map((function(e){return NS[e]})),PS="cssText",IS="href",TS="innerHTML",FS="itemprop",AS="rel",RS={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},MS=Object.keys(RS).reduce((function(e,t){return e[RS[t]]=t,e}),{}),LS=[NS.NOSCRIPT,NS.SCRIPT,NS.STYLE],BS="data-react-helmet",zS="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},HS=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},WS=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),US=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},VS=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},GS=function(e,t){var n,r={};for(n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},qS=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},XS=function(e,t){return!1===(!(arguments.length>1&&void 0!==t)||t)?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},KS=function(e){var t,n=eC(e,NS.TITLE),r=eC(e,"titleTemplate");return r&&n?r.replace(/%s/g,(function(){return Array.isArray(n)?n.join(""):n})):(t=eC(e,"defaultTitle"),n||t||void 0)},YS=function(e){return eC(e,"onChangeClientState")||function(){}},QS=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return US({},e,t)}),{})},JS=function(e,t){return t.filter((function(e){return void 0!==e[NS.BASE]})).map((function(e){return e[NS.BASE]})).reverse().reduce((function(t,n){var r,o,i;if(!t.length)for(r=Object.keys(n),o=0;o<r.length;o++)if(i=r[o].toLowerCase(),-1!==e.indexOf(i)&&n[i])return t.concat(n);return t}),[])},ZS=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&aC("Helmet: "+e+' should be of type "Array". Instead found type "'+zS(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o,i,a,s,l={};for(n.filter((function(e){var n,o,i,a,s=void 0,c=Object.keys(e);for(n=0;n<c.length;n++)i=(o=c[n]).toLowerCase(),-1===t.indexOf(i)||s===AS&&"canonical"===e[s].toLowerCase()||i===AS&&"stylesheet"===e[i].toLowerCase()||(s=i),-1===t.indexOf(o)||o!==TS&&o!==PS&&o!==FS||(s=o);return!(!s||!e[s]||(a=e[s].toLowerCase(),r[s]||(r[s]={}),l[s]||(l[s]={}),r[s][a]||(l[s][a]=!0,0)))})).reverse().forEach((function(t){return e.push(t)})),o=Object.keys(l),i=0;i<o.length;i++)s=WK({},r[a=o[i]],l[a]),r[a]=s;return e}),[]).reverse()},eC=function(e,t){var n,r;for(n=e.length-1;n>=0;n--)if((r=e[n]).hasOwnProperty(t))return r[t];return null},tC=function(e){return{baseTag:JS([IS,"target"],e),bodyAttributes:QS($S,e),defer:eC(e,"defer"),encode:eC(e,"encodeSpecialCharacters"),htmlAttributes:QS(jS,e),linkTags:ZS(NS.LINK,[AS,IS],e),metaTags:ZS(NS.META,["name","charset","http-equiv","property",FS],e),noscriptTags:ZS(NS.NOSCRIPT,[TS],e),onChangeClientState:YS(e),scriptTags:ZS(NS.SCRIPT,["src",TS],e),styleTags:ZS(NS.STYLE,[PS],e),title:KS(e),titleAttributes:QS("titleAttributes",e)}},EX=Date.now(),nC=function(e){var t=Date.now();t-EX>16?(EX=t,e(t)):setTimeout((function(){nC(e)}),0)},rC=function(e){return clearTimeout(e)},oC="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||nC:global.requestAnimationFrame||nC,iC="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||rC:global.cancelAnimationFrame||rC,aC=function(){return console&&"function"==typeof console.warn&&void 0},sC=null,lC=function(e){sC&&iC(sC),e.defer?sC=oC((function(){cC(e,(function(){sC=null}))})):(cC(e),sC=null)},cC=function(e,t){var n,r,o,i=e.baseTag,a=e.htmlAttributes,s=e.linkTags,l=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,d=e.scriptTags,p=e.styleTags,f=e.title,h=e.titleAttributes;pC(NS.BODY,e.bodyAttributes),pC(NS.HTML,a),dC(f,h),n={baseTag:fC(NS.BASE,i),linkTags:fC(NS.LINK,s),metaTags:fC(NS.META,l),noscriptTags:fC(NS.NOSCRIPT,c),scriptTags:fC(NS.SCRIPT,d),styleTags:fC(NS.STYLE,p)},r={},o={},Object.keys(n).forEach((function(e){var t=n[e],i=t.newTags,a=t.oldTags;i.length&&(r[e]=i),a.length&&(o[e]=n[e].oldTags)})),t&&t(),u(e,r,o)},uC=function(e){return Array.isArray(e)?e.join(""):e},dC=function(e,t){void 0!==e&&document.title!==e&&(document.title=uC(e)),pC(NS.TITLE,t)},pC=function(e,t){var n,r,o,i,a,s,l,c,u,d=document.getElementsByTagName(e)[0];if(d){for(r=(n=d.getAttribute(BS))?n.split(","):[],o=[].concat(r),i=Object.keys(t),a=0;a<i.length;a++)l=t[s=i[a]]||"",d.getAttribute(s)!==l&&d.setAttribute(s,l),-1===r.indexOf(s)&&r.push(s),-1!==(c=o.indexOf(s))&&o.splice(c,1);for(u=o.length-1;u>=0;u--)d.removeAttribute(o[u]);r.length===o.length?d.removeAttribute(BS):d.getAttribute(BS)!==i.join(",")&&d.setAttribute(BS,i.join(","))}},fC=function(e,t){var n=document.head||document.querySelector(NS.HEAD),r=n.querySelectorAll(e+"["+BS+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n,r=document.createElement(e);for(n in t)t.hasOwnProperty(n)&&(n===TS?r.innerHTML=t.innerHTML:n===PS?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(n,void 0===t[n]?"":t[n]));r.setAttribute(BS,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},hC=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}),"")},gC=function(e,t,n,r){var o=hC(n),i=uC(t);return o?"<"+e+" "+BS+'="true" '+o+">"+XS(i,r)+"</"+e+">":"<"+e+" "+BS+'="true">'+XS(i,r)+"</"+e+">"},mC=function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===TS||e===PS)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+XS(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===LS.indexOf(e);return t+"<"+e+" "+BS+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")},bC=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[RS[n]||n]=e[n],t}),n)},yC=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[MS[n]||n]=e[n],t}),n)},vC=function(e,t,n){var r,o=((r={key:t})[BS]=!0,r),i=bC(n,o);return[AK.createElement(NS.TITLE,i,t)]},wC=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[BS]=!0,r);return Object.keys(t).forEach((function(e){var n=RS[e]||e;n===TS||n===PS?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),AK.createElement(e,o)}))},xC=function(e,t,n){switch(e){case NS.TITLE:return{toComponent:function(){return vC(0,t.title,t.titleAttributes)},toString:function(){return gC(e,t.title,t.titleAttributes,n)}};case $S:case jS:return{toComponent:function(){return bC(t)},toString:function(){return hC(t)}};default:return{toComponent:function(){return wC(e,t)},toString:function(){return mC(e,t,n)}}}},SC=function(e){var t,n;return n=t=function(t){function n(){return HS(this,n),qS(this,t.apply(this,arguments))}return VS(n,t),n.prototype.shouldComponentUpdate=function(e){return!HK(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case NS.SCRIPT:case NS.NOSCRIPT:return{innerHTML:t};case NS.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 US({},r,((t={})[n.type]=[].concat(r[n.type]||[],[US({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case NS.TITLE:return US({},o,((t={})[r.type]=a,t.titleAttributes=US({},i),t));case NS.BODY:return US({},o,{bodyAttributes:US({},i)});case NS.HTML:return US({},o,{htmlAttributes:US({},i)})}return US({},o,((n={})[r.type]=US({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=US({},t);return Object.keys(e).forEach((function(t){var r;n=US({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return AK.Children.forEach(e,(function(e){var o,i,a,s;if(e&&e.props)switch(i=(o=e.props).children,a=GS(o,["children"]),s=yC(a),n.warnOnInvalidChildren(e,i),e.type){case NS.LINK:case NS.META:case NS.NOSCRIPT:case NS.SCRIPT:case NS.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=GS(t,["children"]),o=US({},r);return n&&(o=this.mapChildrenToProps(n,o)),AK.createElement(e,o)},WS(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(AK.Component),t.propTypes={base:BK.object,bodyAttributes:BK.object,children:BK.oneOfType([BK.arrayOf(BK.node),BK.node]),defaultTitle:BK.string,defer:BK.bool,encodeSpecialCharacters:BK.bool,htmlAttributes:BK.object,link:BK.arrayOf(BK.object),meta:BK.arrayOf(BK.object),noscript:BK.arrayOf(BK.object),onChangeClientState:BK.func,script:BK.arrayOf(BK.object),style:BK.arrayOf(BK.object),title:BK.string,titleAttributes:BK.object,titleTemplate:BK.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=kC({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n},CC=function(){return null},EC=zK(tC,lC,kC=function(e){var t=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.scriptTags,l=e.styleTags,c=e.title,u=void 0===c?"":c,d=e.titleAttributes;return{base:xC(NS.BASE,e.baseTag,n),bodyAttributes:xC($S,t,n),htmlAttributes:xC(jS,r,n),link:xC(NS.LINK,o,n),meta:xC(NS.META,i,n),noscript:xC(NS.NOSCRIPT,a,n),script:xC(NS.SCRIPT,s,n),style:xC(NS.STYLE,l,n),title:xC(NS.TITLE,{title:u,titleAttributes:d},n)}})(CC),(DC=SC(EC)).renderStatic=DC.rewind,OC={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 UK=(e,t)=>{const n=Zb.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:a,...s},l)=>{return Zb.createElement("svg",{ref:l,...OC,width:r,height:r,stroke:n,strokeWidth:i?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])=>Zb.createElement(e,t))),...(Array.isArray(a)?a:[a])||[]]);var c}));return n.displayName=`${e}`,n},VK=UK("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"}]]),GK=UK("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),qK=UK("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),XK=UK("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),KK=UK("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),YK=UK("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),QK=UK("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"}]]),JK=UK("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"}]]),ZK=UK("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"}]]),eY=UK("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),tY=UK("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"}]]),nY=UK("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),rY=UK("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"}]]),oY=UK("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),iY=UK("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"}]]),aY=UK("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"}]]),sY=UK("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"}]]),lY=UK("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"}]]),cY=UK("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"}]]),uY=UK("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"}]]),dY=UK("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"}]]),pY=UK("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"}]]),fY=UK("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"}]]),hY=UK("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),gY=UK("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"}]]),mY=UK("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"}]]);_C=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<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(GX){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),$C="-ms-",jC="-moz-",NC="-webkit-",PC="comm",IC="rule",TC="decl",FC="@import",AC="@keyframes",RC="@layer",MC=Math.abs,LC=String.fromCharCode,BC=Object.assign,zC=1,HC=1,WC=0,UC=0,VC=0,GC="",qC=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},XC=function(e,t,n){for(var r=0,o=0;r=o,o=Hi(),38===r&&12===o&&(t[n]=1),!Vi(o);)zi();return Ui(e,UC)},KC=function(e,t){var n=-1,r=44;do{switch(Vi(r)){case 0:38===r&&12===Hi()&&(t[n]=1),e[n]+=XC(UC-1,t,n);break;case 2:e[n]+=Xi(r);break;case 4:if(44===r){e[++n]=58===Hi()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=LC(r)}}while(r=zi());return e},YC=function(e,t){return qi(KC(Gi(e),t))},QC=new WeakMap,JC=function(e){var t,n,r,o,i,a,s,l,c;if("rule"===e.type&&e.parent&&!(e.length<1)){for(t=e.value,r=e.column===(n=e.parent).column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||QC.get(n))&&!r)for(QC.set(e,!0),i=YC(t,o=[]),a=n.props,s=0,l=0;s<i.length;s++)for(c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}},ZC=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},eE=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case TC:e.return=la(e.value,e.length);break;case AC:return ia([Bi(e,{value:Pi(e.value,"@","@"+NC)})],r);case IC: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 ia([Bi(e,{props:[Pi(t,/:(read-\w+)/,":"+jC+"$1")]})],r);case"::placeholder":return ia([Bi(e,{props:[Pi(t,/:(plac\w+)/,":"+NC+"input-$1")]}),Bi(e,{props:[Pi(t,/:(plac\w+)/,":"+jC+"$1")]}),Bi(e,{props:[Pi(t,/:(plac\w+)/,$C+"input-$1")]})],r)}return""}))}}],tE=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,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||eE,r={},i=[],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<n.length;t++)r[n[t]]=!0;i.push(e)})),l=[aa,(h=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&h(e)})],p=[JC,ZC].concat(n,l),f=Ri(p),c=function(e,t,n,r){var o,i="";for(o=0;o<f;o++)i+=p[o](e,t,n,r)||"";return i},u=function(e){return ia(ea(e),c)},a=function(e,t,n,r){s=n,u(e?e+"{"+t.styles+"}":t.styles),r&&(d.inserted[t.name]=!0)},(d={key:g,sheet:new _C({key:g,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:a}).sheet.hydrate(i),d},nE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rE=/[A-Z]|^ms/g,oE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iE=function(e){return 45===e.charCodeAt(1)},aE=function(e){return null!=e&&"boolean"!=typeof e},sE=sa((function(e){return iE(e)?e:e.replace(rE,"-$&").toLowerCase()})),lE=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(oE,(function(e,t,n){return uE={name:t,styles:n,next:uE},t}))}return 1===nE[e]||iE(e)||"number"!=typeof t||0===t?t:t+"px"},cE=/label:\s*([^\s;\n{]+)\s*(;|$)/g,dE=function(e,t,n){var r,o,i,a,s,l,c;if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];for(r=!0,o="",uE=void 0,null==(i=e[0])||void 0===i.raw?(r=!1,o+=ca(n,t,i)):o+=i[0],a=1;a<e.length;a++)o+=ca(n,t,e[a]),r&&(o+=i[a]);for(cE.lastIndex=0,s="";null!==(l=cE.exec(o));)s+="-"+l[1];return c=function(e){for(var t,n=0,r=0,o=e.length;o>=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:uE}},pE=function(e,t,n){var r=e.key+"-"+t.name;!1!==n||void 0!==e.registered[r]||(e.registered[r]=t.styles)},fE=function(e,t,n){var r,o;if(pE(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)}},hE=function(e){var t,n,r,o,i=tE(e);return i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0,t=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=dE(t,i.registered,void 0),fE(i,r,!1),i.key+"-"+r.name},n=function(){var e,t,n,r,o;for(e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=dE(t,i.registered),da(i,{name:r.name,styles:"@keyframes "+(o="animation-"+r.name)+"{"+r.styles+"}"}),o},r=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r=dE(t,i.registered),da(i,r)},o=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return pa(i.registered,t,gE(n))},{css:t,cx:o,injectGlobal:r,keyframes:n,hydrate:function(e){e.forEach((function(e){i.inserted[e]=!0}))},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:ua.bind(null,i.registered),merge:pa.bind(null,i.registered,t)}},gE=function e(t){var n,r,o,i,a="";for(n=0;n<t.length;n++)if(null!=(r=t[n])){switch(o=void 0,typeof r){case"boolean":break;case"object":if(Array.isArray(r))o=e(r);else for(i in o="",r)r[i]&&i&&(o&&(o+=" "),o+=i);break;default:o=r}o&&(a&&(a+=" "),a+=o)}return a},mE=hE({key:"css"}),bE=mE.cx,yE=mE.css,vE=mE.cache,wE=function(){function e(){_i(this,e),Ei(this,"_cacheList",[vE])}return ji(e,[{key:"add",value:function(e){return this.getCache(e.key)||(this._cacheList.push(e),e)}},{key:"delete",value:function(e){this._cacheList=this._cacheList.filter((function(t){return t.key!==e.key}))}},{key:"hasCache",value:function(e){return this._cacheList.some((function(t){return t.key===e.key}))}},{key:"getCache",value:function(e){return this._cacheList.find((function(t){return t.key===e}))}},{key:"getCacheList",value:function(){return this._cacheList}}]),e}(),xE="undefined"!=typeof document,kE=function(e,t){return"".concat(e,"-").concat(t)},SE=function(e,t,n,r){var o,i,a,s,l,c=r.hashPriority||"high";if(pE(e,t,n),o=".".concat(kE(e.key,t.name)),i="low"===c?":where(".concat(o,")"):o,void 0===e.inserted[t.name]){a="",s=t;do{l=e.insert(t===s?i:"",s,e.sheet,!0),xE||void 0===l||(a+=l),s=s.next}while(void 0!==s);if(!xE&&0!==a.length)return a}},CE=function(e){return"object"===Si(e)&&"styles"in e&&"name"in e&&"toString"in e},EE=function e(t){var n,r,o,i,a="";for(n=0;n<t.length;n++)if(null!==(r=t[n])){switch(o=void 0,Si(r)){case"boolean":break;case"object":if(Array.isArray(r))o=e(r);else for(i in o="",r)r[i]&&i&&(o&&(o+=" "),o+=i);break;default:o=r}o&&(a&&(a+=" "),a+=o)}return a},DE=function(e,t,n){var r=[],o=ua(e,r,n);return r.length<2?n:o+t(r)},OE=function(e,t){return function(){var n,r,o,i;for(n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i=dE(r,e.registered,void 0),SE(e,i,!1,t),kE(e.key,i.name)}},_E=function(e,t){return function(){var n,r,o,i;for(n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i=r.map((function(e){return CE(e)?t(e):e})),DE(e.registered,t,EE(i))}},$E=function(e,t){var n=OE(e,{hashPriority:t.hashPriority||"high",label:t.label});return{css:n,cx:_E(e,n)}},jE=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dE(t)},NE=function(e){return Zb.createContext(e)},PE={exports:{}},IE={},TE="function"==typeof Symbol&&Symbol.for,FE=TE?Symbol.for("react.element"):60103,AE=TE?Symbol.for("react.portal"):60106,RE=TE?Symbol.for("react.fragment"):60107,ME=TE?Symbol.for("react.strict_mode"):60108,LE=TE?Symbol.for("react.profiler"):60114,BE=TE?Symbol.for("react.provider"):60109,zE=TE?Symbol.for("react.context"):60110,HE=TE?Symbol.for("react.async_mode"):60111,WE=TE?Symbol.for("react.concurrent_mode"):60111,UE=TE?Symbol.for("react.forward_ref"):60112,VE=TE?Symbol.for("react.suspense"):60113,GE=TE?Symbol.for("react.suspense_list"):60120,qE=TE?Symbol.for("react.memo"):60115,XE=TE?Symbol.for("react.lazy"):60116,KE=TE?Symbol.for("react.block"):60121,YE=TE?Symbol.for("react.fundamental"):60117,QE=TE?Symbol.for("react.responder"):60118,JE=TE?Symbol.for("react.scope"):60119,IE.AsyncMode=HE,IE.ConcurrentMode=WE,IE.ContextConsumer=zE,IE.ContextProvider=BE,IE.Element=FE,IE.ForwardRef=UE,IE.Fragment=RE,IE.Lazy=XE,IE.Memo=qE,IE.Portal=AE,IE.Profiler=LE,IE.StrictMode=ME,IE.Suspense=VE,IE.isAsyncMode=function(e){return ga(e)||ha(e)===HE},IE.isConcurrentMode=ga,IE.isContextConsumer=function(e){return ha(e)===zE},IE.isContextProvider=function(e){return ha(e)===BE},IE.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===FE},IE.isForwardRef=function(e){return ha(e)===UE},IE.isFragment=function(e){return ha(e)===RE},IE.isLazy=function(e){return ha(e)===XE},IE.isMemo=function(e){return ha(e)===qE},IE.isPortal=function(e){return ha(e)===AE},IE.isProfiler=function(e){return ha(e)===LE},IE.isStrictMode=function(e){return ha(e)===ME},IE.isSuspense=function(e){return ha(e)===VE},IE.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===RE||e===WE||e===LE||e===ME||e===VE||e===GE||"object"==typeof e&&null!==e&&(e.$$typeof===XE||e.$$typeof===qE||e.$$typeof===BE||e.$$typeof===zE||e.$$typeof===UE||e.$$typeof===YE||e.$$typeof===QE||e.$$typeof===JE||e.$$typeof===KE)},IE.typeOf=ha,PE.exports=IE,eD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},(tD={})[(ZE=PE.exports).ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tD[ZE.Memo]=eD,nD=!!RK.useInsertionEffect&&RK.useInsertionEffect||Zb.useLayoutEffect,rD=Zb.createContext("undefined"!=typeof HTMLElement?tE({key:"css"}):null),oD=function(e){return Zb.forwardRef((function(t,n){var r=Zb.useContext(rD);return e(t,r,n)}))},iD=Zb.createContext({}),aD=function(e,t){return"function"==typeof t?t(e):fa({},e,t)},sD=qC((function(e){return qC((function(t){return aD(e,t)}))})),lD=function(e){var t=Zb.useContext(iD);return e.theme!==t&&(t=sD(t)(e.theme)),Zb.createElement(iD.Provider,{value:t},e.children)},cD=oD((function(e,t){var n=dE([e.styles],void 0,Zb.useContext(iD)),r=Zb.useRef();return nD((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),nD((function(){var e=r.current,o=e[0];e[1]?e[1]=!1:(void 0!==n.next&&fE(t,n.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",n,o,!1))}),[t,n.name]),null})),uD=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Zb.memo((function(t){var r=e();return ay.jsx(cD,{styles:dE(n,void 0,ba(ba({},t),{},{theme:r}))})}))}},dD=function(e){return function(t){var n=e(t);return function(e){return n(e).styles}}},pD={},$a.preMessage=function(){},$a.resetWarned=function(){pD={}},$a.noteOnce=function(e,t){_a(Oa,e,t)},fD=function(){function e(t){_i(this,e),Ei(this,"instanceId",void 0),Ei(this,"cache",new Map),this.instanceId=t}return ji(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),hD=["children"],gD="data-token-hash",mD="data-css-hash",bD="__cssinjs_instance__",yD=Zb.createContext({hashPriority:"low",cache:Na(),defaultCache:!0}),vD=function(e){var t=e.children,n=Di(e,hD),r=Zb.useContext(yD),o=Ea((function(){var e,t=Sa({},r);return Object.keys(n).forEach((function(e){void 0!==n[e]&&(t[e]=n[e])})),e=n.cache,t.cache=t.cache||Na(),t.defaultCache=!e&&r.defaultCache,t}),[r,n],(function(e,t){return!ja(e[0],t[0],!0)||!ja(e[1],t[1],!0)}));return Zb.createElement(yD.Provider,{value:o},t)};const bY=yD;wD="data-rc-order",xD="data-rc-priority",kD="rc-util-key",SD=new Map,CD=function(){function e(){_i(this,e),Ei(this,"cache",void 0),Ei(this,"keys",void 0),Ei(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ji(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,i={map:this.cache};return e.forEach((function(e){var t,n;i=i?null===(t=i)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(n=i)&&void 0!==n&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),null===(r=i)||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,i,a=this;this.has(t)||(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET&&(r=this.keys.reduce((function(e,t){var n=Wa(e,2)[1];return a.internalGet(t)[1]<n?[t,a.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),o=Wa(r,1),this.delete(o[0])),this.keys.push(t)),i=this.cache,t.forEach((function(e,r){if(r===t.length-1)i.set(e,{value:[n,a.cacheCallTimes++]});else{var o=i.get(e);o?o.map||(o.map=new Map):i.set(e,{map:new Map}),i=i.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r,o=e.get(t[0]);return 1===t.length?(o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0]):(r=this.deleteByPath(o.map,t.slice(1)),o.map&&0!==o.map.size||o.value||e.delete(t[0]),r)}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}(),Ei(CD,"MAX_CACHE_SIZE",20),Ei(CD,"MAX_CACHE_OFFSET",5),ED=0,DD=function(){function e(t){_i(this,e),Ei(this,"derivatives",void 0),Ei(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ED,ED+=1}return ji(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),OD=new CD,_D=new WeakMap,$D={},jD=new WeakMap,ND="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),PD="_bAmBoO_",ID=void 0,TD=Pa()?Zb.useLayoutEffect:Zb.useEffect,FD=function(e,t){var n=Zb.useRef(!0);TD((function(){return e(n.current)}),t),TD((function(){return n.current=!1,function(){n.current=!0}}),[])},AD=function(e,t){FD((function(t){if(!t)return e()}),t)},RD=Sa({},RK);const yY=(MD=RD.useInsertionEffect)?function(e,t,n){return MD((function(){return e(),t()}),n)}:function(e,t,n){Zb.useMemo(e,n),FD((function(){return t(!0)}),n)},vY=void 0!==Sa({},RK).useInsertionEffect?function(e){var t=[],n=!1;return Zb.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};LD={},BD="css",zD=new Map,HD=0,WD=function(e,t,n,r){var o=Sa(Sa({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},UD={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VD="comm",GD="rule",qD="decl",XD="@import",KD="@keyframes",YD="@layer",QD=Math.abs,JD=String.fromCharCode,ZD=1,eO=1,tO=0,nO=0,rO=0,oO="",iO="data-ant-cssinjs-cache-path",aO="_FILE_STYLE__",lO=!0,cO=Pa(),uO="_multi_value_",dO=function e(t,n,r){function o(t){var n,r=t.getName(y);c[r]||(n=Wa(e(t.style,f,{root:!1,parentSelectors:b}),1)[0],c[r]="@keyframes ".concat(t.getName(y)).concat(n))}var i,a,s,l,c,u,d,p,f=arguments.length>1&&void 0!==n?n:{},h=arguments.length>2&&void 0!==r?r:{root:!0,parentSelectors:[]},g=h.root,m=h.injectHash,b=h.parentSelectors,y=f.hashId,v=f.layer;return i=f.hashPriority,s=void 0===(a=f.transformers)?[]:a,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,a,s,u,d,p,h,v,w=n[t];if("object"!==Si(w)||!w||"animationName"===t&&w._keyframe||function(e){return"object"===Si(e)&&e&&("_skip_check_"in e||uO in e)}(w)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;UD[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(o(t),r=t.getName(y)),l+="".concat(n,":").concat(r,";")};v=null!==(h=null==w?void 0:w.value)&&void 0!==h?h:w,"object"===Si(w)&&null!=w&&w[uO]&&Array.isArray(v)?v.forEach((function(n){e(t,n)})):e(t,v)}else r=!1,a=t.trim(),s=!1,(g||m)&&y?a.startsWith("@")?r=!0:a=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]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(xa(n.slice(1))).join(" ")})).join(",")):e}(t,y,i):!g||y||"&"!==a&&""!==a||(a="",s=!0),d=(u=Wa(e(w,f,{root:s,injectHash:r,parentSelectors:[].concat(xa(b),[a])}),2))[0],p=u[1],c=Sa(Sa({},c),p),l+="".concat(a).concat(d)})))})),g?v&&function(){var e,t,n,r,o,i;return void 0===ID&&(e="@layer ".concat(ND," { .").concat(ND,' { content: "').concat(PD,'"!important; } }'),t=function(e){e.className=ND},ID=!!Pa()&&(Ba(e,ND),(o=document.createElement("div")).style.position="fixed",o.style.left="0",o.style.top="0",null==t||t(o),document.body.appendChild(o),i=null===(n=getComputedStyle(o).content)||void 0===n?void 0:n.includes(PD),null===(r=o.parentNode)||void 0===r||r.removeChild(o),La(ND),i)),ID}()&&(p=(d=v.split(","))[d.length-1].trim(),l="@layer ".concat(p," {").concat(l,"}"),d.length>1&&(l="@layer ".concat(v,"{%%%:%}").concat(l))):l="{".concat(l,"}"),[l,c]},pO=function(){function e(t,n){_i(this,e),Ei(this,"name",void 0),Ei(this,"style",void 0),Ei(this,"_keyframe",!0),this.name=t,this.style=n}return ji(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}(),ks(["borderTop","borderBottom"]),ks(["borderTop"]),ks(["borderBottom"]),ks(["borderLeft","borderRight"]),ks(["borderLeft"]),ks(["borderRight"]),fO=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],hO=function(e){return Zb.memo((function(t){var n,r=t.children,o=t.prefix,i=t.speedy,a=t.getStyleManager,s=t.container,l=t.nonce,c=t.insertionPoint,u=t.stylisPlugins,d=t.linters,p=Di(t,fO),f=Zb.useContext(e),h=null!=o?o:f.sheet.key,g=null!=s?s:f.sheet.container,m=null!=i?i:f.sheet.isSpeedy,b=Zb.useMemo((function(){var e,t=hE({speedy:null!=m&&m,key:h,container:g,nonce:l,insertionPoint:c,stylisPlugins:u}),n=null===(e=global)||void 0===e?void 0:e.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;return n&&(t.cache=n.add(t.cache)),t}),[h,m,g,l,c,u]);return Zb.useEffect((function(){null==a||a(b)}),[b]),n=ay.jsx(e.Provider,{value:b,children:r}),Boolean(Object.keys(p).length)||g?ay.jsx(vD,Cs(Cs({linters:d,container:g},p),{},{children:n})):n}))},gO=function(e){var t=e.token;return{buttonDefaultHover:(0,e.css)({backgroundColor:t.colorBgContainer,border:"1px solid ".concat(t.colorBorder),cursor:"pointer",":hover":{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},":active":{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive}})}},mO=function(e){return Object.fromEntries(Object.entries(e).map((function(e){var t=Wa(e,2);return[t[0],t[1].styles]})))},DX=bO={exports:{}},function(){function e(){var n,r,o,i,a,s=[];for(n=0;n<arguments.length;n++)if(r=arguments[n])if("string"==(o=typeof r)||"number"===o)s.push(r);else if(Array.isArray(r))r.length&&(i=e.apply(null,r))&&s.push(i);else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){s.push(r.toString());continue}for(a in r)t.call(r,a)&&r[a]&&s.push(a)}return s.join(" ")}var t={}.hasOwnProperty;DX.exports?(e.default=e,DX.exports=e):window.classNames=e}();const wY=t(yO=bO.exports);vO={exports:{}},wO={},xO=Symbol.for("react.element"),kO=Symbol.for("react.portal"),SO=Symbol.for("react.fragment"),CO=Symbol.for("react.strict_mode"),EO=Symbol.for("react.profiler"),DO=Symbol.for("react.provider"),OO=Symbol.for("react.context"),_O=Symbol.for("react.server_context"),$O=Symbol.for("react.forward_ref"),jO=Symbol.for("react.suspense"),NO=Symbol.for("react.suspense_list"),PO=Symbol.for("react.memo"),IO=Symbol.for("react.lazy"),TO=Symbol.for("react.offscreen"),FO=Symbol.for("react.module.reference"),wO.ContextConsumer=OO,wO.ContextProvider=DO,wO.Element=xO,wO.ForwardRef=$O,wO.Fragment=SO,wO.Lazy=IO,wO.Memo=PO,wO.Portal=kO,wO.Profiler=EO,wO.StrictMode=CO,wO.Suspense=jO,wO.SuspenseList=NO,wO.isAsyncMode=function(){return!1},wO.isConcurrentMode=function(){return!1},wO.isContextConsumer=function(e){return Es(e)===OO},wO.isContextProvider=function(e){return Es(e)===DO},wO.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xO},wO.isForwardRef=function(e){return Es(e)===$O},wO.isFragment=function(e){return Es(e)===SO},wO.isLazy=function(e){return Es(e)===IO},wO.isMemo=function(e){return Es(e)===PO},wO.isPortal=function(e){return Es(e)===kO},wO.isProfiler=function(e){return Es(e)===EO},wO.isStrictMode=function(e){return Es(e)===CO},wO.isSuspense=function(e){return Es(e)===jO},wO.isSuspenseList=function(e){return Es(e)===NO},wO.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===SO||e===EO||e===CO||e===jO||e===NO||e===TO||"object"==typeof e&&null!==e&&(e.$$typeof===IO||e.$$typeof===PO||e.$$typeof===DO||e.$$typeof===OO||e.$$typeof===$O||e.$$typeof===FO||void 0!==e.getModuleId)},wO.typeOf=Es,vO.exports=wO,AO=vO.exports,RO=function(){function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return"undefined"!=typeof Map?Map:function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){var n,r,o;for(void 0===t&&(t=null),n=0,r=this.__entries__;n<r.length;n++)e.call(t,(o=r[n])[1],o[0])},t}()}(),MO="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,LO="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),BO="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(LO):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},zO=["top","right","bottom","left","width","height","size","weight"],HO="undefined"!=typeof MutationObserver,WO=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){function n(){i&&(i=!1,e()),a&&o()}function r(){BO(n)}function o(){var e=Date.now();if(i){if(e-s<2)return;a=!0}else i=!0,a=!1,setTimeout(r,t);s=e}var i=!1,a=!1,s=0;return o}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){MO&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),HO?(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;zO.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}(),UO=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n<r.length;n++)o=r[n],Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});return e},VO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||LO},GO=Fs(0,0,0,0),qO="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof VO(e).SVGGraphicsElement}:function(e){return e instanceof VO(e).SVGElement&&"function"==typeof e.getBBox},XO=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Fs(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t=(e=this.target,MO?qO(e)?function(e){var t=e.getBBox();return Fs(0,0,t.width,t.height)}(e):function(e){var t,n,r,o,i,a,s,l,c=e.clientWidth,u=e.clientHeight;return c||u?(r=(n=function(e){var t,n,r,o={};for(t=0,n=["top","right","bottom","left"];t<n.length;t++)o[r=n[t]]=Is(e["padding-"+r]);return o}(t=VO(e).getComputedStyle(e))).left+n.right,o=n.top+n.bottom,i=Is(t.width),a=Is(t.height),"border-box"===t.boxSizing&&(Math.round(i+r)!==c&&(i-=Ts(t,"left","right")+r),Math.round(a+o)!==u&&(a-=Ts(t,"top","bottom")+o)),function(e){return e===VO(e).document.documentElement}(e)||(s=Math.round(i+r)-c,l=Math.round(a+o)-u,1!==Math.abs(s)&&(i-=s),1!==Math.abs(l)&&(a-=l)),Fs(n.left,n.top,i,a)):GO}(e):GO);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),KO=function(e,t){var n,r,o,i,a,s,l,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),UO(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);UO(this,{target:e,contentRect:c})},YO=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new RO,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof VO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new XO(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof VO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new KO(e.target,e.broadcastRect())})),this.callback_.call(e,t,e),this.clearActive())},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),QO="undefined"!=typeof WeakMap?new WeakMap:new RO,JO=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=WO.getInstance(),r=new YO(t,n,this),QO.set(this,r)},["observe","unobserve","disconnect"].forEach((function(e){JO.prototype[e]=function(){var t;return(t=QO.get(this))[e].apply(t,arguments)}})),ZO=void 0!==LO.ResizeObserver?LO.ResizeObserver:JO,e_=new Map,t_=new ZO((function(e){e.forEach((function(e){var t,n=e.target;null===(t=e_.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),n_=function(){function e(){return _i(this,e),t.apply(this,arguments)}Rs(e,Zb.Component);var t=zs(e);return ji(e,[{key:"render",value:function(){return this.props.children}}]),e}(),r_=Zb.createContext(null),o_=Zb.forwardRef(Hs),i_="rc-observer-key",(a_=Zb.forwardRef(Ws)).Collection=function(e){var t=e.children,n=e.onBatchResize,r=Zb.useRef(0),o=Zb.useRef([]),i=Zb.useContext(r_),a=Zb.useCallback((function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return Zb.createElement(r_.Provider,{value:a},t)},s_=function(e){return+setTimeout(e,16)},l_=function(e){return clearTimeout(e)},"undefined"!=typeof window&&"requestAnimationFrame"in window&&(s_=function(e){return window.requestAnimationFrame(e)},l_=function(e){return window.cancelAnimationFrame(e)}),c_=0,u_=new Map,(d_=function(e,t){var n;return n=c_+=1,function t(r){if(0===r)Vs(n),e();else{var o=s_((function(){t(r-1)}));u_.set(n,o)}}(arguments.length>1&&void 0!==t?t:1),n}).cancel=function(e){var t=u_.get(e);return Vs(t),l_(t)};const xY=Zb.createContext({});p_="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const kY=Zb.createContext({}),SY=()=>{const e=()=>{};return e.deprecated=Js,e},CY=Zb.createContext(void 0),EY={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},DY={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({},EY)},OY="${label} is not a valid ${type}",_Y={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:DY,TimePicker:EY,Calendar:DY,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:OY,method:OY,array:OY,object:OY,number:OY,date:OY,boolean:OY,integer:OY,float:OY,regexp:OY,email:OY,url:OY,hex:OY},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 $Y=Object.assign({},_Y.Modal),jY=[];const NY=()=>jY.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),_Y.Modal),PY=Zb.createContext(void 0),IY=(e,t)=>{const n=Zb.useContext(PY);return[Zb.useMemo((()=>{var r;const o=t||_Y[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),Zb.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?_Y.locale:e}),[n])]},TY=e=>{const{locale:t={},children:n}=e;Zb.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return jY.push(t),$Y=NY(),()=>{jY=jY.filter((e=>e!==t)),$Y=NY()}}$Y=Object.assign({},_Y.Modal)}(t&&t.Modal);return e}),[t]);const r=Zb.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return Zb.createElement(PY.Provider,{value:r},n)};f_={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"},h_="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),g_="[\\s|\\(]+(".concat(h_,")[,|\\s]+(").concat(h_,")[,|\\s]+(").concat(h_,")\\s*\\)?"),m_="[\\s|\\(]+(".concat(h_,")[,|\\s]+(").concat(h_,")[,|\\s]+(").concat(h_,")[,|\\s]+(").concat(h_,")\\s*\\)?"),b_={CSS_UNIT:new RegExp(h_),rgb:new RegExp("rgb"+g_),rgba:new RegExp("rgba"+m_),hsl:new RegExp("hsl"+g_),hsla:new RegExp("hsla"+m_),hsv:new RegExp("hsv"+g_),hsva:new RegExp("hsva"+m_),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})$/},y_=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=dl(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=nl(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=sl(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=sl(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=il(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=il(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),ll(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 i,a=[ol(Math.round(e).toString(16)),ol(Math.round(t).toString(16)),ol(Math.round(n).toString(16)),ol((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.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*el(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*el(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="#"+ll(this.r,this.g,this.b,!1),t=0,n=Object.entries(f_);t<n.length;t++)if(e===(r=n[t])[1])return r[0];return!1},e.prototype.toString=function(e){var t,n=Boolean(e);return e=null!=e?e:this.format,t=!1,n||!(this.a<1&&this.a>=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=tl(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=tl(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=tl(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=tl(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,i;return void 0===n&&(n=50),r=this.toRgb(),o=new e(t).toRgb(),new e({r:(o.r-r.r)*(i=n/100)+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){var r,o,i;for(void 0===t&&(t=6),void 0===n&&(n=30),i=[this],(r=this.toHsl()).h=(r.h-((o=360/n)*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},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,i,a,s;for(void 0===t&&(t=6),r=(n=this.toHsv()).h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},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,i=[this],a=360/t;for(n=1;n<t;n++)i.push(new e({h:(o+n*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),v_=2,w_=.16,x_=.05,k_=.05,S_=.15,C_=5,E_=4,D_=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}],O_={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},__={},$_={},Object.keys(O_).forEach((function(e){__[e]=yl(O_[e]),__[e].primary=__[e][5],$_[e]=yl(O_[e],{theme:"dark",backgroundColor:"#141414"}),$_[e].primary=$_[e][5]})),j_=__.blue;const FY=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},AY={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"},RY=Object.assign(Object.assign({},AY),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",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}),MY=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},LY=(e,t)=>new y_(e).setAlpha(t).toRgbString(),BY=(e,t)=>new y_(e).darken(t).toHexString(),zY=e=>{const t=yl(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]}},HY=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:LY(r,.88),colorTextSecondary:LY(r,.65),colorTextTertiary:LY(r,.45),colorTextQuaternary:LY(r,.25),colorFill:LY(r,.15),colorFillSecondary:LY(r,.06),colorFillTertiary:LY(r,.04),colorFillQuaternary:LY(r,.02),colorBgLayout:BY(n,4),colorBgContainer:BY(n,0),colorBgElevated:BY(n,0),colorBgSpotlight:LY(r,.85),colorBgBlur:"transparent",colorBorder:BY(n,15),colorBorderSecondary:BY(n,6)}},WY=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]}},UY=Ua(wl),VY={token:RY,override:{override:RY},hashed:!0},GY=AK.createContext(VY),qY="anticon",XY=Zb.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:qY}),KY=`-ant-${Date.now()}-${Math.random()}`,YY=Zb.createContext(!1),QY=e=>{let{children:t,disabled:n}=e;const r=Zb.useContext(YY);return Zb.createElement(YY.Provider,{value:null!=n?n:r},t)},JY=YY,ZY=Zb.createContext(void 0),eQ=e=>{let{children:t,size:n}=e;const r=Zb.useContext(ZY);return Zb.createElement(ZY.Provider,{value:n||r},t)},tQ=ZY,nQ=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],rQ="5.10.1";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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o},P_=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const oQ=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=P_(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Sl(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=P_(n,["theme"]);let i=o;r&&(i=oQ(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a},iQ=(e,t,n,r,o)=>{const i=e/2,a=i,s=1*n/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,f=2*i-s,h=l,g=2*i-0,m=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=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(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${h} A ${n} ${n} 0 0 0 ${g} ${m} 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"}}},aQ={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sQ=function(e,t){return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:arguments.length>1&&void 0!==t&&t?"inherit":e.fontFamily}},lQ=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"}}}),cQ=(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"}}}}},uQ=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),dQ=e=>({"&:focus-visible":Object.assign({},uQ(e))}),pQ="undefined"!=typeof CSSINJS_STATISTIC;let fQ=!0;const hQ={},gQ=(e,t)=>{const[n,r]=Cl();return xs({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"}})}]))},mQ=(e,t,n,r)=>{const o=Nl(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}};I_=["children"],T_=Zb.createContext({}),F_=function(){function e(){return _i(this,e),t.apply(this,arguments)}Rs(e,Zb.Component);var t=zs(e);return ji(e,[{key:"render",value:function(){return this.props.children}}]),e}(),A_="none",R_="appear",M_="enter",L_="leave",B_="none",z_="prepare",H_="start",W_="active",U_="end",V_="prepared",OX=Pa(),_X="undefined"!=typeof window?window:{},$X={animationend:Tl("Animation","AnimationEnd"),transitionend:Tl("Transition","TransitionEnd")},OX&&("AnimationEvent"in _X||delete $X.animationend.animation,"TransitionEvent"in _X||delete $X.transitionend.transition),G_=$X,q_={},Pa()&&(X_=document.createElement("div"),q_=X_.style),K_={},Y_=Fl("animationend"),Q_=Fl("transitionend"),J_=!(!Y_||!Q_),Z_=Y_||"animationend",e$=Q_||"transitionend",t$=Pa()?Zb.useLayoutEffect:Zb.useEffect,n$=[z_,H_,W_,U_],r$=[z_,V_];const bQ=(PX=jX=J_,"object"===Si(jX)&&(PX=jX.transitionSupport),(NX=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.visible,c=void 0===l||l,u=e.removeOnLeave,d=void 0===u||u,p=e.forceRender,f=e.children,h=e.motionName,g=e.leavedClassName,m=e.eventProps,b=function(e,t){return!(!e.motionName||!PX||!1===t)}(e,Zb.useContext(T_).motion),y=Zb.useRef(),v=Zb.useRef(),w=function(e,t,n,r){function o(){return n()}function i(){F(A_,!0),M(null,!0)}function a(e){var t,n,r=o();e&&!e.deadline&&e.target!==r||(t=z.current,T===R_&&t?n=null==D?void 0:D(r,e):T===M_&&t?n=null==O?void 0:O(r,e):T===L_&&t&&(n=null==_?void 0:_(r,e)),T!==A_&&t&&!1!==n&&i())}var s,l,c=r.motionEnter,u=void 0===c||c,d=r.motionAppear,p=void 0===d||d,f=r.motionLeave,h=void 0===f||f,g=r.motionDeadline,m=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,v=r.onLeavePrepare,w=r.onAppearStart,x=r.onEnterStart,k=r.onLeaveStart,S=r.onAppearActive,C=r.onEnterActive,E=r.onLeaveActive,D=r.onAppearEnd,O=r.onEnterEnd,_=r.onLeaveEnd,$=r.onVisibleChanged,j=Wa(Dl(),2),N=j[0],P=j[1],I=Wa(Dl(A_),2),T=I[0],F=I[1],A=Wa(Dl(null),2),R=A[0],M=A[1],L=Zb.useRef(!1),B=Zb.useRef(null),z=Zb.useRef(!1),H=Wa(function(e){function t(e){e&&(e.removeEventListener(e$,n),e.removeEventListener(Z_,n))}var n,r=Zb.useRef(),o=Zb.useRef(e);return o.current=e,n=Zb.useCallback((function(e){o.current(e)}),[]),Zb.useEffect((function(){return function(){t(r.current)}}),[]),[function(e){r.current&&r.current!==e&&t(r.current),e&&e!==r.current&&(e.addEventListener(e$,n),e.addEventListener(Z_,n),r.current=e)},t]}(a),1)[0],W=function(e){var t,n,r;switch(e){case R_:return Ei(t={},z_,b),Ei(t,H_,w),Ei(t,W_,S),t;case M_:return Ei(n={},z_,y),Ei(n,H_,x),Ei(n,W_,C),n;case L_:return Ei(r={},z_,v),Ei(r,H_,k),Ei(r,W_,E),r;default:return{}}},U=Zb.useMemo((function(){return W(T)}),[T]),V=function(e,t,n){var r=Wa(Dl(B_),2),o=r[0],i=r[1],a=function(){function e(){d_.cancel(t.current)}var t=Zb.useRef(null);return Zb.useEffect((function(){return function(){e()}}),[]),[function n(r,o){var i,a=arguments.length>1&&void 0!==o?o:2;e(),i=d_((function(){a<=1?r({isCanceled:function(){return i!==t.current}}):n(r,a-1)})),t.current=i},e]}(),s=Wa(a,2),l=s[0],c=s[1],u=t?r$:n$;return t$((function(){var e,t,r;o!==B_&&o!==U_&&(e=u.indexOf(o),t=u[e+1],!1===(r=n(o))?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})))}),[e,o]),Zb.useEffect((function(){return function(){c()}}),[]),[function(){i(z_,!0)},o]}(T,!e,(function(e){var t,n;return e===z_?!!(t=U[z_])&&t(o()):(X in U&&M((null===(n=U[X])||void 0===n?void 0:n.call(U,o(),null))||null),X===W_&&(H(o()),g>0&&(clearTimeout(B.current),B.current=setTimeout((function(){a({deadline:!0})}),g))),X===V_&&i(),!0)})),G=Wa(V,2),q=G[0],X=G[1],K=Rl(X);return z.current=K,t$((function(){var n,r,o;P(t),n=L.current,L.current=!0,!n&&t&&p&&(r=R_),n&&t&&u&&(r=M_),(n&&!t&&h||!n&&m&&!t&&h)&&(r=L_),o=W(r),r&&(e||o[z_])?(F(r),q()):F(A_)}),[t]),Zb.useEffect((function(){(T===R_&&!p||T===M_&&!u||T===L_&&!h)&&F(A_)}),[p,u,h]),Zb.useEffect((function(){return function(){L.current=!1,clearTimeout(B.current)}}),[]),s=Zb.useRef(!1),Zb.useEffect((function(){N&&(s.current=!0),void 0!==N&&T===A_&&((s.current||N)&&(null==$||$(N)),s.current=!0)}),[N,T]),l=R,U[z_]&&X===H_&&(l=Sa({transition:"none"},l)),[T,X,l,null!=N?N:t]}(b,c,(function(){try{return y.current instanceof HTMLElement?y.current:Ps(v.current)}catch(GX){return null}}),e),x=Wa(w,4),k=x[0],S=x[1],C=x[2],E=x[3],D=Zb.useRef(E);return E&&(D.current=!0),n=Zb.useCallback((function(e){y.current=e,Os(t,e)}),[t]),o=Sa(Sa({},m),{},{visible:c}),f?k===A_?r=E?f(Sa({},o),n):!d&&D.current&&g?f(Sa(Sa({},o),{},{className:g}),n):p||!d&&!g?f(Sa(Sa({},o),{},{style:{display:"none"}}),n):null:(S===z_?a="prepare":Rl(S)?a="active":S===H_&&(a="start"),s=Al(h,"".concat(k,"-").concat(a)),r=f(Sa(Sa({},o),{},{className:wY(Al(h,k),(i={},Ei(i,s,s&&a),Ei(i,h,"string"==typeof h),i)),style:C}),n)):r=null,Zb.isValidElement(r)&&js(r)&&(r.ref||(r=Zb.cloneElement(r,{ref:n}))),Zb.createElement(F_,{ref:v},r)}))).displayName="CSSMotion",NX);o$="add",i$="keep",a$="remove",s$="removed",l$=["component","children","onVisibleChanged","onAllRemoved"],c$=["status"],u$=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const yQ=function(e,t){var n=arguments.length>1&&void 0!==t?t:bQ,r=function(){function e(){var n,r,o,i;for(_i(this,e),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Ei(Bs(n=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),Ei(Bs(n),"removeKey",(function(e){var t=n.state.keyEntities.map((function(t){return t.key!==e?t:Sa(Sa({},t),{},{status:s$})}));return n.setState({keyEntities:t}),t.filter((function(e){return e.status!==s$})).length})),n}Rs(e,Zb.Component);var t=zs(e);return ji(e,[{key:"render",value:function(){var e=this,t=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,s=r.onAllRemoved,l=Di(r,l$),c=o||Zb.Fragment,u={};return u$.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,Zb.createElement(c,l,t.map((function(t,r){var o=t.status,l=Di(t,c$);return Zb.createElement(n,fa({},u,{key:l.key,visible:o===o$||o===i$,eventProps:l,onVisibleChanged:function(t){null==a||a(t,{key:l.key}),t||0===e.removeKey(l.key)&&s&&s()}}),(function(e,t){return i(Sa(Sa({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.keyEntities,r=Ll(e.keys),o=function(e,t){var n,r=arguments.length>1&&void 0!==t?t:[],o=[],i=0,a=r.length,s=Ll(arguments.length>0&&void 0!==e?e:[]),l=Ll(r);return s.forEach((function(e){var t,n,r=!1;for(t=i;t<a;t+=1)if((n=l[t]).key===e.key){i<t&&(o=o.concat(l.slice(i,t).map((function(e){return Sa(Sa({},e),{},{status:o$})}))),i=t),o.push(Sa(Sa({},n),{},{status:i$})),i+=1,r=!0;break}r||o.push(Sa(Sa({},e),{},{status:a$}))})),i<a&&(o=o.concat(l.slice(i).map((function(e){return Sa(Sa({},e),{},{status:o$})})))),n={},o.forEach((function(e){var t=e.key;n[t]=(n[t]||0)+1})),Object.keys(n).filter((function(e){return n[e]>1})).forEach((function(e){(o=o.filter((function(t){return t.key!==e||t.status!==a$}))).forEach((function(t){t.key===e&&(t.status=i$)}))})),o}(n,r);return{keyEntities:o.filter((function(e){var t=n.find((function(t){return e.key===t.key}));return!t||t.status!==s$||e.status!==a$}))}}}]),e}();return Ei(r,"defaultProps",{component:"div"}),r}(J_),vQ=()=>null;d$=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const wQ=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let xQ,kQ,SQ;const CQ=()=>({getPrefixCls:(e,t)=>t||(e?`${zl()}-${e}`:zl()),getIconPrefixCls:Hl,getRootPrefixCls:()=>xQ||zl(),getTheme:()=>SQ}),EQ=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:f,popupOverflow:h,legacyLocale:g,parentContext:m,iconPrefixCls:b,theme:y,componentDisabled:v,segmented:w,statistic:x,spin:k,calendar:S,carousel:C,cascader:E,collapse:D,typography:O,checkbox:_,descriptions:$,divider:j,drawer:N,skeleton:P,steps:I,image:T,layout:F,list:A,mentions:R,modal:M,progress:L,result:B,slider:z,breadcrumb:H,menu:W,pagination:U,input:V,empty:G,badge:q,radio:X,rate:K,switch:Y,transfer:Q,avatar:J,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue,flex:de,wave:pe,warning:fe}=e,he=Zb.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||m.getPrefixCls("");return t?`${o}-${t}`:o}),[m.getPrefixCls,e.prefixCls]),ge=b||m.iconPrefixCls||qY,me=n||m.csp;gQ(ge,me);const be=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:VY;return Ea((()=>{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)=>!ja(e,t[n],!0)))))}(y,m.theme),ye={csp:me,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=f?f:p,popupOverflow:h,getPrefixCls:he,iconPrefixCls:ge,theme:be,segmented:w,statistic:x,spin:k,calendar:S,carousel:C,cascader:E,collapse:D,typography:O,checkbox:_,descriptions:$,divider:j,drawer:N,skeleton:P,steps:I,image:T,input:V,layout:F,list:A,mentions:R,modal:M,progress:L,result:B,slider:z,breadcrumb:H,menu:W,pagination:U,empty:G,badge:q,radio:X,rate:K,switch:Y,transfer:Q,avatar:J,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue,flex:de,wave:pe,warning:fe},ve=Object.assign({},m);Object.keys(ye).forEach((e=>{void 0!==ye[e]&&(ve[e]=ye[e])})),wQ.forEach((t=>{const n=e[t];n&&(ve[t]=n)}));const we=Ea((()=>ve),ve,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),xe=Zb.useMemo((()=>({prefixCls:ge,csp:me})),[ge,me]);let ke=Zb.createElement(Zb.Fragment,null,Zb.createElement(vQ,{dropdownMatchSelectWidth:p}),t);const Se=Zb.useMemo((()=>{var e,t,n,r;return Qs((null===(e=_Y.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=we.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=we.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[we,null==a?void 0:a.validateMessages]);Object.keys(Se).length>0&&(ke=Zb.createElement(CY.Provider,{value:Se},ke)),s&&(ke=Zb.createElement(TY,{locale:s,_ANT_MARK__:"internalMark"},ke)),(ge||me)&&(ke=Zb.createElement(xY.Provider,{value:xe},ke)),l&&(ke=Zb.createElement(eQ,{size:l},ke)),ke=Zb.createElement(Bl,null,ke);const Ce=Zb.useMemo((()=>{const e=be||{},{algorithm:t,token:n,components:r}=e,o=d$(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?Ua(t):UY,a={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Ua(r.algorithm)),delete r.algorithm),a[t]=r}));const s=Object.assign(Object.assign({},RY),n);return Object.assign(Object.assign({},o),{theme:i,token:s,components:a,override:Object.assign({override:s},a)})}),[be]);return y&&(ke=Zb.createElement(GY.Provider,{value:Ce},ke)),we.warning&&(ke=Zb.createElement(kY.Provider,{value:we.warning},ke)),void 0!==v&&(ke=Zb.createElement(QY,{disabled:v},ke)),Zb.createElement(XY.Provider,{value:we},ke)},DQ=e=>{const t=Zb.useContext(XY),n=Zb.useContext(PY);return Zb.createElement(EQ,Object.assign({parentContext:t,legacyLocale:n},e))};DQ.ConfigContext=XY,DQ.SizeContext=tQ,DQ.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(xQ=t),void 0!==n&&(kQ=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 y_(e),i=yl(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new y_(t.primaryColor),i=yl(e.toRgbString());i.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 a=new y_(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(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);Pa()&&Ba(n,`${KY}-dynamic-theme`)}(zl(),r):SQ=r)},DQ.useConfig=function(){return{componentDisabled:Zb.useContext(JY),componentSize:Zb.useContext(tQ)}},Object.defineProperty(DQ,"SizeContext",{get:()=>tQ});const OQ={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"};p$=function(e){var t=Zb.useContext(xY),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)),Zb.useEffect((function(){var t=Ul(e.current);Ba(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},f$=["icon","className","onClick","style","primaryColor","secondaryColor"],h$={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},(g$=function(e){var t,n,r,o=e.icon,i=e.className,a=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=Di(e,f$),d=Zb.useRef(),p=h$;return l&&(p={primaryColor:l,secondaryColor:c||Xl(l)}),p$(d),n=Vl(o),r="icon should be icon definiton, but got ".concat(o),$a(n,"[@ant-design/icons] ".concat(r)),Vl(o)?((t=o)&&"function"==typeof t.icon&&(t=Sa(Sa({},t),{},{icon:t.icon(p.primaryColor,p.secondaryColor)})),ql(t.icon,"svg-".concat(t.name),Sa(Sa({className:i,onClick:a,style:s,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))):null}).displayName="IconReact",g$.getTwoToneColors=function(){return Sa({},h$)},g$.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;h$.primaryColor=t,h$.secondaryColor=n||Xl(t),h$.calculated=!!n};const _Q=g$;m$=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"],Yl(j_.primary),(b$=Zb.forwardRef((function(e,t){var n,r,o,i,a,s=e.className,l=e.icon,c=e.spin,u=e.rotate,d=e.tabIndex,p=e.onClick,f=e.twoToneColor,h=Di(e,m$),g=Zb.useContext(xY),m=g.prefixCls,b=void 0===m?"anticon":m,y=wY(g.rootClassName,b,(Ei(n={},"".concat(b,"-").concat(l.name),!!l.name),Ei(n,"".concat(b,"-spin"),!!c||"loading"===l.name),n),s),v=d;return void 0===v&&p&&(v=-1),r=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,i=(o=Wa(Kl(f),2))[0],a=o[1],Zb.createElement("span",fa({role:"img","aria-label":l.name},h,{ref:t,tabIndex:v,onClick:p,className:y}),Zb.createElement(_Q,{icon:l,primaryColor:i,secondaryColor:a,style:r}))}))).displayName="AntdIcon",b$.getTwoToneColor=function(){var e=_Q.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},b$.setTwoToneColor=Yl;const $Q=b$,jQ=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:OQ}))})),NQ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},PQ=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:NQ}))})),IQ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},TQ=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:IQ}))})),FQ={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"},AQ=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:FQ}))})),RQ={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"},MQ=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:RQ}))}));y$="".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]+/),v$="aria-",w$="data-";const{isValidElement:LQ}=RK,BQ=e=>"object"==typeof e&&null!=e&&1===e.nodeType,zQ=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,HQ=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return zQ(n.overflowY,t)||zQ(n.overflowX,t)||(e=>{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.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},WQ=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,UQ=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},VQ=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!BQ(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;BQ(h)&&d(h);){if(h=UQ(h),h===p){f.push(h);break}null!=h&&h===document.body&&HQ(h)&&!HQ(document.documentElement)||null!=h&&HQ(h,u)&&f.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:v,width:w,top:x,right:k,bottom:S,left:C}=e.getBoundingClientRect(),{top:E,right:D,bottom:O,left:_}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let $="start"===s||"nearest"===s?x-E:"end"===s?S+O:x+v/2-E+O,j="center"===l?C+w/2-_+D:"end"===l?k+D:C-_;const N=[];for(let P=0;P<f.length;P++){const e=f[P],{height:t,width:n,top:r,right:o,bottom:i,left:c}=e.getBoundingClientRect();if("if-needed"===a&&x>=0&&C>=0&&S<=m&&k<=g&&x>=r&&S<=i&&C>=c&&k<=o)return N;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),D=parseInt(u.borderBottomWidth,10);let O=0,_=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-D:0,F="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,A="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)O="start"===s?$:"end"===s?$-m:"nearest"===s?WQ(y,y+m,m,h,D,y+$,y+$+v,v):$-m/2,_="start"===l?j:"center"===l?j-g/2:"end"===l?j-g:WQ(b,b+g,g,d,E,b+j,b+j+w,w),O=Math.max(0,O+y),_=Math.max(0,_+b);else{O="start"===s?$-r-h:"end"===s?$-i+D+T:"nearest"===s?WQ(r,i,t,h,D+T,$,$+v,v):$-(r+t/2)+T/2,_="start"===l?j-c-d:"center"===l?j-(c+n/2)+I/2:"end"===l?j-o+E+I:WQ(c,o,n,d,E+I,j,j+w,w);const{scrollLeft:a,scrollTop:u}=e;O=0===A?0:Math.max(0,Math.min(u+O/A,e.scrollHeight-t/A+T)),_=0===F?0:Math.max(0,Math.min(a+_/F,e.scrollWidth-n/F+I)),$+=u-O,j+=a-_}N.push({el:e,top:O,left:_})}return N},GQ=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};x$={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>=x$.F1&&t<=x$.F12)return!1;switch(t){case x$.ALT:case x$.CAPS_LOCK:case x$.CONTEXT_MENU:case x$.CTRL:case x$.DOWN:case x$.END:case x$.ESC:case x$.HOME:case x$.INSERT:case x$.LEFT:case x$.MAC_FF_META:case x$.META:case x$.NUMLOCK:case x$.NUM_CENTER:case x$.PAGE_DOWN:case x$.PAGE_UP:case x$.PAUSE:case x$.PRINT_SCREEN:case x$.RIGHT:case x$.SHIFT:case x$.UP:case x$.WIN_KEY:case x$.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=x$.ZERO&&e<=x$.NINE)return!0;if(e>=x$.NUM_ZERO&&e<=x$.NUM_MULTIPLY)return!0;if(e>=x$.A&&e<=x$.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case x$.SPACE:case x$.QUESTION_MARK:case x$.NUM_PLUS:case x$.NUM_MINUS:case x$.NUM_PERIOD:case x$.NUM_DIVISION:case x$.SEMICOLON:case x$.DASH:case x$.EQUALS:case x$.COMMA:case x$.PERIOD:case x$.SLASH:case x$.APOSTROPHE:case x$.SINGLE_QUOTE:case x$.OPEN_SQUARE_BRACKET:case x$.BACKSLASH:case x$.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},k$=Zb.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.style,i=e.className,a=e.duration,s=void 0===a?4.5:a,l=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=void 0===d?"x":d,f=e.props,h=e.onClick,g=e.onNoticeClose,m=e.times,b=e.hovering,y=Wa(Zb.useState(!1),2),v=y[1],w=b||y[0],x=function(){g(l)};return Zb.useEffect((function(){if(!w&&s>0){var e=setTimeout((function(){x()}),1e3*s);return function(){clearTimeout(e)}}}),[s,w,m]),n="".concat(r,"-notice"),Zb.createElement("div",fa({},f,{ref:t,className:wY(n,i,Ei({},"".concat(n,"-closable"),u)),style:o,onMouseEnter:function(e){var t;v(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;v(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:h}),Zb.createElement("div",{className:"".concat(n,"-content")},c),u&&Zb.createElement("a",{tabIndex:0,className:"".concat(n,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==x$.ENTER||x()},onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}},p))})),S$=AK.createContext({}),C$=function(e){return AK.createElement(S$.Provider,{value:{classNames:e.classNames}},e.children)},E$=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===Si(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,o]},D$=function(e){var t,n=e.configList,r=e.placement,o=e.prefixCls,i=e.className,a=e.style,s=e.motion,l=e.onAllNoticeRemoved,c=e.onNoticeClose,u=e.stack,d=Zb.useContext(S$).classNames,p=Zb.useRef({}),f=Wa(Zb.useState(null),2),h=f[0],g=f[1],m=Wa(Zb.useState([]),2),b=m[0],y=m[1],v=n.map((function(e){return{config:e,key:e.key}})),w=Wa(E$(u),2),x=w[0],k=w[1],S=k.offset,C=k.gap,E=x&&(b.length>0||v.length<=k.threshold),D="function"==typeof s?s(r):s;return Zb.useEffect((function(){x&&b.length>1&&y((function(e){return e.filter((function(e){return v.some((function(t){return e===t.key}))}))}))}),[b,v,x]),Zb.useEffect((function(){var e,t;x&&p.current[null===(e=v[v.length-1])||void 0===e?void 0:e.key]&&g(p.current[null===(t=v[v.length-1])||void 0===t?void 0:t.key])}),[v,x]),AK.createElement(yQ,fa({key:r,className:wY(o,"".concat(o,"-").concat(r),null==d?void 0:d.list,i,(t={},Ei(t,"".concat(o,"-stack"),!!x),Ei(t,"".concat(o,"-stack-expanded"),E),t)),style:a,keys:v,motionAppear:!0},D,{onAllRemoved:function(){l(r)}}),(function(e,t){var n,i,a,s,l,u,f,g,m,w,k=e.config,D=e.className,O=e.style,_=e.index,$=k.key,j=k.times,N=k.className,P=k.style,I=v.findIndex((function(e){return e.key===$})),T={};if(x)if(i="top"===r||"bottom"===r?"-50%":"0",(n=v.length-1-(I>-1?I:_-1))>0){for(T.height=E?null===(a=p.current[$])||void 0===a?void 0:a.offsetHeight:null==h?void 0:h.offsetHeight,u=0,f=0;f<n;f++)u+=(null===(g=p.current[v[v.length-1-f].key])||void 0===g?void 0:g.offsetHeight)+C;m=(E?u:n*S)*(r.startsWith("top")?1:-1),w=!E&&null!=h&&h.offsetWidth&&null!==(s=p.current[$])&&void 0!==s&&s.offsetWidth?((null==h?void 0:h.offsetWidth)-2*S*(n<3?n:3))/(null===(l=p.current[$])||void 0===l?void 0:l.offsetWidth):1,T.transform="translate3d(".concat(i,", ").concat(m,"px, 0) scaleX(").concat(w,")")}else T.transform="translate3d(".concat(i,", 0, 0)");return AK.createElement("div",{ref:t,className:wY("".concat(o,"-notice-wrapper"),D),style:Sa(Sa(Sa({},O),T),P),onMouseEnter:function(){return y((function(e){return e.includes($)?e:[].concat(xa(e),[$])}))},onMouseLeave:function(){return y((function(e){return e.filter((function(e){return e!==$}))}))}},AK.createElement(k$,fa({},k,{ref:function(e){I>-1?p.current[$]=e:delete p.current[$]},prefixCls:o,className:wY(N,null==d?void 0:d.notice),times:j,key:$,eventKey:$,onNoticeClose:c,hovering:x&&b.length>0})))}))},O$=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.prefixCls,c=void 0===l?"rc-notification":l,u=e.container,d=e.motion,p=e.maxCount,f=e.className,h=e.style,g=e.onAllRemoved,m=e.stack,b=e.renderNotifications,y=Wa(Zb.useState([]),2),v=y[0],w=y[1],x=function(e){var t,n=v.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),w((function(t){return t.filter((function(t){return t.key!==e}))}))};return Zb.useImperativeHandle(t,(function(){return{open:function(e){w((function(t){var n,r=xa(t),o=r.findIndex((function(t){return t.key===e.key})),i=Sa({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),p>0&&r.length>p&&(r=r.slice(-p)),r}))},close:function(e){x(e)},destroy:function(){w([])}}})),n=Wa(Zb.useState({}),2),r=n[0],o=n[1],Zb.useEffect((function(){var e={};v.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)}),[v]),i=function(e){o((function(t){var n=Sa({},t);return(n[e]||[]).length||delete n[e],n}))},a=Zb.useRef(!1),Zb.useEffect((function(){Object.keys(r).length>0?a.current=!0:a.current&&(null==g||g(),a.current=!1)}),[r]),u?(s=Object.keys(r),fS.createPortal(Zb.createElement(Zb.Fragment,null,s.map((function(e){var t=Zb.createElement(D$,{key:e,configList:r[e],placement:e,prefixCls:c,className:null==f?void 0:f(e),style:null==h?void 0:h(e),motion:d,onNoticeClose:x,onAllNoticeRemoved:i,stack:m});return b?b(t,{prefixCls:c,key:e}):t}))),u)):null})),_$=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],$$=function(){return document.body},j$=0;const qQ={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"},XQ=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:qQ}))})),KQ=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,y=`${t}-notice`,v=new pO("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),w=new pO("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:f,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},sQ(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,animationDuration:d,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:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},YQ=Nl("Message",(e=>{const t=$l(e,{height:150});return[KQ(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const QQ={info:Zb.createElement(MQ,null),success:Zb.createElement(jQ,null),error:Zb.createElement(PQ,null),warning:Zb.createElement(AQ,null),loading:Zb.createElement(XQ,null)},JQ=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return Zb.createElement("div",{className:wY(`${t}-custom-content`,`${t}-${n}`)},r||QQ[n],Zb.createElement("span",null,o))};P$=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const ZQ=3,eJ=e=>{let{children:t,prefixCls:n}=e;const[,r]=YQ(n);return Zb.createElement(C$,{classNames:{list:r,notice:r}},t)},tJ=(e,t)=>{let{prefixCls:n,key:r}=t;return Zb.createElement(eJ,{prefixCls:n,key:r},e)},nJ=Zb.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=ZQ,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:p}=Zb.useContext(XY),f=r||u("message"),h=Zb.createElement("span",{className:`${f}-close-x`},Zb.createElement(TQ,{className:`${f}-close-icon`})),[g,m]=tc({prefixCls:f,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>wY({[`${f}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(f,l),closable:!1,closeIcon:h,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:tJ});return Zb.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:f,message:p}))),m}));let rJ=0;T$=(I$=Sa({},LK)).version,F$=I$.render,A$=I$.unmountComponentAtNode;try{Number((T$||"").split(".")[0])>=18&&(R$=I$.createRoot)}catch(GX){}M$="__rc_react_root__";const oJ=()=>({height:0,opacity:0}),iJ=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},aJ=e=>({height:e?e.offsetHeight:0}),sJ=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,lJ=function(e){return{motionName:`${arguments.length>0&&void 0!==e?e:"ant"}-motion-collapse`,onAppearStart:oJ,onEnterStart:oJ,onAppearActive:iJ,onEnterActive:iJ,onLeaveStart:aJ,onLeaveActive:oJ,onAppearEnd:sJ,onEnterEnd:sJ,onLeaveEnd:sJ,motionDeadline:500}},cJ=(e,t,n)=>void 0!==n?n:`${e}-${t}`,uJ=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},dJ=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},pJ=Nl("Wave",(e=>[dJ(e)])),fJ="ant-wave-target",hJ=e=>{function t(){const e=getComputedStyle(r);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return gc(t)?t:gc(n)?n:gc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:mc(-parseFloat(n))),f(t?r.offsetTop:mc(-parseFloat(o))),g(r.offsetWidth),b(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>mc(parseFloat(e)))))}const{className:n,target:r,component:o}=e,i=Zb.useRef(null),[a,s]=Zb.useState(null),[l,c]=Zb.useState([]),[u,d]=Zb.useState(0),[p,f]=Zb.useState(0),[h,g]=Zb.useState(0),[m,b]=Zb.useState(0),[y,v]=Zb.useState(!1),w={left:u,top:p,width:h,height:m,borderRadius:l.map((e=>`${e}px`)).join(" ")};if(a&&(w["--wave-color"]=a),Zb.useEffect((()=>{if(r){const e=d_((()=>{t(),v(!0)}));let n;return"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(r)),()=>{d_.cancel(e),null==n||n.disconnect()}}}),[]),!y)return null;const x=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(fJ));return Zb.createElement(bQ,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;fc(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:t}=e;return Zb.createElement("div",{ref:i,className:wY(n,{"wave-quick":x},t),style:w})}))},gJ=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),cc(Zb.createElement(hJ,Object.assign({},t,{target:e})),o)},mJ=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=Zb.useContext(XY),i=Zb.useRef(null),a=o("wave"),[,s]=pJ(a),l=function(e,t,n){const{wave:r}=Zb.useContext(XY),[,o,i]=Cl(),a=El((a=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${fJ}`)||s,{showEffect:c}=r||{};(c||gJ)(l,{className:t,token:o,component:n,event:a,hashId:i})})),s=Zb.useRef();return e=>{d_.cancel(s.current),s.current=d_((()=>{a(e)}))}}(i,wY(a,s),r);return AK.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!uJ(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),AK.isValidElement(t)?ec(t,{ref:js(t)?_s(t.ref,i):i}):null!=t?t:null},bJ=e=>{const t=AK.useContext(tQ);return AK.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},yJ=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},vJ=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"}}}},wJ=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},xJ=Nl("Space",(e=>{const t=$l(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[vJ(t),wJ(t),yJ(t)]}),(()=>({})),{resetStyle:!1});L$=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const kJ=Zb.createContext(null),SJ=(e,t)=>{const n=Zb.useContext(kJ),r=Zb.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return wY(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},CJ=e=>{let{children:t}=e;return Zb.createElement(kJ.Provider,{value:null},t)},EJ=e=>{var{children:t}=e,n=L$(e,["children"]);return Zb.createElement(kJ.Provider,{value:n},t)};B$=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const DJ=Zb.createContext(void 0),OJ=/^[\u4e00-\u9fa5]{2}$/,_J=OJ.test.bind(OJ),$J=Zb.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=wY(`${i}-icon`,n);return AK.createElement("span",{ref:t,className:a,style:r},o)})),jJ=Zb.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=wY(`${n}-loading-icon`,r);return AK.createElement($J,{prefixCls:n,className:a,style:o,ref:t},AK.createElement(XQ,{className:i}))})),NJ=()=>({width:0,opacity:0,transform:"scale(0)"}),PJ=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),IJ=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?AK.createElement(jJ,{prefixCls:t,className:o,style:i}):AK.createElement(bQ,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:NJ,onAppearActive:PJ,onEnterStart:NJ,onEnterActive:PJ,onLeaveStart:PJ,onLeaveActive:NJ},((e,n)=>{let{className:r,style:a}=e;return AK.createElement(jJ,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))},TJ=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),FJ=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},TJ(`${t}-primary`,o),TJ(`${t}-danger`,i)]}},AJ=e=>{const{componentCls:t,iconCls:n,fontWeight: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({},dQ(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-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:'""'}}}}}}},RJ=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),MJ=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),LJ=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),BJ=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),zJ=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},RJ(e,Object.assign({backgroundColor:t},a),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),HJ=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},BJ(e))}),WJ=e=>Object.assign({},HJ(e)),UJ=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),VJ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},WJ(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),RJ(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),zJ(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},RJ(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zJ(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),HJ(e))}),GJ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},WJ(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),RJ(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),zJ(e.componentCls,e.ghostBg,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:e.dangerShadow,color:e.dangerColor},RJ(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),zJ(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),HJ(e))}),qJ=e=>Object.assign(Object.assign({},VJ(e)),{borderStyle:"dashed"}),XJ=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},RJ(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),UJ(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},RJ(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),UJ(e))}),KJ=e=>Object.assign(Object.assign(Object.assign({},RJ(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),UJ(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},UJ(e)),RJ(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),YJ=e=>{const{componentCls:t}=e;return{[`${t}-default`]:VJ(e),[`${t}-primary`]:GJ(e),[`${t}-dashed`]:qJ(e),[`${t}-link`]:XJ(e),[`${t}-text`]:KJ(e),[`${t}-ghost`]:zJ(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},QJ=function(e,t){let n=arguments.length>1&&void 0!==t?t:"";const{componentCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e;return[{[`${r}${n}`]:{fontSize:i,height:o,padding:`${Math.max(0,(o-i*a)/2-s)}px ${c}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}`]:MJ(e)},{[`${r}${r}-round${n}`]:LJ(e)}]},JJ=e=>QJ($l(e,{fontSize:e.contentFontSize})),ZJ=e=>{const t=$l(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return QJ(t,`${e.componentCls}-sm`)},eZ=e=>{const t=$l(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return QJ(t,`${e.componentCls}-lg`)},tZ=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},nZ=e=>{const{paddingInline:t,onlyIconSize:n}=e;return $l(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},rZ=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),oZ=Nl("Button",(e=>{const t=nZ(e);return[AJ(t),ZJ(t),JJ(t),eZ(t),tZ(t),YJ(t),FJ(t)]}),rZ),iZ=mQ(["Button","compact"],(e=>{const t=nZ(e);return[kc(t),Cc(t)]}),rZ);z$=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const aZ=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:p,rootClassName:f,children:h,icon:g,ghost:m=!1,block:b=!1,htmlType:y="button",classNames:v,style:w={}}=e,x=z$(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:k,autoInsertSpaceInButton:S,direction:C,button:E}=Zb.useContext(XY),D=k("btn",i),[O,_]=oZ(D),$=Zb.useContext(JY),j=null!=d?d:$,N=Zb.useContext(DJ),P=Zb.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o)),[o]),[I,T]=Zb.useState(P.loading),[F,A]=Zb.useState(!1),R=_s(t,Zb.createRef()),M=1===Zb.Children.count(h)&&!g&&!vc(a);Zb.useEffect((()=>{let e=null;return P.delay>0?e=setTimeout((()=>{e=null,T(!0)}),P.delay):T(P.loading),function(){e&&(clearTimeout(e),e=null)}}),[P]),Zb.useEffect((()=>{R&&R.current&&!1!==S&&(M&&_J(R.current.textContent)?F||A(!0):F&&A(!1))}),[R]);const L=t=>{const{onClick:n}=e;I||j?t.preventDefault():null==n||n(t)},B=!1!==S,{compactSize:z,compactItemClassnames:H}=SJ(D,C),W=bJ((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:z)&&void 0!==t?t:N)&&void 0!==n?n:e})),U=W&&{large:"lg",small:"sm",middle:void 0}[W]||"",V=I?"loading":g,G=Us(x,["navigate"]),q=wY(D,_,{[`${D}-${l}`]:"default"!==l&&l,[`${D}-${a}`]:a,[`${D}-${U}`]:U,[`${D}-icon-only`]:!h&&0!==h&&!!V,[`${D}-background-ghost`]:m&&!vc(a),[`${D}-loading`]:I,[`${D}-two-chinese-chars`]:F&&B&&!I,[`${D}-block`]:b,[`${D}-dangerous`]:!!s,[`${D}-rtl`]:"rtl"===C},H,p,f,null==E?void 0:E.className),X=Object.assign(Object.assign({},null==E?void 0:E.style),w),K=wY(null==v?void 0:v.icon,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.icon),Y=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==E?void 0:E.styles)||void 0===r?void 0:r.icon)||{}),Q=g&&!I?AK.createElement($J,{prefixCls:D,className:K,style:Y},g):AK.createElement(IJ,{existIcon:!!g,prefixCls:D,loading:!!I}),J=h||0===h?function(e,t){let n=!1;const r=[];return AK.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})),AK.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&yc(e.type)&&_J(e.props.children)?ec(e,{children:e.props.children.split("").join(n)}):yc(e)?_J(e)?AK.createElement("span",null,e.split("").join(n)):AK.createElement("span",null,e):Zl(e)?AK.createElement("span",null,e):e}(e,t)))}(h,M&&B):null;if(void 0!==G.href)return O(AK.createElement("a",Object.assign({},G,{className:wY(q,{[`${D}-disabled`]:j}),style:X,onClick:L,ref:R}),Q,J));let Z=AK.createElement("button",Object.assign({},x,{type:y,className:q,style:X,onClick:L,disabled:j,ref:R}),Q,J,H&&AK.createElement(iZ,{key:"compact",prefixCls:D}));return vc(a)||(Z=AK.createElement(mJ,{component:"Button",disabled:!!I},Z)),O(Z)},sZ=Zb.forwardRef(aZ);sZ.Group=e=>{const{getPrefixCls:t,direction:n}=Zb.useContext(XY),{prefixCls:r,size:o,className:i}=e,a=B$(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Cl();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=wY(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return Zb.createElement(DJ.Provider,{value:o},Zb.createElement("div",Object.assign({},a,{className:u})))},sZ.__ANT_BUTTON=!0;const lZ=sZ,cZ=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=Zb.useRef(!1),p=Zb.useRef(null),[f,h]=Dl(!1),g=function(){null==i||i.apply(void 0,arguments)};return Zb.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),Zb.createElement(lZ,Object.assign({},bc(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!Ec(t))return d.current=!1,void g(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void g();(e=>{Ec(e)&&(h(!0),e.then((function(){h(!1,!0),g.apply(void 0,arguments),d.current=!1}),(e=>{if(h(!1,!0),d.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:f,prefixCls:r},o,{ref:p}),n)},uZ=AK.createContext({}),{Provider:dZ}=uZ,pZ=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=Zb.useContext(uZ);return o?AK.createElement(cZ,{isSilent:r,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},fZ=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=Zb.useContext(uZ);return AK.createElement(cZ,{isSilent:n,type:a||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};H$=Zb.createContext(null),W$=[],V$="rc-util-locker-".concat(Date.now()),G$=0,q$=function(e){return!1!==e&&(Pa()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},X$=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S=e.open,C=e.autoLock,E=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,i=Wa(Zb.useState(S),2),a=i[1],s=i[0]||S,Zb.useEffect((function(){(r||S)&&a(S)}),[S,r]),c=(l=Wa(Zb.useState((function(){return q$(E)})),2))[0],u=l[1],Zb.useEffect((function(){var e=q$(E);u(null!=e?e:null)})),d=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=Wa(Zb.useState((function(){return Pa()?document.createElement("div"):null})),1)[0],o=Zb.useRef(!1),i=Zb.useContext(H$),a=Wa(Zb.useState(W$),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(xa(t))}))});return FD((function(){return e?i?i(t):t():n(),n}),[e]),FD((function(){s.length&&(s.forEach((function(e){return e()})),l(W$))}),[s]),[r,c]}(s&&!c),f=(p=Wa(d,2))[0],h=p[1],g=null!=c?c:f,w=C&&S&&Pa()&&(g===f||g===document.body),x=!!w,k=Wa(Zb.useState((function(){return G$+=1,"".concat(V$,"_").concat(G$)})),1)[0],FD((function(){var e,t;return x?(e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.height;return{width:Dc(t.width),height:Dc(n)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ba("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),k)):La(k),function(){La(k)}}),[x,k]),m=null,o&&js(o)&&t&&(m=o.ref),b=$s(m,t),s&&Pa()&&void 0!==c?(y=!1===g||false,v=o,t&&(v=Zb.cloneElement(o,{ref:b})),Zb.createElement(H$.Provider,{value:h},y?v:fS.createPortal(v,g))):null})),K$=Zb.createContext({}),Y$=0;const hZ=(Q$=Sa({},RK).useId)?function(e){var t=Q$();return e||t}:function(e){var t=Wa(Zb.useState("ssr-id"),2),n=t[0],r=t[1];return Zb.useEffect((function(){var e=Y$;Y$+=1,r("rc_unique_".concat(e))}),[]),e||n},gZ=Zb.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));J$={width:0,height:0,overflow:"hidden",outline:"none"},Z$=AK.forwardRef((function(e,t){var n,r,o,i,a,s=e.prefixCls,l=e.className,c=e.style,u=e.title,d=e.ariaId,p=e.footer,f=e.closable,h=e.closeIcon,g=e.onClose,m=e.children,b=e.bodyStyle,y=e.bodyProps,v=e.modalRender,w=e.onMouseDown,x=e.onMouseUp,k=e.visible,S=e.forceRender,C=e.width,E=e.height,D=e.classNames,O=e.styles,_=$s(e.holderRef,AK.useContext(K$).panel),$=Zb.useRef(),j=Zb.useRef();return AK.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=$.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===j.current?$.current.focus():e||t!==$.current||j.current.focus()}}})),n={},void 0!==C&&(n.width=C),void 0!==E&&(n.height=E),p&&(r=AK.createElement("div",{className:wY("".concat(s,"-footer"),null==D?void 0:D.footer),style:Sa({},null==O?void 0:O.footer)},p)),u&&(o=AK.createElement("div",{className:wY("".concat(s,"-header"),null==D?void 0:D.header),style:Sa({},null==O?void 0:O.header)},AK.createElement("div",{className:"".concat(s,"-title"),id:d},u))),f&&(i=AK.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(s,"-close")},h||AK.createElement("span",{className:"".concat(s,"-close-x")}))),a=AK.createElement("div",{className:wY("".concat(s,"-content"),null==D?void 0:D.content),style:null==O?void 0:O.content},i,o,AK.createElement("div",fa({className:wY("".concat(s,"-body"),null==D?void 0:D.body),style:Sa(Sa({},b),null==O?void 0:O.body)},y),m),r),AK.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?d:null,"aria-modal":"true",ref:_,style:Sa(Sa({},c),n),className:wY(s,l),onMouseDown:w,onMouseUp:x},AK.createElement("div",{tabIndex:0,ref:$,style:J$,"aria-hidden":"true"}),AK.createElement(gZ,{shouldUpdate:k||S},v?v(a):a),AK.createElement("div",{tabIndex:0,ref:j,style:J$,"aria-hidden":"true"}))})),(ej=Zb.forwardRef((function(e,t){function n(){var e,t,n,r,o,i=((n={left:(t=(e=h.current).getBoundingClientRect()).left,top:t.top}).left+=_c(o=(r=e.ownerDocument).defaultView||r.parentWindow),n.top+=_c(o,!0),n);b(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}var r=e.prefixCls,o=e.title,i=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,h=Zb.useRef(),g=Wa(Zb.useState(),2),m=g[0],b=g[1],y={};return m&&(y.transformOrigin=m),Zb.createElement(bQ,{visible:s,onVisibleChanged:p,onAppearPrepare:n,onEnterPrepare:n,forceRender:l,motionName:u,removeOnLeave:c,ref:h},(function(n,s){var l=n.className;return Zb.createElement(Z$,fa({},e,{ref:t,title:o,ariaId:d,prefixCls:r,holderRef:s,style:Sa(Sa(Sa({},n.style),i),y),className:wY(a,l)}))}))}))).displayName="Content",(tj=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,s=e.panelRef,l=Wa(Zb.useState(t),2),c=l[0],u=l[1],d=Zb.useMemo((function(){return{panel:s}}),[s]);return Zb.useEffect((function(){t&&u(!0)}),[t]),r||!i||c?Zb.createElement(K$.Provider,{value:d},Zb.createElement(X$,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},Zb.createElement(jc,fa({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null}).displayName="Dialog",nj="RC_FORM_INTERNAL_HOOKS",oj=Zb.createContext({getFieldValue:rj=function(){$a(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},getFieldsValue:rj,getFieldError:rj,getFieldWarning:rj,getFieldsError:rj,isFieldsTouched:rj,isFieldTouched:rj,isFieldValidating:rj,isFieldsValidating:rj,resetFields:rj,setFields:rj,setFieldValue:rj,setFieldsValue:rj,validateFields:rj,submit:rj,getInternalHooks:function(){return rj(),{dispatch:rj,initEntityValue:rj,registerField:rj,useSubscribe:rj,setInitialValues:rj,destroyForm:rj,setCallbacks:rj,registerWatch:rj,getFields:rj,setValidateMessages:rj,setPreserve:rj,getInitialValue:rj}}}),ij=Zb.createContext(null),aj=/%[sdj%]/g,sj=function(){},lj=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,Fc(n,r),t}(Rc(Error)),dj=function(){var e,t,n,r,o,i,a,s,l,c,u;return uj||(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(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),(l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")}).v4=function(e){return e&&e.exact?a: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,uj=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"))},pj=/^(([^<>()\[\]\\.,;:\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,}))$/,fj=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,hj={integer:function(e){return hj.number(e)&&parseInt(e,10)===e},float:function(e){return hj.number(e)&&!hj.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(GX){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&&!hj.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(pj)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(dj())},hex:function(e){return"string"==typeof e&&!!e.match(fj)}},gj=function(e,t,n,r,o){var i;e.required&&void 0===t?cj(e,t,n,r,o):["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i=e.type)>-1?hj[i](t)||r.push(Lc(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Lc(o.messages.types[i],e.fullField,e.type))},mj="enum",bj={required:cj=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Bc(t,i||e.type)||r.push(Lc(o.messages.required,e.fullField))},whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Lc(o.messages.whitespace,e.fullField))},type:gj,range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(Lc(o.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(Lc(o.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(Lc(o.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(Lc(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[mj]=Array.isArray(e[mj])?e[mj]:[],-1===e[mj].indexOf(t)&&r.push(Lc(o.messages[mj],e.fullField,e[mj].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Lc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Lc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},vj={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t,"string")&&!e.required)return n();bj.required(e,t,r,i,o,"string"),Bc(t,"string")||(bj.type(e,t,r,i,o),bj.range(e,t,r,i,o),bj.pattern(e,t,r,i,o),!0===e.whitespace&&bj.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o),void 0!==t&&bj.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o),void 0!==t&&(bj.type(e,t,r,i,o),bj.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o),void 0!==t&&bj.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o),Bc(t)||bj.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o),void 0!==t&&(bj.type(e,t,r,i,o),bj.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o),void 0!==t&&(bj.type(e,t,r,i,o),bj.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();bj.required(e,t,r,i,o,"array"),null!=t&&(bj.type(e,t,r,i,o),bj.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o),void 0!==t&&bj.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o),void 0!==t&&bj.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t,"string")&&!e.required)return n();bj.required(e,t,r,i,o),Bc(t,"string")||bj.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t,"date")&&!e.required)return n();bj.required(e,t,r,a,o),Bc(t,"date")||(i=t instanceof Date?t:new Date(t),bj.type(e,i,r,a,o),i&&bj.range(e,i.getTime(),r,a,o))}n(a)},url:yj=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t,i)&&!e.required)return n();bj.required(e,t,r,a,o,i),Bc(t,i)||bj.type(e,t,r,a,o)}n(a)},hex:yj,email:yj,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;bj.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bc(t)&&!e.required)return n();bj.required(e,t,r,i,o)}n(i)}},wj=Uc(),xj=function(){function e(e){this.rules=null,this._messages=wj,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=Wc(Uc(),e)),this._messages},t.validate=function(t,n,r){var o,i,a,s,l,c,u=this;return void 0===n&&(n={}),void 0===r&&(r=function(){}),o=t,a=r,"function"==typeof(i=n)&&(a=i,i={}),this.rules&&0!==Object.keys(this.rules).length?(i.messages?((s=this.messages())===wj&&(s=Uc()),Wc(s,i.messages),i.messages=s):i.messages=this.messages(),l={},(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o[e];u.rules[e].forEach((function(r){var i=r;"function"==typeof i.transform&&(o===t&&(o=Ic({},o)),n=o[e]=i.transform(n)),(i="function"==typeof i?{validator:i}:Ic({},i)).validator=u.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=u.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:n,source:o,field:e}))}))})),c={},function(e,t,n,r,o){var i,a,s,l,c,u,d;return t.first?(i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);zc(a,n,(function(e){return r(e),e.length?i(new lj(e,Mc(e))):t(o)}))})),i.catch((function(e){return e})),i):(a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new lj(u,Mc(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?zc(r,n,d):function(e,t,n){function r(e){o.push.apply(o,e||[]),++i===a&&n(o)}var o=[],i=0,a=e.length;e.forEach((function(e){t(e,r)}))}(r,n,d)}))})),d.catch((function(e){return e})),d)}(l,i,(function(t,n){function r(e,t){return Ic({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function a(a){var s,d,p,f,h;if(void 0===a&&(a=[]),s=Array.isArray(a)?a:[a],!i.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==l.message&&(s=[].concat(l.message)),d=s.map(Hc(l,o)),i.first&&d.length)return c[l.field]=1,n(d);if(u){if(l.required&&!t.value)return void 0!==l.message?d=[].concat(l.message).map(Hc(l,o)):i.error&&(d=[i.error(l,Lc(i.messages.required,l.field))]),n(d);p={},l.defaultField&&Object.keys(t.value).map((function(e){p[e]=l.defaultField})),p=Ic({},p,t.rule.fields),f={},Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(r.bind(null,e))})),(h=new e(f)).messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),h.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}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,a,t.source,i);else if(l.validator){try{s=l.validator(l,t.value,a,t.source,i)}catch(d){console,i.suppressValidatorError||setTimeout((function(){throw d}),0),a(d.message)}!0===s?a():!1===s?a("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):s instanceof Array?a(s):s instanceof Error&&a(s.message)}s&&s.then&&s.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n,r,i=[],s={};for(t=0;t<e.length;t++)n=e[t],r=void 0,Array.isArray(n)?i=(r=i).concat.apply(r,n):i.push(n);i.length?(s=Mc(i),a(i,s)):a(null,o)}(e)}),o)):(a&&a(null,o),Promise.resolve(o))},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!vj.hasOwnProperty(e.type))throw new Error(Lc("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){var t,n;return"function"==typeof e.validator?e.validator:(-1!==(n=(t=Object.keys(e)).indexOf("message"))&&t.splice(n,1),1===t.length&&"required"===t[0]?vj.required:vj[this.getType(e)]||void 0)},e}(),xj.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");vj[e]=t},xj.warning=sj,xj.messages=wj,xj.validators=vj,Sj={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:kj="'${name}' is not a valid ${type}",method:kj,array:kj,object:kj,number:kj,date:kj,boolean:kj,integer:kj,float:kj,regexp:kj,email:kj,url:kj,hex:kj},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Cj=xj,Ej="CODE_LOGIC_ERROR",Dj=["name"],Oj=[],_j=function(){function e(n){var r;return _i(this,e),Ei(Bs(r=t.call(this,n)),"state",{resetCount:0}),Ei(Bs(r),"cancelRegisterFunc",null),Ei(Bs(r),"mounted",!1),Ei(Bs(r),"touched",!1),Ei(Bs(r),"dirty",!1),Ei(Bs(r),"validatePromise",void 0),Ei(Bs(r),"prevValidating",void 0),Ei(Bs(r),"errors",Oj),Ei(Bs(r),"warnings",Oj),Ei(Bs(r),"cancelRegister",(function(){var e=r.props;r.cancelRegisterFunc&&r.cancelRegisterFunc(e.isListField,e.preserve,Qc(e.name)),r.cancelRegisterFunc=null})),Ei(Bs(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(xa(void 0===n?[]:n),xa(t)):[]})),Ei(Bs(r),"getRules",(function(){var e=r.props,t=e.rules,n=e.fieldContext;return(void 0===t?[]:t).map((function(e){return"function"==typeof e?e(n):e}))})),Ei(Bs(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Ei(Bs(r),"metaCache",null),Ei(Bs(r),"triggerMetaEvent",(function(e){var t,n=r.props.onMetaChange;n?(t=Sa(Sa({},r.getMeta()),{},{destroy:e}),ja(r.metaCache,t)||n(t),r.metaCache=t):r.metaCache=null})),Ei(Bs(r),"onStoreChange",(function(e,t,n){var o,i=r.props,a=i.shouldUpdate,s=i.dependencies,l=void 0===s?[]:s,c=i.onReset,u=n.store,d=r.getNamePath(),p=r.getValue(e),f=r.getValue(u),h=t&&Zc(t,d);switch("valueUpdate"===n.type&&"external"===n.source&&p!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Oj,r.warnings=Oj,r.triggerMetaEvent()),n.type){case"reset":if(!t||h)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Oj,r.warnings=Oj,r.triggerMetaEvent(),null==c||c(),void r.refresh();break;case"remove":if(a)return void r.reRender();break;case"setField":if(o=n.data,h)return"touched"in o&&(r.touched=o.touched),"validating"in o&&!("originRCField"in o)&&(r.validatePromise=o.validating?Promise.resolve([]):null),"errors"in o&&(r.errors=o.errors||Oj),"warnings"in o&&(r.warnings=o.warnings||Oj),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in o&&Zc(t,d,!0))return void r.reRender();if(a&&!d.length&&ru(a,e,u,p,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(Qc).some((function(e){return Zc(n.relatedFields,e)})))return void r.reRender();break;default:if(h||(!l.length||d.length||a)&&ru(a,e,u,p,f,n))return void r.reRender()}!0===a&&r.reRender()})),Ei(Bs(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(sc(ic().mark((function o(){var a,s,c,u,d,p,f;return ic().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(c=void 0!==(s=(a=r.props).validateFirst)&&s,u=a.messageVariables,d=a.validateDebounce,p=r.getRules(),i&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Pc(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(f=Xc(t,n,p,e,c,u)).catch((function(e){return e})).then((function(e){var t,n,o,i=arguments.length>0&&void 0!==e?e:Oj;r.validatePromise===l&&(r.validatePromise=null,n=[],o=[],null===(t=i.forEach)||void 0===t||t.call(i,(function(e){var t=e.errors,r=void 0===t?Oj:t;e.rule.warningOnly?o.push.apply(o,xa(r)):n.push.apply(n,xa(r))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender())})),o.abrupt("return",f);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=Oj,r.warnings=Oj,r.triggerMetaEvent(),r.reRender()),l})),Ei(Bs(r),"isFieldValidating",(function(){return!!r.validatePromise})),Ei(Bs(r),"isFieldTouched",(function(){return r.touched})),Ei(Bs(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(nj).getInitialValue)(r.getNamePath())})),Ei(Bs(r),"getErrors",(function(){return r.errors})),Ei(Bs(r),"getWarnings",(function(){return r.warnings})),Ei(Bs(r),"isListField",(function(){return r.props.isListField})),Ei(Bs(r),"isList",(function(){return r.props.isList})),Ei(Bs(r),"isPreserve",(function(){return r.props.preserve})),Ei(Bs(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}})),Ei(Bs(r),"getOnlyChild",(function(e){var t,n;return"function"==typeof e?(t=r.getMeta(),Sa(Sa({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})):1===(n=Ds(e)).length&&Zb.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Ei(Bs(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return qs(e||t(!0),n)})),Ei(Bs(r),"getControlled",(function(e){var t=arguments.length>0&&void 0!==e?e:{},n=r.props,o=n.trigger,i=n.validateTrigger,a=n.getValueFromEvent,s=n.normalize,l=n.valuePropName,c=n.getValueProps,u=n.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),f=u.getFieldsValue,h=(0,u.getInternalHooks)(nj).dispatch,g=r.getValue(),m=c||function(e){return Ei({},l,e)},b=t[o],y=Sa(Sa({},t),m(g));return y[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<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):tu.apply(void 0,[l].concat(n)),s&&(e=s(e,g,f(!0))),h({type:"updateValue",namePath:p,value:e}),b&&b.apply(void 0,n)},Pc(d||[]).forEach((function(e){var t=y[e];y[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&h({type:"validateField",namePath:p,triggerName:e})}})),y})),n.fieldContext&&(0,(0,n.fieldContext.getInternalHooks)(nj).initEntityValue)(Bs(r)),r}Rs(e,Zb.Component);var t=zs(e);return ji(e,[{key:"componentDidMount",value:function(){var e,t=this.props,n=t.shouldUpdate,r=t.fieldContext;this.mounted=!0,r&&(e=(0,r.getInternalHooks)(nj),this.cancelRegisterFunc=(0,e.registerField)(this)),!0===n&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.getOnlyChild(this.props.children),r=n.child;return n.isFunction?e=r:Zb.isValidElement(r)?e=Zb.cloneElement(r,this.getControlled(r.props)):($a(!r,"`children` of Field is not validate ReactElement."),e=r),Zb.createElement(Zb.Fragment,{key:t},e)}}]),e}(),Ei(_j,"contextType",oj),Ei(_j,"defaultProps",{trigger:"onChange",valuePropName:"value"}),$j="__@field_split__",jj=function(){function e(){_i(this,e),Ei(this,"kvs",new Map)}return ji(e,[{key:"set",value:function(e,t){this.kvs.set(au(e),t)}},{key:"get",value:function(e){return this.kvs.get(au(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(au(e))}},{key:"map",value:function(e){return xa(this.kvs.entries()).map((function(t){var n=Wa(t,2),r=n[1],o=n[0].split($j);return e({key:o.map((function(e){var t=Wa(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}(),Nj=["name"],Pj=ji((function e(t){var n=this;_i(this,e),Ei(this,"formHooked",!1),Ei(this,"forceRootUpdate",void 0),Ei(this,"subscribable",!0),Ei(this,"store",{}),Ei(this,"fieldEntities",[]),Ei(this,"initialValues",{}),Ei(this,"callbacks",{}),Ei(this,"validateMessages",null),Ei(this,"preserve",null),Ei(this,"lastValidatePromise",null),Ei(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}})),Ei(this,"getInternalHooks",(function(e){return e===nj?(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}):($a(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Ei(this,"useSubscribe",(function(e){n.subscribable=e})),Ei(this,"prevWithoutPreserves",null),Ei(this,"setInitialValues",(function(e,t){var r,o;n.initialValues=e||{},t&&(o=Qs(e,n.store),null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Ks(o,n,qs(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o))})),Ei(this,"destroyForm",(function(){var e=new jj;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Ei(this,"getInitialValue",(function(e){var t=qs(n.initialValues,e);return e.length?Qs(t):t})),Ei(this,"setCallbacks",(function(e){n.callbacks=e})),Ei(this,"setValidateMessages",(function(e){n.validateMessages=e})),Ei(this,"setPreserve",(function(e){n.preserve=e})),Ei(this,"watchList",[]),Ei(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Ei(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)})))})),Ei(this,"timeoutId",null),Ei(this,"warningUnhooked",(function(){})),Ei(this,"updateStore",(function(e){n.store=e})),Ei(this,"getFieldEntities",(function(e){return arguments.length>0&&void 0!==e&&e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Ei(this,"getFieldsMap",(function(e){var t=arguments.length>0&&void 0!==e&&e,r=new jj;return n.getFieldEntities(t).forEach((function(e){var t=e.getNamePath();r.set(t,e)})),r})),Ei(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Qc(e);return t.get(n)||{INVALIDATE_NAME_PATH:Qc(e)}}))})),Ei(this,"getFieldsValue",(function(e,t){var r,o,i,a,s;return n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Si(e)&&(i=e.strict,o=e.filter),!0!==r||o?(a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[],a.forEach((function(e){var t,n,a,l,c,u="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;o?(c="getMeta"in e?e.getMeta():null,o(c)&&s.push(u)):s.push(u)})),Jc(n.store,s.map(Qc))):n.store})),Ei(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Qc(e);return qs(n.store,t)})),Ei(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:Qc(e[n]),errors:[],warnings:[]}}))})),Ei(this,"getFieldError",(function(e){var t;return n.warningUnhooked(),t=Qc(e),n.getFieldsError([t])[0].errors})),Ei(this,"getFieldWarning",(function(e){var t;return n.warningUnhooked(),t=Qc(e),n.getFieldsError([t])[0].warnings})),Ei(this,"isFieldsTouched",(function(){var e,t,r,o,i,a,s,l,c,u,d,p;for(n.warningUnhooked(),e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o=t[0],i=t[1],s=!1,0===t.length?a=null:1===t.length?Array.isArray(o)?(a=o.map(Qc),s=!1):(a=null,s=o):(a=o.map(Qc),s=i),l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()},a?(u=new jj,a.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();a.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(xa(t),[e])}))}))})),d=function(e){return e.some(c)},p=u.map((function(e){return e.value})),s?p.every(d):p.some(d)):s?l.every(c):l.some(c)})),Ei(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Ei(this,"isFieldsValidating",(function(e){var t,r;return n.warningUnhooked(),t=n.getFieldEntities(),e?(r=e.map(Qc),t.some((function(e){var t=e.getNamePath();return Zc(r,t)&&e.isFieldValidating()}))):t.some((function(e){return e.isFieldValidating()}))})),Ei(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Ei(this,"resetWithFieldInitialValue",(function(e){var t,r,o=arguments.length>0&&void 0!==e?e:{},i=new jj,a=n.getFieldEntities(!0);a.forEach((function(e){var t,n=e.props.initialValue,r=e.getNamePath();void 0!==n&&((t=i.get(r)||new Set).add({entity:e,value:n}),i.set(r,t))})),t=function(e){e.forEach((function(e){var t,r,a;void 0!==e.props.initialValue&&(t=e.getNamePath(),void 0!==n.getInitialValue(t)?$a(!1,"Form already set 'initialValues' with path '".concat(t.join("."),"'. Field can not overwrite it.")):(r=i.get(t))&&r.size>1?$a(!1,"Multiple Field with path '".concat(t.join("."),"' set 'initialValue'. Can not decide which one to pick.")):r&&(a=n.getFieldValue(t),e.isListField()||o.skipExist&&void 0!==a||n.updateStore(Ks(n.store,t,xa(r)[0].value))))}))},o.entities?r=o.entities:o.namePathList?(r=[],o.namePathList.forEach((function(e){var t,n=i.get(e);n&&(t=r).push.apply(t,xa(xa(n).map((function(e){return e.entity}))))}))):r=a,t(r)})),Ei(this,"resetFields",(function(e){var t,r;if(n.warningUnhooked(),t=n.store,!e)return n.updateStore(Qs(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();(r=e.map(Qc)).forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Ks(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Ei(this,"setFields",(function(e){var t,r;n.warningUnhooked(),t=n.store,r=[],e.forEach((function(e){var o=e.name,i=Di(e,Nj),a=Qc(o);r.push(a),"value"in i&&n.updateStore(Ks(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Ei(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Sa(Sa({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Ei(this,"initEntityValue",(function(e){var t,r=e.props.initialValue;void 0!==r&&(t=e.getNamePath(),void 0===qs(n.store,t)&&n.updateStore(Ks(n.store,t,r)))})),Ei(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Ei(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,i){var a,s,l=arguments.length>2&&void 0!==i?i:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),n.isMergedPreserve(o)||r&&!(l.length>1)||(a=r?void 0:n.getInitialValue(t),t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!eu(e.getNamePath(),t)}))&&(n.updateStore(Ks(s=n.store,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t))),n.notifyWatch([t])}})),Ei(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})}})),Ei(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Sa(Sa({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Ei(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(xa(r))}),r})),Ei(this,"updateValue",(function(e,t){var r,o,i=Qc(e),a=n.store;n.updateStore(Ks(n.store,i,t)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]),r=n.triggerDependenciesUpdate(a,i),(o=n.callbacks.onValuesChange)&&o(Jc(n.store,[i]),n.getFieldsValue()),n.triggerOnFieldsChange([i].concat(xa(r)))})),Ei(this,"setFieldsValue",(function(e){var t,r;n.warningUnhooked(),t=n.store,e&&(r=Qs(n.store,e),n.updateStore(r)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Ei(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Ei(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new jj;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Qc(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})),Ei(this,"triggerOnFieldsChange",(function(e,t){var r,o,i,a=n.callbacks.onFieldsChange;a&&(r=n.getFields(),t&&(o=new jj,t.forEach((function(e){o.set(e.name,e.errors)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))),(i=r.filter((function(t){return Zc(e,t.name)}))).length&&a(i,r))})),Ei(this,"validateFields",(function(e,t){var r,o,i,a,s,l,c,u,d,p,f,h;return n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,i=t):i=e,s=(a=!!o)?o.map(Qc):[],l=[],c=String(Date.now()),u=new Set,d=null===(r=i)||void 0===r?void 0:r.recursive,n.getFieldEntities(!0).forEach((function(e){var t,r;a||s.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(t=e.getNamePath(),u.add(t.join(c)),a&&!Zc(s,t,d)||(r=e.validateRules(Sa({validateMessages:Sa(Sa({},Sj),n.validateMessages)},i)),l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.errors;e.rule.warningOnly?o.push.apply(o,xa(t)):r.push.apply(r,xa(t))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))))})),p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l),n.lastValidatePromise=p,p.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)})),(f=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(s),errorFields:t,outOfDate:n.lastValidatePromise!==p})}))).catch((function(e){return e})),h=s.filter((function(e){return u.has(e.join(c))})),n.triggerOnFieldsChange(h),f})),Ei(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})),Ij=Zb.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Tj=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=Zb.useContext(Ij),a=Zb.useRef({});return Zb.createElement(Ij.Provider,{value:Sa(Sa({},i),{},{validateMessages:Sa(Sa({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Sa(Sa({},a.current),{},Ei({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Sa({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},Fj=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Aj=function(e,t){var n,r,o,i,a,s,l=e.name,c=e.initialValues,u=e.fields,d=e.form,p=e.preserve,f=e.children,h=e.component,g=void 0===h?"form":h,m=e.validateMessages,b=e.validateTrigger,y=void 0===b?"onChange":b,v=e.onValuesChange,w=e.onFieldsChange,x=e.onFinish,k=e.onFinishFailed,S=Di(e,Fj),C=Zb.useContext(Ij),E=Wa(su(d),1)[0],D=E.getInternalHooks(nj),O=D.useSubscribe,_=D.setInitialValues,$=D.setCallbacks,j=D.setValidateMessages,N=D.setPreserve,P=D.destroyForm;return Zb.useImperativeHandle(t,(function(){return E})),Zb.useEffect((function(){return C.registerForm(l,E),function(){C.unregisterForm(l)}}),[C,E,l]),j(Sa(Sa({},C.validateMessages),m)),$({onValuesChange:v,onFieldsChange:function(e){if(C.triggerFormChange(l,e),w){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];w.apply(void 0,[e].concat(n))}},onFinish:function(e){C.triggerFormFinish(l,e),x&&x(e)},onFinishFailed:k}),N(p),_(c,!(n=Zb.useRef(null)).current),n.current||(n.current=!0),Zb.useEffect((function(){return P}),[]),r=(o="function"==typeof f)?f(E.getFieldsValue(!0),E):f,O(!o),i=Zb.useRef(),Zb.useEffect((function(){var e,t,n,r;(e=i.current||[])===(t=u||[])||!(!e&&t||e&&!t)&&e&&t&&"object"===Si(e)&&"object"===Si(t)&&(n=Object.keys(e),r=Object.keys(t),xa(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})))||E.setFields(u||[]),i.current=u}),[u,E]),a=Zb.useMemo((function(){return Sa(Sa({},E),{},{validateTrigger:y})}),[E,y]),s=Zb.createElement(ij.Provider,{value:null},Zb.createElement(oj.Provider,{value:a},r)),!1===g?s:Zb.createElement(g,fa({},S,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=S.onReset)||void 0===t||t.call(S,e)}}),s)},(Rj=Zb.forwardRef(Aj)).FormProvider=Tj,Rj.Field=ou,Rj.List=iu,Rj.useForm=su,Rj.useWatch=cu;const mZ=Zb.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),bZ=Zb.createContext(null),yZ=e=>{const t=Us(e,["prefixCls"]);return Zb.createElement(Tj,Object.assign({},t))},vZ=Zb.createContext({prefixCls:""}),wZ=Zb.createContext({}),xZ=e=>{let{children:t,status:n,override:r}=e;const o=Zb.useContext(wZ),i=Zb.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 Zb.createElement(wZ.Provider,{value:i},t)},kZ=Zb.createContext({add:uu,remove:uu}),SZ=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=Zb.useContext(uZ);return AK.createElement(lZ,Object.assign({onClick:n},e),t)},CZ=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=Zb.useContext(uZ);return AK.createElement(lZ,Object.assign({},bc(n),{loading:e,onClick:o},t),r)},EZ=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=IY("Modal",Zs()),d={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:r||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},p=AK.useMemo((()=>d),xa(Object.values(d)));let f;return"function"==typeof c||void 0===c?(f=AK.createElement(AK.Fragment,null,AK.createElement(SZ,null),AK.createElement(CZ,null)),"function"==typeof c&&(f=c(f,{OkBtn:CZ,CancelBtn:SZ})),f=AK.createElement(dZ,{value:p},f)):f=c,AK.createElement(QY,{disabled:!1},f)},DZ=e=>({animationDuration:e,animationFillMode:"both"}),OZ=e=>({animationDuration:e,animationFillMode:"both"}),_Z=function(e,t,n,r,o){const i=arguments.length>4&&void 0!==o&&o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},DZ(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},OZ(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},$Z=new pO("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),jZ=new pO("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),NZ=function(e,t){let n=arguments.length>1&&void 0!==t&&t;const{antCls:r}=e,o=`${r}-fade`,i=n?"&":"";return[_Z(o,$Z,jZ,e.motionDurationMid,n),{[`\n ${i}${o}-enter,\n ${i}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${o}-leave`]:{animationTimingFunction:"linear"}}]},PZ=new pO("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),IZ=new pO("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),TZ=new pO("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FZ=new pO("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),AZ=new pO("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),RZ=new pO("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),MZ={"move-up":{inKeyframes:new pO("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 pO("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:PZ,outKeyframes:IZ},"move-left":{inKeyframes:TZ,outKeyframes:FZ},"move-right":{inKeyframes:AZ,outKeyframes:RZ}},LZ=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=MZ[t];return[_Z(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},BZ=new pO("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),zZ=new pO("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),HZ=new pO("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),WZ=new pO("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),UZ=new pO("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),VZ=new pO("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),GZ=new pO("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qZ=new pO("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),XZ={"slide-up":{inKeyframes:BZ,outKeyframes:zZ},"slide-down":{inKeyframes:HZ,outKeyframes:WZ},"slide-left":{inKeyframes:UZ,outKeyframes:VZ},"slide-right":{inKeyframes:GZ,outKeyframes:qZ}},KZ=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=XZ[t];return[_Z(r,o,i,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}}]},YZ=new pO("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),QZ=new pO("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),JZ=new pO("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ZZ=new pO("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),e0=new pO("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),t0=new pO("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),n0=new pO("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),r0=new pO("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),o0=new pO("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),i0=new pO("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),a0=new pO("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),s0=new pO("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),l0={zoom:{inKeyframes:YZ,outKeyframes:QZ},"zoom-big":{inKeyframes:JZ,outKeyframes:ZZ},"zoom-big-fast":{inKeyframes:JZ,outKeyframes:ZZ},"zoom-left":{inKeyframes:n0,outKeyframes:r0},"zoom-right":{inKeyframes:o0,outKeyframes:i0},"zoom-up":{inKeyframes:e0,outKeyframes:t0},"zoom-down":{inKeyframes:a0,outKeyframes:s0}},c0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=l0[t];return[_Z(r,o,i,"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}}]},u0=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`}}}),d0=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({},fu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},fu("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:NZ(e)}]},p0=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},sQ(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}},dQ(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"}}}]},f0=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}-btns`]:{marginTop:e.marginLG}}}},h0=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},g0=e=>{const t=e.padding;return $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})},m0=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),b0=Nl("Modal",(e=>{const t=g0(e);return[p0(t),h0(t),d0(t),e.wireframe&&f0(t),c0(t,"zoom")]}),m0);let y0;Mj=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o},Pa()&&window.document.documentElement&&document.documentElement.addEventListener("click",(e=>{y0={x:e.pageX,y:e.pageY},setTimeout((()=>{y0=null}),100)}),!0);const v0=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=Zb.useContext(XY),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:p,getContainer:f,closeIcon:h,closable:g,focusTriggerAfterClose:m=!0,style:b,visible:y,width:v=520,footer:w,classNames:x,styles:k}=e,S=Mj(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),C=r("modal",s),E=r(),[D,O]=b0(C),_=wY(d,{[`${C}-centered`]:!!p,[`${C}-wrap-rtl`]:"rtl"===o}),$=null!==w&&Zb.createElement(EZ,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[j,N]=Nc(g,h,(e=>pu(C,e)),Zb.createElement(TQ,{className:`${C}-close-icon`}),!0),P=du(`.${C}-content`);return D(Zb.createElement(CJ,null,Zb.createElement(xZ,{status:!0,override:!0},Zb.createElement(tj,Object.assign({width:v},S,{getContainer:void 0===f?n:f,prefixCls:C,rootClassName:wY(O,c),footer:$,visible:null!=u?u:y,mousePosition:null!==(t=S.mousePosition)&&void 0!==t?t:y0,onClose:a,closable:j,closeIcon:N,focusTriggerAfterClose:m,transitionName:cJ(E,"zoom",e.transitionName),maskTransitionName:cJ(E,"fade",e.maskTransitionName),className:wY(O,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),b),classNames:Object.assign(Object.assign({wrapper:_},null==i?void 0:i.classNames),x),styles:Object.assign(Object.assign({},null==i?void 0:i.styles),k),panelRef:P})))))},w0=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a}=e,s=`${t}-confirm`,l=Math.round(n*r),c=Math.round(i*a);return{[s]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${s}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${s}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.marginSM,marginTop:(c-o)/2},[`&-has-title > ${e.iconCls}`]:{marginTop:(l-o)/2}},[`${s}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`},[`${s}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${s}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${s}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${s}-error ${s}-body > ${e.iconCls}`]:{color:e.colorError},[`${s}-warning ${s}-body > ${e.iconCls},\n ${s}-confirm ${s}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${s}-info ${s}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${s}-success ${s}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},x0=mQ(["Modal","confirm"],(e=>{const t=g0(e);return[w0(t)]}),m0,{order:-1e3});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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const k0=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:p,iconPrefixCls:f,theme:h,bodyStyle:g,closable:m=!1,closeIcon:b,modalRender:y,focusTriggerAfterClose:v,onConfirm:w}=e,x=`${u}-confirm`,k=e.width||416,S=e.style||{},C=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,D=wY(x,`${x}-${e.type}`,{[`${x}-rtl`]:"rtl"===c},e.className);return Zb.createElement(DQ,{prefixCls:p,iconPrefixCls:f,direction:c,theme:h},Zb.createElement(v0,{prefixCls:u,className:D,wrapClassName:wY({[`${x}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==w||w(!1)},open:o,title:"",footer:null,transitionName:cJ(p||"","zoom",e.transitionName),maskTransitionName:cJ(p||"","fade",e.maskTransitionName),mask:C,maskClosable:E,style:S,styles:{body:g,mask:l},width:k,zIndex:n,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:m,closeIcon:b,modalRender:y,focusTriggerAfterClose:v},Zb.createElement(hu,Object.assign({},e,{confirmPrefixCls:x}))))},S0=[];Bj=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};let C0="";zj=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const E0=(e,t)=>{var n,{afterClose:r,config:o}=e,i=zj(e,["afterClose","config"]);const[a,s]=Zb.useState(!0),[l,c]=Zb.useState(o),{direction:u,getPrefixCls:d}=Zb.useContext(XY),p=d("modal"),f=d(),h=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.some((e=>e&&e.triggerCancel));l.onCancel&&r&&l.onCancel.apply(l,[()=>{}].concat(xa(t.slice(1))))};Zb.useImperativeHandle(t,(()=>({destroy:h,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=l.okCancel)&&void 0!==n?n:"confirm"===l.type,[m]=IY("Modal",_Y.Modal);return Zb.createElement(k0,Object.assign({prefixCls:p,rootPrefixCls:f},l,{close:h,open:a,afterClose:()=>{var e;r(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(g?null==m?void 0:m.okText:null==m?void 0:m.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==m?void 0:m.cancelText)},i))},D0=Zb.forwardRef(E0);let O0=0;const _0=Zb.memo(Zb.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=Zb.useState([]);return[e,Zb.useCallback((e=>(t((t=>[].concat(xa(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return Zb.useImperativeHandle(t,(()=>({patchElement:r})),[]),Zb.createElement(Zb.Fragment,null,n)}))),$0=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new pO("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new pO("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new pO("antNotificationBottomFadeIn",{"0%":{bottom:-r,opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:n,[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new pO("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},j0=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],N0={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},P0=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},I0=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},T0=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}`,position:"absolute"},P0(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},I0(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,width:e.width,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:-e.margin,background:"transparent",pointerEvents:"auto"}}}},j0.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[N0[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},F0=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:h,motionDurationMid:g,motionEaseInOut:m,fontSize:b,lineHeight:y,width:v,notificationIconSize:w,colorText:x}=e,k=`${n}-notice`,S=new pO("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),C={position:"relative",width:v,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:a,boxShadow:r,[k]:{padding:f,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${k}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:b,color:x},[`&${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+w,fontSize:o},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.marginSM+w,fontSize:b},[`${k}-icon`]:{position:"absolute",fontSize:w,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({},sQ(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`${n}-fade-appear-prepare`]:{opacity:"0 !important"},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:S,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${k}-btn`]:{float:"left"}}})},{[n]:{[`${k}-wrapper`]:Object.assign({},C)}},{[`${k}-pure-panel`]:Object.assign(Object.assign({},C),{margin:0})}]},A0=Nl("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,notificationStackLayer:3});return[F0(t),$0(t),T0(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));Hj=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const R0={success:jQ,info:MQ,error:PQ,warning:AQ},M0=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=Zb.createElement("span",{className:`${t}-icon`},n):r&&(l=Zb.createElement(R0[r]||null,{className:wY(`${t}-icon`,`${t}-icon-${r}`)})),Zb.createElement("div",{className:wY({[`${t}-with-icon`]:l}),role:s},l,Zb.createElement("div",{className:`${t}-message`},o),Zb.createElement("div",{className:`${t}-description`},i),a&&Zb.createElement("div",{className:`${t}-btn`},a))};Wj=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const L0="topRight",B0=e=>{let{children:t,prefixCls:n}=e;const[,r]=A0(n);return Zb.createElement(C$,{classNames:{list:r,notice:r}},t)},z0=(e,t)=>{let{prefixCls:n,key:r}=t;return Zb.createElement(B0,{prefixCls:n,key:r},e)},H0=Zb.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c}=e,{getPrefixCls:u,getPopupContainer:d,notification:p}=Zb.useContext(XY),[,f]=Cl(),h=o||u("notification"),[g,m]=tc({prefixCls:h,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:()=>wY({[`${h}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(h),closable:!0,closeIcon:ku(h),duration:4.5,getContainer:()=>(null==i?void 0:i())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:z0,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:f.margin}});return Zb.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:h,notification:p}))),m})),W0=AK.createContext({}),U0=AK.createContext({message:{},notification:{},modal:{}}),V0=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},G0=Nl("App",(e=>[V0(e)])),q0=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s}=e,{getPrefixCls:l}=Zb.useContext(XY),c=l("app",t),[u,d]=G0(c),p=wY(d,c,r,o),f=Zb.useContext(W0),h=AK.useMemo((()=>({message:Object.assign(Object.assign({},f.message),i),notification:Object.assign(Object.assign({},f.notification),a)})),[i,a,f.message,f.notification]),[g,m]=oc(h.message),[b,y]=Cu(h.notification),[v,w]=xu(),x=AK.useMemo((()=>({message:g,notification:b,modal:v})),[g,b,v]);return u(AK.createElement(U0.Provider,{value:x},AK.createElement(W0.Provider,{value:h},AK.createElement("div",{className:p,style:s},w,m,y,n))))};q0.useApp=()=>AK.useContext(U0);const X0=q0,K0=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))};Uj=function(e){var t,n=e.className,r=e.customizeIcon,o=e.onMouseDown,i=e.onClick,a=e.children;return t="function"==typeof r?r(e.customizeIconProps):r,Zb.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:Zb.createElement("span",{className:wY(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},Vj=Zb.createContext(null),Gj=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],qj=void 0,(Xj=Zb.forwardRef(Ou)).displayName="Item",Kj=AK.createContext(null),Yj=["component"],Qj=["className"],Jj=["className"],Zj=function(e,t){var n,r,o,i,a,s,l,c=Zb.useContext(Kj);return c?(i=c.className,a=Di(c,Qj),s=e.className,l=Di(e,Jj),Zb.createElement(Kj.Provider,{value:null},Zb.createElement(Xj,fa({ref:t,className:wY(i,s)},a,l)))):(r=void 0===(n=e.component)?"div":n,o=Di(e,Yj),Zb.createElement(r,fa({},o,{ref:t})))},(eN=Zb.forwardRef(Zj)).displayName="RawItem",tN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],nN="responsive",rN="invalidate",(oN=Zb.forwardRef(ju)).displayName="Overflow",oN.Item=eN,oN.RESPONSIVE=nN,oN.INVALIDATE=rN,(iN=Zb.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.id,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,p=e.value,f=e.maxLength,h=e.onKeyDown,g=e.onMouseDown,m=e.onChange,b=e.onPaste,y=e.onCompositionStart,v=e.onCompositionEnd,w=e.open,x=e.attrs,k=e.inputElement||Zb.createElement("input",null),S=k.ref,C=k.props,E=C.onKeyDown,D=C.onChange,O=C.onMouseDown,_=C.onCompositionStart,$=C.onCompositionEnd,j=C.style;return Zb.cloneElement(k,Sa(Sa(Sa({type:"search"},C),{},{id:i,ref:_s(t,S),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:wY("".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":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?d:void 0},x),{},{value:u?p:"",maxLength:f,readOnly:!u,unselectable:u?null:"on",style:Sa(Sa({},j),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),E&&E(e)},onMouseDown:function(e){g(e),O&&O(e)},onChange:function(e){m(e),D&&D(e)},onCompositionStart:function(e){y(e),_&&_(e)},onCompositionEnd:function(e){v(e),$&&$(e)},onPaste:b}))}))).displayName="Input",aN="undefined"!=typeof window&&window.document&&window.document.documentElement,sN=aN,lN=function(e){e.preventDefault(),e.stopPropagation()},cN=function(e){function t(e,t,n,r,o){return Zb.createElement("span",{className:wY("".concat(H,"-item"),Ei({},"".concat(H,"-item-disabled"),n)),title:Iu(e)},Zb.createElement("span",{className:"".concat(H,"-item-content")},t),r&&Zb.createElement(Uj,{className:"".concat(H,"-item-remove"),onMouseDown:lN,onClick:o,customizeIcon:x},"×"))}var n,r,o,i,a=e.id,s=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,d=e.autoClearSearchValue,p=e.inputRef,f=e.placeholder,h=e.disabled,g=e.mode,m=e.showSearch,b=e.autoFocus,y=e.autoComplete,v=e.activeDescendantId,w=e.tabIndex,x=e.removeIcon,k=e.maxTagCount,S=e.maxTagTextLength,C=e.maxTagPlaceholder,E=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,D=e.tagRender,O=e.onToggleOpen,_=e.onRemove,$=e.onInputChange,j=e.onInputPaste,N=e.onInputKeyDown,P=e.onInputMouseDown,I=e.onInputCompositionStart,T=e.onInputCompositionEnd,F=Zb.useRef(null),A=Wa(Zb.useState(0),2),R=A[0],M=A[1],L=Wa(Zb.useState(!1),2),B=L[0],z=L[1],H="".concat(s,"-selection"),W=c||"multiple"===g&&!1===d||"tags"===g?u:"",U="tags"===g||"multiple"===g&&!1===d||m&&(c||B);return o=function(){M(F.current.scrollWidth)},i=[W],sN?Zb.useLayoutEffect(o,i):Zb.useEffect(o,i),n=Zb.createElement("div",{className:"".concat(H,"-search"),style:{width:R},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},Zb.createElement(iN,{ref:p,open:c,prefixCls:s,id:a,inputElement:null,disabled:h,autoFocus:b,autoComplete:y,editable:U,activeDescendantId:v,value:W,onKeyDown:N,onMouseDown:P,onChange:$,onPaste:j,onCompositionStart:I,onCompositionEnd:T,tabIndex:w,attrs:Jl(e,!0)}),Zb.createElement("span",{ref:F,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},W," ")),r=Zb.createElement(oN,{prefixCls:"".concat(H,"-overflow"),data:l,renderItem:function(e){var n,r,o=e.disabled,i=e.label,a=e.value,s=!h&&!o,l=i;return"number"==typeof S&&("string"!=typeof i&&"number"!=typeof i||(n=String(l)).length>S&&(l="".concat(n.slice(0,S),"..."))),r=function(t){t&&t.stopPropagation(),_(e)},"function"==typeof D?function(e,t,n,r,o){return Zb.createElement("span",{onMouseDown:function(e){lN(e),O(!c)}},D({label:t,value:e,disabled:n,closable:r,onClose:o}))}(a,l,o,s,r):t(e,l,o,s,r)},renderRest:function(e){var n="function"==typeof E?E(e):E;return t({title:n},n,!1)},suffix:n,itemKey:Tu,maxCount:k}),Zb.createElement(Zb.Fragment,null,r,!l.length&&!W&&Zb.createElement("span",{className:"".concat(H,"-placeholder")},f))},uN=function(e){var t,n,r,o=e.inputElement,i=e.prefixCls,a=e.id,s=e.inputRef,l=e.disabled,c=e.autoFocus,u=e.autoComplete,d=e.activeDescendantId,p=e.mode,f=e.open,h=e.values,g=e.placeholder,m=e.tabIndex,b=e.showSearch,y=e.searchValue,v=e.activeValue,w=e.maxLength,x=e.onInputKeyDown,k=e.onInputMouseDown,S=e.onInputChange,C=e.onInputPaste,E=e.onInputCompositionStart,D=e.onInputCompositionEnd,O=e.title,_=Wa(Zb.useState(!1),2),$=_[1],j="combobox"===p,N=j||b,P=h[0],I=y||"";return j&&v&&!_[0]&&(I=v),Zb.useEffect((function(){j&&$(!1)}),[j,v]),t=!("combobox"!==p&&!f&&!b||!I),n=void 0===O?Iu(P):O,r=function(){if(P)return null;var e=t?{visibility:"hidden"}:void 0;return Zb.createElement("span",{className:"".concat(i,"-selection-placeholder"),style:e},g)},Zb.createElement(Zb.Fragment,null,Zb.createElement("span",{className:"".concat(i,"-selection-search")},Zb.createElement(iN,{ref:s,prefixCls:i,id:a,open:f,inputElement:o,disabled:l,autoFocus:c,autoComplete:u,editable:N,activeDescendantId:d,value:I,onKeyDown:x,onMouseDown:k,onChange:function(e){$(!0),S(e)},onPaste:C,onCompositionStart:E,onCompositionEnd:D,tabIndex:m,attrs:Jl(e,!0),maxLength:j?w:void 0})),!j&&P?Zb.createElement("span",{className:"".concat(i,"-selection-item"),title:n,style:t?{visibility:"hidden"}:void 0},P.label):null,r())},dN=function(e,t){var n,r,o,i,a,s,l,c,u,d,p=Zb.useRef(null),f=Zb.useRef(!1),h=e.prefixCls,g=e.open,m=e.mode,b=e.showSearch,y=e.tokenWithEnter,v=e.autoClearSearchValue,w=e.onSearch,x=e.onSearchSubmit,k=e.onToggleOpen,S=e.onInputKeyDown,C=e.domRef;return Zb.useImperativeHandle(t,(function(){return{focus:function(){p.current.focus()},blur:function(){p.current.blur()}}})),n=Wa(Du(0),2),r=n[0],o=n[1],i=function(e){var t=e.which;t!==x$.UP&&t!==x$.DOWN||e.preventDefault(),S&&S(e),t!==x$.ENTER||"tags"!==m||f.current||g||null==x||x(e.target.value),[x$.ESC,x$.SHIFT,x$.BACKSPACE,x$.TAB,x$.WIN_KEY,x$.ALT,x$.META,x$.WIN_KEY_RIGHT,x$.CTRL,x$.SEMICOLON,x$.EQUALS,x$.CAPS_LOCK,x$.CONTEXT_MENU,x$.F1,x$.F2,x$.F3,x$.F4,x$.F5,x$.F6,x$.F7,x$.F8,x$.F9,x$.F10,x$.F11,x$.F12].includes(t)||k(!0)},a=function(){o(!0)},s=Zb.useRef(null),l=function(e){!1!==w(e,!0,f.current)&&k(!0)},c=function(e){e.target!==p.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){p.current.focus()})):p.current.focus())},u=function(e){var t=r();e.target===p.current||t||"combobox"===m||e.preventDefault(),("combobox"===m||b&&t)&&g||(g&&!1!==v&&w("",!0,!1),k())},d=Zb.createElement("multiple"===m||"tags"===m?cN:uN,fa({},e,{inputRef:p,onInputKeyDown:i,onInputMouseDown:a,onInputChange:function(e){var t,n=e.target.value;y&&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(){f.current=!0},onInputCompositionEnd:function(e){f.current=!1,"combobox"!==m&&l(e.target.value)}})),Zb.createElement("div",{ref:C,className:"".concat(h,"-selector"),onClick:c,onMouseDown:u},d)},(pN=Zb.forwardRef(dN)).displayName="Selector",fN=Zb.createContext(null),hN=Zb.memo((function(e){return e.children}),(function(e,t){return t.cache})),gN=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.popup,u=e.className,d=e.prefixCls,p=e.style,f=e.target,h=e.onVisibleChanged,g=e.open,m=e.keepDom,b=e.fresh,y=e.onClick,v=e.mask,w=e.arrow,x=e.arrowPos,k=e.align,S=e.motion,C=e.maskMotion,E=e.forceRender,D=e.getPopupContainer,O=e.autoDestroy,_=e.portal,$=e.zIndex,j=e.onMouseEnter,N=e.onMouseLeave,P=e.onPointerEnter,I=e.ready,T=e.offsetX,F=e.offsetY,A=e.offsetR,R=e.offsetB,M=e.onAlign,L=e.onPrepare,B=e.stretch,z=e.targetWidth,H=e.targetHeight,W="function"==typeof c?c():c,U=g||m,V=(null==D?void 0:D.length)>0,G=Wa(Zb.useState(!D||!V),2),q=G[0],X=G[1];return FD((function(){!q&&V&&f&&X(!0)}),[q,V,f]),q?(r={left:"-1000vw",top:"-1000vh",right:n="auto",bottom:n},!I&&g||(i=k.points,s=(a=k.dynamicInset||(null===(o=k._experimental)||void 0===o?void 0:o.dynamicInset))&&"b"===i[0][0],a&&"r"===i[0][1]?(r.right=A,r.left=n):(r.left=T,r.right=n),s?(r.bottom=R,r.top=n):(r.top=F,r.bottom=n)),l={},B&&(B.includes("height")&&H?l.height=H:B.includes("minHeight")&&H&&(l.minHeight=H),B.includes("width")&&z?l.width=z:B.includes("minWidth")&&z&&(l.minWidth=z)),g||(l.pointerEvents="none"),Zb.createElement(_,{open:E||U,getContainer:D&&function(){return D(f)},autoDestroy:O},Zb.createElement(Ku,{prefixCls:d,open:g,zIndex:$,mask:v,motion:C}),Zb.createElement(a_,{onResize:M,disabled:!g},(function(e){return Zb.createElement(bQ,fa({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:"".concat(d,"-hidden")},S,{onAppearPrepare:L,onEnterPrepare:L,visible:g,onVisibleChanged:function(e){var t;null==S||null===(t=S.onVisibleChanged)||void 0===t||t.call(S,e),h(e)}}),(function(n,o){var i=n.style,a=wY(d,n.className,u);return Zb.createElement("div",{ref:_s(e,t,o),className:a,style:Sa(Sa(Sa(Sa({"--arrow-x":"".concat(x.x||0,"px"),"--arrow-y":"".concat(x.y||0,"px")},r),l),i),{},{boxSizing:"border-box",zIndex:$},p),onMouseEnter:j,onMouseLeave:N,onPointerEnter:P,onClick:y},w&&Zb.createElement(Xu,{prefixCls:d,arrow:w,arrowPos:x,align:k}),Zb.createElement(hN,{cache:!g&&!b},W))}))})))):null})),mN=Zb.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=js(n),i=$s(Zb.useCallback((function(e){Os(t,r?r(e):e)}),[r]),n.ref);return o?Zb.cloneElement(n,{ref:i}):n})),bN=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Y0=function(e){var t=arguments.length>0&&void 0!==e?e:X$,n=Zb.forwardRef((function(e,n){function r(e,t,n,r){y[e]=function(o){var i,a,s,l;for(null==r||r(o),j(t,n),a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=b[e])||void 0===i||i.call.apply(i,[b,o].concat(s))}}var o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T,F,A,R,M,L,B,z,H,W,U,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,he,ge,me,be,ye,ve,we,xe,ke,Se,Ce,Ee,De,Oe=e.prefixCls,_e=void 0===Oe?"rc-trigger-popup":Oe,$e=e.children,je=e.action,Ne=void 0===je?"hover":je,Pe=e.showAction,Ie=e.hideAction,Te=e.popupVisible,Fe=e.defaultPopupVisible,Ae=e.onPopupVisibleChange,Re=e.afterPopupVisibleChange,Me=e.mouseEnterDelay,Le=e.mouseLeaveDelay,Be=void 0===Le?.1:Le,ze=e.focusDelay,He=e.blurDelay,We=e.mask,Ue=e.maskClosable,Ve=void 0===Ue||Ue,Ge=e.getPopupContainer,qe=e.forceRender,Xe=e.autoDestroy,Ke=e.destroyPopupOnHide,Ye=e.popup,Qe=e.popupClassName,Je=e.popupStyle,Ze=e.popupPlacement,et=e.builtinPlacements,tt=void 0===et?{}:et,nt=e.popupAlign,rt=e.zIndex,ot=e.stretch,it=e.getPopupClassNameFromAlign,at=e.fresh,st=e.alignPoint,lt=e.onPopupClick,ct=e.onPopupAlign,ut=e.arrow,dt=e.popupMotion,pt=e.maskMotion,ft=e.popupTransitionName,ht=e.popupAnimation,gt=e.maskTransitionName,mt=e.maskAnimation,bt=e.className,yt=e.getTriggerDOMNode,vt=Di(e,bN),wt=Xe||Ke||!1,xt=Wa(Zb.useState(!1),2),kt=xt[0],St=xt[1];return FD((function(){St(K0())}),[]),o=Zb.useRef({}),i=Zb.useContext(fN),a=Zb.useMemo((function(){return{registerSubPopup:function(e,t){o.current[e]=t,null==i||i.registerSubPopup(e,t)}}}),[i]),s=hZ(),l=Wa(Zb.useState(null),2),c=l[0],u=l[1],d=El((function(e){Ns(e)&&c!==e&&u(e),null==i||i.registerSubPopup(s,e)})),p=Wa(Zb.useState(null),2),f=p[0],h=p[1],g=El((function(e){Ns(e)&&f!==e&&h(e)})),m=Zb.Children.only($e),b=(null==m?void 0:m.props)||{},y={},v=El((function(e){var t,n,r=f;return(null==r?void 0:r.contains(e))||(null===(t=Ul(r))||void 0===t?void 0:t.host)===e||e===r||(null==c?void 0:c.contains(e))||(null===(n=Ul(c))||void 0===n?void 0:n.host)===e||e===c||Object.values(o.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),w=Ru(_e,dt,ht,ft),x=Ru(_e,pt,mt,gt),k=Wa(Zb.useState(Fe||!1),2),S=k[1],C=null!=Te?Te:k[0],E=El((function(e){void 0===Te&&S(e)})),FD((function(){S(Te||!1)}),[Te]),(D=Zb.useRef(C)).current=C,O=El((function(e){fS.flushSync((function(){C!==e&&(E(e),null==Ae||Ae(e))}))})),_=Zb.useRef(),$=function(){clearTimeout(_.current)},j=function(e,t){var n=arguments.length>1&&void 0!==t?t:0;$(),0===n?O(e):_.current=setTimeout((function(){O(e)}),1e3*n)},Zb.useEffect((function(){return $}),[]),N=Wa(Zb.useState(!1),2),P=N[0],I=N[1],FD((function(e){e&&!C||I(!0)}),[C]),T=Wa(Zb.useState(null),2),F=T[0],A=T[1],M=(R=Wa(Zb.useState([0,0]),2))[0],L=R[1],B=function(e){L([e.clientX,e.clientY])},z=function(e,t,n,r,o,i,a){var s,l,c,u=Wa(Zb.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),d=u[0],p=u[1],f=Zb.useRef(0),h=Zb.useMemo((function(){return t?Lu(t):[]}),[t]),g=Zb.useRef({});return e||(g.current={}),s=El((function(){var s,l,c,u,d,f,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T,F,A,R,M,L,B,z,H,W,U,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,he,ge,me,be,ye,ve,we,xe,ke,Se,Ce,Ee,De,Oe,_e,$e,je,Ne,Pe,Ie,Te,Fe,Ae,Re,Me,Le,Be,ze,He,We,Ue,Ve,Ge,qe,Xe,Ke,Ye;if(t&&n&&e){let e=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:z,o=D.x+e,i=D.y+t,a=o+N,s=i+j,l=Math.max(o,r.left),c=Math.max(i,r.top),u=Math.min(a,r.right),d=Math.min(s,r.bottom);return Math.max(0,(u-l)*(d-c))},Qe=function(){we=(ve=D.y+ae)+j,ke=(xe=D.x+ie)+N};if(u=(c=t).ownerDocument,f=(d=Mu(c).getComputedStyle(c)).width,m=d.height,b=d.position,y=c.style.left,v=c.style.top,w=c.style.right,x=c.style.bottom,k=Sa(Sa({},o[r]),i),S=u.createElement("div"),null===(s=c.parentElement)||void 0===s||s.appendChild(S),S.style.left="".concat(c.offsetLeft,"px"),S.style.top="".concat(c.offsetTop,"px"),S.style.position=b,S.style.height="".concat(c.offsetHeight,"px"),S.style.width="".concat(c.offsetWidth,"px"),c.style.left="0",c.style.top="0",c.style.right="auto",c.style.bottom="auto",C=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:{x:(E=n.getBoundingClientRect()).x,y:E.y,width:E.width,height:E.height},D=c.getBoundingClientRect(),j=D.height,N=D.width,P=C.height,I=C.width,T={left:0,top:0,right:(O=u.documentElement).clientWidth,bottom:O.clientHeight},A="visible",R="visibleFirst","scroll"!==(F=k.htmlRegion)&&F!==R&&(F=A),M=F===R,L=Hu({left:-($=O.scrollLeft),top:-(_=O.scrollTop),right:O.scrollWidth-$,bottom:O.scrollHeight-_},h),B=Hu(T,h),z=F===A?B:L,H=M?B:z,c.style.left="auto",c.style.top="auto",c.style.right="0",c.style.bottom="0",W=c.getBoundingClientRect(),c.style.left=y,c.style.top=v,c.style.right=w,c.style.bottom=x,null===(l=c.parentElement)||void 0===l||l.removeChild(S),U=Bu(Math.round(N/parseFloat(f)*1e3)/1e3),V=Bu(Math.round(j/parseFloat(m)*1e3)/1e3),0===U||0===V||Ns(n)&&!uJ(n))return;G=k.targetOffset,X=(q=Wa(Uu(D,k.offset),2))[0],K=q[1],Q=(Y=Wa(Uu(C,G),2))[1],C.x-=Y[0],C.y-=Q,Z=(J=Wa(k.points||[],2))[0],ee=Vu(J[1]),te=Vu(Z),ne=Gu(C,ee),re=Gu(D,te),oe=Sa({},k),se=e(ie=ne.x-re.x+X,ae=ne.y-re.y+K),le=e(ie,ae,B),ce=Gu(C,["t","l"]),ue=Gu(D,["t","l"]),de=Gu(C,["b","r"]),pe=Gu(D,["b","r"]),he=(fe=k.overflow||{}).adjustX,ge=fe.adjustY,me=fe.shiftX,be=fe.shiftY,ye=function(e){return"boolean"==typeof e?e:e>=0},Qe(),Se=ye(ge),Ce=te[0]===ee[0],Se&&"t"===te[0]&&(we>H.bottom||g.current.bt)&&(Ee=ae,Ce?Ee-=j-P:Ee=ce.y-pe.y-K,De=e(ie,Ee),Oe=e(ie,Ee,B),De>se||De===se&&(!M||Oe>=le)?(g.current.bt=!0,ae=Ee,K=-K,oe.points=[qu(te,0),qu(ee,0)]):g.current.bt=!1),Se&&"b"===te[0]&&(ve<H.top||g.current.tb)&&(_e=ae,Ce?_e+=j-P:_e=de.y-ue.y-K,$e=e(ie,_e),je=e(ie,_e,B),$e>se||$e===se&&(!M||je>=le)?(g.current.tb=!0,ae=_e,K=-K,oe.points=[qu(te,0),qu(ee,0)]):g.current.tb=!1),Ne=ye(he),Pe=te[1]===ee[1],Ne&&"l"===te[1]&&(ke>H.right||g.current.rl)&&(Ie=ie,Pe?Ie-=N-I:Ie=ce.x-pe.x-X,Te=e(Ie,ae),Fe=e(Ie,ae,B),Te>se||Te===se&&(!M||Fe>=le)?(g.current.rl=!0,ie=Ie,X=-X,oe.points=[qu(te,1),qu(ee,1)]):g.current.rl=!1),Ne&&"r"===te[1]&&(xe<H.left||g.current.lr)&&(Ae=ie,Pe?Ae+=N-I:Ae=de.x-ue.x-X,Re=e(Ae,ae),Me=e(Ae,ae,B),Re>se||Re===se&&(!M||Me>=le)?(g.current.lr=!0,ie=Ae,X=-X,oe.points=[qu(te,1),qu(ee,1)]):g.current.lr=!1),Qe(),"number"==typeof(Le=!0===me?0:me)&&(xe<B.left&&(ie-=xe-B.left-X,C.x+I<B.left+Le&&(ie+=C.x-B.left+I-Le)),ke>B.right&&(ie-=ke-B.right-X,C.x>B.right-Le&&(ie+=C.x-B.right+Le))),"number"==typeof(Be=!0===be?0:be)&&(ve<B.top&&(ae-=ve-B.top-K,C.y+P<B.top+Be&&(ae+=C.y-B.top+P-Be)),we>B.bottom&&(ae-=we-B.bottom-K,C.y>B.bottom-Be&&(ae+=C.y-B.bottom+Be))),He=(ze=D.x+ie)+N,Ue=(We=D.y+ae)+j,Ge=(Ve=C.x)+I,Xe=(qe=C.y)+P,Ke=(Math.max(ze,Ve)+Math.min(He,Ge))/2-ze,Ye=(Math.max(We,qe)+Math.min(Ue,Xe))/2-We,null==a||a(t,oe),p({ready:!0,offsetX:ie/U,offsetY:ae/V,offsetR:(W.right-D.x-(ie+D.width))/U,offsetB:(W.bottom-D.y-(ae+D.height))/V,arrowX:Ke/U,arrowY:Ye/V,scaleX:U,scaleY:V,align:oe})}})),l=function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&s()}))},FD(c=function(){p((function(e){return Sa(Sa({},e),{},{ready:!1})}))},[r]),FD((function(){e||c()}),[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,l]}(C,c,st?M:f,Ze,tt,nt,ct),W=(H=Wa(z,11))[0],U=H[1],V=H[2],G=H[3],q=H[4],X=H[5],K=H[6],Y=H[7],Q=H[8],J=H[9],Z=H[10],ee=function(e,t,n,r){return Zb.useMemo((function(){var o=Fu(null!=n?n:t),i=Fu(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(kt,Ne,Pe,Ie),te=Wa(ee,2),re=te[1],oe=(ne=te[0]).has("click"),ie=re.has("click")||re.has("contextMenu"),ae=El((function(){P||Z()})),function(e,t,n,r){FD((function(){var o,i,a,s,l;if(e&&t&&n){let e=function(){r(),D.current&&st&&ie&&j(!1)};return o=n,i=Lu(t),a=Lu(o),s=Mu(o),(l=new Set([s].concat(xa(i),xa(a)))).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,f,c,ae),FD((function(){ae()}),[M,Ze]),FD((function(){!C||null!=tt&&tt[Ze]||ae()}),[JSON.stringify(nt)]),se=Zb.useMemo((function(){var e=function(e,t,n,r){var o,i,a,s=n.points,l=Object.keys(e);for(o=0;o<l.length;o+=1)if(Au(null===(i=e[a=l[o]])||void 0===i?void 0:i.points,s,r))return"".concat(t,"-placement-").concat(a);return""}(tt,_e,J,st);return wY(e,null==it?void 0:it(J))}),[J,it,tt,_e,st]),Zb.useImperativeHandle(n,(function(){return{forceAlign:ae}})),ce=(le=Wa(Zb.useState(0),2))[0],ue=le[1],pe=(de=Wa(Zb.useState(0),2))[0],fe=de[1],he=function(){if(ot&&f){var e=f.getBoundingClientRect();ue(e.width),fe(e.height)}},ge=function(){he(),ae()},me=function(e){I(!1),Z(),null==Re||Re(e)},be=function(){return new Promise((function(e){he(),A((function(){return e}))}))},FD((function(){F&&(Z(),F(),A(null))}),[F]),(oe||ie)&&(y.onClick=function(e){var t,n,r,o;for(D.current&&ie?j(!1):!D.current&&oe&&(B(e),j(!0)),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=b.onClick)||void 0===t||t.call.apply(t,[b,e].concat(r))}),function(e,t,n,r,o,i,a,s){var l=Zb.useRef(e),c=Zb.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),Zb.useEffect((function(){var e=d_((function(){c.current=!1}));return function(){d_.cancel(e)}}),[e]),Zb.useEffect((function(){var e,u,d,p,f,h,g,m,b;if(t&&r&&(!o||i))return u=Wa((e=function(){var e=!1;return[function(t){e=a(t.target)},function(t){c.current||!l.current||e||a(t.target)||s(!1)}]})(),2),d=u[0],p=u[1],f=Wa(e(),2),h=f[0],g=f[1],(m=Mu(r)).addEventListener("mousedown",d,!0),m.addEventListener("click",p,!0),m.addEventListener("contextmenu",p,!0),(b=Ul(n))&&(b.addEventListener("mousedown",h,!0),b.addEventListener("click",g,!0),b.addEventListener("contextmenu",g,!0)),function(){m.removeEventListener("mousedown",d,!0),m.removeEventListener("click",p,!0),m.removeEventListener("contextmenu",p,!0),b&&(b.removeEventListener("mousedown",h,!0),b.removeEventListener("click",g,!0),b.removeEventListener("contextmenu",g,!0))}}),[t,n,r,o,i])}(C,ie,f,c,We,Ve,v,j),ye=ne.has("hover"),ve=re.has("hover"),ye&&(r("onMouseEnter",!0,Me,(function(e){B(e)})),r("onPointerEnter",!0,Me,(function(e){B(e)})),we=function(){(C||P)&&j(!0,Me)},st&&(y.onMouseMove=function(e){var t;null===(t=b.onMouseMove)||void 0===t||t.call(b,e)})),ve&&(r("onMouseLeave",!1,Be),r("onPointerLeave",!1,Be),xe=function(){j(!1,Be)}),ne.has("focus")&&r("onFocus",!0,ze),re.has("focus")&&r("onBlur",!1,He),ne.has("contextMenu")&&(y.onContextMenu=function(e){var t,n,r,o;for(D.current&&re.has("contextMenu")?j(!1):(B(e),j(!0)),e.preventDefault(),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=b.onContextMenu)||void 0===t||t.call.apply(t,[b,e].concat(r))}),bt&&(y.className=wY(b.className,bt)),ke=Sa(Sa({},b),y),Se={},["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){vt[e]&&(Se[e]=function(){var t,n,r,o;for(n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=ke[e])||void 0===t||t.call.apply(t,[ke].concat(r)),vt[e].apply(vt,r)})})),Ce=Zb.cloneElement(m,Sa(Sa({},ke),Se)),Ee={x:X,y:K},De=ut?Sa({},!0!==ut?ut:{}):null,Zb.createElement(Zb.Fragment,null,Zb.createElement(a_,{disabled:!C,ref:g,onResize:ge},Zb.createElement(mN,{getTriggerDOMNode:yt},Ce)),Zb.createElement(fN.Provider,{value:a},Zb.createElement(gN,{portal:t,ref:d,prefixCls:_e,popup:Ye,className:wY(Qe,se),style:Je,target:f,onMouseEnter:we,onMouseLeave:xe,onPointerEnter:we,zIndex:rt,open:C,keepDom:P,fresh:at,onClick:lt,mask:We,motion:w,maskMotion:x,onVisibleChanged:me,onPrepare:be,forceRender:qe,autoDestroy:wt,getPopupContainer:Ge,align:J,arrow:De,arrowPos:Ee,ready:W,offsetX:U,offsetY:V,offsetR:G,offsetB:q,onAlign:ae,stretch:ot,targetWidth:ce/Y,targetHeight:pe/Q})))}));return n}(X$);yN=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],vN=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},wN=function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j=e.prefixCls;return n=e.visible,r=e.children,o=e.popupElement,i=e.animation,a=e.transitionName,s=e.dropdownStyle,l=e.dropdownClassName,u=void 0===(c=e.direction)?"ltr":c,d=e.placement,p=e.builtinPlacements,f=e.dropdownMatchSelectWidth,h=e.dropdownRender,g=e.dropdownAlign,m=e.getPopupContainer,b=e.empty,y=e.getTriggerDOMNode,v=e.onPopupVisibleChange,w=e.onPopupMouseEnter,x=Di(e,yN),k="".concat(j,"-dropdown"),S=o,h&&(S=h(o)),C=Zb.useMemo((function(){return p||vN(f)}),[p,f]),E=i?"".concat(k,"-").concat(i):a,O=Zb.useMemo((function(){return D?null:!1===f?"minWidth":"width"}),[f,D="number"==typeof f]),_=s,D&&(_=Sa(Sa({},_),{},{width:f})),$=Zb.useRef(null),Zb.useImperativeHandle(t,(function(){return{getPopupElement:function(){return $.current}}})),Zb.createElement(Y0,fa({},x,{showAction:v?["click"]:[],hideAction:v?["click"]:[],popupPlacement:d||("rtl"===u?"bottomRight":"bottomLeft"),builtinPlacements:C,prefixCls:k,popupTransitionName:E,popup:Zb.createElement("div",{ref:$,onMouseEnter:w},S),stretch:O,popupAlign:g,popupVisible:n,getPopupContainer:m,popupClassName:wY(l,Ei({},"".concat(k,"-empty"),b)),popupStyle:_,getTriggerDOMNode:y,onPopupVisibleChange:v}),r)},(xN=Zb.forwardRef(wN)).displayName="SelectTrigger",kN=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],SN=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],CN=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T,F,A,R,M,L,B,z,H,W,U,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie=e.id,ae=e.prefixCls,se=e.className,le=e.showSearch,ce=e.tagRender,ue=e.direction,de=e.omitDomProps,pe=e.displayValues,fe=e.onDisplayValuesChange,he=e.emptyOptions,ge=e.notFoundContent,me=void 0===ge?"Not Found":ge,be=e.onClear,ye=e.mode,ve=e.disabled,we=e.loading,xe=e.getInputElement,ke=e.getRawInputElement,Se=e.open,Ce=e.defaultOpen,Ee=e.onDropdownVisibleChange,De=e.activeValue,Oe=e.onActiveValueChange,_e=e.activeDescendantId,$e=e.searchValue,je=e.autoClearSearchValue,Ne=e.onSearch,Pe=e.onSearchSplit,Ie=e.tokenSeparators,Te=e.allowClear,Fe=e.suffixIcon,Ae=e.clearIcon,Re=e.OptionList,Me=e.animation,Le=e.transitionName,Be=e.dropdownStyle,ze=e.dropdownClassName,He=e.dropdownMatchSelectWidth,We=e.dropdownRender,Ue=e.dropdownAlign,Ve=e.placement,Ge=e.builtinPlacements,qe=e.getPopupContainer,Xe=e.showAction,Ke=void 0===Xe?[]:Xe,Ye=e.onFocus,Qe=e.onBlur,Je=e.onKeyUp,Ze=e.onKeyDown,et=e.onMouseDown,tt=Di(e,kN),nt=Zu(ye),rt=(void 0!==le?le:nt)||"combobox"===ye,ot=Sa({},tt);return SN.forEach((function(e){delete ot[e]})),null==de||de.forEach((function(e){delete ot[e]})),o=Wa(Zb.useState(!1),2),i=o[0],a=o[1],Zb.useEffect((function(){a(K0())}),[]),s=Zb.useRef(null),l=Zb.useRef(null),c=Zb.useRef(null),u=Zb.useRef(null),d=Zb.useRef(null),p=Zb.useRef(!1),f=function(e){var t=arguments.length>0&&void 0!==e?e:10,n=Wa(Zb.useState(!1),2),r=n[0],o=n[1],i=Zb.useRef(null),a=function(){window.clearTimeout(i.current)};return Zb.useEffect((function(){return a}),[]),[r,function(e,n){a(),i.current=window.setTimeout((function(){o(e),n&&n()}),t)},a]}(),g=(h=Wa(f,3))[0],m=h[1],b=h[2],Zb.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=d.current)||void 0===t?void 0:t.scrollTo(e)}}})),y=Zb.useMemo((function(){var e,t;return"combobox"!==ye?$e:"string"==typeof(t=null===(e=pe[0])||void 0===e?void 0:e.value)||"number"==typeof t?String(t):""}),[$e,ye,pe]),v="combobox"===ye&&"function"==typeof xe&&xe()||null,w="function"==typeof ke&&ke(),x=$s(l,null==w||null===(n=w.props)||void 0===n?void 0:n.ref),S=(k=Wa(Zb.useState(!1),2))[0],C=k[1],FD((function(){C(!0)}),[]),E=Wa(_l(!1,{defaultValue:Ce,value:Se}),2),D=E[0],_=!!S&&D,$=!me&&he,(ve||$&&_&&"combobox"===ye)&&(_=!1),j=!$&&_,N=Zb.useCallback((function(e){var t=void 0!==e?e:!_;ve||(O(t),_!==t&&(null==Ee||Ee(t)))}),[ve,_,O=E[1],Ee]),P=Zb.useMemo((function(){return(Ie||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Ie]),I=function(e,t,n){var r,o,i,a,s=!0,l=e;return null==Oe||Oe(null),r=n?null:(o=Ie)&&o.length?(i=!1,a=function e(t,n){var r,o=Gs(n),a=o[0],s=o.slice(1);return a?(r=t.split(a),i=i||r.length>1,r.reduce((function(t,n){return[].concat(xa(t),xa(e(n,s)))}),[]).filter((function(e){return e}))):[t]}(e,o),i?a:null):null,"combobox"!==ye&&r&&(l="",null==Pe||Pe(r),N(!1),s=!1),Ne&&y!==l&&Ne(l,{source:t?"typing":"effect"}),s},T=function(e){e&&e.trim()&&Ne(e,{source:"submit"})},Zb.useEffect((function(){_||nt||"combobox"===ye||I("",!1,!1)}),[_]),Zb.useEffect((function(){D&&ve&&O(!1),ve&&!p.current&&m(!1)}),[ve]),F=Wa(Du(),2),A=F[0],R=F[1],M=function(e){var t,n,r,o,i,a,s,l,c=A(),u=e.which;if(u===x$.ENTER&&("combobox"!==ye&&e.preventDefault(),_||N(!0)),R(!!y),u===x$.BACKSPACE&&!c&&nt&&!y&&pe.length){for(n=null,r=(t=xa(pe)).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(i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];_&&d.current&&(l=d.current).onKeyDown.apply(l,[e].concat(a)),null==Ze||Ze.apply(void 0,[e].concat(a))},L=function(e){var t,n,r,o;for(t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_&&d.current&&(o=d.current).onKeyUp.apply(o,[e].concat(n)),null==Je||Je.apply(void 0,[e].concat(n))},B=function(e){var t=pe.filter((function(t){return t!==e}));fe(t,{type:"remove",values:[e]})},z=Zb.useRef(!1),H=function(){m(!0),ve||(Ye&&!z.current&&Ye.apply(void 0,arguments),Ke.includes("focus")&&N(!0)),z.current=!0},W=function(){p.current=!0,m(!1,(function(){z.current=!1,p.current=!1,N(!1)})),ve||(y&&("tags"===ye?Ne(y,{source:"submit"}):"multiple"===ye&&Ne("",{source:"blur"})),Qe&&Qe.apply(void 0,arguments))},U=[],Zb.useEffect((function(){return function(){U.forEach((function(e){return clearTimeout(e)})),U.splice(0,U.length)}}),[]),V=function(e){var t,n,r,o,a,s=e.target,l=null===(t=c.current)||void 0===t?void 0:t.getPopupElement();for(l&&l.contains(s)&&(n=setTimeout((function(){var e,t=U.indexOf(n);-1!==t&&U.splice(t,1),b(),i||l.contains(document.activeElement)||null===(e=u.current)||void 0===e||e.focus()})),U.push(n)),r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];null==et||et.apply(void 0,[e].concat(o))},G=Wa(Zb.useState({}),2),q=G[1],w&&(X=function(e){N(e)}),function(e,t,n,r){var o=Zb.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},Zb.useEffect((function(){function e(e){var t,n,r;null!==(t=o.current)&&void 0!==t&&t.customizedTrigger||((n=e.target).shadowRoot&&e.composed&&(n=e.composedPath()[0]||n),o.current.open&&[s.current,null===(r=c.current)||void 0===r?void 0:r.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(n)&&e!==n}))&&o.current.triggerOpen(!1))}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,j,N,!!w),K=Zb.useMemo((function(){return Sa(Sa({},e),{},{notFoundContent:me,open:_,triggerOpen:j,id:ie,showSearch:rt,multiple:nt,toggleOpen:N})}),[e,me,j,_,ie,rt,nt,N]),(Y=!!Fe||we)&&(Q=Zb.createElement(Uj,{className:wY("".concat(ae,"-arrow"),Ei({},"".concat(ae,"-arrow-loading"),we)),customizeIcon:Fe,customizeIconProps:{loading:we,searchValue:y,open:_,focused:g,showSearch:rt}})),J=function(e,t,n,r,o,i,a,s){var l=arguments.length>5&&void 0!==i&&i,c=arguments.length>6?a:void 0,u=arguments.length>7?s:void 0,d=AK.useMemo((function(){return"object"===Si(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:AK.useMemo((function(){return!(l||!r||!n.length&&!c||"combobox"===u&&""===c)}),[r,l,n.length,c,u]),clearIcon:AK.createElement(Uj,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:d},"×")}}(ae,(function(){var e;null==be||be(),null===(e=u.current)||void 0===e||e.focus(),fe([],{type:"clear",values:pe}),I("",!1,!1)}),pe,Te,Ae,ve,y,ye),Z=J.allowClear,ee=J.clearIcon,te=Zb.createElement(Re,{ref:d}),ne=wY(ae,se,(Ei(r={},"".concat(ae,"-focused"),g),Ei(r,"".concat(ae,"-multiple"),nt),Ei(r,"".concat(ae,"-single"),!nt),Ei(r,"".concat(ae,"-allow-clear"),Te),Ei(r,"".concat(ae,"-show-arrow"),Y),Ei(r,"".concat(ae,"-disabled"),ve),Ei(r,"".concat(ae,"-loading"),we),Ei(r,"".concat(ae,"-open"),_),Ei(r,"".concat(ae,"-customize-input"),v),Ei(r,"".concat(ae,"-show-search"),rt),r)),re=Zb.createElement(xN,{ref:c,disabled:ve,prefixCls:ae,visible:j,popupElement:te,animation:Me,transitionName:Le,dropdownStyle:Be,dropdownClassName:ze,direction:ue,dropdownMatchSelectWidth:He,dropdownRender:We,dropdownAlign:Ue,placement:Ve,builtinPlacements:Ge,getPopupContainer:qe,empty:he,getTriggerDOMNode:function(){return l.current},onPopupVisibleChange:X,onPopupMouseEnter:function(){q({})}},w?Zb.cloneElement(w,{ref:x}):Zb.createElement(pN,fa({},e,{domRef:l,prefixCls:ae,inputElement:v,ref:u,id:ie,showSearch:rt,autoClearSearchValue:je,mode:ye,activeDescendantId:_e,tagRender:ce,values:pe,open:_,onToggleOpen:N,activeValue:De,searchValue:y,onSearch:I,onSearchSubmit:T,onRemove:B,tokenWithEnter:P}))),oe=w?re:Zb.createElement("div",fa({className:ne},ot,{ref:s,onMouseDown:V,onKeyDown:M,onKeyUp:L,onFocus:H,onBlur:W}),g&&!_&&Zb.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(pe.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(Si(t))?t:n})).join(", "))),re,Q,Z&&ee),Zb.createElement(Vj.Provider,{value:K},oe)})),EN=0,DN=Pa(),ON=["children","value"],_N=["children"],($N=function(){return null}).isSelectOptGroup=!0,(jN=function(){return null}).isSelectOption=!0,(NN=Zb.forwardRef((function(e,t){var n,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},p={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:e.height,position:"relative",overflow:"hidden"},p=Sa(Sa({},p),{},(Ei(n={transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),Ei(n,"position","absolute"),Ei(n,"left",0),Ei(n,"right",0),Ei(n,"top",0),n))),Zb.createElement("div",{style:d},Zb.createElement(a_,{onResize:function(e){e.offsetHeight&&s&&s()}},Zb.createElement("div",fa({style:p,className:wY(Ei({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))}))).displayName="Filler",PN=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.prefixCls,u=e.rtl,d=e.scrollOffset,p=e.scrollRange,f=e.onStartMove,h=e.onStopMove,g=e.onScroll,m=e.horizontal,b=e.spinSize,y=e.containerSize,v=e.style,w=e.thumbStyle,x=Wa(Zb.useState(!1),2),k=x[0],S=x[1],C=Wa(Zb.useState(null),2),E=C[0],D=C[1],O=Wa(Zb.useState(null),2),_=O[0],$=O[1],j=!u,N=Zb.useRef(),P=Zb.useRef(),I=Wa(Zb.useState(!1),2),T=I[0],F=I[1],A=Zb.useRef(),R=function(){clearTimeout(A.current),F(!0),A.current=setTimeout((function(){F(!1)}),3e3)},M=p-y||0,L=y-b||0,B=M>0,z=Zb.useMemo((function(){return 0===d||0===M?0:d/M*L}),[d,M,L]),H=Zb.useRef({top:z,dragging:k,pageY:E,startTop:_});return H.current={top:z,dragging:k,pageY:E,startTop:_},r=function(e){S(!0),D(nd(e,m)),$(H.current.top),f(),e.stopPropagation(),e.preventDefault()},Zb.useEffect((function(){var e=function(e){e.preventDefault()},t=N.current,n=P.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",r),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",r)}}),[]),(o=Zb.useRef()).current=M,(i=Zb.useRef()).current=L,Zb.useEffect((function(){var e,t,n;if(k)return t=function(t){var n,r,a,s,l,c=H.current,u=c.dragging,d=c.pageY,p=c.startTop;d_.cancel(e),u&&(n=nd(t,m)-d,r=p,!j&&m?r-=n:r+=n,a=o.current,s=i.current,l=Math.ceil((s?r/s:0)*a),l=Math.max(l,0),l=Math.min(l,a),e=d_((function(){g(l,m)})))},n=function(){S(!1),h()},window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),d_.cancel(e)}}),[k]),Zb.useEffect((function(){R()}),[d]),Zb.useImperativeHandle(t,(function(){return{delayHidden:R}})),a="".concat(c,"-scrollbar"),s={position:"absolute",visibility:T&&B?null:"hidden"},l={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},m?(s.height=8,s.left=0,s.right=0,s.bottom=0,l.height="100%",l.width=b,j?l.left=z:l.right=z):(s.width=8,s.top=0,s.bottom=0,j?s.right=0:s.left=0,l.width="100%",l.height=b,l.top=z),Zb.createElement("div",{ref:N,className:wY(a,(n={},Ei(n,"".concat(a,"-horizontal"),m),Ei(n,"".concat(a,"-vertical"),!m),Ei(n,"".concat(a,"-visible"),T),n)),style:Sa(Sa({},s),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:R},Zb.createElement("div",{ref:P,className:wY("".concat(a,"-thumb"),Ei({},"".concat(a,"-thumb-moving"),k)),style:Sa(Sa({},l),w),onMouseDown:r}))})),IN=function(){function e(){_i(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return ji(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),TN=10,FN="object"===("undefined"==typeof navigator?"undefined":Si(navigator))&&/Firefox/i.test(navigator.userAgent);const Q0=function(e,t){var n=Zb.useRef(!1),r=Zb.useRef(null),o=Zb.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e,t){var i=e<0&&o.current.top||e>0&&o.current.bottom;return arguments.length>1&&void 0!==t&&t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};AN=14/15,RN=20,MN=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],LN=[],BN={overflowY:"auto",overflowAnchor:"none"},(zN=Zb.forwardRef(id)).displayName="List",HN=Zb.createContext(null),WN=["disabled","title","children","style","className"],UN=function(e,t){function n(e,t){return{role:e.group?"presentation":"option",id:"".concat(d,"_list_").concat(t)}}var r,o,i,a,s,l,c=Zb.useContext(Vj),u=c.prefixCls,d=c.id,p=c.open,f=c.multiple,h=c.mode,g=c.searchValue,m=c.toggleOpen,b=c.notFoundContent,y=c.onPopupScroll,v=Zb.useContext(HN),w=v.flattenOptions,x=v.onActiveValue,k=v.defaultActiveFirstOption,S=v.onSelect,C=v.menuItemSelectedIcon,E=v.rawValues,D=v.fieldNames,O=v.virtual,_=v.direction,$=v.listHeight,j=v.listItemHeight,N="".concat(u,"-item"),P=Ea((function(){return w}),[p,w],(function(e,t){return t[0]&&e[1]!==t[1]})),I=Zb.useRef(null),T=function(e){e.preventDefault()},F=function(e){I.current&&I.current.scrollTo("number"==typeof e?{index:e}:e)},A=function(e,t){var n,r,o,i=arguments.length>1&&void 0!==t?t:1,a=P.length;for(n=0;n<a;n+=1)if(!(o=P[r=(e+n*i+a)%a]).group&&!o.data.disabled)return r;return-1},R=Wa(Zb.useState((function(){return A(0)})),2),M=R[0],L=R[1],B=function(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t;L(e),n={source:o?"keyboard":"mouse"},(r=P[e])?x(r.value,e,n):x(null,-1,n)};return Zb.useEffect((function(){B(!1!==k?A(0):-1)}),[P.length,g]),r=Zb.useCallback((function(e){return E.has(e)&&"combobox"!==h}),[h,xa(E).toString(),E.size]),Zb.useEffect((function(){var e,t=setTimeout((function(){var e,t;!f&&p&&1===E.size&&(e=Array.from(E)[0],-1!==(t=P.findIndex((function(t){return t.data.value===e})))&&(B(t),F(t)))}));return p&&(null===(e=I.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[p,g]),o=function(e){void 0!==e&&S(e,{selected:!E.has(e)}),f||m(!1)},Zb.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t,n,r,i=e.which,a=e.ctrlKey;switch(i){case x$.N:case x$.P:case x$.UP:case x$.DOWN:t=0,i===x$.UP?t=-1:i===x$.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&a&&(i===x$.N?t=1:i===x$.P&&(t=-1)),0!==t&&(n=A(M+t,t),F(n),B(n,!0));break;case x$.ENTER:o((r=P[M])&&!r.data.disabled?r.value:void 0),p&&e.preventDefault();break;case x$.ESC:m(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){F(e)}}})),0===P.length?Zb.createElement("div",{role:"listbox",id:"".concat(d,"_list"),className:"".concat(N,"-empty"),onMouseDown:T},b):(i=Object.keys(D).map((function(e){return D[e]})),a=function(e){return e.label},s=function(e){var t,o,i,s,l,c=P[e];return c?(o=(t=c.data||{}).value,i=c.group,s=Jl(t,!0),l=a(c),c?Zb.createElement("div",fa({"aria-label":"string"!=typeof l||i?null:l},s,{key:e},n(c,e),{"aria-selected":r(o)}),o):null):null},l={role:"listbox",id:"".concat(d,"_list")},Zb.createElement(Zb.Fragment,null,O&&Zb.createElement("div",fa({},l,{style:{height:0,width:0,overflow:"hidden"}}),s(M-1),s(M),s(M+1)),Zb.createElement(zN,{itemKey:"key",ref:I,data:P,height:$,itemHeight:j,fullHeight:!1,onMouseDown:T,onScroll:y,virtual:O,direction:_,innerProps:O?null:l},(function(e,t){var s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k=e.groupOption,S=e.data,E=e.label,D=e.value,_=S.key;return e.group?(c=null!==(l=S.title)&&void 0!==l?l:ad(E)?E.toString():void 0,Zb.createElement("div",{className:wY(N,"".concat(N,"-group")),title:c},void 0!==E?E:_)):(u=S.disabled,d=S.title,p=S.style,f=S.className,h=Us(Di(S,WN),i),g=r(D),m="".concat(N,"-option"),b=wY(N,m,f,(Ei(s={},"".concat(m,"-grouped"),k),Ei(s,"".concat(m,"-active"),M===t&&!u),Ei(s,"".concat(m,"-disabled"),u),Ei(s,"".concat(m,"-selected"),g),s)),y=a(e),v=!C||"function"==typeof C||g,x=ad(w="number"==typeof y?y:y||D)?w.toString():void 0,void 0!==d&&(x=d),Zb.createElement("div",fa({},Jl(h),O?{}:n(e,t),{"aria-selected":g,className:b,title:x,onMouseMove:function(){M===t||u||B(t)},onClick:function(){u||o(D)},style:p}),Zb.createElement("div",{className:"".concat(m,"-content")},w),Zb.isValidElement(C)||g,v&&Zb.createElement(Uj,{className:"".concat(N,"-option-state"),customizeIcon:C,customizeIconProps:{value:D,disabled:u,isSelected:g}},g?"✓":null)))}))))},(VN=Zb.forwardRef(UN)).displayName="OptionList",GN=["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"],qN=["inputValue"],XN=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S=e.id,C=e.mode,E=e.prefixCls,D=void 0===E?"rc-select":E,O=e.backfill,_=e.fieldNames,$=e.inputValue,j=e.searchValue,N=e.onSearch,P=e.autoClearSearchValue,I=void 0===P||P,T=e.onSelect,F=e.onDeselect,A=e.dropdownMatchSelectWidth,R=void 0===A||A,M=e.filterOption,L=e.filterSort,B=e.optionFilterProp,z=e.optionLabelProp,H=e.options,W=e.children,U=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=Di(e,GN),re=function(e){var t=Wa(Zb.useState(),2),n=t[0],r=t[1];return Zb.useEffect((function(){var e;r("rc_select_".concat((DN?(e=EN,EN+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(S),oe=Zu(C),ie=!(H||!W),ae=Zb.useMemo((function(){return(void 0!==M||"combobox"!==C)&&M}),[M,C]),se=Zb.useMemo((function(){return Qu(_,ie)}),[JSON.stringify(_),ie]),le=Wa(_l("",{value:void 0!==j?j:$,postState:function(e){return e||""}}),2),ce=le[0],ue=le[1],de=function(e,t,n,r,o){return Zb.useMemo((function(){var i,a,s,l=e;return!e&&(l=ed(t)),i=new Map,a=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)},function e(t,l){var c,u,d=arguments.length>1&&void 0!==l&&l;for(c=0;c<t.length;c+=1)!(u=t[c])[n.options]||d?(i.set(u[n.value],u),s(a,u,n.label),s(a,u,r),s(a,u,o)):e(u[n.options],!0)}(l),{options:l,valueOptions:i,labelOptions:a}}),[e,t,n,r,o])}(H,W,se,B,z),pe=de.valueOptions,fe=de.labelOptions,he=de.options,ge=Zb.useCallback((function(e){return Nu(e).map((function(e){var t,n,r,o,i,a,s,l;return function(e){return!e||"object"!==Si(e)}(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r),(s=pe.get(t))&&(void 0===n&&(n=null==s?void 0:s[z||se.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),o=null==s?void 0:s.disabled,i=null==s?void 0:s.title),{label:n,value:t,key:r,disabled:o,title:i}}))}),[se,z,pe]),me=Wa(_l(Z,{value:J}),2),be=me[0],ye=me[1],ve=Zb.useMemo((function(){var e,t=ge(be);return"combobox"===C&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[be,ge,C]),we=function(e,t){var n=Zb.useRef({values:new Map,options:new Map});return[Zb.useMemo((function(){var r=n.current,o=r.values,i=r.options,a=e.map((function(e){var t;return void 0===e.label?Sa(Sa({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=s,n.current.options=l,a}),[e,t]),Zb.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ve,pe),xe=Wa(we,2),ke=xe[0],Se=xe[1],Ce=Zb.useMemo((function(){if(!C&&1===ke.length){var e=ke[0];if(null===e.value&&null==e.label)return[]}return ke.map((function(e){var t;return Sa(Sa({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[C,ke]),Ee=Zb.useMemo((function(){return new Set(ke.map((function(e){return e.value})))}),[ke]);return Zb.useEffect((function(){var e,t;"combobox"===C&&(t=null===(e=ke[0])||void 0===e?void 0:e.value,ue(function(e){return null!=e}(t)?String(t):""))}),[ke]),n=td((function(e,t){var n,r=null!=t?t:e;return Ei(n={},se.value,e),Ei(n,se.label,r),n})),r=Zb.useMemo((function(){var e,t;return"tags"!==C?he:(e=xa(he),t=function(e){return pe.has(e)},xa(ke).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(r){var o=r.value;t(o)||e.push(n(o,r.label))})),e)}),[n,he,pe,ke,C]),o=function(e,t,n,r,o){return Zb.useMemo((function(){var i,a,s,l,c,u,d,p;return n&&!1!==r?(i=t.options,a=t.label,s=t.value,l=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:function(e,t){return n=u,Nu(o?t[o]:t[i]?t["children"!==a?a:"label"]:t[s]).join("").toUpperCase().includes(n);var n},p=c?function(e){return Ju(e)}:function(e){return e},e.forEach((function(e){var t;e[i]?d(n,p(e))?l.push(e):(t=e[i].filter((function(e){return d(n,p(e))}))).length&&l.push(Sa(Sa({},e),{},Ei({},i,t))):d(n,p(e))&&l.push(e)})),l):e}),[e,r,o,n,t])}(r,se,ce,ae,B),i=Zb.useMemo((function(){return"tags"!==C||!ce||o.some((function(e){return e[B||"value"]===ce}))||o.some((function(e){return e[se.value]===ce}))?o:[n(ce)].concat(xa(o))}),[n,B,C,o,ce,se]),a=Zb.useMemo((function(){return L?xa(i).sort((function(e,t){return L(e,t)})):i}),[i,L]),s=Zb.useMemo((function(){return function(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=n.childrenAsData,o=[],i=Qu(n.fieldNames,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){t.forEach((function(t){var i,u;n||!(l in t)?(i=t[s],o.push({key:Yu(t,o.length),groupOption:n,data:t,label:t[a],value:i})):(void 0===(u=t[c])&&r&&(u=t.label),o.push({key:Yu(t,o.length),group:!0,data:t,label:u}),e(t[l],!0))}))}(e,!1),o}(a,{fieldNames:se,childrenAsData:ie})}),[a,se,ie]),l=function(e){var t,n,r=ge(e);ye(r),te&&(r.length!==ke.length||r.some((function(e,t){var n;return(null===(n=ke[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 Ju(Se(e.value))})),te(oe?t:t[0],oe?n:n[0]))},u=(c=Wa(Zb.useState(null),2))[0],d=c[1],f=(p=Wa(Zb.useState(0),2))[0],h=p[1],g=void 0!==U?U:"combobox"!==C,m=Zb.useCallback((function(e,t,n){var r=(arguments.length>2&&void 0!==n?n:{}).source,o=void 0===r?"keyboard":r;h(t),O&&"combobox"===C&&null!==e&&"keyboard"===o&&d(String(e))}),[O,C]),b=function(e,t,n){var r,o,i=function(){var t,n=Se(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,Ju(n)]};t&&T?(r=Wa(i(),2),T(r[0],r[1])):!t&&F&&"clear"!==n&&(o=Wa(i(),2),F(o[0],o[1]))},y=td((function(e,t){var n,r=!oe||t.selected;n=r?oe?[].concat(xa(ke),[e]):[e]:ke.filter((function(t){return t.value!==e})),l(n),b(e,r),"combobox"===C?d(""):Zu&&!I||(ue(""),d(""))})),v=function(e,t){l(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach((function(e){b(e.value,!1,n)}))},w=function(e,t){var n,r;ue(e),d(null),"submit"!==t.source?"blur"!==t.source&&("combobox"===C&&l(e),null==N||N(e)):(n=(e||"").trim())&&(r=Array.from(new Set([].concat(xa(Ee),[n]))),l(r),b(n,!0),ue(""))},x=function(e){var t,n=e;"tags"!==C&&(n=e.map((function(e){var t=fe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e}))),t=Array.from(new Set([].concat(xa(Ee),xa(n)))),l(t),t.forEach((function(e){b(e,!0)}))},k=Zb.useMemo((function(){var e=!1!==G&&!1!==R;return Sa(Sa({},de),{},{flattenOptions:s,onActiveValue:m,defaultActiveFirstOption:g,onSelect:y,menuItemSelectedIcon:V,rawValues:Ee,fieldNames:se,virtual:e,direction:q,listHeight:K,listItemHeight:Q,childrenAsData:ie})}),[de,s,m,g,y,V,Ee,se,G,R,K,Q,ie]),Zb.createElement(HN.Provider,{value:k},Zb.createElement(CN,fa({},ne,{id:re,prefixCls:D,ref:t,omitDomProps:qN,mode:C,displayValues:Ce,onDisplayValuesChange:v,direction:q,searchValue:ce,onSearch:w,autoClearSearchValue:I,onSearchSplit:x,dropdownMatchSelectWidth:R,OptionList:VN,emptyOptions:!s.length,activeValue:u,activeDescendantId:"".concat(re,"_list_").concat(f)})))})),(KN=XN).Option=jN,KN.OptGroup=$N;const J0=(e,t)=>t||e,Z0=()=>{const[,e]=Cl(),t=new y_(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Zb.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Zb.createElement("g",{fill:"none",fillRule:"evenodd"},Zb.createElement("g",{transform:"translate(24 31.67)"},Zb.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Zb.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"}),Zb.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)"}),Zb.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"}),Zb.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"})),Zb.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"}),Zb.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Zb.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Zb.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},e1=()=>{const[,e]=Cl(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=Zb.useMemo((()=>({borderColor:new y_(t).onBackground(o).toHexShortString(),shadowColor:new y_(n).onBackground(o).toHexShortString(),contentColor:new y_(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return Zb.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Zb.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Zb.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),Zb.createElement("g",{fillRule:"nonzero",stroke:i},Zb.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"}),Zb.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}))))},t1=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,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}}}}},n1=Nl("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=$l(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[t1(r)]}));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const r1=Zb.createElement(Z0,null),o1=Zb.createElement(e1,null),i1=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=r1,description:i,children:a,imageStyle:s,style:l}=e,c=YN(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:p}=Zb.useContext(XY),f=u("empty",r),[h,g]=n1(f),[m]=IY("Empty"),b=void 0!==i?i:null==m?void 0:m.description;let y=null;return y="string"==typeof o?Zb.createElement("img",{alt:"string"==typeof b?b:"empty",src:o}):o,h(Zb.createElement("div",Object.assign({className:wY(g,f,null==p?void 0:p.className,{[`${f}-normal`]:o===o1,[`${f}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),l)},c),Zb.createElement("div",{className:`${f}-image`,style:s},y),b&&Zb.createElement("div",{className:`${f}-description`},b),a&&Zb.createElement("div",{className:`${f}-footer`},a)))};i1.PRESENTED_IMAGE_DEFAULT=r1,i1.PRESENTED_IMAGE_SIMPLE=o1;const a1=i1,s1=e=>{const{componentName:t}=e,{getPrefixCls:n}=Zb.useContext(XY),r=n("empty");switch(t){case"Table":case"List":return AK.createElement(a1,{image:a1.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return AK.createElement(a1,{image:a1.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return AK.createElement(a1,null)}},l1=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},c1=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},sQ(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 ${o}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:BZ},[`\n ${o}${s}topLeft,\n ${i}${s}topLeft,\n ${o}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:HZ},[`${a}${s}bottomLeft`]:{animationName:zZ},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:WZ},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},l1(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"},aQ),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},KZ(e,"slide-up"),KZ(e,"slide-down"),LZ(e,"move-up"),LZ(e,"move-down")]},u1=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]},d1=e=>{const{componentCls:t}=e,n=$l(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$l(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=u1(e);return[ld(e),ld(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},ld(r,"lg")]},p1=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,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",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},f1=function(e,t,n){let r=arguments.length>2&&void 0!==n&&n;const{componentCls:o,borderHoverColor:i,antCls:a,borderActiveColor:s,outlineColor:l,controlOutlineWidth:c}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},r?{[`${o}-selector`]:{borderColor:s}}:{}),{[`&:hover ${o}-selector`]:{borderColor:i},[`${o}-focused& ${o}-selector`]:{borderColor:s,boxShadow:`0 0 0 ${c}px ${l}`,outline:0}})}}},h1=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},g1=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},sQ(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},p1(e)),h1(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},aQ),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},aQ),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-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:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},m1=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%"}}},g1(e),ud(e),d1(e),c1(e),{[`${t}-rtl`]:{direction:"rtl"}},f1(t,$l(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),f1(`${t}-status-error`,$l(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),f1(`${t}-status-warning`,$l(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),kc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},b1=Nl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=$l(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[m1(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:h,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}})),y1={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"},v1=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:y1}))})),w1={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"},x1=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:w1}))})),k1={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"},S1=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:k1}))}));QN=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const C1="SECRET_COMBOBOX_MODE_DO_NOT_USE",E1=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:p=24,size:f,disabled:h,notFoundContent:g,status:m,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:v,direction:w,style:x,allowClear:k}=e,S=QN(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:C,getPrefixCls:E,renderEmpty:D,direction:O,virtual:_,popupMatchSelectWidth:$,popupOverflow:j,select:N}=Zb.useContext(XY),P=E("select",r),I=E(),T=null!=w?w:O,{compactSize:F,compactItemClassnames:A}=SJ(P,T),[R,M]=b1(P),L=Zb.useMemo((()=>{const{mode:e}=S;if("combobox"!==e)return e===C1?"combobox":e}),[S.mode]),B="multiple"===L||"tags"===L,z=function(e,t){return void 0!==t?t:null!==e}(S.suffixIcon,S.showArrow),H=null!==(n=null!=v?v:y)&&void 0!==n?n:$,{status:W,hasFeedback:U,isFormItemInput:V,feedbackIcon:G}=Zb.useContext(wZ),q=J0(W,m);let X;X=void 0!==g?g:"combobox"===L?null:(null==D?void 0:D("Select"))||Zb.createElement(s1,{componentName:"Select"});const{suffixIcon:K,itemIcon:Y,removeIcon:Q,clearIcon:J}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d}=e;const p=null!=n?n:Zb.createElement(PQ,null),f=e=>null!==t||s||d?Zb.createElement(Zb.Fragment,null,!1!==c&&e,s&&u):null;let h=null;if(void 0!==t)h=f(t);else if(i)h=f(Zb.createElement(XQ,{spin:!0}));else{const e=`${l}-suffix`;h=t=>{let{open:n,showSearch:r}=t;return f(Zb.createElement(n&&r?S1:x1,{className:e}))}}let g=null;g=void 0!==r?r:a?Zb.createElement(v1,null):null;let m=null;return m=void 0!==o?o:Zb.createElement(TQ,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:m}}(Object.assign(Object.assign({},S),{multiple:B,hasFeedback:U,feedbackIcon:G,showSuffixIcon:z,prefixCls:P,showArrow:S.showArrow,componentName:"Select"})),Z=!0===k?{clearIcon:J}:k,ee=Us(S,["suffixIcon","itemIcon"]),te=wY(l||c,{[`${P}-dropdown-${T}`]:"rtl"===T},a,M),ne=bJ((e=>{var t;return null!==(t=null!=f?f:F)&&void 0!==t?t:e})),re=Zb.useContext(JY),oe=null!=h?h:re,ie=wY({[`${P}-lg`]:"large"===ne,[`${P}-sm`]:"small"===ne,[`${P}-rtl`]:"rtl"===T,[`${P}-borderless`]:!o,[`${P}-in-form-item`]:V},sd(P,q,U),A,null==N?void 0:N.className,i,a,M),ae=Zb.useMemo((()=>void 0!==d?d:"rtl"===T?"bottomRight":"bottomLeft"),[d,T]),se=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}(b,j);return R(Zb.createElement(KN,Object.assign({ref:t,virtual:_,showSearch:null==N?void 0:N.showSearch},ee,{style:Object.assign(Object.assign({},null==N?void 0:N.style),x),dropdownMatchSelectWidth:H,builtinPlacements:se,transitionName:cJ(I,"slide-up",S.transitionName),listHeight:u,listItemHeight:p,mode:L,prefixCls:P,placement:ae,direction:T,suffixIcon:K,menuItemSelectedIcon:Y,removeIcon:Q,allowClear:Z,notFoundContent:X,className:ie,getPopupContainer:s||C,dropdownClassName:te,disabled:oe})))},D1=Zb.forwardRef(E1),O1=(IX=D1,Eu((function(e){const{prefixCls:t,style:n}=e,r=Zb.useRef(null),[o,i]=Zb.useState(0),[a,s]=Zb.useState(0),[l,c]=_l(!1,{value:e.open}),{getPrefixCls:u}=Zb.useContext(XY),d=u("select",t);Zb.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=null===(n=r.current)||void 0===n?void 0:n.querySelector(`.${d}-dropdown`);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let p=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return Zb.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:a}},Zb.createElement(IX,Object.assign({},p)))})));D1.SECRET_COMBOBOX_MODE_DO_NOT_USE=C1,D1.Option=jN,D1.OptGroup=$N,D1._InternalPanelDoNotUseOrYouWillBeFired=O1;const _1=D1,$1=["xxl","xl","lg","md","sm","xs"],j1=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)`}),N1=e=>{const t=e,n=[].concat($1).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e};tP={left:{points:["cr","cl"],overflow:ZN={adjustX:1,shiftY:!0},offset:[-4,0],targetOffset:eP=[0,0]},right:{points:["cl","cr"],overflow:ZN,offset:[4,0],targetOffset:eP},top:{points:["bc","tc"],overflow:JN={shiftX:64,adjustY:1},offset:[0,-4],targetOffset:eP},bottom:{points:["tc","bc"],overflow:JN,offset:[0,4],targetOffset:eP},topLeft:{points:["bl","tl"],overflow:JN,offset:[0,-4],targetOffset:eP},leftTop:{points:["tr","tl"],overflow:ZN,offset:[-4,0],targetOffset:eP},topRight:{points:["br","tr"],overflow:JN,offset:[0,-4],targetOffset:eP},rightTop:{points:["tl","tr"],overflow:ZN,offset:[4,0],targetOffset:eP},bottomRight:{points:["tr","br"],overflow:JN,offset:[0,4],targetOffset:eP},rightBottom:{points:["bl","br"],overflow:ZN,offset:[4,0],targetOffset:eP},bottomLeft:{points:["tl","bl"],overflow:JN,offset:[0,4],targetOffset:eP},leftBottom:{points:["br","bl"],overflow:ZN,offset:[-4,0],targetOffset:eP}},nP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],rP=function(e,t){var n,r,o,i,a,s,l,c=e.overlayClassName,u=e.trigger,d=void 0===u?["hover"]:u,p=e.mouseEnterDelay,f=void 0===p?0:p,h=e.mouseLeaveDelay,g=void 0===h?.1:h,m=e.overlayStyle,b=e.prefixCls,y=void 0===b?"rc-tooltip":b,v=e.children,w=e.onVisibleChange,x=e.afterVisibleChange,k=e.transitionName,S=e.animation,C=e.motion,E=e.placement,D=void 0===E?"right":E,O=e.align,_=void 0===O?{}:O,$=e.destroyTooltipOnHide,j=void 0!==$&&$,N=e.defaultVisible,P=e.getTooltipContainer,I=e.overlayInnerStyle;return n=e.overlay,r=e.id,i=void 0===(o=e.showArrow)||o,a=Di(e,nP),s=Zb.useRef(null),Zb.useImperativeHandle(t,(function(){return s.current})),l=Sa({},a),"visible"in e&&(l.popupVisible=e.visible),Zb.createElement(Y0,fa({popupClassName:c,prefixCls:y,popup:function(){return Zb.createElement(pd,{key:"content",prefixCls:y,id:r,overlayInnerStyle:I},n)},action:d,builtinPlacements:tP,popupPlacement:D,ref:s,popupAlign:_,getPopupContainer:P,onPopupVisibleChange:w,afterPopupVisibleChange:x,popupTransitionName:k,popupAnimation:S,popupMotion:C,defaultPopupVisible:N,autoDestroy:j,mouseLeaveDelay:g,popupStyle:m,mouseEnterDelay:f,arrow:i},l),v)};const P1=Zb.forwardRef(rP),I1=8,T1={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},F1={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},A1=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]),R1=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},sQ(e)),{position:"absolute",zIndex:a,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:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,I1)}},[`${t}-content`]:{position:"relative"}}),Pl(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},gd($l(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},M1=(e,t)=>Nl("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=$l(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[R1(a),c0(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),L1=nQ.map((e=>`${e}-inverse`)),B1=["success","processing","error","default","warning"];oP=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const z1=Zb.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:f,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:v=!0}=e,w=!!h,[,x]=Cl(),{getPopupContainer:k,getPrefixCls:S,direction:C}=Zb.useContext(XY),E=SY(),D=Zb.useRef(null),O=()=>{var e;null===(e=D.current)||void 0===e||e.forceAlign()};Zb.useImperativeHandle(t,(()=>({forceAlign:O,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),O()}})));const[_,$]=_l(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),j=!g&&!m&&0!==g,N=Zb.useMemo((()=>{var e,t;let n=y;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:y),b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(T1).forEach((e=>{const c=Object.assign(Object.assign({},r&&F1[e]||T1[e]),{offset:[0,0],dynamicInset:!0});switch(l[e]=c,A1.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=fd({contentRadius:i,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:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,u,t,n),a&&(c.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:v,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[y,h,b,x]),P=Zb.useMemo((()=>0===g?g:m||g||""),[m,g]),I=Zb.createElement(CJ,null,"function"==typeof P?P():P),{getPopupContainer:T,placement:F="top",mouseEnterDelay:A=.1,mouseLeaveDelay:R=.1,overlayStyle:M,rootClassName:L}=e,B=oP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),z=S("tooltip",o),H=S(),W=e["data-popover-inject"];let U=_;"open"in e||"visible"in e||!j||(U=!1);const V=LQ(u)&&!Zl(u)?u:Zb.createElement("span",null,u),G=V.props,q=G.className&&"string"!=typeof G.className?G.className:wY(G.className,i||`${z}-open`),[X,K]=M1(z,!W),Y=bd(z,l),Q=Y.arrowStyle,J=Object.assign(Object.assign({},c),Y.overlayStyle),Z=wY(s,{[`${z}-rtl`]:"rtl"===C},Y.className,L,K);return X(Zb.createElement(P1,Object.assign({},B,{showArrow:w,placement:F,mouseEnterDelay:A,mouseLeaveDelay:R,prefixCls:z,overlayClassName:Z,overlayStyle:Object.assign(Object.assign({},Q),M),getTooltipContainer:T||a||k,ref:D,builtinPlacements:N,overlay:I,visible:U,onVisibleChange:t=>{var n,r;$(!j&&t),j||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:p,overlayInnerStyle:J,arrowContent:Zb.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:cJ(H,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),U?ec(V,{className:q}):V))}));z1._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Zb.useContext(XY),l=s("tooltip",t),[c,u]=M1(l,!0),d=bd(l,i),p=d.arrowStyle,f=Object.assign(Object.assign({},a),d.overlayStyle),h=wY(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(Zb.createElement("div",{className:h,style:p},Zb.createElement("div",{className:`${l}-arrow`}),Zb.createElement(pd,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),o)))};const H1=z1,W1={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"},U1=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:W1}))}));iP=x$.ESC,aP=x$.TAB,sP=Zb.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=Zb.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=_s(t,null==i?void 0:i.ref);return AK.createElement(AK.Fragment,null,r&&AK.createElement("div",{className:"".concat(o,"-arrow")}),AK.cloneElement(i,{ref:js(i)?a:void 0}))})),uP={topLeft:{points:["bl","tl"],overflow:lP={adjustX:1,adjustY:1},offset:[0,-4],targetOffset:cP=[0,0]},top:{points:["bc","tc"],overflow:lP,offset:[0,-4],targetOffset:cP},topRight:{points:["br","tr"],overflow:lP,offset:[0,-4],targetOffset:cP},bottomLeft:{points:["tl","bl"],overflow:lP,offset:[0,4],targetOffset:cP},bottom:{points:["tc","bc"],overflow:lP,offset:[0,4],targetOffset:cP},bottomRight:{points:["tr","br"],overflow:lP,offset:[0,4],targetOffset:cP}},dP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const V1=AK.forwardRef(yd);pP=Zb.createContext(null),fP=["children","locked"],hP=Zb.createContext(null),gP=[],mP=Zb.createContext(null),bP=Zb.createContext(gP),yP=Zb.createContext(null),vP=Zb.createContext({}),CP=x$.ENTER,EP=x$.ESC,DP=x$.HOME,OP=x$.END,_P=[kP=x$.UP,SP=x$.DOWN,wP=x$.LEFT,xP=x$.RIGHT],$P="__RC_UTIL_PATH_SPLIT__",jP=function(e){return e.join($P)},NP=function(e){return e.split($P)},PP="rc-menu-more",IP=Math.random().toFixed(5).toString().slice(2),TP=0,FP=["item"],AP=["title","attribute","elementRef"],RP=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],MP=["active"],LP=function(){function e(){return _i(this,e),t.apply(this,arguments)}Rs(e,Zb.Component);var t=zs(e);return ji(e,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Us(Di(e,AP),["eventKey","popupClassName","popupOffset","onTitleClick"]);return $a(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Zb.createElement(oN.Item,fa({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),e}(),BP=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T,F,A,R,M,L,B,z=e.style,H=e.className,W=e.eventKey;return r=e.disabled,o=e.itemIcon,i=e.children,a=e.role,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onClick,u=e.onKeyDown,d=e.onFocus,p=Di(e,RP),f=wd(W),g=(h=Zb.useContext(hP)).prefixCls,m=h.onItemClick,b=h.disabled,y=h.overflowDisabled,v=h.itemIcon,w=h.selectedKeys,x=h.onActive,k=Zb.useContext(vP)._internalRenderMenuItem,S="".concat(g,"-item"),C=Zb.useRef(),E=Zb.useRef(),D=b||r,O=$s(t,E),_=Sd(W),$=function(e){return{key:W,keyPath:xa(_).reverse(),item:C.current,domEvent:e}},j=o||v,P=(N=_d(W,D,s,l)).active,I=Di(N,MP),T=w.includes(W),F=$d(_.length),A=function(e){if(!D){var t=$(e);null==c||c(Nd(t)),m(t)}},R=function(e){if(null==u||u(e),e.which===x$.ENTER){var t=$(e);null==c||c(Nd(t)),m(t)}},M=function(e){x(W),null==d||d(e)},L={},"option"===e.role&&(L["aria-selected"]=T),B=Zb.createElement(LP,fa({ref:C,elementRef:O,role:null===a?"none":a||"menuitem",tabIndex:r?null:-1,"data-menu-id":y&&f?null:f},p,I,L,{component:"li","aria-disabled":r,style:Sa(Sa({},F),z),className:wY(S,(n={},Ei(n,"".concat(S,"-active"),P),Ei(n,"".concat(S,"-selected"),T),Ei(n,"".concat(S,"-disabled"),D),n),H),onClick:A,onKeyDown:R,onFocus:M}),i,Zb.createElement(jd,{props:Sa(Sa({},e),{},{isSelected:T}),icon:j})),k&&(B=k(B,e,{selected:T})),B}));const G1=Zb.forwardRef(Pd);zP=["className","children"],HP=function(e,t){var n=e.className,r=e.children,o=Di(e,zP),i=Zb.useContext(hP),a=i.prefixCls,s=i.mode;return Zb.createElement("ul",fa({className:wY(a,i.rtl&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},(WP=Zb.forwardRef(HP)).displayName="SubMenuList",VP={topLeft:{points:["bl","tl"],overflow:UP={adjustX:1,adjustY:1}},topRight:{points:["br","tr"],overflow:UP},bottomLeft:{points:["tl","bl"],overflow:UP},bottomRight:{points:["tr","br"],overflow:UP},leftTop:{points:["tr","tl"],overflow:UP},leftBottom:{points:["br","bl"],overflow:UP},rightTop:{points:["tl","tr"],overflow:UP},rightBottom:{points:["bl","br"],overflow:UP}},GP={topLeft:{points:["bl","tl"],overflow:UP},topRight:{points:["br","tr"],overflow:UP},bottomLeft:{points:["tl","bl"],overflow:UP},bottomRight:{points:["tr","br"],overflow:UP},rightTop:{points:["tr","tl"],overflow:UP},rightBottom:{points:["br","bl"],overflow:UP},leftTop:{points:["tl","tr"],overflow:UP},leftBottom:{points:["bl","br"],overflow:UP}},qP={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},XP=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],KP=["active"],YP=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T,F,A,R,M,L,B,z,H,W,U,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue=e.style,de=e.className,pe=e.title,fe=e.eventKey;return n=e.disabled,r=e.internalPopupClose,o=e.children,i=e.itemIcon,a=e.expandIcon,s=e.popupClassName,l=e.popupOffset,c=e.popupStyle,u=e.onClick,d=e.onMouseEnter,p=e.onMouseLeave,f=e.onTitleClick,h=e.onTitleMouseEnter,g=e.onTitleMouseLeave,m=Di(e,XP),b=wd(fe),v=(y=Zb.useContext(hP)).prefixCls,w=y.mode,x=y.openKeys,k=y.disabled,S=y.overflowDisabled,C=y.activeKey,E=y.selectedKeys,D=y.itemIcon,O=y.expandIcon,_=y.onItemClick,$=y.onOpenChange,j=y.onActive,N=Zb.useContext(vP)._internalRenderSubMenuItem,P=Zb.useContext(yP),I=P.isSubPathKey,T=Sd(),F="".concat(v,"-submenu"),A=k||n,R=Zb.useRef(),M=Zb.useRef(),L=null!=i?i:D,B=null!=a?a:O,z=x.includes(fe),H=!S&&z,W=I(E,fe),U=_d(fe,A,h,g),V=U.active,G=Di(U,KP),q=Wa(Zb.useState(!1),2),K=q[1],Y=function(e){A||K(e)},Q=function(e){Y(!0),null==d||d({key:fe,domEvent:e})},J=function(e){Y(!1),null==p||p({key:fe,domEvent:e})},Z=Zb.useMemo((function(){return V||"inline"!==w&&(X||I([C],fe))}),[w,V,C,X=q[0],fe,I]),ee=$d(T.length),te=function(e){A||(null==f||f({key:fe,domEvent:e}),"inline"===w&&$(fe,!z))},ne=Od((function(e){null==u||u(Nd(e)),_(e)})),re=function(e){"inline"!==w&&$(fe,e)},oe=function(){j(fe)},ie=b&&"".concat(b,"-popup"),ae=Zb.createElement("div",fa({role:"menuitem",style:ee,className:"".concat(F,"-title"),tabIndex:A?null:-1,ref:R,title:"string"==typeof pe?pe:null,"data-menu-id":S&&b?null:b,"aria-expanded":H,"aria-haspopup":!0,"aria-controls":ie,"aria-disabled":A,onClick:te,onFocus:oe},G),pe,Zb.createElement(jd,{icon:"horizontal"!==w?B:void 0,props:Sa(Sa({},e),{},{isOpen:H,isSubMenu:!0})},Zb.createElement("i",{className:"".concat(F,"-arrow")}))),(se=Zb.useRef(w)).current="inline"!==w&&T.length>1?"vertical":w,S||(ae=Zb.createElement(Fd,{mode:le=se.current,prefixCls:F,visible:!r&&H&&"inline"!==w,popupClassName:s,popupOffset:l,popupStyle:c,popup:Zb.createElement(xd,{mode:"horizontal"===le?"vertical":le},Zb.createElement(WP,{id:ie,ref:M},o)),disabled:A,onVisibleChange:re},ae)),ce=Zb.createElement(oN.Item,fa({role:"none"},m,{component:"li",style:ue,className:wY(F,"".concat(F,"-").concat(w),de,(t={},Ei(t,"".concat(F,"-open"),H),Ei(t,"".concat(F,"-active"),Z),Ei(t,"".concat(F,"-selected"),W),Ei(t,"".concat(F,"-disabled"),A),t)),onMouseEnter:Q,onMouseLeave:J}),ae,!S&&Zb.createElement(Ad,{id:ie,open:H,keyPath:T},o)),N&&(ce=N(ce,e,{selected:W,active:Z,open:H,disabled:A})),Zb.createElement(xd,{onItemClick:ne,mode:"horizontal"===w?"vertical":w,itemIcon:L,expandIcon:B},ce)},QP=["className","title","eventKey","children"],JP=["children"],ZP=function(e){var t,n,r,o,i=e.className,a=e.title;return t=e.children,n=Di(e,QP),r=Zb.useContext(hP),o="".concat(r.prefixCls,"-item-group"),Zb.createElement("li",fa({role:"presentation"},n,{onClick:function(e){return e.stopPropagation()},className:wY(o,i)}),Zb.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:"string"==typeof a?a:void 0},a),Zb.createElement("ul",{role:"group",className:"".concat(o,"-list")},t))},eI=["label","children","key","type"],tI=["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"],nI=[],(rI=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T,F,A,R,M,L,B,z,H,W,U,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se=e.prefixCls,le=void 0===se?"rc-menu":se,ce=e.rootClassName,ue=e.style,de=e.className,pe=e.tabIndex,fe=void 0===pe?0:pe,he=e.items,ge=e.children,me=e.direction,be=e.id,ye=e.mode,ve=void 0===ye?"vertical":ye,we=e.inlineCollapsed,xe=e.disabled,ke=e.disabledOverflow,Se=e.subMenuOpenDelay,Ce=void 0===Se?.1:Se,Ee=e.subMenuCloseDelay,De=void 0===Ee?.1:Ee,Oe=e.forceSubMenuRender,_e=e.defaultOpenKeys,$e=e.openKeys,je=e.activeKey,Ne=e.defaultActiveFirst,Pe=e.selectable,Ie=void 0===Pe||Pe,Te=e.multiple,Fe=void 0!==Te&&Te,Ae=e.defaultSelectedKeys,Re=e.selectedKeys,Me=e.onSelect,Le=e.onDeselect,Be=e.inlineIndent,ze=void 0===Be?24:Be,He=e.motion,We=e.defaultMotions,Ue=e.triggerSubMenuAction,Ve=void 0===Ue?"hover":Ue,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,i=e._internalRenderSubMenuItem,a=Di(e,tI),s=Zb.useMemo((function(){return zd(ge,he,nI)}),[ge,he]),c=(l=Wa(Zb.useState(!1),2))[0],u=l[1],d=Zb.useRef(),p=function(e){var t=Wa(_l(e,{value:e}),2),n=t[0],r=t[1];return Zb.useEffect((function(){TP+=1;var e="".concat(IP,"-").concat(TP);r("rc-menu-uuid-".concat(e))}),[]),n}(be),f="rtl"===me,h=Wa(_l(_e,{value:$e,postState:function(e){return e||nI}}),2),m=h[1],b=function(e,t){function n(){m(e),null==et||et(e)}arguments.length>1&&void 0!==t&&t?fS.flushSync(n):n()},y=Wa(Zb.useState(g=h[0]),2),v=y[0],w=y[1],x=Zb.useRef(!1),k=Wa(Zb.useMemo((function(){return"inline"!==ve&&"vertical"!==ve||!we?[ve,!1]:["vertical",we]}),[ve,we]),2),C=k[1],E="inline"===(S=k[0]),D=Wa(Zb.useState(S),2),O=D[0],_=D[1],j=($=Wa(Zb.useState(C),2))[0],N=$[1],Zb.useEffect((function(){_(S),N(C),x.current&&(E?m(v):b(nI))}),[S,C]),P=Wa(Zb.useState(0),2),T=P[1],F=(I=P[0])>=s.length-1||"horizontal"!==O||ke,Zb.useEffect((function(){E&&w(g)}),[g]),Zb.useEffect((function(){return x.current=!0,function(){x.current=!1}}),[]),A=function(){var e=Wa(Zb.useState({}),2)[1],t=Zb.useRef(new Map),n=Zb.useRef(new Map),r=Wa(Zb.useState([]),2),o=r[0],i=r[1],a=Zb.useRef(0),s=Zb.useRef(!1),l=Zb.useCallback((function(r,o){var i,l,c=jP(o);n.current.set(c,r),t.current.set(r,c),a.current+=1,i=a.current,l=function(){i===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=Zb.useCallback((function(e,r){var o=jP(r);n.current.delete(o),t.current.delete(e)}),[]),u=Zb.useCallback((function(e){i(e)}),[]),d=Zb.useCallback((function(e,n){var r=t.current.get(e)||"",i=NP(r);return n&&o.includes(i[0])&&i.unshift(PP),i}),[o]),p=Zb.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),f=Zb.useCallback((function(e){var r="".concat(t.current.get(e)).concat($P),o=new Set;return xa(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return Zb.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:d,getKeys:function(){var e=xa(t.current.keys());return o.length&&e.push(PP),e},getSubPathKeys:f}}(),L=A.refreshOverflowKeys,B=A.isSubPathKey,z=A.getKeyPath,H=A.getKeys,W=A.getSubPathKeys,U=Zb.useMemo((function(){return{registerPath:R,unregisterPath:M}}),[R=A.registerPath,M=A.unregisterPath]),V=Zb.useMemo((function(){return{isSubPathKey:B}}),[B]),Zb.useEffect((function(){L(F?nI:s.slice(I+1).map((function(e){return e.key})))}),[I,F]),G=Wa(_l(je||Ne&&(null===(n=s[0])||void 0===n?void 0:n.key),{value:je}),2),q=G[0],X=G[1],K=Od((function(e){X(e)})),Y=Od((function(){X(void 0)})),Zb.useImperativeHandle(t,(function(){return{list:d.current,focus:function(e){var t,n,r,o,i=null!=q?q:null===(t=s.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=d.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(vd(p,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}})),Q=Wa(_l(Ae||[],{value:Re,postState:function(e){return Array.isArray(e)?e:null==e?nI:[e]}}),2),J=Q[0],Z=Q[1],ee=function(e){var t,n,r,o;Ie&&(n=J.includes(t=e.key),r=Fe?n?J.filter((function(e){return e!==t})):[].concat(xa(J),[t]):[t],Z(r),o=Sa(Sa({},e),{},{selectedKeys:r}),n?null==Le||Le(o):null==Me||Me(o)),!Fe&&g.length&&"inline"!==O&&b(nI)},te=Od((function(e){null==Ze||Ze(Nd(e)),ee(e)})),ne=Od((function(e,t){var n,r=g.filter((function(t){return t!==e}));t?r.push(e):"inline"!==O&&(n=W(e),r=r.filter((function(e){return!n.has(e)}))),ja(g,r,!0)||b(r,!0)})),re=function(e,t,n,r,o,i,a,s,l,c){var u,d=Zb.useRef(),p=Zb.useRef();return p.current=t,u=function(){d_.cancel(d.current)},Zb.useEffect((function(){return function(){u()}}),[]),function(f){var h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$=f.which;if([].concat(_P,[CP,EP,DP,OP]).includes($)){if((b=function(){return h=new Set,g=new Map,m=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(vd(r,e),"']"));t&&(h.add(t),m.set(t,e),g.set(e,t))})),h})(),y=g.get(t),v=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y,h),w=m.get(v),x=function(e,t,n,r){var o,i,a,s,l,c,u,d="prev",p="next",f="children",h="parent";if("inline"===e&&r===CP)return{inlineTrigger:!0};switch(Ei(o={},kP,d),Ei(o,SP,p),l=o,Ei(i={},wP,n?p:d),Ei(i,xP,n?d:p),Ei(i,SP,f),Ei(i,CP,f),c=i,Ei(a={},kP,d),Ei(a,SP,p),Ei(a,CP,f),Ei(a,EP,h),Ei(a,wP,n?f:h),Ei(a,xP,n?h:f),null===(s={inline:l,horizontal:c,vertical:u=a,inlineSub:l,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case d:return{offset:-1,sibling:!0};case p:return{offset:1,sibling:!0};case h:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,$),!x&&$!==DP&&$!==OP)return;(_P.includes($)||[DP,OP].includes($))&&f.preventDefault(),k=function(e){var t,n,r;e&&(t=e,null!=(n=e.querySelector("a"))&&n.getAttribute("href")&&(t=n),r=m.get(e),s(r),u(),d.current=d_((function(){p.current===r&&t.focus()})))},[DP,OP].includes($)||x.sibling||!v?(E=Ed(S=v&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(v):o.current,h),C=$===DP?E[0]:$===OP?E[E.length-1]:Dd(S,h,v,x.offset),k(C)):x.inlineTrigger?l(w):x.offset>0?(l(w,!0),u(),d.current=d_((function(){var e,t;b(),e=v.getAttribute("aria-controls"),t=Dd(document.getElementById(e),h),k(t)}),5)):x.offset<0&&(D=a(w,!0),_=g.get(O=D[D.length-2]),l(O,!1),k(_))}null==c||c(f)}}(O,q,f,p,d,H,z,X,(function(e,t){var n=null!=t?t:!g.includes(e);ne(e,n)}),tt),Zb.useEffect((function(){u(!0)}),[]),oe=Zb.useMemo((function(){return{_internalRenderMenuItem:o,_internalRenderSubMenuItem:i}}),[o,i]),ie="horizontal"!==O||ke?s:s.map((function(e,t){return Zb.createElement(xd,{key:e.key,overflowDisabled:t>I},e)})),ae=Zb.createElement(oN,fa({id:be,ref:d,prefixCls:"".concat(le,"-overflow"),component:"ul",itemComponent:G1,className:wY(le,"".concat(le,"-root"),"".concat(le,"-").concat(O),de,(r={},Ei(r,"".concat(le,"-inline-collapsed"),j),Ei(r,"".concat(le,"-rtl"),f),r),ce),dir:me,style:ue,role:"menu",tabIndex:fe,data:ie,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?s.slice(-t):null;return Zb.createElement(Rd,{eventKey:PP,title:Ye,disabled:F,internalPopupClose:0===t,popupClassName:Qe},n)},maxCount:"horizontal"!==O||ke?oN.INVALIDATE:oN.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){T(e)},onKeyDown:re},a)),Zb.createElement(vP.Provider,{value:oe},Zb.createElement(pP.Provider,{value:p},Zb.createElement(xd,{prefixCls:le,rootClassName:ce,mode:O,openKeys:g,rtl:f,disabled:xe,motion:c?He:null,defaultMotions:c?We:null,activeKey:q,onActive:K,onInactive:Y,selectedKeys:J,inlineIndent:ze,subMenuOpenDelay:Ce,subMenuCloseDelay:De,forceSubMenuRender:Oe,builtinPlacements:Ge,triggerSubMenuAction:Ve,getPopupContainer:Je,itemIcon:qe,expandIcon:Xe,onItemClick:te,onOpenChange:ne},Zb.createElement(yP.Provider,{value:V},ae),Zb.createElement("div",{style:{display:"none"},"aria-hidden":!0},Zb.createElement(mP.Provider,{value:U},s)))))}))).Item=G1,rI.SubMenu=Rd,rI.ItemGroup=Md,rI.Divider=Ld,globalThis&&globalThis;const q1=Zb.createContext({});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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const X1=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=oI(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=Zb.useContext(XY),a=i("menu",t),s=wY({[`${a}-item-divider-dashed`]:!!r},n);return Zb.createElement(Ld,Object.assign({className:s},o))},K1=Zb.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Y1=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=Zb.useContext(K1),{siderCollapsed:p}=Zb.useContext(q1);let f=i;void 0===i?f=l?r:"":!1===i&&(f="");const h={title:f};p||d||(h.title=null,h.open=!1);const g=Ds(r).length;let m=Zb.createElement(G1,Object.assign({},Us(e,["title","icon","danger"]),{className:wY({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof i?i:void 0}),ec(o,{className:wY(LQ(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=Zb.createElement("span",{className:`${s}-title-content`},r);return(!o||LQ(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?Zb.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(m=Zb.createElement(H1,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),m)),m},Q1=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=Zb.useContext(K1),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Sd();let d;if(r){const e=LQ(o)&&"span"===o.type;d=Zb.createElement(Zb.Fragment,null,ec(r,{className:wY(LQ(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:Zb.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?Zb.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):Zb.createElement("span",{className:`${s}-title-content`},o);const p=Zb.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]);return Zb.createElement(K1.Provider,{value:p},Zb.createElement(Rd,Object.assign({},Us(e,["icon"]),{title:d,popupClassName:wY(s,n,`${s}-${i||c}`)})))},J1={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"},Z1=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:J1}))}));iI=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o},globalThis&&globalThis;const e2=Zb.createContext(null),t2=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${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"}}}},n2=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})`}}}}},r2=e=>Object.assign({},uQ(e)),o2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:b,lineType:y,colorSplit:v,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:k,dangerItemSelectedColor:S,dangerItemActiveBg:C,dangerItemSelectedBg:E,itemHoverBg:D,itemActiveBg:O,menuSubMenuBg:_,horizontalItemSelectedColor:$,horizontalItemSelectedBg:j,horizontalItemBorderRadius:N,horizontalItemHoverBg:P,popupBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},r2(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},r2(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:c,borderBottomColor:$}},"&-selected":{color:$,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:c,borderBottomColor:$}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${v}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}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 ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}},i2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock: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+i+a}}},a2=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},i2(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},i2(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}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 ${p}`,`background ${p}`,`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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,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% - ${d/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:m,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({},aQ),{paddingInline:f})}}]},s2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].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`]:{[`> ${a}, > ${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"}}}},l2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},c2=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:h,menuArrowOffset:g,lineType:m,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:v}=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({},sQ(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:`${s}px ${l}px`,fontSize:v,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),s2(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\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:p},s2(e)),l2(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),l2(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};aI=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const u2=Zb.forwardRef(((e,t)=>{var n,r;const o=Zb.useContext(e2),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=Zb.useContext(XY),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:b,siderCollapsed:y,items:v,children:w,rootClassName:x,mode:k,selectable:S,onClick:C,overflowedIndicatorPopupClassName:E}=e,D=Us(aI(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),O=Wd(v)||w;null===(n=i.validator)||void 0===n||n.call(i,{mode:k});const _=El((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),$=i.mode||k,j=null!=S?S:i.selectable,N=Zb.useMemo((()=>void 0!==y?y:b),[b,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:lJ(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),[T,F]=((e,t)=>Nl("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:p,darkDangerItemSelectedBg:f,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:w}=e,x=a/7*5,k=$l(e,{menuArrowSize:x,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),S=$l(k,{itemColor:s,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:y,dangerItemSelectedColor:v,dangerItemActiveBg:w,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[c2(k),t2(k),a2(k),o2(k,"light"),o2(S,"dark"),n2(k),u0(k),KZ(k,"slide-up"),KZ(k,"slide-down"),c0(k,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f,controlHeightLG:h,lineHeight:g,colorBgElevated:m,marginXXS:b,padding:y,fontSize:v,controlHeightSM:w,fontSizeLG:x,colorTextLightSolid:k,colorErrorHover:S}=e,C=new y_(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,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",itemHeight:h,groupTitleLineHeight:g,collapsedWidth:2*h,popupBg:m,itemMarginBlock:b,itemPaddingInline:y,horizontalLineHeight:1.15*h+"px",iconSize:v,iconMarginInlineEnd:w-v,collapsedIconSize:x,groupTitleFontSize:v,darkItemDisabledColor:new y_(k).setAlpha(.25).toRgbString(),darkItemColor:C,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:C,darkItemHoverColor:k,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e))(I,!o),A=wY(`${I}-${h}`,null==c?void 0:c.className,p);let R;if("function"==typeof g)R=g;else if(null===g||!1===g)R=null;else if(null===i.expandIcon||!1===i.expandIcon)R=null;else{const e=null!=g?g:i.expandIcon;R=ec(e,{className:wY(`${I}-submenu-expand-icon`,LQ(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const M=Zb.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:h,mode:$,disableMenuItemTitleTooltip:m})),[I,N,l,m,h]);return T(Zb.createElement(e2.Provider,{value:null},Zb.createElement(K1.Provider,{value:M},Zb.createElement(rI,Object.assign({getPopupContainer:s,overflowedIndicator:Zb.createElement(Z1,null),overflowedIndicatorPopupClassName:wY(I,`${I}-${h}`,E),mode:$,selectable:j,onClick:_},D,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:A,prefixCls:I,direction:l,defaultMotions:P,expandIcon:R,ref:t,rootClassName:wY(x,F)}),O))))})),d2=Zb.forwardRef(((e,t)=>{const n=Zb.useRef(null),r=Zb.useContext(q1);return Zb.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),Zb.createElement(u2,Object.assign({ref:n},e,r))}));d2.Item=Y1,d2.SubMenu=Q1,d2.Divider=X1,d2.ItemGroup=Md;const p2=d2,f2=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),h2=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),g2=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),m2=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},h2($l(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),b2=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},y2=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),v2=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:i,warningActiveShadow:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},g2($l(e,{activeBorderColor:r,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},g2($l(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},w2=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}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}`},f2(e.colorTextPlaceholder)),{"&:hover":Object.assign({},h2(e)),"&:focus, &:focus-within":Object.assign({},g2(e)),"&-disabled, &[disabled]":Object.assign({},m2(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({},b2(e)),"&-sm":Object.assign({},y2(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),x2=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({},b2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},y2(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.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${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.paddingInline}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}}}})}},k2=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({},sQ(e)),w2(e)),v2(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"}})}},S2=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`}}}},C2=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},w2(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{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}}}),S2(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),v2(e,`${t}-affix-wrapper`))}},E2=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},sQ(e)),x2(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},m2(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}}}})}},D2=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,boxShadow:"none"},[`${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}}}}},O2=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.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},_2=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:h,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:"",activeBg:""}},$2=Nl("Input",(e=>{const t=$l(e,Ud(e));return[k2(t),O2(t),C2(t),E2(t),D2(t),kc(t)]}),_2),j2=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=wY({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=wY({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=Zb.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return Zb.createElement("span",{className:wY(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},N2=new pO("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),P2=e=>({height:e,lineHeight:`${e}px`}),I2=e=>Object.assign({width:e},P2(e)),T2=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:N2,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),F2=e=>Object.assign({width:5*e,minWidth:5*e},P2(e)),A2=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},I2(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},I2(o)),[`${t}${t}-sm`]:Object.assign({},I2(i))}},R2=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},F2(t)),[`${r}-lg`]:Object.assign({},F2(o)),[`${r}-sm`]:Object.assign({},F2(i))}},M2=e=>Object.assign({width:e},P2(e)),L2=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},M2(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},M2(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},B2=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},z2=e=>Object.assign({width:2*e,minWidth:2*e},P2(e)),H2=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:2*r,minWidth:2*r},z2(r))},B2(e,r,n)),{[`${n}-lg`]:Object.assign({},z2(o))}),B2(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},z2(i))}),B2(e,i,`${n}-sm`))},W2=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:v}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},I2(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},I2(c)),[`${n}-sm`]:Object.assign({},I2(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:v}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},H2(e)),A2(e)),R2(e)),L2(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},T2(e))}}},U2=Nl("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[W2(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"]]}),V2={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"},G2=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:V2}))})),q2=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:i}=e,a=xa(Array(i)).map(((e,n)=>Zb.createElement("li",{key:n,style:{width:t(n)}})));return Zb.createElement("ul",{className:wY(n,r),style:o},a)},X2=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return Zb.createElement("h3",{className:wY(t,n),style:Object.assign({width:r},o)})},K2=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:p,direction:f,skeleton:h}=Zb.useContext(XY),g=p("skeleton",t),[m,b]=U2(g);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let a,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Vd(s));a=Zb.createElement("div",{className:`${g}-header`},Zb.createElement(j2,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Vd(l));r=Zb.createElement(X2,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Vd(c));o=Zb.createElement(q2,Object.assign({},n))}p=Zb.createElement("div",{className:`${g}-content`},r,o)}const y=wY(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===f,[`${g}-round`]:d},null==h?void 0:h.className,r,o,b);return m(Zb.createElement("div",{className:y,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,p))}return void 0!==a?a:null};K2.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=Zb.useContext(XY),l=s("skeleton",t),[c,u]=U2(l),d=Us(e,["prefixCls"]),p=wY(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(Zb.createElement("div",{className:p},Zb.createElement(j2,Object.assign({prefixCls:`${l}-button`,size:a},d))))},K2.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=Zb.useContext(XY),l=s("skeleton",t),[c,u]=U2(l),d=Us(e,["prefixCls","className"]),p=wY(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(Zb.createElement("div",{className:p},Zb.createElement(j2,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},K2.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=Zb.useContext(XY),l=s("skeleton",t),[c,u]=U2(l),d=Us(e,["prefixCls"]),p=wY(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(Zb.createElement("div",{className:p},Zb.createElement(j2,Object.assign({prefixCls:`${l}-input`,size:a},d))))},K2.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=Zb.useContext(XY),s=a("skeleton",t),[l,c]=U2(s),u=wY(s,`${s}-element`,{[`${s}-active`]:i},n,r,c);return l(Zb.createElement("div",{className:u},Zb.createElement("div",{className:wY(`${s}-image`,n),style:o},Zb.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},Zb.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`})))))},K2.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=Zb.useContext(XY),l=s("skeleton",t),[c,u]=U2(l),d=wY(l,`${l}-element`,{[`${l}-active`]:i},u,n,r),p=null!=a?a:Zb.createElement(G2,null);return c(Zb.createElement("div",{className:d},Zb.createElement("div",{className:wY(`${l}-image`,n),style:o},p)))};const Y2=K2,Q2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},J2=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:Q2}))})),Z2=Zb.createContext(null);sI=Zb.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return Zb.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:wY(n,a&&"".concat(n,"-active"),r),ref:t},l)})),lI=["key","forceRender","style","className"],cI={width:0,height:0,left:0,top:0},uI=.1,dI=.01,pI=20,fI=Math.pow(.995,pI),hI={width:0,height:0,left:0,top:0,right:0},gI="TABS_DQ";const e5=Zb.forwardRef(Jd);mI=Zb.forwardRef((function(e,t){var n,r,o=e.position,i=e.prefixCls,a=e.extra;return a?(r={},"object"!==Si(a)||Zb.isValidElement(a)?r.right=a:r=a,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?Zb.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null):null}));const t5=Zb.memo(Zb.forwardRef(Zd),(function(e,t){return t.tabMoving}));bI=function(e){function t(){d_.cancel(c.current)}var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicatorSize,a=Wa(Zb.useState(),2),s=a[0],l=a[1],c=Zb.useRef(),u=function(e){return"function"==typeof i?i(e):"number"==typeof i?i:e};return Zb.useEffect((function(){var e={};return n&&(r?(o?(e.right=n.right+n.width/2,e.transform="translateX(50%)"):(e.left=n.left+n.width/2,e.transform="translateX(-50%)"),e.width=u(n.width)):(e.top=n.top+n.height/2,e.transform="translateY(-50%)",e.height=u(n.height))),t(),c.current=d_((function(){l(e)})),t}),[n,r,o,i]),{style:s}},yI=function(e){var t=e.current||{},n=t.offsetWidth,r=t.offsetHeight;return[void 0===n?0:n,void 0===r?0:r]},vI=function(e,t){return e[t?0:1]};const n5=Zb.forwardRef(tp);wI=["renderTabBar"],xI=["label","key"],kI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],SI=0,CI=Zb.forwardRef(rp);const r5={motionAppear:!1,motionEnter:!0,motionLeave:!0};EI=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const o5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[KZ(e,"slide-up"),KZ(e,"slide-down")]]},i5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,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}}}}}}},a5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},sQ(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({},aQ),{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"}}})}})}},s5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=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:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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}}}}}},l5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,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}}}}}},c5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},dQ(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},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},u5=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"}}}}},d5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},sQ(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:i},"&:active, &:focus:not(:focus-visible)":{color:a}},dQ(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),c5(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"}}}}}},p5=Nl("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[l5(t),u5(t),s5(t),a5(t),i5(t),d5(t),o5(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`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2})));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const f5=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:p,style:f,indicatorSize:h}=e,g=DI(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:m,moreIcon:b=Zb.createElement(Z1,null)}=g,{direction:y,tabs:v,getPrefixCls:w,getPopupContainer:x}=Zb.useContext(XY),k=w("tabs",m),[S,C]=p5(k);let E;"editable-card"===t&&(E={onEdit:(e,t)=>{let{key:n,event:r}=t;null==i||i("add"===e?r:n,e)},removeIcon:Zb.createElement(TQ,null),addIcon:l||Zb.createElement(J2,null),showAdd:!0!==a});const D=w(),O=function(e,t){return e||function(e){return e.filter((e=>e))}(Ds(t).map((e=>{if(Zb.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=EI(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(d,u),_=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({},r5),{motionName:cJ(e,"switch")})),n}(k,p),$=bJ(o),j=Object.assign(Object.assign({},null==v?void 0:v.style),f);return S(Zb.createElement(CI,Object.assign({direction:y,getPopupContainer:x,moreTransitionName:`${D}-slide-up`},g,{items:O,className:wY({[`${k}-${$}`]:$,[`${k}-card`]:["card","editable-card"].includes(t),[`${k}-editable-card`]:"editable-card"===t,[`${k}-centered`]:s},null==v?void 0:v.className,n,r,C),popupClassName:wY(c,C),style:j,editable:E,moreIcon:b,prefixCls:k,animated:_,indicatorSize:null!=h?h:null==v?void 0:v.indicatorSize})))};f5.TabPane=()=>null;const h5=f5,g5=Zb.createContext({}),m5=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"}}}},b5=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},y5=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"}],o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o})(e,t),v5=Nl("Grid",(e=>[m5(e)])),w5=Nl("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[b5(t),y5(t,""),y5(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},y5(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const x5=["xs","sm","md","lg","xl","xxl"],k5=Zb.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=Zb.useContext(XY),{gutter:o,wrap:i}=Zb.useContext(g5),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:p,children:f,flex:h,style:g}=e,m=OI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,v]=w5(b);let w={};x5.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete m[t],w=Object.assign(Object.assign({},w),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${b}-rtl`]:"rtl"===r})}));const x=wY(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},p,w,v),k={};if(o&&o[0]>0){const e=o[0]/2;k.paddingLeft=e,k.paddingRight=e}return h&&(k.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(h),!1!==i||k.minWidth||(k.minWidth=0)),y(Zb.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign({},k),g),className:x,ref:t}),f))}));_I=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const S5=Zb.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=_I(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:p}=Zb.useContext(XY),[f,h]=Zb.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,m]=Zb.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=op(o,g),y=op(r,g),v=Zb.useRef(l),w=dd();Zb.useEffect((()=>{const e=w.subscribe((e=>{m(e);const t=v.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>w.unsubscribe(e)}),[]);const x=d("row",n),[k,S]=v5(x),C=(()=>{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;r<$1.length;r++){const o=$1[r];if(f[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),E=wY(x,{[`${x}-no-wrap`]:!1===c,[`${x}-${y}`]:y,[`${x}-${b}`]:b,[`${x}-rtl`]:"rtl"===p},i,S),D={},O=null!=C[0]&&C[0]>0?C[0]/-2:void 0;O&&(D.marginLeft=O,D.marginRight=O),[,D.rowGap]=C;const[_,$]=C,j=Zb.useMemo((()=>({gutter:[_,$],wrap:c})),[_,$,c]);return k(Zb.createElement(g5.Provider,{value:j},Zb.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},D),a),ref:t}),s)))}));($I=AK.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=Wa(AK.useState(l||o),2),d=u[0],p=u[1];return AK.useEffect((function(){(o||l)&&p(!0)}),[o,l]),d?AK.createElement("div",{ref:t,className:wY("".concat(r,"-content"),(n={},Ei(n,"".concat(r,"-content-active"),l),Ei(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},AK.createElement("div",{className:"".concat(r,"-content-box")},s)):null}))).displayName="PanelContent",jI=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],NI=AK.forwardRef((function(e,t){var n,r,o,i,a=e.showArrow,s=void 0===a||a,l=e.headerClass,c=e.isActive,u=e.onItemClick,d=e.forceRender,p=e.className,f=e.prefixCls,h=e.collapsible,g=e.accordion,m=e.panelKey,b=e.extra,y=e.header,v=e.expandIcon,w=e.openMotion,x=e.destroyInactivePanel,k=e.children,S=Di(e,jI),C="disabled"===h,E="header"===h,D="icon"===h,O=null!=b&&"boolean"!=typeof b,_=function(){null==u||u(m)},$="function"==typeof v?v(e):AK.createElement("i",{className:"arrow"});return $&&($=AK.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(h)?_:void 0},$)),o=wY((Ei(n={},"".concat(f,"-item"),!0),Ei(n,"".concat(f,"-item-active"),c),Ei(n,"".concat(f,"-item-disabled"),C),n),p),i={className:wY(l,(Ei(r={},"".concat(f,"-header"),!0),Ei(r,"".concat(f,"-header-collapsible-only"),E),Ei(r,"".concat(f,"-icon-collapsible-only"),D),r)),"aria-expanded":c,"aria-disabled":C,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==x$.ENTER&&e.which!==x$.ENTER||_()}},E||D||(i.onClick=_,i.role=g?"tab":"button",i.tabIndex=C?-1:0),AK.createElement("div",fa({},S,{ref:t,className:o}),AK.createElement("div",i,s&&$,AK.createElement("span",{className:"".concat(f,"-header-text"),onClick:"header"===h?_:void 0},y),O&&AK.createElement("div",{className:"".concat(f,"-extra")},b)),AK.createElement(bQ,fa({visible:c,leavedClassName:"".concat(f,"-content-hidden")},w,{forceRender:d,removeOnLeave:x}),(function(e,t){return AK.createElement($I,{ref:t,prefixCls:f,className:e.className,style:e.style,isActive:c,forceRender:d,role:g?"tabpanel":void 0},k)})))})),PI=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],II=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,d=e.children,p=e.label,f=e.key,h=e.collapsible,g=e.onItemClick,m=e.destroyInactivePanel,b=Di(e,PI),y=String(null!=f?f:t),v=null!=h?h:o,w=null!=m?m:i;return u=r?s[0]===y:s.indexOf(y)>-1,AK.createElement(NI,fa({},b,{prefixCls:n,key:y,panelKey:y,isActive:u,accordion:r,openMotion:l,expandIcon:c,header:p,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==g||g(e))},destroyInactivePanel:w}),d)}))},TI=function(e,t,n){var r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w;return e?(r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=(p=e.props).header,h=p.headerClass,g=p.destroyInactivePanel,m=p.collapsible,b=p.onItemClick,y=o?l[0]===d:l.indexOf(d)>-1,w={key:d,panelKey:d,header:f,headerClass:h,isActive:y,prefixCls:r,destroyInactivePanel:null!=g?g:a,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==v&&(s(e),null==b||b(e))},expandIcon:u,collapsible:v=null!=m?m:i},"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),AK.cloneElement(e,w))):null};const C5=Object.assign(AK.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.children,u=e.collapsible,d=e.openMotion,p=e.expandIcon,f=e.activeKey,h=e.defaultActiveKey,g=e.onChange,m=e.items,b=wY(o,e.className),y=Wa(_l([],{value:f,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:ip}),2),v=y[0],w=y[1];return $a(!c,"`children` will be removed in next major version. Please use `items` instead."),n=function(e,t,n){return Array.isArray(e)?II(e,n):Ds(t).map((function(e,t){return TI(e,t,n)}))}(m,c,{prefixCls:o,accordion:l,openMotion:d,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:function(e){return w((function(){return l?v[0]===e?[]:[e]:v.indexOf(e)>-1?v.filter((function(t){return t!==e})):[].concat(xa(v),[e])}))},activeKey:v}),AK.createElement("div",{ref:t,className:b,style:s,role:l?"tablist":void 0},n)})),{Panel:NI}),E5=Zb.forwardRef(((e,t)=>{const{getPrefixCls:n}=Zb.useContext(XY),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=wY({[`${a}-no-arrow`]:!i},o);return Zb.createElement(C5.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))})),D5=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:y,paddingSM:v,paddingLG:w,paddingXS:x,motionDurationSlow:k,fontSizeIcon:S,contentPadding:C}=e,E=`${c}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},sQ(e)),{backgroundColor:o,border:E,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:b,cursor:"pointer",transition:`all ${k}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${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:S,svg:{transition:`transform ${k}`}}),[`${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:p,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:C},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:v-x}},[`> ${t}-content > ${t}-content-box`]:{padding:v}}},"&-large":{[`> ${t}-item`]:{fontSize:m,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:m*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},O5=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},_5=e=>{const{componentCls:t,headerBg: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}}}},$5=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}}}}}},j5=Nl("Collapse",(e=>{const t=$l(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[D5(t),_5(t),$5(t),O5(t),u0(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),N5=Zb.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=Zb.useContext(XY),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:p="start",children:f,expandIcon:h}=e,g=bJ((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",i),b=n(),[y,v]=j5(m),w=Zb.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),x=wY(`${m}-icon-position-${w}`,{[`${m}-borderless`]:!c,[`${m}-rtl`]:"rtl"===r,[`${m}-ghost`]:!!u,[`${m}-${g}`]:"middle"!==g},null==o?void 0:o.className,a,s,v),k=Object.assign(Object.assign({},lJ(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),S=Zb.useMemo((()=>f?Ds(f).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:i}=e.props;return ec(e,Object.assign(Object.assign({},Us(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[f]);return y(Zb.createElement(C5,Object.assign({ref:t,openMotion:k},Us(e,["rootClassName"]),{expandIcon:function(e){let t=arguments.length>0&&void 0!==e?e:{};const n=h?h(t):Zb.createElement(U1,{rotate:t.isActive?90:void 0});return ec(n,(()=>({className:wY(n.props.className,`${m}-arrow`)})))},prefixCls:m,className:x,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),S))})),P5=Object.assign(N5,{Panel:E5}),I5=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},sQ(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,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:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-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}}})}},T5=Nl("Divider",(e=>{const t=$l(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[I5(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const F5=e=>{const{getPrefixCls:t,direction:n,divider:r}=Zb.useContext(XY),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:p,style:f}=e,h=FI(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[m,b]=T5(g),y=!!u,v="left"===a&&null!=s,w="right"===a&&null!=s,x=wY(g,null==r?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:y,[`${g}-with-text${a.length>0?`-${a}`:a}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!p,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:v,[`${g}-no-default-orientation-margin-right`]:w},l,c),k=Zb.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),S=Object.assign(Object.assign({},v&&{marginLeft:k}),w&&{marginRight:k});return m(Zb.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},h,{role:"separator"}),u&&"vertical"!==i&&Zb.createElement("span",{className:`${g}-inner-text`,style:S},u)))},A5={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"},R5=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:A5}))}));AI=function(){function e(t){var n,r,o,i;_i(this,e),Ei(this,"origin",""),Ei(this,"negative",void 0),Ei(this,"integer",void 0),Ei(this,"decimal",void 0),Ei(this,"decimalLen",void 0),Ei(this,"empty",void 0),Ei(this,"nan",void 0),sp(t)?this.empty=!0:(this.origin=String(t),"-"===t||Number.isNaN(t)?this.nan=!0:(cp(n=t)&&(n=Number(n)),pp(n="string"==typeof n?n:dp(n))?(r=lp(n),this.negative=r.negative,o=r.trimStr.split("."),this.integer=BigInt(o[0]),i=o[1]||"0",this.decimal=BigInt(i),this.decimalLen=i.length):this.nan=!0))}return ji(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),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),s=lp(i),l=s.trimStr,c="".concat(s.negativeStr).concat(l.padStart(a+1,"0"));return new e("".concat(c.slice(0,-a),".").concat(c.slice(-a)))}},{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()?"":lp("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),RI=function(){function e(t){_i(this,e),Ei(this,"origin",""),Ei(this,"number",void 0),Ei(this,"empty",void 0),sp(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return ji(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):r<Number.MIN_SAFE_INTEGER?new e(Number.MIN_SAFE_INTEGER):(o=Math.max(up(this.number),up(n)),new e(r.toFixed(o))))}},{key:"multi",value:function(t){var n,r,o=Number(t);return this.isInvalidate()||Number.isNaN(o)?new e(NaN):(n=this.number*o)>Number.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):n<Number.MIN_SAFE_INTEGER?new e(Number.MIN_SAFE_INTEGER):(r=Math.max(up(this.number),up(o)),new e(n.toFixed(r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(e){return arguments.length>0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":dp(this.number)}}]),e}(),MI=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g=e.inputElement,m=e.prefixCls,b=e.prefix,y=e.suffix,v=e.addonBefore,w=e.addonAfter,x=e.className,k=e.style,S=e.disabled,C=e.readOnly,E=e.focused,D=e.triggerFocus,O=e.allowClear,_=e.value,$=e.handleReset,j=e.hidden,N=e.classes,P=e.classNames,I=e.dataAttrs,T=e.styles,F=e.components,A=(null==F?void 0:F.affixWrapper)||"span",R=(null==F?void 0:F.groupWrapper)||"span",M=(null==F?void 0:F.wrapper)||"span",L=(null==F?void 0:F.groupAddon)||"span",B=Zb.useRef(null),z=Zb.cloneElement(g,{value:_,hidden:j,className:wY(null===(t=g.props)||void 0===t?void 0:t.className,!mp(e)&&!gp(e)&&x)||null,style:Sa(Sa({},null===(n=g.props)||void 0===n?void 0:n.style),mp(e)||gp(e)?{}:k)});return mp(e)&&(o="".concat(m,"-affix-wrapper"),i=wY(o,(Ei(r={},"".concat(o,"-disabled"),S),Ei(r,"".concat(o,"-focused"),E),Ei(r,"".concat(o,"-readonly"),C),Ei(r,"".concat(o,"-input-with-clear-btn"),y&&O&&_),r),!gp(e)&&x,null==N?void 0:N.affixWrapper,null==P?void 0:P.affixWrapper),a=(y||O)&&AK.createElement("span",{className:wY("".concat(m,"-suffix"),null==P?void 0:P.suffix),style:null==T?void 0:T.suffix},O?(p=!S&&!C&&_,f="".concat(m,"-clear-icon"),h="object"===Si(O)&&null!=O&&O.clearIcon?O.clearIcon:"✖",AK.createElement("span",{onClick:$,onMouseDown:function(e){return e.preventDefault()},className:wY(f,(d={},Ei(d,"".concat(f,"-hidden"),!p),Ei(d,"".concat(f,"-has-suffix"),!!y),d)),role:"button",tabIndex:-1},h)):null,y),z=AK.createElement(A,fa({className:i,style:Sa(Sa({},gp(e)?void 0:k),null==T?void 0:T.affixWrapper),hidden:!gp(e)&&j,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==D||D())}},null==I?void 0:I.affixWrapper,{ref:B}),b&&AK.createElement("span",{className:wY("".concat(m,"-prefix"),null==P?void 0:P.prefix),style:null==T?void 0:T.prefix},b),Zb.cloneElement(g,{value:_,hidden:null}),a)),gp(e)?(s="".concat(m,"-group"),l="".concat(s,"-addon"),c=wY("".concat(m,"-wrapper"),s,null==N?void 0:N.wrapper),u=wY("".concat(m,"-group-wrapper"),x,null==N?void 0:N.group),AK.createElement(R,{className:u,style:k,hidden:j},AK.createElement(M,{className:c},v&&AK.createElement(L,{className:l},v),Zb.cloneElement(z,{hidden:null}),w&&AK.createElement(L,{className:l},w)))):z},LI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],BI=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.autoComplete,u=e.onChange,d=e.onFocus,p=e.onBlur,f=e.onPressEnter,h=e.onKeyDown,g=e.prefixCls,m=void 0===g?"rc-input":g,b=e.disabled,y=e.htmlSize,v=e.className,w=e.maxLength,x=e.suffix,k=e.showCount,S=e.type,C=void 0===S?"text":S,E=e.classes,D=e.classNames,O=e.styles,_=Di(e,LI),$=Wa(_l(e.defaultValue,{value:e.value}),2),j=$[0],N=$[1],P=Wa(Zb.useState(!1),2),I=P[0],T=P[1],F=Zb.useRef(null),A=function(e){F.current&&yp(F.current,e)};return Zb.useImperativeHandle(t,(function(){return{focus:A,blur:function(){var e;null===(e=F.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=F.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=F.current)||void 0===e||e.select()},input:F.current}})),Zb.useEffect((function(){T((function(e){return(!e||!b)&&e}))}),[b]),n=function(t){void 0===e.value&&N(t.target.value),F.current&&bp(F.current,t,u)},r=function(e){f&&"Enter"===e.key&&f(e),null==h||h(e)},o=function(e){T(!0),null==d||d(e)},i=function(e){T(!1),null==p||p(e)},a=function(e){N(""),A(),F.current&&bp(F.current,e,u)},s=function(){var t=Us(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return AK.createElement("input",fa({autoComplete:c},t,{onChange:n,onFocus:o,onBlur:i,onKeyDown:r,className:wY(m,Ei({},"".concat(m,"-disabled"),b),null==D?void 0:D.input),style:null==O?void 0:O.input,ref:F,size:y,type:C}))},l=function(){var e,t,n,r=Number(w)>0;return x||k?(t=xa(e=vp(j)).length,n="object"===Si(k)?k.formatter({value:e,count:t,maxLength:w}):"".concat(t).concat(r?" / ".concat(w):""),AK.createElement(AK.Fragment,null,!!k&&AK.createElement("span",{className:wY("".concat(m,"-show-count-suffix"),Ei({},"".concat(m,"-show-count-has-suffix"),!!x),null==D?void 0:D.count),style:Sa({},null==O?void 0:O.count)},n),x)):null},AK.createElement(MI,fa({},_,{prefixCls:m,className:v,inputElement:s(),handleReset:a,value:vp(j),focused:I,triggerFocus:A,suffix:l(),disabled:b,classes:E,classNames:D,styles:O}))})),zI=function(){var e=Wa(Zb.useState(!1),2),t=e[0],n=e[1];return FD((function(){n(K0())}),[]),t},HI=200,WI=600,UI=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],VI=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],GI=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},qI=function(e){var t=fp(e);return t.isInvalidate()?null:t},XI=Zb.forwardRef((function(e,t){function n(e,t){ke(ve(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N=e.prefixCls,P=void 0===N?"rc-input-number":N,I=e.className,T=e.style,F=e.min,A=e.max,R=e.step,M=void 0===R?1:R,L=e.defaultValue,B=e.value,z=e.disabled,H=e.readOnly,W=e.upHandler,U=e.downHandler,V=e.keyboard,G=e.controls,q=void 0===G||G,X=e.classNames,K=e.stringMode,Y=e.parser,Q=e.formatter,J=e.precision,Z=e.decimalSeparator,ee=e.onChange,te=e.onInput,ne=e.onPressEnter,re=e.onStep,oe=Di(e,UI),ie="".concat(P,"-input"),ae=Zb.useRef(null),se=Wa(Zb.useState(!1),2),le=se[0],ce=se[1],ue=Zb.useRef(!1),de=Zb.useRef(!1),pe=Zb.useRef(!1),fe=Wa(Zb.useState((function(){return fp(null!=B?B:L)})),2),he=fe[0],ge=fe[1],me=Zb.useCallback((function(e,t){if(!t)return J>=0?J:Math.max(up(e),up(M))}),[J,M]),be=Zb.useCallback((function(e){var t,n=String(e);return Y?Y(n):(t=n,Z&&(t=t.replace(Z,".")),t.replace(/[^\w.-]+/g,""))}),[Y,Z]),ye=Zb.useRef(""),ve=Zb.useCallback((function(e,t){var n,r;return Q?Q(e,{userTyping:t,input:String(ye.current)}):(n="number"==typeof e?dp(e):e,t||(r=me(n,t),pp(n)&&(Z||r>=0)&&(n=hp(n,Z||".",r))),n)}),[Q,me,Z]),we=Wa(Zb.useState((function(){var e=null!=L?L:B;return he.isInvalidate()&&["string","number"].includes(Si(e))?Number.isNaN(e)?"":e:ve(he.toString(),!1)})),2),xe=we[0],ke=we[1];return ye.current=xe,o=Zb.useMemo((function(){return qI(A)}),[A,J]),i=Zb.useMemo((function(){return qI(F)}),[F,J]),a=Zb.useMemo((function(){return!(!o||!he||he.isInvalidate())&&o.lessEquals(he)}),[o,he]),s=Zb.useMemo((function(){return!(!i||!he||he.isInvalidate())&&he.lessEquals(i)}),[i,he]),D=ae.current,O=le,_=Zb.useRef(null),l=[function(){var e,t,n,r,o;try{t=D.selectionEnd,r=(n=D.value).substring(0,e=D.selectionStart),o=n.substring(t),_.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(GX){}},function(){var e,t,n,r,o,i;if(D&&_.current&&O)try{n=(t=_.current).beforeTxt,r=t.start,o=(e=D.value).length,e.endsWith(t.afterTxt)?o=e.length-_.current.afterTxt.length:e.startsWith(n)?o=n.length:-1!==(i=e.indexOf(n[r-1],r-1))&&(o=i+1),D.setSelectionRange(o,o)}catch(GX){$a(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(GX.message))}}],c=Wa(l,2),u=c[0],d=c[1],p=function(e){return o&&!e.lessEquals(o)?o:i&&!i.lessEquals(e)?i:null},f=function(e){return!p(e)},h=function(e,t){var r,o,i=e,a=f(i)||i.isEmpty();return i.isEmpty()||t||(i=p(i)||i,a=!0),H||z||!a?he:(r=i.toString(),(o=me(r,t))>=0&&(i=fp(hp(r,".",o)),f(i)||(i=fp(hp(r,".",o,!0)))),i.equals(he)||(void 0===B&&ge(i),null==ee||ee(i.isEmpty()?null:GI(K,i)),void 0===B&&n(i,t)),i)},$=Zb.useRef(0),j=function(){d_.cancel($.current)},Zb.useEffect((function(){return j}),[]),g=function(e){j(),$.current=d_((function(){e()}))},m=function e(t){var n;u(),ye.current=t,ke(t),de.current||(n=fp(be(t))).isNaN()||h(n,!0),null==te||te(t),g((function(){var n=t;Y||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},b=function(){de.current=!0},y=function(){de.current=!1,m(ae.current.value)},v=function(e){m(e.target.value)},w=function(e){var t,n,r,o;e&&a||!e&&s||(ue.current=!1,n=fp(pe.current?xp(M):M),e||(n=n.negate()),r=(he||fp(0)).add(n.toString()),o=h(r,!1),null==re||re(GI(K,o),{offset:pe.current?xp(M):M,type:e?"up":"down"}),null===(t=ae.current)||void 0===t||t.focus())},x=function(e){var t=fp(be(xe)),r=t;r=t.isNaN()?h(he,e):h(t,e),void 0!==B?n(he,!1):r.isNaN()||n(r,!1)},k=function(){ue.current=!0},S=function(e){var t=e.key,n=e.shiftKey;ue.current=!0,pe.current=n,"Enter"===t&&(de.current||(ue.current=!1),x(!1),null==ne||ne(e)),!1!==V&&!de.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(w("Up"===t||"ArrowUp"===t),e.preventDefault())},C=function(){ue.current=!1,pe.current=!1},E=function(){x(!1),ce(!1),ue.current=!1},AD((function(){he.isInvalidate()||n(he,!1)}),[J]),AD((function(){var e,t=fp(B);ge(t),e=fp(be(xe)),t.equals(e)&&ue.current&&!Q||n(t,ue.current)}),[B]),AD((function(){Q&&d()}),[xe]),Zb.createElement("div",{className:wY(P,null==X?void 0:X.input,I,(r={},Ei(r,"".concat(P,"-focused"),le),Ei(r,"".concat(P,"-disabled"),z),Ei(r,"".concat(P,"-readonly"),H),Ei(r,"".concat(P,"-not-a-number"),he.isNaN()),Ei(r,"".concat(P,"-out-of-range"),!he.isInvalidate()&&!f(he)),r)),style:T,onFocus:function(){ce(!0)},onBlur:E,onKeyDown:S,onKeyUp:C,onCompositionStart:b,onCompositionEnd:y,onBeforeInput:k},q&&Zb.createElement(wp,{prefixCls:P,upNode:W,downNode:U,upDisabled:a,downDisabled:s,onStep:w}),Zb.createElement("div",{className:"".concat(ie,"-wrap")},Zb.createElement("input",fa({autoComplete:"off",role:"spinbutton","aria-valuemin":F,"aria-valuemax":A,"aria-valuenow":he.isInvalidate()?null:he.toString(),step:M},oe,{ref:_s(ae,t),className:ie,value:xe,onChange:v,disabled:z,readOnly:H}))))})),(KI=Zb.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,p=e.classNames,f=Di(e,VI),h=Zb.useRef(null);return Zb.createElement(MI,{inputElement:Zb.createElement(XI,fa({prefixCls:o,disabled:n,classNames:p,ref:_s(h,t)},f)),className:d,triggerFocus:function(e){h.current&&yp(h.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}))).displayName="InputNumber";const M5=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},L5=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:p,handleHoverColor:f,paddingInline:h,paddingBlock:g,handleBg:m,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:v,borderRadiusLG:w,controlWidth:x,handleVisible:k,handleBorderColor:S}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},sQ(e)),w2(e)),v2(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:v,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},sQ(e)),x2(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:v}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},m2(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},sQ(e)),{width:"100%",padding:`${g}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),f2(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&: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:m,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===k?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${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:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${S}`,transition:`all ${p} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-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:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${S}`,borderEndEndRadius:i}},M5(e,"lg")),M5(e,"sm")),{"&-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:y}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},B5=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},w2(e)),v2(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 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:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},z5=Nl("InputNumber",(e=>{const t=$l(e,Ud(e));return[L5(t),B5(t),kc(t)]}),(e=>Object.assign(Object.assign({},_2(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder})));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const H5=Zb.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=Zb.useContext(XY),o=Zb.useRef(null);Zb.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:p,bordered:f=!0,readOnly:h,status:g,controls:m}=e,b=YI(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[v,w]=z5(y),{compactSize:x,compactItemClassnames:k}=SJ(y,r);let S=Zb.createElement(R5,{className:`${y}-handler-up-inner`}),C=Zb.createElement(x1,{className:`${y}-handler-down-inner`});const E="boolean"==typeof m?m:void 0;"object"==typeof m&&(S=void 0===m.upIcon?S:Zb.createElement("span",{className:`${y}-handler-up-inner`},m.upIcon),C=void 0===m.downIcon?C:Zb.createElement("span",{className:`${y}-handler-down-inner`},m.downIcon));const{hasFeedback:D,status:O,isFormItemInput:_,feedbackIcon:$}=Zb.useContext(wZ),j=J0(O,g),N=bJ((e=>{var t;return null!==(t=null!=s?s:x)&&void 0!==t?t:e})),P=Zb.useContext(JY),I=null!=l?l:P,T=wY({[`${y}-lg`]:"large"===N,[`${y}-sm`]:"small"===N,[`${y}-rtl`]:"rtl"===r,[`${y}-borderless`]:!f,[`${y}-in-form-item`]:_},sd(y,j),w),F=`${y}-group`;return v(Zb.createElement(KI,Object.assign({ref:o,disabled:I,className:wY(i,a,k),upHandler:S,downHandler:C,prefixCls:y,readOnly:h,controls:E,prefix:p,suffix:D&&$,addonAfter:d&&Zb.createElement(CJ,null,Zb.createElement(xZ,{override:!0,status:!0},d)),addonBefore:u&&Zb.createElement(CJ,null,Zb.createElement(xZ,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:wY(sd(`${y}-affix-wrapper`,j,D),{[`${y}-affix-wrapper-sm`]:"small"===N,[`${y}-affix-wrapper-lg`]:"large"===N,[`${y}-affix-wrapper-rtl`]:"rtl"===r,[`${y}-affix-wrapper-borderless`]:!f},w),wrapper:wY({[`${F}-rtl`]:"rtl"===r,[`${y}-wrapper-disabled`]:I},w),group:wY({[`${y}-group-wrapper-sm`]:"small"===N,[`${y}-group-wrapper-lg`]:"large"===N,[`${y}-group-wrapper-rtl`]:"rtl"===r},sd(`${y}-group-wrapper`,j,D),w)}},b)))})),W5=H5;W5._InternalPanelDoNotUseOrYouWillBeFired=e=>Zb.createElement(DQ,{theme:{components:{InputNumber:{handleVisible:!0}}}},Zb.createElement(H5,Object.assign({},e)));const U5=W5;QI=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const V5=Zb.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:p,addonBefore:f,className:h,style:g,styles:m,rootClassName:b,onChange:y,classNames:v}=e,w=QI(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:k,input:S}=AK.useContext(XY),C=x("input",r),E=Zb.useRef(null),[D,O]=$2(C),{compactSize:_,compactItemClassnames:$}=SJ(C,k),j=bJ((e=>{var t;return null!==(t=null!=a?a:_)&&void 0!==t?t:e})),N=AK.useContext(JY),P=null!=s?s:N,{status:I,hasFeedback:T,feedbackIcon:F}=Zb.useContext(wZ),A=J0(I,i),R=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!T;Zb.useRef(R);const M=kp(E,!0),L=(T||u)&&AK.createElement(AK.Fragment,null,u,T&&F);let B;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?B=d:d&&(B={clearIcon:AK.createElement(PQ,null)}),D(AK.createElement(BI,Object.assign({ref:_s(t,E),prefixCls:C,autoComplete:null==S?void 0:S.autoComplete},w,{disabled:P,onBlur:e=>{M(),null==l||l(e)},onFocus:e=>{M(),null==c||c(e)},style:Object.assign(Object.assign({},null==S?void 0:S.style),g),styles:Object.assign(Object.assign({},null==S?void 0:S.styles),m),suffix:L,allowClear:B,className:wY(h,b,$,null==S?void 0:S.className),onChange:e=>{M(),null==y||y(e)},addonAfter:p&&AK.createElement(CJ,null,AK.createElement(xZ,{override:!0,status:!0},p)),addonBefore:f&&AK.createElement(CJ,null,AK.createElement(xZ,{override:!0,status:!0},f)),classNames:Object.assign(Object.assign(Object.assign({},v),null==S?void 0:S.classNames),{input:wY({[`${C}-sm`]:"small"===j,[`${C}-lg`]:"large"===j,[`${C}-rtl`]:"rtl"===k,[`${C}-borderless`]:!o},!R&&sd(C,A),null==v?void 0:v.input,null===(n=null==S?void 0:S.classNames)||void 0===n?void 0:n.input,O)}),classes:{affixWrapper:wY({[`${C}-affix-wrapper-sm`]:"small"===j,[`${C}-affix-wrapper-lg`]:"large"===j,[`${C}-affix-wrapper-rtl`]:"rtl"===k,[`${C}-affix-wrapper-borderless`]:!o},sd(`${C}-affix-wrapper`,A,T),O),wrapper:wY({[`${C}-group-rtl`]:"rtl"===k},O),group:wY({[`${C}-group-wrapper-sm`]:"small"===j,[`${C}-group-wrapper-lg`]:"large"===j,[`${C}-group-wrapper-rtl`]:"rtl"===k,[`${C}-group-wrapper-disabled`]:P},sd(`${C}-group-wrapper`,A,T),O)}})))})),G5=V5,q5={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"},X5=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:q5}))})),K5={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"},Y5=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:K5}))}));JI=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const Q5=e=>Zb.createElement(e?Y5:X5,null),J5={click:"onClick",hover:"onMouseOver"},Z5=Zb.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=Zb.useState((()=>!!r&&n.visible)),a=Zb.useRef(null);Zb.useEffect((()=>{r&&i(n.visible)}),[r,n]);const s=kp(a),l=()=>{const{disabled:t}=e;t||(o&&s(),i((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:d,size:p}=e,f=JI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=Zb.useContext(XY),g=h("input",d),m=h("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=Q5}=e,i=J5[n]||"",a=r(o),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return Zb.cloneElement(Zb.isValidElement(a)?a:Zb.createElement("span",null,a),s)})(m),y=wY(m,c,{[`${m}-${p}`]:!!p}),v=Object.assign(Object.assign({},Us(f,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:g,suffix:b});return p&&(v.size=p),Zb.createElement(G5,Object.assign({ref:_s(t,a)},v))})),e4=Z5;ZI=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const t4=Zb.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:p,onCompositionStart:f,onCompositionEnd:h}=e,g=ZI(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:m,direction:b}=Zb.useContext(XY),y=Zb.useRef(!1),v=m("input-search",n),w=m("input",r),{compactSize:x}=SJ(v,b),k=bJ((e=>{var t;return null!==(t=null!=i?i:x)&&void 0!==t?t:e})),S=Zb.useRef(null),C=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},D="boolean"==typeof s?Zb.createElement(S1,null):null,O=`${v}-button`;let _;const $=s||{},j=$.type&&!0===$.type.__ANT_BUTTON;_=j||"button"===$.type?ec($,Object.assign({onMouseDown:C,onClick:e=>{var t,n;null===(n=null===(t=null==$?void 0:$.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},j?{className:O,size:k}:{})):Zb.createElement(lZ,{className:O,type:s?"primary":void 0,size:k,disabled:u,key:"enterButton",onMouseDown:C,onClick:E,loading:c,icon:D},s),l&&(_=[_,ec(l,{key:"addonAfter"})]);const N=wY(v,{[`${v}-rtl`]:"rtl"===b,[`${v}-${k}`]:!!k,[`${v}-with-button`]:!!s},o);return Zb.createElement(G5,Object.assign({ref:_s(S,t),onPressEnter:e=>{y.current||c||E(e)}},g,{size:k,onCompositionStart:e=>{y.current=!0,null==f||f(e)},onCompositionEnd:e=>{y.current=!1,null==h||h(e)},prefixCls:w,addonAfter:_,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),p&&p(e)},className:N,disabled:u}))})),n4=t4;eT=["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"],tT={},rT=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],oT=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I=e.prefixCls;return n=e.defaultValue,r=e.value,o=e.autoSize,i=e.onResize,a=e.className,s=e.style,l=e.disabled,c=e.onChange,u=Di(e,rT),p=(d=Wa(_l(n,{value:r,postState:function(e){return null!=e?e:""}}),2))[0],f=d[1],h=function(e){f(e.target.value),null==c||c(e)},g=Zb.useRef(),Zb.useImperativeHandle(t,(function(){return{textArea:g.current}})),m=Wa(Zb.useMemo((function(){return o&&"object"===Si(o)?[o.minRows,o.maxRows]:[]}),[o]),2),b=m[0],y=m[1],v=!!o,w=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(GX){}},x=Wa(Zb.useState(2),2),k=x[0],S=x[1],E=(C=Wa(Zb.useState(),2))[0],D=C[1],O=function(){S(0)},FD((function(){v&&O()}),[r,b,y,v]),FD((function(){if(0===k)S(1);else if(1===k){var e=function(e,t,n,r){var o,i,a,s,l,c,u,d,p,f,h=arguments.length>1&&void 0!==t&&t,g=arguments.length>2&&void 0!==n?n:null,m=arguments.length>3&&void 0!==r?r:null;return nT||((nT=document.createElement("textarea")).setAttribute("tab-index","-1"),nT.setAttribute("aria-hidden","true"),document.body.appendChild(nT)),e.getAttribute("wrap")?nT.setAttribute("wrap",e.getAttribute("wrap")):nT.removeAttribute("wrap"),o=function(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t,l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");return s&&tT[l]?tT[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")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:eT.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:i,boxSizing:r},s&&l&&(tT[l]=a),a)}(e,h),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,nT.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")),nT.value=e.value||e.placeholder||"",l=void 0,c=void 0,d=nT.scrollHeight,"border-box"===s?d+=a:"content-box"===s&&(d-=i),null===g&&null===m||(nT.value=" ",p=nT.scrollHeight-i,null!==g&&(l=p*g,"border-box"===s&&(l=l+i+a),d=Math.max(l,d)),null!==m&&(c=p*m,"border-box"===s&&(c=c+i+a),u=d>c?"":"hidden",d=Math.min(c,d))),f={height:d,overflowY:u,resize:"none"},l&&(f.minHeight=l),c&&(f.maxHeight=c),f}(g.current,!1,b,y);S(2),D(e)}else w()}),[k]),_=Zb.useRef(),$=function(){d_.cancel(_.current)},j=function(e){2===k&&(null==i||i(e),o&&($(),_.current=d_((function(){O()}))))},Zb.useEffect((function(){return $}),[]),N=v?E:null,P=Sa(Sa({},s),N),0!==k&&1!==k||(P.overflowY="hidden",P.overflowX="hidden"),Zb.createElement(a_,{onResize:j,disabled:!(o||i)},Zb.createElement("textarea",fa({},u,{ref:g,style:P,className:wY(I,a,Ei({},"".concat(I,"-disabled"),l)),disabled:l,value:p,onChange:h})))})),iT=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"],aT=AK.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b=e.defaultValue,y=e.value,v=e.onFocus,w=e.onBlur,x=e.onChange,k=e.allowClear,S=e.maxLength,C=e.onCompositionStart,E=e.onCompositionEnd,D=e.suffix,O=e.prefixCls,_=void 0===O?"rc-textarea":O,$=e.classes,j=e.showCount,N=e.className,P=e.style,I=e.disabled,T=e.hidden,F=e.classNames,A=e.styles,R=e.onResize,M=Di(e,iT),L=Wa(_l(b,{value:y,defaultValue:b}),2),B=L[0],z=L[1],H=Zb.useRef(null),W=Wa(AK.useState(!1),2),U=W[0],V=W[1],G=Wa(AK.useState(!1),2),q=G[0],X=G[1],K=AK.useRef(),Y=AK.useRef(0),Q=Wa(AK.useState(null),2),J=Q[0],Z=Q[1],ee=function(){var e;null===(e=H.current)||void 0===e||e.textArea.focus()};return Zb.useImperativeHandle(t,(function(){return{resizableTextArea:H.current,focus:ee,blur:function(){var e;null===(e=H.current)||void 0===e||e.textArea.blur()}}})),Zb.useEffect((function(){V((function(e){return!I&&e}))}),[I]),r=Number(S)>0,o=function(e){X(!0),K.current=B,Y.current=e.currentTarget.selectionStart,null==C||C(e)},i=function(e){var t,n;X(!1),t=e.currentTarget.value,r&&(t=Cp(Y.current>=S+1||Y.current===(null===(n=K.current)||void 0===n?void 0:n.length),K.current,t,S)),t!==B&&(z(t),bp(e.currentTarget,e,x,t)),null==E||E(e)},a=function(e){var t=e.target.value;!q&&r&&(t=Cp(e.target.selectionStart>=S+1||e.target.selectionStart===t.length||!e.target.selectionStart,B,t,S)),z(t),bp(e.currentTarget,e,x,t)},s=function(e){var t=M.onPressEnter,n=M.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},l=function(e){V(!0),null==v||v(e)},c=function(e){V(!1),null==w||w(e)},u=function(e){var t;z(""),ee(),bp(null===(t=H.current)||void 0===t?void 0:t.textArea,e,x)},d=vp(B),!q&&r&&null==y&&(d=Sp(d,S)),p=D,j&&(h=xa(d).length,f="object"===Si(j)?j.formatter({value:d,count:h,maxLength:S}):"".concat(h).concat(r?" / ".concat(S):""),p=AK.createElement(AK.Fragment,null,p,AK.createElement("span",{className:wY("".concat(_,"-data-count"),null==F?void 0:F.count),style:null==A?void 0:A.count},f))),g=function(e){var t;null==R||R(e),null!==(t=H.current)&&void 0!==t&&t.textArea.style.height&&Z(!0)},m=!M.autoSize&&!j&&!k,AK.createElement(MI,{value:d,allowClear:k,handleReset:u,suffix:p,prefixCls:_,classes:{affixWrapper:wY(null==$?void 0:$.affixWrapper,(n={},Ei(n,"".concat(_,"-show-count"),j),Ei(n,"".concat(_,"-textarea-allow-clear"),k),n))},disabled:I,focused:U,className:N,style:Sa(Sa({},P),J&&!m?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof f?f:void 0}},hidden:T,inputElement:AK.createElement(oT,fa({},M,{onKeyDown:s,onChange:a,onFocus:l,onBlur:c,onCompositionStart:o,onCompositionEnd:i,className:null==F?void 0:F.textarea,style:Sa(Sa({},null==A?void 0:A.textarea),{},{resize:null==P?void 0:P.resize}),disabled:I,prefixCls:_,onResize:g,ref:H}))})})),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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const r4=Zb.forwardRef(((e,t)=>{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c,rootClassName:u,className:d}=e,p=sT(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:f,direction:h}=Zb.useContext(XY),g=bJ(o),m=Zb.useContext(JY),b=null!=i?i:m,{status:y,hasFeedback:v,feedbackIcon:w}=Zb.useContext(wZ),x=J0(y,a),k=Zb.useRef(null);Zb.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=k.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=k.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=k.current)||void 0===e?void 0:e.blur()}}}));const S=f("input",n);let C;"object"==typeof s&&(null==s?void 0:s.clearIcon)?C=s:s&&(C={clearIcon:Zb.createElement(PQ,null)});const[E,D]=$2(S);return E(Zb.createElement(aT,Object.assign({},p,{disabled:b,allowClear:C,className:wY(d,u),classes:{affixWrapper:wY(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:"rtl"===h,[`${S}-affix-wrapper-borderless`]:!r,[`${S}-affix-wrapper-sm`]:"small"===g,[`${S}-affix-wrapper-lg`]:"large"===g,[`${S}-textarea-show-count`]:l},sd(`${S}-affix-wrapper`,x),D)},classNames:Object.assign(Object.assign({},c),{textarea:wY({[`${S}-borderless`]:!r,[`${S}-sm`]:"small"===g,[`${S}-lg`]:"large"===g},sd(S,x),D,null==c?void 0:c.textarea)}),prefixCls:S,suffix:v&&Zb.createElement("span",{className:`${S}-textarea-suffix`},w),showCount:l,ref:k})))})),o4=G5;o4.Group=e=>{const{getPrefixCls:t,direction:n}=Zb.useContext(XY),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=$2(a),c=wY(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=Zb.useContext(wZ),d=Zb.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(Zb.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},Zb.createElement(wZ.Provider,{value:d},e.children)))},o4.Search=n4,o4.TextArea=r4,o4.Password=e4;const i4=o4;lT=Zb.createContext(null),cT=Zb.createContext({}),uT=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.children,i=e.containerRef,a=e.id,s={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},l=$s(Zb.useContext(cT).panel,i);return Zb.createElement(Zb.Fragment,null,Zb.createElement("div",fa({id:a,className:wY("".concat(t,"-content"),n),style:Sa({},r),"aria-modal":"true",role:"dialog",ref:l},s),o))},dT={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},pT=Zb.forwardRef(Dp),fT=function(e){var t,n,r,o,i,a,s,l=e.open,c=void 0!==l&&l,u=e.prefixCls,d=void 0===u?"rc-drawer":u,p=e.placement,f=void 0===p?"right":p,h=e.autoFocus,g=void 0===h||h,m=e.keyboard,b=void 0===m||m,y=e.width,v=void 0===y?378:y,w=e.mask,x=void 0===w||w,k=e.maskClosable,S=void 0===k||k,C=e.getContainer,E=e.forceRender,D=e.afterOpenChange,O=e.destroyOnClose,_=e.onMouseEnter,$=e.onMouseOver,j=e.onMouseLeave,N=e.onClick,P=e.onKeyDown,I=e.onKeyUp,T=e.panelRef,F=Wa(Zb.useState(!1),2),A=F[0],R=F[1],M=Wa(Zb.useState(!1),2),L=M[0],B=M[1];return FD((function(){B(!0)}),[]),t=!!L&&c,n=Zb.useRef(),r=Zb.useRef(),FD((function(){t&&(r.current=document.activeElement)}),[t]),o=function(e){var t,o;R(e),null==D||D(e),e||!r.current||null!==(t=n.current)&&void 0!==t&&t.contains(r.current)||null===(o=r.current)||void 0===o||o.focus({preventScroll:!0})},i=Zb.useMemo((function(){return{panel:T}}),[T]),E||A||t||!O?(a={onMouseEnter:_,onMouseOver:$,onMouseLeave:j,onClick:N,onKeyDown:P,onKeyUp:I},s=Sa(Sa({},e),{},{open:t,prefixCls:d,placement:f,autoFocus:g,keyboard:b,width:v,mask:x,maskClosable:S,inline:!1===C,afterOpenChange:o,ref:n},a),Zb.createElement(cT.Provider,{value:i},Zb.createElement(X$,{open:t||E||A,autoDestroy:!1,getContainer:C,autoLock:x&&(t||A)},Zb.createElement(pT,s)))):null};const a4=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,closeIcon:s,closable:l,onClose:c,headerStyle:u,drawerStyle:d,bodyStyle:p,footerStyle:f,children:h,classNames:g,styles:m}=e,{drawer:b}=Zb.useContext(XY),y=Zb.useCallback((e=>Zb.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},e)),[c]),[v,w]=Nc(l,s,y,void 0,!0),x=Zb.useMemo((()=>{var e,t;return o||v?Zb.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==b?void 0:b.styles)||void 0===e?void 0:e.header),u),null==m?void 0:m.header),className:wY(`${r}-header`,{[`${r}-header-close-only`]:v&&!o&&!a},null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},Zb.createElement("div",{className:`${r}-header-title`},w,o&&Zb.createElement("div",{className:`${r}-title`},o)),a&&Zb.createElement("div",{className:`${r}-extra`},a)):null}),[v,w,a,u,r,o]),k=Zb.useMemo((()=>{var e,t;return i?Zb.createElement("div",{className:wY(`${r}-footer`,null===(e=null==b?void 0:b.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==b?void 0:b.styles)||void 0===t?void 0:t.footer),f),null==m?void 0:m.footer)},i):null}),[i,f,r]);return Zb.createElement("div",{className:`${r}-wrapper-body`,style:d},x,Zb.createElement("div",{className:wY(`${r}-body`,null==g?void 0:g.body,null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==b?void 0:b.styles)||void 0===n?void 0:n.body),p),null==m?void 0:m.body)},h),k)},s4=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%)"}}}]}}}},l4=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:f,marginSM:h,colorIcon:g,colorIconHover:m,colorText:b,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:w}=e,x=`${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"},[x]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${x}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${x}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${x}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${x}`]:{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:`${d}px ${p} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:g,fontWeight:y,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:m,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:`${v}px ${w}px`,borderTop:`${d}px ${p} ${f}`},"&-rtl":{direction:"rtl"}}}},c4=Nl("Drawer",(e=>{const t=$l(e,{});return[l4(t),s4(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const u4={distance:180},d4=e=>{var t,n,r,o,i,a,s,l;const{rootClassName:c,width:u,height:d,size:p="default",mask:f=!0,push:h=u4,open:g,afterOpenChange:m,onClose:b,prefixCls:y,getContainer:v,style:w,className:x,visible:k,afterVisibleChange:S}=e,C=hT(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:E,getPrefixCls:D,direction:O,drawer:_}=Zb.useContext(XY),$=D("drawer",y),[j,N]=c4($),P=void 0===v&&E?()=>E(document.body):v,I=wY({"no-mask":!f,[`${$}-rtl`]:"rtl"===O},c,N),T=Zb.useMemo((()=>null!=u?u:"large"===p?736:378),[u,p]),F=Zb.useMemo((()=>null!=d?d:"large"===p?736:378),[d,p]),A={motionName:cJ($,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},R=du();return j(Zb.createElement(CJ,null,Zb.createElement(xZ,{status:!0,override:!0},Zb.createElement(fT,Object.assign({prefixCls:$,onClose:b,maskMotion:A,motion:e=>({motionName:cJ($,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{classNames:{mask:wY(null===(t=C.classNames)||void 0===t?void 0:t.mask,null===(n=null==_?void 0:_.classNames)||void 0===n?void 0:n.mask),content:wY(null===(r=C.classNames)||void 0===r?void 0:r.content,null===(o=null==_?void 0:_.classNames)||void 0===o?void 0:o.content)},styles:{mask:Object.assign(Object.assign({},null===(i=C.styles)||void 0===i?void 0:i.mask),null===(a=null==_?void 0:_.styles)||void 0===a?void 0:a.mask),content:Object.assign(Object.assign({},null===(s=C.styles)||void 0===s?void 0:s.content),null===(l=null==_?void 0:_.styles)||void 0===l?void 0:l.content)},open:null!=g?g:k,mask:f,push:h,width:T,height:F,style:Object.assign(Object.assign({},null==_?void 0:_.style),w),className:wY(null==_?void 0:_.className,x),rootClassName:I,getContainer:P,afterOpenChange:null!=m?m:S,panelRef:R}),Zb.createElement(a4,Object.assign({prefixCls:$},C,{onClose:b}))))))};d4._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=hT(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=Zb.useContext(XY),s=a("drawer",t),[l,c]=c4(s),u=wY(s,`${s}-pure`,`${s}-${o}`,c,r);return l(Zb.createElement("div",{className:u,style:n},Zb.createElement(a4,Object.assign({prefixCls:s},i))))};const p4=d4,f4=AK.createContext({latestIndex:0}),h4=f4.Provider,g4=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=Zb.useContext(f4);return null==r?null:Zb.createElement(Zb.Fragment,null,Zb.createElement("div",{className:t,style:i},r),n<a&&o&&Zb.createElement("span",{className:`${t}-split`},o))};gT=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const m4=Zb.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=Zb.useContext(XY),{size:s=(null==i?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:p="horizontal",prefixCls:f,split:h,style:g,wrap:m=!1,classNames:b,styles:y}=e,v=gT(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(s)?s:[s,s],k=Op(x),S=Op(w),C=_p(x),E=_p(w),D=Ds(d,{keepEmpty:!0}),O=void 0===l&&"horizontal"===p?"center":l,_=o("space",f),[$,j]=xJ(_),N=wY(_,null==i?void 0:i.className,j,`${_}-${p}`,{[`${_}-rtl`]:"rtl"===a,[`${_}-align-${O}`]:O,[`${_}-gap-row-${x}`]:k,[`${_}-gap-col-${w}`]:S},c,u),P=wY(`${_}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item);let I=0;const T=D.map(((e,t)=>{var n,r;return null!=e&&(I=t),Zb.createElement(g4,{className:P,key:e&&e.key||`${P}-${t}`,index:t,split:h,style:null!==(n=null==y?void 0:y.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),F=Zb.useMemo((()=>({latestIndex:I})),[I]);if(0===D.length)return null;const A={};return m&&(A.flexWrap="wrap"),!S&&E&&(A.columnGap=w),!k&&C&&(A.rowGap=x),$(Zb.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},A),null==i?void 0:i.style),g)},v),Zb.createElement(h4,{value:F},T)))}));m4.Compact=e=>{const{getPrefixCls:t,direction:n}=Zb.useContext(XY),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=L$(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=bJ((e=>null!=r?r:e)),p=t("space-compact",a),[f,h]=xJ(p),g=wY(p,h,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===o},s,l),m=Zb.useContext(kJ),b=Ds(c),y=Zb.useMemo((()=>b.map(((e,t)=>Zb.createElement(EJ,{key:e&&e.key||`${p}-item-${t}`,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!m||(null==m?void 0:m.isFirstItem)),isLastItem:t===b.length-1&&(!m||(null==m?void 0:m.isLastItem))},e)))),[r,b,m]);return 0===b.length?null:f(Zb.createElement("div",Object.assign({className:g},u),y))};const b4=m4,y4=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)"}}}}},v4=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}}),w4=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},x4=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},sQ(e)),v4(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},w4(e,e.controlHeightSM)),"&-large":Object.assign({},w4(e,e.controlHeightLG))})}},k4=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},sQ(e)),{marginBottom:d,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`]:{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:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,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:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-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:YZ,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},S4=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},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"},[`> ${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"}}}}},E4=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),D4=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:E4(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},O4=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`]:E4(e),[`@media (max-width: ${e.screenXSMax}px)`]:[D4(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:E4(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:E4(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:E4(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:E4(e)}}}},_4=(e,t)=>$l(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$4=Nl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=_4(e,n);return[x4(r),k4(r),y4(r),S4(r),C4(r),O4(r),u0(r),YZ]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3}),j4=[],N4=e=>{let{help:t,helpStatus:n,errors:r=j4,warnings:o=j4,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=Zb.useContext(vZ),c=`${l}-item-explain`,[,u]=$4(l),d=Zb.useMemo((()=>lJ(l)),[l]),p=$p(r),f=$p(o),h=Zb.useMemo((()=>null!=t?[jp(t,"help",n)]:[].concat(xa(p.map(((e,t)=>jp(e,"error","error",t)))),xa(f.map(((e,t)=>jp(e,"warning","warning",t)))))),[t,n,p,f]),g={};return a&&(g.id=`${a}_help`),Zb.createElement(bQ,{motionDeadline:d.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return Zb.createElement("div",Object.assign({},g,{className:wY(c,t,i,u),style:n,role:"alert"}),Zb.createElement(yQ,Object.assign({keys:h},lJ(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return Zb.createElement("div",{key:t,className:wY(o,{[`${c}-${r}`]:r}),style:i},n)})))}))},P4=["parentNode"],I4="form_item";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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const T4=(e,t)=>{const n=Zb.useContext(JY),{getPrefixCls:r,direction:o,form:i}=Zb.useContext(XY),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:p,labelAlign:f,labelWrap:h,labelCol:g,wrapperCol:m,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:v,requiredMark:w,onFinishFailed:x,name:k,style:S,feedbackIcons:C}=e,E=mT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),D=bJ(c),O=Zb.useContext(CY),_=Zb.useMemo((()=>void 0!==w?w:i&&void 0!==i.requiredMark?i.requiredMark:!b),[b,w,i]),$=null!=p?p:null==i?void 0:i.colon,j=r("form",a),[N,P]=$4(j),I=wY(j,`${j}-${y}`,{[`${j}-hide-required-mark`]:!1===_,[`${j}-rtl`]:"rtl"===o,[`${j}-${D}`]:D},P,null==i?void 0:i.className,s,l),[T]=Fp(d),{__INTERNAL__:F}=T;F.name=k;const A=Zb.useMemo((()=>({name:k,labelAlign:f,labelCol:g,labelWrap:h,wrapperCol:m,vertical:"vertical"===y,colon:$,requiredMark:_,itemRef:F.itemRef,form:T,feedbackIcons:C})),[k,f,g,m,y,$,_,T,C]);Zb.useImperativeHandle(t,(()=>T));const R=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),T.scrollToField(t,n)}};return N(Zb.createElement(QY,{disabled:u},Zb.createElement(eQ,{size:D},Zb.createElement(yZ,{validateMessages:O},Zb.createElement(mZ.Provider,{value:A},Zb.createElement(Rj,Object.assign({id:k},E,{name:k,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==v)return void R(v,t);i&&void 0!==i.scrollToFirstError&&R(i.scrollToFirstError,t)}},form:T,style:Object.assign(Object.assign({},null==i?void 0:i.style),S),className:I})))))))},F4=Zb.forwardRef(T4),A4=()=>{const{status:e,errors:t=[],warnings:n=[]}=Zb.useContext(wZ);return{status:e,errors:t,warnings:n}};A4.Context=wZ;const R4=A4,M4=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},L4=mQ(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=_4(e,n);return[M4(r)]})),B4=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:p}=e,f=`${t}-item`,h=Zb.useContext(mZ),g=r||h.wrapperCol||{},m=wY(`${f}-control`,g.className),b=Zb.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const y=Zb.createElement("div",{className:`${f}-control-input`},Zb.createElement("div",{className:`${f}-control-input-content`},o)),v=Zb.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||i.length||a.length?Zb.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Zb.createElement(vZ.Provider,{value:v},Zb.createElement(N4,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${f}-explain-connected`,onVisibleChanged:p})),!!d&&Zb.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id=`${u}_extra`);const k=l?Zb.createElement("div",Object.assign({},x,{className:`${f}-extra`}),l):null,S=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:y,errorList:w,extra:k}):Zb.createElement(Zb.Fragment,null,y,w,k);return Zb.createElement(mZ.Provider,{value:b},Zb.createElement(k5,Object.assign({},g,{className:m}),S),Zb.createElement(L4,{prefixCls:t}))},z4={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"},H4=Zb.forwardRef((function(e,t){return Zb.createElement($Q,fa({},e,{ref:t,icon:z4}))}));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const W4=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c}=e;var u;const[d]=IY("Form"),{vertical:p,labelAlign:f,labelCol:h,labelWrap:g,colon:m}=Zb.useContext(mZ);if(!n)return null;const b=o||h||{},y=`${t}-item-label`,v=wY(y,"left"===(i||f)&&`${y}-left`,b.className,{[`${y}-wrap`]:!!g});let w=n;const x=!0===a||!1!==m&&!1!==a;x&&!p&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const k=function(e){return e?"object"!=typeof e||Zb.isValidElement(e)?{title:e}:e:null}(c);if(k){const{icon:e=Zb.createElement(H4,null)}=k,n=bT(k,["icon"]),r=Zb.createElement(H1,Object.assign({},n),Zb.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));w=Zb.createElement(Zb.Fragment,null,w,r)}const S="optional"===l,C="function"==typeof l;C?w=l(w,{required:!!s}):S&&!s&&(w=Zb.createElement(Zb.Fragment,null,w,Zb.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=_Y.Form)||void 0===u?void 0:u.optional))));const E=wY({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:S||C,[`${t}-item-no-colon`]:!x});return Zb.createElement(k5,Object.assign({},b,{className:v}),Zb.createElement("label",{htmlFor:r,className:E,title:"string"==typeof n?n:""},w))},U4={success:jQ,warning:AQ,error:PQ,validating:XQ};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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const V4=Zb.memo((e=>{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])))),G4=function(e){function t(t,n,i){return r&&!g?Zb.createElement(Ap,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:F,warnings:A,noStyle:!0},t):Zb.createElement(Rp,Object.assign({key:"row"},e,{className:wY(o,O),prefixCls:E,fieldId:n,isRequired:i,errors:F,warnings:A,meta:P,onSubItemMetaChange:T}),t)}const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:s,rules:l,children:c,required:u,label:d,messageVariables:p,trigger:f="onChange",validateTrigger:h,hidden:g,help:m}=e,{getPrefixCls:b}=Zb.useContext(XY),{name:y}=Zb.useContext(mZ),v=function(e){if("function"==typeof e)return e;const t=Ds(e);return t.length<=1?t[0]:t}(c),w="function"==typeof v,x=Zb.useContext(bZ),{validateTrigger:k}=Zb.useContext(oj),S=void 0!==h?h:k,C=!(null==n),E=b("form",a),[D,O]=$4(E);SY();const _=Zb.useContext(ij),$=Zb.useRef(),[j,N]=function(){const[e,t]=Zb.useState({}),n=Zb.useRef(null),r=Zb.useRef([]),o=Zb.useRef(!1);return Zb.useEffect((()=>(o.current=!1,()=>{o.current=!0,d_.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=d_((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[P,I]=Dl((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),T=(e,t)=>{N((n=>{const r=Object.assign({},n),o=[].concat(xa(e.name.slice(0,-1)),xa(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[F,A]=Zb.useMemo((()=>{const e=xa(P.errors),t=xa(P.warnings);return Object.values(j).forEach((n=>{e.push.apply(e,xa(n.errors||[])),t.push.apply(t,xa(n.warnings||[]))})),[e,t]}),[j,P.errors,P.warnings]),R=function(){const{itemRef:e}=Zb.useContext(mZ),t=Zb.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=_s(e(n),o)),t.current.ref}}();if(!C&&!w&&!i)return D(t(v));let M={};return"string"==typeof d?M.label=d:n&&(M.label=String(n)),p&&(M=Object.assign(Object.assign({},M),p)),D(Zb.createElement(ou,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:S,onMetaChange:e=>{const t=null==_?void 0:_.getKey(e.name);if(I(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==m&&x){let n=e.name;if(e.destroy)n=$.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(xa(r)),$.current=n}x(e,n)}}}),((r,o,a)=>{const c=Np(n).length&&o?o.name:[],d=Pp(c,y),p=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(a);return t&&t.required&&!t.warningOnly}return!1}))),h=Object.assign({},r);let g=null;if(Array.isArray(v)&&C)g=v;else if(w&&(!s&&!i||C));else if(!i||w||C)if(LQ(v)){const t=Object.assign(Object.assign({},v.props),h);if(t.id||(t.id=d),m||F.length>0||A.length>0||e.extra){const n=[];(m||F.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t["aria-describedby"]=n.join(" ")}F.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),js(v)&&(t.ref=R(c,v)),new Set([].concat(xa(Np(f)),xa(Np(S)))).forEach((e=>{t[e]=function(){var t,n,r,o,i,a,s,l;for(a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];null===(r=h[e])||void 0===r||(t=r).call.apply(t,[h].concat(s)),null===(i=(o=v.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(s))}})),g=Zb.createElement(V4,{value:h[e.valuePropName||"value"],update:v,childProps:[t["aria-required"],t["aria-invalid"],t["aria-describedby"]]},ec(v,t))}else g=w&&(s||i)&&!C?v(a):v;return t(g,d,p)})))};G4.useStatus=R4,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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const q4=F4;q4.Item=G4,q4.List=e=>{var{prefixCls:t,children:n}=e,r=vT(e,["prefixCls","children"]);const{getPrefixCls:o}=Zb.useContext(XY),i=o("form",t),a=Zb.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return Zb.createElement(iu,Object.assign({},r),((e,t,r)=>Zb.createElement(vZ.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},q4.ErrorList=N4,q4.useForm=Fp,q4.useFormInstance=function(){const{form:e}=Zb.useContext(mZ);return e},q4.useWatch=cu,q4.Provider=yZ,q4.create=()=>{};const X4=q4;let K4=null,Y4=e=>e(),Q4=[],J4={};const Z4=Zb.forwardRef(((e,t)=>{const[n,r]=Zb.useState(Mp),[o,i]=rc(n),a=CQ(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(Mp)};return Zb.useEffect(u,[]),Zb.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),Zb.createElement(DQ,{prefixCls:s,iconPrefixCls:l,theme:c},i)})),e3={open:function(e){const t=nc((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return Q4.push(r),()=>{n?Y4((()=>{n()})):r.skipped=!0}}));return Lp(),t},destroy:function(e){Q4.push({type:"destroy",key:e}),Lp()},config:function(e){J4=Object.assign(Object.assign({},J4),e),Y4((()=>{var e;null===(e=null==K4?void 0:K4.sync)||void 0===e||e.call(K4)}))},useMessage:oc,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=N$(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=Zb.useContext(XY),l=t||s("message"),[,c]=YQ(l);return Zb.createElement(k$,Object.assign({},a,{prefixCls:l,className:wY(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:Zb.createElement(JQ,{prefixCls:l,type:r,icon:o},i)}))}},t3=e3;["success","info","warning","error","loading"].forEach((e=>{t3[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){const n=nc((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return Q4.push(o),()=>{r?Y4((()=>{r()})):o.skipped=!0}}));return Lp(),n}(e,n)}}));const n3=t3;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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const r3=Eu((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s}=e,l=wT(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=Zb.useContext(XY),u=c(),d=t||c("modal"),[,p]=b0(d),f=`${d}-confirm`;let h={};return h=i?{closable:null!=o&&o,title:"",footer:"",children:Zb.createElement(hu,Object.assign({},e,{prefixCls:d,confirmPrefixCls:f,rootPrefixCls:u,content:s}))}:{closable:null==o||o,title:a,footer:void 0===e.footer?Zb.createElement(EZ,Object.assign({},e)):e.footer,children:s},Zb.createElement(Z$,Object.assign({prefixCls:d,className:wY(p,`${d}-pure-panel`,i&&f,i&&`${f}-${i}`,n)},l,{closeIcon:pu(d,r),closable:o},h))})),o3=v0;o3.useModal=xu,o3.info=function(e){return gu(bu(e))},o3.success=function(e){return gu(yu(e))},o3.error=function(e){return gu(vu(e))},o3.warning=Bp,o3.warn=Bp,o3.confirm=function(e){return gu(wu(e))},o3.destroyAll=function(){for(;S0.length;){const e=S0.pop();e&&e()}},o3.config=function(e){let{rootPrefixCls:t}=e;C0=t},o3._InternalPanelDoNotUseOrYouWillBeFired=r3;const i3=o3;let a3=null,s3=e=>e(),l3=[],c3={};const u3=Zb.forwardRef(((e,t)=>{const[n,r]=Zb.useState(zp),[o,i]=Su(n),a=CQ(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(zp)};return Zb.useEffect(u,[]),Zb.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),Zb.createElement(DQ,{prefixCls:s,iconPrefixCls:l,theme:c},i)})),d3={open:Wp,destroy:function(e){l3.push({type:"destroy",key:e}),Hp()},config:function(e){c3=Object.assign(Object.assign({},c3),e),s3((()=>{var e;null===(e=null==a3?void 0:a3.sync)||void 0===e||e.call(a3)}))},useNotification:Cu,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c}=e,u=Hj(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=Zb.useContext(XY),p=t||d("notification"),f=`${p}-notice`,[,h]=A0(p);return Zb.createElement("div",{className:wY(`${f}-pure-panel`,h,n)},Zb.createElement(k$,Object.assign({},u,{prefixCls:p,eventKey:"pure",duration:null,closable:l,closeIcon:ku(p,c),content:Zb.createElement(M0,{prefixCls:f,icon:r,type:o,message:i,description:a,btn:s})})))}},p3=d3;["success","info","warning","error"].forEach((e=>{p3[e]=t=>Wp(Object.assign(Object.assign({},t),{type:e}))}));const f3=p3;xT=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},kT=function(e){return void 0!==e?"".concat(e,"px"):void 0},ST=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"],CT=function(e){var t=e.prefixCls,n=e.disabled,r=e.checked,o=e.label,i=e.title,a=e.value,s=e.onChange;return Zb.createElement("label",{className:wY(e.className,Ei({},"".concat(t,"-item-disabled"),n))},Zb.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:r,onChange:function(e){n||s(e,a)}}),Zb.createElement("div",{className:"".concat(t,"-item-label"),title:i},o))},ET=Zb.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,p=e.className,f=void 0===p?"":p,h=e.motionName,g=void 0===h?"thumb-motion":h,m=Di(e,ST),b=Zb.useRef(null),y=Zb.useMemo((function(){return _s(b,t)}),[b,t]),v=Zb.useMemo((function(){return function(e){return e.map((function(e){if("object"===Si(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Si(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Sa(Sa({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(s)}),[s]),w=Wa(_l(null===(n=v[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),x=w[0],k=w[1],S=Wa(Zb.useState(!1),2),C=S[0],E=S[1],D=function(e,t){l||(k(t),null==d||d(t))},O=Us(m,["children"]);return Zb.createElement("div",fa({},O,{className:wY(i,(r={},Ei(r,"".concat(i,"-rtl"),"rtl"===a),Ei(r,"".concat(i,"-disabled"),l),r),f),ref:y}),Zb.createElement("div",{className:"".concat(i,"-group")},Zb.createElement(Up,{prefixCls:i,value:x,containerRef:b,motionName:"".concat(i,"-").concat(g),direction:a,getValueIndex:function(e){return v.findIndex((function(t){return t.value===e}))},onMotionStart:function(){E(!0)},onMotionEnd:function(){E(!1)}}),v.map((function(e){return Zb.createElement(CT,fa({},e,{key:e.value,prefixCls:i,className:wY(e.className,"".concat(i,"-item"),Ei({},"".concat(i,"-item-selected"),e.value===x&&!C)),checked:e.value===x,onChange:D,disabled:!!l||!!e.disabled}))}))))})),ET.displayName="Segmented",ET.defaultProps={options:[]};const h3=Object.assign({overflow:"hidden"},aQ),g3=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sQ(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,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Gp(e)),{color:e.itemSelectedColor}),"&::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`},h3),"&-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({},Gp(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}}}),Vp(`&-disabled ${t}-item`,e)),Vp(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},m3=Nl("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[g3(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}}));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const b3=Zb.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:s="middle",style:l}=e,c=DT(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:p}=Zb.useContext(XY),f=u("segmented",n),[h,g]=m3(f),m=bJ(s),b=Zb.useMemo((()=>a.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=DT(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:Zb.createElement(Zb.Fragment,null,Zb.createElement("span",{className:`${f}-item-icon`},t),n&&Zb.createElement("span",null,n))})}return e}))),[a,f]),y=wY(r,o,null==p?void 0:p.className,{[`${f}-block`]:i,[`${f}-sm`]:"small"===m,[`${f}-lg`]:"large"===m},g),v=Object.assign(Object.assign({},null==p?void 0:p.style),l);return h(Zb.createElement(ET,Object.assign({},c,{className:y,style:v,options:b,ref:t,prefixCls:f,direction:d})))}));OT=Zb.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),_T=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],$T=Zb.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,p=Di(e,_T),f=Zb.useContext(OT),h=f.min,g=f.max,m=f.direction,b=f.disabled,y=f.keyboard,v=f.range,w=f.tabIndex,x=f.ariaLabelForHandle,k=f.ariaLabelledByForHandle,S=f.ariaValueTextFormatterForHandle,C=f.styles,E=f.classNames,D="".concat(o,"-handle"),O=function(e){b||s(e,a)},_=Xp(m,i,h,g),$=Zb.createElement("div",fa({ref:t,className:wY(D,(n={},Ei(n,"".concat(D,"-").concat(a+1),v),Ei(n,"".concat(D,"-dragging"),u),n),E.handle),style:Sa(Sa(Sa({},_),l),C.handle),onMouseDown:O,onTouchStart:O,onKeyDown:function(e){if(!b&&y){var t=null;switch(e.which||e.keyCode){case x$.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case x$.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case x$.UP:t="ttb"!==m?1:-1;break;case x$.DOWN:t="ttb"!==m?-1:1;break;case x$.HOME:t="min";break;case x$.END:t="max";break;case x$.PAGE_UP:t=2;break;case x$.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,a))}},tabIndex:b?null:Kp(w,a),role:"slider","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":Kp(x,a),"aria-labelledby":Kp(k,a),"aria-valuetext":null===(r=Kp(S,a))||void 0===r?void 0:r(i),"aria-orientation":"ltr"===m||"rtl"===m?"horizontal":"vertical"},p));return c&&($=c($,{index:a,prefixCls:o,value:i,dragging:u})),$})),jT=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],NT=Zb.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Di(e,jT),u=Zb.useRef({});return Zb.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),Zb.createElement(Zb.Fragment,null,a.map((function(e,t){return Zb.createElement($T,fa({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:Kp(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:s},c))})))})),PT=Zb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E=e.prefixCls,D=void 0===E?"rc-slider":E,O=e.className,_=e.style,$=e.classNames,j=e.styles,N=e.disabled,P=void 0!==N&&N,I=e.keyboard,T=void 0===I||I,F=e.autoFocus,A=e.onFocus,R=e.onBlur,M=e.min,L=void 0===M?0:M,B=e.max,z=void 0===B?100:B,H=e.step,W=void 0===H?1:H,U=e.value,V=e.defaultValue,G=e.range,q=e.count,X=e.onChange,K=e.onBeforeChange,Y=e.onAfterChange,Q=e.allowCross,J=void 0===Q||Q,Z=e.pushable,ee=void 0!==Z&&Z,te=e.draggableTrack,ne=e.reverse,re=e.vertical,oe=e.included,ie=void 0===oe||oe,ae=e.startPoint,se=e.trackStyle,le=e.handleStyle,ce=e.railStyle,ue=e.dotStyle,de=e.activeDotStyle,pe=e.marks,fe=e.dots,he=e.handleRender,ge=e.tabIndex,me=void 0===ge?0:ge,be=e.ariaLabelForHandle,ye=e.ariaLabelledByForHandle,ve=e.ariaValueTextFormatterForHandle,we=Zb.useRef(),xe=Zb.useRef(),ke=Zb.useMemo((function(){return re?ne?"ttb":"btt":ne?"rtl":"ltr"}),[ne,re]),Se=Zb.useMemo((function(){return isFinite(L)?L:0}),[L]),Ce=Zb.useMemo((function(){return isFinite(z)?z:100}),[z]),Ee=Zb.useMemo((function(){return null!==W&&W<=0?1:W}),[W]),De=Zb.useMemo((function(){return"boolean"==typeof ee?!!ee&&Ee:ee>=0&&ee}),[ee,Ee]),Oe=Zb.useMemo((function(){return Object.keys(pe||{}).map((function(e){var t=pe[e],n={value:Number(e)};return t&&"object"===Si(t)&&!Zb.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}))}),[pe]),_e=function(e,t,n,r,o,i){var a=Zb.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=Zb.useCallback((function(r){var o,i,s,l;return null!==n?(o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(i(n),i(t),i(e)),l=Number(o.toFixed(s)),e<=l&&l<=t?l:null):null}),[n,e,t,a]),l=Zb.useCallback((function(o){var i,l,c=a(o),u=r.map((function(e){return e.value}));return null!==n&&u.push(s(o)),u.push(e,t),i=u[0],l=t-e,u.forEach((function(e){var t=Math.abs(c-e);t<=l&&(i=e,l=t)})),i}),[e,t,r,n,a,s]),c=function o(i,a,l,c){var u,d,p,f,h,g,m,b,y=arguments.length>3&&void 0!==c?c:"unit";return"number"==typeof a?(p=(d=i[l])+a,f=[],r.forEach((function(e){f.push(e.value)})),f.push(e,t),f.push(s(d)),h=a>0?1:-1,f.push(s("unit"===y?d+h*n:p)),f=f.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===y&&(f=f.filter((function(e){return e!==d}))),g="unit"===y?d:p,u=f[0],m=Math.abs(u-g),f.forEach((function(e){var t=Math.abs(e-g);t<m&&(u=e,m=t)})),void 0===u?a<0?e:t:"dist"===y?u:Math.abs(a)>1?((b=xa(i))[l]=u,o(b,a-h,l,y)):u):"min"===a?e:"max"===a?t:void 0},u=function(e,t,n,r){var o=e[n],i=c(e,t,n,arguments.length>3&&void 0!==r?r:"unit");return{value:i,changed:i!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e<i};return[l,function(e,t,n,r){var a,s,p,f,h,g,m,b,y,v,w,x,k,S=arguments.length>3&&void 0!==r?r:"unit",C=e.map(l),E=C[n],D=c(C,t,n,S);if(C[n]=D,!1===o)a=i||0,n>0&&C[n-1]!==E&&(C[n]=Math.max(C[n],C[n-1]+a)),n<C.length-1&&C[n+1]!==E&&(C[n]=Math.min(C[n],C[n+1]-a));else if("number"==typeof i||null===i){for(s=n+1;s<C.length;s+=1)for(p=!0;d(C[s]-C[s-1])&&p;)f=u(C,1,s),C[s]=f.value,p=f.changed;for(h=n;h>0;h-=1)for(g=!0;d(C[h]-C[h-1])&&g;)m=u(C,-1,h-1),C[h-1]=m.value,g=m.changed;for(b=C.length-1;b>0;b-=1)for(y=!0;d(C[b]-C[b-1])&&y;)v=u(C,-1,b-1),C[b-1]=v.value,y=v.changed;for(w=0;w<C.length-1;w+=1)for(x=!0;d(C[w+1]-C[w])&&x;)k=u(C,1,w+1),C[w+1]=k.value,x=k.changed}return{value:C[n],values:C}}]}(Se,Ce,Ee,Oe,J,De),$e=Wa(_e,2),je=$e[0],Ne=$e[1],Pe=Wa(_l(V,{value:U}),2),Ie=Pe[0],Te=Pe[1],Fe=Zb.useMemo((function(){var e,t,n=null==Ie?[]:Array.isArray(Ie)?Ie:[Ie],r=Wa(n,1)[0],o=null===Ie?[]:[void 0===r?Se:r];if(G){if(o=xa(n),q||void 0===Ie)for(o=o.slice(0,e=q>=0?q+1:2);o.length<e;)o.push(null!==(t=o[o.length-1])&&void 0!==t?t:Se);o.sort((function(e,t){return e-t}))}return o.forEach((function(e,t){o[t]=je(e)})),o}),[Ie,G,Se,q,je]),Ae=Zb.useRef(Fe);return Ae.current=Fe,r=function(e){return G?e:e[0]},o=function(e){var t=xa(e).sort((function(e,t){return e-t}));X&&!ja(t,Ae.current,!0)&&X(r(t)),Te(t)},i=function(e){var t,n,i;P||(t=0,n=Ce-Se,Fe.forEach((function(r,o){var i=Math.abs(e-r);i<=n&&(n=i,t=o)})),(i=xa(Fe))[t]=e,G&&!Fe.length&&void 0===q&&i.push(e),null==K||K(r(i)),o(i),null==Y||Y(r(i)))},a=function(e){var t,n,r,o,a,s,l,c,u,d;switch(e.preventDefault(),n=(t=xe.current.getBoundingClientRect()).width,r=t.height,o=t.left,a=t.top,s=t.bottom,l=t.right,c=e.clientX,u=e.clientY,ke){case"btt":d=(s-u)/r;break;case"ttb":d=(u-a)/r;break;case"rtl":d=(l-c)/n;break;default:d=(c-o)/n}i(je(Se+d*(Ce-Se)))},s=Wa(Zb.useState(null),2),c=s[1],u=function(e,t){if(!P){var n=Ne(Fe,e,t);null==K||K(r(Fe)),o(n.values),null==Y||Y(r(n.values)),c(n.value)}},Zb.useEffect((function(){if(null!==l){var e=Fe.indexOf(l);e>=0&&we.current.focus(e)}c(null)}),[l=s[0]]),d=Zb.useMemo((function(){return(!te||null!==Ee)&&te}),[te,Ee]),p=function(e,t,n,o,i,a,s,l,c){var u,d,p,f,h,g=Wa(Zb.useState(null),2),m=g[0],b=g[1],y=Wa(Zb.useState(-1),2),v=y[0],w=y[1],x=Wa(Zb.useState(n),2),k=x[0],S=x[1],C=Wa(Zb.useState(n),2),E=C[0],D=C[1],O=Zb.useRef(null),_=Zb.useRef(null);return Zb.useEffect((function(){-1===v&&S(n)}),[n,v]),Zb.useEffect((function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",_.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",_.current)}}),[]),u=function(e,t){k.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&b(t),S(e),s(e))},(p=Zb.useRef(d=function(e,t){var n,r,s,l,d,p,f,h;-1===e?(n=E[0],r=i-E[E.length-1],s=t*(i-o),s=Math.max(s,o-n),s=Math.min(s,r),l=a(n+s),s=l-n,d=E.map((function(e){return e+s})),u(d)):(p=(i-o)*t,(f=xa(k))[e]=E[e],h=c(f,p,e,"dist"),u(h.values,h.value))})).current=d,f=function(o,i){var a,s,l,c,u,d;o.stopPropagation(),a=n[i],w(i),b(a),D(n),s=Yp(o),l=s.pageX,c=s.pageY,u=function(n){var r,o,a,s,u,d,f;switch(n.preventDefault(),o=(r=Yp(n)).pageX-l,a=r.pageY-c,u=(s=e.current.getBoundingClientRect()).width,d=s.height,t){case"btt":f=-a/d;break;case"ttb":f=a/d;break;case"rtl":f=-o/u;break;default:f=o/u}p.current(i,f)},d=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),O.current=null,_.current=null,w(-1),null==Y||Y(r(Ae.current))},document.addEventListener("mouseup",d),document.addEventListener("mousemove",u),document.addEventListener("touchend",d),document.addEventListener("touchmove",u),O.current=u,_.current=d},h=Zb.useMemo((function(){var e=xa(n).sort((function(e,t){return e-t})),t=xa(k).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?k:n}),[n,k]),[v,m,h,f]}(xe,ke,Fe,Se,Ce,je,o,0,Ne),f=Wa(p,4),g=f[1],m=f[2],b=f[3],y=function(e,t){b(e,t),null==K||K(r(Ae.current))},Zb.useEffect((function(){if(!v){var e=Fe.lastIndexOf(g);we.current.focus(e)}}),[v=-1!==(h=f[0])]),w=Zb.useMemo((function(){return xa(m).sort((function(e,t){return e-t}))}),[m]),x=Wa(Zb.useMemo((function(){return G?[w[0],w[w.length-1]]:[Se,w[0]]}),[w,G,Se]),2),k=x[0],S=x[1],Zb.useImperativeHandle(t,(function(){return{focus:function(){we.current.focus(0)},blur:function(){var e=document.activeElement;xe.current.contains(e)&&(null==e||e.blur())}}})),Zb.useEffect((function(){F&&we.current.focus(0)}),[]),C=Zb.useMemo((function(){return{min:Se,max:Ce,direction:ke,disabled:P,keyboard:T,step:Ee,included:ie,includedStart:k,includedEnd:S,range:G,tabIndex:me,ariaLabelForHandle:be,ariaLabelledByForHandle:ye,ariaValueTextFormatterForHandle:ve,styles:j||{},classNames:$||{}}}),[Se,Ce,ke,P,T,Ee,ie,k,S,G,me,be,ye,ve,j,$]),Zb.createElement(OT.Provider,{value:C},Zb.createElement("div",{ref:xe,className:wY(D,O,(n={},Ei(n,"".concat(D,"-disabled"),P),Ei(n,"".concat(D,"-vertical"),re),Ei(n,"".concat(D,"-horizontal"),!re),Ei(n,"".concat(D,"-with-marks"),Oe.length),n)),style:_,onMouseDown:a},Zb.createElement("div",{className:wY("".concat(D,"-rail"),null==$?void 0:$.rail),style:Sa(Sa({},ce),null==j?void 0:j.rail)}),Zb.createElement(nf,{prefixCls:D,style:se,values:w,startPoint:ae,onStartMove:d?y:null}),Zb.createElement(ef,{prefixCls:D,marks:Oe,dots:fe,style:ue,activeStyle:de}),Zb.createElement(NT,{ref:we,prefixCls:D,style:le,values:m,draggingIndex:h,onStartMove:y,onOffsetChange:u,onFocus:A,onBlur:R,handleRender:he}),Zb.createElement(Jp,{prefixCls:D,marks:Oe,onClick:i})))}));const y3=Zb.forwardRef(((e,t)=>{function n(){d_.cancel(i.current),i.current=null}const{open:r}=e,o=Zb.useRef(null),i=Zb.useRef(null);return Zb.useEffect((()=>(r?i.current=d_((()=>{var e;null===(e=o.current)||void 0===e||e.forceAlign(),i.current=null})):n(),n)),[r,e.title]),Zb.createElement(H1,Object.assign({ref:_s(o,t)},e))})),v3=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},sQ(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${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.handleColor}`,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.handleActiveColor}`,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:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,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 y_(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},w3=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart",u=(3*r-o)/2,d=(o-r)/2;return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[a]:"100%",[s]:r},[`${n}-track,${n}-tracks`]:{[s]:r},[`${n}-track-draggable`]:Object.assign({},t?{borderWidth:`${d}px 0`,transform:`translateY(-${d}px)`}:{borderWidth:`0 ${d}px`,transform:`translateX(-${d}px)`}),[`${n}-handle`]:{[l]:u},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:3*r+(t?0:e.marginFull),[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-i)/2}}},x3=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},w3(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},k3=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},w3(e,!1)),{height:"100%"})}},S3=Nl("Slider",(e=>{const t=$l(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[v3(t),x3(t),k3(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,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));IT=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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const C3=e=>"number"==typeof e?e.toString():"",E3=AK.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:p}=e,f=IT(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:g,getPrefixCls:m,getPopupContainer:b}=AK.useContext(XY),y=AK.useContext(JY),v=null!=s?s:y,[w,x]=AK.useState({}),k=(e,t)=>{x((n=>Object.assign(Object.assign({},n),{[e]:t})))},S=(e,t)=>e||(t?"rtl"===h?"left":"right":"top"),C=m("slider",n),[E,D]=S3(C),O=wY(o,null==g?void 0:g.className,i,{[`${C}-rtl`]:"rtl"===h},D);"rtl"!==h||f.vertical||(f.reverse=!f.reverse);const[_,$]=AK.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),j=Object.assign(Object.assign({},null==g?void 0:g.style),a);return E(AK.createElement(PT,Object.assign({},f,{step:f.step,range:_,draggableTrack:$,className:O,style:j,disabled:v,ref:t,prefixCls:C,handleRender:(t,n)=>{var r;const{index:o,dragging:i}=n,{tooltip:a={},vertical:s}=e,f=Object.assign({},a),{open:h,placement:g,getPopupContainer:y,prefixCls:v,formatter:x}=f;let E;E=x||null===x?x:c||null===c?c:C3;const D=null!==(r=null!=h?h:u)&&void 0!==r?r:void 0===h&&!!E&&(w[o]||i),O=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>k(o,!0),onMouseLeave:()=>k(o,!1)}),_=m("tooltip",null!=v?v:l);return AK.createElement(y3,Object.assign({},f,{prefixCls:_,title:E?E(n.value):"",open:D,placement:S(null!=g?g:p,s),key:o,overlayClassName:`${C}-tooltip`,getPopupContainer:y||d||b}),AK.cloneElement(t,O))}})))}));TT=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],FT=Zb.forwardRef((function(e,t){function n(e,t){var n=y;return c||(v(n=e),null==h||h(n,t)),n}var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,f=e.onClick,h=e.onChange,g=e.onKeyDown,m=Di(e,TT),b=Wa(_l(!1,{value:s,defaultValue:l}),2),y=b[0],v=b[1],w=wY(i,a,(Ei(r={},"".concat(i,"-checked"),y),Ei(r,"".concat(i,"-disabled"),c),r));return Zb.createElement("button",fa({},m,{type:"button",role:"switch","aria-checked":y,disabled:c,className:w,ref:t,onKeyDown:function(e){e.which===x$.LEFT?n(!1,e):e.which===x$.RIGHT&&n(!0,e),null==g||g(e)},onClick:function(e){var t=n(!y,e);null==f||f(t,e)}}),u,Zb.createElement("span",{className:"".concat(i,"-inner")},Zb.createElement("span",{className:"".concat(i,"-inner-checked")},d),Zb.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))})),FT.displayName="Switch";const D3=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s}=e,l=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${s+2*r}px + ${2*a}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${s+2*r}px - ${2*a}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},O3=e=>{const{componentCls:t,handleSize:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},_3=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:i,handleSize:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a/2,boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${a+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},$3=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a}=e,s=`${t}-inner`;return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${a+2*r}px + ${2*i}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${a+2*r}px - ${2*i}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},j3=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},sQ(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}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}}),dQ(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"}})}},N3=Nl("Switch",(e=>{const t=$l(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[j3(t),$3(t),_3(t),O3(t),D3(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new y_("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const P3=Zb.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=AT(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:p}=Zb.useContext(XY),f=Zb.useContext(JY),h=(null!=o?o:f)||i,g=u("switch",n),m=Zb.createElement("div",{className:`${g}-handle`},i&&Zb.createElement(XQ,{className:`${g}-loading-icon`})),[b,y]=N3(g),v=bJ(r),w=wY(null==p?void 0:p.className,{[`${g}-small`]:"small"===v,[`${g}-loading`]:i,[`${g}-rtl`]:"rtl"===d},a,s,y),x=Object.assign(Object.assign({},null==p?void 0:p.style),l);return b(Zb.createElement(mJ,{component:"Switch"},Zb.createElement(FT,Object.assign({},c,{prefixCls:g,className:w,style:x,disabled:h,ref:t,loadingIcon:m}))))}));P3.__ANT_SWITCH=!0;const I3=P3,T3=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return $l(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},F3=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}),A3=Nl("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},sQ(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,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",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(T3(e))),F3);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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const R3=Zb.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=RT(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=Zb.useContext(XY),d=c("tag",n),[p,f]=A3(d),h=wY(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},null==u?void 0:u.className,o,f);return p(Zb.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),null==u?void 0:u.style),className:h,onClick:e=>{null==a||a(!i),null==s||s(e)}})))})),M3=R3,L3=mQ(["Tag","preset"],(e=>(e=>Pl(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(T3(e))),F3),B3=(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"}}}},z3=mQ(["Tag","status"],(e=>{const t=T3(e);return[B3(t,"success","Success"),B3(t,"processing","Info"),B3(t,"error","Error"),B3(t,"warning","Warning")]}),F3);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<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const H3=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:p=!0}=e,f=MT(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:g,tag:m}=Zb.useContext(XY),[b,y]=Zb.useState(!0);Zb.useEffect((()=>{"visible"in f&&y(f.visible)}),[f.visible]);const v=md(l),w=function(e){return B1.includes(e)}(l),x=v||w,k=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},null==m?void 0:m.style),i),S=h("tag",n),[C,E]=A3(S),D=wY(S,null==m?void 0:m.className,{[`${S}-${l}`]:x,[`${S}-has-color`]:l&&!x,[`${S}-hidden`]:!b,[`${S}-rtl`]:"rtl"===g,[`${S}-borderless`]:!p},r,o,E),O=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||y(!1)},[,_]=Nc(d,u,(e=>null===e?Zb.createElement(TQ,{className:`${S}-close-icon`,onClick:O}):Zb.createElement("span",{className:`${S}-close-icon`,onClick:O},e)),null,!1),$="function"==typeof f.onClick||a&&"a"===a.type,j=s||null,N=j?Zb.createElement(Zb.Fragment,null,j,a&&Zb.createElement("span",null,a)):a,P=Zb.createElement("span",Object.assign({},f,{ref:t,className:D,style:k}),N,_,v&&Zb.createElement(L3,{key:"preset",prefixCls:S}),w&&Zb.createElement(z3,{key:"status",prefixCls:S}));return C($?Zb.createElement(mJ,{component:"Tag"},P):P)},W3=Zb.forwardRef(H3);W3.CheckableTag=M3;const U3=W3,V3=(e,t)=>new y_(e).setAlpha(t).toRgbString(),G3=(e,t)=>new y_(e).lighten(t).toHexString(),q3=e=>{const t=yl(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]}},X3=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:V3(r,.85),colorTextSecondary:V3(r,.65),colorTextTertiary:V3(r,.45),colorTextQuaternary:V3(r,.25),colorFill:V3(r,.18),colorFillSecondary:V3(r,.12),colorFillTertiary:V3(r,.08),colorFillQuaternary:V3(r,.04),colorBgElevated:G3(n,12),colorBgContainer:G3(n,8),colorBgLayout:G3(n,0),colorBgSpotlight:G3(n,26),colorBgBlur:V3(r,.04),colorBorder:G3(n,26),colorBorderSecondary:G3(n,19)}},K3={defaultConfig:VY,defaultSeed:VY.token,useToken:function(){const[e,t,n]=Cl();return{theme:e,token:t,hashId:n}},defaultAlgorithm:wl,darkAlgorithm:(e,t)=>{const n=Object.keys(AY).map((t=>{const n=yl(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:wl(e);return Object.assign(Object.assign(Object.assign({},r),n),vl(e,{generateColorPalettes:q3,generateNeutralColorPalettes:X3}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:wl(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)),WY(r)),{controlHeight:o}),FY(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=Ua((null==e?void 0:e.algorithm)?e.algorithm:wl),n=Object.assign(Object.assign({},RY),null==e?void 0:e.token);return WD(n,{override:null==e?void 0:e.token},t,Sl)}};LT=function(){return K3.useToken().token},HT=Zb.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(zT=(BT=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}})("dark"))&&void 0!==zT&&zT.matches?"dark":"light"}),WT=function(){return Zb.useContext(HT)},UT=function(){var e=LT(),t=WT(),n=t.appearance,r=t.isDarkMode;return Zb.useMemo((function(){return mO(gO({token:e,css:jE,appearance:n,isDarkMode:r}))}),[e,n,r])},VT=function(){var e=LT(),t=UT();return Zb.useMemo((function(){return af(af({},e),{},{stylish:t})}),[e,t])},GT=function(e){return lf(lf({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},qT=function(){var e=function(e){let t=!(arguments.length>0&&void 0!==e)||e;const n=Zb.useRef({}),r=function(){const[,e]=Zb.useReducer((e=>e+1),0);return e}(),o=dd();return FD((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current}();return Zb.useMemo((function(){return GT(e)}),[e])},XT=function(){var e=LT(),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 Zb.useMemo((function(){return GT(t)}),[e])},KT=function(e,t){return Object.entries(e).map((function(e){var n=Wa(e,2),r=n[0],o=n[1],i=o;return CE(o)||(i=jE(o)),t[r]?"".concat(t[r]," {").concat(i.styles,"}"):""})).join("")},YT=["stylish","appearance","isDarkMode","prefixCls"],QT=["prefixCls"],JT=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var i=null==o?void 0:o.__BABEL_FILE_NAME__,a=!!i;return function(s){var l=n(),c=Zb.useContext(r),u=$E(c.cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),d=u.cx,p=u.css,f=XT(),h=Zb.useMemo((function(){var t,n,r,o,c,u,h;return e instanceof Function?(n=l.stylish,r=l.appearance,o=l.isDarkMode,c=l.prefixCls,u=Di(l,YT),h=function(e){return KT(e,f)},Object.assign(h,f),t=e({token:u,stylish:n,appearance:r,isDarkMode:o,prefixCls:c,cx:d,css:jE,responsive:h},s)):t=e,"object"===Si(t)&&(t=CE(t)?p(t):Object.fromEntries(Object.entries(t).map((function(e){var t=Wa(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===Si(r)?a?[n,p(r,"label:".concat(o))]:[n,p(r)]:[n,r]})))),t}),[s,l]);return Zb.useMemo((function(){var e=l.prefixCls,t=Di(l,QT);return{styles:h,cx:d,theme:t,prefixCls:e}}),[h,l])}}},ZT=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return ay.jsx(t.Provider,{value:e.theme,children:e.children})}},eF=lD,tF=iD;const Y3=Zb.memo((function(e){var t,n=e.children,r=e.theme,o=e.prefixCls,i=e.getStaticInstance,a=e.staticInstanceConfig,s=WT(),l=s.appearance,c=s.isDarkMode,u=Wa(n3.useMessage(null==a?void 0:a.message),2),d=u[0],p=u[1],f=Wa(f3.useNotification(null==a?void 0:a.notification),2),h=f[0],g=f[1],m=Wa(i3.useModal(),2),b=m[0],y=m[1];return Zb.useEffect((function(){null==i||i({message:d,modal:b,notification:h})}),[]),t=Zb.useMemo((function(){var e,t=c?K3.darkAlgorithm:K3.defaultAlgorithm,n=r;return"function"==typeof r&&(n=r(l)),n?(e=n.algorithm?n.algorithm instanceof Array?n.algorithm:[n.algorithm]:[],uf(uf({},n),{},{algorithm:n.algorithm?[t].concat(xa(e)):t})):{algorithm:t}}),[r,c]),ay.jsxs(DQ,{prefixCls:o,theme:t,children:[p,g,y,n]})}));nF=function(e){"function"==typeof Zb.startTransition?Zb.startTransition(e):e()},oF=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){nF((function(){BT("dark").matches?n("dark"):n("light")}))},i=function(){nF((function(){BT("dark").matches?r("dark"):r("light")}))};return Zb.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),rF||(rF=BT("dark")),rF.addEventListener("change",o),function(){rF.removeEventListener("change",o)};nF((function(){n(t)}))}),[t]),Zb.useLayoutEffect((function(){return rF||(rF=BT("dark")),rF.addEventListener("change",i),function(){rF.removeEventListener("change",i)}}),[]),null};const Q3=Zb.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,d=Wa(pf("light",{value:a,defaultValue:null!=s?s:c.themeMode,onChange:function(e){return null==l?void 0:l(e)}}),2),p=d[0],f=d[1],h=Wa(pf("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==i?void 0:i(e)}}),2),g=h[0],m=h[1],b=Wa(Zb.useState(null!==(t=BT("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=b[0],v=b[1],w=Wa(Zb.useState(!1),2),x=w[0],k=w[1];return Zb.useEffect((function(){nF((function(){k(!0)}))}),[]),ay.jsxs(HT.Provider,{value:{themeMode:p,setThemeMode:f,appearance:g,setAppearance:m,isDarkMode:"dark"===g,browserPrefers:y},children:[x&&ay.jsx(oF,{themeMode:p,setAppearance:m,setBrowserPrefers:v}),n]})}));iF=["stylish"];const J3=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,a=void 0===i?"ant":i,s=e.StyledThemeProvider,l=WT(),c=l.appearance,u=l.isDarkMode,d=VT(),p=d.stylish,f=Di(d,iF),h=Zb.useMemo((function(){return r?r instanceof Function?r({token:f,appearance:c,isDarkMode:u}):r:{}}),[r,f,c]),g=Zb.useMemo((function(){return hf(hf({},h),n instanceof Function?n({token:f,appearance:c,isDarkMode:u}):n)}),[h,n,f,c]),m=Zb.useMemo((function(){return o?o({token:hf(hf({},f),g),stylish:p,appearance:c,isDarkMode:u,css:jE}):{}}),[o,f,g,p,c]),b=Zb.useMemo((function(){return hf(hf({},m),p)}),[m,p]),y=hf(hf(hf(hf({},f),g),{},{stylish:b},l),{},{prefixCls:a});return ay.jsx(s,{theme:y,children:t})};aF=function(e){var t=e.styledConfig?ZT(e.styledConfig):void 0,n=e.StyleEngineContext;return Zb.memo((function(r){var o=r.children,i=r.customToken,a=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,d=r.appearance,p=r.defaultAppearance,f=r.onAppearanceChange,h=r.themeMode,g=r.defaultThemeMode,m=r.onThemeModeChange,b=r.styled,y=Zb.useContext(n),v=y.prefixCls,w=y.StyledThemeContext,x=y.CustomThemeContext,k=Zb.useContext(x),S=b?ZT(b):t||eF,C=c||v;return ay.jsx(n.Provider,{value:{prefixCls:C,StyledThemeContext:(null==b?void 0:b.ThemeContext)||w||tF,CustomThemeContext:x},children:ay.jsx(Q3,{themeMode:h,defaultThemeMode:g,onThemeModeChange:m,defaultAppearance:p,appearance:d,onAppearanceChange:f,useTheme:e.useTheme,children:ay.jsx(Y3,{prefixCls:C,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:ay.jsx(J3,{prefixCls:C,customToken:i,defaultCustomToken:k,customStylish:a,StyledThemeProvider:S,children:o})})})})}))},sF=function(e){return function(){var t=Zb.useContext(e.StyleEngineContext),n=t.StyledThemeContext,r=t.CustomThemeContext,o=t.prefixCls,i=VT(),a=WT(),s=Zb.useContext(r),l=Zb.useContext(null!=n?n:tF)||{},c=Zb.useMemo((function(){return mf(mf(mf(mf({},i),a),s),{},{prefixCls:o||"ant"})}),[i,a,o,s]);return l&&0!==Object.keys(l).length?l:c}},lF=new wE,"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=lF),dF=(JX={key:"acss",speedy:!1},uK=yf(yf({},JX),{},{key:null!==(ZX=JX.key)&&void 0!==ZX?ZX:"zcss",speedy:null!==(eK=JX.speedy)&&void 0!==eK&&eK}),dK=hE({key:uK.key,speedy:uK.speedy,container:uK.container}),pK=NE(dK),fK=hO(pK),dK.cache=lF.add(dK.cache),nK=null===(tK=uK.styled)||void 0===tK?void 0:tK.ThemeContext,oK=sF({StyleEngineContext:rK=Zb.createContext({CustomThemeContext:Zb.createContext(uK.customToken?uK.customToken:{}),StyledThemeContext:nK,prefixCls:null==uK?void 0:uK.prefixCls})}),iK=JT({hashPriority:uK.hashPriority,useTheme:oK,EmotionContext:pK}),aK=uD(oK),sK=dD(iK),lK=aF({styledConfig:uK.styled,StyleEngineContext:rK,useTheme:oK}),cK=$E(dK.cache,{hashPriority:uK.hashPriority}),cF={createStyles:iK,createGlobalStyle:aK,createStylish:sK,css:jE,cx:cK.cx,keyframes:dK.keyframes,injectGlobal:dK.injectGlobal,styleManager:dK,useTheme:oK,StyleProvider:fK,ThemeProvider:lK}).createGlobalStyle,pF=cF.css,fF=cF.cx,hF=cF.keyframes,gF=cF.ThemeProvider,mF=cF.StyleProvider,bF=cF.useTheme,wF=(uF=cF.createStyles)((function(e){var t=e.css,n=hF(yF||(yF=Oi(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(vF||(vF=Oi(["\n animation: "," 1s linear infinite;\n "])),n)}})),xF=["icon","size","color","fill","className","spin"],kF=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 Z3=Zb.memo((function(e){var t=e.icon,n=e.size,r=e.color,o=e.fill,i=e.className,a=e.spin,s=Di(e,xF),l=wF(),c=l.styles,u=l.cx,d=t,p=Zb.useMemo((function(){return kF(n)}),[n]),f=p.fontSize,h=p.strokeWidth;return ay.jsx("span",wf(wf({className:u("anticon",a&&c.spin,i),role:"img"},s),{},{children:ay.jsx(d,{color:r,fill:null!=o?o:"transparent",focusable:!1,height:f,size:f,strokeWidth:h,width:f})}))}));CF=uF((function(e,t){var n,r,o=e.token,i=e.isDarkMode,a=t.offset,s=(null!==(n=null==a?void 0:a.x)&&void 0!==n?n:0)+"px",l=(null!==(r=null==a?void 0:a.y)&&void 0!==r?r:0)+"px",c=t.outside?"0":".1",u=t.size+"px";return(0,e.css)(SF||(SF=Oi(["\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,i?o.colorText:"#fff",i?"transparent":o.colorTextQuaternary)})),EF=["className","size"],DF=function(){var e=Wa(Zb.useState(),2),t=e[0],n=e[1],r=Wa(Zb.useState(!0),2),o=r[0],i=r[1],a=Zb.useRef();return Zb.useEffect((function(){var e,t,r;if(a.current&&a.current.parentElement)return t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),i(!1)},r=function(){i(!0)},(e=a.current.parentElement).addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}),[]),[t,o,a]};const e6=Zb.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Di(e,EF),i=Wa(DF(),3),a=i[2],s=CF({offset:i[0],outside:i[1],size:r});return ay.jsx("div",function(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?xf(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}({className:(0,s.cx)(s.styles,t),ref:a},o))}));_F=uF((function(e){var t=e.token,n=e.prefixCls;return{tooltip:(0,e.css)(OF||(OF=Oi(["\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding: 4px 8px;\n\n color: ",";\n\n background-color: ",";\n border-radius: ","px;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: ",";\n }\n }\n "])),n,t.colorBgLayout,t.colorText,t.borderRadiusSM,n,t.colorText)}})),$F=["className","arrow"];const t6=Zb.memo((function(e){var t=e.className,n=e.arrow,r=void 0!==n&&n,o=Di(e,$F),i=_F();return ay.jsx(H1,function(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?kf(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}({arrow:r,overlayClassName:(0,i.cx)(i.styles.tooltip,t)},o))}));PF=uF((function(e,t){var n=e.css,r=e.token,o=t.active;return{block:(0,e.cx)(t.glass&&e.stylish.blur,n(jF||(jF=Oi(["\n cursor: pointer;\n\n position: relative;\n\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n color: ",";\n\n background: ",";\n\n transition:\n color 600ms ",",\n scale 400ms ",",\n background-color 100ms ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n "])),o?r.colorText:r.colorTextTertiary,o?r.colorFillTertiary:"transparent",r.motionEaseOut,r.motionEaseOut,r.motionEaseOut,r.colorText,r.colorFillSecondary,r.colorText,r.colorFill)),icon:n(NF||(NF=Oi(["\n transition: scale 400ms ",";\n\n &:active {\n scale: 0.8;\n }\n "])),r.motionEaseOut)}})),IF=["color","fill","className","active","icon","size","style","glass","title","placement","arrow","spotlight","onClick","children","loading","tooltipDelay"],TF=function(e){var t,n;switch(e){case"large":t=44,n=8;break;case"normal":t=36,n=5;break;case"small":t=24,n=5;break;case"site":t=34,n=5;break;default:t=(null==e?void 0:e.blockSize)||36,n=(null==e?void 0:e.borderRadius)||5}return{blockSize:t,borderRadius:n}};const n6=Zb.forwardRef((function(e,t){var n=e.color,r=e.fill,o=e.className,i=e.active,a=e.icon,s=e.size,l=void 0===s?"normal":s,c=e.style,u=e.glass,d=e.title,p=e.placement,f=e.arrow,h=void 0!==f&&f,g=e.spotlight,m=e.onClick,b=e.children,y=e.loading,v=e.tooltipDelay,w=void 0===v?.5:v,x=Di(e,IF),k=PF({active:Boolean(i),glass:Boolean(u)}),S=k.styles,C=k.cx,E=Zb.useMemo((function(){return TF(l)}),[l]),D=E.blockSize,O=E.borderRadius,_=ay.jsxs(ay.Fragment,{children:[a&&ay.jsx(Z3,{className:S.icon,color:n,fill:r,icon:a,size:"site"===l?"normal":l}),b]}),$=ay.jsx(Z3,{color:n,icon:nY,size:"site"===l?"normal":l,spin:!0}),j=ay.jsxs("div",Cf(Cf({className:C(S.block,o),onClick:y?void 0:m,ref:t,style:Cf({borderRadius:O,height:D,width:D},c)},x),{},{children:[g&&ay.jsx(e6,{}),y?$:_]}));return d?ay.jsx(t6,{arrow:h,mouseEnterDelay:w,overlayStyle:{pointerEvents:"none"},placement:p,title:d,children:j}):j}));FF="object"==typeof global&&global&&global.Object===Object&&global,AF="object"==typeof self&&self&&self.Object===Object&&self,RF=(FF||AF||Function("return this")()).Symbol,LF=(MF=Object.prototype).hasOwnProperty,BF=MF.toString,zF=RF?RF.toStringTag:void 0,HF=Object.prototype.toString,WF="[object Null]",UF="[object Undefined]",VF=RF?RF.toStringTag:void 0,GF="[object Symbol]";const r6=Array.isArray;qF=1/0,KF=(XF=RF?RF.prototype:void 0)?XF.toString:void 0,YF=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),QF="[\\ud800-\\udfff]",oA="[\\ufe0e\\ufe0f]?"+(rA="(?:"+(JF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]")+"|"+(ZF="\\ud83c[\\udffb-\\udfff]")+")?")+"(?:\\u200d(?:"+[eA="[^\\ud800-\\udfff]",tA="(?:\\ud83c[\\udde6-\\uddff]){2}",nA="[\\ud800-\\udbff][\\udc00-\\udfff]"].join("|")+")[\\ufe0e\\ufe0f]?"+rA+")*",iA="(?:"+[eA+JF+"?",JF,tA,nA,QF].join("|")+")",aA=RegExp(ZF+"(?="+ZF+")|"+iA+oA,"g");const o6=function(e){var t,n,r,o,i,a;return n=(t=$f(e=_f(e))?function(e){return $f(e)?function(e){return e.match(aA)||[]}(e):function(e){return e.split("")}(e)}(e):void 0)?t[0]:e.charAt(0),r=t?(o=t,1,a=o.length,i=void 0===i?a:i,function(e,t,n){var r,o=-1,i=e.length;for(t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,r=Array(i);++o<i;)r[o]=e[o+t];return r}(o,1,i)).join(""):e.slice(1),n.toUpperCase()+r};TX={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};const i6=function(e){return null==TX?void 0:TX[e]};sA=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lA=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),cA=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dA="[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]",fA="[\\u2700-\\u27bf]",yA="(?:"+"[a-z\\xdf-\\xf6\\xf8-\\xff]"+"|"+(hA="[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000"+(pA="\\d+")+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]")+")",vA="(?:"+(bA="[A-Z\\xc0-\\xd6\\xd8-\\xde]")+"|"+hA+")",wA="(?:['’](?:d|ll|m|re|s|t|ve))?",xA="(?:['’](?:D|LL|M|RE|S|T|VE))?",kA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",SA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",CA="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:"+["[^\\ud800-\\udfff]",gA="(?:\\ud83c[\\udde6-\\uddff]){2}",mA="[\\ud800-\\udbff][\\udc00-\\udfff]"].join("|")+")[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",EA="(?:"+[fA,gA,mA].join("|")+")"+CA,DA=RegExp([bA+"?[a-z\\xdf-\\xf6\\xf8-\\xff]+"+wA+"(?="+[dA,bA,"$"].join("|")+")",vA+"+"+xA+"(?="+[dA,bA+yA,"$"].join("|")+")",bA+"?"+yA+"+"+wA,bA+"+"+xA,SA,kA,pA,EA].join("|"),"g"),OA=RegExp("['’]","g");const a6=Nf((function(e,t,n){return t=t.toLowerCase(),e+(n?jf(t):t)})),s6=Nf((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),l6=Nf((function(e,t,n){return e+(n?" ":"")+o6(t)}));_A=function(e){var t=e.pkg,n=e.version,r=void 0===n?"latest":n,o=e.path;return"unpkg"===e.proxy?Pf("https://unpkg.com","".concat(t,"@").concat(r),o):Pf("https://registry.npmmirror.com",t,r,"files",o)},$A=Zb.createContext(null),jA=function(e){return _A({path:e.path,pkg:e.pkg,proxy:"aliyun",version:e.version})},NA=function(){var e=Zb.useContext($A);return e?"custom"!==(null==e?void 0:e.proxy)?function(t){return _A({path:t.path,pkg:t.pkg,proxy:e.proxy,version:t.version})}:(null==e?void 0:e.customCdnFn)||jA:jA},PA=function(e){return Zb.forwardRef((function(t,n){return Zb.createElement(e,Tf(Tf({},t),{},{ref:n}))}))},IA=Zb.forwardRef((function(e,t){var n=Zb.useContext($A),r=Zb.useMemo((function(){return PA((null==n?void 0:n.imgAs)||"img")}),[n]);return ay.jsx(r,Tf({ref:t},e))}));const c6=IA,u6={"😀":"grinning-face","😃":"grinning-face-with-big-eyes","😄":"grinning-face-with-smiling-eyes","😁":"beaming-face-with-smiling-eyes","😆":"grinning-squinting-face","😅":"grinning-face-with-sweat","🤣":"rolling-on-the-floor-laughing","😂":"face-with-tears-of-joy","🙂":"slightly-smiling-face","🙃":"upside-down-face","🫠":"melting-face","😉":"winking-face","😊":"smiling-face-with-smiling-eyes","😇":"smiling-face-with-halo","🥰":"smiling-face-with-hearts","😍":"smiling-face-with-heart-eyes","🤩":"star-struck","😘":"face-blowing-a-kiss","😗":"kissing-face","☺️":"smiling-face","😚":"kissing-face-with-closed-eyes","😙":"kissing-face-with-smiling-eyes","🥲":"smiling-face-with-tear","😋":"face-savoring-food","😛":"face-with-tongue","😜":"winking-face-with-tongue","🤪":"zany-face","😝":"squinting-face-with-tongue","🤑":"money-mouth-face","🤗":"smiling-face-with-open-hands","🤭":"face-with-hand-over-mouth","🫢":"face-with-open-eyes-and-hand-over-mouth","🫣":"face-with-peeking-eye","🤫":"shushing-face","🤔":"thinking-face","🫡":"saluting-face","🤐":"zipper-mouth-face","🤨":"face-with-raised-eyebrow","😐":"neutral-face","😑":"expressionless-face","😶":"face-without-mouth","🫥":"dotted-line-face","😶🌫️":"face-in-clouds","😏":"smirking-face","😒":"unamused-face","🙄":"face-with-rolling-eyes","😬":"grimacing-face","😮💨":"face-exhaling","🤥":"lying-face","🫨":"shaking-face","😌":"relieved-face","😔":"pensive-face","😪":"sleepy-face","🤤":"drooling-face","😴":"sleeping-face","😷":"face-with-medical-mask","🤒":"face-with-thermometer","🤕":"face-with-head-bandage","🤢":"nauseated-face","🤮":"face-vomiting","🤧":"sneezing-face","🥵":"hot-face","🥶":"cold-face","🥴":"woozy-face","😵":"face-with-crossed-out-eyes","😵💫":"face-with-spiral-eyes","🤯":"exploding-head","🤠":"cowboy-hat-face","🥳":"partying-face","🥸":"disguised-face","😎":"smiling-face-with-sunglasses","🤓":"nerd-face","🧐":"face-with-monocle","😕":"confused-face","🫤":"face-with-diagonal-mouth","😟":"worried-face","🙁":"slightly-frowning-face","☹️":"frowning-face","😮":"face-with-open-mouth","😯":"hushed-face","😲":"astonished-face","😳":"flushed-face","🥺":"pleading-face","🥹":"face-holding-back-tears","😦":"frowning-face-with-open-mouth","😧":"anguished-face","😨":"fearful-face","😰":"anxious-face-with-sweat","😥":"sad-but-relieved-face","😢":"crying-face","😭":"loudly-crying-face","😱":"face-screaming-in-fear","😖":"confounded-face","😣":"persevering-face","😞":"disappointed-face","😓":"downcast-face-with-sweat","😩":"weary-face","😫":"tired-face","🥱":"yawning-face","😤":"face-with-steam-from-nose","😡":"enraged-face","😠":"angry-face","🤬":"face-with-symbols-on-mouth","😈":"smiling-face-with-horns","👿":"angry-face-with-horns","💀":"skull","☠️":"skull-and-crossbones","💩":"pile-of-poo","🤡":"clown-face","👹":"ogre","👺":"goblin","👻":"ghost","👽":"alien","👾":"alien-monster","🤖":"robot","😺":"grinning-cat","😸":"grinning-cat-with-smiling-eyes","😹":"cat-with-tears-of-joy","😻":"smiling-cat-with-heart-eyes","😼":"cat-with-wry-smile","😽":"kissing-cat","🙀":"weary-cat","😿":"crying-cat","😾":"pouting-cat","🙈":"see-no-evil-monkey","🙉":"hear-no-evil-monkey","🙊":"speak-no-evil-monkey","💌":"love-letter","💘":"heart-with-arrow","💝":"heart-with-ribbon","💖":"sparkling-heart","💗":"growing-heart","💓":"beating-heart","💞":"revolving-hearts","💕":"two-hearts","💟":"heart-decoration","❣️":"heart-exclamation","💔":"broken-heart","❤️🔥":"heart-on-fire","❤️🩹":"mending-heart","❤️":"red-heart","🩷":"pink-heart","🧡":"orange-heart","💛":"yellow-heart","💚":"green-heart","💙":"blue-heart","🩵":"light-blue-heart","💜":"purple-heart","🤎":"brown-heart","🖤":"black-heart","🩶":"grey-heart","🤍":"white-heart","💋":"kiss-mark","💯":"hundred-points","💢":"anger-symbol","💥":"collision","💫":"dizzy","💦":"sweat-droplets","💨":"dashing-away","🕳️":"hole","💬":"speech-balloon","👁️🗨️":"eye-in-speech-bubble","🗨️":"left-speech-bubble","🗯️":"right-anger-bubble","💭":"thought-balloon","💤":"zzz","👋":"waving-hand","🤚":"raised-back-of-hand","🖐️":"hand-with-fingers-splayed","✋":"raised-hand","🖖":"vulcan-salute","🫱":"rightwards-hand","🫲":"leftwards-hand","🫳":"palm-down-hand","🫴":"palm-up-hand","🫷":"leftwards-pushing-hand","🫸":"rightwards-pushing-hand","👌":"ok-hand","🤌":"pinched-fingers","🤏":"pinching-hand","✌️":"victory-hand","🤞":"crossed-fingers","🫰":"hand-with-index-finger-and-thumb-crossed","🤟":"love-you-gesture","🤘":"sign-of-the-horns","🤙":"call-me-hand","👈":"backhand-index-pointing-left","👉":"backhand-index-pointing-right","👆":"backhand-index-pointing-up","🖕":"middle-finger","👇":"backhand-index-pointing-down","☝️":"index-pointing-up","🫵":"index-pointing-at-the-viewer","👍":"thumbs-up","👎":"thumbs-down","✊":"raised-fist","👊":"oncoming-fist","🤛":"left-facing-fist","🤜":"right-facing-fist","👏":"clapping-hands","🙌":"raising-hands","🫶":"heart-hands","👐":"open-hands","🤲":"palms-up-together","🤝":"handshake","🙏":"folded-hands","✍️":"writing-hand","💅":"nail-polish","🤳":"selfie","💪":"flexed-biceps","🦾":"mechanical-arm","🦿":"mechanical-leg","🦵":"leg","🦶":"foot","👂":"ear","🦻":"ear-with-hearing-aid","👃":"nose","🧠":"brain","🫀":"anatomical-heart","🫁":"lungs","🦷":"tooth","🦴":"bone","👀":"eyes","👁️":"eye","👅":"tongue","👄":"mouth","🫦":"biting-lip","👶":"baby","🧒":"child","👦":"boy","👧":"girl","🧑":"person","👱":"person-blond-hair","👨":"man","🧔":"person-beard","🧔♂️":"man-beard","🧔♀️":"woman-beard","👨🦰":"man-red-hair","👨🦱":"man-curly-hair","👨🦳":"man-white-hair","👨🦲":"man-bald","👩":"woman","👩🦰":"woman-red-hair","🧑🦰":"person-red-hair","👩🦱":"woman-curly-hair","🧑🦱":"person-curly-hair","👩🦳":"woman-white-hair","🧑🦳":"person-white-hair","👩🦲":"woman-bald","🧑🦲":"person-bald","👱♀️":"woman-blond-hair","👱♂️":"man-blond-hair","🧓":"older-person","👴":"old-man","👵":"old-woman","🙍":"person-frowning","🙍♂️":"man-frowning","🙍♀️":"woman-frowning","🙎":"person-pouting","🙎♂️":"man-pouting","🙎♀️":"woman-pouting","🙅":"person-gesturing-no","🙅♂️":"man-gesturing-no","🙅♀️":"woman-gesturing-no","🙆":"person-gesturing-ok","🙆♂️":"man-gesturing-ok","🙆♀️":"woman-gesturing-ok","💁":"person-tipping-hand","💁♂️":"man-tipping-hand","💁♀️":"woman-tipping-hand","🙋":"person-raising-hand","🙋♂️":"man-raising-hand","🙋♀️":"woman-raising-hand","🧏":"deaf-person","🧏♂️":"deaf-man","🧏♀️":"deaf-woman","🙇":"person-bowing","🙇♂️":"man-bowing","🙇♀️":"woman-bowing","🤦":"person-facepalming","🤦♂️":"man-facepalming","🤦♀️":"woman-facepalming","🤷":"person-shrugging","🤷♂️":"man-shrugging","🤷♀️":"woman-shrugging","🧑⚕️":"health-worker","👨⚕️":"man-health-worker","👩⚕️":"woman-health-worker","🧑🎓":"student","👨🎓":"man-student","👩🎓":"woman-student","🧑🏫":"teacher","👨🏫":"man-teacher","👩🏫":"woman-teacher","🧑⚖️":"judge","👨⚖️":"man-judge","👩⚖️":"woman-judge","🧑🌾":"farmer","👨🌾":"man-farmer","👩🌾":"woman-farmer","🧑🍳":"cook","👨🍳":"man-cook","👩🍳":"woman-cook","🧑🔧":"mechanic","👨🔧":"man-mechanic","👩🔧":"woman-mechanic","🧑🏭":"factory-worker","👨🏭":"man-factory-worker","👩🏭":"woman-factory-worker","🧑💼":"office-worker","👨💼":"man-office-worker","👩💼":"woman-office-worker","🧑🔬":"scientist","👨🔬":"man-scientist","👩🔬":"woman-scientist","🧑💻":"technologist","👨💻":"man-technologist","👩💻":"woman-technologist","🧑🎤":"singer","👨🎤":"man-singer","👩🎤":"woman-singer","🧑🎨":"artist","👨🎨":"man-artist","👩🎨":"woman-artist","🧑✈️":"pilot","👨✈️":"man-pilot","👩✈️":"woman-pilot","🧑🚀":"astronaut","👨🚀":"man-astronaut","👩🚀":"woman-astronaut","🧑🚒":"firefighter","👨🚒":"man-firefighter","👩🚒":"woman-firefighter","👮":"police-officer","👮♂️":"man-police-officer","👮♀️":"woman-police-officer","🕵️":"detective","🕵️♂️":"man-detective","🕵️♀️":"woman-detective","💂":"guard","💂♂️":"man-guard","💂♀️":"woman-guard","🥷":"ninja","👷":"construction-worker","👷♂️":"man-construction-worker","👷♀️":"woman-construction-worker","🫅":"person-with-crown","🤴":"prince","👸":"princess","👳":"person-wearing-turban","👳♂️":"man-wearing-turban","👳♀️":"woman-wearing-turban","👲":"person-with-skullcap","🧕":"woman-with-headscarf","🤵":"person-in-tuxedo","🤵♂️":"man-in-tuxedo","🤵♀️":"woman-in-tuxedo","👰":"person-with-veil","👰♂️":"man-with-veil","👰♀️":"woman-with-veil","🤰":"pregnant-woman","🫃":"pregnant-man","🫄":"pregnant-person","🤱":"breast-feeding","👩🍼":"woman-feeding-baby","👨🍼":"man-feeding-baby","🧑🍼":"person-feeding-baby","👼":"baby-angel","🎅":"santa-claus","🤶":"mrs-claus","🧑🎄":"mx-claus","🦸":"superhero","🦸♂️":"man-superhero","🦸♀️":"woman-superhero","🦹":"supervillain","🦹♂️":"man-supervillain","🦹♀️":"woman-supervillain","🧙":"mage","🧙♂️":"man-mage","🧙♀️":"woman-mage","🧚":"fairy","🧚♂️":"man-fairy","🧚♀️":"woman-fairy","🧛":"vampire","🧛♂️":"man-vampire","🧛♀️":"woman-vampire","🧜":"merperson","🧜♂️":"merman","🧜♀️":"mermaid","🧝":"elf","🧝♂️":"man-elf","🧝♀️":"woman-elf","🧞":"genie","🧞♂️":"man-genie","🧞♀️":"woman-genie","🧟":"zombie","🧟♂️":"man-zombie","🧟♀️":"woman-zombie","🧌":"troll","💆":"person-getting-massage","💆♂️":"man-getting-massage","💆♀️":"woman-getting-massage","💇":"person-getting-haircut","💇♂️":"man-getting-haircut","💇♀️":"woman-getting-haircut","🚶":"person-walking","🚶♂️":"man-walking","🚶♀️":"woman-walking","🧍":"person-standing","🧍♂️":"man-standing","🧍♀️":"woman-standing","🧎":"person-kneeling","🧎♂️":"man-kneeling","🧎♀️":"woman-kneeling","🧑🦯":"person-with-white-cane","👨🦯":"man-with-white-cane","👩🦯":"woman-with-white-cane","🧑🦼":"person-in-motorized-wheelchair","👨🦼":"man-in-motorized-wheelchair","👩🦼":"woman-in-motorized-wheelchair","🧑🦽":"person-in-manual-wheelchair","👨🦽":"man-in-manual-wheelchair","👩🦽":"woman-in-manual-wheelchair","🏃":"person-running","🏃♂️":"man-running","🏃♀️":"woman-running","💃":"woman-dancing","🕺":"man-dancing","🕴️":"person-in-suit-levitating","👯":"people-with-bunny-ears","👯♂️":"men-with-bunny-ears","👯♀️":"women-with-bunny-ears","🧖":"person-in-steamy-room","🧖♂️":"man-in-steamy-room","🧖♀️":"woman-in-steamy-room","🧗":"person-climbing","🧗♂️":"man-climbing","🧗♀️":"woman-climbing","🤺":"person-fencing","🏇":"horse-racing","⛷️":"skier","🏂":"snowboarder","🏌️":"person-golfing","🏌️♂️":"man-golfing","🏌️♀️":"woman-golfing","🏄":"person-surfing","🏄♂️":"man-surfing","🏄♀️":"woman-surfing","🚣":"person-rowing-boat","🚣♂️":"man-rowing-boat","🚣♀️":"woman-rowing-boat","🏊":"person-swimming","🏊♂️":"man-swimming","🏊♀️":"woman-swimming","⛹️":"person-bouncing-ball","⛹️♂️":"man-bouncing-ball","⛹️♀️":"woman-bouncing-ball","🏋️":"person-lifting-weights","🏋️♂️":"man-lifting-weights","🏋️♀️":"woman-lifting-weights","🚴":"person-biking","🚴♂️":"man-biking","🚴♀️":"woman-biking","🚵":"person-mountain-biking","🚵♂️":"man-mountain-biking","🚵♀️":"woman-mountain-biking","🤸":"person-cartwheeling","🤸♂️":"man-cartwheeling","🤸♀️":"woman-cartwheeling","🤼":"people-wrestling","🤼♂️":"men-wrestling","🤼♀️":"women-wrestling","🤽":"person-playing-water-polo","🤽♂️":"man-playing-water-polo","🤽♀️":"woman-playing-water-polo","🤾":"person-playing-handball","🤾♂️":"man-playing-handball","🤾♀️":"woman-playing-handball","🤹":"person-juggling","🤹♂️":"man-juggling","🤹♀️":"woman-juggling","🧘":"person-in-lotus-position","🧘♂️":"man-in-lotus-position","🧘♀️":"woman-in-lotus-position","🛀":"person-taking-bath","🛌":"person-in-bed","🧑🤝🧑":"people-holding-hands","👭":"women-holding-hands","👫":"woman-and-man-holding-hands","👬":"men-holding-hands","💏":"kiss","👩❤️💋👨":"kiss-woman-man","👨❤️💋👨":"kiss-man-man","👩❤️💋👩":"kiss-woman-woman","💑":"couple-with-heart","👩❤️👨":"couple-with-heart-woman-man","👨❤️👨":"couple-with-heart-man-man","👩❤️👩":"couple-with-heart-woman-woman","👪":"family","👨👩👦":"family-man-woman-boy","👨👩👧":"family-man-woman-girl","👨👩👧👦":"family-man-woman-girl-boy","👨👩👦👦":"family-man-woman-boy-boy","👨👩👧👧":"family-man-woman-girl-girl","👨👨👦":"family-man-man-boy","👨👨👧":"family-man-man-girl","👨👨👧👦":"family-man-man-girl-boy","👨👨👦👦":"family-man-man-boy-boy","👨👨👧👧":"family-man-man-girl-girl","👩👩👦":"family-woman-woman-boy","👩👩👧":"family-woman-woman-girl","👩👩👧👦":"family-woman-woman-girl-boy","👩👩👦👦":"family-woman-woman-boy-boy","👩👩👧👧":"family-woman-woman-girl-girl","👨👦":"family-man-boy","👨👦👦":"family-man-boy-boy","👨👧":"family-man-girl","👨👧👦":"family-man-girl-boy","👨👧👧":"family-man-girl-girl","👩👦":"family-woman-boy","👩👦👦":"family-woman-boy-boy","👩👧":"family-woman-girl","👩👧👦":"family-woman-girl-boy","👩👧👧":"family-woman-girl-girl","🗣️":"speaking-head","👤":"bust-in-silhouette","👥":"busts-in-silhouette","🫂":"people-hugging","👣":"footprints","🐵":"monkey-face","🐒":"monkey","🦍":"gorilla","🦧":"orangutan","🐶":"dog-face","🐕":"dog","🦮":"guide-dog","🐕🦺":"service-dog","🐩":"poodle","🐺":"wolf","🦊":"fox","🦝":"raccoon","🐱":"cat-face","🐈":"cat","🐈⬛":"black-cat","🦁":"lion","🐯":"tiger-face","🐅":"tiger","🐆":"leopard","🐴":"horse-face","🫎":"moose","🫏":"donkey","🐎":"horse","🦄":"unicorn","🦓":"zebra","🦌":"deer","🦬":"bison","🐮":"cow-face","🐂":"ox","🐃":"water-buffalo","🐄":"cow","🐷":"pig-face","🐖":"pig","🐗":"boar","🐽":"pig-nose","🐏":"ram","🐑":"ewe","🐐":"goat","🐪":"camel","🐫":"two-hump-camel","🦙":"llama","🦒":"giraffe","🐘":"elephant","🦣":"mammoth","🦏":"rhinoceros","🦛":"hippopotamus","🐭":"mouse-face","🐁":"mouse","🐀":"rat","🐹":"hamster","🐰":"rabbit-face","🐇":"rabbit","🐿️":"chipmunk","🦫":"beaver","🦔":"hedgehog","🦇":"bat","🐻":"bear","🐻❄️":"polar-bear","🐨":"koala","🐼":"panda","🦥":"sloth","🦦":"otter","🦨":"skunk","🦘":"kangaroo","🦡":"badger","🐾":"paw-prints","🦃":"turkey","🐔":"chicken","🐓":"rooster","🐣":"hatching-chick","🐤":"baby-chick","🐥":"front-facing-baby-chick","🐦":"bird","🐧":"penguin","🕊️":"dove","🦅":"eagle","🦆":"duck","🦢":"swan","🦉":"owl","🦤":"dodo","🪶":"feather","🦩":"flamingo","🦚":"peacock","🦜":"parrot","🪽":"wing","🐦⬛":"black-bird","🪿":"goose","🐸":"frog","🐊":"crocodile","🐢":"turtle","🦎":"lizard","🐍":"snake","🐲":"dragon-face","🐉":"dragon","🦕":"sauropod","🦖":"t-rex","🐳":"spouting-whale","🐋":"whale","🐬":"dolphin","🦭":"seal","🐟":"fish","🐠":"tropical-fish","🐡":"blowfish","🦈":"shark","🐙":"octopus","🐚":"spiral-shell","🪸":"coral","🪼":"jellyfish","🐌":"snail","🦋":"butterfly","🐛":"bug","🐜":"ant","🐝":"honeybee","🪲":"beetle","🐞":"lady-beetle","🦗":"cricket","🪳":"cockroach","🕷️":"spider","🕸️":"spider-web","🦂":"scorpion","🦟":"mosquito","🪰":"fly","🪱":"worm","🦠":"microbe","💐":"bouquet","🌸":"cherry-blossom","💮":"white-flower","🪷":"lotus","🏵️":"rosette","🌹":"rose","🥀":"wilted-flower","🌺":"hibiscus","🌻":"sunflower","🌼":"blossom","🌷":"tulip","🪻":"hyacinth","🌱":"seedling","🪴":"potted-plant","🌲":"evergreen-tree","🌳":"deciduous-tree","🌴":"palm-tree","🌵":"cactus","🌾":"sheaf-of-rice","🌿":"herb","☘️":"shamrock","🍀":"four-leaf-clover","🍁":"maple-leaf","🍂":"fallen-leaf","🍃":"leaf-fluttering-in-wind","🪹":"empty-nest","🪺":"nest-with-eggs","🍄":"mushroom","🍇":"grapes","🍈":"melon","🍉":"watermelon","🍊":"tangerine","🍋":"lemon","🍌":"banana","🍍":"pineapple","🥭":"mango","🍎":"red-apple","🍏":"green-apple","🍐":"pear","🍑":"peach","🍒":"cherries","🍓":"strawberry","🫐":"blueberries","🥝":"kiwi-fruit","🍅":"tomato","🫒":"olive","🥥":"coconut","🥑":"avocado","🍆":"eggplant","🥔":"potato","🥕":"carrot","🌽":"ear-of-corn","🌶️":"hot-pepper","🫑":"bell-pepper","🥒":"cucumber","🥬":"leafy-green","🥦":"broccoli","🧄":"garlic","🧅":"onion","🥜":"peanuts","🫘":"beans","🌰":"chestnut","🫚":"ginger-root","🫛":"pea-pod","🍞":"bread","🥐":"croissant","🥖":"baguette-bread","🫓":"flatbread","🥨":"pretzel","🥯":"bagel","🥞":"pancakes","🧇":"waffle","🧀":"cheese-wedge","🍖":"meat-on-bone","🍗":"poultry-leg","🥩":"cut-of-meat","🥓":"bacon","🍔":"hamburger","🍟":"french-fries","🍕":"pizza","🌭":"hot-dog","🥪":"sandwich","🌮":"taco","🌯":"burrito","🫔":"tamale","🥙":"stuffed-flatbread","🧆":"falafel","🥚":"egg","🍳":"cooking","🥘":"shallow-pan-of-food","🍲":"pot-of-food","🫕":"fondue","🥣":"bowl-with-spoon","🥗":"green-salad","🍿":"popcorn","🧈":"butter","🧂":"salt","🥫":"canned-food","🍱":"bento-box","🍘":"rice-cracker","🍙":"rice-ball","🍚":"cooked-rice","🍛":"curry-rice","🍜":"steaming-bowl","🍝":"spaghetti","🍠":"roasted-sweet-potato","🍢":"oden","🍣":"sushi","🍤":"fried-shrimp","🍥":"fish-cake-with-swirl","🥮":"moon-cake","🍡":"dango","🥟":"dumpling","🥠":"fortune-cookie","🥡":"takeout-box","🦀":"crab","🦞":"lobster","🦐":"shrimp","🦑":"squid","🦪":"oyster","🍦":"soft-ice-cream","🍧":"shaved-ice","🍨":"ice-cream","🍩":"doughnut","🍪":"cookie","🎂":"birthday-cake","🍰":"shortcake","🧁":"cupcake","🥧":"pie","🍫":"chocolate-bar","🍬":"candy","🍭":"lollipop","🍮":"custard","🍯":"honey-pot","🍼":"baby-bottle","🥛":"glass-of-milk","☕":"hot-beverage","🫖":"teapot","🍵":"teacup-without-handle","🍶":"sake","🍾":"bottle-with-popping-cork","🍷":"wine-glass","🍸":"cocktail-glass","🍹":"tropical-drink","🍺":"beer-mug","🍻":"clinking-beer-mugs","🥂":"clinking-glasses","🥃":"tumbler-glass","🫗":"pouring-liquid","🥤":"cup-with-straw","🧋":"bubble-tea","🧃":"beverage-box","🧉":"mate","🧊":"ice","🥢":"chopsticks","🍽️":"fork-and-knife-with-plate","🍴":"fork-and-knife","🥄":"spoon","🔪":"kitchen-knife","🫙":"jar","🏺":"amphora","🌍":"globe-showing-europe-africa","🌎":"globe-showing-americas","🌏":"globe-showing-asia-australia","🌐":"globe-with-meridians","🗺️":"world-map","🗾":"map-of-japan","🧭":"compass","🏔️":"snow-capped-mountain","⛰️":"mountain","🌋":"volcano","🗻":"mount-fuji","🏕️":"camping","🏖️":"beach-with-umbrella","🏜️":"desert","🏝️":"desert-island","🏞️":"national-park","🏟️":"stadium","🏛️":"classical-building","🏗️":"building-construction","🧱":"brick","🪨":"rock","🪵":"wood","🛖":"hut","🏘️":"houses","🏚️":"derelict-house","🏠":"house","🏡":"house-with-garden","🏢":"office-building","🏣":"japanese-post-office","🏤":"post-office","🏥":"hospital","🏦":"bank","🏨":"hotel","🏩":"love-hotel","🏪":"convenience-store","🏫":"school","🏬":"department-store","🏭":"factory","🏯":"japanese-castle","🏰":"castle","💒":"wedding","🗼":"tokyo-tower","🗽":"statue-of-liberty","⛪":"church","🕌":"mosque","🛕":"hindu-temple","🕍":"synagogue","⛩️":"shinto-shrine","🕋":"kaaba","⛲":"fountain","⛺":"tent","🌁":"foggy","🌃":"night-with-stars","🏙️":"cityscape","🌄":"sunrise-over-mountains","🌅":"sunrise","🌆":"cityscape-at-dusk","🌇":"sunset","🌉":"bridge-at-night","♨️":"hot-springs","🎠":"carousel-horse","🛝":"playground-slide","🎡":"ferris-wheel","🎢":"roller-coaster","💈":"barber-pole","🎪":"circus-tent","🚂":"locomotive","🚃":"railway-car","🚄":"high-speed-train","🚅":"bullet-train","🚆":"train","🚇":"metro","🚈":"light-rail","🚉":"station","🚊":"tram","🚝":"monorail","🚞":"mountain-railway","🚋":"tram-car","🚌":"bus","🚍":"oncoming-bus","🚎":"trolleybus","🚐":"minibus","🚑":"ambulance","🚒":"fire-engine","🚓":"police-car","🚔":"oncoming-police-car","🚕":"taxi","🚖":"oncoming-taxi","🚗":"automobile","🚘":"oncoming-automobile","🚙":"sport-utility-vehicle","🛻":"pickup-truck","🚚":"delivery-truck","🚛":"articulated-lorry","🚜":"tractor","🏎️":"racing-car","🏍️":"motorcycle","🛵":"motor-scooter","🦽":"manual-wheelchair","🦼":"motorized-wheelchair","🛺":"auto-rickshaw","🚲":"bicycle","🛴":"kick-scooter","🛹":"skateboard","🛼":"roller-skate","🚏":"bus-stop","🛣️":"motorway","🛤️":"railway-track","🛢️":"oil-drum","⛽":"fuel-pump","🛞":"wheel","🚨":"police-car-light","🚥":"horizontal-traffic-light","🚦":"vertical-traffic-light","🛑":"stop-sign","🚧":"construction","⚓":"anchor","🛟":"ring-buoy","⛵":"sailboat","🛶":"canoe","🚤":"speedboat","🛳️":"passenger-ship","⛴️":"ferry","🛥️":"motor-boat","🚢":"ship","✈️":"airplane","🛩️":"small-airplane","🛫":"airplane-departure","🛬":"airplane-arrival","🪂":"parachute","💺":"seat","🚁":"helicopter","🚟":"suspension-railway","🚠":"mountain-cableway","🚡":"aerial-tramway","🛰️":"satellite","🚀":"rocket","🛸":"flying-saucer","🛎️":"bellhop-bell","🧳":"luggage","⌛":"hourglass-done","⏳":"hourglass-not-done","⌚":"watch","⏰":"alarm-clock","⏱️":"stopwatch","⏲️":"timer-clock","🕰️":"mantelpiece-clock","🕛":"twelve-o-clock","🕧":"twelve-thirty","🕐":"one-o-clock","🕜":"one-thirty","🕑":"two-o-clock","🕝":"two-thirty","🕒":"three-o-clock","🕞":"three-thirty","🕓":"four-o-clock","🕟":"four-thirty","🕔":"five-o-clock","🕠":"five-thirty","🕕":"six-o-clock","🕡":"six-thirty","🕖":"seven-o-clock","🕢":"seven-thirty","🕗":"eight-o-clock","🕣":"eight-thirty","🕘":"nine-o-clock","🕤":"nine-thirty","🕙":"ten-o-clock","🕥":"ten-thirty","🕚":"eleven-o-clock","🕦":"eleven-thirty","🌑":"new-moon","🌒":"waxing-crescent-moon","🌓":"first-quarter-moon","🌔":"waxing-gibbous-moon","🌕":"full-moon","🌖":"waning-gibbous-moon","🌗":"last-quarter-moon","🌘":"waning-crescent-moon","🌙":"crescent-moon","🌚":"new-moon-face","🌛":"first-quarter-moon-face","🌜":"last-quarter-moon-face","🌡️":"thermometer","☀️":"sun","🌝":"full-moon-face","🌞":"sun-with-face","🪐":"ringed-planet","⭐":"star","🌟":"glowing-star","🌠":"shooting-star","🌌":"milky-way","☁️":"cloud","⛅":"sun-behind-cloud","⛈️":"cloud-with-lightning-and-rain","🌤️":"sun-behind-small-cloud","🌥️":"sun-behind-large-cloud","🌦️":"sun-behind-rain-cloud","🌧️":"cloud-with-rain","🌨️":"cloud-with-snow","🌩️":"cloud-with-lightning","🌪️":"tornado","🌫️":"fog","🌬️":"wind-face","🌀":"cyclone","🌈":"rainbow","🌂":"closed-umbrella","☂️":"umbrella","☔":"umbrella-with-rain-drops","⛱️":"umbrella-on-ground","⚡":"high-voltage","❄️":"snowflake","☃️":"snowman","⛄":"snowman-without-snow","☄️":"comet","🔥":"fire","💧":"droplet","🌊":"water-wave","🎃":"jack-o-lantern","🎄":"christmas-tree","🎆":"fireworks","🎇":"sparkler","🧨":"firecracker","✨":"sparkles","🎈":"balloon","🎉":"party-popper","🎊":"confetti-ball","🎋":"tanabata-tree","🎍":"pine-decoration","🎎":"japanese-dolls","🎏":"carp-streamer","🎐":"wind-chime","🎑":"moon-viewing-ceremony","🧧":"red-envelope","🎀":"ribbon","🎁":"wrapped-gift","🎗️":"reminder-ribbon","🎟️":"admission-tickets","🎫":"ticket","🎖️":"military-medal","🏆":"trophy","🏅":"sports-medal","🥇":"1st-place-medal","🥈":"2nd-place-medal","🥉":"3rd-place-medal","⚽":"soccer-ball","⚾":"baseball","🥎":"softball","🏀":"basketball","🏐":"volleyball","🏈":"american-football","🏉":"rugby-football","🎾":"tennis","🥏":"flying-disc","🎳":"bowling","🏏":"cricket-game","🏑":"field-hockey","🏒":"ice-hockey","🥍":"lacrosse","🏓":"ping-pong","🏸":"badminton","🥊":"boxing-glove","🥋":"martial-arts-uniform","🥅":"goal-net","⛳":"flag-in-hole","⛸️":"ice-skate","🎣":"fishing-pole","🤿":"diving-mask","🎽":"running-shirt","🎿":"skis","🛷":"sled","🥌":"curling-stone","🎯":"bullseye","🪀":"yo-yo","🪁":"kite","🔫":"water-pistol","🎱":"pool-8-ball","🔮":"crystal-ball","🪄":"magic-wand","🎮":"video-game","🕹️":"joystick","🎰":"slot-machine","🎲":"game-die","🧩":"puzzle-piece","🧸":"teddy-bear","🪅":"pinata","🪩":"mirror-ball","🪆":"nesting-dolls","♠️":"spade-suit","♥️":"heart-suit","♦️":"diamond-suit","♣️":"club-suit","♟️":"chess-pawn","🃏":"joker","🀄":"mahjong-red-dragon","🎴":"flower-playing-cards","🎭":"performing-arts","🖼️":"framed-picture","🎨":"artist-palette","🧵":"thread","🪡":"sewing-needle","🧶":"yarn","🪢":"knot","👓":"glasses","🕶️":"sunglasses","🥽":"goggles","🥼":"lab-coat","🦺":"safety-vest","👔":"necktie","👕":"t-shirt","👖":"jeans","🧣":"scarf","🧤":"gloves","🧥":"coat","🧦":"socks","👗":"dress","👘":"kimono","🥻":"sari","🩱":"one-piece-swimsuit","🩲":"briefs","🩳":"shorts","👙":"bikini","👚":"woman-s-clothes","🪭":"folding-hand-fan","👛":"purse","👜":"handbag","👝":"clutch-bag","🛍️":"shopping-bags","🎒":"backpack","🩴":"thong-sandal","👞":"man-s-shoe","👟":"running-shoe","🥾":"hiking-boot","🥿":"flat-shoe","👠":"high-heeled-shoe","👡":"woman-s-sandal","🩰":"ballet-shoes","👢":"woman-s-boot","🪮":"hair-pick","👑":"crown","👒":"woman-s-hat","🎩":"top-hat","🎓":"graduation-cap","🧢":"billed-cap","🪖":"military-helmet","⛑️":"rescue-worker-s-helmet","📿":"prayer-beads","💄":"lipstick","💍":"ring","💎":"gem-stone","🔇":"muted-speaker","🔈":"speaker-low-volume","🔉":"speaker-medium-volume","🔊":"speaker-high-volume","📢":"loudspeaker","📣":"megaphone","📯":"postal-horn","🔔":"bell","🔕":"bell-with-slash","🎼":"musical-score","🎵":"musical-note","🎶":"musical-notes","🎙️":"studio-microphone","🎚️":"level-slider","🎛️":"control-knobs","🎤":"microphone","🎧":"headphone","📻":"radio","🎷":"saxophone","🪗":"accordion","🎸":"guitar","🎹":"musical-keyboard","🎺":"trumpet","🎻":"violin","🪕":"banjo","🥁":"drum","🪘":"long-drum","🪇":"maracas","🪈":"flute","📱":"mobile-phone","📲":"mobile-phone-with-arrow","☎️":"telephone","📞":"telephone-receiver","📟":"pager","📠":"fax-machine","🔋":"battery","🪫":"low-battery","🔌":"electric-plug","💻":"laptop","🖥️":"desktop-computer","🖨️":"printer","⌨️":"keyboard","🖱️":"computer-mouse","🖲️":"trackball","💽":"computer-disk","💾":"floppy-disk","💿":"optical-disk","📀":"dvd","🧮":"abacus","🎥":"movie-camera","🎞️":"film-frames","📽️":"film-projector","🎬":"clapper-board","📺":"television","📷":"camera","📸":"camera-with-flash","📹":"video-camera","📼":"videocassette","🔍":"magnifying-glass-tilted-left","🔎":"magnifying-glass-tilted-right","🕯️":"candle","💡":"light-bulb","🔦":"flashlight","🏮":"red-paper-lantern","🪔":"diya-lamp","📔":"notebook-with-decorative-cover","📕":"closed-book","📖":"open-book","📗":"green-book","📘":"blue-book","📙":"orange-book","📚":"books","📓":"notebook","📒":"ledger","📃":"page-with-curl","📜":"scroll","📄":"page-facing-up","📰":"newspaper","🗞️":"rolled-up-newspaper","📑":"bookmark-tabs","🔖":"bookmark","🏷️":"label","💰":"money-bag","🪙":"coin","💴":"yen-banknote","💵":"dollar-banknote","💶":"euro-banknote","💷":"pound-banknote","💸":"money-with-wings","💳":"credit-card","🧾":"receipt","💹":"chart-increasing-with-yen","✉️":"envelope","📧":"e-mail","📨":"incoming-envelope","📩":"envelope-with-arrow","📤":"outbox-tray","📥":"inbox-tray","📦":"package","📫":"closed-mailbox-with-raised-flag","📪":"closed-mailbox-with-lowered-flag","📬":"open-mailbox-with-raised-flag","📭":"open-mailbox-with-lowered-flag","📮":"postbox","🗳️":"ballot-box-with-ballot","✏️":"pencil","✒️":"black-nib","🖋️":"fountain-pen","🖊️":"pen","🖌️":"paintbrush","🖍️":"crayon","📝":"memo","💼":"briefcase","📁":"file-folder","📂":"open-file-folder","🗂️":"card-index-dividers","📅":"calendar","📆":"tear-off-calendar","🗒️":"spiral-notepad","🗓️":"spiral-calendar","📇":"card-index","📈":"chart-increasing","📉":"chart-decreasing","📊":"bar-chart","📋":"clipboard","📌":"pushpin","📍":"round-pushpin","📎":"paperclip","🖇️":"linked-paperclips","📏":"straight-ruler","📐":"triangular-ruler","✂️":"scissors","🗃️":"card-file-box","🗄️":"file-cabinet","🗑️":"wastebasket","🔒":"locked","🔓":"unlocked","🔏":"locked-with-pen","🔐":"locked-with-key","🔑":"key","🗝️":"old-key","🔨":"hammer","🪓":"axe","⛏️":"pick","⚒️":"hammer-and-pick","🛠️":"hammer-and-wrench","🗡️":"dagger","⚔️":"crossed-swords","💣":"bomb","🪃":"boomerang","🏹":"bow-and-arrow","🛡️":"shield","🪚":"carpentry-saw","🔧":"wrench","🪛":"screwdriver","🔩":"nut-and-bolt","⚙️":"gear","🗜️":"clamp","⚖️":"balance-scale","🦯":"white-cane","🔗":"link","⛓️":"chains","🪝":"hook","🧰":"toolbox","🧲":"magnet","🪜":"ladder","⚗️":"alembic","🧪":"test-tube","🧫":"petri-dish","🧬":"dna","🔬":"microscope","🔭":"telescope","📡":"satellite-antenna","💉":"syringe","🩸":"drop-of-blood","💊":"pill","🩹":"adhesive-bandage","🩼":"crutch","🩺":"stethoscope","🩻":"x-ray","🚪":"door","🛗":"elevator","🪞":"mirror","🪟":"window","🛏️":"bed","🛋️":"couch-and-lamp","🪑":"chair","🚽":"toilet","🪠":"plunger","🚿":"shower","🛁":"bathtub","🪤":"mouse-trap","🪒":"razor","🧴":"lotion-bottle","🧷":"safety-pin","🧹":"broom","🧺":"basket","🧻":"roll-of-paper","🪣":"bucket","🧼":"soap","🫧":"bubbles","🪥":"toothbrush","🧽":"sponge","🧯":"fire-extinguisher","🛒":"shopping-cart","🚬":"cigarette","⚰️":"coffin","🪦":"headstone","⚱️":"funeral-urn","🧿":"nazar-amulet","🪬":"hamsa","🗿":"moai","🪧":"placard","🪪":"identification-card","🏧":"atm-sign","🚮":"litter-in-bin-sign","🚰":"potable-water","♿":"wheelchair-symbol","🚹":"men-s-room","🚺":"women-s-room","🚻":"restroom","🚼":"baby-symbol","🚾":"water-closet","🛂":"passport-control","🛃":"customs","🛄":"baggage-claim","🛅":"left-luggage","⚠️":"warning","🚸":"children-crossing","⛔":"no-entry","🚫":"prohibited","🚳":"no-bicycles","🚭":"no-smoking","🚯":"no-littering","🚱":"non-potable-water","🚷":"no-pedestrians","📵":"no-mobile-phones","🔞":"no-one-under-eighteen","☢️":"radioactive","☣️":"biohazard","⬆️":"up-arrow","↗️":"up-right-arrow","➡️":"right-arrow","↘️":"down-right-arrow","⬇️":"down-arrow","↙️":"down-left-arrow","⬅️":"left-arrow","↖️":"up-left-arrow","↕️":"up-down-arrow","↔️":"left-right-arrow","↩️":"right-arrow-curving-left","↪️":"left-arrow-curving-right","⤴️":"right-arrow-curving-up","⤵️":"right-arrow-curving-down","🔃":"clockwise-vertical-arrows","🔄":"counterclockwise-arrows-button","🔙":"back-arrow","🔚":"end-arrow","🔛":"on-arrow","🔜":"soon-arrow","🔝":"top-arrow","🛐":"place-of-worship","⚛️":"atom-symbol","🕉️":"om","✡️":"star-of-david","☸️":"wheel-of-dharma","☯️":"yin-yang","✝️":"latin-cross","☦️":"orthodox-cross","☪️":"star-and-crescent","☮️":"peace-symbol","🕎":"menorah","🔯":"dotted-six-pointed-star","🪯":"khanda","♈":"aries","♉":"taurus","♊":"gemini","♋":"cancer","♌":"leo","♍":"virgo","♎":"libra","♏":"scorpio","♐":"sagittarius","♑":"capricorn","♒":"aquarius","♓":"pisces","⛎":"ophiuchus","🔀":"shuffle-tracks-button","🔁":"repeat-button","🔂":"repeat-single-button","▶️":"play-button","⏩":"fast-forward-button","⏭️":"next-track-button","⏯️":"play-or-pause-button","◀️":"reverse-button","⏪":"fast-reverse-button","⏮️":"last-track-button","🔼":"upwards-button","⏫":"fast-up-button","🔽":"downwards-button","⏬":"fast-down-button","⏸️":"pause-button","⏹️":"stop-button","⏺️":"record-button","⏏️":"eject-button","🎦":"cinema","🔅":"dim-button","🔆":"bright-button","📶":"antenna-bars","🛜":"wireless","📳":"vibration-mode","📴":"mobile-phone-off","♀️":"female-sign","♂️":"male-sign","⚧️":"transgender-symbol","✖️":"multiply","➕":"plus","➖":"minus","➗":"divide","🟰":"heavy-equals-sign","♾️":"infinity","‼️":"double-exclamation-mark","⁉️":"exclamation-question-mark","❓":"red-question-mark","❔":"white-question-mark","❕":"white-exclamation-mark","❗":"red-exclamation-mark","〰️":"wavy-dash","💱":"currency-exchange","💲":"heavy-dollar-sign","⚕️":"medical-symbol","♻️":"recycling-symbol","⚜️":"fleur-de-lis","🔱":"trident-emblem","📛":"name-badge","🔰":"japanese-symbol-for-beginner","⭕":"hollow-red-circle","✅":"check-mark-button","☑️":"check-box-with-check","✔️":"check-mark","❌":"cross-mark","❎":"cross-mark-button","➰":"curly-loop","➿":"double-curly-loop","〽️":"part-alternation-mark","✳️":"eight-spoked-asterisk","✴️":"eight-pointed-star","❇️":"sparkle","©️":"copyright","®️":"registered","™️":"trade-mark","#️⃣":"keycap-number-sign","*️⃣":"keycap-asterisk","0️⃣":"keycap-0","1️⃣":"keycap-1","2️⃣":"keycap-2","3️⃣":"keycap-3","4️⃣":"keycap-4","5️⃣":"keycap-5","6️⃣":"keycap-6","7️⃣":"keycap-7","8️⃣":"keycap-8","9️⃣":"keycap-9","🔟":"keycap-10","🔠":"input-latin-uppercase","🔡":"input-latin-lowercase","🔢":"input-numbers","🔣":"input-symbols","🔤":"input-latin-letters","🅰️":"a-button","🆎":"ab-button","🅱️":"b-button","🆑":"cl-button","🆒":"cool-button","🆓":"free-button","ℹ️":"information","🆔":"id-button","Ⓜ️":"circled-m","🆕":"new-button","🆖":"ng-button","🅾️":"o-button","🆗":"ok-button","🅿️":"p-button","🆘":"sos-button","🆙":"up-button","🆚":"vs-button","🈁":"japanese-here-button","🈂️":"japanese-service-charge-button","🈷️":"japanese-monthly-amount-button","🈶":"japanese-not-free-of-charge-button","🈯":"japanese-reserved-button","🉐":"japanese-bargain-button","🈹":"japanese-discount-button","🈚":"japanese-free-of-charge-button","🈲":"japanese-prohibited-button","🉑":"japanese-acceptable-button","🈸":"japanese-application-button","🈴":"japanese-passing-grade-button","🈳":"japanese-vacancy-button","㊗️":"japanese-congratulations-button","㊙️":"japanese-secret-button","🈺":"japanese-open-for-business-button","🈵":"japanese-no-vacancy-button","🔴":"red-circle","🟠":"orange-circle","🟡":"yellow-circle","🟢":"green-circle","🔵":"blue-circle","🟣":"purple-circle","🟤":"brown-circle","⚫":"black-circle","⚪":"white-circle","🟥":"red-square","🟧":"orange-square","🟨":"yellow-square","🟩":"green-square","🟦":"blue-square","🟪":"purple-square","🟫":"brown-square","⬛":"black-large-square","⬜":"white-large-square","◼️":"black-medium-square","◻️":"white-medium-square","◾":"black-medium-small-square","◽":"white-medium-small-square","▪️":"black-small-square","▫️":"white-small-square","🔶":"large-orange-diamond","🔷":"large-blue-diamond","🔸":"small-orange-diamond","🔹":"small-blue-diamond","🔺":"red-triangle-pointed-up","🔻":"red-triangle-pointed-down","💠":"diamond-with-a-dot","🔘":"radio-button","🔳":"white-square-button","🔲":"black-square-button","🏁":"chequered-flag","🚩":"triangular-flag","🎌":"crossed-flags","🏴":"black-flag","🏳️":"white-flag","🏳️🌈":"rainbow-flag","🏳️⚧️":"transgender-flag","🏴☠️":"pirate-flag","🇦🇨":"flag-ascension-island","🇦🇩":"flag-andorra","🇦🇪":"flag-united-arab-emirates","🇦🇫":"flag-afghanistan","🇦🇬":"flag-antigua-barbuda","🇦🇮":"flag-anguilla","🇦🇱":"flag-albania","🇦🇲":"flag-armenia","🇦🇴":"flag-angola","🇦🇶":"flag-antarctica","🇦🇷":"flag-argentina","🇦🇸":"flag-american-samoa","🇦🇹":"flag-austria","🇦🇺":"flag-australia","🇦🇼":"flag-aruba","🇦🇽":"flag-aland-islands","🇦🇿":"flag-azerbaijan","🇧🇦":"flag-bosnia-herzegovina","🇧🇧":"flag-barbados","🇧🇩":"flag-bangladesh","🇧🇪":"flag-belgium","🇧🇫":"flag-burkina-faso","🇧🇬":"flag-bulgaria","🇧🇭":"flag-bahrain","🇧🇮":"flag-burundi","🇧🇯":"flag-benin","🇧🇱":"flag-st-barthelemy","🇧🇲":"flag-bermuda","🇧🇳":"flag-brunei","🇧🇴":"flag-bolivia","🇧🇶":"flag-caribbean-netherlands","🇧🇷":"flag-brazil","🇧🇸":"flag-bahamas","🇧🇹":"flag-bhutan","🇧🇻":"flag-bouvet-island","🇧🇼":"flag-botswana","🇧🇾":"flag-belarus","🇧🇿":"flag-belize","🇨🇦":"flag-canada","🇨🇨":"flag-cocos-islands","🇨🇩":"flag-congo-kinshasa","🇨🇫":"flag-central-african-republic","🇨🇬":"flag-congo-brazzaville","🇨🇭":"flag-switzerland","🇨🇮":"flag-cote-d-ivoire","🇨🇰":"flag-cook-islands","🇨🇱":"flag-chile","🇨🇲":"flag-cameroon","🇨🇳":"flag-china","🇨🇴":"flag-colombia","🇨🇵":"flag-clipperton-island","🇨🇷":"flag-costa-rica","🇨🇺":"flag-cuba","🇨🇻":"flag-cape-verde","🇨🇼":"flag-curacao","🇨🇽":"flag-christmas-island","🇨🇾":"flag-cyprus","🇨🇿":"flag-czechia","🇩🇪":"flag-germany","🇩🇬":"flag-diego-garcia","🇩🇯":"flag-djibouti","🇩🇰":"flag-denmark","🇩🇲":"flag-dominica","🇩🇴":"flag-dominican-republic","🇩🇿":"flag-algeria","🇪🇦":"flag-ceuta-melilla","🇪🇨":"flag-ecuador","🇪🇪":"flag-estonia","🇪🇬":"flag-egypt","🇪🇭":"flag-western-sahara","🇪🇷":"flag-eritrea","🇪🇸":"flag-spain","🇪🇹":"flag-ethiopia","🇪🇺":"flag-european-union","🇫🇮":"flag-finland","🇫🇯":"flag-fiji","🇫🇰":"flag-falkland-islands","🇫🇲":"flag-micronesia","🇫🇴":"flag-faroe-islands","🇫🇷":"flag-france","🇬🇦":"flag-gabon","🇬🇧":"flag-united-kingdom","🇬🇩":"flag-grenada","🇬🇪":"flag-georgia","🇬🇫":"flag-french-guiana","🇬🇬":"flag-guernsey","🇬🇭":"flag-ghana","🇬🇮":"flag-gibraltar","🇬🇱":"flag-greenland","🇬🇲":"flag-gambia","🇬🇳":"flag-guinea","🇬🇵":"flag-guadeloupe","🇬🇶":"flag-equatorial-guinea","🇬🇷":"flag-greece","🇬🇸":"flag-south-georgia-south-sandwich-islands","🇬🇹":"flag-guatemala","🇬🇺":"flag-guam","🇬🇼":"flag-guinea-bissau","🇬🇾":"flag-guyana","🇭🇰":"flag-hong-kong-sar-china","🇭🇲":"flag-heard-mcdonald-islands","🇭🇳":"flag-honduras","🇭🇷":"flag-croatia","🇭🇹":"flag-haiti","🇭🇺":"flag-hungary","🇮🇨":"flag-canary-islands","🇮🇩":"flag-indonesia","🇮🇪":"flag-ireland","🇮🇱":"flag-israel","🇮🇲":"flag-isle-of-man","🇮🇳":"flag-india","🇮🇴":"flag-british-indian-ocean-territory","🇮🇶":"flag-iraq","🇮🇷":"flag-iran","🇮🇸":"flag-iceland","🇮🇹":"flag-italy","🇯🇪":"flag-jersey","🇯🇲":"flag-jamaica","🇯🇴":"flag-jordan","🇯🇵":"flag-japan","🇰🇪":"flag-kenya","🇰🇬":"flag-kyrgyzstan","🇰🇭":"flag-cambodia","🇰🇮":"flag-kiribati","🇰🇲":"flag-comoros","🇰🇳":"flag-st-kitts-nevis","🇰🇵":"flag-north-korea","🇰🇷":"flag-south-korea","🇰🇼":"flag-kuwait","🇰🇾":"flag-cayman-islands","🇰🇿":"flag-kazakhstan","🇱🇦":"flag-laos","🇱🇧":"flag-lebanon","🇱🇨":"flag-st-lucia","🇱🇮":"flag-liechtenstein","🇱🇰":"flag-sri-lanka","🇱🇷":"flag-liberia","🇱🇸":"flag-lesotho","🇱🇹":"flag-lithuania","🇱🇺":"flag-luxembourg","🇱🇻":"flag-latvia","🇱🇾":"flag-libya","🇲🇦":"flag-morocco","🇲🇨":"flag-monaco","🇲🇩":"flag-moldova","🇲🇪":"flag-montenegro","🇲🇫":"flag-st-martin","🇲🇬":"flag-madagascar","🇲🇭":"flag-marshall-islands","🇲🇰":"flag-north-macedonia","🇲🇱":"flag-mali","🇲🇲":"flag-myanmar","🇲🇳":"flag-mongolia","🇲🇴":"flag-macao-sar-china","🇲🇵":"flag-northern-mariana-islands","🇲🇶":"flag-martinique","🇲🇷":"flag-mauritania","🇲🇸":"flag-montserrat","🇲🇹":"flag-malta","🇲🇺":"flag-mauritius","🇲🇻":"flag-maldives","🇲🇼":"flag-malawi","🇲🇽":"flag-mexico","🇲🇾":"flag-malaysia","🇲🇿":"flag-mozambique","🇳🇦":"flag-namibia","🇳🇨":"flag-new-caledonia","🇳🇪":"flag-niger","🇳🇫":"flag-norfolk-island","🇳🇬":"flag-nigeria","🇳🇮":"flag-nicaragua","🇳🇱":"flag-netherlands","🇳🇴":"flag-norway","🇳🇵":"flag-nepal","🇳🇷":"flag-nauru","🇳🇺":"flag-niue","🇳🇿":"flag-new-zealand","🇴🇲":"flag-oman","🇵🇦":"flag-panama","🇵🇪":"flag-peru","🇵🇫":"flag-french-polynesia","🇵🇬":"flag-papua-new-guinea","🇵🇭":"flag-philippines","🇵🇰":"flag-pakistan","🇵🇱":"flag-poland","🇵🇲":"flag-st-pierre-miquelon","🇵🇳":"flag-pitcairn-islands","🇵🇷":"flag-puerto-rico","🇵🇸":"flag-palestinian-territories","🇵🇹":"flag-portugal","🇵🇼":"flag-palau","🇵🇾":"flag-paraguay","🇶🇦":"flag-qatar","🇷🇪":"flag-reunion","🇷🇴":"flag-romania","🇷🇸":"flag-serbia","🇷🇺":"flag-russia","🇷🇼":"flag-rwanda","🇸🇦":"flag-saudi-arabia","🇸🇧":"flag-solomon-islands","🇸🇨":"flag-seychelles","🇸🇩":"flag-sudan","🇸🇪":"flag-sweden","🇸🇬":"flag-singapore","🇸🇭":"flag-st-helena","🇸🇮":"flag-slovenia","🇸🇯":"flag-svalbard-jan-mayen","🇸🇰":"flag-slovakia","🇸🇱":"flag-sierra-leone","🇸🇲":"flag-san-marino","🇸🇳":"flag-senegal","🇸🇴":"flag-somalia","🇸🇷":"flag-suriname","🇸🇸":"flag-south-sudan","🇸🇹":"flag-sao-tome-principe","🇸🇻":"flag-el-salvador","🇸🇽":"flag-sint-maarten","🇸🇾":"flag-syria","🇸🇿":"flag-eswatini","🇹🇦":"flag-tristan-da-cunha","🇹🇨":"flag-turks-caicos-islands","🇹🇩":"flag-chad","🇹🇫":"flag-french-southern-territories","🇹🇬":"flag-togo","🇹🇭":"flag-thailand","🇹🇯":"flag-tajikistan","🇹🇰":"flag-tokelau","🇹🇱":"flag-timor-leste","🇹🇲":"flag-turkmenistan","🇹🇳":"flag-tunisia","🇹🇴":"flag-tonga","🇹🇷":"flag-turkey","🇹🇹":"flag-trinidad-tobago","🇹🇻":"flag-tuvalu","🇹🇼":"flag-taiwan","🇹🇿":"flag-tanzania","🇺🇦":"flag-ukraine","🇺🇬":"flag-uganda","🇺🇲":"flag-u-s-outlying-islands","🇺🇳":"flag-united-nations","🇺🇸":"flag-united-states","🇺🇾":"flag-uruguay","🇺🇿":"flag-uzbekistan","🇻🇦":"flag-vatican-city","🇻🇨":"flag-st-vincent-grenadines","🇻🇪":"flag-venezuela","🇻🇬":"flag-british-virgin-islands","🇻🇮":"flag-u-s-virgin-islands","🇻🇳":"flag-vietnam","🇻🇺":"flag-vanuatu","🇼🇫":"flag-wallis-futuna","🇼🇸":"flag-samoa","🇽🇰":"flag-kosovo","🇾🇪":"flag-yemen","🇾🇹":"flag-mayotte","🇿🇦":"flag-south-africa","🇿🇲":"flag-zambia","🇿🇼":"flag-zimbabwe","🏴":"flag-england","🏴":"flag-scotland","🏴":"flag-wales"};TA=function(e){var t;return null===(t=e.match(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g))||void 0===t?void 0:t[0]},FA=function(e){var t,n=TA(e);if(n)return null==(t=u6)?void 0:t[n]},MA=uF((function(e){var t=e.css,n=e.token;return{container:t(AA||(AA=Oi(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "]))),loading:t(RA||(RA=Oi(["\n position: absolute;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n color: ",";\n "])),n.colorText)}}));const d6=Zb.memo((function(e){var t=e.emoji,n=e.className,r=e.style,o=e.type,i=void 0===o?"3d":o,a=e.size,s=void 0===a?40:a,l=NA(),c=Wa(Zb.useState(!1),2),u=c[0],d=c[1],p=MA(),f=p.cx,h=p.styles,g=Zb.useMemo((function(){if("pure"!==i){var e=FA(t);if(e)switch(i){case"modern":case"flat":case"high-contrast":return l({path:"icons/".concat(i,"/").concat(s6(e),".svg"),pkg:"fluentui-emoji",version:"0.0.8"});case"anim":return l({path:"assets/".concat(e,".webp"),pkg:"@lobehub/assets-emoji-anim",version:"1.0.0"});case"3d":return l({path:"assets/".concat(e,".webp"),pkg:"@lobehub/assets-emoji",version:"1.3.0"})}}}),[i,t]);return ay.jsx("div","pure"===i||!g||u?{className:f(h.container,n),style:Af({fontSize:.9*s,height:s,width:s},r),children:t}:{className:f(h.container,n),style:Af({height:s,width:s},r),children:ay.jsx(c6,{alt:t,height:s,onError:function(){return d(!0)},src:g,width:s})})}));LA=function(e){function t(t){return Bs(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,As(n,r),t}(Mf(Error)),BA={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",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",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},zA=/^#[a-fA-F0-9]{6}$/,HA=/^#[a-fA-F0-9]{8}$/,WA=/^#[a-fA-F0-9]{3}$/,UA=/^#[a-fA-F0-9]{4}$/,VA=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,GA=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,qA=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,XA=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,KA=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},YA=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},QA=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},JA=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},ZA=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},eR=Jf(Zf),tR=Jf(th),nR="#000",rR="#fff","function"==typeof SuppressedError&&SuppressedError,oR=function(e){return"function"==typeof e},iR=function(e){return"number"==typeof e};const p6=function(e){var t=ih(e);Zb.useEffect((function(){return function(){t.current()}}),[])};aR=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},sR="object"==typeof mK&&mK&&mK.Object===Object&&mK,lR="object"==typeof self&&self&&self.Object===Object&&self,dR=uR=(cR=sR||lR||Function("return this")()).Symbol,fR=(pR=Object.prototype).hasOwnProperty,hR=pR.toString,gR=dR?dR.toStringTag:void 0,mR=Object.prototype.toString,yR=function(e){var t,n,r=fR.call(e,gR),o=e[gR];try{e[gR]=void 0,t=!0}catch(GX){}return n=hR.call(e),t&&(r?e[gR]=o:delete e[gR]),n},vR=function(e){return mR.call(e)},wR=(bR=uR)?bR.toStringTag:void 0,SR=xR=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":wR&&wR in Object(e)?yR(e):vR(e)},CR=kR=function(e){return null!=e&&"object"==typeof e},ER=function(e){return"symbol"==typeof e||CR(e)&&"[object Symbol]"==SR(e)};const f6=!("undefined"==typeof window||!window.document||!window.document.createElement),h6=function(e){return function(t,n,r){var o=Zb.useRef(!1),i=Zb.useRef([]),a=Zb.useRef([]),s=Zb.useRef();e((function(){var e,l=(Array.isArray(r)?r:[r]).map((function(e){return ah(e)}));if(!o.current)return o.current=!0,i.current=l,a.current=n,void(s.current=t());l.length===i.current.length&&oh(l,i.current)&&oh(n,a.current)||(null===(e=s.current)||void 0===e||e.call(s),i.current=l,a.current=n,s.current=t())})),p6((function(){var e;null===(e=s.current)||void 0===e||e.call(s),o.current=!1}))}},g6=h6(Zb.useEffect);OR=DR=function(e,t){return e===t||e!=e&&t!=t},$R=_R=function(e,t){for(var n=e.length;n--;)if(OR(e[n][0],t))return n;return-1},jR=Array.prototype.splice,NR=_R,PR=_R,IR=_R,TR=function(e){var t=this.__data__,n=$R(t,e);return!(n<0||(n==t.length-1?t.pop():jR.call(t,n,1),--this.size,0))},FR=function(e){var t=this.__data__,n=NR(t,e);return n<0?void 0:t[n][1]},AR=function(e){return PR(this.__data__,e)>-1},RR=function(e,t){var n=this.__data__,r=IR(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},sh.prototype.clear=function(){this.__data__=[],this.size=0},sh.prototype.delete=TR,sh.prototype.get=FR,sh.prototype.has=AR,sh.prototype.set=RR,LR=MR=sh,BR=function(){this.__data__=new LR,this.size=0},zR=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},HR=function(e){return this.__data__.get(e)},WR=function(e){return this.__data__.has(e)},UR=xR,VR=aR,GR=function(e){if(!VR(e))return!1;var t=UR(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},FX=/[^.]+$/.exec((qR=cR["__core-js_shared__"])&&qR.keys&&qR.keys.IE_PROTO||""),XR=FX?"Symbol(src)_1."+FX:"",KR=Function.prototype.toString,QR=GR,JR=function(e){return!!XR&&XR in e},ZR=aR,eM=YR=function(e){if(null!=e){try{return KR.call(e)}catch(GX){}try{return e+""}catch(GX){}}return""},tM=/[\\^$.*+?()[\]{}|]/g,nM=/^\[object .+?Constructor\]$/,rM=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(tM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oM=function(e,t){return null==e?void 0:e[t]},iM=function(e){return!(!ZR(e)||JR(e))&&(QR(e)?rM:nM).test(eM(e))},aM=oM,sM=function(e,t){var n=aM(e,t);return iM(n)?n:void 0},lM=sM(cR,"Map"),cM=sM(Object,"create"),dM=uM=cM,pM=uM,fM=Object.prototype.hasOwnProperty,hM=uM,gM=Object.prototype.hasOwnProperty,mM=uM,bM=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},yM=function(e){var t,n=this.__data__;return pM?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:fM.call(n,e)?n[e]:void 0},vM=function(e){var t=this.__data__;return hM?void 0!==t[e]:gM.call(t,e)},wM=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mM&&void 0===t?"__lodash_hash_undefined__":t,this},lh.prototype.clear=function(){this.__data__=dM?dM(null):{},this.size=0},lh.prototype.delete=bM,lh.prototype.get=yM,lh.prototype.has=vM,lh.prototype.set=wM,xM=lh,kM=MR,SM=lM,CM=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},DM=EM=function(e,t){var n=e.__data__;return CM(t)?n["string"==typeof t?"string":"hash"]:n.map},OM=EM,_M=EM,$M=EM,jM=function(e){var t=DM(this,e).delete(e);return this.size-=t?1:0,t},NM=function(e){return OM(this,e).get(e)},PM=function(e){return _M(this,e).has(e)},IM=function(e,t){var n=$M(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ch.prototype.clear=function(){this.size=0,this.__data__={hash:new xM,map:new(SM||kM),string:new xM}},ch.prototype.delete=jM,ch.prototype.get=NM,ch.prototype.has=PM,ch.prototype.set=IM,FM=MR,AM=lM,RM=TM=ch,MM=MR,LM=zR,BM=HR,zM=WR,HM=function(e,t){var n,r=this.__data__;if(r instanceof FM){if(n=r.__data__,!AM||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new RM(n)}return r.set(e,t),this.size=r.size,this},uh.prototype.clear=BR,uh.prototype.delete=LM,uh.prototype.get=BM,uh.prototype.has=zM,uh.prototype.set=HM,WM=uh,UM=TM,VM=function(e){return this.__data__.has(e)},dh.prototype.add=dh.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},dh.prototype.has=VM,XM=GM=dh,KM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},YM=qM=function(e,t){return e.has(t)},eL=cR.Uint8Array,tL=DR,nL=QM=function(e,t,n,r,o,i){var a,s,l,c,u,d,p,f,h=1&n,g=e.length,m=t.length;if(g!=m&&!(h&&m>g))return!1;if(a=i.get(e),s=i.get(t),a&&s)return a==t&&s==e;for(l=-1,c=!0,u=2&n?new XM:void 0,i.set(e,t),i.set(t,e);++l<g;){if(d=e[l],p=t[l],r&&(f=h?r(p,d,l,t,e,i):r(d,p,l,e,t,i)),void 0!==f){if(f)continue;c=!1;break}if(u){if(!KM(t,(function(e,t){if(!YM(u,t)&&(d===e||o(d,e,n,r,i)))return u.push(t)}))){c=!1;break}}else if(d!==p&&!o(d,p,n,r,i)){c=!1;break}}return i.delete(e),i.delete(t),c},rL=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},oL=JM=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},aL=(iL=(ZM=uR)?ZM.prototype:void 0)?iL.valueOf:void 0,sL=function(e,t,n,r,o,i,a){var s,l,c;switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new eL(e),new eL(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return tL(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":s=rL;case"[object Set]":return s||(s=oL),!!(e.size==t.size||1&r)&&((l=a.get(e))?l==t:(r|=2,a.set(e,t),c=nL(s(e),s(t),r,o,i,a),a.delete(e),c));case"[object Symbol]":if(aL)return aL.call(e)==aL.call(t)}return!1},cL=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},uL=lL=Array.isArray,dL=function(e,t,n){var r=t(e);return uL(e)?r:cL(r,n(e))},pL=function(e,t){for(var n,r=-1,o=null==e?0:e.length,i=0,a=[];++r<o;)t(n=e[r],r,e)&&(a[i++]=n);return a},fL=Object.prototype.propertyIsEnumerable,gL=(hL=Object.getOwnPropertySymbols)?function(e){return null==e?[]:(e=Object(e),pL(hL(e),(function(t){return fL.call(e,t)})))}:function(){return[]},mL=gL,bL=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},yL=xR,vL=kR,wL=function(e){return vL(e)&&"[object Arguments]"==yL(e)},xL=kR,SL=(kL=Object.prototype).hasOwnProperty,CL=kL.propertyIsEnumerable,EL=wL(function(){return arguments}())?wL:function(e){return xL(e)&&SL.call(e,"callee")&&!CL.call(e,"callee")},RX=cR,MX=function(){return!1},(DL={exports:{}}).exports=((zX=(BX=(LX=(AX=DL.exports)&&!AX.nodeType&&AX)&&DL&&!DL.nodeType&&DL)&&BX.exports===LX?RX.Buffer:void 0)?zX.isBuffer:void 0)||MX,OL=DL.exports,_L=/^(?:0|[1-9]\d*)$/,$L=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&_L.test(e))&&e>-1&&e%1==0&&e<t},NL=xR,PL=jL=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},IL=kR,(TL={})["[object Float32Array]"]=TL["[object Float64Array]"]=TL["[object Int8Array]"]=TL["[object Int16Array]"]=TL["[object Int32Array]"]=TL["[object Uint8Array]"]=TL["[object Uint8ClampedArray]"]=TL["[object Uint16Array]"]=TL["[object Uint32Array]"]=!0,TL["[object Arguments]"]=TL["[object Array]"]=TL["[object ArrayBuffer]"]=TL["[object Boolean]"]=TL["[object DataView]"]=TL["[object Date]"]=TL["[object Error]"]=TL["[object Function]"]=TL["[object Map]"]=TL["[object Number]"]=TL["[object Object]"]=TL["[object RegExp]"]=TL["[object Set]"]=TL["[object String]"]=TL["[object WeakMap]"]=!1,FL=function(e){return IL(e)&&PL(e.length)&&!!TL[NL(e)]},AL=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&&sR.process,i=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(GX){}}();e.exports=i}(RL={exports:{}},RL.exports),ML=FL,zL=(BL=(LL=RL.exports)&&LL.isTypedArray)?AL(BL):ML,WL=bL,UL=EL,VL=lL,GL=OL,qL=$L,XL=HL=zL,KL=Object.prototype.hasOwnProperty,YL=function(e,t){var n,r=VL(e),o=!r&&UL(e),i=!r&&!o&&GL(e),a=!r&&!o&&!i&&XL(e),s=r||o||i||a,l=s?WL(e.length,String):[],c=l.length;for(n in e)!t&&!KL.call(e,n)||s&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||qL(n,c))||l.push(n);return l},QL=Object.prototype,JL=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||QL)},hK=Object.keys,gK=Object,ZL=JL,eB=function(e){return hK(gK(e))},tB=Object.prototype.hasOwnProperty,nB=function(e){var t,n;if(!ZL(e))return eB(e);for(n in t=[],Object(e))tB.call(e,n)&&"constructor"!=n&&t.push(n);return t},rB=GR,oB=jL,iB=YL,aB=nB,sB=function(e){return null!=e&&oB(e.length)&&!rB(e)},lB=function(e){return sB(e)?iB(e):aB(e)},cB=dL,uB=mL,dB=lB,pB=function(e){return cB(e,dB,uB)},fB=pB,hB=Object.prototype.hasOwnProperty,gB=function(e,t,n,r,o,i){var a,s,l,c,u,d,p,f,h,g,m,b=1&n,y=fB(e),v=y.length;if(v!=fB(t).length&&!b)return!1;for(a=v;a--;)if(s=y[a],!(b?s in t:hB.call(t,s)))return!1;if(l=i.get(e),c=i.get(t),l&&c)return l==t&&c==e;for(u=!0,i.set(e,t),i.set(t,e),d=b;++a<v;){if(p=e[s=y[a]],f=t[s],r&&(h=b?r(f,p,s,t,e,i):r(p,f,s,e,t,i)),!(void 0===h?p===f||o(p,f,n,r,i):h)){u=!1;break}d||(d="constructor"==s)}return u&&!d&&((g=e.constructor)==(m=t.constructor)||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m||(u=!1)),i.delete(e),i.delete(t),u},mB=sM(cR,"DataView"),vB=lM,wB=sM(cR,"Promise"),xB=bB=sM(cR,"Set"),kB=sM(cR,"WeakMap"),SB=xR,EB="[object Map]",DB="[object Promise]",OB="[object Set]",_B="[object WeakMap]",$B="[object DataView]",jB=(CB=YR)(yB=mB),NB=CB(vB),PB=CB(wB),IB=CB(xB),TB=CB(kB),FB=SB,(yB&&FB(new yB(new ArrayBuffer(1)))!=$B||vB&&FB(new vB)!=EB||wB&&FB(wB.resolve())!=DB||xB&&FB(new xB)!=OB||kB&&FB(new kB)!=_B)&&(FB=function(e){var t=SB(e),n="[object Object]"==t?e.constructor:void 0,r=n?CB(n):"";if(r)switch(r){case jB:return $B;case NB:return EB;case PB:return DB;case IB:return OB;case TB:return _B}return t}),AB=WM,RB=QM,MB=sL,LB=gB,BB=FB,zB=lL,HB=OL,WB=HL,UB="[object Arguments]",VB="[object Array]",GB="[object Object]",qB=Object.prototype.hasOwnProperty,XB=function(e,t,n,r,o,i){var a,s,l,c,u,d,p,f=zB(e),h=zB(t),g=f?VB:BB(e),m=h?VB:BB(t);if(a=(g=g==UB?GB:g)==GB,s=(m=m==UB?GB:m)==GB,(l=g==m)&&HB(e)){if(!HB(t))return!1;f=!0,a=!1}return l&&!a?(i||(i=new AB),f||WB(e)?RB(e,t,n,r,o,i):MB(e,t,g,n,r,o,i)):1&n||(c=a&&qB.call(e,"__wrapped__"),u=s&&qB.call(t,"__wrapped__"),!c&&!u)?!!l&&(i||(i=new AB),LB(e,t,n,r,o,i)):(d=c?e.value():e,p=u?t.value():t,i||(i=new AB),o(d,p,n,r,i))},KB=XB,YB=kR,QB=function e(t,n,r,o,i){return t===n||(null==t||null==n||!YB(t)&&!YB(n)?t!=t&&n!=n:KB(t,n,r,o,e,i))},JB=function(e,t){return QB(e,t)},ZB=h6(Zb.useLayoutEffect);const m6=f6?ZB:g6;ez=function(e){return e||"layoutkit"},tz=function(e,t){if(t)return"row";switch(e){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},nz=function(e){if(e)return["space-between","space-around","space-evenly"].includes(e)},rz=function(e,t){return"row"===tz(e,t)},oz=function(e){return"number"==typeof e?"".concat(e,"px"):e},az=["visible","flex","gap","direction","horizontal","align","justify","distribution","height","width","padding","paddingInline","paddingBlock","as","internalClassName","className","children"],sz=function(e){return Zb.forwardRef((function(t,n){return Zb.createElement(e,gh(gh({},t),{},{ref:n}))}))};const b6=Zb.forwardRef((function(e,t){var n=e.visible,r=e.flex,o=e.gap,i=e.direction,a=e.horizontal,s=e.align,l=e.justify,c=e.distribution,u=e.height,d=e.width,p=e.padding,f=e.paddingInline,h=e.paddingBlock,g=e.as,m=e.internalClassName,b=e.className,y=e.children,v=Di(e,az),w=l||c,x=Zb.useMemo((function(){return rz(i,a)&&!d&&nz(w)?"100%":oz(d)}),[i,a,w,d]),k=Zb.useMemo((function(){return sz(g||"div")}),[g]);return ay.jsx(k,gh(gh({ref:t},v),{},{className:bE(m,yE(iz||(iz=Oi(["\n // 是否显示\n display: ",";\n\n flex: ",";\n\n flex-direction: ",";\n justify-content: ",";\n align-items: ",";\n\n width: ",";\n height: ",";\n\n padding: ",";\n\n padding-inline: ",";\n padding-block: ",";\n\n gap: ",";\n "])),!1===n?"none":"flex",r,tz(i,a),w,s,x,oz(u),oz(p),oz(f),oz(h),oz(o)),b),children:y}))}));lz=["children","className","prefixCls"];const y6=Zb.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.prefixCls,i=Di(e,lz);return ay.jsx(b6,bh(bh({ref:t,internalClassName:"".concat(ez(o),"-center"),className:r},i),{},{align:"center",justify:"center",children:n}))}));cz=["className","prefixCls","children"],uz=Zb.forwardRef((function(e,t){var n=e.className,r=e.prefixCls,o=e.children,i=Di(e,cz);return ay.jsx(b6,vh(vh({ref:t},i),{},{internalClassName:"".concat(ez(r),"-flexbox"),className:n,children:o}))})),mz=uF((function(e,t){var n=e.token,r=e.css,o=e.stylish,i=e.prefixCls;return{container:r(dz||(dz=Oi(["\n cursor: pointer;\n width: ","px;\n height: ","px;\n border-radius: ","px;\n "])),n.controlHeight,n.controlHeight,n.borderRadius),drawer:r(pz||(pz=Oi(["\n &.","-drawer-content {\n background: transparent;\n }\n\n .","-drawer-body {\n display: flex;\n flex-direction: column;\n }\n "])),i,i),drawerRoot:r(fz||(fz=Oi(["\n top: ","px;\n\n :focus-visible {\n outline: none;\n }\n\n .","-drawer {\n &-mask {\n ",";\n background-color: ",";\n }\n\n &-content-wrapper {\n box-shadow: none;\n }\n }\n "])),t+1,i,o.blur,Kf(n.colorBgLayout,.5)),fillRect:r(hz||(hz=Oi(["\n flex: 1;\n width: 100%;\n border-top: none;\n "]))),menu:r(gz||(gz=Oi(["\n background: transparent;\n border-inline-end: transparent !important;\n\n > .","-menu-item-only-child, .","-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 .","-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .","-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .","-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 .","-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 .","-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .","-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 "])),i,i,n.colorText,n.colorFill,i,i,n.colorText,i,n.colorFillSecondary,i,n.borderRadius,n.colorText,n.colorFillSecondary,i,n.colorFillSecondary,n.borderRadius,i,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),bz=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];const v6=Zb.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,i=e.setOpened,a=e.className,s=e.headerHeight,l=void 0===s?64:s,c=Di(e,bz),u=mz(l),d=u.styles;return ay.jsxs(y6,xh(xh({className:(0,u.cx)(d.container,a),onClick:function(){i(!o)}},c),{},{children:[ay.jsx(n6,{icon:o?hY:rY,size:"site"}),ay.jsxs(p4,{className:d.drawer,closeIcon:void 0,open:o,placement:"left",rootClassName:d.drawerRoot,styles:{body:{padding:0},header:{display:"none"}},width:"100vw",children:[ay.jsx(p2,{className:d.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),ay.jsx("div",{className:d.fillRect})]})]}))}));yz=["icon","children","size"],xz=uF((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(vz||(vz=Oi(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(wz||(wz=Oi(["\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),r.colorTextSecondary,r.colorFillSecondary,r.borderRadius,r.colorText,r.colorFill))}}));const w6=Zb.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,i=Di(e,yz),a=xz(),s=a.styles;return ay.jsx(U3,Sh(Sh({bordered:!1,className:(0,a.cx)(s.tag,"small"===o&&s.small)},i),{},{children:ay.jsxs(uz,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}));kz={exports:{}},Sz={},Cz=Zb,Ez="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Dz=Cz.useState,Oz=Cz.useEffect,_z=Cz.useLayoutEffect,$z=Cz.useDebugValue,jz="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=Dz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return _z((function(){o.value=n,o.getSnapshot=t,Ch(o)&&i({inst:o})}),[e,n,t]),Oz((function(){return Ch(o)&&i({inst:o}),e((function(){Ch(o)&&i({inst:o})}))}),[e]),$z(n),n},Sz.useSyncExternalStore=void 0!==Cz.useSyncExternalStore?Cz.useSyncExternalStore:jz,kz.exports=Sz,Nz=kz.exports,Pz={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"]}},Iz=["children","title","className","wrapClassName","width","onCancel","open","destroyOnClose"],Az=uF((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{content:t(Tz||(Tz=Oi(["\n .","-modal-body {\n overflow: hidden;\n padding: 0 16px 16px;\n }\n .","-modal-footer {\n padding: 0 16px 16px;\n }\n .","-modal-header {\n display: flex;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n margin-bottom: 0;\n padding: 16px;\n }\n .","-modal-content {\n overflow: hidden;\n padding: 0;\n border: 1px solid ",";\n border-radius: ","px;\n }\n "])),r,r,r,r,n.colorSplit,n.borderRadiusLG),wrap:t(Fz||(Fz=Oi(["\n overflow-x: hidden;\n overflow-y: auto;\n backdrop-filter: blur(2px);\n "])))}}));const x6=Zb.memo((function(e){var t=e.children,n=e.title,r=e.className,o=e.wrapClassName,i=e.width,a=void 0===i?700:i,s=e.onCancel,l=e.open,c=e.destroyOnClose,u=Di(e,Iz),d=qT().mobile,p=Az(),f=p.styles,h=p.cx,g=p.theme;return d?ay.jsx(p4,{closeIcon:ay.jsx(n6,{icon:hY,size:{blockSize:32,fontSize:20}}),destroyOnClose:c,drawerStyle:{background:"linear-gradient(to bottom, ".concat(g.colorBgContainer,", ").concat(g.colorBgLayout,")")},height:"75vh",maskClassName:h(f.wrap,o),onClose:s,open:l,placement:"bottom",styles:Dh({body:{padding:0},header:{padding:"8px 4px"}},u.styles),title:n,children:t}):ay.jsx(DQ,{theme:{token:{colorBgElevated:tR(.005,g.colorBgContainer)}},children:ay.jsx(i3,Dh(Dh({className:h(f.content,r),closable:!0,closeIcon:ay.jsx(Z3,{icon:hY,size:{fontSize:20}}),destroyOnClose:c,maskClosable:!0,onCancel:s,open:l,title:n,width:a,wrapClassName:h(f.wrap,o)},u),{},{children:t}))})}));Rz=globalThis&&globalThis.__extends||(HX=function(e,t){return(HX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}HX(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Mz=globalThis&&globalThis.__assign||function(){return Mz=Object.assign||function(e){var t,n,r,o;for(n=1,r=arguments.length;n<r;n++)for(o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mz.apply(this,arguments)},Bz={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},zz={width:"20px",height:"20px",position:"absolute"},Hz={top:Mz(Mz({},Lz={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"}),{top:"-5px"}),right:Mz(Mz({},Bz),{left:void 0,right:"-5px"}),bottom:Mz(Mz({},Lz),{top:void 0,bottom:"-5px"}),left:Mz(Mz({},Bz),{left:"-5px"}),topRight:Mz(Mz({},zz),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Mz(Mz({},zz),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Mz(Mz({},zz),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Mz(Mz({},zz),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Wz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Rz(t,e),t.prototype.render=function(){return Zb.createElement("div",{className:this.props.className||"",style:Mz(Mz({position:"absolute",userSelect:"none"},Hz[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Zb.PureComponent),Uz=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vz=globalThis&&globalThis.__assign||function(){return Vz=Object.assign||function(e){var t,n,r,o;for(n=1,r=arguments.length;n<r;n++)for(o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vz.apply(this,arguments)},Gz={width:"auto",height:"auto"},qz=function(e,t,n){return Math.max(Math.min(e,n),t)},Xz=function(e,t){return Math.round(e/t)*t},Kz=function(e,t){return new RegExp(e,"i").test(t)},Yz=function(e){return Boolean(e.touches&&e.touches.length)},Qz=function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))},Jz=function(e,t,n){var r,o;return void 0===n&&(n=0),r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e),0===n||o<n?t[r]:e},Zz=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},eH=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},tH=function(e,t,n,r,o,i,a){return r=eH(r,e.width,t,n),o=eH(o,e.height,t,n),i=eH(i,e.width,t,n),a=eH(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}},nH=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],rH="__resizable_base__",oH=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){var e,t;return n.resizable&&n.window&&(e=n.parentNode)?((t=n.window.document.createElement("div")).style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(rH):t.className+=rH,e.appendChild(t),t):null},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Uz(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Gz},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e,t,n,r=0,o=0;return this.resizable&&this.window&&(e=this.resizable.offsetWidth,t=this.resizable.offsetHeight,"relative"!==(n=this.resizable.style.position)&&(this.resizable.style.position="relative"),r="auto"!==this.resizable.style.width?this.resizable.offsetWidth:e,o="auto"!==this.resizable.style.height?this.resizable.offsetHeight:t,this.resizable.style.position=n),{width:r,height:o}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){var n;return void 0===e.state[t]||"auto"===e.state[t]?"auto":e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")?e.state[t].toString().endsWith("%")?e.state[t].toString():(n=e.getParentSize(),Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"):Zz(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Zz(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Zz(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){var e,t,n,r;return this.parentNode?(e=this.appendBase())?(t=!1,"wrap"!==(n=this.parentNode.style.flexWrap)&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%",r={width:e.offsetWidth,height:e.offsetHeight},t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r):{width:0,height:0}:this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0}},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o,i=this.props.boundsByDirection,a=this.state.direction,s=i&&Kz("left",a),l=i&&Kz("top",a);return"parent"===this.props.bounds?(o=this.parentNode)&&(n=s?this.resizableRight-this.parentLeft:o.offsetWidth+(this.parentLeft-this.resizableLeft),r=l?this.resizableBottom-this.parentTop:o.offsetHeight+(this.parentTop-this.resizableTop)):"window"===this.props.bounds?this.window&&(n=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop)),n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,c=a.width,u=a.height,d=s.lockAspectRatioExtraHeight||0,p=s.lockAspectRatioExtraWidth||0;return Kz("right",i)&&(c=a.width+(e-a.x)*r/n,l&&(u=(c-p)/this.ratio+d)),Kz("left",i)&&(c=a.width-(e-a.x)*r/n,l&&(u=(c-p)/this.ratio+d)),Kz("bottom",i)&&(u=a.height+(t-a.y)*r/n,l&&(c=(u-d)*this.ratio+p)),Kz("top",i)&&(u=a.height-(t-a.y)*r/n,l&&(c=(u-d)*this.ratio+p)),{newWidth:c,newHeight:u}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o,i,a,s,l,c,u,d=this.props,p=void 0===r.width?10:r.width,f=void 0===n.width||n.width<0?e:n.width,h=void 0===r.height?10:r.height,g=void 0===n.height||n.height<0?t:n.height,m=d.lockAspectRatioExtraHeight||0,b=d.lockAspectRatioExtraWidth||0;return d.lockAspectRatio?(o=(g-m)*this.ratio+b,i=(p-b)/this.ratio+m,a=(f-b)/this.ratio+m,s=Math.max(p,(h-m)*this.ratio+b),l=Math.min(f,o),c=Math.max(h,i),u=Math.min(g,a),e=qz(e,s,l),t=qz(t,c,u)):(e=qz(e,p,f),t=qz(t,h,g)),{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){var e,t,n,r,o,i,a;"parent"===this.props.bounds&&(e=this.parentNode)&&(t=e.getBoundingClientRect(),this.parentLeft=t.left,this.parentTop=t.top),this.props.bounds&&"string"!=typeof this.props.bounds&&(n=this.props.bounds.getBoundingClientRect(),this.targetLeft=n.left,this.targetTop=n.top),this.resizable&&(o=(r=this.resizable.getBoundingClientRect()).top,i=r.right,a=r.bottom,this.resizableLeft=r.left,this.resizableRight=i,this.resizableTop=o,this.resizableBottom=a)},t.prototype.onResizeStart=function(e,t){var n,r,o,i,a,s,l;this.resizable&&this.window&&(n=0,r=0,e.nativeEvent&&Qz(e.nativeEvent)?(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&Yz(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable&&!1===this.props.onResizeStart(e,t,this.resizable)||(this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height,"auto"!==(i=this.window.getComputedStyle(this.resizable)).flexBasis&&(a=this.parentNode)&&(s=this.window.getComputedStyle(a).flexDirection,this.flexDir=s.startsWith("row")?"row":"column",o=i.flexBasis),this.setBoundingClientRect(),this.bindEvents(),l={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Vz(Vz({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o},this.setState(l)))},t.prototype.onMouseMove=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&Yz(e))try{e.preventDefault(),e.stopPropagation()}catch(GX){}n=(t=this.props).maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=Yz(e)?e.touches[0].clientX:e.clientX,s=Yz(e)?e.touches[0].clientY:e.clientY,c=(l=this.state).direction,u=l.original,d=l.width,p=l.height,f=this.getParentSize(),n=(h=tH(f,this.window.innerWidth,this.window.innerHeight,n,r,o,i)).maxWidth,r=h.maxHeight,o=h.minWidth,i=h.minHeight,m=(g=this.calculateNewSizeFromDirection(a,s)).newHeight,b=g.newWidth,y=this.calculateNewMaxFromBoundary(n,r),this.props.snap&&this.props.snap.x&&(b=Jz(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(m=Jz(m,this.props.snap.y,this.props.snapGap)),b=(v=this.calculateNewSizeFromAspectRatio(b,m,{width:y.maxWidth,height:y.maxHeight},{width:o,height:i})).newWidth,m=v.newHeight,this.props.grid&&(w=Xz(b,this.props.grid[0]),x=Xz(m,this.props.grid[1]),b=0===(k=this.props.snapGap||0)||Math.abs(w-b)<=k?w:b,m=0===k||Math.abs(x-m)<=k?x:m),S={width:b-u.width,height:m-u.height},d&&"string"==typeof d&&(d.endsWith("%")?b=b/f.width*100+"%":d.endsWith("vw")?b=b/this.window.innerWidth*100+"vw":d.endsWith("vh")&&(b=b/this.window.innerHeight*100+"vh")),p&&"string"==typeof p&&(p.endsWith("%")?m=m/f.height*100+"%":p.endsWith("vw")?m=m/this.window.innerWidth*100+"vw":p.endsWith("vh")&&(m=m/this.window.innerHeight*100+"vh")),C={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(m,"height")},"row"===this.flexDir?C.flexBasis=C.width:"column"===this.flexDir&&(C.flexBasis=C.height),fS.flushSync((function(){E.setState(C)})),this.props.onResize&&this.props.onResize(e,c,this.resizable,S)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.original;t.isResizing&&this.resizable&&(this.props.onResizeStop&&this.props.onResizeStop(e,t.direction,this.resizable,{width:this.size.width-n.width,height:this.size.height-n.height}),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Vz(Vz({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e,t=this,n=this.props,r=n.enable,o=n.handleStyles,i=n.handleClasses,a=n.handleWrapperStyle,s=n.handleWrapperClass,l=n.handleComponent;return r?(e=Object.keys(r).map((function(e){return!1!==r[e]?Zb.createElement(Wz,{key:e,direction:e,onResizeStart:t.onResizeStart,replaceStyles:o&&o[e],className:i&&i[e]},l&&l[e]?l[e]:null):null})),Zb.createElement("div",{className:s,style:a},e)):null},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==nH.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=Vz(Vz(Vz({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});return this.state.flexBasis&&(n.flexBasis=this.state.flexBasis),Zb.createElement(this.props.as||"div",Vz({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Zb.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(Zb.PureComponent),EH=16,DH="draggable-panel",OH=uF((function(e,t){var n=e.token,r=pF(iH||(iH=Oi(["\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n z-index: 50;\n transition: all 0.2s ",";\n }\n\n &:hover,\n &:active {\n &::before {\n background: "," !important;\n }\n }\n "])),n.motionEaseOut,n.colorPrimary),o=pF(aH||(aH=Oi(["\n position: absolute;\n z-index: 101;\n opacity: 0;\n transition: all 0.2s ",";\n\n &:hover {\n opacity: 1 !important;\n }\n\n &:active {\n opacity: 1 !important;\n }\n\n > 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 "])),n.motionEaseOut,n.colorTextTertiary,n.colorFillTertiary,n.colorBorderSecondary,n.motionEaseOut,n.colorTextSecondary,n.colorFillSecondary,n.colorText,n.colorFill),i=pF(sH||(sH=Oi(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:fF(i,pF(lH||(lH=Oi(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:fF("".concat(DH,"-bottom-handle"),pF(cH||(cH=Oi(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:fF(DH,pF(uH||(uH=Oi(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,DH)),fixed:pF(dH||(dH=Oi(["\n position: relative;\n "]))),fullscreen:pF(pH||(pH=Oi(["\n position: absolute;\n inset: ","px 0 0 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),t,t,n.colorBgLayout),handlerIcon:pF(fH||(fH=Oi(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:fF(i,pF(hH||(hH=Oi(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:fF(pF(gH||(gH=Oi(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(DH,"-left-handle")),panel:fF("".concat(DH,"-fixed"),pF(mH||(mH=Oi(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:fF(i,pF(bH||(bH=Oi(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:fF(pF(yH||(yH=Oi(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(DH,"-right-handle")),toggleBottom:fF("".concat(DH,"-toggle"),"".concat(DH,"-toggle-bottom"),o,pF(vH||(vH=Oi(["\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,EH,40)),toggleLeft:fF("".concat(DH,"-toggle"),"".concat(DH,"-toggle-left"),o,pF(wH||(wH=Oi(["\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,EH,EH,40)),toggleRight:fF("".concat(DH,"-toggle"),"".concat(DH,"-toggle-right"),o,pF(xH||(xH=Oi(["\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,EH,EH,40)),toggleTop:fF("".concat(DH,"-toggle"),"".concat(DH,"-toggle-top"),o,pF(kH||(kH=Oi(["\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,EH,40,EH)),topFloat:fF(i,pF(SH||(SH=Oi(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:fF("".concat(DH,"-top-handle"),pF(CH||(CH=Oi(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),_H=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};const k6=Zb.memo((function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O=e.headerHeight,_=void 0===O?0:O,$=e.fullscreen,j=e.maxHeight,N=e.pin,P=void 0===N||N,I=e.mode,T=void 0===I?"fixed":I,F=e.children,A=e.placement,R=void 0===A?"right":A,M=e.resize,L=e.style,B=e.size,z=e.defaultSize,H=e.minWidth,W=e.minHeight,U=e.maxWidth,V=e.onSizeChange,G=e.onSizeDragging,q=e.expandable,X=void 0===q||q,K=e.expand,Y=e.defaultExpand,Q=void 0===Y||Y,J=e.onExpandChange,Z=e.className,ee=e.showHandlerWhenUnexpand,te=e.destroyOnClose,ne=e.hanlderStyle,re=e.classNames,oe=void 0===re?{}:re,ie=Zb.useRef(),ae=(b=ie,v=(y={}).onEnter,w=y.onLeave,x=y.onChange,k=rh(function(e){var t,n,r,o;return void 0===e&&(e=!1),t=rh(function(e){var t,n;return void 0===e&&(e=!1),t=rh(Zb.useState(e),2),n=t[1],[t[0],Zb.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],Zb.useMemo((function(){return{toggle:r,set:function(e){return o(!!e)},setTrue:function(){return o(!0)},setFalse:function(){return o(!1)}}}),[])]}(!1),2),S=k[0],E=(C=k[1]).setTrue,D=C.setFalse,ph("mouseenter",(function(){null==v||v(),E(),null==x||x(!0)}),{target:b}),ph("mouseleave",(function(){null==w||w(),D(),null==x||x(!1)}),{target:b}),S),se="top"===R||"bottom"===R,le=OH(_),ce=le.styles,ue=le.cx,de=Wa(pf(Q,{onChange:J,value:K}),2),pe=de[0],fe=de[1];return Zb.useEffect((function(){P||(ae&&!pe?fe(!0):!ae&&pe&&fe(!1))}),[P,ae,pe]),n=(t=Wa(Zb.useState(!0),2))[0],r=t[1],i=(o=Wa(Zb.useState(!1),2))[0],a=o[1],l=Zb.useMemo((function(){return s?Ei({},_H(R),ce["".concat(_H(R),"Handle")]):{}}),[s=!1!==M&&pe,R]),c=_h(Ei({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},_H(R),!0),M),u=Zb.useMemo((function(){return _h(se?{height:180,width:"100%"}:{height:"100%",width:280},z)}),[se]),d=pe?{defaultSize:u,maxHeight:"number"==typeof j?Math.max(j,0):j,maxWidth:"number"==typeof U?Math.max(U,0):U,minHeight:"number"==typeof W?Math.max(W,0):W,minWidth:"number"==typeof H?Math.max(H,0):H,size:B}:se?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},f=(p=Zb.useMemo((function(){switch(R){case"top":return{Arrow:qK,className:"Bottom"};case"bottom":return{Arrow:YK,className:"Top"};case"right":return{Arrow:XK,className:"Left"};case"left":return{Arrow:KK,className:"Right"}}}),[ce,R])).Arrow,g=ay.jsx(y6,{className:ue(ce["toggle".concat(h=p.className)],oe.handle),style:{opacity:pe?P?void 0:0:ee?1:0},children:ay.jsx(y6,{onClick:function(){fe(!pe)},style:ne,children:ay.jsx("div",{className:ce.handlerIcon,style:{transform:"rotate(".concat(pe?180:0,"deg)")},children:ay.jsx(f,{size:16,strokeWidth:1.5})})})}),m=ay.jsx(oH,_h(_h({},d),{},{className:ue(ce.panel,oe.content),enable:s?c:void 0,handleClasses:l,onResize:function(e,t,n,r){null==G||G(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){a(!0),r(!1)},onResizeStop:function(e,t,n,o){a(!1),r(!0),null==V||V(o,{height:n.style.height,width:n.style.width})},style:_h({transition:i?"unset":void 0},L),children:F})),$?ay.jsx("div",{className:ue(ce.fullscreen,Z),children:F}):ay.jsxs("aside",{className:ue(ce.container,ce["fixed"===T?"fixed":"".concat(R,"Float")],Z),ref:ie,style:pe?Ei({},"border".concat(h,"Width"),1):{},children:[X&&n&&g,te?pe&&m:m]})}));IH=uF((function(e){var t=e.css,n=e.token;return{body:t($H||($H=Oi(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(jH||(jH=Oi(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(NH||(NH=Oi(["\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(PH||(PH=Oi(["\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)}})),TH=["className","children"];const S6=Zb.memo((function(e){var t=e.className,n=e.children,r=Di(e,TH),o=IH();return ay.jsx("div",jh(jh({className:(0,o.cx)(o.styles.body,t)},r),{},{children:n}))}));FH=["className","children"];const C6=Zb.memo((function(e){var t=e.className,n=e.children,r=Di(e,FH),o=IH();return ay.jsx("div",Ph(Ph({className:(0,o.cx)(o.styles.container,t)},r),{},{children:n}))}));AH=["className","children"];const E6=Zb.memo((function(e){var t=e.className,n=e.children,r=Di(e,AH),o=IH();return ay.jsx("div",Th(Th({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));RH=["pin","setPin","className","setExpand","title","position"];const D6=Zb.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,i=e.title,a=e.position,s=void 0===a?"left":a,l=Di(e,RH),c=IH(),u=c.cx,d=c.styles,p=ay.jsx(n6,{icon:sY,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),f=ay.jsx(n6,{active:t,icon:t?uY:cY,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return ay.jsxs("div",Ah(Ah({className:u(d.header,r)},l),{},{children:["left"===s?p:f,i,"left"===s?f:p]}))}));MH=function e(t,n){var r,o,i,a;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=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;)if(!e(t[a=i[o]],n[a]))return!1;return!0}return t!=t&&n!=n};const O6=t(MH);LH=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t};const _6=Zb.memo((function(e){var t=e.url,n=Zb.useRef(!1);return Zb.useEffect((function(){if(!n.current){n.current=!0;var e=LH(t);document.head.append(e)}}),[]),null}));BH=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,i=void 0===o?[]:o,a=e.style,s=e.className;return AK.createElement("div",{className:wY("".concat(t,"-column"),s),style:a},(r||n)&&AK.createElement("h2",null,n&&AK.createElement("span",{className:"".concat(t,"-column-icon")},n),r),i.map((function(e,n){var r=e.LinkComponent||"a";return AK.createElement("div",{className:wY("".concat(t,"-item"),e.className),style:e.style,key:n},AK.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&&AK.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&AK.createElement(AK.Fragment,null,AK.createElement("span",{className:"".concat(t,"-item-separator")},"-"),AK.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},zH=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],HH=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,i=e.bottom,a=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,d=void 0===u?"dark":u,p=Di(e,zH),f=wY("".concat(n),r,Ei({},"".concat(n,"-").concat(d),!!d)),h="number"==typeof s&&s>0;return AK.createElement("footer",Sa(Sa({},p),{},{className:f,style:Sa(Sa({},o),{},{backgroundColor:l})}),AK.createElement("section",{className:"".concat(n,"-container")},a&&a.length>0&&AK.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:h?"wrap":void 0}},a.map((function(e,t){var r=e.title,o=e.icon,i=e.className,a=e.items,l=void 0===a?[]:a,c=Sa({},e.style);return h&&(c.flex="0 0 ".concat(100/(s+1)+.1,"%")),AK.createElement(BH,{key:t,prefixCls:n,title:r,icon:o,items:l,style:c,className:i})})))),i&&AK.createElement("section",{className:"".concat(n,"-bottom")},AK.createElement("div",{className:"".concat(n,"-bottom-container")},i)))},VH=uF((function(e,t){var n=e.css,r=e.responsive,o=e.token,i=t.isEmpty,a=t.contentMaxWidth,s="rc-footer";return{container:n(WH||(WH=Oi(["\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(UH||(UH=Oi(["\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,a,i?"0":"60px 0 20px",o.colorText,o.colorTextDescription,a,r.mobile,s)}}));const $6=Zb.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,i=VH({contentMaxWidth:void 0===o?960:o,isEmpty:!t||0===(null==t?void 0:t.length)}).styles;return ay.jsx("section",{className:i.container,children:ay.jsx(HH,{bottom:n,className:i.footer,columns:t,theme:r})})}));iW=uF((function(e,t){var n,r=e.css,o=e.cx,i=e.token,a=e.isDarkMode,s=e.responsive,l=e.prefixCls;return{footer:r(GH||(GH=Oi(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(qH||(qH=Oi(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 6px;\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;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .","-tag {\n font-family: ",";\n }\n "])),i.colorTextDescription,l,i.fontFamilyCode),group:o(a&&r(XH||(XH=Oi(["\n .","-collapse-content {\n background: transparent;\n }\n\n .","-collapse-header {\n background: ",";\n }\n "])),l,l,i.colorFillTertiary),r(KH||(KH=Oi(["\n .","-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n .","-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])),l,l,l)),icon:r(YH||(YH=Oi(["\n transition: all 100ms ",";\n "])),i.motionEaseOut),item:r(QH||(QH=Oi(["\n padding: 16px 0;\n\n .","-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n\n .","-form-item-required::before {\n align-self: flex-start;\n }\n\n ","\n\n "," {\n padding: 16px 0;\n\n ","\n }\n "])),l,l,t&&r(JH||(JH=Oi(["\n .","-form-item-control {\n width: ",";\n }\n "])),l,(n=t,"number"==typeof n||Df(n)&&"[object Number]"==Ef(n)?"".concat(t,"px"):t)),s.mobile,t?r(ZH||(ZH=Oi(["\n .","-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .","-form-item-control {\n flex: 1;\n width: 100%;\n }\n "])),l,l):r(eW||(eW=Oi(["\n .","-row {\n flex-wrap: wrap;\n gap: 4px;\n }\n "])),l)),itemNoDivider:r(tW||(tW=Oi(["\n &:not(:first-child) {\n padding-top: 0;\n }\n "]))),mobileGroupBody:r(nW||(nW=Oi(["\n padding: 0 16px;\n background: ",";\n "])),i.colorBgContainer),mobileGroupHeader:r(rW||(rW=Oi(["\n padding: 16px;\n background: ",";\n "])),i.colorBgLayout),title:r(oW||(oW=Oi(["\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 "," {\n font-size: 14px;\n font-weight: 400;\n opacity: 0.5;\n }\n "])),i.colorPrimary,s.mobile)}})),aW=["className","children"];const j6=Zb.memo((function(e){var t=e.className,n=e.children,r=Di(e,aW),o=iW();return ay.jsx("div",Mh(Mh({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));sW=["className","icon","title","children","extra"];const N6=Zb.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,i=e.extra,a=Di(e,sW),s=qT().mobile,l=iW(),c=l.cx,u=l.styles,d=ay.jsxs("div",{className:u.title,children:[n&&ay.jsx(Z3,{icon:n}),r]});return s?ay.jsxs(uz,{className:t,children:[ay.jsxs(uz,{className:u.mobileGroupHeader,horizontal:!0,justify:"space-between",children:[d,i]}),ay.jsx("div",{className:u.mobileGroupBody,children:o})]}):ay.jsx(P5,function(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Lh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}({className:c(u.group,t),defaultActiveKey:[1],expandIcon:function(e){return ay.jsx(Z3,{className:u.icon,icon:qK,size:{fontSize:16},style:e.isActive?{}:{rotate:"-90deg"}})},items:[{children:o,extra:i,key:1,label:d}]},a),1)}));lW=["style"];const P6=Zb.memo((function(e){var t=e.style,n=Di(e,lW);return ay.jsx(F5,zh({style:zh({margin:0,opacity:.5},t)},n))})),I6=Zb.memo((function(e){var t=e.className,n=e.tag,r=e.title,o=e.desc,i=e.avatar,a=iW(),s=ay.jsxs("div",{className:(0,a.cx)(a.styles.formTitle,t),children:[ay.jsxs(uz,{align:"center",direction:"horizontal",gap:8,children:[r,n&&ay.jsx(w6,{children:n})]}),o&&ay.jsx("small",{children:o})]});return i?ay.jsxs(uz,{align:"center",gap:8,horizontal:!0,children:[i,s]}):s}));cW=["desc","tag","minWidth","avatar","className","label","children","divider"],uW=X4.Item;const T6=Zb.memo((function(e){var t=e.desc,n=e.tag,r=e.minWidth,o=e.avatar,i=e.className,a=e.label,s=e.children,l=e.divider,c=Di(e,cW),u=iW(r),d=u.cx,p=u.styles;return ay.jsxs(ay.Fragment,{children:[l&&ay.jsx(P6,{}),ay.jsx(uW,Wh(Wh({className:d(p.item,!l&&p.itemNoDivider,i),label:ay.jsx(I6,{avatar:o,desc:t,tag:n,title:a})},c),{},{children:s}))]})}));fW=uF((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=e.responsive;return{footer:t(dW||(dW=Oi(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),form:t(pW||(pW=Oi(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n "," {\n gap: 0;\n }\n\n .","-form-item {\n margin: 0 !important;\n }\n\n .","-form-item .","-form-item-label > label {\n height: unset;\n }\n\n .","-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .","-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .","-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .","-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),o.mobile,r,r,r,r,r,r,r,n.borderRadius)}})),hW=["className","itemMinWidth","footer","form","items","children"],(gW=Zb.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,i=e.form,a=e.items,s=e.children,l=Di(e,hW),c=fW();return ay.jsxs(X4,Vh(Vh({className:(0,c.cx)(c.styles.form,n),colon:!1,form:i,layout:"horizontal",ref:t},l),{},{children:[null==a?void 0:a.map((function(e,t){return ay.jsx(N6,{extra:null==e?void 0:e.extra,icon:null==e?void 0:e.icon,title:e.title,children:e.children.filter((function(e){return!e.hidden})).map((function(e,t){return ay.jsx(T6,Vh({divider:0!==t,minWidth:r},e),t)}))},t)})),s,o&&ay.jsx(j6,{children:o})]}))}))).Item=T6,gW.Group=N6;const F6=gW;mW={};const A6=ay,R6=Zb;yW=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:i,mapping:a,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:d,theme:p,lang:f,loading:h}){const[g,m]=R6.useState(!1);return R6.useEffect((()=>{g||(Promise.resolve().then((()=>(bW||(bW=1,function(t){function n(e,t,r=e,o){var i,a,s,l;if(t===Y)return t;let c=void 0!==o?null===(i=r._$Co)||void 0===i?void 0:i[o]:r._$Cl;const u=L(t)?void 0:t._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.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&&(t=n(e,c._$AS(e,t.values),c,o)),t}function r(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):pe(e,t)}function i(e){void 0!==this._$AN?(ge(this),this._$AM=e,me(this)):this._$AM=e}function a(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 i=n;i<r.length;i++)he(r[i],!1),ge(r[i]);else null!=r&&(he(r,!1),ge(r));else he(this,e)}var s,l,c,u,d,p,f;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const h=window,m=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,b=Symbol(),y=new WeakMap;let v=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(m&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=y.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&y.set(t,e))}return e}toString(){return this.cssText}};const w=m?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new v("string"==typeof e?e:e+"",void 0,b))(t)})(e):e,x=window,k=x.trustedTypes,S=k?k.emptyScript:"",C=x.reactiveElementPolyfillSupport,E={toAttribute(e,t){switch(t){case Boolean:e=e?S: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}},D=(e,t)=>t!==e&&(t==t||e==e),O={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:D},_="finalized";let $=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=O){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)||O}static finalize(){if(this.hasOwnProperty(_))return!1;this[_]=!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(w(e))}else void 0!==e&&t.push(w(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)=>{m?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=h.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=O){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:E).toAttribute(t,n.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),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),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:E;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||D)(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 n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),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(n)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(n)}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){}};$[_]=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:$}),(null!==(s=x.reactiveElementVersions)&&void 0!==s?s:x.reactiveElementVersions=[]).push("1.6.2");const j=window,N=j.trustedTypes,P=N?N.createPolicy("lit-html",{createHTML:e=>e}):void 0,I="$lit$",T=`lit$${(Math.random()+"").slice(9)}$`,F="?"+T,A=`<${F}>`,R=document,M=()=>R.createComment(""),L=e=>null===e||"object"!=typeof e&&"function"!=typeof e,B=Array.isArray,z="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,U=/>/g,V=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,q=/"/g,X=/^(?:script|style|textarea|title)$/i,K=(e,...t)=>({_$litType$:1,strings:e,values:t}),Y=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),J=new WeakMap,Z=R.createTreeWalker(R,129,null,!1);class ee{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"<svg>":"",a=H;for(let l=0;l<n;l++){const t=e[l];let n,s,c=-1,u=0;for(;u<t.length&&(a.lastIndex=u,s=a.exec(t),null!==s);)u=a.lastIndex,a===H?"!--"===s[1]?a=W:void 0!==s[1]?a=U:void 0!==s[2]?(X.test(s[2])&&(o=RegExp("</"+s[2],"g")),a=V):void 0!==s[3]&&(a=V):a===V?">"===s[0]?(a=o??H,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?V:'"'===s[3]?q:G):a===q||a===G?a=V:a===W||a===U?a=H:(a=V,o=void 0);const d=a===V&&e[l+1].startsWith("/>")?" ":"";i+=a===H?t+A:c>=0?(r.push(n),t.slice(0,c)+I+t.slice(c)+T+d):t+T+(-2===c?(r.push(void 0),l):d)}const s=i+(e[n]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==P?P.createHTML(s):s,r]})(e,t);if(this.el=ee.createElement(l,n),Z.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Z.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const e=[];for(const t of r.getAttributeNames())if(t.endsWith(I)||t.startsWith(T)){const n=c[i++];if(e.push(t),void 0!==n){const e=r.getAttribute(n.toLowerCase()+I).split(T),t=/([.?@])?(.*)/.exec(n);s.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?oe:"?"===t[1]?ae:"@"===t[1]?se:re})}else s.push({type:6,index:o})}for(const t of e)r.removeAttribute(t)}if(X.test(r.tagName)){const e=r.textContent.split(T),t=e.length-1;if(t>0){r.textContent=N?N.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],M()),Z.nextNode(),s.push({type:2,index:++o});r.append(e[t],M())}}}else if(8===r.nodeType)if(r.data===F)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=r.data.indexOf(T,e+1));)s.push({type:7,index:o}),e+=T.length-1}o++}}static createElement(e,t){const n=R.createElement("template");return n.innerHTML=e,n}}let te=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:R).importNode(n,!0);Z.currentNode=o;let i=Z.nextNode(),a=0,s=0,l=r[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new ne(i,i.nextSibling,this,e):1===l.type?t=new l.ctor(i,l.name,l.strings,this,e):6===l.type&&(t=new le(i,this,e)),this._$AV.push(t),l=r[++s]}a!==(null==l?void 0:l.index)&&(i=Z.nextNode(),a++)}return Z.currentNode=R,o}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}};class ne{constructor(e,t,n,r){var o;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=n(this,e,t),L(e)?e===Q||null==e||""===e?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==Y&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>B(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Q&&L(this._$AH)?this._$AA.nextSibling.data=e:this.$(R.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=ee.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{const e=new te(o,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=J.get(e.strings);return void 0===t&&J.set(e.strings,t=new ee(e)),t}T(e){B(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 ne(this.k(M()),this.k(M()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class re{constructor(e,t,n,r,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const i=this.strings;let a=!1;if(void 0===i)e=n(this,e,t,0),a=!L(e)||e!==this._$AH&&e!==Y,a&&(this._$AH=e);else{const o=e;let s,l;for(e=i[0],s=0;s<i.length-1;s++)l=n(this,o[r+s],t,s),l===Y&&(l=this._$AH[s]),a||(a=!L(l)||l!==this._$AH[s]),l===Q?e=Q:e!==Q&&(e+=(l??"")+i[s+1]),this._$AH[s]=l}a&&!o&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class oe extends re{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}}const ie=N?N.emptyScript:"";class ae extends re{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Q?this.element.setAttribute(this.name,ie):this.element.removeAttribute(this.name)}}class se extends re{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){var r;if((e=null!==(r=n(this,e,t,0))&&void 0!==r?r:Q)===Y)return;const o=this._$AH,i=e===Q&&o!==Q||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==Q&&(o===Q||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}class le{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){n(this,e)}}const ce=j.litHtmlPolyfillSupport;null==ce||ce(ee,ne),(null!==(l=j.litHtmlVersions)&&void 0!==l?l:j.litHtmlVersions=[]).push("2.7.4");let ue=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,n)=>{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let a=i._$litPart$;if(void 0===a){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new ne(t.insertBefore(M(),e),e,void 0,n??{})}return a._$AI(e),a})(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 Y}};ue.finalized=!0,ue._$litElement$=!0,null===(c=globalThis.litElementHydrateSupport)||void 0===c||c.call(globalThis,{LitElement:ue});const de=globalThis.litElementPolyfillSupport;null==de||de({LitElement:ue}),(null!==(u=globalThis.litElementVersions)&&void 0!==u?u:globalThis.litElementVersions=[]).push("3.3.2");const pe=(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;let fe=class{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 he=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const i of o)null===(r=(n=i)._$AO)||void 0===r||r.call(n,t,!1),he(i,t);return!0},ge=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),be(t)}},be=e=>{var t,n,r,o;2==e.type&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=a),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=i))};class ye extends fe{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&&(he(this,e),ge(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 ve{}const we=new WeakMap,xe=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ye{render(e){return Q}update(e,[t]){var n;const r=t!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),Q}ot(e){var t;if("function"==typeof this.G){const n=null!==(t=this.ct)&&void 0!==t?t:globalThis;let r=we.get(n);void 0===r&&(r=new WeakMap,we.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,n;return"function"==typeof this.G?null===(t=we.get(null!==(e=this.ct)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?p(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&d(t,n,i),i},t.GiscusWidget=class extends ue{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 ve,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}get _host(){try{return new URL(this.host),this.host}catch{return this.GISCUS_DEFAULT_HOST}}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const t=location.href,n=new URL(t),r=localStorage.getItem(this.GISCUS_SESSION_KEY),o=n.searchParams.get("giscus")||"";if(this.__session="",o)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(o)),this.__session=o,n.searchParams.delete("giscus"),n.hash="",void history.replaceState(void 0,document.title,n.toString());if(r)try{this.__session=JSON.parse(r)}catch(e){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.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return K`
|
||
<iframe
|
||
title="Comments"
|
||
scrolling="no"
|
||
class="loading"
|
||
${xe(this._iframeRef)}
|
||
src=${this.getIframeSrc()}
|
||
loading=${this.loading}
|
||
allow="clipboard-write"
|
||
part="iframe"
|
||
></iframe>
|
||
`}},t.GiscusWidget.styles=((e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1]),e[0]);return new v(n,e,b)})`
|
||
:host,
|
||
iframe {
|
||
width: 100%;
|
||
border: none;
|
||
min-height: 150px;
|
||
color-scheme: light dark;
|
||
}
|
||
|
||
iframe.loading {
|
||
opacity: 0;
|
||
}
|
||
`,f([r({reflect:!0})],t.GiscusWidget.prototype,"host",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"repo",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"repoId",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"category",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"categoryId",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"mapping",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"term",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"strict",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"reactionsEnabled",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"emitMetadata",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"inputPosition",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"theme",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"lang",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"loading",2),t.GiscusWidget=f([function(e){return customElements.get(e)?e=>e:(e=>t=>{return"function"==typeof t?(n=t,customElements.define(e,n),n):((e,t)=>{const{kind:n,elements:r}=t;return{kind:n,elements:r,finisher(t){customElements.define(e,t)}}})(e,t);var n})(e)}("giscus-widget")],t.GiscusWidget)}(mW)),mW))),m(!0))}),[]),g?A6.jsx("giscus-widget",{id:e,host:t,repo:n,repoid:r,category:o,categoryid:i,mapping:a,term:s,strict:l,reactionsenabled:c,emitmetadata:u,inputposition:d,theme:p,lang:f,loading:h}):null};const M6=t(yW);wW=function(e,t){var n=t?"dark":"light",r=Pz.gray[n][11],o=Pz.gray[n][10],i=Pz.gray[n][7],a=t?Pz.red[n][9]:Pz.volcano[n][9],s=t?Pz.gold[n][9]:Pz.orange[n][9],l=t?Pz.lime[n][9]:Pz.green[n][9],c=t?Pz.blue[n][9]:Pz.geekblue[n][9],u=t?"https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg":"https://github.com/images/modules/pulls/progressive-disclosure-line.svg",d=t?"https://github.githubassets.com/images/mona-loading-dark.gif":"https://github.githubassets.com/images/mona-loading-default.gif";return pF(vW||(vW=Oi(["\n main {\n --color-prettylights-syntax-comment: ",";\n --color-prettylights-syntax-constant: ",";\n --color-prettylights-syntax-entity: ",";\n --color-prettylights-syntax-storage-modifier-import: ",";\n --color-prettylights-syntax-entity-tag: ",";\n --color-prettylights-syntax-keyword: ",";\n --color-prettylights-syntax-string: ",";\n --color-prettylights-syntax-variable: ",";\n --color-prettylights-syntax-brackethighlighter-unmatched: ",";\n --color-prettylights-syntax-invalid-illegal-text: ",";\n --color-prettylights-syntax-invalid-illegal-bg: ",";\n --color-prettylights-syntax-carriage-return-text: ",";\n --color-prettylights-syntax-carriage-return-bg: ",";\n --color-prettylights-syntax-string-regexp: ",";\n --color-prettylights-syntax-markup-list: ",";\n --color-prettylights-syntax-markup-heading: ",";\n --color-prettylights-syntax-markup-italic: ",";\n --color-prettylights-syntax-markup-bold: ",";\n --color-prettylights-syntax-markup-deleted-text: ",";\n --color-prettylights-syntax-markup-deleted-bg: ",";\n --color-prettylights-syntax-markup-inserted-text: ",";\n --color-prettylights-syntax-markup-inserted-bg: ",";\n --color-prettylights-syntax-markup-changed-text: ",";\n --color-prettylights-syntax-markup-changed-bg: ",";\n --color-prettylights-syntax-markup-ignored-text: ",";\n --color-prettylights-syntax-markup-ignored-bg: ",";\n --color-prettylights-syntax-meta-diff-range: ",";\n --color-prettylights-syntax-brackethighlighter-angle: ",";\n --color-prettylights-syntax-sublimelinter-gutter-mark: ",";\n --color-prettylights-syntax-constant-other-reference-link: ",";\n --color-btn-text: ",";\n --color-btn-bg: ",";\n --color-btn-border: ",";\n --color-btn-shadow: 0 0 transparent;\n --color-btn-inset-shadow: 0 0 transparent;\n --color-btn-hover-bg: ",";\n --color-btn-hover-border: ",";\n --color-btn-active-bg: ",";\n --color-btn-active-border: ",";\n --color-btn-selected-bg: ",";\n --color-btn-primary-text: ",";\n --color-btn-primary-bg: ",";\n --color-btn-primary-border: ",";\n --color-btn-primary-shadow: 0 0 transparent;\n --color-btn-primary-inset-shadow: 0 0 transparent;\n --color-btn-primary-hover-bg: ",";\n --color-btn-primary-hover-border: ",";\n --color-btn-primary-selected-bg: ",";\n --color-btn-primary-selected-shadow: 0 0 transparent;\n --color-btn-primary-disabled-text: ",";\n --color-btn-primary-disabled-bg: ",";\n --color-btn-primary-disabled-border: ",";\n --color-action-list-item-default-hover-bg: ",";\n --color-segmented-control-bg: ",";\n --color-segmented-control-button-bg: transparent;\n --color-segmented-control-button-selected-border: ",";\n --color-fg-default: ",";\n --color-fg-muted: ",";\n --color-fg-subtle: ",";\n --color-canvas-default: transparent;\n --color-canvas-overlay: ",";\n --color-canvas-inset: transparent;\n --color-canvas-subtle: ",";\n --color-border-default: ",";\n --color-border-muted: ",";\n --color-neutral-muted: ",";\n --color-neutral-subtle: ",";\n --color-accent-fg: ",";\n --color-accent-emphasis: ",";\n --color-accent-muted: ",";\n --color-accent-subtle: ",";\n --color-success-fg: ",";\n --color-attention-fg: ",";\n --color-attention-muted: ",";\n --color-attention-subtle: ",";\n --color-danger-fg: ",";\n --color-danger-muted: ",";\n --color-danger-subtle: ",";\n --color-primer-shadow-inset: 0 0 transparent;\n --color-scale-gray-7: ",";\n --color-scale-blue-8: ",";\n --color-social-reaction-bg-hover: ",";\n --color-social-reaction-bg-reacted-hover: ",";\n\n .markdown pre {\n color: ",";\n }\n\n .pagination-loader-container {\n background-image: url(",");\n }\n\n .gsc-pagination-button {\n background-color: var(--color-btn-bg);\n }\n\n .gsc-reactions-popover {\n width: 170px;\n\n > .m-2 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n }\n\n .gsc-emoji-button.has-reacted {\n border-color: ",";\n border-radius: ","px;\n }\n\n .gsc-loading-image {\n background-image: url(",");\n }\n }\n "])),i,l,s,a,c,c,l,a,a,o,Kf(a,.4),o,Kf(a,.6),l,s,c,o,o,o,Kf(a,.2),l,Kf(l,.2),s,Kf(a,.2),o,Kf(c,.2),s,o,i,c,e.colorText,e.colorFillTertiary,e.colorBorderSecondary,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,nh(e.colorPrimary),e.colorPrimary,e.colorPrimaryBorder,e.colorPrimaryHover,e.colorPrimaryBorderHover,e.colorPrimaryActive,Kf(nh(e.colorPrimary),.5),Kf(e.colorPrimary,.5),Kf(e.colorPrimaryBorder,.5),e.colorFillQuaternary,e.colorFillTertiary,e.colorBorder,e.colorText,e.colorTextSecondary,e.colorTextQuaternary,e.colorBgElevated,e.colorFillQuaternary,e.colorBorder,e.colorBorderSecondary,e.colorFillQuaternary,e.colorFillTertiary,e.colorInfo,e.colorInfoBorderHover,e.colorInfoBorder,e.colorInfoBg,e.colorSuccess,e.colorWarning,e.colorWarningBorder,e.colorWarningBg,e.colorError,e.colorErrorBorder,e.colorErrorBg,e.colorBgContainer,e.colorInfoBg,e.colorFillSecondary,e.colorInfoBgHover,r,u,e.colorInfoBorderHover,e.borderRadius,d)},xW=function(e){return["zh_CN","zh_TW"].includes(e)?e.replace("_","-"):"zh_HK"===e?"zh-TW":e.split("_")[0]},kW=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"];const L6=Zb.memo((function(e){var t=e.style,n=e.className,r=e.reactionsEnabled,o=void 0===r?"1":r,i=e.mapping,a=void 0===i?"title":i,s=e.lang,l=void 0===s?"en_US":s,c=e.inputPosition,u=void 0===c?"top":c,d=e.id,p=void 0===d?"giscus":d,f=e.loading,h=void 0===f?"lazy":f,g=e.emitMetadata,m=void 0===g?"0":g,b=Di(e,kW),y=bF(),v=WT().isDarkMode,w=Zb.useMemo((function(){return btoa(wW(y,v).styles)}),[v,y]);return ay.jsx("div",{className:n,style:t,children:ay.jsx(M6,qh({emitMetadata:m,id:p,inputPosition:u,lang:xW(l),loading:h,mapping:a,reactionsEnabled:o,theme:"data:text/css;base64,".concat(w)},b))})}));EW=uF((function(e,t){var n,r=e.css,o=e.token,i=e.isDarkMode,a=e.stylish;switch(t){case"large":n=o.borderRadiusLG;break;case"middle":default:n=o.borderRadius;break;case"small":n=o.borderRadiusSM}return{button:r(SW||(SW=Oi(["\n position: relative;\n z-index: 1;\n ","\n border: none;\n border-radius: ","px !important;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: -1;\n top: 1px;\n left: 1px;\n\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n\n background: ",";\n border-radius: ","px;\n }\n "])),a.gradientAnimation,n,o.colorBgLayout,n-1),glow:r(CW||(CW=Oi(["\n ","\n position: absolute;\n z-index: -2;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: ",";\n filter: blur(","em);\n border-radius: inherit;\n "])),a.gradientAnimation,i?.5:.3,i?1.5:1)}})),DW=["glow","children","className","size"];const B6=Zb.memo((function(e){var t=e.glow,n=void 0===t||t,r=e.children,o=e.className,i=e.size,a=void 0===i?"large":i,s=Di(e,DW),l=EW(a),c=l.styles;return ay.jsxs(lZ,Kh(Kh({className:(0,l.cx)(c.button,o),size:a},s),{},{children:[n&&ay.jsx("div",{className:c.glow}),r]}))}));NW=uF((function(e){var t=e.css,n=e.responsive,r=e.token,o=e.cx;return{content:t(OW||(OW=Oi(["\n height: 64px;\n padding: 0 24px;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n "," {\n padding: 0 12px;\n }\n "])),Kf(r.colorBgLayout,.4),r.colorSplit,n.mobile),header:o(t(_W||(_W=Oi(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:t($W||($W=Oi(["\n z-index: 10;\n "]))),right:t(jW||(jW=Oi(["\n z-index: 10;\n display: flex;\n flex: 1;\n justify-content: space-between;\n\n &-aside {\n display: flex;\n align-items: center;\n\n "," {\n justify-content: center;\n margin: 8px 16px;\n padding-top: 24px;\n border-top: 1px solid ",";\n }\n }\n "])),n.mobile,r.colorBorder)}})),PW=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"];const z6=Zb.memo((function(e){var t=e.actionsClassName,n=e.navClassName,r=e.logoClassName,o=e.nav,i=e.logo,a=e.actions,s=e.actionsStyle,l=e.logoStyle,c=e.navStyle,u=e.className,d=Di(e,PW),p=qT().mobile,f=NW(),h=f.cx,g=f.styles;return ay.jsx("section",Qh(Qh({className:h(g.header,u)},d),{},{children:ay.jsx(uz,{align:"center",className:g.content,distribution:"space-between",horizontal:!0,width:"auto",children:ay.jsxs(ay.Fragment,p?{children:[ay.jsx(uz,{className:t,style:Qh({flex:0},c),children:o}),ay.jsx(uz,{className:h(g.left,r),horizontal:!0,style:Qh({flex:1,overflow:"hidden"},l),children:i}),ay.jsx(uz,{className:t,style:Qh({flex:0},s),children:a})]}:{children:[ay.jsx(uz,{className:h(g.left,r),horizontal:!0,style:Qh({flex:0},l),children:i}),ay.jsx(uz,{className:n,style:Qh({flex:1,marginLeft:48,overflow:"hidden"},c),children:o}),ay.jsxs("section",{className:h(g.right,t),style:s,children:[ay.jsx("div",{}),ay.jsx(uz,{align:"center",gap:8,horizontal:!0,children:a})]})]})})}))}));IW=UK("Discord",[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",key:"18tl5t"}]]);const H6=function(e){return ay.jsx(IW,function(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?Jh(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}({style:{overflow:"visible"}},e))};UW=uF((function(e,t){var n=e.css,r=e.stylish,o=e.responsive,i=n(TW||(TW=Oi(["\n pointer-events: none;\n content: '';\n user-select: none;\n\n position: absolute;\n z-index: -1;\n inset: -1px 0 ",";\n "])),o.mobile?"-25%":"-50%");return{app:n(FW||(FW=Oi(["\n overflow-x: hidden;\n overflow-y: auto;\n height: 100vh;\n "]))),aside:n(AW||(AW=Oi(["\n position: sticky;\n z-index: 2;\n height: 100%;\n "]))),asideInner:n(RW||(RW=Oi(["\n overflow-x: hidden;\n overflow-y: auto;\n width: 100%;\n height: calc(100vh - ","px);\n "])),t),content:n(MW||(MW=Oi(["\n position: relative;\n flex: 1;\n max-width: 100%;\n "]))),footer:n(LW||(LW=Oi(["\n position: relative;\n max-width: 100%;\n "]))),glass:n(BW||(BW=Oi(["\n z-index: 0;\n\n &::before {\n ",";\n ",";\n mask-image: linear-gradient(to bottom, black ","px, transparent);\n }\n\n &::after {\n ",";\n }\n "])),r.blur,i,t,i),header:n(zW||(zW=Oi(["\n position: sticky;\n z-index: 999;\n top: 0;\n max-width: 100%;\n "]))),main:n(HW||(HW=Oi(["\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n "]))),toc:n(WW||(WW=Oi([""])))}})),VW=["headerHeight","children","className","style"],GW=["children","className"],qW=["headerHeight","children","className","style"],XW=["headerHeight","children","className"],KW=Zb.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,i=Di(e,VW),a=UW(t),s=a.styles;return ay.jsxs("header",eg(eg({className:(0,a.cx)(s.header,r),style:eg({height:t},o)},i),{},{children:[ay.jsx("div",{className:s.glass}),n]}))})),YW=Zb.memo((function(e){var t=e.children,n=e.className,r=Di(e,GW),o=UW();return ay.jsx("main",eg(eg({className:(0,o.cx)(o.styles.main,n)},r),{},{children:t}))})),QW=Zb.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,i=Di(e,qW),a=UW(t);return ay.jsx("aside",eg(eg({className:(0,a.cx)(a.styles.aside,r),style:eg({top:t},o)},i),{},{children:n}))})),JW=Zb.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=Di(e,XW),i=UW(t);return ay.jsx("div",eg(eg({className:(0,i.cx)(i.styles.asideInner,r)},o),{},{children:n}))}));const W6=Zb.memo((function(e){var t=Object.assign({},(rf(e),e));return ay.jsx("svg",ng(ng({fill:"none",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},t),{},{children:ay.jsx("path",{d:"M16.88 3.549L7.12 20.451"})}))})),U6=Zb.memo((function(e){var t=Object.assign({},(rf(e),e));return ay.jsxs("svg",og(og({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 320 320"},t),{},{children:[ay.jsx("path",{d:"M25.401 140.14c3.71-5.453 8.81-9.628 15.313-12.838A23.89 23.89 0 0055 132.015a23.91 23.91 0 0016.053-6.159 48.924 48.924 0 0010.603-.294 56.54 56.54 0 006.809 6.555c-8.655 1.087-18.202 2.821-29.05 5.494-11.996 2.956-17.707 7.005-20.785 11.53-3.227 4.743-4.63 11.518-4.63 22.374 0 70.838 55.45 121.5 126 121.5 70.564 0 125.889-49.642 126-120.286-.751-13.724-2.613-20.518-5.764-24.763-3.023-4.073-8.262-7.153-19.898-10.42-9.615-2.7-20.317-4.252-31.506-5.103a48.977 48.977 0 006.306-6.763c2.995-1.106 6.948-.684 12.998.332l.321.054c2.498.421 5.641.95 8.543.95 5.214 0 10.234-.927 14.879-2.626 8.925 3.124 16.138 7.213 21.205 14.041 6.227 8.389 8.147 19.524 8.905 33.656l.011.214v.214c0 80.552-63.518 136.5-142 136.5-78.567 0-142-57.028-142-137.5 0-11.644 1.368-22.506 7.401-31.375z"}),ay.jsx("path",{d:"M195.5 145.016a50.53 50.53 0 0018.014-3.295C238.551 143.519 255 146.556 255 150c0 4.335-26.066 8.026-62.517 9.413-.201-5.525-.323-10.211-.316-14.505 1.102.071 2.214.108 3.333.108zM125 145.016a58.278 58.278 0 01-19.063-3.182C81.773 143.646 66 146.628 66 150c0 4.295 25.591 7.958 61.52 9.374.238-5.823.186-10.311-.246-14.402a59.24 59.24 0 01-2.274.044zM122.87 228c9.79-4.353 16.63-14.277 16.63-25.823 0-15.562-12.424-28.177-27.75-28.177S84 186.615 84 202.177c0 10.646 5.815 19.913 14.396 24.705 2.902-.349 5.839-.554 8.729-.554 5.259 0 10.673.678 15.745 1.672zM236 202.177c0 10.646-5.815 19.913-14.396 24.705-2.902-.349-5.839-.554-8.729-.554-5.259 0-10.673.678-15.745 1.672-9.79-4.353-16.63-14.277-16.63-25.823 0-15.562 12.424-28.177 27.75-28.177S236 186.615 236 202.177zM127 248.787S133.923 245 160 245c26.077 0 33 3.787 33 3.787S189.769 278 160 278s-33-29.213-33-29.213z"}),ay.jsx("path",{clipRule:"evenodd",d:"M173 19.016c-6.188 0-10.711-2.238-15.68-4.697-6.295-3.114-13.305-6.583-25.32-6.303-20.261 0-30.93 9.751-40.896 18.86-1.54 1.408-3.064 2.8-4.604 4.14-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 3.789.584 7.447 1.672 10.895A23.93 23.93 0 0155 84.016c13.255 0 24 10.745 24 24 0 3.552-.772 6.925-2.157 9.959a40.472 40.472 0 008.042-1.174c8.866 12.225 23.528 20.215 40.115 20.215 3.041 0 6.018-.269 8.906-.783 1.675 7.287 2.007 14.011 1.594 23.782h49c-.359-9.741-.486-17.161-.085-24.451a42.76 42.76 0 0011.085 1.452c14.294 0 26.9-7.006 34.364-17.668 6.059-3.498 13.291-2.284 19.597-1.225 2.746.461 5.317.893 7.539.893 18.778 0 34-14.551 34-32.5 0-8.333-3.281-15.934-8.675-21.686-4.31 5.012-10.697 8.186-17.825 8.186-12.979 0-23.5-10.522-23.5-23.5 0-12.98-30.137-31.5-45-31.5-5.31 0-10.313.325-14.617.604-3.249.21-6.099.396-8.383.396zM234.307 82.5c1.181 3.012-2.694 4.293-4.517 1.62l-.021-.03-.032-.047-.031-.043c-7.483-10.536-20.012-17.444-34.206-17.444a42.498 42.498 0 00-16.163 3.166c-6.41 2.63-14.55 1.24-19.499-3.61-8.882-8.704-21.21-14.096-34.838-14.096-17.152 0-32.245 8.542-41 21.478-1.966 2.365-5.65 1.323-4.535-1.543.06-.155.12-.305.182-.451C86.968 54.2 104.516 42.016 125 42.016c13.628 0 25.956 5.392 34.838 14.097 4.949 4.85 13.089 6.24 19.499 3.609a42.498 42.498 0 0116.163-3.166c17.73 0 32.863 10.778 38.807 25.944z"}),ay.jsx("path",{d:"M83 20.516a9.5 9.5 0 11-19 0 9.5 9.5 0 0119 0zM264.5 65.016c8.56 0 15.5-6.94 15.5-15.5 0-8.56-6.94-15.5-15.5-15.5-8.56 0-15.5 6.94-15.5 15.5 0 8.56 6.94 15.5 15.5 15.5zM55 124.016c8.837 0 16-7.164 16-16 0-8.837-7.163-16-16-16s-16 7.163-16 16c0 8.836 7.163 16 16 16z"})]}))})),V6=Zb.memo((function(e){var t=Object.assign({},(rf(e),e));return ay.jsx("svg",ag(ag({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 940 320",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ay.jsx("path",{d:"M15 240.035V87.172h39.24V205.75h66.192v34.285H15zM183.731 242c-11.759 0-22.196-2.621-31.313-7.862-9.116-5.241-16.317-12.447-21.601-21.619-5.153-9.317-7.729-19.945-7.729-31.883 0-11.937 2.576-22.492 7.729-31.664 5.164-8.963 12.159-15.98 20.982-21.05l.619-.351c9.117-5.241 19.554-7.861 31.313-7.861s22.196 2.62 31.313 7.861c9.248 5.096 16.449 12.229 21.601 21.401 5.153 9.172 7.729 19.727 7.729 31.664 0 11.938-2.576 22.566-7.729 31.883-5.152 9.172-12.353 16.378-21.601 21.619-9.117 5.241-19.554 7.862-31.313 7.862zm0-32.975c4.36 0 8.191-1.092 11.494-3.275 3.436-2.184 6.144-5.387 8.126-9.609 1.982-4.367 2.973-9.536 2.973-15.505 0-5.968-.991-10.991-2.973-15.067-1.906-4.06-4.483-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.134-3.276-11.494-3.276-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275zM295.508 78l-.001 54.042a34.071 34.071 0 016.541-5.781c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.557 7.424 7.872 4.835 14.105 11.684 18.7 20.546l.325.637c4.756 9.026 7.135 19.799 7.135 32.319 0 12.666-2.379 23.585-7.135 32.757-4.624 9.026-10.966 16.087-19.025 21.182-7.928 4.95-16.78 7.425-26.557 7.425-9.644 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.355-7.532-7.226l.001 11.812h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.494 3.276-3.303 2.184-6.012 5.387-8.126 9.609-1.982 4.076-2.972 9.099-2.972 15.067 0 5.969.99 11.138 2.972 15.505 2.114 4.222 4.823 7.425 8.126 9.609 3.435 2.183 7.266 3.275 11.494 3.275s7.994-1.092 11.297-3.275c3.435-2.184 6.143-5.387 8.125-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.483-7.177-7.732-9.352l-.393-.257c-3.303-2.184-7.069-3.276-11.297-3.276zm105.335 38.653l.084.337a27.857 27.857 0 002.057 5.559c2.246 4.222 5.417 7.498 9.513 9.827 4.096 2.184 8.984 3.276 14.665 3.276 5.285 0 9.777-.801 13.477-2.403 3.579-1.632 7.1-4.025 10.564-7.182l.732-.679 19.818 22.711c-5.153 6.26-11.494 11.064-19.025 14.413-7.531 3.203-16.449 4.804-26.755 4.804-12.683 0-23.782-2.621-33.294-7.862-9.381-5.386-16.713-12.665-21.998-21.837-5.153-9.317-7.729-19.872-7.729-31.665 0-11.792 2.51-22.274 7.53-31.446 5.036-9.105 11.902-16.195 20.596-21.268l.61-.351c8.984-5.241 19.091-7.861 30.322-7.861 10.311 0 19.743 2.286 28.294 6.859l.64.347c8.72 4.659 15.656 11.574 20.809 20.746 5.153 9.172 7.729 20.309 7.729 33.411 0 1.294-.052 2.761-.156 4.4l-.042.623-.17 2.353c-.075 1.01-.151 1.973-.227 2.888h-78.044zm21.365-42.147c-4.492 0-8.456 1.092-11.891 3.276-3.303 2.184-5.879 5.314-7.729 9.39a26.04 26.04 0 00-1.117 2.79 30.164 30.164 0 00-1.121 4.499l-.058.354h43.96l-.015-.106c-.401-2.638-1.122-5.055-2.163-7.252l-.246-.503c-1.776-3.774-4.282-6.742-7.519-8.906l-.409-.266c-3.303-2.184-7.2-3.276-11.692-3.276zm111.695-62.018l-.001 57.432h53.51V87.172h39.24v152.863h-39.24v-59.617H555.9l.001 59.617h-39.24V87.172h39.24zM715.766 242c-8.72 0-16.581-1.893-23.583-5.678-6.87-3.785-12.287-9.681-16.251-17.688-3.832-8.153-5.747-18.417-5.747-30.791v-66.168h37.654v59.398c0 9.172 1.519 15.723 4.558 19.654 3.171 3.931 7.597 5.896 13.278 5.896 3.7 0 7.069-.946 10.108-2.839 3.038-1.892 5.483-4.877 7.332-8.953 1.85-4.222 2.775-9.609 2.775-16.16v-56.996h37.654v118.36h-35.871l.004-12.38c-2.642 3.197-5.682 5.868-9.12 8.012-7.002 4.222-14.599 6.333-22.791 6.333zM841.489 78l-.001 54.041a34.1 34.1 0 016.541-5.78c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.556 7.424 7.873 4.835 14.106 11.684 18.701 20.546l.325.637c4.756 9.026 7.134 19.799 7.134 32.319 0 12.666-2.378 23.585-7.134 32.757-4.624 9.026-10.966 16.087-19.026 21.182-7.927 4.95-16.779 7.425-26.556 7.425-9.645 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.354-7.531-7.224v11.81h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275 4.228 0 7.993-1.092 11.296-3.275 3.435-2.184 6.144-5.387 8.126-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.484-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.068-3.276-11.296-3.276z"})}))}));eU={path:"assets/logo-3d.webp",pkg:"@lobehub/assets-logo",version:"1.1.0"},tU={path:"assets/logo-flat.svg",pkg:"@lobehub/assets-logo",version:"1.1.0"},nU=uF((function(e){return{extraTitle:(0,e.css)(ZW||(ZW=Oi(["\n font-weight: 300;\n white-space: nowrap;\n "])))}})),rU=["type","size","style","extra","className"];const G6=Zb.memo((function(e){var t,n,r=e.type,o=void 0===r?"3d":r,i=e.size,a=void 0===i?32:i,s=e.style,l=e.extra,c=e.className,u=Di(e,rU),d=NA(),p=bF(),f=nU().styles;switch(o){case"3d":t=ay.jsx(c6,lg({alt:"lobehub",height:a,src:d(eU),style:s,width:a},u));break;case"flat":t=ay.jsx(c6,{alt:"lobehub",height:a,src:d(tU),style:s,width:a});break;case"high-contrast":t=ay.jsx(U6,lg({height:a,style:s,width:a},u));break;case"text":t=ay.jsx(V6,lg({className:c,height:a,style:s,width:2.9375*a},u));break;case"combine":t=ay.jsxs(ay.Fragment,{children:[ay.jsx(c6,{alt:"lobehub",height:a,src:d(eU),width:a}),ay.jsx(V6,{style:{height:a,marginLeft:Math.round(a/4),width:"auto"}})]})}return l?(n=Math.round(a/3*1.9),ay.jsxs(uz,lg(lg({align:"center",className:c,horizontal:!0,style:s},u),{},{children:[t,ay.jsx(W6,{style:{color:p.colorFill,height:n,width:n}}),ay.jsx("div",{className:f.extraTitle,style:{fontSize:n},children:l})]}))):t}));oU=function(e){var t,n=e.scale,r=e.appearance,o=jf(e.type),i="dark"===r;return Ei(t={},"color".concat(o,"Bg"),n[r][1]),Ei(t,"color".concat(o,"BgHover"),n[r][2]),Ei(t,"color".concat(o,"Border"),n[r][4]),Ei(t,"color".concat(o,"BorderHover"),n[r][i?5:3]),Ei(t,"color".concat(o,"Hover"),n[r][i?10:8]),Ei(t,"color".concat(o),n[r][9]),Ei(t,"color".concat(o,"Active"),n[r][i?7:10]),Ei(t,"color".concat(o,"TextHover"),n[r][i?10:8]),Ei(t,"color".concat(o,"Text"),n[r][9]),Ei(t,"color".concat(o,"TextActive"),n[r][i?7:10]),t},iU=function(e){var t=e.scale,n=e.appearance;return{colorBgContainer:"dark"===n?t[n][1]:t[n][0],colorBgElevated:"dark"===n?t[n][2]:t[n][0],colorBgLayout:"dark"===n?t[n][0]:t[n][1],colorBgMask:t.lightA[8],colorBgSpotlight:t[n][5],colorBorder:t[n][4],colorBorderSecondary:t[n][3],colorFill:t["".concat(n,"A")][3],colorFillQuaternary:t["".concat(n,"A")][0],colorFillSecondary:t["".concat(n,"A")][2],colorFillTertiary:t["".concat(n,"A")][1],colorText:t[n][12],colorTextQuaternary:t[n][6],colorTextSecondary:t[n][10],colorTextTertiary:t[n][8]}},lU=[(sU={blue:Pz.blue.dark[9],cyan:Pz.cyan.dark[9],geekblue:Pz.geekblue.dark[9],gold:Pz.gold.dark[9],green:Pz.green.dark[9],lime:Pz.lime.dark[9],magenta:Pz.magenta.dark[9],orange:Pz.orange.dark[9],purple:Pz.purple.dark[9],red:Pz.red.dark[9],volcano:Pz.volcano.dark[9],yellow:Pz.yellow.dark[9]}).red,sU.orange,sU.gold,sU.yellow,sU.lime,sU.green,sU.cyan,sU.blue,sU.geekblue,sU.purple,sU.magenta,sU.volcano],uU=[(cU={mauve:(aU={mauve:{dark:["#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#fcf8fb","#ffffff"],darkA:["rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","rgba(255, 251, 254, 0.99)","#ffffff"],light:["#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#1c1b1e","#111"],lightA:["rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)","#111"]},olive:{dark:["#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#faf9f4","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","rgba(255, 254, 249, 0.98)","#ffffff"],light:["#faf9f4","#ecebe6","#ddddd7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#1a1c1b","#111"],lightA:["rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)","#111"]},sage:{dark:["#1a1c1b","#232625","#2d302f","#373a39","#424543","#4d504e","#585c59","#636765","#6f7370","#7a7f7c","#b8bab7","#f9f9f7","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 247, 0.15)","rgba(237, 253, 247, 0.19)","rgba(239, 252, 248, 0.23)","rgba(236, 246, 239, 0.28)","rgba(241, 250, 244, 0.32)","rgba(238, 249, 241, 0.37)","rgba(241, 251, 246, 0.41)","rgba(241, 250, 243, 0.46)","rgba(244, 254, 248, 0.5)","rgba(252, 255, 251, 0.73)","rgba(254, 254, 252, 0.98)","#ffffff"],light:["#f9f9f7","#eaebe8","#dcddda","#cdcfcc","#bfc1be","#b1b4b0","#a3a6a3","#959996","#888c89","#7a7f7c","#474b49","#1a1c1b","#111"],lightA:["rgba(105, 105, 55, 0.04)","rgba(45, 55, 25, 0.1)","rgba(22, 28, 8, 0.15)","rgba(5, 15, 0, 0.2)","rgba(9, 17, 5, 0.26)","rgba(3, 13, 0, 0.31)","rgba(6, 14, 6, 0.37)","rgba(3, 12, 5, 0.42)","rgba(2, 10, 4, 0.47)","rgba(4, 13, 8, 0.53)","rgba(3, 8, 6, 0.73)","rgba(1, 3, 2, 0.9)","#111"]},sand:{dark:["#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#fcf9f3","#ffffff"],darkA:["rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)","#ffffff"],light:["#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#1c1c18","#111"],lightA:["rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)","#111"]},slate:{dark:["#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#f9f9fa","#ffffff"],darkA:["rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","rgba(254, 254, 255, 0.98)","#ffffff"],light:["#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#1b1c1d","#111"],lightA:["rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)","#111"]}}).mauve.dark[9],olive:aU.olive.dark[9],sage:aU.sage.dark[9],sand:aU.sand.dark[9],slate:aU.slate.dark[9]}).mauve,cU.slate,cU.sage,cU.olive,cU.sand],vU=function(e){var t=e.css,n=e.token,r=e.isDarkMode,o=hF(dU||(dU=Oi(["\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n "]))),i=r?n.cyan9A:n.cyan11A,a=r?n.cyan2A:n.cyan6A;return{blur:t(pU||(pU=Oi(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),blurStrong:t(fU||(fU=Oi(["\n backdrop-filter: blur(36px);\n "]))),bottomScrollbar:t(hU||(hU=Oi(["\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n background-color: ",";\n border-radius: 4px;\n transition: background-color 500ms ",";\n }\n\n &-corner {\n display: none;\n width: 0;\n height: 0;\n }\n }\n "])),n.colorFill,n.motionEaseOut),gradientAnimation:t(gU||(gU=Oi(["\n background-image: linear-gradient(\n -45deg,\n ",",\n ",",\n ",",\n ","\n );\n background-size: 400% 400%;\n border-radius: inherit;\n animation: 5s "," 5s ease infinite;\n "])),n.gold,n.magenta,n.geekblue,n.cyan,o),markdown:t(mU||(mU=Oi(["\n color: ",";\n\n h1,\n h2,\n h3,\n h4,\n h5 {\n font-weight: 600;\n }\n\n p {\n margin-block-start: 0;\n margin-block-end: 0;\n\n font-size: 14px;\n line-height: 1.8;\n color: ",";\n word-break: break-all;\n word-wrap: break-word;\n\n + * {\n margin-block-end: 0.5em;\n }\n }\n\n > *:last-child {\n margin-bottom: 0 !important;\n }\n\n blockquote {\n margin: 16px 0;\n padding: 0 12px;\n\n p {\n font-style: italic;\n color: ",";\n }\n }\n\n p:not(:last-child) {\n margin-bottom: 1em;\n }\n\n a {\n color: ",";\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n }\n\n img {\n max-width: 100%;\n }\n\n pre,\n [data-code-type='highlighter'] {\n border: none;\n border-radius: ","px;\n\n > code {\n padding: 0 !important;\n border: none !important;\n }\n }\n\n > :not([data-code-type='highlighter']) code {\n padding: 2px 6px;\n\n font-size: ","px;\n color: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n }\n\n table {\n border-spacing: 0;\n\n width: 100%;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0;\n margin-inline-end: 0;\n padding: 8px;\n\n border: 1px solid ",";\n border-radius: ","px;\n\n code {\n display: inline-flex;\n }\n }\n\n th,\n td {\n padding-block-start: 10px;\n padding-block-end: 10px;\n padding-inline-start: 16px;\n padding-inline-end: 16px;\n }\n\n thead {\n tr {\n th {\n background: ",";\n\n &:first-child {\n border-top-left-radius: ","px;\n border-bottom-left-radius: ","px;\n }\n\n &:last-child {\n border-top-right-radius: ","px;\n border-bottom-right-radius: ","px;\n }\n }\n }\n }\n\n > ol > li::marker {\n color: "," !important;\n }\n\n > ul > li {\n line-height: 1.8;\n list-style-type: disc;\n\n &::marker {\n color: "," !important;\n }\n }\n\n ol,\n ul {\n > li::marker {\n color: ",";\n }\n }\n\n details {\n margin-bottom: 1em;\n padding: 12px 16px;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n\n transition: all 400ms ",";\n }\n\n details[open] {\n summary {\n padding-bottom: 12px;\n border-bottom: 1px solid ",";\n }\n }\n "])),n.colorText,n.colorText,n.colorTextDescription,n.colorLink,n.colorLinkHover,n.colorLinkActive,n.borderRadius,n.fontSizeSM,i,a,r?n.cyan1A:n.cyan6A,n.borderRadiusSM,n.colorBorderSecondary,n.borderRadius,n.colorFillTertiary,n.borderRadius,n.borderRadius,n.borderRadius,n.borderRadius,r?n.cyan9A:n.cyan10A,r?n.cyan9A:n.cyan10A,n.colorTextDescription,n.colorFillTertiary,n.colorBorderSecondary,n.borderRadiusLG,n.motionEaseOut,n.colorBorder),noScrollbar:t(bU||(bU=Oi(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:t(yU||(yU=Oi(["\n cursor: pointer;\n color: ",";\n\n &:hover {\n color: ",";\n }\n "])),n.colorTextSecondary,n.colorText)}},wU=function(e){var t,n=e.name,r=e.scale,o=e.appearance;return Ei(t={},"".concat(n,"Bg"),r["".concat(o,"A")][1]),Ei(t,"".concat(n,"BgHover"),r["".concat(o,"A")][2]),Ei(t,"".concat(n,"Border"),r[o][4]),Ei(t,"".concat(n,"BorderSecondary"),r[o][3]),Ei(t,"".concat(n,"BorderHover"),r[o][5]),Ei(t,"".concat(n,"Hover"),r[o][10]),Ei(t,"".concat(n),r[o][9]),Ei(t,"".concat(n,"Active"),r[o][7]),Ei(t,"".concat(n,"TextHover"),r["".concat(o,"A")][10]),Ei(t,"".concat(n,"Text"),r["".concat(o,"A")][9]),Ei(t,"".concat(n,"TextActive"),r["".concat(o,"A")][7]),t},xU=function(e){var t,n,r,o,i,a,s,l,c,u=e.name,d=e.scale,p=e.appearance,f={},h=dg(d[p].entries());try{for(h.s();!(t=h.n()).done;)o=(n=Wa(t.value,2))[1],0!==(r=n[0])&&12!==r&&(f["".concat(u).concat(r)]=o)}catch(g){h.e(g)}finally{h.f()}i=dg(d["".concat(p,"A")].entries());try{for(i.s();!(a=i.n()).done;)c=(s=Wa(a.value,2))[1],0!==(l=s[0])&&12!==l&&(f["".concat(u).concat(l,"A")]=c)}catch(g){i.e(g)}finally{i.f()}return ug(ug({},f),wU({appearance:p,name:u,scale:d}))},kU=function(e){var t,n,r,o,i,a=e.isDarkMode,s={};for(t=0,n=Object.entries(Pz);t<n.length;t++)o=(r=Wa(n[t],2))[0],i=r[1],s=ug(ug({},s),xU({appearance:a?"dark":"light",name:a6(o),scale:i}));return s},EU=uF((function(e,t){var n=e.css,r=e.token;return{active:n(SU||(SU=Oi(["\n box-shadow: 0 0 0 2px ",";\n "])),r.colorTextTertiary),container:n(CU||(CU=Oi(["\n cursor: pointer;\n\n width: ","px;\n height: ","px;\n\n background: ",";\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px ",";\n\n transition:\n scale 400ms ",",\n box-shadow 100ms ",";\n\n &:hover {\n box-shadow: 0 0 0 3px ",";\n }\n\n &:active {\n scale: 0.8;\n }\n "])),t,t,r.colorBgContainer,r.colorSplit,r.motionEaseOut,r.motionEaseOut,r.colorText)}}));const q6=Zb.memo((function(e){var t=e.colors,n=e.activeColor,r=e.onSelect,o=e.size,i=void 0===o?24:o,a=bF(),s=EU(i),l=s.cx,c=s.styles;return ay.jsxs(uz,{gap:8,horizontal:!0,style:{flexWrap:"wrap"},children:[ay.jsx(uz,{className:l(c.container,!n&&c.active),onClick:function(){null==r||r()},style:{background:a.colorBgContainer}}),t.map((function(e){return ay.jsx(uz,{className:l(c.container,e===n&&c.active),onClick:function(){null==r||r(e)},style:{background:e}},e)}))]})}));OU=uF((function(e){var t=e.css,n=e.token,r=".".concat(e.prefixCls,"-tabs");return{tabs:t(DU||(DU=Oi(["\n ","-tab + ","-tab {\n margin: ","px 4px !important;\n padding: 0 12px !important;\n }\n\n ","-tab {\n color: ",";\n transition: background-color 100ms ease-out;\n\n &:first-child {\n margin: ","px 4px ","px 0;\n padding: ","px 12px !important;\n }\n\n &:hover {\n color: "," !important;\n background: ",";\n border-radius: ","px;\n }\n }\n\n ","-nav {\n margin-bottom: 0;\n\n &::before {\n display: none;\n }\n }\n "])),r,r,16,r,n.colorTextSecondary,16,16,6,n.colorText,n.colorFillTertiary,n.borderRadius,r)}})),_U=["className"];const X6=Zb.memo((function(e){var t=e.className,n=Di(e,_U),r=OU();return ay.jsx(h5,function(e){var t,n;for(t=1;t<arguments.length;t++)n=null!=arguments[t]?arguments[t]:{},t%2?fg(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}({className:(0,r.cx)(r.styles.tabs,t)},n))}));$U=oU({appearance:"dark",scale:Pz.bnw,type:"Primary"}),jU=iU({appearance:"dark",scale:Pz.gray}),NU=oU({appearance:"dark",scale:Pz.lime,type:"Success"}),PU=oU({appearance:"dark",scale:Pz.gold,type:"Warning"}),IU=oU({appearance:"dark",scale:Pz.red,type:"Error"}),TU=oU({appearance:"dark",scale:Pz.blue,type:"Info"});const K6=gg(gg(gg(gg(gg(gg(gg({},$U),jU),NU),PU),IU),TU),{},{boxShadow:"0 12px 20px 6px rgb(0 0 0 / 0.08)",boxShadowSecondary:"0 2px 8px 2px rgb(0 0 0 / 0.07), 0 2px 4px -1px rgb(0 0 0 / 0.04)",colorLink:TU.colorInfoText,colorLinkActive:TU.colorInfoTextActive,colorLinkHover:TU.colorInfoTextHover,colorTextLightSolid:jU.colorBgLayout});FU=function(e,t){var n,r=e.neutralColor,o={},i={},a=Pz[e.primaryColor];return a&&(o=oU({appearance:"dark",scale:a,type:"Primary"})),(n=aU[r])&&(i=iU({appearance:"dark",scale:n})),bg(bg(bg(bg({},t),K6),o),i)},AU=oU({appearance:"light",scale:Pz.bnw,type:"Primary"}),RU=iU({appearance:"light",scale:Pz.gray}),MU=oU({appearance:"light",scale:Pz.green,type:"Success"}),LU=oU({appearance:"light",scale:Pz.orange,type:"Warning"}),BU=oU({appearance:"light",scale:Pz.volcano,type:"Error"}),zU=oU({appearance:"light",scale:Pz.geekblue,type:"Info"});const Y6=vg(vg(vg(vg(vg(vg(vg({},AU),RU),MU),LU),BU),zU),{},{boxShadow:"0 12px 20px 6px rgb(104 112 118 / 0.08)",boxShadowSecondary:"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)",colorLink:zU.colorInfoText,colorLinkActive:zU.colorInfoTextActive,colorLinkHover:zU.colorInfoTextHover,colorTextLightSolid:RU.colorBgLayout});HU=function(e,t){var n,r=e.neutralColor,o={},i={},a=Pz[e.primaryColor];return a&&(o=oU({appearance:"light",scale:a,type:"Primary"})),(n=aU[r])&&(i=iU({appearance:"light",scale:n})),xg(xg(xg(xg({},t),Y6),o),i)},VU="Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",GU={borderRadius:5,borderRadiusLG:8,borderRadiusSM:3,borderRadiusXS:3,controlHeight:36,fontFamily:['"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',UU='"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif',WU='"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"'].join(","),fontFamilyCode:[VU,UU,WU].join(",")},qU=function(e){var t=e.neutralColor,n=e.primaryColor;return{algorithm:"dark"===e.appearance?FU:HU,token:Sg(Sg({},GU),{},{neutralColor:t,primaryColor:n})}};const Q6=function(e){return pF(XU||(XU=Oi(["\n .","-btn {\n box-shadow: none;\n }\n\n .","-btn-primary {\n color: "," !important;\n\n &:hover {\n color: "," !important;\n }\n\n &:active {\n color: "," !important;\n }\n }\n\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding: 4px 8px;\n\n color: "," !important;\n\n background-color: "," !important;\n border-radius: ","px !important;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: "," !important;\n }\n }\n\n .","-switch-handle::before {\n background: "," !important;\n }\n\n .","-alert {\n span[role='img'] {\n align-self: flex-start;\n width: 16px;\n height: 16px;\n margin-top: 3px;\n }\n\n .","-alert-description {\n word-break: break-all;\n word-wrap: break-word;\n }\n\n &.","-alert-with-description {\n padding-block: 12px;\n padding-inline: 12px;\n\n .","-alert-message {\n font-size: 14px;\n font-weight: 600;\n word-break: break-all;\n word-wrap: break-word;\n }\n }\n }\n\n @media (max-width: 575px) {\n .","-tooltip {\n display: none !important;\n }\n }\n"])),e.prefixCls,e.prefixCls,nh(e.colorPrimary),nh(e.colorPrimary),nh(e.colorPrimaryActive),e.prefixCls,e.colorBgLayout,e.colorText,e.borderRadiusSM,e.prefixCls,e.colorText,e.prefixCls,e.colorBgContainer,e.prefixCls,e.prefixCls,e.prefixCls,e.prefixCls,e.prefixCls)},J6=dF((function(e){var t,n=e.theme;return[(t=n,pF(KU||(KU=Oi(["\n html,\n body {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n margin: 0;\n padding: 0;\n\n font-family: ",";\n font-size: ","px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n line-height: 1;\n color: ",";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n vertical-align: baseline;\n\n color-scheme: dark;\n background-color: ",";\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n body {\n overflow-x: hidden;\n height: 100vh;\n }\n\n #root {\n min-height: 100vh;\n }\n\n code {\n font-family: "," !important;\n\n span {\n font-family: "," !important;\n }\n }\n\n p {\n word-wrap: break-word;\n }\n\n ::selection {\n color: #000;\n background: ",";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n box-sizing: border-box;\n vertical-align: baseline;\n }\n\n @media only screen and (min-width: 574px) {\n * {\n ::-webkit-scrollbar {\n cursor: pointer;\n width: 4px;\n height: 4px;\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n cursor: pointer;\n background-color: transparent;\n border-radius: 2px;\n transition: background-color 500ms ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n ::-webkit-scrollbar-corner {\n display: none;\n width: 0;\n height: 0;\n }\n\n &:hover {\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n }\n }\n }\n"])),t.fontFamily,t.fontSize,t.colorTextBase,t.colorBgLayout,t.fontFamilyCode,t.fontFamilyCode,t.yellow9,t.motionEaseOut,t.colorText,t.colorFill)),Q6(n)]}));YU=["children","customStylish","customToken","enableWebfonts","webfonts","customTheme"];const Z6=Zb.memo((function(e){var t=e.children,n=e.customStylish,r=e.customToken,o=e.enableWebfonts,i=void 0===o||o,a=e.webfonts,s=e.customTheme,l=void 0===s?{}:s,c=Di(e,YU),u=NA(),d=a||[u({path:"css/index.css",pkg:"@lobehub/webfont-mono",version:"1.0.0"}),u({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans",version:"1.0.0"}),u({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans-sc",version:"1.0.0"}),u({path:"dist/katex.min.css",pkg:"katex",version:"0.16.8"})],p=Zb.useCallback((function(e){return Eg(Eg({},vU(e)),null==n?void 0:n(e))}),[n]),f=Zb.useCallback((function(e){return Eg(Eg({},kU(e)),null==r?void 0:r(e))}),[r]),h=Zb.useCallback((function(e){return qU({appearance:e,neutralColor:l.neutralColor,primaryColor:l.primaryColor})}),[l.primaryColor,l.neutralColor]);return ay.jsxs(ay.Fragment,{children:[i&&(null==d?void 0:d.length)>0&&d.map((function(e){return ay.jsx(_6,{url:e},e)})),ay.jsx(mF,{speedy:!0,children:ay.jsxs(gF,Eg(Eg({customStylish:p,customToken:f},c),{},{theme:h,children:[ay.jsx(J6,{}),ay.jsx(X0,{style:{minHeight:"inherit",width:"inherit"},children:t})]}))})]})})),e8={},t8=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},n8=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,r8={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},o8=e=>r8[e];let i8,a8={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(n8,o8)};const s8={type:"3rdParty",init(e){!function(e){let t=arguments.length>0&&void 0!==e?e:{};a8={...a8,...t}}(e.options.react),function(e){i8=e}(e)}},l8=Zb.createContext();class c8{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const u8="https://github.com/lobehub/sd-webui-lobe-theme";QU={exports:{}},JU={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const d8=("object"==typeof process&&{npm_package_devDependencies_lint_staged:"^14",npm_package_devDependencies_lucide_react:"latest",npm_package_devDependencies_react_dom:"^18",npm_package_devDependencies_i18next_http_backend:"^2.2.2",npm_package_devDependencies_prettier:"^3",npm_package_scripts_ci:"npm run lint && npm run type-check",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_devDependencies__lobehub_i18n_cli:"latest",NODE:"/usr/local/bin/node",npm_package_homepage:"https://github.com/lobehub/sd-webui-lobe-theme",npm_package_devDependencies__types_semver:"^7.5.2",npm_package_devDependencies_typescript:"^5",INIT_CWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",SHELL:"/opt/homebrew/bin/fish",TERM:"xterm-256color",npm_package_devDependencies_vite:"^4",npm_package_scripts_lint_md:"remark . --quiet --output",TMPDIR:"/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/",npm_package_devDependencies_semver:"^7.5.4",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_release:"semantic-release",npm_package_devDependencies_shiki_es:"^0.14",npm_config_email:"",npm_package_scripts_test_update:"vitest -u",npm_package_devDependencies__vitejs_plugin_react:"^4",npm_package_devDependencies_concurrently:"^8",npm_package_scripts_dev:"vite",TERM_SESSION_ID:"0257d53a-1c1a-4033-9185-d20c85200e2a",npm_package_private:"true",npm_package_sideEffects:"false",npm_package_scripts_i18n:"lobe-i18n",npm_config_registry:"https://registry.npmmirror.com",npm_package_repository_url:"https://github.com/lobehub/sd-webui-lobe-theme.git",npm_package_peerDependencies_react_dom:">=18",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_devDependencies_react_rnd:"^10",USER:"canisminor",npm_package_description:"The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.",npm_package_devDependencies_react:"^18",npm_package_devDependencies_react_i18next:"^13",npm_package_license:"AGPL3",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_devDependencies__types_react:"^18",npm_package_devDependencies__types_react_tag_input:"^6",npm_package_devDependencies_semantic_release:"^21",COMMAND_MODE:"unix2003",OPENAI_API_KEY:"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",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",npm_package_devDependencies__types_styled_components:"^5",npm_package_devDependencies_ahooks:"^3",PNPM_SCRIPT_SRC_DIR:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.3WcZ5XOIY7/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_package_devDependencies_babel_plugin_styled_components:"^2",npm_package_devDependencies_eslint:"^8",npm_package_devDependencies_query_string:"^8",npm_package_devDependencies_remark:"^14",npm_execpath:"/opt/homebrew/lib/node_modules/pnpm/bin/pnpm.cjs",omp_last_status_generation:"7",FIG_JETBRAINS_SHELL_INTEGRATION:"1",npm_package_devDependencies_antd:"^5",npm_package_scripts_type_check:"tsc --noEmit",npm_package_devDependencies__types_react_dom:"^18",npm_package_devDependencies_react_layout_kit:"^1",npm_package_devDependencies_zustand_utils:"^1.3.1",npm_package_devDependencies_styled_components:"^6",PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/canisminor/Library/Python/3.10/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin",TERMINAL_EMULATOR:"JetBrains-JediTerm",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",__CFBundleIdentifier:"com.jetbrains.WebStorm",npm_package_author:"canisminor1990 <i@canisminor.cc>",npm_package_devDependencies_commitlint:"^17",PWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",npm_package_devDependencies_terser:"^5",npm_package_devDependencies_zustand:"^4.4.1",npm_command:"run-script",npm_package_bugs_url:"https://github.com/lobehub/sd-webui-lobe-theme/issues/new",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_devDependencies_jsdom:"^22",npm_package_devDependencies_remark_cli:"^11",npm_lifecycle_event:"build",POSH_SHELL_VERSION:"3.6.1",npm_package_name:"sd-webui-lobe-theme",npm_package_keywords_0:"stable-diffusion-webui",npm_package_repository_type:"git",npm_package_devDependencies__lobehub_lint:"latest",npm_package_keywords_1:"sd-webui-kitchen-theme",npm_package_devDependencies_react_tag_input:"^6",npm_config_resolution_mode:"highest",NODE_PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.8.7_terser@5.22.0/node_modules/vite/bin/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.8.7_terser@5.22.0/node_modules/vite/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.8.7_terser@5.22.0/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/node_modules",npm_package_keywords_2:"kitchen-theme",npm_package_scripts_build:"vite build",npm_package_scripts_start:"npm run dev",npm_package_devDependencies__vitest_coverage_v8:"latest",npm_package_devDependencies_babel_plugin_antd_style:"^1",npm_package_peerDependencies_antd_style:">=3",XPC_FLAGS:"0x0",npm_package_keywords_3:"extensions",npm_package_devDependencies_vitest:"latest",npm_package_devDependencies_stylelint:"^15.10",npm_package_devDependencies__babel_plugin_syntax_import_assertions:"^7",npm_package_devDependencies__types_lodash_es:"^4",npm_package_devDependencies_i18next:"^23",omp_lastcommand:"git commit",npm_package_main:"javascript/main.js",npm_package_devDependencies_fast_deep_equal:"^3",npm_package_devDependencies_lodash_es:"^4",npm_config_node_gyp:"/opt/homebrew/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"application.com.jetbrains.WebStorm.166086494.166087177",npm_package_version:"3.0.8",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',HOME:"/Users/canisminor",SHLVL:"2",npm_package_scripts_test:"vitest --passWithNoTests",npm_package_devDependencies__commitlint_cli:"^17",npm_package_devDependencies_husky:"^8",npm_package_devDependencies_polished:"^4",npm_config_lockfile:"",npm_package_devDependencies__lobehub_ui:"latest",npm_package_publishConfig_access:"public",LOGNAME:"canisminor",npm_package_scripts_test_coverage:"vitest run --coverage --passWithNoTests",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_lifecycle_script:"vite build",LC_CTYPE:"UTF-8",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_devDependencies_react_dnd_html5_backend:"^16",npm_package_peerDependencies_react:">=18",npm_package_lint_staged____js_jsx__1:"stylelint --fix --allow-empty-input",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.1 darwin arm64",npm_package_devDependencies__types_node:"^20",npm_package_devDependencies__types_react_helmet:"^6",npm_package_files_0:"javascript",npm_package_scripts_prepare:"husky install",npm_package_devDependencies_antd_style:"latest",npm_package_devDependencies_react_helmet:"^6",POSH_THEME:"/Users/canisminor/.cmli/omp/mytheme.omp.json",npm_package_devDependencies_swr:"^2",npm_package_peerDependencies_antd:">=5",npm_package_devDependencies_lucide_static:"latest",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_devDependencies_react_dnd:"^16",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_node_execpath:"/usr/local/bin/node",NODE_ENV:"production"}.NODE_DEBUG&&/\bsemver\b/i.test({npm_package_devDependencies_lint_staged:"^14",npm_package_devDependencies_lucide_react:"latest",npm_package_devDependencies_react_dom:"^18",npm_package_devDependencies_i18next_http_backend:"^2.2.2",npm_package_devDependencies_prettier:"^3",npm_package_scripts_ci:"npm run lint && npm run type-check",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_devDependencies__lobehub_i18n_cli:"latest",NODE:"/usr/local/bin/node",npm_package_homepage:"https://github.com/lobehub/sd-webui-lobe-theme",npm_package_devDependencies__types_semver:"^7.5.2",npm_package_devDependencies_typescript:"^5",INIT_CWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",SHELL:"/opt/homebrew/bin/fish",TERM:"xterm-256color",npm_package_devDependencies_vite:"^4",npm_package_scripts_lint_md:"remark . --quiet --output",TMPDIR:"/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/",npm_package_devDependencies_semver:"^7.5.4",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_release:"semantic-release",npm_package_devDependencies_shiki_es:"^0.14",npm_config_email:"",npm_package_scripts_test_update:"vitest -u",npm_package_devDependencies__vitejs_plugin_react:"^4",npm_package_devDependencies_concurrently:"^8",npm_package_scripts_dev:"vite",TERM_SESSION_ID:"0257d53a-1c1a-4033-9185-d20c85200e2a",npm_package_private:"true",npm_package_sideEffects:"false",npm_package_scripts_i18n:"lobe-i18n",npm_config_registry:"https://registry.npmmirror.com",npm_package_repository_url:"https://github.com/lobehub/sd-webui-lobe-theme.git",npm_package_peerDependencies_react_dom:">=18",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_devDependencies_react_rnd:"^10",USER:"canisminor",npm_package_description:"The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.",npm_package_devDependencies_react:"^18",npm_package_devDependencies_react_i18next:"^13",npm_package_license:"AGPL3",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_devDependencies__types_react:"^18",npm_package_devDependencies__types_react_tag_input:"^6",npm_package_devDependencies_semantic_release:"^21",COMMAND_MODE:"unix2003",OPENAI_API_KEY:"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",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",npm_package_devDependencies__types_styled_components:"^5",npm_package_devDependencies_ahooks:"^3",PNPM_SCRIPT_SRC_DIR:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.3WcZ5XOIY7/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_package_devDependencies_babel_plugin_styled_components:"^2",npm_package_devDependencies_eslint:"^8",npm_package_devDependencies_query_string:"^8",npm_package_devDependencies_remark:"^14",npm_execpath:"/opt/homebrew/lib/node_modules/pnpm/bin/pnpm.cjs",omp_last_status_generation:"7",FIG_JETBRAINS_SHELL_INTEGRATION:"1",npm_package_devDependencies_antd:"^5",npm_package_scripts_type_check:"tsc --noEmit",npm_package_devDependencies__types_react_dom:"^18",npm_package_devDependencies_react_layout_kit:"^1",npm_package_devDependencies_zustand_utils:"^1.3.1",npm_package_devDependencies_styled_components:"^6",PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/canisminor/Library/Python/3.10/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin",TERMINAL_EMULATOR:"JetBrains-JediTerm",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",__CFBundleIdentifier:"com.jetbrains.WebStorm",npm_package_author:"canisminor1990 <i@canisminor.cc>",npm_package_devDependencies_commitlint:"^17",PWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",npm_package_devDependencies_terser:"^5",npm_package_devDependencies_zustand:"^4.4.1",npm_command:"run-script",npm_package_bugs_url:"https://github.com/lobehub/sd-webui-lobe-theme/issues/new",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_devDependencies_jsdom:"^22",npm_package_devDependencies_remark_cli:"^11",npm_lifecycle_event:"build",POSH_SHELL_VERSION:"3.6.1",npm_package_name:"sd-webui-lobe-theme",npm_package_keywords_0:"stable-diffusion-webui",npm_package_repository_type:"git",npm_package_devDependencies__lobehub_lint:"latest",npm_package_keywords_1:"sd-webui-kitchen-theme",npm_package_devDependencies_react_tag_input:"^6",npm_config_resolution_mode:"highest",NODE_PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.8.7_terser@5.22.0/node_modules/vite/bin/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.8.7_terser@5.22.0/node_modules/vite/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.8.7_terser@5.22.0/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/node_modules",npm_package_keywords_2:"kitchen-theme",npm_package_scripts_build:"vite build",npm_package_scripts_start:"npm run dev",npm_package_devDependencies__vitest_coverage_v8:"latest",npm_package_devDependencies_babel_plugin_antd_style:"^1",npm_package_peerDependencies_antd_style:">=3",XPC_FLAGS:"0x0",npm_package_keywords_3:"extensions",npm_package_devDependencies_vitest:"latest",npm_package_devDependencies_stylelint:"^15.10",npm_package_devDependencies__babel_plugin_syntax_import_assertions:"^7",npm_package_devDependencies__types_lodash_es:"^4",npm_package_devDependencies_i18next:"^23",omp_lastcommand:"git commit",npm_package_main:"javascript/main.js",npm_package_devDependencies_fast_deep_equal:"^3",npm_package_devDependencies_lodash_es:"^4",npm_config_node_gyp:"/opt/homebrew/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"application.com.jetbrains.WebStorm.166086494.166087177",npm_package_version:"3.0.8",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',HOME:"/Users/canisminor",SHLVL:"2",npm_package_scripts_test:"vitest --passWithNoTests",npm_package_devDependencies__commitlint_cli:"^17",npm_package_devDependencies_husky:"^8",npm_package_devDependencies_polished:"^4",npm_config_lockfile:"",npm_package_devDependencies__lobehub_ui:"latest",npm_package_publishConfig_access:"public",LOGNAME:"canisminor",npm_package_scripts_test_coverage:"vitest run --coverage --passWithNoTests",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_lifecycle_script:"vite build",LC_CTYPE:"UTF-8",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_devDependencies_react_dnd_html5_backend:"^16",npm_package_peerDependencies_react:">=18",npm_package_lint_staged____js_jsx__1:"stylelint --fix --allow-empty-input",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.1 darwin arm64",npm_package_devDependencies__types_node:"^20",npm_package_devDependencies__types_react_helmet:"^6",npm_package_files_0:"javascript",npm_package_scripts_prepare:"husky install",npm_package_devDependencies_antd_style:"latest",npm_package_devDependencies_react_helmet:"^6",POSH_THEME:"/Users/canisminor/.cmli/omp/mytheme.omp.json",npm_package_devDependencies_swr:"^2",npm_package_peerDependencies_antd:">=5",npm_package_devDependencies_lucide_static:"latest",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_devDependencies_react_dnd:"^16",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_node_execpath:"/usr/local/bin/node",NODE_ENV:"production"}.NODE_DEBUG),()=>{});ZU=d8,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=JU,i=ZU,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=u++;i(e,o,t),c[e]=o,l[o]=t,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),f("FULL",`^${l[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),f("LOOSE",`^${l[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),f("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),f("COERCERTL",l[c.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(QU,QU.exports),eV=QU.exports;const p8=Object.freeze({loose:!0}),f8=Object.freeze({});tV=e=>e?"object"!=typeof e?p8:e:f8;const h8=/^[0-9]+$/,g8=(e,t)=>{const n=h8.test(e),r=h8.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};nV={compareIdentifiers:g8,rcompareIdentifiers:(e,t)=>g8(t,e)};const m8=ZU,{MAX_LENGTH:b8,MAX_SAFE_INTEGER:y8}=JU,{safeRe:v8,t:w8}=eV,x8=tV,{compareIdentifiers:k8}=nV;rV=class e{constructor(t,n){if(n=x8(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>b8)throw new TypeError(`version is longer than ${b8} characters`);m8("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?v8[w8.LOOSE]:v8[w8.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>y8||this.major<0)throw new TypeError("Invalid major version");if(this.minor>y8||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>y8||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=r[4]?r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<y8)return t}return e})):[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(m8("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),k8(this.major,t.major)||k8(this.minor,t.minor)||k8(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(m8("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return k8(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(m8("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return k8(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===k8(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const S8=rV,C8=oV=(e,t,n=!1)=>{if(e instanceof S8)return e;try{return new S8(e,t)}catch(r){if(!n)return null;throw r}};iV=(e,t)=>{const n=C8(e,t);return n?n.version:null};const E8=oV;aV=(e,t)=>{const n=E8(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const D8=rV;sV=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new D8(e instanceof D8?e.version:e,n).inc(t,r,o).version}catch(i){return null}};const O8=oV;lV=(e,t)=>{const n=O8(e,null,!0),r=O8(t,null,!0),o=n.compare(r);if(0===o)return null;const i=o>0,a=i?n:r,s=i?r:n,l=!!a.prerelease.length;if(s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const _8=rV;cV=(e,t)=>new _8(e,t).major;const $8=rV;uV=(e,t)=>new $8(e,t).minor;const j8=rV;dV=(e,t)=>new j8(e,t).patch;const N8=oV;pV=(e,t)=>{const n=N8(e,t);return n&&n.prerelease.length?n.prerelease:null};const P8=rV;fV=(e,t,n)=>new P8(e,n).compare(new P8(t,n));const I8=fV;hV=(e,t,n)=>I8(t,e,n);const T8=fV;gV=(e,t)=>T8(e,t,!0);const F8=rV;mV=(e,t,n)=>{const r=new F8(e,n),o=new F8(t,n);return r.compare(o)||r.compareBuild(o)};const A8=mV;bV=(e,t)=>e.sort(((e,n)=>A8(e,n,t)));const R8=mV;yV=(e,t)=>e.sort(((e,n)=>R8(n,e,t)));const M8=fV;vV=(e,t,n)=>M8(e,t,n)>0;const L8=fV;wV=(e,t,n)=>L8(e,t,n)<0;const B8=fV;xV=(e,t,n)=>0===B8(e,t,n);const z8=fV;kV=(e,t,n)=>0!==z8(e,t,n);const H8=fV;SV=(e,t,n)=>H8(e,t,n)>=0;const W8=fV;CV=(e,t,n)=>W8(e,t,n)<=0;const U8=xV,V8=kV,G8=vV,q8=SV,X8=wV,K8=CV;EV=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return U8(e,n,r);case"!=":return V8(e,n,r);case">":return G8(e,n,r);case">=":return q8(e,n,r);case"<":return X8(e,n,r);case"<=":return K8(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const Y8=rV,Q8=oV,{safeRe:J8,t:Z8}=eV;DV=(e,t)=>{if(e instanceof Y8)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=J8[Z8.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),J8[Z8.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;J8[Z8.COERCERTL].lastIndex=-1}else n=e.match(J8[Z8.COERCE]);return null===n?null:Q8(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)},$V=jg,jg.Node=Ng,jg.create=jg,jg.prototype.removeNode=function(e){var t,n;if(e.list!==this)throw new Error("removing node which does not belong to this list");return n=e.prev,(t=e.next)&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},jg.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},jg.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},jg.prototype.push=function(){var e,t,n;for(e=0,t=arguments.length;e<t;e++)(n=this).tail=new Ng(arguments[e],n.tail,null,n),n.head||(n.head=n.tail),n.length++;return this.length},jg.prototype.unshift=function(){var e,t,n;for(e=0,t=arguments.length;e<t;e++)(n=this).head=new Ng(arguments[e],null,n.head,n),n.tail||(n.tail=n.head),n.length++;return this.length},jg.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},jg.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},jg.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},jg.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},jg.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},jg.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},jg.prototype.map=function(e,t){var n,r;for(t=t||this,n=new jg,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},jg.prototype.mapReverse=function(e,t){var n,r;for(t=t||this,n=new jg,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},jg.prototype.reduce=function(e,t){var n,r,o=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");o=this.head.next,n=this.head.value}for(r=0;null!==o;r++)n=e(n,o.value,r),o=o.next;return n},jg.prototype.reduceReverse=function(e,t){var n,r,o=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");o=this.tail.prev,n=this.tail.value}for(r=this.length-1;null!==o;r--)n=e(n,o.value,r),o=o.prev;return n},jg.prototype.toArray=function(){var e,t,n=new Array(this.length);for(e=0,t=this.head;null!==t;e++)n[e]=t.value,t=t.next;return n},jg.prototype.toArrayReverse=function(){var e,t,n=new Array(this.length);for(e=0,t=this.tail;null!==t;e++)n[e]=t.value,t=t.prev;return n},jg.prototype.slice=function(e,t){var n,r,o;if((t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length),n=new jg,t<e||t<0)return n;for(e<0&&(e=0),t>this.length&&(t=this.length),r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},jg.prototype.sliceReverse=function(e,t){var n,r,o;if((t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length),n=new jg,t<e||t<0)return n;for(e<0&&(e=0),t>this.length&&(t=this.length),r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},jg.prototype.splice=function(e,t,...n){var r,o,i,a,s,l,c;for(e>this.length&&(e=this.length-1),e<0&&(e=this.length+e),r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(i=[],r=0;o&&r<t;r++)i.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),r=0;r<n.length;r++)l=n[r],null===(c=(s=o)===(a=this).head?new Ng(l,null,s,a):new Ng(l,s,s.next,a)).next&&(a.tail=c),null===c.prev&&(a.head=c),a.length++,o=c;return i},jg.prototype.reverse=function(){var e,t,n=this.head,r=this.tail;for(e=n;null!==e;e=e.prev)t=e.prev,e.prev=e.next,e.next=t;return this.head=r,this.tail=n,this};try{(_V?OV:(_V=1,OV=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(jg)}catch(Zne){}const e7=$V,t7=Symbol("max"),n7=Symbol("length"),r7=Symbol("lengthCalculator"),o7=Symbol("allowStale"),i7=Symbol("maxAge"),a7=Symbol("dispose"),s7=Symbol("noDisposeOnSet"),l7=Symbol("lruList"),c7=Symbol("cache"),u7=Symbol("updateAgeOnGet"),d7=()=>1,p7=(e,t,n)=>{const r=e[c7].get(t);if(r){const t=r.value;if(f7(e,t)){if(g7(e,r),!e[o7])return}else n&&(e[u7]&&(r.value.now=Date.now()),e[l7].unshiftNode(r));return t.value}},f7=(e,t)=>{if(!t||!t.maxAge&&!e[i7])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[i7]&&n>e[i7]},h7=e=>{if(e[n7]>e[t7])for(let t=e[l7].tail;e[n7]>e[t7]&&null!==t;){const n=t.prev;g7(e,t),t=n}},g7=(e,t)=>{if(t){const n=t.value;e[a7]&&e[a7](n.key,n.value),e[n7]-=n.length,e[c7].delete(n.key),e[l7].removeNode(t)}};class m7{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const b7=(e,t,n,r)=>{let o=n.value;f7(e,o)&&(g7(e,n),e[o7]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};jV=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t7]=e.max||1/0;const t=e.length||d7;if(this[r7]="function"!=typeof t?d7:t,this[o7]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[i7]=e.maxAge||0,this[a7]=e.dispose,this[s7]=e.noDisposeOnSet||!1,this[u7]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t7]=e||1/0,h7(this)}get max(){return this[t7]}set allowStale(e){this[o7]=!!e}get allowStale(){return this[o7]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[i7]=e,h7(this)}get maxAge(){return this[i7]}set lengthCalculator(e){"function"!=typeof e&&(e=d7),e!==this[r7]&&(this[r7]=e,this[n7]=0,this[l7].forEach((e=>{e.length=this[r7](e.value,e.key),this[n7]+=e.length}))),h7(this)}get lengthCalculator(){return this[r7]}get length(){return this[n7]}get itemCount(){return this[l7].length}rforEach(e,t){t=t||this;for(let n=this[l7].tail;null!==n;){const r=n.prev;b7(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l7].head;null!==n;){const r=n.next;b7(this,e,n,t),n=r}}keys(){return this[l7].toArray().map((e=>e.key))}values(){return this[l7].toArray().map((e=>e.value))}reset(){this[a7]&&this[l7]&&this[l7].length&&this[l7].forEach((e=>this[a7](e.key,e.value))),this[c7]=new Map,this[l7]=new e7,this[n7]=0}dump(){return this[l7].map((e=>!f7(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l7]}set(e,t,n){if((n=n||this[i7])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[r7](t,e);if(this[c7].has(e)){if(o>this[t7])return g7(this,this[c7].get(e)),!1;const i=this[c7].get(e).value;return this[a7]&&(this[s7]||this[a7](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[n7]+=o-i.length,i.length=o,this.get(e),h7(this),!0}const i=new m7(e,t,o,r,n);return i.length>this[t7]?(this[a7]&&this[a7](e,t),!1):(this[n7]+=i.length,this[l7].unshift(i),this[c7].set(e,this[l7].head),h7(this),!0)}has(e){if(!this[c7].has(e))return!1;const t=this[c7].get(e).value;return!f7(this,t)}get(e){return p7(this,e,!0)}peek(e){return p7(this,e,!1)}pop(){const e=this[l7].tail;return e?(g7(this,e),e.value):null}del(e){g7(this,this[c7].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[c7].forEach(((e,t)=>p7(this,t,!1)))}};const y7=Pg();FV=(e,t,n)=>{try{t=new y7(t,n)}catch(Zne){return!1}return t.test(e)};const v7=Pg();AV=(e,t)=>new v7(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const w7=rV,x7=Pg();RV=(e,t,n)=>{let r=null,o=null,i=null;try{i=new x7(t,n)}catch(Zne){return null}return e.forEach((e=>{i.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new w7(r,n)))})),r};const k7=rV,S7=Pg();MV=(e,t,n)=>{let r=null,o=null,i=null;try{i=new S7(t,n)}catch(Zne){return null}return e.forEach((e=>{i.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new k7(r,n)))})),r};const C7=rV,E7=Pg(),D7=vV;LV=(e,t)=>{e=new E7(e,t);let n=new C7("0.0.0");if(e.test(n))return n;if(n=new C7("0.0.0-0"),e.test(n))return n;n=null;for(let r=0;r<e.set.length;++r){let t=null;e.set[r].forEach((e=>{const n=new C7(e.semver.version);switch(e.operator){case">":0===n.prerelease.length?n.patch++:n.prerelease.push(0),n.raw=n.format();case"":case">=":t&&!D7(n,t)||(t=n);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!t||n&&!D7(n,t)||(n=t)}return n&&e.test(n)?n:null};const O7=Pg();BV=(e,t)=>{try{return new O7(e,t).range||"*"}catch(Zne){return null}};const _7=rV,$7=Ig(),{ANY:j7}=$7,N7=Pg(),P7=FV,I7=vV,T7=wV,F7=CV,A7=SV,R7=zV=(e,t,n,r)=>{let o,i,a,s,l;switch(e=new _7(e,r),t=new N7(t,r),n){case">":o=I7,i=F7,a=T7,s=">",l=">=";break;case"<":o=T7,i=A7,a=I7,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P7(e,t,r))return!1;for(let c=0;c<t.set.length;++c){let n=null,u=null;if(t.set[c].forEach((e=>{e.semver===j7&&(e=new $7(">=0.0.0")),n=n||e,u=u||e,o(e.semver,n.semver,r)?n=e:a(e.semver,u.semver,r)&&(u=e)})),n.operator===s||n.operator===l)return!1;if((!u.operator||u.operator===s)&&i(e,u.semver))return!1;if(u.operator===l&&a(e,u.semver))return!1}return!0};HV=(e,t,n)=>R7(e,t,">",n);const M7=zV;WV=(e,t,n)=>M7(e,t,"<",n);const L7=Pg();UV=(e,t,n)=>(e=new L7(e,n),t=new L7(t,n),e.intersects(t,n));const B7=FV,z7=fV;VV=(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort(((e,t)=>z7(e,t,n)));for(const u of a)B7(u,t,n)?(i=u,o||(o=u)):(i&&r.push([o,i]),i=null,o=null);o&&r.push([o,null]);const s=[];for(const[u,d]of r)s.push(u===d?u:d||u!==a[0]?d?u===a[0]?`<=${d}`:`${u} - ${d}`:`>=${u}`:"*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};const H7=Pg(),W7=Ig(),{ANY:U7}=W7,V7=FV,G7=fV,q7=[new W7(">=0.0.0-0")],X7=[new W7(">=0.0.0")],K7=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===U7){if(1===t.length&&t[0].semver===U7)return!0;e=n.includePrerelease?q7:X7}if(1===t.length&&t[0].semver===U7){if(n.includePrerelease)return!0;t=X7}const r=new Set;let o,i,a,s,l,c,u;for(const f of e)">"===f.operator||">="===f.operator?o=Y7(o,f,n):"<"===f.operator||"<="===f.operator?i=Q7(i,f,n):r.add(f.semver);if(r.size>1)return null;if(o&&i){if(a=G7(o.semver,i.semver,n),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const f of r){if(o&&!V7(f,String(o),n))return null;if(i&&!V7(f,String(i),n))return null;for(const e of t)if(!V7(f,String(e),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,p=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===i.operator&&0===d.prerelease[0]&&(d=!1);for(const f of t){if(u=u||">"===f.operator||">="===f.operator,c=c||"<"===f.operator||"<="===f.operator,o)if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),">"===f.operator||">="===f.operator){if(s=Y7(o,f,n),s===f&&s!==o)return!1}else if(">="===o.operator&&!V7(o.semver,String(f),n))return!1;if(i)if(d&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===d.major&&f.semver.minor===d.minor&&f.semver.patch===d.patch&&(d=!1),"<"===f.operator||"<="===f.operator){if(l=Q7(i,f,n),l===f&&l!==i)return!1}else if("<="===i.operator&&!V7(i.semver,String(f),n))return!1;if(!f.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a||i&&u&&!o&&0!==a||p||d)},Y7=(e,t,n)=>{if(!e)return t;const r=G7(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},Q7=(e,t,n)=>{if(!e)return t;const r=G7(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};GV=(e,t,n={})=>{if(e===t)return!0;e=new H7(e,n),t=new H7(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=K7(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const J7=eV,Z7=JU,e9=rV,t9=nV,n9=t({parse:oV,valid:iV,clean:aV,inc:sV,diff:lV,major:cV,minor:uV,patch:dV,prerelease:pV,compare:fV,rcompare:hV,compareLoose:gV,compareBuild:mV,sort:bV,rsort:yV,gt:vV,lt:wV,eq:xV,neq:kV,gte:SV,lte:CV,cmp:EV,coerce:DV,Comparator:Ig(),Range:Pg(),satisfies:FV,toComparators:AV,maxSatisfying:RV,minSatisfying:MV,minVersion:LV,validRange:BV,outside:zV,gtr:HV,ltr:WV,intersects:UV,simplifyRange:VV,subset:GV,SemVer:e9,re:J7.re,src:J7.src,tokens:J7.t,SEMVER_SPEC_VERSION:Z7.SEMVER_SPEC_VERSION,RELEASE_TYPES:Z7.RELEASE_TYPES,compareIdentifiers:t9.compareIdentifiers,rcompareIdentifiers:t9.rcompareIdentifiers}),r9=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,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}};return t=e(r,o,i),i},o9=e=>e?r9(e):r9;qV={exports:{}},XV={},KV=Zb,YV="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},QV=Nz.useSyncExternalStore,JV=KV.useRef,ZV=KV.useEffect,eG=KV.useMemo,tG=KV.useDebugValue,XV.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i,a,s=JV(null);return null===s.current?s.current=i={hasValue:!1,value:null}:i=s.current,s=eG((function(){function e(e){var t,n;return l?(t=s,YV(a,e)?t:(n=r(e),void 0!==o&&o(t,n)?t:(a=e,s=n))):(l=!0,a=e,e=r(e),s=void 0!==o&&i.hasValue&&o(t=i.value,e)?t:e)}var a,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]),a=QV(e,s[0],s[1]),ZV((function(){i.hasValue=!0,i.value=a}),[a]),tG(a),a},qV.exports=XV;const i9=t(qV.exports),{useSyncExternalStoreWithSelector:a9}=i9,s9=new Map,l9=e=>{const t=s9.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},c9=(e,t)=>{let n;try{n=JSON.parse(e)}catch(GX){}void 0!==n&&t(n)},u9="3.0.8",d9=[{label:"English",value:"en_US"},{label:"简体中文",value:"zh_CN"},{label:"繁體中文",value:"zh_HK"},{label:"日本語",value:"ja_JP"},{label:"Русский",value:"ru_RU"},{label:"한국어",value:"ko_KR"}],p9=async e=>{await fetch("/lobe/config",{body:JSON.stringify(e),headers:{"Content-Type":"application/json"},method:"POST"})},f9={enableExtraNetworkSidebar:!0,enableHighlight:!1,enableSidebar:!0,enableWebFont:!0,extraNetworkCardSize:86,extraNetworkFixedMode:"fixed",extraNetworkSidebarExpand:!0,extraNetworkSidebarWidth:340,i18n:"en_US",layoutHideFooter:!1,layoutSplitPreview:!1,liteAnimation:!1,logoCustomTitle:"",logoCustomUrl:"",logoType:"lobe",neutralColor:void 0,primaryColor:void 0,promptEditor:!1,promptTextareaType:"resizable",sidebarExpand:!0,sidebarFixedMode:"fixed",sidebarWidth:280,svgIcon:!0},h9={currentTab:"tab_txt2img",latestVersion:u9,loading:!0,localeOptions:d9,setting:f9,themeMode:"dark",version:u9},g9="SD-LOBE-SETTING",m9=(e,t)=>({onInit:async()=>{e((()=>({loading:!0})),!1,"onInit");const{onLoadSetting:n,onLoadVersion:r,onLoadLatestVersion:o,onLoadLocalOptions:i}=t();await i(),await r(),await o(),await n(),e((()=>({loading:!1})),!1,"onInit")},onLoadLatestVersion:async()=>{const t=await(async()=>{const e=await fetch(`https://api.github.com/repos/${u8.replace("https://github.com/","")}/releases/latest`),t=await e.json();return t&&t.tag_name&&n9.clean(t.tag_name)||u9})();e((()=>({latestVersion:t})),!1,"onLoadLatestVersion")},onLoadLocalOptions:async()=>{const t=await(async()=>{const e=await fetch("/lobe/locales/options"),t=await e.json();return t&&0!==(null==t?void 0:t.length)?t:d9})();e((()=>({localeOptions:t})),!1,"onLoadLocalOptions")},onLoadSetting:async()=>{let t;const n=await(async()=>{const e=await fetch("/lobe/config"),t=await e.json();if(t&&!(null==t?void 0:t.empty))return t})();if(n&&(t=n),!t){const e=localStorage.getItem(g9);e&&(t=JSON.parse(e))}if(!t){const e=localStorage.getItem("SD-KITCHEN-SETTING");e&&(t=JSON.parse(e))}t||(t=f9);const r={...f9,...t};await p9(r),e((()=>({setting:r})),!1,"onLoadSetting")},onLoadVersion:async()=>{const t=await(async()=>{const e=await fetch("/lobe/package"),t=await e.json();return t&&!t.empty&&t.version?t.version:u9})();e((()=>({version:t})),!1,"onLoadVersion")},onSetSetting:async n=>{const r={...t().setting,...n};localStorage.setItem(g9,JSON.stringify(r)),await p9(r),e((()=>({setting:r})),!1,"onSetSetting")},onSetThemeMode:t=>{e((()=>({themeMode:t})),!1,"onSetThemeMode")},setCurrentTab:()=>{var n;const r=null==(n=get_uiCurrentTabContent())?void 0:n.id;r&&r!==t().currentTab&&e({currentTab:r},!1,"setCurrentTab")}}),b9=e=>({...f9,...e.setting}),y9=e=>e.currentTab,v9=e=>e.themeMode,w9=(e=>{const t="function"==typeof e?o9(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=a9(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Zb.useDebugValue(r),r}(t,e,n);return Object.assign(n,t),n})(((e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=null!=i&&i&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(GX){}if(!c)return e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=s9.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return s9.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let p=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!p)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...l9(l.name),[s]:o.getState()}),c)};const f=(...e)=>{const t=p;p=!1,n(...e),p=t},h=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(h):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?h:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){const e=o.dispatch;o.dispatch=(...t)=>{e(...t)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return;return c9(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void f(e.state);Object.keys(e.state);const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&f(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return f(h),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(l9(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(l9(l.name));case"ROLLBACK":return c9(e.state,(e=>{if(void 0===s)return f(e),void(null==u||u.init(o.getState()));f(e[s]),null==u||u.init(l9(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return c9(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&f(e[s]):f(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return f(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return p=!p}return}})),h})(((...e)=>({...h9,...m9(...e)})))),x9=Zb.memo((e=>{const{version:t,latestVersion:n}=w9((e=>({latestVersion:e.latestVersion,version:e.version})),ki),r=n9.gte(t,n);return ay.jsx("a",{href:u8,rel:"noreferrer",target:"_blank",children:ay.jsxs(U3,r?{color:"success",...e,children:["v",t]}:{color:"warning",...e,children:["v",t," / latest v",n]})})})),k9=u8.replace("https://github.com/",""),S9=Zb.memo((({open:e,onCancel:t})=>{const n=w9(b9,O6),r=bF(),{t:o}=$g();return ay.jsx(x6,{footer:!1,onCancel:t,open:e,title:ay.jsxs(uz,{align:"center",gap:4,horizontal:!0,children:[ay.jsx("a",{href:"https://discord.gg/AYFPHvv2jT",rel:"noreferrer",target:"_blank",children:ay.jsx(n6,{icon:H6,title:"Discord"})}),ay.jsx("a",{href:u8,rel:"noreferrer",target:"_blank",children:ay.jsx(n6,{icon:ZK,title:k9})}),ay.jsxs(b4,{children:[o("themeFeedback"),ay.jsx(x9,{})]})]}),children:ay.jsxs(uz,{gap:32,children:[ay.jsxs(y6,{gap:16,horizontal:!0,style:{background:r.colorBgLayout,border:`1px solid ${r.colorBorderSecondary}`,borderRadius:r.borderRadiusLG,padding:"16px 0"},children:[ay.jsx(lZ,{icon:ay.jsx(Z3,{icon:H6}),size:"large",children:"Join Discover"}),ay.jsx(B6,{icon:ay.jsx(Z3,{icon:ZK}),children:"LobeTheme Github"})]}),ay.jsx(L6,{lang:n.i18n,mapping:"number",repo:k9,repoId:"R_kgDOJCPcNg",term:"53"})]})})})),C9=S9,E9=Zb.memo((()=>{const{t:e}=$g();return ay.jsx(uz,{height:"100vh",width:"100%",children:ay.jsxs(y6,{flex:1,gap:12,width:"100%",children:[ay.jsx(G6,{extra:"SD",size:48,type:"combine"}),ay.jsxs(y6,{gap:16,horizontal:!0,children:[ay.jsx(Z3,{icon:nY,spin:!0}),e("appInitializing")]})]})})})),D9=E9,O9=Zb.memo((({size:e=32,style:t,logoCustomUrl:n,logoCustomTitle:r})=>{let o=ay.jsx(G6,{size:e,style:t});if(n)if(n.includes("http")||n.includes("data"))o=ay.jsx("img",{alt:"logo",src:n,style:{height:e,...t}});else{const r=TA(n);r&&(o=ay.jsx(d6,{emoji:r,size:e,style:t}))}return ay.jsxs(b4,{align:"center",size:.3*e,children:[o,ay.jsx("b",{style:{fontSize:.6*e,whiteSpace:"nowrap"},children:r})]})})),_9=Zb.memo((({size:e=32,style:t,themeMode:n})=>ay.jsx("img",{alt:"logo",src:"dark"===n?"https://gw.alipayobjects.com/zos/bmw-prod/9ecb2822-1592-4cb0-a087-ce0097fef2ca.svg":"https://gw.alipayobjects.com/zos/bmw-prod/e146116d-c65a-4306-a3d2-bb8d05e1c49b.svg",style:{height:e,...t}}))),$9=Zb.memo((({size:e=32,style:t})=>{const n=w9(b9,O6),r=w9(v9,ki);return"kitchen"===n.logoType?ay.jsx(_9,{size:.75*e,style:t,themeMode:r}):"custom"===n.logoType?ay.jsx(O9,{logoCustomTitle:n.logoCustomTitle,logoCustomUrl:n.logoCustomUrl,size:e,style:t}):ay.jsx(G6,{extra:"SD",size:e,style:t,type:"combine"})})),j9=uF((({css:e})=>({buttonGroup:e`
|
||
display: flex;
|
||
gap: 8px;
|
||
`,promptView:e`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
`,view:e`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1em;
|
||
margin-bottom: 1em;
|
||
`})));nG={};const N9=Zb.createContext({dragDropManager:void 0});rG="function"==typeof Symbol&&Symbol.observable||"@@observable",iG={INIT:"@@redux/INIT"+(oG=function(){return Math.random().toString(36).substring(7).split("").join(".")})(),REPLACE:"@@redux/REPLACE"+oG(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+oG()}};const P9="dnd-core/INIT_COORDS",I9="dnd-core/BEGIN_DRAG",T9="dnd-core/PUBLISH_DRAG_SOURCE",F9="dnd-core/HOVER",A9="dnd-core/DROP",R9="dnd-core/END_DRAG",M9={type:P9,payload:{clientOffset:null,sourceClientOffset:null}};class L9{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:Lg(e),publishDragSource:Gg(e),hover:Vg(e),drop:Hg(e),endDrag:Wg(e)}}(this);return Object.keys(n).reduce(((r,o)=>{var i;return r[o]=(i=n[o],(...n)=>{const r=i.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}const B9=[],z9=[];B9.__IS_NONE__=!0,z9.__IS_ALL__=!0;class H9{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;Ag("function"==typeof e,"listener must be a function."),Ag(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){return e!==B9&&(e===z9||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){Ag("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Ag(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return Ag(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&Ug(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return Ag(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Ug(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?qg({x:(o=t).x+(i=r).x,y:o.y+i.y},n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?qg(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const W9="undefined"!=typeof global?global:self,U9=W9.MutationObserver||W9.WebKitMutationObserver,V9="function"==typeof U9?function(e){let t=1;const n=new U9(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Xg;class G9{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const q9=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=V9(this.flush),this.requestErrorThrow=Xg((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},X9=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new G9(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(q9.registerPendingError),K9="dnd-core/ADD_SOURCE",Y9="dnd-core/ADD_TARGET",Q9="dnd-core/REMOVE_SOURCE",J9="dnd-core/REMOVE_TARGET";(WX=aG||(aG={})).SOURCE="SOURCE",WX.TARGET="TARGET";let Z9=0;class eee{addSource(e,t){Kg(e),function(e){Ag("function"==typeof e.canDrag,"Expected canDrag to be a function."),Ag("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Ag("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(aG.SOURCE,e,t);return this.store.dispatch(function(e){return{type:K9,payload:{sourceId:e}}}(n)),n}addTarget(e,t){Kg(e,!0),function(e){Ag("function"==typeof e.canDrop,"Expected canDrop to be a function."),Ag("function"==typeof e.hover,"Expected hover to be a function."),Ag("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(aG.TARGET,e,t);return this.store.dispatch(function(e){return{type:Y9,payload:{targetId:e}}}(n)),n}containsHandler(e){return Qg(this.dragSources,e)||Qg(this.dropTargets,e)}getSource(e,t=!1){return Ag(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ag(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ag(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ag(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Yg(e)===aG.SOURCE}isTargetId(e){return Yg(e)===aG.TARGET}removeSource(e){Ag(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Q9,payload:{sourceId:e}}}(e)),q9.enqueueTask(X9.create((()=>{this.dragSources.delete(e),this.types.delete(e)})))}removeTarget(e){Ag(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:J9,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ag(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ag(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(Z9++).toString();switch(e){case aG.SOURCE:return`S${t}`;case aG.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===aG.SOURCE?this.dragSources.set(r,n):e===aG.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const tee=(e,t)=>e===t,nee={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null},ree={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};let oee=0;const iee=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");sG=Zb.memo((function(e){var{children:t}=e,n=function(e,t){var n,r,o,i;if(null==e)return{};if(n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)t.indexOf(r=i[o])>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);const[r,o]=function(e){return"manager"in e?[{dragDropManager:e.manager},!1]:[function(e,t=um(),n,r){const o=t;return o[iee]||(o[iee]={dragDropManager:cm(e,t,n,r)}),o[iee]}(e.backend,e.context,e.options,e.debugMode),!e.context]}(n);return Zb.useEffect((()=>{if(o){const e=um();return++oee,()=>{0==--oee&&(e[iee]=null)}}}),[]),ay.jsx(N9.Provider,{value:r,children:t})}));const aee=Zb.memo((function({connect:e,src:t}){return Zb.useEffect((()=>{if("undefined"==typeof Image)return;let n=!1;const r=new Image;return r.src=t,r.onload=()=>{e(r),n=!0},()=>{n&&e(null)}})),null})),see="undefined"!=typeof window?Zb.useLayoutEffect:Zb.useEffect;let lee=!1,cee=!1;class uee{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ag(!lee,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return lee=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{lee=!1}}isDragging(){if(!this.sourceId)return!1;Ag(!cee,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return cee=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{cee=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let dee=!1;class pee{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ag(!dee,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return dee=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{dee=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}class fee{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!mm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!mm(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=ym({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,bm(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,bm(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class hee{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!mm(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=ym({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,bm(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}class gee{beginDrag(){const e=this.spec;let t=null;return t="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(this.monitor):{},null!=t?t:null}canDrag(){const e=this.spec;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(this.monitor)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}class mee{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}const bee=n(Object.freeze(Object.defineProperty({__proto__:null,DndContext:N9,DndProvider:sG,DragPreviewImage:aee,useDrag:function(e,t){const n=fm(e,t);Ag(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=wm();return Zb.useMemo((()=>new uee(e)),[e])}(),o=function(e,t){const n=wm(),r=Zb.useMemo((()=>new fee(n.getBackend())),[n]);return see((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),see((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return function(e,t,n){const r=wm(),o=function(e,t,n){const r=Zb.useMemo((()=>new gee(e,t,n)),[t,n]);return Zb.useEffect((()=>{r.spec=e}),[e]),r}(e,t,n),i=function(e){return Zb.useMemo((()=>{const t=e.type;return Ag(null!=t,"spec.type must be defined"),t}),[e])}(e);see((function(){if(null!=i){const[e,a]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(i,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}}),[r,t,n,o,i])}(n,r,o),[pm(n.collect,r,o),hm(o),gm(o)]},useDragDropManager:wm,useDragLayer:function(e){const t=wm().getMonitor(),[n,r]=dm(t,e);return Zb.useEffect((()=>t.subscribeToOffsetChange(r))),Zb.useEffect((()=>t.subscribeToStateChange(r))),n},useDrop:function(e,t){const n=fm(e,t),r=function(){const e=wm();return Zb.useMemo((()=>new pee(e)),[e])}(),o=function(e){const t=wm(),n=Zb.useMemo((()=>new hee(t.getBackend())),[t]);return see((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return function(e,t,n){const r=wm(),o=function(e,t){const n=Zb.useMemo((()=>new mee(e,t)),[t]);return Zb.useEffect((()=>{n.spec=e}),[e]),n}(e,t),i=function(e){const{accept:t}=e;return Zb.useMemo((()=>(Ag(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);see((function(){const[e,a]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(i,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}),[r,t,o,n,i.map((e=>e.toString())).join("|")])}(n,r,o),[pm(n.collect,r,o),xm(o)]}},Symbol.toStringTag,{value:"Module"})));class yee{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach((e=>o.push(e))),o}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class vee{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>null})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const wee="__NATIVE_FILE__",xee="__NATIVE_URL__",kee="__NATIVE_TEXT__",See="__NATIVE_HTML__",Cee=Object.freeze(Object.defineProperty({__proto__:null,FILE:wee,HTML:See,TEXT:kee,URL:xee},Symbol.toStringTag,{value:"Module"})),Eee={[wee]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[See]:{exposeProperties:{html:(e,t)=>Sm(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[xee]:{exposeProperties:{urls:(e,t)=>Sm(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[kee]:{exposeProperties:{text:(e,t)=>Sm(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}},Dee=km((()=>/firefox/i.test(navigator.userAgent))),Oee=km((()=>Boolean(window.safari)));class _ee{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,l=0,c=i.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];c=s-1}}a=Math.max(0,c);const u=e-t[a],d=u*u;return n[a]+r[a]*u+o[a]*d+i[a]*u*d}constructor(e,t){const{length:n}=e,r=[];for(let p=0;p<n;p++)r.push(p);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],i=[];let a,s;for(let p=0;p<n-1;p++)a=e[p+1]-e[p],s=t[p+1]-t[p],o.push(a),i.push(s/a);const l=[i[0]];for(let p=0;p<o.length-1;p++){const e=i[p],t=i[p+1];if(e*t<=0)l.push(0);else{a=o[p];const n=o[p+1],r=a+n;l.push(3*r/((r+n)/e+(r+a)/t))}}l.push(i[i.length-1]);const c=[],u=[];let d;for(let p=0;p<l.length-1;p++){d=i[p];const e=l[p],t=1/o[p],n=e+l[p+1]-d-d;c.push((d-e-n)*t),u.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=c,this.c3s=u}}const $ee=1;class jee{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}class Nee{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return _m({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return _m({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Cee).some((t=>Cee[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Eee[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new vee(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Em(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=Dm(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=Cm(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,o){const i="IMG"===(a=t).nodeName&&(Dee()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(a)));var a,s;const l=Em(i?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:p,anchorY:f}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return Oee()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,u,d),{offsetX:m,offsetY:b}=o,y=0===b||b;return{x:0===m||m?m:new _ee([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(p),y:y?b:(()=>{let e=new _ee([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(f);return Oee()&&i&&(e+=(window.devicePixelRatio-1)*g),e})()}}(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Cm(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Dm(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=Dm(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Cm(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Dm(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new jee(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new yee(this.isNodeInDocument)}}let Pee;const Iee=n(Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:function(e,t,n){return new Nee(e,t,n)},NativeTypes:Cee,getEmptyImage:function(){return Pee||(Pee=new Image,Pee.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Pee}},Symbol.toStringTag,{value:"Module"})));cG=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1},uG=function(e){return e!=e},dG=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},pG=function(e,t,n){return t==t?dG(e,t,n):cG(e,uG,n)},fG=function(e,t){return!(null==e||!e.length)&&pG(e,t,0)>-1},hG=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},mG=lG=function(){},bG=(gG=bB)&&1/JM(new gG([,-0]))[1]==1/0?function(e){return new gG(e)}:mG,yG=GM,vG=fG,wG=hG,xG=qM,kG=bG,SG=JM,CG=function(e,t,n){var r,o,i,a,s=-1,l=vG,c=e.length,u=!0,d=[],p=d;if(n)u=!1,l=wG;else if(c>=200){if(r=t?null:kG(e))return SG(r);u=!1,l=xG,p=new yG}else p=t?[]:d;e:for(;++s<c;)if(o=e[s],i=t?t(o):o,o=n||0!==o?o:0,u&&i==i){for(a=p.length;a--;)if(p[a]===i)continue e;t&&p.push(i),d.push(o)}else l(p,i,n)||(p!==d&&p.push(i),d.push(o));return d},EG=function(e){return e&&e.length?CG(e):[]},DG={},Object.defineProperty(DG,"__esModule",{value:!0}),OG=$m(Zb),_G=$m(mS),($G=function(e){return OG.default.createElement("button",{className:e.classNames.clearAll,onClick:e.onClick},"Clear all")}).propTypes={classNames:_G.default.object,onClick:_G.default.func},DG.default=$G,jG={},NG=function(e){return function(t){return null==e?void 0:e[t]}},PG=NG({"&":"&","<":"<",">":">",'"':""","'":"'"}),TG=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},FG=lL,AG=ER,MG=(RG=(IG=uR)?IG.prototype:void 0)?RG.toString:void 0,LG=function e(t){if("string"==typeof t)return t;if(FG(t))return TG(t,e)+"";if(AG(t))return MG?MG.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},zG=PG,HG=BG=function(e){return null==e?"":LG(e)},WG=/[&<>"']/g,UG=RegExp(WG.source),VG=function(e){return(e=HG(e))&&UG.test(e)?e.replace(WG,zG):e},Object.defineProperty(jG,"__esModule",{value:!0}),GG=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),XG=jm(qG=Zb),KG=jm(mS),YG=jm(JB),QG=jm(VG),JG=function(e,t){var n=t.offsetHeight,r=e.offsetHeight,o=e.offsetTop-t.scrollTop;o+r>=n?t.scrollTop+=o-n+r:o<0&&(t.scrollTop+=o)},(ZG=function(){function e(){var t,n,r,o,i,a;for(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Nm(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(i))),r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e[r.props.labelField].replace(RegExp(n,"gi"),(function(e){return"<mark>"+(0,QG.default)(e)+"</mark>"}))}},r.shouldRenderSuggestions=function(e){var t=r.props;return e.length>=t.minQueryLength&&t.isFocused},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):XG.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},Nm(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,qG.Component),GG(e,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,YG.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t,n=this.props;this.suggestionsContainer&&e.selectedIndex!==n.selectedIndex&&(t=this.suggestionsContainer.querySelector("."+n.classNames.activeSuggestion))&&JG(t,this.suggestionsContainer)}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return XG.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onTouchStart:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this));return 0!==n.length&&(t.shouldRenderSuggestions||this.shouldRenderSuggestions)(t.query)?XG.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},XG.default.createElement("ul",null," ",n," ")):null}}]),e}()).propTypes={query:KG.default.string.isRequired,selectedIndex:KG.default.number.isRequired,suggestions:KG.default.array.isRequired,handleClick:KG.default.func.isRequired,handleHover:KG.default.func.isRequired,minQueryLength:KG.default.number,shouldRenderSuggestions:KG.default.func,isFocused:KG.default.bool.isRequired,classNames:KG.default.object,labelField:KG.default.string.isRequired,renderSuggestion:KG.default.func},ZG.defaultProps={minQueryLength:2},jG.default=ZG,eq={},tq={},nq=BG,rq=/[\\^$.*+?()[\]{}|]/g,oq=RegExp(rq.source),iq=function(e){return(e=nq(e))&&oq.test(e)?e.replace(rq,"\\$&"):e},Object.defineProperty(tq,"__esModule",{value:!0}),tq.buildRegExpFromDelimiters=function(e){var t=e.map((function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)})).join(""),n=(0,aq.default)(t);return new RegExp("["+n+"]+")},tq.canDrag=function(e){return void 0!==e.moveTag&&!e.readOnly&&e.allowDragDrop},tq.canDrop=function(e){return!e.readOnly&&e.allowDragDrop},aq=(UX=iq)&&UX.__esModule?UX:{default:UX},sq={},lq={},Object.defineProperty(lq,"__esModule",{value:!0}),lq.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},lq.DEFAULT_PLACEHOLDER="Press enter to add new tag",lq.DEFAULT_LABEL_FIELD="text",lq.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},lq.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"},Object.defineProperty(sq,"__esModule",{value:!0}),cq=Pm(Zb),uq=Pm(mS),dq=lq,pq=String.fromCharCode(215),(fq=function(e){var t,n=e.removeComponent,r=e.onRemove,o=e.className,i=e.tag,a=e.index,s=function(e){if(dq.KEYS.ENTER.includes(e.keyCode)||e.keyCode===dq.KEYS.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===dq.KEYS.BACKSPACE&&r(e)};return e.readOnly?cq.default.createElement("span",null):(t="Tag at index "+a+" with value "+i.id+" focussed. Press backspace to remove",n?cq.default.createElement(n,{onRemove:r,onKeyDown:s,className:o,"aria-label":t,tag:i,index:a}):cq.default.createElement("button",{onClick:r,onKeyDown:s,className:o,type:"button","aria-label":t},pq))}).propTypes={className:uq.default.string,onRemove:uq.default.func.isRequired,readOnly:uq.default.bool,removeComponent:uq.default.func,tag:uq.default.shape({id:uq.default.string.isRequired,className:uq.default.string,key:uq.default.string}),index:uq.default.number.isRequired},sq.default=fq,Object.defineProperty(eq,"__esModule",{value:!0}),hq=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n,r,o=[],i=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return&&n.return()}finally{if(a)throw s}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},mq=Im(gq=Zb),bq=bee,yq=Im(mS),vq=Im(yO),wq=tq,xq=Im(sq),(kq=function(e){var t,n,r,o=(0,gq.useRef)(null),i=e.readOnly,a=e.tag,s=e.classNames,l=e.index,c=(0,bq.useDrag)((function(){return{type:"tag",collect:function(e){return{isDragging:!!e.isDragging()}},item:e,canDrag:function(){return(0,wq.canDrag)(e)}}})),u=hq(c,2),d=u[0].isDragging,p=u[1],f=(0,bq.useDrop)((function(){return{accept:"tag",drop:function(t){var n=t.index;n!==l&&e.moveTag(n,l)},canDrop:function(e){return(0,wq.canDrop)(e)}}}));return p((0,hq(f,2)[1])(o)),t=e.tag[e.labelField],r=d?0:1,mq.default.createElement("span",{ref:o,className:(0,vq.default)("tag-wrapper",s.tag,void 0===(n=a.className)?"":n),style:{opacity:r,cursor:(0,wq.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},t,mq.default.createElement(xq.default,{tag:e.tag,className:s.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:i,index:l}))}).propTypes={labelField:yq.default.string,onDelete:yq.default.func.isRequired,tag:yq.default.shape({id:yq.default.string.isRequired,className:yq.default.string,key:yq.default.string}),moveTag:yq.default.func,removeComponent:yq.default.func,onTagClicked:yq.default.func,classNames:yq.default.object,readOnly:yq.default.bool,index:yq.default.number.isRequired},kq.defaultProps={labelField:"text",readOnly:!1},eq.default=kq,Object.defineProperty(nG,"__esModule",{value:!0}),nG.KEYS=nG.WithOutContext=nG.WithContext=void 0,Sq=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},Cq=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Dq=Tm(Eq=Zb),Oq=bee,_q=Iee,$q=Tm(JB),jq=Tm(lG),Nq=Tm(EG),Pq=Tm(DG),Iq=Tm(jG),Tq=Tm(mS),Fq=Tm(yO),Aq=Tm(eq),Rq=tq,Mq=lq,Lq=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),Bq.call(n),n.state={suggestions:t.suggestions,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1,ariaLiveStatus:"",currentEditIndex:-1},n.reactTagsRef=(0,Eq.createRef)(),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,Eq.Component),Cq(e,[{key:"componentDidMount",value:function(){var e=this.props;e.autofocus&&!e.readOnly&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,$q.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"handleDelete",value:function(e,t){var n,r,o,i,a,s;t.preventDefault(),t.stopPropagation(),0!==(n=this.props.tags.slice()).length&&(r="Tag at index "+e+" with value "+n[e].id+" deleted.",this.props.handleDelete(e,t),o=this.reactTagsRef.current.querySelectorAll(".ReactTags__remove"),i=void 0,a=void 0,s=void 0,0===e&&n.length>1?(i=o[0],a=0,s=n[1]):(i=o[e-1],s=n[a=e-1]),i||(a=-1,i=this.textInput),r+=a>=0?" Tag at index "+a+" with value "+s.id+" focussed. Press backspace to remove":"Input focussed. Press enter to add a new tag",i.focus(),this.setState({ariaLiveStatus:r}))}},{key:"handleTagClick",value:function(e,t,n){var r=this,o=this.props,i=o.handleTagClick;o.editable&&this.setState({currentEditIndex:e,query:t[o.labelField]},(function(){r.tagInput.focus()})),i&&i(e,n)}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){this.props.handleInputFocus&&this.props.handleInputFocus(e.target.value),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){this.props.handleInputBlur&&(this.props.handleInputBlur(e.target.value),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1,currentEditIndex:-1})}},{key:"handleKeyDown",value:function(e){var t,n=this.state,r=n.query,o=n.selectedIndex,i=n.suggestions,a=n.selectionMode;e.keyCode===Mq.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[],currentEditIndex:-1})),-1===this.props.delimiters.indexOf(e.keyCode)||e.shiftKey||(e.keyCode===Mq.KEYS.TAB&&""===r||e.preventDefault(),""!==(t=a&&-1!==o?i[o]:Fm({id:r},this.props.labelField,r))&&this.addTag(t)),e.keyCode===Mq.KEYS.BACKSPACE&&""===r&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===Mq.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:o<=0?i.length-1:o-1,selectionMode:!0})),e.keyCode===Mq.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===i.length?-1:(o+1)%i.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t,n,r,o,i,a,s,l=this;this.props.allowAdditionFromPaste&&(e.preventDefault(),n=(t=e.clipboardData||window.clipboardData).getData("text"),r=this.props.maxLength,o=Math.min(void 0===r?n.length:r,n.length),i=t.getData("text").substr(0,o),a=(0,Rq.buildRegExpFromDelimiters)(this.props.delimiters),s=i.split(a),(0,Nq.default)(s).forEach((function(e){return l.addTag(Fm({id:e},l.props.labelField,e))})))}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){this.props.handleDrag(this.props.tags[e],e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=Sq({},Mq.DEFAULT_CLASSNAMES,this.props.classNames),r=this.state.query.trim(),o=this.state.selectedIndex,i=this.state.suggestions,a=this.props,s=a.placeholder,l=a.clearAll,c=a.tags,u=a.inline?a.inputFieldPosition:Mq.INPUT_FIELD_POSITIONS.BOTTOM,d=this.props.readOnly?null:Dq.default.createElement("div",{className:n.tagInput},Dq.default.createElement("input",Sq({},a.inputProps,{ref:function(t){e.textInput=t},className:n.tagInputField,type:"text",placeholder:s,"aria-label":s,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:a.name,id:a.id,maxLength:a.maxLength,value:a.inputValue,"data-automation":"input","data-testid":"input"})),Dq.default.createElement(Iq.default,{query:r,suggestions:i,labelField:this.props.labelField,selectedIndex:o,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:n,renderSuggestion:this.props.renderSuggestion}),l&&c.length>0&&Dq.default.createElement(Pq.default,{classNames:n,onClick:this.clearAll}));return Dq.default.createElement("div",{className:(0,Fq.default)(n.tags,"react-tags-wrapper"),ref:this.reactTagsRef},Dq.default.createElement("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0}},this.state.ariaLiveStatus),u===Mq.INPUT_FIELD_POSITIONS.TOP&&d,Dq.default.createElement("div",{className:n.selected},t,u===Mq.INPUT_FIELD_POSITIONS.INLINE&&d),u===Mq.INPUT_FIELD_POSITIONS.BOTTOM&&d)}}]),e}(),Lq.propTypes={placeholder:Tq.default.string,labelField:Tq.default.string,suggestions:Tq.default.arrayOf(Tq.default.shape({id:Tq.default.string.isRequired})),delimiters:Tq.default.arrayOf(Tq.default.number),autofocus:Tq.default.bool,inline:Tq.default.bool,inputFieldPosition:Tq.default.oneOf([Mq.INPUT_FIELD_POSITIONS.INLINE,Mq.INPUT_FIELD_POSITIONS.TOP,Mq.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:Tq.default.func,handleAddition:Tq.default.func,onTagUpdate:Tq.default.func,handleDrag:Tq.default.func,handleFilterSuggestions:Tq.default.func,handleTagClick:Tq.default.func,allowDeleteFromEmptyInput:Tq.default.bool,allowAdditionFromPaste:Tq.default.bool,allowDragDrop:Tq.default.bool,handleInputChange:Tq.default.func,handleInputFocus:Tq.default.func,handleInputBlur:Tq.default.func,minQueryLength:Tq.default.number,shouldRenderSuggestions:Tq.default.func,removeComponent:Tq.default.func,autocomplete:Tq.default.oneOfType([Tq.default.bool,Tq.default.number]),readOnly:Tq.default.bool,classNames:Tq.default.object,name:Tq.default.string,id:Tq.default.string,maxLength:Tq.default.number,inputValue:Tq.default.string,tags:Tq.default.arrayOf(Tq.default.shape({id:Tq.default.string.isRequired,className:Tq.default.string})),allowUnique:Tq.default.bool,renderSuggestion:Tq.default.func,inputProps:Tq.default.object,editable:Tq.default.bool,clearAll:Tq.default.bool,onClearAll:Tq.default.func},Lq.defaultProps={placeholder:Mq.DEFAULT_PLACEHOLDER,labelField:Mq.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Mq.KEYS.ENTER),[Mq.KEYS.TAB]),autofocus:!0,inline:!0,inputFieldPosition:Mq.INPUT_FIELD_POSITIONS.INLINE,handleDelete:jq.default,handleAddition:jq.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[],inputProps:{},onTagUpdate:jq.default,editable:!1,clearAll:!1,handleClearAll:jq.default},Bq=function(){var e=this;this.filteredSuggestions=function(t){var n,r,o,i=e.props.suggestions;return e.props.allowUnique&&(n=e.props.tags.map((function(e){return e.id.toLowerCase()})),i=i.filter((function(e){return!n.includes(e.id.toLowerCase())}))),e.props.handleFilterSuggestions?e.props.handleFilterSuggestions(t,i):(r=i.filter((function(n){return 0===e.getQueryIndex(t,n)})),o=i.filter((function(n){return e.getQueryIndex(t,n)>0})),r.concat(o))},this.getQueryIndex=function(t,n){return n[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.resetAndFocusInput=function(){e.setState({query:""}),e.textInput&&(e.textInput.value="",e.textInput.focus())},this.updateSuggestions=function(){var t=e.state,n=t.selectedIndex,r=e.filteredSuggestions(t.query);e.setState({suggestions:r,selectedIndex:n>=r.length?r.length-1:n})},this.addTag=function(t){var n,r,o=e.props,i=o.labelField,a=o.allowUnique,s=e.state.currentEditIndex;t.id&&t[i]&&(n=o.tags.map((function(e){return e.id.toLowerCase()})),a&&n.indexOf(t.id.toLowerCase())>=0||(e.props.autocomplete&&(r=e.filteredSuggestions(t[i]),(1===e.props.autocomplete&&1===r.length||!0===e.props.autocomplete&&r.length)&&(t=r[0])),-1!==s&&e.props.onTagUpdate?e.props.onTagUpdate(s,t):e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1,currentEditIndex:-1}),e.resetAndFocusInput()))},this.clearAll=function(){e.props.onClearAll&&e.props.onClearAll()},this.getTagItems=function(){var t=e.props,n=t.tags,r=t.labelField,o=t.removeComponent,i=t.readOnly,a=t.allowDragDrop,s=Sq({},Mq.DEFAULT_CLASSNAMES,e.props.classNames),l=e.state,c=l.currentEditIndex,u=l.query,d=a?e.moveTag:null;return n.map((function(t,n){return Dq.default.createElement(Dq.default.Fragment,{key:n},c===n?Dq.default.createElement("div",{className:s.editTagInput},Dq.default.createElement("input",{ref:function(t){e.tagInput=t},onFocus:e.handleFocus,value:u,onChange:e.handleChange,onKeyDown:e.handleKeyDown,onBlur:e.handleBlur,className:s.editTagInputField,onPaste:e.handlePaste,"data-testid":"tag-edit"})):Dq.default.createElement(Aq.default,{index:n,tag:t,labelField:r,onDelete:e.handleDelete.bind(e,n),moveTag:d,removeComponent:o,onTagClicked:e.handleTagClick.bind(e,n,t),readOnly:i,classNames:s,allowDragDrop:a}))}))}},zq=function(e){var t=function(e,t){var n,r={};for(n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,[]);return Dq.default.createElement(Oq.DndProvider,{backend:_q.HTML5Backend},Dq.default.createElement(Lq,t))},Hq=nG.WithContext=zq,nG.WithOutContext=Lq,nG.KEYS=Mq.KEYS;const Tee={addPromptButton(e){const t=gradioApp().querySelector(`#${e}_tools > div.form`),n=gradioApp().querySelector(`#${e}_formatconvert`);if(!t||n)return;const r=Tee.createButton(`${e}_formatconvert`,"🪄",(()=>Tee.onClickConvert(e)));t.append(r)},convert(e){function t(e,t){for(let n=e;n<i.length;n++)i[n][1]=Tee.round(i[n][1]*t)}const n=/\{|\[|\}|\]|[^{}[\]]+/gmu;let r=Tee.convertStr(e);const o=Tee.convertStr2Array(r);r=Tee.convertArray2Str(o);let i=[];const a={"[":{multiplier:1/1.05,stack:[]},"{":{multiplier:1.05,stack:[]}};for(const c of r.matchAll(n)){let e=c[0];if(e in a)a[e].stack.push(i.length);else if("}"===e||"]"===e){const n=a["}"===e?"{":"["];n.stack.length>0&&t(n.stack.pop(),n.multiplier)}else i.push([e,1])}for(const c of Object.keys(a))for(const e of a[c].stack)t(e,a[c].multiplier);0===i.length&&(i=[["",1]]);let s=0;for(;s+1<i.length;)i[s][1]===i[s+1][1]?(i[s][0]+=i[s+1][0],i.splice(s+1,1)):s+=1;let l="";for(const[c,u]of i)l+=1===u?c:`(${c}:${u.toString()})`;return l},convertArray2Str:e=>e.map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/,|\.\|。/g,",").replaceAll(/“|‘|”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return Tee.convertStr2Array(t).join(", ")})).join(", "),convertStr:e=>e.replaceAll(":",":").replaceAll("(","(").replaceAll(")",")"),convertStr2Array(e){const t=/([()<>[\]])/g;return(e=>{let n=(e=>{const n=[];let r,o=0,i=0;for(;null!==(r=t.exec(e));)0===i&&r.index>o&&(n.push(e.slice(o,r.index)),o=r.index),"("===r[0]||"<"===r[0]||"["===r[0]?i++:")"!==r[0]&&">"!==r[0]&&"]"!==r[0]||i--,0===i&&(n.push(e.slice(o,r.index+1)),o=r.index+1);return o<e.length&&n.push(e.slice(Math.max(0,o))),n})(e);return n=n.flatMap((e=>(e=>{const n=[];let r=0,o=!1;for(let i=0;i<e.length;i++)","!==e[i]||o?t.test(e[i])&&(o=!o):(n.push(e.slice(r,i).trim()),r=i+1);return n.push(e.slice(Math.max(0,r)).trim()),n})(e))),n.filter((e=>""!==e))})(e).filter((e=>!/^[\s,,]+$/.test(e))).filter(Boolean).sort(((e,t)=>e.includes("<")&&!t.includes("<")?1:t.includes("<")&&!e.includes("<")?-1:0))},createButton(e,t,n){const r=document.createElement("button");return r.id=e,r.type="button",r.innerHTML=t,r.title="Format prompt~🪄",r.className="lg secondary gradio-button tool svelte-cmf5ev",r.addEventListener("click",n),r},dispatchInputEvent(e){let t=new Event("input");Object.defineProperty(t,"target",{value:e}),e.dispatchEvent(t)},onClickConvert(e){const t=gradioApp().querySelector(`#${e}_prompt > label > textarea`),n=Tee.convert(t.value);t.value=null===n.match(/^masterpiece, best quality,/)?""+n:n,Tee.dispatchInputEvent(t);const r=gradioApp().querySelector(`#${e}_neg_prompt > label > textarea`),o=Tee.convert(r.value);r.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,Tee.dispatchInputEvent(r)},round:e=>Math.round(1e4*e)/1e4},Fee=e=>{const t=e;return t.className=t.text.includes("<lora")?"ReactTags__lora":t.text.includes("<hypernet")?"ReactTags__hypernet":t.text.includes("<embedding")?"ReactTags__embedding":void 0,t},Aee=uF((({css:e,token:t},n)=>e`
|
||
.autocompleteResults {
|
||
left: 16px !important;
|
||
min-width: 200px !important;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
/* Styles for the input */
|
||
.ReactTags__editTagInput,
|
||
.ReactTags__tagInput {
|
||
display: inline-block;
|
||
width: 100%;
|
||
margin: 0;
|
||
|
||
input {
|
||
position: relative;
|
||
|
||
display: block;
|
||
|
||
width: 100%;
|
||
margin: 0;
|
||
padding: var(--input-padding);
|
||
|
||
color: ${"positive"===n?t.colorSuccessTextHover:t.colorErrorTextHover};
|
||
|
||
background: ${t.colorFillTertiary};
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadius}px;
|
||
|
||
&:focus {
|
||
color: ${"positive"===n?t.colorSuccessText:t.colorErrorText};
|
||
background: ${t.colorFillSecondary};
|
||
border: 1px solid ${t.colorBorder};
|
||
outline: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Styles for selected tags */
|
||
.ReactTags__tags.react-tags-wrapper {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.ReactTags__selected {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
|
||
span.ReactTags__tag {
|
||
position: relative;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
|
||
padding: 6px 6px 6px 8px;
|
||
|
||
font-size: 13px;
|
||
color: ${"positive"===n?t.colorSuccessTextHover:t.colorErrorTextHover};
|
||
|
||
background: ${t.colorFillSecondary};
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadius}px;
|
||
|
||
&:hover {
|
||
color: ${"positive"===n?t.colorSuccessText:t.colorErrorText};
|
||
background: ${t.colorFill};
|
||
border: 1px solid ${t.colorBorder};
|
||
}
|
||
}
|
||
|
||
a.ReactTags__remove {
|
||
cursor: pointer;
|
||
margin-left: 5px;
|
||
color: #aaa;
|
||
}
|
||
}
|
||
|
||
.ReactTags__remove {
|
||
cursor: pointer;
|
||
color: ${t.colorTextDescription};
|
||
background: none;
|
||
border: none;
|
||
|
||
&:hover {
|
||
color: ${t.colorText};
|
||
}
|
||
}
|
||
`)),Ree=Hq,Mee=[188,13],Lee=Zb.memo((({tags:e,setTags:t,type:n,setValue:r})=>{const o=`${n}_tag_editor`,[i,a]=Zb.useState(!1),{styles:s}=Aee(n),l=Zb.useCallback((n=>{const o=e.filter(((e,t)=>t!==n));t(o),r(o)}),[e]),c=Zb.useCallback((n=>{const o=[...e,Fee(n)];t(o),r(o)}),[e]),u=Zb.useCallback(((n,o,i)=>{const a=[...e];a.splice(o,1),a.splice(i,0,Fee(n)),t(a),r(a)}),[e]),d=Zb.useCallback(((n,o)=>{const i=[...e];i[n]=Fee(o),t(i),r(i)}),[e]);return Zb.useEffect((()=>{try{if(!addAutocompleteToArea||i)return;let e=0;const t=setInterval((()=>{if(i||e>10){const e=document.querySelector(`#${o}`);e&&(a(!0),addAutocompleteToArea(e),clearInterval(t))}e++}),1e3)}catch(e){}}),[i]),ay.jsx("div",{className:s,children:ay.jsx(Ree,{delimiters:Mee,editable:!0,handleAddition:c,handleDelete:l,handleDrag:u,id:o,inline:!0,inputFieldPosition:"bottom",onTagUpdate:d,tags:e})})})),Bee=Zb.memo((({type:e})=>{const[t,n]=Zb.useState([]),{styles:r}=j9(),{t:o}=$g(),i="positive"===e?"[id$='2img_prompt'] textarea":"[id$='2img_neg_prompt'] textarea",a=Zb.useCallback((()=>{try{const e=get_uiCurrentTabContent().querySelector(i);e&&n((e=>{const t=Tee.convertStr(e);return Tee.convertStr2Array(t).map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/,|\.\|。/g,",").replaceAll(/“|‘|”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return Tee.convertStr2Array(t).join(", ")})).map((e=>Fee({id:e,text:e})))})(e.value))}catch(e){}}),[]),s=Zb.useCallback((()=>{try{const e=t.map((e=>e.text)).join(", "),n=get_uiCurrentTabContent().querySelector(i);n&&(n.value=e),updateInput(n)}catch(e){}}),[t,e]),l=Zb.useCallback((e=>{try{const t=get_uiCurrentTabContent().querySelector(i);t&&(t.value=e.map((e=>e.text)).join(", ")),updateInput(t)}catch(t){}}),[]);return ay.jsxs("div",{className:r.promptView,children:[ay.jsx(Lee,{setTags:n,setValue:l,tags:t,type:e}),ay.jsxs("div",{className:r.buttonGroup,children:[ay.jsx("button",{className:"lg secondary gradio-button tool svelte-1ipelgc",onClick:a,title:o("loadPrompt"),type:"button",children:"🔄"}),ay.jsx("button",{className:"lg secondary gradio-button tool svelte-1ipelgc",onClick:s,title:o("setPrompt"),type:"button",children:"➡️"})]})]})})),zee=Bee,Hee=Zb.memo((()=>{const{styles:e}=j9(),{t:t}=$g();return ay.jsxs("div",{className:e.view,children:[ay.jsx("span",{style:{marginBottom:-10},children:t("positive")}),ay.jsx(zee,{type:"positive"}),ay.jsx("span",{style:{marginBottom:-10},children:t("negative")}),ay.jsx(zee,{type:"negative"})]})})),Wee=Hee,Uee={dark:{colorPrimary:"#007AFF",colorPrimaryActive:"#1554ad",colorPrimaryBg:"#111a2c",colorPrimaryBgHover:"#112545",colorPrimaryBorder:"#15325b",colorPrimaryBorderHover:"#15417e",colorPrimaryHover:"#3c89e8",colorPrimaryText:"#1668dc",colorPrimaryTextActive:"#1554ad",colorPrimaryTextHover:"#3c89e8"},light:{colorPrimary:"#007AFF",colorPrimaryActive:"#0958d9",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorPrimaryTextHover:"#4096ff"}},Vee={dark:{colorBgContainer:"#1f1f1f",colorBgElevated:"#222",colorBgLayout:"#181818",colorBgSpotlight:"#444",colorBorder:"#444",colorBorderSecondary:"#333",colorFill:"rgb(255 255 255 / 18%)",colorFillQuaternary:"rgb(255 255 255 / 4%)",colorFillSecondary:"rgb(255 255 255 / 12%)",colorFillTertiary:"rgb(255 255 255 / 8%)",colorNeutral:"#666",colorText:"rgb(255 255 255 / 85%)",colorTextQuaternary:"rgb(255 255 255 / 25%)",colorTextSecondary:"rgb(255 255 255 / 65%)",colorTextTertiary:"rgb(255 255 255 / 45%)"},light:{colorBgContainer:"#fff",colorBgElevated:"#fff",colorBgLayout:"#f7f7f7",colorBgSpotlight:"rgb(0 0 0 / 85%)",colorBorder:"#ddd",colorBorderSecondary:"#eee",colorFill:"rgb(0 0 0 / 15%)",colorFillQuaternary:"rgb(0 0 0 / 2%)",colorFillSecondary:"rgb(0 0 0 / 6%)",colorFillTertiary:"rgb(0 0 0 / 4%)",colorNeutral:"#666",colorText:"rgb(0 0 0 / 88%)",colorTextQuaternary:"rgb(0 0 0 / 25%)",colorTextSecondary:"rgb(0 0 0 / 65%)",colorTextTertiary:"rgb(0 0 0 / 45%)"}},Gee={kitchen:Uee.dark.colorPrimary,...sU},qee=[Gee.kitchen,...lU],Xee={kitchen:Vee.dark.colorNeutral,...cU},Kee=[Xee.kitchen,...uU],Yee=(e,t)=>{if(!t)return"";let n=Object.entries("primary"===e?Gee:Xee).find((e=>e[1]===t));return null==n?void 0:n[0]},Qee=uF((({css:e,responsive:t})=>e`
|
||
${t.mobile} {
|
||
.ant-row.ant-form-item-row {
|
||
flex-direction: column !important;
|
||
}
|
||
}
|
||
`)),Jee=Zb.memo((()=>{const e=w9(b9,O6),{onSetSetting:t,localeOptions:n}=w9((e=>({localeOptions:e.localeOptions,onSetSetting:e.onSetSetting})),ki),[r,o]=Zb.useState(e),[i,a]=Zb.useState(e.primaryColor||void 0),[s,l]=Zb.useState(e.neutralColor||void 0),{styles:c}=Qee(),{t:u}=$g(),d=Zb.useCallback((()=>{t(f9),location.reload()}),[]),p=Zb.useCallback((e=>{t({...e,neutralColor:s,primaryColor:i}),location.reload()}),[i,s]),f=Zb.useMemo((()=>({children:[{children:ay.jsx(_1,{options:n}),desc:u("settingLanguageDesc"),label:u("settingLanguage"),name:"i18n"},{children:ay.jsx(I3,{}),desc:u("settingReduceAnimationDesc"),label:u("settingReduceAnimation"),name:"liteAnimation",valuePropName:"checked"},{children:ay.jsx(q6,{activeColor:i?Gee[i]:void 0,colors:qee,onSelect:e=>a(Yee("primary",e))}),desc:u("settingPrimaryColorDesc"),label:u("settingPrimaryColor")},{children:ay.jsx(q6,{activeColor:s?Xee[s]:void 0,colors:Kee,onSelect:e=>l(Yee("neutral",e))}),desc:u("settingNeutralColorDesc"),label:u("settingNeutralColor")},{children:ay.jsx(b3,{options:[{label:u("lobe"),value:"lobe"},{label:u("kitchen"),value:"kitchen"},{label:u("custom"),value:"custom"}]}),desc:u("settingLogoTypeDesc"),label:u("settingLogoType"),name:"logoType"},{children:ay.jsx(i4,{}),desc:u("settingCustomLogoDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomLogo"),name:"logoCustomUrl"},{children:ay.jsx(i4,{}),desc:u("settingCustomTitleDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomTitle"),name:"logoCustomTitle"},{children:ay.jsx(O9,{logoCustomTitle:r.logoCustomTitle,logoCustomUrl:r.logoCustomUrl}),divider:!1,hidden:"custom"!==r.logoType,label:u("settingLogoPreview")},{children:ay.jsx(I3,{}),desc:u("settingSvgIconsDesc"),label:u("settingSvgIcons"),name:"svgIcon",valuePropName:"checked"},{children:ay.jsx(I3,{}),desc:u("settingCustomFontDesc"),label:u("settingCustomFont"),name:"enableWebFont",valuePropName:"checked"}],icon:iY,title:u("settingGroupTheme")})),[i,s,r.logoType,r.logoCustomTitle,r.logoCustomUrl]),h=Zb.useMemo((()=>({children:[{children:ay.jsx(b3,{options:[{label:u("scroll"),value:"scroll"},{label:u("resizable"),value:"resizable"}]}),desc:u("settingPromptDisplayModeDesc"),label:u("settingPromptDisplayMode"),name:"promptTextareaType"},{children:ay.jsx(I3,{}),desc:u("settingPromptHighlightDesc"),label:u("settingPromptHighlight"),name:"enableHighlight",valuePropName:"checked"},{children:ay.jsx(I3,{}),desc:u("settingPromptEditorDesc"),label:u("settingPromptEditor"),name:"promptEditor",valuePropName:"checked"}],icon:fY,title:u("settingGroupPromptTextarea")})),[]),g=Zb.useMemo((()=>({children:[{children:ay.jsx(I3,{}),desc:u("settingSplitPreviewerDesc"),label:u("settingSplitPreviewer"),name:"layoutSplitPreview",valuePropName:"checked"},{children:ay.jsx(I3,{}),desc:u("settingHideFooterDesc"),label:u("settingHideFooter"),name:"layoutHideFooter",valuePropName:"checked"}],icon:tY,title:u("settingGroupLayout")})),[]),m=Zb.useMemo((()=>({children:[{children:ay.jsx(I3,{}),desc:u("settingQuickSettingSidebarEnableDesc"),label:u("settingQuickSettingSidebarEnable"),name:"enableSidebar",valuePropName:"checked"},{children:ay.jsx(I3,{}),desc:u("settingQuickSettingSidebarDefaultExpandDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultExpand"),name:"sidebarExpand",valuePropName:"checked"},{children:ay.jsx(b3,{options:[{label:u("fixed"),value:"fixed"},{label:u("float"),value:"float"}]}),desc:u("settingQuickSettingSidebarDisplayModeDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDisplayMode"),name:"sidebarFixedMode"},{children:ay.jsx(U5,{}),desc:u("settingQuickSettingSidebarDefaultWidthDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultWidth"),name:"sidebarWidth"}],icon:aY,title:u("settingGroupQuickSettingSidebar")})),[r.enableSidebar]),b=Zb.useMemo((()=>({children:[{children:ay.jsx(I3,{}),desc:u("settingExtraNetworkSidebarEnableDesc"),label:u("settingExtraNetworkSidebarEnable"),name:"enableExtraNetworkSidebar",valuePropName:"checked"},{children:ay.jsx(b3,{options:[{label:u("fixed"),value:"fixed"},{label:u("float"),value:"float"}]}),desc:u("settingExtraNetworkSidebarDisplayModeDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDisplayMode"),name:"extraNetworkFixedMode"},{children:ay.jsx(I3,{}),desc:u("settingExtraNetworkSidebarDefaultExpandDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultExpand"),name:"extraNetworkSidebarExpand",valuePropName:"checked"},{children:ay.jsx(U5,{}),desc:u("settingExtraNetworkSidebarDefaultWidthDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultWidth"),name:"extraNetworkSidebarWidth"},{children:ay.jsx(U5,{}),desc:u("settingExtraNetworkSidebarDefaultCardSizeDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultCardSize"),name:"extraNetworkCardSize"}],icon:lY,title:u("settingGroupExtraNetworkSidebar")})),[r.enableExtraNetworkSidebar]);return ay.jsx(F6,{className:c,footer:ay.jsxs(ay.Fragment,{children:[ay.jsx(lZ,{htmlType:"button",onClick:d,style:{borderRadius:4},children:u("settingButtonReset")}),ay.jsx(lZ,{htmlType:"submit",style:{borderRadius:4},type:"primary",children:u("settingButtonSubmit")})]}),initialValues:e,items:[f,h,g,m,b],onFinish:p,onValuesChange:(e,t)=>o(t)})})),Zee=Jee,ete=Zb.memo((({open:e,onCancel:t})=>{const{t:n}=$g();return ay.jsx(x6,{footer:!1,onCancel:t,open:e,title:ay.jsxs(uz,{align:"center",gap:4,horizontal:!0,children:[ay.jsx("a",{href:u8,rel:"noreferrer",target:"_blank",children:ay.jsx(n6,{icon:VK,title:"Setting Documents"})}),ay.jsxs(b4,{children:[n("themeSetting"),ay.jsx(x9,{})]})]}),children:ay.jsx(Zee,{})})})),tte=ete,nte="%[a-f0-9]{2}",rte=new RegExp("("+nte+")|([^%]+?)","gi"),ote=new RegExp("("+nte+")+","gi"),ite=e=>null==e,ate=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),ste=Symbol("encodeFragmentIdentifier"),lte=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(e,t,n){return Qm(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:Gm,parse:qm,parseUrl:Km,pick:Qm,stringify:Xm,stringifyUrl:Ym},Symbol.toStringTag,{value:"Module"})),cte=Zb.memo((({children:e})=>{const{onSetThemeMode:t,themeMode:n}=w9((e=>({onInit:e.onInit,onSetThemeMode:e.onSetThemeMode,themeMode:e.themeMode})),ki),r=w9(b9,O6),o=(()=>{const[e,t]=Zb.useState((()=>{try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}})());return Zb.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),n=e=>{t(e.matches)};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}),[]),e})();Zb.useEffect((()=>{const e=String(lte.parseUrl(window.location.href).query.__theme||"");e?(document.body.classList.add(e),t(e)):(document.body.classList.add(o?"dark":"light"),t(o?"dark":"light"))}),[o]);const i=Zb.useCallback((()=>{let e={},t={};return r.primaryColor&&(e="kitchen"===r.primaryColor?Uee[n]:oU({appearance:n,scale:Pz[r.primaryColor],type:"Primary"})),r.neutralColor&&(t="kitchen"===r.neutralColor?Vee[n]:iU({appearance:n,scale:aU[r.neutralColor]})),{...e,...t}}),[r.primaryColor,r.neutralColor,n]);return r&&ay.jsx(Z6,{customToken:i,enableWebfonts:r.enableWebFont,themeMode:n,children:e})})),ute={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console}};class dte{constructor(e,t){this.init(e,arguments.length>1&&void 0!==t?t:{})}init(e,t){let n=arguments.length>1&&void 0!==t?t:{};this.prefix=n.prefix||"i18next:",this.logger=e||ute,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new dte(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new dte(this.logger,e)}}Wq=new dte;class pte{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((e=>{e(...n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}Uq={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const fte=[" ",",","?","!",";"];class hte extends pte{constructor(e,t){let n=arguments.length>1&&void 0!==t?t:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[e,t];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."));const l=nb(this.data,s);return l||!a||"string"!=typeof n?l:ab(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r,o){let i=arguments.length>4&&void 0!==o?o:{silent:!1};const a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),tb(this.data,s,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{silent:!1};for(const i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i){let a=arguments.length>5&&void 0!==i?i:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let l=nb(this.data,s)||{};r?rb(l,n,o):l={...l,...n},tb(this.data,s,l),a.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}Vq={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const gte={};class mte extends pte{constructor(e,t){let n=arguments.length>1&&void 0!==t?t:{};super(),function(e,t,n){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{t[e]&&(n[e]=t[e])}))}(0,e,this),this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Wq.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t){if(null==e)return!1;const n=this.resolve(e,arguments.length>1&&void 0!==t?t:{interpolation:{}});return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=fte.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=new RegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let d=u&&u.res;const p=u&&u.usedKey||i,f=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&"string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?f:p;for(const i in d)if(Object.prototype.hasOwnProperty.call(d,i)){const e=`${r}${o}${i}`;n[i]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[i]===e&&(n[i]=d[i])}d=n}}else if(m&&"string"==typeof g&&"[object Array]"===h)d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,p=mte.hasDefaultValue(t),f=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=t[`defaultValue${f}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=i);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,b=p&&g!==d&&this.options.updateMissing;if(a||r||b){if(this.logger.log(b?"updateKey":"missingKey",l,s,i,b?g:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const o=p&&r!==d?r:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,o,b,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||g)}))})):r(e,i,g))}d=this.extendTranslation(d,e,t,u,n),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Vq.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:r,...n}:n,this)),e}resolve(e,t){let n,r,o,i,a,s=arguments.length>1&&void 0!==t?t:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(n))return;const t=this.extractFromKey(e,s),l=t.key;r=l;let c=t.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==s.count&&"string"!=typeof s.count,d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);c.forEach((e=>{this.isValidLookup(n)||(a=e,!gte[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(gte[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((t=>{if(this.isValidLookup(n))return;i=t;const r=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(r,l,t,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(t,s.count,s));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(r.push(l+e),s.ordinal&&0===e.indexOf(o)&&r.push(l+e.replace(o,this.options.pluralSeparator)),d&&r.push(l+n)),p){const t=`${l}${this.options.contextSeparator}${s.context}`;r.push(t),u&&(r.push(t+e),s.ordinal&&0===e.indexOf(o)&&r.push(t+e.replace(o,this.options.pluralSeparator)),d&&r.push(t+n))}}let a;for(;a=r.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(t,e,a,s))})))}))})),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(e){let t=arguments.length>0&&void 0!==e?e:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&"string"!=typeof t.replace;let o=r?t.replace:t;if(r&&void 0!==t.count&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const e of n)delete o[e]}return o}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class bte{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Wq.create("languageUtils")}getScriptPartFromCode(e){if(!(e=sb(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=sb(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=lb(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=lb(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=lb(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let yte=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],vte={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const wte=["v1","v2","v3"],xte=["v4"],kte={zero:0,one:1,two:2,few:3,many:4,other:5};class Ste{constructor(e,t){let n=arguments.length>1&&void 0!==t?t:{};this.languageUtils=e,this.options=n,this.logger=Wq.create("pluralResolver"),this.options.compatibilityJSON&&!xte.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return yte.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:vte[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e,t){let n=arguments.length>1&&void 0!==t?t:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(sb(e),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e,t){const n=this.getRule(e,arguments.length>1&&void 0!==t?t:{});return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t,n){return this.getSuffixes(e,arguments.length>2&&void 0!==n?n:{}).map((e=>`${t}${e}`))}getSuffixes(e,t){let n=arguments.length>1&&void 0!==t?t:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(((e,t)=>kte[e]-kte[t])).map((e=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):r.numbers.map((t=>this.getSuffix(e,t,n))):[]}getSuffix(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=this.getRule(e,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:this.getSuffixRetroCompatible(o,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.plurals(e.noAbs?t:Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!wte.includes(this.options.compatibilityJSON)}}class Cte{constructor(e){let t=arguments.length>0&&void 0!==e?e:{};this.logger=Wq.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(e=>e),this.init(t)}init(e){let t=arguments.length>0&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=void 0!==n.escape?n.escape:ib,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?ob(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ob(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ob(n.nestingPrefix):n.nestingPrefixEscaped||ob("$t("),this.nestingSuffix=n.nestingSuffix?ob(n.nestingSuffix):n.nestingSuffixEscaped||ob(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){this.regexp=new RegExp(`${this.prefix}(.+?)${this.suffix}`,"g"),this.regexpUnescape=new RegExp(`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`,"g"),this.nestingRegexp=new RegExp(`${this.nestingPrefix}(.+?)${this.nestingSuffix}`,"g")}interpolate(e,t,n,r){function o(e){return e.replace(/\$/g,"$$$$")}let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=cb(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(cb(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>o(e)},{regex:this.regexp,safeValue:e=>o(this.escapeValue?this.escape(e):e)}].forEach((t=>{for(s=0;i=t.regex.exec(e);){const n=i[1].trim();if(a=c(n),void 0===a)if("function"==typeof u){const t=u(e,i,r);a="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(d){a=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=""}else"string"==typeof a||this.useRawValueToEscape||(a=Zm(a));const o=t.safeValue(a);if(e=e.replace(i[0],o),d?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}})),e}nest(e,t,n){function r(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,a);const i=o.match(/'/g),s=o.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a={...t,...a})}catch(GX){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,GX),`${e}${n}${o}`}return delete a.defaultValue,e}let o,i,a,s=arguments.length>2&&void 0!==n?n:{};for(;o=this.nestingRegexp.exec(e);){let n=[];a={...s},a=a.replace&&"string"!=typeof a.replace?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){const e=o[1].split(this.formatSeparator).map((e=>e.trim()));o[1]=e.shift(),n=e,l=!0}if(i=t(r.call(this,o[1].trim(),a),a),i&&o[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=Zm(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),l&&(i=n.reduce(((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:o[1].trim()})),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}class Ete{constructor(e){let t=arguments.length>0&&void 0!==e?e:{};this.logger=Wq.create("formatter"),this.options=t,this.formats={number:ub(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:ub(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:ub(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:ub(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:ub(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(t)}init(e,t){const n=(arguments.length>1&&void 0!==t?t:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ub(t)}format(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:r,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[r]){let t=e;try{const a=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{};t=this.formats[r](e,a.locale||a.lng||o.locale||o.lng||n,{...i,...o,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${r}`),e}),e)}}class Dte extends pte{constructor(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=Wq.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(e,t,n,r){const o={},i={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n){const{obj:r,k:o}=eb(e,t,Object);r[o]=r[o]||[],r[o].push(n)}(n.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n,r,o,i){let a=arguments.length>3&&void 0!==r?r:0,s=arguments.length>4&&void 0!==o?o:this.retryTimeout,l=arguments.length>5?i:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:a,wait:s,callback:l});this.readingCalls++;const c=(r,o)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}r&&o&&a<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,a+1,2*s,l)}),s):l(r,o)},u=this.backend[n].bind(this.backend);if(2!==u.length)return u(e,t,c);try{const n=u(e,t);n&&"function"==typeof n.then?n.then((e=>c(null,e))).catch(c):c(null,n)}catch(d){c(d)}}prepareLoading(e,t,n,r){let o=arguments.length>2&&void 0!==n?n:{},i=arguments.length>3?r:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const a=this.queueLoad(e,t,o,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t){let n=arguments.length>1&&void 0!==t?t:"";const r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,((t,r)=>{t&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,t),!t&&r&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,r),this.loaded(e,t,r)}))}saveMissing(e,t,n,r,o,i,a){let s=arguments.length>5&&void 0!==i?i:{},l=arguments.length>6&&void 0!==a?a:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const i={...s,isUpdate:o},a=this.backend.create.bind(this.backend);if(a.length<6)try{let o;o=5===a.length?a(e,t,n,r,i):a(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>l(null,e))).catch(l):l(null,o)}catch(c){l(c)}else a(e,t,n,r,l,i)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}class Ote extends pte{constructor(e,t){let n=arguments.length>0&&void 0!==e?e:{},r=arguments.length>1?t:void 0;var o;if(super(),this.options=pb(n),this.services={},this.logger=Wq,this.modules={external:[]},o=this,Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((e=>{"function"==typeof o[e]&&(o[e]=o[e].bind(o))})),r&&!this.isInitialized&&!n.isClone){if(!this.options.initImmediate)return this.init(n,r),this;setTimeout((()=>{this.init(n,r)}),0)}}init(e,t){function n(e){return e?"function"==typeof e?new e:e:null}var r=this;let o=arguments.length>0&&void 0!==e?e:{},i=arguments.length>1?t:void 0;"function"==typeof o&&(i=o,o={}),!o.defaultNS&&!1!==o.defaultNS&&o.ns&&("string"==typeof o.ns?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const a=db();if(this.options={...a,...this.options,...pb(o)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),void 0!==o.keySeparator&&(this.options.userDefinedKeySeparator=o.keySeparator),void 0!==o.nsSeparator&&(this.options.userDefinedNsSeparator=o.nsSeparator),!this.options.isClone){let e;Wq.init(this.modules.logger?n(this.modules.logger):null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=Ete);const t=new bte(this.options);this.store=new hte(this.options.resources,this.options);const o=this.services;o.logger=Wq,o.resourceStore=this.store,o.languageUtils=t,o.pluralResolver=new Ste(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format||(o.formatter=n(e),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new Cte(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new Dte(n(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r.emit(e,...n)})),this.modules.languageDetector&&(o.languageDetector=n(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=n(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new mte(this.services,this.options),this.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r.emit(e,...n)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,i||(i=fb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return r.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return r.store[e](...arguments),r}}));const s=Jm(),l=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),i(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}loadResources(e,t){let n=arguments.length>1&&void 0!==t?t:fb;const r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>t(e))),this.options.preload&&this.options.preload.forEach((e=>t(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)}))}else n(null)}reloadResources(e,t,n){const r=Jm();return e||(e=this.languages),t||(t=this.options.ns),n||(n=fb),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Vq.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=Jm();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{i(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,i.keyPrefix=i.keyPrefix||n||o.keyPrefix;const c=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t){let n=arguments.length>1&&void 0!==t?t:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(n.precheck){const e=n.precheck(this,a);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}loadNamespaces(e,t){const n=Jm();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Jm();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new bte(db());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e,t){return new Ote(arguments.length>0&&void 0!==e?e:{},arguments.length>1?t:void 0)}cloneInstance(e,t){let n=arguments.length>0&&void 0!==e?e:{},r=arguments.length>1&&void 0!==t?t:fb;const o=n.forkResourceStore;o&&delete n.forkResourceStore;const i={...this.options,...n,isClone:!0},a=new Ote(i);return void 0===n.debug&&void 0===n.prefix||(a.logger=a.logger.clone(n)),["store","services","language"].forEach((e=>{a[e]=this[e]})),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},o&&(a.store=new hte(this.store.data,i),a.services.resourceStore=a.store),a.translator=new mte(a.services,i),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit(e,...n)})),a.init(i,r),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _te=Ote.createInstance();_te.createInstance=Ote.createInstance,qq=(Gq=[]).forEach,Xq=Gq.slice,Yq={exports:{}},function(e,t){var n,r;"function"==typeof fetch&&(n=void 0!==mK&&mK.fetch?mK.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),void 0===bb||"undefined"!=typeof window&&void 0!==window.document||((r=n||function(){return Qq||(Qq=1,e=Yq,t=Yq.exports,o="undefined"!=typeof self?self:mK,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}(),r=i,function(e){function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function o(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return w&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function a(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function s(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function l(e){var t=new FileReader,n=s(t);return t.readAsArrayBuffer(e),n}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:x&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:k&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:v&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():S&&x&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S&&(ArrayBuffer.prototype.isPrototypeOf(e)||m(e))?this._bodyArrayBuffer=c(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},x&&(this.blob=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?a(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(l)}),this.text=function(){var e,t,n,r=a(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=s(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){var t,n=new Uint8Array(e),r=new Array(n.length);for(t=0;t<n.length;t++)r[t]=String.fromCharCode(n[t]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},k&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(e,t){var n,r,o=(t=t||{}).body;if(e instanceof d){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function p(e){var t=new FormData;return e.trim().split("&").forEach((function(e){var n,r,o;e&&(r=(n=e.split("=")).shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," "),t.append(decodeURIComponent(r),decodeURIComponent(o)))})),t}function f(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}function h(t,n){return new Promise((function(r,o){function a(){s.abort()}var s,l=new d(t,n);if(l.signal&&l.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));(s=new XMLHttpRequest).onload=function(){var e,t,n,o={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new i,n=e.replace(/\r?\n[\t ]+/g," "),n.split(/\r?\n/).forEach((function(e){var n,r=e.split(":"),o=r.shift().trim();o&&(n=r.join(":").trim(),t.append(o,n))})),t)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL"),r(new f("response"in s?s.response:s.responseText,o))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(l.method,l.url,!0),"include"===l.credentials?s.withCredentials=!0:"omit"===l.credentials&&(s.withCredentials=!1),"responseType"in s&&x&&(s.responseType="blob"),l.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),l.signal&&(l.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&l.signal.removeEventListener("abort",a)}),s.send(void 0===l._bodyInit?null:l._bodyInit)}))}var g,m,b,y,v="URLSearchParams"in r,w="Symbol"in r&&"iterator"in Symbol,x="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(GX){return!1}}(),k="FormData"in r,S="ArrayBuffer"in r;S&&(g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1}),i.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+", "+r:r},i.prototype.delete=function(e){delete this.map[t(e)]},i.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},i.prototype.set=function(e,r){this.map[t(e)]=n(r)},i.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},i.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),o(e)},i.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),o(e)},i.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),o(e)},w&&(i.prototype[Symbol.iterator]=i.prototype.entries),b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},u.call(d.prototype),u.call(f.prototype),f.prototype.clone=function(){return new f(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},f.error=function(){var e=new f(null,{status:0,statusText:""});return e.type="error",e},y=[301,302,303,307,308],f.redirect=function(e,t){if(-1===y.indexOf(t))throw new RangeError("Invalid status code");return new f(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(C){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}h.polyfill=!0,r.fetch||(r.fetch=h,r.Headers=i,r.Request=d,r.Response=f),e.Headers=i,e.Request=d,e.Response=f,e.fetch=h,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill,(t=(n=i).fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t),Yq.exports;var e,t,n,r,o,i}()).default&&(r=r.default),t.default=r,e.exports=t.default)}(Kq={exports:{}},Kq.exports);const $te=t(Jq=Kq.exports),jte=e({__proto__:null,default:$te},[Jq]);"function"==typeof fetch&&(Zq="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),mb()&&("undefined"!=typeof global&&global.XMLHttpRequest?eX=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(eX=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?tX=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(tX=window.ActiveXObject)),Zq||!jte||eX||tX||(Zq=$te||jte),"function"!=typeof Zq&&(Zq=void 0),nX=function(e,t){var n,r;if(t&&"object"===yb(t)){for(r in n="",t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},rX=function(e,t,n){var r=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then((function(t){n(null,{status:e.status,data:t})})).catch(n)};"function"==typeof fetch?fetch(e,t).then(r).catch(n):Zq(e,t).then(r).catch(n)},oX=!1,iX=function(e,t,n,r){var o,i,a;e.queryStringParams&&(t=nX(t,e.queryStringParams)),o=gb({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders),n&&(o["Content-Type"]="application/json"),i="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=gb({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},oX?{}:i);try{rX(t,a,r)}catch(GX){if(!i||0===Object.keys(i).length||!GX.message||GX.message.indexOf("not implemented")<0)return r(GX);try{Object.keys(i).forEach((function(e){delete a[e]})),rX(t,a,r),oX=!0}catch(s){r(s)}}},aX=function(e,t,n,r){var o,i,a;n&&"object"===yb(n)&&(n=nX("",n).slice(1)),e.queryStringParams&&(t=nX(t,e.queryStringParams));try{if((o=eX?new eX:new tX("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json"),i="function"==typeof(i=e.customHeaders)?i():i)for(a in i)o.setRequestHeader(a,i[a]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(GX){console}},sX=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Zq&&0!==t.indexOf("file:")?iX(e,t,n,r):mb()||"function"==typeof ActiveXObject?aX(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))},lX=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return function(e,t,n){return(t=wb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n||"")},parseLoadPayload:function(){},request:sX,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},(cX=function(){function e(t,n,r){var o=arguments.length>1&&void 0!==n?n:{},i=arguments.length>2&&void 0!==r?r:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=o,this.allOptions=i,this.type="backend",this.init(t,o,i)}var t,n;return t=e,n=[{key:"init",value:function(e,t,n){var r=this,o=arguments.length>1&&void 0!==t?t:{},i=arguments.length>2&&void 0!==n?n:{};this.services=e,this.options=gb(o,this.options||{},lX()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval((function(){return r.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var i,a=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=function(e){return!!e&&"function"==typeof e.then}(i=s)?i:Promise.resolve(i)).then((function(i){if(!i)return o(null,{});var s=a.services.interpolator.interpolate(i,{lng:e.join("+"),ns:n.join("+")});a.loadUrl(s,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this,i=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof r?[r]:r);this.options.request(this.options,e,i,(function(i,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&i&&i.message&&i.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+i.message,!0);if(i)return t(i,!1);var s,l;try{s="string"==typeof a.data?o.options.parse(a.data,n,r):a.data}catch(GX){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,o){var i,a,s,l,c=this;this.options.addPath&&("string"==typeof e&&(e=[e]),i=this.options.parsePayload(t,n,r),a=0,s=[],l=[],e.forEach((function(n){var r,u=c.options.addPath;"function"==typeof c.options.addPath&&(u=c.options.addPath(n,t)),r=c.services.interpolator.interpolate(u,{lng:n,ns:t}),c.options.request(c.options,r,i,(function(t,n){a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)}))})))}},{key:"reload",value:function(){var e,t,n=this,r=this.services,o=r.backendConnector,i=r.languageUtils,a=r.logger,s=o.language;s&&"cimode"===s.toLowerCase()||(e=[],(t=function(t){i.toResolveHierarchy(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})(s),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return t(e)})),e.forEach((function(e){n.allOptions.ns.forEach((function(t){o.read(e,t,"read",null,null,(function(n,r){n&&a.warn("loading namespace ".concat(t," for language ").concat(e," failed"),n),!n&&r&&a.log("loaded namespace ".concat(t," for language ").concat(e),r),o.loaded("".concat(e,"|").concat(t),n,r)}))}))})))}}],n&&function(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wb(r.key),r)}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()).type="backend";const Nte=JSON.parse(localStorage.getItem(g9));_te.use(s8).use(cX).init({backend:{loadPath:"/lobe/locales/{{lng}}"},debug:!1,fallbackLng:"en_US",lng:(null==Nte?void 0:Nte.i18n)||"en_US"});const Pte=uF((({css:e,token:t,cx:n,stylish:r,prefixCls:o})=>{const i=`${o}-highlighter`;return{container:e`
|
||
pointer-events: none;
|
||
|
||
position: absolute;
|
||
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
|
||
padding: 8px;
|
||
|
||
pre {
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
font-size: 13px !important;
|
||
line-height: 1.5 !important;
|
||
color: ${t.colorSuccess};
|
||
text-overflow: ellipsis !important;
|
||
word-wrap: break-word;
|
||
white-space: pre-wrap;
|
||
vertical-align: bottom !important;
|
||
}
|
||
`,loading:n(r.blur,e`
|
||
position: absolute;
|
||
z-index: 10;
|
||
top: 0;
|
||
right: 0;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
height: 34px;
|
||
padding: 0 8px;
|
||
|
||
font-family: ${t.fontFamilyCode};
|
||
color: ${t.colorTextTertiary};
|
||
|
||
border-radius: ${t.borderRadius};
|
||
`),shiki:n(`${i}-shiki`,e`
|
||
margin: 0;
|
||
padding: 0;
|
||
|
||
.shiki {
|
||
overflow-x: auto;
|
||
margin: 0;
|
||
padding: 0;
|
||
background: none !important;
|
||
}
|
||
`)}}));"undefined"!=typeof globalThis?globalThis:void 0!=={}||("undefined"!=typeof global?global:"undefined"!=typeof self&&self),VX=()=>{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 i=null,a=!1;class s{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const o=e.charCodeAt(n);let i=o,a=!1;if(o>=55296&&o<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(i=65536+(o-55296<<10)|t-56320,a=!0)}t+=i<=127?1:i<=2047?2:i<=65535?3:4,a&&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 i=r?new Uint32Array(n+1):null;r&&(i[n]=t);const a=new Uint8Array(n);let l=0;for(let s=0;s<t;s++){const n=e.charCodeAt(s);let c=n,u=!1;if(n>=55296&&n<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?i[l+0]=s:c<=2047?(i[l+0]=s,i[l+1]=s):c<=65535?(i[l+0]=s,i[l+1]=s,i[l+2]=s):(i[l+0]=s,i[l+1]=s,i[l+2]=s,i[l+3]=s)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(1984&c)>>>6,a[l++]=128|(63&c)>>>0):c<=65535?(a[l++]=224|(61440&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0):(a[l++]=240|(1835008&c)>>>18,a[l++]=128|(258048&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}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,!i)throw new Error("Must invoke loadWASM first.");this._onigBinding=i,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=i._omalloc(1e4)),l._sharedPtrInUse=!0,i.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(i)}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(!i)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let l=0,c=e.length;l<c;l++){const r=new s(e[l]);t[l]=r.createString(i),n[l]=r.utf8Length}const r=i._omalloc(4*e.length);i.HEAPU32.set(t,r/4);const o=i._omalloc(4*e.length);i.HEAPU32.set(n,o/4);const a=i._createOnigScanner(r,o,e.length);for(let s=0,l=e.length;s<l;s++)i._ofree(t[s]);i._ofree(o),i._ofree(r),0===a&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(i),this._onigBinding=i,this._ptr=a}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=a,o=0;if("number"==typeof n?(8&n&&(r=!0),o=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,r,o);return e.dispose(),n}return this._findNextMatchSync(e,t,r,o)}_findNextMatchSync(e,t,n,r){const o=this._onigBinding;let i;if(i=n?o._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):o._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r),0===i)return null;const a=o.HEAPU32;let s=i/4;const l=a[s++],c=a[s++];let u=[];for(let d=0;d<c;d++){const t=e.convertUtf8OffsetToUtf16(a[s++]),n=e.convertUtf8OffsetToUtf16(a[s++]);u[d]={start:t,end:n,length:n-t}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,d=null;t.loadWASM=function(e){if(u)return d;let t,n,r,a;if(u=!0,"function"==typeof e.instantiator)t=e.instantiator,n=e.print;else{let r;void 0===e.data?r=e:(r=e.data,n=e.print),s=r,t="undefined"!=typeof Response&&s instanceof Response?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.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 d=new Promise(((e,t)=>{r=e,a=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=>{i=e,n()}))}(t,n,r,a),d},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){a=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document,function(e){function t(e,t,n){var r,o,i,a,s,l,c;for(r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&x)return x.decode(e.subarray(t,o));for(i="";t<o;)128&(a=e[t++])?(s=63&e[t++],192!=(224&a)?(l=63&e[t++],(a=224==(240&a)?(15&a)<<12|s<<6|l:(7&a)<<18|s<<12|l<<6|63&e[t++])<65536?i+=String.fromCharCode(a):(c=a-65536,i+=String.fromCharCode(55296|c>>10,56320|1023&c))):i+=String.fromCharCode((31&a)<<6|s)):i+=String.fromCharCode(a);return i}function n(e){y=e,T.HEAP8=new Int8Array(e),T.HEAP16=new Int16Array(e),T.HEAP32=new Int32Array(e),T.HEAPU8=v=new Uint8Array(e),T.HEAPU16=new Uint16Array(e),T.HEAPU32=w=new Uint32Array(e),T.HEAPF32=new Float32Array(e),T.HEAPF64=new Float64Array(e)}function r(e){T.onAbort&&T.onAbort(e),m(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($)}function i(e){for(;e.length>0;)e.shift()(T)}function a(e){try{return h.grow(e-y.byteLength+65535>>>16),n(h.buffer),1}catch(t){}}function s(e,n){var r=j[e];0===n||10===n?((1===e?g:m)(t(r,0)),r.length=0):r.push(n)}function l(){function e(){N||(N=!0,T.calledRun=!0,b||(i(S),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(),C.unshift(e);var e;i(C)}()))}E>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;i(k)}(),E>0||(T.setStatus?(T.setStatus("Running..."),setTimeout((function(){setTimeout((function(){T.setStatus("")}),1),e()}),1)):e()))}var c,u,d,p,f,h,g,m,b,y,v,w,x,k,S,C,E,D,O,_,$,j,N,P,I,T=void 0!==(e=e||{})?e:{};if(T.ready=new Promise((function(e,t){c=e,u=t})),p=Object.assign({},T),d=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,m=T.printErr||void 0,Object.assign(T,p),p=null,T.wasmBinary&&(f=T.wasmBinary),"object"!=typeof WebAssembly&&r("no native wasm support detected"),b=!1,x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,k=[],S=[],C=[],E=0,D=null,$="data:application/octet-stream;base64,",o(O="onig.wasm")||(I=O,O=T.locateFile?T.locateFile(I,""):""+I),_="undefined"!=typeof dateNow?dateNow:()=>performance.now(),j=[null,[],[]],P={emscripten_get_now:_,emscripten_memcpy_big:function(e,t,n){v.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n,r,o=v.length,i=2147483648;if((e>>>=0)>i)return!1;for(n=1;n<=4;n*=2)if(r=o*(1+.2/n),r=Math.min(r,e+100663296),a(Math.min(i,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0;return!1},fd_write:function(e,t,n,r){var o,i,a,l,c;for(o=0,i=0;i<n;i++){for(a=w[t>>2],l=w[t+4>>2],t+=8,c=0;c<l;c++)s(e,v[a+c]);o+=l}return w[r>>2]=o,0}},function(){function e(e){T.asm=e.exports,n((h=T.asm.memory).buffer),function(e){S.unshift(e)}(T.asm.__wasm_call_ctors),function(){if(E--,T.monitorRunDependencies&&T.monitorRunDependencies(E),0==E&&D){var e=D;D=null,e()}}()}function t(t){e(t.instance)}function i(e){return Promise.resolve().then((function(){return function(e){try{if(e==O&&f)return new Uint8Array(f);if(d)return d(e);throw"both async and sync fetching of the wasm failed"}catch(t){r(t)}}(O)})).then((function(e){return WebAssembly.instantiate(e,a)})).then((function(e){return e})).then(e,(function(e){m("failed to asynchronously prepare wasm: "+e),r(e)}))}var a={env:P,wasi_snapshot_preview1:P};if(E++,T.monitorRunDependencies&&T.monitorRunDependencies(E),T.instantiateWasm)try{return T.instantiateWasm(a,e)}catch(s){m("Module.instantiateWasm callback failed with error: "+s),u(s)}(f||"function"!=typeof WebAssembly.instantiateStreaming||o(O)||"function"!=typeof fetch?i(t):fetch(O,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,a).then(t,(function(e){return m("wasm streaming compile failed: "+e),m("falling back to ArrayBuffer instantiation"),i(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(v,e,n):""},D=function e(){N||l(),N||(D=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,i=t[r];return void 0!==i?i.exports:(o=t[r]={exports:{}},e[r].call(o.exports,o,o.exports,n),o.exports)}(770);var e,t},(uX={exports:{}}).exports=VX(),dX=uX.exports,(pX={exports:{}}).exports=(GX={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!1},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,i,a,s){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,d=n.getFontStyle(e),p=n.getForeground(e),f=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==i&&(d=i),0!==a&&(p=a),0!==s&&(f=s),(l<<0|c<<8|u<<10|d<<11|p<<15|f<<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 i{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 a(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(i.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=i,i._NULL_SCOPE_METADATA=new o(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class a{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,i){const a=c.createMatchers(t,o),s=d.RuleFactory.getCompiledRuleId(n,r,i.repository);for(const o of a)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:i,priority:o.priority})}function o(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let r=n;r<t.length;r++)if(i(t[r],e))return n=r+1,!0;return!1}))}function i(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}function a(e,t){return(e=f.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),d=n(792),p=n(583),f=n(878),h=n(996),g=n(47);t.createGrammar=function(e,t,n,r,o,i,a,s){return new m(e,t,n,r,o,i,a,s)};class m{constructor(e,t,n,r,i,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new h.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=a(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const e=c.createMatchers(a,o);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:i[a]})}}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 i=this._grammarRepository.injections(t);i&&i.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(d.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[d.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]=a(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=d.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.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),i=this.getRule(this._rootId).getName(null,null);let a;a=i?b.createRootAndLookUpScopeName(i,r,this):b.createRoot("unknown",r),t=new y(null,this._rootId,-1,-1,!1,null,a,a)}const i=this.createOnigString(e+="\n"),a=i.content.length,s=new v(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=g._tokenizeString(this,i,o,0,t,s,!0,r);return u.disposeOnigString(i),{lineLength:a,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}t.Grammar=m;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new p.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new p.ScopeStack(null,e),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(t,r,i);return new b(null,o,a)}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,i=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,i=n.backgroundId),l.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,o,i)}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),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(e.tokenAttributes,r,i);return new b(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,n,r,o,i,a,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,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&&y._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(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,i,a){return new y(this,e,t,n,r,o,i,a)}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 y(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=y,y.NULL=new y(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 v{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;e<t.length;e++);}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),void(this._lastTokenEndIndex=t)}const r=e.getScopeNames();if(s.DebugFlags.InDebugMode)for(let o=0;o<r.length;o++);this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&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<o;r++)n[r]=this._binaryTokens[r];return n}}t.LineTokens=v},965:(e,t,n)=>{function r(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof c?i({baseGrammar:s,selfGrammar:a},r):o(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.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]&&a([t.repository[e]],t,n)}function i(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&a(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&a(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function a(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)&&a(r.patterns,{...t,repository:e},n);const d=r.include;if(!d)continue;const p=s(d);switch(p.kind){case 0:i({...t,selfGrammar:t.baseGrammar},n);break;case 1:i(t,n);break;case 2:o(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const a={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===p.kind?o(p.ruleName,a,n):i(a,n)}else n.add(4===p.kind?new u(p.scopeName,p.ruleName):new c(p.scopeName))}}}function s(e){if("$base"===e)return new p;if("$self"===e)return new f;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new m(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 d{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=d,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 d;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 p{constructor(){this.kind=0}}t.BaseReference=p;class f{constructor(){this.kind=1}}t.SelfReference=f;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class m{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}t.TopLevelRepositoryReference=m,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,a,c,f,h){function g(){const i=function(e,t,n,r,i,a){const s=function(e,t,n,r,i,a){const s=i.getRule(e),{ruleScanner:c,findOptions:u}=o(s,e,i.endRule,n,r===a);l.DebugFlags.InDebugMode&&d.performanceNow();const p=c.findNextMatchSync(t,r,u);return l.DebugFlags.InDebugMode&&d.performanceNow(),p?{captureIndices:p.captureIndices,matchedRuleId:p.ruleId}:null}(e,t,n,r,i,a),c=e.getInjections();if(0===c.length)return s;const u=function(e,t,n,r,i,a,s){let l,c=Number.MAX_VALUE,u=null,d=0;const p=a.contentNameScopesList.getScopeNames();for(let f=0,h=e.length;f<h;f++){const a=e[f];if(!a.matcher(p))continue;const h=t.getRule(a.ruleId),{ruleScanner:g,findOptions:m}=o(h,t,null,r,i===s),b=g.findNextMatchSync(n,i,m);if(!b)continue;const y=b.captureIndices[0].start;if(!(y>=c)&&(c=y,u=b.captureIndices,l=b.ruleId,d=a.priority,c===i))break}return u?{priorityMatch:-1===d,captureIndices:u,matchedRuleId:l}:null}(c,e,t,n,r,i,a);if(!u)return s;if(!s)return u;const p=s.captureIndices[0].start,f=u.captureIndices[0].start;return f<p||u.priorityMatch&&f===p?u:s}(e,t,n,r,a,y);if(!i)return c.produce(a,m),void(b=!0);const p=i.captureIndices,f=i.matchedRuleId,h=!!(p&&p.length>0)&&p[0].end>r;if(f===u.endRuleId){const o=a.getRule(e);c.produce(a,p[0].start),a=a.withContentNameScopesList(a.nameScopesList),s(e,t,n,a,c,o.endCaptures,p),c.produce(a,p[0].end);const i=a;if(a=a.parent,y=i.getAnchorPos(),!h&&i.getEnterPos()===r)return c.produce(a=i,m),void(b=!0)}else{const o=e.getRule(f);c.produce(a,p[0].start);const i=a,l=o.getName(t.content,p),d=a.contentNameScopesList.pushAttributed(l,e);if(a=a.push(f,r,y,p[0].end===m,null,d,d),o instanceof u.BeginEndRule){const r=o;s(e,t,n,a,c,r.beginCaptures,p),c.produce(a,p[0].end),y=p[0].end;const l=r.getContentName(t.content,p),u=d.pushAttributed(l,e);if(a=a.withContentNameScopesList(u),r.endHasBackReferences&&(a=a.withEndRule(r.getEndWithResolvedBackReferences(t.content,p))),!h&&i.hasSameRuleAs(a))return a=a.pop(),c.produce(a,m),void(b=!0)}else if(o instanceof u.BeginWhileRule){const r=o;s(e,t,n,a,c,r.beginCaptures,p),c.produce(a,p[0].end),y=p[0].end;const l=r.getContentName(t.content,p),u=d.pushAttributed(l,e);if(a=a.withContentNameScopesList(u),r.whileHasBackReferences&&(a=a.withEndRule(r.getWhileWithResolvedBackReferences(t.content,p))),!h&&i.hasSameRuleAs(a))return a=a.pop(),c.produce(a,m),void(b=!0)}else if(s(e,t,n,a,c,o.captures,p),c.produce(a,p[0].end),a=a.pop(),!h)return a=a.safePop(),c.produce(a,m),void(b=!0)}p[0].end>r&&(r=p[0].end,n=!1)}const m=t.content.length;let b=!1,y=-1;if(f){const o=function(e,t,n,r,o,a){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let i=o;i;i=i.pop()){const t=i.getRule(e);t instanceof u.BeginWhileRule&&c.push({rule:t,stack:i})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:c,findOptions:p}=i(d.rule,e,d.stack.endRule,n,r===l),f=c.findNextMatchSync(t,r,p);if(!f){o=d.stack.pop();break}if(f.ruleId!==u.whileRuleId){o=d.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(a.produce(d.stack,f.captureIndices[0].start),s(e,t,n,d.stack,a,d.rule.whileCaptures,f.captureIndices),a.produce(d.stack,f.captureIndices[0].end),l=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}(e,t,n,r,a,c);a=o.stack,r=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const v=Date.now();for(;!b;){if(0!==h&&Date.now()-v>h)return new p(a,!0);g()}return new p(a,!1)}function o(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:a(r,o)}:{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function i(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:a(r,o)}:{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function a(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function s(e,t,n,o,i,a,s){if(0===a.length)return;const l=t.content,u=Math.min(a.length,s.length),d=[],p=s[0].end;for(let h=0;h<u;h++){const t=a[h];if(null===t)continue;const u=s[h];if(0===u.length)continue;if(u.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=u.start;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?i.produceFromScopes(d[d.length-1].scopes,u.start):i.produce(o,u.start),t.retokenizeCapturedWithRuleId){const a=t.getName(l,s),d=o.contentNameScopesList.pushAttributed(a,e),p=t.getContentName(l,s),f=d.pushAttributed(p,e),h=o.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,f),g=e.createOnigString(l.substring(0,u.end));r(e,g,n&&0===u.start,u.start,h,i,!1,0),c.disposeOnigString(g);continue}const g=t.getName(l,s);if(null!==g){const t=(d.length>0?d[d.length-1].scopes:o.contentNameScopesList).pushAttributed(g,e);d.push(new f(t,u.end))}}for(;d.length>0;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const l=n(350),c=n(44),u=n(792),d=n(878);class p{constructor(e,t){this.stack=e,this.stoppedEarly=t}}t._tokenizeString=r;class f{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=f},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,i=e.pos,a=e.len,s=e.line,l=e.char;for(;;){if(i>=a)return!1;if(r=o.charCodeAt(i),32!==r&&9!==r&&13!==r){if(10!==r)break;i++,s++,l=0}else i++,l++}if(t.offset=i,t.line=s,t.char=l,34===r){for(t.type=1,i++,l++;;){if(i>=a)return!1;if(r=o.charCodeAt(i),i++,l++,92!==r){if(34===r)break}else i++,l++}t.value=o.substring(t.offset+1,i-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,i++,l++;else if(123===r)t.type=3,i++,l++;else if(93===r)t.type=4,i++,l++;else if(125===r)t.type=5,i++,l++;else if(58===r)t.type=6,i++,l++;else if(44===r)t.type=7,i++,l++;else if(110===r){if(t.type=8,i++,l++,r=o.charCodeAt(i),117!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;i++,l++}else if(116===r){if(t.type=9,i++,l++,r=o.charCodeAt(i),114!==r)return!1;if(i++,l++,r=o.charCodeAt(i),117!==r)return!1;if(i++,l++,r=o.charCodeAt(i),101!==r)return!1;i++,l++}else if(102===r){if(t.type=10,i++,l++,r=o.charCodeAt(i),97!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;if(i++,l++,r=o.charCodeAt(i),115!==r)return!1;if(i++,l++,r=o.charCodeAt(i),101!==r)return!1;i++,l++}else for(t.type=11;;){if(i>=a)return!1;if(r=o.charCodeAt(i),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;i++,l++}return t.len=i-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=i,e.line=s,e.char=l,!0}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,a){function s(){h.push(p),g.push(f)}function l(){p=h.pop(),f=g.pop()}function c(e){n(u,e)}let u=new o(e),d=new i,p=0,f=null,h=[],g=[];for(;r(u,d);){if(0===p){if(null!==f&&c("too many constructs in root"),3===d.type){f={},a&&(f.$vscodeTextmateLocation=d.toLocation(t)),s(),p=1;continue}if(2===d.type){f=[],s(),p=4;continue}c("unexpected token in root")}if(2===p){if(5===d.type){l();continue}if(7===d.type){p=3;continue}c("expected , or }")}if(1===p||3===p){if(1===p&&5===d.type){l();continue}if(1===d.type){let e=d.value;if(r(u,d)&&6===d.type||c("expected colon"),r(u,d)||c("expected value"),p=2,1===d.type){f[e]=d.value;continue}if(8===d.type){f[e]=null;continue}if(9===d.type){f[e]=!0;continue}if(10===d.type){f[e]=!1;continue}if(11===d.type){f[e]=parseFloat(d.value);continue}if(2===d.type){let t=[];f[e]=t,s(),p=4,f=t;continue}if(3===d.type){let n={};a&&(n.$vscodeTextmateLocation=d.toLocation(t)),f[e]=n,s(),p=1,f=n;continue}}c("unexpected token in dict")}if(5===p){if(4===d.type){l();continue}if(7===d.type){p=6;continue}c("expected , or ]")}if(4===p||6===p){if(4===p&&4===d.type){l();continue}if(p=5,1===d.type){f.push(d.value);continue}if(8===d.type){f.push(null);continue}if(9===d.type){f.push(!0);continue}if(10===d.type){f.push(!1);continue}if(11===d.type){f.push(parseFloat(d.value));continue}if(2===d.type){let e=[];f.push(e),s(),p=4,f=e;continue}if(3===d.type){let e={};a&&(e.$vscodeTextmateLocation=d.toLocation(t)),f.push(e),s(),p=1,f=e;continue}c("unexpected token in array")}c("unknown state")}return 0!==g.length&&c("unclosed constructs"),f};class o{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class i{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 i=n(391),a=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 i.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const i=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;i.Q.length>0;)await Promise.all(i.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),i.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=i.StateStack.NULL,t.parseRawGrammar=a.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=a.next();const e=r();return t=>!!e&&!e(t)}if("("===s){s=a.next();const e=function(){const e=[];let t=o();for(;t&&(e.push(t),"|"===s||","===s);){do{s=a.next()}while("|"===s||","===s);t=o()}return t=>e.some((e=>e(t)))}();return")"===s&&(s=a.next()),e}if(n(s)){const e=[];do{e.push(s),s=a.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 i=[],a=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=a.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=a.next()}let t=o();if(i.push({matcher:t,priority:e}),","!==s)break;s=a.next()}return i}},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),i=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o.DebugFlags.InDebugMode?i.parseJSON(a,t,!0):JSON.parse(a)):(n=e,o.DebugFlags.InDebugMode?r.parseWithLocation(n,t,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,a}},69:(e,t)=>{function n(e,t,n){function r(t){if(null===n)S+=t;else for(;t>0;)10===e.charCodeAt(S)?(S++,C++,E=0):(S++,E++),t--}function o(e){null===n?S=e:r(e-S)}function i(){for(;S<k;){let t=e.charCodeAt(S);if(32!==t&&9!==t&&13!==t&&10!==t)break;r(1)}}function a(t){return e.substr(S,t.length)===t&&(r(t.length),!0)}function s(t){let n=e.indexOf(t,S);o(-1!==n?n+t.length:k)}function l(t){let n=e.indexOf(t,S);if(-1!==n){let r=e.substring(S,n);return o(n+t.length),r}{let t=e.substr(S);return o(k),t}}function c(e,t){_.push(D),$.push(O),D=e,O=t}function u(){if(0===_.length)return d("illegal state stack");D=_.pop(),O=$.pop()}function d(t){throw new Error("Near offset "+S+": "+t+" ~~~"+e.substr(S,50)+"~~~")}function p(){if(1!==D)return d("unexpected </dict>");u()}function f(){return 1===D||2!==D?d("unexpected </array>"):void u()}function h(e){if(1===D){if(null===j)return d("missing <key>");O[j]=e,j=null}else 2===D?O.push(e):O=e}function g(e){if(isNaN(e))return d("cannot parse float");if(1===D){if(null===j)return d("missing <key>");O[j]=e,j=null}else 2===D?O.push(e):O=e}function m(e){if(isNaN(e))return d("cannot parse integer");if(1===D){if(null===j)return d("missing <key>");O[j]=e,j=null}else 2===D?O.push(e):O=e}function b(e){if(1===D){if(null===j)return d("missing <key>");O[j]=e,j=null}else 2===D?O.push(e):O=e}function y(e){if(1===D){if(null===j)return d("missing <key>");O[j]=e,j=null}else 2===D?O.push(e):O=e}function v(e){if(1===D){if(null===j)return d("missing <key>");O[j]=e,j=null}else 2===D?O.push(e):O=e}function w(){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 x(e){if(e.isClosed)return"";let t=l("</");return s(">"),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 S=0,C=1,E=0;k>0&&65279===e.charCodeAt(0)&&(S=1);let D=0,O=null,_=[],$=[],j=null;const N=function(){if(null===j)return d("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:C,char:E}),O[j]=e,j=null,c(1,e)},P=function(){if(null===j)return d("missing <key>");let e=[];O[j]=e,j=null,c(2,e)},I=function(){let e={};null!==n&&(e[n]={filename:t,line:C,char:E}),O.push(e),c(1,e)},T=function(){let e=[];O.push(e),c(2,e)};for(;S<k&&(i(),!(S>=k));){const o=e.charCodeAt(S);if(r(1),60!==o)return d("expected <");if(S>=k)return d("unexpected end of input");const l=e.charCodeAt(S);if(63===l){r(1),s("?>");continue}if(33===l){if(r(1),a("--")){s("--\x3e");continue}s(">");continue}if(47===l){if(r(1),i(),a("plist")){s(">");continue}if(a("dict")){s(">"),p();continue}if(a("array")){s(">"),f();continue}return d("unexpected closed tag")}let u=w();switch(u.name){case"dict":1===D?N():2===D?I():(O={},null!==n&&(O[n]={filename:t,line:C,char:E}),c(1,O)),u.isClosed&&p();continue;case"array":1===D?P():2===D?T():(O=[],c(2,O)),u.isClosed&&f();continue;case"key":F=x(u),1!==D?d("unexpected <key>"):null!==j?d("too many <key>"):j=F;continue;case"string":h(x(u));continue;case"real":g(parseFloat(x(u)));continue;case"integer":m(parseInt(x(u),10));continue;case"date":b(new Date(x(u)));continue;case"data":y(x(u));continue;case"true":x(u),v(!0);continue;case"false":x(u),v(!1);continue}if(!/^plist/.test(u.name))return d("unexpected opened tag "+u.name)}var F;return O}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,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,r.createGrammar(e,a,t,n,o,i,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),i=/\\(\d+)/,a=/\\(\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 h(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 d extends s{constructor(e,t,n,r,o,i,a,s,l,c){super(e,t,n,r),this._begin=new h(o,this.id),this.beginCaptures=i,this._end=new h(a||"",-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=d;class p extends s{constructor(e,n,r,o,i,a,s,l,c){super(e,n,r,o),this._begin=new h(i,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new h(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=p;class f{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,f._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,f._compilePatterns(o,t,n))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,f._compileCaptures(e.whileCaptures||e.captures,t,n),f._compilePatterns(e.patterns,t,n)):new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,f._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,f._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 i in e){if("$vscodeTextmateLocation"===i)continue;const o=parseInt(i,10);let a=0;e[i].patterns&&(a=f.getCompiledRuleId(e[i],t,n)),r[o]=f.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,a)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let i=0,a=e.length;i<a;i++){const a=e[i];let s=-1;if(a.include){const e=o.parseInclude(a.include);switch(e.kind){case 0:case 1:s=f.getCompiledRuleId(n[a.include],t,n);break;case 2:let r=n[e.ruleName];r&&(s=f.getCompiledRuleId(r,t,n));break;case 3:case 4:const o=4===e.kind?e.ruleName:null,i=t.getExternalGrammar(e.scopeName,n);if(i)if(o){let e=i.repository[o];e&&(s=f.getCompiledRuleId(e,t,i.repository))}else s=f.getCompiledRuleId(i.repository.$self,t,i.repository)}}else s=f.getCompiledRuleId(a,t,n);if(-1!==s){const e=t.getRule(s);let n=!1;if((e instanceof u||e instanceof d||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;r.push(s)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}}t.RuleFactory=f;class h{constructor(e,t){if(e){const t=e.length;let n=0,r=[],o=!1;for(let i=0;i<t;i++)if("\\"===e.charAt(i)&&i+1<t){const t=e.charAt(i+1);"z"===t?(r.push(e.substring(n,i)),r.push("$(?!\\n)(?<!\\n)"),n=i+2):"A"!==t&&"G"!==t||(o=!0),i++}this.hasAnchor=o,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=i.test(this.source)}clone(){return new h(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return a.lastIndex=0,this.source.replace(a,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],i=[],a=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),o[e]=n,i[e]=n,a[e]=n,s[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(o[e+1]="",i[e+1]="",a[e+1]="A",s[e+1]="A"):"G"===r?(o[e+1]="",i[e+1]="G",a[e+1]="",s[e+1]="G"):(o[e+1]=r,i[e+1]=r,a[e+1]=r,s[e+1]=r),e++);return{A0_G0:o.join(""),A0_G1:i.join(""),A1_G0:a.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=h;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new m(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 m(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class m{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<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}t.CompiledRule=m},583:(e,t,n)=>{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,a=t.length;o<a;o++){let e,a=t[o];if(!a.settings)continue;if("string"==typeof a.scope){let t=a.scope;t=t.replace(/^[,]+/,""),t=t.replace(/[,]+$/,""),e=t.split(",")}else e=Array.isArray(a.scope)?a.scope:[""];let s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let l=null;"string"==typeof a.settings.foreground&&i.isValidHexColor(a.settings.foreground)&&(l=a.settings.foreground);let u=null;"string"==typeof a.settings.background&&i.isValidHexColor(a.settings.background)&&(u=a.settings.background);for(let t=0,i=e.length;t<i;t++){let i=e[t].trim().split(" "),a=i[i.length-1],d=null;i.length>1&&(d=i.slice(0,i.length-1),d.reverse()),n[r++]=new c(a,d,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 i=n(878);class a{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new i.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=i.strcmp(e.scope,t.scope);return 0!==n?n:(n=i.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)),f=new p(new d(0,null,-1,0,0),[]);for(let i=0,a=e.length;i<a;i++){let t=e[i];f.insert(0,t.scope,t.parentScopes,t.fontStyle,s.getId(t.foreground),s.getId(t.background))}return new a(s,c,f)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=this._cachedMatchRoot.get(e.scopeName).find((t=>function(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=a;class s{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new s(t,e[n]);return t}push(e){return new s(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}t.ScopeStack=s;class l{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}t.StyleAttributes=l,t.parseTheme=o;class c{constructor(e,t,n,r,o,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=i}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class d{constructor(e,t,n,r,o){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=r,this.background=o}clone(){return new d(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e||(this.scopeDepth=e),-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=d;class p{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,i=null===r?0:r.length;if(o===i)for(let e=0;e<o;e++){const t=n[e].length,o=r[e].length;if(t!==o)return o-t}return i-o}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,r=e.indexOf(".");return-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,r,o,i){if(""===t)return void this._doInsertHere(e,n,r,o,i);let a,s,l,c=t.indexOf(".");-1===c?(a=t,s=""):(a=t.substring(0,c),s=t.substring(c+1)),this._children.hasOwnProperty(a)?l=this._children[a]:(l=new p(this._mainRule.clone(),d.cloneArr(this._rulesWithParentScopes)),this._children[a]=l),l.insert(e+1,s,n,r,o,i)}_doInsertHere(e,t,n,r,o){if(null!==t){for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===i.strArrCmp(s.parentScopes,t))return void s.acceptOverwrite(e,n,r,o)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===o&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new d(e,t,n,r,o))}else this._mainRule.acceptOverwrite(e,n,r,o)}}t.ThemeTrieElement=p},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=n(e[r]);return t}(e):"object"==typeof e?function(e){let t={};for(let r in e)t[r]=n(e[r]);return t}(e):e}function r(e,t){return e<t?-1:e>t?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,i)=>{let a=n[parseInt(r||o,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(i){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<n;o++){let n=r(e[o],t[o]);if(0!==n)return n}return 0}return n-o},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},qX={},function e(t){var n,r=qX[t];return void 0!==r?r.exports:(n=qX[t]={exports:{}},GX[t].call(n.exports,n,n.exports,e),n.exports)}(787)),fX=pX.exports;const Ite=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",aliases:["bash","console","sh","shell","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"}];hX=(e=>(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))(hX||{});class Tte{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){Tte.getLanguageId(e),Tte.getTokenType(e),Tte.getFontStyle(e),Tte.getForeground(e),Tte.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,i){let a=Tte.getLanguageId(e),s=Tte.getTokenType(e),l=Tte.getFontStyle(e),c=Tte.getForeground(e),u=Tte.getBackground(e);return 0!==t&&(a=t),0!==n&&(s=8===n?0:n),-1!==r&&(l=r),0!==o&&(c=o),0!==i&&(u=i),(a<<0|s<<8|l<<11|(Tte.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}(XX=gX||(gX={}))[XX.lineFeed=10]="lineFeed",XX[XX.carriageReturn=13]="carriageReturn",XX[XX.space=32]="space",XX[XX._0=48]="_0",XX[XX._1=49]="_1",XX[XX._2=50]="_2",XX[XX._3=51]="_3",XX[XX._4=52]="_4",XX[XX._5=53]="_5",XX[XX._6=54]="_6",XX[XX._7=55]="_7",XX[XX._8=56]="_8",XX[XX._9=57]="_9",XX[XX.a=97]="a",XX[XX.b=98]="b",XX[XX.c=99]="c",XX[XX.d=100]="d",XX[XX.e=101]="e",XX[XX.f=102]="f",XX[XX.g=103]="g",XX[XX.h=104]="h",XX[XX.i=105]="i",XX[XX.j=106]="j",XX[XX.k=107]="k",XX[XX.l=108]="l",XX[XX.m=109]="m",XX[XX.n=110]="n",XX[XX.o=111]="o",XX[XX.p=112]="p",XX[XX.q=113]="q",XX[XX.r=114]="r",XX[XX.s=115]="s",XX[XX.t=116]="t",XX[XX.u=117]="u",XX[XX.v=118]="v",XX[XX.w=119]="w",XX[XX.x=120]="x",XX[XX.y=121]="y",XX[XX.z=122]="z",XX[XX.A=65]="A",XX[XX.B=66]="B",XX[XX.C=67]="C",XX[XX.D=68]="D",XX[XX.E=69]="E",XX[XX.F=70]="F",XX[XX.G=71]="G",XX[XX.H=72]="H",XX[XX.I=73]="I",XX[XX.J=74]="J",XX[XX.K=75]="K",XX[XX.L=76]="L",XX[XX.M=77]="M",XX[XX.N=78]="N",XX[XX.O=79]="O",XX[XX.P=80]="P",XX[XX.Q=81]="Q",XX[XX.R=82]="R",XX[XX.S=83]="S",XX[XX.T=84]="T",XX[XX.U=85]="U",XX[XX.V=86]="V",XX[XX.W=87]="W",XX[XX.X=88]="X",XX[XX.Y=89]="Y",XX[XX.Z=90]="Z",XX[XX.asterisk=42]="asterisk",XX[XX.backslash=92]="backslash",XX[XX.closeBrace=125]="closeBrace",XX[XX.closeBracket=93]="closeBracket",XX[XX.colon=58]="colon",XX[XX.comma=44]="comma",XX[XX.dot=46]="dot",XX[XX.doubleQuote=34]="doubleQuote",XX[XX.minus=45]="minus",XX[XX.openBrace=123]="openBrace",XX[XX.openBracket=91]="openBracket",XX[XX.plus=43]="plus",XX[XX.slash=47]="slash",XX[XX.formFeed=12]="formFeed",XX[XX.tab=9]="tab",(mX||(mX={})).DEFAULT={allowTrailingComma:!1},(KX=bX||(bX={}))[KX.None=0]="None",KX[KX.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",KX[KX.UnexpectedEndOfString=2]="UnexpectedEndOfString",KX[KX.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",KX[KX.InvalidUnicode=4]="InvalidUnicode",KX[KX.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",KX[KX.InvalidCharacter=6]="InvalidCharacter",(YX=yX||(yX={}))[YX.OpenBraceToken=1]="OpenBraceToken",YX[YX.CloseBraceToken=2]="CloseBraceToken",YX[YX.OpenBracketToken=3]="OpenBracketToken",YX[YX.CloseBracketToken=4]="CloseBracketToken",YX[YX.CommaToken=5]="CommaToken",YX[YX.ColonToken=6]="ColonToken",YX[YX.NullKeyword=7]="NullKeyword",YX[YX.TrueKeyword=8]="TrueKeyword",YX[YX.FalseKeyword=9]="FalseKeyword",YX[YX.StringLiteral=10]="StringLiteral",YX[YX.NumericLiteral=11]="NumericLiteral",YX[YX.LineCommentTrivia=12]="LineCommentTrivia",YX[YX.BlockCommentTrivia=13]="BlockCommentTrivia",YX[YX.LineBreakTrivia=14]="LineBreakTrivia",YX[YX.Trivia=15]="Trivia",YX[YX.Unknown=16]="Unknown",YX[YX.EOF=17]="EOF";const Fte=function(e,t=[],n=mX.DEFAULT){function r(e){Array.isArray(i)?i.push(e):null!==o&&(i[o]=e)}let o=null,i=[];const a=[];return function(e,t,n=mX.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(),(()=>d.slice())):()=>!0}function i(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function a(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>d.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:x||l(11);break;case 2:l(12);break;case 6:l(16)}switch(e){case 12:case 13:x?l(10):v();break;case 16:l(1);break;case 15:case 14:break;default:return e}}}function l(e,t=[],n=[]){if(w(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):(f(t),d.push(t)),s(),!0}const u=function(e,t=!1){function n(t,n){let r=0,o=0;for(;r<t||!n;){let t=e.charCodeAt(a);if(t>=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}a++,r++}return r<t&&(o=-1),o}function r(){if(s="",h=0,l=a,d=u,f=p,a>=i)return l=i,c=17;let t=e.charCodeAt(a);if(Eb(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(Eb(t));return c=15}if(Db(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),u++,p=a,c=14;switch(t){case 123:return a++,c=1;case 125:return a++,c=2;case 91:return a++,c=3;case 93:return a++,c=4;case 58:return a++,c=6;case 44:return a++,c=5;case 34:return a++,s=function(){let t="",r=a;for(;;){if(a>=i){t+=e.substring(r,a),h=2;break}const o=e.charCodeAt(a);if(34===o){t+=e.substring(r,a),a++;break}if(92!==o){if(o>=0&&o<=31){if(Db(o)){t+=e.substring(r,a),h=2;break}h=6}a++}else{if(t+=e.substring(r,a),a++,a>=i){h=2;break}switch(e.charCodeAt(a++)){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):h=4;break;default:h=5}r=a}}return t}(),c=10;case 47:const r=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<i&&!Db(e.charCodeAt(a));)a++;return s=e.substring(r,a),c=12}if(42===e.charCodeAt(a+1)){a+=2;const t=i-1;let n=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,n=!0;break}a++,Db(t)&&(13===t&&10===e.charCodeAt(a)&&a++,u++,p=a)}return n||(a++,h=1),s=e.substring(r,a),c=13}return s+=String.fromCharCode(t),a++,c=16;case 45:if(s+=String.fromCharCode(t),a++,a===i||!Ob(e.charCodeAt(a)))return c=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&Ob(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&Ob(e.charCodeAt(a))))return h=3,e.substring(t,a);for(a++;a<e.length&&Ob(e.charCodeAt(a));)a++}let n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&Ob(e.charCodeAt(a))){for(a++;a<e.length&&Ob(e.charCodeAt(a));)a++;n=a}else h=3;return e.substring(t,n)}(),c=11;default:for(;a<i&&o(t);)a++,t=e.charCodeAt(a);if(l!==a){switch(s=e.substring(l,a),s){case"true":return c=8;case"false":return c=9;case"null":return c=7}return c=16}return s+=String.fromCharCode(t),a++,c=16}}function o(e){if(Eb(e)||Db(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}const i=e.length;let a=0,s="",l=0,c=16,u=0,d=0,p=0,f=0,h=0;return{setPosition:function(e){a=e,s="",l=0,c=16,h=0},getPosition:()=>a,scan:t?function(){let e;do{e=r()}while(e>=12&&e<=15);return e}:r,getToken:()=>c,getTokenValue:()=>s,getTokenOffset:()=>l,getTokenLength:()=>a-l,getTokenStartLine:()=>d,getTokenStartCharacter:()=>l-f,getTokenError:()=>h}}(e,!1),d=[],p=o(t.onObjectBegin),f=a(t.onObjectProperty),h=r(t.onObjectEnd),g=o(t.onArrayBegin),m=r(t.onArrayEnd),b=a(t.onLiteralValue),y=i(t.onSeparator),v=r(t.onComment),w=i(t.onError),x=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,[],[]),y(","),s(),4===u.getToken()&&k)break}else n&&l(6,[],[]);t?(d.push(0),t=!1):d[d.length-1]++,e()||l(4,[],[4,5]),n=!0}return m(),t||d.pop(),4!==u.getToken()?l(8,[4],[]):s(),!0}();case 1:return function(){p(),s();let t=!1;for(;2!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(t||l(4,[],[]),y(","),s(),2===u.getToken()&&k)break}else t&&l(6,[],[]);(10!==u.getToken()?(l(3,[],[2,5]),!1):(c(!1),6===u.getToken()?(y(":"),s(),e()||l(4,[],[2,5])):l(5,[],[2,5]),d.pop(),!0))||l(4,[],[2,5]),t=!0}return h(),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),a.push(i),i=e,o=null},onObjectProperty:e=>{o=e},onObjectEnd:()=>{i=a.pop()},onArrayBegin:()=>{const e=[];r(e),a.push(i),i=e,o=null},onArrayEnd:()=>{i=a.pop()},onLiteralValue:r,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]};(QX=vX||(vX={}))[QX.InvalidSymbol=1]="InvalidSymbol",QX[QX.InvalidNumberFormat=2]="InvalidNumberFormat",QX[QX.PropertyNameExpected=3]="PropertyNameExpected",QX[QX.ValueExpected=4]="ValueExpected",QX[QX.ColonExpected=5]="ColonExpected",QX[QX.CommaExpected=6]="CommaExpected",QX[QX.CloseBraceExpected=7]="CloseBraceExpected",QX[QX.CloseBracketExpected=8]="CloseBracketExpected",QX[QX.EndOfFileExpected=9]="EndOfFileExpected",QX[QX.InvalidCommentToken=10]="InvalidCommentToken",QX[QX.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",QX[QX.UnexpectedEndOfString=12]="UnexpectedEndOfString",QX[QX.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",QX[QX.InvalidUnicode=14]="InvalidUnicode",QX[QX.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",QX[QX.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process;let Ate="";const Rte="dist/";let Mte=null;const Lte={light:"#333333",dark:"#bbbbbb"},Bte={light:"#fffffe",dark:"#1e1e1e"};class zte{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 $b(e)}(Ite.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}}wX=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],xX={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"},kX={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};const Hte={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`},Wte={"&":"&","<":"<",">":">",'"':""","'":"'"};class Ute extends fX.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Ite.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 jb(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=Nb(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])}}!function(e){Ate=e.endsWith("/")?e:e+"/"}("https://cdn.jsdelivr.net/npm/shiki-es@0.14.0/dist/assets/");const{useSyncExternalStoreWithSelector:Vte}=i9,Gte=(e,t)=>{const n=o9(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=Vte(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Zb.useDebugValue(r),r}(n,e,r);return Object.assign(r,n),r},qte=(ene=(e,t)=>({codeToHtml:(e,n,r)=>{const{highlighter:o}=t();if(!o)return"";try{return null==o?void 0:o.codeToHtml(e,{lang:n,theme:r?"dark":"light"})}catch{return e}},highlighter:void 0,initHighlighter:async n=>{if(!t().highlighter){const t=await Hb({langs:null==n?void 0:n.langs,themes:null==n?void 0:n.themes});e({highlighter:t})}}}),ene?Gte(ene,ki):Gte),Xte=Zb.memo((({children:e,language:t,options:n})=>{const{styles:r}=Pte(),{isDarkMode:o}=WT(),[i,a]=qte((e=>[e.codeToHtml,!e.highlighter]));return Zb.useEffect((()=>{qte.getState().initHighlighter(n)}),[n]),ay.jsxs(ay.Fragment,{children:[a?ay.jsx("code",{children:e}):ay.jsx("div",{className:r.shiki,dangerouslySetInnerHTML:{__html:i(e,t,o)||""}}),a&&ay.jsxs(y6,{className:r.loading,gap:8,horizontal:!0,children:[ay.jsx(Z3,{icon:nY,spin:!0}),"Highlighting..."]})]})})),Kte=e=>{const t=e?"dark":"light",n=e?Pz.gold[t][9]:Pz.orange[t][9],r=e?Pz.blue[t][9]:Pz.geekblue[t][8];return{colors:{"editor.foreground":e?Pz.lime[t][9]:Pz.green[t][10]},name:t,tokenColors:[{scope:"comma",settings:{foreground:e?Pz.gray[t][6]:Pz.gray[t][7]}},{scope:"func",settings:{foreground:r}},{scope:"and",settings:{fontStyle:"bold",foreground:r}},{scope:"bracket",settings:{foreground:r}},{scope:"model-type",settings:{fontStyle:"italic",foreground:n}},{scope:"model-name",settings:{fontStyle:"bold",foreground:n}},{scope:"model-bracket",settings:{foreground:n}},{scope:"number",settings:{foreground:e?Pz.purple[t][10]:Pz.purple[t][9]}},{scope:"wildcards",settings:{fontStyle:"italic",foreground:e?Pz.yellow[t][9]:Pz.yellow[t][10]}}],type:t}},Yte={langs:[{aliases:["prompt"],grammar:{$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",fileTypes:["prompt"],name:"prompt",patterns:[{match:"[,]",name:"comma"},{match:"[:|]",name:"func"},{match:"AND",name:"and"},{match:"<([^:]+):([^:]+):([^>]+)>",captures:{0:{name:"model-bracket"},1:{name:"model-type"},2:{name:"model-name"},3:{name:"number"}}},{match:"[<|>]",name:"model-bracket"},{match:"[(|)|\\[|\\]|{|}]",name:"bracket"},{match:"\\d+(\\.\\d+)?",name:"number"},{match:"__.*__",name:"wildcards"}],scopeName:"source.prompt"},id:"prompt",scopeName:"source.prompt"}],themes:[Kte(!0),Kte(!1)]},Qte=Zb.memo((({parentId:e})=>{const t=Zb.useRef(null),[n,r]=Zb.useState(""),{styles:o,theme:i}=Pte(),a=(e=>{const[t,n]=Zb.useState("");return Zb.useEffect((()=>{const t=new MutationObserver((t=>{for(const r of t)if("attributes"===r.type){const t=document.querySelector(e);n(t.value)}})),r=document.querySelector(e);return r&&(t.observe(r,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),n(r.value)),()=>{t.disconnect()}}),[e]),t})(`${e} label textarea`),s=Zb.useMemo((()=>gradioApp().querySelector(`${e} label textarea`)),[e]),l=(c=s,d=(u=rh(fh((function(){var e=ah(c);return e?{width:e.clientWidth,height:e.clientHeight}:void 0})),2))[0],p=u[1],m6((function(){var e,t=ah(c);if(t)return(e=new ZO((function(e){e.forEach((function(e){var t=e.target;p({width:t.clientWidth,height:t.clientHeight})}))}))).observe(t),function(){e.disconnect()}}),[],c),d);var c,u,d,p;const f=function(e,t){var n,r,o,i;return void 0===t&&(t=function(){return!0}),r=(n=rh(fh(),2))[0],o=n[1],i=ih(t),g6((function(){var t,n=ah(e,document);if(n)return(t=function(){var e;e=n===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:n.scrollLeft,top:n.scrollTop},i.current(e)&&o(e)})(),n.addEventListener("scroll",t),function(){n.removeEventListener("scroll",t)}}),[],e),r}(s),h=Zb.useCallback((e=>{r(e.target.value)}),[]);return Zb.useEffect((()=>{t.current.scroll(0,(null==f?void 0:f.top)||0)}),[null==f?void 0:f.top]),Zb.useEffect((()=>(s.addEventListener("change",h),()=>{s.removeEventListener("change",h)})),[]),Zb.useEffect((()=>{i&&(s.style.color="transparent",s.style.caretColor=i.colorSuccess)}),[i]),Zb.useEffect((()=>{r(a)}),[a]),ay.jsx("div",{className:o.container,"data-code-type":"highlighter",ref:t,style:{height:null==l?void 0:l.height,width:null==l?void 0:l.width},children:ay.jsx(Xte,{language:"prompt",options:Yte,children:n.trim()})})})),Jte=Zb.memo((({parentId:e})=>{const{loading:t}=w9((e=>({loading:e.loading})),ki);return ay.jsx(cte,{children:!1===t&&ay.jsx(Qte,{parentId:e})})})),Zte=(e,t)=>{if(document.querySelector(t))return;const n=document.createElement("div");n.id=t.replace("#",""),gradioApp().querySelector(e).insertBefore(n,gradioApp().querySelector(e).firstChild),hS(n).render(ay.jsx(Zb.StrictMode,{children:ay.jsx(Zb.Suspense,{fallback:"loading...",children:ay.jsx(Jte,{parentId:e})})}))};var ene;const tne=(e,t,n)=>{var r;if((null==e?void 0:e.textContent)&&n)for(const o of t)(null==(r=null==e?void 0:e.textContent)?void 0:r.includes(o))&&(e.innerHTML=n.replace('width="24"','width="16"').replace('height="24"','height="16"'))},nne=e=>pF`
|
||
body {
|
||
::-webkit-scrollbar {
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
}
|
||
|
||
.ant-slider-track,
|
||
.ant-tabs-ink-bar,
|
||
.ant-switch-checked {
|
||
background: ${e.colorPrimary} !important;
|
||
}
|
||
|
||
.ant-btn-primary:not(.ant-btn-dangerous) {
|
||
color: ${nh(e.colorPrimary)};
|
||
background: ${e.colorPrimary};
|
||
|
||
&:hover {
|
||
color: ${nh(e.colorPrimary)} !important;
|
||
background: ${e.colorPrimaryHover} !important;
|
||
}
|
||
|
||
&:active {
|
||
color: ${nh(e.colorPrimaryActive)} !important;
|
||
background: ${e.colorPrimaryActive} !important;
|
||
}
|
||
}
|
||
`,rne=e=>pF`
|
||
button {
|
||
cursor: pointer;
|
||
min-width: fit-content !important;
|
||
|
||
&.gradio-button {
|
||
&.tool {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 36px;
|
||
min-width: 36px !important;
|
||
max-width: 36px !important;
|
||
height: 36px;
|
||
min-height: 36px !important;
|
||
max-height: 36px;
|
||
padding: 0;
|
||
|
||
font-size: 14px;
|
||
line-height: 1;
|
||
|
||
background: ${e.colorFillSecondary};
|
||
border: 1px solid ${e.colorBorderSecondary};
|
||
border-radius: ${e.borderRadius}px;
|
||
|
||
&:hover {
|
||
background: ${e.colorFill};
|
||
}
|
||
|
||
&.lg {
|
||
max-width: max(36px, 100%) !important;
|
||
}
|
||
}
|
||
|
||
&.secondary,
|
||
&.primary {
|
||
overflow: hidden;
|
||
flex: 1;
|
||
|
||
font-size: 14px;
|
||
line-height: 1;
|
||
text-overflow: ellipsis;
|
||
|
||
&:active {
|
||
box-shadow: ${e.boxShadowSecondary};
|
||
}
|
||
}
|
||
|
||
&.secondary {
|
||
font-weight: 500;
|
||
background: ${e.colorFillTertiary};
|
||
border: 1px solid ${e.colorBorderSecondary};
|
||
border-radius: ${e.borderRadius}px !important;
|
||
|
||
&:hover {
|
||
color: ${e.colorText};
|
||
background: ${e.colorFill};
|
||
border-color: ${e.colorBorder};
|
||
}
|
||
}
|
||
|
||
&:not(.tool, .svelte-1p4r00v) {
|
||
&.primary,
|
||
&.secondary {
|
||
&.lg {
|
||
height: 44px !important;
|
||
min-height: 44px !important;
|
||
max-height: 44px !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
&[id$='_generate'] {
|
||
height: 44px !important;
|
||
min-height: 44px !important;
|
||
max-height: 44px !important;
|
||
}
|
||
|
||
&[id$='_interrupt'] {
|
||
min-width: 0;
|
||
border-right: none !important;
|
||
border-radius: ${e.borderRadius}px 0 0 ${e.borderRadius}px !important;
|
||
}
|
||
|
||
&[id$='_skip'] {
|
||
min-width: 0;
|
||
border-radius: 0 ${e.borderRadius}px ${e.borderRadius}px 0 !important;
|
||
}
|
||
|
||
&[id$='_interrupt'],
|
||
&[id$='_skip'] {
|
||
color: #fff !important;
|
||
background: ${e.colorError} !important;
|
||
|
||
&:hover {
|
||
color: #fff !important;
|
||
background: ${e.colorErrorHover} !important;
|
||
}
|
||
|
||
&:active {
|
||
color: #fff !important;
|
||
background: ${e.colorErrorActive} !important;
|
||
}
|
||
}
|
||
|
||
&#interrogate,
|
||
&#deepbooru {
|
||
display: block !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
div[id^='image_buttons_'] {
|
||
flex-wrap: wrap;
|
||
gap: 4px !important;
|
||
|
||
> button {
|
||
flex: 1;
|
||
min-width: min(30%, 56px);
|
||
font-size: 12px !important;
|
||
}
|
||
}
|
||
`,one=e=>pF`
|
||
.label-wrap {
|
||
transition: padding 400ms ${e.motionEaseOut};
|
||
|
||
> span:not(.icon) {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
line-height: 1;
|
||
|
||
transition: color 400ms ${e.motionEaseOut};
|
||
|
||
&::before {
|
||
content: '';
|
||
|
||
display: block;
|
||
|
||
width: 8px;
|
||
height: 8px;
|
||
|
||
background: ${e.colorPrimary};
|
||
border-radius: 4px;
|
||
}
|
||
}
|
||
|
||
&.open {
|
||
padding-bottom: 16px;
|
||
border-bottom: 1px dashed ${e.colorBorderSecondary};
|
||
|
||
span {
|
||
color: ${e.colorText};
|
||
}
|
||
}
|
||
}
|
||
`,ine=e=>pF`
|
||
.gradio-group,
|
||
.gradio-row {
|
||
gap: 12px !important;
|
||
}
|
||
|
||
.block.padded {
|
||
&.gradio-box:not(.gradio-accordion) {
|
||
padding: 16px !important;
|
||
}
|
||
|
||
&.gradio-box,
|
||
&.gradio-accordion {
|
||
&:not(.hidden):has(div) {
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
border: 1px solid ${e.colorBorderSecondary} !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
.panel {
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
}
|
||
|
||
.compact,
|
||
.wrap {
|
||
gap: 12px !important;
|
||
}
|
||
|
||
#tabs > div {
|
||
padding: unset;
|
||
border: none;
|
||
}
|
||
|
||
#system_info {
|
||
align-items: flex-start;
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
#img2img_results,
|
||
#txt2img_results,
|
||
#extras_gallery_container {
|
||
position: sticky;
|
||
top: 80px !important;
|
||
}
|
||
`,ane=e=>pF`
|
||
#root {
|
||
/* sd-webui-prompt-all-in-one */
|
||
.physton-highlight-prompt {
|
||
color: ${e.colorPrimary} !important;
|
||
|
||
-webkit-text-fill-color: ${e.colorPrimary} !important;
|
||
}
|
||
|
||
/* openOutpaint */
|
||
#tab_openOutpaint {
|
||
position: relative;
|
||
height: 100vh;
|
||
padding: 0 !important;
|
||
|
||
#openoutpaint-iframe {
|
||
width: 100% !important;
|
||
}
|
||
}
|
||
|
||
/* autocomplete */
|
||
.autocompleteResults {
|
||
min-width: 400px;
|
||
|
||
font-family: ${e.fontFamilyCode};
|
||
font-size: 12px;
|
||
|
||
background: ${e.colorBgElevated} !important;
|
||
border-color: ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
box-shadow: ${e.boxShadow};
|
||
|
||
ul {
|
||
padding: 0 !important;
|
||
}
|
||
|
||
li {
|
||
border-bottom: 1px solid ${e.colorBorder};
|
||
|
||
&:hover {
|
||
background: ${e.colorFillSecondary} !important;
|
||
}
|
||
|
||
&:nth-of-type(odd) {
|
||
background: transparent !important;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,sne=e=>{const t=pF`
|
||
background-color: ${e.colorBgContainer};
|
||
background-image: linear-gradient(45deg, ${e.colorFillTertiary} 25%, transparent 25%),
|
||
linear-gradient(-45deg, ${e.colorFillTertiary} 25%, transparent 25%),
|
||
linear-gradient(45deg, transparent 75%, ${e.colorFillTertiary} 75%),
|
||
linear-gradient(-45deg, transparent 75%, ${e.colorFillTertiary} 75%);
|
||
background-position:
|
||
0 0,
|
||
0 10px,
|
||
10px -10px,
|
||
-10px 0;
|
||
background-size: 20px 20px;
|
||
border: 2px solid ${e.colorBorderSecondary} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
`;return pF`
|
||
.livePreview,
|
||
.gradio-gallery,
|
||
.gradio-image,
|
||
.gradio-video,
|
||
.gradio-file {
|
||
${t}
|
||
}
|
||
|
||
div.block {
|
||
&.livePreview,
|
||
&.gradio-gallery,
|
||
&.gradio-image,
|
||
&.gradio-video,
|
||
&.gradio-file {
|
||
${t}
|
||
}
|
||
}
|
||
|
||
div.svelte-awbtu4 {
|
||
.livePreview,
|
||
.gradio-gallery,
|
||
.gradio-image,
|
||
.gradio-video,
|
||
.gradio-file {
|
||
${t}
|
||
}
|
||
}
|
||
|
||
button.thumbnail-item {
|
||
background: ${e.colorBgContainer} !important;
|
||
}
|
||
`},lne=e=>pF`
|
||
.block.gradio-checkbox {
|
||
margin: 0 !important;
|
||
}
|
||
|
||
input {
|
||
&:not([type='range'], [type='checkbox'], [type='number'], [type='radio'], .border-none) {
|
||
resize: none;
|
||
|
||
overflow: hidden;
|
||
|
||
width: 100%;
|
||
height: 36px !important;
|
||
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
&[type='checkbox'],
|
||
&[type='radio'] {
|
||
cursor: pointer;
|
||
|
||
flex: 0;
|
||
|
||
width: ${e.fontSize}px;
|
||
min-width: ${e.fontSize}px;
|
||
max-width: ${e.fontSize}px;
|
||
height: ${e.fontSize}px;
|
||
min-height: ${e.fontSize}px;
|
||
max-height: ${e.fontSize}px;
|
||
|
||
appearance: none !important;
|
||
}
|
||
|
||
&[type='checkbox'] {
|
||
--ring-color: transparent;
|
||
|
||
position: relative;
|
||
|
||
line-height: var(--line-sm);
|
||
|
||
background-color: ${e.colorFillTertiary} !important;
|
||
border: 1px solid ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadiusSM}px !important;
|
||
|
||
&:checked {
|
||
background-color: ${e.colorPrimary} !important;
|
||
background-image: var(--checkbox-check) !important;
|
||
border-color: ${e.colorPrimaryBorder} !important;
|
||
}
|
||
}
|
||
|
||
&[type='number'] {
|
||
height: 28px !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
}
|
||
`,cne=e=>pF`
|
||
.dropdown-arrow {
|
||
margin: 0 !important;
|
||
}
|
||
|
||
ul.options {
|
||
display: block !important;
|
||
|
||
margin: 0 !important;
|
||
padding: 4px !important;
|
||
|
||
background: ${e.colorBgElevated} !important;
|
||
border: 1px solid ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
box-shadow: ${e.boxShadow};
|
||
|
||
li {
|
||
overflow: hidden;
|
||
display: block !important;
|
||
|
||
padding: 4px 8px !important;
|
||
|
||
line-height: 1 !important;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
border-radius: ${e.borderRadiusSM}px !important;
|
||
|
||
&.selected {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFill} !important;
|
||
}
|
||
|
||
&.active:not(.selected) {
|
||
color: black !important;
|
||
background: ${e.yellow} !important;
|
||
}
|
||
|
||
&:hover {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFillSecondary} !important;
|
||
}
|
||
}
|
||
}
|
||
`,une=hF`
|
||
0% {
|
||
background-position: 0 0;
|
||
}
|
||
100% {
|
||
background-position: 24px 24px;
|
||
}
|
||
`,dne=e=>pF`
|
||
.progress-container {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.eta-bar {
|
||
overflow: hidden;
|
||
|
||
opacity: 1 !important;
|
||
background: linear-gradient(
|
||
to right,
|
||
${e.colorFillQuaternary},
|
||
${e.colorFill}
|
||
) !important;
|
||
backdrop-filter: saturate(180%) blur(10px);
|
||
border: 1px solid ${e.colorBorder};
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
.wrap.svelte-j1gjts:has(div) {
|
||
overflow: hidden;
|
||
|
||
min-height: 36px;
|
||
|
||
background: ${e.colorBgContainer} !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
box-shadow: 0 0 0 2px ${e.colorBgContainer};
|
||
|
||
.meta-text,
|
||
.meta-text-center {
|
||
font-size: 12px;
|
||
color: ${e.colorTextDescription};
|
||
}
|
||
}
|
||
|
||
.progressDiv {
|
||
position: relative !important;
|
||
top: 0 !important;
|
||
overflow: hidden;
|
||
background: ${e.colorBgElevated} !important;
|
||
|
||
> .progress {
|
||
position: relative;
|
||
|
||
overflow: hidden;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
|
||
line-height: 1;
|
||
text-shadow: 0 1px 1px rgba(0, 0, 0, 40%);
|
||
|
||
&::before {
|
||
content: '';
|
||
|
||
position: absolute;
|
||
z-index: 1;
|
||
inset: 0;
|
||
|
||
overflow: hidden;
|
||
|
||
background-image: linear-gradient(
|
||
-45deg,
|
||
rgba(255, 255, 255, 20%) 25%,
|
||
transparent 25%,
|
||
transparent 50%,
|
||
rgba(255, 255, 255, 20%) 50%,
|
||
rgba(255, 255, 255, 20%) 75%,
|
||
transparent 75%,
|
||
transparent
|
||
);
|
||
background-size: 24px 24px;
|
||
|
||
animation: ${une} 2s linear infinite;
|
||
}
|
||
|
||
&::after {
|
||
content: '';
|
||
|
||
position: absolute;
|
||
z-index: 1;
|
||
inset: 0;
|
||
|
||
overflow: hidden;
|
||
|
||
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 40%), transparent 50%);
|
||
}
|
||
}
|
||
}
|
||
`,pne=e=>pF`
|
||
input[type='range'] {
|
||
cursor: pointer;
|
||
|
||
height: 3px;
|
||
margin-top: 8px;
|
||
|
||
appearance: none;
|
||
background: ${e.colorTextQuaternary};
|
||
border-radius: ${e.borderRadiusXS}px;
|
||
outline: none;
|
||
|
||
&::-webkit-slider-thumb {
|
||
width: 12px;
|
||
height: 16px;
|
||
|
||
appearance: none;
|
||
background: ${e.colorBgElevated};
|
||
border: 1px solid ${e.colorTextQuaternary};
|
||
border-radius: ${e.borderRadiusSM}px;
|
||
|
||
&:hover,
|
||
&:active {
|
||
background: ${e.colorPrimary};
|
||
border-color: ${e.colorPrimary};
|
||
}
|
||
}
|
||
|
||
&:hover {
|
||
background: ${e.colorPrimaryBorderHover};
|
||
}
|
||
|
||
&:active {
|
||
background: ${e.colorPrimary};
|
||
}
|
||
}
|
||
`,fne=e=>pF`
|
||
table {
|
||
overflow: auto;
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
}
|
||
|
||
th,
|
||
td {
|
||
padding: 12px !important;
|
||
border: 1px solid ${e.colorBorderSecondary} !important;
|
||
}
|
||
|
||
th {
|
||
background: ${e.colorFillQuaternary};
|
||
border-bottom: 4px solid var(--color-border) !important;
|
||
}
|
||
|
||
tr {
|
||
&:nth-of-type(odd) td {
|
||
background: ${e.colorFillQuaternary};
|
||
}
|
||
|
||
&:hover td,
|
||
&:nth-of-type(odd):hover td {
|
||
background: ${e.colorFillSecondary};
|
||
}
|
||
}
|
||
`,hne=e=>pF`
|
||
.tabitem,
|
||
.gradio-tabitem {
|
||
padding: 16px !important;
|
||
background: ${e.colorBgContainer};
|
||
border: none !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
#tabs {
|
||
> .tabitem.gradio-tabitem {
|
||
background: transparent !important;
|
||
}
|
||
}
|
||
|
||
.tab-nav {
|
||
gap: 8px;
|
||
margin-bottom: 8px;
|
||
border: none !important;
|
||
|
||
button {
|
||
cursor: pointer;
|
||
|
||
display: block;
|
||
flex: 1 !important;
|
||
|
||
min-width: 100px;
|
||
padding: 8px !important;
|
||
|
||
font-size: 14px;
|
||
|
||
background: ${e.colorFillTertiary} !important;
|
||
border: none !important;
|
||
border-radius: 4px !important;
|
||
|
||
transition: all 0.2s ease-in-out;
|
||
|
||
&:hover {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFill} !important;
|
||
border: none !important;
|
||
}
|
||
|
||
&.selected {
|
||
font-weight: 600;
|
||
color: ${e.colorText} !important;
|
||
|
||
background: ${e.colorFillSecondary} !important;
|
||
border: none !important;
|
||
border-bottom: 2px solid ${e.colorPrimary} !important;
|
||
border-bottom-right-radius: 0 !important;
|
||
border-bottom-left-radius: 0 !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
#tab_settings .tab-nav {
|
||
button {
|
||
background: transparent !important;
|
||
border-radius: 0 !important;
|
||
|
||
&:hover {
|
||
background: transparent !important;
|
||
border-radius: 0 !important;
|
||
}
|
||
|
||
&.selected {
|
||
background: transparent !important;
|
||
border: none !important;
|
||
border-left: 2px solid var(--color-primary) !important;
|
||
border-radius: 0 !important;
|
||
}
|
||
}
|
||
}
|
||
`,gne=dF((({theme:e})=>{return[(t=e,pF`
|
||
:root,
|
||
.dark {
|
||
--primary-50: ${t.geekblue1};
|
||
--primary-100: ${t.geekblue2};
|
||
--primary-200: ${t.geekblue3};
|
||
--primary-300: ${t.geekblue4};
|
||
--primary-400: ${t.geekblue5};
|
||
--primary-500: ${t.geekblue6};
|
||
--primary-600: ${t.geekblue7};
|
||
--primary-700: ${t.geekblue8};
|
||
--primary-800: ${t.geekblue9};
|
||
--primary-900: ${t.geekblue10};
|
||
--primary-950: ${t.geekblue11};
|
||
--secondary-50: ${t.geekblue1};
|
||
--secondary-100: ${t.geekblue2};
|
||
--secondary-200: ${t.geekblue3};
|
||
--secondary-300: ${t.geekblue4};
|
||
--secondary-400: ${t.geekblue5};
|
||
--secondary-500: ${t.geekblue6};
|
||
--secondary-600: ${t.geekblue7};
|
||
--secondary-700: ${t.geekblue8};
|
||
--secondary-800: ${t.geekblue9};
|
||
--secondary-900: ${t.geekblue10};
|
||
--secondary-950: ${t.geekblue11};
|
||
--neutral-50: ${t.colorText};
|
||
--neutral-100: ${t.colorText};
|
||
--neutral-200: ${t.colorTextSecondary};
|
||
--neutral-300: ${t.colorTextTertiary};
|
||
--neutral-400: ${t.colorTextQuaternary};
|
||
--neutral-500: ${t.colorFill};
|
||
--neutral-600: ${t.colorFillSecondary};
|
||
--neutral-700: ${t.colorFillTertiary};
|
||
--neutral-800: ${t.colorFillQuaternary};
|
||
--neutral-900: ${t.colorBgElevated};
|
||
--neutral-950: ${t.colorBgContainer};
|
||
--spacing-xxs: ${t.paddingXXS/4}px;
|
||
--spacing-xs: ${t.paddingXS/4}px;
|
||
--spacing-sm: ${t.paddingSM/4}px;
|
||
--spacing-md: ${t.paddingMD/4}px;
|
||
--spacing-lg: ${t.paddingLG/4}px;
|
||
--spacing-xl: ${t.paddingXL/4}px;
|
||
--spacing-xxl: ${t.paddingXL/4}px;
|
||
--radius-xxs: ${t.borderRadiusXS}px;
|
||
--radius-xs: ${t.borderRadiusXS}px;
|
||
--radius-sm: ${t.borderRadiusSM}px;
|
||
--radius-md: ${t.borderRadius}px;
|
||
--radius-lg: ${t.borderRadius}px;
|
||
--radius-xl: ${t.borderRadiusLG}px;
|
||
--radius-xxl: ${t.borderRadiusLG}px;
|
||
--text-xxs: ${t.fontSizeSM}px;
|
||
--text-xs: ${t.fontSizeSM}px;
|
||
--text-sm: ${t.fontSize}px;
|
||
--text-md: ${t.fontSize}px;
|
||
--text-lg: ${t.fontSizeLG}px;
|
||
--text-xl: ${t.fontSizeXL}px;
|
||
--text-xxl: ${t.fontSizeXL}px;
|
||
--font: ${t.fontFamily};
|
||
--font-mono: ${t.fontFamilyCode};
|
||
--body-background-fill: ${t.colorBgLayout};
|
||
--body-text-color: ${t.colorText};
|
||
--body-text-size: ${t.fontSize}px;
|
||
--body-text-weight: 400;
|
||
--embed-radius: ${t.borderRadius}px;
|
||
--color-accent: ${t.colorPrimary};
|
||
--color-accent-soft: ${t.colorPrimaryHover};
|
||
--background-fill-primary: ${t.colorBgLayout};
|
||
--background-fill-secondary: ${t.colorBgContainer};
|
||
--border-color-accent: ${t.colorBorder};
|
||
--border-color-primary: ${t.colorBorderSecondary};
|
||
--link-text-color: ${t.colorInfoText};
|
||
--link-text-color-active: ${t.colorInfoTextActive};
|
||
--link-text-color-hover: ${t.colorInfoTextHover};
|
||
--link-text-color-visited: ${t.colorInfoText};
|
||
--body-text-color-subdued: ${t.colorTextDescription};
|
||
--shadow-drop: ${t.boxShadowSecondary};
|
||
--shadow-drop-lg: ${t.boxShadow};
|
||
--shadow-inset: ${t.boxShadowSecondary} inset;
|
||
--shadow-spread: 3px;
|
||
--block-background-fill: ${t.colorBgContainer};
|
||
--block-border-color: ${t.colorBorderSecondary};
|
||
--block-border-width: 1px;
|
||
--block-info-text-color: ${t.colorTextSecondary};
|
||
--block-info-text-size: var(--text-sm);
|
||
--block-info-text-weight: 400;
|
||
--block-label-background-fill: ${t.colorFillSecondary};
|
||
--block-label-border-color: ${t.colorBorderSecondary};
|
||
--block-label-border-width: 1px;
|
||
--block-label-shadow: ${t.boxShadowTertiary};
|
||
--block-label-text-color: ${t.colorText} --block-label-margin: 0;
|
||
--block-label-padding: var(--spacing-sm) var(--spacing-lg);
|
||
--block-label-radius: ${t.borderRadius}px;
|
||
--block-label-right-radius: ${t.borderRadius}px;
|
||
--block-label-text-size: ${t.fontSizeSM}px;
|
||
--block-label-text-weight: 400;
|
||
--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);
|
||
--block-radius: ${t.borderRadius}px;
|
||
--block-shadow: none;
|
||
--block-title-background-fill: none;
|
||
--block-title-border-color: none;
|
||
--block-title-border-width: 0;
|
||
--block-title-text-color: ${t.colorText};
|
||
--block-title-padding: 0;
|
||
--block-title-radius: none;
|
||
--block-title-text-size: ${t.fontSize}px;
|
||
--block-title-text-weight: 400;
|
||
--container-radius: ${t.borderRadiusLG}px;
|
||
--form-gap-width: 1px;
|
||
--layout-gap: var(--spacing-xxl);
|
||
--panel-background-fill: ${t.colorBgContainer};
|
||
--panel-border-color: ${t.colorBorderSecondary};
|
||
--panel-border-width: 0;
|
||
--section-header-text-size: ${t.fontSize}px;
|
||
--section-header-text-weight: 400;
|
||
--chatbot-code-background-color: ${t.colorBgContainer};
|
||
--checkbox-background-color: ${t.colorFillTertiary};
|
||
--checkbox-background-color-focus: ${t.colorFillSecondary};
|
||
--checkbox-background-color-hover: ${t.colorFillSecondary};
|
||
--checkbox-background-color-selected: ${t.colorPrimary};
|
||
--checkbox-border-color: ${t.colorBorderSecondary};
|
||
--checkbox-border-color-focus: ${t.colorBorder};
|
||
--checkbox-border-color-hover: ${t.colorBorder};
|
||
--checkbox-border-color-selected: ${t.colorPrimary};
|
||
--checkbox-border-radius: ${t.borderRadiusXS}px;
|
||
--checkbox-border-width: 1px;
|
||
--checkbox-label-background-fill: ${t.colorFillTertiary};
|
||
--checkbox-label-background-fill-hover: ${t.colorFillSecondary};
|
||
--checkbox-label-background-fill-selected: ${t.colorFillSecondary};
|
||
--checkbox-label-border-color: ${t.colorBorderSecondary};
|
||
--checkbox-label-border-color-hover: ${t.colorBorder};
|
||
--checkbox-label-border-width: 1px;
|
||
--checkbox-label-gap: var(--spacing-lg);
|
||
--checkbox-label-padding: var(--spacing-md) calc(2 * var(--spacing-md));
|
||
--checkbox-label-shadow: none;
|
||
--checkbox-label-text-size: ${t.fontSize}px;
|
||
--checkbox-label-text-weight: 400;
|
||
--checkbox-shadow: none;
|
||
--checkbox-label-text-color: ${t.colorTextDescription};
|
||
--checkbox-label-text-color-selected: ${t.colorText};
|
||
--error-background-fill: ${t.colorErrorBg};
|
||
--error-border-color: ${t.colorErrorBorder};
|
||
--error-border-width: 1px;
|
||
--error-text-color: ${t.colorErrorText};
|
||
--input-background-fill: ${t.colorFillTertiary};
|
||
--input-background-fill-focus: ${t.colorFillSecondary};
|
||
--input-background-fill-hover: ${t.colorFillSecondary};
|
||
--input-border-color: ${t.colorBorderSecondary};
|
||
--input-border-color-focus: ${t.colorBorder};
|
||
--input-border-color-hover: ${t.colorBorder};
|
||
--input-border-width: 1px;
|
||
--input-padding: var(--spacing-xl);
|
||
--input-placeholder-color: ${t.colorTextQuaternary};
|
||
--input-radius: ${t.borderRadius}px;
|
||
--input-shadow: none;
|
||
--input-shadow-focus: none;
|
||
--input-text-size: ${t.fontSize}px;
|
||
--input-text-weight: 400;
|
||
--loader-color: ${t.colorPrimary};
|
||
--prose-text-size: ${t.fontSize}px;
|
||
--prose-text-weight: 400;
|
||
--prose-header-text-weight: 600;
|
||
--slider-color: ${t.colorPrimary};
|
||
--stat-background-fill: ${t.geekblue4};
|
||
--table-border-color: ${t.colorBorderSecondary};
|
||
--table-even-background-fill: transparent;
|
||
--table-odd-background-fill: ${t.colorFillTertiary};
|
||
--table-radius: var(--radius-lg);
|
||
--table-row-focus: ${t.colorFillSecondary};
|
||
--button-border-width: 1px;
|
||
--button-cancel-background-fill: ${t.colorError};
|
||
--button-cancel-background-fill-hover: ${t.colorErrorHover};
|
||
--button-cancel-border-color: ${t.colorErrorBorder};
|
||
--button-cancel-border-color-hover: ${t.colorErrorBorderHover};
|
||
--button-cancel-text-color: ${nh(t.colorError)};
|
||
--button-cancel-text-color-hover: ${nh(t.colorError)};
|
||
--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));
|
||
--button-large-radius: ${t.borderRadius}px;
|
||
--button-large-text-size: ${t.fontSizeLG}px;
|
||
--button-large-text-weight: 600;
|
||
--button-primary-background-fill: ${t.colorPrimary};
|
||
--button-primary-background-fill-hover: ${t.colorPrimaryHover};
|
||
--button-primary-border-color: ${t.colorPrimaryBorder};
|
||
--button-primary-border-color-hover: ${t.colorPrimaryBorderHover};
|
||
--button-primary-text-color: ${nh(t.colorPrimary)};
|
||
--button-primary-text-color-hover: ${nh(t.colorPrimary)};
|
||
--button-secondary-background-fill: ${t.colorFillSecondary};
|
||
--button-secondary-background-fill-hover: ${t.colorFill};
|
||
--button-secondary-border-color: ${t.colorBorderSecondary};
|
||
--button-secondary-border-color-hover: ${t.colorBorder};
|
||
--button-secondary-text-color: ${t.colorTextSecondary};
|
||
--button-secondary-text-color-hover: ${t.colorText};
|
||
--button-shadow: none;
|
||
--button-shadow-active: none;
|
||
--button-shadow-hover: none;
|
||
--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));
|
||
--button-small-radius: ${t.borderRadiusSM}px;
|
||
--button-small-text-size: ${t.fontSize}px;
|
||
--button-small-text-weight: 400;
|
||
--button-transition: none;
|
||
}
|
||
|
||
.dark {
|
||
--checkbox-check: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
||
--radio-circle: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
||
}
|
||
`),nne(e),rne(e),ine(e),sne(e),lne(e),pF`
|
||
[id$='_settings'] {
|
||
label.svelte-1ojmf70 {
|
||
overflow: hidden;
|
||
display: block !important;
|
||
}
|
||
}
|
||
|
||
label {
|
||
position: relative;
|
||
min-width: 64px;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
&.svelte-1pie7s6 {
|
||
display: unset !important;
|
||
}
|
||
|
||
> span.svelte-1gfkn6j {
|
||
overflow: hidden;
|
||
width: 100%;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
`,one(e),cne(e),dne(e),pne(e),fne(e),hne(e),ane(e)];var t})),mne=Zb.memo((()=>(Zb.useEffect((()=>{const e=gradioApp().querySelector("#txt2img_toprow"),t=gradioApp().querySelector("#txt2img_settings"),n=gradioApp().querySelector("#txt2img_generate_box"),r=gradioApp().querySelector("#txt2img_gallery_container");e&&t&&n&&r&&(t.prepend(e),r.prepend(n));const o=gradioApp().querySelector("#img2img_toprow"),i=gradioApp().querySelector("#img2img_settings"),a=gradioApp().querySelector("#img2img_generate_box"),s=gradioApp().querySelector("#img2img_gallery_container");i&&o&&a&&s&&(i.prepend(o),s.prepend(a));const l=gradioApp().querySelector("#extras_generate"),c=gradioApp().querySelector("#extras_results");l&&c&&((null==c?void 0:c.parentNode).id="#extras_gallery_container",c.prepend(l))}),[]),null))),bne=uF((({css:e,token:t,stylish:n,isDarkMode:r,responsive:o},{isPromptResizable:i,layoutSplitPreview:a})=>({container:e`
|
||
position: relative;
|
||
flex: 1;
|
||
min-width: ${a?"200px":"0"};
|
||
|
||
.app {
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.float {
|
||
${n.blur};
|
||
border-top-left-radius: 0;
|
||
border-top-right-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
[id^='html_info_']:has(div.prose) {
|
||
p {
|
||
padding: 8px;
|
||
|
||
font-family: ${t.fontFamilyCode};
|
||
font-size: 13px !important;
|
||
color: ${t.colorInfo} !important;
|
||
|
||
background: ${t.colorInfoBg};
|
||
border: 1px solid ${t.colorInfoBorder};
|
||
border-radius: ${t.borderRadius}px;
|
||
}
|
||
}
|
||
|
||
#txt2img_styles_edit_button, #img2img_styles_edit_button {
|
||
max-width: 36px !important;
|
||
}
|
||
|
||
#txt2img_generate,
|
||
#img2img_generate,
|
||
#extras_generate {
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
|
||
#txt2img_results,
|
||
#img2img_results,
|
||
#extras_results {
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
}
|
||
|
||
#txt2img_render,
|
||
#img2img_render {
|
||
display: block !important;
|
||
margin-top: 16px;
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
|
||
.block.gradio-html:has(div.prose) {
|
||
display: block;
|
||
|
||
p {
|
||
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
|
||
|
||
b {
|
||
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
|
||
}
|
||
}
|
||
}
|
||
|
||
[id$='_override_settings_row']:has(div.hidden) {
|
||
display: none;
|
||
}
|
||
|
||
.gradio-group:has(.gradio-group:has(div:empty)) {
|
||
display: none;
|
||
}
|
||
|
||
${o.mobile} {
|
||
.gradio-row:has([id$='2img_results'], [id$='2img_results']) {
|
||
flex-direction: column-reverse;
|
||
}
|
||
}
|
||
`,splitView:e`
|
||
#txt2img_toprow,
|
||
#img2img_toprow {
|
||
flex-direction: column !important;
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
}
|
||
`,text2img:e`
|
||
button[id$='_generate'] {
|
||
height: 44px !important;
|
||
min-height: 44px !important;
|
||
max-height: 44px !important;
|
||
}
|
||
|
||
#txt2img_accordions,
|
||
#img2img_accordions {
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
flex-direction: column;
|
||
|
||
> div {
|
||
background-color: ${t.colorBgContainer}!important;
|
||
}
|
||
}
|
||
|
||
#img2img_toprow .interrogate-col {
|
||
flex-flow: row wrap;
|
||
min-width: 100% !important;
|
||
}
|
||
|
||
[id$='img_settings'],
|
||
.gradio-column.compact {
|
||
display: flex !important;
|
||
flex-direction: column !important;
|
||
gap: 12px !important;
|
||
|
||
.gradio-column:has(#img2img_res_switch_btn, #txt2img_res_switch_btn) {
|
||
min-width: min(36px, 100%) !important;
|
||
}
|
||
|
||
> div:not([id$='_script_container'], .gradio-tabs):has(div),
|
||
> fieldset {
|
||
flex-flow: row wrap;
|
||
gap: 12px;
|
||
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
|
||
background-color: ${t.colorBgContainer}!important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
|
||
.gradio-tabitem {
|
||
background: ${t.colorFillTertiary} !important;
|
||
}
|
||
|
||
[id$='_script_container'] {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
|
||
* {
|
||
--layout-gap: 12px !important;
|
||
}
|
||
|
||
> div {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
|
||
> div.gr-group.gradio-group:has(.label-wrap) {
|
||
gap: 12px !important;
|
||
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
|
||
background-color: ${t.colorBgContainer}!important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
}
|
||
|
||
.gradio-accordion:not(.hidden):has(div) {
|
||
padding: 0 !important;
|
||
border: none !important;
|
||
}
|
||
|
||
#script_list,
|
||
> .gradio-group:not(.hidden):has(div) {
|
||
display: flex;
|
||
flex-direction: column;
|
||
|
||
margin: 0;
|
||
padding: 16px;
|
||
|
||
background-color: ${t.colorBgContainer} !important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
box-shadow: none;
|
||
|
||
> .gradio-accordion {
|
||
padding: 0 !important;
|
||
border: none !important;
|
||
}
|
||
}
|
||
|
||
#script_list {
|
||
padding: 8px 16px 12px !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
#img2img_column_batch {
|
||
min-width: 100% !important;
|
||
}
|
||
|
||
#tab_txt2img,
|
||
#tab_img2img {
|
||
[id$='_settings'] {
|
||
min-width: 0 !important;
|
||
|
||
div.svelte-15lo0d8 > *,
|
||
div.svelte-15lo0d8 > .form > * {
|
||
flex: 1;
|
||
}
|
||
}
|
||
|
||
#txt2img_gallery {
|
||
overflow: hidden !important;
|
||
border-radius: var(--border-radius) !important;
|
||
}
|
||
|
||
[id$='2img_tools'] > div {
|
||
display: flex;
|
||
justify-content: center;
|
||
|
||
button {
|
||
max-width: unset !important;
|
||
}
|
||
}
|
||
|
||
.gradio-html[id^='img2img_label_copy_to'] {
|
||
display: none;
|
||
}
|
||
|
||
.gradio-row[id^='img2img_copy_to'],
|
||
.gap.compact,
|
||
.image-buttons,
|
||
.image_buttons_extras {
|
||
gap: 8px !important;
|
||
}
|
||
}
|
||
|
||
#npw {
|
||
background-color: ${t.colorBgContainer} !important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
box-shadow: none;
|
||
padding: 16px !important;
|
||
}
|
||
`,textares:e`
|
||
[id$='2img_prompt'],
|
||
[id$='2img_neg_prompt'] {
|
||
textarea {
|
||
resize: ${i?"vertical":"none"};
|
||
|
||
overflow-y: auto;
|
||
|
||
padding: 8px !important;
|
||
|
||
font-family: ${t.fontFamilyCode};
|
||
font-size: 13px !important;
|
||
line-height: 1.5 !important;
|
||
word-wrap: break-word !important;
|
||
white-space: pre-wrap !important;
|
||
|
||
transition:
|
||
all 0.3s,
|
||
height 0s;
|
||
}
|
||
}
|
||
|
||
[id$='2img_prompt'] > label > textarea {
|
||
color: ${t.colorSuccessTextHover};
|
||
|
||
&:focus {
|
||
color: ${t.colorSuccessText};
|
||
}
|
||
}
|
||
|
||
[id$='2img_neg_prompt'] > label > textarea {
|
||
color: ${t.colorErrorTextHover};
|
||
|
||
&:focus {
|
||
color: ${t.colorError};
|
||
}
|
||
}
|
||
|
||
.block.token-counter {
|
||
z-index: 10 !important;
|
||
top: -12px;
|
||
right: 4px;
|
||
scale: 0.8;
|
||
|
||
background: ${t.colorBgContainer} !important;
|
||
|
||
> .translucent {
|
||
display: none;
|
||
}
|
||
|
||
span {
|
||
display: inline-block;
|
||
font-family: ${t.fontFamilyCode};
|
||
}
|
||
}
|
||
|
||
#lobe_txt2img_prompt .prompt_editor {
|
||
min-height: ${74}px;
|
||
max-height: ${i?"unset":"74px"};
|
||
}
|
||
|
||
#lobe_img2img_prompt .prompt_editor {
|
||
min-height: ${98}px;
|
||
max-height: ${i?"unset":"98px"};
|
||
}
|
||
|
||
#text2img_prompt,
|
||
#text2img_neg_prompt {
|
||
textarea {
|
||
min-height: ${74}px;
|
||
max-height: ${i?"unset":"74px"};
|
||
}
|
||
}
|
||
|
||
#img2img_prompt,
|
||
#img2img_neg_prompt {
|
||
textarea {
|
||
min-height: ${98}px;
|
||
max-height: ${i?"unset":"98px"};
|
||
}
|
||
}
|
||
`}))),yne=Zb.memo((({className:e,...t})=>{const n=Zb.useRef(null),{mobile:r}=qT(),o=w9(b9,O6),{cx:i,styles:a}=bne({isPromptResizable:"resizable"===o.promptTextareaType,layoutSplitPreview:o.layoutSplitPreview});return Zb.useEffect((()=>{var e;const t=gradioApp().querySelector(".app");t&&(null==(e=n.current)||e.append(t));const r=gradioApp().querySelectorAll('[id$="_prompt_container"] textarea');if(r)for(const n of r)n.classList.remove("scroll-hide"),n.style.height="auto";const o=gradioApp().querySelector("#img2img_toprow .interrogate-col"),i=gradioApp().querySelector("#img2img_actions_column");o&&i&&i.append(o),Tee.addPromptButton("txt2img"),Tee.addPromptButton("img2img")}),[]),ay.jsxs(ay.Fragment,{children:[ay.jsx("div",{className:i(a.container,a.textares,a.text2img,o.layoutSplitPreview&&a.splitView,e),ref:n,...t}),o.layoutSplitPreview&&!1===r&&ay.jsx(mne,{})]})})),vne=uF((({css:e,token:t},{headerHeight:n=64,size:r=86})=>({body:e`
|
||
.hide {
|
||
display: none;
|
||
}
|
||
|
||
.extra-networks .tab-nav > button {
|
||
&:first-child {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
#txt2img_extra_search,
|
||
#img2img_extra_search {
|
||
width: 100% !important;
|
||
max-width: unset !important;
|
||
}
|
||
|
||
#txt2img-extra-network-sidebar,
|
||
#img2img-extra-network-sidebar {
|
||
button.lg.secondary.gradio-button,
|
||
#txt2img_extra_sort,
|
||
#img2img_extra_sort {
|
||
height: 34px !important;
|
||
min-height: 34px !important;
|
||
}
|
||
|
||
.tabitem {
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
}
|
||
|
||
.extra-network-cards {
|
||
height: unset;
|
||
min-height: unset;
|
||
|
||
.name {
|
||
background: unset !important;
|
||
}
|
||
|
||
.additional {
|
||
position: relative !important;
|
||
}
|
||
}
|
||
|
||
.extra-network-thumbs .name {
|
||
overflow: hidden;
|
||
display: block;
|
||
|
||
font-size: 12px !important;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
background: transparent;
|
||
}
|
||
|
||
.extra-network-cards,
|
||
.extra-network-thumbs {
|
||
overflow: unset;
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(${r}px, 1fr));
|
||
gap: 8px;
|
||
|
||
&:has(.nocards) {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
.extra-networks {
|
||
.tab-nav {
|
||
align-items: center;
|
||
|
||
> * {
|
||
height: 40px !important;
|
||
margin: 0 !important;
|
||
font-size: 14px !important;
|
||
}
|
||
}
|
||
|
||
.extra-network-subdirs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
align-items: center;
|
||
|
||
margin-bottom: 12px;
|
||
padding: 0 !important;
|
||
|
||
> button {
|
||
cursor: pointer;
|
||
|
||
zoom: 0.8;
|
||
|
||
flex: 1;
|
||
|
||
min-width: 100px;
|
||
margin: 0;
|
||
}
|
||
}
|
||
|
||
.actions {
|
||
.name {
|
||
overflow: hidden;
|
||
display: block;
|
||
|
||
font-weight: bold;
|
||
text-overflow: ellipsis;
|
||
text-shadow: 0 1px 1px rgb(0 0 0 / 90%);
|
||
white-space: nowrap;
|
||
|
||
background: linear-gradient(0deg, rgb(0 0 0 / 80%), transparent);
|
||
}
|
||
|
||
.additional {
|
||
position: absolute;
|
||
display: none;
|
||
|
||
> ul {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
margin: 0;
|
||
padding: 0;
|
||
|
||
a {
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
|
||
font-size: 15px !important;
|
||
color: #fff;
|
||
text-overflow: ellipsis;
|
||
text-shadow: 1px 1px black;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.card {
|
||
overflow: hidden;
|
||
|
||
width: 100% !important;
|
||
height: ${1.5*r}px !important;
|
||
margin: 0 !important;
|
||
|
||
background-size: cover;
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadiusSM}px;
|
||
outline: none;
|
||
|
||
transition:
|
||
box-shadow 200ms ${t.motionEaseOut},
|
||
scale 400ms ${t.motionEaseOut};
|
||
|
||
.name {
|
||
font-size: 12px !important;
|
||
}
|
||
|
||
&:hover {
|
||
border-color: ${t.colorPrimary};
|
||
box-shadow: 0 0 0 1px ${t.colorPrimary};
|
||
|
||
.additional {
|
||
display: flex !important;
|
||
}
|
||
|
||
.name {
|
||
white-space: unset;
|
||
}
|
||
}
|
||
|
||
&:active {
|
||
scale: 0.9;
|
||
}
|
||
}
|
||
|
||
.button-row {
|
||
padding: 0 4px;
|
||
background: rgba(0, 0, 0, 50%);
|
||
border-bottom-left-radius: ${t.borderRadius}px;
|
||
|
||
> div {
|
||
font-size: 15px !important;
|
||
text-shadow: none !important;
|
||
}
|
||
}
|
||
|
||
.metadata-button {
|
||
&::before {
|
||
content: 'ℹ️' !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
div#txt2img_extra_networks,
|
||
div#img2img_extra_networks {
|
||
display: block !important;
|
||
|
||
.tabitem.gradio-tabitem.svelte-19hvt5v {
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
|
||
.search {
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
max-height: 36px !important;
|
||
padding: 8px;
|
||
}
|
||
|
||
button {
|
||
height: 32px !important;
|
||
}
|
||
}
|
||
|
||
textarea {
|
||
resize: none;
|
||
overflow-y: hidden !important;
|
||
font-family: ${t.fontFamily};
|
||
}
|
||
`,container:e`
|
||
height: calc(100vh - ${n}px);
|
||
`}))),wne=["txt2img","img2img"],xne=["textual_inversion","hypernetworks","checkpoints","lora","lycoris"],kne={checkpoints:"ckp",hypernetworks:"hyper",lora:"lora",lycoris:"lycoris",textual_inversion:"ti"},Sne=new Set(["🌐","💡","🏷️"]),Cne="lobeDone",Ene=(e,t)=>{t?(e.style.display="inline",e.style.fontSize="100%",e.style.position="static",e.style.backgroundImage="none"):(e.style.fontSize="15px",e.style.margin="0")},Dne=()=>{let e,t,n=0;const r=()=>{setTimeout(t,2e3)};return t=()=>{let t=0;const o=setInterval((()=>{var i;const a=document.querySelector("#txt2img_lora_cards");if(a||t>10){if(e!==a){n=0,e=a;for(const e of wne){const t=document.querySelectorAll(`#${e}_extra_tabs .tab-nav button`);if(t)for(const e of t)e.removeEventListener("click",r),e.addEventListener("click",r)}}const s=null==(i=(()=>{var e;if(!document.querySelector("#tab_civitai_helper"))return;const t=getTranslation("replace preview")||"replace preview",n=document.querySelector("#ch_always_display_ckb input"),r=document.querySelector("#ch_show_btn_on_thumb_ckb input"),o=(null==n?void 0:n.checked)||!1,i=(null==r?void 0:r.checked)||!1;let a,s,l,c,u,d,p,f,h,g="",m=!1,b=!1;const y=[];for(const v of wne)for(const n of xne){if(f=kne[n],a=`${v}_${n}_cards`,s=document.querySelector(`#${a}`),Wb(s))continue;b=s.classList.contains("extra-network-thumbs"),h=s.querySelectorAll(".card");const r=!!document.querySelector(`#${a}_html .pending`);if((null==h?void 0:h.length)&&!r){y.push(n);for(const n of h){if("1"===n.dataset[Cne])break;if(n.dataset[Cne]="1",n.querySelectorAll(".actions .additional a").length>2)continue;if(l=n.querySelector(".metadata-button"),c=n.querySelector(".actions .additional"),d=n.querySelector(".actions .additional ul"),Wb(d)&&(d=document.createElement("ul"),c.append(d)),u=n.querySelector(".actions .additional a"),Wb(u)&&(u=document.createElement("a"),c.append(u)),null==(e=d.querySelector("br"))||e.remove(),b&&c){if(c.style.display=void 0,!i){d.style.background=void 0;const e=d.querySelectorAll("a");if(!(null==e?void 0:e.length))continue;for(const n of e)n.style.display=void 0,Sne.has(n.innerHTML)?n.remove():(n.innerHTML=t,n.style.display=void 0,n.style.fontSize=void 0,n.style.position=void 0,n.style.backgroundImage=void 0);continue}d.style.background="rgba(0, 0, 0, 0.8)"}else c.style.display=o?"block":void 0;if("🖼️"!==u.innerHTML&&(m=!0,u.innerHTML="🖼️",Ene(u,b)),!m)continue;if(p=n.querySelector(".actions .additional .search_term"),!p)return;if(g=p.innerHTML,!g)continue;const r=document.createElement("a");r.href="#",r.innerHTML="🌐",Ene(r,b),r.title="Open this model's civitai url",r.setAttribute("onclick",`open_model_url(event, '${f}', '${g}')`);const a=document.createElement("a");a.href="#",a.innerHTML="💡",Ene(a,b),a.title="Add trigger words to prompt",a.setAttribute("onclick",`add_trigger_words(event, '${f}', ', ${g}')`);const s=document.createElement("a");s.href="#",s.innerHTML="🏷️",Ene(s,b),s.title="Use prompt from preview image",s.setAttribute("onclick",`use_preview_prompt(event, '${f}', '${g}')`),d.append(r),b&&l&&d.append(document.createElement("br")),d.append(a),d.append(s)}}else!r&&s.querySelector(".nocards")&&y.push(n)}return y})())?void 0:i.length;"number"==typeof s&&s<n&&(n=s),(t>10||!a||s>=xne.length||s>n)&&(clearInterval(o),n=s??n)}t++}),2e3)},t()},One=Zb.memo((()=>{const e=Zb.useRef(null),t=Zb.useRef(null),[n,r]=Zb.useState(!0),o=w9(b9,O6),i=w9(y9,ki),[a,s]=Zb.useState(o.extraNetworkCardSize||86),{styles:l}=vne({size:a});return Zb.useEffect((()=>{var n,i;if(o.enableExtraNetworkSidebar){const o=gradioApp().querySelectorAll("#txt2img_extra_tabs > .tab-nav > button")[1],a=gradioApp().querySelectorAll("#img2img_extra_tabs > .tab-nav > button")[1];o&&o.click(),a&&a.click();const s=gradioApp().querySelector("div#tab_txt2img"),l=gradioApp().querySelector("div#txt2img_extra_tabs"),c=l.querySelectorAll("div.tabitem.gradio-tabitem")[0],u=gradioApp().querySelector("div#tab_img2img"),d=gradioApp().querySelector("div#img2img_extra_tabs"),p=d.querySelectorAll("div.tabitem.gradio-tabitem")[0];if(l&&d&&(null==(n=e.current)||n.append(l),c.id="txt2img_render",null==s||s.append(c),null==(i=t.current)||i.append(d),p.id="img2img_render",null==u||u.append(p)),document.querySelector(".extra-network-cards"))return Dne(),void r(!1)}}),[]),p=2e3,(u=Zb.useRef(c=()=>{var e,t;const n=document.querySelector("#txt2img_extra_refresh"),o=document.querySelector("#img2img_extra_refresh");n.click(),o.click(),r(!1);try{const n=null==(e=document.querySelector("#txt2img_extra_refresh"))?void 0:e.nextSibling;n&&(n.onclick=Dne);const r=null==(t=document.querySelector("#img2img_extra_refresh"))?void 0:t.nextSibling;r&&(r.onclick=Dne),Dne()}catch(i){}})).current=Zb.useMemo((function(){return c}),[c]),(d=Zb.useRef()).current||(d.current=function(){var e,t=[];for(e=0;e<arguments.length;e++)t[e]=arguments[e];return u.current.apply(this,t)}),f=d.current,h=Zb.useRef(null),g=Zb.useCallback((function(){h.current&&clearTimeout(h.current)}),[]),Zb.useEffect((function(){if(iR(p))return h.current=setTimeout(f,p),g}),[p]),ay.jsxs(ay.Fragment,{children:[ay.jsxs(S6,{className:l.body,children:[n&&ay.jsx(Y2,{active:!0}),ay.jsxs("div",{style:n?{display:"none"}:{},children:[ay.jsx("div",{id:"txt2img-extra-network-sidebar",ref:e,style:"tab_img2img"===i?{display:"none"}:{}}),ay.jsx("div",{id:"img2img-extra-network-sidebar",ref:t,style:"tab_img2img"===i?{}:{display:"none"}})]})]}),ay.jsxs(E6,{children:[ay.jsx(n6,{icon:o.extraNetworkCardSize<a?mY:gY,onClick:()=>s(o.extraNetworkCardSize),size:{blockSize:24,fontSize:16}}),ay.jsx(E3,{defaultValue:a,max:256,min:64,onChange:s,step:8,style:{flex:1},value:a})]})]});var c,u,d,p,f,h,g})),_ne=Zb.memo((({headerHeight:e})=>{const{mobile:t}=qT(),n=w9(b9,O6),[r,o]=Zb.useState(!t&&n.extraNetworkSidebarExpand),[i,a]=Zb.useState("fixed"===n.extraNetworkFixedMode),{styles:s,theme:l}=vne({headerHeight:e}),{t:c}=$g();Zb.useEffect((()=>{t&&o(!1)}),[t]);const u=t||i?"fixed":"float";return ay.jsx(k6,{defaultSize:{width:n.extraNetworkSidebarWidth},expand:r,minWidth:n.extraNetworkSidebarWidth,mode:u,onExpandChange:o,pin:i,placement:"right",children:ay.jsx(JW,{children:ay.jsxs(C6,{className:s.container,style:"float"===u?{background:l.colorBgContainer,minWidth:n.extraNetworkSidebarWidth}:{minWidth:n.extraNetworkSidebarWidth},children:[ay.jsx(D6,{pin:i,position:"right",setExpand:o,setPin:a,title:c("extraNetwork")}),ay.jsx(One,{})]})})})})),$ne=_ne,jne=[{description:"AUTOMATIC111",openExternal:!0,title:"Stable Diffusion Webui",url:"https://github.com/AUTOMATIC1111/stable-diffusion-webui"},{description:"WebUI extension",openExternal:!0,title:"Controlnet",url:"https://github.com/Mikubill/sd-webui-controlnet"},{description:"Art models",openExternal:!0,title:"Civitai",url:"https://civitai.com/"},{description:"Artist Inspired Styles",openExternal:!0,title:"Cheat Sheet",url:"https://supagruen.github.io/StableDiffusion-CheatSheet"},{description:"Image Resizing",openExternal:!0,title:"Birme",url:"https://www.birme.net/?target_width=512&target_height=512"}],Nne=[{icon:ay.jsx(Z3,{icon:GK,size:"small"}),openExternal:!0,title:"Report Bug",url:`${u8}/issues/new/choose`},{icon:ay.jsx(Z3,{icon:JK,size:"small"}),openExternal:!0,title:"Request Feature",url:`${u8}/issues/new/choose`}],Pne=[{icon:ay.jsx(Z3,{icon:ZK,size:"small"}),openExternal:!0,title:"GitHub",url:u8},{icon:ay.jsx(Z3,{icon:QK,size:"small"}),openExternal:!0,title:"Changelog",url:`${u8}/blob/main/CHANGELOG.md`}],Ine=[{description:"Minifier ExtraNetwrok Covers",openExternal:!0,title:"✂️ Cover Minifier",url:"https://github.com/canisminor1990/sd-webui-cover-minifier"},{description:"OpenAI Chat Bot",openExternal:!0,title:"🤖 Lobe Chat",url:"https://chat.lobehub.com"},{description:"AIGC Components",openExternal:!0,title:"🍭 Lobe UI",url:"https://ui.lobehub.com"},{description:"AI Commit CLI",openExternal:!0,title:"💌 Lobe Commit",url:"https://github.com/lobehub/lobe-commit"}],Tne=uF((({css:e})=>({footer:e`
|
||
footer {
|
||
display: block !important;
|
||
}
|
||
`}))),Fne=Zb.memo((({className:e,...t})=>{const n=w9(b9,O6),{cx:r,styles:o}=Tne(),{t:i}=$g(),a=Zb.useRef(null);return Zb.useEffect((()=>{var e;const t=gradioApp().querySelector("#footer");t&&(null==(e=a.current)||e.append(t))}),[]),ay.jsx("div",{className:r(o.footer,e),...t,children:ay.jsx($6,{bottom:ay.jsx("div",{ref:a}),columns:n.layoutHideFooter?[]:[{items:jne,title:i("resources")},{items:Nne,title:i("community")},{items:Pne,title:i("help")},{items:Ine,title:i("moreProducts")}]})})})),Ane=Fne,Rne=({size:e})=>ay.jsx("svg",{fill:"currentColor",height:e,viewBox:"0 0 16 16",width:e,children:ay.jsx("path",{d:"M2 4.5L8 1l6 3.5v7L8 15l-6-3.5v-7zm6-1.194L3.976 5.653v4.694L8 12.694l4.024-2.347V5.653L8 3.306zm0 1.589l2.662 1.552v.824H9.25L8 6.54l-1.25.73v1.458L8 9.46l1.25-.73h1.412v.824L8 11.105 5.338 9.553V6.447L8 4.895z"})}),Mne=Zb.memo((()=>{const[e,t]=Zb.useState(!1),[n,r]=Zb.useState(!1),o=w9(v9,ki),{mobile:i}=qT(),{t:a}=$g(),s=Zb.useCallback((()=>{const e="light"===o?"dark":"light",t=lte.parseUrl(window.location.href);t.query.__theme=e,window.location.replace(lte.stringifyUrl(t))}),[o]);return ay.jsxs(ay.Fragment,{children:[ay.jsxs(b4.Compact,{children:[!i&&ay.jsxs(ay.Fragment,{children:[ay.jsx("a",{href:"https://civitai.com/",rel:"noreferrer",target:"_blank",children:ay.jsx(n6,{icon:Rne,title:"Civitai"})}),ay.jsx("a",{href:"https://supagruen.github.io/StableDiffusion-CheatSheet/",rel:"noreferrer",target:"_blank",children:ay.jsx(n6,{icon:eY,title:"Cheat Sheet"})}),ay.jsx(n6,{icon:ZK,onClick:()=>r(!0),title:a("feedback")})]}),ay.jsx(n6,{icon:"light"===o?pY:oY,onClick:s,title:a("switchTheme")}),ay.jsx(n6,{icon:dY,onClick:()=>t(!0),title:a("setting")})]}),ay.jsx(tte,{onCancel:()=>t(!1),open:e}),ay.jsx(C9,{onCancel:()=>r(!1),open:n})]})})),Lne=Mne,Bne=()=>Array.prototype.slice.call(gradioApp().querySelectorAll("#tabs > .tab-nav:first-of-type button")),zne=Zb.memo((()=>{const e=w9(y9,ki),{mobile:t}=qT(),[n,r]=Zb.useState(!1),[o,i]=Zb.useState([]),a=Zb.useMemo((()=>(()=>{const e=Array.prototype.slice.call(gradioApp().querySelectorAll('#tabs > [id^="tab_"]'));return Bne().map(((t,n)=>({id:e[n].id,index:n,label:l6(String(t.textContent))})))})()),[]),s=Zb.useCallback((e=>{var t;const n=(null==(t=a.find((t=>t.id===e)))?void 0:t.index)||0;Bne()[n].click()}),[a]);return Zb.useEffect((()=>{gradioApp().querySelector("#tabs > .tab-nav:first-of-type").style.display="none";const e=a.map((e=>({key:e.id,label:t?ay.jsx("div",{onClick:()=>s(e.id),children:e.label}):e.label})));i(e.filter(Boolean))}),[t]),t?ay.jsx(v6,{items:o,opened:n,setOpened:r}):ay.jsx(X6,{activeKey:e,items:o,onChange:s})})),Hne=Zb.memo((({children:e})=>{const{themeMode:t,version:n}=w9((e=>({themeMode:e.themeMode,version:e.version})),ki),r=bF();return ay.jsx(z6,{actions:ay.jsx(Lne,{themeMode:t}),actionsStyle:{flex:0},logo:ay.jsx("a",{href:`${u8}/releases`,rel:"noreferrer",style:{alignItems:"center",color:r.colorText,display:"flex"},target:"_blank",children:ay.jsx(t6,{title:`sd-webui-lobe-theme v${n}`,children:ay.jsx($9,{})})}),nav:ay.jsxs(ay.Fragment,{children:[ay.jsx(zne,{}),e]})})})),Wne=Zb.memo((()=>{const e=w9(b9,O6),t=Zb.useRef(null);return Zb.useEffect((()=>{var e;const n=gradioApp().querySelector("#quicksettings");n&&(null==(e=t.current)||e.append(n))}),[]),ay.jsxs(S6,{children:[e.promptEditor&&ay.jsx(Wee,{}),ay.jsx("div",{ref:t})]})})),Une=uF((({css:e},{headerHeight:t=64,width:n})=>({container:e`
|
||
height: calc(100vh - ${t}px);
|
||
|
||
ul.options {
|
||
> li {
|
||
max-width: ${n-48}px;
|
||
}
|
||
}
|
||
|
||
#quicksettings {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
justify-content: stretch;
|
||
|
||
width: 100%;
|
||
|
||
> * {
|
||
flex: 1;
|
||
|
||
width: 100% !important;
|
||
min-width: unset !important;
|
||
max-width: unset !important;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.head > label {
|
||
min-width: unset;
|
||
max-width: 60%;
|
||
margin-right: 12px;
|
||
}
|
||
|
||
input[type='color'] {
|
||
width: 100%;
|
||
}
|
||
|
||
input[type='number'],
|
||
textarea {
|
||
resize: none;
|
||
box-sizing: border-box;
|
||
height: 28px !important;
|
||
padding: 4px !important;
|
||
}
|
||
|
||
textarea {
|
||
width: 100%;
|
||
}
|
||
|
||
span {
|
||
overflow: hidden;
|
||
width: 100%;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.dropdown-arrow {
|
||
min-width: 16px;
|
||
min-height: 16px;
|
||
}
|
||
|
||
div.gradio-dropdown {
|
||
min-width: unset !important;
|
||
}
|
||
}
|
||
`}))),Vne=Zb.memo((({headerHeight:e})=>{const{mobile:t}=qT(),n=w9(b9,O6),[r,o]=Zb.useState(!t&&n.sidebarExpand),[i,a]=Zb.useState("fixed"===n.sidebarFixedMode),[s,l]=Zb.useState(n.sidebarWidth),{styles:c,theme:u}=Une({headerHeight:e,width:s}),{t:d}=$g();Zb.useEffect((()=>{t&&o(!1)}),[t]);const p=t||i?"fixed":"float";return ay.jsx(k6,{defaultSize:{width:n.sidebarWidth},expand:r,minWidth:n.sidebarWidth,mode:p,onExpandChange:o,onSizeChange:(e,t)=>(null==t?void 0:t.width)&&l(Number.parseInt(String(t.width))),pin:i,placement:"left",style:{display:"flex",flexDirection:"column"},children:ay.jsx(JW,{children:ay.jsxs(C6,{className:c.container,style:"float"===p?{background:u.colorBgContainer,minWidth:n.sidebarWidth}:{minWidth:n.sidebarWidth},children:[ay.jsx(D6,{pin:i,position:"left",setExpand:o,setPin:a,title:d("quickSetting")}),ay.jsx(Wne,{})]})})})})),Gne=Vne,qne=uF((({cx:e,css:t,stylish:n,token:r,isDarkMode:o},{headerHeight:i,isPrimaryColor:a})=>({background:e(n.gradientAnimation,a&&t`
|
||
background-image: linear-gradient(
|
||
-45deg,
|
||
${r.colorPrimary},
|
||
${eR(45,r.colorPrimary)},
|
||
${r.colorPrimary},
|
||
${eR(-45,r.colorPrimary)}
|
||
);
|
||
`,t`
|
||
pointer-events: none;
|
||
|
||
position: absolute !important;
|
||
z-index: 0;
|
||
right: -20vw;
|
||
transform: rotate(4deg);
|
||
|
||
width: 60vw;
|
||
height: 200px;
|
||
|
||
opacity: 0.2;
|
||
filter: blur(100px);
|
||
`),backgroundLite:t`
|
||
pointer-events: none;
|
||
|
||
position: absolute !important;
|
||
top: -400px;
|
||
left: 0;
|
||
|
||
width: 100vw;
|
||
height: 100%;
|
||
|
||
opacity: ${a?o?.2:.05:o?.15:0};
|
||
background: radial-gradient(
|
||
circle 600px at calc(100% - 300px) 300px,
|
||
${r.colorPrimary},
|
||
transparent
|
||
);
|
||
`,panel:t`
|
||
.draggable-panel {
|
||
border-style: dashed;
|
||
}
|
||
`,quicksettings:t`
|
||
#quicksettings {
|
||
padding: 16px !important;
|
||
}
|
||
`,sidebar:t`
|
||
height: calc(100vh - ${i}px);
|
||
`}))),Xne=64,Kne=Zb.memo((()=>{const e=w9(b9,O6),{cx:t,styles:n}=qne({headerHeight:Xne,isPrimaryColor:Boolean(e.primaryColor)});return Zb.useEffect((()=>{e.enableHighlight&&(Zte("#txt2img_prompt","#lobe_txt2img_prompt"),Zte("#img2img_prompt","#lobe_img2img_prompt")),e.svgIcon&&(()=>{for(const e of document.querySelectorAll("button"))tne(e,["🖌️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />\n <path d="M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z" />\n</svg>\n'),tne(e,["🗃️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M4 22V4c0-.5.2-1 .6-1.4C5 2.2 5.5 2 6 2h8.5L20 7.5V20c0 .5-.2 1-.6 1.4-.4.4-.9.6-1.4.6h-2" />\n <polyline points="14 2 14 8 20 8" />\n <circle cx="10" cy="20" r="2" />\n <path d="M10 7V6" />\n <path d="M10 12v-1" />\n <path d="M10 18v-2" />\n</svg>\n'),tne(e,["🖼️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m2 22 1-1h3l9-9" />\n <path d="M3 21v-3l9-9" />\n <path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" />\n</svg>\n'),tne(e,["🎨️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />\n <circle cx="9" cy="9" r="2" />\n <path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />\n</svg>\n'),tne(e,["📂"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z" />\n <path d="M2 10h20" />\n</svg>\n'),tne(e,["🔄","🔁","♻️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />\n <path d="M3 3v5h5" />\n <path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16" />\n <path d="M16 16h5v5" />\n</svg>\n'),tne(e,["↙️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M17 7 7 17" />\n <path d="M17 17H7V7" />\n</svg>\n'),tne(e,["⤴"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <polyline points="10 9 15 4 20 9" />\n <path d="M4 20h7a4 4 0 0 0 4-4V4" />\n</svg>\n'),tne(e,["↕️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m3 16 4 4 4-4" />\n <path d="M7 20V4" />\n <path d="M11 4h10" />\n <path d="M11 8h7" />\n <path d="M11 12h4" />\n</svg>\n'),tne(e,["🗑️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M3 6h18" />\n <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" />\n <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" />\n</svg>\n'),tne(e,["📋"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="8" height="4" x="8" y="2" rx="1" ry="1" />\n <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />\n <path d="M12 11h4" />\n <path d="M12 16h4" />\n <path d="M8 11h.01" />\n <path d="M8 16h.01" />\n</svg>\n'),tne(e,["💾"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" />\n <polyline points="17 21 17 13 7 13 7 21" />\n <polyline points="7 3 7 8 15 8" />\n</svg>\n'),tne(e,["🎲️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="12" height="12" x="2" y="10" rx="2" ry="2" />\n <path d="m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6" />\n <path d="M6 18h.01" />\n <path d="M10 14h.01" />\n <path d="M15 6h.01" />\n <path d="M18 9h.01" />\n</svg>\n'),tne(e,["🪄"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z" />\n <path d="m14 7 3 3" />\n <path d="M5 6v4" />\n <path d="M19 14v4" />\n <path d="M10 2v2" />\n <path d="M7 8H3" />\n <path d="M21 16h-4" />\n <path d="M11 3H9" />\n</svg>\n'),tne(e,["⚙️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <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" />\n <circle cx="12" cy="12" r="3" />\n</svg>\n'),tne(e,["➡️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M5 12h14" />\n <path d="m12 5 7 7-7 7" />\n</svg>\n'),tne(e,["⇅"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21 16-4 4-4-4" />\n <path d="M17 20V4" />\n <path d="m3 8 4-4 4 4" />\n <path d="M7 4v16" />\n</svg>\n'),tne(e,["⇄"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m16 3 4 4-4 4" />\n <path d="M20 7H4" />\n <path d="m8 21-4-4 4-4" />\n <path d="M4 17h16" />\n</svg>\n'),tne(e,["🎴"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />\n <line x1="15" x2="15" y1="3" y2="21" />\n</svg>\n'),tne(e,["🌀"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="20" height="5" x="2" y="3" rx="1" />\n <path d="M4 8v11a2 2 0 0 0 2 2h2" />\n <path d="M20 8v11a2 2 0 0 1-2 2h-2" />\n <path d="m9 15 3-3 3 3" />\n <path d="M12 12v9" />\n</svg>\n'),tne(e,["💥"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <polygon points="5 3 19 12 5 21 5 3" />\n</svg>\n'),tne(e,["📷"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <circle cx="12" cy="10" r="8" />\n <circle cx="12" cy="10" r="3" />\n <path d="M7 22h10" />\n <path d="M12 22v-4" />\n</svg>\n'),tne(e,["📝"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="12" x="3" y="4" rx="2" ry="2" />\n <line x1="2" x2="22" y1="20" y2="20" />\n</svg>\n'),tne(e,["📐"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m15 5 4 4" />\n <path d="M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13" />\n <path d="m8 6 2-2" />\n <path d="m2 22 5.5-1.5L21.17 6.83a2.82 2.82 0 0 0-4-4L3.5 16.5Z" />\n <path d="m18 16 2-2" />\n <path d="m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17" />\n</svg>\n')})()}),[]),ay.jsxs(ay.Fragment,{children:[ay.jsx(gne,{}),ay.jsx(KW,{headerHeight:Xne,children:ay.jsx(Hne,{})}),ay.jsxs(YW,{children:[ay.jsx("div",{className:e.liteAnimation?n.backgroundLite:n.background}),e.enableSidebar&&ay.jsx(QW,{className:n.sidebar,headerHeight:Xne,style:{flex:0,zIndex:50},children:ay.jsx(Gne,{headerHeight:Xne})}),ay.jsx(yne,{className:t(!e.enableSidebar&&n.quicksettings)}),(null==e?void 0:e.enableExtraNetworkSidebar)&&ay.jsx(QW,{className:n.sidebar,headerHeight:Xne,style:{flex:0,zIndex:50},children:ay.jsx($ne,{headerHeight:Xne})})]}),ay.jsx(Ane,{})]})})),Yne={background_color:"#000000",description:"The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.",display:"standalone",icons:[{sizes:"192x192",src:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-192x192.png",type:"image/png"},{sizes:"512x512",src:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-512x512.png",type:"image/png"}],id:"/",name:"Stable Diffusion",orientation:"portrait",scope:"/",short_name:"Stable Diffusion",splash_pages:null,start_url:location.origin,theme_color:"#000000"},Qne=`data:application/manifest+json;base64,${btoa(JSON.stringify(Yne))}`,Jne=Zb.memo((()=>{const[e,t]=Zb.useState(!0),{setCurrentTab:n,onInit:r,storeLoading:o}=w9((e=>({onInit:e.onInit,setCurrentTab:e.setCurrentTab,storeLoading:e.loading})),ki);return Zb.useEffect((()=>{r(),onUiLoaded((()=>{t(!1)})),onUiTabChange((()=>{n()}))}),[]),ay.jsxs(Zb.Suspense,{fallback:"loading...",children:[ay.jsxs(DC,{children:[ay.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),ay.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),ay.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),ay.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/site.webmanifest",rel:"manifest"}),ay.jsx("meta",{content:"Stable Diffusion · LobeHub",name:"apple-mobile-web-app-title"}),ay.jsx("meta",{content:"Stable Diffusion · LobeHub",name:"application-name"}),ay.jsx("meta",{content:"#000000",name:"msapplication-TileColor"}),ay.jsx("meta",{content:"#000000",name:"theme-color"}),ay.jsx("link",{href:Qne,rel:"manifest"})]}),ay.jsx(cte,{children:ay.jsx(!1===o&&!1===e?Kne:D9,{})})]})}));void 0===window.global&&(window.global=window),window.location.href.includes("dev")||document.addEventListener("DOMContentLoaded",(()=>{var e,t;const n=document.createElement("div");n.setAttribute("id","root");try{null==(e=gradioApp())||e.append(n)}catch{null==(t=document.querySelector("gradio-app"))||t.append(n)}hS(n).render(ay.jsx(Jne,{}))}),{once:!0});
|