Files
zombieyang-sd-ppp/javascript/sdppp-comfy.js
T
2025-06-18 22:31:43 +08:00

661 lines
789 KiB
JavaScript

var A4=Object.create;var Dp=Object.defineProperty;var yR=Object.getOwnPropertyDescriptor;var k4=Object.getOwnPropertyNames;var M4=Object.getPrototypeOf,F4=Object.prototype.hasOwnProperty;var U0=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),q0=(e,t)=>{for(var r in t)Dp(e,r,{get:t[r],enumerable:!0})},L4=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of k4(t))!F4.call(e,o)&&o!==r&&Dp(e,o,{get:()=>t[o],enumerable:!(n=yR(t,o))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?A4(M4(e)):{},L4(t||!e||!e.__esModule?Dp(r,"default",{value:e,enumerable:!0}):r,e));var Qt=(e,t,r,n)=>{for(var o=n>1?void 0:n?yR(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&Dp(t,r,o),o};var RO=$o(Ct=>{"use strict";var xf=Symbol.for("react.element"),w5=Symbol.for("react.portal"),E5=Symbol.for("react.fragment"),R5=Symbol.for("react.strict_mode"),O5=Symbol.for("react.profiler"),_5=Symbol.for("react.provider"),P5=Symbol.for("react.context"),T5=Symbol.for("react.forward_ref"),N5=Symbol.for("react.suspense"),I5=Symbol.for("react.memo"),$5=Symbol.for("react.lazy"),mO=Symbol.iterator;function D5(e){return e===null||typeof e!="object"?null:(e=mO&&e[mO]||e["@@iterator"],typeof e=="function"?e:null)}var vO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yO=Object.assign,xO={};function vc(e,t,r){this.props=e,this.context=t,this.refs=xO,this.updater=r||vO}vc.prototype.isReactComponent={};vc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bO(){}bO.prototype=vc.prototype;function Rx(e,t,r){this.props=e,this.context=t,this.refs=xO,this.updater=r||vO}var Ox=Rx.prototype=new bO;Ox.constructor=Rx;yO(Ox,vc.prototype);Ox.isPureReactComponent=!0;var gO=Array.isArray,SO=Object.prototype.hasOwnProperty,_x={current:null},CO={key:!0,ref:!0,__self:!0,__source:!0};function wO(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)SO.call(t,n)&&!CO.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:xf,type:e,key:i,ref:a,props:o,_owner:_x.current}}function A5(e,t){return{$$typeof:xf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Px(e){return typeof e=="object"&&e!==null&&e.$$typeof===xf}function k5(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var hO=/\/+/g;function Ex(e,t){return typeof e=="object"&&e!==null&&e.key!=null?k5(""+e.key):t.toString(36)}function ym(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case xf:case w5:a=!0}}if(a)return a=e,o=o(a),e=n===""?"."+Ex(a,0):n,gO(o)?(r="",e!=null&&(r=e.replace(hO,"$&/")+"/"),ym(o,t,r,"",function(c){return c})):o!=null&&(Px(o)&&(o=A5(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(hO,"$&/")+"/")+e)),t.push(o)),1;if(a=0,n=n===""?".":n+":",gO(e))for(var s=0;s<e.length;s++){i=e[s];var l=n+Ex(i,s);a+=ym(i,t,r,l,o)}else if(l=D5(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=n+Ex(i,s++),a+=ym(i,t,r,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function vm(e,t,r){if(e==null)return e;var n=[],o=0;return ym(e,n,"","",function(i){return t.call(r,i,o++)}),n}function M5(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jn={current:null},xm={transition:null},F5={ReactCurrentDispatcher:jn,ReactCurrentBatchConfig:xm,ReactCurrentOwner:_x};function EO(){throw Error("act(...) is not supported in production builds of React.")}Ct.Children={map:vm,forEach:function(e,t,r){vm(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return vm(e,function(){t++}),t},toArray:function(e){return vm(e,function(t){return t})||[]},only:function(e){if(!Px(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ct.Component=vc;Ct.Fragment=E5;Ct.Profiler=O5;Ct.PureComponent=Rx;Ct.StrictMode=R5;Ct.Suspense=N5;Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F5;Ct.act=EO;Ct.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=yO({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=_x.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)SO.call(t,l)&&!CO.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:xf,type:e.type,key:o,ref:i,props:n,_owner:a}};Ct.createContext=function(e){return e={$$typeof:P5,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:_5,_context:e},e.Consumer=e};Ct.createElement=wO;Ct.createFactory=function(e){var t=wO.bind(null,e);return t.type=e,t};Ct.createRef=function(){return{current:null}};Ct.forwardRef=function(e){return{$$typeof:T5,render:e}};Ct.isValidElement=Px;Ct.lazy=function(e){return{$$typeof:$5,_payload:{_status:-1,_result:e},_init:M5}};Ct.memo=function(e,t){return{$$typeof:I5,type:e,compare:t===void 0?null:t}};Ct.startTransition=function(e){var t=xm.transition;xm.transition={};try{e()}finally{xm.transition=t}};Ct.unstable_act=EO;Ct.useCallback=function(e,t){return jn.current.useCallback(e,t)};Ct.useContext=function(e){return jn.current.useContext(e)};Ct.useDebugValue=function(){};Ct.useDeferredValue=function(e){return jn.current.useDeferredValue(e)};Ct.useEffect=function(e,t){return jn.current.useEffect(e,t)};Ct.useId=function(){return jn.current.useId()};Ct.useImperativeHandle=function(e,t,r){return jn.current.useImperativeHandle(e,t,r)};Ct.useInsertionEffect=function(e,t){return jn.current.useInsertionEffect(e,t)};Ct.useLayoutEffect=function(e,t){return jn.current.useLayoutEffect(e,t)};Ct.useMemo=function(e,t){return jn.current.useMemo(e,t)};Ct.useReducer=function(e,t,r){return jn.current.useReducer(e,t,r)};Ct.useRef=function(e){return jn.current.useRef(e)};Ct.useState=function(e){return jn.current.useState(e)};Ct.useSyncExternalStore=function(e,t,r){return jn.current.useSyncExternalStore(e,t,r)};Ct.useTransition=function(){return jn.current.useTransition()};Ct.version="18.3.1"});var $=$o((wJ,OO)=>{"use strict";OO.exports=RO()});var MO=$o(Zt=>{"use strict";function $x(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(0<bm(o,t))e[n]=t,e[r]=o,r=n;else break e}}function ui(e){return e.length===0?null:e[0]}function Cm(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,i=o>>>1;n<i;){var a=2*(n+1)-1,s=e[a],l=a+1,c=e[l];if(0>bm(s,r))l<o&&0>bm(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(l<o&&0>bm(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function bm(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(_O=performance,Zt.unstable_now=function(){return _O.now()}):(Tx=Date,PO=Tx.now(),Zt.unstable_now=function(){return Tx.now()-PO});var _O,Tx,PO,Fi=[],Qa=[],L5=1,ko=null,En=3,wm=!1,al=!1,Sf=!1,IO=typeof setTimeout=="function"?setTimeout:null,$O=typeof clearTimeout=="function"?clearTimeout:null,TO=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Dx(e){for(var t=ui(Qa);t!==null;){if(t.callback===null)Cm(Qa);else if(t.startTime<=e)Cm(Qa),t.sortIndex=t.expirationTime,$x(Fi,t);else break;t=ui(Qa)}}function Ax(e){if(Sf=!1,Dx(e),!al)if(ui(Fi)!==null)al=!0,Mx(kx);else{var t=ui(Qa);t!==null&&Fx(Ax,t.startTime-e)}}function kx(e,t){al=!1,Sf&&(Sf=!1,$O(Cf),Cf=-1),wm=!0;var r=En;try{for(Dx(t),ko=ui(Fi);ko!==null&&(!(ko.expirationTime>t)||e&&!kO());){var n=ko.callback;if(typeof n=="function"){ko.callback=null,En=ko.priorityLevel;var o=n(ko.expirationTime<=t);t=Zt.unstable_now(),typeof o=="function"?ko.callback=o:ko===ui(Fi)&&Cm(Fi),Dx(t)}else Cm(Fi);ko=ui(Fi)}if(ko!==null)var i=!0;else{var a=ui(Qa);a!==null&&Fx(Ax,a.startTime-t),i=!1}return i}finally{ko=null,En=r,wm=!1}}var Em=!1,Sm=null,Cf=-1,DO=5,AO=-1;function kO(){return!(Zt.unstable_now()-AO<DO)}function Nx(){if(Sm!==null){var e=Zt.unstable_now();AO=e;var t=!0;try{t=Sm(!0,e)}finally{t?bf():(Em=!1,Sm=null)}}else Em=!1}var bf;typeof TO=="function"?bf=function(){TO(Nx)}:typeof MessageChannel<"u"?(Ix=new MessageChannel,NO=Ix.port2,Ix.port1.onmessage=Nx,bf=function(){NO.postMessage(null)}):bf=function(){IO(Nx,0)};var Ix,NO;function Mx(e){Sm=e,Em||(Em=!0,bf())}function Fx(e,t){Cf=IO(function(){e(Zt.unstable_now())},t)}Zt.unstable_IdlePriority=5;Zt.unstable_ImmediatePriority=1;Zt.unstable_LowPriority=4;Zt.unstable_NormalPriority=3;Zt.unstable_Profiling=null;Zt.unstable_UserBlockingPriority=2;Zt.unstable_cancelCallback=function(e){e.callback=null};Zt.unstable_continueExecution=function(){al||wm||(al=!0,Mx(kx))};Zt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):DO=0<e?Math.floor(1e3/e):5};Zt.unstable_getCurrentPriorityLevel=function(){return En};Zt.unstable_getFirstCallbackNode=function(){return ui(Fi)};Zt.unstable_next=function(e){switch(En){case 1:case 2:case 3:var t=3;break;default:t=En}var r=En;En=t;try{return e()}finally{En=r}};Zt.unstable_pauseExecution=function(){};Zt.unstable_requestPaint=function(){};Zt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=En;En=e;try{return t()}finally{En=r}};Zt.unstable_scheduleCallback=function(e,t,r){var n=Zt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=r+o,e={id:L5++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>n?(e.sortIndex=r,$x(Qa,e),ui(Fi)===null&&e===ui(Qa)&&(Sf?($O(Cf),Cf=-1):Sf=!0,Fx(Ax,r-n))):(e.sortIndex=o,$x(Fi,e),al||wm||(al=!0,Mx(kx))),e};Zt.unstable_shouldYield=kO;Zt.unstable_wrapCallback=function(e){var t=En;return function(){var r=En;En=t;try{return e.apply(this,arguments)}finally{En=r}}}});var LO=$o((RJ,FO)=>{"use strict";FO.exports=MO()});var jT=$o(bo=>{"use strict";var z5=$(),yo=LO();function ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var U_=new Set,Hf={};function xl(e,t){Lc(e,t),Lc(e+"Capture",t)}function Lc(e,t){for(Hf[e]=t,e=0;e<t.length;e++)U_.add(t[e])}var ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ab=Object.prototype.hasOwnProperty,W5=/^[: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]*$/,zO={},WO={};function B5(e){return ab.call(WO,e)?!0:ab.call(zO,e)?!1:W5.test(e)?WO[e]=!0:(zO[e]=!0,!1)}function j5(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V5(e,t,r,n){if(t===null||typeof t>"u"||j5(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Un(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var vn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vn[e]=new Un(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vn[t]=new Un(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vn[e]=new Un(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vn[e]=new Un(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){vn[e]=new Un(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vn[e]=new Un(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vn[e]=new Un(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vn[e]=new Un(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vn[e]=new Un(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jb=/[\-:]([a-z])/g;function Zb(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jb,Zb);vn[t]=new Un(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(Jb,Zb);vn[t]=new Un(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(Jb,Zb);vn[t]=new Un(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vn[e]=new Un(e,1,!1,e.toLowerCase(),null,!1,!1)});vn.xlinkHref=new Un("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vn[e]=new Un(e,1,!1,e.toLowerCase(),null,!0,!0)});function eS(e,t,r,n){var o=vn.hasOwnProperty(t)?vn[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(V5(t,r,o,n)&&(r=null),n||o===null?B5(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var xa=z5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Rm=Symbol.for("react.element"),bc=Symbol.for("react.portal"),Sc=Symbol.for("react.fragment"),tS=Symbol.for("react.strict_mode"),sb=Symbol.for("react.profiler"),q_=Symbol.for("react.provider"),G_=Symbol.for("react.context"),rS=Symbol.for("react.forward_ref"),lb=Symbol.for("react.suspense"),cb=Symbol.for("react.suspense_list"),nS=Symbol.for("react.memo"),Za=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var K_=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var BO=Symbol.iterator;function wf(e){return e===null||typeof e!="object"?null:(e=BO&&e[BO]||e["@@iterator"],typeof e=="function"?e:null)}var Er=Object.assign,Lx;function If(e){if(Lx===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Lx=t&&t[1]||""}return`
`+Lx+e}var zx=!1;function Wx(e,t){if(!e||zx)return"";zx=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),i=n.stack.split(`
`),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(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{zx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?If(e):""}function H5(e){switch(e.tag){case 5:return If(e.type);case 16:return If("Lazy");case 13:return If("Suspense");case 19:return If("SuspenseList");case 0:case 2:case 15:return e=Wx(e.type,!1),e;case 11:return e=Wx(e.type.render,!1),e;case 1:return e=Wx(e.type,!0),e;default:return""}}function ub(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sc:return"Fragment";case bc:return"Portal";case sb:return"Profiler";case tS:return"StrictMode";case lb:return"Suspense";case cb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G_:return(e.displayName||"Context")+".Consumer";case q_:return(e._context.displayName||"Context")+".Provider";case rS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nS:return t=e.displayName||null,t!==null?t:ub(e.type)||"Memo";case Za:t=e._payload,e=e._init;try{return ub(e(t))}catch{}}return null}function U5(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=t.render,e=e.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 ub(t);case 8:return t===tS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function X_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q5(e){var t=X_(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Om(e){e._valueTracker||(e._valueTracker=q5(e))}function Y_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=X_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function eg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fb(e,t){var r=t.checked;return Er({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function jO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ps(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Q_(e,t){t=t.checked,t!=null&&eS(e,"checked",t,!1)}function db(e,t){Q_(e,t);var r=ps(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pb(e,t.type,r):t.hasOwnProperty("defaultValue")&&pb(e,t.type,ps(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function VO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function pb(e,t,r){(t!=="number"||eg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var $f=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ps(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function mb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ge(91));return Er({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function HO(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ge(92));if($f(r)){if(1<r.length)throw Error(ge(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ps(r)}}function J_(e,t){var r=ps(t.value),n=ps(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function UO(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(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 gb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Z_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _m,eP=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(_m=_m||document.createElement("div"),_m.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_m.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Uf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var kf={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},G5=["Webkit","ms","Moz","O"];Object.keys(kf).forEach(function(e){G5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kf[t]=kf[e]})});function tP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||kf.hasOwnProperty(e)&&kf[e]?(""+t).trim():t+"px"}function rP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=tP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var K5=Er({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function hb(e,t){if(t){if(K5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ge(62))}}function vb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yb=null;function oS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xb=null,Dc=null,Ac=null;function qO(e){if(e=cd(e)){if(typeof xb!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=Pg(t),xb(e.stateNode,e.type,t))}}function nP(e){Dc?Ac?Ac.push(e):Ac=[e]:Dc=e}function oP(){if(Dc){var e=Dc,t=Ac;if(Ac=Dc=null,qO(e),t)for(e=0;e<t.length;e++)qO(t[e])}}function iP(e,t){return e(t)}function aP(){}var Bx=!1;function sP(e,t,r){if(Bx)return e(t,r);Bx=!0;try{return iP(e,t,r)}finally{Bx=!1,(Dc!==null||Ac!==null)&&(aP(),oP())}}function qf(e,t){var r=e.stateNode;if(r===null)return null;var n=Pg(r);if(n===null)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)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(ge(231,t,typeof r));return r}var bb=!1;if(ga)try{yc={},Object.defineProperty(yc,"passive",{get:function(){bb=!0}}),window.addEventListener("test",yc,yc),window.removeEventListener("test",yc,yc)}catch{bb=!1}var yc;function X5(e,t,r,n,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Mf=!1,tg=null,rg=!1,Sb=null,Y5={onError:function(e){Mf=!0,tg=e}};function Q5(e,t,r,n,o,i,a,s,l){Mf=!1,tg=null,X5.apply(Y5,arguments)}function J5(e,t,r,n,o,i,a,s,l){if(Q5.apply(this,arguments),Mf){if(Mf){var c=tg;Mf=!1,tg=null}else throw Error(ge(198));rg||(rg=!0,Sb=c)}}function bl(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function lP(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function GO(e){if(bl(e)!==e)throw Error(ge(188))}function Z5(e){var t=e.alternate;if(!t){if(t=bl(e),t===null)throw Error(ge(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return GO(o),e;if(i===n)return GO(o),t;i=i.sibling}throw Error(ge(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(ge(189))}}if(r.alternate!==n)throw Error(ge(190))}if(r.tag!==3)throw Error(ge(188));return r.stateNode.current===r?e:t}function cP(e){return e=Z5(e),e!==null?uP(e):null}function uP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uP(e);if(t!==null)return t;e=e.sibling}return null}var fP=yo.unstable_scheduleCallback,KO=yo.unstable_cancelCallback,e6=yo.unstable_shouldYield,t6=yo.unstable_requestPaint,Fr=yo.unstable_now,r6=yo.unstable_getCurrentPriorityLevel,iS=yo.unstable_ImmediatePriority,dP=yo.unstable_UserBlockingPriority,ng=yo.unstable_NormalPriority,n6=yo.unstable_LowPriority,pP=yo.unstable_IdlePriority,Eg=null,Bi=null;function o6(e){if(Bi&&typeof Bi.onCommitFiberRoot=="function")try{Bi.onCommitFiberRoot(Eg,e,void 0,(e.current.flags&128)===128)}catch{}}var gi=Math.clz32?Math.clz32:s6,i6=Math.log,a6=Math.LN2;function s6(e){return e>>>=0,e===0?32:31-(i6(e)/a6|0)|0}var Pm=64,Tm=4194304;function Df(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function og(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Df(s):(i&=a,i!==0&&(n=Df(i)))}else a=r&~o,a!==0?n=Df(a):i!==0&&(n=Df(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-gi(t),o=1<<r,n|=e[r],t&=~o;return n}function l6(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function c6(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-gi(i),s=1<<a,l=o[a];l===-1?((s&r)===0||(s&n)!==0)&&(o[a]=l6(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function Cb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function mP(){var e=Pm;return Pm<<=1,(Pm&4194240)===0&&(Pm=64),e}function jx(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function sd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gi(t),e[t]=r}function u6(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-gi(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function aS(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-gi(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var jt=0;function gP(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var hP,sS,vP,yP,xP,wb=!1,Nm=[],is=null,as=null,ss=null,Gf=new Map,Kf=new Map,ts=[],f6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function XO(e,t){switch(e){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":as=null;break;case"mouseover":case"mouseout":ss=null;break;case"pointerover":case"pointerout":Gf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kf.delete(t.pointerId)}}function Ef(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=cd(t),t!==null&&sS(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function d6(e,t,r,n,o){switch(t){case"focusin":return is=Ef(is,e,t,r,n,o),!0;case"dragenter":return as=Ef(as,e,t,r,n,o),!0;case"mouseover":return ss=Ef(ss,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Gf.set(i,Ef(Gf.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Kf.set(i,Ef(Kf.get(i)||null,e,t,r,n,o)),!0}return!1}function bP(e){var t=cl(e.target);if(t!==null){var r=bl(t);if(r!==null){if(t=r.tag,t===13){if(t=lP(r),t!==null){e.blockedOn=t,xP(e.priority,function(){vP(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Eb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);yb=n,r.target.dispatchEvent(n),yb=null}else return t=cd(r),t!==null&&sS(t),e.blockedOn=r,!1;t.shift()}return!0}function YO(e,t,r){Hm(e)&&r.delete(t)}function p6(){wb=!1,is!==null&&Hm(is)&&(is=null),as!==null&&Hm(as)&&(as=null),ss!==null&&Hm(ss)&&(ss=null),Gf.forEach(YO),Kf.forEach(YO)}function Rf(e,t){e.blockedOn===t&&(e.blockedOn=null,wb||(wb=!0,yo.unstable_scheduleCallback(yo.unstable_NormalPriority,p6)))}function Xf(e){function t(o){return Rf(o,e)}if(0<Nm.length){Rf(Nm[0],e);for(var r=1;r<Nm.length;r++){var n=Nm[r];n.blockedOn===e&&(n.blockedOn=null)}}for(is!==null&&Rf(is,e),as!==null&&Rf(as,e),ss!==null&&Rf(ss,e),Gf.forEach(t),Kf.forEach(t),r=0;r<ts.length;r++)n=ts[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<ts.length&&(r=ts[0],r.blockedOn===null);)bP(r),r.blockedOn===null&&ts.shift()}var kc=xa.ReactCurrentBatchConfig,ig=!0;function m6(e,t,r,n){var o=jt,i=kc.transition;kc.transition=null;try{jt=1,lS(e,t,r,n)}finally{jt=o,kc.transition=i}}function g6(e,t,r,n){var o=jt,i=kc.transition;kc.transition=null;try{jt=4,lS(e,t,r,n)}finally{jt=o,kc.transition=i}}function lS(e,t,r,n){if(ig){var o=Eb(e,t,r,n);if(o===null)Xx(e,t,n,ag,r),XO(e,n);else if(d6(o,e,t,r,n))n.stopPropagation();else if(XO(e,n),t&4&&-1<f6.indexOf(e)){for(;o!==null;){var i=cd(o);if(i!==null&&hP(i),i=Eb(e,t,r,n),i===null&&Xx(e,t,n,ag,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else Xx(e,t,n,null,r)}}var ag=null;function Eb(e,t,r,n){if(ag=null,e=oS(n),e=cl(e),e!==null)if(t=bl(e),t===null)e=null;else if(r=t.tag,r===13){if(e=lP(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ag=e,null}function SP(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(r6()){case iS:return 1;case dP:return 4;case ng:case n6:return 16;case pP:return 536870912;default:return 16}default:return 16}}var ns=null,cS=null,Um=null;function CP(){if(Um)return Um;var e,t=cS,r=t.length,n,o="value"in ns?ns.value:ns.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===o[i-n];n++);return Um=o.slice(e,1<n?1-n:void 0)}function qm(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Im(){return!0}function QO(){return!1}function xo(e){function t(r,n,o,i,a){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Im:QO,this.isPropagationStopped=QO,this}return Er(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Im)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Im)},persist:function(){},isPersistent:Im}),t}var Uc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uS=xo(Uc),ld=Er({},Uc,{view:0,detail:0}),h6=xo(ld),Vx,Hx,Of,Rg=Er({},ld,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fS,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Of&&(Of&&e.type==="mousemove"?(Vx=e.screenX-Of.screenX,Hx=e.screenY-Of.screenY):Hx=Vx=0,Of=e),Vx)},movementY:function(e){return"movementY"in e?e.movementY:Hx}}),JO=xo(Rg),v6=Er({},Rg,{dataTransfer:0}),y6=xo(v6),x6=Er({},ld,{relatedTarget:0}),Ux=xo(x6),b6=Er({},Uc,{animationName:0,elapsedTime:0,pseudoElement:0}),S6=xo(b6),C6=Er({},Uc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w6=xo(C6),E6=Er({},Uc,{data:0}),ZO=xo(E6),R6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O6={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"},_6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_6[e])?!!t[e]:!1}function fS(){return P6}var T6=Er({},ld,{key:function(e){if(e.key){var t=R6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fS,charCode:function(e){return e.type==="keypress"?qm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),N6=xo(T6),I6=Er({},Rg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),e_=xo(I6),$6=Er({},ld,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fS}),D6=xo($6),A6=Er({},Uc,{propertyName:0,elapsedTime:0,pseudoElement:0}),k6=xo(A6),M6=Er({},Rg,{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}),F6=xo(M6),L6=[9,13,27,32],dS=ga&&"CompositionEvent"in window,Ff=null;ga&&"documentMode"in document&&(Ff=document.documentMode);var z6=ga&&"TextEvent"in window&&!Ff,wP=ga&&(!dS||Ff&&8<Ff&&11>=Ff),t_=" ",r_=!1;function EP(e,t){switch(e){case"keyup":return L6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cc=!1;function W6(e,t){switch(e){case"compositionend":return RP(t);case"keypress":return t.which!==32?null:(r_=!0,t_);case"textInput":return e=t.data,e===t_&&r_?null:e;default:return null}}function B6(e,t){if(Cc)return e==="compositionend"||!dS&&EP(e,t)?(e=CP(),Um=cS=ns=null,Cc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wP&&t.locale!=="ko"?null:t.data;default:return null}}var j6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function n_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j6[e.type]:t==="textarea"}function OP(e,t,r,n){nP(n),t=sg(t,"onChange"),0<t.length&&(r=new uS("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Lf=null,Yf=null;function V6(e){FP(e,0)}function Og(e){var t=Rc(e);if(Y_(t))return e}function H6(e,t){if(e==="change")return t}var _P=!1;ga&&(ga?(Dm="oninput"in document,Dm||(qx=document.createElement("div"),qx.setAttribute("oninput","return;"),Dm=typeof qx.oninput=="function"),$m=Dm):$m=!1,_P=$m&&(!document.documentMode||9<document.documentMode));var $m,Dm,qx;function o_(){Lf&&(Lf.detachEvent("onpropertychange",PP),Yf=Lf=null)}function PP(e){if(e.propertyName==="value"&&Og(Yf)){var t=[];OP(t,Yf,e,oS(e)),sP(V6,t)}}function U6(e,t,r){e==="focusin"?(o_(),Lf=t,Yf=r,Lf.attachEvent("onpropertychange",PP)):e==="focusout"&&o_()}function q6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Og(Yf)}function G6(e,t){if(e==="click")return Og(t)}function K6(e,t){if(e==="input"||e==="change")return Og(t)}function X6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vi=typeof Object.is=="function"?Object.is:X6;function Qf(e,t){if(vi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!ab.call(t,o)||!vi(e[o],t[o]))return!1}return!0}function i_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function a_(e,t){var r=i_(e);e=0;for(var n;r;){if(r.nodeType===3){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=i_(r)}}function TP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?TP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function NP(){for(var e=window,t=eg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=eg(e.document)}return t}function pS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Y6(e){var t=NP(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&TP(r.ownerDocument.documentElement,r)){if(n!==null&&pS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=a_(r,i);var a=a_(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Q6=ga&&"documentMode"in document&&11>=document.documentMode,wc=null,Rb=null,zf=null,Ob=!1;function s_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ob||wc==null||wc!==eg(n)||(n=wc,"selectionStart"in n&&pS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),zf&&Qf(zf,n)||(zf=n,n=sg(Rb,"onSelect"),0<n.length&&(t=new uS("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=wc)))}function Am(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ec={animationend:Am("Animation","AnimationEnd"),animationiteration:Am("Animation","AnimationIteration"),animationstart:Am("Animation","AnimationStart"),transitionend:Am("Transition","TransitionEnd")},Gx={},IP={};ga&&(IP=document.createElement("div").style,"AnimationEvent"in window||(delete Ec.animationend.animation,delete Ec.animationiteration.animation,delete Ec.animationstart.animation),"TransitionEvent"in window||delete Ec.transitionend.transition);function _g(e){if(Gx[e])return Gx[e];if(!Ec[e])return e;var t=Ec[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in IP)return Gx[e]=t[r];return e}var $P=_g("animationend"),DP=_g("animationiteration"),AP=_g("animationstart"),kP=_g("transitionend"),MP=new Map,l_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gs(e,t){MP.set(e,t),xl(t,[e])}for(km=0;km<l_.length;km++)Mm=l_[km],c_=Mm.toLowerCase(),u_=Mm[0].toUpperCase()+Mm.slice(1),gs(c_,"on"+u_);var Mm,c_,u_,km;gs($P,"onAnimationEnd");gs(DP,"onAnimationIteration");gs(AP,"onAnimationStart");gs("dblclick","onDoubleClick");gs("focusin","onFocus");gs("focusout","onBlur");gs(kP,"onTransitionEnd");Lc("onMouseEnter",["mouseout","mouseover"]);Lc("onMouseLeave",["mouseout","mouseover"]);Lc("onPointerEnter",["pointerout","pointerover"]);Lc("onPointerLeave",["pointerout","pointerover"]);xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));xl("onBeforeInput",["compositionend","keypress","textInput","paste"]);xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Af="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(" "),J6=new Set("cancel close invalid load scroll toggle".split(" ").concat(Af));function f_(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,J5(n,t,void 0,e),e.currentTarget=null}function FP(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;f_(o,s,c),i=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;f_(o,s,c),i=l}}}if(rg)throw e=Sb,rg=!1,Sb=null,e}function or(e,t){var r=t[Ib];r===void 0&&(r=t[Ib]=new Set);var n=e+"__bubble";r.has(n)||(LP(t,e,2,!1),r.add(n))}function Kx(e,t,r){var n=0;t&&(n|=4),LP(r,e,n,t)}var Fm="_reactListening"+Math.random().toString(36).slice(2);function Jf(e){if(!e[Fm]){e[Fm]=!0,U_.forEach(function(r){r!=="selectionchange"&&(J6.has(r)||Kx(r,!1,e),Kx(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fm]||(t[Fm]=!0,Kx("selectionchange",!1,t))}}function LP(e,t,r,n){switch(SP(t)){case 1:var o=m6;break;case 4:o=g6;break;default:o=lS}r=o.bind(null,t,r,e),o=void 0,!bb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Xx(e,t,r,n,o){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=cl(s),a===null)return;if(l=a.tag,l===5||l===6){n=i=a;continue e}s=s.parentNode}}n=n.return}sP(function(){var c=i,u=oS(r),f=[];e:{var p=MP.get(e);if(p!==void 0){var g=uS,h=e;switch(e){case"keypress":if(qm(r)===0)break e;case"keydown":case"keyup":g=N6;break;case"focusin":h="focus",g=Ux;break;case"focusout":h="blur",g=Ux;break;case"beforeblur":case"afterblur":g=Ux;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=JO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=y6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=D6;break;case $P:case DP:case AP:g=S6;break;case kP:g=k6;break;case"scroll":g=h6;break;case"wheel":g=F6;break;case"copy":case"cut":case"paste":g=w6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=e_}var v=(t&4)!==0,y=!v&&e==="scroll",m=v?p!==null?p+"Capture":null:p;v=[];for(var d=c,x;d!==null;){x=d;var b=x.stateNode;if(x.tag===5&&b!==null&&(x=b,m!==null&&(b=qf(d,m),b!=null&&v.push(Zf(d,b,x)))),y)break;d=d.return}0<v.length&&(p=new g(p,h,null,r,u),f.push({event:p,listeners:v}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&r!==yb&&(h=r.relatedTarget||r.fromElement)&&(cl(h)||h[ha]))break e;if((g||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,g?(h=r.relatedTarget||r.toElement,g=c,h=h?cl(h):null,h!==null&&(y=bl(h),h!==y||h.tag!==5&&h.tag!==6)&&(h=null)):(g=null,h=c),g!==h)){if(v=JO,b="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(v=e_,b="onPointerLeave",m="onPointerEnter",d="pointer"),y=g==null?p:Rc(g),x=h==null?p:Rc(h),p=new v(b,d+"leave",g,r,u),p.target=y,p.relatedTarget=x,b=null,cl(u)===c&&(v=new v(m,d+"enter",h,r,u),v.target=x,v.relatedTarget=y,b=v),y=b,g&&h)t:{for(v=g,m=h,d=0,x=v;x;x=xc(x))d++;for(x=0,b=m;b;b=xc(b))x++;for(;0<d-x;)v=xc(v),d--;for(;0<x-d;)m=xc(m),x--;for(;d--;){if(v===m||m!==null&&v===m.alternate)break t;v=xc(v),m=xc(m)}v=null}else v=null;g!==null&&d_(f,p,g,v,!1),h!==null&&y!==null&&d_(f,y,h,v,!0)}}e:{if(p=c?Rc(c):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var S=H6;else if(n_(p))if(_P)S=K6;else{S=q6;var w=U6}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=G6);if(S&&(S=S(e,c))){OP(f,S,r,u);break e}w&&w(e,p,c),e==="focusout"&&(w=p._wrapperState)&&w.controlled&&p.type==="number"&&pb(p,"number",p.value)}switch(w=c?Rc(c):window,e){case"focusin":(n_(w)||w.contentEditable==="true")&&(wc=w,Rb=c,zf=null);break;case"focusout":zf=Rb=wc=null;break;case"mousedown":Ob=!0;break;case"contextmenu":case"mouseup":case"dragend":Ob=!1,s_(f,r,u);break;case"selectionchange":if(Q6)break;case"keydown":case"keyup":s_(f,r,u)}var C;if(dS)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Cc?EP(e,r)&&(R="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(R="onCompositionStart");R&&(wP&&r.locale!=="ko"&&(Cc||R!=="onCompositionStart"?R==="onCompositionEnd"&&Cc&&(C=CP()):(ns=u,cS="value"in ns?ns.value:ns.textContent,Cc=!0)),w=sg(c,R),0<w.length&&(R=new ZO(R,e,null,r,u),f.push({event:R,listeners:w}),C?R.data=C:(C=RP(r),C!==null&&(R.data=C)))),(C=z6?W6(e,r):B6(e,r))&&(c=sg(c,"onBeforeInput"),0<c.length&&(u=new ZO("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:c}),u.data=C))}FP(f,t)})}function Zf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function sg(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=qf(e,r),i!=null&&n.unshift(Zf(e,i,o)),i=qf(e,t),i!=null&&n.push(Zf(e,i,o))),e=e.return}return n}function xc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function d_(e,t,r,n,o){for(var i=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,o?(l=qf(r,i),l!=null&&a.unshift(Zf(r,l,s))):o||(l=qf(r,i),l!=null&&a.push(Zf(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var Z6=/\r\n?/g,ez=/\u0000|\uFFFD/g;function p_(e){return(typeof e=="string"?e:""+e).replace(Z6,`
`).replace(ez,"")}function Lm(e,t,r){if(t=p_(t),p_(e)!==t&&r)throw Error(ge(425))}function lg(){}var _b=null,Pb=null;function Tb(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nb=typeof setTimeout=="function"?setTimeout:void 0,tz=typeof clearTimeout=="function"?clearTimeout:void 0,m_=typeof Promise=="function"?Promise:void 0,rz=typeof queueMicrotask=="function"?queueMicrotask:typeof m_<"u"?function(e){return m_.resolve(null).then(e).catch(nz)}:Nb;function nz(e){setTimeout(function(){throw e})}function Yx(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),Xf(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Xf(t)}function ls(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function g_(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var qc=Math.random().toString(36).slice(2),Wi="__reactFiber$"+qc,ed="__reactProps$"+qc,ha="__reactContainer$"+qc,Ib="__reactEvents$"+qc,oz="__reactListeners$"+qc,iz="__reactHandles$"+qc;function cl(e){var t=e[Wi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ha]||r[Wi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=g_(e);e!==null;){if(r=e[Wi])return r;e=g_(e)}return t}e=r,r=e.parentNode}return null}function cd(e){return e=e[Wi]||e[ha],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ge(33))}function Pg(e){return e[ed]||null}var $b=[],Oc=-1;function hs(e){return{current:e}}function ir(e){0>Oc||(e.current=$b[Oc],$b[Oc]=null,Oc--)}function er(e,t){Oc++,$b[Oc]=e.current,e.current=t}var ms={},Pn=hs(ms),Zn=hs(!1),ml=ms;function zc(e,t){var r=e.type.contextTypes;if(!r)return ms;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function eo(e){return e=e.childContextTypes,e!=null}function cg(){ir(Zn),ir(Pn)}function h_(e,t,r){if(Pn.current!==ms)throw Error(ge(168));er(Pn,t),er(Zn,r)}function zP(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ge(108,U5(e)||"Unknown",o));return Er({},r,n)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ms,ml=Pn.current,er(Pn,e),er(Zn,Zn.current),!0}function v_(e,t,r){var n=e.stateNode;if(!n)throw Error(ge(169));r?(e=zP(e,t,ml),n.__reactInternalMemoizedMergedChildContext=e,ir(Zn),ir(Pn),er(Pn,e)):ir(Zn),er(Zn,r)}var fa=null,Tg=!1,Qx=!1;function WP(e){fa===null?fa=[e]:fa.push(e)}function az(e){Tg=!0,WP(e)}function vs(){if(!Qx&&fa!==null){Qx=!0;var e=0,t=jt;try{var r=fa;for(jt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}fa=null,Tg=!1}catch(o){throw fa!==null&&(fa=fa.slice(e+1)),fP(iS,vs),o}finally{jt=t,Qx=!1}}return null}var _c=[],Pc=0,fg=null,dg=0,Mo=[],Fo=0,gl=null,da=1,pa="";function sl(e,t){_c[Pc++]=dg,_c[Pc++]=fg,fg=e,dg=t}function BP(e,t,r){Mo[Fo++]=da,Mo[Fo++]=pa,Mo[Fo++]=gl,gl=e;var n=da;e=pa;var o=32-gi(n)-1;n&=~(1<<o),r+=1;var i=32-gi(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,da=1<<32-gi(t)+o|r<<o|n,pa=i+e}else da=1<<i|r<<o|n,pa=e}function mS(e){e.return!==null&&(sl(e,1),BP(e,1,0))}function gS(e){for(;e===fg;)fg=_c[--Pc],_c[Pc]=null,dg=_c[--Pc],_c[Pc]=null;for(;e===gl;)gl=Mo[--Fo],Mo[Fo]=null,pa=Mo[--Fo],Mo[Fo]=null,da=Mo[--Fo],Mo[Fo]=null}var vo=null,ho=null,yr=!1,mi=null;function jP(e,t){var r=Lo(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function y_(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vo=e,ho=ls(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vo=e,ho=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=gl!==null?{id:da,overflow:pa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Lo(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,vo=e,ho=null,!0):!1;default:return!1}}function Db(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ab(e){if(yr){var t=ho;if(t){var r=t;if(!y_(e,t)){if(Db(e))throw Error(ge(418));t=ls(r.nextSibling);var n=vo;t&&y_(e,t)?jP(n,r):(e.flags=e.flags&-4097|2,yr=!1,vo=e)}}else{if(Db(e))throw Error(ge(418));e.flags=e.flags&-4097|2,yr=!1,vo=e}}}function x_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vo=e}function zm(e){if(e!==vo)return!1;if(!yr)return x_(e),yr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Tb(e.type,e.memoizedProps)),t&&(t=ho)){if(Db(e))throw VP(),Error(ge(418));for(;t;)jP(e,t),t=ls(t.nextSibling)}if(x_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ge(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ho=ls(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ho=null}}else ho=vo?ls(e.stateNode.nextSibling):null;return!0}function VP(){for(var e=ho;e;)e=ls(e.nextSibling)}function Wc(){ho=vo=null,yr=!1}function hS(e){mi===null?mi=[e]:mi.push(e)}var sz=xa.ReactCurrentBatchConfig;function _f(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(ge(309));var n=r.stateNode}if(!n)throw Error(ge(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(ge(284));if(!r._owner)throw Error(ge(290,e))}return e}function Wm(e,t){throw e=Object.prototype.toString.call(t),Error(ge(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function b_(e){var t=e._init;return t(e._payload)}function HP(e){function t(m,d){if(e){var x=m.deletions;x===null?(m.deletions=[d],m.flags|=16):x.push(d)}}function r(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function n(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function o(m,d){return m=ds(m,d),m.index=0,m.sibling=null,m}function i(m,d,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<d?(m.flags|=2,d):x):(m.flags|=2,d)):(m.flags|=1048576,d)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,d,x,b){return d===null||d.tag!==6?(d=ob(x,m.mode,b),d.return=m,d):(d=o(d,x),d.return=m,d)}function l(m,d,x,b){var S=x.type;return S===Sc?u(m,d,x.props.children,b,x.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Za&&b_(S)===d.type)?(b=o(d,x.props),b.ref=_f(m,d,x),b.return=m,b):(b=Zm(x.type,x.key,x.props,null,m.mode,b),b.ref=_f(m,d,x),b.return=m,b)}function c(m,d,x,b){return d===null||d.tag!==4||d.stateNode.containerInfo!==x.containerInfo||d.stateNode.implementation!==x.implementation?(d=ib(x,m.mode,b),d.return=m,d):(d=o(d,x.children||[]),d.return=m,d)}function u(m,d,x,b,S){return d===null||d.tag!==7?(d=pl(x,m.mode,b,S),d.return=m,d):(d=o(d,x),d.return=m,d)}function f(m,d,x){if(typeof d=="string"&&d!==""||typeof d=="number")return d=ob(""+d,m.mode,x),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Rm:return x=Zm(d.type,d.key,d.props,null,m.mode,x),x.ref=_f(m,null,d),x.return=m,x;case bc:return d=ib(d,m.mode,x),d.return=m,d;case Za:var b=d._init;return f(m,b(d._payload),x)}if($f(d)||wf(d))return d=pl(d,m.mode,x,null),d.return=m,d;Wm(m,d)}return null}function p(m,d,x,b){var S=d!==null?d.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:s(m,d,""+x,b);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Rm:return x.key===S?l(m,d,x,b):null;case bc:return x.key===S?c(m,d,x,b):null;case Za:return S=x._init,p(m,d,S(x._payload),b)}if($f(x)||wf(x))return S!==null?null:u(m,d,x,b,null);Wm(m,x)}return null}function g(m,d,x,b,S){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(x)||null,s(d,m,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Rm:return m=m.get(b.key===null?x:b.key)||null,l(d,m,b,S);case bc:return m=m.get(b.key===null?x:b.key)||null,c(d,m,b,S);case Za:var w=b._init;return g(m,d,x,w(b._payload),S)}if($f(b)||wf(b))return m=m.get(x)||null,u(d,m,b,S,null);Wm(d,b)}return null}function h(m,d,x,b){for(var S=null,w=null,C=d,R=d=0,P=null;C!==null&&R<x.length;R++){C.index>R?(P=C,C=null):P=C.sibling;var O=p(m,C,x[R],b);if(O===null){C===null&&(C=P);break}e&&C&&O.alternate===null&&t(m,C),d=i(O,d,R),w===null?S=O:w.sibling=O,w=O,C=P}if(R===x.length)return r(m,C),yr&&sl(m,R),S;if(C===null){for(;R<x.length;R++)C=f(m,x[R],b),C!==null&&(d=i(C,d,R),w===null?S=C:w.sibling=C,w=C);return yr&&sl(m,R),S}for(C=n(m,C);R<x.length;R++)P=g(C,m,R,x[R],b),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?R:P.key),d=i(P,d,R),w===null?S=P:w.sibling=P,w=P);return e&&C.forEach(function(A){return t(m,A)}),yr&&sl(m,R),S}function v(m,d,x,b){var S=wf(x);if(typeof S!="function")throw Error(ge(150));if(x=S.call(x),x==null)throw Error(ge(151));for(var w=S=null,C=d,R=d=0,P=null,O=x.next();C!==null&&!O.done;R++,O=x.next()){C.index>R?(P=C,C=null):P=C.sibling;var A=p(m,C,O.value,b);if(A===null){C===null&&(C=P);break}e&&C&&A.alternate===null&&t(m,C),d=i(A,d,R),w===null?S=A:w.sibling=A,w=A,C=P}if(O.done)return r(m,C),yr&&sl(m,R),S;if(C===null){for(;!O.done;R++,O=x.next())O=f(m,O.value,b),O!==null&&(d=i(O,d,R),w===null?S=O:w.sibling=O,w=O);return yr&&sl(m,R),S}for(C=n(m,C);!O.done;R++,O=x.next())O=g(C,m,R,O.value,b),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?R:O.key),d=i(O,d,R),w===null?S=O:w.sibling=O,w=O);return e&&C.forEach(function(F){return t(m,F)}),yr&&sl(m,R),S}function y(m,d,x,b){if(typeof x=="object"&&x!==null&&x.type===Sc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Rm:e:{for(var S=x.key,w=d;w!==null;){if(w.key===S){if(S=x.type,S===Sc){if(w.tag===7){r(m,w.sibling),d=o(w,x.props.children),d.return=m,m=d;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Za&&b_(S)===w.type){r(m,w.sibling),d=o(w,x.props),d.ref=_f(m,w,x),d.return=m,m=d;break e}r(m,w);break}else t(m,w);w=w.sibling}x.type===Sc?(d=pl(x.props.children,m.mode,b,x.key),d.return=m,m=d):(b=Zm(x.type,x.key,x.props,null,m.mode,b),b.ref=_f(m,d,x),b.return=m,m=b)}return a(m);case bc:e:{for(w=x.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===x.containerInfo&&d.stateNode.implementation===x.implementation){r(m,d.sibling),d=o(d,x.children||[]),d.return=m,m=d;break e}else{r(m,d);break}else t(m,d);d=d.sibling}d=ib(x,m.mode,b),d.return=m,m=d}return a(m);case Za:return w=x._init,y(m,d,w(x._payload),b)}if($f(x))return h(m,d,x,b);if(wf(x))return v(m,d,x,b);Wm(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,d!==null&&d.tag===6?(r(m,d.sibling),d=o(d,x),d.return=m,m=d):(r(m,d),d=ob(x,m.mode,b),d.return=m,m=d),a(m)):r(m,d)}return y}var Bc=HP(!0),UP=HP(!1),pg=hs(null),mg=null,Tc=null,vS=null;function yS(){vS=Tc=mg=null}function xS(e){var t=pg.current;ir(pg),e._currentValue=t}function kb(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Mc(e,t){mg=e,vS=Tc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Jn=!0),e.firstContext=null)}function Wo(e){var t=e._currentValue;if(vS!==e)if(e={context:e,memoizedValue:t,next:null},Tc===null){if(mg===null)throw Error(ge(308));Tc=e,mg.dependencies={lanes:0,firstContext:e}}else Tc=Tc.next=e;return t}var ul=null;function bS(e){ul===null?ul=[e]:ul.push(e)}function qP(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,bS(t)):(r.next=o.next,o.next=r),t.interleaved=r,va(e,n)}function va(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var es=!1;function SS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function GP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cs(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,($t&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,va(e,r)}return o=n.interleaved,o===null?(t.next=t,bS(n)):(t.next=o.next,o.next=t),n.interleaved=t,va(e,r)}function Gm(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,aS(e,r)}}function S_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function gg(e,t,r,n){var o=e.updateQueue;es=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var p=s.lane,g=s.eventTime;if((n&p)===p){u!==null&&(u=u.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(p=t,g=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){f=h.call(g,f,p);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,p=typeof h=="function"?h.call(g,f,p):h,p==null)break e;f=Er({},f,p);break e;case 2:es=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=g,l=f):u=u.next=g,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);vl|=a,e.lanes=a,e.memoizedState=f}}function C_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(ge(191,o));o.call(n)}}}var ud={},ji=hs(ud),td=hs(ud),rd=hs(ud);function fl(e){if(e===ud)throw Error(ge(174));return e}function CS(e,t){switch(er(rd,t),er(td,e),er(ji,ud),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gb(t,e)}ir(ji),er(ji,t)}function jc(){ir(ji),ir(td),ir(rd)}function KP(e){fl(rd.current);var t=fl(ji.current),r=gb(t,e.type);t!==r&&(er(td,e),er(ji,r))}function wS(e){td.current===e&&(ir(ji),ir(td))}var Cr=hs(0);function hg(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jx=[];function ES(){for(var e=0;e<Jx.length;e++)Jx[e]._workInProgressVersionPrimary=null;Jx.length=0}var Km=xa.ReactCurrentDispatcher,Zx=xa.ReactCurrentBatchConfig,hl=0,wr=null,Kr=null,on=null,vg=!1,Wf=!1,nd=0,lz=0;function Rn(){throw Error(ge(321))}function RS(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!vi(e[r],t[r]))return!1;return!0}function OS(e,t,r,n,o,i){if(hl=i,wr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Km.current=e===null||e.memoizedState===null?dz:pz,e=r(n,o),Wf){i=0;do{if(Wf=!1,nd=0,25<=i)throw Error(ge(301));i+=1,on=Kr=null,t.updateQueue=null,Km.current=mz,e=r(n,o)}while(Wf)}if(Km.current=yg,t=Kr!==null&&Kr.next!==null,hl=0,on=Kr=wr=null,vg=!1,t)throw Error(ge(300));return e}function _S(){var e=nd!==0;return nd=0,e}function zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return on===null?wr.memoizedState=on=e:on=on.next=e,on}function Bo(){if(Kr===null){var e=wr.alternate;e=e!==null?e.memoizedState:null}else e=Kr.next;var t=on===null?wr.memoizedState:on.next;if(t!==null)on=t,Kr=e;else{if(e===null)throw Error(ge(310));Kr=e,e={memoizedState:Kr.memoizedState,baseState:Kr.baseState,baseQueue:Kr.baseQueue,queue:Kr.queue,next:null},on===null?wr.memoizedState=on=e:on=on.next=e}return on}function od(e,t){return typeof t=="function"?t(e):t}function eb(e){var t=Bo(),r=t.queue;if(r===null)throw Error(ge(311));r.lastRenderedReducer=e;var n=Kr,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var s=a=null,l=null,c=i;do{var u=c.lane;if((hl&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=f,a=n):l=l.next=f,wr.lanes|=u,vl|=u}c=c.next}while(c!==null&&c!==i);l===null?a=n:l.next=s,vi(n,t.memoizedState)||(Jn=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,wr.lanes|=i,vl|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function tb(e){var t=Bo(),r=t.queue;if(r===null)throw Error(ge(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);vi(i,t.memoizedState)||(Jn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function XP(){}function YP(e,t){var r=wr,n=Bo(),o=t(),i=!vi(n.memoizedState,o);if(i&&(n.memoizedState=o,Jn=!0),n=n.queue,PS(ZP.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||on!==null&&on.memoizedState.tag&1){if(r.flags|=2048,id(9,JP.bind(null,r,n,o,t),void 0,null),an===null)throw Error(ge(349));(hl&30)!==0||QP(r,t,o)}return o}function QP(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=wr.updateQueue,t===null?(t={lastEffect:null,stores:null},wr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function JP(e,t,r,n){t.value=r,t.getSnapshot=n,eT(t)&&tT(e)}function ZP(e,t,r){return r(function(){eT(t)&&tT(e)})}function eT(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!vi(e,r)}catch{return!0}}function tT(e){var t=va(e,1);t!==null&&hi(t,e,1,-1)}function w_(e){var t=zi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:od,lastRenderedState:e},t.queue=e,e=e.dispatch=fz.bind(null,wr,e),[t.memoizedState,e]}function id(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=wr.updateQueue,t===null?(t={lastEffect:null,stores:null},wr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function rT(){return Bo().memoizedState}function Xm(e,t,r,n){var o=zi();wr.flags|=e,o.memoizedState=id(1|t,r,void 0,n===void 0?null:n)}function Ng(e,t,r,n){var o=Bo();n=n===void 0?null:n;var i=void 0;if(Kr!==null){var a=Kr.memoizedState;if(i=a.destroy,n!==null&&RS(n,a.deps)){o.memoizedState=id(t,r,i,n);return}}wr.flags|=e,o.memoizedState=id(1|t,r,i,n)}function E_(e,t){return Xm(8390656,8,e,t)}function PS(e,t){return Ng(2048,8,e,t)}function nT(e,t){return Ng(4,2,e,t)}function oT(e,t){return Ng(4,4,e,t)}function iT(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function aT(e,t,r){return r=r!=null?r.concat([e]):null,Ng(4,4,iT.bind(null,t,e),r)}function TS(){}function sT(e,t){var r=Bo();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&RS(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function lT(e,t){var r=Bo();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&RS(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function cT(e,t,r){return(hl&21)===0?(e.baseState&&(e.baseState=!1,Jn=!0),e.memoizedState=r):(vi(r,t)||(r=mP(),wr.lanes|=r,vl|=r,e.baseState=!0),t)}function cz(e,t){var r=jt;jt=r!==0&&4>r?r:4,e(!0);var n=Zx.transition;Zx.transition={};try{e(!1),t()}finally{jt=r,Zx.transition=n}}function uT(){return Bo().memoizedState}function uz(e,t,r){var n=fs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},fT(e))dT(t,r);else if(r=qP(e,t,r,n),r!==null){var o=Hn();hi(r,e,n,o),pT(r,t,n)}}function fz(e,t,r){var n=fs(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(fT(e))dT(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,vi(s,a)){var l=t.interleaved;l===null?(o.next=o,bS(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=qP(e,t,o,n),r!==null&&(o=Hn(),hi(r,e,n,o),pT(r,t,n))}}function fT(e){var t=e.alternate;return e===wr||t!==null&&t===wr}function dT(e,t){Wf=vg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pT(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,aS(e,r)}}var yg={readContext:Wo,useCallback:Rn,useContext:Rn,useEffect:Rn,useImperativeHandle:Rn,useInsertionEffect:Rn,useLayoutEffect:Rn,useMemo:Rn,useReducer:Rn,useRef:Rn,useState:Rn,useDebugValue:Rn,useDeferredValue:Rn,useTransition:Rn,useMutableSource:Rn,useSyncExternalStore:Rn,useId:Rn,unstable_isNewReconciler:!1},dz={readContext:Wo,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:Wo,useEffect:E_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xm(4194308,4,iT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xm(4,2,e,t)},useMemo:function(e,t){var r=zi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=uz.bind(null,wr,e),[n.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:w_,useDebugValue:TS,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=w_(!1),t=e[0];return e=cz.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=wr,o=zi();if(yr){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),an===null)throw Error(ge(349));(hl&30)!==0||QP(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,E_(ZP.bind(null,n,i,e),[e]),n.flags|=2048,id(9,JP.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=zi(),t=an.identifierPrefix;if(yr){var r=pa,n=da;r=(n&~(1<<32-gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=nd++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=lz++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pz={readContext:Wo,useCallback:sT,useContext:Wo,useEffect:PS,useImperativeHandle:aT,useInsertionEffect:nT,useLayoutEffect:oT,useMemo:lT,useReducer:eb,useRef:rT,useState:function(){return eb(od)},useDebugValue:TS,useDeferredValue:function(e){var t=Bo();return cT(t,Kr.memoizedState,e)},useTransition:function(){var e=eb(od)[0],t=Bo().memoizedState;return[e,t]},useMutableSource:XP,useSyncExternalStore:YP,useId:uT,unstable_isNewReconciler:!1},mz={readContext:Wo,useCallback:sT,useContext:Wo,useEffect:PS,useImperativeHandle:aT,useInsertionEffect:nT,useLayoutEffect:oT,useMemo:lT,useReducer:tb,useRef:rT,useState:function(){return tb(od)},useDebugValue:TS,useDeferredValue:function(e){var t=Bo();return Kr===null?t.memoizedState=e:cT(t,Kr.memoizedState,e)},useTransition:function(){var e=tb(od)[0],t=Bo().memoizedState;return[e,t]},useMutableSource:XP,useSyncExternalStore:YP,useId:uT,unstable_isNewReconciler:!1};function di(e,t){if(e&&e.defaultProps){t=Er({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Mb(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Er({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ig={isMounted:function(e){return(e=e._reactInternals)?bl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Hn(),o=fs(e),i=ma(n,o);i.payload=t,r!=null&&(i.callback=r),t=cs(e,i,o),t!==null&&(hi(t,e,o,n),Gm(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Hn(),o=fs(e),i=ma(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=cs(e,i,o),t!==null&&(hi(t,e,o,n),Gm(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Hn(),n=fs(e),o=ma(r,n);o.tag=2,t!=null&&(o.callback=t),t=cs(e,o,n),t!==null&&(hi(t,e,n,r),Gm(t,e,n))}};function R_(e,t,r,n,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,a):t.prototype&&t.prototype.isPureReactComponent?!Qf(r,n)||!Qf(o,i):!0}function mT(e,t,r){var n=!1,o=ms,i=t.contextType;return typeof i=="object"&&i!==null?i=Wo(i):(o=eo(t)?ml:Pn.current,n=t.contextTypes,i=(n=n!=null)?zc(e,o):ms),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ig,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function O_(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Ig.enqueueReplaceState(t,t.state,null)}function Fb(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},SS(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Wo(i):(i=eo(t)?ml:Pn.current,o.context=zc(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Mb(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ig.enqueueReplaceState(o,o.state,null),gg(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Vc(e,t){try{var r="",n=t;do r+=H5(n),n=n.return;while(n);var o=r}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function rb(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Lb(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var gz=typeof WeakMap=="function"?WeakMap:Map;function gT(e,t,r){r=ma(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){bg||(bg=!0,Kb=n),Lb(e,t)},r}function hT(e,t,r){r=ma(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){Lb(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Lb(e,t),typeof n!="function"&&(us===null?us=new Set([this]):us.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function __(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new gz;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=Tz.bind(null,e,t,r),t.then(e,e))}function P_(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function T_(e,t,r,n,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ma(-1,1),t.tag=2,cs(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var hz=xa.ReactCurrentOwner,Jn=!1;function Vn(e,t,r,n){t.child=e===null?UP(t,null,r,n):Bc(t,e.child,r,n)}function N_(e,t,r,n,o){r=r.render;var i=t.ref;return Mc(t,o),n=OS(e,t,r,n,i,o),r=_S(),e!==null&&!Jn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ya(e,t,o)):(yr&&r&&mS(t),t.flags|=1,Vn(e,t,n,o),t.child)}function I_(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!FS(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,vT(e,t,i,n,o)):(e=Zm(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Qf,r(a,n)&&e.ref===t.ref)return ya(e,t,o)}return t.flags|=1,e=ds(i,n),e.ref=t.ref,e.return=t,t.child=e}function vT(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Qf(i,n)&&e.ref===t.ref)if(Jn=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Jn=!0);else return t.lanes=e.lanes,ya(e,t,o)}return zb(e,t,r,n,o)}function yT(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},er(Ic,go),go|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,er(Ic,go),go|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,er(Ic,go),go|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,er(Ic,go),go|=n;return Vn(e,t,o,r),t.child}function xT(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function zb(e,t,r,n,o){var i=eo(r)?ml:Pn.current;return i=zc(t,i),Mc(t,o),r=OS(e,t,r,n,i,o),n=_S(),e!==null&&!Jn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ya(e,t,o)):(yr&&n&&mS(t),t.flags|=1,Vn(e,t,r,o),t.child)}function $_(e,t,r,n,o){if(eo(r)){var i=!0;ug(t)}else i=!1;if(Mc(t,o),t.stateNode===null)Ym(e,t),mT(t,r,n),Fb(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Wo(c):(c=eo(r)?ml:Pn.current,c=zc(t,c));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==c)&&O_(t,a,n,c),es=!1;var p=t.memoizedState;a.state=p,gg(t,n,a,o),l=t.memoizedState,s!==n||p!==l||Zn.current||es?(typeof u=="function"&&(Mb(t,r,u,n),l=t.memoizedState),(s=es||R_(t,r,s,n,p,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,GP(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:di(t.type,s),a.props=c,f=t.pendingProps,p=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Wo(l):(l=eo(r)?ml:Pn.current,l=zc(t,l));var g=r.getDerivedStateFromProps;(u=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==l)&&O_(t,a,n,l),es=!1,p=t.memoizedState,a.state=p,gg(t,n,a,o);var h=t.memoizedState;s!==f||p!==h||Zn.current||es?(typeof g=="function"&&(Mb(t,r,g,n),h=t.memoizedState),(c=es||R_(t,r,c,n,p,h,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),a.props=n,a.state=h,a.context=l,n=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return Wb(e,t,r,n,i,o)}function Wb(e,t,r,n,o,i){xT(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&v_(t,r,!1),ya(e,t,i);n=t.stateNode,hz.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Bc(t,e.child,null,i),t.child=Bc(t,null,s,i)):Vn(e,t,s,i),t.memoizedState=n.state,o&&v_(t,r,!0),t.child}function bT(e){var t=e.stateNode;t.pendingContext?h_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&h_(e,t.context,!1),CS(e,t.containerInfo)}function D_(e,t,r,n,o){return Wc(),hS(o),t.flags|=256,Vn(e,t,r,n),t.child}var Bb={dehydrated:null,treeContext:null,retryLane:0};function jb(e){return{baseLanes:e,cachePool:null,transitions:null}}function ST(e,t,r){var n=t.pendingProps,o=Cr.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),er(Cr,o&1),e===null)return Ab(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Ag(a,n,0,null),e=pl(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=jb(r),t.memoizedState=Bb,e):NS(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return vz(e,t,a,n,s,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:n.children};return(a&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=ds(o,l),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=ds(s,i):(i=pl(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?jb(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=Bb,n}return i=e.child,e=i.sibling,n=ds(i,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function NS(e,t){return t=Ag({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bm(e,t,r,n){return n!==null&&hS(n),Bc(t,e.child,null,r),e=NS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vz(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=rb(Error(ge(422))),Bm(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Ag({mode:"visible",children:n.children},o,0,null),i=pl(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Bc(t,e.child,null,a),t.child.memoizedState=jb(a),t.memoizedState=Bb,i);if((t.mode&1)===0)return Bm(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(ge(419)),n=rb(i,n,void 0),Bm(e,t,a,n)}if(s=(a&e.childLanes)!==0,Jn||s){if(n=an,n!==null){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}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,va(e,o),hi(n,e,o,-1))}return MS(),n=rb(Error(ge(421))),Bm(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Nz.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ho=ls(o.nextSibling),vo=t,yr=!0,mi=null,e!==null&&(Mo[Fo++]=da,Mo[Fo++]=pa,Mo[Fo++]=gl,da=e.id,pa=e.overflow,gl=t),t=NS(t,n.children),t.flags|=4096,t)}function A_(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),kb(e.return,t,r)}function nb(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function CT(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Vn(e,t,n.children,r),n=Cr.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&A_(e,r,t);else if(e.tag===19)A_(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(er(Cr,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&hg(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),nb(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&hg(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}nb(t,!0,r,null,i);break;case"together":nb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ym(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ya(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),vl|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(ge(153));if(t.child!==null){for(e=t.child,r=ds(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ds(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function yz(e,t,r){switch(t.tag){case 3:bT(t),Wc();break;case 5:KP(t);break;case 1:eo(t.type)&&ug(t);break;case 4:CS(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;er(pg,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(er(Cr,Cr.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?ST(e,t,r):(er(Cr,Cr.current&1),e=ya(e,t,r),e!==null?e.sibling:null);er(Cr,Cr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return CT(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),er(Cr,Cr.current),n)break;return null;case 22:case 23:return t.lanes=0,yT(e,t,r)}return ya(e,t,r)}var wT,Vb,ET,RT;wT=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Vb=function(){};ET=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,fl(ji.current);var i=null;switch(r){case"input":o=fb(e,o),n=fb(e,n),i=[];break;case"select":o=Er({},o,{value:void 0}),n=Er({},n,{value:void 0}),i=[];break;case"textarea":o=mb(e,o),n=mb(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=lg)}hb(r,n);var a;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Hf.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(s=o?.[c],n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Hf.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&or("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};RT=function(e,t,r,n){r!==n&&(t.flags|=4)};function Pf(e,t){if(!yr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function On(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function xz(e,t,r){var n=t.pendingProps;switch(gS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return On(t),null;case 1:return eo(t.type)&&cg(),On(t),null;case 3:return n=t.stateNode,jc(),ir(Zn),ir(Pn),ES(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,mi!==null&&(Qb(mi),mi=null))),Vb(e,t),On(t),null;case 5:wS(t);var o=fl(rd.current);if(r=t.type,e!==null&&t.stateNode!=null)ET(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ge(166));return On(t),null}if(e=fl(ji.current),zm(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Wi]=t,n[ed]=i,e=(t.mode&1)!==0,r){case"dialog":or("cancel",n),or("close",n);break;case"iframe":case"object":case"embed":or("load",n);break;case"video":case"audio":for(o=0;o<Af.length;o++)or(Af[o],n);break;case"source":or("error",n);break;case"img":case"image":case"link":or("error",n),or("load",n);break;case"details":or("toggle",n);break;case"input":jO(n,i),or("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},or("invalid",n);break;case"textarea":HO(n,i),or("invalid",n)}hb(r,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?n.textContent!==s&&(i.suppressHydrationWarning!==!0&&Lm(n.textContent,s,e),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Lm(n.textContent,s,e),o=["children",""+s]):Hf.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&or("scroll",n)}switch(r){case"input":Om(n),VO(n,i,!0);break;case"textarea":Om(n),UO(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=lg)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Z_(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Wi]=t,e[ed]=n,wT(e,t,!1,!1),t.stateNode=e;e:{switch(a=vb(r,n),r){case"dialog":or("cancel",e),or("close",e),o=n;break;case"iframe":case"object":case"embed":or("load",e),o=n;break;case"video":case"audio":for(o=0;o<Af.length;o++)or(Af[o],e);o=n;break;case"source":or("error",e),o=n;break;case"img":case"image":case"link":or("error",e),or("load",e),o=n;break;case"details":or("toggle",e),o=n;break;case"input":jO(e,n),o=fb(e,n),or("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Er({},n,{value:void 0}),or("invalid",e);break;case"textarea":HO(e,n),o=mb(e,n),or("invalid",e);break;default:o=n}hb(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?rP(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&eP(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Uf(e,l):typeof l=="number"&&Uf(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Hf.hasOwnProperty(i)?l!=null&&i==="onScroll"&&or("scroll",e):l!=null&&eS(e,i,l,a))}switch(r){case"input":Om(e),VO(e,n,!1);break;case"textarea":Om(e),UO(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ps(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?$c(e,!!n.multiple,i,!1):n.defaultValue!=null&&$c(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=lg)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return On(t),null;case 6:if(e&&t.stateNode!=null)RT(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(ge(166));if(r=fl(rd.current),fl(ji.current),zm(t)){if(n=t.stateNode,r=t.memoizedProps,n[Wi]=t,(i=n.nodeValue!==r)&&(e=vo,e!==null))switch(e.tag){case 3:Lm(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Lm(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Wi]=t,t.stateNode=n}return On(t),null;case 13:if(ir(Cr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(yr&&ho!==null&&(t.mode&1)!==0&&(t.flags&128)===0)VP(),Wc(),t.flags|=98560,i=!1;else if(i=zm(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(ge(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ge(317));i[Wi]=t}else Wc(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;On(t),i=!1}else mi!==null&&(Qb(mi),mi=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Cr.current&1)!==0?Xr===0&&(Xr=3):MS())),t.updateQueue!==null&&(t.flags|=4),On(t),null);case 4:return jc(),Vb(e,t),e===null&&Jf(t.stateNode.containerInfo),On(t),null;case 10:return xS(t.type._context),On(t),null;case 17:return eo(t.type)&&cg(),On(t),null;case 19:if(ir(Cr),i=t.memoizedState,i===null)return On(t),null;if(n=(t.flags&128)!==0,a=i.rendering,a===null)if(n)Pf(i,!1);else{if(Xr!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=hg(e),a!==null){for(t.flags|=128,Pf(i,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return er(Cr,Cr.current&1|2),t.child}e=e.sibling}i.tail!==null&&Fr()>Hc&&(t.flags|=128,n=!0,Pf(i,!1),t.lanes=4194304)}else{if(!n)if(e=hg(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Pf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!yr)return On(t),null}else 2*Fr()-i.renderingStartTime>Hc&&r!==1073741824&&(t.flags|=128,n=!0,Pf(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fr(),t.sibling=null,r=Cr.current,er(Cr,n?r&1|2:r&1),t):(On(t),null);case 22:case 23:return kS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(go&1073741824)!==0&&(On(t),t.subtreeFlags&6&&(t.flags|=8192)):On(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function bz(e,t){switch(gS(t),t.tag){case 1:return eo(t.type)&&cg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jc(),ir(Zn),ir(Pn),ES(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wS(t),null;case 13:if(ir(Cr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));Wc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ir(Cr),null;case 4:return jc(),null;case 10:return xS(t.type._context),null;case 22:case 23:return kS(),null;case 24:return null;default:return null}}var jm=!1,_n=!1,Sz=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Nc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Nr(e,t,n)}else r.current=null}function Hb(e,t,r){try{r()}catch(n){Nr(e,t,n)}}var k_=!1;function Cz(e,t){if(_b=ig,e=NP(),pS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var g;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++u===n&&(l=a),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Pb={focusedElem:e,selectionRange:r},ig=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:di(t.type,v),y);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(b){Nr(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return h=k_,k_=!1,h}function Bf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Hb(t,r,i)}o=o.next}while(o!==n)}}function $g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Ub(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function OT(e){var t=e.alternate;t!==null&&(e.alternate=null,OT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wi],delete t[ed],delete t[Ib],delete t[oz],delete t[iz])),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 _T(e){return e.tag===5||e.tag===3||e.tag===4}function M_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_T(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=lg));else if(n!==4&&(e=e.child,e!==null))for(qb(e,t,r),e=e.sibling;e!==null;)qb(e,t,r),e=e.sibling}function Gb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Gb(e,t,r),e=e.sibling;e!==null;)Gb(e,t,r),e=e.sibling}var gn=null,pi=!1;function Ja(e,t,r){for(r=r.child;r!==null;)PT(e,t,r),r=r.sibling}function PT(e,t,r){if(Bi&&typeof Bi.onCommitFiberUnmount=="function")try{Bi.onCommitFiberUnmount(Eg,r)}catch{}switch(r.tag){case 5:_n||Nc(r,t);case 6:var n=gn,o=pi;gn=null,Ja(e,t,r),gn=n,pi=o,gn!==null&&(pi?(e=gn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):gn.removeChild(r.stateNode));break;case 18:gn!==null&&(pi?(e=gn,r=r.stateNode,e.nodeType===8?Yx(e.parentNode,r):e.nodeType===1&&Yx(e,r),Xf(e)):Yx(gn,r.stateNode));break;case 4:n=gn,o=pi,gn=r.stateNode.containerInfo,pi=!0,Ja(e,t,r),gn=n,pi=o;break;case 0:case 11:case 14:case 15:if(!_n&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&Hb(r,t,a),o=o.next}while(o!==n)}Ja(e,t,r);break;case 1:if(!_n&&(Nc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Nr(r,t,s)}Ja(e,t,r);break;case 21:Ja(e,t,r);break;case 22:r.mode&1?(_n=(n=_n)||r.memoizedState!==null,Ja(e,t,r),_n=n):Ja(e,t,r);break;default:Ja(e,t,r)}}function F_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Sz),t.forEach(function(n){var o=Iz.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:gn=s.stateNode,pi=!1;break e;case 3:gn=s.stateNode.containerInfo,pi=!0;break e;case 4:gn=s.stateNode.containerInfo,pi=!0;break e}s=s.return}if(gn===null)throw Error(ge(160));PT(i,a,o),gn=null,pi=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Nr(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)TT(t,e),t=t.sibling}function TT(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fi(t,e),Li(e),n&4){try{Bf(3,e,e.return),$g(3,e)}catch(v){Nr(e,e.return,v)}try{Bf(5,e,e.return)}catch(v){Nr(e,e.return,v)}}break;case 1:fi(t,e),Li(e),n&512&&r!==null&&Nc(r,r.return);break;case 5:if(fi(t,e),Li(e),n&512&&r!==null&&Nc(r,r.return),e.flags&32){var o=e.stateNode;try{Uf(o,"")}catch(v){Nr(e,e.return,v)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Q_(o,i),vb(s,a);var c=vb(s,i);for(a=0;a<l.length;a+=2){var u=l[a],f=l[a+1];u==="style"?rP(o,f):u==="dangerouslySetInnerHTML"?eP(o,f):u==="children"?Uf(o,f):eS(o,u,f,c)}switch(s){case"input":db(o,i);break;case"textarea":J_(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?$c(o,!!i.multiple,g,!1):p!==!!i.multiple&&(i.defaultValue!=null?$c(o,!!i.multiple,i.defaultValue,!0):$c(o,!!i.multiple,i.multiple?[]:"",!1))}o[ed]=i}catch(v){Nr(e,e.return,v)}}break;case 6:if(fi(t,e),Li(e),n&4){if(e.stateNode===null)throw Error(ge(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){Nr(e,e.return,v)}}break;case 3:if(fi(t,e),Li(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Xf(t.containerInfo)}catch(v){Nr(e,e.return,v)}break;case 4:fi(t,e),Li(e);break;case 13:fi(t,e),Li(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(DS=Fr())),n&4&&F_(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(_n=(c=_n)||u,fi(t,e),_n=c):fi(t,e),Li(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&(e.mode&1)!==0)for(qe=e,u=e.child;u!==null;){for(f=qe=u;qe!==null;){switch(p=qe,g=p.child,p.tag){case 0:case 11:case 14:case 15:Bf(4,p,p.return);break;case 1:Nc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(v){Nr(n,r,v)}}break;case 5:Nc(p,p.return);break;case 22:if(p.memoizedState!==null){z_(f);continue}}g!==null?(g.return=p,qe=g):z_(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{o=f.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=tP("display",a))}catch(v){Nr(e,e.return,v)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Nr(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:fi(t,e),Li(e),n&4&&F_(e);break;case 21:break;default:fi(t,e),Li(e)}}function Li(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(_T(r)){var n=r;break e}r=r.return}throw Error(ge(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Uf(o,""),n.flags&=-33);var i=M_(e);Gb(e,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=M_(e);qb(e,s,a);break;default:throw Error(ge(161))}}catch(l){Nr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wz(e,t,r){qe=e,NT(e,t,r)}function NT(e,t,r){for(var n=(e.mode&1)!==0;qe!==null;){var o=qe,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||jm;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||_n;s=jm;var c=_n;if(jm=a,(_n=l)&&!c)for(qe=o;qe!==null;)a=qe,l=a.child,a.tag===22&&a.memoizedState!==null?W_(o):l!==null?(l.return=a,qe=l):W_(o);for(;i!==null;)qe=i,NT(i,t,r),i=i.sibling;qe=o,jm=s,_n=c}L_(e,t,r)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,qe=i):L_(e,t,r)}}function L_(e){for(;qe!==null;){var t=qe;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:_n||$g(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!_n)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:di(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&C_(t,i,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}C_(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&Xf(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ge(163))}_n||t.flags&512&&Ub(t)}catch(p){Nr(t,t.return,p)}}if(t===e){qe=null;break}if(r=t.sibling,r!==null){r.return=t.return,qe=r;break}qe=t.return}}function z_(e){for(;qe!==null;){var t=qe;if(t===e){qe=null;break}var r=t.sibling;if(r!==null){r.return=t.return,qe=r;break}qe=t.return}}function W_(e){for(;qe!==null;){var t=qe;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{$g(4,t)}catch(l){Nr(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(l){Nr(t,o,l)}}var i=t.return;try{Ub(t)}catch(l){Nr(t,i,l)}break;case 5:var a=t.return;try{Ub(t)}catch(l){Nr(t,a,l)}}}catch(l){Nr(t,t.return,l)}if(t===e){qe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,qe=s;break}qe=t.return}}var Ez=Math.ceil,xg=xa.ReactCurrentDispatcher,IS=xa.ReactCurrentOwner,zo=xa.ReactCurrentBatchConfig,$t=0,an=null,Vr=null,hn=0,go=0,Ic=hs(0),Xr=0,ad=null,vl=0,Dg=0,$S=0,jf=null,Qn=null,DS=0,Hc=1/0,ua=null,bg=!1,Kb=null,us=null,Vm=!1,os=null,Sg=0,Vf=0,Xb=null,Qm=-1,Jm=0;function Hn(){return($t&6)!==0?Fr():Qm!==-1?Qm:Qm=Fr()}function fs(e){return(e.mode&1)===0?1:($t&2)!==0&&hn!==0?hn&-hn:sz.transition!==null?(Jm===0&&(Jm=mP()),Jm):(e=jt,e!==0||(e=window.event,e=e===void 0?16:SP(e.type)),e)}function hi(e,t,r,n){if(50<Vf)throw Vf=0,Xb=null,Error(ge(185));sd(e,r,n),(($t&2)===0||e!==an)&&(e===an&&(($t&2)===0&&(Dg|=r),Xr===4&&rs(e,hn)),to(e,n),r===1&&$t===0&&(t.mode&1)===0&&(Hc=Fr()+500,Tg&&vs()))}function to(e,t){var r=e.callbackNode;c6(e,t);var n=og(e,e===an?hn:0);if(n===0)r!==null&&KO(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&KO(r),t===1)e.tag===0?az(B_.bind(null,e)):WP(B_.bind(null,e)),rz(function(){($t&6)===0&&vs()}),r=null;else{switch(gP(n)){case 1:r=iS;break;case 4:r=dP;break;case 16:r=ng;break;case 536870912:r=pP;break;default:r=ng}r=LT(r,IT.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function IT(e,t){if(Qm=-1,Jm=0,($t&6)!==0)throw Error(ge(327));var r=e.callbackNode;if(Fc()&&e.callbackNode!==r)return null;var n=og(e,e===an?hn:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Cg(e,n);else{t=n;var o=$t;$t|=2;var i=DT();(an!==e||hn!==t)&&(ua=null,Hc=Fr()+500,dl(e,t));do try{_z();break}catch(s){$T(e,s)}while(!0);yS(),xg.current=i,$t=o,Vr!==null?t=0:(an=null,hn=0,t=Xr)}if(t!==0){if(t===2&&(o=Cb(e),o!==0&&(n=o,t=Yb(e,o))),t===1)throw r=ad,dl(e,0),rs(e,n),to(e,Fr()),r;if(t===6)rs(e,n);else{if(o=e.current.alternate,(n&30)===0&&!Rz(o)&&(t=Cg(e,n),t===2&&(i=Cb(e),i!==0&&(n=i,t=Yb(e,i))),t===1))throw r=ad,dl(e,0),rs(e,n),to(e,Fr()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(ge(345));case 2:ll(e,Qn,ua);break;case 3:if(rs(e,n),(n&130023424)===n&&(t=DS+500-Fr(),10<t)){if(og(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){Hn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Nb(ll.bind(null,e,Qn,ua),t);break}ll(e,Qn,ua);break;case 4:if(rs(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var a=31-gi(n);i=1<<a,a=t[a],a>o&&(o=a),n&=~i}if(n=o,n=Fr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ez(n/1960))-n,10<n){e.timeoutHandle=Nb(ll.bind(null,e,Qn,ua),n);break}ll(e,Qn,ua);break;case 5:ll(e,Qn,ua);break;default:throw Error(ge(329))}}}return to(e,Fr()),e.callbackNode===r?IT.bind(null,e):null}function Yb(e,t){var r=jf;return e.current.memoizedState.isDehydrated&&(dl(e,t).flags|=256),e=Cg(e,t),e!==2&&(t=Qn,Qn=r,t!==null&&Qb(t)),e}function Qb(e){Qn===null?Qn=e:Qn.push.apply(Qn,e)}function Rz(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!vi(i(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rs(e,t){for(t&=~$S,t&=~Dg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-gi(t),n=1<<r;e[r]=-1,t&=~n}}function B_(e){if(($t&6)!==0)throw Error(ge(327));Fc();var t=og(e,0);if((t&1)===0)return to(e,Fr()),null;var r=Cg(e,t);if(e.tag!==0&&r===2){var n=Cb(e);n!==0&&(t=n,r=Yb(e,n))}if(r===1)throw r=ad,dl(e,0),rs(e,t),to(e,Fr()),r;if(r===6)throw Error(ge(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ll(e,Qn,ua),to(e,Fr()),null}function AS(e,t){var r=$t;$t|=1;try{return e(t)}finally{$t=r,$t===0&&(Hc=Fr()+500,Tg&&vs())}}function yl(e){os!==null&&os.tag===0&&($t&6)===0&&Fc();var t=$t;$t|=1;var r=zo.transition,n=jt;try{if(zo.transition=null,jt=1,e)return e()}finally{jt=n,zo.transition=r,$t=t,($t&6)===0&&vs()}}function kS(){go=Ic.current,ir(Ic)}function dl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,tz(r)),Vr!==null)for(r=Vr.return;r!==null;){var n=r;switch(gS(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&cg();break;case 3:jc(),ir(Zn),ir(Pn),ES();break;case 5:wS(n);break;case 4:jc();break;case 13:ir(Cr);break;case 19:ir(Cr);break;case 10:xS(n.type._context);break;case 22:case 23:kS()}r=r.return}if(an=e,Vr=e=ds(e.current,null),hn=go=t,Xr=0,ad=null,$S=Dg=vl=0,Qn=jf=null,ul!==null){for(t=0;t<ul.length;t++)if(r=ul[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=o,n.next=a}r.pending=n}ul=null}return e}function $T(e,t){do{var r=Vr;try{if(yS(),Km.current=yg,vg){for(var n=wr.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}vg=!1}if(hl=0,on=Kr=wr=null,Wf=!1,nd=0,IS.current=null,r===null||r.return===null){Xr=1,ad=t,Vr=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=hn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,f=u.tag;if((u.mode&1)===0&&(f===0||f===11||f===15)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var g=P_(a);if(g!==null){g.flags&=-257,T_(g,a,s,i,t),g.mode&1&&__(i,c,t),t=g,l=c;var h=t.updateQueue;if(h===null){var v=new Set;v.add(l),t.updateQueue=v}else h.add(l);break e}else{if((t&1)===0){__(i,c,t),MS();break e}l=Error(ge(426))}}else if(yr&&s.mode&1){var y=P_(a);if(y!==null){(y.flags&65536)===0&&(y.flags|=256),T_(y,a,s,i,t),hS(Vc(l,s));break e}}i=l=Vc(l,s),Xr!==4&&(Xr=2),jf===null?jf=[i]:jf.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=gT(i,l,t);S_(i,m);break e;case 1:s=l;var d=i.type,x=i.stateNode;if((i.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(us===null||!us.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=hT(i,s,t);S_(i,b);break e}}i=i.return}while(i!==null)}kT(r)}catch(S){t=S,Vr===r&&r!==null&&(Vr=r=r.return);continue}break}while(!0)}function DT(){var e=xg.current;return xg.current=yg,e===null?yg:e}function MS(){(Xr===0||Xr===3||Xr===2)&&(Xr=4),an===null||(vl&268435455)===0&&(Dg&268435455)===0||rs(an,hn)}function Cg(e,t){var r=$t;$t|=2;var n=DT();(an!==e||hn!==t)&&(ua=null,dl(e,t));do try{Oz();break}catch(o){$T(e,o)}while(!0);if(yS(),$t=r,xg.current=n,Vr!==null)throw Error(ge(261));return an=null,hn=0,Xr}function Oz(){for(;Vr!==null;)AT(Vr)}function _z(){for(;Vr!==null&&!e6();)AT(Vr)}function AT(e){var t=FT(e.alternate,e,go);e.memoizedProps=e.pendingProps,t===null?kT(e):Vr=t,IS.current=null}function kT(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=xz(r,t,go),r!==null){Vr=r;return}}else{if(r=bz(r,t),r!==null){r.flags&=32767,Vr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xr=6,Vr=null;return}}if(t=t.sibling,t!==null){Vr=t;return}Vr=t=e}while(t!==null);Xr===0&&(Xr=5)}function ll(e,t,r){var n=jt,o=zo.transition;try{zo.transition=null,jt=1,Pz(e,t,r,n)}finally{zo.transition=o,jt=n}return null}function Pz(e,t,r,n){do Fc();while(os!==null);if(($t&6)!==0)throw Error(ge(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ge(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(u6(e,i),e===an&&(Vr=an=null,hn=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Vm||(Vm=!0,LT(ng,function(){return Fc(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=zo.transition,zo.transition=null;var a=jt;jt=1;var s=$t;$t|=4,IS.current=null,Cz(e,r),TT(r,e),Y6(Pb),ig=!!_b,Pb=_b=null,e.current=r,wz(r,e,o),t6(),$t=s,jt=a,zo.transition=i}else e.current=r;if(Vm&&(Vm=!1,os=e,Sg=o),i=e.pendingLanes,i===0&&(us=null),o6(r.stateNode,n),to(e,Fr()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(bg)throw bg=!1,e=Kb,Kb=null,e;return(Sg&1)!==0&&e.tag!==0&&Fc(),i=e.pendingLanes,(i&1)!==0?e===Xb?Vf++:(Vf=0,Xb=e):Vf=0,vs(),null}function Fc(){if(os!==null){var e=gP(Sg),t=zo.transition,r=jt;try{if(zo.transition=null,jt=16>e?16:e,os===null)var n=!1;else{if(e=os,os=null,Sg=0,($t&6)!==0)throw Error(ge(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(qe=c;qe!==null;){var u=qe;switch(u.tag){case 0:case 11:case 15:Bf(8,u,i)}var f=u.child;if(f!==null)f.return=u,qe=f;else for(;qe!==null;){u=qe;var p=u.sibling,g=u.return;if(OT(u),u===c){qe=null;break}if(p!==null){p.return=g,qe=p;break}qe=g}}}var h=i.alternate;if(h!==null){var v=h.child;if(v!==null){h.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}qe=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,qe=a;else e:for(;qe!==null;){if(i=qe,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Bf(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,qe=m;break e}qe=i.return}}var d=e.current;for(qe=d;qe!==null;){a=qe;var x=a.child;if((a.subtreeFlags&2064)!==0&&x!==null)x.return=a,qe=x;else e:for(a=d;qe!==null;){if(s=qe,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:$g(9,s)}}catch(S){Nr(s,s.return,S)}if(s===a){qe=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,qe=b;break e}qe=s.return}}if($t=o,vs(),Bi&&typeof Bi.onPostCommitFiberRoot=="function")try{Bi.onPostCommitFiberRoot(Eg,e)}catch{}n=!0}return n}finally{jt=r,zo.transition=t}}return!1}function j_(e,t,r){t=Vc(r,t),t=gT(e,t,1),e=cs(e,t,1),t=Hn(),e!==null&&(sd(e,1,t),to(e,t))}function Nr(e,t,r){if(e.tag===3)j_(e,e,r);else for(;t!==null;){if(t.tag===3){j_(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(us===null||!us.has(n))){e=Vc(r,e),e=hT(t,e,1),t=cs(t,e,1),e=Hn(),t!==null&&(sd(t,1,e),to(t,e));break}}t=t.return}}function Tz(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Hn(),e.pingedLanes|=e.suspendedLanes&r,an===e&&(hn&r)===r&&(Xr===4||Xr===3&&(hn&130023424)===hn&&500>Fr()-DS?dl(e,0):$S|=r),to(e,t)}function MT(e,t){t===0&&((e.mode&1)===0?t=1:(t=Tm,Tm<<=1,(Tm&130023424)===0&&(Tm=4194304)));var r=Hn();e=va(e,t),e!==null&&(sd(e,t,r),to(e,r))}function Nz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),MT(e,r)}function Iz(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ge(314))}n!==null&&n.delete(t),MT(e,r)}var FT;FT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Zn.current)Jn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Jn=!1,yz(e,t,r);Jn=(e.flags&131072)!==0}else Jn=!1,yr&&(t.flags&1048576)!==0&&BP(t,dg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ym(e,t),e=t.pendingProps;var o=zc(t,Pn.current);Mc(t,r),o=OS(null,t,n,e,o,r);var i=_S();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,eo(n)?(i=!0,ug(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,SS(t),o.updater=Ig,t.stateNode=o,o._reactInternals=t,Fb(t,n,e,r),t=Wb(null,t,n,!0,i,r)):(t.tag=0,yr&&i&&mS(t),Vn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ym(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=Dz(n),e=di(n,e),o){case 0:t=zb(null,t,n,e,r);break e;case 1:t=$_(null,t,n,e,r);break e;case 11:t=N_(null,t,n,e,r);break e;case 14:t=I_(null,t,n,di(n.type,e),r);break e}throw Error(ge(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),zb(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),$_(e,t,n,o,r);case 3:e:{if(bT(t),e===null)throw Error(ge(387));n=t.pendingProps,i=t.memoizedState,o=i.element,GP(e,t),gg(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Vc(Error(ge(423)),t),t=D_(e,t,n,r,o);break e}else if(n!==o){o=Vc(Error(ge(424)),t),t=D_(e,t,n,r,o);break e}else for(ho=ls(t.stateNode.containerInfo.firstChild),vo=t,yr=!0,mi=null,r=UP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Wc(),n===o){t=ya(e,t,r);break e}Vn(e,t,n,r)}t=t.child}return t;case 5:return KP(t),e===null&&Ab(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Tb(n,o)?a=null:i!==null&&Tb(n,i)&&(t.flags|=32),xT(e,t),Vn(e,t,a,r),t.child;case 6:return e===null&&Ab(t),null;case 13:return ST(e,t,r);case 4:return CS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Bc(t,null,n,r):Vn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),N_(e,t,n,o,r);case 7:return Vn(e,t,t.pendingProps,r),t.child;case 8:return Vn(e,t,t.pendingProps.children,r),t.child;case 12:return Vn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,er(pg,n._currentValue),n._currentValue=a,i!==null)if(vi(i.value,a)){if(i.children===o.children&&!Zn.current){t=ya(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=ma(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),kb(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ge(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),kb(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Vn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Mc(t,r),o=Wo(o),n=n(o),t.flags|=1,Vn(e,t,n,r),t.child;case 14:return n=t.type,o=di(n,t.pendingProps),o=di(n.type,o),I_(e,t,n,o,r);case 15:return vT(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),Ym(e,t),t.tag=1,eo(n)?(e=!0,ug(t)):e=!1,Mc(t,r),mT(t,n,o),Fb(t,n,o,r),Wb(null,t,n,!0,e,r);case 19:return CT(e,t,r);case 22:return yT(e,t,r)}throw Error(ge(156,t.tag))};function LT(e,t){return fP(e,t)}function $z(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lo(e,t,r,n){return new $z(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dz(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rS)return 11;if(e===nS)return 14}return 2}function ds(e,t){var r=e.alternate;return r===null?(r=Lo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zm(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")FS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Sc:return pl(r.children,o,i,t);case tS:a=8,o|=8;break;case sb:return e=Lo(12,r,t,o|2),e.elementType=sb,e.lanes=i,e;case lb:return e=Lo(13,r,t,o),e.elementType=lb,e.lanes=i,e;case cb:return e=Lo(19,r,t,o),e.elementType=cb,e.lanes=i,e;case K_:return Ag(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q_:a=10;break e;case G_:a=9;break e;case rS:a=11;break e;case nS:a=14;break e;case Za:a=16,n=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Lo(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function pl(e,t,r,n){return e=Lo(7,e,n,t),e.lanes=r,e}function Ag(e,t,r,n){return e=Lo(22,e,n,t),e.elementType=K_,e.lanes=r,e.stateNode={isHidden:!1},e}function ob(e,t,r){return e=Lo(6,e,null,t),e.lanes=r,e}function ib(e,t,r){return t=Lo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Az(e,t,r,n,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=jx(0),this.expirationTimes=jx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function LS(e,t,r,n,o,i,a,s,l){return e=new Az(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},SS(i),e}function kz(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:bc,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function zT(e){if(!e)return ms;e=e._reactInternals;e:{if(bl(e)!==e||e.tag!==1)throw Error(ge(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(eo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ge(171))}if(e.tag===1){var r=e.type;if(eo(r))return zP(e,r,t)}return t}function WT(e,t,r,n,o,i,a,s,l){return e=LS(r,n,!0,e,o,i,a,s,l),e.context=zT(null),r=e.current,n=Hn(),o=fs(r),i=ma(n,o),i.callback=t??null,cs(r,i,o),e.current.lanes=o,sd(e,o,n),to(e,n),e}function kg(e,t,r,n){var o=t.current,i=Hn(),a=fs(o);return r=zT(r),t.context===null?t.context=r:t.pendingContext=r,t=ma(i,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=cs(o,t,a),e!==null&&(hi(e,o,a,i),Gm(e,o,a)),a}function wg(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function V_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function zS(e,t){V_(e,t),(e=e.alternate)&&V_(e,t)}function Mz(){return null}var BT=typeof reportError=="function"?reportError:function(e){console.error(e)};function WS(e){this._internalRoot=e}Mg.prototype.render=WS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ge(409));kg(e,t,null,null)};Mg.prototype.unmount=WS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yl(function(){kg(null,e,null,null)}),t[ha]=null}};function Mg(e){this._internalRoot=e}Mg.prototype.unstable_scheduleHydration=function(e){if(e){var t=yP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ts.length&&t!==0&&t<ts[r].priority;r++);ts.splice(r,0,e),r===0&&bP(e)}};function BS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function H_(){}function Fz(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var c=wg(a);i.call(c)}}var a=WT(t,n,e,0,null,!1,!1,"",H_);return e._reactRootContainer=a,e[ha]=a.current,Jf(e.nodeType===8?e.parentNode:e),yl(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var c=wg(l);s.call(c)}}var l=LS(e,0,!1,null,null,!1,!1,"",H_);return e._reactRootContainer=l,e[ha]=l.current,Jf(e.nodeType===8?e.parentNode:e),yl(function(){kg(t,l,r,n)}),l}function Lg(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=wg(a);s.call(l)}}kg(t,a,e,o)}else a=Fz(r,t,e,o,n);return wg(a)}hP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Df(t.pendingLanes);r!==0&&(aS(t,r|1),to(t,Fr()),($t&6)===0&&(Hc=Fr()+500,vs()))}break;case 13:yl(function(){var n=va(e,1);if(n!==null){var o=Hn();hi(n,e,1,o)}}),zS(e,1)}};sS=function(e){if(e.tag===13){var t=va(e,134217728);if(t!==null){var r=Hn();hi(t,e,134217728,r)}zS(e,134217728)}};vP=function(e){if(e.tag===13){var t=fs(e),r=va(e,t);if(r!==null){var n=Hn();hi(r,e,t,n)}zS(e,t)}};yP=function(){return jt};xP=function(e,t){var r=jt;try{return jt=e,t()}finally{jt=r}};xb=function(e,t,r){switch(t){case"input":if(db(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Pg(n);if(!o)throw Error(ge(90));Y_(n),db(n,o)}}}break;case"textarea":J_(e,r);break;case"select":t=r.value,t!=null&&$c(e,!!r.multiple,t,!1)}};iP=AS;aP=yl;var Lz={usingClientEntryPoint:!1,Events:[cd,Rc,Pg,nP,oP,AS]},Tf={findFiberByHostInstance:cl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zz={bundleType:Tf.bundleType,version:Tf.version,rendererPackageName:Tf.rendererPackageName,rendererConfig:Tf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cP(e),e===null?null:e.stateNode},findFiberByHostInstance:Tf.findFiberByHostInstance||Mz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Nf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Nf.isDisabled&&Nf.supportsFiber))try{Eg=Nf.inject(zz),Bi=Nf}catch{}var Nf;bo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lz;bo.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!BS(t))throw Error(ge(200));return kz(e,t,null,r)};bo.createRoot=function(e,t){if(!BS(e))throw Error(ge(299));var r=!1,n="",o=BT;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=LS(e,1,!1,null,null,r,!1,n,o),e[ha]=t.current,Jf(e.nodeType===8?e.parentNode:e),new WS(t)};bo.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ge(188)):(e=Object.keys(e).join(","),Error(ge(268,e)));return e=cP(t),e=e===null?null:e.stateNode,e};bo.flushSync=function(e){return yl(e)};bo.hydrate=function(e,t,r){if(!Fg(t))throw Error(ge(200));return Lg(null,e,t,!0,r)};bo.hydrateRoot=function(e,t,r){if(!BS(e))throw Error(ge(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=BT;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=WT(t,null,e,1,r??null,o,!1,i,a),e[ha]=t.current,Jf(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Mg(t)};bo.render=function(e,t,r){if(!Fg(t))throw Error(ge(200));return Lg(null,e,t,!1,r)};bo.unmountComponentAtNode=function(e){if(!Fg(e))throw Error(ge(40));return e._reactRootContainer?(yl(function(){Lg(null,null,e,!1,function(){e._reactRootContainer=null,e[ha]=null})}),!0):!1};bo.unstable_batchedUpdates=AS;bo.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Fg(r))throw Error(ge(200));if(e==null||e._reactInternals===void 0)throw Error(ge(38));return Lg(e,t,r,!1,n)};bo.version="18.3.1-next-f1338f8080-20240426"});var Vi=$o((_J,HT)=>{"use strict";function VT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VT)}catch(e){console.error(e)}}VT(),HT.exports=jT()});var qT=$o(jS=>{"use strict";var UT=Vi();jS.createRoot=UT.createRoot,jS.hydrateRoot=UT.hydrateRoot;var PJ});var Ne=$o((IJ,zg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(o=n(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var a in o)e.call(o,a)&&o[a]&&(i=n(i,a));return i}function n(o,i){return i?o?o+" "+i:o+i:o}typeof zg<"u"&&zg.exports?(t.default=t,zg.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var rN=$o(Ht=>{"use strict";var US=Symbol.for("react.element"),qS=Symbol.for("react.portal"),jg=Symbol.for("react.fragment"),Vg=Symbol.for("react.strict_mode"),Hg=Symbol.for("react.profiler"),Ug=Symbol.for("react.provider"),qg=Symbol.for("react.context"),Kz=Symbol.for("react.server_context"),Gg=Symbol.for("react.forward_ref"),Kg=Symbol.for("react.suspense"),Xg=Symbol.for("react.suspense_list"),Yg=Symbol.for("react.memo"),Qg=Symbol.for("react.lazy"),Xz=Symbol.for("react.offscreen"),tN;tN=Symbol.for("react.module.reference");function jo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case US:switch(e=e.type,e){case jg:case Hg:case Vg:case Kg:case Xg:return e;default:switch(e=e&&e.$$typeof,e){case Kz:case qg:case Gg:case Qg:case Yg:case Ug:return e;default:return t}}case qS:return t}}}Ht.ContextConsumer=qg;Ht.ContextProvider=Ug;Ht.Element=US;Ht.ForwardRef=Gg;Ht.Fragment=jg;Ht.Lazy=Qg;Ht.Memo=Yg;Ht.Portal=qS;Ht.Profiler=Hg;Ht.StrictMode=Vg;Ht.Suspense=Kg;Ht.SuspenseList=Xg;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return jo(e)===qg};Ht.isContextProvider=function(e){return jo(e)===Ug};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===US};Ht.isForwardRef=function(e){return jo(e)===Gg};Ht.isFragment=function(e){return jo(e)===jg};Ht.isLazy=function(e){return jo(e)===Qg};Ht.isMemo=function(e){return jo(e)===Yg};Ht.isPortal=function(e){return jo(e)===qS};Ht.isProfiler=function(e){return jo(e)===Hg};Ht.isStrictMode=function(e){return jo(e)===Vg};Ht.isSuspense=function(e){return jo(e)===Kg};Ht.isSuspenseList=function(e){return jo(e)===Xg};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jg||e===Hg||e===Vg||e===Kg||e===Xg||e===Xz||typeof e=="object"&&e!==null&&(e.$$typeof===Qg||e.$$typeof===Yg||e.$$typeof===Ug||e.$$typeof===qg||e.$$typeof===Gg||e.$$typeof===tN||e.getModuleId!==void 0)};Ht.typeOf=jo});var oN=$o((QJ,nN)=>{"use strict";nN.exports=rN()});var v3=$o(_0=>{"use strict";var CG=$(),wG=Symbol.for("react.element"),EG=Symbol.for("react.fragment"),RG=Object.prototype.hasOwnProperty,OG=CG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_G={key:!0,ref:!0,__self:!0,__source:!0};function h3(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)RG.call(t,n)&&!_G.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:wG,type:e,key:i,ref:a,props:o,_owner:OG.current}}_0.Fragment=EG;_0.jsx=h3;_0.jsxs=h3});var Or=$o((Yke,y3)=>{"use strict";y3.exports=v3()});var G0={"SDPPP Get Document":"Get Document","SDPPP Get Layer By ID":"Get Layer","SDPPP Get Linked Layers":"Get Linked Layers","SDPPP Get Layers In Group":"Get Layers In Group","SDPPP Get Text From Layer":"Get Text From Layer","SDPPP Parse Layer Info":"Parse Layer Info","SDPPP Get Selection":"Get Selection","SDPPP Get Image From Photoshop":"Get Image From Photoshop","SDPPP Send Images To Photoshop":"Send Images To Photoshop","SDPPP Select Layer And Run PS Action":"Select Layer And Run PS Action"};var K0={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var xR=typeof U0<"u"?U0:void 0,X0="en";typeof navigator<"u"&&navigator.language?X0=navigator.language=="zh-CN"?"zhcn":"en":xR&&(X0=xR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function me(e,...t){let r=X0=="zhcn"?K0[e]:e in G0?G0[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(n,o){return typeof t[o]<"u"?t[o]:n})}function Zs(e,t){return e==t||K0[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return Zs(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return me(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return Zs(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return me(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return Zs(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return me(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return Zs(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return me(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return Zs(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return me(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return Zs(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return me(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return me(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[me(e.SPECIAL_LAYER_USE_CANVAS),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[me(e.SPECIAL_LAYER_NEW_LAYER),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return me(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};var Y0={};q0(Y0,{JsonPatchError:()=>Tr,_areEquals:()=>nf,applyOperation:()=>el,applyPatch:()=>sc,applyReducer:()=>V4,deepClone:()=>B4,getValueByPointer:()=>tl,validate:()=>SR,validator:()=>Lp});var z4=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),W4=Object.prototype.hasOwnProperty;function kp(e,t){return W4.call(e,t)}function Mp(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var o in e)kp(e,o)&&n.push(o);return n}function Pr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Fp(e){for(var t=0,r=e.length,n;t<r;){if(n=e.charCodeAt(t),n>=48&&n<=57){t++;continue}return!1}return!0}function Ai(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function tf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ap(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Ap(e[t]))return!0}else if(typeof e=="object"){for(var n=Mp(e),o=n.length,i=0;i<o;i++)if(Ap(e[n[i]]))return!0}}return!1}function bR(e,t){var r=[e];for(var n in t){var o=typeof t[n]=="object"?JSON.stringify(t[n],null,2):t[n];typeof o<"u"&&r.push(n+": "+o)}return r.join(`
`)}var rf=function(e){z4(t,e);function t(r,n,o,i,a){var s=this.constructor,l=e.call(this,bR(r,{name:n,index:o,operation:i,tree:a}))||this;return l.name=n,l.index=o,l.operation=i,l.tree=a,Object.setPrototypeOf(l,s.prototype),l.message=bR(r,{name:n,index:o,operation:i,tree:a}),l}return t}(Error);var Tr=rf,B4=Pr,ac={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=tl(r,this.path);n&&(n=Pr(n));var o=el(r,{op:"remove",path:this.from}).removed;return el(r,{op:"add",path:this.path,value:o}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=tl(r,this.from);return el(r,{op:"add",path:this.path,value:Pr(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:nf(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},j4={add:function(e,t,r){return Fp(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){var n=e.splice(t,1);return{newDocument:r,removed:n[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:ac.move,copy:ac.copy,test:ac.test,_get:ac._get};function tl(e,t){if(t=="")return e;var r={op:"_get",path:t};return el(e,r),r.value}function el(e,t,r,n,o,i){if(r===void 0&&(r=!1),n===void 0&&(n=!0),o===void 0&&(o=!0),i===void 0&&(i=0),r&&(typeof r=="function"?r(t,0,e,t.path):Lp(t,0)),t.path===""){var a={newDocument:e};if(t.op==="add")return a.newDocument=t.value,a;if(t.op==="replace")return a.newDocument=t.value,a.removed=e,a;if(t.op==="move"||t.op==="copy")return a.newDocument=tl(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=nf(e,t.value),a.test===!1)throw new Tr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}else{if(t.op==="remove")return a.removed=e,a.newDocument=null,a;if(t.op==="_get")return t.value=e,a;if(r)throw new Tr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}}else{n||(e=Pr(e));var s=t.path||"",l=s.split("/"),c=e,u=1,f=l.length,p=void 0,g=void 0,h=void 0;for(typeof r=="function"?h=r:h=Lp;;){if(g=l[u],g&&g.indexOf("~")!=-1&&(g=tf(g)),o&&(g=="__proto__"||g=="prototype"&&u>0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&p===void 0&&(c[g]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&h(t,0,e,p)),u++,Array.isArray(c)){if(g==="-")g=c.length;else{if(r&&!Fp(g))throw new Tr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Fp(g)&&(g=~~g)}if(u>=f){if(r&&t.op==="add"&&g>c.length)throw new Tr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=j4[t.op].call(t,c,g,e);if(a.test===!1)throw new Tr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=ac[t.op].call(t,c,g,e);if(a.test===!1)throw new Tr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[g],r&&u<f&&(!c||typeof c!="object"))throw new Tr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}}function sc(e,t,r,n,o){if(n===void 0&&(n=!0),o===void 0&&(o=!0),r&&!Array.isArray(t))throw new Tr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Pr(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=el(e,t[a],r,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function V4(e,t,r){var n=el(e,t);if(n.test===!1)throw new Tr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function Lp(e,t,r,n){if(typeof e!="object"||e===null||Array.isArray(e))throw new Tr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(ac[e.op]){if(typeof e.path!="string")throw new Tr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Tr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Tr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Tr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ap(e.value))throw new Tr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var o=e.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new Tr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new Tr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=SR([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Tr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Tr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function SR(e,t,r){try{if(!Array.isArray(e))throw new Tr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)sc(Pr(t),Pr(e),r||!0);else{r=r||Lp;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(o){if(o instanceof Tr)return o;throw o}}function nf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Array.isArray(e),n=Array.isArray(t),o,i,a;if(r&&n){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!nf(e[o],t[o]))return!1;return!0}if(r!=n)return!1;var s=Object.keys(e);if(i=s.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!t.hasOwnProperty(s[o]))return!1;for(o=i;o--!==0;)if(a=s[o],!nf(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var ex={};q0(ex,{compare:()=>zp,generate:()=>Q0,observe:()=>Y4,unobserve:()=>X4});var J0=new WeakMap,H4=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),U4=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function q4(e){return J0.get(e)}function G4(e,t){return e.observers.get(t)}function K4(e,t){e.observers.delete(t.callback)}function X4(e,t){t.unobserve()}function Y4(e,t){var r=[],n,o=q4(e);if(!o)o=new H4(e),J0.set(e,o);else{var i=G4(o,t);n=i&&i.observer}if(n)return n;if(n={},o.value=Pr(e),t){n.callback=t,n.next=null;var a=function(){Q0(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=r,n.object=e,n.unobserve=function(){Q0(n),clearTimeout(n.next),K4(o,n),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new U4(t,n)),n}function Q0(e,t){t===void 0&&(t=!1);var r=J0.get(e.object);Z0(r.value,e.object,e.patches,"",t),e.patches.length&&sc(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function Z0(e,t,r,n,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=Mp(t),a=Mp(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(kp(t,u)&&!(t[u]===void 0&&f!==void 0&&Array.isArray(t)===!1)){var p=t[u];typeof f=="object"&&f!=null&&typeof p=="object"&&p!=null&&Array.isArray(f)===Array.isArray(p)?Z0(f,p,r,n+"/"+Ai(u),o):f!==p&&(s=!0,o&&r.push({op:"test",path:n+"/"+Ai(u),value:Pr(f)}),r.push({op:"replace",path:n+"/"+Ai(u),value:Pr(p)}))}else Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+Ai(u),value:Pr(f)}),r.push({op:"remove",path:n+"/"+Ai(u)}),l=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),s=!0)}if(!(!l&&i.length==a.length))for(var c=0;c<i.length;c++){var u=i[c];!kp(e,u)&&t[u]!==void 0&&r.push({op:"add",path:n+"/"+Ai(u),value:Pr(t[u])})}}}function zp(e,t,r){r===void 0&&(r=!1);var n=[];return Z0(e,t,n,"",r),n}var hK=Object.assign({},Y0,ex,{JsonPatchError:rf,deepClone:Pr,escapePathComponent:Ai,unescapePathComponent:tf});var Wp=Symbol("STORE_MUTATIONS"),tx=class{_data;_mutationRecords=[];storedMinVersion=0;_version=0;get version(){return this._version}flush(){return{operations:this._mutationRecords.slice(0),fromVersion:this.storedMinVersion,toVersion:this.version}}flushDone(t){this._mutationRecords=this._mutationRecords.slice(t-this.storedMinVersion),this.storedMinVersion=t}patchVersionAcceptable(t){return this._version!=-1&&t<=this._version}patchData(t){let r=Pr(this._data);sc(this._data,t),this._version+=t.length,this.storedMinVersion=this._version,this.dispatch(t,r)}get data(){return Pr(this._data)}static[Wp]=[];constructor(t){this._data=Pr(t)}sync(t,r){let n=this._data,o=zp(n,t);Object.assign(this._data,t),this.storedMinVersion=this._version=r,this.dispatch(o,n)}subscribers=[];subscribe(t,r){this.subscribers.push([t,r])}unsubscribe(t){this.subscribers=this.subscribers.filter(([r,n])=>n!=t)}dispatch(t,r){let n=new Map;t.forEach(o=>{this.subscribers.forEach(([i,a])=>{o.path.startsWith(i)&&!n.has(i)&&n.set(i,JSON.stringify(i==="/"?r:tl(r,i)))})}),n.forEach((o,i)=>{let a=i==="/"?this._data:tl(this._data,i);o!==JSON.stringify(a)&&this.subscribers.filter(([s,l])=>s===i).forEach(([s,l])=>{let c={};try{c=l(a,JSON.parse(o||{}))}catch(u){console.error(u.stack||u.message||u)}c instanceof Promise&&c.catch(u=>{console.error(u.stack||u.message||u)})})})}};function nr(e,t,r){return e.constructor[Wp]||(e.constructor[Wp]=[]),e.constructor[Wp].push(t),{value:function(...n){let o=Pr(this._data);r.value.apply(this,n);let i=zp(o,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,o))}}}var rl=class extends tx{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Qt([nr],rl.prototype,"setSID",1);var rn=class extends rl{constructor(t,r){super(t||{title:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",progress:0,lastError:"",queueSize:0,executingNodeTitle:"",widgetTableStructure:{widgetTablePath:"",widgetTablePersisted:!1,widgetTableID:"",nodes:{},groups:{},nodeIndexes:[],extraOptions:{}},widgetTableValue:{},widgetTableErrors:{},useSliderForNumberWidget:!1,hasPSDNodes:!1,comfyUserToken:"",comfyOrgLoggedIn:!1,comfyOrgAPIKey:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t){this._data.lastError=t}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setWidgetTableStructure(t){this._data.widgetTableStructure=JSON.parse(JSON.stringify(t))}setWidgetTableValue(t){this._data.widgetTableValue=JSON.parse(JSON.stringify(t))}setWidgetTableErrors(t){this._data.widgetTableErrors=JSON.parse(JSON.stringify(t))}setHasPSDNodes(t){this._data.hasPSDNodes=t}setComfyUserToken(t){this._data.comfyUserToken=t}setComfyOrgLoggedIn(t){this._data.comfyOrgLoggedIn=t}setComfyOrgAPIKey(t){this._data.comfyOrgAPIKey=t}setUseSliderForNumberWidget(t){this._data.useSliderForNumberWidget=t}};Qt([nr],rn.prototype,"setWebviewFromSid",1),Qt([nr],rn.prototype,"setTitle",1),Qt([nr],rn.prototype,"setProgress",1),Qt([nr],rn.prototype,"setLastError",1),Qt([nr],rn.prototype,"setQueueSize",1),Qt([nr],rn.prototype,"setExecutingNodeTitle",1),Qt([nr],rn.prototype,"setWidgetTableStructure",1),Qt([nr],rn.prototype,"setWidgetTableValue",1),Qt([nr],rn.prototype,"setWidgetTableErrors",1),Qt([nr],rn.prototype,"setHasPSDNodes",1),Qt([nr],rn.prototype,"setComfyUserToken",1),Qt([nr],rn.prototype,"setComfyOrgLoggedIn",1),Qt([nr],rn.prototype,"setComfyOrgAPIKey",1),Qt([nr],rn.prototype,"setUseSliderForNumberWidget",1);var Do=class extends rl{constructor(t,r){super(t||{uname:"",comfyUserToken:"",isLocal:!1,activeDocumentID:0,documents:{},actions:[],canvasStateID:0,selectionStateID:"",historyStateID:0}),this._version=r||0}setIsLocal(t){this._data.isLocal=t}setUName(t){this._data.uname="PS_"+t}setDocument(t,r){this._data.activeDocumentID=t,this._data.documents=r}setCanvasStateID(t){this._data.canvasStateID=t}setSelectionStateID(t){this._data.selectionStateID=t}setHistoryStateID(t){this._data.historyStateID=t}setComfyUserToken(t){this._data.comfyUserToken=t}setActions(t){this._data.actions=t}};Qt([nr],Do.prototype,"setIsLocal",1),Qt([nr],Do.prototype,"setUName",1),Qt([nr],Do.prototype,"setDocument",1),Qt([nr],Do.prototype,"setCanvasStateID",1),Qt([nr],Do.prototype,"setSelectionStateID",1),Qt([nr],Do.prototype,"setHistoryStateID",1),Qt([nr],Do.prototype,"setComfyUserToken",1),Qt([nr],Do.prototype,"setActions",1);var Bp=class{storeMap=new Map;storeCount(){return this.storeMap.size}getStore(t){return this.storeMap.get(t)}getAllStore(){return Object.fromEntries(this.storeMap.entries())}subscribers=[];subscribersWithoutKey=new WeakMap;subscribe(t,r){this.subscribers.push([t,r]);let n={};this.subscribersWithoutKey.set(r,n),this.storeMap.forEach((o,i)=>{n[i]=r.bind(this,i),o.subscribe(t,n[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([n,o])=>o!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((n,o)=>{n.unsubscribe(r[o])})}addStore(t,r,n){let o=this.createStore(r,n);this.storeMap.set(t,o),this.subscribers.forEach(([i,a])=>{let s=this.subscribersWithoutKey.get(a);s||(s={},this.subscribersWithoutKey.set(a,s)),s[t]=a.bind(this,t),o.subscribe(i,s[t]),i=="/"&&a(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([n,o])=>{let i=this.subscribersWithoutKey.get(o);i&&(r.unsubscribe(i[t]),n=="/"&&o(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),n=t.filter(i=>!r.includes(i)),o=r.filter(i=>!t.includes(i));n.forEach(i=>this.addStore(i,{},0)),o.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(n=>!Object.keys(t).includes(n)).forEach(n=>this.removeStore(n));for(let n in t){let{data:o,version:i}=t[n];this.storeMap.has(n)?this.storeMap.get(n)?.sync(o,i):this.addStore(n,o,i)}}}};var mt=window.comfyAPI.app.app,$K=window.comfyAPI.ui.$el,nn=window.comfyAPI.api.api;var rx=class extends Bp{createStore(t,r){return new Do(t,r)}getStoreByName(t){for(let r of this.storeMap.values())if(r.data.uname===t)return r}getAllPhotoshopDocumentData(){let t={};return this.storeMap.forEach(r=>{t[r.data.uname]={sid:r.data.sid,activeDocumentID:r.data.activeDocumentID,documents:r.data.documents}}),t}},zn=new rx,Xe=new rn;if(window.uxpHost){let e=t=>{if(t.data.action!=="webview-connect"||!t.data.payload.webviewFromSid)return console.log(t);t.data.payload.webviewFromSid=t.data.payload.webviewFromSid,Xe.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function wR(){document.title!==Xe.data.title&&Xe.setTitle(document.title),"user"in mt.extensionManager&&Xe.setComfyOrgLoggedIn(mt.extensionManager.user.isLoggedIn),requestAnimationFrame(wR)}requestAnimationFrame(wR);var CR=!1;async function ER(){if(CR)return Promise.resolve();nn.user&&Xe.setComfyUserToken(nn.user);let e=await nn.getSetting("sdppp.useSliderForNumberWidget");e&&Xe.setUseSliderForNumberWidget(e),CR=!0}function Q4(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function jp(e){return Q4(e)}globalThis.sdpppX=globalThis.sdpppX||{};var ia=globalThis.sdpppX;var ki=class{static makeDocumentDataOptions(t){let r=t.data,n=[`${Xt.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(o=>{let i=r.documents[o];n.push(i.identify)}),n}static findDocumentData(t,r){let n=Xt.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:jp(r).id;return t.data.documents[n]}static makeLayerOptions(t,r){return r.concat(t.layers.map(o=>o.identify))}static getLayerDirtyID(t,r){return t.layers.find(o=>o.identify===r)?.dirtyID||0}static getCanvasDirtyID(t){return t.canvasDirtyID||0}static getSelectionDirtyID(t){return t.selectionDirtyID||0}};function nx(){let e=zn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(nn.user&&nn.user!=r.data.comfyUserToken)return;let n=ki.makeDocumentDataOptions(r).map(o=>ox(o,r.data.uname));t.push(...n)}),t}function RR(e,t){let r=[""],n=lc(e);if(!n)return[];let o=ki.makeLayerOptions(n.documentData,t);return r.push(...o),r}function OR(){return nn.user?Object.values(zn.getAllStore()).filter(e=>nn.user==e.data.comfyUserToken).length>0:zn.storeCount()}function ox(e,t){return`${t}/${e}`}function lc(e){if(!e||!e.split||e.indexOf("/")==-1)return null;let t=zn.getAllPhotoshopDocumentData(),[r,n]=e.split("/");if(n||(n=r,r=Object.keys(t)[0]),!t[r])return null;let o=Xt.is_SPECIAL_DOCUMENT_CURRENT(n)?t[r].activeDocumentID:jp(n).id;if(t[r]?.documents[o]){let i=t[r].documents[o];return{instance_id:t[r].sid,identify:n,documentData:i}}return null}var J4=function(e){let t=mt.graph.links;return Array.isArray(t)?t.find(n=>n&&n.origin_id==e):t.get(e)};function ix(e){let t=mt.graph.nodes,r=t.find(i=>e.id==i.id);if(!r)return null;let n=[];if(o(r,n),n.length>2){let i=n[0].widgets[0].value;if(!n.map(a=>a.widgets[0].value).every(a=>a==i))throw new Error(me("Cannot connect multiple different document widgets with same value"))}return n?.[0]||null;function o(i,a){if(i.type=="SDPPP Get Document")return a.push(i),i;if(i.inputs.length==0)return null;for(let s of i.inputs)if(s.link){let l=J4(s.link);if(!l)continue;let c=t.find(f=>f.id==l.origin_id);if(!c)continue;let u=o(c,a);if(u)return u}return null}}ia.findDocumentNodeRecursive=ix;var Vp=class{flushing=Promise.resolve();newFlushPending=!1;constructor(t){this.doFlush=t,this.pause()}doFlush;runFlush(){this.newFlushPending||(this.newFlushPending=!0,this.flushing=this.flushing.then(async()=>{await new Promise(t=>requestAnimationFrame(t)),this.newFlushPending=!1,await this.doFlush()}))}pause(){this.flushing=this.flushing.then(t=>new Promise(r=>{this.resume=r})).then(()=>{this.resume=()=>{}})}resume=()=>{}};function _R(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_request",(i,a)=>{a({data:e.data,version:e.version})});let o=new Vp(async()=>{let{operations:i,fromVersion:a,toVersion:s}=e.flush();await new Promise(l=>{let c=!1;setTimeout(()=>{c||(console.warn("flush timeout"),l())},5e3),this.socket.emit("store_flush",{operations:i,fromVersion:a},u=>{c=!0,l(),u?.error?console.error("flush error",u.error):e.flushDone(s)})})});e.subscribe("/",()=>{o.runFlush()}),this.socket.on("disconnect",()=>{o.pause()}),this.socket.on("connect",()=>{e.setSID(this.socket.id||""),requestAnimationFrame(()=>{this.socket.emit("sdppp_init",{type:t,data:e.data,version:e.version})})}),this.socket.on("sdppp_inited",i=>{o.resume()})}}}}function PR(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_flush",o=>{if(o.type!==t)return;let i=e.getStore(o.sid);if(i)i.patchVersionAcceptable(o.fromVersion)?i.patchData(o.operations):(console.warn("patch version not acceptable from",o.fromVersion,"current version is",i.version),this.socket.emit("store_request",{type:t},a=>{e.sync(a)}));else return this.socket.emit("store_request",{sid:o.sid},a=>{e.addStore(a.sid,a.data,a.version)})}),this.socket.on("store_remove",o=>{e.removeStore(o.sid)}),this.socket.on("sdppp_inited",o=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}var ci=Object.create(null);ci.open="0";ci.close="1";ci.ping="2";ci.pong="3";ci.message="4";ci.upgrade="5";ci.noop="6";var of=Object.create(null);Object.keys(ci).forEach(e=>{of[ci[e]]=e});var af={type:"error",data:"parser error"};var IR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",$R=typeof ArrayBuffer=="function",DR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,sf=({type:e,data:t},r,n)=>IR&&t instanceof Blob?r?n(t):TR(t,n):$R&&(t instanceof ArrayBuffer||DR(t))?r?n(t):TR(new Blob([t]),n):n(ci[e]+(t||"")),TR=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function NR(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var ax;function AR(e,t){if(IR&&e.data instanceof Blob)return e.data.arrayBuffer().then(NR).then(t);if($R&&(e.data instanceof ArrayBuffer||DR(e.data)))return t(NR(e.data));sf(e,!1,r=>{ax||(ax=new TextEncoder),t(ax.encode(r))})}var kR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<kR.length;e++)lf[kR.charCodeAt(e)]=e;var MR=e=>{let t=e.length*.75,r=e.length,n,o=0,i,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)i=lf[e.charCodeAt(n)],a=lf[e.charCodeAt(n+1)],s=lf[e.charCodeAt(n+2)],l=lf[e.charCodeAt(n+3)],u[o++]=i<<2|a>>4,u[o++]=(a&15)<<4|s>>2,u[o++]=(s&3)<<6|l&63;return c};var Z4=typeof ArrayBuffer=="function",cf=(e,t)=>{if(typeof e!="string")return{type:"message",data:FR(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:e5(e.substring(1),t)}:of[r]?e.length>1?{type:of[r],data:e.substring(1)}:{type:of[r]}:af},e5=(e,t)=>{if(Z4){let r=MR(e);return FR(r,t)}else return{base64:!0,data:e}},FR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};var LR="",zR=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,a)=>{sf(i,!1,s=>{n[a]=s,++o===r&&t(n.join(LR))})})},WR=(e,t)=>{let r=e.split(LR),n=[];for(let o=0;o<r.length;o++){let i=cf(r[o],t);if(n.push(i),i.type==="error")break}return n};function BR(){return new TransformStream({transform(e,t){AR(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var sx;function Hp(e){return e.reduce((t,r)=>t+r.length,0)}function Up(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function jR(e,t){sx||(sx=new TextDecoder);let r=[],n=0,o=-1,i=!1;return new TransformStream({transform(a,s){for(r.push(a);;){if(n===0){if(Hp(r)<1)break;let l=Up(r,1);i=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Hp(r)<2)break;let l=Up(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Hp(r)<8)break;let l=Up(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){s.enqueue(af);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Hp(r)<o)break;let l=Up(r,o);s.enqueue(cf(i?l:sx.decode(l),t)),n=0}if(o===0||o>e){s.enqueue(af);break}}}})}var lx=4;function Jt(e){if(e)return t5(e)}function t5(e){for(var t in Jt.prototype)e[t]=Jt.prototype[t];return e}Jt.prototype.on=Jt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Jt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Jt.prototype.off=Jt.prototype.removeListener=Jt.prototype.removeAllListeners=Jt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Jt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};Jt.prototype.emitReserved=Jt.prototype.emit;Jt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Jt.prototype.hasListeners=function(e){return!!this.listeners(e).length};var aa=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Wn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),VR="arraybuffer";function qp(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var r5=Wn.setTimeout,n5=Wn.clearTimeout;function sa(e,t){t.useNativeTimers?(e.setTimeoutFn=r5.bind(Wn),e.clearTimeoutFn=n5.bind(Wn)):(e.setTimeoutFn=Wn.setTimeout.bind(Wn),e.clearTimeoutFn=Wn.clearTimeout.bind(Wn))}var o5=1.33;function HR(e){return typeof e=="string"?i5(e):Math.ceil((e.byteLength||e.size)*o5)}function i5(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function Gp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function UR(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function qR(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let i=r[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var Kp=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},la=class extends Jt{constructor(t){super(),this.writable=!1,sa(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new Kp(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=cf(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=UR(t);return r.length?"?"+r:""}};var uf=class extends la{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};WR(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,zR(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Gp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var GR=!1;try{GR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var KR=GR;function a5(){}var cx=class extends uf{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},qa=class e extends Jt{constructor(t,r,n){super(),this.createRequest=t,sa(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=qp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=a5,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};qa.requestsCount=0;qa.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",XR);else if(typeof addEventListener=="function"){let e="onpagehide"in Wn?"pagehide":"unload";addEventListener(e,XR,!1)}}function XR(){for(let e in qa.requests)qa.requests.hasOwnProperty(e)&&qa.requests[e].abort()}var s5=function(){let e=YR({xdomain:!1});return e&&e.responseType!==null}(),Ga=class extends cx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=s5&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new qa(YR,this.uri(),t)}};function YR(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||KR))return new XMLHttpRequest}catch{}if(!t)try{return new Wn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var QR=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",fx=class extends la{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=QR?{}:qp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;sf(n,this.supportsBinary,i=>{try{this.doWrite(n,i)}catch{}o&&aa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Gp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},ux=Wn.WebSocket||Wn.MozWebSocket,Ka=class extends fx{createSocket(t,r,n){return QR?new ux(t,r,n):r?new ux(t,r):new ux(t)}doWrite(t,r){this.ws.send(r)}};var cc=class extends la{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=jR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=BR();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{n.read().then(({done:s,value:l})=>{s||(this.onPacket(l),i())}).catch(s=>{})};i();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&aa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var dx={websocket:Ka,webtransport:cc,polling:Ga};var l5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function uc(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=l5.exec(e||""),i={},a=14;for(;a--;)i[c5[a]]=o[a]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=u5(i,i.path),i.queryKey=f5(i,i.query),i}function u5(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function f5(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var px=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xp=[];px&&addEventListener("offline",()=>{Xp.forEach(e=>e())},!1);var nl=class e extends Jt{constructor(t,r){if(super(),this.binaryType=VR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=uc(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=uc(r.host).host);sa(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=qR(this.opts.query)),px&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Xp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=lx,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=HR(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,aa(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),px&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Xp.indexOf(this._offlineEventListener);n!==-1&&Xp.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};nl.protocol=lx;var Yp=class extends nl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;nl.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",f=>{if(!n)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;nl.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let a=f=>{let p=new Error("probe error: "+f);p.transport=r.name,i(),this.emitReserved("upgradeError",p)};function s(){a("transport closed")}function l(){a("socket closed")}function c(f){r&&f.name!==r.name&&i()}let u=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",a),r.once("close",s),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},fc=class extends Yp{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>dx[o]).filter(o=>!!o)),super(t,n)}};var cY=fc.protocol;function JR(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=uc(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}var xx={};q0(xx,{Decoder:()=>vx,Encoder:()=>hx,PacketType:()=>Rt,protocol:()=>nO});var p5=typeof ArrayBuffer=="function",m5=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ZR=Object.prototype.toString,g5=typeof Blob=="function"||typeof Blob<"u"&&ZR.call(Blob)==="[object BlobConstructor]",h5=typeof File=="function"||typeof File<"u"&&ZR.call(File)==="[object FileConstructor]";function df(e){return p5&&(e instanceof ArrayBuffer||m5(e))||g5&&e instanceof Blob||h5&&e instanceof File}function ff(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(ff(e[r]))return!0;return!1}if(df(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ff(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&ff(e[r]))return!0;return!1}function eO(e){let t=[],r=e.data,n=e;return n.data=mx(r,t),n.attachments=t.length,{packet:n,buffers:t}}function mx(e,t){if(!e)return e;if(df(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=mx(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=mx(e[n],t));return r}return e}function tO(e,t){return e.data=gx(e.data,t),delete e.attachments,e}function gx(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=gx(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=gx(e[r],t));return e}var v5=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],nO=5,Rt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Rt||(Rt={}));var hx=class{constructor(t){this.replacer=t}encode(t){return(t.type===Rt.EVENT||t.type===Rt.ACK)&&ff(t)?this.encodeAsBinary({type:t.type===Rt.EVENT?Rt.BINARY_EVENT:Rt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Rt.BINARY_EVENT||t.type===Rt.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){let r=eO(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}};function rO(e){return Object.prototype.toString.call(e)==="[object Object]"}var vx=class e extends Jt{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===Rt.BINARY_EVENT;n||r.type===Rt.BINARY_ACK?(r.type=n?Rt.EVENT:Rt.ACK,this.reconstructor=new yx(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(df(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(Rt[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===Rt.BINARY_EVENT||n.type===Rt.BINARY_ACK){let i=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let a=t.substring(i,r);if(a!=Number(a)||t.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(a)}if(t.charAt(r+1)==="/"){let i=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(i,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let i=r+1;for(;++r;){let a=t.charAt(r);if(a==null||Number(a)!=a){--r;break}if(r===t.length)break}n.id=Number(t.substring(i,r+1))}if(t.charAt(++r)){let i=this.tryParse(t.substr(r));if(e.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Rt.CONNECT:return rO(r);case Rt.DISCONNECT:return r===void 0;case Rt.CONNECT_ERROR:return typeof r=="string"||rO(r);case Rt.EVENT:case Rt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&v5.indexOf(r[0])===-1);case Rt.ACK:case Rt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},yx=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=tO(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function mo(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var y5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),dc=class extends Jt{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[mo(t,"open",this.onopen.bind(this)),mo(t,"packet",this.onpacket.bind(this)),mo(t,"error",this.onerror.bind(this)),mo(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,i;if(y5.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let a={type:Rt.EVENT,data:r};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,f=r.pop();this._registerAckCallback(u,f),a.id=u}let s=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);r.call(this,new Error("operation has timed out"))},o),a=(...s)=>{this.io.clearTimeoutFn(i),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((n,o)=>{let i=(a,s)=>a?o(a):n(s);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>n!==this._queue[0]?void 0:(o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Rt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Rt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Rt.EVENT:case Rt.BINARY_EVENT:this.onevent(t);break;case Rt.ACK:case Rt.BINARY_ACK:this.onack(t);break;case Rt.DISCONNECT:this.ondisconnect();break;case Rt.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Rt.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Rt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function ol(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ol.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};ol.prototype.reset=function(){this.attempts=0};ol.prototype.setMin=function(e){this.ms=e};ol.prototype.setMax=function(e){this.max=e};ol.prototype.setJitter=function(e){this.jitter=e};var pc=class extends Jt{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,sa(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new ol({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||xx;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new fc(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=mo(r,"open",function(){n.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=mo(r,"error",i);if(this._timeout!==!1){let s=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(mo(t,"ping",this.onping.bind(this)),mo(t,"data",this.ondata.bind(this)),mo(t,"error",this.onerror.bind(this)),mo(t,"close",this.onclose.bind(this)),mo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){aa(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new dc(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var pf={};function mf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=JR(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,a=pf[o]&&i in pf[o].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new pc(n,t):(pf[o]||(pf[o]=new pc(n,t)),l=pf[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(mf,{Manager:pc,Socket:dc,io:mf,connect:mf});var oO=`504
`;var Qp=oO.trim();var bx=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(n=>n).join("/"),"sd-ppp/"].filter(n=>n).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=mf(t,{transports:["websocket"],path:r,query:{api_level:Qp},rejectUnauthorized:!1,autoConnect:!1}),this.socket.on("connect",()=>{this.socket.io.engine.binaryType="blob"})}get id(){return this.socket.id}connect(){this.socket.connect()}close(){this.socket.close()}};function iO(...e){return e.reduce((t,r)=>r(t),bx)}function aO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,n)=>{try{r.action=="extractPSD"&&mt.graph.nodes.forEach(o=>{o.type=="SDPPP Get Document"&&this.extractPSD(o,r.params.from_sid,"")}),n({})}catch(o){n({error:o instanceof Error?o.message:o?.toString()||"unknown error"})}})}async importPSDDataURLFromPhotoshop(t,r,n){let o=await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:n,document_identify:r}},l=>{a(l.data)})});var i=new FileReader;return i.readAsDataURL(o),new Promise(a=>{i.onloadend=function(){var s=i.result;a(s)}})}async exportPSDDataURLToPhotoshop(t,r,n,o){let i=await fetch(n).then(a=>a.arrayBuffer());await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:o,document_identify:r,data:i}},l=>{a(l)})})}async sendImage(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"sendImages",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async getSpecialIdentifierValue(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"getSpecialIdentifierValue",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async extractPSD(t,r,n){t.properties.psd&&await this.exportPSDDataURLToPhotoshop(r,n,t.properties.psd,this.socket.id||"??").then(async()=>{await new Promise(o=>setTimeout(o,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}}}var sO={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var Xa=[];ia.widgetable=ia.widgetable||{};ia.widgetable.add=function(e,t){typeof t=="function"?Xa.push([e,{formatter:t,setter:null}]):Xa.push([e,t])};function Zp(e,t,r){let n=Xa.find(([s])=>s=="__DEFAULT__"),o=Xa.find(([s])=>Sx(s,e.type))||n,i=!1;if(o){let s=o[1].setter;s&&(i=!!s(e,t,r))}i||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function gf(e){let t={},r=Xa.find(([n])=>n=="__DEFAULT__");return e.nodes.forEach(n=>{if(!n.widgets||n.widgets.length==0)return;let o=Xa.find(([i])=>Sx(i,n.type))||r;if(o){let i=o[1].formatter(n);i&&(t[n.id]=i.widgets.map(a=>a.value))}}),t}function em(e,t){if(!e)return{widgetTableID:"",widgetTablePath:"",widgetTablePersisted:!1,groups:{},nodes:{},nodeIndexes:[],extraOptions:{useSliderForNumberWidget:Xe.data.useSliderForNumberWidget}};let r=e.groups.map(o=>(o.recomputeInsideNodes(),{id:o.id,name:o.title,color:o.color,nodeIDs:o.nodes.map(i=>i.id)})),n=e.nodes.map(o=>{if(o.mode!=0)return;let i=Jp(o);if(!i||i.startsWith(".")||!o.widgets||o.widgets.length==0)return;let a=Xa.find(([u])=>Sx(u,o.type));if(a)try{let u=a[1].formatter(o);if(u)return u.id=o.id,u.uiWeightSum=u.widgets.reduce((f,p)=>f+(p.uiWeight||12),0),u}catch(u){return{id:o.id,title:i,uiWeightSum:12,widgets:[{outputType:"error",value:me("convert widget {0} failed:",a[0])+(u.message||u||"")+(u?.stack||"")}]}}if(!i.startsWith("#"))return null;let s=o.widgets,l=Xa.find(([u])=>u=="__DEFAULT__");if(l){let u=l[1].formatter(o);if(u)return Object.assign(u,{uiWeightSum:u.widgets.reduce((f,p)=>f+(p.uiWeight||12),0)})}let c={id:o.id,title:i,widgets:s.map(u=>({name:u.label||u.name,outputType:u.type||"string",value:u.value,options:u.options}))};return Object.assign(c,{uiWeightSum:c.widgets.reduce((u,f)=>u+(f.uiWeight||12),0)})}).filter(Boolean).sort((o,i)=>{let a=Jp(o),s=Jp(i);return a=a.startsWith("#")?a.slice(1).trim():a.trim(),s=s.startsWith("#")?s.slice(1).trim():s.trim(),a.localeCompare(s)});return{widgetTablePath:t.activeState.extra.sdppp_workflow_alias||t.path,widgetTablePersisted:t.isPersisted,widgetTableID:t.activeState.id,groups:r,nodes:n.reduce((o,i)=>(o[i.id]=i,o),{}),nodeIndexes:n.map(o=>o.id),extraOptions:{useSliderForNumberWidget:Xe.data.useSliderForNumberWidget}}}function Sx(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function Jp(e,t=""){let r=t||e.title||"";return e.setProperty&&(r.startsWith("#")||r.startsWith("."))?e.setProperty("sdppp_widgetable_title",r):r=e.properties?.sdppp_widgetable_title||r,r}ia.getNodeTitle=Jp;var b5=new Map,il=b5;function cO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=mt.workflowManager||mt.extensionManager.workflow,this.socket.on("F_workflow",async(r,n)=>{if(r.action=="open"||r.action=="save"||r.action=="list"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout"||r.action=="interrupt"||r.action=="clearQueue"||r.action=="reboot"||r.action=="setComfyOrgAPIKey")try{let o=await this[r.action](r.params);n(o||{})}catch(o){n({error:o.stack||o.message||o})}else n({error:"Invalid action"})})}async logout(){this.socket.disconnect(),document.querySelector(".pi-sign-out").parentElement.click()}async run(t){Cx||S5();let r=t.size,n=!1,o="",i={};try{tm=[];let s=await mt.queuePrompt(1,r);tm.forEach(l=>{if(!n)if(l.error)n=!0,i=a(l.error.response.node_errors),Object.assign(i,{"-1":l.error.response.error.message});else{let c=l.result.prompt_id;il.set(c,t.from_sid)}})}catch(s){n=!0,i={"-1":s.message||s.stack||s.toString()}}n&&(o?Xe.setLastError(o):Xe.setWidgetTableErrors(i));function a(s){let l={};return Object.keys(s).forEach(c=>{let u=c.split(":")[0],f=mt.graph.nodes.find(p=>p.id==u);l[u]=`[${f?.title||u}]`+s[c].errors.map(JSON.stringify).join(`
`)}),l}}async list(t){let n=this.workflowManager.workflows.map(o=>o.path.replace("workflows/",""));try{let o=new Headers,i=localStorage.getItem("Comfy.userId");i&&o.set("comfy-user",i);let a=await fetch("./api/userdata/workflows%2F.index.json",{headers:o}),s=[];a.ok&&(s=(await a.json()).favorites.map(c=>c.replace("workflows/",""))),n.sort((l,c)=>{let u=s.includes(l),f=s.includes(c);return u&&!f?-1:!u&&f?1:l.localeCompare(c)})}catch(o){console.warn("Error fetching favorites, returning unsorted workflows:",o)}return{workflows:n,error:""}}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:n,value:o})=>{let i=mt.graph.nodes.find(a=>a.id==r);!i||o==i.widgets[n].value||Zp(i,n,o)})}async open(t){let{workflow_path:r}=t;try{Xe.setLastError(""),Xe.setWidgetTableErrors({}),r.startsWith("sdppp://")?await this.openSDPPPWorkflow(t):await this.openComfyWorkflow(t)}catch(n){throw n}}async openSDPPPWorkflow(t){let r=t.workflow_path.replace("sdppp://",""),n=await fetch("/sd-ppp-static/sdppp-workflows/"+r).then(o=>o.json());n.extra.sdppp_workflow_alias=t.workflow_path,await mt.loadGraphData(n)}async openComfyWorkflow(t){let{workflow_path:r,from_sid:n,reset:o}=t,i=this.workflowManager.workflows.find(a=>a.fullFilename===r||a.path===r||a.path==="workflows/"+r);(i.isOpen||this.workflowManager.isOpen?.(i))&&!o||(this.workflowManager.openWorkflows.length===1?await mt.loadGraphData(sO):await lO(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(a=>requestAnimationFrame(a)),await lO(this.workflowManager,i),await new Promise(a=>setTimeout(a,500)),Xe.data.widgetTableStructure&&await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:n,params:{widgetTableID:Xe.data.widgetTableStructure.widgetTableID,widgetTablePath:Xe.data.widgetTableStructure.widgetTablePath,widgetTablePersisted:Xe.data.widgetTableStructure.widgetTablePersisted}},a=>{this.setWidgetValue(a)}))}async save(t){let{workflow_path:r,from_sid:n}=t,o=this.workflowManager.workflows.find(i=>i.fullFilename===r||i.path===r||i.path==="workflows/"+r);if(!o)throw new Error("Workflow not found");this.workflowManager.activeWorkflow?.id!=o.id&&this.open({workflow_path:r,from_sid:n,reset:!1}),o.changeTracker.checkState(),await this.workflowManager.saveWorkflow(o)}setNodeTitle(t){let{node_id:r,title:n}=t,o=mt.graph.nodes.find(i=>i.id==r);if(!o)throw new Error("Node not found");o.title=n,o.setProperty("sdppp_widgetable_title",n)}async interrupt(t){await mt.api.interrupt()}async clearQueue(t){await mt.api.clearItems("queue")}async reboot(t){let r=await fetch("./api/manager/reboot");return r.status==404?{error:me("ComfyManager not found, cannot reboot"),success:!1}:r.status==200?{success:!0}:{error:me("Failed to reboot ComfyUI")+r.statusText,success:!1}}async setComfyOrgAPIKey(t){let{api_key:r}=t;localStorage.setItem("comfy_api_key",r),location.reload()}}}async function lO(e,t){mt.workflowManager==e?await t.load():(await e.openWorkflow(t),await mt.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var Cx=!1,tm=[];function S5(){if(Cx)return;let e=nn.queuePrompt;nn.queuePrompt=async(...t)=>{try{let r=await e.call(nn,...t);return tm.push({error:null,result:r}),r}catch(r){throw tm.push({error:r,result:null}),r}},Cx=!0}var Bn=class e extends iO(_R(Xe,"comfy"),PR(zn,"photoshop"),aO,cO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};function rm(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"").split("://").pop()}var nm=class{widget;node;originLabel="";indexInNode=0;constructor(t,r){this.widget=r,this.node=t,this.indexInNode=t.widgets.indexOf(r);let n=this;r.callback=function(...o){n.widget!=this&&(n.widget=n.node.widgets[n.indexInNode]=this),n._callbacks.forEach(i=>i(...o))},this.originLabel=r.label}_callbacks=[];onChange(t){this._callbacks.push(t)}removeOnChange(t){this._callbacks.splice(this._callbacks.indexOf(t),1)}},om=class extends nm{lockMode(t,r){if(t){if(this.widget.type=="button")return;this.widget.type="button",this.widget.value="",this.widget.label=r}else{if(this.widget.type=="combo")return;this.widget.type="combo",this.widget.value="",this.widget.label=this.originLabel}}},Ya=class e extends om{getPSStore(){if(!this.widget.value||this.widget.value.indexOf("/")==-1)return null;let[t]=this.widget.value.split("/");return zn.getStoreByName(t)?.data||null}static create(t,r){let n=nx(),o=t.size.slice(0),i=t.addWidget("combo",r,n[0]||"",()=>{},{forceInput:!0,values:nx});return i.serializeValue=async()=>{let a=lc(i.value);if(!a)return JSON.stringify({instance_id:me("document {0} not found",i.value),identify:"",canvasDirtyID:0,selectionDirtyID:0});if(i.type=="button")return JSON.stringify({instance_id:"",identify:"",canvasDirtyID:0,selectionDirtyID:0});let s=a.identify;return Xt.is_SPECIAL_DOCUMENT_CURRENT(s)&&(s=(await Bn.instance.getSpecialIdentifierValue(a.instance_id,{identifier:s})).value),JSON.stringify({instance_id:a.instance_id,identify:s,canvasDirtyID:a.documentData.canvasDirtyID,selectionDirtyID:a.documentData.selectionDirtyID})},t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i)}static link(t,r){if(r.type=="combo")return new e(t,r);let n=e.create(t,r.name),o=t.widgets.indexOf(r);return t.widgets[o]=t.widgets.pop(),n}constructor(t,r){super(t,r),this.onChange(n=>{if(!isNaN(+n))r.value=Object.keys(r.options.values)[+n];else if(typeof n=="string"){let o=n.split("/");Xt.is_SPECIAL_DOCUMENT_CURRENT(o[1])&&(r.value=o[0]+"/"+Xt.getSpecialDocumentCurrent())}})}update(){fO(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Xt.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=zn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=ox(r.data.documents[r.data.activeDocumentID].identify,t)}}},mc=class e extends om{documentWidgetByLinked=null;extraOptions;constructor(t,r,n){super(t,r),this.extraOptions=n.extraOptions,this.update=this.update.bind(this),this.onChange(o=>{this.node.setProperty("layerWidgetDetail"+this.indexInNode,this.currentOptionsDetail[Object.values(this.currentOptions).indexOf(this.widget.value)]),typeof o=="string"&&(o=Xt.fixI18n(o))}),r.serializeValue=async()=>{if(r.type=="button")return JSON.stringify({identify:r.value,dirtyID:0});let o=this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=lc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await Bn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=ki.getCanvasDirtyID(i.documentData):s=ki.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})}}static link(t,r,n){if(r.type=="combo")return new e(t,r,n);let o=e.create(t,r.name,n),i=t.widgets.indexOf(r);return t.widgets[i]=t.widgets.pop(),o}linkDocumentWidget(t){this.documentWidgetByLinked&&t?.removeOnChange(this.update),this.documentWidgetByLinked=t,this.documentWidgetByLinked&&this.documentWidgetByLinked.onChange(this.update)}update(){let t=this.documentWidgetByLinked;this.updateOptions(t)}currentOptions=[];currentOptionsDetail=[];updateOptions(t){if(this.currentOptions=this.extraOptions.slice(0),this.currentOptionsDetail=new Array(this.currentOptions.length).fill({id:0,name:"",identify:"",level:0,fullPath:""}),t&&t.widget.value){let r=lc(t.widget.value);if(!r)return;r.documentData.layers.map(n=>{this.currentOptions.push(n.identify),this.currentOptionsDetail.push(n)})}if(this.widget.options.values=this.currentOptions,Object.values(this.currentOptions).indexOf(this.widget.value)==-1){let r=this.node.properties["layerWidgetDetail"+this.indexInNode];if(r){let n=this.currentOptionsDetail.findIndex(o=>o.fullPath==r.fullPath);if(n!=-1){this.widget.value=this.currentOptions[n];return}}}}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{extraOptions:n.extraOptions})}},C5={extraOptions:[],documentWidgetInNode:null},hf=class e extends mc{documentWidgetInNode;constructor(t,r,n=C5){super(t,r,n),this.documentWidgetInNode=n.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),r.serializeValue=async()=>{let o=this.documentWidgetInNode||this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=lc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await Bn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=ki.getCanvasDirtyID(i.documentData):s=ki.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})},this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=RR(t.widget.value,this.extraOptions),fO(this.widget,this.widget.options.values))}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{documentWidgetInNode:n.documentWidgetInNode,extraOptions:n.extraOptions})}},uO=0,gc=class extends nm{constructor(t,r){if(!r){let n=t.size.slice(0);r=t.addWidget("button","sdppp","",()=>{}),t.size=[n[0],Math.max(n[1],t.size[1])],r.serializeValue=async()=>{let o={lastOpenedWorkflow:t.properties.sdppp_send_prefix||rm(Xe.data.widgetTableStructure.widgetTablePath)},i=ix(t);if(i?.widgets[0]){let a=await i.widgets[0].serializeValue();try{o.document=JSON.parse(a),o.isLocal=zn.getStore(o.document.instance_id)?.data.isLocal||!1}catch{return""}}return JSON.stringify(o)}}super(t,r),this.onChange(()=>{zn.storeCount()==0&&Date.now()-uO>3e3&&(uO=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`<h2
style="color: var(--fg-color);">${me("How to use .ccx file")}</h2><h4
style="color: var(--fg-color);">${me("1. If you have installed Adobe Creative Cloud")}</h4><p
style="color: var(--fg-color);">${me("Just double click the .ccx file, it will install the plugin automatically")}</p><h4
style="color: var(--fg-color);">${me("2. If you don't have Adobe Creative Cloud")}</h4><p
style="color: var(--fg-color);">${me("Rename .ccx to .zip and extract it into ")}<i>[${me("Photoshop directory")}]/Plug-ins</i> ${me("or")} <i>[${me("Photoshop directory")}]/Plug-ins/Generator</i></p><img
width=400 src="/sd-ppp-static/ccx-help.png"/>
`)},300))})}update(){this.widget.label=zn.storeCount()>0&&Bn.instance.id?me("current ComfyUI pageid: {0}",Bn.instance.id.slice(0,4)):me("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function fO(e,t,r=!1){t instanceof Function&&(t=t()),e.value||(e.value=t[0]),t.indexOf(e.value)==-1&&r&&(e.value=t[0])}var ca=class e{static nodeMap=new WeakMap;static registerNodeType(t,r,n){n.prehandleNodeType&&n.prehandleNodeType(t.nodeData||r);let o=t.prototype.onAdded,i=t.prototype.onRemoved;t.prototype.onAdded=async function(...s){o&&await o.call(this,...s);let l=new n(this);e.nodeMap.set(this,l),await l.update()},t.prototype.onRemoved=async function(...s){i&&await i.call(this,...s);let l=e.nodeMap.get(this);e.nodeMap.delete(this),l?.onDestroy()},t.prototype.onDrawForeground=async function(s){let l=e.nodeMap.get(this);l?.onDrawForeground(s),await l?.update()},t.prototype.onConfigure=async function(...s){let l=e.nodeMap.get(this);l?.onConfigure(s[0]),await l?.update()};let a=t.prototype.onConnectionsChange;t.prototype.onConnectionsChange=async function(s,l,c,u){let f=e.nodeMap.get(this);return s==1&&(f?.inputConnectionChange(l,c&&u),await f?.update()),s==2&&f?.outputConnectionChange(l,c),a?.apply(this,arguments)}}node;constructor(t){this.node=t}inputConnectionChange(t,r){}outputConnectionChange(t,r){}onDrawForeground(t){}onDestroy(){}onConfigure(t){this.node.setProperty("sdppp-version",Qp)}};var Mi=class extends ca{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new gc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||OR()||(t.save(),t.fillStyle="rgba(255, 0, 0, 0.2)",t.fillRect(0,0,this.node.size[0],this.node.size[1]),t.fillStyle="white",t.textAlign="center",t.fillText(me("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var im=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},vf=class extends im{get documentWidget(){return dO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},yf=class extends im{get documentWidget(){return dO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function dO(e,t){if(!e.graph.links[t.link])return null;let r=e.graph.links[t.link].origin_id,n=e.graph.getNodeById(r);for(;n.type=="Reroute";)r=e.graph.links[n.inputs[0].link].origin_id,n=e.graph.getNodeById(r);return ca.nodeMap.get(n)}var Ao=class extends Mi{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof vf||r instanceof yf));return t?t.documentWidget:this.sdpppWidgets.find(r=>r instanceof Ya)}inputs=[];sdpppWidgets=[];constructor(t){super(t);let r=null;for(let n=0;n<this.node.widgets?.length;n++){let o=this.node.widgets[n].name;if(!o||o=="sdppp")continue;let i=this.node.constructor.nodeData.input.required[o]||this.node.constructor.nodeData.input.optional[o];if(i){if(i[1].sdppp_type=="DOCUMENT_nameid"){let a=Ya.link(t,this.node.widgets[n]);r=r||a,this.sdpppWidgets.push(a)}if(i[1].sdppp_type=="LAYER_select"){let a=mc.link(t,this.node.widgets[n],{extraOptions:Xt.getSpecialLayerForGet()});this.sdpppWidgets.push(a)}}}for(let n=0;n<this.node.inputs?.length;n++){let o=this.node.inputs[n].name,i=this.node.constructor.nodeData.input.required[o]||this.node.constructor.nodeData.input.optional[o];i[1].sdppp_type=="DOCUMENT"&&this.inputs.push(new vf(t,n)),i[1].sdppp_type=="LAYER"&&this.inputs.push(new yf(t,n))}}async update(){this.node.widgets?.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{t.label=t.name}}),this.sdpppWidgets?.forEach(t=>{t.update()}),this.inputs?.forEach(t=>{t.update()}),super.update()}inputConnectionChange(t,r){super.inputConnectionChange(t,r),this.inputs.forEach(n=>{if(n.index==t){n.connected=r;let o=this.documentWidget;this.downloadWidget&&this.downloadWidget.linkDocumentWidget(o),this.sdpppWidgets.forEach(i=>{(i instanceof mc||i instanceof gc)&&i.linkDocumentWidget(o)})}})}};var am=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},hc=class extends Ao{async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},sm=class extends Ao{async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},lm=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.widgets[0].label=me(this.node.widgets[0].name)}},cm=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.widgets[0].label=me(this.node.widgets[0].name)}},um=class extends Mi{async update(){super.update(),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.inputs[1].label=me(this.node.inputs[1].name),this.node.outputs[0]&&(this.node.outputs[0].label=me(this.node.outputs[0].name))}},fm=class extends Mi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}async update(){super.update(),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.outputs[0]&&(this.node.outputs[0].label=me(this.node.outputs[0].name))}},dm=class extends Ao{get documentWidget(){return this.sdpppWidgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&Bn.instance.exportPSDDataURLToPhotoshop(t,r,this.node.properties.psd,Xe.data.ssid).then(async()=>{await new Promise(n=>setTimeout(n,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}constructor(t){super(t),this.psdWidget=t.addWidget("button","","",()=>{if(!this.documentWidget.widget.value)return;let r=zn.getAllPhotoshopDocumentData(),[n,o]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[n].sid,o):Bn.instance.importPSDDataURLFromPhotoshop(r[n].sid,o,Xe.data.ssid).then(i=>{this.node.setProperty("psd",i)})},{})}async update(){super.update(),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.properties.psd?(Xe.setHasPSDNodes(!0),this.psdWidget.label=me("extract saved .psd to Photoshop")):(Xe.setHasPSDNodes(!1),this.psdWidget.label=me("save .psd to this workflow"))}},pm=class extends Ao{async update(){super.update(),this.node.inputs.forEach(r=>r.label=me(r.name)),this.node.outputs.forEach(r=>r.label=me(r.name));let t=[];if(this.documentWidget){let r=this.documentWidget.getPSStore();r&&(t=r.actions)}this.node.widgets[0].options.values=t,this.node.constructor.nodeData.input.required.action[0]=t}};var mm=class extends Mi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Ya.create(t,"document"),n=hf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForGet()});super(t),this.documentWidget=r,this.layerWidget=n,this.node.widgets[0].name=="quality"?(this.node.widgets[1]=r.widget,this.node.widgets[2]=n.widget):(this.node.widgets[0]=r.widget,this.node.widgets[1]=n.widget)}onConfigure(t){if(t.properties["sdppp-version"])if(+t.properties["sdppp-version"]<=410){if(this.node.widgets[0].value===!0||this.node.widgets[0].value==="true"){let r=comfyAPI.app.app.addNodeOnGraph(hm["SDPPP Get Selection"],{pos:this.node.pos});new hc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(hm.JoinImageWithAlpha,{pos:[this.node.pos[0]+r.size[0]+10,this.node.pos[1]-20]}):r.size=this.node.size,comfyAPI.app.app.graph.remove(this.node)}this.node.widgets[0].value=t.widgets_values[1],this.node.widgets[1].value=t.widgets_values[2]}else+t.properties["sdppp-version"]<504&&this.node.widgets[0].name=="quality"&&(this.node.widgets[0].value=100,this.node.widgets[1].value=t.widgets_values[0],this.node.widgets[2].value=t.widgets_values[1]);super.onConfigure(t)}async update(){this.documentWidget.lockMode(this.layerLinked,me("document linked")),this.layerWidget.lockMode(this.layerLinked,me("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}}),this.node.inputs.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}}),this.node.outputs.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}})}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},gm=class extends Mi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Ya.create(t,"document"),n=hf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForSend()});super(t),this.documentWidget=r,this.layerWidget=n}async update(){this.documentWidget?.lockMode(this.layerLinked,me("document linked")),this.layerWidget?.lockMode(this.layerLinked,me("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=me(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=me(this.node.widgets[1].name)),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.inputs[1].label=me(this.node.inputs[1].name),this.node.inputs[2].label=me(this.node.inputs[2].name),this.node.outputs[0].label=me(this.node.outputs[0].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==1&&(this.layerLinked=r)}onConfigure(t){"sdppp_send_prefix"in t.properties||this.node.setProperty("sdppp_send_prefix",""),super.onConfigure(t)}};var wx={"Get Image From Photoshop Layer":mm,"Send Images To Photoshop":gm,"SDPPP Send Text To Layer":um,"SDPPP Get Text From Layer":fm,"SDPPP Parse Layer Info":sm,"SDPPP Get Linked Layers":cm,"SDPPP Get Layers In Group":lm,"SDPPP Get Layer By ID":am,"SDPPP Get Document":dm,"SDPPP Get Selection":hc,"SDPPP Select Layer And Run PS Action":pm},hm={};function pO(e,t){let r=e.comfyClass||t.name;if(hm[r]=t,r in wx)e.title=me(t.display_name),t.display_name=me(t.display_name),ca.registerNodeType(e,t,wx[r]);else if(r.startsWith("workflow")&&comfyAPI.groupNode.GroupNodeHandler.getGroupData(e)){let n=comfyAPI.groupNode.GroupNodeHandler.getGroupData(e),o=!1;n.nodeData.nodes.forEach((i,a)=>{i.type in wx&&(o=!0)}),o&&ca.registerNodeType(e,t,Ao)}else return}var dR=E(qT(),1),pR=E($(),1);var GT=`#sdppp-popup-root {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
padding: 16px;
background: var(--bg-color);
align-items: stretch;
justify-content: stretch;
}
.sdppp-menu-container {
box-sizing: content-box;
overflow-y: hidden;
display: flex;
flex-direction: column;
align-items: stretch;
min-width: 0;
flex: 1;
}
.sdppp-menu-header {
display: flex;
flex-direction: row;
gap: 10px;
color: var(--fg-color);
padding-bottom: 5px;
border-bottom: 2px solid rgba(127, 127, 127, .4);
align-items: center;
justify-content: space-between;
}
.sdppp-menu-header button {
text-align: center;
background: var(--comfy-input-bg);
border: none;
box-shadow: none;
}
.sdppp-menu-header button:hover {
background-color: var(--border-color);
}
.sdppp-menu-header button.active {
background-color: var(--primary-bg);
}
.sdppp-menu-header button.active:hover {
background-color: var(--primary-hover-bg);
}
.sdppp-menu-content {
gap: 10px;
flex: 1;
min-height: 0;
width: 100%;
min-width: 0;
overflow-x: hidden;
}
.sdppp-close-button {
height: 30px;
width: 30px;
top: 10px;
right: 10px;
position: absolute;
overflow: hidden;
}
.settings-container {
padding: 10px;
color: white;
}
.settings-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
align-items: center;
margin-bottom: 15px;
}
.settings-section label {
text-align: left;
padding-right: 10px;
}
.settings-section input[type="number"] {
width: 100%;
padding: 5px;
border-radius: 4px;
border: 1px solid #666;
background: var(--comfy-input-bg);
color: var(--fg-color);
}
.settings-section .download-button {
width: auto;
padding: 5px 10px;
border-radius: 4px;
border: 1px solid #666;
background: var(--comfy-input-bg);
color: var(--fg-color);
cursor: pointer;
margin-right: 5px;
}
.settings-section .download-button:last-child {
margin-right: 0;
}
.settings-section div:has(.download-button) {
display: flex;
justify-content: flex-start;
gap: 5px;
}
.settings-section p {
grid-column: 1 / -1;
margin: 0;
}
.settings-container h2 {
margin-top: 0;
margin-bottom: 20px;
}
.settings-control {
display: flex;
gap: 5px;
align-items: center;
}
.settings-control input[type="number"] {
width: 100%;
min-width: 80px;
}
.settings-label {
display: flex;
align-items: center;
}
.sdppp-menu-workflow-edit-wrap {
font-size: 12px;
width: 100%;
height: 100%;
}
.sdppp-menu-workflow-edit-wrap p {
margin: 0;
padding: 0;
color: var(--descrip-text)
}
.workflow-edit-content {
display: flex;
flex-direction: column;
gap: 10px;
}
.workflow-edit-field {
color: var(--fg-color);
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 5px;
width: 100%;
}
.workflow-edit-field > * {
max-width: 100%;
box-sizing: border-box;
}
@media (min-width: 639px) {
.workflow-edit-content {
flex-wrap: wrap;
height: 100%;
overflow-y: hidden;
overflow-x: scroll;
}
.workflow-edit-field {
max-width: 320px;
}
}
.workflow-edit-field-title {
color: var(--fg-color);
font-size: 14px;
border-left: 4px solid rgba(127, 127, 127, .4);
padding: 2px 2px 2px 5px;
margin: 3px 0;
display: inline-flex;
}
.sdppp-side-icon {
width: 64px;
height: 64px;
mask-image: url("./sd-ppp-static/sdppp-icon.svg");
mask-size: 36px;
mask-position: center;
mask-repeat: no-repeat;
background-color: currentColor;
}
.sdppp-side-container {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
position: relative;
padding-top: 32px;
}
.sdppp-side-container .sdppp-side-header {
position: absolute;
top: 0;
width: 100%;
display: flex;
flex-direction: row;
gap: 10px;
align-items: center;
justify-content: flex-end;
}
.sdppp-side-container .sdppp-side-header button {
width: 32px;
height: 32px;
border: 1px solid var(--border-color);
cursor: pointer;
}
.sdppp-photoshop-icon {
background-image: url("https://upload.wikimedia.org/wikipedia/commons/a/af/Adobe_Photoshop_CC_icon.svg");
}
.sdppp-premiere-icon {
background-image: url("https://upload.wikimedia.org/wikipedia/commons/4/40/Adobe_Premiere_Pro_CC_icon.svg");
}
/* GroupFilter component styles */
.sdppp-side-container .group-filter {
display: flex;
flex-wrap: wrap;
padding: 4px 0;
}
.sdppp-side-container .group-filter-item {
padding: 2px 8px;
border-radius: 4px;
cursor: pointer;
white-space: nowrap;
flex-shrink: 0;
}
.sdppp-side-container .group-filter-item:not(:first-child) {
margin-left: 8px;
}
/* end of GroupFilter component styles */`;var ef=E($(),1);var x3=E($(),1);function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fe.apply(null,arguments)}var nh=E($());function ue(e){"@babel/helpers - typeof";return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(e)}var Bz=Symbol.for("react.element"),jz=Symbol.for("react.transitional.element"),Vz=Symbol.for("react.fragment");function fd(e){return e&&ue(e)==="object"&&(e.$$typeof===Bz||e.$$typeof===jz)&&e.type===Vz}var KT=E($());function yi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return KT.default.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(yi(n)):fd(n)&&n.props?r=r.concat(yi(n.props.children,t)):r.push(n))}),r}var VS={},Hz=[],Uz=function(t){Hz.push(t)};function dd(e,t){if(0)var r}function qz(e,t){if(0)var r}function XT(){VS={}}function YT(e,t,r){!t&&!VS[r]&&(e(!1,r),VS[r]=!0)}function Wg(e,t){YT(dd,e,t)}function QT(e,t){YT(qz,e,t)}Wg.preMessage=Uz;Wg.resetWarned=XT;Wg.noteOnce=QT;var Vt=Wg;function JT(e,t){if(ue(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ue(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bg(e){var t=JT(e,"string");return ue(t)=="symbol"?t:t+""}function _(e,t,r){return(t=Bg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZT(Object(r),!0).forEach(function(n){_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var eN=E($()),HS=E(Vi());function Sl(e){return e instanceof HTMLElement||e instanceof SVGElement}function Gz(e){return e&&ue(e)==="object"&&Sl(e.nativeElement)?e.nativeElement:Sl(e)?e:null}function Cl(e){var t=Gz(e);if(t)return t;if(e instanceof eN.default.Component){var r;return(r=HS.default.findDOMNode)===null||r===void 0?void 0:r.call(HS.default,e)}return null}var Jg=E($()),pd=E(oN());var iN=E($());function Hi(e,t,r){var n=iN.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Yz=Number(Jg.version.split(".")[0]),md=function(t,r){typeof t=="function"?t(r):ue(t)==="object"&&t&&"current"in t&&(t.current=r)},Lr=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(i){r.forEach(function(a){md(a,i)})}},xi=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Hi(function(){return Lr.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},bi=function(t){var r,n;if(!t)return!1;if(aN(t)&&Yz>=19)return!0;var o=(0,pd.isMemo)(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==pd.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==pd.ForwardRef)};function aN(e){return(0,Jg.isValidElement)(e)&&!fd(e)}var ys=function(t){if(t&&aN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var zr=E($());var Si=E($()),Zg=Si.createContext(null);function sN(e){var t=e.children,r=e.onBatchResize,n=Si.useRef(0),o=Si.useRef([]),i=Si.useContext(Zg),a=Si.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return Si.createElement(Zg.Provider,{value:a},t)}var cN=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t}()}(),GS=typeof window<"u"&&typeof document<"u"&&window.document===document,eh=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Qz=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(eh):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Jz=2;function Zz(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){Qz(i)}function s(){var l=Date.now();if(r){if(l-o<Jz)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=l}return s}var eW=20,tW=["top","right","bottom","left","width","height","size","weight"],rW=typeof MutationObserver<"u",nW=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Zz(this.refresh.bind(this),eW)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!GS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rW?(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(){!GS||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=tW.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),uN=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Gc=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||eh},fN=rh(0,0,0,0);function th(e){return parseFloat(e)||0}function lN(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+th(i)},0)}function oW(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=th(a)}return r}function iW(e){var t=e.getBBox();return rh(0,0,t.width,t.height)}function aW(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return fN;var n=Gc(e).getComputedStyle(e),o=oW(n),i=o.left+o.right,a=o.top+o.bottom,s=th(n.width),l=th(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=lN(n,"left","right")+i),Math.round(l+a)!==r&&(l-=lN(n,"top","bottom")+a)),!lW(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return rh(o.left,o.top,s,l)}var sW=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Gc(e).SVGGraphicsElement}:function(e){return e instanceof Gc(e).SVGElement&&typeof e.getBBox=="function"}}();function lW(e){return e===Gc(e).document.documentElement}function cW(e){return GS?sW(e)?iW(e):aW(e):fN}function uW(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return uN(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function rh(e,t,r,n){return{x:e,y:t,width:r,height:n}}var fW=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=rh(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=cW(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),dW=function(){function e(t,r){var n=uW(r);uN(this,{target:t,contentRect:n})}return e}(),pW=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new cN,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Gc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new fW(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Gc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new dW(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),dN=typeof WeakMap<"u"?new WeakMap:new cN,pN=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=nW.getInstance(),n=new pW(t,r,this);dN.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){pN.prototype[e]=function(){var t;return(t=dN.get(this))[e].apply(t,arguments)}});var mW=function(){return typeof eh.ResizeObserver<"u"?eh.ResizeObserver:pN}(),mN=mW;var xs=new Map;function gW(e){e.forEach(function(t){var r,n=t.target;(r=xs.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var gN=new mN(gW);function hN(e,t){xs.has(e)||(xs.set(e,new Set),gN.observe(e)),xs.get(e).add(t)}function vN(e,t){xs.has(e)&&(xs.get(e).delete(t),xs.get(e).size||(gN.unobserve(e),xs.delete(e)))}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bg(n.key),n)}}function at(e,t,r){return t&&yN(e.prototype,t),r&&yN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bs(e,t){return bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},bs(e,t)}function Ir(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bs(e,t)}function wl(e){return wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wl(e)}function gd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gd=function(){return!!e})()}function Ze(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xN(e,t){if(t&&(ue(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ze(e)}function $r(e){var t=gd();return function(){var r,n=wl(e);if(t){var o=wl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xN(this,r)}}var bN=E($()),SN=function(e){Ir(r,e);var t=$r(r);function r(){return it(this,r),t.apply(this,arguments)}return at(r,[{key:"render",value:function(){return this.props.children}}]),r}(bN.Component);function hW(e,t){var r=e.children,n=e.disabled,o=zr.useRef(null),i=zr.useRef(null),a=zr.useContext(Zg),s=typeof r=="function",l=s?r(o):r,c=zr.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&zr.isValidElement(l)&&bi(l),f=u?ys(l):null,p=xi(f,o),g=function(){var m;return Cl(o.current)||(o.current&&ue(o.current)==="object"?Cl((m=o.current)===null||m===void 0?void 0:m.nativeElement):null)||Cl(i.current)};zr.useImperativeHandle(t,function(){return g()});var h=zr.useRef(e);h.current=e;var v=zr.useCallback(function(y){var m=h.current,d=m.onResize,x=m.data,b=y.getBoundingClientRect(),S=b.width,w=b.height,C=y.offsetWidth,R=y.offsetHeight,P=Math.floor(S),O=Math.floor(w);if(c.current.width!==P||c.current.height!==O||c.current.offsetWidth!==C||c.current.offsetHeight!==R){var A={width:P,height:O,offsetWidth:C,offsetHeight:R};c.current=A;var F=C===Math.round(S)?S:C,M=R===Math.round(w)?w:R,H=T(T({},A),{},{offsetWidth:F,offsetHeight:M});a?.(H,y,x),d&&Promise.resolve().then(function(){d(H,y)})}},[]);return zr.useEffect(function(){var y=g();return y&&!n&&hN(y,v),function(){return vN(y,v)}},[o.current,n]),zr.createElement(SN,{ref:i},u?zr.cloneElement(l,{ref:p}):l)}var vW=zr.forwardRef(hW),CN=vW;var yW="rc-observer-key";function xW(e,t){var r=e.children,n=typeof r=="function"?[r]:yi(r);return n.map(function(o,i){var a=o?.key||"".concat(yW,"-").concat(i);return nh.createElement(CN,fe({},e,{key:a,ref:i===0?t:void 0}),o)})}var wN=nh.forwardRef(xW);wN.Collection=sN;var ro=wN;function hd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function EN(e){if(Array.isArray(e))return hd(e)}function oh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kc(e,t){if(e){if(typeof e=="string")return hd(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hd(e,t):void 0}}function RN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e){return EN(e)||oh(e)||Kc(e)||RN()}var _N=function(t){return+setTimeout(t,16)},PN=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(_N=function(t){return window.requestAnimationFrame(t)},PN=function(t){return window.cancelAnimationFrame(t)});var ON=0,KS=new Map;function TN(e){KS.delete(e)}var NN=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ON+=1;var n=ON;function o(i){if(i===0)TN(n),t();else{var a=_N(function(){o(i-1)});KS.set(n,a)}}return o(r),n};NN.cancel=function(e){var t=KS.get(e);return TN(e),PN(t)};var dt=NN;var lr=E($());function ih(e){if(Array.isArray(e))return e}function IN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function ah(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(e,t){return ih(e)||IN(e,t)||Kc(e,t)||ah()}function bW(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ss=bW;function Yt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function XS(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var $N="data-rc-order",DN="data-rc-priority",SW="rc-util-key",YS=new Map;function AN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):SW}function sh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function CW(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function QS(e){return Array.from((YS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function kN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yt())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=CW(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute($N,a),s&&i&&l.setAttribute(DN,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=sh(t),u=c.firstChild;if(n){if(s){var f=(t.styles||QS(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute($N)))return!1;var g=Number(p.getAttribute(DN)||0);return i>=g});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function MN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=sh(t);return(t.styles||QS(r)).find(function(n){return n.getAttribute(AN(t))===e})}function Ui(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=MN(e,t);if(r){var n=sh(t);n.removeChild(r)}}function wW(e,t){var r=YS.get(e);if(!r||!XS(document,r)){var n=kN("",t),o=n.parentNode;YS.set(e,o),e.removeChild(n)}}function yn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=sh(r),o=QS(n),i=T(T({},r),{},{styles:o});wW(n,i);var a=MN(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=kN(e,i);return u.setAttribute(AN(i),t),u}var XN=E($());function FN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ve(e,t){if(e==null)return{};var r,n,o=FN(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function EW(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Vt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&ue(i)==="object"&&ue(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(p){return o(i[p],a[p],c)})}return!1}return o(e,t)}var Cs=EW;var ch=E($());var RW="%";function lh(e){return e.join(RW)}var OW=function(){function e(t){it(this,e),_(this,"instanceId",void 0),_(this,"cache",new Map),this.instanceId=t}return at(e,[{key:"get",value:function(r){return this.opGet(lh(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(lh(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),LN=OW;var qi="data-token-hash",Tn="data-css-hash";var Ci="__cssinjs_instance__";function zN(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Tn,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[Ci]=o[Ci]||e,o[Ci]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Tn,"]"))).forEach(function(o){var i=o.getAttribute(Tn);if(n[i]){if(o[Ci]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new LN(e)}var _W=ch.createContext({hashPriority:"low",cache:zN(),defaultCache:!0});var wi=_W;var TW="CALC_UNIT",qee=new RegExp(TW,"g");function NW(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var vd=function(){function e(){it(this,e),_(this,"cache",void 0),_(this,"keys",void 0),_(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return at(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=B(c,2),p=f[1];return o.internalGet(u)[1]<p?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=B(i,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var i;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!NW(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();_(vd,"MAX_CACHE_SIZE",20);_(vd,"MAX_CACHE_OFFSET",5);var WN=0,Xc=function(){function e(t){it(this,e),_(this,"derivatives",void 0),_(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=WN,t.length===0&&dd(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),WN+=1}return at(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}();var JS=new vd;function ws(e){var t=Array.isArray(e)?e:[e];return JS.has(t)||JS.set(t,new Xc(t)),JS.get(t)}var $W=new WeakMap,ZS={};function jN(e,t){for(var r=$W,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(ZS)||r.set(ZS,e()),r.get(ZS)}var BN=new WeakMap;function Yc(e){var t=BN.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Xc?t+=n.id:n&&ue(n)==="object"?t+=Yc(n):t+=n}),t=Ss(t),BN.set(e,t)),t}function eC(e,t){return Ss("".concat(t,"_").concat(Yc(e)))}var Dte="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var yd=Yt();function oe(e){return typeof e=="number"?"".concat(e,"px"):e}function Es(e,t,r){var n,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=T(T({},o),{},(n={},_(n,qi,t),_(n,Tn,r),n)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Qc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},DW=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=B(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},uh=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=B(a,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var p,g=Qc(u,n?.prefix);o[g]=typeof f=="number"&&!(n!=null&&(p=n.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(g,")")}}),[i,DW(o,r,{scope:n?.scope})]};var fh=E($());var Jc=E($());var VN=Yt()?Jc.useLayoutEffect:Jc.useEffect,HN=function(t,r){var n=Jc.useRef(!0);VN(function(){return t(n.current)},r),VN(function(){return n.current=!1,function(){n.current=!0}},[])},El=function(t,r){HN(function(n){if(!n)return t()},r)},vt=HN;var tC=E($()),AW=T({},tC),UN=AW.useInsertionEffect,kW=function(t,r,n){tC.useMemo(t,n),vt(function(){return r(!0)},n)},MW=UN?function(e,t,r){return UN(function(){return e(),t()},r)}:kW,qN=MW;var rC=E($()),FW=T({},rC),LW=FW.useInsertionEffect,zW=function(t){var r=[],n=!1;function o(i){n||r.push(i)}return rC.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},WW=function(){return function(t){t()}},BW=typeof LW<"u"?zW:WW,GN=BW;function jW(){return!1}var KN=jW;function Rl(e,t,r,n,o){var i=fh.useContext(wi),a=i.cache,s=[e].concat(te(t)),l=lh(s),c=GN([l]),u=KN(),f=function(v){a.opUpdate(l,function(y){var m=y||[void 0,void 0],d=B(m,2),x=d[0],b=x===void 0?0:x,S=d[1],w=S,C=w||r(),R=[b,C];return v?v(R):R})};fh.useMemo(function(){f()},[l]);var p=a.opGet(l),g=p[1];return qN(function(){o?.(g)},function(h){return f(function(v){var y=B(v,2),m=y[0],d=y[1];return h&&m===0&&o?.(g),[m+1,d]}),function(){a.opUpdate(l,function(v){var y=v||[],m=B(y,2),d=m[0],x=d===void 0?0:d,b=m[1],S=x-1;return S===0?(c(function(){(h||!a.opGet(l))&&n?.(b,!1)}),null):[x-1,b]})}},[l]),g}var VW={},HW="css",Ol=new Map;function UW(e){Ol.set(e,(Ol.get(e)||0)+1)}function qW(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(qi,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ci]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var GW=0;function KW(e,t){Ol.set(e,(Ol.get(e)||0)-1);var r=Array.from(Ol.keys()),n=r.filter(function(o){var i=Ol.get(o)||0;return i<=0});r.length-n.length>GW&&n.forEach(function(o){qW(o,t),Ol.delete(o)})}var YN=function(t,r,n,o){var i=n.getDerivativeToken(t),a=T(T({},i),r);return o&&(a=o(a)),a},nC="token";function dh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(0,XN.useContext)(wi),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?VW:l,u=r.formatToken,f=r.getComputedToken,p=r.cssVar,g=jN(function(){return Object.assign.apply(Object,[{}].concat(te(t)))},t),h=Yc(g),v=Yc(c),y=p?Yc(p):"",m=Rl(nC,[s,e.id,h,v,y],function(){var d,x=f?f(g,c,e):YN(g,c,e,u),b=T({},x),S="";if(p){var w=uh(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),C=B(w,2);x=C[0],S=C[1]}var R=eC(x,s);x._tokenKey=R,b._tokenKey=eC(b,s);var P=(d=p?.key)!==null&&d!==void 0?d:R;x._themeKey=P,UW(P);var O="".concat(HW,"-").concat(Ss(R));return x._hashId=O,[x,O,b,S,p?.key||""]},function(d){KW(d[0]._themeKey,o)},function(d){var x=B(d,4),b=x[0],S=x[3];if(p&&S){var w=yn(S,Ss("css-variables-".concat(b._themeKey)),{mark:Tn,prepend:"queue",attachTo:i,priority:-999});w[Ci]=o,w.setAttribute(qi,b._themeKey)}});return m}var QN=function(t,r,n){var o=B(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=Es(a,s,u,p,c);return[f,u,g]};var wI=E($());var _s=E($());var XW={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},oC=XW;var ph="comm",mh="rule",gh="decl";var JN="@import";var ZN="@namespace",eI="@keyframes";var tI="@layer";var iC=Math.abs,xd=String.fromCharCode;function hh(e){return e.trim()}function bd(e,t,r){return e.replace(t,r)}function rI(e,t,r){return e.indexOf(t,r)}function Rs(e,t){return e.charCodeAt(t)|0}function Os(e,t,r){return e.slice(t,r)}function So(e){return e.length}function nI(e){return e.length}function Zc(e,t){return t.push(e),e}var vh=1,eu=1,oI=0,Vo=0,Hr=0,ru="";function yh(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:vh,column:eu,length:a,return:"",siblings:s}}function iI(){return Hr}function aI(){return Hr=Vo>0?Rs(ru,--Vo):0,eu--,Hr===10&&(eu=1,vh--),Hr}function Ho(){return Hr=Vo<oI?Rs(ru,Vo++):0,eu++,Hr===10&&(eu=1,vh++),Hr}function ba(){return Rs(ru,Vo)}function Sd(){return Vo}function xh(e,t){return Os(ru,e,t)}function tu(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 sI(e){return vh=eu=1,oI=So(ru=e),Vo=0,[]}function lI(e){return ru="",e}function bh(e){return hh(xh(Vo-1,aC(e===91?e+2:e===40?e+1:e)))}function cI(e){for(;(Hr=ba())&&Hr<33;)Ho();return tu(e)>2||tu(Hr)>3?"":" "}function uI(e,t){for(;--t&&Ho()&&!(Hr<48||Hr>102||Hr>57&&Hr<65||Hr>70&&Hr<97););return xh(e,Sd()+(t<6&&ba()==32&&Ho()==32))}function aC(e){for(;Ho();)switch(Hr){case e:return Vo;case 34:case 39:e!==34&&e!==39&&aC(Hr);break;case 40:e===41&&aC(e);break;case 92:Ho();break}return Vo}function fI(e,t){for(;Ho()&&e+Hr!==57;)if(e+Hr===84&&ba()===47)break;return"/*"+xh(t,Vo-1)+"*"+xd(e===47?e:Ho())}function dI(e){for(;!tu(ba());)Ho();return xh(e,Vo)}function gI(e){return lI(Sh("",null,null,null,[""],e=sI(e),0,[0],e))}function Sh(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,f=a,p=0,g=0,h=0,v=1,y=1,m=1,d=0,x="",b=o,S=i,w=n,C=x;y;)switch(h=d,d=Ho()){case 40:if(h!=108&&Rs(C,f-1)==58){rI(C+=bd(bh(d),"&","&\f"),"&\f",iC(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:C+=bh(d);break;case 9:case 10:case 13:case 32:C+=cI(h);break;case 92:C+=uI(Sd()-1,7);continue;case 47:switch(ba()){case 42:case 47:Zc(YW(fI(Ho(),Sd()),t,r,l),l),(tu(h||1)==5||tu(ba()||1)==5)&&So(C)&&Os(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=So(C)*m;case 125*v:case 59:case 0:switch(d){case 0:case 125:y=0;case 59+u:m==-1&&(C=bd(C,/\f/g,"")),g>0&&(So(C)-f||v===0&&h===47)&&Zc(g>32?mI(C+";",n,r,f-1,l):mI(bd(C," ","")+";",n,r,f-2,l),l);break;case 59:C+=";";default:if(Zc(w=pI(C,t,r,c,u,o,s,x,b=[],S=[],f,i),i),d===123)if(u===0)Sh(C,t,w,w,b,i,f,s,S);else{switch(p){case 99:if(Rs(C,3)===110)break;case 108:if(Rs(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Sh(e,w,w,n&&Zc(pI(e,w,w,0,0,o,s,x,o,b=[],f,S),S),o,S,f,s,n?b:S):Sh(C,w,w,w,[""],S,0,s,S)}}c=u=g=0,v=m=1,x=C="",f=a;break;case 58:f=1+So(C),g=h;default:if(v<1){if(d==123)--v;else if(d==125&&v++==0&&aI()==125)continue}switch(C+=xd(d),d*v){case 38:m=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(So(C)-1)*m,m=1;break;case 64:ba()===45&&(C+=bh(Ho())),p=ba(),u=f=So(x=C+=dI(Sd())),d++;break;case 45:h===45&&So(C)==2&&(v=0)}}return i}function pI(e,t,r,n,o,i,a,s,l,c,u,f){for(var p=o-1,g=o===0?i:[""],h=nI(g),v=0,y=0,m=0;v<n;++v)for(var d=0,x=Os(e,p+1,p=iC(y=a[v])),b=e;d<h;++d)(b=hh(y>0?g[d]+" "+x:bd(x,/&\f/g,g[d])))&&(l[m++]=b);return yh(e,t,r,o===0?mh:s,l,c,u,f)}function YW(e,t,r,n){return yh(e,t,r,ph,xd(iI()),Os(e,2,-2),0,n)}function mI(e,t,r,n,o){return yh(e,t,r,gh,Os(e,0,n),Os(e,n+1,-1),n,o)}function Ch(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function hI(e,t,r,n){switch(e.type){case tI:if(e.children.length)break;case JN:case ZN:case gh:return e.return=e.return||e.value;case ph:return"";case eI:return e.return=e.value+"{"+Ch(e.children,n)+"}";case mh:if(!So(e.value=e.props.join(",")))return""}return So(r=Ch(e.children,n))?e.return=e.value+"{"+r+"}":""}var sC="data-ant-cssinjs-cache-path",lC="_FILE_STYLE__";var _l,vI=!0;function tB(){if(!_l&&(_l={},Yt())){var e=document.createElement("div");e.className=sC,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=B(i,2),s=a[0],l=a[1];_l[s]=l});var r=document.querySelector("style[".concat(sC,"]"));if(r){var n;vI=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function yI(e){return tB(),!!_l[e]}function xI(e){var t=_l[e],r=null;if(t&&Yt())if(vI)r=lC;else{var n=document.querySelector("style[".concat(Tn,'="').concat(_l[e],'"]'));n?r=n.innerHTML:delete _l[e]}return[r,t]}var rB="_skip_check_",SI="_multi_value_";function wh(e){var t=Ch(gI(e),hI);return t.replace(/\{%%%\:[^;];}/g,";")}function nB(e){return ue(e)==="object"&&e&&(rB in e||SI in e)}function bI(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(te(l.slice(1))).join(" ")});return i.join(",")}var oB=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,f=r.transformers,p=f===void 0?[]:f,g=r.linters,h=g===void 0?[]:g,v="",y={};function m(b){var S=b.getName(s);if(!y[S]){var w=e(b.style,r,{root:!1,parentSelectors:a}),C=B(w,1),R=C[0];y[S]="@keyframes ".concat(b.getName(s)).concat(R)}}function d(b){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(w){Array.isArray(w)?d(w,S):w&&S.push(w)}),S}var x=d(Array.isArray(t)?t:[t]);return x.forEach(function(b){var S=typeof b=="string"&&!o?{}:b;if(typeof S=="string")v+="".concat(S,`
`);else if(S._keyframe)m(S);else{var w=p.reduce(function(C,R){var P;return(R==null||(P=R.visit)===null||P===void 0?void 0:P.call(R,C))||C},S);Object.keys(w).forEach(function(C){var R=w[C];if(ue(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!nB(R)){var P=!1,O=C.trim(),A=!1;(o||i)&&s?O.startsWith("@")?P=!0:O==="&"?O=bI("",s,u):O=bI(C,s,u):o&&!s&&(O==="&"||O==="")&&(O="",A=!0);var F=e(R,r,{root:A,injectHash:P,parentSelectors:[].concat(te(a),[O])}),M=B(F,2),H=M[0],L=M[1];y=T(T({},y),L),v+="".concat(O).concat(H)}else{let U=function(z,W){var q=z.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),j=W;!oC[z]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),z==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(m(W),j=W.getName(s)),v+="".concat(q,":").concat(j,";")};var D=U,N,I=(N=R?.value)!==null&&N!==void 0?N:R;ue(R)==="object"&&R!==null&&R!==void 0&&R[SI]&&Array.isArray(I)?I.forEach(function(z){U(C,z)}):U(C,I)}})}}),o?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(y["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
`))):v="{".concat(v,"}"),[v,y]};function cC(e,t){return Ss("".concat(e.join("%")).concat(t))}function iB(){return null}var uC="style";function Ps(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=_s.useContext(wi),f=u.autoClear,p=u.mock,g=u.defaultCache,h=u.hashPriority,v=u.container,y=u.ssrInline,m=u.transformers,d=u.linters,x=u.cache,b=u.layer,S=r._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,te(n));var C=yd,R=Rl(uC,w,function(){var M=w.join("|");if(yI(M)){var H=xI(M),L=B(H,2),N=L[0],I=L[1];if(N)return[N,S,I,{},s,c]}var D=t(),U=oB(D,{hashId:o,hashPriority:h,layer:b?i:void 0,path:n.join("-"),transformers:m,linters:d}),z=B(U,2),W=z[0],q=z[1],j=wh(W),k=cC(w,j);return[j,S,k,q,s,c]},function(M,H){var L=B(M,3),N=L[2];(H||f)&&yd&&Ui(N,{mark:Tn})},function(M){var H=B(M,4),L=H[0],N=H[1],I=H[2],D=H[3];if(C&&L!==lC){var U={mark:Tn,prepend:b?!1:"queue",attachTo:v,priority:c},z=typeof a=="function"?a():a;z&&(U.csp={nonce:z});var W=[],q=[];Object.keys(D).forEach(function(k){k.startsWith("@layer")?W.push(k):q.push(k)}),W.forEach(function(k){yn(wh(D[k]),"_layer-".concat(k),T(T({},U),{},{prepend:!0}))});var j=yn(L,I,U);j[Ci]=x.instanceId,j.setAttribute(qi,S),q.forEach(function(k){yn(wh(D[k]),"_effect-".concat(k),U)})}}),P=B(R,3),O=P[0],A=P[1],F=P[2];return function(M){var H;if(!y||C||!g)H=_s.createElement(iB,null);else{var L;H=_s.createElement("style",fe({},(L={},_(L,qi,A),_(L,Tn,F),L),{dangerouslySetInnerHTML:{__html:O}}))}return _s.createElement(_s.Fragment,null,H,M)}}var CI=function(t,r,n){var o=B(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=n||{},p=f.plain;if(c)return null;var g=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=Es(i,a,s,h,p),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=wh(l[v]),m=Es(y,a,"_effect-".concat(v),h,p);v.startsWith("@layer")?g=m+g:g+=m}}),[u,s,g]};var fC="cssVar",aB=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=(0,wI.useContext)(wi),f=u.cache.instanceId,p=u.container,g=s._tokenKey,h=[].concat(te(t.path),[n,c,g]),v=Rl(fC,h,function(){var y=r(),m=uh(y,n,{prefix:o,unitless:i,ignore:a,scope:c}),d=B(m,2),x=d[0],b=d[1],S=cC(h,b);return[x,b,S,n]},function(y){var m=B(y,3),d=m[2];yd&&Ui(d,{mark:Tn})},function(y){var m=B(y,3),d=m[1],x=m[2];if(d){var b=yn(d,x,{mark:Tn,prepend:"queue",attachTo:p,priority:-999});b[Ci]=f,b.setAttribute(qi,n)}});return v},EI=function(t,r,n){var o=B(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Es(i,s,a,f,c);return[u,a,p]},dC=aB;var wd,Dne=(wd={},_(wd,uC,CI),_(wd,nC,QN),_(wd,fC,EI),wd);var sB=function(){function e(t,r){it(this,e),_(this,"name",void 0),_(this,"style",void 0),_(this,"_keyframe",!0),this.name=t,this.style=r}return at(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}(),yt=sB;function nu(e){return e.notSplit=!0,e}var Wne={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:nu(["borderTop","borderBottom"]),borderBlockStart:nu(["borderTop"]),borderBlockEnd:nu(["borderBottom"]),borderInline:nu(["borderLeft","borderRight"]),borderInlineStart:nu(["borderLeft"]),borderInlineEnd:nu(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};var RI=E($()),lB=(0,RI.createContext)({}),ou=lB;function Eh(e){return ih(e)||oh(e)||Kc(e)||ah()}function xn(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function _I(e,t,r,n){if(!t.length)return r;var o=Eh(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=te(e):s=T({},e),n&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=_I(s[i],a,r,n),s}function qn(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!xn(e,t.slice(0,-1))?e:_I(e,t,r,n)}function cB(e){return ue(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function OI(e){return Array.isArray(e)?[]:{}}var uB=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Sa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=OI(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=xn(o,a),u=Array.isArray(c);if(u||cB(c)){if(!l.has(c)){l.add(c);var f=xn(n,a);u?n=qn(n,a,[]):(!f||ue(f)!=="object")&&(n=qn(n,a,OI(c))),uB(c).forEach(function(p){i([].concat(te(a),[p]),l)})}}else n=qn(n,a,c)}i([])}),n}var pC=E($());function fB(){}var PI=pC.createContext({}),Rh=()=>{let e=()=>{};return e.deprecated=fB,e};var TI=E($()),NI=(0,TI.createContext)(void 0);var au=E($());var dB={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"},II=dB;var $I={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var pB=T(T({},$I),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),DI=pB;var mB={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Oh=mB;var gB={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"]},DI),timePickerLocale:Object.assign({},Oh)},_h=gB;var AI=_h;var Co="${label} is not a valid ${type}",hB={locale:"en",Pagination:II,DatePicker:_h,TimePicker:Oh,Calendar:AI,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Co,method:Co,array:Co,object:Co,number:Co,date:Co,boolean:Co,integer:Co,float:Co,regexp:Co,email:Co,url:Co,hex:Co},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Ei=hB;var mC=Object.assign({},Ei.Modal),Ph=[],kI=()=>Ph.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ei.Modal);function MI(e){if(e){let t=Object.assign({},e);return Ph.push(t),mC=kI(),()=>{Ph=Ph.filter(r=>r!==t),mC=kI()}}mC=Object.assign({},Ei.Modal)}var FI=E($()),vB=(0,FI.createContext)(void 0),iu=vB;var Ed=E($());var yB=(e,t)=>{let r=Ed.useContext(iu),n=Ed.useMemo(()=>{var i;let a=t||Ei[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=Ed.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?Ei.locale:i},[r]);return[n,o]},Ca=yB;var LI="internalMark",xB=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;au.useEffect(()=>MI(t?.Modal),[t]);let o=au.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return au.createElement(iu.Provider,{value:o},r)},zI=xB;var f2=E($());var gC={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"},bB=Object.assign(Object.assign({},gC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),wa=bB;var sn=Math.round;function hC(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var WI=(e,t,r)=>r===0?e:e/100;function Rd(e,t){let r=t||255;return e>r?r:e<0?0:e}var gt=class e{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(this,"_brightness",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var n=i;let o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Rd(t.r),this.g=Rd(t.g),this.b=Rd(t.b),this.a=typeof t.a=="number"?Rd(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=sn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:sn(i("r")),g:sn(i("g")),b:sn(i("b")),a:sn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>sn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=sn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=sn(this.getSaturation()*100),n=sn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){let o=this.clone();return o[t]=Rd(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let p=sn(n*255);this.r=p,this.g=p,this.b=p}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=n-c/2;this.r=sn((i+f)*255),this.g=sn((a+f)*255),this.b=sn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=sn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=sn(n*(1-r)*255),u=sn(n*(1-r*l)*255),f=sn(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=hC(t,WI);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=hC(t,WI);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=hC(t,(n,o)=>o.includes("%")?sn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Th=2,BI=.16,SB=.05,CB=.05,wB=.15,UI=5,qI=4,EB=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function jI(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Th*t:Math.round(e.h)+Th*t:n=r?Math.round(e.h)+Th*t:Math.round(e.h)-Th*t,n<0?n+=360:n>=360&&(n-=360),n}function VI(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-BI*t:t===qI?n=e.s+BI:n=e.s+SB*t,n>1&&(n=1),r&&t===UI&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function HI(e,t,r){var n;return r?n=e.v+CB*t:n=e.v-wB*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Ri(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new gt(e),o=n.toHsv(),i=UI;i>0;i-=1){var a=new gt({h:jI(o,i,!0),s:VI(o,i,!0),v:HI(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=qI;s+=1){var l=new gt({h:jI(o,s),s:VI(o,s),v:HI(o,s)});r.push(l)}return t.theme==="dark"?EB.map(function(c){var u=c.index,f=c.amount;return new gt(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ea={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"},vC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];vC.primary=vC[5];var yC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];yC.primary=yC[5];var xC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];xC.primary=xC[5];var bC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];bC.primary=bC[5];var SC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];SC.primary=SC[5];var CC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];CC.primary=CC[5];var wC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wC.primary=wC[5];var EC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];EC.primary=EC[5];var Ts=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ts.primary=Ts[5];var RC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];RC.primary=RC[5];var OC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];OC.primary=OC[5];var _C=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_C.primary=_C[5];var PC=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];PC.primary=PC[5];var Nh={red:vC,volcano:yC,orange:xC,gold:bC,yellow:SC,lime:CC,green:wC,cyan:EC,blue:Ts,geekblue:RC,purple:OC,magenta:_C,grey:PC},GI=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];GI.primary=GI[5];var KI=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];KI.primary=KI[5];var XI=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];XI.primary=XI[5];var YI=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];YI.primary=YI[5];var QI=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];QI.primary=QI[5];var JI=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];JI.primary=JI[5];var ZI=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];ZI.primary=ZI[5];var e2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];e2.primary=e2[5];var t2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];t2.primary=t2[5];var r2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];r2.primary=r2[5];var n2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];n2.primary=n2[5];var o2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];o2.primary=o2[5];var i2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];i2.primary=i2[5];function TC(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),p=t(o),g=t(i),h=t(a),v=r(l,c),y=e.colorLink||e.colorInfo,m=t(y),d=new gt(g[1]).mix(new gt(g[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:d,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new gt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var RB=e=>{let t=e,r=e,n=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?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},a2=RB;function NC(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},a2(n))}var OB=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},s2=OB;function su(e){return(e+8)/e}function IC(e){let t=Array.from({length:10}).map((r,n)=>{let o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:su(r)}))}var _B=e=>{let t=IC(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},l2=_B;function $C(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var wo=(e,t)=>new gt(e).setA(t).toRgbString(),lu=(e,t)=>new gt(e).darken(t).toHexString();var c2=e=>{let t=Ri(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]}},u2=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:wo(n,.88),colorTextSecondary:wo(n,.65),colorTextTertiary:wo(n,.45),colorTextQuaternary:wo(n,.25),colorFill:wo(n,.15),colorFillSecondary:wo(n,.06),colorFillTertiary:wo(n,.04),colorFillQuaternary:wo(n,.02),colorBgSolid:wo(n,1),colorBgSolidHover:wo(n,.75),colorBgSolidActive:wo(n,.95),colorBgLayout:lu(r,4),colorBgContainer:lu(r,0),colorBgElevated:lu(r,0),colorBgSpotlight:wo(n,.85),colorBgBlur:"transparent",colorBorder:lu(r,15),colorBorderSecondary:lu(r,6)}};function DC(e){Ea.pink=Ea.magenta,Nh.pink=Nh.magenta;let t=Object.keys(gC).map(r=>{let n=e[r]===Ea[r]?Nh[r]:Ri(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),TC(e,{generateColorPalettes:c2,generateNeutralColorPalettes:u2})),l2(e.fontSize)),$C(e)),s2(e)),NC(e))}var PB=ws(DC),Od=PB;var _d={token:wa,override:{override:wa},hashed:!0},Pd=f2.default.createContext(_d);var Ih=E($()),Ns="ant",Td="anticon",AC=["outlined","borderless","filled","underlined"],TB=(e,t)=>t||(e?`${Ns}-${e}`:Ns),rt=Ih.createContext({getPrefixCls:TB,iconPrefixCls:Td}),{Consumer:NB}=rt,d2={};function no(e){let t=Ih.useContext(rt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:d2,styles:d2},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}var IB=`-ant-${Date.now()}-${Math.random()}`;function $B(e,t){let r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{let l=new gt(a),c=Ri(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");let a=new gt(t.primaryColor),s=Ri(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));let l=new gt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.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"),`
:root {
${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
`)}
}
`.trim()}function p2(e,t){let r=$B(e,t);Yt()&&yn(r,`${IB}-dynamic-theme`)}var cu=E($()),kC=cu.createContext(!1),m2=({children:e,disabled:t})=>{let r=cu.useContext(kC);return cu.createElement(kC.Provider,{value:t??r},e)},Ur=kC;var FC=E($());var uu=E($()),MC=uu.createContext(void 0),g2=({children:e,size:t})=>{let r=uu.useContext(MC);return uu.createElement(MC.Provider,{value:t||r},e)},Pl=MC;function DB(){let e=(0,FC.useContext)(Ur),t=(0,FC.useContext)(Pl);return{componentDisabled:e,componentSize:t}}var h2=DB;var Fh=E($());var AB=at(function e(){it(this,e)}),$h=AB;var v2="CALC_UNIT",kB=new RegExp(v2,"g");function LC(e){return typeof e=="number"?"".concat(e).concat(v2):e}var y2=function(e){Ir(r,e);var t=$r(r);function r(n,o){var i;it(this,r),i=t.call(this),_(Ze(i),"result",""),_(Ze(i),"unitlessCssVar",void 0),_(Ze(i),"lowPriority",void 0);var a=ue(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=LC(n):a==="string"&&(i.result=n),i}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(LC(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(LC(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(kB,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}($h);var MB=function(e){Ir(r,e);var t=$r(r);function r(n){var o;return it(this,r),o=t.call(this),_(Ze(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}($h),x2=MB;var FB=function(t,r){var n=t==="css"?y2:x2;return function(o){return new n(o,r)}},Dh=FB;var LB=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},zC=LB;var Ah=E($());function wt(e){var t=Ah.useRef();t.current=e;var r=Ah.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var fu=E($());function Ra(e){var t=fu.useRef(!1),r=fu.useState(e),n=B(r,2),o=n[0],i=n[1];fu.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function WC(e){return e!==void 0}function ar(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,s=Ra(function(){return WC(o)?o:WC(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=B(s,2),c=l[0],u=l[1],f=o!==void 0?o:c,p=a?a(f):f,g=wt(i),h=Ra([f]),v=B(h,2),y=v[0],m=v[1];El(function(){var x=y[0];c!==x&&g(c,x)},[y]),El(function(){WC(o)||u(o)},[o]);var d=wt(function(x,b){u(x,b),m([f],b)});return[p,d]}function zB(e,t,r,n){var o=T({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(s){var l=B(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o?.[c])}})}var a=T(T({},r),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var BC=zB;var b2=typeof CSSINJS_STATISTIC<"u",jC=!0;function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!b2)return Object.assign.apply(Object,[{}].concat(t));jC=!1;var n={};return t.forEach(function(o){if(ue(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),jC=!0,n}var kh={};function WB(){}var BB=function(t){var r,n=t,o=WB;return b2&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,s){if(jC){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;kh[a]={global:Array.from(r),component:T(T({},(l=kh[a])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}},Mh=BB;function jB(e,t,r){if(typeof r=="function"){var n;return r(ut(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}var VC=jB;function VB(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(i){return oe(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(i){return oe(i)}).join(","),")")}}}var S2=VB;var w2=E($()),HB=1e3*60*10,UB=function(){function e(){it(this,e),_(this,"map",new Map),_(this,"objectIDMap",new WeakMap),_(this,"nextID",0),_(this,"lastAccessBeat",new Map),_(this,"accessBeat",0)}return at(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(i){return i&&ue(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(ue(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>HB&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),C2=new UB;function qB(e,t){return w2.default.useMemo(function(){var r=C2.get(t);if(r)return r;var n=e();return C2.set(t,n),n},t)}var E2=qB;var GB=function(){return{}},R2=GB;function KB(e){var t=e.useCSP,r=t===void 0?R2:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(p,g,h,v){var y=Array.isArray(p)?p[0]:p;function m(R){return"".concat(String(y)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var d=v?.unitless||{},x=typeof s=="function"?s(p):{},b=T(T({},x),{},_({},m("zIndexPopup"),!0));Object.keys(d).forEach(function(R){b[m(R)]=d[R]});var S=T(T({},v),{},{unitless:b,prefixToken:m}),w=u(p,g,h,S),C=c(y,h,S);return function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=w(R,P),A=B(O,2),F=A[1],M=C(P),H=B(M,2),L=H[0],N=H[1];return[L,F,N]}}function c(p,g,h){var v=h.unitless,y=h.injectStyle,m=y===void 0?!0:y,d=h.prefixToken,x=h.ignore,b=function(C){var R=C.rootCls,P=C.cssVar,O=P===void 0?{}:P,A=n(),F=A.realToken;return dC({path:[p],prefix:O.prefix,key:O.key,unitless:v,ignore:x,token:F,scope:R},function(){var M=VC(p,F,g),H=BC(p,F,M,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(M).forEach(function(L){H[d(L)]=H[L],delete H[L]}),H}),null},S=function(C){var R=n(),P=R.cssVar;return[function(O){return m&&P?Fh.default.createElement(Fh.default.Fragment,null,Fh.default.createElement(b,{rootCls:C,cssVar:P,component:p}),O):O},P?.key]};return S}function u(p,g,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(p)?p:[p,p],m=B(y,1),d=m[0],x=y.join("-"),b=e.layer||{name:"antd"};return function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,C=n(),R=C.theme,P=C.realToken,O=C.hashId,A=C.token,F=C.cssVar,M=o(),H=M.rootPrefixCls,L=M.iconPrefixCls,N=r(),I=F?"css":"js",D=E2(function(){var k=new Set;return F&&Object.keys(v.unitless||{}).forEach(function(V){k.add(Qc(V,F.prefix)),k.add(Qc(V,zC(d,F.prefix)))}),Dh(I,k)},[I,d,F?.prefix]),U=S2(I),z=U.max,W=U.min,q={theme:R,token:A,hashId:O,nonce:function(){return N.nonce},clientOnly:v.clientOnly,layer:b,order:v.order||-999};typeof i=="function"&&Ps(T(T({},q),{},{clientOnly:!1,path:["Shared",H]}),function(){return i(A,{prefix:{rootPrefixCls:H,iconPrefixCls:L},csp:N})});var j=Ps(T(T({},q),{},{path:[x,S,L]}),function(){if(v.injectStyle===!1)return[];var k=Mh(A),V=k.token,G=k.flush,J=VC(d,P,h),Y=".".concat(S),X=BC(d,P,J,{deprecatedTokens:v.deprecatedTokens});F&&J&&ue(J)==="object"&&Object.keys(J).forEach(function(Q){J[Q]="var(".concat(Qc(Q,zC(d,F.prefix)),")")});var ae=ut(V,{componentCls:Y,prefixCls:S,iconCls:".".concat(L),antCls:".".concat(H),calc:D,max:z,min:W},F?J:X),Z=g(ae,{hashId:O,prefixCls:S,rootPrefixCls:H,iconPrefixCls:L});G(d,X);var K=typeof a=="function"?a(ae,S,w,v.resetFont):null;return[v.resetStyle===!1?null:K,Z]});return[j,O]}}function f(p,g,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(p,g,h,T({resetStyle:!1,order:-998},v)),m=function(x){var b=x.prefixCls,S=x.rootCls,w=S===void 0?b:S;return y(b,w),null};return m}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var HC=KB;var Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var T2=E($());var O2="5.25.3";var _2=O2;function UC(e){return e>=0&&e<=255}function XB(e,t){let{r,g:n,b:o,a:i}=new gt(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new gt(t).toRgb();for(let c=.01;c<=1;c+=.01){let u=Math.round((r-a*(1-c))/c),f=Math.round((n-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(UC(u)&&UC(f)&&UC(p))return new gt({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new gt({r,g:n,b:o,a:1}).toRgbString()}var Tl=XB;var YB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Lh(e){let{override:t}=e,r=YB(e,["override"]),n=Object.assign({},t);Object.keys(wa).forEach(p=>{delete n[p]});let o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){let p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Tl(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:Tl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Tl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Tl(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:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new gt("rgba(0, 0, 0, 0.09)").toRgbString()}
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
`,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)"}),n)}var P2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},qC={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},QB={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},JB={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},N2=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o}=t,i=P2(t,["override"]),a=Object.assign(Object.assign({},n),{override:o});return a=Lh(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c}=l,u=P2(l,["theme"]),f=u;c&&(f=N2(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=f}),a};function xr(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=T2.default.useContext(Pd),i=`${_2}-${t||""}`,a=r||Od,[s,l,c]=dh(a,[wa,e],{salt:i,override:n,getComputedToken:N2,formatToken:Lh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:qC,ignore:QB,preserve:JB}});return[a,c,t?l:"",s,o]}var KC=E($());var Oa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sr=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),_a=()=>({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"}}),du=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),I2=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),$2=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},GC=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),D2=(e,t)=>({"&:focus-visible":Object.assign({},GC(e,t))}),zh=e=>({[`.${e}`]:Object.assign(Object.assign({},_a()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:Gt,genComponentStyleHook:XC,genSubStyleComponent:YC}=HC({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,KC.useContext)(rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=xr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=(0,KC.useContext)(rt);return e??{}},getResetStyles:(e,t)=>{var r;let n=I2(e);return[n,{"&":n},zh((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Td)]},getCommonStyle:$2,getCompUnitless:()=>qC});function Wh(e,t){return Eo.reduce((r,n)=>{let o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var ZB=(e,t)=>{let[r,n]=xr();return Ps({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[zh(e)])},Bh=ZB;var ej=E($()),tj=Object.assign({},ej),{useId:A2}=tj,rj=()=>"",nj=typeof A2>"u"?rj:A2,k2=nj;function QC(e,t,r){var n,o;let i=Rh("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},_d),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:_d.hashed,cssVar:t?.cssVar}):t,l=k2();return Hi(()=>{var c,u;if(!e)return t;let f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});let p=`css-var-${l.replace(/:/g,"")}`,g=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||p});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:f,cssVar:g})},[a,s],(c,u)=>c.some((f,p)=>{let g=u[p];return!Cs(f,g,!0)}))}var av=E($());var Q2=E(Ne());var io=E($()),aw=E($());var jh=E($()),oj=["children"],JC=jh.createContext({});function Vh(e){var t=e.children,r=Ve(e,oj);return jh.createElement(JC.Provider,{value:r},t)}var M2=E($()),ij=function(e){Ir(r,e);var t=$r(r);function r(){return it(this,r),t.apply(this,arguments)}return at(r,[{key:"render",value:function(){return this.props.children}}]),r}(M2.Component),F2=ij;var Hh=E($());function ZC(e){var t=Hh.useReducer(function(s){return s+1},0),r=B(t,2),n=r[1],o=Hh.useRef(e),i=wt(function(){return o.current}),a=wt(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var Zh=E($()),Ta=E($());var Gi="none",Nd="appear",Id="enter",$d="leave",ew="none",oo="prepare",Pa="start",Is="active",Uh="end",qh="prepared";var H2=E($()),U2=E($());function L2(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function aj(e,t){var r={animationend:L2("Animation","AnimationEnd"),transitionend:L2("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var sj=aj(Yt(),typeof window<"u"?window:{}),W2={};Yt()&&(z2=document.createElement("div"),W2=z2.style);var z2,Gh={};function B2(e){if(Gh[e])return Gh[e];var t=sj[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in W2)return Gh[e]=t[i],Gh[e]}return""}var j2=B2("animationend"),V2=B2("transitionend"),Kh=!!(j2&&V2),tw=j2||"animationend",rw=V2||"transitionend";function nw(e,t){if(!e)return null;if(ue(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var q2=function(e){var t=(0,U2.useRef)();function r(o){o&&(o.removeEventListener(rw,e),o.removeEventListener(tw,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(rw,e),o.addEventListener(tw,e),t.current=o)}return H2.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Xh=E($()),lj=Yt()?Xh.useLayoutEffect:Xh.useEffect,Yh=lj;var K2=E($());var Qh=E($()),G2=function(){var e=Qh.useRef(null);function t(){dt.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=dt(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return Qh.useEffect(function(){return function(){t()}},[]),[r,t]};var cj=[oo,Pa,Is,Uh],uj=[oo,qh],ow=!1,X2=!0;function Jh(e){return e===Is||e===Uh}var Y2=function(e,t,r){var n=Ra(ew),o=B(n,2),i=o[0],a=o[1],s=G2(),l=B(s,2),c=l[0],u=l[1];function f(){a(oo,!0)}var p=t?uj:cj;return Yh(function(){if(i!==ew&&i!==Uh){var g=p.indexOf(i),h=p[g+1],v=r(i);v===ow?a(h,!0):h&&c(function(y){function m(){y.isCanceled()||a(h,!0)}v===!0?m():Promise.resolve(v).then(m)})}},[e,i]),K2.useEffect(function(){return function(){u()}},[]),[f,i]};function iw(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,p=n.onAppearPrepare,g=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,y=n.onEnterStart,m=n.onLeaveStart,d=n.onAppearActive,x=n.onEnterActive,b=n.onLeaveActive,S=n.onAppearEnd,w=n.onEnterEnd,C=n.onLeaveEnd,R=n.onVisibleChanged,P=Ra(),O=B(P,2),A=O[0],F=O[1],M=ZC(Gi),H=B(M,2),L=H[0],N=H[1],I=Ra(null),D=B(I,2),U=D[0],z=D[1],W=L(),q=(0,Ta.useRef)(!1),j=(0,Ta.useRef)(null);function k(){return r()}var V=(0,Ta.useRef)(!1);function G(){N(Gi),z(null,!0)}var J=wt(function(Ce){var De=L();if(De!==Gi){var ce=k();if(!(Ce&&!Ce.deadline&&Ce.target!==ce)){var ie=V.current,Re;De===Nd&&ie?Re=S?.(ce,Ce):De===Id&&ie?Re=w?.(ce,Ce):De===$d&&ie&&(Re=C?.(ce,Ce)),ie&&Re!==!1&&G()}}}),Y=q2(J),X=B(Y,1),ae=X[0],Z=function(De){switch(De){case Nd:return _(_(_({},oo,p),Pa,v),Is,d);case Id:return _(_(_({},oo,g),Pa,y),Is,x);case $d:return _(_(_({},oo,h),Pa,m),Is,b);default:return{}}},K=Zh.useMemo(function(){return Z(W)},[W]),Q=Y2(W,!e,function(Ce){if(Ce===oo){var De=K[oo];return De?De(k()):ow}if(ne in K){var ce;z(((ce=K[ne])===null||ce===void 0?void 0:ce.call(K,k(),null))||null)}return ne===Is&&W!==Gi&&(ae(k()),u>0&&(clearTimeout(j.current),j.current=setTimeout(function(){J({deadline:!0})},u))),ne===qh&&G(),X2}),re=B(Q,2),ee=re[0],ne=re[1],de=Jh(ne);V.current=de;var le=(0,Ta.useRef)(null);Yh(function(){if(!(q.current&&le.current===t)){F(t);var Ce=q.current;q.current=!0;var De;!Ce&&t&&s&&(De=Nd),Ce&&t&&i&&(De=Id),(Ce&&!t&&c||!Ce&&f&&!t&&c)&&(De=$d);var ce=Z(De);De&&(e||ce[oo])?(N(De),ee()):N(Gi),le.current=t}},[t]),(0,Ta.useEffect)(function(){(W===Nd&&!s||W===Id&&!i||W===$d&&!c)&&N(Gi)},[s,i,c]),(0,Ta.useEffect)(function(){return function(){q.current=!1,clearTimeout(j.current)}},[]);var pe=Zh.useRef(!1);(0,Ta.useEffect)(function(){A&&(pe.current=!0),A!==void 0&&W===Gi&&((pe.current||A)&&R?.(A),pe.current=!0)},[A,W]);var Oe=U;return K[oo]&&ne===Pa&&(Oe=T({transition:"none"},Oe)),[W,ne,Oe,A??t]}function fj(e){var t=e;ue(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=io.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,p=o.motionName,g=o.leavedClassName,h=o.eventProps,v=io.useContext(JC),y=v.motion,m=r(o,y),d=(0,aw.useRef)(),x=(0,aw.useRef)();function b(){try{return d.current instanceof HTMLElement?d.current:Cl(x.current)}catch{return null}}var S=iw(m,s,b,o),w=B(S,4),C=w[0],R=w[1],P=w[2],O=w[3],A=io.useRef(O);O&&(A.current=!0);var F=io.useCallback(function(D){d.current=D,md(i,D)},[i]),M,H=T(T({},h),{},{visible:s});if(!f)M=null;else if(C===Gi)O?M=f(T({},H),F):!c&&A.current&&g?M=f(T(T({},H),{},{className:g}),F):u||!c&&!g?M=f(T(T({},H),{},{style:{display:"none"}}),F):M=null;else{var L;R===oo?L="prepare":Jh(R)?L="active":R===Pa&&(L="start");var N=nw(p,"".concat(C,"-").concat(L));M=f(T(T({},H),{},{className:(0,Q2.default)(nw(p,C),_(_({},N,N&&L),p,typeof p=="string")),style:P}),F)}if(io.isValidElement(M)&&bi(M)){var I=ys(M);I||(M=io.cloneElement(M,{ref:F}))}return io.createElement(F2,{ref:x},M)});return n.displayName="CSSMotion",n}var ev=fj(Kh);var Nl=E($());var tv="add",rv="keep",nv="remove",iv="removed";function dj(e){var t;return e&&ue(e)==="object"&&"key"in e?t=e:t={key:e},T(T({},t),{},{key:String(t.key)})}function ov(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dj)}function J2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=ov(e),a=ov(t);i.forEach(function(c){for(var u=!1,f=n;f<o;f+=1){var p=a[f];if(p.key===c.key){n<f&&(r=r.concat(a.slice(n,f).map(function(g){return T(T({},g),{},{status:tv})})),n=f),r.push(T(T({},p),{},{status:rv})),n+=1,u=!0;break}}u||r.push(T(T({},c),{},{status:nv}))}),n<o&&(r=r.concat(a.slice(n).map(function(c){return T(T({},c),{},{status:tv})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==nv}),r.forEach(function(u){u.key===c&&(u.status=rv)})}),r}var pj=["component","children","onVisibleChanged","onAllRemoved"],mj=["status"],gj=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function hj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ev,r=function(n){Ir(i,n);var o=$r(i);function i(){var a;it(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),_(Ze(a),"state",{keyEntities:[]}),_(Ze(a),"removeKey",function(u){a.setState(function(f){var p=f.keyEntities.map(function(g){return g.key!==u?g:T(T({},g),{},{status:iv})});return{keyEntities:p}},function(){var f=a.state.keyEntities,p=f.filter(function(g){var h=g.status;return h!==iv}).length;p===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return at(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,p=c.onVisibleChanged,g=c.onAllRemoved,h=Ve(c,pj),v=u||Nl.Fragment,y={};return gj.forEach(function(m){y[m]=h[m],delete h[m]}),delete h.keys,Nl.createElement(v,h,l.map(function(m,d){var x=m.status,b=Ve(m,mj),S=x===tv||x===rv;return Nl.createElement(t,fe({},y,{key:b.key,visible:S,eventProps:b,onVisibleChanged:function(C){p?.(C,{key:b.key}),C||s.removeKey(b.key)}}),function(w,C){return f(T(T({},w),{},{index:d}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=ov(c),p=J2(u,f);return{keyEntities:p.filter(function(g){var h=u.find(function(v){var y=v.key;return g.key===y});return!(h&&h.status===iv&&g.status===nv)})}}}]),i}(Nl.Component);return _(r,"defaultProps",{component:"div"}),r}var sw=hj(Kh);var Uo=ev;function lw(e){let{children:t}=e,[,r]=xr(),{motion:n}=r,o=av.useRef(!1);return o.current=o.current||n===!1,o.current?av.createElement(Vh,{motion:n},t):t}var vj=E($());var Z2=()=>null;var yj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};var xj=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],e$,bj,Sj,Cj;function wj(){return e$||Ns}function Ej(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var Rj=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(e$=t),r!==void 0&&(bj=r),"holderRender"in e&&(Cj=o),n&&(Ej(n)?p2(wj(),n):Sj=n)};var Oj=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:y,parentContext:m,iconPrefixCls:d,theme:x,componentDisabled:b,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:A,typography:F,checkbox:M,descriptions:H,divider:L,drawer:N,skeleton:I,steps:D,image:U,layout:z,list:W,mentions:q,modal:j,progress:k,result:V,slider:G,breadcrumb:J,menu:Y,pagination:X,input:ae,textArea:Z,empty:K,badge:Q,radio:re,rate:ee,switch:ne,transfer:de,avatar:le,message:pe,tag:Oe,table:Ce,card:De,tabs:ce,timeline:ie,timePicker:Re,upload:Le,notification:Ge,tree:Me,colorPicker:Ie,datePicker:je,rangePicker:We,flex:He,wave:ye,dropdown:se,warning:xe,tour:_e,tooltip:he,popover:Je,popconfirm:lt,floatButtonGroup:Et,variant:Pt,inputNumber:pt,treeSelect:Ae}=e,we=lr.useCallback((ze,tt)=>{let{prefixCls:At}=e;if(tt)return tt;let Tt=At||m.getPrefixCls("");return ze?`${Tt}-${ze}`:Tt},[m.getPrefixCls,e.prefixCls]),et=d||m.iconPrefixCls||Td,Pe=r||m.csp;Bh(et,Pe);let $e=QC(x,m.theme,{prefixCls:we("")}),Ee={csp:Pe,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||y,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:h??g,popupOverflow:v,getPrefixCls:we,iconPrefixCls:et,theme:$e,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:A,typography:F,checkbox:M,descriptions:H,divider:L,drawer:N,skeleton:I,steps:D,image:U,input:ae,textArea:Z,layout:z,list:W,mentions:q,modal:j,progress:k,result:V,slider:G,breadcrumb:J,menu:Y,pagination:X,empty:K,badge:Q,radio:re,rate:ee,switch:ne,transfer:de,avatar:le,message:pe,tag:Oe,table:Ce,card:De,tabs:ce,timeline:ie,timePicker:Re,upload:Le,notification:Ge,tree:Me,colorPicker:Ie,datePicker:je,rangePicker:We,flex:He,wave:ye,dropdown:se,warning:xe,tour:_e,tooltip:he,popover:Je,popconfirm:lt,floatButtonGroup:Et,variant:Pt,inputNumber:pt,treeSelect:Ae},be=Object.assign({},m);Object.keys(Ee).forEach(ze=>{Ee[ze]!==void 0&&(be[ze]=Ee[ze])}),xj.forEach(ze=>{let tt=e[ze];tt&&(be[ze]=tt)}),typeof n<"u"&&(be.button=Object.assign({autoInsertSpace:n},be.button));let ht=Hi(()=>be,be,(ze,tt)=>{let At=Object.keys(ze),Tt=Object.keys(tt);return At.length!==Tt.length||At.some(tr=>ze[tr]!==tt[tr])}),{layer:Mt}=lr.useContext(wi),Fe=lr.useMemo(()=>({prefixCls:et,csp:Pe,layer:Mt?"antd":void 0}),[et,Pe,Mt]),Se=lr.createElement(lr.Fragment,null,lr.createElement(Z2,{dropdownMatchSelectWidth:g}),t),Ke=lr.useMemo(()=>{var ze,tt,At,Tt;return Sa(((ze=Ei.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((At=(tt=ht.locale)===null||tt===void 0?void 0:tt.Form)===null||At===void 0?void 0:At.defaultValidateMessages)||{},((Tt=ht.form)===null||Tt===void 0?void 0:Tt.validateMessages)||{},a?.validateMessages||{})},[ht,a?.validateMessages]);Object.keys(Ke).length>0&&(Se=lr.createElement(NI.Provider,{value:Ke},Se)),s&&(Se=lr.createElement(zI,{locale:s,_ANT_MARK__:LI},Se)),(et||Pe)&&(Se=lr.createElement(ou.Provider,{value:Fe},Se)),l&&(Se=lr.createElement(g2,{size:l},Se)),Se=lr.createElement(lw,null,Se);let Be=lr.useMemo(()=>{let ze=$e||{},{algorithm:tt,token:At,components:Tt,cssVar:tr}=ze,Ft=yj(ze,["algorithm","token","components","cssVar"]),rr=tt&&(!Array.isArray(tt)||tt.length>0)?ws(tt):Od,pr={};Object.entries(Tt||{}).forEach(([kn,gr])=>{let Lt=Object.assign({},gr);"algorithm"in Lt&&(Lt.algorithm===!0?Lt.theme=rr:(Array.isArray(Lt.algorithm)||typeof Lt.algorithm=="function")&&(Lt.theme=ws(Lt.algorithm)),delete Lt.algorithm),pr[kn]=Lt});let mr=Object.assign(Object.assign({},wa),At);return Object.assign(Object.assign({},Ft),{theme:rr,token:mr,components:pr,override:Object.assign({override:mr},pr),cssVar:tr})},[$e]);return x&&(Se=lr.createElement(Pd.Provider,{value:Be},Se)),ht.warning&&(Se=lr.createElement(PI.Provider,{value:ht.warning},Se)),b!==void 0&&(Se=lr.createElement(m2,{disabled:b},Se)),lr.createElement(rt.Provider,{value:ht},Se)},pu=e=>{let t=lr.useContext(rt),r=lr.useContext(iu);return lr.createElement(Oj,Object.assign({parentContext:t,legacyLocale:r},e))};pu.ConfigContext=rt;pu.SizeContext=Pl;pu.config=Rj;pu.useConfig=h2;Object.defineProperty(pu,"SizeContext",{get:()=>Pl});var Na=pu;var fv=E($());var _j={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"},t$=_j;var Dl=E($()),l$=E(Ne());var a$=E($());function r$(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Pj(e){return r$(e)instanceof ShadowRoot}function Il(e){return Pj(e)?r$(e):null}var $l=E($());function Tj(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function o$(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function cw(e){return ue(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ue(e.icon)==="object"||typeof e.icon=="function")}function n$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Tj(r)]=n}return t},{})}function sv(e,t,r){return r?$l.default.createElement(e.tag,T(T({key:t},n$(e.attrs)),r),(e.children||[]).map(function(n,o){return sv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):$l.default.createElement(e.tag,T({key:t},n$(e.attrs)),(e.children||[]).map(function(n,o){return sv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function uw(e){return Ri(e)[0]}function lv(e){return e?Array.isArray(e)?e:[e]:[]}var Nj=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,i$=function(t){var r=(0,$l.useContext)(ou),n=r.csp,o=r.prefixCls,i=r.layer,a=Nj;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
`).concat(a,`
}`)),(0,$l.useEffect)(function(){var s=t.current,l=Il(s);yn(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])};var Ij=["icon","className","onClick","style","primaryColor","secondaryColor"],Dd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $j(e){var t=e.primaryColor,r=e.secondaryColor;Dd.primaryColor=t,Dd.secondaryColor=r||uw(t),Dd.calculated=!!r}function Dj(){return T({},Dd)}var cv=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ve(t,Ij),c=a$.useRef(),u=Dd;if(a&&(u={primaryColor:a,secondaryColor:s||uw(a)}),i$(c),o$(cw(r),"icon should be icon definiton, but got ".concat(r)),!cw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=T(T({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),sv(f.icon,"svg-".concat(f.name),T(T({className:n,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};cv.displayName="IconReact";cv.getTwoToneColors=Dj;cv.setTwoToneColors=$j;var Ad=cv;function fw(e){var t=lv(e),r=B(t,2),n=r[0],o=r[1];return Ad.setTwoToneColors({primaryColor:n,secondaryColor:o})}function s$(){var e=Ad.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Aj=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];fw(Ts.primary);var uv=Dl.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ve(e,Aj),u=Dl.useContext(ou),f=u.prefixCls,p=f===void 0?"anticon":f,g=u.rootClassName,h=(0,l$.default)(g,p,_(_({},"".concat(p,"-").concat(n.name),!!n.name),"".concat(p,"-spin"),!!o||n.name==="loading"),r),v=a;v===void 0&&s&&(v=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,m=lv(l),d=B(m,2),x=d[0],b=d[1];return Dl.createElement("span",fe({role:"img","aria-label":n.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),Dl.createElement(Ad,{icon:n,primaryColor:x,secondaryColor:b,style:y}))});uv.displayName="AntdIcon";uv.getTwoToneColor=s$;uv.setTwoToneColor=fw;var zt=uv;var kj=function(t,r){return fv.createElement(zt,fe({},t,{ref:r,icon:t$}))},Mj=fv.forwardRef(kj),c$=Mj;var dv=E($());var Fj={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"},u$=Fj;var Lj=function(t,r){return dv.createElement(zt,fe({},t,{ref:r,icon:u$}))},zj=dv.forwardRef(Lj),mu=zj;var mv=E($());var Wj={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"},pv=Wj;var Bj=function(t,r){return mv.createElement(zt,fe({},t,{ref:r,icon:pv}))},jj=mv.forwardRef(Bj),gv=jj;var Vj=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Hj=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Uj="".concat(Vj," ").concat(Hj).split(/[\s\n]+/),qj="aria-",Gj="data-";function f$(e,t){return e.indexOf(t)===0}function qo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=T({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||f$(o,qj))||r.data&&f$(o,Gj)||r.attr&&Uj.includes(o))&&(n[o]=e[o])}),n}var kd=E($());function hv(e){return e&&kd.default.isValidElement(e)&&e.type===kd.default.Fragment}var Kj=(e,t,r)=>kd.default.isValidElement(e)?kd.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Go(e,t){return Kj(e,e,t)}var Xj=e=>{let[,,,,t]=xr();return t?`${e}-css-var`:""},Ko=Xj;var st={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(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=st.F1&&r<=st.F12)return!1;switch(r){case st.ALT:case st.CAPS_LOCK:case st.CONTEXT_MENU:case st.CTRL:case st.DOWN:case st.END:case st.ESC:case st.HOME:case st.INSERT:case st.LEFT:case st.MAC_FF_META:case st.META:case st.NUMLOCK:case st.NUM_CENTER:case st.PAGE_DOWN:case st.PAGE_UP:case st.PAUSE:case st.PRINT_SCREEN:case st.RIGHT:case st.SHIFT:case st.UP:case st.WIN_KEY:case st.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=st.ZERO&&t<=st.NINE||t>=st.NUM_ZERO&&t<=st.NUM_MULTIPLY||t>=st.A&&t<=st.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case st.SPACE:case st.QUESTION_MARK:case st.NUM_PLUS:case st.NUM_MINUS:case st.NUM_PERIOD:case st.NUM_DIVISION:case st.SEMICOLON:case st.DASH:case st.EQUALS:case st.COMMA:case st.PERIOD:case st.SLASH:case st.APOSTROPHE:case st.SINGLE_QUOTE:case st.OPEN_SQUARE_BRACKET:case st.BACKSLASH:case st.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ye=st;var vv=E($());var Yj={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"},d$=Yj;var Qj=function(t,r){return vv.createElement(zt,fe({},t,{ref:r,icon:d$}))},Jj=vv.forwardRef(Qj),Al=Jj;var m$=E($());var p$=E($()),Zj=p$.default.createContext(void 0),yv=Zj;var Ia=100,e8=10,t8=Ia*e8,sfe=t8+Ia,g$={Modal:Ia,Drawer:Ia,Popover:Ia,Popconfirm:Ia,Tooltip:Ia,Tour:Ia,FloatButton:Ia},r8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function n8(e){return e in g$}var xv=(e,t)=>{let[,r]=xr(),n=m$.default.useContext(yv),o=n8(e),i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+g$[e]:a+=r8[e],i=[n===void 0?t:a,a]}return i};var f8=E($()),vfe=E(Vi());function kt(){"use strict";kt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(N,I,D){N[I]=D.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(N,I,D){return Object.defineProperty(N,I,{value:D,enumerable:!0,configurable:!0,writable:!0}),N[I]}try{c({},"")}catch{c=function(D,U,z){return D[U]=z}}function u(N,I,D,U){var z=I&&I.prototype instanceof m?I:m,W=Object.create(z.prototype),q=new H(U||[]);return o(W,"_invoke",{value:O(N,D,q)}),W}function f(N,I,D){try{return{type:"normal",arg:N.call(I,D)}}catch(U){return{type:"throw",arg:U}}}t.wrap=u;var p="suspendedStart",g="suspendedYield",h="executing",v="completed",y={};function m(){}function d(){}function x(){}var b={};c(b,a,function(){return this});var S=Object.getPrototypeOf,w=S&&S(S(L([])));w&&w!==r&&n.call(w,a)&&(b=w);var C=x.prototype=m.prototype=Object.create(b);function R(N){["next","throw","return"].forEach(function(I){c(N,I,function(D){return this._invoke(I,D)})})}function P(N,I){function D(z,W,q,j){var k=f(N[z],N,W);if(k.type!=="throw"){var V=k.arg,G=V.value;return G&&ue(G)=="object"&&n.call(G,"__await")?I.resolve(G.__await).then(function(J){D("next",J,q,j)},function(J){D("throw",J,q,j)}):I.resolve(G).then(function(J){V.value=J,q(V)},function(J){return D("throw",J,q,j)})}j(k.arg)}var U;o(this,"_invoke",{value:function(W,q){function j(){return new I(function(k,V){D(W,q,k,V)})}return U=U?U.then(j,j):j()}})}function O(N,I,D){var U=p;return function(z,W){if(U===h)throw Error("Generator is already running");if(U===v){if(z==="throw")throw W;return{value:e,done:!0}}for(D.method=z,D.arg=W;;){var q=D.delegate;if(q){var j=A(q,D);if(j){if(j===y)continue;return j}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(U===p)throw U=v,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);U=h;var k=f(N,I,D);if(k.type==="normal"){if(U=D.done?v:g,k.arg===y)continue;return{value:k.arg,done:D.done}}k.type==="throw"&&(U=v,D.method="throw",D.arg=k.arg)}}}function A(N,I){var D=I.method,U=N.iterator[D];if(U===e)return I.delegate=null,D==="throw"&&N.iterator.return&&(I.method="return",I.arg=e,A(N,I),I.method==="throw")||D!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+D+"' method")),y;var z=f(U,N.iterator,I.arg);if(z.type==="throw")return I.method="throw",I.arg=z.arg,I.delegate=null,y;var W=z.arg;return W?W.done?(I[N.resultName]=W.value,I.next=N.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,y):W:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,y)}function F(N){var I={tryLoc:N[0]};1 in N&&(I.catchLoc=N[1]),2 in N&&(I.finallyLoc=N[2],I.afterLoc=N[3]),this.tryEntries.push(I)}function M(N){var I=N.completion||{};I.type="normal",delete I.arg,N.completion=I}function H(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(F,this),this.reset(!0)}function L(N){if(N||N===""){var I=N[a];if(I)return I.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var D=-1,U=function z(){for(;++D<N.length;)if(n.call(N,D))return z.value=N[D],z.done=!1,z;return z.value=e,z.done=!0,z};return U.next=U}}throw new TypeError(ue(N)+" is not iterable")}return d.prototype=x,o(C,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:d,configurable:!0}),d.displayName=c(x,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var I=typeof N=="function"&&N.constructor;return!!I&&(I===d||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,x):(N.__proto__=x,c(N,l,"GeneratorFunction")),N.prototype=Object.create(C),N},t.awrap=function(N){return{__await:N}},R(P.prototype),c(P.prototype,s,function(){return this}),t.AsyncIterator=P,t.async=function(N,I,D,U,z){z===void 0&&(z=Promise);var W=new P(u(N,I,D,U),z);return t.isGeneratorFunction(I)?W:W.next().then(function(q){return q.done?q.value:W.next()})},R(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function(N){var I=Object(N),D=[];for(var U in I)D.push(U);return D.reverse(),function z(){for(;D.length;){var W=D.pop();if(W in I)return z.value=W,z.done=!1,z}return z.done=!0,z}},t.values=L,H.prototype={constructor:H,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!I)for(var D in this)D.charAt(0)==="t"&&n.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var D=this;function U(V,G){return q.type="throw",q.arg=I,D.next=V,G&&(D.method="next",D.arg=e),!!G}for(var z=this.tryEntries.length-1;z>=0;--z){var W=this.tryEntries[z],q=W.completion;if(W.tryLoc==="root")return U("end");if(W.tryLoc<=this.prev){var j=n.call(W,"catchLoc"),k=n.call(W,"finallyLoc");if(j&&k){if(this.prev<W.catchLoc)return U(W.catchLoc,!0);if(this.prev<W.finallyLoc)return U(W.finallyLoc)}else if(j){if(this.prev<W.catchLoc)return U(W.catchLoc,!0)}else{if(!k)throw Error("try statement without catch or finally");if(this.prev<W.finallyLoc)return U(W.finallyLoc)}}}},abrupt:function(I,D){for(var U=this.tryEntries.length-1;U>=0;--U){var z=this.tryEntries[U];if(z.tryLoc<=this.prev&&n.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var W=z;break}}W&&(I==="break"||I==="continue")&&W.tryLoc<=D&&D<=W.finallyLoc&&(W=null);var q=W?W.completion:{};return q.type=I,q.arg=D,W?(this.method="next",this.next=W.finallyLoc,y):this.complete(q)},complete:function(I,D){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&D&&(this.next=D),y},finish:function(I){for(var D=this.tryEntries.length-1;D>=0;--D){var U=this.tryEntries[D];if(U.finallyLoc===I)return this.complete(U.completion,U.afterLoc),M(U),y}},catch:function(I){for(var D=this.tryEntries.length-1;D>=0;--D){var U=this.tryEntries[D];if(U.tryLoc===I){var z=U.completion;if(z.type==="throw"){var W=z.arg;M(U)}return W}}throw Error("illegal catch attempt")},delegateYield:function(I,D,U){return this.delegate={iterator:L(I),resultName:D,nextLoc:U},this.method==="next"&&(this.arg=e),y}},t}function h$(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function ln(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){h$(i,n,o,a,s,"next",l)}function s(l){h$(i,n,o,a,s,"throw",l)}a(void 0)})}}var o8=E(Vi()),Md=T({},o8),i8=Md.version,dw=Md.render,a8=Md.unmountComponentAtNode,Sv;try{v$=Number((i8||"").split(".")[0]),v$>=18&&(Sv=Md.createRoot)}catch{}var v$;function y$(e){var t=Md.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ue(t)==="object"&&(t.usingClientEntryPoint=e)}var bv="__rc_react_root__";function s8(e,t){y$(!0);var r=t[bv]||Sv(t);y$(!1),r.render(e),t[bv]=r}function l8(e,t){dw?.(e,t)}function x$(e,t){if(Sv){s8(e,t);return}l8(e,t)}function c8(e){return pw.apply(this,arguments)}function pw(){return pw=ln(kt().mark(function e(t){return kt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[bv])===null||o===void 0||o.unmount(),delete t[bv]}));case 1:case"end":return n.stop()}},e)})),pw.apply(this,arguments)}function u8(e){a8(e)}function b$(e){return mw.apply(this,arguments)}function mw(){return mw=ln(kt().mark(function e(t){return kt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Sv===void 0){n.next=2;break}return n.abrupt("return",c8(t));case 2:u8(t);case 3:case"end":return n.stop()}},e)})),mw.apply(this,arguments)}var d8=(e,t)=>(x$(e,t),()=>b$(t)),S$=d8;function C$(e){return e&&(S$=e),S$}var gw=()=>({height:0,opacity:0}),w$=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},p8=e=>({height:e?e.offsetHeight:0}),hw=(e,t)=>t?.deadline===!0||t.propertyName==="height",m8=(e=Ns)=>({motionName:`${e}-motion-collapse`,onAppearStart:gw,onEnterStart:gw,onAppearActive:w$,onEnterActive:w$,onLeaveStart:p8,onLeaveActive:gw,onAppearEnd:hw,onEnterEnd:hw,onLeaveEnd:hw,motionDeadline:500});var Cv=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var E$=m8;var Wt=E($()),Vv=E(Ne());function qr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var kl=E($()),N$=E(Ne());var wv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};var g8=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},R$=XC("Wave",e=>[g8(e)]);var Ev=E($());var gu=`${Ns}-wave-target`;var cn=E($()),_$=E(Ne());function vw(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function O$(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return vw(t)?t:vw(r)?r:vw(n)?n:null}function yw(e){return Number.isNaN(e)?0:e}var h8=e=>{let{className:t,target:r,component:n,registerUnmount:o}=e,i=cn.useRef(null),a=cn.useRef(null);cn.useEffect(()=>{a.current=o()},[]);let[s,l]=cn.useState(null),[c,u]=cn.useState([]),[f,p]=cn.useState(0),[g,h]=cn.useState(0),[v,y]=cn.useState(0),[m,d]=cn.useState(0),[x,b]=cn.useState(!1),S={left:f,top:g,width:v,height:m,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(S["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(O$(r));let P=R.position==="static",{borderLeftWidth:O,borderTopWidth:A}=R;p(P?r.offsetLeft:yw(-parseFloat(O))),h(P?r.offsetTop:yw(-parseFloat(A))),y(r.offsetWidth),d(r.offsetHeight);let{borderTopLeftRadius:F,borderTopRightRadius:M,borderBottomLeftRadius:H,borderBottomRightRadius:L}=R;u([F,M,L,H].map(N=>yw(parseFloat(N))))}if(cn.useEffect(()=>{if(r){let R=dt(()=>{w(),b(!0)}),P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(w),P.observe(r)),()=>{dt.cancel(R),P?.disconnect()}}},[]),!x)return null;let C=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(gu);return cn.createElement(Uo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var O,A;if(P.deadline||P.propertyName==="opacity"){let F=(O=i.current)===null||O===void 0?void 0:O.parentElement;(A=a.current)===null||A===void 0||A.call(a).then(()=>{F?.remove()})}return!1}},({className:R},P)=>cn.createElement("div",{ref:Lr(i,P),className:(0,_$.default)(t,R,{"wave-quick":C}),style:S}))},v8=(e,t)=>{var r;let{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);let i=C$(),a=null;function s(){return a}a=i(cn.createElement(h8,Object.assign({},t,{target:e,registerUnmount:s})),o)},P$=v8;var y8=(e,t,r)=>{let{wave:n}=Ev.useContext(rt),[,o,i]=xr(),a=wt(c=>{let u=e.current;if(n?.disabled||!u)return;let f=u.querySelector(`.${gu}`)||u,{showEffect:p}=n||{};(p||P$)(f,{className:t,token:o,component:r,event:c,hashId:i})}),s=Ev.useRef(null);return c=>{dt.cancel(s.current),s.current=dt(()=>{a(c)})}},T$=y8;var x8=e=>{let{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=(0,kl.useContext)(rt),i=(0,kl.useRef)(null),a=o("wave"),[,s]=R$(a),l=T$(i,(0,N$.default)(a,s),n);if(kl.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=p=>{!wv(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!kl.default.isValidElement(t))return t??null;let c=bi(t)?Lr(ys(t),i):i;return Go(t,{ref:c})},Rv=x8;var xw=E($());var b8=e=>{let t=xw.default.useContext(Pl);return xw.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},ao=b8;var $s=E($()),I$=E(Ne());var $$=$s.createContext(null),Xo=(e,t)=>{let r=$s.useContext($$),n=$s.useMemo(()=>{if(!r)return"";let{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return(0,I$.default)(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},D$=e=>{let{children:t}=e;return $s.createElement($$.Provider,{value:null},t)};var $a=E($()),A$=E(Ne());var S8=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},bw=$a.createContext(void 0),C8=e=>{let{getPrefixCls:t,direction:r}=$a.useContext(rt),{prefixCls:n,size:o,className:i}=e,a=S8(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=xr(),c=$a.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=(0,A$.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return $a.createElement(bw.Provider,{value:o},$a.createElement("div",Object.assign({},a,{className:u})))},k$=C8;var hu=E($());var M$=/^[\u4E00-\u9FA5]{2}$/,Ov=M$.test.bind(M$);function F$(e){return typeof e=="string"}function _v(e){return e==="text"||e==="link"}function w8(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&F$(e.type)&&Ov(e.props.children)?Go(e,{children:e.props.children.split("").join(r)}):F$(e)?Ov(e)?hu.default.createElement("span",null,e.split("").join(r)):hu.default.createElement("span",null,e):hv(e)?hu.default.createElement("span",null,e):e}function L$(e,t){let r=!1,n=[];return hu.default.Children.forEach(e,o=>{let i=typeof o,a=i==="string"||i==="number";if(r&&a){let s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=a}),hu.default.Children.map(n,o=>w8(o,t))}var ade=["default","primary","danger"].concat(te(Eo));var Ds=E($());var ww=E(Ne());var Pv=E($()),z$=E(Ne()),E8=(0,Pv.forwardRef)((e,t)=>{let{className:r,style:n,children:o,prefixCls:i}=e,a=(0,z$.default)(`${i}-icon`,r);return Pv.default.createElement("span",{ref:t,className:a,style:n},o)}),Fd=E8;var W$=(0,Ds.forwardRef)((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=(0,ww.default)(`${r}-loading-icon`,n);return Ds.default.createElement(Fd,{prefixCls:r,className:a,style:o,ref:t},Ds.default.createElement(Al,{className:i}))}),Sw=()=>({width:0,opacity:0,transform:"scale(0)"}),Cw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),R8=e=>{let{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?Ds.default.createElement(W$,{prefixCls:t,className:o,style:i}):Ds.default.createElement(Uo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Sw,onAppearActive:Cw,onEnterStart:Sw,onEnterActive:Cw,onLeaveStart:Cw,onLeaveActive:Sw},({className:l,style:c},u)=>{let f=Object.assign(Object.assign({},i),c);return Ds.default.createElement(W$,{prefixCls:t,className:(0,ww.default)(o,l),style:f,ref:u})})},B$=R8;var j$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),O8=e=>{let{componentCls:t,fontSize:r,lineWidth:n,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:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},j$(`${t}-primary`,o),j$(`${t}-danger`,i)]}},V$=O8;var _w=E($());var _8=["b"],P8=["v"],Ew=function(t){return Math.round(Number(t||0))},T8=function(t){if(t instanceof gt)return t;if(t&&ue(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=Ve(r,_8);return T(T({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Yo=function(e){Ir(r,e);var t=$r(r);function r(n){return it(this,r),t.call(this,T8(n))}return at(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Ew(o.s*100),a=Ew(o.b*100),s=Ew(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=Ve(o,P8);return T(T({},a),{},{b:i,a:this.a})}}]),r}(gt);var Rw=function(t){return t instanceof Yo?t:new Yo(t)},N8=Rw("#1677ff");var U8=E(Ne());var I8=E(Ne()),$8=E($());var U$=E($());var Ow=E($());var D8=E(Ne()),A8=E($());var k8=E($());var H$=E($());var j8=E($());var H8=E($());var G$=E($());var V8=E(Ne());var q$=E($());var q8=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",G8=(e,t)=>e?q8(e,t):"",X$=function(){function e(t){it(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new Yo(this.colors[0].color.metaColor)):this.metaColor=new Yo(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return at(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return G8(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{let i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();var bD=E($());var eV=E(Ne());var K8=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Pw=K8;var X8=e=>({animationDuration:e,animationFillMode:"both"}),Y8=e=>({animationDuration:e,animationFillMode:"both"}),As=(e,t,r,n,o=!1)=>{let i=o?"&":"";return{[`
${i}${e}-enter,
${i}${e}-appear
`]:Object.assign(Object.assign({},X8(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Y8(n)),{animationPlayState:"paused"}),[`
${i}${e}-enter${e}-enter-active,
${i}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}};var Y$=new yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Q$=new yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Tw=(e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[As(n,Y$,Q$,e.motionDurationMid,t),{[`
${o}${n}-enter,
${o}${n}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var J$=new yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Z$=new yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),eD=new yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tD=new yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rD=new yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nD=new yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oD=new yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),iD=new yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Q8={"move-up":{inKeyframes:oD,outKeyframes:iD},"move-down":{inKeyframes:J$,outKeyframes:Z$},"move-left":{inKeyframes:eD,outKeyframes:tD},"move-right":{inKeyframes:rD,outKeyframes:nD}},Tv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Q8[t];return[As(n,o,i,e.motionDurationMid),{[`
${n}-enter,
${n}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Nv=new yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Iv=new yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$v=new yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Dv=new yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),aD=new yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),sD=new yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),lD=new yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),cD=new yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),J8={"slide-up":{inKeyframes:Nv,outKeyframes:Iv},"slide-down":{inKeyframes:$v,outKeyframes:Dv},"slide-left":{inKeyframes:aD,outKeyframes:sD},"slide-right":{inKeyframes:lD,outKeyframes:cD}},Av=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=J8[t];return[As(n,o,i,e.motionDurationMid),{[`
${n}-enter,
${n}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var uD=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fD=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nw=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Iw=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),dD=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pD=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),mD=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),gD=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),hD=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),vD=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),yD=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),xD=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Z8={zoom:{inKeyframes:uD,outKeyframes:fD},"zoom-big":{inKeyframes:Nw,outKeyframes:Iw},"zoom-big-fast":{inKeyframes:Nw,outKeyframes:Iw},"zoom-left":{inKeyframes:mD,outKeyframes:gD},"zoom-right":{inKeyframes:hD,outKeyframes:vD},"zoom-up":{inKeyframes:dD,outKeyframes:pD},"zoom-down":{inKeyframes:yD,outKeyframes:xD}},$w=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Z8[t];return[As(n,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${n}-enter,
${n}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var SD=(e,t)=>{let{r,g:n,b:o,a:i}=e.toRgb(),a=new Yo(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+n*.587+o*.114>192};var kv=e=>{let{paddingInline:t,onlyIconSize:r}=e;return ut(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},Mv=e=>{var t,r,n,o,i,a;let s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:su(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:su(l),p=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:su(c),g=SD(new X$(e.colorBgSolid),"#fff")?"#000":"#fff",h=Eo.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${Tl(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})};var tV=e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:_a(),"> a":{color:"currentColor"},"&:not(:disabled)":D2(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},CD=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),rV=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),nV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),oV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Fv=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},CD(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),iV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},oV(e))}),aV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Lv=(e,t,r,n)=>{let i=n&&["link","text"].includes(n)?aV:iV;return Object.assign(Object.assign({},i(e)),CD(e.componentCls,t,r))},zv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Lv(e,n,o))}),Wv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Lv(e,n,o))}),Bv=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),jv=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Lv(e,r,n))}),Ki=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Lv(e,n,o,r))}),sV=e=>{let{componentCls:t}=e;return Eo.reduce((r,n)=>{let o=e[`${n}6`],i=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},zv(e,e.colorTextLightSolid,o,{background:a},{background:c})),Wv(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Bv(e)),jv(e,i,{background:s},{background:l})),Ki(e,o,"link",{color:a},{color:c})),Ki(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},lV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},zv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Bv(e)),jv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Fv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ki(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),cV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Wv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Bv(e)),jv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ki(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ki(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Fv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),uV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},zv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Wv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Bv(e)),jv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ki(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ki(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Fv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fV=e=>Object.assign(Object.assign({},Ki(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Fv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),dV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:lV(e),[`${t}-color-primary`]:cV(e),[`${t}-color-dangerous`]:uV(e),[`${t}-color-link`]:fV(e)},sV(e))},pV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Wv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ki(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),zv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ki(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Dw=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${oe(l)} ${oe(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:rV(e)},{[`${r}${r}-round${t}`]:nV(e)}]},mV=e=>{let t=ut(e,{fontSize:e.contentFontSize});return Dw(t,e.componentCls)},gV=e=>{let t=ut(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Dw(t,`${e.componentCls}-sm`)},hV=e=>{let t=ut(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Dw(t,`${e.componentCls}-lg`)},vV=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},wD=Gt("Button",e=>{let t=kv(e);return[tV(t),mV(t),gV(t),hV(t),vV(t),dV(t),pV(t),V$(t)]},Mv,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function yV(e,t,r){let{focusElCls:n,focus:o,borderElCls:i}=r,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function xV(e,t,r){let{borderElCls:n}=r,o=n?`> ${n}`:"";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 ks(e,t={focus:!0}){let{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},yV(e,n,t)),xV(r,n,t))}}function bV(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function SV(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function ED(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},bV(e,t)),SV(e.componentCls,t))}}var CV=e=>{let{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=s=>{let l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},RD=YC(["Button","compact"],e=>{let t=kv(e);return[ks(t),ED(t),CV(t)]},Mv);var wV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function EV(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var RV={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},OV=Wt.default.forwardRef((e,t)=>{var r,n;let{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:f,styles:p,disabled:g,className:h,rootClassName:v,children:y,icon:m,iconPosition:d="start",ghost:x=!1,block:b=!1,htmlType:S="button",classNames:w,style:C={},autoInsertSpace:R,autoFocus:P}=e,O=wV(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=l||"default",{button:F}=Wt.default.useContext(rt),[M,H]=(0,Wt.useMemo)(()=>{if(a&&s)return[a,s];if(l||c){let _e=RV[A]||[];return c?["danger",_e[1]]:_e}return F?.color&&F?.variant?[F.color,F.variant]:["default","outlined"]},[l,a,s,c,F?.variant,F?.color]),N=M==="danger"?"dangerous":M,{getPrefixCls:I,direction:D,autoInsertSpace:U,className:z,style:W,classNames:q,styles:j}=no("button"),k=(r=R??U)!==null&&r!==void 0?r:!0,V=I("btn",i),[G,J,Y]=wD(V),X=(0,Wt.useContext)(Ur),ae=g??X,Z=(0,Wt.useContext)(bw),K=(0,Wt.useMemo)(()=>EV(o),[o]),[Q,re]=(0,Wt.useState)(K.loading),[ee,ne]=(0,Wt.useState)(!1),de=(0,Wt.useRef)(null),le=xi(t,de),pe=Wt.Children.count(y)===1&&!m&&!_v(H),Oe=(0,Wt.useRef)(!0);Wt.default.useEffect(()=>(Oe.current=!1,()=>{Oe.current=!0}),[]),(0,Wt.useEffect)(()=>{let _e=null;K.delay>0?_e=setTimeout(()=>{_e=null,re(!0)},K.delay):re(K.loading);function he(){_e&&(clearTimeout(_e),_e=null)}return he},[K]),(0,Wt.useEffect)(()=>{if(!de.current||!k)return;let _e=de.current.textContent||"";pe&&Ov(_e)?ee||ne(!0):ee&&ne(!1)}),(0,Wt.useEffect)(()=>{P&&de.current&&de.current.focus()},[]);let Ce=Wt.default.useCallback(_e=>{var he;if(Q||ae){_e.preventDefault();return}(he=e.onClick)===null||he===void 0||he.call(e,("href"in e,_e))},[e.onClick,Q,ae]),{compactSize:De,compactItemClassnames:ce}=Xo(V,D),ie={large:"lg",small:"sm",middle:void 0},Re=ao(_e=>{var he,Je;return(Je=(he=f??De)!==null&&he!==void 0?he:Z)!==null&&Je!==void 0?Je:_e}),Le=Re&&(n=ie[Re])!==null&&n!==void 0?n:"",Ge=Q?"loading":m,Me=qr(O,["navigate"]),Ie=(0,Vv.default)(V,J,Y,{[`${V}-${u}`]:u!=="default"&&u,[`${V}-${A}`]:A,[`${V}-dangerous`]:c,[`${V}-color-${N}`]:N,[`${V}-variant-${H}`]:H,[`${V}-${Le}`]:Le,[`${V}-icon-only`]:!y&&y!==0&&!!Ge,[`${V}-background-ghost`]:x&&!_v(H),[`${V}-loading`]:Q,[`${V}-two-chinese-chars`]:ee&&k&&!Q,[`${V}-block`]:b,[`${V}-rtl`]:D==="rtl",[`${V}-icon-end`]:d==="end"},ce,h,v,z),je=Object.assign(Object.assign({},W),C),We=(0,Vv.default)(w?.icon,q.icon),He=Object.assign(Object.assign({},p?.icon||{}),j.icon||{}),ye=m&&!Q?Wt.default.createElement(Fd,{prefixCls:V,className:We,style:He},m):o&&typeof o=="object"&&o.icon?Wt.default.createElement(Fd,{prefixCls:V,className:We,style:He},o.icon):Wt.default.createElement(B$,{existIcon:!!m,prefixCls:V,loading:Q,mount:Oe.current}),se=y||y===0?L$(y,pe&&k):null;if(Me.href!==void 0)return G(Wt.default.createElement("a",Object.assign({},Me,{className:(0,Vv.default)(Ie,{[`${V}-disabled`]:ae}),href:ae?void 0:Me.href,style:je,onClick:Ce,ref:le,tabIndex:ae?-1:0}),ye,se));let xe=Wt.default.createElement("button",Object.assign({},O,{type:S,className:Ie,style:je,onClick:Ce,disabled:ae,ref:le}),ye,se,ce&&Wt.default.createElement(RD,{prefixCls:V}));return _v(H)||(xe=Wt.default.createElement(Rv,{component:"Button",disabled:Q},xe)),G(xe)}),Aw=OV;Aw.Group=k$;Aw.__ANT_BUTTON=!0;var OD=Aw;var Ld=OD;var Qo=E($()),kD=E(Vi());var _D=E($()),_V=_D.createContext(null),Hv=_V;var Ml=E($());var PD=[];function kw(e,t){var r=Ml.useState(function(){if(!Yt())return null;var h=document.createElement("div");return h}),n=B(r,1),o=n[0],i=Ml.useRef(!1),a=Ml.useContext(Hv),s=Ml.useState(PD),l=B(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(h){u(function(v){var y=[h].concat(te(v));return y})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return vt(function(){return e?a?a(p):p():g(),g},[e]),vt(function(){c.length&&(c.forEach(function(h){return h()}),u(PD))},[c]),[o,f]}var $D=E($());function PV(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";yn(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(u,`
`).concat(f,`
}`),t)}catch(h){console.error(h),o=l,i=c}}document.body.appendChild(r);var p=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,g=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Ui(t),{width:p,height:g}}function TD(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:PV(e)}function ND(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var TV="rc-util-locker-".concat(Date.now()),ID=0;function Mw(e){var t=!!e,r=$D.useState(function(){return ID+=1,"".concat(TV,"_").concat(ID)}),n=B(r,1),o=n[0];vt(function(){if(t){var i=TD(document.body).width,a=ND();yn(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o)}else Ui(o);return function(){Ui(o)}},[t,o])}var DD=!1;function Fw(e){return typeof e=="boolean"&&(DD=e),DD}var AD=function(t){return t===!1?!1:!Yt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},NV=Qo.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=Qo.useState(r),u=B(c,2),f=u[0],p=u[1],g=f||r;Qo.useEffect(function(){(s||r)&&p(r)},[r,s]);var h=Qo.useState(function(){return AD(o)}),v=B(h,2),y=v[0],m=v[1];Qo.useEffect(function(){var F=AD(o);m(F??null)});var d=kw(g&&!y,i),x=B(d,2),b=x[0],S=x[1],w=y??b;Mw(n&&r&&Yt()&&(w===b||w===document.body));var C=null;if(l&&bi(l)&&t){var R=l;C=R.ref}var P=xi(C,t);if(!g||!Yt()||y===void 0)return null;var O=w===!1||Fw(),A=l;return t&&(A=Qo.cloneElement(l,{ref:P})),Qo.createElement(Hv.Provider,{value:S},O?A:(0,kD.createPortal)(A,w))}),MD=NV;var Lw=MD;var zd=E($());function IV(){var e=T({},zd);return e.useId}var FD=0;var LD=IV(),Uv=LD?function(t){var r=LD();return t||r}:function(t){var r=zd.useState("ssr-id"),n=B(r,2),o=n[0],i=n[1];return zd.useEffect(function(){var a=FD;FD+=1,i("rc_unique_".concat(a))},[]),t||o};var Zw=E($());var Da=E($());var PA=E($());var Gn=E($());var zD=E($()),Oi="RC_FORM_INTERNAL_HOOKS",Kt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},$V=zD.createContext({getFieldValue:Kt,getFieldsValue:Kt,getFieldError:Kt,getFieldWarning:Kt,getFieldsError:Kt,isFieldsTouched:Kt,isFieldTouched:Kt,isFieldValidating:Kt,isFieldsValidating:Kt,resetFields:Kt,setFields:Kt,setFieldValue:Kt,setFieldsValue:Kt,validateFields:Kt,submit:Kt,getInternalHooks:function(){return Kt(),{dispatch:Kt,initEntityValue:Kt,registerField:Kt,useSubscribe:Kt,setInitialValues:Kt,destroyForm:Kt,setCallbacks:Kt,registerWatch:Kt,getFields:Kt,setValidateMessages:Kt,setPreserve:Kt,getInitialValue:Kt}}}),_i=$V;var WD=E($()),DV=WD.createContext(null),Ms=DV;function Wd(e){return e==null?[]:Array.isArray(e)?e:[e]}function BD(e){return e&&!!e._init}function qv(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Gv=qv();function jD(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function VD(e,t,r){if(gd())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&bs(o,r.prototype),o}function Kv(e){var t=typeof Map=="function"?new Map:void 0;return Kv=function(n){if(n===null||!jD(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return VD(n,arguments,wl(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),bs(o,n)},Kv(e)}var AV=/%[sdj%]/g,qD=function(){};typeof process<"u"&&process.env;function Xv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Gr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(AV,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function kV(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Dt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||kV(t)&&typeof e=="string"&&!e)}function MV(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,te(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function HD(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<o?t(e[s],i):r([])}i([])}function FV(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,te(e[r]||[]))}),t}var UD=function(e){Ir(r,e);var t=$r(r);function r(n,o){var i;return it(this,r),i=t.call(this,"Async Validation Error"),_(Ze(i),"errors",void 0),_(Ze(i),"fields",void 0),i.errors=n,i.fields=o,i}return at(r)}(Kv(Error));function GD(e,t,r,n,o){if(t.first){var i=new Promise(function(p,g){var h=function(m){return n(m),m.length?g(new UD(m,Xv(m))):p(o)},v=FV(e);HD(v,r,h)});return i.catch(function(p){return p}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(p,g){var h=function(y){if(u.push.apply(u,y),c++,c===l)return n(u),u.length?g(new UD(u,Xv(u))):p(o)};s.length||(n(u),p(o)),s.forEach(function(v){var y=e[v];a.indexOf(v)!==-1?HD(y,r,h):MV(y,r,h)})});return f.catch(function(p){return p}),f}function LV(e){return!!(e&&e.message!==void 0)}function zV(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function zw(e,t){return function(r){var n;return e.fullFields?n=zV(t,e.fullFields):n=t[r.field||e.fullField],LV(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Ww(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];ue(n)==="object"&&ue(e[r])==="object"?e[r]=T(T({},e[r]),n):e[r]=n}}return e}var vu="enum",WV=function(t,r,n,o,i){t[vu]=Array.isArray(t[vu])?t[vu]:[],t[vu].indexOf(r)===-1&&o.push(Gr(i.messages[vu],t.fullField,t[vu].join(", ")))},KD=WV;var BV=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Gr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||o.push(Gr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},XD=BV;var jV=function(t,r,n,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,p=typeof r=="number",g=typeof r=="string",h=Array.isArray(r);if(p?f="number":g?f="string":h&&(f="array"),!f)return!1;h&&(u=r.length),g&&(u=r.replace(c,"_").length),a?u!==t.len&&o.push(Gr(i.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Gr(i.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Gr(i.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Gr(i.messages[f].range,t.fullField,t.min,t.max))},YD=jV;var VV=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||Dt(r,a||t.type))&&o.push(Gr(i.messages.required,t.fullField))},Yv=VV;var Qv,QD=function(){if(Qv)return Qv;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},u.v6=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,h=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",d="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',b="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(g,"|").concat(h,"|").concat(v).concat(y).concat(m,")").concat(d).concat(x);return Qv=new RegExp("(?:^".concat(b,"$)"),"i"),Qv};var JD={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Bd={integer:function(t){return Bd.number(t)&&parseInt(t,10)===t},float:function(t){return Bd.number(t)&&!Bd.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ue(t)==="object"&&!Bd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(JD.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(QD())},hex:function(t){return typeof t=="string"&&!!t.match(JD.hex)}},HV=function(t,r,n,o,i){if(t.required&&r===void 0){Yv(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Bd[s](r)||o.push(Gr(i.messages.types[s],t.fullField,t.type)):s&&ue(r)!==t.type&&o.push(Gr(i.messages.types[s],t.fullField,t.type))},ZD=HV;var UV=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(Gr(i.messages.whitespace,t.fullField))},eA=UV;var ot={required:Yv,whitespace:eA,type:ZD,range:YD,enum:KD,pattern:XD};var qV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i)}n(a)},tA=qV;var GV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ot.required(t,r,o,a,i,"array"),r!=null&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},rA=GV;var KV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},nA=KV;var XV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r,"date")&&!t.required)return n();if(ot.required(t,r,o,a,i),!Dt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),ot.type(t,l,o,a,i),l&&ot.range(t,l.getTime(),o,a,i)}}n(a)},oA=XV;var YV="enum",QV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot[YV](t,r,o,a,i)}n(a)},iA=QV;var JV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},aA=JV;var ZV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},sA=ZV;var eH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},lA=eH;var tH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},cA=tH;var rH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},uA=rH;var nH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r,"string")&&!t.required)return n();ot.required(t,r,o,a,i),Dt(r,"string")||ot.pattern(t,r,o,a,i)}n(a)},fA=nH;var oH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r)&&!t.required)return n();ot.required(t,r,o,a,i),Dt(r)||ot.type(t,r,o,a,i)}n(a)},dA=oH;var iH=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":ue(r);ot.required(t,r,o,a,i,s),n(a)},pA=iH;var aH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dt(r,"string")&&!t.required)return n();ot.required(t,r,o,a,i,"string"),Dt(r,"string")||(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i),ot.pattern(t,r,o,a,i),t.whitespace===!0&&ot.whitespace(t,r,o,a,i))}n(a)},mA=aH;var sH=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Dt(r,a)&&!t.required)return n();ot.required(t,r,o,s,i,a),Dt(r,a)||ot.type(t,r,o,s,i)}n(s)},Jv=sH;var yu={string:mA,method:lA,number:cA,boolean:nA,regexp:dA,integer:sA,float:aA,array:rA,object:uA,enum:iA,pattern:fA,date:oA,url:Jv,hex:Jv,email:Jv,required:pA,any:tA};var jd=function(){function e(t){it(this,e),_(this,"rules",null),_(this,"_messages",Gv),this.define(t)}return at(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ue(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=Ww(qv(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var v=[],y={};function m(x){if(Array.isArray(x)){var b;v=(b=v).concat.apply(b,te(x))}else v.push(x)}for(var d=0;d<h.length;d++)m(h[d]);v.length?(y=Xv(v),l(v,y)):l(null,a)}if(s.messages){var u=this.messages();u===Gv&&(u=qv()),Ww(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},p=s.keys||Object.keys(this.rules);p.forEach(function(h){var v=n.rules[h],y=a[h];v.forEach(function(m){var d=m;typeof d.transform=="function"&&(a===r&&(a=T({},a)),y=a[h]=d.transform(y),y!=null&&(d.type=d.type||(Array.isArray(y)?"array":ue(y)))),typeof d=="function"?d={validator:d}:d=T({},d),d.validator=n.getValidationMethod(d),d.validator&&(d.field=h,d.fullField=d.fullField||h,d.type=n.getType(d),f[h]=f[h]||[],f[h].push({rule:d,value:y,source:a,field:h}))})});var g={};return GD(f,s,function(h,v){var y=h.rule,m=(y.type==="object"||y.type==="array")&&(ue(y.fields)==="object"||ue(y.defaultField)==="object");m=m&&(y.required||!y.required&&h.value),y.field=h.field;function d(C,R){return T(T({},R),{},{fullField:"".concat(y.fullField,".").concat(C),fullFields:y.fullFields?[].concat(te(y.fullFields),[C]):[C]})}function x(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(C)?C:[C];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&y.message!==void 0&&(R=[].concat(y.message));var P=R.map(zw(y,a));if(s.first&&P.length)return g[y.field]=1,v(P);if(!m)v(P);else{if(y.required&&!h.value)return y.message!==void 0?P=[].concat(y.message).map(zw(y,a)):s.error&&(P=[s.error(y,Gr(s.messages.required,y.field))]),v(P);var O={};y.defaultField&&Object.keys(h.value).map(function(M){O[M]=y.defaultField}),O=T(T({},O),h.rule.fields);var A={};Object.keys(O).forEach(function(M){var H=O[M],L=Array.isArray(H)?H:[H];A[M]=L.map(d.bind(null,M))});var F=new e(A);F.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),F.validate(h.value,h.rule.options||s,function(M){var H=[];P&&P.length&&H.push.apply(H,te(P)),M&&M.length&&H.push.apply(H,te(M)),v(H.length?H:null)})}}var b;if(y.asyncValidator)b=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{b=y.validator(y,h.value,x,h.source,s)}catch(C){var S,w;(S=(w=console).error)===null||S===void 0||S.call(w,C),s.suppressValidatorError||setTimeout(function(){throw C},0),x(C.message)}b===!0?x():b===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):b instanceof Array?x(b):b instanceof Error&&x(b.message)}b&&b.then&&b.then(function(){return x()},function(C){return x(C)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!yu.hasOwnProperty(r.type))throw new Error(Gr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?yu.required:yu[this.getType(r)]||void 0}}]),e}();_(jd,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");yu[t]=r});_(jd,"warning",qD);_(jd,"messages",Gv);_(jd,"validators",yu);var gA=jd;var ey=E($());var Ro="'${name}' is not a valid ${type}",Zv={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:Ro,method:Ro,array:Ro,object:Ro,number:Ro,date:Ro,boolean:Ro,integer:Ro,float:Ro,regexp:Ro,email:Ro,url:Ro,hex:Ro},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}"}};var hA=gA;function lH(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var vA="CODE_LOGIC_ERROR";function Bw(e,t,r,n,o){return jw.apply(this,arguments)}function jw(){return jw=ln(kt().mark(function e(t,r,n,o,i){var a,s,l,c,u,f,p,g,h;return kt().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=T({},n),delete a.ruleIndex,hA.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(vA)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new hA(_({},t,[a])),u=Sa(Zv,o.validateMessages),c.messages(u),f=[],y.prev=10,y.next=13,Promise.resolve(c.validate(_({},t,r),T({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(m,d){var x=m.message,b=x===vA?u.default:x;return ey.isValidElement(b)?ey.cloneElement(b,{key:"error_".concat(d)}):b}));case 18:if(!(!f.length&&l)){y.next=23;break}return y.next=21,Promise.all(r.map(function(m,d){return Bw("".concat(t,".").concat(d),m,l,o,i)}));case 21:return p=y.sent,y.abrupt("return",p.reduce(function(m,d){return[].concat(te(m),te(d))},[]));case 23:return g=T(T({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=f.map(function(m){return typeof m=="string"?lH(m,g):m}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),jw.apply(this,arguments)}function yA(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,f){var p=u.validator,g=T(T({},u),{},{ruleIndex:f});return p&&(g.validator=function(h,v,y){var m=!1,d=function(){for(var S=arguments.length,w=new Array(S),C=0;C<S;C++)w[C]=arguments[C];Promise.resolve().then(function(){Vt(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||y.apply(void 0,w)})},x=p(h,v,d);m=x&&typeof x.then=="function"&&typeof x.catch=="function",Vt(m,"`callback` is deprecated. Please return a promise instead."),m&&x.then(function(){y()}).catch(function(b){y(b||" ")})}),g}).sort(function(u,f){var p=u.warningOnly,g=u.ruleIndex,h=f.warningOnly,v=f.ruleIndex;return!!p==!!h?g-v:p?1:-1}),l;if(o===!0)l=new Promise(function(){var u=ln(kt().mark(function f(p,g){var h,v,y;return kt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:h=0;case 1:if(!(h<s.length)){d.next=12;break}return v=s[h],d.next=5,Bw(a,t,v,n,i);case 5:if(y=d.sent,!y.length){d.next=9;break}return g([{errors:y,rule:v}]),d.abrupt("return");case 9:h+=1,d.next=1;break;case 12:p([]);case 13:case"end":return d.stop()}},f)}));return function(f,p){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return Bw(a,t,u,n,i).then(function(f){return{errors:f,rule:u}})});l=(o?uH(c):cH(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function cH(e){return Vw.apply(this,arguments)}function Vw(){return Vw=ln(kt().mark(function e(t){return kt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,te(o));return a}));case 1:case"end":return n.stop()}},e)})),Vw.apply(this,arguments)}function uH(e){return Hw.apply(this,arguments)}function Hw(){return Hw=ln(kt().mark(function e(t){var r;return kt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Hw.apply(this,arguments)}function cr(e){return Wd(e)}function Uw(e,t){var r={};return t.forEach(function(n){var o=xn(e,n);r=qn(r,n,o)}),r}function Fs(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return qw(t,n,r)})}function qw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function xA(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ue(e)!=="object"||ue(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return te(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function bA(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ue(t.target)==="object"&&e in t.target?t.target[e]:t}function Gw(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(te(e.slice(0,r)),[o],te(e.slice(r,t)),te(e.slice(t+1,n))):i<0?[].concat(te(e.slice(0,t)),te(e.slice(t+1,r+1)),[o],te(e.slice(r+1,n))):e}var fH=["name"],Jo=[];function Kw(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var Xw=function(e){Ir(r,e);var t=$r(r);function r(n){var o;if(it(this,r),o=t.call(this,n),_(Ze(o),"state",{resetCount:0}),_(Ze(o),"cancelRegisterFunc",null),_(Ze(o),"mounted",!1),_(Ze(o),"touched",!1),_(Ze(o),"dirty",!1),_(Ze(o),"validatePromise",void 0),_(Ze(o),"prevValidating",void 0),_(Ze(o),"errors",Jo),_(Ze(o),"warnings",Jo),_(Ze(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,cr(f)),o.cancelRegisterFunc=null}),_(Ze(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(te(p),te(c)):[]}),_(Ze(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),_(Ze(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),_(Ze(o),"metaCache",null),_(Ze(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=T(T({},o.getMeta()),{},{destroy:l});Cs(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),_(Ze(o),"onStoreChange",function(l,c,u){var f=o.props,p=f.shouldUpdate,g=f.dependencies,h=g===void 0?[]:g,v=f.onReset,y=u.store,m=o.getNamePath(),d=o.getValue(l),x=o.getValue(y),b=c&&Fs(c,m);switch(u.type==="valueUpdate"&&u.source==="external"&&!Cs(d,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent()),u.type){case"reset":if(!c||b){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent(),v?.(),o.refresh();return}break;case"remove":{if(p&&Kw(p,l,y,d,x,u)){o.reRender();return}break}case"setField":{var S=u.data;if(b){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||Jo),"warnings"in S&&(o.warnings=S.warnings||Jo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&Fs(c,m,!0)){o.reRender();return}if(p&&!m.length&&Kw(p,l,y,d,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(cr);if(w.some(function(C){return Fs(u.relatedFields,C)})){o.reRender();return}break}default:if(b||(!h.length||m.length||p)&&Kw(p,l,y,d,x,u)){o.reRender();return}break}p===!0&&o.reRender()}),_(Ze(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},p=f.triggerName,g=f.validateOnly,h=g===void 0?!1:g,v=Promise.resolve().then(ln(kt().mark(function y(){var m,d,x,b,S,w,C;return kt().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(m=o.props,d=m.validateFirst,x=d===void 0?!1:d,b=m.messageVariables,S=m.validateDebounce,w=o.getRules(),p&&(w=w.filter(function(O){return O}).filter(function(O){var A=O.validateTrigger;if(!A)return!0;var F=Wd(A);return F.includes(p)})),!(S&&p)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,S)});case 8:if(o.validatePromise===v){P.next=10;break}return P.abrupt("return",[]);case 10:return C=yA(c,u,w,l,x,b),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jo;if(o.validatePromise===v){var A;o.validatePromise=null;var F=[],M=[];(A=O.forEach)===null||A===void 0||A.call(O,function(H){var L=H.rule.warningOnly,N=H.errors,I=N===void 0?Jo:N;L?M.push.apply(M,te(I)):F.push.apply(F,te(I))}),o.errors=F,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",C);case 13:case"end":return P.stop()}},y)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent(),o.reRender()),v}),_(Ze(o),"isFieldValidating",function(){return!!o.validatePromise}),_(Ze(o),"isFieldTouched",function(){return o.touched}),_(Ze(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Oi),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),_(Ze(o),"getErrors",function(){return o.errors}),_(Ze(o),"getWarnings",function(){return o.warnings}),_(Ze(o),"isListField",function(){return o.props.isListField}),_(Ze(o),"isList",function(){return o.props.isList}),_(Ze(o),"isPreserve",function(){return o.props.preserve}),_(Ze(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),_(Ze(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return T(T({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=yi(l);return u.length!==1||!Gn.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),_(Ze(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return xn(l||c(!0),u)}),_(Ze(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,p=c.validateTrigger,g=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,y=c.getValueProps,m=c.fieldContext,d=p!==void 0?p:m.validateTrigger,x=o.getNamePath(),b=m.getInternalHooks,S=m.getFieldsValue,w=b(Oi),C=w.dispatch,R=o.getValue(),P=y||function(H){return _({},v,H)},O=l[f],A=u!==void 0?P(R):{},F=T(T({},l),A);F[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var H,L=arguments.length,N=new Array(L),I=0;I<L;I++)N[I]=arguments[I];g?H=g.apply(void 0,N):H=bA.apply(void 0,[v].concat(N)),h&&(H=h(H,R,S(!0))),H!==R&&C({type:"updateValue",namePath:x,value:H}),O&&O.apply(void 0,N)};var M=Wd(d||[]);return M.forEach(function(H){var L=F[H];F[H]=function(){L&&L.apply(void 0,arguments);var N=o.props.rules;N&&N.length&&C({type:"validateField",namePath:x,triggerName:H})}}),F}),n.fieldContext){var i=n.fieldContext.getInternalHooks,a=i(Oi),s=a.initEntityValue;s(Ze(o))}return o}return at(r,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(Oi),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:Gn.isValidElement(s)?c=Gn.cloneElement(s,this.getControlled(s.props)):(Vt(!s,"`children` of Field is not validate ReactElement."),c=s),Gn.createElement(Gn.Fragment,{key:o},c)}}]),r}(Gn.Component);_(Xw,"contextType",_i);_(Xw,"defaultProps",{trigger:"onChange",valuePropName:"value"});function dH(e){var t,r=e.name,n=Ve(e,fH),o=Gn.useContext(_i),i=Gn.useContext(Ms),a=r!==void 0?cr(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),Gn.createElement(Xw,fe({key:l,name:a,isListField:s},n,{fieldContext:o}))}var ty=dH;var Oo=E($());function pH(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=Oo.useContext(_i),l=Oo.useContext(Ms),c=Oo.useRef({keys:[],id:0}),u=c.current,f=Oo.useMemo(function(){var v=cr(s.prefixName)||[];return[].concat(te(v),te(cr(t)))},[s.prefixName,t]),p=Oo.useMemo(function(){return T(T({},s),{},{prefixName:f})},[s,f]),g=Oo.useMemo(function(){return{getKey:function(y){var m=f.length,d=y[m];return[u.keys[d],y.slice(m+1)]}}},[f]);if(typeof n!="function")return Vt(!1,"Form.List only accepts function as children."),null;var h=function(y,m,d){var x=d.source;return x==="internal"?!1:y!==m};return Oo.createElement(Ms.Provider,{value:g},Oo.createElement(_i.Provider,{value:p},Oo.createElement(ty,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:r,isList:!0,isListField:a??!!l},function(v,y){var m=v.value,d=m===void 0?[]:m,x=v.onChange,b=s.getFieldValue,S=function(){var P=b(f||[]);return P||[]},w={add:function(P,O){var A=S();O>=0&&O<=A.length?(u.keys=[].concat(te(u.keys.slice(0,O)),[u.id],te(u.keys.slice(O))),x([].concat(te(A.slice(0,O)),[P],te(A.slice(O))))):(u.keys=[].concat(te(u.keys),[u.id]),x([].concat(te(A),[P]))),u.id+=1},remove:function(P){var O=S(),A=new Set(Array.isArray(P)?P:[P]);A.size<=0||(u.keys=u.keys.filter(function(F,M){return!A.has(M)}),x(O.filter(function(F,M){return!A.has(M)})))},move:function(P,O){if(P!==O){var A=S();P<0||P>=A.length||O<0||O>=A.length||(u.keys=Gw(u.keys,P,O),x(Gw(A,P,O)))}}},C=d||[];return Array.isArray(C)||(C=[]),n(C.map(function(R,P){var O=u.keys[P];return O===void 0&&(u.keys[P]=u.id,O=u.keys[P],u.id+=1),{name:P,key:O,isListField:!0}}),w,y)})))}var SA=pH;var ry=E($());function CA(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var wA="__@field_split__";function Yw(e){return e.map(function(t){return"".concat(ue(t),":").concat(t)}).join(wA)}var mH=function(){function e(){it(this,e),_(this,"kvs",new Map)}return at(e,[{key:"set",value:function(r,n){this.kvs.set(Yw(r),n)}},{key:"get",value:function(r){return this.kvs.get(Yw(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Yw(r))}},{key:"map",value:function(r){return te(this.kvs.entries()).map(function(n){var o=B(n,2),i=o[0],a=o[1],s=i.split(wA);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=B(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e}(),Fl=mH;var gH=["name"],hH=at(function e(t){var r=this;it(this,e),_(this,"formHooked",!1),_(this,"forceRootUpdate",void 0),_(this,"subscribable",!0),_(this,"store",{}),_(this,"fieldEntities",[]),_(this,"initialValues",{}),_(this,"callbacks",{}),_(this,"validateMessages",null),_(this,"preserve",null),_(this,"lastValidatePromise",null),_(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),_(this,"getInternalHooks",function(n){return n===Oi?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Vt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_(this,"useSubscribe",function(n){r.subscribable=n}),_(this,"prevWithoutPreserves",null),_(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=Sa(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=qn(a,l,xn(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),_(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Fl;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),_(this,"getInitialValue",function(n){var o=xn(r.initialValues,n);return n.length?Sa(o):o}),_(this,"setCallbacks",function(n){r.callbacks=n}),_(this,"setValidateMessages",function(n){r.validateMessages=n}),_(this,"setPreserve",function(n){r.preserve=n}),_(this,"watchList",[]),_(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),_(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),_(this,"timeoutId",null),_(this,"warningUnhooked",function(){}),_(this,"updateStore",function(n){r.store=n}),_(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),_(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Fl;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),_(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=cr(i);return o.get(a)||{INVALIDATE_NAME_PATH:cr(i)}})}),_(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&ue(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,p,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!i&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!a)c.push(g);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(g)}}),Uw(r.store,c.map(cr))}),_(this,"getFieldValue",function(n){r.warningUnhooked();var o=cr(n);return xn(r.store,o)}),_(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:cr(n[a]),errors:[],warnings:[]}})}),_(this,"getFieldError",function(n){r.warningUnhooked();var o=cr(n),i=r.getFieldsError([o])[0];return i.errors}),_(this,"getFieldWarning",function(n){r.warningUnhooked();var o=cr(n),i=r.getFieldsError([o])[0];return i.warnings}),_(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(cr),c=!1):(l=null,c=a):(l=a.map(cr),c=s);var u=r.getFieldEntities(!0),f=function(y){return y.isFieldTouched()};if(!l)return c?u.every(function(v){return f(v)||v.isList()}):u.some(f);var p=new Fl;l.forEach(function(v){p.set(v,[])}),u.forEach(function(v){var y=v.getNamePath();l.forEach(function(m){m.every(function(d,x){return y[x]===d})&&p.update(m,function(d){return[].concat(te(d),[v])})})});var g=function(y){return y.some(f)},h=p.map(function(v){var y=v.value;return y});return c?h.every(g):h.some(g)}),_(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),_(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(a){return a.isFieldValidating()});var i=n.map(cr);return o.some(function(a){var s=a.getNamePath();return Fs(i,s)&&a.isFieldValidating()})}),_(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),_(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Fl,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),g=r.getInitialValue(p);if(g!==void 0)Vt(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=o.get(p);if(h&&h.size>1)Vt(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(p),y=u.isListField();!y&&(!n.skipExist||v===void 0)&&r.updateStore(qn(r.store,p,te(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,te(te(c).map(function(f){return f.entity})))}})):s=i,a(s)}),_(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(Sa(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(cr);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(qn(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),_(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=Ve(a,gH),c=cr(s);i.push(c),"value"in l&&r.updateStore(qn(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),_(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=T(T({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),_(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=xn(r.store,i);a===void 0&&r.updateStore(qn(r.store,i,o))}}),_(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),_(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!qw(f.getNamePath(),o)})){var u=r.store;r.updateStore(qn(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),_(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}default:}}),_(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=T(T({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),_(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(te(i))}),i}),_(this,"updateValue",function(n,o){var i=cr(n),a=r.store;r.updateStore(qn(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Uw(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(te(s)))}),_(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=Sa(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),_(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),_(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Fl;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=cr(u);a.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(i.push(p),l(p))}})};return s(n),i}),_(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Fl;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Fs(n,u)});l.length&&i(l,a)}}),_(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(cr):[],c=[],u=String(Date.now()),f=new Set,p=a||{},g=p.recursive,h=p.dirty;r.getFieldEntities(!0).forEach(function(d){if(s||l.push(d.getNamePath()),!(!d.props.rules||!d.props.rules.length)&&!(h&&!d.isFieldDirty())){var x=d.getNamePath();if(f.add(x.join(u)),!s||Fs(l,x,g)){var b=d.validateRules(T({validateMessages:T(T({},Zv),r.validateMessages)},a));c.push(b.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var w,C=[],R=[];return(w=S.forEach)===null||w===void 0||w.call(S,function(P){var O=P.rule.warningOnly,A=P.errors;O?R.push.apply(R,te(A)):C.push.apply(C,te(A))}),C.length?Promise.reject({name:x,errors:C,warnings:R}):{name:x,errors:C,warnings:R}}))}}});var v=CA(c);r.lastValidatePromise=v,v.catch(function(d){return d}).then(function(d){var x=d.map(function(b){var S=b.name;return S});r.notifyObservers(r.store,x,{type:"validateFinish"}),r.triggerOnFieldsChange(x,d)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(d){var x=d.filter(function(b){return b&&b.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:x,outOfDate:r.lastValidatePromise!==v})});y.catch(function(d){return d});var m=l.filter(function(d){return f.has(d.join(u))});return r.triggerOnFieldsChange(m),y}),_(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function vH(e){var t=ry.useRef(),r=ry.useState({}),n=B(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new hH(i);t.current=a.getForm()}return[t.current]}var ny=vH;var un=E($());var Ls=E($()),Qw=Ls.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Jw=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=Ls.useContext(Qw),s=Ls.useRef({});return Ls.createElement(Qw.Provider,{value:T(T({},a),{},{validateMessages:T(T({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=T(T({},s.current),{},_({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=T({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var EA=Qw;var yH=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],xH=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,g=p===void 0?"onChange":p,h=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,m=t.onFinishFailed,d=t.clearOnDestroy,x=Ve(t,yH),b=un.useRef(null),S=un.useContext(EA),w=ny(a),C=B(w,1),R=C[0],P=R.getInternalHooks(Oi),O=P.useSubscribe,A=P.setInitialValues,F=P.setCallbacks,M=P.setValidateMessages,H=P.setPreserve,L=P.destroyForm;un.useImperativeHandle(r,function(){return T(T({},R),{},{nativeElement:b.current})}),un.useEffect(function(){return S.registerForm(n,R),function(){S.unregisterForm(n)}},[S,R,n]),M(T(T({},S.validateMessages),f)),F({onValuesChange:h,onFieldsChange:function(k){if(S.triggerFormChange(n,k),v){for(var V=arguments.length,G=new Array(V>1?V-1:0),J=1;J<V;J++)G[J-1]=arguments[J];v.apply(void 0,[k].concat(G))}},onFinish:function(k){S.triggerFormFinish(n,k),y&&y(k)},onFinishFailed:m}),H(s);var N=un.useRef(null);A(o,!N.current),N.current||(N.current=!0),un.useEffect(function(){return function(){return L(d)}},[]);var I,D=typeof l=="function";if(D){var U=R.getFieldsValue(!0);I=l(U,R)}else I=l;O(!D);var z=un.useRef();un.useEffect(function(){xA(z.current||[],i||[])||R.setFields(i||[]),z.current=i},[i,R]);var W=un.useMemo(function(){return T(T({},R),{},{validateTrigger:g})},[R,g]),q=un.createElement(Ms.Provider,{value:null},un.createElement(_i.Provider,{value:W},I));return u===!1?q:un.createElement(u,fe({},x,{ref:b,onSubmit:function(k){k.preventDefault(),k.stopPropagation(),R.submit()},onReset:function(k){var V;k.preventDefault(),R.resetFields(),(V=x.onReset)===null||V===void 0||V.call(x,k)}}),q)},RA=xH;var Pi=E($());function OA(e){try{return JSON.stringify(e)}catch{return Math.random()}}var bH=function(){};function SH(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=o===void 0?{}:o,a=BD(i)?{form:i}:i,s=a.form,l=(0,Pi.useState)(),c=B(l,2),u=c[0],f=c[1],p=(0,Pi.useMemo)(function(){return OA(u)},[u]),g=(0,Pi.useRef)(p);g.current=p;var h=(0,Pi.useContext)(_i),v=s||h,y=v&&v._init,m=cr(n),d=(0,Pi.useRef)(m);return d.current=m,bH(m),(0,Pi.useEffect)(function(){if(y){var x=v.getFieldsValue,b=v.getInternalHooks,S=b(Oi),w=S.registerWatch,C=function(A,F){var M=a.preserve?F:A;return typeof n=="function"?n(M):xn(M,d.current)},R=w(function(O,A){var F=C(O,A),M=OA(F);g.current!==M&&(g.current=M,f(F))}),P=C(x(),x(!0));return u!==P&&f(P),R}},[y]),u}var _A=SH;var CH=PA.forwardRef(RA),Vd=CH;Vd.FormProvider=Jw;Vd.Field=ty;Vd.List=SA;Vd.useForm=ny;Vd.useWatch=_A;var fn=Da.createContext({}),TA=({children:e,status:t,override:r})=>{let n=Da.useContext(fn),o=Da.useMemo(()=>{let i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return Da.createElement(fn.Provider,{value:o},e)},NA=Da.createContext(void 0);var wH=e=>{let{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=Zw.default.createElement(TA,{override:!0,status:!0},o)),t&&(o=Zw.default.createElement(D$,null,o)),o},zs=wH;var so=E($());function EH(e){return t=>so.createElement(Na,{theme:{token:{motion:!1,zIndexPopupBase:0}}},so.createElement(e,Object.assign({},t)))}var RH=(e,t,r,n,o)=>EH(a=>{let{prefixCls:s,style:l}=a,c=so.useRef(null),[u,f]=so.useState(0),[p,g]=so.useState(0),[h,v]=ar(!1,{value:a.open}),{getPrefixCls:y}=so.useContext(rt),m=y(n||"select",s);so.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let b=new ResizeObserver(w=>{let C=w[0].target;f(C.offsetHeight+8),g(C.offsetWidth)}),S=setInterval(()=>{var w;let C=o?`.${o(m)}`:`.${m}-dropdown`,R=(w=c.current)===null||w===void 0?void 0:w.querySelector(C);R&&(clearInterval(S),b.observe(R))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let d=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});return r&&(d=r(d)),t&&Object.assign(d,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),so.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:p}},so.createElement(e,Object.assign({},d)))}),IA=RH;var ni=E($()),U1=E(Ne());var fr=E($());var x1=E(Ne());var xu=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};var bt=E($());var e1=E($()),$A=E(Ne()),OH=function(t){var r=t.className,n=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(o):n;return e1.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),a?.(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:e1.createElement("span",{className:(0,$A.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Ws=OH;var oy=E($()),DA=function(t,r,n,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=oy.default.useMemo(function(){if(ue(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=oy.default.useMemo(function(){return!!(!a&&o&&(n.length||s)&&!(l==="combobox"&&s===""))},[o,a,n.length,s,l]);return{allowClear:u,clearIcon:oy.default.createElement(Ws,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var iy=E($()),t1=iy.createContext(null);function ay(){return iy.useContext(t1)}var bu=E($());function r1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=bu.useState(!1),r=B(t,2),n=r[0],o=r[1],i=bu.useRef(null),a=function(){window.clearTimeout(i.current)};bu.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[n,s,a]}var Hd=E($());function Ud(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=Hd.useRef(null),r=Hd.useRef(null);Hd.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}var sy=E($());function n1(e,t,r,n){var o=sy.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},sy.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var Aa=E($()),dy=E($());function AA(e){return e&&![Ye.ESC,Ye.SHIFT,Ye.BACKSPACE,Ye.TAB,Ye.WIN_KEY,Ye.ALT,Ye.META,Ye.WIN_KEY_RIGHT,Ye.CTRL,Ye.SEMICOLON,Ye.EQUALS,Ye.CAPS_LOCK,Ye.CONTEXT_MENU,Ye.F1,Ye.F2,Ye.F3,Ye.F4,Ye.F5,Ye.F6,Ye.F7,Ye.F8,Ye.F9,Ye.F10,Ye.F11,Ye.F12].includes(e)}var _o=E($()),a1=E($()),tk=E(Ne());var Zo=E($()),Xi=E($()),VA=E(Ne());var Ll=E($()),kA=E(Ne());var _H=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Su=void 0;function PH(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,g=e.display,h=e.order,v=e.component,y=v===void 0?"div":v,m=Ve(e,_H),d=a&&!g;function x(R){l(c,R)}Ll.useEffect(function(){return function(){x(null)}},[]);var b=i&&o!==Su?i(o,{index:h}):p,S;n||(S={opacity:d?0:1,height:d?0:Su,overflowY:d?"hidden":Su,order:a?h:Su,pointerEvents:d?"none":Su,position:d?"absolute":Su});var w={};d&&(w["aria-hidden"]=!0);var C=Ll.createElement(y,fe({className:(0,kA.default)(!n&&r,u),style:T(T({},S),f)},w,m,{ref:t}),b);return a&&(C=Ll.createElement(ro,{onResize:function(P){var O=P.offsetWidth;x(O)},disabled:s},C)),C}var MA=Ll.forwardRef(PH);MA.displayName="Item";var Cu=MA;var ly=E($()),FA=E(Vi());function o1(e){if(typeof MessageChannel>"u")dt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function LA(){var e=ly.useRef(null),t=function(n){e.current||(e.current=[],o1(function(){(0,FA.unstable_batchedUpdates)(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function zl(e,t){var r=ly.useState(t),n=B(r,2),o=n[0],i=n[1],a=wt(function(s){e(function(){i(s)})});return[o,a]}var Bs=E($()),WA=E(Ne());var zA=E($()),Wl=zA.default.createContext(null);var TH=["component"],NH=["className"],IH=["className"],$H=function(t,r){var n=Bs.useContext(Wl);if(!n){var o=t.component,i=o===void 0?"div":o,a=Ve(t,TH);return Bs.createElement(i,fe({},a,{ref:r}))}var s=n.className,l=Ve(n,NH),c=t.className,u=Ve(t,IH);return Bs.createElement(Wl.Provider,{value:null},Bs.createElement(Cu,fe({ref:r,className:(0,WA.default)(s,c)},l,u)))},BA=Bs.forwardRef($H);BA.displayName="RawItem";var jA=BA;var DH=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],HA="responsive",UA="invalidate";function AH(e){return"+ ".concat(e.length," ...")}function kH(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,g=e.className,h=e.maxCount,v=e.renderRest,y=e.renderRawRest,m=e.suffix,d=e.component,x=d===void 0?"div":d,b=e.itemComponent,S=e.onVisibleChange,w=Ve(e,DH),C=f==="full",R=LA(),P=zl(R,null),O=B(P,2),A=O[0],F=O[1],M=A||0,H=zl(R,new Map),L=B(H,2),N=L[0],I=L[1],D=zl(R,0),U=B(D,2),z=U[0],W=U[1],q=zl(R,0),j=B(q,2),k=j[0],V=j[1],G=zl(R,0),J=B(G,2),Y=J[0],X=J[1],ae=(0,Xi.useState)(null),Z=B(ae,2),K=Z[0],Q=Z[1],re=(0,Xi.useState)(null),ee=B(re,2),ne=ee[0],de=ee[1],le=Zo.useMemo(function(){return ne===null&&C?Number.MAX_SAFE_INTEGER:ne||0},[ne,A]),pe=(0,Xi.useState)(!1),Oe=B(pe,2),Ce=Oe[0],De=Oe[1],ce="".concat(n,"-item"),ie=Math.max(z,k),Re=h===HA,Le=i.length&&Re,Ge=h===UA,Me=Le||typeof h=="number"&&i.length>h,Ie=(0,Xi.useMemo)(function(){var $e=i;return Le?A===null&&C?$e=i:$e=i.slice(0,Math.min(i.length,M/u)):typeof h=="number"&&($e=i.slice(0,h)),$e},[i,u,A,h,Le]),je=(0,Xi.useMemo)(function(){return Le?i.slice(le+1):i.slice(Ie.length)},[i,Ie,Le,le]),We=(0,Xi.useCallback)(function($e,Ee){var be;return typeof l=="function"?l($e):(be=l&&$e?.[l])!==null&&be!==void 0?be:Ee},[l]),He=(0,Xi.useCallback)(a||function($e){return $e},[a]);function ye($e,Ee,be){ne===$e&&(Ee===void 0||Ee===K)||(de($e),be||(De($e<i.length-1),S?.($e)),Ee!==void 0&&Q(Ee))}function se($e,Ee){F(Ee.clientWidth)}function xe($e,Ee){I(function(be){var ht=new Map(be);return Ee===null?ht.delete($e):ht.set($e,Ee),ht})}function _e($e,Ee){V(Ee),W(k)}function he($e,Ee){X(Ee)}function Je($e){return N.get(We(Ie[$e],$e))}vt(function(){if(M&&typeof ie=="number"&&Ie){var $e=Y,Ee=Ie.length,be=Ee-1;if(!Ee){ye(0,null);return}for(var ht=0;ht<Ee;ht+=1){var Mt=Je(ht);if(C&&(Mt=Mt||0),Mt===void 0){ye(ht-1,void 0,!0);break}if($e+=Mt,be===0&&$e<=M||ht===be-1&&$e+Je(be)<=M){ye(be,null);break}else if($e+ie>M){ye(ht-1,$e-Mt-Y+k);break}}m&&Je(0)+Y>M&&Q(null)}},[M,N,k,Y,We,Ie]);var lt=Ce&&!!je.length,Et={};K!==null&&Le&&(Et={position:"absolute",left:K,top:0});var Pt={prefixCls:ce,responsive:Le,component:b,invalidate:Ge},pt=s?function($e,Ee){var be=We($e,Ee);return Zo.createElement(Wl.Provider,{key:be,value:T(T({},Pt),{},{order:Ee,item:$e,itemKey:be,registerSize:xe,display:Ee<=le})},s($e,Ee))}:function($e,Ee){var be=We($e,Ee);return Zo.createElement(Cu,fe({},Pt,{order:Ee,key:be,item:$e,renderItem:He,itemKey:be,registerSize:xe,display:Ee<=le}))},Ae={order:lt?le:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:_e,display:lt},we=v||AH,et=y?Zo.createElement(Wl.Provider,{value:T(T({},Pt),Ae)},y(je)):Zo.createElement(Cu,fe({},Pt,Ae),typeof we=="function"?we(je):we),Pe=Zo.createElement(x,fe({className:(0,VA.default)(!Ge&&n,g),style:p,ref:t},w),Ie.map(pt),Me?et:null,m&&Zo.createElement(Cu,fe({},Pt,{responsive:Re,responsiveDisabled:!Le,order:le,className:"".concat(ce,"-suffix"),registerSize:he,display:!0,style:Et}),m));return Re?Zo.createElement(ro,{onResize:se,disabled:!Le},Pe):Pe}var qd=Zo.forwardRef(kH);qd.displayName="Overflow";qd.Item=jA;qd.RESPONSIVE=HA;qd.INVALIDATE=UA;var qA=qd;var GA=qA;var wu=E($()),XA=E(Ne());function MH(e,t,r){var n=T(T({},e),r?t:{});return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(n[o]=function(){for(var a,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i.apply(void 0,l),(a=e[o])===null||a===void 0?void 0:a.call.apply(a,[e].concat(l))})}),n}var KA=MH;var FH=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],LH=function(t,r){var n=t.prefixCls,o=t.id,i=t.inputElement,a=t.autoFocus,s=t.autoComplete,l=t.editable,c=t.activeDescendantId,u=t.value,f=t.open,p=t.attrs,g=Ve(t,FH),h=i||wu.createElement("input",null),v=h,y=v.ref,m=v.props;return dd(!("maxLength"in h.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),h=wu.cloneElement(h,T(T(T({type:"search"},KA(g,m,!0)),{},{id:o,ref:Lr(r,y),autoComplete:s||"off",autoFocus:a,className:(0,XA.default)("".concat(n,"-selection-search-input"),m?.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?c:void 0},p),{},{value:l?u:"",readOnly:!l,unselectable:l?null:"on",style:T(T({},m.style),{},{opacity:l?null:0})})),h},zH=wu.forwardRef(LH),cy=zH;var fy=E($());function Gd(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var WH=typeof window<"u"&&window.document&&window.document.documentElement,QA=WH;function JA(e){return e!=null}function ZA(e){return!e&&e!==0}function YA(e){return["string","number"].includes(ue(e))}function uy(e){var t=void 0;return e&&(YA(e.title)?t=e.title.toString():YA(e.label)&&(t=e.label.toString())),t}function i1(e,t){QA?fy.useLayoutEffect(e,t):fy.useEffect(e,t)}function BH(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var ek=function(t){t.preventDefault(),t.stopPropagation()},jH=function(t){var r=t.id,n=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,p=t.showSearch,g=t.autoFocus,h=t.autoComplete,v=t.activeDescendantId,y=t.tabIndex,m=t.removeIcon,d=t.maxTagCount,x=t.maxTagTextLength,b=t.maxTagPlaceholder,S=b===void 0?function(re){return"+ ".concat(re.length," ...")}:b,w=t.tagRender,C=t.onToggleOpen,R=t.onRemove,P=t.onInputChange,O=t.onInputPaste,A=t.onInputKeyDown,F=t.onInputMouseDown,M=t.onInputCompositionStart,H=t.onInputCompositionEnd,L=t.onInputBlur,N=_o.useRef(null),I=(0,a1.useState)(0),D=B(I,2),U=D[0],z=D[1],W=(0,a1.useState)(!1),q=B(W,2),j=q[0],k=q[1],V="".concat(n,"-selection"),G=i||f==="multiple"&&s===!1||f==="tags"?a:"",J=f==="tags"||f==="multiple"&&s===!1||p&&(i||j);i1(function(){z(N.current.scrollWidth)},[G]);var Y=function(ee,ne,de,le,pe){return _o.createElement("span",{title:uy(ee),className:(0,tk.default)("".concat(V,"-item"),_({},"".concat(V,"-item-disabled"),de))},_o.createElement("span",{className:"".concat(V,"-item-content")},ne),le&&_o.createElement(Ws,{className:"".concat(V,"-item-remove"),onMouseDown:ek,onClick:pe,customizeIcon:m},"\xD7"))},X=function(ee,ne,de,le,pe,Oe){var Ce=function(ce){ek(ce),C(!i)};return _o.createElement("span",{onMouseDown:Ce},w({label:ne,value:ee,disabled:de,closable:le,onClose:pe,isMaxTag:!!Oe}))},ae=function(ee){var ne=ee.disabled,de=ee.label,le=ee.value,pe=!u&&!ne,Oe=de;if(typeof x=="number"&&(typeof de=="string"||typeof de=="number")){var Ce=String(Oe);Ce.length>x&&(Oe="".concat(Ce.slice(0,x),"..."))}var De=function(ie){ie&&ie.stopPropagation(),R(ee)};return typeof w=="function"?X(le,Oe,ne,pe,De):Y(ee,Oe,ne,pe,De)},Z=function(ee){if(!o.length)return null;var ne=typeof S=="function"?S(ee):S;return typeof w=="function"?X(void 0,ne,!1,!1,void 0,!0):Y({title:ne},ne,!1)},K=_o.createElement("div",{className:"".concat(V,"-search"),style:{width:U},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},_o.createElement(cy,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:u,autoFocus:g,autoComplete:h,editable:J,activeDescendantId:v,value:G,onKeyDown:A,onMouseDown:F,onChange:P,onPaste:O,onCompositionStart:M,onCompositionEnd:H,onBlur:L,tabIndex:y,attrs:qo(t,!0)}),_o.createElement("span",{ref:N,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},G,"\xA0")),Q=_o.createElement(GA,{prefixCls:"".concat(V,"-overflow"),data:o,renderItem:ae,renderRest:Z,suffix:K,itemKey:BH,maxCount:d});return _o.createElement("span",{className:"".concat(V,"-wrap")},Q,!o.length&&!G&&_o.createElement("span",{className:"".concat(V,"-placeholder")},c))},rk=jH;var ei=E($());var VH=function(t){var r=t.inputElement,n=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,p=t.values,g=t.placeholder,h=t.tabIndex,v=t.showSearch,y=t.searchValue,m=t.activeValue,d=t.maxLength,x=t.onInputKeyDown,b=t.onInputMouseDown,S=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,R=t.onInputCompositionEnd,P=t.onInputBlur,O=t.title,A=ei.useState(!1),F=B(A,2),M=F[0],H=F[1],L=u==="combobox",N=L||v,I=p[0],D=y||"";L&&m&&!M&&(D=m),ei.useEffect(function(){L&&H(!1)},[L,m]);var U=u!=="combobox"&&!f&&!v?!1:!!D,z=O===void 0?uy(I):O,W=ei.useMemo(function(){return I?null:ei.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:U?{visibility:"hidden"}:void 0},g)},[I,U,g,n]);return ei.createElement("span",{className:"".concat(n,"-selection-wrap")},ei.createElement("span",{className:"".concat(n,"-selection-search")},ei.createElement(cy,{ref:i,prefixCls:n,id:o,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:N,activeDescendantId:c,value:D,onKeyDown:x,onMouseDown:b,onChange:function(j){H(!0),S(j)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:P,tabIndex:h,attrs:qo(t,!0),maxLength:L?d:void 0})),!L&&I?ei.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:U?{visibility:"hidden"}:void 0},I.label):null,W)},nk=VH;var HH=function(t,r){var n=(0,dy.useRef)(null),o=(0,dy.useRef)(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,p=t.autoClearSearchValue,g=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,m=t.onInputBlur,d=t.domRef;Aa.useImperativeHandle(r,function(){return{focus:function(z){n.current.focus(z)},blur:function(){n.current.blur()}}});var x=Ud(0),b=B(x,2),S=b[0],w=b[1],C=function(z){var W=z.which,q=n.current instanceof HTMLTextAreaElement;!q&&a&&(W===Ye.UP||W===Ye.DOWN)&&z.preventDefault(),y&&y(z),W===Ye.ENTER&&s==="tags"&&!o.current&&!a&&h?.(z.target.value),!(q&&!a&&~[Ye.UP,Ye.DOWN,Ye.LEFT,Ye.RIGHT].indexOf(W))&&AA(W)&&v(!0)},R=function(){w(!0)},P=(0,dy.useRef)(null),O=function(z){g(z,!0,o.current)!==!1&&v(!0)},A=function(){o.current=!0},F=function(z){o.current=!1,s!=="combobox"&&O(z.target.value)},M=function(z){var W=z.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var q=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");W=W.replace(q,P.current)}P.current=null,O(W)},H=function(z){var W=z.clipboardData,q=W?.getData("text");P.current=q||""},L=function(z){var W=z.target;if(W!==n.current){var q=document.body.style.msTouchAction!==void 0;q?setTimeout(function(){n.current.focus()}):n.current.focus()}},N=function(z){var W=S();z.target!==n.current&&!W&&!(s==="combobox"&&u)&&z.preventDefault(),(s!=="combobox"&&(!l||!W)||!a)&&(a&&p!==!1&&g("",!0,!1),v())},I={inputRef:n,onInputKeyDown:C,onInputMouseDown:R,onInputChange:M,onInputPaste:H,onInputCompositionStart:A,onInputCompositionEnd:F,onInputBlur:m},D=s==="multiple"||s==="tags"?Aa.createElement(rk,fe({},t,I)):Aa.createElement(nk,fe({},t,I));return Aa.createElement("div",{ref:d,className:"".concat(i,"-selector"),onClick:L,onMouseDown:N},f&&Aa.createElement("div",{className:"".concat(i,"-prefix")},f),D)},UH=Aa.forwardRef(HH),ok=UH;var my=E(Ne());var xt=E($());var ck=E(Ne());var ti=E($());var ik=E(Ne()),py=E($());function s1(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,p=py.useRef();if(!r||!r.points)return null;var g={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],y=h[0],m=h[1],d=v[0],x=v[1];y===d||!["t","b"].includes(y)?g.top=f:y==="t"?g.top=0:g.bottom=0,m===x||!["l","r"].includes(m)?g.left=c:m==="l"?g.left=0:g.right=0}return py.createElement("div",{ref:p,className:(0,ik.default)("".concat(t,"-arrow"),a),style:g},s)}var ak=E(Ne());var l1=E($());function c1(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?l1.createElement(Uo,fe({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return l1.createElement("div",{style:{zIndex:n},className:(0,ak.default)("".concat(t,"-mask"),s)})}):null}var sk=E($()),qH=sk.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),lk=qH;var GH=ti.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,g=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,m=e.maskMotion,d=e.forceRender,x=e.getPopupContainer,b=e.autoDestroy,S=e.portal,w=e.zIndex,C=e.onMouseEnter,R=e.onMouseLeave,P=e.onPointerEnter,O=e.onPointerDownCapture,A=e.ready,F=e.offsetX,M=e.offsetY,H=e.offsetR,L=e.offsetB,N=e.onAlign,I=e.onPrepare,D=e.stretch,U=e.targetWidth,z=e.targetHeight,W=typeof r=="function"?r():r,q=l||c,j=x?.length>0,k=ti.useState(!x||!j),V=B(k,2),G=V[0],J=V[1];if(vt(function(){!G&&j&&a&&J(!0)},[G,j,a]),!G)return null;var Y="auto",X={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(A||!l){var ae,Z=v.points,K=v.dynamicInset||((ae=v._experimental)===null||ae===void 0?void 0:ae.dynamicInset),Q=K&&Z[0][1]==="r",re=K&&Z[0][0]==="b";Q?(X.right=H,X.left=Y):(X.left=F,X.right=Y),re?(X.bottom=L,X.top=Y):(X.top=M,X.bottom=Y)}var ee={};return D&&(D.includes("height")&&z?ee.height=z:D.includes("minHeight")&&z&&(ee.minHeight=z),D.includes("width")&&U?ee.width=U:D.includes("minWidth")&&U&&(ee.minWidth=U)),l||(ee.pointerEvents="none"),ti.createElement(S,{open:d||q,getContainer:x&&function(){return x(a)},autoDestroy:b},ti.createElement(c1,{prefixCls:o,open:l,zIndex:w,mask:p,motion:m}),ti.createElement(ro,{onResize:N,disabled:!l},function(ne){return ti.createElement(Uo,fe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:d,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(le){var pe;y==null||(pe=y.onVisibleChanged)===null||pe===void 0||pe.call(y,le),s(le)}}),function(de,le){var pe=de.className,Oe=de.style,Ce=(0,ck.default)(o,pe,n);return ti.createElement("div",{ref:Lr(ne,t,le),className:Ce,style:T(T(T(T({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},X),ee),Oe),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:R,onPointerEnter:P,onClick:f,onPointerDownCapture:O},g&&ti.createElement(s1,{prefixCls:o,arrow:g,arrowPos:h,align:v}),ti.createElement(lk,{cache:!l&&!u},W))})}))}),uk=GH;var Eu=E($()),KH=Eu.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=bi(r),i=Eu.useCallback(function(s){md(t,n?n(s):s)},[n]),a=xi(i,ys(r));return o?Eu.cloneElement(r,{ref:a}):r}),fk=KH;var dk=E($()),XH=dk.createContext(null),u1=XH;var mk=E($());function pk(e){return e?Array.isArray(e)?e:[e]:[]}function f1(e,t,r,n){return mk.useMemo(function(){var o=pk(r??t),i=pk(n??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,r,n])}var Bl=E($());function YH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function gk(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(YH((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function d1(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function js(e){return e.ownerDocument.defaultView}function Xd(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=js(r).getComputedStyle(r),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Ru(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Kd(e){return Ru(parseFloat(e),0)}function p1(e,t){var r=T({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=js(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=n.getBoundingClientRect(),p=n.offsetHeight,g=n.clientHeight,h=n.offsetWidth,v=n.clientWidth,y=Kd(s),m=Kd(l),d=Kd(c),x=Kd(u),b=Ru(Math.round(f.width/h*1e3)/1e3),S=Ru(Math.round(f.height/p*1e3)/1e3),w=(h-v-d-x)*b,C=(p-g-y-m)*S,R=y*S,P=m*S,O=d*b,A=x*b,F=0,M=0;if(i==="clip"){var H=Kd(a);F=H*b,M=H*S}var L=f.x+O-F,N=f.y+R-M,I=L+f.width+2*F-O-A-w,D=N+f.height+2*M-R-P-C;r.left=Math.max(r.left,L),r.top=Math.max(r.top,N),r.right=Math.min(r.right,I),r.bottom=Math.min(r.bottom,D)}}),r}function hk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function vk(e,t){var r=t||[],n=B(r,2),o=n[0],i=n[1];return[hk(e.width,o),hk(e.height,i)]}function yk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ou(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Vs(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function m1(e,t,r,n,o,i,a){var s=Bl.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=B(s,2),c=l[0],u=l[1],f=Bl.useRef(0),p=Bl.useMemo(function(){return t?Xd(t):[]},[t]),g=Bl.useRef({}),h=function(){g.current={}};e||h();var v=wt(function(){if(t&&r&&e){let Ln=function(oc,Ua){var ic=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,Tp=k.x+oc,Np=k.y+Ua,V0=Tp+Q,Qe=Np+K,ct=Math.max(Tp,ic.left),hr=Math.max(Np,ic.top),Mr=Math.min(V0,ic.right),vr=Math.min(Qe,ic.bottom);return Math.max(0,(Mr-ct)*(vr-hr))},nc=function(){rr=k.y+be,pr=rr+K,mr=k.x+Ee,kn=mr+Q};var gR=Ln,hR=nc,d,x,b,S,w=t,C=w.ownerDocument,R=js(w),P=R.getComputedStyle(w),O=P.width,A=P.height,F=P.position,M=w.style.left,H=w.style.top,L=w.style.right,N=w.style.bottom,I=w.style.overflow,D=T(T({},o[n]),i),U=C.createElement("div");(d=w.parentElement)===null||d===void 0||d.appendChild(U),U.style.left="".concat(w.offsetLeft,"px"),U.style.top="".concat(w.offsetTop,"px"),U.style.position=F,U.style.height="".concat(w.offsetHeight,"px"),U.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var z;if(Array.isArray(r))z={x:r[0],y:r[1],width:0,height:0};else{var W,q,j=r.getBoundingClientRect();j.x=(W=j.x)!==null&&W!==void 0?W:j.left,j.y=(q=j.y)!==null&&q!==void 0?q:j.top,z={x:j.x,y:j.y,width:j.width,height:j.height}}var k=w.getBoundingClientRect();k.x=(x=k.x)!==null&&x!==void 0?x:k.left,k.y=(b=k.y)!==null&&b!==void 0?b:k.top;var V=C.documentElement,G=V.clientWidth,J=V.clientHeight,Y=V.scrollWidth,X=V.scrollHeight,ae=V.scrollTop,Z=V.scrollLeft,K=k.height,Q=k.width,re=z.height,ee=z.width,ne={left:0,top:0,right:G,bottom:J},de={left:-Z,top:-ae,right:Y-Z,bottom:X-ae},le=D.htmlRegion,pe="visible",Oe="visibleFirst";le!=="scroll"&&le!==Oe&&(le=pe);var Ce=le===Oe,De=p1(de,p),ce=p1(ne,p),ie=le===pe?ce:De,Re=Ce?ce:ie;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Le=w.getBoundingClientRect();w.style.left=M,w.style.top=H,w.style.right=L,w.style.bottom=N,w.style.overflow=I,(S=w.parentElement)===null||S===void 0||S.removeChild(U);var Ge=Ru(Math.round(Q/parseFloat(O)*1e3)/1e3),Me=Ru(Math.round(K/parseFloat(A)*1e3)/1e3);if(Ge===0||Me===0||Sl(r)&&!wv(r))return;var Ie=D.offset,je=D.targetOffset,We=vk(k,Ie),He=B(We,2),ye=He[0],se=He[1],xe=vk(z,je),_e=B(xe,2),he=_e[0],Je=_e[1];z.x-=he,z.y-=Je;var lt=D.points||[],Et=B(lt,2),Pt=Et[0],pt=Et[1],Ae=yk(pt),we=yk(Pt),et=Ou(z,Ae),Pe=Ou(k,we),$e=T({},D),Ee=et.x-Pe.x+ye,be=et.y-Pe.y+se,ht=Ln(Ee,be),Mt=Ln(Ee,be,ce),Fe=Ou(z,["t","l"]),Se=Ou(k,["t","l"]),Ke=Ou(z,["b","r"]),Be=Ou(k,["b","r"]),ze=D.overflow||{},tt=ze.adjustX,At=ze.adjustY,Tt=ze.shiftX,tr=ze.shiftY,Ft=function(Ua){return typeof Ua=="boolean"?Ua:Ua>=0},rr,pr,mr,kn;nc();var gr=Ft(At),Lt=we[0]===Ae[0];if(gr&&we[0]==="t"&&(pr>Re.bottom||g.current.bt)){var Te=be;Lt?Te-=K-re:Te=Fe.y-Be.y-se;var Ue=Ln(Ee,Te),ke=Ln(Ee,Te,ce);Ue>ht||Ue===ht&&(!Ce||ke>=Mt)?(g.current.bt=!0,be=Te,se=-se,$e.points=[Vs(we,0),Vs(Ae,0)]):g.current.bt=!1}if(gr&&we[0]==="b"&&(rr<Re.top||g.current.tb)){var ve=be;Lt?ve+=K-re:ve=Ke.y-Se.y-se;var nt=Ln(Ee,ve),Nt=Ln(Ee,ve,ce);nt>ht||nt===ht&&(!Ce||Nt>=Mt)?(g.current.tb=!0,be=ve,se=-se,$e.points=[Vs(we,0),Vs(Ae,0)]):g.current.tb=!1}var It=Ft(tt),mn=we[1]===Ae[1];if(It&&we[1]==="l"&&(kn>Re.right||g.current.rl)){var Ar=Ee;mn?Ar-=Q-ee:Ar=Fe.x-Be.x-ye;var Br=Ln(Ar,be),_r=Ln(Ar,be,ce);Br>ht||Br===ht&&(!Ce||_r>=Mt)?(g.current.rl=!0,Ee=Ar,ye=-ye,$e.points=[Vs(we,1),Vs(Ae,1)]):g.current.rl=!1}if(It&&we[1]==="r"&&(mr<Re.left||g.current.lr)){var jr=Ee;mn?jr+=Q-ee:jr=Ke.x-Se.x-ye;var Xn=Ln(jr,be),Mn=Ln(jr,be,ce);Xn>ht||Xn===ht&&(!Ce||Mn>=Mt)?(g.current.lr=!0,Ee=jr,ye=-ye,$e.points=[Vs(we,1),Vs(Ae,1)]):g.current.lr=!1}nc();var Zr=Tt===!0?0:Tt;typeof Zr=="number"&&(mr<ce.left&&(Ee-=mr-ce.left-ye,z.x+ee<ce.left+Zr&&(Ee+=z.x-ce.left+ee-Zr)),kn>ce.right&&(Ee-=kn-ce.right-ye,z.x>ce.right-Zr&&(Ee+=z.x-ce.right+Zr)));var wn=tr===!0?0:tr;typeof wn=="number"&&(rr<ce.top&&(be-=rr-ce.top-se,z.y+re<ce.top+wn&&(be+=z.y-ce.top+re-wn)),pr>ce.bottom&&(be-=pr-ce.bottom-se,z.y>ce.bottom-wn&&(be+=z.y-ce.bottom+wn)));var ja=k.x+Ee,Va=ja+Q,No=k.y+be,rc=No+K,Ha=z.x,St=Ha+ee,ft=z.y,en=ft+re,tn=Math.max(ja,Ha),Sr=Math.min(Va,St),kr=(tn+Sr)/2,po=kr-ja,Yn=Math.max(No,ft),Io=Math.min(rc,en),$i=(Yn+Io)/2,li=$i-No;a?.(t,$e);var Di=Le.right-k.x-(Ee+k.width),Fn=Le.bottom-k.y-(be+k.height);Ge===1&&(Ee=Math.round(Ee),Di=Math.round(Di)),Me===1&&(be=Math.round(be),Fn=Math.round(Fn));var j0={ready:!0,offsetX:Ee/Ge,offsetY:be/Me,offsetR:Di/Ge,offsetB:Fn/Me,arrowX:po/Ge,arrowY:li/Me,scaleX:Ge,scaleY:Me,align:$e};u(j0)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},m=function(){u(function(x){return T(T({},x),{},{ready:!1})})};return vt(m,[n]),vt(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function g1(e,t,r,n,o){vt(function(){if(e&&t&&r){let p=function(){n(),o()};var f=p,i=t,a=r,s=Xd(i),l=Xd(a),c=js(a),u=new Set([c].concat(te(s),te(l)));return u.forEach(function(g){g.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),n(),function(){u.forEach(function(g){g.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,r])}var Yd=E($());function h1(e,t,r,n,o,i,a,s){var l=Yd.useRef(e);l.current=e;var c=Yd.useRef(!1);Yd.useEffect(function(){if(t&&n&&(!o||i)){var f=function(){c.current=!1},p=function(b){var S;l.current&&!a(((S=b.composedPath)===null||S===void 0||(S=S.call(b))===null||S===void 0?void 0:S[0])||b.target)&&!c.current&&s(!1)},g=js(n);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",p,!0),g.addEventListener("contextmenu",p,!0);var h=Il(r);if(h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),0)var v,y,m,d;return function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",p,!0),g.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var QH=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function JH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lw,t=xt.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,p=r.defaultPopupVisible,g=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,m=y===void 0?.1:y,d=r.focusDelay,x=r.blurDelay,b=r.mask,S=r.maskClosable,w=S===void 0?!0:S,C=r.getPopupContainer,R=r.forceRender,P=r.autoDestroy,O=r.destroyPopupOnHide,A=r.popup,F=r.popupClassName,M=r.popupStyle,H=r.popupPlacement,L=r.builtinPlacements,N=L===void 0?{}:L,I=r.popupAlign,D=r.zIndex,U=r.stretch,z=r.getPopupClassNameFromAlign,W=r.fresh,q=r.alignPoint,j=r.onPopupClick,k=r.onPopupAlign,V=r.arrow,G=r.popupMotion,J=r.maskMotion,Y=r.popupTransitionName,X=r.popupAnimation,ae=r.maskTransitionName,Z=r.maskAnimation,K=r.className,Q=r.getTriggerDOMNode,re=Ve(r,QH),ee=P||O||!1,ne=xt.useState(!1),de=B(ne,2),le=de[0],pe=de[1];vt(function(){pe(xu())},[]);var Oe=xt.useRef({}),Ce=xt.useContext(u1),De=xt.useMemo(function(){return{registerSubPopup:function(ct,hr){Oe.current[ct]=hr,Ce?.registerSubPopup(ct,hr)}}},[Ce]),ce=Uv(),ie=xt.useState(null),Re=B(ie,2),Le=Re[0],Ge=Re[1],Me=xt.useRef(null),Ie=wt(function(Qe){Me.current=Qe,Sl(Qe)&&Le!==Qe&&Ge(Qe),Ce?.registerSubPopup(ce,Qe)}),je=xt.useState(null),We=B(je,2),He=We[0],ye=We[1],se=xt.useRef(null),xe=wt(function(Qe){Sl(Qe)&&He!==Qe&&(ye(Qe),se.current=Qe)}),_e=xt.Children.only(a),he=_e?.props||{},Je={},lt=wt(function(Qe){var ct,hr,Mr=He;return Mr?.contains(Qe)||((ct=Il(Mr))===null||ct===void 0?void 0:ct.host)===Qe||Qe===Mr||Le?.contains(Qe)||((hr=Il(Le))===null||hr===void 0?void 0:hr.host)===Qe||Qe===Le||Object.values(Oe.current).some(function(vr){return vr?.contains(Qe)||Qe===vr})}),Et=d1(i,G,X,Y),Pt=d1(i,J,Z,ae),pt=xt.useState(p||!1),Ae=B(pt,2),we=Ae[0],et=Ae[1],Pe=f??we,$e=wt(function(Qe){f===void 0&&et(Qe)});vt(function(){et(f||!1)},[f]);var Ee=xt.useRef(Pe);Ee.current=Pe;var be=xt.useRef([]);be.current=[];var ht=wt(function(Qe){var ct;$e(Qe),((ct=be.current[be.current.length-1])!==null&&ct!==void 0?ct:Pe)!==Qe&&(be.current.push(Qe),g?.(Qe))}),Mt=xt.useRef(),Fe=function(){clearTimeout(Mt.current)},Se=function(ct){var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fe(),hr===0?ht(ct):Mt.current=setTimeout(function(){ht(ct)},hr*1e3)};xt.useEffect(function(){return Fe},[]);var Ke=xt.useState(!1),Be=B(Ke,2),ze=Be[0],tt=Be[1];vt(function(Qe){(!Qe||Pe)&&tt(!0)},[Pe]);var At=xt.useState(null),Tt=B(At,2),tr=Tt[0],Ft=Tt[1],rr=xt.useState(null),pr=B(rr,2),mr=pr[0],kn=pr[1],gr=function(ct){kn([ct.clientX,ct.clientY])},Lt=m1(Pe,Le,q&&mr!==null?mr:He,H,N,I,k),Te=B(Lt,11),Ue=Te[0],ke=Te[1],ve=Te[2],nt=Te[3],Nt=Te[4],It=Te[5],mn=Te[6],Ar=Te[7],Br=Te[8],_r=Te[9],jr=Te[10],Xn=f1(le,l,c,u),Mn=B(Xn,2),Zr=Mn[0],wn=Mn[1],ja=Zr.has("click"),Va=wn.has("click")||wn.has("contextMenu"),No=wt(function(){ze||jr()}),rc=function(){Ee.current&&q&&Va&&Se(!1)};g1(Pe,He,Le,No,rc),vt(function(){No()},[mr,H]),vt(function(){Pe&&!(N!=null&&N[H])&&No()},[JSON.stringify(I)]);var Ha=xt.useMemo(function(){var Qe=gk(N,i,_r,q);return(0,my.default)(Qe,z?.(_r))},[_r,z,N,i,q]);xt.useImperativeHandle(n,function(){return{nativeElement:se.current,popupElement:Me.current,forceAlign:No}});var St=xt.useState(0),ft=B(St,2),en=ft[0],tn=ft[1],Sr=xt.useState(0),kr=B(Sr,2),po=kr[0],Yn=kr[1],Io=function(){if(U&&He){var ct=He.getBoundingClientRect();tn(ct.width),Yn(ct.height)}},$i=function(){Io(),No()},li=function(ct){tt(!1),jr(),h?.(ct)},Di=function(){return new Promise(function(ct){Io(),Ft(function(){return ct})})};vt(function(){tr&&(jr(),tr(),Ft(null))},[tr]);function Fn(Qe,ct,hr,Mr){Je[Qe]=function(vr){var Ip;Mr?.(vr),Se(ct,hr);for(var H0=arguments.length,vR=new Array(H0>1?H0-1:0),$p=1;$p<H0;$p++)vR[$p-1]=arguments[$p];(Ip=he[Qe])===null||Ip===void 0||Ip.call.apply(Ip,[he,vr].concat(vR))}}(ja||Va)&&(Je.onClick=function(Qe){var ct;Ee.current&&Va?Se(!1):!Ee.current&&ja&&(gr(Qe),Se(!0));for(var hr=arguments.length,Mr=new Array(hr>1?hr-1:0),vr=1;vr<hr;vr++)Mr[vr-1]=arguments[vr];(ct=he.onClick)===null||ct===void 0||ct.call.apply(ct,[he,Qe].concat(Mr))});var j0=h1(Pe,Va,He,Le,b,w,lt,Se),gR=Zr.has("hover"),hR=wn.has("hover"),Ln,nc;gR&&(Fn("onMouseEnter",!0,v,function(Qe){gr(Qe)}),Fn("onPointerEnter",!0,v,function(Qe){gr(Qe)}),Ln=function(ct){(Pe||ze)&&Le!==null&&Le!==void 0&&Le.contains(ct.target)&&Se(!0,v)},q&&(Je.onMouseMove=function(Qe){var ct;(ct=he.onMouseMove)===null||ct===void 0||ct.call(he,Qe)})),hR&&(Fn("onMouseLeave",!1,m),Fn("onPointerLeave",!1,m),nc=function(){Se(!1,m)}),Zr.has("focus")&&Fn("onFocus",!0,d),wn.has("focus")&&Fn("onBlur",!1,x),Zr.has("contextMenu")&&(Je.onContextMenu=function(Qe){var ct;Ee.current&&wn.has("contextMenu")?Se(!1):(gr(Qe),Se(!0)),Qe.preventDefault();for(var hr=arguments.length,Mr=new Array(hr>1?hr-1:0),vr=1;vr<hr;vr++)Mr[vr-1]=arguments[vr];(ct=he.onContextMenu)===null||ct===void 0||ct.call.apply(ct,[he,Qe].concat(Mr))}),K&&(Je.className=(0,my.default)(he.className,K));var oc=T(T({},he),Je),Ua={},ic=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ic.forEach(function(Qe){re[Qe]&&(Ua[Qe]=function(){for(var ct,hr=arguments.length,Mr=new Array(hr),vr=0;vr<hr;vr++)Mr[vr]=arguments[vr];(ct=oc[Qe])===null||ct===void 0||ct.call.apply(ct,[oc].concat(Mr)),re[Qe].apply(re,Mr)})});var Tp=xt.cloneElement(_e,T(T({},oc),Ua)),Np={x:It,y:mn},V0=V?T({},V!==!0?V:{}):null;return xt.createElement(xt.Fragment,null,xt.createElement(ro,{disabled:!Pe,ref:xe,onResize:$i},xt.createElement(fk,{getTriggerDOMNode:Q},Tp)),xt.createElement(u1.Provider,{value:De},xt.createElement(uk,{portal:e,ref:Ie,prefixCls:i,popup:A,className:(0,my.default)(F,Ha),style:M,target:He,onMouseEnter:Ln,onMouseLeave:nc,onPointerEnter:Ln,zIndex:D,open:Pe,keepDom:ze,fresh:W,onClick:j,onPointerDownCapture:j0,mask:b,motion:Et,maskMotion:Pt,onVisibleChanged:li,onPrepare:Di,forceRender:R,autoDestroy:ee,getPopupContainer:C,align:_r,arrow:V0,arrowPos:Np,ready:Ue,offsetX:ke,offsetY:ve,offsetR:nt,offsetB:Nt,onAlign:No,stretch:U,targetWidth:en/Ar,targetHeight:po/Br})))});return t}var gy=JH(Lw);var xk=E(Ne()),ri=E($()),ZH=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],e9=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},t9=function(t,r){var n=t.prefixCls,o=t.disabled,i=t.visible,a=t.children,s=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,f=t.dropdownClassName,p=t.direction,g=p===void 0?"ltr":p,h=t.placement,v=t.builtinPlacements,y=t.dropdownMatchSelectWidth,m=t.dropdownRender,d=t.dropdownAlign,x=t.getPopupContainer,b=t.empty,S=t.getTriggerDOMNode,w=t.onPopupVisibleChange,C=t.onPopupMouseEnter,R=Ve(t,ZH),P="".concat(n,"-dropdown"),O=s;m&&(O=m(s));var A=ri.useMemo(function(){return v||e9(y)},[v,y]),F=l?"".concat(P,"-").concat(l):c,M=typeof y=="number",H=ri.useMemo(function(){return M?null:y===!1?"minWidth":"width"},[y,M]),L=u;M&&(L=T(T({},L),{},{width:y}));var N=ri.useRef(null);return ri.useImperativeHandle(r,function(){return{getPopupElement:function(){var D;return(D=N.current)===null||D===void 0?void 0:D.popupElement}}}),ri.createElement(gy,fe({},R,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(g==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:P,popupTransitionName:F,popup:ri.createElement("div",{onMouseEnter:C},O),ref:N,stretch:H,popupAlign:d,popupVisible:i,getPopupContainer:x,popupClassName:(0,xk.default)(f,_({},"".concat(P,"-empty"),b)),popupStyle:L,getTriggerDOMNode:S,onPopupVisibleChange:w}),a)},r9=ri.forwardRef(t9),bk=r9;function Sk(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r??(n!==void 0?n:"rc-index-key-".concat(t))}function Qd(e){return typeof e<"u"&&!Number.isNaN(e)}function v1(e,t){var r=e||{},n=r.label,o=r.value,i=r.options,a=r.groupLabel,s=n||(t?"children":"label");return{label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function Ck(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],i=v1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(g){if(p||!(l in g)){var h=g[s];o.push({key:Sk(g,o.length),groupOption:p,data:g,label:g[a],value:h})}else{var v=g[c];v===void 0&&n&&(v=g.label),o.push({key:Sk(g,o.length),group:!0,data:g,label:v}),u(g[l],!0)}})}return u(e,!1),o}function Jd(e){var t=T({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var wk=function(t,r,n){if(!r||!r.length)return null;var o=!1,i=function s(l,c){var u=Eh(c),f=u[0],p=u.slice(1);if(!f)return[l];var g=l.split(f);return o=o||g.length>1,g.reduce(function(h,v){return[].concat(te(h),te(s(v,p)))},[]).filter(Boolean)},a=i(t,r);return o?typeof n<"u"?a.slice(0,n):a:null};var Ek=E($()),n9=Ek.createContext(null),_u=n9;var Rk=E($());function y1(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return Rk.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(ue(i))?i:a}).join(", ")),r.length>n?", ...":null)}var o9=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],i9=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Zd=function(t){return t==="tags"||t==="multiple"},a9=bt.forwardRef(function(e,t){var r,n=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,v=e.onClear,y=e.mode,m=e.disabled,d=e.loading,x=e.getInputElement,b=e.getRawInputElement,S=e.open,w=e.defaultOpen,C=e.onDropdownVisibleChange,R=e.activeValue,P=e.onActiveValueChange,O=e.activeDescendantId,A=e.searchValue,F=e.autoClearSearchValue,M=e.onSearch,H=e.onSearchSplit,L=e.tokenSeparators,N=e.allowClear,I=e.prefix,D=e.suffixIcon,U=e.clearIcon,z=e.OptionList,W=e.animation,q=e.transitionName,j=e.dropdownStyle,k=e.dropdownClassName,V=e.dropdownMatchSelectWidth,G=e.dropdownRender,J=e.dropdownAlign,Y=e.placement,X=e.builtinPlacements,ae=e.getPopupContainer,Z=e.showAction,K=Z===void 0?[]:Z,Q=e.onFocus,re=e.onBlur,ee=e.onKeyUp,ne=e.onKeyDown,de=e.onMouseDown,le=Ve(e,o9),pe=Zd(y),Oe=(a!==void 0?a:pe)||y==="combobox",Ce=T({},le);i9.forEach(function(St){delete Ce[St]}),c?.forEach(function(St){delete Ce[St]});var De=bt.useState(!1),ce=B(De,2),ie=ce[0],Re=ce[1];bt.useEffect(function(){Re(xu())},[]);var Le=bt.useRef(null),Ge=bt.useRef(null),Me=bt.useRef(null),Ie=bt.useRef(null),je=bt.useRef(null),We=bt.useRef(!1),He=r1(),ye=B(He,3),se=ye[0],xe=ye[1],_e=ye[2];bt.useImperativeHandle(t,function(){var St,ft;return{focus:(St=Ie.current)===null||St===void 0?void 0:St.focus,blur:(ft=Ie.current)===null||ft===void 0?void 0:ft.blur,scrollTo:function(tn){var Sr;return(Sr=je.current)===null||Sr===void 0?void 0:Sr.scrollTo(tn)},nativeElement:Le.current||Ge.current}});var he=bt.useMemo(function(){var St;if(y!=="combobox")return A;var ft=(St=u[0])===null||St===void 0?void 0:St.value;return typeof ft=="string"||typeof ft=="number"?String(ft):""},[A,y,u]),Je=y==="combobox"&&typeof x=="function"&&x()||null,lt=typeof b=="function"&&b(),Et=xi(Ge,lt==null||(r=lt.props)===null||r===void 0?void 0:r.ref),Pt=bt.useState(!1),pt=B(Pt,2),Ae=pt[0],we=pt[1];vt(function(){we(!0)},[]);var et=ar(!1,{defaultValue:w,value:S}),Pe=B(et,2),$e=Pe[0],Ee=Pe[1],be=Ae?$e:!1,ht=!h&&p;(m||ht&&be&&y==="combobox")&&(be=!1);var Mt=ht?!1:be,Fe=bt.useCallback(function(St){var ft=St!==void 0?St:!be;m||(Ee(ft),be!==ft&&C?.(ft))},[m,be,Ee,C]),Se=bt.useMemo(function(){return(L||[]).some(function(St){return[`
`,`\r
`].includes(St)})},[L]),Ke=bt.useContext(_u)||{},Be=Ke.maxCount,ze=Ke.rawValues,tt=function(ft,en,tn){if(!(pe&&Qd(Be)&&ze?.size>=Be)){var Sr=!0,kr=ft;P?.(null);var po=wk(ft,L,Qd(Be)?Be-ze.size:void 0),Yn=tn?null:po;return y!=="combobox"&&Yn&&(kr="",H?.(Yn),Fe(!1),Sr=!1),M&&he!==kr&&M(kr,{source:en?"typing":"effect"}),Sr}},At=function(ft){!ft||!ft.trim()||M(ft,{source:"submit"})};bt.useEffect(function(){!be&&!pe&&y!=="combobox"&&tt("",!1,!1)},[be]),bt.useEffect(function(){$e&&m&&Ee(!1),m&&!We.current&&xe(!1)},[m]);var Tt=Ud(),tr=B(Tt,2),Ft=tr[0],rr=tr[1],pr=bt.useRef(!1),mr=function(ft){var en=Ft(),tn=ft.key,Sr=tn==="Enter";if(Sr&&(y!=="combobox"&&ft.preventDefault(),be||Fe(!0)),rr(!!he),tn==="Backspace"&&!en&&pe&&!he&&u.length){for(var kr=te(u),po=null,Yn=kr.length-1;Yn>=0;Yn-=1){var Io=kr[Yn];if(!Io.disabled){kr.splice(Yn,1),po=Io;break}}po&&f(kr,{type:"remove",values:[po]})}for(var $i=arguments.length,li=new Array($i>1?$i-1:0),Di=1;Di<$i;Di++)li[Di-1]=arguments[Di];if(be&&(!Sr||!pr.current)){var Fn;Sr&&(pr.current=!0),(Fn=je.current)===null||Fn===void 0||Fn.onKeyDown.apply(Fn,[ft].concat(li))}ne?.apply(void 0,[ft].concat(li))},kn=function(ft){for(var en=arguments.length,tn=new Array(en>1?en-1:0),Sr=1;Sr<en;Sr++)tn[Sr-1]=arguments[Sr];if(be){var kr;(kr=je.current)===null||kr===void 0||kr.onKeyUp.apply(kr,[ft].concat(tn))}ft.key==="Enter"&&(pr.current=!1),ee?.apply(void 0,[ft].concat(tn))},gr=function(ft){var en=u.filter(function(tn){return tn!==ft});f(en,{type:"remove",values:[ft]})},Lt=function(){pr.current=!1},Te=bt.useRef(!1),Ue=function(){xe(!0),m||(Q&&!Te.current&&Q.apply(void 0,arguments),K.includes("focus")&&Fe(!0)),Te.current=!0},ke=function(){We.current=!0,xe(!1,function(){Te.current=!1,We.current=!1,Fe(!1)}),!m&&(he&&(y==="tags"?M(he,{source:"submit"}):y==="multiple"&&M("",{source:"blur"})),re&&re.apply(void 0,arguments))},ve=[];bt.useEffect(function(){return function(){ve.forEach(function(St){return clearTimeout(St)}),ve.splice(0,ve.length)}},[]);var nt=function(ft){var en,tn=ft.target,Sr=(en=Me.current)===null||en===void 0?void 0:en.getPopupElement();if(Sr&&Sr.contains(tn)){var kr=setTimeout(function(){var $i=ve.indexOf(kr);if($i!==-1&&ve.splice($i,1),_e(),!ie&&!Sr.contains(document.activeElement)){var li;(li=Ie.current)===null||li===void 0||li.focus()}});ve.push(kr)}for(var po=arguments.length,Yn=new Array(po>1?po-1:0),Io=1;Io<po;Io++)Yn[Io-1]=arguments[Io];de?.apply(void 0,[ft].concat(Yn))},Nt=bt.useState({}),It=B(Nt,2),mn=It[1];function Ar(){mn({})}var Br;lt&&(Br=function(ft){Fe(ft)}),n1(function(){var St;return[Le.current,(St=Me.current)===null||St===void 0?void 0:St.getPopupElement()]},Mt,Fe,!!lt);var _r=bt.useMemo(function(){return T(T({},e),{},{notFoundContent:h,open:be,triggerOpen:Mt,id:n,showSearch:Oe,multiple:pe,toggleOpen:Fe})},[e,h,Mt,be,n,Oe,pe,Fe]),jr=!!D||d,Xn;jr&&(Xn=bt.createElement(Ws,{className:(0,x1.default)("".concat(o,"-arrow"),_({},"".concat(o,"-arrow-loading"),d)),customizeIcon:D,customizeIconProps:{loading:d,searchValue:he,open:be,focused:se,showSearch:Oe}}));var Mn=function(){var ft;v?.(),(ft=Ie.current)===null||ft===void 0||ft.focus(),f([],{type:"clear",values:u}),tt("",!1,!1)},Zr=DA(o,Mn,u,N,U,m,he,y),wn=Zr.allowClear,ja=Zr.clearIcon,Va=bt.createElement(z,{ref:je}),No=(0,x1.default)(o,i,_(_(_(_(_(_(_(_(_(_({},"".concat(o,"-focused"),se),"".concat(o,"-multiple"),pe),"".concat(o,"-single"),!pe),"".concat(o,"-allow-clear"),N),"".concat(o,"-show-arrow"),jr),"".concat(o,"-disabled"),m),"".concat(o,"-loading"),d),"".concat(o,"-open"),be),"".concat(o,"-customize-input"),Je),"".concat(o,"-show-search"),Oe)),rc=bt.createElement(bk,{ref:Me,disabled:m,prefixCls:o,visible:Mt,popupElement:Va,animation:W,transitionName:q,dropdownStyle:j,dropdownClassName:k,direction:l,dropdownMatchSelectWidth:V,dropdownRender:G,dropdownAlign:J,placement:Y,builtinPlacements:X,getPopupContainer:ae,empty:p,getTriggerDOMNode:function(ft){return Ge.current||ft},onPopupVisibleChange:Br,onPopupMouseEnter:Ar},lt?bt.cloneElement(lt,{ref:Et}):bt.createElement(ok,fe({},e,{domRef:Ge,prefixCls:o,inputElement:Je,ref:Ie,id:n,prefix:I,showSearch:Oe,autoClearSearchValue:F,mode:y,activeDescendantId:O,tagRender:s,values:u,open:be,onToggleOpen:Fe,activeValue:R,searchValue:he,onSearch:tt,onSearchSubmit:At,onRemove:gr,tokenWithEnter:Se,onInputBlur:Lt}))),Ha;return lt?Ha=rc:Ha=bt.createElement("div",fe({className:No},Ce,{ref:Le,onMouseDown:nt,onKeyDown:mr,onKeyUp:kn,onFocus:Ue,onBlur:ke}),bt.createElement(y1,{visible:se&&!be,values:u}),rc,Xn,wn&&ja),bt.createElement(t1.Provider,{value:_r},Ha)}),b1=a9;var Ok=function(){return null};Ok.isSelectOptGroup=!0;var ep=Ok;var _k=function(){return null};_k.isSelectOption=!0;var tp=_k;var D1=E(Ne());var jk=E(Ne());var Dr=E($()),lo=E($()),$1=E(Vi());var Pu=E($());var Pk=E(Ne()),Tk=Pu.forwardRef(function(e,t){var r=e.height,n=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,f={},p={display:"flex",flexDirection:"column"};return n!==void 0&&(f={height:r,position:"relative",overflow:"hidden"},p=T(T({},p),{},_(_(_(_(_({transform:"translateY(".concat(n,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),Pu.createElement("div",{style:f},Pu.createElement(ro,{onResize:function(h){var v=h.offsetHeight;v&&s&&s()}},Pu.createElement("div",fe({style:p,className:(0,Pk.default)(_({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))});Tk.displayName="Filler";var Nk=Tk;var $k=E($());var hy=E($());function Ik(e){var t=e.children,r=e.setRef,n=hy.useCallback(function(o){r(o)},[]);return hy.cloneElement(t,{ref:n})}function S1(e,t,r,n,o,i,a,s){var l=s.getKey;return e.slice(t,r+1).map(function(c,u){var f=t+u,p=a(c,f,{style:{width:n},offsetX:o}),g=l(c);return $k.createElement(Ik,{key:g,setRef:function(v){return i(c,v)}},p)})}var rp=E($());function Dk(e,t,r){var n=e.length,o=t.length,i,a;if(n===0&&o===0)return null;n<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?r(h):s}for(var c=null,u=Math.abs(n-o)!==1,f=0;f<a.length;f+=1){var p=l(i[f]),g=l(a[f]);if(p!==g){c=f,u=u||p!==l(a[f+1]);break}}return c===null?null:{index:c,multiple:u}}function C1(e,t,r){var n=rp.useState(e),o=B(n,2),i=o[0],a=o[1],s=rp.useState(null),l=B(s,2),c=l[0],u=l[1];return rp.useEffect(function(){var f=Dk(i||[],e||[],t);f?.index!==void 0&&(r?.(f.index),u(e[f.index])),a(e)},[e]),[c]}var jl=E($());var s9=(typeof navigator>"u"?"undefined":ue(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),w1=s9;var vy=E($()),yy=function(e,t,r,n){var o=(0,vy.useRef)(!1),i=(0,vy.useRef)(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=(0,vy.useRef)({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function E1(e,t,r,n,o,i,a){var s=(0,jl.useRef)(0),l=(0,jl.useRef)(null),c=(0,jl.useRef)(null),u=(0,jl.useRef)(!1),f=yy(t,r,n,o);function p(d,x){if(dt.cancel(l.current),!f(!1,x)){var b=d;if(!b._virtualHandled)b._virtualHandled=!0;else return;s.current+=x,c.current=x,w1||b.preventDefault(),l.current=dt(function(){var S=u.current?10:1;a(s.current*S,!1),s.current=0})}}function g(d,x){a(x,!0),w1||d.preventDefault()}var h=(0,jl.useRef)(null),v=(0,jl.useRef)(null);function y(d){if(e){dt.cancel(v.current),v.current=dt(function(){h.current=null},2);var x=d.deltaX,b=d.deltaY,S=d.shiftKey,w=x,C=b;(h.current==="sx"||!h.current&&S&&b&&!x)&&(w=b,C=0,h.current="sx");var R=Math.abs(w),P=Math.abs(C);h.current===null&&(h.current=i&&R>P?"x":"y"),h.current==="y"?p(d,C):g(d,w)}}function m(d){e&&(u.current=d.detail===c.current)}return[y,m]}var Ak=E($());function kk(e,t,r,n){var o=Ak.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=B(o,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,p=a.get(u),g=a.get(f);if(p===void 0||g===void 0)for(var h=e.length,v=s.length;v<h;v+=1){var y,m=e[v],d=t(m);a.set(d,v);var x=(y=r.get(d))!==null&&y!==void 0?y:n;if(s[v]=(s[v-1]||0)+x,d===u&&(p=v),d===f&&(g=v),p!==void 0&&g!==void 0)break}return{top:s[p-1]||0,bottom:s[g]}};return l}var Lk=E($()),Tu=E($());var l9=function(){function e(){it(this,e),_(this,"maps",void 0),_(this,"id",0),_(this,"diffKeys",new Set),this.maps=Object.create(null)}return at(e,[{key:"set",value:function(r,n){this.maps[r]=n,this.id+=1,this.diffKeys.add(r)}},{key:"get",value:function(r){return this.maps[r]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}(),Mk=l9;function Fk(e){var t=parseFloat(e);return isNaN(t)?0:t}function R1(e,t,r){var n=Lk.useState(0),o=B(n,2),i=o[0],a=o[1],s=(0,Tu.useRef)(new Map),l=(0,Tu.useRef)(new Mk),c=(0,Tu.useRef)(0);function u(){c.current+=1}function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var m=!1;s.current.forEach(function(d,x){if(d&&d.offsetParent){var b=d.offsetHeight,S=getComputedStyle(d),w=S.marginTop,C=S.marginBottom,R=Fk(w),P=Fk(C),O=b+R+P;l.current.get(x)!==O&&(l.current.set(x,O),m=!0)}}),m&&a(function(d){return d+1})};if(g)h();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&h()})}}function p(g,h){var v=e(g),y=s.current.get(v);h?(s.current.set(v,h),f()):s.current.delete(v),!y!=!h&&(h?t?.(g):r?.(g))}return(0,Tu.useEffect)(function(){return u},[]),[p,f,l.current,i]}var Nu=E($()),zk=14/15;function O1(e,t,r){var n=(0,Nu.useRef)(!1),o=(0,Nu.useRef)(0),i=(0,Nu.useRef)(0),a=(0,Nu.useRef)(null),s=(0,Nu.useRef)(null),l,c=function(g){if(n.current){var h=Math.ceil(g.touches[0].pageX),v=Math.ceil(g.touches[0].pageY),y=o.current-h,m=i.current-v,d=Math.abs(y)>Math.abs(m);d?o.current=h:i.current=v;var x=r(d,d?y:m,!1,g);x&&g.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){d?y*=zk:m*=zk;var b=Math.floor(d?y:m);(!r(d,b,!0)||Math.abs(b)<=.1)&&clearInterval(s.current)},16))}},u=function(){n.current=!1,l()},f=function(g){l(),g.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(g.touches[0].pageX),i.current=Math.ceil(g.touches[0].pageY),a.current=g.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},vt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var Bk=E($());function Wk(e){return Math.floor(Math.pow(e,.5))}function xy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function _1(e,t,r){Bk.useEffect(function(){var n=t.current;if(e&&n){var o=!1,i,a,s=function(){dt.cancel(i)},l=function p(){s(),i=dt(function(){r(a),p()})},c=function(g){if(!(g.target.draggable||g.button!==0)){var h=g;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},f=function(g){if(o){var h=xy(g,!1),v=n.getBoundingClientRect(),y=v.top,m=v.bottom;if(h<=y){var d=y-h;a=-Wk(d),l()}else if(h>=m){var x=h-m;a=Wk(x),l()}else s()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",u),n.ownerDocument.addEventListener("mousemove",f),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",u),n.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var by=E($());var c9=10;function P1(e,t,r,n,o,i,a,s){var l=by.useRef(),c=by.useState(null),u=B(c,2),f=u[0],p=u[1];return vt(function(){if(f&&f.times<c9){if(!e.current){p(function(U){return T({},U)});return}i();var g=f.targetAlign,h=f.originAlign,v=f.index,y=f.offset,m=e.current.clientHeight,d=!1,x=g,b=null;if(m){for(var S=g||h,w=0,C=0,R=0,P=Math.min(t.length-1,v),O=0;O<=P;O+=1){var A=o(t[O]);C=w;var F=r.get(A);R=C+(F===void 0?n:F),w=R}for(var M=S==="top"?y:m-y,H=P;H>=0;H-=1){var L=o(t[H]),N=r.get(L);if(N===void 0){d=!0;break}if(M-=N,M<=0)break}switch(S){case"top":b=C-y;break;case"bottom":b=R-m+y;break;default:{var I=e.current.scrollTop,D=I+m;C<I?x="top":R>D&&(x="bottom")}}b!==null&&a(b),b!==f.lastTop&&(d=!0)}d&&p(T(T({},f),{},{times:f.times+1,targetAlign:x,lastTop:b}))}},[f,e.current]),function(g){if(g==null){s();return}if(dt.cancel(l.current),typeof g=="number")a(g);else if(g&&ue(g)==="object"){var h,v=g.align;"index"in g?h=g.index:h=t.findIndex(function(d){return o(d)===g.key});var y=g.offset,m=y===void 0?0:y;p({times:0,index:h,offset:m,originAlign:v})}}}var T1=E(Ne());var ur=E($());var u9=ur.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,g=e.thumbStyle,h=e.showScrollBar,v=ur.useState(!1),y=B(v,2),m=y[0],d=y[1],x=ur.useState(null),b=B(x,2),S=b[0],w=b[1],C=ur.useState(null),R=B(C,2),P=R[0],O=R[1],A=!n,F=ur.useRef(),M=ur.useRef(),H=ur.useState(h),L=B(H,2),N=L[0],I=L[1],D=ur.useRef(),U=function(){h===!0||h===!1||(clearTimeout(D.current),I(!0),D.current=setTimeout(function(){I(!1)},3e3))},z=i-f||0,W=f-u||0,q=ur.useMemo(function(){if(o===0||z===0)return 0;var Z=o/z;return Z*W},[o,z,W]),j=function(K){K.stopPropagation(),K.preventDefault()},k=ur.useRef({top:q,dragging:m,pageY:S,startTop:P});k.current={top:q,dragging:m,pageY:S,startTop:P};var V=function(K){d(!0),w(xy(K,c)),O(k.current.top),a(),K.stopPropagation(),K.preventDefault()};ur.useEffect(function(){var Z=function(ee){ee.preventDefault()},K=F.current,Q=M.current;return K.addEventListener("touchstart",Z,{passive:!1}),Q.addEventListener("touchstart",V,{passive:!1}),function(){K.removeEventListener("touchstart",Z),Q.removeEventListener("touchstart",V)}},[]);var G=ur.useRef();G.current=z;var J=ur.useRef();J.current=W,ur.useEffect(function(){if(m){var Z,K=function(ee){var ne=k.current,de=ne.dragging,le=ne.pageY,pe=ne.startTop;dt.cancel(Z);var Oe=F.current.getBoundingClientRect(),Ce=f/(c?Oe.width:Oe.height);if(de){var De=(xy(ee,c)-le)*Ce,ce=pe;!A&&c?ce-=De:ce+=De;var ie=G.current,Re=J.current,Le=Re?ce/Re:0,Ge=Math.ceil(Le*ie);Ge=Math.max(Ge,0),Ge=Math.min(Ge,ie),Z=dt(function(){l(Ge,c)})}},Q=function(){d(!1),s()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",Q,{passive:!0}),window.addEventListener("touchend",Q,{passive:!0}),function(){window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),dt.cancel(Z)}}},[m]),ur.useEffect(function(){return U(),function(){clearTimeout(D.current)}},[o]),ur.useImperativeHandle(t,function(){return{delayHidden:U}});var Y="".concat(r,"-scrollbar"),X={position:"absolute",visibility:N?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ae.height="100%",ae.width=u,A?ae.left=q:ae.right=q):(X.width=8,X.top=0,X.bottom=0,A?X.right=0:X.left=0,ae.width="100%",ae.height=u,ae.top=q),ur.createElement("div",{ref:F,className:(0,T1.default)(Y,_(_(_({},"".concat(Y,"-horizontal"),c),"".concat(Y,"-vertical"),!c),"".concat(Y,"-visible"),N)),style:T(T({},X),p),onMouseDown:j,onMouseMove:U},ur.createElement("div",{ref:M,className:(0,T1.default)("".concat(Y,"-thumb"),_({},"".concat(Y,"-thumb-moving"),m)),style:T(T({},ae),g),onMouseDown:V}))}),N1=u9;var f9=20;function I1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,f9),Math.floor(r)}var d9=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],p9=[],m9={overflowY:"auto",overflowAnchor:"none"};function g9(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,g=e.virtual,h=e.direction,v=e.scrollWidth,y=e.component,m=y===void 0?"div":y,d=e.onScroll,x=e.onVirtualScroll,b=e.onVisibleChange,S=e.innerProps,w=e.extraRender,C=e.styles,R=e.showScrollBar,P=R===void 0?"optional":R,O=Ve(e,d9),A=Dr.useCallback(function(Te){return typeof p=="function"?p(Te):Te?.[p]},[p]),F=R1(A,null,null),M=B(F,4),H=M[0],L=M[1],N=M[2],I=M[3],D=!!(g!==!1&&i&&a),U=Dr.useMemo(function(){return Object.values(N.maps).reduce(function(Te,Ue){return Te+Ue},0)},[N.id,N.maps]),z=D&&u&&(Math.max(a*u.length,U)>i||!!v),W=h==="rtl",q=(0,jk.default)(n,_({},"".concat(n,"-rtl"),W),o),j=u||p9,k=(0,lo.useRef)(),V=(0,lo.useRef)(),G=(0,lo.useRef)(),J=(0,lo.useState)(0),Y=B(J,2),X=Y[0],ae=Y[1],Z=(0,lo.useState)(0),K=B(Z,2),Q=K[0],re=K[1],ee=(0,lo.useState)(!1),ne=B(ee,2),de=ne[0],le=ne[1],pe=function(){le(!0)},Oe=function(){le(!1)},Ce={getKey:A};function De(Te){ae(function(Ue){var ke;typeof Te=="function"?ke=Te(Ue):ke=Te;var ve=we(ke);return k.current.scrollTop=ve,ve})}var ce=(0,lo.useRef)({start:0,end:j.length}),ie=(0,lo.useRef)(),Re=C1(j,A),Le=B(Re,1),Ge=Le[0];ie.current=Ge;var Me=Dr.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!z){var Te;return{scrollHeight:((Te=V.current)===null||Te===void 0?void 0:Te.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var Ue=0,ke,ve,nt,Nt=j.length,It=0;It<Nt;It+=1){var mn=j[It],Ar=A(mn),Br=N.get(Ar),_r=Ue+(Br===void 0?a:Br);_r>=X&&ke===void 0&&(ke=It,ve=Ue),_r>X+i&&nt===void 0&&(nt=It),Ue=_r}return ke===void 0&&(ke=0,ve=0,nt=Math.ceil(i/a)),nt===void 0&&(nt=j.length-1),nt=Math.min(nt+1,j.length-1),{scrollHeight:Ue,start:ke,end:nt,offset:ve}},[z,D,X,j,I,i]),Ie=Me.scrollHeight,je=Me.start,We=Me.end,He=Me.offset;ce.current.start=je,ce.current.end=We,Dr.useLayoutEffect(function(){var Te=N.getRecord();if(Te.size===1){var Ue=Array.from(Te)[0],ke=j[je];if(ke){var ve=A(ke);if(ve===Ue){var nt=N.get(Ue),Nt=nt-a;De(function(It){return It+Nt})}}}N.resetRecord()},[Ie]);var ye=Dr.useState({width:0,height:i}),se=B(ye,2),xe=se[0],_e=se[1],he=function(Ue){_e({width:Ue.offsetWidth,height:Ue.offsetHeight})},Je=(0,lo.useRef)(),lt=(0,lo.useRef)(),Et=Dr.useMemo(function(){return I1(xe.width,v)},[xe.width,v]),Pt=Dr.useMemo(function(){return I1(xe.height,Ie)},[xe.height,Ie]),pt=Ie-i,Ae=(0,lo.useRef)(pt);Ae.current=pt;function we(Te){var Ue=Te;return Number.isNaN(Ae.current)||(Ue=Math.min(Ue,Ae.current)),Ue=Math.max(Ue,0),Ue}var et=X<=0,Pe=X>=pt,$e=Q<=0,Ee=Q>=v,be=yy(et,Pe,$e,Ee),ht=function(){return{x:W?-Q:Q,y:X}},Mt=(0,lo.useRef)(ht()),Fe=wt(function(Te){if(x){var Ue=T(T({},ht()),Te);(Mt.current.x!==Ue.x||Mt.current.y!==Ue.y)&&(x(Ue),Mt.current=Ue)}});function Se(Te,Ue){var ke=Te;Ue?((0,$1.flushSync)(function(){re(ke)}),Fe()):De(ke)}function Ke(Te){var Ue=Te.currentTarget.scrollTop;Ue!==X&&De(Ue),d?.(Te),Fe()}var Be=function(Ue){var ke=Ue,ve=v?v-xe.width:0;return ke=Math.max(ke,0),ke=Math.min(ke,ve),ke},ze=wt(function(Te,Ue){Ue?((0,$1.flushSync)(function(){re(function(ke){var ve=ke+(W?-Te:Te);return Be(ve)})}),Fe()):De(function(ke){var ve=ke+Te;return ve})}),tt=E1(D,et,Pe,$e,Ee,!!v,ze),At=B(tt,2),Tt=At[0],tr=At[1];O1(D,k,function(Te,Ue,ke,ve){var nt=ve;return be(Te,Ue,ke)?!1:!nt||!nt._virtualHandled?(nt&&(nt._virtualHandled=!0),Tt({preventDefault:function(){},deltaX:Te?Ue:0,deltaY:Te?0:Ue}),!0):!1}),_1(z,k,function(Te){De(function(Ue){return Ue+Te})}),vt(function(){function Te(ke){var ve=et&&ke.detail<0,nt=Pe&&ke.detail>0;D&&!ve&&!nt&&ke.preventDefault()}var Ue=k.current;return Ue.addEventListener("wheel",Tt,{passive:!1}),Ue.addEventListener("DOMMouseScroll",tr,{passive:!0}),Ue.addEventListener("MozMousePixelScroll",Te,{passive:!1}),function(){Ue.removeEventListener("wheel",Tt),Ue.removeEventListener("DOMMouseScroll",tr),Ue.removeEventListener("MozMousePixelScroll",Te)}},[D,et,Pe]),vt(function(){if(v){var Te=Be(Q);re(Te),Fe({x:Te})}},[xe.width,v]);var Ft=function(){var Ue,ke;(Ue=Je.current)===null||Ue===void 0||Ue.delayHidden(),(ke=lt.current)===null||ke===void 0||ke.delayHidden()},rr=P1(k,j,N,a,A,function(){return L(!0)},De,Ft);Dr.useImperativeHandle(t,function(){return{nativeElement:G.current,getScrollInfo:ht,scrollTo:function(Ue){function ke(ve){return ve&&ue(ve)==="object"&&("left"in ve||"top"in ve)}ke(Ue)?(Ue.left!==void 0&&re(Be(Ue.left)),rr(Ue.top)):rr(Ue)}}}),vt(function(){if(b){var Te=j.slice(je,We+1);b(Te,j)}},[je,We,j]);var pr=kk(j,A,N,a),mr=w?.({start:je,end:We,virtual:z,offsetX:Q,offsetY:He,rtl:W,getSize:pr}),kn=S1(j,je,We,v,Q,H,f,Ce),gr=null;i&&(gr=T(_({},l?"height":"maxHeight",i),m9),D&&(gr.overflowY="hidden",v&&(gr.overflowX="hidden"),de&&(gr.pointerEvents="none")));var Lt={};return W&&(Lt.dir="rtl"),Dr.createElement("div",fe({ref:G,style:T(T({},c),{},{position:"relative"}),className:q},Lt,O),Dr.createElement(ro,{onResize:he},Dr.createElement(m,{className:"".concat(n,"-holder"),style:gr,ref:k,onScroll:Ke,onMouseEnter:Ft},Dr.createElement(Nk,{prefixCls:n,height:Ie,offsetX:Q,offsetY:He,scrollWidth:v,onInnerResize:L,ref:V,innerProps:S,rtl:W,extra:mr},kn))),z&&Ie>i&&Dr.createElement(N1,{ref:Je,prefixCls:n,scrollOffset:X,scrollRange:Ie,rtl:W,onScroll:Se,onStartMove:pe,onStopMove:Oe,spinSize:Pt,containerSize:xe.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:P}),z&&v>xe.width&&Dr.createElement(N1,{ref:lt,prefixCls:n,scrollOffset:Q,scrollRange:v,rtl:W,onScroll:Se,onStartMove:pe,onStopMove:Oe,spinSize:Et,containerSize:xe.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:P}))}var Vk=Dr.forwardRef(g9);Vk.displayName="List";var Hk=Vk;var Uk=Hk;var Ut=E($()),A1=E($());function qk(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var h9=["disabled","title","children","style","className"];function Gk(e){return typeof e=="string"||typeof e=="number"}var v9=function(t,r){var n=ay(),o=n.prefixCls,i=n.id,a=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,f=n.notFoundContent,p=n.onPopupScroll,g=Ut.useContext(_u),h=g.maxCount,v=g.flattenOptions,y=g.onActiveValue,m=g.defaultActiveFirstOption,d=g.onSelect,x=g.menuItemSelectedIcon,b=g.rawValues,S=g.fieldNames,w=g.virtual,C=g.direction,R=g.listHeight,P=g.listItemHeight,O=g.optionRender,A="".concat(o,"-item"),F=Hi(function(){return v},[a,v],function(Z,K){return K[0]&&Z[1]!==K[1]}),M=Ut.useRef(null),H=Ut.useMemo(function(){return s&&Qd(h)&&b?.size>=h},[s,h,b?.size]),L=function(K){K.preventDefault()},N=function(K){var Q;(Q=M.current)===null||Q===void 0||Q.scrollTo(typeof K=="number"?{index:K}:K)},I=Ut.useCallback(function(Z){return l==="combobox"?!1:b.has(Z)},[l,te(b).toString(),b.size]),D=function(K){for(var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=F.length,ee=0;ee<re;ee+=1){var ne=(K+ee*Q+re)%re,de=F[ne]||{},le=de.group,pe=de.data;if(!le&&!(pe!=null&&pe.disabled)&&(I(pe.value)||!H))return ne}return-1},U=Ut.useState(function(){return D(0)}),z=B(U,2),W=z[0],q=z[1],j=function(K){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;q(K);var re={source:Q?"keyboard":"mouse"},ee=F[K];if(!ee){y(null,-1,re);return}y(ee.value,K,re)};(0,A1.useEffect)(function(){j(m!==!1?D(0):-1)},[F.length,c]);var k=Ut.useCallback(function(Z){return l==="combobox"?String(Z).toLowerCase()===c.toLowerCase():b.has(Z)},[l,c,te(b).toString(),b.size]);(0,A1.useEffect)(function(){var Z=setTimeout(function(){if(!s&&a&&b.size===1){var Q=Array.from(b)[0],re=F.findIndex(function(ee){var ne=ee.data;return c?String(ne.value).startsWith(c):ne.value===Q});re!==-1&&(j(re),N(re))}});if(a){var K;(K=M.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[a,c]);var V=function(K){K!==void 0&&d(K,{selected:!b.has(K)}),s||u(!1)};if(Ut.useImperativeHandle(r,function(){return{onKeyDown:function(K){var Q=K.which,re=K.ctrlKey;switch(Q){case Ye.N:case Ye.P:case Ye.UP:case Ye.DOWN:{var ee=0;if(Q===Ye.UP?ee=-1:Q===Ye.DOWN?ee=1:qk()&&re&&(Q===Ye.N?ee=1:Q===Ye.P&&(ee=-1)),ee!==0){var ne=D(W+ee,ee);N(ne),j(ne,!0)}break}case Ye.TAB:case Ye.ENTER:{var de,le=F[W];le&&!(le!=null&&(de=le.data)!==null&&de!==void 0&&de.disabled)&&!H?V(le.value):V(void 0),a&&K.preventDefault();break}case Ye.ESC:u(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){N(K)}}}),F.length===0)return Ut.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(A,"-empty"),onMouseDown:L},f);var G=Object.keys(S).map(function(Z){return S[Z]}),J=function(K){return K.label};function Y(Z,K){var Q=Z.group;return{role:Q?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var X=function(K){var Q=F[K];if(!Q)return null;var re=Q.data||{},ee=re.value,ne=Q.group,de=qo(re,!0),le=J(Q);return Q?Ut.createElement("div",fe({"aria-label":typeof le=="string"&&!ne?le:null},de,{key:K},Y(Q,K),{"aria-selected":k(ee)}),ee):null},ae={role:"listbox",id:"".concat(i,"_list")};return Ut.createElement(Ut.Fragment,null,w&&Ut.createElement("div",fe({},ae,{style:{height:0,width:0,overflow:"hidden"}}),X(W-1),X(W),X(W+1)),Ut.createElement(Uk,{itemKey:"key",ref:M,data:F,height:R,itemHeight:P,fullHeight:!1,onMouseDown:L,onScroll:p,virtual:w,direction:C,innerProps:w?null:ae},function(Z,K){var Q=Z.group,re=Z.groupOption,ee=Z.data,ne=Z.label,de=Z.value,le=ee.key;if(Q){var pe,Oe=(pe=ee.title)!==null&&pe!==void 0?pe:Gk(ne)?ne.toString():void 0;return Ut.createElement("div",{className:(0,D1.default)(A,"".concat(A,"-group"),ee.className),title:Oe},ne!==void 0?ne:le)}var Ce=ee.disabled,De=ee.title,ce=ee.children,ie=ee.style,Re=ee.className,Le=Ve(ee,h9),Ge=qr(Le,G),Me=I(de),Ie=Ce||!Me&&H,je="".concat(A,"-option"),We=(0,D1.default)(A,je,Re,_(_(_(_({},"".concat(je,"-grouped"),re),"".concat(je,"-active"),W===K&&!Ie),"".concat(je,"-disabled"),Ie),"".concat(je,"-selected"),Me)),He=J(Z),ye=!x||typeof x=="function"||Me,se=typeof He=="number"?He:He||de,xe=Gk(se)?se.toString():void 0;return De!==void 0&&(xe=De),Ut.createElement("div",fe({},qo(Ge),w?{}:Y(Z,K),{"aria-selected":k(de),className:We,title:xe,onMouseMove:function(){W===K||Ie||j(K)},onClick:function(){Ie||V(de)},style:ie}),Ut.createElement("div",{className:"".concat(je,"-content")},typeof O=="function"?O(Z,{index:K}):se),Ut.isValidElement(x)||Me,ye&&Ut.createElement(Ws,{className:"".concat(A,"-option-state"),customizeIcon:x,customizeIconProps:{value:de,disabled:Ie,isSelected:Me}},Me?"\u2713":null))}))},y9=Ut.forwardRef(v9),Kk=y9;var Iu=E($()),Xk=function(e,t){var r=Iu.useRef({values:new Map,options:new Map}),n=Iu.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var p;return T(T({},f),{},{label:(p=a.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),o=Iu.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,o]};var Yk=E($());function k1(e,t){return Gd(e).join("").toUpperCase().includes(t)}var Qk=function(e,t,r,n,o){return Yk.useMemo(function(){if(!r||n===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof n=="function",u=r.toUpperCase(),f=c?n:function(g,h){return o?k1(h[o],u):h[i]?k1(h[a!=="children"?a:"label"],u):k1(h[s],u)},p=c?function(g){return Jd(g)}:function(g){return g};return e.forEach(function(g){if(g[i]){var h=f(r,p(g));if(h)l.push(g);else{var v=g[i].filter(function(y){return f(r,p(y))});v.length&&l.push(T(T({},g),{},_({},i,v)))}return}f(r,p(g))&&l.push(g)}),l},[e,n,o,r,t])};var Sy=E($());var Jk=0,x9=Yt();function b9(){var e;return x9?(e=Jk,Jk+=1):e="TEST_OR_SSR",e}function M1(e){var t=Sy.useState(),r=B(t,2),n=r[0],o=r[1];return Sy.useEffect(function(){o("rc_select_".concat(b9()))},[]),e||n}var eM=E($());var Zk=E($());var S9=["children","value"],C9=["children"];function w9(e){var t=e,r=t.key,n=t.props,o=n.children,i=n.value,a=Ve(n,S9);return T({key:r,value:i!==void 0?i:r,children:o},a)}function Cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return yi(e).map(function(r,n){if(!Zk.isValidElement(r)||!r.type)return null;var o=r,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Ve(s,C9);return t||!i?w9(r):T(T({key:"__RC_SELECT_GRP__".concat(a===null?n:a,"__"),label:a},c),{},{options:Cy(l)})}).filter(function(r){return r})}var E9=function(t,r,n,o,i){return eM.useMemo(function(){var a=t,s=!t;s&&(a=Cy(r));var l=new Map,c=new Map,u=function(g,h,v){v&&typeof v=="string"&&g.set(h[v],h)},f=function p(g){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<g.length;v+=1){var y=g[v];!y[n.options]||h?(l.set(y[n.value],y),u(c,y,n.label),u(c,y,o),u(c,y,i)):p(y[n.options],!0)}};return f(a),{options:a,valueOptions:l,labelOptions:c}},[t,r,n,o,i])},tM=E9;var wy=E($());function Ey(e){var t=wy.useRef();t.current=e;var r=wy.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var R9=E($());var O9=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],_9=["inputValue"];function P9(e){return!e||ue(e)!=="object"}var T9=fr.forwardRef(function(e,t){var r=e.id,n=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,g=e.onSelect,h=e.onDeselect,v=e.dropdownMatchSelectWidth,y=v===void 0?!0:v,m=e.filterOption,d=e.filterSort,x=e.optionFilterProp,b=e.optionLabelProp,S=e.options,w=e.optionRender,C=e.children,R=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,O=e.virtual,A=e.direction,F=e.listHeight,M=F===void 0?200:F,H=e.listItemHeight,L=H===void 0?20:H,N=e.labelRender,I=e.value,D=e.defaultValue,U=e.labelInValue,z=e.onChange,W=e.maxCount,q=Ve(e,O9),j=M1(r),k=Zd(n),V=!!(!S&&C),G=fr.useMemo(function(){return m===void 0&&n==="combobox"?!1:m},[m,n]),J=fr.useMemo(function(){return v1(s,V)},[JSON.stringify(s),V]),Y=ar("",{value:c!==void 0?c:l,postState:function(Se){return Se||""}}),X=B(Y,2),ae=X[0],Z=X[1],K=tM(S,C,J,x,b),Q=K.valueOptions,re=K.labelOptions,ee=K.options,ne=fr.useCallback(function(Fe){var Se=Gd(Fe);return Se.map(function(Ke){var Be,ze,tt,At,Tt;if(P9(Ke))Be=Ke;else{var tr;tt=Ke.key,ze=Ke.label,Be=(tr=Ke.value)!==null&&tr!==void 0?tr:tt}var Ft=Q.get(Be);if(Ft){var rr;if(ze===void 0&&(ze=Ft?.[b||J.label]),tt===void 0&&(tt=(rr=Ft?.key)!==null&&rr!==void 0?rr:Be),At=Ft?.disabled,Tt=Ft?.title,0)var pr}return{label:ze,value:Be,key:tt,disabled:At,title:Tt}})},[J,b,Q]),de=ar(D,{value:I}),le=B(de,2),pe=le[0],Oe=le[1],Ce=fr.useMemo(function(){var Fe,Se=k&&pe===null?[]:pe,Ke=ne(Se);return n==="combobox"&&ZA((Fe=Ke[0])===null||Fe===void 0?void 0:Fe.value)?[]:Ke},[pe,ne,n,k]),De=Xk(Ce,Q),ce=B(De,2),ie=ce[0],Re=ce[1],Le=fr.useMemo(function(){if(!n&&ie.length===1){var Fe=ie[0];if(Fe.value===null&&(Fe.label===null||Fe.label===void 0))return[]}return ie.map(function(Se){var Ke;return T(T({},Se),{},{label:(Ke=typeof N=="function"?N(Se):Se.label)!==null&&Ke!==void 0?Ke:Se.value})})},[n,ie,N]),Ge=fr.useMemo(function(){return new Set(ie.map(function(Fe){return Fe.value}))},[ie]);fr.useEffect(function(){if(n==="combobox"){var Fe,Se=(Fe=ie[0])===null||Fe===void 0?void 0:Fe.value;Z(JA(Se)?String(Se):"")}},[ie]);var Me=Ey(function(Fe,Se){var Ke=Se??Fe;return _(_({},J.value,Fe),J.label,Ke)}),Ie=fr.useMemo(function(){if(n!=="tags")return ee;var Fe=te(ee),Se=function(Be){return Q.has(Be)};return te(ie).sort(function(Ke,Be){return Ke.value<Be.value?-1:1}).forEach(function(Ke){var Be=Ke.value;Se(Be)||Fe.push(Me(Be,Ke.label))}),Fe},[Me,ee,Q,ie,n]),je=Qk(Ie,J,ae,G,x),We=fr.useMemo(function(){return n!=="tags"||!ae||je.some(function(Fe){return Fe[x||"value"]===ae})||je.some(function(Fe){return Fe[J.value]===ae})?je:[Me(ae)].concat(te(je))},[Me,x,n,je,ae,J]),He=function Fe(Se){var Ke=te(Se).sort(function(Be,ze){return d(Be,ze,{searchValue:ae})});return Ke.map(function(Be){return Array.isArray(Be.options)?T(T({},Be),{},{options:Be.options.length>0?Fe(Be.options):Be.options}):Be})},ye=fr.useMemo(function(){return d?He(We):We},[We,d,ae]),se=fr.useMemo(function(){return Ck(ye,{fieldNames:J,childrenAsData:V})},[ye,J,V]),xe=function(Se){var Ke=ne(Se);if(Oe(Ke),z&&(Ke.length!==ie.length||Ke.some(function(tt,At){var Tt;return((Tt=ie[At])===null||Tt===void 0?void 0:Tt.value)!==tt?.value}))){var Be=U?Ke:Ke.map(function(tt){return tt.value}),ze=Ke.map(function(tt){return Jd(Re(tt.value))});z(k?Be:Be[0],k?ze:ze[0])}},_e=fr.useState(null),he=B(_e,2),Je=he[0],lt=he[1],Et=fr.useState(0),Pt=B(Et,2),pt=Pt[0],Ae=Pt[1],we=R!==void 0?R:n!=="combobox",et=fr.useCallback(function(Fe,Se){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Be=Ke.source,ze=Be===void 0?"keyboard":Be;Ae(Se),a&&n==="combobox"&&Fe!==null&&ze==="keyboard"&&lt(String(Fe))},[a,n]),Pe=function(Se,Ke,Be){var ze=function(){var gr,Lt=Re(Se);return[U?{label:Lt?.[J.label],value:Se,key:(gr=Lt?.key)!==null&&gr!==void 0?gr:Se}:Se,Jd(Lt)]};if(Ke&&g){var tt=ze(),At=B(tt,2),Tt=At[0],tr=At[1];g(Tt,tr)}else if(!Ke&&h&&Be!=="clear"){var Ft=ze(),rr=B(Ft,2),pr=rr[0],mr=rr[1];h(pr,mr)}},$e=Ey(function(Fe,Se){var Ke,Be=k?Se.selected:!0;Be?Ke=k?[].concat(te(ie),[Fe]):[Fe]:Ke=ie.filter(function(ze){return ze.value!==Fe}),xe(Ke),Pe(Fe,Be),n==="combobox"?lt(""):(!Zd||p)&&(Z(""),lt(""))}),Ee=function(Se,Ke){xe(Se);var Be=Ke.type,ze=Ke.values;(Be==="remove"||Be==="clear")&&ze.forEach(function(tt){Pe(tt.value,!1,Be)})},be=function(Se,Ke){if(Z(Se),lt(null),Ke.source==="submit"){var Be=(Se||"").trim();if(Be){var ze=Array.from(new Set([].concat(te(Ge),[Be])));xe(ze),Pe(Be,!0),Z("")}return}Ke.source!=="blur"&&(n==="combobox"&&xe(Se),u?.(Se))},ht=function(Se){var Ke=Se;n!=="tags"&&(Ke=Se.map(function(ze){var tt=re.get(ze);return tt?.value}).filter(function(ze){return ze!==void 0}));var Be=Array.from(new Set([].concat(te(Ge),te(Ke))));xe(Be),Be.forEach(function(ze){Pe(ze,!0)})},Mt=fr.useMemo(function(){var Fe=O!==!1&&y!==!1;return T(T({},K),{},{flattenOptions:se,onActiveValue:et,defaultActiveFirstOption:we,onSelect:$e,menuItemSelectedIcon:P,rawValues:Ge,fieldNames:J,virtual:Fe,direction:A,listHeight:M,listItemHeight:L,childrenAsData:V,maxCount:W,optionRender:w})},[W,K,se,et,we,$e,P,Ge,J,O,y,A,M,L,V,w]);return fr.createElement(_u.Provider,{value:Mt},fr.createElement(b1,fe({},q,{id:j,prefixCls:i,ref:t,omitDomProps:_9,mode:n,displayValues:Le,onDisplayValuesChange:Ee,direction:A,searchValue:ae,onSearch:be,autoClearSearchValue:p,onSearchSplit:ht,dropdownMatchSelectWidth:y,OptionList:Kk,emptyOptions:!se.length,activeValue:Je,activeDescendantId:"".concat(j,"_list_").concat(pt)})))}),F1=T9;F1.Option=tp;F1.OptGroup=ep;var rM=F1;var nM=rM;var oM=E(Ne());function Yi(e,t,r){return(0,oM.default)({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}var Qi=(e,t)=>t||e;var Du=E($());var Us=E($()),np=E(Ne());var co=E($());var N9=()=>{let[,e]=xr(),[t]=Ca("Empty"),n=new gt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return co.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},co.createElement("title",null,t?.description||"Empty"),co.createElement("g",{fill:"none",fillRule:"evenodd"},co.createElement("g",{transform:"translate(24 31.67)"},co.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),co.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"}),co.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)"}),co.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"}),co.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"})),co.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"}),co.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},co.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),co.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},iM=N9;var Hs=E($()),aM=E($());var I9=()=>{let[,e]=xr(),[t]=Ca("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,aM.useMemo)(()=>({borderColor:new gt(r).onBackground(i).toHexString(),shadowColor:new gt(n).onBackground(i).toHexString(),contentColor:new gt(o).onBackground(i).toHexString()}),[r,n,o,i]);return Hs.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Hs.createElement("title",null,t?.description||"Empty"),Hs.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Hs.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),Hs.createElement("g",{fillRule:"nonzero",stroke:a},Hs.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"}),Hs.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:l}))))},sM=I9;var $9=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},lM=Gt("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e,o=ut(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[$9(o)]});var D9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},cM=Us.createElement(iM,null),uM=Us.createElement(sM,null),L1=e=>{let{className:t,rootClassName:r,prefixCls:n,image:o=cM,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=D9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:g,className:h,style:v,classNames:y,styles:m}=no("empty"),d=p("empty",n),[x,b,S]=lM(d),[w]=Ca("Empty"),C=typeof i<"u"?i:w?.description,R=typeof C=="string"?C:"empty",P=null;return typeof o=="string"?P=Us.createElement("img",{alt:R,src:o}):P=o,x(Us.createElement("div",Object.assign({className:(0,np.default)(b,S,d,h,{[`${d}-normal`]:o===uM,[`${d}-rtl`]:g==="rtl"},t,r,y.root,c?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},m.root),v),u?.root),l)},f),Us.createElement("div",{className:(0,np.default)(`${d}-image`,y.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),m.image),u?.image)},P),C&&Us.createElement("div",{className:(0,np.default)(`${d}-description`,y.description,c?.description),style:Object.assign(Object.assign({},m.description),u?.description)},C),a&&Us.createElement("div",{className:(0,np.default)(`${d}-footer`,y.footer,c?.footer),style:Object.assign(Object.assign({},m.footer),u?.footer)},a)))};L1.PRESENTED_IMAGE_DEFAULT=cM;L1.PRESENTED_IMAGE_SIMPLE=uM;var $u=L1;var A9=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,Du.useContext)(rt),n=r("empty");switch(t){case"Table":case"List":return Du.default.createElement($u,{image:$u.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Du.default.createElement($u,{image:$u.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return Du.default.createElement($u,null)}},fM=A9;var z1=E($());var k9=(e,t,r=void 0)=>{var n,o;let{variant:i,[e]:a}=z1.useContext(rt),s=z1.useContext(NA),l=a?.variant,c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";let u=AC.includes(c);return[c,u]},qs=k9;var M9=e=>{let r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function F9(e,t){return e||M9(t)}var dM=F9;var pM=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},L9=e=>{let{antCls:t,componentCls:r}=e,n=`${r}-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=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},sr(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,[`
${o}${s}bottomLeft,
${i}${s}bottomLeft
`]:{animationName:Nv},[`
${o}${s}topLeft,
${i}${s}topLeft,
${o}${s}topRight,
${i}${s}topRight
`]:{animationName:$v},[`${a}${s}bottomLeft`]:{animationName:Iv},[`
${a}${s}topLeft,
${a}${s}topRight
`]:{animationName:Dv},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},pM(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"},Oa),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},pM(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Av(e,"slide-up"),Av(e,"slide-down"),Tv(e,"move-up"),Tv(e,"move-down")]},mM=L9;var z9=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(r).sub(n).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:oe(t),itemLineHeight:oe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},W9=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},B9=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:n,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},_a()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},j9=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,o=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=W9(e),s=t?`${r}-${t}`:"",l=z9(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},B9(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe(n)} 0`,lineHeight:oe(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:oe(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:oe(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item,
${r}-prefix + ${r}-selection-wrap
`]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:n},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:oe(i),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"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function W1(e,t){let{componentCls:r}=e,n=t?`${r}-${t}`:"",o={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[`
&${r}-show-arrow ${r}-selector,
&${r}-allow-clear ${r}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[j9(e,t),o]}var V9=e=>{let{componentCls:t}=e,r=ut(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=ut(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[W1(e),W1(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},W1(n,"lg")]},gM=V9;function B1(e,t){let{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${r}-${t}`:"";return{[`${r}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},sr(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:oe(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${r}-selection-item,
${r}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:oe(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${r}-show-arrow ${r}-selection-item,
&${r}-show-arrow ${r}-selection-search,
&${r}-show-arrow ${r}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${oe(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:oe(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${oe(n)}`,"&:after":{display:"none"}}}}}}}function j1(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[B1(e),B1(ut(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${oe(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},B1(ut(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var hM=e=>{let{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:g,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:m,colorPrimaryHover:d,colorPrimary:x,controlOutline:b}=e,S=s*2,w=n*2,C=Math.min(o-S,o-w),R=Math.min(i-S,i-w),P=Math.min(a-S,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:g,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:R,multipleItemHeightLG:P,multipleSelectorBgDisabled:y,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:d,activeBorderColor:x,activeOutlineColor:b,selectAffixPadding:s}};var bM=(e,t)=>{let{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${oe(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${oe(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},vM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bM(e,t))}),H9=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},bM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),vM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),vM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),SM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${oe(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},yM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},SM(e,t))}),U9=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},SM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),yM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),yM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),q9=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),CM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${oe(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},xM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},CM(e,t))}),G9=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},CM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),xM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),xM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),K9=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},H9(e)),U9(e)),q9(e)),G9(e))}),wM=K9;var X9=e=>{let{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Y9=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Q9=e=>{let{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e,i={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},sr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},X9(e)),Y9(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Oa),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Oa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},_a()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},J9=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Q9(e),j1(e),gM(e),mM(e),{[`${t}-rtl`]:{direction:"rtl"}},ks(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},EM=Gt("Select",(e,{rootPrefixCls:t})=>{let r=ut(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[J9(r),wM(r)]},hM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Ji=E($());var Ry=E($());var Z9={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"},RM=Z9;var e7=function(t,r){return Ry.createElement(zt,fe({},t,{ref:r,icon:RM}))},t7=Ry.forwardRef(e7),Oy=t7;var _y=E($());var r7={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"},OM=r7;var n7=function(t,r){return _y.createElement(zt,fe({},t,{ref:r,icon:OM}))},o7=_y.forwardRef(n7),Py=o7;var Ty=E($());var i7={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"},_M=i7;var a7=function(t,r){return Ty.createElement(zt,fe({},t,{ref:r,icon:_M}))},s7=Ty.forwardRef(a7),Ny=s7;function V1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:o,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){let p=t??Ji.createElement(mu,null),g=m=>e===null&&!a&&!u?null:Ji.createElement(Ji.Fragment,null,l!==!1&&m,a&&c),h=null;if(e!==void 0)h=g(e);else if(o)h=g(Ji.createElement(Al,{spin:!0}));else{let m=`${s}-suffix`;h=({open:d,showSearch:x})=>g(d&&x?Ji.createElement(Ny,{className:m}):Ji.createElement(Py,{className:m}))}let v=null;r!==void 0?v=r:i?v=Ji.createElement(Oy,null):v=null;let y=null;return n!==void 0?y=n:y=Ji.createElement(gv,null),{clearIcon:p,suffixIcon:h,itemIcon:v,removeIcon:y}}function H1(e,t){return t!==void 0?t:e!==null}var l7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},PM="SECRET_COMBOBOX_MODE_DO_NOT_USE",c7=(e,t)=>{var r,n,o,i,a;let{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:p,dropdownClassName:g,listHeight:h=256,placement:v,listItemHeight:y,size:m,disabled:d,notFoundContent:x,status:b,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:C,direction:R,style:P,allowClear:O,variant:A,dropdownStyle:F,transitionName:M,tagRender:H,maxCount:L,prefix:N,dropdownRender:I,popupRender:D,onDropdownVisibleChange:U,onOpenChange:z,styles:W,classNames:q}=e,j=l7(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:k,getPrefixCls:V,renderEmpty:G,direction:J,virtual:Y,popupMatchSelectWidth:X,popupOverflow:ae}=ni.useContext(rt),{showSearch:Z,style:K,styles:Q,className:re,classNames:ee}=no("select"),[,ne]=xr(),de=y??ne?.controlHeight,le=V("select",s),pe=V(),Oe=R??J,{compactSize:Ce,compactItemClassnames:De}=Xo(le,Oe),[ce,ie]=qs("select",A,l),Re=Ko(le),[Le,Ge,Me]=EM(le,Re),Ie=ni.useMemo(()=>{let{mode:Be}=e;if(Be!=="combobox")return Be===PM?"combobox":Be},[e.mode]),je=Ie==="multiple"||Ie==="tags",We=H1(e.suffixIcon,e.showArrow),He=(r=C??w)!==null&&r!==void 0?r:X,ye=((n=W?.popup)===null||n===void 0?void 0:n.root)||((o=Q.popup)===null||o===void 0?void 0:o.root)||F,se=D||I,xe=z||U,{status:_e,hasFeedback:he,isFormItemInput:Je,feedbackIcon:lt}=ni.useContext(fn),Et=Qi(_e,b),Pt;x!==void 0?Pt=x:Ie==="combobox"?Pt=null:Pt=G?.("Select")||ni.createElement(fM,{componentName:"Select"});let{suffixIcon:pt,itemIcon:Ae,removeIcon:we,clearIcon:et}=V1(Object.assign(Object.assign({},j),{multiple:je,hasFeedback:he,feedbackIcon:lt,showSuffixIcon:We,prefixCls:le,componentName:"Select"})),Pe=O===!0?{clearIcon:et}:O,$e=qr(j,["suffixIcon","itemIcon"]),Ee=(0,U1.default)(((i=q?.popup)===null||i===void 0?void 0:i.root)||((a=ee?.popup)===null||a===void 0?void 0:a.root)||p||g,{[`${le}-dropdown-${Oe}`]:Oe==="rtl"},u,ee.root,q?.root,Me,Re,Ge),be=ao(Be=>{var ze;return(ze=m??Ce)!==null&&ze!==void 0?ze:Be}),ht=ni.useContext(Ur),Mt=d??ht,Fe=(0,U1.default)({[`${le}-lg`]:be==="large",[`${le}-sm`]:be==="small",[`${le}-rtl`]:Oe==="rtl",[`${le}-${ce}`]:ie,[`${le}-in-form-item`]:Je},Yi(le,Et,he),De,re,c,ee.root,q?.root,u,Me,Re,Ge),Se=ni.useMemo(()=>v!==void 0?v:Oe==="rtl"?"bottomRight":"bottomLeft",[v,Oe]),[Ke]=xv("SelectLike",ye?.zIndex);return Le(ni.createElement(nM,Object.assign({ref:t,virtual:Y,showSearch:Z},$e,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q.root),W?.root),K),P),dropdownMatchSelectWidth:He,transitionName:Cv(pe,"slide-up",M),builtinPlacements:dM(S,ae),listHeight:h,listItemHeight:de,mode:Ie,prefixCls:le,placement:Se,direction:Oe,prefix:N,suffixIcon:pt,menuItemSelectedIcon:Ae,removeIcon:we,allowClear:Pe,notFoundContent:Pt,className:Fe,getPopupContainer:f||k,dropdownClassName:Ee,disabled:Mt,dropdownStyle:Object.assign(Object.assign({},ye),{zIndex:Ke}),maxCount:je?L:void 0,tagRender:je?H:void 0,dropdownRender:se,onDropdownVisibleChange:xe})))},Au=ni.forwardRef(c7),u7=IA(Au,"dropdownAlign");Au.SECRET_COMBOBOX_MODE_DO_NOT_USE=PM;Au.Option=tp;Au.OptGroup=ep;Au._InternalPanelDoNotUseOrYouWillBeFired=u7;var op=Au;var TM=E($());function q1(){let[,e]=TM.useReducer(t=>t+1,0);return e}var bn=E($()),ky=E(Ne());var G1=E(Ne()),K1=E($());function ku(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return K1.createElement("div",{className:(0,G1.default)("".concat(r,"-content"),a),style:s},K1.createElement("div",{className:(0,G1.default)("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var IM=E(Ne()),Vl=E($()),Lu=E($());var Mu={shiftX:64,adjustY:1},Fu={adjustX:1,shiftY:!0},oi=[0,0],NM={left:{points:["cr","cl"],overflow:Fu,offset:[-4,0],targetOffset:oi},right:{points:["cl","cr"],overflow:Fu,offset:[4,0],targetOffset:oi},top:{points:["bc","tc"],overflow:Mu,offset:[0,-4],targetOffset:oi},bottom:{points:["tc","bc"],overflow:Mu,offset:[0,4],targetOffset:oi},topLeft:{points:["bl","tl"],overflow:Mu,offset:[0,-4],targetOffset:oi},leftTop:{points:["tr","tl"],overflow:Fu,offset:[-4,0],targetOffset:oi},topRight:{points:["br","tr"],overflow:Mu,offset:[0,-4],targetOffset:oi},rightTop:{points:["tl","tr"],overflow:Fu,offset:[4,0],targetOffset:oi},bottomRight:{points:["tr","br"],overflow:Mu,offset:[0,4],targetOffset:oi},rightBottom:{points:["bl","br"],overflow:Fu,offset:[4,0],targetOffset:oi},bottomLeft:{points:["tl","bl"],overflow:Mu,offset:[0,4],targetOffset:oi},leftBottom:{points:["br","bl"],overflow:Fu,offset:[-4,0],targetOffset:oi}};var f7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],d7=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,m=t.animation,d=t.motion,x=t.placement,b=x===void 0?"right":x,S=t.align,w=S===void 0?{}:S,C=t.destroyTooltipOnHide,R=C===void 0?!1:C,P=t.defaultVisible,O=t.getTooltipContainer,A=t.overlayInnerStyle,F=t.arrowContent,M=t.overlay,H=t.id,L=t.showArrow,N=L===void 0?!0:L,I=t.classNames,D=t.styles,U=Ve(t,f7),z=Uv(H),W=(0,Lu.useRef)(null);(0,Lu.useImperativeHandle)(r,function(){return W.current});var q=T({},U);"visible"in t&&(q.popupVisible=t.visible);var j=function(){return Vl.createElement(ku,{key:"content",prefixCls:p,id:z,bodyClassName:I?.body,overlayInnerStyle:T(T({},A),D?.body)},M)},k=function(){var G=Vl.Children.only(g),J=G?.props||{},Y=T(T({},J),{},{"aria-describedby":M?z:null});return Vl.cloneElement(g,Y)};return Vl.createElement(gy,fe({popupClassName:(0,IM.default)(n,I?.root),prefixCls:p,popup:j,action:i,builtinPlacements:NM,popupPlacement:b,ref:W,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:m,popupMotion:d,defaultPopupVisible:P,autoDestroy:R,mouseLeaveDelay:c,popupStyle:T(T({},u),D?.root),mouseEnterDelay:s,arrow:N},q),k())},$M=(0,Lu.forwardRef)(d7);var DM=$M;function AM(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-c,p=u,g=2*o-s,h=l,v=2*o-i,y=a,m=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),d=n*(Math.sqrt(2)-1),x=`polygon(${d}px 100%, 50% ${d}px, ${2*o-d}px 100%, ${d}px 100%)`,b=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${p} L ${g} ${h} A ${n} ${n} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:m,arrowPath:b,arrowPolygon:x}}var kM=(e,t,r)=>{let{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${oe(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var X1=8;function $y(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?X1:n}}function Iy(e,t){return e?t:{}}function Y1(e,t,r){let{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},kM(e,t,o)),{"&:before":{background:t}})]},Iy(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Iy(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Iy(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Iy(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function p7(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};let o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}var MM={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"]}},m7={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"]}},g7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Q1(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(MM).forEach(c=>{let u=n&&m7[c]||MM[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,g7.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}let p=$y({contentRadius:i,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-s;break}f.overflow=p7(c,p,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var zu=E($()),zM=E(Ne());var h7=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:g}=e,h=t(a).add(g).add(p).equal(),v=t(a).mul(2).add(g).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:v,minHeight:l,padding:`${oe(e.calc(u).div(2).equal())} ${oe(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,X1)}},[`${r}-content`]:{position:"relative"}}),Wh(e,(y,{darkColor:m})=>({[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:m},[`${r}-arrow`]:{"--antd-arrow-background-color":m}}}))),{"&-rtl":{direction:"rtl"}})},Y1(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},v7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$y({contentRadius:e.borderRadius,limitVerticalRadius:!0})),AM(ut(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Dy=(e,t=!0)=>Gt("Tooltip",n=>{let{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=ut(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[h7(s),$w(n,"zoom-big-fast")]},v7,{resetStyle:!1,injectStyle:t})(e);var LM=E(Ne());var y7=Eo.map(e=>`${e}-inverse`);function FM(e,t=!0){return t?[].concat(te(y7),te(Eo)).includes(e):Eo.includes(e)}function Ay(e,t){let r=FM(t),n=(0,LM.default)({[`${e}-${t}`]:t&&r}),o={},i={};return t&&!r&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}var x7=e=>{let{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=zu.useContext(rt),l=s("tooltip",t),[c,u,f]=Dy(l),p=Ay(l,i),g=p.arrowStyle,h=Object.assign(Object.assign({},a),p.overlayStyle),v=(0,zM.default)(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,p.className);return c(zu.createElement("div",{className:v,style:g},zu.createElement("div",{className:`${l}-arrow`}),zu.createElement(ku,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},WM=x7;var b7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},S7=bn.forwardRef((e,t)=>{var r,n;let{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:g,arrow:h=!0,title:v,overlay:y,builtinPlacements:m,arrowPointAtCenter:d=!1,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:S,placement:w="top",mouseEnterDelay:C=.1,mouseLeaveDelay:R=.1,overlayStyle:P,rootClassName:O,overlayClassName:A,styles:F,classNames:M}=e,H=b7(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),L=!!h,[,N]=xr(),{getPopupContainer:I,getPrefixCls:D,direction:U,className:z,style:W,classNames:q,styles:j}=no("tooltip"),k=Rh("Tooltip"),V=bn.useRef(null),G=()=>{var We;(We=V.current)===null||We===void 0||We.forceAlign()};bn.useImperativeHandle(t,()=>{var We,He;return{forceAlign:G,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),G()},nativeElement:(We=V.current)===null||We===void 0?void 0:We.nativeElement,popupElement:(He=V.current)===null||He===void 0?void 0:He.popupElement}});let[J,Y]=ar(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),X=!v&&!y&&v!==0,ae=We=>{var He,ye;Y(X?!1:We),X||((He=e.onOpenChange)===null||He===void 0||He.call(e,We),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,We))},Z=bn.useMemo(()=>{var We,He;let ye=d;return typeof h=="object"&&(ye=(He=(We=h.pointAtCenter)!==null&&We!==void 0?We:h.arrowPointAtCenter)!==null&&He!==void 0?He:d),m||Q1({arrowPointAtCenter:ye,autoAdjustOverflow:x,arrowWidth:L?N.sizePopupArrow:0,borderRadius:N.borderRadius,offset:N.marginXXS,visibleFirst:!0})},[d,h,m,N]),K=bn.useMemo(()=>v===0?v:y||v||"",[y,v]),Q=bn.createElement(zs,{space:!0},typeof K=="function"?K():K),re=D("tooltip",o),ee=D(),ne=e["data-popover-inject"],de=J;!("open"in e)&&!("visible"in e)&&X&&(de=!1);let le=bn.isValidElement(c)&&!hv(c)?c:bn.createElement("span",null,c),pe=le.props,Oe=!pe.className||typeof pe.className=="string"?(0,ky.default)(pe.className,i||`${re}-open`):pe.className,[Ce,De,ce]=Dy(re,!ne),ie=Ay(re,s),Re=ie.arrowStyle,Le=(0,ky.default)(A,{[`${re}-rtl`]:U==="rtl"},ie.className,O,De,ce,z,q.root,M?.root),Ge=(0,ky.default)(q.body,M?.body),[Me,Ie]=xv("Tooltip",H.zIndex),je=bn.createElement(DM,Object.assign({},H,{zIndex:Me,showArrow:L,placement:w,mouseEnterDelay:C,mouseLeaveDelay:R,prefixCls:re,classNames:{root:Le,body:Ge},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re),j.root),W),P),F?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},j.body),l),F?.body),ie.overlayStyle)},getTooltipContainer:S||a||I,ref:V,builtinPlacements:Z,overlay:Q,visible:de,onVisibleChange:ae,afterVisibleChange:u??f,arrowContent:bn.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:Cv(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!p}),de?Go(le,{className:Oe}):le);return Ce(bn.createElement(yv.Provider,{value:Ie},je))}),BM=S7;BM._InternalPanelDoNotUseOrYouWillBeFired=WM;var ka=BM;var jM=E(Ne());var My=E($()),Hl=E($()),C7=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],w7=(0,Hl.forwardRef)(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,g=e.onChange,h=Ve(e,C7),v=(0,Hl.useRef)(null),y=(0,Hl.useRef)(null),m=ar(c,{value:a}),d=B(m,2),x=d[0],b=d[1];(0,Hl.useImperativeHandle)(t,function(){return{focus:function(R){var P;(P=v.current)===null||P===void 0||P.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:y.current}});var S=(0,jM.default)(n,o,_(_({},"".concat(n,"-checked"),x),"".concat(n,"-disabled"),s)),w=function(R){s||("checked"in e||b(R.target.checked),g?.({target:T(T({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return My.createElement("span",{className:S,title:p,style:i,ref:y},My.createElement("input",fe({},h,{className:"".concat(n,"-input"),ref:v,onChange:w,disabled:s,checked:!!x,type:f})),My.createElement("span",{className:"".concat(n,"-inner")}))}),VM=w7;var HM=E($());function J1(e){let t=HM.default.useRef(null),r=()=>{dt.cancel(t.current),t.current=null};return[()=>{r(),t.current=dt(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}function Ma(e){return ut(e,{inputAffixPadding:e.paddingXXS})}var Fa=e=>{let{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:m,colorWarningOutline:d,colorBgContainer:x,inputFontSize:b,inputFontSizeLG:S,inputFontSizeSM:w}=e,C=b||r,R=w||C,P=S||s,O=Math.round((t-C*n)/2*10)/10-o,A=Math.round((i-R*n)/2*10)/10-o,F=Math.ceil((a-P*l)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(A,0),paddingBlockLG:Math.max(F,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${m}`,warningActiveShadow:`0 0 0 ${v}px ${d}`,hoverBg:x,activeBg:x,inputFontSize:C,inputFontSizeLG:P,inputFontSizeSM:R}};var E7=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Z1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},E7(ut(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),YM=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),UM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},YM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Fy=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YM(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Z1(e))}),UM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),UM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),qM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ly=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},qM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),qM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Z1(e))}})}),zy=(e,t)=>{let{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},QM=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},GM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},QM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Wy=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Z1(e))}),GM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),GM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),KM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),By=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},KM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),KM(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),JM=(e,t)=>({background:e.colorBgContainer,borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),XM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},JM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),jy=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},JM(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),XM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),XM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var eE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var ZM=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${oe(t)} ${oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},eF=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ip=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${oe(e.paddingBlock)} ${oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},eE(e.colorTextPlaceholder)),{"&-lg":Object.assign({},ZM(e)),"&-sm":Object.assign({},eF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),tE=e=>{let{componentCls:t,antCls:r}=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({},ZM(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},eF(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},du()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${r}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
& > ${r}-select-auto-complete ${t},
& > ${r}-cascader-picker ${t},
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${r}-select:first-child > ${r}-select-selector,
& > ${r}-select-auto-complete:first-child ${t},
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${r}-select:last-child > ${r}-select-selector,
& > ${r}-cascader-picker:last-child ${t},
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},R7=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),ip(e)),Fy(e)),Wy(e)),zy(e)),jy(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},O7=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${oe(e.inputAffixPadding)}`}}}},_7=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},ip(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),O7(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},P7=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},sr(e)),tE(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},Ly(e)),By(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},T7=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
> ${t},
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},N7=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Vy=Gt(["Input","Shared"],e=>{let t=ut(e,Ma(e));return[R7(t),_7(t)]},Fa,{resetFont:!1}),Hy=Gt(["Input","Component"],e=>{let t=ut(e,Ma(e));return[P7(t),T7(t),N7(t),ks(t)]},Fa,{resetFont:!1});var I7=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},sr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},sr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},sr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},GC(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${oe(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
${r}:not(${r}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
${r}-checked:not(${r}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function $7(e,t){let r=ut(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[I7(r)]}var Uy=Gt("Checkbox",(e,{prefixCls:t})=>[$7(t,e)]);var Yr=E($()),rE=E(Ne());var tF=E($()),D7=tF.default.createContext(null),qy=D7;var A7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},k7=(e,t)=>{var r;let{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:p}=e,g=A7(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Yr.useContext(rt),m=Yr.useContext(qy),{isFormItemInput:d}=Yr.useContext(fn),x=Yr.useContext(Ur),b=(r=m?.disabled||p)!==null&&r!==void 0?r:x,S=Yr.useRef(g.value),w=Yr.useRef(null),C=Lr(t,w);Yr.useEffect(()=>{m?.registerValue(g.value)},[]),Yr.useEffect(()=>{if(!f)return g.value!==S.current&&(m?.cancelValue(S.current),m?.registerValue(g.value),S.current=g.value),()=>m?.cancelValue(g.value)},[g.value]),Yr.useEffect(()=>{var D;!((D=w.current)===null||D===void 0)&&D.input&&(w.current.input.indeterminate=s)},[s]);let R=h("checkbox",n),P=Ko(R),[O,A,F]=Uy(R,P),M=Object.assign({},g);m&&!f&&(M.onChange=(...D)=>{g.onChange&&g.onChange.apply(g,D),m.toggleOption&&m.toggleOption({label:a,value:g.value})},M.name=m.name,M.checked=m.value.includes(g.value));let H=(0,rE.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:M.checked,[`${R}-wrapper-disabled`]:b,[`${R}-wrapper-in-form-item`]:d},y?.className,o,i,F,P,A),L=(0,rE.default)({[`${R}-indeterminate`]:s},gu,A),[N,I]=J1(M.onClick);return O(Yr.createElement(Rv,{component:"Checkbox",disabled:b},Yr.createElement("label",{className:H,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:N},Yr.createElement(VM,Object.assign({},M,{onClick:I,prefixCls:R,className:L,disabled:b,ref:C})),a!=null&&Yr.createElement("span",{className:`${R}-label`},a))))},M7=Yr.forwardRef(k7),Gy=M7;var Nn=E($()),nE=E(Ne());var F7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},L7=Nn.forwardRef((e,t)=>{let{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=F7(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=Nn.useContext(rt),[g,h]=Nn.useState(u.value||r||[]),[v,y]=Nn.useState([]);Nn.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);let m=Nn.useMemo(()=>o.map(L=>typeof L=="string"||typeof L=="number"?{label:L,value:L}:L),[o]),d=L=>{y(N=>N.filter(I=>I!==L))},x=L=>{y(N=>[].concat(te(N),[L]))},b=L=>{let N=g.indexOf(L.value),I=te(g);N===-1?I.push(L.value):I.splice(N,1),"value"in u||h(I),c?.(I.filter(D=>v.includes(D)).sort((D,U)=>{let z=m.findIndex(q=>q.value===D),W=m.findIndex(q=>q.value===U);return z-W}))},S=f("checkbox",i),w=`${S}-group`,C=Ko(S),[R,P,O]=Uy(S,C),A=qr(u,["value","disabled"]),F=o.length?m.map(L=>Nn.createElement(Gy,{prefixCls:S,key:L.value.toString(),disabled:"disabled"in L?L.disabled:u.disabled,value:L.value,checked:g.includes(L.value),onChange:L.onChange,className:(0,nE.default)(`${w}-item`,L.className),style:L.style,title:L.title,id:L.id,required:L.required},L.label)):n,M=Nn.useMemo(()=>({toggleOption:b,value:g,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:d}),[b,g,u.disabled,u.name,x,d]),H=(0,nE.default)(w,{[`${w}-rtl`]:p==="rtl"},a,s,O,C,P);return R(Nn.createElement("div",Object.assign({className:H,style:l},A,{ref:t}),Nn.createElement(qy.Provider,{value:M},F)))});var rF=L7;var oE=Gy;oE.Group=rF;oE.__ANT_CHECKBOX=!0;var ap=oE;var Rr=E($());var Ky=E($());var z7={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"},nF=z7;var W7=function(t,r){return Ky.createElement(zt,fe({},t,{ref:r,icon:nF}))},B7=Ky.forwardRef(W7),oF=B7;var Gl=E(Ne());function sp(){return typeof BigInt=="function"}function Xy(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ti(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(n)}}function Yy(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Zi(e){var t=String(e);if(Yy(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&Wu(t)?t.length-t.indexOf(".")-1:0}function La(e){var t=String(e);if(Yy(e)){if(e>Number.MAX_SAFE_INTEGER)return String(sp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(sp()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Zi(t))}return Ti(t).fullStr}function Wu(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var iF=function(){function e(t){if(it(this,e),_(this,"origin",""),_(this,"negative",void 0),_(this,"integer",void 0),_(this,"decimal",void 0),_(this,"decimalLen",void 0),_(this,"empty",void 0),_(this,"nan",void 0),Xy(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(Yy(r)&&(r=Number(r)),r=typeof r=="string"?r:La(r),Wu(r)){var n=Ti(r);this.negative=n.negative;var o=n.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return at(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(r){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(n)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"cal",value:function(r,n,o){var i=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(i),s=r.alignDecimal(i),l=n(a,s).toString(),c=o(i),u=Ti(l),f=u.negativeStr,p=u.trimStr,g="".concat(f).concat(p.padStart(c+1,"0"));return new e("".concat(g.slice(0,-c),".").concat(g.slice(-c)))}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=new e(r);return n.isInvalidate()?this:this.cal(n,function(o,i){return o+i},function(o){return o})}},{key:"multi",value:function(r){var n=new e(r);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(o,i){return o*i},function(o){return o*2})}},{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(r){return this.toString()===r?.toString()}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Ti("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();var aF=function(){function e(t){if(it(this,e),_(this,"origin",""),_(this,"number",void 0),_(this,"empty",void 0),Xy(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return at(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(Zi(this.number),Zi(n));return new e(o.toFixed(i))}},{key:"multi",value:function(r){var n=Number(r);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var o=this.number*n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(Zi(this.number),Zi(n));return new e(o.toFixed(i))}},{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(r){return this.toNumber()===r?.toNumber()}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":La(this.number):this.origin}}]),e}();function Qy(e){return sp()?new iF(e):new aF(e)}function lp(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Ti(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var f=Qy(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return lp(f.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var Ni=Qy;var xF=E(Ne());var za=E(Ne()),Sn=E($());function lF(e){return!!(e.addonBefore||e.addonAfter)}function cF(e){return!!(e.prefix||e.suffix||e.allowClear)}function sF(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Bu(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=sF(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=sF(t,e,n),r(o);return}r(o)}}function Ul(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var j7=Sn.default.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,g=e.style,h=e.disabled,v=e.readOnly,y=e.focused,m=e.triggerFocus,d=e.allowClear,x=e.value,b=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,R=e.dataAttrs,P=e.styles,O=e.components,A=e.onClear,F=a??i,M=O?.affixWrapper||"span",H=O?.groupWrapper||"span",L=O?.wrapper||"span",N=O?.groupAddon||"span",I=(0,Sn.useRef)(null),D=function(ee){var ne;(ne=I.current)!==null&&ne!==void 0&&ne.contains(ee.target)&&m?.()},U=cF(e),z=(0,Sn.cloneElement)(F,{value:x,className:(0,za.default)((r=F.props)===null||r===void 0?void 0:r.className,!U&&C?.variant)||null}),W=(0,Sn.useRef)(null);if(Sn.default.useImperativeHandle(t,function(){return{nativeElement:W.current||I.current}}),U){var q=null;if(d){var j=!h&&!v&&x,k="".concat(s,"-clear-icon"),V=ue(d)==="object"&&d!==null&&d!==void 0&&d.clearIcon?d.clearIcon:"\u2716";q=Sn.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(ee){b?.(ee),A?.()},onMouseDown:function(ee){return ee.preventDefault()},className:(0,za.default)(k,_(_({},"".concat(k,"-hidden"),!j),"".concat(k,"-has-suffix"),!!c))},V)}var G="".concat(s,"-affix-wrapper"),J=(0,za.default)(G,_(_(_(_(_({},"".concat(s,"-disabled"),h),"".concat(G,"-disabled"),h),"".concat(G,"-focused"),y),"".concat(G,"-readonly"),v),"".concat(G,"-input-with-clear-btn"),c&&d&&x),w?.affixWrapper,C?.affixWrapper,C?.variant),Y=(c||d)&&Sn.default.createElement("span",{className:(0,za.default)("".concat(s,"-suffix"),C?.suffix),style:P?.suffix},q,c);z=Sn.default.createElement(M,fe({className:J,style:P?.affixWrapper,onClick:D},R?.affixWrapper,{ref:I}),l&&Sn.default.createElement("span",{className:(0,za.default)("".concat(s,"-prefix"),C?.prefix),style:P?.prefix},l),z,Y)}if(lF(e)){var X="".concat(s,"-group"),ae="".concat(X,"-addon"),Z="".concat(X,"-wrapper"),K=(0,za.default)("".concat(s,"-wrapper"),X,w?.wrapper,C?.wrapper),Q=(0,za.default)(Z,_({},"".concat(Z,"-disabled"),h),w?.group,C?.groupWrapper);z=Sn.default.createElement(H,{className:Q,ref:W},Sn.default.createElement(L,{className:K},u&&Sn.default.createElement(N,{className:ae},u),z,f&&Sn.default.createElement(N,{className:ae},f)))}return Sn.default.cloneElement(z,{className:(0,za.default)((n=z.props)===null||n===void 0?void 0:n.className,p)||null,style:T(T({},(o=z.props)===null||o===void 0?void 0:o.style),g),hidden:S})}),ql=j7;var Jy=E(Ne());var Wr=E($());var uF=E($()),V7=["show"];function cp(e,t){return uF.useMemo(function(){var r={};t&&(r.show=ue(t)==="object"&&t.formatter?t.formatter:!!t),r=T(T({},r),e);var n=r,o=n.show,i=Ve(n,V7);return T(T({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var H7=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],U7=(0,Wr.forwardRef)(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,g=e.className,h=e.maxLength,v=e.suffix,y=e.showCount,m=e.count,d=e.type,x=d===void 0?"text":d,b=e.classes,S=e.classNames,w=e.styles,C=e.onCompositionStart,R=e.onCompositionEnd,P=Ve(e,H7),O=(0,Wr.useState)(!1),A=B(O,2),F=A[0],M=A[1],H=(0,Wr.useRef)(!1),L=(0,Wr.useRef)(!1),N=(0,Wr.useRef)(null),I=(0,Wr.useRef)(null),D=function(ie){N.current&&Ul(N.current,ie)},U=ar(e.defaultValue,{value:e.value}),z=B(U,2),W=z[0],q=z[1],j=W==null?"":String(W),k=(0,Wr.useState)(null),V=B(k,2),G=V[0],J=V[1],Y=cp(m,y),X=Y.max||h,ae=Y.strategy(j),Z=!!X&&ae>X;(0,Wr.useImperativeHandle)(t,function(){var ce;return{focus:D,blur:function(){var Re;(Re=N.current)===null||Re===void 0||Re.blur()},setSelectionRange:function(Re,Le,Ge){var Me;(Me=N.current)===null||Me===void 0||Me.setSelectionRange(Re,Le,Ge)},select:function(){var Re;(Re=N.current)===null||Re===void 0||Re.select()},input:N.current,nativeElement:((ce=I.current)===null||ce===void 0?void 0:ce.nativeElement)||N.current}}),(0,Wr.useEffect)(function(){L.current&&(L.current=!1),M(function(ce){return ce&&f?!1:ce})},[f]);var K=function(ie,Re,Le){var Ge=Re;if(!H.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Re)>Y.max){if(Ge=Y.exceedFormatter(Re,{max:Y.max}),Re!==Ge){var Me,Ie;J([((Me=N.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((Ie=N.current)===null||Ie===void 0?void 0:Ie.selectionEnd)||0])}}else if(Le.source==="compositionEnd")return;q(Ge),N.current&&Bu(N.current,ie,n,Ge)};(0,Wr.useEffect)(function(){if(G){var ce;(ce=N.current)===null||ce===void 0||ce.setSelectionRange.apply(ce,te(G))}},[G]);var Q=function(ie){K(ie,ie.target.value,{source:"change"})},re=function(ie){H.current=!1,K(ie,ie.currentTarget.value,{source:"compositionEnd"}),R?.(ie)},ee=function(ie){a&&ie.key==="Enter"&&!L.current&&(L.current=!0,a(ie)),s?.(ie)},ne=function(ie){ie.key==="Enter"&&(L.current=!1),l?.(ie)},de=function(ie){M(!0),o?.(ie)},le=function(ie){L.current&&(L.current=!1),M(!1),i?.(ie)},pe=function(ie){q(""),D(),N.current&&Bu(N.current,ie,n)},Oe=Z&&"".concat(u,"-out-of-range"),Ce=function(){var ie=qr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Wr.default.createElement("input",fe({autoComplete:r},ie,{onChange:Q,onFocus:de,onBlur:le,onKeyDown:ee,onKeyUp:ne,className:(0,Jy.default)(u,_({},"".concat(u,"-disabled"),f),S?.input),style:w?.input,ref:N,size:p,type:x,onCompositionStart:function(Le){H.current=!0,C?.(Le)},onCompositionEnd:re}))},De=function(){var ie=Number(X)>0;if(v||Y.show){var Re=Y.showFormatter?Y.showFormatter({value:j,count:ae,maxLength:X}):"".concat(ae).concat(ie?" / ".concat(X):"");return Wr.default.createElement(Wr.default.Fragment,null,Y.show&&Wr.default.createElement("span",{className:(0,Jy.default)("".concat(u,"-show-count-suffix"),_({},"".concat(u,"-show-count-has-suffix"),!!v),S?.count),style:T({},w?.count)},Re),v)}return null};return Wr.default.createElement(ql,fe({},P,{prefixCls:u,className:(0,Jy.default)(g,Oe),handleReset:pe,value:j,focused:F,triggerFocus:D,suffix:De(),disabled:f,classes:b,classNames:S,styles:w,ref:I}),Ce())}),fF=U7;var dF=fF;function iE(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,o){if(t[o])return t[o];var i=n[o];return typeof i=="function"?i.bind(n):i}}):e}var Ot=E($());var pF=E($());function aE(e,t){var r=(0,pF.useRef)(null);function n(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);r.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&r.current&&t)try{var i=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-r.current.afterTxt.length;else{var f=s[c-1],p=i.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(g){Vt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[n,o]}var ii=E($()),sE=E(Ne());var mF=E($());var q7=function(){var t=(0,mF.useState)(!1),r=B(t,2),n=r[0],o=r[1];return vt(function(){o(xu())},[]),n},gF=q7;var G7=200,K7=600;function lE(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=ii.useRef(),l=ii.useRef([]),c=ii.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,b){x.preventDefault(),u(),c.current(b);function S(){c.current(b),s.current=setTimeout(S,G7)}s.current=setTimeout(S,K7)};ii.useEffect(function(){return function(){u(),l.current.forEach(function(d){return dt.cancel(d)})}},[]);var p=gF();if(p)return null;var g="".concat(t,"-handler"),h=(0,sE.default)(g,"".concat(g,"-up"),_({},"".concat(g,"-up-disabled"),o)),v=(0,sE.default)(g,"".concat(g,"-down"),_({},"".concat(g,"-down-disabled"),i)),y=function(){return l.current.push(dt(u))},m={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return ii.createElement("div",{className:"".concat(g,"-wrap")},ii.createElement("span",fe({},m,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),r||ii.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),ii.createElement("span",fe({},m,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),n||ii.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function cE(e){var t=typeof e=="number"?La(e):Ti(e).fullStr,r=t.includes(".");return r?Ti(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Zy=E($());var hF=function(){var e=(0,Zy.useRef)(0),t=function(){dt.cancel(e.current)};return(0,Zy.useEffect)(function(){return t},[]),function(r){t(),e.current=dt(function(){r()})}};var X7=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Y7=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],vF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},yF=function(t){var r=Ni(t);return r.isInvalidate()?null:r},Q7=Ot.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,g=e.upHandler,h=e.downHandler,v=e.keyboard,y=e.changeOnWheel,m=y===void 0?!1:y,d=e.controls,x=d===void 0?!0:d,b=e.classNames,S=e.stringMode,w=e.parser,C=e.formatter,R=e.precision,P=e.decimalSeparator,O=e.onChange,A=e.onInput,F=e.onPressEnter,M=e.onStep,H=e.changeOnBlur,L=H===void 0?!0:H,N=e.domRef,I=Ve(e,X7),D="".concat(r,"-input"),U=Ot.useRef(null),z=Ot.useState(!1),W=B(z,2),q=W[0],j=W[1],k=Ot.useRef(!1),V=Ot.useRef(!1),G=Ot.useRef(!1),J=Ot.useState(function(){return Ni(u??c)}),Y=B(J,2),X=Y[0],ae=Y[1];function Z(Ae){u===void 0&&ae(Ae)}var K=Ot.useCallback(function(Ae,we){if(!we)return R>=0?R:Math.max(Zi(Ae),Zi(l))},[R,l]),Q=Ot.useCallback(function(Ae){var we=String(Ae);if(w)return w(we);var et=we;return P&&(et=et.replace(P,".")),et.replace(/[^\w.-]+/g,"")},[w,P]),re=Ot.useRef(""),ee=Ot.useCallback(function(Ae,we){if(C)return C(Ae,{userTyping:we,input:String(re.current)});var et=typeof Ae=="number"?La(Ae):Ae;if(!we){var Pe=K(et,we);if(Wu(et)&&(P||Pe>=0)){var $e=P||".";et=lp(et,$e,Pe)}}return et},[C,K,P]),ne=Ot.useState(function(){var Ae=c??u;return X.isInvalidate()&&["string","number"].includes(ue(Ae))?Number.isNaN(Ae)?"":Ae:ee(X.toString(),!1)}),de=B(ne,2),le=de[0],pe=de[1];re.current=le;function Oe(Ae,we){pe(ee(Ae.isInvalidate()?Ae.toString(!1):Ae.toString(!we),we))}var Ce=Ot.useMemo(function(){return yF(a)},[a,R]),De=Ot.useMemo(function(){return yF(i)},[i,R]),ce=Ot.useMemo(function(){return!Ce||!X||X.isInvalidate()?!1:Ce.lessEquals(X)},[Ce,X]),ie=Ot.useMemo(function(){return!De||!X||X.isInvalidate()?!1:X.lessEquals(De)},[De,X]),Re=aE(U.current,q),Le=B(Re,2),Ge=Le[0],Me=Le[1],Ie=function(we){return Ce&&!we.lessEquals(Ce)?Ce:De&&!De.lessEquals(we)?De:null},je=function(we){return!Ie(we)},We=function(we,et){var Pe=we,$e=je(Pe)||Pe.isEmpty();if(!Pe.isEmpty()&&!et&&(Pe=Ie(Pe)||Pe,$e=!0),!p&&!f&&$e){var Ee=Pe.toString(),be=K(Ee,et);return be>=0&&(Pe=Ni(lp(Ee,".",be)),je(Pe)||(Pe=Ni(lp(Ee,".",be,!0)))),Pe.equals(X)||(Z(Pe),O?.(Pe.isEmpty()?null:vF(S,Pe)),u===void 0&&Oe(Pe,et)),Pe}return X},He=hF(),ye=function Ae(we){if(Ge(),re.current=we,pe(we),!V.current){var et=Q(we),Pe=Ni(et);Pe.isNaN()||We(Pe,!0)}A?.(we),He(function(){var $e=we;w||($e=we.replace(/。/g,".")),$e!==we&&Ae($e)})},se=function(){V.current=!0},xe=function(){V.current=!1,ye(U.current.value)},_e=function(we){ye(we.target.value)},he=function(we){var et;if(!(we&&ce||!we&&ie)){k.current=!1;var Pe=Ni(G.current?cE(l):l);we||(Pe=Pe.negate());var $e=(X||Ni(0)).add(Pe.toString()),Ee=We($e,!1);M?.(vF(S,Ee),{offset:G.current?cE(l):l,type:we?"up":"down"}),(et=U.current)===null||et===void 0||et.focus()}},Je=function(we){var et=Ni(Q(le)),Pe;et.isNaN()?Pe=We(X,we):Pe=We(et,we),u!==void 0?Oe(X,!1):Pe.isNaN()||Oe(Pe,!1)},lt=function(){k.current=!0},Et=function(we){var et=we.key,Pe=we.shiftKey;k.current=!0,G.current=Pe,et==="Enter"&&(V.current||(k.current=!1),Je(!1),F?.(we)),v!==!1&&!V.current&&["Up","ArrowUp","Down","ArrowDown"].includes(et)&&(he(et==="Up"||et==="ArrowUp"),we.preventDefault())},Pt=function(){k.current=!1,G.current=!1};Ot.useEffect(function(){if(m&&q){var Ae=function(Pe){he(Pe.deltaY<0),Pe.preventDefault()},we=U.current;if(we)return we.addEventListener("wheel",Ae,{passive:!1}),function(){return we.removeEventListener("wheel",Ae)}}});var pt=function(){L&&Je(!1),j(!1),k.current=!1};return El(function(){X.isInvalidate()||Oe(X,!1)},[R,C]),El(function(){var Ae=Ni(u);ae(Ae);var we=Ni(Q(le));(!Ae.equals(we)||!k.current||C)&&Oe(Ae,k.current)},[u]),El(function(){C&&Me()},[le]),Ot.createElement("div",{ref:N,className:(0,xF.default)(r,n,_(_(_(_(_({},"".concat(r,"-focused"),q),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),p),"".concat(r,"-not-a-number"),X.isNaN()),"".concat(r,"-out-of-range"),!X.isInvalidate()&&!je(X))),style:o,onFocus:function(){j(!0)},onBlur:pt,onKeyDown:Et,onKeyUp:Pt,onCompositionStart:se,onCompositionEnd:xe,onBeforeInput:lt},x&&Ot.createElement(lE,{prefixCls:r,upNode:g,downNode:h,upDisabled:ce,downDisabled:ie,onStep:he}),Ot.createElement("div",{className:"".concat(D,"-wrap")},Ot.createElement("input",fe({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},I,{ref:Lr(U,t),className:D,value:le,onChange:_e,disabled:f,readOnly:p}))))}),J7=Ot.forwardRef(function(e,t){var r=e.disabled,n=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,g=Ve(e,Y7),h=Ot.useRef(null),v=Ot.useRef(null),y=Ot.useRef(null),m=function(x){y.current&&Ul(y.current,x)};return Ot.useImperativeHandle(t,function(){return iE(y.current,{focus:m,nativeElement:h.current.nativeElement||v.current})}),Ot.createElement(ql,{className:f,triggerFocus:m,prefixCls:i,value:a,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},Ot.createElement(Q7,fe({prefixCls:i,disabled:r,ref:y,domRef:v,className:p?.input},g)))}),bF=J7;var SF=bF;var CF=e=>{var t;let r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",n=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Fa(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new gt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})};var wF=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{let o=n==="lg"?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},Z7=e=>{let{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:g,colorIcon:h,motionDurationMid:v,handleHoverColor:y,handleOpacity:m,paddingInline:d,paddingBlock:x,handleBg:b,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:P,handleBorderColor:O,filledHandleBg:A,lineHeightLG:F,calc:M}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),ip(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),Fy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}}})),Wy(e,{[`${t}-handler-wrap`]:{background:A,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),jy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}}})),zy(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:F,borderRadius:R,[`input${t}-input`]:{height:M(s).sub(M(r).mul(2)).equal(),padding:`${oe(p)} ${oe(g)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:M(l).sub(M(r).mul(2)).equal(),padding:`${oe(f)} ${oe(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},sr(e)),tE(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Ly(e)),By(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),{width:"100%",padding:`${oe(x)} ${oe(d)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),eE(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:m,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${oe(r)} ${n} ${O}`,transition:`all ${v} linear`,"&:active":{background:S},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},_a()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},wF(e,"lg")),wF(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
${t}-handler-up-disabled,
${t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${t}-handler-up-disabled:hover &-handler-up-inner,
${t}-handler-down-disabled:hover &-handler-down-inner
`]:{color:w}})}]},eU=e=>{let{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${oe(r)} 0`}},ip(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${oe(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${oe(f)} 0`}},[`&:not(${t}-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"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:o,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}})}},EF=Gt("InputNumber",e=>{let t=ut(e,Ma(e));return[Z7(t),eU(t),ks(t)]},CF,{unitless:{handleOpacity:!0}});var tU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},RF=Rr.forwardRef((e,t)=>{let{getPrefixCls:r,direction:n}=Rr.useContext(rt),o=Rr.useRef(null);Rr.useImperativeHandle(t,()=>o.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:g,bordered:h,readOnly:v,status:y,controls:m,variant:d}=e,x=tU(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),b=r("input-number",c),S=Ko(b),[w,C,R]=EF(b,S),{compactSize:P,compactItemClassnames:O}=Xo(b,n),A=Rr.createElement(oF,{className:`${b}-handler-up-inner`}),F=Rr.createElement(Py,{className:`${b}-handler-down-inner`}),M=typeof m=="boolean"?m:void 0;typeof m=="object"&&(A=typeof m.upIcon>"u"?A:Rr.createElement("span",{className:`${b}-handler-up-inner`},m.upIcon),F=typeof m.downIcon>"u"?F:Rr.createElement("span",{className:`${b}-handler-down-inner`},m.downIcon));let{hasFeedback:H,status:L,isFormItemInput:N,feedbackIcon:I}=Rr.useContext(fn),D=Qi(L,y),U=ao(Y=>{var X;return(X=s??P)!==null&&X!==void 0?X:Y}),z=Rr.useContext(Ur),W=l??z,[q,j]=qs("inputNumber",d,h),k=H&&Rr.createElement(Rr.Fragment,null,I),V=(0,Gl.default)({[`${b}-lg`]:U==="large",[`${b}-sm`]:U==="small",[`${b}-rtl`]:n==="rtl",[`${b}-in-form-item`]:N},C),G=`${b}-group`,J=Rr.createElement(SF,Object.assign({ref:o,disabled:W,className:(0,Gl.default)(R,S,i,a,O),upHandler:A,downHandler:F,prefixCls:b,readOnly:v,controls:M,prefix:p,suffix:k||g,addonBefore:u&&Rr.createElement(zs,{form:!0,space:!0},u),addonAfter:f&&Rr.createElement(zs,{form:!0,space:!0},f),classNames:{input:V,variant:(0,Gl.default)({[`${b}-${q}`]:j},Yi(b,D,H)),affixWrapper:(0,Gl.default)({[`${b}-affix-wrapper-sm`]:U==="small",[`${b}-affix-wrapper-lg`]:U==="large",[`${b}-affix-wrapper-rtl`]:n==="rtl",[`${b}-affix-wrapper-without-controls`]:m===!1||W},C),wrapper:(0,Gl.default)({[`${G}-rtl`]:n==="rtl"},C),groupWrapper:(0,Gl.default)({[`${b}-group-wrapper-sm`]:U==="small",[`${b}-group-wrapper-lg`]:U==="large",[`${b}-group-wrapper-rtl`]:n==="rtl",[`${b}-group-wrapper-${q}`]:j},Yi(`${b}-group-wrapper`,D,H),C)}},x));return w(J)}),OF=RF,rU=e=>Rr.createElement(Na,{theme:{components:{InputNumber:{handleVisible:!0}}}},Rr.createElement(RF,Object.assign({},e)));OF._InternalPanelDoNotUseOrYouWillBeFired=rU;var e0=OF;var uo=E($()),Kl=E(Ne());var _F=E($());var nU=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:_F.default.createElement(mu,null)}),t},t0=nU;var r0=E($());function up(e,t){let r=(0,r0.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return(0,r0.useEffect)(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function PF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var oU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};var iU=(0,uo.forwardRef)((e,t)=>{let{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:p,className:g,style:h,styles:v,rootClassName:y,onChange:m,classNames:d,variant:x}=e,b=oU(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:w,allowClear:C,autoComplete:R,className:P,style:O,classNames:A,styles:F}=no("input"),M=S("input",r),H=(0,uo.useRef)(null),L=Ko(M),[N,I,D]=Vy(M,y),[U]=Hy(M,L),{compactSize:z,compactItemClassnames:W}=Xo(M,w),q=ao(pe=>{var Oe;return(Oe=i??z)!==null&&Oe!==void 0?Oe:pe}),j=uo.default.useContext(Ur),k=a??j,{status:V,hasFeedback:G,feedbackIcon:J}=(0,uo.useContext)(fn),Y=Qi(V,o),X=PF(e)||!!G,ae=(0,uo.useRef)(X),Z=up(H,!0),K=pe=>{Z(),s?.(pe)},Q=pe=>{Z(),l?.(pe)},re=pe=>{Z(),m?.(pe)},ee=(G||c)&&uo.default.createElement(uo.default.Fragment,null,c,G&&J),ne=t0(u??C),[de,le]=qs("input",x,n);return N(U(uo.default.createElement(dF,Object.assign({ref:Lr(t,H),prefixCls:M,autoComplete:R},b,{disabled:k,onBlur:K,onFocus:Q,style:Object.assign(Object.assign({},O),h),styles:Object.assign(Object.assign({},F),v),suffix:ee,allowClear:ne,className:(0,Kl.default)(g,y,D,L,W,P),onChange:re,addonBefore:p&&uo.default.createElement(zs,{form:!0,space:!0},p),addonAfter:f&&uo.default.createElement(zs,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},d),A),{input:(0,Kl.default)({[`${M}-sm`]:q==="small",[`${M}-lg`]:q==="large",[`${M}-rtl`]:w==="rtl"},d?.input,A.input,I),variant:(0,Kl.default)({[`${M}-${de}`]:le},Yi(M,Y)),affixWrapper:(0,Kl.default)({[`${M}-affix-wrapper-sm`]:q==="small",[`${M}-affix-wrapper-lg`]:q==="large",[`${M}-affix-wrapper-rtl`]:w==="rtl"},I),wrapper:(0,Kl.default)({[`${M}-group-rtl`]:w==="rtl"},I),groupWrapper:(0,Kl.default)({[`${M}-group-wrapper-sm`]:q==="small",[`${M}-group-wrapper-lg`]:q==="large",[`${M}-group-wrapper-rtl`]:w==="rtl",[`${M}-group-wrapper-${de}`]:le},Yi(`${M}-group-wrapper`,Y,G),I)})}))))}),Gs=iU;var vE=E(Ne());var _t=E($());var Kn=E($()),NF=E(Vi());function n0(e,t,r){return(e-t)/(r-t)}function ju(e,t,r,n){var o=n0(t,r,n),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function ea(e,t){return Array.isArray(e)?e[t]:e}var TF=E(Ne());var Vu=E($());var uE=E($()),aU=uE.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),fo=aU,fE=uE.createContext({});var sU=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],lU=Vu.forwardRef(function(e,t){var r=e.prefixCls,n=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,g=e.onFocus,h=e.onMouseEnter,v=Ve(e,sU),y=Vu.useContext(fo),m=y.min,d=y.max,x=y.direction,b=y.disabled,S=y.keyboard,w=y.range,C=y.tabIndex,R=y.ariaLabelForHandle,P=y.ariaLabelledByForHandle,O=y.ariaRequired,A=y.ariaValueTextFormatterForHandle,F=y.styles,M=y.classNames,H="".concat(r,"-handle"),L=function(V){b||i(V,o)},N=function(V){g?.(V,o)},I=function(V){h(V,o)},D=function(V){if(!b&&S){var G=null;switch(V.which||V.keyCode){case Ye.LEFT:G=x==="ltr"||x==="btt"?-1:1;break;case Ye.RIGHT:G=x==="ltr"||x==="btt"?1:-1;break;case Ye.UP:G=x!=="ttb"?1:-1;break;case Ye.DOWN:G=x!=="ttb"?-1:1;break;case Ye.HOME:G="min";break;case Ye.END:G="max";break;case Ye.PAGE_UP:G=2;break;case Ye.PAGE_DOWN:G=-2;break;case Ye.BACKSPACE:case Ye.DELETE:a(o);break}G!==null&&(V.preventDefault(),f(G,o))}},U=function(V){switch(V.which||V.keyCode){case Ye.LEFT:case Ye.RIGHT:case Ye.UP:case Ye.DOWN:case Ye.HOME:case Ye.END:case Ye.PAGE_UP:case Ye.PAGE_DOWN:p?.();break}},z=ju(x,n,m,d),W={};if(o!==null){var q;W={tabIndex:b?null:ea(C,o),role:"slider","aria-valuemin":m,"aria-valuemax":d,"aria-valuenow":n,"aria-disabled":b,"aria-label":ea(R,o),"aria-labelledby":ea(P,o),"aria-required":ea(O,o),"aria-valuetext":(q=ea(A,o))===null||q===void 0?void 0:q(n),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:L,onTouchStart:L,onFocus:N,onMouseEnter:I,onKeyDown:D,onKeyUp:U}}var j=Vu.createElement("div",fe({ref:t,className:(0,TF.default)(H,_(_(_({},"".concat(H,"-").concat(o+1),o!==null&&w),"".concat(H,"-dragging"),c),"".concat(H,"-dragging-delete"),u),M.handle),style:T(T(T({},z),s),F.handle)},W,v));return l&&(j=l(j,{index:o,prefixCls:r,value:n,dragging:c,draggingDelete:u})),j}),dE=lU;var cU=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],uU=Kn.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=Ve(e,cU),g=Kn.useRef({}),h=Kn.useState(!1),v=B(h,2),y=v[0],m=v[1],d=Kn.useState(-1),x=B(d,2),b=x[0],S=x[1],w=function(A){S(A),m(!0)},C=function(A,F){w(F),f?.(A)},R=function(A,F){w(F)};Kn.useImperativeHandle(t,function(){return{focus:function(A){var F;(F=g.current[A])===null||F===void 0||F.focus()},hideHelp:function(){(0,NF.flushSync)(function(){m(!1)})}}});var P=T({prefixCls:r,onStartMove:o,onOffsetChange:i,render:s,onFocus:C,onMouseEnter:R},p);return Kn.createElement(Kn.Fragment,null,a.map(function(O,A){var F=c===A;return Kn.createElement(dE,fe({ref:function(H){H?g.current[A]=H:delete g.current[A]},dragging:F,draggingDelete:F&&u,style:ea(n,A),key:A,value:O,valueIndex:A},P))}),l&&y&&Kn.createElement(dE,fe({key:"a11y"},P,{value:a[b],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),IF=uU;var pE=E($());var $F=E(Ne()),o0=E($());var fU=function(t){var r=t.prefixCls,n=t.style,o=t.children,i=t.value,a=t.onClick,s=o0.useContext(fo),l=s.min,c=s.max,u=s.direction,f=s.includedStart,p=s.includedEnd,g=s.included,h="".concat(r,"-text"),v=ju(u,i,l,c);return o0.createElement("span",{className:(0,$F.default)(h,_({},"".concat(h,"-active"),g&&f<=i&&i<=p)),style:T(T({},v),n),onMouseDown:function(m){m.stopPropagation()},onClick:function(){a(i)}},o)},DF=fU;var dU=function(t){var r=t.prefixCls,n=t.marks,o=t.onClick,i="".concat(r,"-mark");return n.length?pE.createElement("div",{className:i},n.map(function(a){var s=a.value,l=a.style,c=a.label;return pE.createElement(DF,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},AF=dU;var Xl=E($());var kF=E(Ne()),i0=E($());var pU=function(t){var r=t.prefixCls,n=t.value,o=t.style,i=t.activeStyle,a=i0.useContext(fo),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,p=a.includedEnd,g="".concat(r,"-dot"),h=u&&f<=n&&n<=p,v=T(T({},ju(c,n,s,l)),typeof o=="function"?o(n):o);return h&&(v=T(T({},v),typeof i=="function"?i(n):i)),i0.createElement("span",{className:(0,kF.default)(g,_({},"".concat(g,"-active"),h)),style:v})},MF=pU;var mU=function(t){var r=t.prefixCls,n=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=Xl.useContext(fo),l=s.min,c=s.max,u=s.step,f=Xl.useMemo(function(){var p=new Set;if(n.forEach(function(h){p.add(h.value)}),o&&u!==null)for(var g=l;g<=c;)p.add(g),g+=u;return Array.from(p)},[l,c,u,o,n]);return Xl.createElement("div",{className:"".concat(r,"-step")},f.map(function(p){return Xl.createElement(MF,{prefixCls:r,key:p,value:p,style:i,activeStyle:a})}))},FF=mU;var zF=E(Ne()),ta=E($());var LF=E(Ne()),a0=E($());var gU=function(t){var r=t.prefixCls,n=t.style,o=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=a0.useContext(fo),u=c.direction,f=c.min,p=c.max,g=c.disabled,h=c.range,v=c.classNames,y="".concat(r,"-track"),m=n0(o,f,p),d=n0(i,f,p),x=function(C){!g&&s&&s(C,-1)},b={};switch(u){case"rtl":b.right="".concat(m*100,"%"),b.width="".concat(d*100-m*100,"%");break;case"btt":b.bottom="".concat(m*100,"%"),b.height="".concat(d*100-m*100,"%");break;case"ttb":b.top="".concat(m*100,"%"),b.height="".concat(d*100-m*100,"%");break;default:b.left="".concat(m*100,"%"),b.width="".concat(d*100-m*100,"%")}var S=l||(0,LF.default)(y,_(_({},"".concat(y,"-").concat(a+1),a!==null&&h),"".concat(r,"-track-draggable"),s),v.track);return a0.createElement("div",{className:S,style:T(T({},b),n),onMouseDown:x,onTouchStart:x})},mE=gU;var hU=function(t){var r=t.prefixCls,n=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=ta.useContext(fo),l=s.included,c=s.range,u=s.min,f=s.styles,p=s.classNames,g=ta.useMemo(function(){if(!c){if(o.length===0)return[];var v=i??u,y=o[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var m=[],d=0;d<o.length-1;d+=1)m.push({start:o[d],end:o[d+1]});return m},[o,c,i,u]);if(!l)return null;var h=g!=null&&g.length&&(p.tracks||f.tracks)?ta.createElement(mE,{index:null,prefixCls:r,start:g[0].start,end:g[g.length-1].end,replaceCls:(0,zF.default)(p.tracks,"".concat(r,"-tracks")),style:f.tracks}):null;return ta.createElement(ta.Fragment,null,h,g.map(function(v,y){var m=v.start,d=v.end;return ta.createElement(mE,{index:y,prefixCls:r,style:T(T({},ea(n,y)),f.track),start:m,end:d,key:y,onStartMove:a})}))},WF=hU;var In=E($());var vU=130;function BF(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function yU(e,t,r,n,o,i,a,s,l,c,u){var f=In.useState(null),p=B(f,2),g=p[0],h=p[1],v=In.useState(-1),y=B(v,2),m=y[0],d=y[1],x=In.useState(!1),b=B(x,2),S=b[0],w=b[1],C=In.useState(r),R=B(C,2),P=R[0],O=R[1],A=In.useState(r),F=B(A,2),M=F[0],H=F[1],L=In.useRef(null),N=In.useRef(null),I=In.useRef(null),D=In.useContext(fE),U=D.onDragStart,z=D.onDragChange;vt(function(){m===-1&&O(r)},[r,m]),In.useEffect(function(){return function(){document.removeEventListener("mousemove",L.current),document.removeEventListener("mouseup",N.current),I.current&&(I.current.removeEventListener("touchmove",L.current),I.current.removeEventListener("touchend",N.current))}},[]);var W=function(G,J,Y){J!==void 0&&h(J),O(G);var X=G;Y&&(X=G.filter(function(ae,Z){return Z!==m})),a(X),z&&z({rawValues:G,deleteIndex:Y?m:-1,draggingIndex:m,draggingValue:J})},q=wt(function(V,G,J){if(V===-1){var Y=M[0],X=M[M.length-1],ae=n-Y,Z=o-X,K=G*(o-n);K=Math.max(K,ae),K=Math.min(K,Z);var Q=i(Y+K);K=Q-Y;var re=M.map(function(le){return le+K});W(re)}else{var ee=(o-n)*G,ne=te(P);ne[V]=M[V];var de=l(ne,ee,V,"dist");W(de.values,de.value,J)}}),j=function(G,J,Y){G.stopPropagation();var X=Y||r,ae=X[J];d(J),h(ae),H(X),O(X),w(!1);var Z=BF(G),K=Z.pageX,Q=Z.pageY,re=!1;U&&U({rawValues:X,draggingIndex:J,draggingValue:ae});var ee=function(le){le.preventDefault();var pe=BF(le),Oe=pe.pageX,Ce=pe.pageY,De=Oe-K,ce=Ce-Q,ie=e.current.getBoundingClientRect(),Re=ie.width,Le=ie.height,Ge,Me;switch(t){case"btt":Ge=-ce/Le,Me=De;break;case"ttb":Ge=ce/Le,Me=De;break;case"rtl":Ge=-De/Re,Me=ce;break;default:Ge=De/Re,Me=ce}re=c?Math.abs(Me)>vU&&u<P.length:!1,w(re),q(J,Ge,re)},ne=function de(le){le.preventDefault(),document.removeEventListener("mouseup",de),document.removeEventListener("mousemove",ee),I.current&&(I.current.removeEventListener("touchmove",L.current),I.current.removeEventListener("touchend",N.current)),L.current=null,N.current=null,I.current=null,s(re),d(-1),w(!1)};document.addEventListener("mouseup",ne),document.addEventListener("mousemove",ee),G.currentTarget.addEventListener("touchend",ne),G.currentTarget.addEventListener("touchmove",ee),L.current=ee,N.current=ne,I.current=G.currentTarget},k=In.useMemo(function(){var V=te(r).sort(function(ae,Z){return ae-Z}),G=te(P).sort(function(ae,Z){return ae-Z}),J={};G.forEach(function(ae){J[ae]=(J[ae]||0)+1}),V.forEach(function(ae){J[ae]=(J[ae]||0)-1});var Y=c?1:0,X=Object.values(J).reduce(function(ae,Z){return ae+Math.abs(Z)},0);return X<=Y?P:r},[r,P,c]);return[m,g,S,k,j]}var jF=yU;var s0=E($());function gE(e,t,r,n,o,i){var a=s0.useCallback(function(g){return Math.max(e,Math.min(t,g))},[e,t]),s=s0.useCallback(function(g){if(r!==null){var h=e+Math.round((a(g)-e)/r)*r,v=function(x){return(String(x).split(".")[1]||"").length},y=Math.max(v(r),v(t),v(e)),m=Number(h.toFixed(y));return e<=m&&m<=t?m:null}return null},[r,e,t,a]),l=s0.useCallback(function(g){var h=a(g),v=n.map(function(d){return d.value});r!==null&&v.push(s(g)),v.push(e,t);var y=v[0],m=t-e;return v.forEach(function(d){var x=Math.abs(h-d);x<=m&&(y=d,m=x)}),y},[e,t,n,r,a,s]),c=function g(h,v,y){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var d,x=h[y],b=x+v,S=[];n.forEach(function(O){S.push(O.value)}),S.push(e,t),S.push(s(x));var w=v>0?1:-1;m==="unit"?S.push(s(x+w*r)):S.push(s(b)),S=S.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=x:O>=x}),m==="unit"&&(S=S.filter(function(O){return O!==x}));var C=m==="unit"?x:b;d=S[0];var R=Math.abs(d-C);if(S.forEach(function(O){var A=Math.abs(O-C);A<R&&(d=O,R=A)}),d===void 0)return v<0?e:t;if(m==="dist")return d;if(Math.abs(v)>1){var P=te(h);return P[y]=d,g(P,v-w,y,m)}return d}else{if(v==="min")return e;if(v==="max")return t}},u=function(h,v,y){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",d=h[y],x=c(h,v,y,m);return{value:x,changed:x!==d}},f=function(h){return i===null&&h===0||typeof i=="number"&&h<i},p=function(h,v,y){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",d=h.map(l),x=d[y],b=c(d,v,y,m);if(d[y]=b,o===!1){var S=i||0;y>0&&d[y-1]!==x&&(d[y]=Math.max(d[y],d[y-1]+S)),y<d.length-1&&d[y+1]!==x&&(d[y]=Math.min(d[y],d[y+1]-S))}else if(typeof i=="number"||i===null){for(var w=y+1;w<d.length;w+=1)for(var C=!0;f(d[w]-d[w-1])&&C;){var R=u(d,1,w);d[w]=R.value,C=R.changed}for(var P=y;P>0;P-=1)for(var O=!0;f(d[P]-d[P-1])&&O;){var A=u(d,-1,P-1);d[P-1]=A.value,O=A.changed}for(var F=d.length-1;F>0;F-=1)for(var M=!0;f(d[F]-d[F-1])&&M;){var H=u(d,-1,F-1);d[F-1]=H.value,M=H.changed}for(var L=0;L<d.length-1;L+=1)for(var N=!0;f(d[L+1]-d[L])&&N;){var I=u(d,1,L+1);d[L+1]=I.value,N=I.changed}}return{value:d[y],values:d}};return[l,p]}var VF=E($());function hE(e){return(0,VF.useMemo)(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,r=e.draggableTrack,n=e.minCount,o=e.maxCount;return[!0,t,!t&&r,n||0,o]},[e])}var xU=_t.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-slider":r,o=e.className,i=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,f=e.keyboard,p=f===void 0?!0:f,g=e.autoFocus,h=e.onFocus,v=e.onBlur,y=e.min,m=y===void 0?0:y,d=e.max,x=d===void 0?100:d,b=e.step,S=b===void 0?1:b,w=e.value,C=e.defaultValue,R=e.range,P=e.count,O=e.onChange,A=e.onBeforeChange,F=e.onAfterChange,M=e.onChangeComplete,H=e.allowCross,L=H===void 0?!0:H,N=e.pushable,I=N===void 0?!1:N,D=e.reverse,U=e.vertical,z=e.included,W=z===void 0?!0:z,q=e.startPoint,j=e.trackStyle,k=e.handleStyle,V=e.railStyle,G=e.dotStyle,J=e.activeDotStyle,Y=e.marks,X=e.dots,ae=e.handleRender,Z=e.activeHandleRender,K=e.track,Q=e.tabIndex,re=Q===void 0?0:Q,ee=e.ariaLabelForHandle,ne=e.ariaLabelledByForHandle,de=e.ariaRequired,le=e.ariaValueTextFormatterForHandle,pe=_t.useRef(null),Oe=_t.useRef(null),Ce=_t.useMemo(function(){return U?D?"ttb":"btt":D?"rtl":"ltr"},[D,U]),De=hE(R),ce=B(De,5),ie=ce[0],Re=ce[1],Le=ce[2],Ge=ce[3],Me=ce[4],Ie=_t.useMemo(function(){return isFinite(m)?m:0},[m]),je=_t.useMemo(function(){return isFinite(x)?x:100},[x]),We=_t.useMemo(function(){return S!==null&&S<=0?1:S},[S]),He=_t.useMemo(function(){return typeof I=="boolean"?I?We:!1:I>=0?I:!1},[I,We]),ye=_t.useMemo(function(){return Object.keys(Y||{}).map(function(ke){var ve=Y[ke],nt={value:Number(ke)};return ve&&ue(ve)==="object"&&!_t.isValidElement(ve)&&("label"in ve||"style"in ve)?(nt.style=ve.style,nt.label=ve.label):nt.label=ve,nt}).filter(function(ke){var ve=ke.label;return ve||typeof ve=="number"}).sort(function(ke,ve){return ke.value-ve.value})},[Y]),se=gE(Ie,je,We,ye,L,He),xe=B(se,2),_e=xe[0],he=xe[1],Je=ar(C,{value:w}),lt=B(Je,2),Et=lt[0],Pt=lt[1],pt=_t.useMemo(function(){var ke=Et==null?[]:Array.isArray(Et)?Et:[Et],ve=B(ke,1),nt=ve[0],Nt=nt===void 0?Ie:nt,It=Et===null?[]:[Nt];if(ie){if(It=te(ke),P||Et===void 0){var mn=P>=0?P+1:2;for(It=It.slice(0,mn);It.length<mn;){var Ar;It.push((Ar=It[It.length-1])!==null&&Ar!==void 0?Ar:Ie)}}It.sort(function(Br,_r){return Br-_r})}return It.forEach(function(Br,_r){It[_r]=_e(Br)}),It},[Et,ie,Ie,P,_e]),Ae=function(ve){return ie?ve:ve[0]},we=wt(function(ke){var ve=te(ke).sort(function(nt,Nt){return nt-Nt});O&&!Cs(ve,pt,!0)&&O(Ae(ve)),Pt(ve)}),et=wt(function(ke){ke&&pe.current.hideHelp();var ve=Ae(pt);F?.(ve),Vt(!F,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),M?.(ve)}),Pe=function(ve){if(!(u||!Re||pt.length<=Ge)){var nt=te(pt);nt.splice(ve,1),A?.(Ae(nt)),we(nt);var Nt=Math.max(0,ve-1);pe.current.hideHelp(),pe.current.focus(Nt)}},$e=jF(Oe,Ce,pt,Ie,je,_e,we,et,he,Re,Ge),Ee=B($e,5),be=Ee[0],ht=Ee[1],Mt=Ee[2],Fe=Ee[3],Se=Ee[4],Ke=function(ve,nt){if(!u){var Nt=te(pt),It=0,mn=0,Ar=je-Ie;pt.forEach(function(Mn,Zr){var wn=Math.abs(ve-Mn);wn<=Ar&&(Ar=wn,It=Zr),Mn<ve&&(mn=Zr)});var Br=It;Re&&Ar!==0&&(!Me||pt.length<Me)?(Nt.splice(mn+1,0,ve),Br=mn+1):Nt[It]=ve,ie&&!pt.length&&P===void 0&&Nt.push(ve);var _r=Ae(Nt);if(A?.(_r),we(Nt),nt){var jr,Xn;(jr=document.activeElement)===null||jr===void 0||(Xn=jr.blur)===null||Xn===void 0||Xn.call(jr),pe.current.focus(Br),Se(nt,Br,Nt)}else F?.(_r),Vt(!F,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),M?.(_r)}},Be=function(ve){ve.preventDefault();var nt=Oe.current.getBoundingClientRect(),Nt=nt.width,It=nt.height,mn=nt.left,Ar=nt.top,Br=nt.bottom,_r=nt.right,jr=ve.clientX,Xn=ve.clientY,Mn;switch(Ce){case"btt":Mn=(Br-Xn)/It;break;case"ttb":Mn=(Xn-Ar)/It;break;case"rtl":Mn=(_r-jr)/Nt;break;default:Mn=(jr-mn)/Nt}var Zr=Ie+Mn*(je-Ie);Ke(_e(Zr),ve)},ze=_t.useState(null),tt=B(ze,2),At=tt[0],Tt=tt[1],tr=function(ve,nt){if(!u){var Nt=he(pt,ve,nt);A?.(Ae(pt)),we(Nt.values),Tt(Nt.value)}};_t.useEffect(function(){if(At!==null){var ke=pt.indexOf(At);ke>=0&&pe.current.focus(ke)}Tt(null)},[At]);var Ft=_t.useMemo(function(){return Le&&We===null?!1:Le},[Le,We]),rr=wt(function(ke,ve){Se(ke,ve),A?.(Ae(pt))}),pr=be!==-1;_t.useEffect(function(){if(!pr){var ke=pt.lastIndexOf(ht);pe.current.focus(ke)}},[pr]);var mr=_t.useMemo(function(){return te(Fe).sort(function(ke,ve){return ke-ve})},[Fe]),kn=_t.useMemo(function(){return ie?[mr[0],mr[mr.length-1]]:[Ie,mr[0]]},[mr,ie,Ie]),gr=B(kn,2),Lt=gr[0],Te=gr[1];_t.useImperativeHandle(t,function(){return{focus:function(){pe.current.focus(0)},blur:function(){var ve,nt=document,Nt=nt.activeElement;(ve=Oe.current)!==null&&ve!==void 0&&ve.contains(Nt)&&Nt?.blur()}}}),_t.useEffect(function(){g&&pe.current.focus(0)},[]);var Ue=_t.useMemo(function(){return{min:Ie,max:je,direction:Ce,disabled:u,keyboard:p,step:We,included:W,includedStart:Lt,includedEnd:Te,range:ie,tabIndex:re,ariaLabelForHandle:ee,ariaLabelledByForHandle:ne,ariaRequired:de,ariaValueTextFormatterForHandle:le,styles:s||{},classNames:a||{}}},[Ie,je,Ce,u,p,We,W,Lt,Te,ie,re,ee,ne,de,le,s,a]);return _t.createElement(fo.Provider,{value:Ue},_t.createElement("div",{ref:Oe,className:(0,vE.default)(n,o,_(_(_(_({},"".concat(n,"-disabled"),u),"".concat(n,"-vertical"),U),"".concat(n,"-horizontal"),!U),"".concat(n,"-with-marks"),ye.length)),style:i,onMouseDown:Be,id:l},_t.createElement("div",{className:(0,vE.default)("".concat(n,"-rail"),a?.rail),style:T(T({},V),s?.rail)}),K!==!1&&_t.createElement(WF,{prefixCls:n,style:j,values:pt,startPoint:q,onStartMove:Ft?rr:void 0}),_t.createElement(FF,{prefixCls:n,marks:ye,dots:X,style:G,activeStyle:J}),_t.createElement(IF,{ref:pe,prefixCls:n,style:k,values:Fe,draggingIndex:be,draggingDelete:Mt,onStartMove:rr,onOffsetChange:tr,onFocus:h,onBlur:v,handleRender:ae,activeHandleRender:Z,onChangeComplete:et,onDelete:Re?Pe:void 0}),_t.createElement(AF,{prefixCls:n,marks:ye,onClick:Ke})))}),HF=xU;var UF=HF;var ra=E($()),qu=E(Ne());var qF=E($()),bU=(0,qF.createContext)({}),GF=bU;var Hu=E($()),yE=E($());var SU=Hu.forwardRef((e,t)=>{let{open:r,draggingDelete:n,value:o}=e,i=(0,yE.useRef)(null),a=r&&!n,s=(0,yE.useRef)(null);function l(){dt.cancel(s.current),s.current=null}function c(){s.current=dt(()=>{var u;(u=i.current)===null||u===void 0||u.forceAlign(),s.current=null})}return Hu.useEffect(()=>(a?c():l(),l),[a,e.title,o]),Hu.createElement(ka,Object.assign({ref:Lr(i,t)},e,{open:a}))}),xE=SU;var CU=e=>{let{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:g,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},sr(e)),{position:"relative",height:n,margin:`${oe(a)} ${oe(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${oe(i)} ${oe(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${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 ${oe(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${oe(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
inset-inline-start ${y},
inset-block-start ${y},
width ${y},
height ${y},
box-shadow ${y},
outline ${y}
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${oe(v)} ${p}`,outline:`6px solid ${g}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${oe(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
${t}-dot
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${oe(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
${t}-mark-text,
${t}-dot
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},KF=(e,t)=>{let{componentCls:r,railSize:n,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",g=s(n).mul(3).sub(o).div(2).equal(),h=s(o).sub(n).div(2).equal(),v=t?{borderWidth:`${oe(h)} 0`,transform:`translateY(${oe(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${oe(h)}`,transform:`translateX(${oe(e.calc(h).mul(-1).equal())})`};return{[l]:n,[u]:s(n).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:n},[`${r}-track,${r}-tracks`]:{[u]:n},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[f]:g},[`${r}-mark`]:{insetInlineStart:0,top:0,[p]:s(n).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[p]:n,[c]:"100%",[u]:n},[`${r}-dot`]:{position:"absolute",[f]:s(n).sub(i).div(2).equal()}}},wU=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},KF(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},EU=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},KF(e,!1)),{height:"100%"})}},RU=e=>{let r=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new gt(a).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},XF=Gt("Slider",e=>{let t=ut(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[CU(t),wU(t),EU(t)]},RU);var Uu=E($());function fp(){let[e,t]=Uu.useState(!1),r=Uu.useRef(null),n=()=>{dt.cancel(r.current)},o=i=>{n(),i?t(i):r.current=dt(()=>{t(i)})};return Uu.useEffect(()=>n,[]),[e,o]}var OU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function _U(e,t){return e||e===null?e:t||t===null?t:r=>typeof r=="number"?r.toString():""}var PU=ra.default.forwardRef((e,t)=>{let{prefixCls:r,range:n,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:g={},onChangeComplete:h,classNames:v,styles:y}=e,m=OU(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:d}=e,{getPrefixCls:x,direction:b,className:S,style:w,classNames:C,styles:R,getPopupContainer:P}=no("slider"),O=ra.default.useContext(Ur),A=s??O,{handleRender:F,direction:M}=ra.default.useContext(GF),L=(M||b)==="rtl",[N,I]=fp(),[D,U]=fp(),z=Object.assign({},g),{open:W,placement:q,getPopupContainer:j,prefixCls:k,formatter:V}=z,G=W??u,J=(N||D)&&G!==!1,Y=_U(V,c),[X,ae]=fp(),Z=ie=>{h?.(ie),ae(!1)},K=(ie,Re)=>ie||(Re?L?"left":"right":"top"),Q=x("slider",r),[re,ee,ne]=XF(Q),de=(0,qu.default)(o,S,C.root,v?.root,i,{[`${Q}-rtl`]:L,[`${Q}-lock`]:X},ee,ne);L&&!m.vertical&&(m.reverse=!m.reverse),ra.default.useEffect(()=>{let ie=()=>{dt(()=>{U(!1)},1)};return document.addEventListener("mouseup",ie),()=>{document.removeEventListener("mouseup",ie)}},[]);let le=n&&!G,pe=F||((ie,Re)=>{let{index:Le}=Re,Ge=ie.props;function Me(He,ye,se){var xe,_e,he,Je;se&&((_e=(xe=m)[He])===null||_e===void 0||_e.call(xe,ye)),(Je=(he=Ge)[He])===null||Je===void 0||Je.call(he,ye)}let Ie=Object.assign(Object.assign({},Ge),{onMouseEnter:He=>{I(!0),Me("onMouseEnter",He)},onMouseLeave:He=>{I(!1),Me("onMouseLeave",He)},onMouseDown:He=>{U(!0),ae(!0),Me("onMouseDown",He)},onFocus:He=>{var ye;U(!0),(ye=m.onFocus)===null||ye===void 0||ye.call(m,He),Me("onFocus",He,!0)},onBlur:He=>{var ye;U(!1),(ye=m.onBlur)===null||ye===void 0||ye.call(m,He),Me("onBlur",He,!0)}}),je=ra.default.cloneElement(ie,Ie),We=(!!G||J)&&Y!==null;return le?je:ra.default.createElement(xE,Object.assign({},z,{prefixCls:x("tooltip",k??l),title:Y?Y(Re.value):"",value:Re.value,open:We,placement:K(q??p,d),key:Le,classNames:{root:`${Q}-tooltip`},getPopupContainer:j||f||P}),je)}),Oe=le?(ie,Re)=>{let Le=ra.default.cloneElement(ie,{style:Object.assign(Object.assign({},ie.props.style),{visibility:"hidden"})});return ra.default.createElement(xE,Object.assign({},z,{prefixCls:x("tooltip",k??l),title:Y?Y(Re.value):"",open:Y!==null&&J,placement:K(q??p,d),key:"tooltip",classNames:{root:`${Q}-tooltip`},getPopupContainer:j||f||P,draggingDelete:Re.draggingDelete}),Le)}:void 0,Ce=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),w),y?.root),a),De=Object.assign(Object.assign({},R.tracks),y?.tracks),ce=(0,qu.default)(C.tracks,v?.tracks);return re(ra.default.createElement(UF,Object.assign({},m,{classNames:Object.assign({handle:(0,qu.default)(C.handle,v?.handle),rail:(0,qu.default)(C.rail,v?.rail),track:(0,qu.default)(C.track,v?.track)},ce?{tracks:ce}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},R.handle),y?.handle),rail:Object.assign(Object.assign({},R.rail),y?.rail),track:Object.assign(Object.assign({},R.track),y?.track)},Object.keys(De).length?{tracks:De}:{}),step:m.step,range:n,className:de,style:Ce,disabled:A,ref:t,prefixCls:Q,handleRender:pe,activeHandleRender:Oe,onChangeComplete:Z})))}),bE=PU;function SE(e){return["small","middle","large"].includes(e)}var l0=E($()),ZF=E(Ne());var YF=E(Ne()),CE=["wrap","nowrap","wrap-reverse"],wE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],EE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],TU=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&CE.includes(r)}},NU=(e,t)=>{let r={};return EE.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},IU=(e,t)=>{let r={};return wE.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function $U(e,t){return(0,YF.default)(Object.assign(Object.assign(Object.assign({},TU(e,t)),NU(e,t)),IU(e,t)))}var QF=$U;var DU=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},AU=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},kU=e=>{let{componentCls:t}=e,r={};return CE.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},MU=e=>{let{componentCls:t}=e,r={};return EE.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},FU=e=>{let{componentCls:t}=e,r={};return wE.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},LU=()=>({}),JF=Gt("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:n}=e,o=ut(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[DU(o),AU(o),kU(o),MU(o),FU(o)]},LU,{resetStyle:!1});var zU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},WU=l0.default.forwardRef((e,t)=>{let{prefixCls:r,rootClassName:n,className:o,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=zU(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:g,getPrefixCls:h}=l0.default.useContext(rt),v=h("flex",r),[y,m,d]=JF(v),x=c??p?.vertical,b=(0,ZF.default)(o,n,p?.className,v,m,d,QF(v,e),{[`${v}-rtl`]:g==="rtl",[`${v}-gap-${s}`]:SE(s),[`${v}-vertical`]:x}),S=Object.assign(Object.assign({},p?.style),i);return a&&(S.flex=a),s&&!SE(s)&&(S.gap=s),y(l0.default.createElement(u,Object.assign({ref:t,className:b,style:S},qr(f,["justify","wrap","align"])),l))}),Wa=WU;var c0=E($());var BU={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"},eL=BU;var jU=function(t,r){return c0.createElement(zt,fe({},t,{ref:r,icon:eL}))},VU=c0.forwardRef(jU),u0=VU;var RE=E($()),dp=E($()),tL=E(Ne());var HU=e=>{let{getPrefixCls:t,direction:r}=(0,dp.useContext)(rt),{prefixCls:n,className:o}=e,i=t("input-group",n),a=t("input"),[s,l,c]=Hy(a),u=(0,tL.default)(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,o),f=(0,dp.useContext)(fn),p=(0,dp.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(RE.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},RE.createElement(fn.Provider,{value:p},e.children)))},rL=HU;var dr=E($()),aL=E(Ne());var UU=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},nL=Gt(["Input","OTP"],e=>{let t=ut(e,Ma(e));return[UU(t)]},Fa);var ai=E($()),oL=E(Ne());var qU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},GU=ai.forwardRef((e,t)=>{let{className:r,value:n,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=qU(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=ai.useContext(rt),u=c("otp"),f=typeof s=="string"?s:n,p=ai.useRef(null);ai.useImperativeHandle(t,()=>p.current);let g=m=>{o(a,m.target.value)},h=()=>{dt(()=>{var m;let d=(m=p.current)===null||m===void 0?void 0:m.input;document.activeElement===d&&d&&d.select()})},v=m=>{let{key:d,ctrlKey:x,metaKey:b}=m;d==="ArrowLeft"?i(a-1):d==="ArrowRight"?i(a+1):d==="z"&&(x||b)&&m.preventDefault(),h()},y=m=>{m.key==="Backspace"&&!n&&i(a-1),h()};return ai.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&ai.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),ai.createElement(Gs,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:p,value:n,onInput:g,onFocus:h,onKeyDown:v,onKeyUp:y,onMouseDown:h,onMouseUp:h,className:(0,oL.default)(r,{[`${u}-mask-input`]:s})})))}),iL=GU;var KU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function f0(e){return(e||"").split("")}var XU=e=>{let{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?dr.createElement("span",{className:`${r}-separator`},o):null},YU=dr.forwardRef((e,t)=>{let{prefixCls:r,length:n=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:p,autoFocus:g,mask:h,type:v,onInput:y,inputMode:m}=e,d=KU(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:b}=dr.useContext(rt),S=x("otp",r),w=qo(d,{aria:!0,data:!0,attr:!0}),[C,R,P]=nL(S),O=ao(k=>o??k),A=dr.useContext(fn),F=Qi(A.status,p),M=dr.useMemo(()=>Object.assign(Object.assign({},A),{status:F,hasFeedback:!1,feedbackIcon:null}),[A,F]),H=dr.useRef(null),L=dr.useRef({});dr.useImperativeHandle(t,()=>({focus:()=>{var k;(k=L.current[0])===null||k===void 0||k.focus()},blur:()=>{var k;for(let V=0;V<n;V+=1)(k=L.current[V])===null||k===void 0||k.blur()},nativeElement:H.current}));let N=k=>l?l(k):k,[I,D]=dr.useState(()=>f0(N(i||"")));dr.useEffect(()=>{a!==void 0&&D(f0(a))},[a]);let U=wt(k=>{D(k),y&&y(k),s&&k.length===n&&k.every(V=>V)&&k.some((V,G)=>I[G]!==V)&&s(k.join(""))}),z=wt((k,V)=>{let G=te(I);for(let Y=0;Y<k;Y+=1)G[Y]||(G[Y]="");V.length<=1?G[k]=V:G=G.slice(0,k).concat(f0(V)),G=G.slice(0,n);for(let Y=G.length-1;Y>=0&&!G[Y];Y-=1)G.pop();let J=N(G.map(Y=>Y||" ").join(""));return G=f0(J).map((Y,X)=>Y===" "&&!G[X]?G[X]:Y),G}),W=(k,V)=>{var G;let J=z(k,V),Y=Math.min(k+V.length,n-1);Y!==k&&J[k]!==void 0&&((G=L.current[Y])===null||G===void 0||G.focus()),U(J)},q=k=>{var V;(V=L.current[k])===null||V===void 0||V.focus()},j={variant:u,disabled:f,status:F,mask:h,type:v,inputMode:m};return C(dr.createElement("div",Object.assign({},w,{ref:H,className:(0,aL.default)(S,{[`${S}-sm`]:O==="small",[`${S}-lg`]:O==="large",[`${S}-rtl`]:b==="rtl"},P,R),role:"group"}),dr.createElement(fn.Provider,{value:M},Array.from({length:n}).map((k,V)=>{let G=`otp-${V}`,J=I[V]||"";return dr.createElement(dr.Fragment,{key:G},dr.createElement(iL,Object.assign({ref:Y=>{L.current[V]=Y},index:V,size:O,htmlSize:1,className:`${S}-input`,onChange:W,value:J,onActiveChange:q,autoFocus:V===0&&g},j)),V<n-1&&dr.createElement(XU,{separator:c,index:V,prefixCls:S}))}))))}),sL=YU;var $n=E($()),p0=E($());var d0=E($());var QU={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"},lL=QU;var JU=function(t,r){return d0.createElement(zt,fe({},t,{ref:r,icon:lL}))},ZU=d0.forwardRef(JU),cL=ZU;var uL=E(Ne());var eq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},tq=e=>e?$n.createElement(u0,null):$n.createElement(cL,null),rq={click:"onClick",hover:"onMouseOver"},nq=$n.forwardRef((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:i=tq}=e,a=$n.useContext(Ur),s=r??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=(0,p0.useState)(()=>l?o.visible:!1),f=(0,p0.useRef)(null);$n.useEffect(()=>{l&&u(o.visible)},[l,o]);let p=up(f),g=()=>{var O;if(s)return;c&&p();let A=!c;u(A),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,A))},h=O=>{let A=rq[n]||"",F=i(c),M={[A]:g,className:`${O}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return $n.cloneElement($n.isValidElement(F)?F:$n.createElement("span",null,F),M)},{className:v,prefixCls:y,inputPrefixCls:m,size:d}=e,x=eq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=$n.useContext(rt),S=b("input",m),w=b("input-password",y),C=o&&h(w),R=(0,uL.default)(w,v,{[`${w}-${d}`]:!!d}),P=Object.assign(Object.assign({},qr(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:S,suffix:C});return d&&(P.size=d),$n.createElement(Gs,Object.assign({ref:Lr(t,f)},P))}),fL=nq;var Ii=E($());var dL=E(Ne());var oq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},iq=Ii.forwardRef((e,t)=>{let{prefixCls:r,inputPrefixCls:n,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:h,variant:v}=e,y=oq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant"]),{getPrefixCls:m,direction:d}=Ii.useContext(rt),x=Ii.useRef(!1),b=m("input-search",r),S=m("input",n),{compactSize:w}=Xo(b,d),C=ao(q=>{var j;return(j=i??w)!==null&&j!==void 0?j:q}),R=Ii.useRef(null),P=q=>{q?.target&&q.type==="click"&&f&&f(q.target.value,q,{source:"clear"}),p?.(q)},O=q=>{var j;document.activeElement===((j=R.current)===null||j===void 0?void 0:j.input)&&q.preventDefault()},A=q=>{var j,k;f&&f((k=(j=R.current)===null||j===void 0?void 0:j.input)===null||k===void 0?void 0:k.value,q,{source:"input"})},F=q=>{x.current||c||A(q)},M=typeof s=="boolean"?Ii.createElement(Ny,null):null,H=`${b}-button`,L,N=s||{},I=N.type&&N.type.__ANT_BUTTON===!0;I||N.type==="button"?L=Go(N,Object.assign({onMouseDown:O,onClick:q=>{var j,k;(k=(j=N?.props)===null||j===void 0?void 0:j.onClick)===null||k===void 0||k.call(j,q),A(q)},key:"enterButton"},I?{className:H,size:C}:{})):L=Ii.createElement(Ld,{className:H,color:s?"primary":"default",size:C,disabled:u,key:"enterButton",onMouseDown:O,onClick:A,loading:c,icon:M,variant:v==="borderless"||v==="filled"||v==="underlined"?"text":s?"solid":void 0},s),l&&(L=[L,Go(l,{key:"addonAfter"})]);let D=(0,dL.default)(b,{[`${b}-rtl`]:d==="rtl",[`${b}-${C}`]:!!C,[`${b}-with-button`]:!!s},o),U=q=>{x.current=!0,g?.(q)},z=q=>{x.current=!1,h?.(q)},W=Object.assign(Object.assign({},y),{className:D,prefixCls:S,type:"search",size:C,variant:v,onPressEnter:F,onCompositionStart:U,onCompositionEnd:z,addonAfter:L,suffix:a,onChange:P,disabled:u});return Ii.createElement(Gs,Object.assign({ref:Lr(R,t)},W))}),pL=iq;var To=E($()),yL=E($()),mp=E(Ne());var pp=E(Ne());var Qr=E($());var mL=E(Ne());var Cn=E($());var aq=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,sq=["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"],OE={},Po;function lq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&OE[r])return OE[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=sq.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(OE[r]=l),l}function _E(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Po||(Po=document.createElement("textarea"),Po.setAttribute("tab-index","-1"),Po.setAttribute("aria-hidden","true"),Po.setAttribute("name","hiddenTextarea"),document.body.appendChild(Po)),e.getAttribute("wrap")?Po.setAttribute("wrap",e.getAttribute("wrap")):Po.removeAttribute("wrap");var o=lq(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Po.setAttribute("style","".concat(l,";").concat(aq)),Po.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=Po.scrollHeight;if(s==="border-box"?p+=a:s==="content-box"&&(p-=i),r!==null||n!==null){Po.value=" ";var g=Po.scrollHeight-i;r!==null&&(c=g*r,s==="border-box"&&(c=c+i+a),p=Math.max(c,p)),n!==null&&(u=g*n,s==="border-box"&&(u=u+i+a),f=p>u?"":"hidden",p=Math.min(u,p))}var h={height:p,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var cq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],PE=0,TE=1,NE=2,uq=Cn.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange,p=r.onInternalAutoSize,g=Ve(r,cq),h=ar(o,{value:i,postState:function(V){return V??""}}),v=B(h,2),y=v[0],m=v[1],d=function(V){m(V.target.value),f?.(V)},x=Cn.useRef();Cn.useImperativeHandle(t,function(){return{textArea:x.current}});var b=Cn.useMemo(function(){return a&&ue(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=B(b,2),w=S[0],C=S[1],R=!!a,P=function(){try{if(document.activeElement===x.current){var V=x.current,G=V.selectionStart,J=V.selectionEnd,Y=V.scrollTop;x.current.setSelectionRange(G,J),x.current.scrollTop=Y}}catch{}},O=Cn.useState(NE),A=B(O,2),F=A[0],M=A[1],H=Cn.useState(),L=B(H,2),N=L[0],I=L[1],D=function(){M(PE)};vt(function(){R&&D()},[i,w,C,R]),vt(function(){if(F===PE)M(TE);else if(F===TE){var k=_E(x.current,!1,w,C);M(NE),I(k)}else P()},[F]);var U=Cn.useRef(),z=function(){dt.cancel(U.current)},W=function(V){F===NE&&(s?.(V),a&&(z(),U.current=dt(function(){D()})))};Cn.useEffect(function(){return z},[]);var q=R?N:null,j=T(T({},c),q);return(F===PE||F===TE)&&(j.overflowY="hidden",j.overflowX="hidden"),Cn.createElement(ro,{onResize:W,disabled:!(a||s)},Cn.createElement("textarea",fe({},g,{ref:x,style:j,className:(0,mL.default)(n,l,_({},"".concat(n,"-disabled"),u)),disabled:u,value:y,onChange:d})))}),IE=uq;var fq=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],dq=Qr.default.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,v=e.showCount,y=e.count,m=e.className,d=e.style,x=e.disabled,b=e.hidden,S=e.classNames,w=e.styles,C=e.onResize,R=e.onClear,P=e.onPressEnter,O=e.readOnly,A=e.autoSize,F=e.onKeyDown,M=Ve(e,fq),H=ar(n,{value:o,defaultValue:n}),L=B(H,2),N=L[0],I=L[1],D=N==null?"":String(N),U=Qr.default.useState(!1),z=B(U,2),W=z[0],q=z[1],j=Qr.default.useRef(!1),k=Qr.default.useState(null),V=B(k,2),G=V[0],J=V[1],Y=(0,Qr.useRef)(null),X=(0,Qr.useRef)(null),ae=function(){var se;return(se=X.current)===null||se===void 0?void 0:se.textArea},Z=function(){ae().focus()};(0,Qr.useImperativeHandle)(t,function(){var ye;return{resizableTextArea:X.current,focus:Z,blur:function(){ae().blur()},nativeElement:((ye=Y.current)===null||ye===void 0?void 0:ye.nativeElement)||ae()}}),(0,Qr.useEffect)(function(){q(function(ye){return!x&&ye})},[x]);var K=Qr.default.useState(null),Q=B(K,2),re=Q[0],ee=Q[1];Qr.default.useEffect(function(){if(re){var ye;(ye=ae()).setSelectionRange.apply(ye,te(re))}},[re]);var ne=cp(y,v),de=(r=ne.max)!==null&&r!==void 0?r:c,le=Number(de)>0,pe=ne.strategy(D),Oe=!!de&&pe>de,Ce=function(se,xe){var _e=xe;!j.current&&ne.exceedFormatter&&ne.max&&ne.strategy(xe)>ne.max&&(_e=ne.exceedFormatter(xe,{max:ne.max}),xe!==_e&&ee([ae().selectionStart||0,ae().selectionEnd||0])),I(_e),Bu(se.currentTarget,se,s,_e)},De=function(se){j.current=!0,u?.(se)},ce=function(se){j.current=!1,Ce(se,se.currentTarget.value),f?.(se)},ie=function(se){Ce(se,se.target.value)},Re=function(se){se.key==="Enter"&&P&&P(se),F?.(se)},Le=function(se){q(!0),i?.(se)},Ge=function(se){q(!1),a?.(se)},Me=function(se){I(""),Z(),Bu(ae(),se,s)},Ie=p,je;ne.show&&(ne.showFormatter?je=ne.showFormatter({value:D,count:pe,maxLength:de}):je="".concat(pe).concat(le?" / ".concat(de):""),Ie=Qr.default.createElement(Qr.default.Fragment,null,Ie,Qr.default.createElement("span",{className:(0,pp.default)("".concat(h,"-data-count"),S?.count),style:w?.count},je)));var We=function(se){var xe;C?.(se),(xe=ae())!==null&&xe!==void 0&&xe.style.height&&J(!0)},He=!A&&!v&&!l;return Qr.default.createElement(ql,{ref:Y,value:D,allowClear:l,handleReset:Me,suffix:Ie,prefixCls:h,classNames:T(T({},S),{},{affixWrapper:(0,pp.default)(S?.affixWrapper,_(_({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:W,className:(0,pp.default)(m,Oe&&"".concat(h,"-out-of-range")),style:T(T({},d),G&&!He?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof je=="string"?je:void 0}},hidden:b,readOnly:O,onClear:R},Qr.default.createElement(IE,fe({},M,{autoSize:A,maxLength:c,onKeyDown:Re,onChange:ie,onFocus:Le,onBlur:Ge,onCompositionStart:De,onCompositionEnd:ce,className:(0,pp.default)(S?.textarea),style:T(T({},w?.textarea),{},{resize:d?.resize}),disabled:x,prefixCls:h,onResize:We,ref:X,readOnly:O})))}),gL=dq;var hL=gL;var pq=e=>{let{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${t},
&-affix-wrapper${n}-has-feedback ${t}
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},vL=Gt(["Input","TextArea"],e=>{let t=ut(e,Ma(e));return[pq(t)]},Fa,{resetFont:!1});var mq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},gq=(0,yL.forwardRef)((e,t)=>{var r;let{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:p,styles:g,variant:h,showCount:v,onMouseDown:y,onResize:m}=e,d=mq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:b,allowClear:S,autoComplete:w,className:C,style:R,classNames:P,styles:O}=no("textArea"),A=To.useContext(Ur),F=a??A,{status:M,hasFeedback:H,feedbackIcon:L}=To.useContext(fn),N=Qi(M,s),I=To.useRef(null);To.useImperativeHandle(t,()=>{var ne;return{resizableTextArea:(ne=I.current)===null||ne===void 0?void 0:ne.resizableTextArea,focus:de=>{var le,pe;Ul((pe=(le=I.current)===null||le===void 0?void 0:le.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,de)},blur:()=>{var de;return(de=I.current)===null||de===void 0?void 0:de.blur()}}});let D=x("input",n),U=Ko(D),[z,W,q]=Vy(D,u),[j]=vL(D,U),{compactSize:k,compactItemClassnames:V}=Xo(D,b),G=ao(ne=>{var de;return(de=i??k)!==null&&de!==void 0?de:ne}),[J,Y]=qs("textArea",h,o),X=t0(l??S),[ae,Z]=To.useState(!1),[K,Q]=To.useState(!1),re=ne=>{Z(!0),y?.(ne);let de=()=>{Z(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},ee=ne=>{var de,le;if(m?.(ne),ae&&typeof getComputedStyle=="function"){let pe=(le=(de=I.current)===null||de===void 0?void 0:de.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&Q(!0)}};return z(j(To.createElement(hL,Object.assign({autoComplete:w},d,{style:Object.assign(Object.assign({},R),p),styles:Object.assign(Object.assign({},O),g),disabled:F,allowClear:X,className:(0,mp.default)(q,U,f,u,V,C,K&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),P),{textarea:(0,mp.default)({[`${D}-sm`]:G==="small",[`${D}-lg`]:G==="large"},W,c?.textarea,P.textarea,ae&&`${D}-mouse-active`),variant:(0,mp.default)({[`${D}-${J}`]:Y},Yi(D,N)),affixWrapper:(0,mp.default)(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:b==="rtl",[`${D}-affix-wrapper-sm`]:G==="small",[`${D}-affix-wrapper-lg`]:G==="large",[`${D}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},W)}),prefixCls:D,suffix:H&&To.createElement("span",{className:`${D}-textarea-suffix`},L),showCount:v,ref:I,onResize:ee,onMouseDown:re}))))}),xL=gq;var Gu=Gs;Gu.Group=rL;Gu.Search=pL;Gu.TextArea=xL;Gu.Password=fL;Gu.OTP=sL;var gp=Gu;var Jr=E($());var FE=E(Ne());var Yu=E($()),TL=E(Ne());var hq=E($()),vq=E(Ne());var hp=E($()),$E={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},DE=function(){var t=(0,hp.useRef)([]),r=(0,hp.useRef)(null);return(0,hp.useEffect)(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current};var vp=E($()),OL=E(Ne());var m0=E($());var bL=0,yq=Yt();function xq(){var e;return yq?(e=bL,bL+=1):e="TEST_OR_SSR",e}var SL=function(e){var t=m0.useState(),r=B(t,2),n=r[0],o=r[1];return m0.useEffect(function(){o("rc_progress_".concat(xq()))},[]),e||n};var si=E($()),CL=function(t){var r=t.bg,n=t.children;return si.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function wL(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var bq=si.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,p=n&&ue(n)==="object",g=p?"#FFF":void 0,h=u/2,v=si.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:g,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!p)return v;var y="".concat(o,"-conic"),m=f?"".concat(180+f/2,"deg"):"0deg",d=wL(n,(360-f)/360),x=wL(n,1),b="conic-gradient(from ".concat(m,", ").concat(d.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return si.createElement(si.Fragment,null,si.createElement("mask",{id:y},v),si.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},si.createElement(CL,{bg:S},si.createElement(CL,{bg:b}))))}),EL=bq;var Ku=100,g0=function(t,r,n,o,i,a,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=n/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*r;c==="round"&&o!==100&&(h+=u/2,h>=r&&(h=r-.01));var v=Ku/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(i+p+g,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};var Sq=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function RL(e){var t=e??[];return Array.isArray(t)?t:[t]}var Cq=function(t){var r=T(T({},$E),t),n=r.id,o=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,f=r.trailColor,p=r.strokeLinecap,g=r.style,h=r.className,v=r.strokeColor,y=r.percent,m=Ve(r,Sq),d=Ku/2,x=SL(n),b="".concat(x,"-gradient"),S=d-a/2,w=Math.PI*2*S,C=c>0?90+c/2:-90,R=w*((360-c)/360),P=ue(i)==="object"?i:{count:i,gap:2},O=P.count,A=P.gap,F=RL(y),M=RL(v),H=M.find(function(W){return W&&ue(W)==="object"}),L=H&&ue(H)==="object",N=L?"butt":p,I=g0(w,R,0,100,C,c,u,f,N,a),D=DE(),U=function(){var q=0;return F.map(function(j,k){var V=M[k]||M[M.length-1],G=g0(w,R,q,j,C,c,u,V,N,a);return q+=j,vp.createElement(EL,{key:k,color:V,ptg:j,radius:S,prefixCls:o,gradientId:b,style:G,strokeLinecap:N,strokeWidth:a,gapDegree:c,ref:function(Y){D[k]=Y},size:Ku})}).reverse()},z=function(){var q=Math.round(O*(F[0]/100)),j=100/O,k=0;return new Array(O).fill(null).map(function(V,G){var J=G<=q-1?M[0]:f,Y=J&&ue(J)==="object"?"url(#".concat(b,")"):void 0,X=g0(w,R,k,j,C,c,u,J,"butt",a,A);return k+=(R-X.strokeDashoffset+A)*100/R,vp.createElement("circle",{key:G,className:"".concat(o,"-circle-path"),r:S,cx:d,cy:d,stroke:Y,strokeWidth:a,opacity:1,style:X,ref:function(Z){D[G]=Z}})})};return vp.createElement("svg",fe({className:(0,OL.default)("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Ku," ").concat(Ku),style:g,id:n,role:"presentation"},m),!O&&vp.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:d,cy:d,stroke:f,strokeLinecap:N,strokeWidth:s||a,style:I}),O?z():U())},AE=Cq;function na(e){return!e||e<0?0:e>100?100:e}function Xu({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}var _L=({percent:e,success:t,successPercent:r})=>{let n=na(Xu({success:t,successPercent:r}));return[n,na(na(e)-n)]},PL=({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||Ea.green,t||null]},Ks=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if(t==="step"){let c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){let c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]};var wq=3,Eq=e=>wq/e*100,Rq=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[p,g]=Ks(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max(Eq(p),6));let v={width:p,height:g,fontSize:p*.15+6},y=Yu.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),m=_L(e),d=o||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=PL({success:c,strokeColor:e.strokeColor}),S=(0,TL.default)(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=Yu.createElement(AE,{steps:f,percent:f?m[1]:m,strokeWidth:h,trailWidth:h,strokeColor:f?b[1]:b,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:d}),C=p<=20,R=Yu.createElement("div",{className:S,style:v},w,!C&&l);return C?Yu.createElement(ka,{title:l},R):R},NL=Rq;var Qu=E($());var DL=E(Ne());var yp="--progress-line-stroke-color",kE="--progress-percent",IL=e=>{let t=e?"100%":"-100%";return new yt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Oq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},sr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${yp})`]},height:"100%",width:`calc(1 / var(${kE}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${oe(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:IL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:IL(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},_q=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Pq=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Tq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Nq=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),$L=Gt("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=ut(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Oq(r),_q(r),Pq(r),Tq(r)]},Nq);var Iq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},$q=e=>{let t=[];return Object.keys(e).forEach(r=>{let n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},Dq=(e,t)=>{let{from:r=Ea.blue,to:n=Ea.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Iq(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=$q(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[yp]:l}}let a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[yp]:a}},Aq=e=>{let{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:p,type:g}=u,h=a&&typeof a!="string"?Dq(a,r):{[yp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=o??[-1,i||(o==="small"?6:8)],[m,d]=Ks(y,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:v},b=Object.assign(Object.assign({width:`${na(n)}%`,height:d,borderRadius:v},h),{[kE]:na(n)/100}),S=Xu(e),w={width:`${na(S)}%`,height:d,borderRadius:v,backgroundColor:f?.strokeColor},C={width:m<0?"100%":m},R=Qu.createElement("div",{className:`${t}-inner`,style:x},Qu.createElement("div",{className:(0,DL.default)(`${t}-bg`,`${t}-bg-${g}`),style:b},g==="inner"&&l),S!==void 0&&Qu.createElement("div",{className:`${t}-success-bg`,style:w})),P=g==="outer"&&p==="start",O=g==="outer"&&p==="end";return g==="outer"&&p==="center"?Qu.createElement("div",{className:`${t}-layout-bottom`},R,l):Qu.createElement("div",{className:`${t}-outer`,style:C},P&&l,R,O&&l)},AL=Aq;var ME=E($()),kL=E(Ne());var kq=e=>{let{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),p=t??[t==="small"?2:14,i],[g,h]=Ks(p,"step",{steps:r,strokeWidth:i}),v=g/r,y=Array.from({length:r});for(let m=0;m<r;m++){let d=Array.isArray(a)?a[m]:a;y[m]=ME.createElement("div",{key:m,className:(0,kL.default)(`${l}-steps-item`,{[`${l}-steps-item-active`]:m<=u-1}),style:{backgroundColor:m<=u-1?d:s,width:v,height:h}})}return ME.createElement("div",{className:`${l}-steps-outer`},y,c)},ML=kq;var Mq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};var Fq=["normal","exception","active","success"],Lq=Jr.forwardRef((e,t)=>{let{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:p,style:g,percentPosition:h={}}=e,v=Mq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:m="outer"}=h,d=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,b=Jr.useMemo(()=>{if(d){let U=typeof d=="string"?d:Object.values(d)[0];return new gt(U).isLight()}return!1},[a]),S=Jr.useMemo(()=>{var U,z;let W=Xu(e);return parseInt(W!==void 0?(U=W??0)===null||U===void 0?void 0:U.toString():(z=s??0)===null||z===void 0?void 0:z.toString(),10)},[s,e.success,e.successPercent]),w=Jr.useMemo(()=>!Fq.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:C,direction:R,progress:P}=Jr.useContext(rt),O=C("progress",r),[A,F,M]=$L(O),H=u==="line",L=H&&!i,N=Jr.useMemo(()=>{if(!c)return null;let U=Xu(e),z,W=p||(j=>`${j}%`),q=H&&b&&m==="inner";return m==="inner"||p||w!=="exception"&&w!=="success"?z=W(na(s),na(U)):w==="exception"?z=H?Jr.createElement(mu,null):Jr.createElement(gv,null):w==="success"&&(z=H?Jr.createElement(c$,null):Jr.createElement(Oy,null)),Jr.createElement("span",{className:(0,FE.default)(`${O}-text`,{[`${O}-text-bright`]:q,[`${O}-text-${y}`]:L,[`${O}-text-${m}`]:L}),title:typeof z=="string"?z:void 0},z)},[c,s,S,w,u,O,p]),I;u==="line"?I=i?Jr.createElement(ML,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof i=="object"?i.count:i}),N):Jr.createElement(AL,Object.assign({},e,{strokeColor:d,prefixCls:O,direction:R,percentPosition:{align:y,type:m}}),N):(u==="circle"||u==="dashboard")&&(I=Jr.createElement(NL,Object.assign({},e,{strokeColor:d,prefixCls:O,progressStatus:w}),N));let D=(0,FE.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&Ks(l,"circle")[0]<=20,[`${O}-line`]:L,[`${O}-line-align-${y}`]:L,[`${O}-line-position-${m}`]:L,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:R==="rtl"},P?.className,n,o,F,M);return A(Jr.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P?.style),g),className:D,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},qr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),I))}),FL=Lq;var LL=FL;var h0=E($());var zq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},zL=zq;var Wq=function(t,r){return h0.createElement(zt,fe({},t,{ref:r,icon:zL}))},Bq=h0.forwardRef(Wq),WL=Bq;var v0=E($());var jq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},BL=jq;var Vq=function(t,r){return v0.createElement(zt,fe({},t,{ref:r,icon:BL}))},Hq=v0.forwardRef(Vq),jL=Hq;var y0=E($());var Uq={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},VL=Uq;var qq=function(t,r){return y0.createElement(zt,fe({},t,{ref:r,icon:VL}))},Gq=y0.forwardRef(qq),HL=Gq;var x0=E($());var Kq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},UL=Kq;var Xq=function(t,r){return x0.createElement(zt,fe({},t,{ref:r,icon:UL}))},Yq=x0.forwardRef(Xq),qL=Yq;var b0=E($());var Qq={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},GL=Qq;var Jq=function(t,r){return b0.createElement(zt,fe({},t,{ref:r,icon:GL}))},Zq=b0.forwardRef(Jq),KL=Zq;var eG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},XL=eG;var O0=E($());var br=E($()),jE=E(Vi()),E0=E(Ne());var C0=E($());var JL=E(Ne());var bp=E($());var S0=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(Vt(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function tG(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function YL(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function LE(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(o,"[]"),a)});return}r.append(o,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(tG(e,t),YL(t)):e.onSuccess(YL(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(o){n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort:function(){t.abort()}}}var rG=function(){var e=ln(kt().mark(function t(r,n){var o,i,a,s,l,c,u,f;return kt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:c=function(){return c=ln(kt().mark(function v(y){return kt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",new Promise(function(x){y.file(function(b){n(b)?(y.fullPath&&!b.webkitRelativePath&&(Object.defineProperties(b,{webkitRelativePath:{writable:!0}}),b.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(b,{webkitRelativePath:{writable:!1}})),x(b)):x(null)})}));case 1:case"end":return d.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=ln(kt().mark(function v(y){var m,d,x,b,S;return kt().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:m=y.createReader(),d=[];case 2:return C.next=5,new Promise(function(R){m.readEntries(R,function(){return R([])})});case 5:if(x=C.sent,b=x.length,b){C.next=9;break}return C.abrupt("break",12);case 9:for(S=0;S<b;S++)d.push(x[S]);C.next=2;break;case 12:return C.abrupt("return",d);case 13:case"end":return C.stop()}},v)})),s.apply(this,arguments)},a=function(v){return s.apply(this,arguments)},o=[],i=[],r.forEach(function(h){return i.push(h.webkitGetAsEntry())}),u=function(){var h=ln(kt().mark(function v(y,m){var d,x;return kt().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(y){S.next=2;break}return S.abrupt("return");case 2:if(y.path=m||"",!y.isFile){S.next=10;break}return S.next=6,l(y);case 6:d=S.sent,d&&o.push(d),S.next=15;break;case 10:if(!y.isDirectory){S.next=15;break}return S.next=13,a(y);case 13:x=S.sent,i.push.apply(i,te(x));case 15:case"end":return S.stop()}},v)}));return function(y,m){return h.apply(this,arguments)}}(),f=0;case 9:if(!(f<i.length)){g.next=15;break}return g.next=12,u(i[f]);case 12:f++,g.next=9;break;case 15:return g.abrupt("return",o);case 16:case"end":return g.stop()}},t)}));return function(r,n){return e.apply(this,arguments)}}(),QL=rG;var nG=+new Date,oG=0;function xp(){return"rc-upload-".concat(nG,"-").concat(++oG)}var iG=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],aG=function(e){Ir(r,e);var t=$r(r);function r(){var n;it(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),_(Ze(n),"state",{uid:xp()}),_(Ze(n),"reqs",{}),_(Ze(n),"fileInput",void 0),_(Ze(n),"_isMounted",void 0),_(Ze(n),"onChange",function(s){var l=n.props,c=l.accept,u=l.directory,f=s.target.files,p=te(f).filter(function(g){return!u||S0(g,c)});n.uploadFiles(p),n.reset()}),_(Ze(n),"onClick",function(s){var l=n.fileInput;if(l){var c=s.target,u=n.props.onClick;if(c&&c.tagName==="BUTTON"){var f=l.parentNode;f.focus(),c.blur()}l.click(),u&&u(s)}}),_(Ze(n),"onKeyDown",function(s){s.key==="Enter"&&n.onClick(s)}),_(Ze(n),"onFileDropOrPaste",function(){var s=ln(kt().mark(function l(c){var u,f,p,g,h,v,y,m,d;return kt().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(c.preventDefault(),c.type!=="dragover"){b.next=3;break}return b.abrupt("return");case 3:if(u=n.props,f=u.multiple,p=u.accept,g=u.directory,h=[],v=[],c.type==="drop"?(y=c.dataTransfer,h=te(y.items||[]),v=te(y.files||[])):c.type==="paste"&&(m=c.clipboardData,h=te(m.items||[]),v=te(m.files||[])),!g){b.next=14;break}return b.next=10,QL(Array.prototype.slice.call(h),function(S){return S0(S,n.props.accept)});case 10:v=b.sent,n.uploadFiles(v),b.next=17;break;case 14:d=te(v).filter(function(S){return S0(S,p)}),f===!1&&(d=v.slice(0,1)),n.uploadFiles(d);case 17:case"end":return b.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ze(n),"onPrePaste",function(s){var l=n.props.pastable;l&&n.onFileDropOrPaste(s)}),_(Ze(n),"uploadFiles",function(s){var l=te(s),c=l.map(function(u){return u.uid=xp(),n.processFile(u,l)});Promise.all(c).then(function(u){var f=n.props.onBatchStart;f?.(u.map(function(p){var g=p.origin,h=p.parsedFile;return{file:g,parsedFile:h}})),u.filter(function(p){return p.parsedFile!==null}).forEach(function(p){n.post(p)})})}),_(Ze(n),"processFile",function(){var s=ln(kt().mark(function l(c,u){var f,p,g,h,v,y,m,d,x;return kt().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=n.props.beforeUpload,p=c,!f){S.next=14;break}return S.prev=3,S.next=6,f(c,u);case 6:p=S.sent,S.next=12;break;case 9:S.prev=9,S.t0=S.catch(3),p=!1;case 12:if(p!==!1){S.next=14;break}return S.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(g=n.props.action,typeof g!="function"){S.next=21;break}return S.next=18,g(c);case 18:h=S.sent,S.next=22;break;case 21:h=g;case 22:if(v=n.props.data,typeof v!="function"){S.next=29;break}return S.next=26,v(c);case 26:y=S.sent,S.next=30;break;case 29:y=v;case 30:return m=(ue(p)==="object"||typeof p=="string")&&p?p:c,m instanceof File?d=m:d=new File([m],c.name,{type:c.type}),x=d,x.uid=c.uid,S.abrupt("return",{origin:c,data:y,parsedFile:x,action:h});case 35:case"end":return S.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),_(Ze(n),"saveFileInput",function(s){n.fileInput=s}),n}return at(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onPrePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onPrePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onPrePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onPrePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,p=u.customRequest,g=u.name,h=u.headers,v=u.withCredentials,y=u.method,m=s.uid,d=p||LE,x={action:l,filename:g,data:a,file:c,headers:h,withCredentials:v,method:y||"post",onProgress:function(S){var w=i.props.onProgress;w?.(S,c)},onSuccess:function(S,w){var C=i.props.onSuccess;C?.(S,c,w),delete i.reqs[m]},onError:function(S,w){var C=i.props.onError;C?.(S,w,c),delete i.reqs[m]}};f(s),this.reqs[m]=d(x)}}},{key:"reset",value:function(){this.setState({uid:xp()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,f=o.id,p=o.name,g=o.style,h=o.styles,v=h===void 0?{}:h,y=o.multiple,m=o.accept,d=o.capture,x=o.children,b=o.directory,S=o.openFileDialogOnClick,w=o.onMouseEnter,C=o.onMouseLeave,R=o.hasControlInside,P=Ve(o,iG),O=(0,JL.default)(_(_(_({},a,!0),"".concat(a,"-disabled"),u),s,s)),A=b?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},F=u?{}:{onClick:S?this.onClick:function(){},onKeyDown:S?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:C,onDrop:this.onFileDropOrPaste,onDragOver:this.onFileDropOrPaste,tabIndex:R?void 0:"0"};return bp.default.createElement(i,fe({},F,{className:O,role:R?void 0:"button",style:g}),bp.default.createElement("input",fe({},qo(P,{aria:!0,data:!0}),{id:f,name:p,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(H){return H.stopPropagation()},key:this.state.uid,style:T({display:"none"},v.input),className:c.input,accept:m},A,{multiple:y,onChange:this.onChange},d!=null?{capture:d}:{})),x)}}]),r}(bp.Component),ZL=aG;function zE(){}var e3=function(e){Ir(r,e);var t=$r(r);function r(){var n;it(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),_(Ze(n),"uploader",void 0),_(Ze(n),"saveUploader",function(s){n.uploader=s}),n}return at(r,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return C0.default.createElement(ZL,fe({},this.props,{ref:this.saveUploader}))}}]),r}(C0.Component);_(e3,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:zE,onError:zE,onSuccess:zE,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var t3=e3;var WE=t3;var sG=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${oe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${oe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},r3=sG;var lG=e=>{let{componentCls:t,iconCls:r,fontSize:n,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},du()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Oa),{padding:`0 ${oe(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${l}:focus-visible,
&.picture ${l}
`]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},n3=lG;var cG=e=>{let{componentCls:t}=e,r=new yt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new yt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:Tw(e)},r,n]},o3=cG;var i3=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
${a}${a}-picture,
${a}${a}-picture-card,
${a}${a}-picture-circle
`]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Oa),{width:n,height:n,lineHeight:oe(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${oe(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${Ts[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ts.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},a3=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},du()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${oe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${r}-eye,
${r}-download,
${r}-delete
`]:{zIndex:10,width:n,margin:`0 ${oe(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var uG=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},s3=uG;var fG=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},sr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},dG=e=>({actionsColor:e.colorIcon}),l3=Gt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=ut(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[fG(a),r3(a),i3(a),a3(a),n3(a),o3(a),s3(a),Pw(a)]},dG);var qt=E($());var BE=E(Ne());function Sp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Cp(e,t){let r=te(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function w0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function c3(e,t){let r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}var pG=(e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},u3=e=>e.indexOf("image/")===0,f3=e=>{if(e.type&&!e.thumbUrl)return u3(e.type);let t=e.thumbUrl||e.url||"",r=pG(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Xs=200;function d3(e){return new Promise(t=>{if(!e.type||!u3(e.type)){t("");return}let r=document.createElement("canvas");r.width=Xs,r.height=Xs,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Xs}px; height: ${Xs}px; z-index: 9999; display: none;`,document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:i,height:a}=o,s=Xs,l=Xs,c=0,u=0;i>a?(l=a*(Xs/i),u=-(l-s)/2):(s=i*(Xs/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);let f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var Bt=E($());var Ys=E(Ne());var mG=Bt.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:h,previewIcon:v,removeIcon:y,downloadIcon:m,extra:d,onPreview:x,onDownload:b,onClose:S},w)=>{var C,R;let{status:P}=i,[O,A]=Bt.useState(P);Bt.useEffect(()=>{P!=="removed"&&A(P)},[P]);let[F,M]=Bt.useState(!1);Bt.useEffect(()=>{let K=setTimeout(()=>{M(!0)},300);return()=>{clearTimeout(K)}},[]);let H=l(i),L=Bt.createElement("div",{className:`${e}-icon`},H);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(O==="uploading"||!i.thumbUrl&&!i.url){let K=(0,Ys.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!=="uploading"});L=Bt.createElement("div",{className:K},H)}else{let K=f?.(i)?Bt.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):H,Q=(0,Ys.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});L=Bt.createElement("a",{className:Q,onClick:re=>x(i,re),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},K)}let N=(0,Ys.default)(`${e}-list-item`,`${e}-list-item-${O}`),I=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,D=(typeof g=="function"?g(i):g)?c((typeof y=="function"?y(i):y)||Bt.createElement(WL,null),()=>S(i),e,n.removeFile,!0):null,U=(typeof h=="function"?h(i):h)&&O==="done"?c((typeof m=="function"?m(i):m)||Bt.createElement(jL,null),()=>b(i),e,n.downloadFile):null,z=o!=="picture-card"&&o!=="picture-circle"&&Bt.createElement("span",{key:"download-delete",className:(0,Ys.default)(`${e}-list-item-actions`,{picture:o==="picture"})},U,D),W=typeof d=="function"?d(i):d,q=W&&Bt.createElement("span",{className:`${e}-list-item-extra`},W),j=(0,Ys.default)(`${e}-list-item-name`),k=i.url?Bt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:j,title:i.name},I,{href:i.url,onClick:K=>x(i,K)}),i.name,q):Bt.createElement("span",{key:"view",className:j,onClick:K=>x(i,K),title:i.name},i.name,q),V=(typeof p=="function"?p(i):p)&&(i.url||i.thumbUrl)?Bt.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:K=>x(i,K),title:n.previewFile},typeof v=="function"?v(i):v||Bt.createElement(u0,null)):null,G=(o==="picture-card"||o==="picture-circle")&&O!=="uploading"&&Bt.createElement("span",{className:`${e}-list-item-actions`},V,O==="done"&&U,D),{getPrefixCls:J}=Bt.useContext(rt),Y=J(),X=Bt.createElement("div",{className:N},L,k,z,G,F&&Bt.createElement(Uo,{motionName:`${Y}-fade`,visible:O==="uploading",motionDeadline:2e3},({className:K})=>{let Q="percent"in i?Bt.createElement(LL,Object.assign({},s,{type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]})):null;return Bt.createElement("div",{className:(0,Ys.default)(`${e}-list-item-progress`,K)},Q)})),ae=i.response&&typeof i.response=="string"?i.response:((C=i.error)===null||C===void 0?void 0:C.statusText)||((R=i.error)===null||R===void 0?void 0:R.message)||n.uploadError,Z=O==="error"?Bt.createElement(ka,{title:ae,getPopupContainer:K=>K.parentNode},X):X;return Bt.createElement("div",{className:(0,Ys.default)(`${e}-list-item-container`,t),style:r,ref:w},u?u(Z,i,a,{download:b.bind(null,i),preview:x.bind(null,i),remove:S.bind(null,i)}):Z)}),p3=mG;var gG=(e,t)=>{let{listType:r="text",previewFile:n=d3,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=f3,prefixCls:u,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:m,extra:d,progress:x={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:w,disabled:C}=e,R=q1(),[P,O]=qt.useState(!1),A=["picture-card","picture-circle"].includes(r);qt.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(j=>{!(j.originFileObj instanceof File||j.originFileObj instanceof Blob)||j.thumbUrl!==void 0||(j.thumbUrl="",n?.(j.originFileObj).then(k=>{j.thumbUrl=k||"",R()}))})},[r,f,n]),qt.useEffect(()=>{O(!0)},[]);let F=(j,k)=>{if(o)return k?.preventDefault(),o(j)},M=j=>{typeof i=="function"?i(j):j.url&&window.open(j.url)},H=j=>{a?.(j)},L=j=>{if(l)return l(j,r);let k=j.status==="uploading";if(r.startsWith("picture")){let V=r==="picture"?qt.createElement(Al,null):s.uploading,G=c?.(j)?qt.createElement(KL,null):qt.createElement(HL,null);return k?V:G}return k?qt.createElement(Al,null):qt.createElement(qL,null)},N=(j,k,V,G,J)=>{let Y={type:"text",size:"small",title:G,onClick:X=>{var ae,Z;k(),qt.isValidElement(j)&&((Z=(ae=j.props).onClick)===null||Z===void 0||Z.call(ae,X))},className:`${V}-list-item-action`,disabled:J?C:!1};return qt.isValidElement(j)?qt.createElement(Ld,Object.assign({},Y,{icon:Go(j,Object.assign(Object.assign({},j.props),{onClick:()=>{}}))})):qt.createElement(Ld,Object.assign({},Y),qt.createElement("span",null,j))};qt.useImperativeHandle(t,()=>({handlePreview:F,handleDownload:M}));let{getPrefixCls:I}=qt.useContext(rt),D=I("upload",u),U=I(),z=(0,BE.default)(`${D}-list`,`${D}-list-${r}`),W=qt.useMemo(()=>qr(E$(U),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[U]),q=Object.assign(Object.assign({},A?{}:W),{motionDeadline:2e3,motionName:`${D}-${A?"animate-inline":"animate"}`,keys:te(f.map(j=>({key:j.uid,file:j}))),motionAppear:P});return qt.createElement("div",{className:z},qt.createElement(sw,Object.assign({},q,{component:!1}),({key:j,file:k,className:V,style:G})=>qt.createElement(p3,{key:j,locale:s,prefixCls:D,className:V,style:G,file:k,items:f,progress:x,listType:r,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:m,extra:d,iconRender:L,actionIconRender:N,itemRender:w,onPreview:F,onDownload:M,onClose:H})),b&&qt.createElement(Uo,Object.assign({},q,{visible:S,forceRender:!0}),({className:j,style:k})=>Go(b,V=>({className:(0,BE.default)(V.className,j),style:Object.assign(Object.assign(Object.assign({},k),{pointerEvents:j?"none":void 0}),V.style)}))))},hG=qt.forwardRef(gG),m3=hG;var vG=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},Ju=`__LIST_IGNORE_${Date.now()}__`,yG=(e,t)=>{let{fileList:r,defaultFileList:n,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:p,locale:g,iconRender:h,isImageUrl:v,progress:y,prefixCls:m,className:d,type:x="select",children:b,style:S,itemRender:w,maxCount:C,data:R={},multiple:P=!1,hasControlInside:O=!0,action:A="",accept:F="",supportServerRender:M=!0,rootClassName:H}=e,L=br.useContext(Ur),N=p??L,[I,D]=ar(n||[],{value:r,postState:se=>se??[]}),[U,z]=br.useState("drop"),W=br.useRef(null),q=br.useRef(null);br.useMemo(()=>{let se=Date.now();(r||[]).forEach((xe,_e)=>{!xe.uid&&!Object.isFrozen(xe)&&(xe.uid=`__AUTO__${se}_${_e}__`)})},[r]);let j=(se,xe,_e)=>{let he=te(xe),Je=!1;C===1?he=he.slice(-1):C&&(Je=he.length>C,he=he.slice(0,C)),(0,jE.flushSync)(()=>{D(he)});let lt={file:se,fileList:he};_e&&(lt.event=_e),(!Je||se.status==="removed"||he.some(Et=>Et.uid===se.uid))&&(0,jE.flushSync)(()=>{c?.(lt)})},k=(se,xe)=>vG(void 0,void 0,void 0,function*(){let{beforeUpload:_e,transformFile:he}=e,Je=se;if(_e){let lt=yield _e(se,xe);if(lt===!1)return!1;if(delete se[Ju],lt===Ju)return Object.defineProperty(se,Ju,{value:!0,configurable:!0}),!1;typeof lt=="object"&&lt&&(Je=lt)}return he&&(Je=yield he(Je)),Je}),V=se=>{let xe=se.filter(Je=>!Je.file[Ju]);if(!xe.length)return;let _e=xe.map(Je=>Sp(Je.file)),he=te(I);_e.forEach(Je=>{he=Cp(Je,he)}),_e.forEach((Je,lt)=>{let Et=Je;if(xe[lt].parsedFile)Je.status="uploading";else{let{originFileObj:Pt}=Je,pt;try{pt=new File([Pt],Pt.name,{type:Pt.type})}catch{pt=new Blob([Pt],{type:Pt.type}),pt.name=Pt.name,pt.lastModifiedDate=new Date,pt.lastModified=new Date().getTime()}pt.uid=Je.uid,Et=pt}j(Et,he)})},G=(se,xe,_e)=>{try{typeof se=="string"&&(se=JSON.parse(se))}catch{}if(!w0(xe,I))return;let he=Sp(xe);he.status="done",he.percent=100,he.response=se,he.xhr=_e;let Je=Cp(he,I);j(he,Je)},J=(se,xe)=>{if(!w0(xe,I))return;let _e=Sp(xe);_e.status="uploading",_e.percent=se.percent;let he=Cp(_e,I);j(_e,he,se)},Y=(se,xe,_e)=>{if(!w0(_e,I))return;let he=Sp(_e);he.error=se,he.response=xe,he.status="error";let Je=Cp(he,I);j(he,Je)},X=se=>{let xe;Promise.resolve(typeof o=="function"?o(se):o).then(_e=>{var he;if(_e===!1)return;let Je=c3(se,I);Je&&(xe=Object.assign(Object.assign({},se),{status:"removed"}),I?.forEach(lt=>{let Et=xe.uid!==void 0?"uid":"name";lt[Et]===xe[Et]&&!Object.isFrozen(lt)&&(lt.status="removed")}),(he=W.current)===null||he===void 0||he.abort(xe),j(xe,Je))})},ae=se=>{z(se.type),se.type==="drop"&&u?.(se)};br.useImperativeHandle(t,()=>({onBatchStart:V,onSuccess:G,onProgress:J,onError:Y,fileList:I,upload:W.current,nativeElement:q.current}));let{getPrefixCls:Z,direction:K,upload:Q}=br.useContext(rt),re=Z("upload",m),ee=Object.assign(Object.assign({onBatchStart:V,onError:Y,onProgress:J,onSuccess:G},e),{data:R,multiple:P,action:A,accept:F,supportServerRender:M,prefixCls:re,disabled:N,beforeUpload:k,onChange:void 0,hasControlInside:O});delete ee.className,delete ee.style,(!b||N)&&delete ee.id;let ne=`${re}-wrapper`,[de,le,pe]=l3(re,ne),[Oe]=Ca("Upload",Ei.Upload),{showRemoveIcon:Ce,showPreviewIcon:De,showDownloadIcon:ce,removeIcon:ie,previewIcon:Re,downloadIcon:Le,extra:Ge}=typeof i=="boolean"?{}:i,Me=typeof Ce>"u"?!N:Ce,Ie=(se,xe)=>i?br.createElement(m3,{prefixCls:re,listType:a,items:I,previewFile:f,onPreview:s,onDownload:l,onRemove:X,showRemoveIcon:Me,showPreviewIcon:De,showDownloadIcon:ce,removeIcon:ie,previewIcon:Re,downloadIcon:Le,iconRender:h,extra:Ge,locale:Object.assign(Object.assign({},Oe),g),isImageUrl:v,progress:y,appendAction:se,appendActionVisible:xe,itemRender:w,disabled:N}):se,je=(0,E0.default)(ne,d,H,le,pe,Q?.className,{[`${re}-rtl`]:K==="rtl",[`${re}-picture-card-wrapper`]:a==="picture-card",[`${re}-picture-circle-wrapper`]:a==="picture-circle"}),We=Object.assign(Object.assign({},Q?.style),S);if(x==="drag"){let se=(0,E0.default)(le,re,`${re}-drag`,{[`${re}-drag-uploading`]:I.some(xe=>xe.status==="uploading"),[`${re}-drag-hover`]:U==="dragover",[`${re}-disabled`]:N,[`${re}-rtl`]:K==="rtl"});return de(br.createElement("span",{className:je,ref:q},br.createElement("div",{className:se,style:We,onDrop:ae,onDragOver:ae,onDragLeave:ae},br.createElement(WE,Object.assign({},ee,{ref:W,className:`${re}-btn`}),br.createElement("div",{className:`${re}-drag-container`},b))),Ie()))}let He=(0,E0.default)(re,`${re}-select`,{[`${re}-disabled`]:N,[`${re}-hidden`]:!b}),ye=br.createElement("div",{className:He,style:We},br.createElement(WE,Object.assign({},ee,{ref:W})));return de(a==="picture-card"||a==="picture-circle"?br.createElement("span",{className:je,ref:q},Ie(ye,!!b)):br.createElement("span",{className:je,ref:q},ye,Ie()))},xG=br.forwardRef(yG),R0=xG;var bG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},SG=O0.forwardRef((e,t)=>{var{style:r,height:n,hasControlInside:o=!1}=e,i=bG(e,["style","height","hasControlInside"]);return O0.createElement(R0,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),g3=SG;var VE=R0;VE.Dragger=g3;VE.LIST_IGNORE=Ju;var HE=VE;var dn=E(Or(),1),PG=()=>{let[e,t]=(0,x3.useState)(Xe.data.useSliderForNumberWidget),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()};return(0,dn.jsxs)("div",{className:"settings-container",children:[(0,dn.jsx)("h2",{children:me("SDPPP Settings/Misc")}),(0,dn.jsxs)("div",{className:"settings-section",children:[(0,dn.jsx)("div",{className:"settings-label",children:(0,dn.jsx)("label",{children:me("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,dn.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,dn.jsxs)("div",{className:"settings-section settings-row",children:[(0,dn.jsx)("div",{className:"settings-label",children:(0,dn.jsx)("label",{children:me("Photoshop plugin")})}),(0,dn.jsx)("div",{className:"settings-control",children:(0,dn.jsx)("button",{onClick:r,className:"download-button",children:me("Download")})})]}),(0,dn.jsxs)("div",{className:"settings-section settings-row",children:[(0,dn.jsx)("div",{className:"settings-label",children:(0,dn.jsx)("label",{htmlFor:"maxImageSize",children:me("use slider for number widget:")})}),(0,dn.jsx)("div",{className:"settings-control",children:(0,dn.jsx)(ap,{id:"useSliderForNumberWidget",checked:e,onChange:n=>{t(n.target.checked),Xe.setUseSliderForNumberWidget(n.target.checked),nn.storeSetting("sdppp.useSliderForNumberWidget",n.target.checked)}})})]})]})},b3=PG;var O4=E($(),1);var Yl=E($(),1);var S3=E($(),1);function P0(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var Dn=E(Or(),1);function qE({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:n,onWidgetChange:o,onTitleRender:i}){let[a,s]=(0,Yl.useState)(0),l=(0,Yl.useMemo)(()=>e.nodeIndexes.map(p=>{let g=e.nodes[p],h=(d,x,b)=>d.keepRender?x.outputType==="error"?(d.result.push((0,Dn.jsx)("span",{className:"list-error-label",children:t[g.id][b]})),d):(n?.(d,g,x,b),d):d,v=Object.values(e.groups).find(d=>d.nodeIDs.includes(g.id)),y=v?.color||"rgba(127, 127, 127, .4)";if(a&&v?.id!==a)return null;let m=g.uiWeightSum<=8&&g.widgets.length==1&&(g.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,Dn.jsxs)("div",{className:"workflow-edit-field",children:[(0,Dn.jsx)("div",{className:"workflow-edit-field-title",title:g.title,style:{...P0(m?4:12),borderColor:y},children:i?i(g.title,g):(0,Dn.jsx)("span",{children:g.title})}),g.widgets.reduce(h,{keepRender:!0,result:[]}).result.map((d,x)=>(0,Dn.jsx)(UE,{children:d},x)),r[g.id]?(0,Dn.jsx)("span",{className:"list-error-label",children:r[g.id]}):""]},g.id)}).filter(Boolean),[e,t,r,n,o,i,a]),[c,u]=(0,Yl.useMemo)(()=>[Object.keys(r).filter(p=>e.nodes[parseInt(p)]),Object.keys(r).filter(p=>!e.nodes[parseInt(p)])],[r,e]),f=null;return u.length>0?f=(0,Dn.jsx)("span",{className:"list-error-label",children:r[+u[0]]}):c.length>0&&(f=(0,Dn.jsx)("span",{className:"list-error-label",children:r[+c[0]]})),(0,Dn.jsxs)(Dn.Fragment,{children:[f,Object.keys(e.nodes).length?"":(0,Dn.jsx)("span",{className:"list-error-label",children:me("no suitable node to control in this workflow")}),(0,Dn.jsx)("div",{className:"workflow-edit-content",children:l})]})}var UE=class extends Yl.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,Dn.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var Ql=E($(),1);var C3=E($(),1);function Qs(e){return(0,C3.useMemo)(()=>P0(e),[e])}var Js=E(Or(),1),w3=({inputMin:e,inputMax:t,inputStep:r,name:n,value:o=0,uiWeight:i=1,extraOptions:a,onValueChange:s})=>{let l=Qs(i||12),[c,u]=(0,Ql.useState)(+o.toFixed(3));(0,Ql.useEffect)(()=>{u(+o.toFixed(3))},[o]);let f=(0,Ql.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),p=(0,Ql.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,Js.jsxs)(Wa,{style:{width:"100%",...l},align:"center",children:[(0,Js.jsx)(bE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:f,onChangeComplete:p}),(0,Js.jsx)(e0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:f,onBlur:p,controls:!1})]}):(0,Js.jsxs)(Wa,{style:{width:"100%",...l},align:"center",children:[n&&(0,Js.jsx)("span",{style:{flex:1},children:n}),(0,Js.jsx)(e0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:f,onBlur:p,controls:!1})]})};var wp=E(Or(),1),E3=({onSelectUpdate:e,options:t,value:r,name:n,uiWeight:o})=>{let i=s=>{let l=t.indexOf(s);e(s,l)},a=Qs(o||12);return(0,wp.jsxs)(Wa,{style:{width:"100%",...a},align:"center",children:[n&&(0,wp.jsx)("span",{style:{flex:1},children:n}),(0,wp.jsx)(op,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:me("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var O3=E(Or(),1),R3=({value:e,name:t,onValueChange:r,uiWeight:n})=>{let o=a=>{r(a.target.checked)},i=Qs(n||12);return(0,O3.jsx)(ap,{checked:!!e,onChange:o,style:{...i},children:t||""})};var GE=E(Or(),1),{TextArea:TG}=gp,_3=({value:e="",onValueChange:t,uiWeight:r})=>{let n=Qs(r||12);return(0,GE.jsx)("div",{className:"widget-container",style:n,children:(0,GE.jsx)(TG,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var Ep=E($(),1);var T0=E(Or(),1);function P3({title:e,onTitleChange:t}){let[r,n]=(0,Ep.useState)(!1),[o,i]=(0,Ep.useState)(e);(0,Ep.useEffect)(()=>{i(e)},[e]);let a=()=>{n(!0)};return r?(0,T0.jsx)(gp,{autoFocus:!0,value:o,onChange:u=>{i(u.target.value)},onBlur:()=>{n(!1),o!==e&&t&&t(o)},onKeyDown:u=>{u.key==="Enter"?(n(!1),o!==e&&t&&t(o)):u.key==="Escape"&&(n(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,T0.jsx)(ka,{title:me("click to edit"),children:(0,T0.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:o})})}var T3=E($()),NG=(0,T3.createContext)({}),N0=NG;var ec=E($()),w4=E(Ne());var N3={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};var pn=Math.round;function KE(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var I3=(e,t,r)=>r===0?e:e/100;function Rp(e,t){let r=t||255;return e>r?r:e<0?0:e}var Jl=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var n=i;let o=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(i("rgb"))this.fromRgbString(o);else if(i("hsl"))this.fromHslString(o);else if(i("hsv")||i("hsb"))this.fromHsvString(o);else{let a=N3[o.toLowerCase()];a&&this.fromHexString(parseInt(a,36).toString(16).padStart(6,"0"))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Rp(t.r),this.g=Rp(t.g),this.b=Rp(t.b),this.a=typeof t.a=="number"?Rp(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=pn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:pn(i("r")),g:pn(i("g")),b:pn(i("b")),a:pn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>pn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=pn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=pn(this.getSaturation()*100),n=pn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){let o=this.clone();return o[t]=Rp(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let p=pn(n*255);this.r=p,this.g=p,this.b=p}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=n-c/2;this.r=pn((i+f)*255),this.g=pn((a+f)*255),this.b=pn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=pn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=pn(n*(1-r)*255),u=pn(n*(1-r*l)*255),f=pn(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=KE(t,I3);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=KE(t,I3);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=KE(t,(n,o)=>o.includes("%")?pn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var I0=2,$3=.16,IG=.05,$G=.05,DG=.15,M3=5,F3=4,AG=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function D3(e,t,r){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-I0*t:Math.round(e.h)+I0*t:n=r?Math.round(e.h)+I0*t:Math.round(e.h)-I0*t,n<0?n+=360:n>=360&&(n-=360),n}function A3(e,t,r){if(e.h===0&&e.s===0)return e.s;let n;return r?n=e.s-$3*t:t===F3?n=e.s+$3:n=e.s+IG*t,n>1&&(n=1),r&&t===M3&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function k3(e,t,r){let n;return r?n=e.v+$G*t:n=e.v-DG*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function $0(e,t={}){let r=[],n=new Jl(e),o=n.toHsv();for(let i=M3;i>0;i-=1){let a=new Jl({h:D3(o,i,!0),s:A3(o,i,!0),v:k3(o,i,!0)});r.push(a)}r.push(n);for(let i=1;i<=F3;i+=1){let a=new Jl({h:D3(o,i),s:A3(o,i),v:k3(o,i)});r.push(a)}return t.theme==="dark"?AG.map(({index:i,amount:a})=>new Jl(t.backgroundColor||"#141414").mix(r[i],a).toHexString()):r.map(i=>i.toHexString())}var L3=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];L3.primary=L3[5];var z3=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];z3.primary=z3[5];var W3=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];W3.primary=W3[5];var B3=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];B3.primary=B3[5];var j3=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];j3.primary=j3[5];var V3=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];V3.primary=V3[5];var H3=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];H3.primary=H3[5];var U3=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];U3.primary=U3[5];var D0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];D0.primary=D0[5];var q3=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];q3.primary=q3[5];var G3=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];G3.primary=G3[5];var K3=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];K3.primary=K3[5];var X3=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];X3.primary=X3[5];var Y3=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Y3.primary=Y3[5];var Q3=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Q3.primary=Q3[5];var J3=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];J3.primary=J3[5];var Z3=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Z3.primary=Z3[5];var e4=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];e4.primary=e4[5];var t4=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];t4.primary=t4[5];var r4=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];r4.primary=r4[5];var n4=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];n4.primary=n4[5];var o4=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];o4.primary=o4[5];var i4=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];i4.primary=i4[5];var a4=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];a4.primary=a4[5];var s4=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];s4.primary=s4[5];var l4=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];l4.primary=l4[5];var S4=E($());function XE(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function YE(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}var c4="data-rc-order",u4="data-rc-priority",kG="rc-util-key",QE=new Map;function f4({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:kG}function JE(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function MG(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ZE(e){return Array.from((QE.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function d4(e,t={}){if(!XE())return null;let{csp:r,prepend:n,priority:o=0}=t,i=MG(n),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(c4,i),a&&o&&s.setAttribute(u4,`${o}`),r?.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;let l=JE(t),{firstChild:c}=l;if(n){if(a){let u=(t.styles||ZE(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(c4)))return!1;let p=Number(f.getAttribute(u4)||0);return o>=p});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function FG(e,t={}){let{styles:r}=t;return r||=ZE(JE(t)),r.find(n=>n.getAttribute(f4(t))===e)}function LG(e,t){let r=QE.get(e);if(!r||!YE(document,r)){let n=d4("",t),{parentNode:o}=n;QE.set(e,o),e.removeChild(n)}}function p4(e,t,r={}){let n=JE(r),o=ZE(n),i={...r,styles:o};LG(n,i);let a=FG(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;let s=d4(e,i);return s.setAttribute(f4(i),t),s}function m4(e){return e?.getRootNode?.()}function zG(e){return m4(e)instanceof ShadowRoot}function g4(e){return zG(e)?m4(e):null}var eR={},WG=[],BG=e=>{WG.push(e)};function jG(e,t){}function VG(e,t){}function HG(){eR={}}function h4(e,t,r){!t&&!eR[r]&&(e(!1,r),eR[r]=!0)}function A0(e,t){h4(jG,e,t)}function UG(e,t){h4(VG,e,t)}A0.preMessage=BG;A0.resetWarned=HG;A0.noteOnce=UG;var v4=A0;var Zl=E($());function qG(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}function x4(e,t){v4(e,`[@ant-design/icons] ${t}`)}function tR(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function y4(e={}){return Object.keys(e).reduce((t,r)=>{let n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[qG(r)]=n}return t},{})}function k0(e,t,r){return r?Zl.default.createElement(e.tag,{key:t,...y4(e.attrs),...r},(e.children||[]).map((n,o)=>k0(n,`${t}-${e.tag}-${o}`))):Zl.default.createElement(e.tag,{key:t,...y4(e.attrs)},(e.children||[]).map((n,o)=>k0(n,`${t}-${e.tag}-${o}`)))}function rR(e){return $0(e)[0]}function M0(e){return e?Array.isArray(e)?e:[e]:[]}var GG=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,b4=e=>{let{csp:t,prefixCls:r,layer:n}=(0,Zl.useContext)(N0),o=GG;r&&(o=o.replace(/anticon/g,r)),n&&(o=`@layer ${n} {
${o}
}`),(0,Zl.useEffect)(()=>{let i=e.current,a=g4(i);p4(o,"@ant-design-icons",{prepend:!n,csp:t,attachTo:a})},[])};var Op={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function KG({primaryColor:e,secondaryColor:t}){Op.primaryColor=e,Op.secondaryColor=t||rR(e),Op.calculated=!!t}function XG(){return{...Op}}var F0=e=>{let{icon:t,className:r,onClick:n,style:o,primaryColor:i,secondaryColor:a,...s}=e,l=S4.useRef(),c=Op;if(i&&(c={primaryColor:i,secondaryColor:a||rR(i)}),b4(l),x4(tR(t),`icon should be icon definiton, but got ${t}`),!tR(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),k0(u.icon,`svg-${u.name}`,{className:r,onClick:n,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};F0.displayName="IconReact";F0.getTwoToneColors=XG;F0.setTwoToneColors=KG;var _p=F0;function nR(e){let[t,r]=M0(e);return _p.setTwoToneColors({primaryColor:t,secondaryColor:r})}function C4(){let e=_p.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function oR(){return oR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oR.apply(this,arguments)}nR(D0.primary);var L0=ec.forwardRef((e,t)=>{let{className:r,icon:n,spin:o,rotate:i,tabIndex:a,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:f}=ec.useContext(N0),p=(0,w4.default)(f,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!o||n.name==="loading"},r),g=a;g===void 0&&s&&(g=-1);let h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[v,y]=M0(l);return ec.createElement("span",oR({role:"img","aria-label":n.name},c,{ref:t,tabIndex:g,onClick:s,className:p}),ec.createElement(_p,{icon:n,primaryColor:v,secondaryColor:y,style:h}))});L0.displayName="AntdIcon";L0.getTwoToneColor=C4;L0.setTwoToneColor=nR;var z0=L0;var W0=E($());function iR(){return iR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iR.apply(this,arguments)}var YG=(e,t)=>W0.createElement(z0,iR({},e,{ref:t,icon:pv})),QG=W0.forwardRef(YG),aR=QG;var B0=E($());function sR(){return sR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sR.apply(this,arguments)}var JG=(e,t)=>B0.createElement(z0,sR({},e,{ref:t,icon:XL})),ZG=B0.forwardRef(JG),lR=ZG;var Ba=E(Or(),1),E4=({value:e,onValueChange:t,options:r,nodeID:n})=>{let o=a=>{if(a.file.status==="done"){let s=a.file.response.name;t?.(s)}},i=mt.graph.nodes.find(a=>a.id===e);return(0,Ba.jsxs)(Wa,{gap:5,align:"stretch",vertical:!0,children:[(0,Ba.jsxs)(Wa,{gap:5,vertical:!0,children:[(0,Ba.jsx)(op,{style:{flex:1},value:e,onChange:a=>{t?.(a)},options:r.map(a=>({label:a.split("/").pop(),value:a}))}),(0,Ba.jsx)(HE,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:a=>({image:a}),children:(0,Ba.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Ba.jsx)(lR,{})," ",me("upload")]})})]}),e&&(0,Ba.jsx)("img",{src:`./api/view?filename=${e}&type=input&subfolder=${e.startsWith("clipspace/")?"clipspace/":""}&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain",cursor:"pointer"},onClick:a=>{mt.constructor.copyToClipspace(mt.graph.nodes.find(s=>s.id===n)),mt.constructor.clipspace_return_node=mt.graph.nodes.find(s=>s.id===n),mt.constructor.open_maskeditor()}})]})};var oa=E(Or(),1),R4=window.comfyAPI.api.api,Zu=class extends O4.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},widgetTableStructure:Xe.data.widgetTableStructure,widgetTableValue:Xe.data.widgetTableValue,widgetTableErrors:Xe.data.widgetTableErrors};eventListeners=[];unsubscribes=[];constructor(t){super(t);let r=(a,s)=>{R4.addEventListener(a,s),this.eventListeners.push({event:a,handler:s})};r("progress",({detail:a})=>{if(!a||isNaN(a.value/a.max))return;let s=Math.round(a.value/a.max*100);this.setState({comfyStatus:{...this.state.comfyStatus,progress:s}})}),r("status",a=>{a.detail?.exec_info&&this.setState({comfyStatus:{...this.state.comfyStatus,queueSize:a.detail.exec_info.queue_remaining}})}),r("execution_error",({detail:a})=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:a.exception_message,executingNodeTitle:""}})}),r("execution_start",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:"",progress:0,executingNodeTitle:""}})}),r("executing",a=>{let s=a.detail,l=app.graph.nodes.find(c=>c.id==s);l&&this.setState({comfyStatus:{...this.state.comfyStatus,executingNodeTitle:l.title}})}),r("execution_success",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("execution_interrupted",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})});let n=a=>{this.setState({widgetTableStructure:a})};Xe.subscribe("/widgetTableStructure",n);let o=a=>{this.setState({widgetTableValue:a})};Xe.subscribe("/widgetTableValue",o);let i=a=>{this.setState({widgetTableErrors:a})};Xe.subscribe("/widgetTableErrors",i),this.unsubscribes.push(()=>{Xe.unsubscribe(n),Xe.unsubscribe(o),Xe.unsubscribe(i)})}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{R4.removeEventListener(t,r)}),this.unsubscribes.forEach(t=>t())}render(){let t={widgetTableStructure:this.state.widgetTableStructure,widgetTableValue:this.state.widgetTableValue,widgetTableErrors:this.state.widgetTableErrors,onWidgetChange:async(n,o,i,a)=>{let s=app.graph.nodes.find(l=>l.id==n);s&&Zp(s,o,i)},onWidgetRender:(n,o,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return n.result.push((0,oa.jsx)(w3,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,name:i.name,value:parseFloat(this.state.widgetTableValue[o.id][a]),onValueChange:u=>{t.onWidgetChange(o.id,a,u,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}else{if(i.outputType==="combo")return n.result.push((0,oa.jsx)(E3,{uiWeight:i.uiWeight||12,options:i.options?.values||[],name:i.name,onSelectUpdate:s=>{t.onWidgetChange(o.id,a,s,o)},value:this.state.widgetTableValue[o.id][a],extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="toggle")return n.result.push((0,oa.jsx)(R3,{uiWeight:i.uiWeight||12,name:i.name,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="string"||i.outputType==="customtext"||i.outputType==="text")return n.result.push((0,oa.jsx)(_3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return n.result.push((0,oa.jsx)("p",{children:me("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return n.result.push((0,oa.jsx)(E4,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(o.id,a,s,o)},nodeID:o.id,extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}return!0},onTitleRender:(n,o)=>(0,oa.jsx)(P3,{title:n,onTitleChange:i=>{Bn.instance.setNodeTitle({node_id:o.id,title:i})}})},r=12;return(0,oa.jsx)(Na,{theme:{components:{Input:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"},Select:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)",colorBgElevated:"var(--p-form-field-background)",colorTextDescription:"var(--p-form-field-color)",controlItemBgActive:"var(--p-form-field-background)",controlItemBgHover:"var(--p-form-field-border-color)"},Checkbox:{fontSize:r,colorText:"var(--p-form-field-color)"},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)"},InputNumber:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"}}},children:(0,oa.jsx)(qE,{...t})})}};var An=E(Or(),1),_4=document.createElement("style");_4.innerHTML=GT;document.head.appendChild(_4);function cR({onClose:e,tab:t}){let[r,n]=(0,ef.useState)("1"),[o,i]=(0,ef.useState)(0);return(0,ef.useEffect)(()=>{n(t)},[t]),(0,ef.useEffect)(()=>{let a=document.getElementById("graph-canvas"),s=0,l,c=()=>{if(s++,s%3===0&&a){let u=document.querySelector(".side-bar-panel");u&&u.style.display!=="none"?i(u.clientWidth):i(0)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}},[]),(0,An.jsx)(Na,{theme:{token:{colorText:"var(--fg-color)",colorBgContainer:"var(--comfy-input-bg)",colorBgElevated:"var(--comfy-input-bg)",colorFillSecondary:"var(--comfy-input-bg)",controlItemBgHover:"var(--comfy-input-bg)",colorBgTextHover:"var(--comfy-input-bg)",colorBorder:"var(--p-inputtext-border-color)"}},children:(0,An.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,An.jsxs)("div",{className:"sdppp-menu-header",children:[(0,An.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,An.jsx)("button",{onClick:()=>n("1"),className:r==="1"?"active":"",children:me("Simplify Workflow")}),(0,An.jsx)("button",{onClick:()=>n("2"),className:r==="2"?"active":"",children:me("Photoshop")})]}),(0,An.jsx)("span",{children:"Powered by SDPPP"}),(0,An.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,An.jsx)(aR,{})})]}),(0,An.jsxs)("div",{className:"sdppp-menu-content",children:[(0,An.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,An.jsx)(Zu,{})}),(0,An.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,An.jsx)(b3,{})})]})]})})}var tc=E(Or(),1);function uR({onMaximize:e,onPhotoshop:t}){return(0,tc.jsxs)("div",{className:"sdppp-side-container",children:[(0,tc.jsxs)("div",{className:"sdppp-side-header",children:[(0,tc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,tc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,tc.jsx)(Zu,{})]})}var P4=null,eK=null,fR=null;async function mR(e){if(!P4){let t=document.createElement("div");t.id="sdppp-popup-root",t.style.display="none",document.getElementById("graph-canvas-container")?.prepend(t),e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:r=>{eK||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,dR.createRoot)(r).render((0,pR.createElement)(uR,{onMaximize:()=>{n("1")},onPhotoshop:()=>{n("2")}}))),t.style.display="none";function n(o){P4?fR.props.tab=o:(fR=(0,pR.createElement)(cR,{onClose:()=>{t.style.display="none"},tab:o}),(0,dR.createRoot)(t).render(fR)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}nn.addEventListener("graphChanged",e=>{let r=(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let n=Xe.data.widgetTableStructure,o=em(mt.graph,r);D4(o,n)&&Xe.setWidgetTableStructure(o),Xe.setWidgetTableValue(gf(mt.graph))});nn.addEventListener("executed",()=>{Xe.setWidgetTableValue(gf(mt.graph))});var T4=0,N4=!0,I4="";function $4(){requestAnimationFrame($4);let e=mt.workflowManager||mt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,n=t?.path||"",o=t?.isPersisted||!0;if(r===T4&&n===I4&&o===N4)return;T4=r,I4=n,N4=o;let i=em(mt.graph,t),a=gf(mt.graph);Xe.setWidgetTableStructure(i),Xe.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=em(mt.graph,t),l=gf(mt.graph);D4(s,i)&&Xe.setWidgetTableStructure(s),Xe.setWidgetTableValue(l)},800)}requestAnimationFrame($4);function D4(e,t){return e.nodeIndexes.length!==t.nodeIndexes.length||JSON.stringify(e.nodeIndexes)!==JSON.stringify(t.nodeIndexes)||JSON.stringify(e.groups)!==JSON.stringify(t.groups)||JSON.stringify(e.nodes)!==JSON.stringify(t.nodes)}async function tK(e,t,r){t.addEventListener("progress",({detail:s})=>{if(!s||isNaN(s.value/s.max))return;let l=Math.round(s.value/s.max*100);Xe.setProgress(l)}),t.addEventListener("status",s=>{s.detail?.exec_info&&Xe.setQueueSize(s.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:s})=>{if(Xe.setExecutingNodeTitle(""),Xe.setLastError(s.exception_message),s.node_id){let l=e.graph.nodes.find(c=>c.id==s.node_id);Xe.setWidgetTableErrors({[s.node_id]:`[${l?.title||s.node_id}]`+s.exception_message})}});let n=[];t.addEventListener("execution_start",({detail:s})=>{if(Xe.setLastError(""),Xe.setWidgetTableErrors({}),Xe.setProgress(0),Xe.setExecutingNodeTitle(""),n.length){let l=n.shift();l&&o.set(s.prompt_id,l)}}),t.addEventListener("executing",s=>{let l=s.detail,c=graph.nodes.find(u=>u.id==l);c&&Xe.setExecutingNodeTitle(c.title)}),t.addEventListener("execution_success",s=>{Xe.setProgress(0),Xe.setExecutingNodeTitle(""),il.get(s.detail.prompt_id)&&il.delete(s.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{Xe.setProgress(0),Xe.setExecutingNodeTitle("")});let o=new Map;t.addEventListener("executed",s=>{if(s.detail.output&&Array.isArray(s.detail.output.images)&&s.detail.output.images.length>0){let l=null;if(il.get(s.detail.prompt_id)?l=il.get(s.detail.prompt_id):l=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!l)return;e.graph.nodes.filter(c=>c.type=="Send Images To Photoshop").filter(c=>c.mode==0).length||i?.sendImage(l,{document_identify:Xt.getSpecialDocumentForPreview(),layer_identifies:s.detail.output.images.map(()=>Xt.getSpecialLayerForSend()[0]),boundaries:s.detail.output.images.map(()=>""),image_urls:s.detail.output.images.map(c=>location.origin+"/api/view?type="+c.type+"&filename="+c.filename),new_layer_name:rm(Xe.data.widgetTableStructure.widgetTablePath)})}}),mR(e);var i=new Bn;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{pO(s,l)}catch(u){Pp.push(u.stack||u.message||u)}}})}var Pp=[];(async function(){if(!(typeof gradioApp<"u")){try{let e=window.comfyAPI?.app?.app,t=window.comfyAPI?.ui?.$el,r=window.comfyAPI?.api?.api;if(!e||!r||!t)throw new Error("comfyAPI is not initialized, maybe comfyUI is too old");await ER(),await tK(e,r,t),import("./sdppp-custom.js").then(n=>{n.default(ia)})}catch(e){Pp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Pp.length&&(console.error(Pp[0]),alert(`sd-ppp init failed:
`+Pp.join(`
`)))}})();
/*! Bundled license information:
react/cjs/react.production.min.js:
(**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
scheduler/cjs/scheduler.production.min.js:
(**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-dom/cjs/react-dom.production.min.js:
(**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
classnames/index.js:
(*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*)
react-is/cjs/react-is.production.min.js:
(**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react/cjs/react-jsx-runtime.production.min.js:
(**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
fast-json-patch/module/helpers.mjs:
(*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017-2022 Joachim Wester
* MIT licensed
*)
fast-json-patch/module/duplex.mjs:
(*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017-2021 Joachim Wester
* MIT license
*)
@babel/runtime/helpers/esm/regeneratorRuntime.js:
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
*/