@gientech/modual 1.3.6 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1429 @@
1
+ import{jsxs as ot,jsx as Q,Fragment as as}from"react/jsx-runtime";import*as d from"react";import ce,{useContext as gn,createElement as Ar,createContext as Co,forwardRef as Vn,useState as jt,useRef as Xe,useEffect as Zt,isValidElement as l2,version as Hb,useLayoutEffect as jb,useMemo as Bn,Children as zb,useCallback as En,useImperativeHandle as So,cloneElement as Bb,memo as os,Suspense as Vb}from"react";import*as Wb from"react-dom";import V0,{createPortal as pd,unstable_batchedUpdates as qb,flushSync as Yc}from"react-dom";function s2(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ub}=Object.prototype,{getPrototypeOf:bd}=Object,{iterator:is,toStringTag:c2}=Symbol,ls=(e=>t=>{const n=Ub.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$r=e=>(e=e.toLowerCase(),t=>ls(t)===e),ss=e=>t=>typeof t===e,{isArray:xo}=Array,oo=ss("undefined");function bi(e){return e!==null&&!oo(e)&&e.constructor!==null&&!oo(e.constructor)&&Kn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const u2=$r("ArrayBuffer");function Yb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&u2(e.buffer),t}const Gb=ss("string"),Kn=ss("function"),d2=ss("number"),yi=e=>e!==null&&typeof e=="object",Kb=e=>e===!0||e===!1,il=e=>{if(ls(e)!=="object")return!1;const t=bd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(c2 in e)&&!(is in e)},Xb=e=>{if(!yi(e)||bi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Zb=$r("Date"),Qb=$r("File"),Jb=$r("Blob"),ey=$r("FileList"),ty=e=>yi(e)&&Kn(e.pipe),ny=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kn(e.append)&&((t=ls(e))==="formdata"||t==="object"&&Kn(e.toString)&&e.toString()==="[object FormData]"))},ry=$r("URLSearchParams"),[ay,oy,iy,ly]=["ReadableStream","Request","Response","Headers"].map($r),sy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ci(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),xo(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(bi(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function f2(e,t){if(bi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,m2=e=>!oo(e)&&e!==pa;function Gc(){const{caseless:e,skipUndefined:t}=m2(this)&&this||{},n={},r=(a,o)=>{const i=e&&f2(n,o)||o;il(n[i])&&il(a)?n[i]=Gc(n[i],a):il(a)?n[i]=Gc({},a):xo(a)?n[i]=a.slice():(!t||!oo(a))&&(n[i]=a)};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&Ci(arguments[a],r);return n}const cy=(e,t,n,{allOwnKeys:r}={})=>(Ci(t,(a,o)=>{n&&Kn(a)?e[o]=s2(a,n):e[o]=a},{allOwnKeys:r}),e),uy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dy=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},fy=(e,t,n,r)=>{let a,o,i;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&bd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},my=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vy=e=>{if(!e)return null;if(xo(e))return e;let t=e.length;if(!d2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bd(Uint8Array)),hy=(e,t)=>{const r=(e&&e[is]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},py=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},by=$r("HTMLFormElement"),yy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),W0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cy=$r("RegExp"),v2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ci(n,(a,o)=>{let i;(i=t(a,o,e))!==!1&&(r[o]=i||a)}),Object.defineProperties(e,r)},Sy=e=>{v2(e,(t,n)=>{if(Kn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Kn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xy=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return xo(e)?r(e):r(String(e).split(t)),n},wy=()=>{},$y=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ey(e){return!!(e&&Kn(e.append)&&e[c2]==="FormData"&&e[is])}const Oy=e=>{const t=new Array(10),n=(r,a)=>{if(yi(r)){if(t.indexOf(r)>=0)return;if(bi(r))return r;if(!("toJSON"in r)){t[a]=r;const o=xo(r)?[]:{};return Ci(r,(i,l)=>{const s=n(i,a+1);!oo(s)&&(o[l]=s)}),t[a]=void 0,o}}return r};return n(e,0)},Iy=$r("AsyncFunction"),My=e=>e&&(yi(e)||Kn(e))&&Kn(e.then)&&Kn(e.catch),g2=((e,t)=>e?setImmediate:t?((n,r)=>(pa.addEventListener("message",({source:a,data:o})=>{a===pa&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),pa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Kn(pa.postMessage)),Ry=typeof queueMicrotask<"u"?queueMicrotask.bind(pa):typeof process<"u"&&process.nextTick||g2,Py=e=>e!=null&&Kn(e[is]),fe={isArray:xo,isArrayBuffer:u2,isBuffer:bi,isFormData:ny,isArrayBufferView:Yb,isString:Gb,isNumber:d2,isBoolean:Kb,isObject:yi,isPlainObject:il,isEmptyObject:Xb,isReadableStream:ay,isRequest:oy,isResponse:iy,isHeaders:ly,isUndefined:oo,isDate:Zb,isFile:Qb,isBlob:Jb,isRegExp:Cy,isFunction:Kn,isStream:ty,isURLSearchParams:ry,isTypedArray:gy,isFileList:ey,forEach:Ci,merge:Gc,extend:cy,trim:sy,stripBOM:uy,inherits:dy,toFlatObject:fy,kindOf:ls,kindOfTest:$r,endsWith:my,toArray:vy,forEachEntry:hy,matchAll:py,isHTMLForm:by,hasOwnProperty:W0,hasOwnProp:W0,reduceDescriptors:v2,freezeMethods:Sy,toObjectSet:xy,toCamelCase:yy,noop:wy,toFiniteNumber:$y,findKey:f2,global:pa,isContextDefined:m2,isSpecCompliantForm:Ey,toJSONObject:Oy,isAsyncFn:Iy,isThenable:My,setImmediate:g2,asap:Ry,isIterable:Py};function xt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}fe.inherits(xt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const h2=xt.prototype,p2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{p2[e]={value:e}});Object.defineProperties(xt,p2);Object.defineProperty(h2,"isAxiosError",{value:!0});xt.from=(e,t,n,r,a,o)=>{const i=Object.create(h2);fe.toFlatObject(e,i,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",s=t==null&&e?e.code:t;return xt.call(i,l,s,n,r,a),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const Ny=null;function Kc(e){return fe.isPlainObject(e)||fe.isArray(e)}function b2(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function q0(e,t,n){return e?e.concat(t).map(function(a,o){return a=b2(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function Ty(e){return fe.isArray(e)&&!e.some(Kc)}const Ay=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function cs(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,v){return!fe.isUndefined(v[b])});const r=n.metaTokens,a=n.visitor||c,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(fe.isDate(p))return p.toISOString();if(fe.isBoolean(p))return p.toString();if(!s&&fe.isBlob(p))throw new xt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(p)||fe.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,b,v){let y=p;if(p&&!v&&typeof p=="object"){if(fe.endsWith(b,"{}"))b=r?b:b.slice(0,-2),p=JSON.stringify(p);else if(fe.isArray(p)&&Ty(p)||(fe.isFileList(p)||fe.endsWith(b,"[]"))&&(y=fe.toArray(p)))return b=b2(b),y.forEach(function(C,S){!(fe.isUndefined(C)||C===null)&&t.append(i===!0?q0([b],S,o):i===null?b:b+"[]",u(C))}),!1}return Kc(p)?!0:(t.append(q0(v,b,o),u(p)),!1)}const f=[],g=Object.assign(Ay,{defaultVisitor:c,convertValue:u,isVisitable:Kc});function h(p,b){if(!fe.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(p),fe.forEach(p,function(y,m){(!(fe.isUndefined(y)||y===null)&&a.call(t,y,fe.isString(m)?m.trim():m,b,g))===!0&&h(y,b?b.concat(m):[m])}),f.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function U0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function yd(e,t){this._pairs=[],e&&cs(e,this,t)}const y2=yd.prototype;y2.append=function(t,n){this._pairs.push([t,n])};y2.toString=function(t){const n=t?function(r){return t.call(this,r,U0)}:U0;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Fy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function C2(e,t,n){if(!t)return e;const r=n&&n.encode||Fy;fe.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=fe.isURLSearchParams(t)?t.toString():new yd(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Y0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const S2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dy=typeof URLSearchParams<"u"?URLSearchParams:yd,Ly=typeof FormData<"u"?FormData:null,ky=typeof Blob<"u"?Blob:null,_y={isBrowser:!0,classes:{URLSearchParams:Dy,FormData:Ly,Blob:ky},protocols:["http","https","file","blob","url","data"]},Cd=typeof window<"u"&&typeof document<"u",Xc=typeof navigator=="object"&&navigator||void 0,Hy=Cd&&(!Xc||["ReactNative","NativeScript","NS"].indexOf(Xc.product)<0),jy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zy=Cd&&window.location.href||"http://localhost",By=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cd,hasStandardBrowserEnv:Hy,hasStandardBrowserWebWorkerEnv:jy,navigator:Xc,origin:zy},Symbol.toStringTag,{value:"Module"})),Ln={...By,..._y};function Vy(e,t){return cs(e,new Ln.classes.URLSearchParams,{visitor:function(n,r,a,o){return Ln.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Wy(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qy(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function x2(e){function t(n,r,a,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),s=o>=n.length;return i=!i&&fe.isArray(a)?a.length:i,s?(fe.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!l):((!a[i]||!fe.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],o)&&fe.isArray(a[i])&&(a[i]=qy(a[i])),!l)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,a)=>{t(Wy(r),a,n,0)}),n}return null}function Uy(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Si={transitional:S2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=fe.isObject(t);if(o&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return a?JSON.stringify(x2(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vy(t,this.formSerializer).toString();if((l=fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return cs(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),Uy(t)):t}],transformResponse:[function(t){const n=this.transitional||Si.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t))return t;if(t&&fe.isString(t)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?xt.from(l,xt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ln.classes.FormData,Blob:Ln.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{Si.headers[e]={}});const Yy=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gy=e=>{const t={};let n,r,a;return e&&e.split(`
2
+ `).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&Yy[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},G0=Symbol("internals");function ko(e){return e&&String(e).trim().toLowerCase()}function ll(e){return e===!1||e==null?e:fe.isArray(e)?e.map(ll):String(e)}function Ky(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Xy=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ec(e,t,n,r,a){if(fe.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!fe.isString(t)){if(fe.isString(r))return t.indexOf(r)!==-1;if(fe.isRegExp(r))return r.test(t)}}function Zy(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Qy(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,i){return this[r].call(this,t,a,o,i)},configurable:!0})})}let Xn=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(l,s,u){const c=ko(s);if(!c)throw new Error("header name must be a non-empty string");const f=fe.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=ll(l))}const i=(l,s)=>fe.forEach(l,(u,c)=>o(u,c,s));if(fe.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(fe.isString(t)&&(t=t.trim())&&!Xy(t))i(Gy(t),n);else if(fe.isObject(t)&&fe.isIterable(t)){let l={},s,u;for(const c of t){if(!fe.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(s=l[u])?fe.isArray(s)?[...s,c[1]]:[s,c[1]]:c[1]}i(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ko(t),t){const r=fe.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Ky(a);if(fe.isFunction(n))return n.call(this,a,r);if(fe.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ko(t),t){const r=fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ec(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(i){if(i=ko(i),i){const l=fe.findKey(r,i);l&&(!n||ec(r,r[l],l,n))&&(delete r[l],a=!0)}}return fe.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||ec(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return fe.forEach(this,(a,o)=>{const i=fe.findKey(r,o);if(i){n[i]=ll(a),delete n[o];return}const l=t?Zy(o):String(o).trim();l!==o&&delete n[o],n[l]=ll(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return fe.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[G0]=this[G0]={accessors:{}}).accessors,a=this.prototype;function o(i){const l=ko(i);r[l]||(Qy(a,i),r[l]=!0)}return fe.isArray(t)?t.forEach(o):o(t),this}};Xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(Xn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});fe.freezeMethods(Xn);function tc(e,t){const n=this||Si,r=t||n,a=Xn.from(r.headers);let o=r.data;return fe.forEach(e,function(l){o=l.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function w2(e){return!!(e&&e.__CANCEL__)}function wo(e,t,n){xt.call(this,e??"canceled",xt.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(wo,xt,{__CANCEL__:!0});function $2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new xt("Request failed with status code "+n.status,[xt.ERR_BAD_REQUEST,xt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Jy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function e3(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[o];i||(i=u),n[a]=s,r[a]=u;let f=o,g=0;for(;f!==a;)g+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),u-i<t)return;const h=c&&u-c;return h?Math.round(g*1e3/h):void 0}}function t3(e,t){let n=0,r=1e3/t,a,o;const i=(u,c=Date.now())=>{n=c,a=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?i(u,c):(a=u,o||(o=setTimeout(()=>{o=null,i(a)},r-f)))},()=>a&&i(a)]}const Tl=(e,t,n=3)=>{let r=0;const a=e3(50,250);return t3(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,s=i-r,u=a(s),c=i<=l;r=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&c?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},K0=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},X0=e=>(...t)=>fe.asap(()=>e(...t)),n3=Ln.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ln.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ln.origin),Ln.navigator&&/(msie|trident)/i.test(Ln.navigator.userAgent)):()=>!0,r3=Ln.hasStandardBrowserEnv?{write(e,t,n,r,a,o,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];fe.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),fe.isString(r)&&l.push(`path=${r}`),fe.isString(a)&&l.push(`domain=${a}`),o===!0&&l.push("secure"),fe.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function a3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function o3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function E2(e,t,n){let r=!a3(t);return e&&(r||n==!1)?o3(e,t):t}const Z0=e=>e instanceof Xn?{...e}:e;function Ea(e,t){t=t||{};const n={};function r(u,c,f,g){return fe.isPlainObject(u)&&fe.isPlainObject(c)?fe.merge.call({caseless:g},u,c):fe.isPlainObject(c)?fe.merge({},c):fe.isArray(c)?c.slice():c}function a(u,c,f,g){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return r(void 0,u,f,g)}else return r(u,c,f,g)}function o(u,c){if(!fe.isUndefined(c))return r(void 0,c)}function i(u,c){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,c,f)=>a(Z0(u),Z0(c),f,!0)};return fe.forEach(Object.keys({...e,...t}),function(c){const f=s[c]||a,g=f(e[c],t[c],c);fe.isUndefined(g)&&f!==l||(n[c]=g)}),n}const O2=e=>{const t=Ea({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:l}=t;if(t.headers=i=Xn.from(i),t.url=C2(E2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),fe.isFormData(n)){if(Ln.hasStandardBrowserEnv||Ln.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(fe.isFunction(n.getHeaders)){const s=n.getHeaders(),u=["content-type","content-length"];Object.entries(s).forEach(([c,f])=>{u.includes(c.toLowerCase())&&i.set(c,f)})}}if(Ln.hasStandardBrowserEnv&&(r&&fe.isFunction(r)&&(r=r(t)),r||r!==!1&&n3(t.url))){const s=a&&o&&r3.read(o);s&&i.set(a,s)}return t},i3=typeof XMLHttpRequest<"u",l3=i3&&function(e){return new Promise(function(n,r){const a=O2(e);let o=a.data;const i=Xn.from(a.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=a,c,f,g,h,p;function b(){h&&h(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function y(){if(!v)return;const C=Xn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!l||l==="text"||l==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:C,config:e,request:v};$2(function($){n($),b()},function($){r($),b()},x),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new xt("Request aborted",xt.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const x=S&&S.message?S.message:"Network Error",w=new xt(x,xt.ERR_NETWORK,e,v);w.event=S||null,r(w),v=null},v.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const x=a.transitional||S2;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),r(new xt(S,x.clarifyTimeoutError?xt.ETIMEDOUT:xt.ECONNABORTED,e,v)),v=null},o===void 0&&i.setContentType(null),"setRequestHeader"in v&&fe.forEach(i.toJSON(),function(S,x){v.setRequestHeader(x,S)}),fe.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),l&&l!=="json"&&(v.responseType=a.responseType),u&&([g,p]=Tl(u,!0),v.addEventListener("progress",g)),s&&v.upload&&([f,h]=Tl(s),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=C=>{v&&(r(!C||C.type?new wo(null,e,v):C),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const m=Jy(a.url);if(m&&Ln.protocols.indexOf(m)===-1){r(new xt("Unsupported protocol "+m+":",xt.ERR_BAD_REQUEST,e));return}v.send(o||null)})},s3=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(u){if(!a){a=!0,l();const c=u instanceof Error?u:this.reason;r.abort(c instanceof xt?c:new wo(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,o(new xt(`timeout ${t} of ms exceeded`,xt.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>fe.asap(l),s}},c3=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},u3=async function*(e,t){for await(const n of d3(e))yield*c3(n,t)},d3=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Q0=(e,t,n,r)=>{const a=u3(e,t);let o=0,i,l=s=>{i||(i=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:u,value:c}=await a.next();if(u){l(),s.close();return}let f=c.byteLength;if(n){let g=o+=f;n(g)}s.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(s){return l(s),a.return()}},{highWaterMark:2})},J0=64*1024,{isFunction:Li}=fe,f3=(({Request:e,Response:t})=>({Request:e,Response:t}))(fe.global),{ReadableStream:ef,TextEncoder:tf}=fe.global,nf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},m3=e=>{e=fe.merge.call({skipUndefined:!0},f3,e);const{fetch:t,Request:n,Response:r}=e,a=t?Li(t):typeof fetch=="function",o=Li(n),i=Li(r);if(!a)return!1;const l=a&&Li(ef),s=a&&(typeof tf=="function"?(p=>b=>p.encode(b))(new tf):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=o&&l&&nf(()=>{let p=!1;const b=new n(Ln.origin,{body:new ef,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!b}),c=i&&l&&nf(()=>fe.isReadableStream(new r("").body)),f={stream:c&&(p=>p.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(b,v)=>{let y=b&&b[p];if(y)return y.call(b);throw new xt(`Response type '${p}' is not supported`,xt.ERR_NOT_SUPPORT,v)})});const g=async p=>{if(p==null)return 0;if(fe.isBlob(p))return p.size;if(fe.isSpecCompliantForm(p))return(await new n(Ln.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(fe.isArrayBufferView(p)||fe.isArrayBuffer(p))return p.byteLength;if(fe.isURLSearchParams(p)&&(p=p+""),fe.isString(p))return(await s(p)).byteLength},h=async(p,b)=>{const v=fe.toFiniteNumber(p.getContentLength());return v??g(b)};return async p=>{let{url:b,method:v,data:y,signal:m,cancelToken:C,timeout:S,onDownloadProgress:x,onUploadProgress:w,responseType:$,headers:O,withCredentials:R="same-origin",fetchOptions:E}=O2(p),N=t||fetch;$=$?($+"").toLowerCase():"text";let L=s3([m,C&&C.toAbortSignal()],S),D=null;const P=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let M;try{if(w&&u&&v!=="get"&&v!=="head"&&(M=await h(O,y))!==0){let H=new n(b,{method:"POST",body:y,duplex:"half"}),_;if(fe.isFormData(y)&&(_=H.headers.get("content-type"))&&O.setContentType(_),H.body){const[W,q]=K0(M,Tl(X0(w)));y=Q0(H.body,J0,W,q)}}fe.isString(R)||(R=R?"include":"omit");const I=o&&"credentials"in n.prototype,A={...E,signal:L,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:y,duplex:"half",credentials:I?R:void 0};D=o&&new n(b,A);let T=await(o?N(D,E):N(b,A));const j=c&&($==="stream"||$==="response");if(c&&(x||j&&P)){const H={};["status","statusText","headers"].forEach(G=>{H[G]=T[G]});const _=fe.toFiniteNumber(T.headers.get("content-length")),[W,q]=x&&K0(_,Tl(X0(x),!0))||[];T=new r(Q0(T.body,J0,W,()=>{q&&q(),P&&P()}),H)}$=$||"text";let B=await f[fe.findKey(f,$)||"text"](T,p);return!j&&P&&P(),await new Promise((H,_)=>{$2(H,_,{data:B,headers:Xn.from(T.headers),status:T.status,statusText:T.statusText,config:p,request:D})})}catch(I){throw P&&P(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new xt("Network Error",xt.ERR_NETWORK,p,D),{cause:I.cause||I}):xt.from(I,I&&I.code,p,D)}}},v3=new Map,I2=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,o=[r,a,n];let i=o.length,l=i,s,u,c=v3;for(;l--;)s=o[l],u=c.get(s),u===void 0&&c.set(s,u=l?new Map:m3(t)),c=u;return u};I2();const Sd={http:Ny,xhr:l3,fetch:{get:I2}};fe.forEach(Sd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rf=e=>`- ${e}`,g3=e=>fe.isFunction(e)||e===null||e===!1;function h3(e,t){e=fe.isArray(e)?e:[e];const{length:n}=e;let r,a;const o={};for(let i=0;i<n;i++){r=e[i];let l;if(a=r,!g3(r)&&(a=Sd[(l=String(r)).toLowerCase()],a===void 0))throw new xt(`Unknown adapter '${l}'`);if(a&&(fe.isFunction(a)||(a=a.get(t))))break;o[l||"#"+i]=a}if(!a){const i=Object.entries(o).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since :
4
+ `+i.map(rf).join(`
5
+ `):" "+rf(i[0]):"as no adapter specified";throw new xt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a}const M2={getAdapter:h3,adapters:Sd};function nc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wo(null,e)}function af(e){return nc(e),e.headers=Xn.from(e.headers),e.data=tc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),M2.getAdapter(e.adapter||Si.adapter,e)(e).then(function(r){return nc(e),r.data=tc.call(e,e.transformResponse,r),r.headers=Xn.from(r.headers),r},function(r){return w2(r)||(nc(e),r&&r.response&&(r.response.data=tc.call(e,e.transformResponse,r.response),r.response.headers=Xn.from(r.response.headers))),Promise.reject(r)})}const R2="1.13.1",us={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{us[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const of={};us.transitional=function(t,n,r){function a(o,i){return"[Axios v"+R2+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new xt(a(i," has been removed"+(n?" in "+n:"")),xt.ERR_DEPRECATED);return n&&!of[i]&&(of[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};us.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function p3(e,t,n){if(typeof e!="object")throw new xt("options must be an object",xt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const l=e[o],s=l===void 0||i(l,o,e);if(s!==!0)throw new xt("option "+o+" must be "+s,xt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xt("Unknown option "+o,xt.ERR_BAD_OPTION)}}const sl={assertOptions:p3,validators:us},Ir=sl.validators;let Sa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Y0,response:new Y0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ea(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&sl.assertOptions(r,{silentJSONParsing:Ir.transitional(Ir.boolean),forcedJSONParsing:Ir.transitional(Ir.boolean),clarifyTimeoutError:Ir.transitional(Ir.boolean)},!1),a!=null&&(fe.isFunction(a)?n.paramsSerializer={serialize:a}:sl.assertOptions(a,{encode:Ir.function,serialize:Ir.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),sl.assertOptions(n,{baseUrl:Ir.spelling("baseURL"),withXsrfToken:Ir.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&fe.merge(o.common,o[n.method]);o&&fe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Xn.concat(i,o);const l=[];let s=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(s=s&&b.synchronous,l.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let c,f=0,g;if(!s){const p=[af.bind(this),void 0];for(p.unshift(...l),p.push(...u),g=p.length,c=Promise.resolve(n);f<g;)c=c.then(p[f++],p[f++]);return c}g=l.length;let h=n;for(;f<g;){const p=l[f++],b=l[f++];try{h=p(h)}catch(v){b.call(this,v);break}}try{c=af.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,g=u.length;f<g;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Ea(this.defaults,t);const n=E2(t.baseURL,t.url,t.allowAbsoluteUrls);return C2(n,t.params,t.paramsSerializer)}};fe.forEach(["delete","get","head","options"],function(t){Sa.prototype[t]=function(n,r){return this.request(Ea(r||{},{method:t,url:n,data:(r||{}).data}))}});fe.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(Ea(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Sa.prototype[t]=n(),Sa.prototype[t+"Form"]=n(!0)});let b3=class P2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new wo(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new P2(function(a){t=a}),cancel:t}}};function y3(e){return function(n){return e.apply(null,n)}}function C3(e){return fe.isObject(e)&&e.isAxiosError===!0}const Zc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Zc).forEach(([e,t])=>{Zc[t]=e});function N2(e){const t=new Sa(e),n=s2(Sa.prototype.request,t);return fe.extend(n,Sa.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return N2(Ea(e,a))},n}const xn=N2(Si);xn.Axios=Sa;xn.CanceledError=wo;xn.CancelToken=b3;xn.isCancel=w2;xn.VERSION=R2;xn.toFormData=cs;xn.AxiosError=xt;xn.Cancel=xn.CanceledError;xn.all=function(t){return Promise.all(t)};xn.spread=y3;xn.isAxiosError=C3;xn.mergeConfig=Ea;xn.AxiosHeaders=Xn;xn.formToJSON=e=>x2(fe.isHTMLForm(e)?new FormData(e):e);xn.getAdapter=M2.getAdapter;xn.HttpStatusCode=Zc;xn.default=xn;const{Axios:WT,AxiosError:qT,CanceledError:UT,isCancel:YT,CancelToken:GT,VERSION:KT,all:XT,Cancel:ZT,isAxiosError:QT,spread:JT,toFormData:eA,AxiosHeaders:tA,HttpStatusCode:nA,formToJSON:rA,getAdapter:aA,mergeConfig:oA}=xn;var kn=function(){return kn=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},kn.apply(this,arguments)};function ni(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var iA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ia(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lA(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Jt="-ms-",Ko="-moz-",qt="-webkit-",T2="comm",ds="rule",xd="decl",S3="@import",A2="@keyframes",x3="@layer",F2=Math.abs,wd=String.fromCharCode,Qc=Object.assign;function w3(e,t){return Tn(e,0)^45?(((t<<2^Tn(e,0))<<2^Tn(e,1))<<2^Tn(e,2))<<2^Tn(e,3):0}function D2(e){return e.trim()}function _r(e,t){return(e=t.exec(e))?e[0]:e}function Ot(e,t,n){return e.replace(t,n)}function cl(e,t,n){return e.indexOf(t,n)}function Tn(e,t){return e.charCodeAt(t)|0}function io(e,t,n){return e.slice(t,n)}function Rr(e){return e.length}function L2(e){return e.length}function Vo(e,t){return t.push(e),e}function $3(e,t){return e.map(t).join("")}function lf(e,t){return e.filter(function(n){return!_r(n,t)})}var fs=1,lo=1,k2=0,vr=0,Cn=0,$o="";function ms(e,t,n,r,a,o,i,l){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:fs,column:lo,length:i,return:"",siblings:l}}function Kr(e,t){return Qc(ms("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function za(e){for(;e.root;)e=Kr(e.root,{children:[e]});Vo(e,e.siblings)}function E3(){return Cn}function O3(){return Cn=vr>0?Tn($o,--vr):0,lo--,Cn===10&&(lo=1,fs--),Cn}function Sr(){return Cn=vr<k2?Tn($o,vr++):0,lo++,Cn===10&&(lo=1,fs++),Cn}function xa(){return Tn($o,vr)}function ul(){return vr}function vs(e,t){return io($o,e,t)}function Jc(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 I3(e){return fs=lo=1,k2=Rr($o=e),vr=0,[]}function M3(e){return $o="",e}function rc(e){return D2(vs(vr-1,eu(e===91?e+2:e===40?e+1:e)))}function R3(e){for(;(Cn=xa())&&Cn<33;)Sr();return Jc(e)>2||Jc(Cn)>3?"":" "}function P3(e,t){for(;--t&&Sr()&&!(Cn<48||Cn>102||Cn>57&&Cn<65||Cn>70&&Cn<97););return vs(e,ul()+(t<6&&xa()==32&&Sr()==32))}function eu(e){for(;Sr();)switch(Cn){case e:return vr;case 34:case 39:e!==34&&e!==39&&eu(Cn);break;case 40:e===41&&eu(e);break;case 92:Sr();break}return vr}function N3(e,t){for(;Sr()&&e+Cn!==57;)if(e+Cn===84&&xa()===47)break;return"/*"+vs(t,vr-1)+"*"+wd(e===47?e:Sr())}function T3(e){for(;!Jc(xa());)Sr();return vs(e,vr)}function A3(e){return M3(dl("",null,null,null,[""],e=I3(e),0,[0],e))}function dl(e,t,n,r,a,o,i,l,s){for(var u=0,c=0,f=i,g=0,h=0,p=0,b=1,v=1,y=1,m=0,C="",S=a,x=o,w=r,$=C;v;)switch(p=m,m=Sr()){case 40:if(p!=108&&Tn($,f-1)==58){cl($+=Ot(rc(m),"&","&\f"),"&\f",F2(u?l[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:$+=rc(m);break;case 9:case 10:case 13:case 32:$+=R3(p);break;case 92:$+=P3(ul()-1,7);continue;case 47:switch(xa()){case 42:case 47:Vo(F3(N3(Sr(),ul()),t,n,s),s);break;default:$+="/"}break;case 123*b:l[u++]=Rr($)*y;case 125*b:case 59:case 0:switch(m){case 0:case 125:v=0;case 59+c:y==-1&&($=Ot($,/\f/g,"")),h>0&&Rr($)-f&&Vo(h>32?cf($+";",r,n,f-1,s):cf(Ot($," ","")+";",r,n,f-2,s),s);break;case 59:$+=";";default:if(Vo(w=sf($,t,n,u,c,a,l,C,S=[],x=[],f,o),o),m===123)if(c===0)dl($,t,w,w,S,o,f,l,x);else switch(g===99&&Tn($,3)===110?100:g){case 100:case 108:case 109:case 115:dl(e,w,w,r&&Vo(sf(e,w,w,0,0,a,l,C,a,S=[],f,x),x),a,x,f,l,r?S:x);break;default:dl($,w,w,w,[""],x,0,l,x)}}u=c=h=0,b=y=1,C=$="",f=i;break;case 58:f=1+Rr($),h=p;default:if(b<1){if(m==123)--b;else if(m==125&&b++==0&&O3()==125)continue}switch($+=wd(m),m*b){case 38:y=c>0?1:($+="\f",-1);break;case 44:l[u++]=(Rr($)-1)*y,y=1;break;case 64:xa()===45&&($+=rc(Sr())),g=xa(),c=f=Rr(C=$+=T3(ul())),m++;break;case 45:p===45&&Rr($)==2&&(b=0)}}return o}function sf(e,t,n,r,a,o,i,l,s,u,c,f){for(var g=a-1,h=a===0?o:[""],p=L2(h),b=0,v=0,y=0;b<r;++b)for(var m=0,C=io(e,g+1,g=F2(v=i[b])),S=e;m<p;++m)(S=D2(v>0?h[m]+" "+C:Ot(C,/&\f/g,h[m])))&&(s[y++]=S);return ms(e,t,n,a===0?ds:l,s,u,c,f)}function F3(e,t,n,r){return ms(e,t,n,T2,wd(E3()),io(e,2,-2),0,r)}function cf(e,t,n,r,a){return ms(e,t,n,xd,io(e,0,r),io(e,r+1,-1),r,a)}function _2(e,t,n){switch(w3(e,t)){case 5103:return qt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qt+e+e;case 4789:return Ko+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qt+e+Ko+e+Jt+e+e;case 5936:switch(Tn(e,t+11)){case 114:return qt+e+Jt+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qt+e+Jt+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qt+e+Jt+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return qt+e+Jt+e+e;case 6165:return qt+e+Jt+"flex-"+e+e;case 5187:return qt+e+Ot(e,/(\w+).+(:[^]+)/,qt+"box-$1$2"+Jt+"flex-$1$2")+e;case 5443:return qt+e+Jt+"flex-item-"+Ot(e,/flex-|-self/g,"")+(_r(e,/flex-|baseline/)?"":Jt+"grid-row-"+Ot(e,/flex-|-self/g,""))+e;case 4675:return qt+e+Jt+"flex-line-pack"+Ot(e,/align-content|flex-|-self/g,"")+e;case 5548:return qt+e+Jt+Ot(e,"shrink","negative")+e;case 5292:return qt+e+Jt+Ot(e,"basis","preferred-size")+e;case 6060:return qt+"box-"+Ot(e,"-grow","")+qt+e+Jt+Ot(e,"grow","positive")+e;case 4554:return qt+Ot(e,/([^-])(transform)/g,"$1"+qt+"$2")+e;case 6187:return Ot(Ot(Ot(e,/(zoom-|grab)/,qt+"$1"),/(image-set)/,qt+"$1"),e,"")+e;case 5495:case 3959:return Ot(e,/(image-set\([^]*)/,qt+"$1$`$1");case 4968:return Ot(Ot(e,/(.+:)(flex-)?(.*)/,qt+"box-pack:$3"+Jt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qt+e+e;case 4200:if(!_r(e,/flex-|baseline/))return Jt+"grid-column-align"+io(e,t)+e;break;case 2592:case 3360:return Jt+Ot(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,_r(r.props,/grid-\w+-end/)})?~cl(e+(n=n[t].value),"span",0)?e:Jt+Ot(e,"-start","")+e+Jt+"grid-row-span:"+(~cl(n,"span",0)?_r(n,/\d+/):+_r(n,/\d+/)-+_r(e,/\d+/))+";":Jt+Ot(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return _r(r.props,/grid-\w+-start/)})?e:Jt+Ot(Ot(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ot(e,/(.+)-inline(.+)/,qt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Rr(e)-1-t>6)switch(Tn(e,t+1)){case 109:if(Tn(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+qt+"$2-$3$1"+Ko+(Tn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cl(e,"stretch",0)?_2(Ot(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ot(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,o,i,l,s,u){return Jt+a+":"+o+u+(i?Jt+a+"-span:"+(l?s:+s-+o)+u:"")+e});case 4949:if(Tn(e,t+6)===121)return Ot(e,":",":"+qt)+e;break;case 6444:switch(Tn(e,Tn(e,14)===45?18:11)){case 120:return Ot(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+qt+(Tn(e,14)===45?"inline-":"")+"box$3$1"+qt+"$2$3$1"+Jt+"$2box$3")+e;case 100:return Ot(e,":",":"+Jt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ot(e,"scroll-","scroll-snap-")+e}return e}function Al(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function D3(e,t,n,r){switch(e.type){case x3:if(e.children.length)break;case S3:case xd:return e.return=e.return||e.value;case T2:return"";case A2:return e.return=e.value+"{"+Al(e.children,r)+"}";case ds:if(!Rr(e.value=e.props.join(",")))return""}return Rr(n=Al(e.children,r))?e.return=e.value+"{"+n+"}":""}function L3(e){var t=L2(e);return function(n,r,a,o){for(var i="",l=0;l<t;l++)i+=e[l](n,r,a,o)||"";return i}}function k3(e){return function(t){t.root||(t=t.return)&&e(t)}}function _3(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xd:e.return=_2(e.value,e.length,n);return;case A2:return Al([Kr(e,{value:Ot(e.value,"@","@"+qt)})],r);case ds:if(e.length)return $3(n=e.props,function(a){switch(_r(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":za(Kr(e,{props:[Ot(a,/:(read-\w+)/,":"+Ko+"$1")]})),za(Kr(e,{props:[a]})),Qc(e,{props:lf(n,r)});break;case"::placeholder":za(Kr(e,{props:[Ot(a,/:(plac\w+)/,":"+qt+"input-$1")]})),za(Kr(e,{props:[Ot(a,/:(plac\w+)/,":"+Ko+"$1")]})),za(Kr(e,{props:[Ot(a,/:(plac\w+)/,Jt+"input-$1")]})),za(Kr(e,{props:[a]})),Qc(e,{props:lf(n,r)});break}return""})}}var H3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nr={},so=typeof process<"u"&&nr!==void 0&&(nr.REACT_APP_SC_ATTR||nr.SC_ATTR)||"data-styled",H2="active",j2="data-styled-version",gs="6.1.19",$d=`/*!sc*/
7
+ `,Fl=typeof window<"u"&&typeof document<"u",j3=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&nr!==void 0&&nr.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&nr.REACT_APP_SC_DISABLE_SPEEDY!==""?nr.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&nr.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&nr!==void 0&&nr.SC_DISABLE_SPEEDY!==void 0&&nr.SC_DISABLE_SPEEDY!==""&&nr.SC_DISABLE_SPEEDY!=="false"&&nr.SC_DISABLE_SPEEDY),z3={},hs=Object.freeze([]),co=Object.freeze({});function z2(e,t,n){return n===void 0&&(n=co),e.theme!==n.theme&&e.theme||t||n.theme}var B2=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),B3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,V3=/(^-|-$)/g;function uf(e){return e.replace(B3,"-").replace(V3,"")}var W3=/(a)(d)/gi,ki=52,df=function(e){return String.fromCharCode(e+(e>25?39:97))};function tu(e){var t,n="";for(t=Math.abs(e);t>ki;t=t/ki|0)n=df(t%ki)+n;return(df(t%ki)+n).replace(W3,"$1-$2")}var ac,V2=5381,Xa=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W2=function(e){return Xa(V2,e)};function q2(e){return tu(W2(e)>>>0)}function q3(e){return e.displayName||e.name||"Component"}function oc(e){return typeof e=="string"&&!0}var U2=typeof Symbol=="function"&&Symbol.for,Y2=U2?Symbol.for("react.memo"):60115,U3=U2?Symbol.for("react.forward_ref"):60112,Y3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K3=((ac={})[U3]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ac[Y2]=G2,ac);function ff(e){return("type"in(t=e)&&t.type.$$typeof)===Y2?G2:"$$typeof"in e?K3[e.$$typeof]:Y3;var t}var X3=Object.defineProperty,Z3=Object.getOwnPropertyNames,mf=Object.getOwnPropertySymbols,Q3=Object.getOwnPropertyDescriptor,J3=Object.getPrototypeOf,vf=Object.prototype;function K2(e,t,n){if(typeof t!="string"){if(vf){var r=J3(t);r&&r!==vf&&K2(e,r,n)}var a=Z3(t);mf&&(a=a.concat(mf(t)));for(var o=ff(e),i=ff(t),l=0;l<a.length;++l){var s=a[l];if(!(s in G3||n&&n[s]||i&&s in i||o&&s in o)){var u=Q3(t,s);try{X3(e,s,u)}catch{}}}}return e}function uo(e){return typeof e=="function"}function Ed(e){return typeof e=="object"&&"styledComponentId"in e}function ba(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function nu(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function ri(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ru(e,t,n){if(n===void 0&&(n=!1),!n&&!ri(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ru(e[r],t[r]);else if(ri(t))for(var r in t)e[r]=ru(e[r],t[r]);return e}function Od(e,t){Object.defineProperty(e,"toString",{value:t})}function xi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var e6=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,o=a;t>=o;)if((o<<=1)<0)throw xi(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=a;i<o;i++)this.groupSizes[i]=0}for(var l=this.indexOfGroup(t+1),s=(i=0,n.length);i<s;i++)this.tag.insertRule(l,n[i])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),a=r+n;this.groupSizes[t]=0;for(var o=r;o<a;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],a=this.indexOfGroup(t),o=a+r,i=a;i<o;i++)n+="".concat(this.tag.getRule(i)).concat($d);return n},e})(),fl=new Map,Dl=new Map,ml=1,_i=function(e){if(fl.has(e))return fl.get(e);for(;Dl.has(ml);)ml++;var t=ml++;return fl.set(e,t),Dl.set(t,e),t},t6=function(e,t){ml=t+1,fl.set(e,t),Dl.set(t,e)},n6="style[".concat(so,"][").concat(j2,'="').concat(gs,'"]'),r6=new RegExp("^".concat(so,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),a6=function(e,t,n){for(var r,a=n.split(","),o=0,i=a.length;o<i;o++)(r=a[o])&&e.registerName(t,r)},o6=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split($d),a=[],o=0,i=r.length;o<i;o++){var l=r[o].trim();if(l){var s=l.match(r6);if(s){var u=0|parseInt(s[1],10),c=s[2];u!==0&&(t6(c,u),a6(e,c,s[3]),e.getTag().insertRules(u,a)),a.length=0}else a.push(l)}}},gf=function(e){for(var t=document.querySelectorAll(n6),n=0,r=t.length;n<r;n++){var a=t[n];a&&a.getAttribute(so)!==H2&&(o6(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function i6(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var X2=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=(function(l){var s=Array.from(l.querySelectorAll("style[".concat(so,"]")));return s[s.length-1]})(n),o=a!==void 0?a.nextSibling:null;r.setAttribute(so,H2),r.setAttribute(j2,gs);var i=i6();return i&&r.setAttribute("nonce",i),n.insertBefore(r,o),r},l6=(function(){function e(t){this.element=X2(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,a=0,o=r.length;a<o;a++){var i=r[a];if(i.ownerNode===n)return i}throw xi(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),s6=(function(){function e(t){this.element=X2(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),c6=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),hf=Fl,u6={isServer:!Fl,useCSSOMInjection:!j3},Ll=(function(){function e(t,n,r){t===void 0&&(t=co),n===void 0&&(n={});var a=this;this.options=kn(kn({},u6),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Fl&&hf&&(hf=!1,gf(this)),Od(this,function(){return(function(o){for(var i=o.getTag(),l=i.length,s="",u=function(f){var g=(function(y){return Dl.get(y)})(f);if(g===void 0)return"continue";var h=o.names.get(g),p=i.getGroup(f);if(h===void 0||!h.size||p.length===0)return"continue";var b="".concat(so,".g").concat(f,'[id="').concat(g,'"]'),v="";h!==void 0&&h.forEach(function(y){y.length>0&&(v+="".concat(y,","))}),s+="".concat(p).concat(b,'{content:"').concat(v,'"}').concat($d)},c=0;c<l;c++)u(c);return s})(a)})}return e.registerId=function(t){return _i(t)},e.prototype.rehydrate=function(){!this.server&&Fl&&gf(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(kn(kn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,a=n.target;return n.isServer?new c6(a):r?new l6(a):new s6(a)})(this.options),new e6(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(_i(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(_i(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(_i(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),d6=/&/g,f6=/^\s*\/\/.*$/gm;function Z2(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Z2(n.children,t)),n})}function m6(e){var t,n,r,a=co,o=a.options,i=o===void 0?co:o,l=a.plugins,s=l===void 0?hs:l,u=function(g,h,p){return p.startsWith(n)&&p.endsWith(n)&&p.replaceAll(n,"").length>0?".".concat(t):g},c=s.slice();c.push(function(g){g.type===ds&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(d6,n).replace(r,u))}),i.prefix&&c.push(_3),c.push(D3);var f=function(g,h,p,b){h===void 0&&(h=""),p===void 0&&(p=""),b===void 0&&(b="&"),t=b,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var v=g.replace(f6,""),y=A3(p||h?"".concat(p," ").concat(h," { ").concat(v," }"):v);i.namespace&&(y=Z2(y,i.namespace));var m=[];return Al(y,L3(c.concat(k3(function(C){return m.push(C)})))),m};return f.hash=s.length?s.reduce(function(g,h){return h.name||xi(15),Xa(g,h.name)},V2).toString():"",f}var v6=new Ll,au=m6(),Q2=ce.createContext({shouldForwardProp:void 0,styleSheet:v6,stylis:au});Q2.Consumer;ce.createContext(void 0);function ou(){return gn(Q2)}var g6=(function(){function e(t,n){var r=this;this.inject=function(a,o){o===void 0&&(o=au);var i=r.name+o.hash;a.hasNameForId(r.id,i)||a.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Od(this,function(){throw xi(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=au),this.name+t.hash},e})(),h6=function(e){return e>="A"&&e<="Z"};function pf(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;h6(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var J2=function(e){return e==null||e===!1||e===""},eg=function(e){var t,n,r=[];for(var a in e){var o=e[a];e.hasOwnProperty(a)&&!J2(o)&&(Array.isArray(o)&&o.isCss||uo(o)?r.push("".concat(pf(a),":"),o,";"):ri(o)?r.push.apply(r,ni(ni(["".concat(a," {")],eg(o),!1),["}"],!1)):r.push("".concat(pf(a),": ").concat((t=a,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in H3||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ta(e,t,n,r){if(J2(e))return[];if(Ed(e))return[".".concat(e.styledComponentId)];if(uo(e)){if(!uo(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var a=e(t);return ta(a,t,n,r)}var o;return e instanceof g6?n?(e.inject(n,r),[e.getName(r)]):[e]:ri(e)?eg(e):Array.isArray(e)?Array.prototype.concat.apply(hs,e.map(function(i){return ta(i,t,n,r)})):[e.toString()]}function tg(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(uo(n)&&!Ed(n))return!1}return!0}var p6=W2(gs),b6=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&tg(t),this.componentId=n,this.baseHash=Xa(p6,n),this.baseStyle=r,Ll.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))a=ba(a,this.staticRulesId);else{var o=nu(ta(this.rules,t,n,r)),i=tu(Xa(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,i)){var l=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,l)}a=ba(a,i),this.staticRulesId=i}else{for(var s=Xa(this.baseHash,r.hash),u="",c=0;c<this.rules.length;c++){var f=this.rules[c];if(typeof f=="string")u+=f;else if(f){var g=nu(ta(f,t,n,r));s=Xa(s,g+c),u+=g}}if(u){var h=tu(s>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(u,".".concat(h),void 0,this.componentId)),a=ba(a,h)}}return a},e})(),Id=ce.createContext(void 0);Id.Consumer;var ic={};function y6(e,t,n){var r=Ed(e),a=e,o=!oc(e),i=t.attrs,l=i===void 0?hs:i,s=t.componentId,u=s===void 0?(function(S,x){var w=typeof S!="string"?"sc":uf(S);ic[w]=(ic[w]||0)+1;var $="".concat(w,"-").concat(q2(gs+w+ic[w]));return x?"".concat(x,"-").concat($):$})(t.displayName,t.parentComponentId):s,c=t.displayName,f=c===void 0?(function(S){return oc(S)?"styled.".concat(S):"Styled(".concat(q3(S),")")})(e):c,g=t.displayName&&t.componentId?"".concat(uf(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&a.attrs?a.attrs.concat(l).filter(Boolean):l,p=t.shouldForwardProp;if(r&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;p=function(S,x){return b(S,x)&&v(S,x)}}else p=b}var y=new b6(n,g,r?a.componentStyle:void 0);function m(S,x){return(function(w,$,O){var R=w.attrs,E=w.componentStyle,N=w.defaultProps,L=w.foldedComponentIds,D=w.styledComponentId,P=w.target,M=ce.useContext(Id),I=ou(),A=w.shouldForwardProp||I.shouldForwardProp,T=z2($,M,N)||co,j=(function(G,k,z){for(var V,F=kn(kn({},k),{className:void 0,theme:z}),X=0;X<G.length;X+=1){var Y=uo(V=G[X])?V(F):V;for(var U in Y)F[U]=U==="className"?ba(F[U],Y[U]):U==="style"?kn(kn({},F[U]),Y[U]):Y[U]}return k.className&&(F.className=ba(F.className,k.className)),F})(R,$,T),B=j.as||P,H={};for(var _ in j)j[_]===void 0||_[0]==="$"||_==="as"||_==="theme"&&j.theme===T||(_==="forwardedAs"?H.as=j.forwardedAs:A&&!A(_,B)||(H[_]=j[_]));var W=(function(G,k){var z=ou(),V=G.generateAndInjectStyles(k,z.styleSheet,z.stylis);return V})(E,j),q=ba(L,D);return W&&(q+=" "+W),j.className&&(q+=" "+j.className),H[oc(B)&&!B2.has(B)?"class":"className"]=q,O&&(H.ref=O),Ar(B,H)})(C,S,x)}m.displayName=f;var C=ce.forwardRef(m);return C.attrs=h,C.componentStyle=y,C.displayName=f,C.shouldForwardProp=p,C.foldedComponentIds=r?ba(a.foldedComponentIds,a.styledComponentId):"",C.styledComponentId=g,C.target=r?a.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=r?(function(x){for(var w=[],$=1;$<arguments.length;$++)w[$-1]=arguments[$];for(var O=0,R=w;O<R.length;O++)ru(x,R[O],!0);return x})({},a.defaultProps,S):S}}),Od(C,function(){return".".concat(C.styledComponentId)}),o&&K2(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function bf(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n}var yf=function(e){return Object.assign(e,{isCss:!0})};function ng(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(uo(e)||ri(e))return yf(ta(bf(hs,ni([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ta(r):yf(ta(bf(r,t)))}function iu(e,t,n){if(n===void 0&&(n=co),!t)throw xi(1,t);var r=function(a){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ng.apply(void 0,ni([a],o,!1)))};return r.attrs=function(a){return iu(e,t,kn(kn({},n),{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},r.withConfig=function(a){return iu(e,t,kn(kn({},n),a))},r}var rg=function(e){return iu(y6,e)},Ge=rg;B2.forEach(function(e){Ge[e]=rg(e)});var C6=(function(){function e(t,n){this.rules=t,this.componentId=n,this.isStatic=tg(t),Ll.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,n,r,a){var o=a(nu(ta(this.rules,n,r,a)),""),i=this.componentId+t;r.insertRules(i,i,o)},e.prototype.removeStyles=function(t,n){n.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,n,r,a){t>2&&Ll.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,a)},e})();function S6(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ng.apply(void 0,ni([e],t,!1)),a="sc-global-".concat(q2(JSON.stringify(r))),o=new C6(r,a),i=function(s){var u=ou(),c=ce.useContext(Id),f=ce.useRef(u.styleSheet.allocateGSInstance(a)).current;return u.styleSheet.server&&l(f,s,u.styleSheet,c,u.stylis),ce.useLayoutEffect(function(){if(!u.styleSheet.server)return l(f,s,u.styleSheet,c,u.stylis),function(){return o.removeStyles(f,u.styleSheet)}},[f,s,u.styleSheet,c,u.stylis]),null};function l(s,u,c,f,g){if(o.isStatic)o.renderStyles(s,z3,c,g);else{var h=kn(kn({},u),{theme:z2(u,f,i.defaultProps)});o.renderStyles(s,h,c,g)}}return ce.memo(i)}const zt={colors:{primary:"#4E6EF2",secondary:"#6D86F5",success:"#52C41A",warning:"#FAAD14",error:"#F5222D",info:"#1890FF",background:"#F7F8FA",appBackground:"transparent",listBackground:"#F2F3F5",dashboardBackground:"#FFFFFF",text:"#1D2129",textSecondary:"#4E5969",textTertiary:"#86909C",textInverse:"#FFFFFF",border:"#DDE0E5",borderWeak:"#E5E6EB",disabled:"#C9CDD4",disabledBackground:"#F5F7FA",disabledText:"#C9CDD4",shadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",primaryHover:"#6D86F5",primaryActive:"#2D4BE0",surfaceSubtle:"#F2F3F5",surfaceSelected:"#EEF3FE",btnPrimaryBg:"#4E6EF2",btnPrimaryBgHover:"#6D86F5",btnPrimaryBgActive:"#2D4BE0",btnPrimaryBgDisabled:"#F5F7FA",btnPrimaryText:"#FFFFFF",btnPrimaryTextDisabled:"#C9CDD4",btnSecondaryText:"#4E6EF2",btnSecondaryTextHover:"#4E6EF2",btnSecondaryTextActive:"#2D4BE0",btnSecondaryTextDisabled:"#C9CDD4",btnSecondaryBg:"#FFFFFF",btnSecondaryBgHover:"#EEF3FE",btnSecondaryBgActive:"#EEF3FE",btnSecondaryBgDisabled:"#F5F7FA",btnSecondaryBorder:"#4E6EF2",btnSecondaryBorderHover:"#6D86F5",btnSecondaryBorderActive:"#2D4BE0",btnSecondaryBorderDisabled:"#E5E6EB",btnTextText:"#4E6EF2",btnTextTextHover:"#6D86F5",btnTextTextActive:"#2D4BE0",btnTextTextDisabled:"#C9CDD4"},space:{sidebar:"260px",size:"12px",radius:"4px",padding:"8px",margin:"8px",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.5"},fonts:{body:{size:"14px",weight:"normal",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},heading:{size:"16px",weight:"600",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"}},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}};function Hn(e,t){if(!t)return e;const n={...e,...t};return t.theme&&e.theme&&(n.theme={...e.theme,...t.theme,colors:{...e.theme.colors,...t.theme.colors},space:{...e.theme.space,...t.theme.space},icons:{...e.theme.icons,...t.theme.icons},fonts:{...e.theme.fonts,...t.theme.fonts},others:{...e.theme.others,...t.theme.others}}),n}const x6=Co({theme:zt,mode:"light"}),la=()=>gn(x6),w6=Ge.button`
8
+ height: 36px;
9
+ min-height: 36px;
10
+ max-height: 36px;
11
+ line-height: 34px;
12
+ padding: 0 12px;
13
+ border-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
14
+ font-size: 12px;
15
+ border: none;
16
+ cursor: ${e=>e.$disabled||e.$loading?"not-allowed":"pointer"};
17
+ transition: all 0.2s;
18
+ opacity: ${e=>e.$disabled?.5:1};
19
+ display: inline-flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ gap: 6px;
23
+ position: relative;
24
+ background: ${({$btnType:e,$theme:t})=>{var n,r,a;return e==="text"?"none":e==="primary"?((n=t==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff":e==="error"?((r=t==null?void 0:t.colors)==null?void 0:r.error)||"#FF0000":e==="default"?((a=t==null?void 0:t.colors)==null?void 0:a.background)||"#f8f9fa":"none"}};
25
+ color: ${({$btnType:e,$theme:t})=>{var n,r;return e==="text"?((n=t==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff":e==="primary"||e==="error"?"#ffffff":((r=t==null?void 0:t.colors)==null?void 0:r.text)||"#343a40"}};
26
+ border: ${({$btnType:e,$theme:t})=>{var n;return e==="default"?`1px solid ${((n=t==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}`:"none"}};
27
+ box-shadow: none;
28
+
29
+ /* Loading 状态样式 */
30
+ ${e=>e.$loading&&`
31
+ pointer-events: none;
32
+ opacity: 0.8;
33
+
34
+ .button-loading {
35
+ width: 14px;
36
+ height: 14px;
37
+ border: 2px solid transparent;
38
+ border-top: 2px solid currentColor;
39
+ border-radius: 50%;
40
+ animation: spin 1s linear infinite;
41
+ margin-right: 6px;
42
+ }
43
+ `}
44
+
45
+ @keyframes spin {
46
+ 0% { transform: rotate(0deg); }
47
+ 100% { transform: rotate(360deg); }
48
+ }
49
+ `,to=({mode:e="default",label:t,icon:n,disabled:r=!1,loading:a=!1,onClick:o,styles:i,style:l,className:s,children:u,...c})=>{const f=la(),g=Hn(Hn({theme:zt,mode:"light"},f),i),h=()=>{!r&&!a&&o&&o()};return ot(w6,{$btnType:e,$disabled:r,$loading:a,$theme:g.theme||zt,onClick:h,disabled:r||a,style:l,className:s,...c,children:[a&&Q("span",{className:"button-loading"}),n&&Q("span",{className:"button-icon",style:{marginRight:4},children:n}),t&&Q("span",{className:"button-label",children:t}),u]})};/**
50
+ * @license lucide-react v0.456.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const $6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ag=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
55
+ * @license lucide-react v0.456.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var E6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
+ * @license lucide-react v0.456.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const O6=Vn(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:i,...l},s)=>Ar("svg",{ref:s,...E6,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ag("lucide",a),...l},[...i.map(([u,c])=>Ar(u,c)),...Array.isArray(o)?o:[o]]));/**
65
+ * @license lucide-react v0.456.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const og=(e,t)=>{const n=Vn(({className:r,...a},o)=>Ar(O6,{ref:o,iconNode:t,className:ag(`lucide-${$6(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
70
+ * @license lucide-react v0.456.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const I6=og("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
75
+ * @license lucide-react v0.456.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const M6=og("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),R6=Ge.div`
80
+ position: fixed;
81
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
82
+ border: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
83
+ border-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
84
+ box-shadow: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.shadow)||"0 1px 3px rgba(0, 0, 0, 0.12)"}};
85
+ z-index: 9999;
86
+ min-width: ${e=>e.$buttonRect?`${e.$buttonRect.width}px`:"auto"};
87
+ max-width: 300px;
88
+ overflow: hidden;
89
+ padding: 4px 0;
90
+ `,P6=Ge.div`
91
+ padding: 8px 12px;
92
+ cursor: pointer;
93
+ display: flex;
94
+ align-items: center;
95
+ gap: 8px;
96
+ font-size: 12px;
97
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.text)||"#343a40"}};
98
+ background: transparent;
99
+ transition: background-color 0.2s;
100
+
101
+ &:hover {
102
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.disabledBackground)||"#F5F5F5"}};
103
+ }
104
+
105
+ &:first-child {
106
+ border-top-left-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
107
+ border-top-right-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
108
+ }
109
+
110
+ &:last-child {
111
+ border-bottom-left-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
112
+ border-bottom-right-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
113
+ }
114
+ `,N6=Ge.div`
115
+ height: 1px;
116
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
117
+ margin: 4px 0;
118
+ `,sA=({mode:e="default",label:t="\u9009\u62E9\u9009\u9879",actions:n,styles:r,icon:a,disabled:o=!1,style:i,className:l,children:s,eventEmit:u,...c})=>{const[f,g]=jt(!1),h=Xe(null),[p,b]=jt(null),[v,y]=jt({top:0,left:0}),m=la(),C=Hn(Hn({theme:zt,mode:"light"},m),r);Zt(()=>{console.log("[DropDownButton] \u7EC4\u4EF6\u6302\u8F7D\uFF0CeventEmit:",u),console.log("[DropDownButton] actions:",n)},[u,n]);const S=()=>{if(!h.current)return;const O=h.current.getBoundingClientRect();b(O);const R=O.bottom+4,E=O.left;y({top:R,left:E})};Zt(()=>{if(!f)return;const O=N=>{h.current&&!h.current.contains(N.target)&&g(!1)},R=()=>g(!1),E=()=>g(!1);return document.addEventListener("mousedown",O),window.addEventListener("scroll",R,!0),window.addEventListener("resize",E),()=>{document.removeEventListener("mousedown",O),window.removeEventListener("scroll",R,!0),window.removeEventListener("resize",E)}},[f]);const x=O=>{u&&u("dropdown_action",{key:O}),g(!1)},w=()=>{o||(f||S(),g(!f))},$=()=>!f||!p?null:Q(R6,{$theme:C.theme||zt,$buttonRect:p,style:{top:v.top,left:v.left},children:n.map((O,R)=>O.type==="divider"?Q(N6,{$theme:C.theme||zt},O.key||`divider-${R}`):ot(P6,{$theme:C.theme||zt,onMouseDown:E=>{E.preventDefault(),E.stopPropagation(),x(O.key),O.onClick&&O.onClick()},children:[O.icon&&Q("span",{className:"mr-2",children:O.icon}),O.component||O.label]},O.key||`action-${R}`))});return ot("div",{ref:h,style:{position:"relative",display:"inline-block"},className:l,children:[ot(to,{mode:e,label:t,icon:a,disabled:o,onClick:w,styles:r,style:i,...c,children:[s,Q(I6,{size:14,style:{marginLeft:4,transition:"transform 0.2s",transform:f?"rotate(180deg)":"rotate(0deg)"}})]}),f&&pd($(),document.body)]})},T6=({actions:e,onAction:t,direction:n="top",styles:r})=>{const[a,o]=jt(!1),i=Xe(null),[l,s]=jt({}),u=Xe(null);Zt(()=>{if(!a)return;const h=i.current;if(!h)return;const p=h.getBoundingClientRect(),b=window.scrollX||window.pageXOffset,v=window.scrollY||window.pageYOffset,y=128,m=8;let C={position:"absolute",left:p.right-y+b,width:y,zIndex:9999};if(n==="bottom")C.top=p.bottom+m-12+v;else{const S=e.length*30+1;C.top=p.top-m+10-S+v}s(C)},[a,n,e]),Zt(()=>{if(!a)return;const h=b=>{i.current&&i.current.contains(b.target)||u.current&&u.current.contains(b.target)||o(!1)},p=()=>o(!1);return document.addEventListener("mousedown",h),window.addEventListener("scroll",p,!0),()=>{document.removeEventListener("mousedown",h),window.removeEventListener("scroll",p,!0)}},[a]);const c=la(),f=Hn(Hn({theme:zt,mode:"light"},c),r),g=Q("div",{ref:u,className:`origin-bottom-right absolute right-0 w-32 rounded-md shadow-lg focus:outline-none border transition-all duration-200 ease-in-out
119
+ ${a?"opacity-100 translate-y-0 pointer-events-auto scale-100":"opacity-0 pointer-events-none scale-95"}
120
+ `,style:{...l,background:f.theme.colors.background,color:f.theme.colors.text,border:`1px solid ${f.theme.colors.border}`,borderRadius:f.theme.space.radius,boxShadow:f.theme.colors.shadow,minWidth:128,zIndex:9999},children:Q("div",{className:"py-1 px-2",children:e.map((h,p)=>h.type==="divider"?Q("div",{className:"my-2 bg-gray-100",style:{height:1}},h.key||`divider-${p}`):ot("button",{className:"w-full rounded flex cursor-pointer items-center px-4 py-2 text-sm transition whitespace-nowrap",style:{color:f.theme.colors.text,background:"transparent",border:"none",fontSize:12},onClick:b=>{b.stopPropagation(),o(!1),t(h.key),h.onClick&&h.onClick()},type:"button",onMouseOver:b=>b.currentTarget.style.background=f.theme.colors.disabledBackground,onMouseOut:b=>b.currentTarget.style.background="transparent",children:[h.icon&&Q("span",{className:"mr-2",children:h.icon}),h.label]},h.key||`action-${p}`))})});return ot(as,{children:[Q("button",{ref:i,className:"card-action-more-btn cursor-pointer! flex items-center justify-center w-9 h-9 rounded-sm transition border-none outline-none",style:{background:"transparent",color:f.theme.colors.primary,borderRadius:f.theme.space.radius},onClick:h=>{h.stopPropagation(),o(p=>!p)},tabIndex:0,"aria-label":"\u66F4\u591A\u64CD\u4F5C",type:"button",children:Q(M6,{size:18,className:"text-blue-500"})}),a&&pd(g,document.body)]})};if(typeof window<"u"&&!document.getElementById("card-action-more-btn-style")){const e=document.createElement("style");e.id="card-action-more-btn-style",e.innerHTML=`
121
+ .card-action-more-btn:hover {
122
+ background: #f5f6fa !important;
123
+ color: #222 !important;
124
+ box-shadow: 0 2px 8px 0 rgba(51,112,255,0.06);
125
+ }
126
+ `,document.head.appendChild(e)}const A6=({current:e,pageSize:t,total:n,onChange:r,showSizeChanger:a=!0,pageSizeOptions:o=[6,12,24,48],onPageSizeChange:i,theme:l,size:s="md",showPageNumbers:u=!0})=>{const c=Math.ceil(n/t);if(c<=1&&!a)return null;const f={colors:{background:"#ffffff",text:"#1f2937",border:"#d9d9d9",disabledBackground:"#f5f5f5",primary:"#1677ff"},space:{radius:"6px"},...l},g=(()=>{const S=[],x=[];for(let w=Math.max(2,e-2);w<=Math.min(c-1,e+2);w++)S.push(w);return e-2>2?x.push(1,"..."):x.push(1),x.push(...S),e+2<c-1?x.push("...",c):c>1&&x.push(c),x})(),h=s==="sm"?{height:24,minWidth:24,fontSize:12,paddingX:8}:{height:28,minWidth:28,fontSize:12,paddingX:8},[p,b]=ce.useState(""),v=()=>{if(!p||p.trim()==="")return;const S=parseInt(p,10);if(Number.isNaN(S))return;const x=Math.max(1,Math.min(c,S));x!==e&&r(x),b(String(x))},y={background:f.colors.background,color:f.colors.text,border:"1px solid transparent",borderRadius:f.space.radius,height:h.height,minWidth:h.minWidth,padding:`0 ${h.paddingX}px`,fontSize:h.fontSize,lineHeight:`${h.height}px`},m={...y,border:`1px solid ${f.colors.primary}`,color:f.colors.primary},C={background:"transparent",color:f.colors.text,border:"none",height:h.height,minWidth:h.minWidth,padding:`0 ${h.paddingX}px`,fontSize:h.fontSize,lineHeight:`${h.height}px`,borderRadius:f.space.radius};return ot("div",{className:"flex items-center justify-center gap-2 select-none",children:[a&&ot("div",{className:"flex items-center gap-2 mr-3",children:[Q("span",{style:{fontSize:h.fontSize,color:f.colors.text},children:"\u6BCF\u9875"}),Q("select",{value:t,onChange:S=>i&&i(parseInt(S.target.value,10)),style:{height:h.height,border:`1px solid ${f.colors.border}`,borderRadius:f.space.radius,padding:`0 ${h.paddingX}px`,background:f.colors.background,color:f.colors.text,fontSize:h.fontSize},"aria-label":"\u6BCF\u9875\u6761\u6570",children:o.map(S=>Q("option",{value:S,children:S},S))}),Q("span",{style:{fontSize:h.fontSize,color:f.colors.text},children:"\u6761"})]}),Q("button",{disabled:e===1,onClick:()=>r(e-1),className:"flex items-center justify-center disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-200",style:C,onMouseEnter:S=>{e!==1&&(S.currentTarget.style.color=f.colors.primary)},onMouseLeave:S=>{S.currentTarget.style.color=e===1?"#bfbfbf":f.colors.text},"aria-label":"\u4E0A\u4E00\u9875",children:Q("svg",{width:h.fontSize+4,height:h.fontSize+4,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{color:e===1?"#bfbfbf":void 0},children:Q("polyline",{points:"15,18 9,12 15,6"})})}),u&&g.map((S,x)=>{if(S==="...")return Q("span",{style:{...y,color:"#bfbfbf"},children:"..."},`ellipsis-${x}`);const w=S===e;return Q("button",{onClick:()=>r(S),className:"flex items-center justify-center transition-all duration-150",style:w?m:y,onMouseEnter:$=>{w||($.currentTarget.style.borderColor=f.colors.primary,$.currentTarget.style.color=f.colors.primary)},onMouseLeave:$=>{w||($.currentTarget.style.borderColor="transparent",$.currentTarget.style.color=f.colors.text)},"aria-label":`\u7B2C ${S} \u9875`,"aria-current":w?"page":void 0,children:S},S)}),Q("button",{disabled:e===c,onClick:()=>r(e+1),className:"flex items-center justify-center disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-200",style:C,onMouseEnter:S=>{e!==c&&(S.currentTarget.style.color=f.colors.primary)},onMouseLeave:S=>{S.currentTarget.style.color=e===c?"#bfbfbf":f.colors.text},"aria-label":"\u4E0B\u4E00\u9875",children:Q("svg",{width:h.fontSize+4,height:h.fontSize+4,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{color:e===c?"#bfbfbf":void 0},children:Q("polyline",{points:"9,18 15,12 9,6"})})}),ot("div",{className:"flex items-center gap-2 ml-4",children:[Q("span",{style:{fontSize:h.fontSize,color:f.colors.text},children:"\u524D\u5F80"}),Q("input",{type:"number",inputMode:"numeric",min:1,max:c,value:p,onChange:S=>b(S.target.value),onKeyDown:S=>{S.key==="Enter"&&(S.preventDefault(),v())},onBlur:()=>v(),style:{height:h.height,width:s==="sm"?48:64,border:`1px solid ${f.colors.border}`,borderRadius:f.space.radius,padding:`0 ${h.paddingX}px`,background:f.colors.background,color:f.colors.text,fontSize:h.fontSize},"aria-label":"\u8DF3\u8F6C\u9875\u7801\u8F93\u5165"}),Q("span",{style:{fontSize:h.fontSize,color:f.colors.text},children:"\u9875"})]})]})};var ig={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Md={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},F6=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],kl={CSS:{},springs:{}};function Pr(e,t,n){return Math.min(Math.max(e,t),n)}function Xo(e,t){return e.indexOf(t)>-1}function lc(e,t){return e.apply(null,t)}var st={arr:function(e){return Array.isArray(e)},obj:function(e){return Xo(Object.prototype.toString.call(e),"Object")},pth:function(e){return st.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||st.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return st.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return st.hex(e)||st.rgb(e)||st.hsl(e)},key:function(e){return!ig.hasOwnProperty(e)&&!Md.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function lg(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function sg(e,t){var n=lg(e),r=Pr(st.und(n[0])?1:n[0],.1,100),a=Pr(st.und(n[1])?100:n[1],.1,100),o=Pr(st.und(n[2])?10:n[2],.1,100),i=Pr(st.und(n[3])?0:n[3],.1,100),l=Math.sqrt(a/r),s=o/(2*Math.sqrt(a*r)),u=s<1?l*Math.sqrt(1-s*s):0,c=1,f=s<1?(s*l+-i)/u:-i+l;function g(p){var b=t?t*p/1e3:p;return s<1?b=Math.exp(-b*s*l)*(c*Math.cos(u*b)+f*Math.sin(u*b)):b=(c+f*b)*Math.exp(-b*l),p===0||p===1?p:1-b}function h(){var p=kl.springs[e];if(p)return p;for(var b=1/6,v=0,y=0;;)if(v+=b,g(v)===1){if(y++,y>=16)break}else y=0;var m=v*b*1e3;return kl.springs[e]=m,m}return t?g:h}function D6(e){return e===void 0&&(e=10),function(t){return Math.ceil(Pr(t,1e-6,1)*e)*(1/e)}}var L6=(function(){var e=11,t=1/(e-1);function n(c,f){return 1-3*f+3*c}function r(c,f){return 3*f-6*c}function a(c){return 3*c}function o(c,f,g){return((n(f,g)*c+r(f,g))*c+a(f))*c}function i(c,f,g){return 3*n(f,g)*c*c+2*r(f,g)*c+a(f)}function l(c,f,g,h,p){var b,v,y=0;do v=f+(g-f)/2,b=o(v,h,p)-c,b>0?g=v:f=v;while(Math.abs(b)>1e-7&&++y<10);return v}function s(c,f,g,h){for(var p=0;p<4;++p){var b=i(f,g,h);if(b===0)return f;var v=o(f,g,h)-c;f-=v/b}return f}function u(c,f,g,h){if(!(0<=c&&c<=1&&0<=g&&g<=1))return;var p=new Float32Array(e);if(c!==f||g!==h)for(var b=0;b<e;++b)p[b]=o(b*t,c,g);function v(y){for(var m=0,C=1,S=e-1;C!==S&&p[C]<=y;++C)m+=t;--C;var x=(y-p[C])/(p[C+1]-p[C]),w=m+x*t,$=i(w,c,g);return $>=.001?s(y,w,c,g):$===0?w:l(y,m,m+t,c,g)}return function(y){return c===f&&g===h||y===0||y===1?y:o(v(y),f,h)}}return u})(),cg=(function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var a,o=4;r<((a=Math.pow(2,--o))-1)/11;);return 1/Math.pow(4,3-o)-7.5625*Math.pow((a*3-2)/22-r,2)}},Elastic:function(r,a){r===void 0&&(r=1),a===void 0&&(a=.5);var o=Pr(r,1,10),i=Pr(a,.1,2);return function(l){return l===0||l===1?l:-o*Math.pow(2,10*(l-1))*Math.sin((l-1-i/(Math.PI*2)*Math.asin(1/o))*(Math.PI*2)/i)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,a){t[r]=function(){return function(o){return Math.pow(o,a+2)}}}),Object.keys(t).forEach(function(r){var a=t[r];e["easeIn"+r]=a,e["easeOut"+r]=function(o,i){return function(l){return 1-a(o,i)(1-l)}},e["easeInOut"+r]=function(o,i){return function(l){return l<.5?a(o,i)(l*2)/2:1-a(o,i)(l*-2+2)/2}},e["easeOutIn"+r]=function(o,i){return function(l){return l<.5?(1-a(o,i)(1-l*2))/2:(a(o,i)(l*2-1)+1)/2}}}),e})();function Rd(e,t){if(st.fnc(e))return e;var n=e.split("(")[0],r=cg[n],a=lg(e);switch(n){case"spring":return sg(e,t);case"cubicBezier":return lc(L6,a);case"steps":return lc(D6,a);default:return lc(r,a)}}function ug(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function ps(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o<n;o++)if(o in e){var i=e[o];t.call(r,i,o,e)&&a.push(i)}return a}function bs(e){return e.reduce(function(t,n){return t.concat(st.arr(n)?bs(n):n)},[])}function Cf(e){return st.arr(e)?e:(st.str(e)&&(e=ug(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Pd(e,t){return e.some(function(n){return n===t})}function Nd(e){var t={};for(var n in e)t[n]=e[n];return t}function lu(e,t){var n=Nd(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function ys(e,t){var n=Nd(e);for(var r in t)n[r]=st.und(e[r])?t[r]:e[r];return n}function k6(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function _6(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(l,s,u,c){return s+s+u+u+c+c}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),a=parseInt(r[1],16),o=parseInt(r[2],16),i=parseInt(r[3],16);return"rgba("+a+","+o+","+i+",1)"}function H6(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),n=parseInt(t[1],10)/360,r=parseInt(t[2],10)/100,a=parseInt(t[3],10)/100,o=t[4]||1;function i(g,h,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?g+(h-g)*6*p:p<1/2?h:p<2/3?g+(h-g)*(2/3-p)*6:g}var l,s,u;if(r==0)l=s=u=a;else{var c=a<.5?a*(1+r):a+r-a*r,f=2*a-c;l=i(f,c,n+1/3),s=i(f,c,n),u=i(f,c,n-1/3)}return"rgba("+l*255+","+s*255+","+u*255+","+o+")"}function j6(e){if(st.rgb(e))return k6(e);if(st.hex(e))return _6(e);if(st.hsl(e))return H6(e)}function jr(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function z6(e){if(Xo(e,"translate")||e==="perspective")return"px";if(Xo(e,"rotate")||Xo(e,"skew"))return"deg"}function su(e,t){return st.fnc(e)?e(t.target,t.id,t.total):e}function Nr(e,t){return e.getAttribute(t)}function Td(e,t,n){var r=jr(t);if(Pd([n,"deg","rad","turn"],r))return t;var a=kl.CSS[t+n];if(!st.und(a))return a;var o=100,i=document.createElement(e.tagName),l=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;l.appendChild(i),i.style.position="absolute",i.style.width=o+n;var s=o/i.offsetWidth;l.removeChild(i);var u=s*parseFloat(t);return kl.CSS[t+n]=u,u}function dg(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Td(e,a,n):a}}function Ad(e,t){if(st.dom(e)&&!st.inp(e)&&(!st.nil(Nr(e,t))||st.svg(e)&&e[t]))return"attribute";if(st.dom(e)&&Pd(F6,t))return"transform";if(st.dom(e)&&t!=="transform"&&dg(e,t))return"css";if(e[t]!=null)return"object"}function fg(e){if(st.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,a;a=n.exec(t);)r.set(a[1],a[2]);return r}}function B6(e,t,n,r){var a=Xo(t,"scale")?1:0+z6(t),o=fg(e).get(t)||a;return n&&(n.transforms.list.set(t,o),n.transforms.last=t),r?Td(e,o,r):o}function Fd(e,t,n,r){switch(Ad(e,t)){case"transform":return B6(e,t,r,n);case"css":return dg(e,t,n);case"attribute":return Nr(e,t);default:return e[t]||0}}function Dd(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=jr(e)||0,a=parseFloat(t),o=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return a+o+r;case"-":return a-o+r;case"*":return a*o+r}}function mg(e,t){if(st.col(e))return j6(e);if(/\s/g.test(e))return e;var n=jr(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Ld(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function V6(e){return Math.PI*2*Nr(e,"r")}function W6(e){return Nr(e,"width")*2+Nr(e,"height")*2}function q6(e){return Ld({x:Nr(e,"x1"),y:Nr(e,"y1")},{x:Nr(e,"x2"),y:Nr(e,"y2")})}function vg(e){for(var t=e.points,n=0,r,a=0;a<t.numberOfItems;a++){var o=t.getItem(a);a>0&&(n+=Ld(r,o)),r=o}return n}function U6(e){var t=e.points;return vg(e)+Ld(t.getItem(t.numberOfItems-1),t.getItem(0))}function gg(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return V6(e);case"rect":return W6(e);case"line":return q6(e);case"polyline":return vg(e);case"polygon":return U6(e)}}function Y6(e){var t=gg(e);return e.setAttribute("stroke-dasharray",t),t}function G6(e){for(var t=e.parentNode;st.svg(t)&&st.svg(t.parentNode);)t=t.parentNode;return t}function hg(e,t){var n=t||{},r=n.el||G6(e),a=r.getBoundingClientRect(),o=Nr(r,"viewBox"),i=a.width,l=a.height,s=n.viewBox||(o?o.split(" "):[0,0,i,l]);return{el:r,viewBox:s,x:s[0]/1,y:s[1]/1,w:i,h:l,vW:s[2],vH:s[3]}}function K6(e,t){var n=st.str(e)?ug(e)[0]:e,r=t||100;return function(a){return{property:a,el:n,svg:hg(n),totalLength:gg(n)*(r/100)}}}function X6(e,t,n){function r(c){c===void 0&&(c=0);var f=t+c>=1?t+c:0;return e.el.getPointAtLength(f)}var a=hg(e.el,e.svg),o=r(),i=r(-1),l=r(1),s=n?1:a.w/a.vW,u=n?1:a.h/a.vH;switch(e.property){case"x":return(o.x-a.x)*s;case"y":return(o.y-a.y)*u;case"angle":return Math.atan2(l.y-i.y,l.x-i.x)*180/Math.PI}}function Sf(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=mg(st.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:st.str(e)||t?r.split(n):[]}}function kd(e){var t=e?bs(st.arr(e)?e.map(Cf):Cf(e)):[];return ps(t,function(n,r,a){return a.indexOf(n)===r})}function pg(e){var t=kd(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:fg(n)}}})}function Z6(e,t){var n=Nd(t);if(/^spring/.test(n.easing)&&(n.duration=sg(n.easing)),st.arr(e)){var r=e.length,a=r===2&&!st.obj(e[0]);a?e={value:e}:st.fnc(t.duration)||(n.duration=t.duration/r)}var o=st.arr(e)?e:[e];return o.map(function(i,l){var s=st.obj(i)&&!st.pth(i)?i:{value:i};return st.und(s.delay)&&(s.delay=l?0:t.delay),st.und(s.endDelay)&&(s.endDelay=l===o.length-1?t.endDelay:0),s}).map(function(i){return ys(i,n)})}function Q6(e){for(var t=ps(bs(e.map(function(o){return Object.keys(o)})),function(o){return st.key(o)}).reduce(function(o,i){return o.indexOf(i)<0&&o.push(i),o},[]),n={},r=function(o){var i=t[o];n[i]=e.map(function(l){var s={};for(var u in l)st.key(u)?u==i&&(s.value=l[u]):s[u]=l[u];return s})},a=0;a<t.length;a++)r(a);return n}function J6(e,t){var n=[],r=t.keyframes;r&&(t=ys(Q6(r),t));for(var a in t)st.key(a)&&n.push({name:a,tweens:Z6(t[a],e)});return n}function eC(e,t){var n={};for(var r in e){var a=su(e[r],t);st.arr(a)&&(a=a.map(function(o){return su(o,t)}),a.length===1&&(a=a[0])),n[r]=a}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function tC(e,t){var n;return e.tweens.map(function(r){var a=eC(r,t),o=a.value,i=st.arr(o)?o[1]:o,l=jr(i),s=Fd(t.target,e.name,l,t),u=n?n.to.original:s,c=st.arr(o)?o[0]:u,f=jr(c)||jr(s),g=l||f;return st.und(i)&&(i=u),a.from=Sf(c,g),a.to=Sf(Dd(i,c),g),a.start=n?n.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=Rd(a.easing,a.duration),a.isPath=st.pth(o),a.isPathTargetInsideSVG=a.isPath&&st.svg(t.target),a.isColor=st.col(a.from.original),a.isColor&&(a.round=1),n=a,a})}var bg={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,a){if(r.list.set(t,n),t===r.last||a){var o="";r.list.forEach(function(i,l){o+=l+"("+i+") "}),e.style.transform=o}}};function yg(e,t){var n=pg(e);n.forEach(function(r){for(var a in t){var o=su(t[a],r),i=r.target,l=jr(o),s=Fd(i,a,l,r),u=l||jr(s),c=Dd(mg(o,u),s),f=Ad(i,a);bg[f](i,a,c,r.transforms,!0)}})}function nC(e,t){var n=Ad(e.target,t.name);if(n){var r=tC(t,e),a=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:a.end,delay:r[0].delay,endDelay:a.endDelay}}}function rC(e,t){return ps(bs(e.map(function(n){return t.map(function(r){return nC(n,r)})})),function(n){return!st.und(n)})}function Cg(e,t){var n=e.length,r=function(o){return o.timelineOffset?o.timelineOffset:0},a={};return a.duration=n?Math.max.apply(Math,e.map(function(o){return r(o)+o.duration})):t.duration,a.delay=n?Math.min.apply(Math,e.map(function(o){return r(o)+o.delay})):t.delay,a.endDelay=n?a.duration-Math.max.apply(Math,e.map(function(o){return r(o)+o.duration-o.endDelay})):t.endDelay,a}var xf=0;function aC(e){var t=lu(ig,e),n=lu(Md,e),r=J6(n,e),a=pg(e.targets),o=rC(a,r),i=Cg(o,n),l=xf;return xf++,ys(t,{id:l,children:[],animatables:a,animations:o,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}var Cr=[],Sg=(function(){var e;function t(){!e&&(!wf()||!hn.suspendWhenDocumentHidden)&&Cr.length>0&&(e=requestAnimationFrame(n))}function n(a){for(var o=Cr.length,i=0;i<o;){var l=Cr[i];l.paused?(Cr.splice(i,1),o--):(l.tick(a),i++)}e=i>0?requestAnimationFrame(n):void 0}function r(){hn.suspendWhenDocumentHidden&&(wf()?e=cancelAnimationFrame(e):(Cr.forEach(function(a){return a._onDocumentVisibility()}),Sg()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function wf(){return!!document&&document.hidden}function hn(e){e===void 0&&(e={});var t=0,n=0,r=0,a,o=0,i=null;function l(m){var C=window.Promise&&new Promise(function(S){return i=S});return m.finished=C,C}var s=aC(e);l(s);function u(){var m=s.direction;m!=="alternate"&&(s.direction=m!=="normal"?"normal":"reverse"),s.reversed=!s.reversed,a.forEach(function(C){return C.reversed=s.reversed})}function c(m){return s.reversed?s.duration-m:m}function f(){t=0,n=c(s.currentTime)*(1/hn.speed)}function g(m,C){C&&C.seek(m-C.timelineOffset)}function h(m){if(s.reversePlayback)for(var S=o;S--;)g(m,a[S]);else for(var C=0;C<o;C++)g(m,a[C])}function p(m){for(var C=0,S=s.animations,x=S.length;C<x;){var w=S[C],$=w.animatable,O=w.tweens,R=O.length-1,E=O[R];R&&(E=ps(O,function(k){return m<k.end})[0]||E);for(var N=Pr(m-E.start-E.delay,0,E.duration)/E.duration,L=isNaN(N)?1:E.easing(N),D=E.to.strings,P=E.round,M=[],I=E.to.numbers.length,A=void 0,T=0;T<I;T++){var j=void 0,B=E.to.numbers[T],H=E.from.numbers[T]||0;E.isPath?j=X6(E.value,L*B,E.isPathTargetInsideSVG):j=H+L*(B-H),P&&(E.isColor&&T>2||(j=Math.round(j*P)/P)),M.push(j)}var _=D.length;if(!_)A=M[0];else{A=D[0];for(var W=0;W<_;W++){D[W];var q=D[W+1],G=M[W];isNaN(G)||(q?A+=G+q:A+=G+" ")}}bg[w.type]($.target,w.property,A,$.transforms),w.currentValue=A,C++}}function b(m){s[m]&&!s.passThrough&&s[m](s)}function v(){s.remaining&&s.remaining!==!0&&s.remaining--}function y(m){var C=s.duration,S=s.delay,x=C-s.endDelay,w=c(m);s.progress=Pr(w/C*100,0,100),s.reversePlayback=w<s.currentTime,a&&h(w),!s.began&&s.currentTime>0&&(s.began=!0,b("begin")),!s.loopBegan&&s.currentTime>0&&(s.loopBegan=!0,b("loopBegin")),w<=S&&s.currentTime!==0&&p(0),(w>=x&&s.currentTime!==C||!C)&&p(C),w>S&&w<x?(s.changeBegan||(s.changeBegan=!0,s.changeCompleted=!1,b("changeBegin")),b("change"),p(w)):s.changeBegan&&(s.changeCompleted=!0,s.changeBegan=!1,b("changeComplete")),s.currentTime=Pr(w,0,C),s.began&&b("update"),m>=C&&(n=0,v(),s.remaining?(t=r,b("loopComplete"),s.loopBegan=!1,s.direction==="alternate"&&u()):(s.paused=!0,s.completed||(s.completed=!0,b("loopComplete"),b("complete"),!s.passThrough&&"Promise"in window&&(i(),l(s)))))}return s.reset=function(){var m=s.direction;s.passThrough=!1,s.currentTime=0,s.progress=0,s.paused=!0,s.began=!1,s.loopBegan=!1,s.changeBegan=!1,s.completed=!1,s.changeCompleted=!1,s.reversePlayback=!1,s.reversed=m==="reverse",s.remaining=s.loop,a=s.children,o=a.length;for(var C=o;C--;)s.children[C].reset();(s.reversed&&s.loop!==!0||m==="alternate"&&s.loop===1)&&s.remaining++,p(s.reversed?s.duration:0)},s._onDocumentVisibility=f,s.set=function(m,C){return yg(m,C),s},s.tick=function(m){r=m,t||(t=r),y((r+(n-t))*hn.speed)},s.seek=function(m){y(c(m))},s.pause=function(){s.paused=!0,f()},s.play=function(){s.paused&&(s.completed&&s.reset(),s.paused=!1,Cr.push(s),f(),Sg())},s.reverse=function(){u(),s.completed=!s.reversed,f()},s.restart=function(){s.reset(),s.play()},s.remove=function(m){var C=kd(m);xg(C,s)},s.reset(),s.autoplay&&s.play(),s}function $f(e,t){for(var n=t.length;n--;)Pd(e,t[n].animatable.target)&&t.splice(n,1)}function xg(e,t){var n=t.animations,r=t.children;$f(e,n);for(var a=r.length;a--;){var o=r[a],i=o.animations;$f(e,i),!i.length&&!o.children.length&&r.splice(a,1)}!n.length&&!r.length&&t.pause()}function oC(e){for(var t=kd(e),n=Cr.length;n--;){var r=Cr[n];xg(t,r)}}function iC(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?Rd(t.easing):null,a=t.grid,o=t.axis,i=t.from||0,l=i==="first",s=i==="center",u=i==="last",c=st.arr(e),f=parseFloat(c?e[0]:e),g=c?parseFloat(e[1]):0,h=jr(c?e[1]:e)||0,p=t.start||0+(c?f:0),b=[],v=0;return function(y,m,C){if(l&&(i=0),s&&(i=(C-1)/2),u&&(i=C-1),!b.length){for(var S=0;S<C;S++){if(!a)b.push(Math.abs(i-S));else{var x=s?(a[0]-1)/2:i%a[0],w=s?(a[1]-1)/2:Math.floor(i/a[0]),$=S%a[0],O=Math.floor(S/a[0]),R=x-$,E=w-O,N=Math.sqrt(R*R+E*E);o==="x"&&(N=-R),o==="y"&&(N=-E),b.push(N)}v=Math.max.apply(Math,b)}r&&(b=b.map(function(D){return r(D/v)*v})),n==="reverse"&&(b=b.map(function(D){return o?D<0?D*-1:-D:Math.abs(v-D)}))}var L=c?(g-f)/v:f;return p+L*(Math.round(b[m]*100)/100)+h}}function lC(e){e===void 0&&(e={});var t=hn(e);return t.duration=0,t.add=function(n,r){var a=Cr.indexOf(t),o=t.children;a>-1&&Cr.splice(a,1);function i(g){g.passThrough=!0}for(var l=0;l<o.length;l++)i(o[l]);var s=ys(n,lu(Md,e));s.targets=s.targets||e.targets;var u=t.duration;s.autoplay=!1,s.direction=t.direction,s.timelineOffset=st.und(r)?u:Dd(r,u),i(t),t.seek(s.timelineOffset);var c=hn(s);i(c),o.push(c);var f=Cg(o,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}hn.version="3.2.1";hn.speed=1;hn.suspendWhenDocumentHidden=!0;hn.running=Cr;hn.remove=oC;hn.get=Fd;hn.set=yg;hn.convertPx=Td;hn.path=K6;hn.setDashoffset=Y6;hn.stagger=iC;hn.timeline=lC;hn.easing=Rd;hn.penner=cg;hn.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};/**
127
+ * @license lucide-react v0.456.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const sC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
132
+ * @license lucide-react v0.456.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */var cC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
137
+ * @license lucide-react v0.456.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const uC=Vn(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:i,...l},s)=>Ar("svg",{ref:s,...cC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wg("lucide",a),...l},[...i.map(([u,c])=>Ar(u,c)),...Array.isArray(o)?o:[o]]));/**
142
+ * @license lucide-react v0.456.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const Na=(e,t)=>{const n=Vn(({className:r,...a},o)=>Ar(uC,{ref:o,iconNode:t,className:wg(`lucide-${sC(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
147
+ * @license lucide-react v0.456.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const dC=Na("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
152
+ * @license lucide-react v0.456.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const fC=Na("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
157
+ * @license lucide-react v0.456.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const Ef=Na("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
162
+ * @license lucide-react v0.456.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const $g=Na("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
167
+ * @license lucide-react v0.456.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const Ur=Na("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
172
+ * @license lucide-react v0.456.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const mC=Na("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
177
+ * @license lucide-react v0.456.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const vC=Na("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var sc={exports:{}};/*!
182
+ Copyright (c) 2018 Jed Watson.
183
+ Licensed under the MIT License (MIT), see
184
+ http://jedwatson.github.io/classnames
185
+ */var Of;function gC(){return Of||(Of=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(o=a(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var l in o)t.call(o,l)&&o[l]&&(i=a(i,l));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(sc)),sc.exports}var hC=gC();const ue=ia(hC);function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je.apply(null,arguments)}function nt(e){"@babel/helpers - typeof";return nt=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},nt(e)}var pC=Symbol.for("react.element"),bC=Symbol.for("react.transitional.element"),yC=Symbol.for("react.fragment");function Eg(e){return e&&nt(e)==="object"&&(e.$$typeof===pC||e.$$typeof===bC)&&e.type===yC}function Oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ce.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Oa(r)):Eg(r)&&r.props?n=n.concat(Oa(r.props.children,t)):n.push(r))}),n}var cu={},CC=function(t){};function SC(e,t){}function xC(e,t){}function wC(){cu={}}function Og(e,t,n){!t&&!cu[n]&&(e(!1,n),cu[n]=!0)}function An(e,t){Og(SC,e,t)}function $C(e,t){Og(xC,e,t)}An.preMessage=CC;An.resetWarned=wC;An.noteOnce=$C;function EC(e,t){if(nt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ig(e){var t=EC(e,"string");return nt(t)=="symbol"?t:t+""}function K(e,t,n){return(t=Ig(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function If(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?If(Object(n),!0).forEach(function(r){K(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ai(e){return e instanceof HTMLElement||e instanceof SVGElement}function Mg(e){return e&&nt(e)==="object"&&ai(e.nativeElement)?e.nativeElement:ai(e)?e:null}function vl(e){var t=Mg(e);if(t)return t;if(e instanceof ce.Component){var n;return(n=V0.findDOMNode)===null||n===void 0?void 0:n.call(V0,e)}return null}var cc={exports:{}},Wt={};/**
186
+ * @license React
187
+ * react-is.production.min.js
188
+ *
189
+ * Copyright (c) Facebook, Inc. and its affiliates.
190
+ *
191
+ * This source code is licensed under the MIT license found in the
192
+ * LICENSE file in the root directory of this source tree.
193
+ */var Mf;function OC(){if(Mf)return Wt;Mf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function b(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case n:case a:case r:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case l:case i:case s:case g:case f:case o:return v;default:return y}}case t:return y}}}return Wt.ContextConsumer=i,Wt.ContextProvider=o,Wt.Element=e,Wt.ForwardRef=s,Wt.Fragment=n,Wt.Lazy=g,Wt.Memo=f,Wt.Portal=t,Wt.Profiler=a,Wt.StrictMode=r,Wt.Suspense=u,Wt.SuspenseList=c,Wt.isAsyncMode=function(){return!1},Wt.isConcurrentMode=function(){return!1},Wt.isContextConsumer=function(v){return b(v)===i},Wt.isContextProvider=function(v){return b(v)===o},Wt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Wt.isForwardRef=function(v){return b(v)===s},Wt.isFragment=function(v){return b(v)===n},Wt.isLazy=function(v){return b(v)===g},Wt.isMemo=function(v){return b(v)===f},Wt.isPortal=function(v){return b(v)===t},Wt.isProfiler=function(v){return b(v)===a},Wt.isStrictMode=function(v){return b(v)===r},Wt.isSuspense=function(v){return b(v)===u},Wt.isSuspenseList=function(v){return b(v)===c},Wt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===a||v===r||v===u||v===c||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===f||v.$$typeof===o||v.$$typeof===i||v.$$typeof===s||v.$$typeof===p||v.getModuleId!==void 0)},Wt.typeOf=b,Wt}var Rf;function IC(){return Rf||(Rf=1,cc.exports=OC()),cc.exports}var uc=IC();function Cs(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var MC=Number(Hb.split(".")[0]),_d=function(t,n){typeof t=="function"?t(n):nt(t)==="object"&&t&&"current"in t&&(t.current=n)},ar=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(o){n.forEach(function(i){_d(i,o)})}},wi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Cs(function(){return ar.apply(void 0,n)},n,function(a,o){return a.length!==o.length||a.every(function(i,l){return i!==o[l]})})},Ta=function(t){var n,r;if(!t)return!1;if(Hd(t)&&MC>=19)return!0;var a=uc.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==uc.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==uc.ForwardRef)};function Hd(e){return l2(e)&&!Eg(e)}var cA=function(t){return Hd(t)&&Ta(t)},$i=function(t){if(t&&Hd(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},uu=d.createContext(null);function RC(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),a=d.useRef([]),o=d.useContext(uu),i=d.useCallback(function(l,s,u){r.current+=1;var c=r.current;a.current.push({size:l,element:s,data:u}),Promise.resolve().then(function(){c===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(l,s,u)},[n,o]);return d.createElement(uu.Provider,{value:i},t)}var Rg=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];n.call(r,i[1],i[0])}},t})()})(),du=typeof window<"u"&&typeof document<"u"&&window.document===document,_l=(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")()})(),PC=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_l):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),NC=2;function TC(e,t){var n=!1,r=!1,a=0;function o(){n&&(n=!1,e()),r&&l()}function i(){PC(o)}function l(){var s=Date.now();if(n){if(s-a<NC)return;r=!0}else n=!0,r=!1,setTimeout(i,t);a=s}return l}var AC=20,FC=["top","right","bottom","left","width","height","size","weight"],DC=typeof MutationObserver<"u",LC=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=TC(this.refresh.bind(this),AC)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!du||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),DC?(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(){!du||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=FC.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Pg=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e}),fo=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||_l}),Ng=Ss(0,0,0,0);function Hl(e){return parseFloat(e)||0}function Pf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var o=e["border-"+a+"-width"];return r+Hl(o)},0)}function kC(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var o=a[r],i=e["padding-"+o];n[o]=Hl(i)}return n}function _C(e){var t=e.getBBox();return Ss(0,0,t.width,t.height)}function HC(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ng;var r=fo(e).getComputedStyle(e),a=kC(r),o=a.left+a.right,i=a.top+a.bottom,l=Hl(r.width),s=Hl(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==t&&(l-=Pf(r,"left","right")+o),Math.round(s+i)!==n&&(s-=Pf(r,"top","bottom")+i)),!zC(e)){var u=Math.round(l+o)-t,c=Math.round(s+i)-n;Math.abs(u)!==1&&(l-=u),Math.abs(c)!==1&&(s-=c)}return Ss(a.left,a.top,l,s)}var jC=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof fo(e).SVGGraphicsElement}:function(e){return e instanceof fo(e).SVGElement&&typeof e.getBBox=="function"}})();function zC(e){return e===fo(e).document.documentElement}function BC(e){return du?jC(e)?_C(e):HC(e):Ng}function VC(e){var t=e.x,n=e.y,r=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return Pg(i,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),i}function Ss(e,t,n,r){return{x:e,y:t,width:n,height:r}}var WC=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ss(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=BC(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})(),qC=(function(){function e(t,n){var r=VC(n);Pg(this,{target:t,contentRect:r})}return e})(),UC=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Rg,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof fo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new WC(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 fo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new qC(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Tg=typeof WeakMap<"u"?new WeakMap:new Rg,Ag=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=LC.getInstance(),r=new UC(t,n,this);Tg.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Ag.prototype[e]=function(){var t;return(t=Tg.get(this))[e].apply(t,arguments)}});var YC=(function(){return typeof _l.ResizeObserver<"u"?_l.ResizeObserver:Ag})(),Qr=new Map;function GC(e){e.forEach(function(t){var n,r=t.target;(n=Qr.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var Fg=new YC(GC);function KC(e,t){Qr.has(e)||(Qr.set(e,new Set),Fg.observe(e)),Qr.get(e).add(t)}function XC(e,t){Qr.has(e)&&(Qr.get(e).delete(t),Qr.get(e).size||(Fg.unobserve(e),Qr.delete(e)))}function cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ig(r.key),r)}}function un(e,t,n){return t&&Nf(e.prototype,t),n&&Nf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oi(e,t){return oi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},oi(e,t)}function sa(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&&oi(e,t)}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ii(e)}function jd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jd=function(){return!!e})()}function It(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZC(e,t){if(t&&(nt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return It(e)}function ca(e){var t=jd();return function(){var n,r=ii(e);if(t){var a=ii(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ZC(this,n)}}var QC=(function(e){sa(n,e);var t=ca(n);function n(){return cn(this,n),t.apply(this,arguments)}return un(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function JC(e,t){var n=e.children,r=e.disabled,a=d.useRef(null),o=d.useRef(null),i=d.useContext(uu),l=typeof n=="function",s=l?n(a):n,u=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!l&&d.isValidElement(s)&&Ta(s),f=c?$i(s):null,g=wi(f,a),h=function(){var y;return vl(a.current)||(a.current&&nt(a.current)==="object"?vl((y=a.current)===null||y===void 0?void 0:y.nativeElement):null)||vl(o.current)};d.useImperativeHandle(t,function(){return h()});var p=d.useRef(e);p.current=e;var b=d.useCallback(function(v){var y=p.current,m=y.onResize,C=y.data,S=v.getBoundingClientRect(),x=S.width,w=S.height,$=v.offsetWidth,O=v.offsetHeight,R=Math.floor(x),E=Math.floor(w);if(u.current.width!==R||u.current.height!==E||u.current.offsetWidth!==$||u.current.offsetHeight!==O){var N={width:R,height:E,offsetWidth:$,offsetHeight:O};u.current=N;var L=$===Math.round(x)?x:$,D=O===Math.round(w)?w:O,P=Z(Z({},N),{},{offsetWidth:L,offsetHeight:D});i==null||i(P,v,C),m&&Promise.resolve().then(function(){m(P,v)})}},[]);return d.useEffect(function(){var v=h();return v&&!r&&KC(v,b),function(){return XC(v,b)}},[a.current,r]),d.createElement(QC,{ref:o},c?d.cloneElement(s,{ref:g}):s)}var e5=d.forwardRef(JC),t5="rc-observer-key";function n5(e,t){var n=e.children,r=typeof n=="function"?[n]:Oa(n);return r.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(t5,"-").concat(o);return d.createElement(e5,je({},e,{key:i,ref:o===0?t:void 0}),a)})}var Lr=d.forwardRef(n5);Lr.Collection=RC;function fu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r5(e){if(Array.isArray(e))return fu(e)}function Dg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zd(e,t){if(e){if(typeof e=="string")return fu(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fu(e,t):void 0}}function a5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
194
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e){return r5(e)||Dg(e)||zd(e)||a5()}var Lg=function(t){return+setTimeout(t,16)},kg=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Lg=function(t){return window.requestAnimationFrame(t)},kg=function(t){return window.cancelAnimationFrame(t)});var Tf=0,Bd=new Map;function _g(e){Bd.delete(e)}var Ct=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Tf+=1;var r=Tf;function a(o){if(o===0)_g(r),t();else{var i=Lg(function(){a(o-1)});Bd.set(r,i)}}return a(n),r};Ct.cancel=function(e){var t=Bd.get(e);return _g(e),kg(t)};function Hg(e){if(Array.isArray(e))return e}function o5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,a=c}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}function jg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
195
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ee(e,t){return Hg(e)||o5(e,t)||zd(e,t)||jg()}function li(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Zn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function i5(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Af="data-rc-order",Ff="data-rc-priority",l5="rc-util-key",mu=new Map;function zg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):l5}function xs(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function s5(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Vd(e){return Array.from((mu.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Bg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Zn())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=s5(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(Af,i),l&&o&&s.setAttribute(Ff,"".concat(o)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=xs(t),c=u.firstChild;if(r){if(l){var f=(t.styles||Vd(u)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(Af)))return!1;var h=Number(g.getAttribute(Ff)||0);return o>=h});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,c)}else u.appendChild(s);return s}function Vg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xs(t);return(t.styles||Vd(n)).find(function(r){return r.getAttribute(zg(t))===e})}function si(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Vg(e,t);if(n){var r=xs(t);r.removeChild(n)}}function c5(e,t){var n=mu.get(e);if(!n||!i5(document,n)){var r=Bg("",t),a=r.parentNode;mu.set(e,a),e.removeChild(r)}}function zr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=xs(n),a=Vd(r),o=Z(Z({},n),{},{styles:a});c5(r,o);var i=Vg(t,o);if(i){var l,s;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=o.csp)===null||s===void 0?void 0:s.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var c=Bg(e,o);return c.setAttribute(zg(o),t),c}function u5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wt(e,t){if(e==null)return{};var n,r,a=u5(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function jl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(o);if(An(!s,"Warning: There may be circular references"),s)return!1;if(o===i)return!0;if(n&&l>1)return!1;r.add(o);var u=l+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var c=0;c<o.length;c++)if(!a(o[c],i[c],u))return!1;return!0}if(o&&i&&nt(o)==="object"&&nt(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(g){return a(o[g],i[g],u)})}return!1}return a(e,t)}var d5="%";function vu(e){return e.join(d5)}var f5=(function(){function e(t){cn(this,e),K(this,"instanceId",void 0),K(this,"cache",new Map),K(this,"extracted",new Set),this.instanceId=t}return un(e,[{key:"get",value:function(n){return this.opGet(vu(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(vu(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),o=r(a);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e})(),mo="data-token-hash",xr="data-css-hash",Jr="__cssinjs_instance__";function m5(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(xr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[Jr]=a[Jr]||e,a[Jr]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(xr,"]"))).forEach(function(a){var o=a.getAttribute(xr);if(r[o]){if(a[Jr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else r[o]=!0})}return new f5(e)}var Ei=d.createContext({hashPriority:"low",cache:m5(),defaultCache:!0});function v5(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Wd=(function(){function e(){cn(this,e),K(this,"cache",void 0),K(this,"keys",void 0),K(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return un(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var s;i=(s=i)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,c){var f=ee(u,2),g=f[1];return a.internalGet(c)[1]<g?[c,a.internalGet(c)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=ee(o,1),l=i[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(u,c){if(c===n.length-1)s.set(u,{value:[r,a.cacheCallTimes++]});else{var f=s.get(u);f?f.map||(f.map=new Map):s.set(u,{map:new Map}),s=s.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var o;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!v5(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();K(Wd,"MAX_CACHE_SIZE",20);K(Wd,"MAX_CACHE_OFFSET",5);var Df=0,Wg=(function(){function e(t){cn(this,e),K(this,"derivatives",void 0),K(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Df,t.length===0&&(t.length>0,void 0),Df+=1}return un(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),dc=new Wd;function gu(e){var t=Array.isArray(e)?e:[e];return dc.has(t)||dc.set(t,new Wg(t)),dc.get(t)}var g5=new WeakMap,fc={};function h5(e,t){for(var n=g5,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(fc)||n.set(fc,e()),n.get(fc)}var Lf=new WeakMap;function Zo(e){var t=Lf.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Wg?t+=r.id:r&&nt(r)==="object"?t+=Zo(r):t+=r}),t=li(t),Lf.set(e,t)),t}function kf(e,t){return li("".concat(t,"_").concat(Zo(e)))}var hu=Zn();function ve(e){return typeof e=="number"?"".concat(e,"px"):e}function zl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=Z(Z({},r),{},K(K({},mo,t),xr,n)),i=Object.keys(o).map(function(l){var s=o[l];return s?"".concat(l,'="').concat(s,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var gl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},p5=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=ee(a,2),i=o[0],l=o[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},qg=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var l,s,u=ee(i,2),c=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[c])o[c]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[c])){var g,h=gl(c,r==null?void 0:r.prefix);a[h]=typeof f=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[c])?"".concat(f,"px"):String(f),o[c]="var(".concat(h,")")}}),[o,p5(a,n,{scope:r==null?void 0:r.scope})]},_f=Zn()?d.useLayoutEffect:d.useEffect,Nt=function(t,n){var r=d.useRef(!0);_f(function(){return t(r.current)},n),_f(function(){return r.current=!1,function(){r.current=!0}},[])},no=function(t,n){Nt(function(r){if(!r)return t()},n)},b5=Z({},d),Hf=b5.useInsertionEffect,y5=function(t,n,r){d.useMemo(t,r),Nt(function(){return n(!0)},r)},C5=Hf?function(e,t,n){return Hf(function(){return e(),t()},n)}:y5,S5=Z({},d),x5=S5.useInsertionEffect,w5=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},$5=function(){return function(t){t()}},E5=typeof x5<"u"?w5:$5;function qd(e,t,n,r,a){var o=d.useContext(Ei),i=o.cache,l=[e].concat(Ne(t)),s=vu(l),u=E5([s]),c=function(p){i.opUpdate(s,function(b){var v=b||[void 0,void 0],y=ee(v,2),m=y[0],C=m===void 0?0:m,S=y[1],x=S,w=x||n(),$=[C,w];return p?p($):$})};d.useMemo(function(){c()},[s]);var f=i.opGet(s),g=f[1];return C5(function(){a==null||a(g)},function(h){return c(function(p){var b=ee(p,2),v=b[0],y=b[1];return h&&v===0&&(a==null||a(g)),[v+1,y]}),function(){i.opUpdate(s,function(p){var b=p||[],v=ee(b,2),y=v[0],m=y===void 0?0:y,C=v[1],S=m-1;return S===0?(u(function(){(h||!i.opGet(s))&&(r==null||r(C,!1))}),null):[m-1,C]})}},[s]),g}var O5={},I5="css",ma=new Map;function M5(e){ma.set(e,(ma.get(e)||0)+1)}function R5(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(mo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Jr]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var P5=0;function N5(e,t){ma.set(e,(ma.get(e)||0)-1);var n=new Set;ma.forEach(function(r,a){r<=0&&n.add(a)}),ma.size-n.size>P5&&n.forEach(function(r){R5(r,t),ma.delete(r)})}var T5=function(t,n,r,a){var o=r.getDerivativeToken(t),i=Z(Z({},o),n);return a&&(i=a(i)),i},Ug="token";function A5(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=gn(Ei),a=r.cache.instanceId,o=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,u=s===void 0?O5:s,c=n.formatToken,f=n.getComputedToken,g=n.cssVar,h=h5(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),p=Zo(h),b=Zo(u),v=g?Zo(g):"",y=qd(Ug,[l,e.id,p,b,v],function(){var m,C=f?f(h,u,e):T5(h,u,e,c),S=Z({},C),x="";if(g){var w=qg(C,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),$=ee(w,2);C=$[0],x=$[1]}var O=kf(C,l);C._tokenKey=O,S._tokenKey=kf(S,l);var R=(m=g==null?void 0:g.key)!==null&&m!==void 0?m:O;C._themeKey=R,M5(R);var E="".concat(I5,"-").concat(li(O));return C._hashId=E,[C,E,S,x,(g==null?void 0:g.key)||""]},function(m){N5(m[0]._themeKey,a)},function(m){var C=ee(m,4),S=C[0],x=C[3];if(g&&x){var w=zr(x,li("css-variables-".concat(S._themeKey)),{mark:xr,prepend:"queue",attachTo:o,priority:-999});w[Jr]=a,w.setAttribute(mo,S._themeKey)}});return y}var F5=function(t,n,r){var a=ee(t,5),o=a[2],i=a[3],l=a[4],s=r||{},u=s.plain;if(!i)return null;var c=o._tokenKey,f=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=zl(i,l,c,g,u);return[f,c,h]},D5={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},Yg="comm",Gg="rule",Kg="decl",L5="@import",k5="@namespace",_5="@keyframes",H5="@layer",Xg=Math.abs,Ud=String.fromCharCode;function Zg(e){return e.trim()}function hl(e,t,n){return e.replace(t,n)}function j5(e,t,n){return e.indexOf(t,n)}function ro(e,t){return e.charCodeAt(t)|0}function vo(e,t,n){return e.slice(t,n)}function Mr(e){return e.length}function z5(e){return e.length}function Hi(e,t){return t.push(e),e}var ws=1,go=1,Qg=0,gr=0,Sn=0,Eo="";function Yd(e,t,n,r,a,o,i,l){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ws,column:go,length:i,return:"",siblings:l}}function B5(){return Sn}function V5(){return Sn=gr>0?ro(Eo,--gr):0,go--,Sn===10&&(go=1,ws--),Sn}function wr(){return Sn=gr<Qg?ro(Eo,gr++):0,go++,Sn===10&&(go=1,ws++),Sn}function ea(){return ro(Eo,gr)}function pl(){return gr}function $s(e,t){return vo(Eo,e,t)}function ci(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 W5(e){return ws=go=1,Qg=Mr(Eo=e),gr=0,[]}function q5(e){return Eo="",e}function mc(e){return Zg($s(gr-1,pu(e===91?e+2:e===40?e+1:e)))}function U5(e){for(;(Sn=ea())&&Sn<33;)wr();return ci(e)>2||ci(Sn)>3?"":" "}function Y5(e,t){for(;--t&&wr()&&!(Sn<48||Sn>102||Sn>57&&Sn<65||Sn>70&&Sn<97););return $s(e,pl()+(t<6&&ea()==32&&wr()==32))}function pu(e){for(;wr();)switch(Sn){case e:return gr;case 34:case 39:e!==34&&e!==39&&pu(Sn);break;case 40:e===41&&pu(e);break;case 92:wr();break}return gr}function G5(e,t){for(;wr()&&e+Sn!==57;)if(e+Sn===84&&ea()===47)break;return"/*"+$s(t,gr-1)+"*"+Ud(e===47?e:wr())}function K5(e){for(;!ci(ea());)wr();return $s(e,gr)}function X5(e){return q5(bl("",null,null,null,[""],e=W5(e),0,[0],e))}function bl(e,t,n,r,a,o,i,l,s){for(var u=0,c=0,f=i,g=0,h=0,p=0,b=1,v=1,y=1,m=0,C="",S=a,x=o,w=r,$=C;v;)switch(p=m,m=wr()){case 40:if(p!=108&&ro($,f-1)==58){j5($+=hl(mc(m),"&","&\f"),"&\f",Xg(u?l[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:$+=mc(m);break;case 9:case 10:case 13:case 32:$+=U5(p);break;case 92:$+=Y5(pl()-1,7);continue;case 47:switch(ea()){case 42:case 47:Hi(Z5(G5(wr(),pl()),t,n,s),s),(ci(p||1)==5||ci(ea()||1)==5)&&Mr($)&&vo($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*b:l[u++]=Mr($)*y;case 125*b:case 59:case 0:switch(m){case 0:case 125:v=0;case 59+c:y==-1&&($=hl($,/\f/g,"")),h>0&&(Mr($)-f||b===0&&p===47)&&Hi(h>32?zf($+";",r,n,f-1,s):zf(hl($," ","")+";",r,n,f-2,s),s);break;case 59:$+=";";default:if(Hi(w=jf($,t,n,u,c,a,l,C,S=[],x=[],f,o),o),m===123)if(c===0)bl($,t,w,w,S,o,f,l,x);else{switch(g){case 99:if(ro($,3)===110)break;case 108:if(ro($,2)===97)break;default:c=0;case 100:case 109:case 115:}c?bl(e,w,w,r&&Hi(jf(e,w,w,0,0,a,l,C,a,S=[],f,x),x),a,x,f,l,r?S:x):bl($,w,w,w,[""],x,0,l,x)}}u=c=h=0,b=y=1,C=$="",f=i;break;case 58:f=1+Mr($),h=p;default:if(b<1){if(m==123)--b;else if(m==125&&b++==0&&V5()==125)continue}switch($+=Ud(m),m*b){case 38:y=c>0?1:($+="\f",-1);break;case 44:l[u++]=(Mr($)-1)*y,y=1;break;case 64:ea()===45&&($+=mc(wr())),g=ea(),c=f=Mr(C=$+=K5(pl())),m++;break;case 45:p===45&&Mr($)==2&&(b=0)}}return o}function jf(e,t,n,r,a,o,i,l,s,u,c,f){for(var g=a-1,h=a===0?o:[""],p=z5(h),b=0,v=0,y=0;b<r;++b)for(var m=0,C=vo(e,g+1,g=Xg(v=i[b])),S=e;m<p;++m)(S=Zg(v>0?h[m]+" "+C:hl(C,/&\f/g,h[m])))&&(s[y++]=S);return Yd(e,t,n,a===0?Gg:l,s,u,c,f)}function Z5(e,t,n,r){return Yd(e,t,n,Yg,Ud(B5()),vo(e,2,-2),0,r)}function zf(e,t,n,r,a){return Yd(e,t,n,Kg,vo(e,0,r),vo(e,r+1,-1),r,a)}function bu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Q5(e,t,n,r){switch(e.type){case H5:if(e.children.length)break;case L5:case k5:case Kg:return e.return=e.return||e.value;case Yg:return"";case _5:return e.return=e.value+"{"+bu(e.children,r)+"}";case Gg:if(!Mr(e.value=e.props.join(",")))return""}return Mr(n=bu(e.children,r))?e.return=e.value+"{"+n+"}":""}var Bf="data-ant-cssinjs-cache-path",Jg="_FILE_STYLE__",wa,eh=!0;function J5(){if(!wa&&(wa={},Zn())){var e=document.createElement("div");e.className=Bf,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(a){var o=a.split(":"),i=ee(o,2),l=i[0],s=i[1];wa[l]=s});var n=document.querySelector("style[".concat(Bf,"]"));if(n){var r;eh=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function eS(e){return J5(),!!wa[e]}function tS(e){var t=wa[e],n=null;if(t&&Zn())if(eh)n=Jg;else{var r=document.querySelector("style[".concat(xr,'="').concat(wa[e],'"]'));r?n=r.innerHTML:delete wa[e]}return[n,t]}var nS="_skip_check_",th="_multi_value_";function yl(e){var t=bu(X5(e),Q5);return t.replace(/\{%%%\:[^;];}/g,";")}function rS(e){return nt(e)==="object"&&e&&(nS in e||th in e)}function Vf(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(i){var l,s=i.trim().split(/\s+/),u=s[0]||"",c=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(c).concat(a).concat(u.slice(c.length)),[u].concat(Ne(s.slice(1))).join(" ")});return o.join(",")}var aS=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,c=n.transformers,f=c===void 0?[]:c;n.linters;var g="",h={};function p(y){var m=y.getName(l);if(!h[m]){var C=e(y.style,n,{root:!1,parentSelectors:i}),S=ee(C,1),x=S[0];h[m]="@keyframes ".concat(y.getName(l)).concat(x)}}function b(y){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(C){Array.isArray(C)?b(C,m):C&&m.push(C)}),m}var v=b(Array.isArray(t)?t:[t]);return v.forEach(function(y){var m=typeof y=="string"&&!a?{}:y;if(typeof m=="string")g+="".concat(m,`
196
+ `);else if(m._keyframe)p(m);else{var C=f.reduce(function(S,x){var w;return(x==null||(w=x.visit)===null||w===void 0?void 0:w.call(x,S))||S},m);Object.keys(C).forEach(function(S){var x=C[S];if(nt(x)==="object"&&x&&(S!=="animationName"||!x._keyframe)&&!rS(x)){var w=!1,$=S.trim(),O=!1;(a||o)&&l?$.startsWith("@")?w=!0:$==="&"?$=Vf("",l,u):$=Vf(S,l,u):a&&!l&&($==="&"||$==="")&&($="",O=!0);var R=e(x,n,{root:O,injectHash:w,parentSelectors:[].concat(Ne(i),[$])}),E=ee(R,2),N=E[0],L=E[1];h=Z(Z({},h),L),g+="".concat($).concat(N)}else{let M=function(I,A){var T=I.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),j=A;!D5[I]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),I==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(p(A),j=A.getName(l)),g+="".concat(T,":").concat(j,";")};var D,P=(D=x==null?void 0:x.value)!==null&&D!==void 0?D:x;nt(x)==="object"&&x!==null&&x!==void 0&&x[th]&&Array.isArray(P)?P.forEach(function(I){M(S,I)}):M(S,P)}})}}),a?s&&(g&&(g="@layer ".concat(s.name," {").concat(g,"}")),s.dependencies&&(h["@layer ".concat(s.name)]=s.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(s.name,";")}).join(`
197
+ `))):g="{".concat(g,"}"),[g,h]};function nh(e,t){return li("".concat(e.join("%")).concat(t))}function oS(){return null}var rh="style";function yu(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,u=s===void 0?0:s,c=d.useContext(Ei),f=c.autoClear;c.mock;var g=c.defaultCache,h=c.hashPriority,p=c.container,b=c.ssrInline,v=c.transformers,y=c.linters,m=c.cache,C=c.layer,S=n._tokenKey,x=[S];C&&x.push("layer"),x.push.apply(x,Ne(r));var w=hu,$=qd(rh,x,function(){var L=x.join("|");if(eS(L)){var D=tS(L),P=ee(D,2),M=P[0],I=P[1];if(M)return[M,S,I,{},l,u]}var A=t(),T=aS(A,{hashId:a,hashPriority:h,layer:C?o:void 0,path:r.join("-"),transformers:v,linters:y}),j=ee(T,2),B=j[0],H=j[1],_=yl(B),W=nh(x,_);return[_,S,W,H,l,u]},function(L,D){var P=ee(L,3),M=P[2];(D||f)&&hu&&si(M,{mark:xr,attachTo:p})},function(L){var D=ee(L,4),P=D[0];D[1];var M=D[2],I=D[3];if(w&&P!==Jg){var A={mark:xr,prepend:C?!1:"queue",attachTo:p,priority:u},T=typeof i=="function"?i():i;T&&(A.csp={nonce:T});var j=[],B=[];Object.keys(I).forEach(function(_){_.startsWith("@layer")?j.push(_):B.push(_)}),j.forEach(function(_){zr(yl(I[_]),"_layer-".concat(_),Z(Z({},A),{},{prepend:!0}))});var H=zr(P,M,A);H[Jr]=m.instanceId,H.setAttribute(mo,S),B.forEach(function(_){zr(yl(I[_]),"_effect-".concat(_),A)})}}),O=ee($,3),R=O[0],E=O[1],N=O[2];return function(L){var D;return!b||w||!g?D=d.createElement(oS,null):D=d.createElement("style",je({},K(K({},mo,E),xr,N),{dangerouslySetInnerHTML:{__html:R}})),d.createElement(d.Fragment,null,D,L)}}var iS=function(t,n,r){var a=ee(t,6),o=a[0],i=a[1],l=a[2],s=a[3],u=a[4],c=a[5],f=r||{},g=f.plain;if(u)return null;var h=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return h=zl(o,i,l,p,g),s&&Object.keys(s).forEach(function(b){if(!n[b]){n[b]=!0;var v=yl(s[b]),y=zl(v,i,"_effect-".concat(b),p,g);b.startsWith("@layer")?h=y+h:h+=y}}),[c,l,h]},ah="cssVar",lS=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,l=t.token,s=t.scope,u=s===void 0?"":s,c=gn(Ei),f=c.cache.instanceId,g=c.container,h=l._tokenKey,p=[].concat(Ne(t.path),[r,u,h]),b=qd(ah,p,function(){var v=n(),y=qg(v,r,{prefix:a,unitless:o,ignore:i,scope:u}),m=ee(y,2),C=m[0],S=m[1],x=nh(p,S);return[C,S,x,r]},function(v){var y=ee(v,3),m=y[2];hu&&si(m,{mark:xr,attachTo:g})},function(v){var y=ee(v,3),m=y[1],C=y[2];if(m){var S=zr(m,C,{mark:xr,prepend:"queue",attachTo:g,priority:-999});S[Jr]=f,S.setAttribute(mo,r)}});return b},sS=function(t,n,r){var a=ee(t,4),o=a[1],i=a[2],l=a[3],s=r||{},u=s.plain;if(!o)return null;var c=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},g=zl(o,l,i,f,u);return[c,i,g]};K(K(K({},rh,iS),Ug,F5),ah,sS);var Gt=(function(){function e(t,n){cn(this,e),K(this,"name",void 0),K(this,"style",void 0),K(this,"_keyframe",!0),this.name=t,this.style=n}return un(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function Ba(e){return e.notSplit=!0,e}Ba(["borderTop","borderBottom"]),Ba(["borderTop"]),Ba(["borderBottom"]),Ba(["borderLeft","borderRight"]),Ba(["borderLeft"]),Ba(["borderRight"]);var Gd=Co({});function oh(e){return Hg(e)||Dg(e)||zd(e)||jg()}function mr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function ih(e,t,n,r){if(!t.length)return n;var a=oh(t),o=a[0],i=a.slice(1),l;return!e&&typeof o=="number"?l=[]:Array.isArray(e)?l=Ne(e):l=Z({},e),r&&n===void 0&&i.length===1?delete l[o][i[0]]:l[o]=ih(l[o],i,n,r),l}function fr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!mr(e,t.slice(0,-1))?e:ih(e,t,n,r)}function cS(e){return nt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wf(e){return Array.isArray(e)?[]:{}}var uS=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Za(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Wf(t[0]);return t.forEach(function(a){function o(i,l){var s=new Set(l),u=mr(a,i),c=Array.isArray(u);if(c||cS(u)){if(!s.has(u)){s.add(u);var f=mr(r,i);c?r=fr(r,i,[]):(!f||nt(f)!=="object")&&(r=fr(r,i,Wf(u))),uS(u).forEach(function(g){o([].concat(Ne(i),[g]),s)})}}else r=fr(r,i,u)}o([])}),r}function dS(){}const fS=d.createContext({}),Kd=()=>{const e=()=>{};return e.deprecated=dS,e},lh=Co(void 0);var mS={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"},vS={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},gS=Z(Z({},vS),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const sh={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Bl={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"]},gS),timePickerLocale:Object.assign({},sh)},Jn="${label} is not a valid ${type}",ra={locale:"en",Pagination:mS,DatePicker:Bl,TimePicker:sh,Calendar:Bl,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:Jn,method:Jn,array:Jn,object:Jn,number:Jn,date:Jn,boolean:Jn,integer:Jn,float:Jn,regexp:Jn,email:Jn,url:Jn,hex:Jn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Cl=Object.assign({},ra.Modal),Sl=[];const qf=()=>Sl.reduce((e,t)=>Object.assign(Object.assign({},e),t),ra.Modal);function hS(e){if(e){const t=Object.assign({},e);return Sl.push(t),Cl=qf(),()=>{Sl=Sl.filter(n=>n!==t),Cl=qf()}}Cl=Object.assign({},ra.Modal)}function uA(){return Cl}const Xd=Co(void 0),Aa=(e,t)=>{const n=d.useContext(Xd),r=d.useMemo(()=>{var o;const i=t||ra[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),a=d.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?ra.locale:o},[n]);return[r,a]},pS="internalMark",bS=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>hS(t==null?void 0:t.Modal),[t]);const a=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Xd.Provider,{value:a},n)},ch={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"},ui=Object.assign(Object.assign({},ch),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
198
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
199
+ '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}),Nn=Math.round;function vc(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Uf=(e,t,n)=>n===0?e:e/100;function _o(e,t){const n=t||255;return e>n?n:e<0?0:e}class Dt{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof Dt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=_o(t.r),this.g=_o(t.g),this.b=_o(t.b),this.a=typeof t.a=="number"?_o(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const i=o/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Nn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=l=>(r[l]-this[l])*a+this[l],i={r:Nn(o("r")),g:Nn(o("g")),b:Nn(o("b")),a:Nn(o("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>Nn((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Nn(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Nn(this.getSaturation()*100),r=Nn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=_o(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const g=Nn(r*255);this.r=g,this.g=g,this.b=g}let o=0,i=0,l=0;const s=t/60,u=(1-Math.abs(2*r-1))*n,c=u*(1-Math.abs(s%2-1));s>=0&&s<1?(o=u,i=c):s>=1&&s<2?(o=c,i=u):s>=2&&s<3?(i=u,l=c):s>=3&&s<4?(i=c,l=u):s>=4&&s<5?(o=c,l=u):s>=5&&s<6&&(o=u,l=c);const f=r-u/2;this.r=Nn((o+f)*255),this.g=Nn((i+f)*255),this.b=Nn((l+f)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=Nn(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const i=t/60,l=Math.floor(i),s=i-l,u=Nn(r*(1-n)*255),c=Nn(r*(1-n*s)*255),f=Nn(r*(1-n*(1-s))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=c,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=c;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=c;break}}fromHsvString(t){const n=vc(t,Uf);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=vc(t,Uf);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=vc(t,(r,a)=>a.includes("%")?Nn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var ji=2,Yf=.16,yS=.05,CS=.05,SS=.15,uh=5,dh=4,xS=[{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 Gf(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ji*t:Math.round(e.h)+ji*t:r=n?Math.round(e.h)+ji*t:Math.round(e.h)-ji*t,r<0?r+=360:r>=360&&(r-=360),r}function Kf(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Yf*t:t===dh?r=e.s+Yf:r=e.s+yS*t,r>1&&(r=1),n&&t===uh&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Xf(e,t,n){var r;return n?r=e.v+CS*t:r=e.v-SS*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function di(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Dt(e),a=r.toHsv(),o=uh;o>0;o-=1){var i=new Dt({h:Gf(a,o,!0),s:Kf(a,o,!0),v:Xf(a,o,!0)});n.push(i)}n.push(r);for(var l=1;l<=dh;l+=1){var s=new Dt({h:Gf(a,l),s:Kf(a,l),v:Xf(a,l)});n.push(s)}return t.theme==="dark"?xS.map(function(u){var c=u.index,f=u.amount;return new Dt(t.backgroundColor||"#141414").mix(n[c],f).toHexString()}):n.map(function(u){return u.toHexString()})}var gc={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"},Cu=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Cu.primary=Cu[5];var Su=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Su.primary=Su[5];var xu=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];xu.primary=xu[5];var wu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];wu.primary=wu[5];var $u=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];$u.primary=$u[5];var Eu=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Eu.primary=Eu[5];var Ou=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ou.primary=Ou[5];var Iu=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Iu.primary=Iu[5];var Vl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Vl.primary=Vl[5];var Mu=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Mu.primary=Mu[5];var Ru=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ru.primary=Ru[5];var Pu=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Pu.primary=Pu[5];var Nu=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Nu.primary=Nu[5];var hc={red:Cu,volcano:Su,orange:xu,gold:wu,yellow:$u,lime:Eu,green:Ou,cyan:Iu,blue:Vl,geekblue:Mu,purple:Ru,magenta:Pu,grey:Nu};function wS(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:o,colorInfo:i,colorPrimary:l,colorBgBase:s,colorTextBase:u}=e,c=t(l),f=t(r),g=t(a),h=t(o),p=t(i),b=n(s,u),v=e.colorLink||e.colorInfo,y=t(v),m=new Dt(h[1]).mix(new Dt(h[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[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:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:m,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Dt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const $S=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function ES(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},$S(r))}const OS=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function xl(e){return(e+8)/e}function IS(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:xl(n)}))}const MS=e=>{const t=IS(e),n=t.map(c=>c.size),r=t.map(c=>c.lineHeight),a=n[1],o=n[0],i=n[2],l=r[1],s=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(l*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(s*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function RS(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const cr=(e,t)=>new Dt(e).setA(t).toRgbString(),Ho=(e,t)=>new Dt(e).darken(t).toHexString(),PS=e=>{const t=di(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]}},NS=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:cr(r,.88),colorTextSecondary:cr(r,.65),colorTextTertiary:cr(r,.45),colorTextQuaternary:cr(r,.25),colorFill:cr(r,.15),colorFillSecondary:cr(r,.06),colorFillTertiary:cr(r,.04),colorFillQuaternary:cr(r,.02),colorBgSolid:cr(r,1),colorBgSolidHover:cr(r,.75),colorBgSolidActive:cr(r,.95),colorBgLayout:Ho(n,4),colorBgContainer:Ho(n,0),colorBgElevated:Ho(n,0),colorBgSpotlight:cr(r,.85),colorBgBlur:"transparent",colorBorder:Ho(n,15),colorBorderSecondary:Ho(n,6)}};function TS(e){gc.pink=gc.magenta,hc.pink=hc.magenta;const t=Object.keys(ch).map(n=>{const r=e[n]===gc[n]?hc[n]:di(e[n]);return Array.from({length:10},()=>1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wS(e,{generateColorPalettes:PS,generateNeutralColorPalettes:NS})),MS(e.fontSize)),RS(e)),OS(e)),ES(e))}const fh=gu(TS),Tu={token:ui,override:{override:ui},hashed:!0},mh=ce.createContext(Tu),fi="ant",Es="anticon",AS=["outlined","borderless","filled","underlined"],FS=(e,t)=>t||(e?`${fi}-${e}`:fi),Tt=d.createContext({getPrefixCls:FS,iconPrefixCls:Es}),{Consumer:dA}=Tt,Zf={};function Vr(e){const t=d.useContext(Tt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,o=t[e];return Object.assign(Object.assign({classNames:Zf,styles:Zf},o),{getPrefixCls:n,direction:r,getPopupContainer:a})}const DS=`-ant-${Date.now()}-${Math.random()}`;function LS(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},a=(i,l)=>{const s=new Dt(i),u=di(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new Dt(t.primaryColor),l=di(i.toRgbString());l.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setA(u.a*.12));const s=new Dt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
200
+ :root {
201
+ ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
202
+ `)}
203
+ }
204
+ `.trim()}function kS(e,t){const n=LS(e,t);Zn()&&zr(n,`${DS}-dynamic-theme`)}const jn=d.createContext(!1),vh=({children:e,disabled:t})=>{const n=d.useContext(jn);return d.createElement(jn.Provider,{value:t??n},e)},Ia=d.createContext(void 0),_S=({children:e,size:t})=>{const n=d.useContext(Ia);return d.createElement(Ia.Provider,{value:t||n},e)};function HS(){const e=gn(jn),t=gn(Ia);return{componentDisabled:e,componentSize:t}}var gh=un(function e(){cn(this,e)}),hh="CALC_UNIT",jS=new RegExp(hh,"g");function pc(e){return typeof e=="number"?"".concat(e).concat(hh):e}var zS=(function(e){sa(n,e);var t=ca(n);function n(r,a){var o;cn(this,n),o=t.call(this),K(It(o),"result",""),K(It(o),"unitlessCssVar",void 0),K(It(o),"lowPriority",void 0);var i=nt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=pc(r):i==="string"&&(o.result=r),o}return un(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(pc(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(pc(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},l=i.unit,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(s=!1),this.result=this.result.replace(jS,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(gh),BS=(function(e){sa(n,e);var t=ca(n);function n(r){var a;return cn(this,n),a=t.call(this),K(It(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return un(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(gh),VS=function(t,n){var r=t==="css"?zS:BS;return function(a){return new r(a,n)}},Qf=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Mt(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function ho(e){var t=d.useRef(!1),n=d.useState(e),r=ee(n,2),a=r[0],o=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,s){s&&t.current||o(l)}return[a,i]}function bc(e){return e!==void 0}function ln(e,t){var n=t||{},r=n.defaultValue,a=n.value,o=n.onChange,i=n.postState,l=ho(function(){return bc(a)?a:bc(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=ee(l,2),u=s[0],c=s[1],f=a!==void 0?a:u,g=i?i(f):f,h=Mt(o),p=ho([f]),b=ee(p,2),v=b[0],y=b[1];no(function(){var C=v[0];u!==C&&h(u,C)},[v]),no(function(){bc(a)||c(a)},[a]);var m=Mt(function(C,S){c(C,S),y([f],S)});return[g,m]}function Jf(e,t,n,r){var a=Z({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(l){var s=ee(l,2),u=s[0],c=s[1];if(a!=null&&a[u]||a!=null&&a[c]){var f;(f=a[c])!==null&&f!==void 0||(a[c]=a==null?void 0:a[u])}})}var i=Z(Z({},n),a);return Object.keys(i).forEach(function(l){i[l]===t[l]&&delete i[l]}),i}var ph=typeof CSSINJS_STATISTIC<"u",Au=!0;function Bt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ph)return Object.assign.apply(Object,[{}].concat(t));Au=!1;var r={};return t.forEach(function(a){if(nt(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),Au=!0,r}var em={};function WS(){}var qS=function(t){var n,r=t,a=WS;return ph&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,l){if(Au){var s;(s=n)===null||s===void 0||s.add(l)}return i[l]}}),a=function(i,l){var s;em[i]={global:Array.from(n),component:Z(Z({},(s=em[i])===null||s===void 0?void 0:s.component),l)}}),{token:r,keys:n,flush:a}};function tm(e,t,n){if(typeof n=="function"){var r;return n(Bt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function US(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(o){return ve(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(o){return ve(o)}).join(","),")")}}}var YS=1e3*60*10,GS=(function(){function e(){cn(this,e),K(this,"map",new Map),K(this,"objectIDMap",new WeakMap),K(this,"nextID",0),K(this,"lastAccessBeat",new Map),K(this,"accessBeat",0)}return un(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(o){return o&&nt(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(nt(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>YS&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),nm=new GS;function KS(e,t){return ce.useMemo(function(){var n=nm.get(t);if(n)return n;var r=e();return nm.set(t,r),r},t)}var XS=function(){return{}};function ZS(e){var t=e.useCSP,n=t===void 0?XS:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,l=e.getCompUnitless;function s(g,h,p,b){var v=Array.isArray(g)?g[0]:g;function y(O){return"".concat(String(v)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var m=(b==null?void 0:b.unitless)||{},C=typeof l=="function"?l(g):{},S=Z(Z({},C),{},K({},y("zIndexPopup"),!0));Object.keys(m).forEach(function(O){S[y(O)]=m[O]});var x=Z(Z({},b),{},{unitless:S,prefixToken:y}),w=c(g,h,p,x),$=u(v,p,x);return function(O){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,E=w(O,R),N=ee(E,2),L=N[1],D=$(R),P=ee(D,2),M=P[0],I=P[1];return[M,L,I]}}function u(g,h,p){var b=p.unitless,v=p.injectStyle,y=v===void 0?!0:v,m=p.prefixToken,C=p.ignore,S=function($){var O=$.rootCls,R=$.cssVar,E=R===void 0?{}:R,N=r(),L=N.realToken;return lS({path:[g],prefix:E.prefix,key:E.key,unitless:b,ignore:C,token:L,scope:O},function(){var D=tm(g,L,h),P=Jf(g,L,D,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(D).forEach(function(M){P[m(M)]=P[M],delete P[M]}),P}),null},x=function($){var O=r(),R=O.cssVar;return[function(E){return y&&R?ce.createElement(ce.Fragment,null,ce.createElement(S,{rootCls:$,cssVar:R,component:g}),E):E},R==null?void 0:R.key]};return x}function c(g,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(g)?g:[g,g],y=ee(v,1),m=y[0],C=v.join("-"),S=e.layer||{name:"antd"};return function(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,$=r(),O=$.theme,R=$.realToken,E=$.hashId,N=$.token,L=$.cssVar,D=a(),P=D.rootPrefixCls,M=D.iconPrefixCls,I=n(),A=L?"css":"js",T=KS(function(){var q=new Set;return L&&Object.keys(b.unitless||{}).forEach(function(G){q.add(gl(G,L.prefix)),q.add(gl(G,Qf(m,L.prefix)))}),VS(A,q)},[A,m,L==null?void 0:L.prefix]),j=US(A),B=j.max,H=j.min,_={theme:O,token:N,hashId:E,nonce:function(){return I.nonce},clientOnly:b.clientOnly,layer:S,order:b.order||-999};typeof o=="function"&&yu(Z(Z({},_),{},{clientOnly:!1,path:["Shared",P]}),function(){return o(N,{prefix:{rootPrefixCls:P,iconPrefixCls:M},csp:I})});var W=yu(Z(Z({},_),{},{path:[C,x,M]}),function(){if(b.injectStyle===!1)return[];var q=qS(N),G=q.token,k=q.flush,z=tm(m,R,p),V=".".concat(x),F=Jf(m,R,z,{deprecatedTokens:b.deprecatedTokens});L&&z&&nt(z)==="object"&&Object.keys(z).forEach(function(J){z[J]="var(".concat(gl(J,Qf(m,L.prefix)),")")});var X=Bt(G,{componentCls:V,prefixCls:x,iconCls:".".concat(M),antCls:".".concat(P),calc:T,max:B,min:H},L?z:F),Y=h(X,{hashId:E,prefixCls:x,rootPrefixCls:P,iconPrefixCls:M});k(m,F);var U=typeof i=="function"?i(X,x,w,b.resetFont):null;return[b.resetStyle===!1?null:U,Y]});return[W,E]}}function f(g,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=c(g,h,p,Z({resetStyle:!1,order:-998},b)),y=function(C){var S=C.prefixCls,x=C.rootCls,w=x===void 0?S:x;return v(S,w),null};return y}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:c}}const Ma=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],QS="5.28.0";function yc(e){return e>=0&&e<=255}function Wo(e,t){const{r:n,g:r,b:a,a:o}=new Dt(e).toRgb();if(o<1)return e;const{r:i,g:l,b:s}=new Dt(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-i*(1-u))/u),f=Math.round((r-l*(1-u))/u),g=Math.round((a-s*(1-u))/u);if(yc(c)&&yc(f)&&yc(g))return new Dt({r:c,g:f,b:g,a:Math.round(u*100)/100}).toRgbString()}return new Dt({r:n,g:r,b:a,a:1}).toRgbString()}var JS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function bh(e){const{override:t}=e,n=JS(e,["override"]),r=Object.assign({},t);Object.keys(ui).forEach(g=>{delete r[g]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,l=768,s=992,u=1200,c=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Wo(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Wo(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Wo(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Wo(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
205
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
206
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
207
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
208
+ `,boxShadowSecondary:`
209
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
210
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
211
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
212
+ `,boxShadowTertiary:`
213
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
214
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
215
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
216
+ `,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
217
+ 0 1px 2px -2px ${new Dt("rgba(0, 0, 0, 0.16)").toRgbString()},
218
+ 0 3px 6px 0 ${new Dt("rgba(0, 0, 0, 0.12)").toRgbString()},
219
+ 0 5px 12px 4px ${new Dt("rgba(0, 0, 0, 0.09)").toRgbString()}
220
+ `,boxShadowDrawerRight:`
221
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
222
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
223
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
224
+ `,boxShadowDrawerLeft:`
225
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
226
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
227
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
228
+ `,boxShadowDrawerUp:`
229
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
230
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
231
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
232
+ `,boxShadowDrawerDown:`
233
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
234
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
235
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
236
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var rm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const yh={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},e8={motionBase:!0,motionUnit:!0},t8={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},Ch=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,o=rm(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=bh(i),o&&Object.entries(o).forEach(([l,s])=>{const{theme:u}=s,c=rm(s,["theme"]);let f=c;u&&(f=Ch(Object.assign(Object.assign({},i),c),{override:c},u)),i[l]=f}),i};function hr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=ce.useContext(mh),o=`${QS}-${t||""}`,i=n||fh,[l,s,u]=A5(i,[ui,e],{salt:o,override:r,getComputedToken:Ch,formatToken:bh,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:yh,ignore:e8,preserve:t8}});return[i,u,t?s:"",l,a]}const Wl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sn=(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}),Oi=()=>({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"}}),n8=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),r8=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"}}}),a8=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},l),i),{[a]:i})}},Os=(e,t)=>({outline:`${ve(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Sh=(e,t)=>({"&:focus-visible":Os(e)}),xh=e=>({[`.${e}`]:Object.assign(Object.assign({},Oi()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Rn,genComponentStyleHook:o8,genSubStyleComponent:Is}=ZS({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=gn(Tt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=hr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=gn(Tt);return e??{}},getResetStyles:(e,t)=>{var n;const r=r8(e);return[r,{"&":r},xh((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Es)]},getCommonStyle:a8,getCompUnitless:()=>yh});function wh(e,t){return Ma.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:l}))},{})}const i8=(e,t)=>{const[n,r]=hr();return yu({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>xh(e))},l8=Object.assign({},d),{useId:am}=l8,s8=()=>"",c8=typeof am>"u"?s8:am;function u8(e,t,n){var r;Kd();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},Tu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Tu.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=c8();return Cs(()=>{var l,s;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(g=>{u[g]=Object.assign(Object.assign({},u[g]),e.components[g])});const c=`css-var-${i.replace(/:/g,"")}`,f=((l=a.cssVar)!==null&&l!==void 0?l:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((s=a.cssVar)===null||s===void 0?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:f})},[a,o],(l,s)=>l.some((u,c)=>{const f=s[c];return!jl(u,f,!0)}))}var d8=["children"],$h=d.createContext({});function f8(e){var t=e.children,n=wt(e,d8);return d.createElement($h.Provider,{value:n},t)}var m8=(function(e){sa(n,e);var t=ca(n);function n(){return cn(this,n),t.apply(this,arguments)}return un(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function v8(e){var t=d.useReducer(function(l){return l+1},0),n=ee(t,2),r=n[1],a=d.useRef(e),o=Mt(function(){return a.current}),i=Mt(function(l){a.current=typeof l=="function"?l(a.current):l,r()});return[o,i]}var Xr="none",zi="appear",Bi="enter",Vi="leave",om="none",yr="prepare",Qa="start",Ja="active",Zd="end",Eh="prepared";function im(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function g8(e,t){var n={animationend:im("Animation","AnimationEnd"),transitionend:im("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var h8=g8(Zn(),typeof window<"u"?window:{}),Oh={};if(Zn()){var p8=document.createElement("div");Oh=p8.style}var Wi={};function Ih(e){if(Wi[e])return Wi[e];var t=h8[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var o=n[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Oh)return Wi[e]=t[o],Wi[e]}return""}var Mh=Ih("animationend"),Rh=Ih("transitionend"),Ph=!!(Mh&&Rh),lm=Mh||"animationend",sm=Rh||"transitionend";function cm(e,t){if(!e)return null;if(nt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const b8=(function(e){var t=Xe();function n(a){a&&(a.removeEventListener(sm,e),a.removeEventListener(lm,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(sm,e),a.addEventListener(lm,e),t.current=a)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var Nh=Zn()?jb:Zt;const y8=(function(){var e=d.useRef(null);function t(){Ct.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ct(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var C8=[yr,Qa,Ja,Zd],S8=[yr,Eh],Th=!1,x8=!0;function Ah(e){return e===Ja||e===Zd}const w8=(function(e,t,n){var r=ho(om),a=ee(r,2),o=a[0],i=a[1],l=y8(),s=ee(l,2),u=s[0],c=s[1];function f(){i(yr,!0)}var g=t?S8:C8;return Nh(function(){if(o!==om&&o!==Zd){var h=g.indexOf(o),p=g[h+1],b=n(o);b===Th?i(p,!0):p&&u(function(v){function y(){v.isCanceled()||i(p,!0)}b===!0?y():Promise.resolve(b).then(y)})}},[e,o]),d.useEffect(function(){return function(){c()}},[]),[f,o]});function $8(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,u=s===void 0?!0:s,c=r.motionDeadline,f=r.motionLeaveImmediately,g=r.onAppearPrepare,h=r.onEnterPrepare,p=r.onLeavePrepare,b=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,m=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,x=r.onAppearEnd,w=r.onEnterEnd,$=r.onLeaveEnd,O=r.onVisibleChanged,R=ho(),E=ee(R,2),N=E[0],L=E[1],D=v8(Xr),P=ee(D,2),M=P[0],I=P[1],A=ho(null),T=ee(A,2),j=T[0],B=T[1],H=M(),_=Xe(!1),W=Xe(null);function q(){return n()}var G=Xe(!1);function k(){I(Xr),B(null,!0)}var z=Mt(function(xe){var $e=M();if($e!==Xr){var Se=q();if(!(xe&&!xe.deadline&&xe.target!==Se)){var le=G.current,Me;$e===zi&&le?Me=x==null?void 0:x(Se,xe):$e===Bi&&le?Me=w==null?void 0:w(Se,xe):$e===Vi&&le&&(Me=$==null?void 0:$(Se,xe)),le&&Me!==!1&&k()}}}),V=b8(z),F=ee(V,1),X=F[0],Y=function($e){switch($e){case zi:return K(K(K({},yr,g),Qa,b),Ja,m);case Bi:return K(K(K({},yr,h),Qa,v),Ja,C);case Vi:return K(K(K({},yr,p),Qa,y),Ja,S);default:return{}}},U=d.useMemo(function(){return Y(H)},[H]),J=w8(H,!e,function(xe){if(xe===yr){var $e=U[yr];return $e?$e(q()):Th}if(te in U){var Se;B(((Se=U[te])===null||Se===void 0?void 0:Se.call(U,q(),null))||null)}return te===Ja&&H!==Xr&&(X(q()),c>0&&(clearTimeout(W.current),W.current=setTimeout(function(){z({deadline:!0})},c))),te===Eh&&k(),x8}),re=ee(J,2),ne=re[0],te=re[1],de=Ah(te);G.current=de;var ae=Xe(null);Nh(function(){if(!(_.current&&ae.current===t)){L(t);var xe=_.current;_.current=!0;var $e;!xe&&t&&l&&($e=zi),xe&&t&&o&&($e=Bi),(xe&&!t&&u||!xe&&f&&!t&&u)&&($e=Vi);var Se=Y($e);$e&&(e||Se[yr])?(I($e),ne()):I(Xr),ae.current=t}},[t]),Zt(function(){(H===zi&&!l||H===Bi&&!o||H===Vi&&!u)&&I(Xr)},[l,o,u]),Zt(function(){return function(){_.current=!1,clearTimeout(W.current)}},[]);var ge=d.useRef(!1);Zt(function(){N&&(ge.current=!0),N!==void 0&&H===Xr&&((ge.current||N)&&(O==null||O(N)),ge.current=!0)},[N,H]);var Oe=j;return U[yr]&&te===Qa&&(Oe=Z({transition:"none"},Oe)),[H,te,Oe,N??t]}function E8(e){var t=e;nt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=d.forwardRef(function(a,o){var i=a.visible,l=i===void 0?!0:i,s=a.removeOnLeave,u=s===void 0?!0:s,c=a.forceRender,f=a.children,g=a.motionName,h=a.leavedClassName,p=a.eventProps,b=d.useContext($h),v=b.motion,y=n(a,v),m=Xe(),C=Xe();function S(){try{return m.current instanceof HTMLElement?m.current:vl(C.current)}catch{return null}}var x=$8(y,l,S,a),w=ee(x,4),$=w[0],O=w[1],R=w[2],E=w[3],N=d.useRef(E);E&&(N.current=!0);var L=d.useCallback(function(T){m.current=T,_d(o,T)},[o]),D,P=Z(Z({},p),{},{visible:l});if(!f)D=null;else if($===Xr)E?D=f(Z({},P),L):!u&&N.current&&h?D=f(Z(Z({},P),{},{className:h}),L):c||!u&&!h?D=f(Z(Z({},P),{},{style:{display:"none"}}),L):D=null;else{var M;O===yr?M="prepare":Ah(O)?M="active":O===Qa&&(M="start");var I=cm(g,"".concat($,"-").concat(M));D=f(Z(Z({},P),{},{className:ue(cm(g,$),K(K({},I,I&&M),g,typeof g=="string")),style:R}),L)}if(d.isValidElement(D)&&Ta(D)){var A=$i(D);A||(D=d.cloneElement(D,{ref:L}))}return d.createElement(m8,{ref:C},D)});return r.displayName="CSSMotion",r}const Oo=E8(Ph);var Fu="add",Du="keep",Lu="remove",Cc="removed";function O8(e){var t;return e&&nt(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function ku(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(O8)}function I8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=ku(e),i=ku(t);o.forEach(function(u){for(var c=!1,f=r;f<a;f+=1){var g=i[f];if(g.key===u.key){r<f&&(n=n.concat(i.slice(r,f).map(function(h){return Z(Z({},h),{},{status:Fu})})),r=f),n.push(Z(Z({},g),{},{status:Du})),r+=1,c=!0;break}}c||n.push(Z(Z({},u),{},{status:Lu}))}),r<a&&(n=n.concat(i.slice(r).map(function(u){return Z(Z({},u),{},{status:Fu})})));var l={};n.forEach(function(u){var c=u.key;l[c]=(l[c]||0)+1});var s=Object.keys(l).filter(function(u){return l[u]>1});return s.forEach(function(u){n=n.filter(function(c){var f=c.key,g=c.status;return f!==u||g!==Lu}),n.forEach(function(c){c.key===u&&(c.status=Du)})}),n}var M8=["component","children","onVisibleChanged","onAllRemoved"],R8=["status"],P8=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function N8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oo,n=(function(r){sa(o,r);var a=ca(o);function o(){var i;cn(this,o);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return i=a.call.apply(a,[this].concat(s)),K(It(i),"state",{keyEntities:[]}),K(It(i),"removeKey",function(c){i.setState(function(f){var g=f.keyEntities.map(function(h){return h.key!==c?h:Z(Z({},h),{},{status:Cc})});return{keyEntities:g}},function(){var f=i.state.keyEntities,g=f.filter(function(h){var p=h.status;return p!==Cc}).length;g===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return un(o,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,u=this.props,c=u.component,f=u.children,g=u.onVisibleChanged;u.onAllRemoved;var h=wt(u,M8),p=c||d.Fragment,b={};return P8.forEach(function(v){b[v]=h[v],delete h[v]}),delete h.keys,d.createElement(p,h,s.map(function(v,y){var m=v.status,C=wt(v,R8),S=m===Fu||m===Du;return d.createElement(t,je({},b,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function(w){g==null||g(w,{key:C.key}),w||l.removeKey(C.key)}}),function(x,w){return f(Z(Z({},x),{},{index:y}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var u=l.keys,c=s.keyEntities,f=ku(u),g=I8(c,f);return{keyEntities:g.filter(function(h){var p=c.find(function(b){var v=b.key;return h.key===v});return!(p&&p.status===Cc&&h.status===Lu)})}}}]),o})(d.Component);return K(n,"defaultProps",{component:"div"}),n}const T8=N8(Ph),um=d.createContext(!0);function A8(e){const t=d.useContext(um),{children:n}=e,[,r]=hr(),{motion:a}=r,o=d.useRef(!1);return o.current||(o.current=t!==a),o.current?d.createElement(um.Provider,{value:a},d.createElement(f8,{motion:a},n)):n}const F8=()=>null;var D8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const L8=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ql,Fh,Dh,Lh;function wl(){return ql||fi}function k8(){return Fh||Es}function _8(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const H8=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(ql=t),n!==void 0&&(Fh=n),"holderRender"in e&&(Lh=a),r&&(_8(r)?kS(wl(),r):Dh=r)},fA=()=>({getPrefixCls:(e,t)=>t||(e?`${wl()}-${e}`:wl()),getIconPrefixCls:k8,getRootPrefixCls:()=>ql||wl(),getTheme:()=>Dh,holderRender:Lh}),j8=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:l,componentSize:s,direction:u,space:c,splitter:f,virtual:g,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:b,legacyLocale:v,parentContext:y,iconPrefixCls:m,theme:C,componentDisabled:S,segmented:x,statistic:w,spin:$,calendar:O,carousel:R,cascader:E,collapse:N,typography:L,checkbox:D,descriptions:P,divider:M,drawer:I,skeleton:A,steps:T,image:j,layout:B,list:H,mentions:_,modal:W,progress:q,result:G,slider:k,breadcrumb:z,menu:V,pagination:F,input:X,textArea:Y,empty:U,badge:J,radio:re,rate:ne,switch:te,transfer:de,avatar:ae,message:ge,tag:Oe,table:xe,card:$e,tabs:Se,timeline:le,timePicker:Me,upload:Pe,notification:ie,tree:pe,colorPicker:be,datePicker:Re,rangePicker:Ie,flex:he,wave:Ee,dropdown:oe,warning:me,tour:Te,tooltip:se,popover:we,popconfirm:Ze,floatButton:lt,floatButtonGroup:mt,variant:_e,inputNumber:ke,treeSelect:We}=e,ze=d.useCallback((Ue,ht)=>{const{prefixCls:$t}=e;if(ht)return ht;const ut=$t||y.getPrefixCls("");return Ue?`${ut}-${Ue}`:ut},[y.getPrefixCls,e.prefixCls]),qe=m||y.iconPrefixCls||Es,vt=n||y.csp;i8(qe,vt);const ct=u8(C,y.theme,{prefixCls:ze("")}),Ke={csp:vt,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:l||v,direction:u,space:c,splitter:f,virtual:g,popupMatchSelectWidth:p??h,popupOverflow:b,getPrefixCls:ze,iconPrefixCls:qe,theme:ct,segmented:x,statistic:w,spin:$,calendar:O,carousel:R,cascader:E,collapse:N,typography:L,checkbox:D,descriptions:P,divider:M,drawer:I,skeleton:A,steps:T,image:j,input:X,textArea:Y,layout:B,list:H,mentions:_,modal:W,progress:q,result:G,slider:k,breadcrumb:z,menu:V,pagination:F,empty:U,badge:J,radio:re,rate:ne,switch:te,transfer:de,avatar:ae,message:ge,tag:Oe,table:xe,card:$e,tabs:Se,timeline:le,timePicker:Me,upload:Pe,notification:ie,tree:pe,colorPicker:be,datePicker:Re,rangePicker:Ie,flex:he,wave:Ee,dropdown:oe,warning:me,tour:Te,tooltip:se,popover:we,popconfirm:Ze,floatButton:lt,floatButtonGroup:mt,variant:_e,inputNumber:ke,treeSelect:We},Ae=Object.assign({},y);Object.keys(Ke).forEach(Ue=>{Ke[Ue]!==void 0&&(Ae[Ue]=Ke[Ue])}),L8.forEach(Ue=>{const ht=e[Ue];ht&&(Ae[Ue]=ht)}),typeof r<"u"&&(Ae.button=Object.assign({autoInsertSpace:r},Ae.button));const it=Cs(()=>Ae,Ae,(Ue,ht)=>{const $t=Object.keys(Ue),ut=Object.keys(ht);return $t.length!==ut.length||$t.some(Et=>Ue[Et]!==ht[Et])}),{layer:Fe}=d.useContext(Ei),ye=d.useMemo(()=>({prefixCls:qe,csp:vt,layer:Fe?"antd":void 0}),[qe,vt,Fe]);let Ce=d.createElement(d.Fragment,null,d.createElement(F8,{dropdownMatchSelectWidth:h}),t);const De=d.useMemo(()=>{var Ue,ht,$t,ut;return Za(((Ue=ra.Form)===null||Ue===void 0?void 0:Ue.defaultValidateMessages)||{},(($t=(ht=it.locale)===null||ht===void 0?void 0:ht.Form)===null||$t===void 0?void 0:$t.defaultValidateMessages)||{},((ut=it.form)===null||ut===void 0?void 0:ut.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[it,i==null?void 0:i.validateMessages]);Object.keys(De).length>0&&(Ce=d.createElement(lh.Provider,{value:De},Ce)),l&&(Ce=d.createElement(bS,{locale:l,_ANT_MARK__:pS},Ce)),Ce=d.createElement(Gd.Provider,{value:ye},Ce),s&&(Ce=d.createElement(_S,{size:s},Ce)),Ce=d.createElement(A8,null,Ce);const Qe=d.useMemo(()=>{const Ue=ct||{},{algorithm:ht,token:$t,components:ut,cssVar:Et}=Ue,_t=D8(Ue,["algorithm","token","components","cssVar"]),kt=ht&&(!Array.isArray(ht)||ht.length>0)?gu(ht):fh,Rt={};Object.entries(ut||{}).forEach(([Lt,Qt])=>{const He=Object.assign({},Qt);"algorithm"in He&&(He.algorithm===!0?He.theme=kt:(Array.isArray(He.algorithm)||typeof He.algorithm=="function")&&(He.theme=gu(He.algorithm)),delete He.algorithm),Rt[Lt]=He});const Ht=Object.assign(Object.assign({},ui),$t);return Object.assign(Object.assign({},_t),{theme:kt,token:Ht,components:Rt,override:Object.assign({override:Ht},Rt),cssVar:Et})},[ct]);return C&&(Ce=d.createElement(mh.Provider,{value:Qe},Ce)),it.warning&&(Ce=d.createElement(fS.Provider,{value:it.warning},Ce)),S!==void 0&&(Ce=d.createElement(vh,{disabled:S},Ce)),d.createElement(Tt.Provider,{value:it},Ce)},Fa=e=>{const t=d.useContext(Tt),n=d.useContext(Xd);return d.createElement(j8,Object.assign({parentContext:t,legacyLocale:n},e))};Fa.ConfigContext=Tt;Fa.SizeContext=Ia;Fa.config=H8;Fa.useConfig=HS;Object.defineProperty(Fa,"SizeContext",{get:()=>Ia});var z8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function kh(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function B8(e){return kh(e)instanceof ShadowRoot}function Ul(e){return B8(e)?kh(e):null}function V8(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function W8(e,t){An(e,"[@ant-design/icons] ".concat(t))}function dm(e){return nt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(nt(e.icon)==="object"||typeof e.icon=="function")}function fm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[V8(n)]=r}return t},{})}function _u(e,t,n){return n?ce.createElement(e.tag,Z(Z({key:t},fm(e.attrs)),n),(e.children||[]).map(function(r,a){return _u(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ce.createElement(e.tag,Z({key:t},fm(e.attrs)),(e.children||[]).map(function(r,a){return _u(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function _h(e){return di(e)[0]}function Hh(e){return e?Array.isArray(e)?e:[e]:[]}var q8=`
237
+ .anticon {
238
+ display: inline-flex;
239
+ align-items: center;
240
+ color: inherit;
241
+ font-style: normal;
242
+ line-height: 0;
243
+ text-align: center;
244
+ text-transform: none;
245
+ vertical-align: -0.125em;
246
+ text-rendering: optimizeLegibility;
247
+ -webkit-font-smoothing: antialiased;
248
+ -moz-osx-font-smoothing: grayscale;
249
+ }
250
+
251
+ .anticon > * {
252
+ line-height: 1;
253
+ }
254
+
255
+ .anticon svg {
256
+ display: inline-block;
257
+ }
258
+
259
+ .anticon::before {
260
+ display: none;
261
+ }
262
+
263
+ .anticon .anticon-icon {
264
+ display: block;
265
+ }
266
+
267
+ .anticon[tabindex] {
268
+ cursor: pointer;
269
+ }
270
+
271
+ .anticon-spin::before,
272
+ .anticon-spin {
273
+ display: inline-block;
274
+ -webkit-animation: loadingCircle 1s infinite linear;
275
+ animation: loadingCircle 1s infinite linear;
276
+ }
277
+
278
+ @-webkit-keyframes loadingCircle {
279
+ 100% {
280
+ -webkit-transform: rotate(360deg);
281
+ transform: rotate(360deg);
282
+ }
283
+ }
284
+
285
+ @keyframes loadingCircle {
286
+ 100% {
287
+ -webkit-transform: rotate(360deg);
288
+ transform: rotate(360deg);
289
+ }
290
+ }
291
+ `,U8=function(t){var n=gn(Gd),r=n.csp,a=n.prefixCls,o=n.layer,i=q8;a&&(i=i.replace(/anticon/g,a)),o&&(i="@layer ".concat(o,` {
292
+ `).concat(i,`
293
+ }`)),Zt(function(){var l=t.current,s=Ul(l);zr(i,"@ant-design-icons",{prepend:!o,csp:r,attachTo:s})},[])},Y8=["icon","className","onClick","style","primaryColor","secondaryColor"],Qo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function G8(e){var t=e.primaryColor,n=e.secondaryColor;Qo.primaryColor=t,Qo.secondaryColor=n||_h(t),Qo.calculated=!!n}function K8(){return Z({},Qo)}var Io=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,l=t.secondaryColor,s=wt(t,Y8),u=d.useRef(),c=Qo;if(i&&(c={primaryColor:i,secondaryColor:l||_h(i)}),U8(u),W8(dm(n),"icon should be icon definiton, but got ".concat(n)),!dm(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Z(Z({},f),{},{icon:f.icon(c.primaryColor,c.secondaryColor)})),_u(f.icon,"svg-".concat(f.name),Z(Z({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};Io.displayName="IconReact";Io.getTwoToneColors=K8;Io.setTwoToneColors=G8;function jh(e){var t=Hh(e),n=ee(t,2),r=n[0],a=n[1];return Io.setTwoToneColors({primaryColor:r,secondaryColor:a})}function X8(){var e=Io.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Z8=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jh(Vl.primary);var Fn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=wt(e,Z8),c=d.useContext(Gd),f=c.prefixCls,g=f===void 0?"anticon":f,h=c.rootClassName,p=ue(h,g,K(K({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!a||r.name==="loading"),n),b=i;b===void 0&&l&&(b=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=Hh(s),m=ee(y,2),C=m[0],S=m[1];return d.createElement("span",je({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:p}),d.createElement(Io,{icon:r,primaryColor:C,secondaryColor:S,style:v}))});Fn.displayName="AntdIcon";Fn.getTwoToneColor=X8;Fn.setTwoToneColor=jh;var Q8=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:z8}))},J8=d.forwardRef(Q8),e4={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"},t4=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:e4}))},Qd=d.forwardRef(t4),n4={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"},r4=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:n4}))},zh=d.forwardRef(r4),a4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},o4=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:a4}))},i4=d.forwardRef(o4),l4=`accept acceptCharset accessKey action allowFullScreen allowTransparency
294
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
295
+ charSet checked classID className colSpan cols content contentEditable contextMenu
296
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
297
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
298
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
299
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
300
+ mediaGroup method min minLength multiple muted name noValidate nonce open
301
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
302
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
303
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
304
+ summary tabIndex target title type useMap value width wmode wrap`,s4=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
305
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
306
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
307
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
308
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
309
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
310
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,c4="".concat(l4," ").concat(s4).split(/[\s\n]+/),u4="aria-",d4="data-";function mm(e,t){return e.indexOf(t)===0}function Fr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Z({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||mm(a,u4))||n.data&&mm(a,d4)||n.attr&&c4.includes(a))&&(r[a]=e[a])}),r}function Bh(e){return e&&ce.isValidElement(e)&&e.type===ce.Fragment}const Vh=(e,t,n)=>ce.isValidElement(e)?ce.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function po(e,t){return Vh(e,e,t)}const vm=e=>typeof e=="object"&&e!=null&&e.nodeType===1,gm=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",qi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return gm(n.overflowY,t)||gm(n.overflowX,t)||(r=>{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(e)}return!1},Ui=(e,t,n,r,a,o,i,l)=>o<e&&i>t||o>e&&i<t?0:o<=e&&l<=n||i>=t&&l>=n?o-e-r:i>t&&l<n||o<e&&l>n?i-t+a:0,f4=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},hm=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:s,boundary:u,skipOverflowHiddenElements:c}=t,f=typeof u=="function"?u:I=>I!==u;if(!vm(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,h=[];let p=e;for(;vm(p)&&f(p);){if(p=f4(p),p===g){h.push(p);break}p!=null&&p===document.body&&qi(p)&&!qi(document.documentElement)||p!=null&&qi(p,c)&&h.push(p)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:y,scrollY:m}=window,{height:C,width:S,top:x,right:w,bottom:$,left:O}=e.getBoundingClientRect(),{top:R,right:E,bottom:N,left:L}=(I=>{const A=window.getComputedStyle(I);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(e);let D=l==="start"||l==="nearest"?x-R:l==="end"?$+N:x+C/2-R+N,P=s==="center"?O+S/2-L+E:s==="end"?w+E:O-L;const M=[];for(let I=0;I<h.length;I++){const A=h[I],{height:T,width:j,top:B,right:H,bottom:_,left:W}=A.getBoundingClientRect();if(i==="if-needed"&&x>=0&&O>=0&&$<=v&&w<=b&&(A===g&&!qi(A)||x>=B&&$<=_&&O>=W&&w<=H))return M;const q=getComputedStyle(A),G=parseInt(q.borderLeftWidth,10),k=parseInt(q.borderTopWidth,10),z=parseInt(q.borderRightWidth,10),V=parseInt(q.borderBottomWidth,10);let F=0,X=0;const Y="offsetWidth"in A?A.offsetWidth-A.clientWidth-G-z:0,U="offsetHeight"in A?A.offsetHeight-A.clientHeight-k-V:0,J="offsetWidth"in A?A.offsetWidth===0?0:j/A.offsetWidth:0,re="offsetHeight"in A?A.offsetHeight===0?0:T/A.offsetHeight:0;if(g===A)F=l==="start"?D:l==="end"?D-v:l==="nearest"?Ui(m,m+v,v,k,V,m+D,m+D+C,C):D-v/2,X=s==="start"?P:s==="center"?P-b/2:s==="end"?P-b:Ui(y,y+b,b,G,z,y+P,y+P+S,S),F=Math.max(0,F+m),X=Math.max(0,X+y);else{F=l==="start"?D-B-k:l==="end"?D-_+V+U:l==="nearest"?Ui(B,_,T,k,V+U,D,D+C,C):D-(B+T/2)+U/2,X=s==="start"?P-W-G:s==="center"?P-(W+j/2)+Y/2:s==="end"?P-H+z+Y:Ui(W,H,j,G,z+Y,P,P+S,S);const{scrollLeft:ne,scrollTop:te}=A;F=re===0?0:Math.max(0,Math.min(te+F/re,A.scrollHeight-T/re+U)),X=J===0?0:Math.max(0,Math.min(ne+X/J,A.scrollWidth-j/J+Y)),D+=te-F,P+=ne-X}M.push({el:A,top:F,left:X})}return M},m4=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function v4(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(hm(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of hm(e,m4(t))){const l=o-n.top+n.bottom,s=i-n.left+n.right;a.scroll({top:l,left:s,behavior:r})}}const or=e=>{const[,,,,t]=hr();return t?`${e}-css-var`:""};var et={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},g4={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"},h4=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:g4}))},Ms=d.forwardRef(h4);function pm(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function bm(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function ym(e){const{closable:t,closeIcon:n}=e||{};return ce.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const p4={},b4=(e,t,n=p4)=>{const r=ym(e),a=ym(t),[o]=Aa("global",ra.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=ce.useMemo(()=>Object.assign({closeIcon:ce.createElement(zh,null)},n),[n]),s=ce.useMemo(()=>r===!1?!1:r?pm(l,a,r):a===!1?!1:a?pm(l,a):l.closable?l:!1,[r,a,l]);return ce.useMemo(()=>{var u,c;if(s===!1)return[!1,null,i,{}];const{closeIconRender:f}=l,{closeIcon:g}=s;let h=g;const p=Fr(s,!0);return h!=null&&(f&&(h=f(g)),h=ce.isValidElement(h)?ce.cloneElement(h,Object.assign(Object.assign(Object.assign({},h.props),{"aria-label":(c=(u=h.props)===null||u===void 0?void 0:u["aria-label"])!==null&&c!==void 0?c:o.close}),p)):ce.createElement("span",Object.assign({"aria-label":o.close},p),h)),[!0,h,i,p]},[i,o.close,s,l])},y4=()=>ce.useReducer(e=>e+1,0);function Wh(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(o=>{const i=n[o],l=a[o];if(i&&typeof i=="object")if(l&&typeof l=="object")r[o]=Wh(i,r[o],l);else{const{_default:s}=i;s&&(r[o]=r[o]||{},r[o][s]=ue(r[o][s],l))}else r[o]=ue(r[o],l)}),r),{})}function C4(e,...t){return d.useMemo(()=>Wh.apply(void 0,[e].concat(t)),[t,e])}function S4(...e){return d.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function Hu(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],o=n[r]||{};n[r]=a?Hu(o,a):o}}),n}const x4=(e,t,n)=>{const r=C4.apply(void 0,[n].concat(Ne(e))),a=S4.apply(void 0,Ne(t));return d.useMemo(()=>[Hu(r,n),Hu(a,n)],[r,a,n])},qh=ce.createContext(void 0),Zr=100,w4=10,mA=Zr*w4,Uh={Modal:Zr,Drawer:Zr,Popover:Zr,Popconfirm:Zr,Tooltip:Zr,Tour:Zr,FloatButton:Zr},$4={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function E4(e){return e in Uh}const Rs=(e,t)=>{const[,n]=hr(),r=ce.useContext(qh),a=E4(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+Uh[e]:i+=$4[e],o=[r===void 0?t:i,i]}return o};function Yh(e,t){this.v=e,this.k=t}function Dn(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Dn=function(i,l,s,u){function c(f,g){Dn(i,f,function(h){return this._invoke(f,g,h)})}l?a?a(i,l,{value:s,enumerable:!u,configurable:!u,writable:!u}):i[l]=s:(c("next",0),c("throw",1),c("return",2))},Dn(e,t,n,r)}function Jd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(h,p,b,v){var y=p&&p.prototype instanceof l?p:l,m=Object.create(y.prototype);return Dn(m,"_invoke",(function(C,S,x){var w,$,O,R=0,E=x||[],N=!1,L={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(M,I){return w=M,$=0,O=e,L.n=I,i}};function D(P,M){for($=P,O=M,t=0;!N&&R&&!I&&t<E.length;t++){var I,A=E[t],T=L.p,j=A[2];P>3?(I=j===M)&&(O=A[($=A[4])?5:($=3,3)],A[4]=A[5]=e):A[0]<=T&&((I=P<2&&T<A[1])?($=0,L.v=M,L.n=A[1]):T<j&&(I=P<3||A[0]>M||M>j)&&(A[4]=P,A[5]=M,L.n=j,$=0))}if(I||P>1)return i;throw N=!0,M}return function(P,M,I){if(R>1)throw TypeError("Generator is already running");for(N&&M===1&&D(M,I),$=M,O=I;(t=$<2?e:O)||!N;){w||($?$<3?($>1&&(L.n=-1),D($,O)):L.n=O:L.v=O);try{if(R=2,w){if($||(P="next"),t=w[P]){if(!(t=t.call(w,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,$<2&&($=0)}else $===1&&(t=w.return)&&t.call(w),$<2&&(O=TypeError("The iterator does not provide a '"+P+"' method"),$=1);w=e}else if((t=(N=L.n<0)?O:C.call(S,L))!==i)break}catch(A){w=e,$=1,O=A}finally{R=1}}return{value:t,done:N}}})(h,b,v),!0),m}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Dn(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(c);function g(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Dn(h,a,"GeneratorFunction")),h.prototype=Object.create(f),h}return s.prototype=u,Dn(f,"constructor",u),Dn(u,"constructor",s),s.displayName="GeneratorFunction",Dn(u,a,"GeneratorFunction"),Dn(f),Dn(f,a,"Generator"),Dn(f,r,function(){return this}),Dn(f,"toString",function(){return"[object Generator]"}),(Jd=function(){return{w:o,m:g}})()}function Yl(e,t){function n(a,o,i,l){try{var s=e[a](o),u=s.value;return u instanceof Yh?t.resolve(u.v).then(function(c){n("next",c,i,l)},function(c){n("throw",c,i,l)}):t.resolve(u).then(function(c){s.value=c,i(s)},function(c){return n("throw",c,i,l)})}catch(c){l(c)}}var r;this.next||(Dn(Yl.prototype),Dn(Yl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Dn(this,"_invoke",function(a,o,i){function l(){return new t(function(s,u){n(a,i,s,u)})}return r=r?r.then(l,l):l()},!0)}function Gh(e,t,n,r,a){return new Yl(Jd().w(e,t,n,r),a||Promise)}function O4(e,t,n,r,a){var o=Gh(e,t,n,r,a);return o.next().then(function(i){return i.done?i.value:o.next()})}function I4(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function Cm(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(nt(e)+" is not iterable")}function zn(){var e=Jd(),t=e.m(zn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var l=typeof i=="function"&&i.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function o(i){var l,s;return function(u){l||(l={stop:function(){return s(u.a,2)},catch:function(){return u.v},abrupt:function(f,g){return s(u.a,a[f],g)},delegateYield:function(f,g,h){return l.resultName=g,s(u.d,Cm(f),h)},finish:function(f){return s(u.f,f)}},s=function(f,g,h){u.p=l.prev,u.n=l.next;try{return f(g,h)}finally{l.next=u.n}}),l.resultName&&(l[l.resultName]=u.v,l.resultName=void 0),l.sent=u.v,l.next=u.n;try{return i.call(this,l)}finally{u.p=l.prev,u.n=l.next}}}return(zn=function(){return{wrap:function(s,u,c,f){return e.w(o(s),u,c,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(s,u){return new Yh(s,u)},AsyncIterator:Yl,async:function(s,u,c,f,g){return(r(u)?Gh:O4)(o(s),u,c,f,g)},keys:I4,values:Cm}})()}function Sm(e,t,n,r,a,o,i){try{var l=e[o](i),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,a)}function Da(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(s){Sm(o,r,a,i,l,"next",s)}function l(s){Sm(o,r,a,i,l,"throw",s)}i(void 0)})}}var Ii=Z({},Wb),M4=Ii.version,Sc=Ii.render,R4=Ii.unmountComponentAtNode,Ps;try{var P4=Number((M4||"").split(".")[0]);P4>=18&&(Ps=Ii.createRoot)}catch{}function xm(e){var t=Ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&nt(t)==="object"&&(t.usingClientEntryPoint=e)}var Gl="__rc_react_root__";function N4(e,t){xm(!0);var n=t[Gl]||Ps(t);xm(!1),n.render(e),t[Gl]=n}function T4(e,t){Sc==null||Sc(e,t)}function A4(e,t){if(Ps){N4(e,t);return}T4(e,t)}function F4(e){return ju.apply(this,arguments)}function ju(){return ju=Da(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Gl])===null||a===void 0||a.unmount(),delete t[Gl]}));case 1:case"end":return r.stop()}},e)})),ju.apply(this,arguments)}function D4(e){R4(e)}function L4(e){return zu.apply(this,arguments)}function zu(){return zu=Da(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ps===void 0){r.next=2;break}return r.abrupt("return",F4(t));case 2:D4(t);case 3:case"end":return r.stop()}},e)})),zu.apply(this,arguments)}const k4=(e,t)=>(A4(e,t),()=>L4(t));let _4=k4;function H4(e){return _4}const xc=()=>({height:0,opacity:0}),wm=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},j4=e=>({height:e?e.offsetHeight:0}),wc=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",$m=(e=fi)=>({motionName:`${e}-motion-collapse`,onAppearStart:xc,onEnterStart:xc,onAppearActive:wm,onEnterActive:wm,onLeaveStart:j4,onLeaveActive:xc,onAppearEnd:wc,onEnterEnd:wc,onLeaveEnd:wc,motionDeadline:500}),Kh=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Er(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Ns=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1}),z4=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},B4=o8("Wave",z4),Ts=`${fi}-wave-target`;function V4(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function W4(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(V4))!==null&&t!==void 0?t:null}function $c(e){return Number.isNaN(e)?0:e}const q4=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,o=d.useRef(null),i=d.useRef(null);d.useEffect(()=>{i.current=a()},[]);const[l,s]=d.useState(null),[u,c]=d.useState([]),[f,g]=d.useState(0),[h,p]=d.useState(0),[b,v]=d.useState(0),[y,m]=d.useState(0),[C,S]=d.useState(!1),x={left:f,top:h,width:b,height:y,borderRadius:u.map(O=>`${O}px`).join(" ")};l&&(x["--wave-color"]=l);function w(){const O=getComputedStyle(n);s(W4(n));const R=O.position==="static",{borderLeftWidth:E,borderTopWidth:N}=O;g(R?n.offsetLeft:$c(-Number.parseFloat(E))),p(R?n.offsetTop:$c(-Number.parseFloat(N))),v(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:L,borderTopRightRadius:D,borderBottomLeftRadius:P,borderBottomRightRadius:M}=O;c([L,D,M,P].map(I=>$c(Number.parseFloat(I))))}if(d.useEffect(()=>{if(n){const O=Ct(()=>{w(),S(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(w),R.observe(n)),()=>{Ct.cancel(O),R==null||R.disconnect()}}},[n]),!C)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Ts));return d.createElement(Oo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,R)=>{var E,N;if(R.deadline||R.propertyName==="opacity"){const L=(E=o.current)===null||E===void 0?void 0:E.parentElement;(N=i.current)===null||N===void 0||N.call(i).then(()=>{L==null||L.remove()})}return!1}},({className:O},R)=>d.createElement("div",{ref:ar(o,R),className:ue(t,O,{"wave-quick":$}),style:x}))},U4=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const o=H4();let i=null;function l(){return i}i=o(d.createElement(q4,Object.assign({},t,{target:e,registerUnmount:l})),a)},Y4=(e,t,n)=>{const{wave:r}=d.useContext(Tt),[,a,o]=hr(),i=Mt(u=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const f=c.querySelector(`.${Ts}`)||c,{showEffect:g}=r||{};(g||U4)(f,{className:t,token:a,component:n,event:u,hashId:o})}),l=d.useRef(null);return u=>{Ct.cancel(l.current),l.current=Ct(()=>{i(u)})}},Mi=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=gn(Tt),o=Xe(null),i=a("wave"),[,l]=B4(i),s=Y4(o,ue(i,l),r);if(ce.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=g=>{!Ns(g.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")&&!c.className.includes("disabled:")||c.getAttribute("aria-disabled")==="true"||c.className.includes("-leave")||s(g)};return c.addEventListener("click",f,!0),()=>{c.removeEventListener("click",f,!0)}},[n]),!ce.isValidElement(t))return t??null;const u=Ta(t)?ar($i(t),o):o;return po(t,{ref:u})},ir=e=>{const t=ce.useContext(Ia);return ce.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},G4=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},K4=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},X4=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Z4=Rn("Space",e=>{const t=Bt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[K4(t),X4(t),G4(t)]},()=>({}),{resetStyle:!1});var Xh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const As=d.createContext(null),ua=(e,t)=>{const n=d.useContext(As),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,l=a==="vertical"?"-vertical-":"-";return ue(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Q4=e=>{const{children:t}=e;return d.createElement(As.Provider,{value:null},t)},J4=e=>{const{children:t}=e,n=Xh(e,["children"]);return d.createElement(As.Provider,{value:d.useMemo(()=>n,[n])},t)},vA=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Tt),{size:r,direction:a,block:o,prefixCls:i,className:l,rootClassName:s,children:u}=e,c=Xh(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=ir(C=>r??C),g=t("space-compact",i),[h,p]=Z4(g),b=ue(g,p,{[`${g}-rtl`]:n==="rtl",[`${g}-block`]:o,[`${g}-vertical`]:a==="vertical"},l,s),v=d.useContext(As),y=Oa(u),m=d.useMemo(()=>y.map((C,S)=>{const x=(C==null?void 0:C.key)||`${g}-item-${S}`;return d.createElement(J4,{key:x,compactSize:f,compactDirection:a,isFirstItem:S===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:S===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},C)}),[y,v,a,f,g]);return y.length===0?null:h(d.createElement("div",Object.assign({className:b},c),m))};var ex=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Zh=d.createContext(void 0),tx=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Tt),{prefixCls:r,size:a,className:o}=e,i=ex(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=hr(),u=d.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),c=ue(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},o,s);return d.createElement(Zh.Provider,{value:a},d.createElement("div",Object.assign({},i,{className:c})))},Em=/^[\u4E00-\u9FA5]{2}$/,Bu=Em.test.bind(Em);function gA(e){return e==="danger"?{danger:!0}:{type:e}}function Om(e){return typeof e=="string"}function Ec(e){return e==="text"||e==="link"}function nx(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Om(e.type)&&Bu(e.props.children)?po(e,{children:e.props.children.split("").join(n)}):Om(e)?Bu(e)?ce.createElement("span",null,e.split("").join(n)):ce.createElement("span",null,e):Bh(e)?ce.createElement("span",null,e):e}function rx(e,t){let n=!1;const r=[];return ce.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${a}`}else r.push(a);n=i}),ce.Children.map(r,a=>nx(a,t))}["default","primary","danger"].concat(Ne(Ma));const Vu=Vn((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=ue(`${o}-icon`,n);return ce.createElement("span",{ref:t,className:i,style:r},a)}),Im=Vn((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=ue(`${n}-loading-icon`,r);return ce.createElement(Vu,{prefixCls:n,className:i,style:a,ref:t},ce.createElement(Ms,{className:o}))}),Oc=()=>({width:0,opacity:0,transform:"scale(0)"}),Ic=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ax=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o,mount:i}=e,l=!!n;return r?ce.createElement(Im,{prefixCls:t,className:a,style:o}):ce.createElement(Oo,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Oc,onAppearActive:Ic,onEnterStart:Oc,onEnterActive:Ic,onLeaveStart:Ic,onLeaveActive:Oc},({className:s,style:u},c)=>{const f=Object.assign(Object.assign({},o),u);return ce.createElement(Im,{prefixCls:t,className:ue(a,s),style:f,ref:c})})},Mm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ox=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Mm(`${t}-primary`,a),Mm(`${t}-danger`,o)]}};var ix=["b"],lx=["v"],Mc=function(t){return Math.round(Number(t||0))},sx=function(t){if(t instanceof Dt)return t;if(t&&nt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=wt(n,ix);return Z(Z({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},mi=(function(e){sa(n,e);var t=ca(n);function n(r){return cn(this,n),t.call(this,sx(r))}return un(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=Mc(a.s*100),i=Mc(a.b*100),l=Mc(a.h),s=a.a,u="hsb(".concat(l,", ").concat(o,"%, ").concat(i,"%)"),c="hsba(".concat(l,", ").concat(o,"%, ").concat(i,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?u:c}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,i=wt(a,lx);return Z(Z({},i),{},{b:o,a:this.a})}}]),n})(Dt),cx=function(t){return t instanceof mi?t:new mi(t)};cx("#1677ff");const ux=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",dx=(e,t)=>e?ux(e,t):"";let Wu=(function(){function e(t){cn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:a,percent:o})=>({color:new e(a),percent:o})),this.metaColor=new mi(this.colors[0].color.metaColor)):this.metaColor=new mi(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return un(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return dx(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();const fx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
311
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
312
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),mx=e=>({animationDuration:e,animationFillMode:"both"}),vx=e=>({animationDuration:e,animationFillMode:"both"}),e0=(e,t,n,r,a=!1)=>{const o=a?"&":"";return{[`
313
+ ${o}${e}-enter,
314
+ ${o}${e}-appear
315
+ `]:Object.assign(Object.assign({},mx(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},vx(r)),{animationPlayState:"paused"}),[`
316
+ ${o}${e}-enter${e}-enter-active,
317
+ ${o}${e}-appear${e}-appear-active
318
+ `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},gx=new Gt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hx=new Gt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),px=new Gt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bx=new Gt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),yx=new Gt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Cx=new Gt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Sx=new Gt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xx=new Gt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),wx={"move-up":{inKeyframes:Sx,outKeyframes:xx},"move-down":{inKeyframes:gx,outKeyframes:hx},"move-left":{inKeyframes:px,outKeyframes:bx},"move-right":{inKeyframes:yx,outKeyframes:Cx}},Kl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=wx[t];return[e0(r,a,o,e.motionDurationMid),{[`
319
+ ${r}-enter,
320
+ ${r}-appear
321
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},t0=new Gt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),n0=new Gt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),r0=new Gt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),a0=new Gt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$x=new Gt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ex=new Gt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ox=new Gt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ix=new Gt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Mx={"slide-up":{inKeyframes:t0,outKeyframes:n0},"slide-down":{inKeyframes:r0,outKeyframes:a0},"slide-left":{inKeyframes:$x,outKeyframes:Ex},"slide-right":{inKeyframes:Ox,outKeyframes:Ix}},Xl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Mx[t];return[e0(r,a,o,e.motionDurationMid),{[`
322
+ ${r}-enter,
323
+ ${r}-appear
324
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},o0=new Gt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Rx=new Gt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Rm=new Gt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Pm=new Gt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Px=new Gt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Nx=new Gt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Tx=new Gt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Ax=new Gt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Fx=new Gt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Dx=new Gt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Lx=new Gt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),kx=new Gt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_x={zoom:{inKeyframes:o0,outKeyframes:Rx},"zoom-big":{inKeyframes:Rm,outKeyframes:Pm},"zoom-big-fast":{inKeyframes:Rm,outKeyframes:Pm},"zoom-left":{inKeyframes:Tx,outKeyframes:Ax},"zoom-right":{inKeyframes:Fx,outKeyframes:Dx},"zoom-up":{inKeyframes:Px,outKeyframes:Nx},"zoom-down":{inKeyframes:Lx,outKeyframes:kx}},Hx=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=_x[t];return[e0(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
325
+ ${r}-enter,
326
+ ${r}-appear
327
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jx=e=>e instanceof Wu?e:new Wu(e),zx=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),i=new mi(e.toRgbString()).onBackground(t).toHsv();return o<=.5?i.v>.5:n*.299+r*.587+a*.114>192},Qh=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Bt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Jh=e=>{var t,n,r,a,o,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,c=(a=e.contentLineHeight)!==null&&a!==void 0?a:xl(l),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:xl(s),g=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:xl(u),h=zx(new Wu(e.colorBgSolid),"#fff")?"#000":"#fff",p=Ma.reduce((b,v)=>Object.assign(Object.assign({},b),{[`${v}ShadowColor`]:`0 ${ve(e.controlOutlineWidth)} 0 ${Wo(e[`${v}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},p),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:u,contentLineHeight:c,contentLineHeightSM:f,contentLineHeightLG:g,paddingBlock:Math.max((e.controlHeight-l*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*g)/2-e.lineWidth,0)})},Bx=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:i,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ve(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`]:Oi(),"> a":{color:"currentColor"},"&:not(:disabled)":Sh(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${o} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},ep=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Vx=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Wx=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Fs=(e,t,n,r,a,o,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ep(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),qx=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Wx(e))}),Ux=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ds=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Ux:qx;return Object.assign(Object.assign({},o(e)),ep(e.componentCls,t,n))},Ls=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ds(e,r,a))}),ks=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ds(e,r,a))}),_s=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Hs=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ds(e,n,r))}),Dr=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ds(e,r,a,n))}),Yx=e=>{const{componentCls:t}=e;return Ma.reduce((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},Ls(e,e.colorTextLightSolid,a,{background:i},{background:u})),ks(e,a,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),_s(e)),Hs(e,o,{color:a,background:l},{color:a,background:s})),Dr(e,a,"link",{color:i},{color:u})),Dr(e,a,"text",{color:i,background:o},{color:u,background:s}))})},{})},Gx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Ls(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),_s(e)),Hs(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Fs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Dr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Kx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ks(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),_s(e)),Hs(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Dr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Dr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Fs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Xx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Ls(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ks(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_s(e)),Hs(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Dr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Dr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Fs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Zx=e=>Object.assign(Object.assign({},Dr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Fs(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Qx=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Gx(e),[`${t}-color-primary`]:Kx(e),[`${t}-color-dangerous`]:Xx(e),[`${t}-color-link`]:Zx(e)},Yx(e))},Jx=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ks(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Dr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Ls(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Dr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),i0=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:a,height:r,padding:`${ve(s)} ${ve(i)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:Vx(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},ew=e=>{const t=Bt(e,{fontSize:e.contentFontSize});return i0(t,e.componentCls)},tw=e=>{const t=Bt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return i0(t,`${e.componentCls}-sm`)},nw=e=>{const t=Bt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return i0(t,`${e.componentCls}-lg`)},rw=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},aw=Rn("Button",e=>{const t=Qh(e);return[Bx(t),ew(t),tw(t),nw(t),rw(t),Qx(t),Jx(t),ox(t)]},Jh,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ow(e,t,n,r){const{focusElCls:a,focus:o,borderElCls:i}=n,l=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[s]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function iw(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ri(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},ow(e,r,t,n)),iw(n,r,t))}}function lw(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function sw(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 cw(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},lw(e,t,e.componentCls)),sw(e.componentCls,t))}}const uw=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),i=l=>{const s=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${s} + ${s}::before`]:{position:"absolute",top:l?o:0,insetInlineStart:l?0:o,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},dw=Is(["Button","compact"],e=>{const t=Qh(e);return[Ri(t),cw(t),uw(t)]},Jh);var fw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function mw(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const vw={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},gw=ce.forwardRef((e,t)=>{var n,r;const{loading:a=!1,prefixCls:o,color:i,variant:l,type:s,danger:u=!1,shape:c,size:f,styles:g,disabled:h,className:p,rootClassName:b,children:v,icon:y,iconPosition:m="start",ghost:C=!1,block:S=!1,htmlType:x="button",classNames:w,style:$={},autoInsertSpace:O,autoFocus:R}=e,E=fw(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=s||"default",{button:L}=ce.useContext(Tt),D=c||(L==null?void 0:L.shape)||"default",[P,M]=Bn(()=>{if(i&&l)return[i,l];if(s||u){const se=vw[N]||[];return u?["danger",se[1]]:se}return L!=null&&L.color&&(L!=null&&L.variant)?[L.color,L.variant]:["default","outlined"]},[i,l,s,u,L==null?void 0:L.color,L==null?void 0:L.variant,N]),A=P==="danger"?"dangerous":P,{getPrefixCls:T,direction:j,autoInsertSpace:B,className:H,style:_,classNames:W,styles:q}=Vr("button"),G=(n=O??B)!==null&&n!==void 0?n:!0,k=T("btn",o),[z,V,F]=aw(k),X=gn(jn),Y=h??X,U=gn(Zh),J=Bn(()=>mw(a),[a]),[re,ne]=jt(J.loading),[te,de]=jt(!1),ae=Xe(null),ge=wi(t,ae),Oe=zb.count(v)===1&&!y&&!Ec(M),xe=Xe(!0);ce.useEffect(()=>(xe.current=!1,()=>{xe.current=!0}),[]),Nt(()=>{let se=null;J.delay>0?se=setTimeout(()=>{se=null,ne(!0)},J.delay):ne(J.loading);function we(){se&&(clearTimeout(se),se=null)}return we},[J.delay,J.loading]),Zt(()=>{if(!ae.current||!G)return;const se=ae.current.textContent||"";Oe&&Bu(se)?te||de(!0):te&&de(!1)}),Zt(()=>{R&&ae.current&&ae.current.focus()},[]);const $e=ce.useCallback(se=>{var we;if(re||Y){se.preventDefault();return}(we=e.onClick)===null||we===void 0||we.call(e,("href"in e,se))},[e.onClick,re,Y]),{compactSize:Se,compactItemClassnames:le}=ua(k,j),Me={large:"lg",small:"sm",middle:void 0},Pe=ir(se=>{var we,Ze;return(Ze=(we=f??Se)!==null&&we!==void 0?we:U)!==null&&Ze!==void 0?Ze:se}),ie=Pe&&(r=Me[Pe])!==null&&r!==void 0?r:"",pe=re?"loading":y,be=Er(E,["navigate"]),Re=ue(k,V,F,{[`${k}-${D}`]:D!=="default"&&D,[`${k}-${N}`]:N,[`${k}-dangerous`]:u,[`${k}-color-${A}`]:A,[`${k}-variant-${M}`]:M,[`${k}-${ie}`]:ie,[`${k}-icon-only`]:!v&&v!==0&&!!pe,[`${k}-background-ghost`]:C&&!Ec(M),[`${k}-loading`]:re,[`${k}-two-chinese-chars`]:te&&G&&!re,[`${k}-block`]:S,[`${k}-rtl`]:j==="rtl",[`${k}-icon-end`]:m==="end"},le,p,b,H),Ie=Object.assign(Object.assign({},_),$),he=ue(w==null?void 0:w.icon,W.icon),Ee=Object.assign(Object.assign({},(g==null?void 0:g.icon)||{}),q.icon||{}),oe=y&&!re?ce.createElement(Vu,{prefixCls:k,className:he,style:Ee},y):a&&typeof a=="object"&&a.icon?ce.createElement(Vu,{prefixCls:k,className:he,style:Ee},a.icon):ce.createElement(ax,{existIcon:!!y,prefixCls:k,loading:re,mount:xe.current}),me=v||v===0?rx(v,Oe&&G):null;if(be.href!==void 0)return z(ce.createElement("a",Object.assign({},be,{className:ue(Re,{[`${k}-disabled`]:Y}),href:Y?void 0:be.href,style:Ie,onClick:$e,ref:ge,tabIndex:Y?-1:0,"aria-disabled":Y}),oe,me));let Te=ce.createElement("button",Object.assign({},E,{type:x,className:Re,style:Ie,onClick:$e,disabled:Y,ref:ge}),oe,me,le&&ce.createElement(dw,{prefixCls:k}));return Ec(M)||(Te=ce.createElement(Mi,{component:"Button",disabled:re},Te)),z(Te)}),bo=gw;bo.Group=tx;bo.__ANT_BUTTON=!0;var tp=d.createContext(null),Nm=[];function hw(e,t){var n=d.useState(function(){if(!Zn())return null;var p=document.createElement("div");return p}),r=ee(n,1),a=r[0],o=d.useRef(!1),i=d.useContext(tp),l=d.useState(Nm),s=ee(l,2),u=s[0],c=s[1],f=i||(o.current?void 0:function(p){c(function(b){var v=[p].concat(Ne(b));return v})});function g(){a.parentElement||document.body.appendChild(a),o.current=!0}function h(){var p;(p=a.parentElement)===null||p===void 0||p.removeChild(a),o.current=!1}return Nt(function(){return e?i?i(g):g():h(),h},[e]),Nt(function(){u.length&&(u.forEach(function(p){return p()}),c(Nm))},[u]),[a,f]}function pw(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),u=parseInt(l.height,10);try{var c=s?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";zr(`
328
+ #`.concat(t,`::-webkit-scrollbar {
329
+ `).concat(c,`
330
+ `).concat(f,`
331
+ }`),t)}catch(p){console.error(p),a=s,o=u}}document.body.appendChild(n);var g=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,h=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),si(t),{width:g,height:h}}function bw(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:pw(e)}function yw(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Cw="rc-util-locker-".concat(Date.now()),Tm=0;function Sw(e){var t=!!e,n=d.useState(function(){return Tm+=1,"".concat(Cw,"_").concat(Tm)}),r=ee(n,1),a=r[0];Nt(function(){if(t){var o=bw(document.body).width,i=yw();zr(`
332
+ html body {
333
+ overflow-y: hidden;
334
+ `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
335
+ }`),a)}else si(a);return function(){si(a)}},[t,a])}var xw=!1;function ww(e){return xw}var Am=function(t){return t===!1?!1:!Zn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},np=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,l=e.children,s=d.useState(n),u=ee(s,2),c=u[0],f=u[1],g=c||n;d.useEffect(function(){(i||n)&&f(n)},[n,i]);var h=d.useState(function(){return Am(a)}),p=ee(h,2),b=p[0],v=p[1];d.useEffect(function(){var N=Am(a);v(N??null)});var y=hw(g&&!b),m=ee(y,2),C=m[0],S=m[1],x=b??C;Sw(r&&n&&Zn()&&(x===C||x===document.body));var w=null;if(l&&Ta(l)&&t){var $=l;w=$.ref}var O=wi(w,t);if(!g||!Zn()||b===void 0)return null;var R=x===!1||ww(),E=l;return t&&(E=d.cloneElement(l,{ref:O})),d.createElement(tp.Provider,{value:S},R?E:pd(E,x))});function $w(){var e=Z({},d);return e.useId}var Fm=0,Dm=$w();const l0=Dm?(function(t){var n=Dm();return t||n}):(function(t){var n=d.useState("ssr-id"),r=ee(n,2),a=r[0],o=r[1];return d.useEffect(function(){var i=Fm;Fm+=1,o("rc_unique_".concat(i))},[]),t||a});var ya="RC_FORM_INTERNAL_HOOKS",Yt=function(){An(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ra=d.createContext({getFieldValue:Yt,getFieldsValue:Yt,getFieldError:Yt,getFieldWarning:Yt,getFieldsError:Yt,isFieldsTouched:Yt,isFieldTouched:Yt,isFieldValidating:Yt,isFieldsValidating:Yt,resetFields:Yt,setFields:Yt,setFieldValue:Yt,setFieldsValue:Yt,validateFields:Yt,submit:Yt,getInternalHooks:function(){return Yt(),{dispatch:Yt,initEntityValue:Yt,registerField:Yt,useSubscribe:Yt,setInitialValues:Yt,destroyForm:Yt,setCallbacks:Yt,registerWatch:Yt,getFields:Yt,setValidateMessages:Yt,setPreserve:Yt,getInitialValue:Yt}}}),vi=d.createContext(null);function qu(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ew(e){return e&&!!e._init}function Uu(){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 Yu=Uu();function Ow(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Iw(e,t,n){if(jd())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&oi(a,n.prototype),a}function Gu(e){var t=typeof Map=="function"?new Map:void 0;return Gu=function(r){if(r===null||!Ow(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Iw(r,arguments,ii(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),oi(a,r)},Gu(e)}var Mw=/%[sdj%]/g,Rw=function(){};function Ku(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function rr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(Mw,function(l){if(l==="%%")return"%";if(a>=o)return l;switch(l){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function Pw(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function In(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Pw(t)&&typeof e=="string"&&!e)}function Nw(e,t,n){var r=[],a=0,o=e.length;function i(l){r.push.apply(r,Ne(l||[])),a++,a===o&&n(r)}e.forEach(function(l){t(l,i)})}function Lm(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<a?t(e[l],o):n([])}o([])}function Tw(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ne(e[n]||[]))}),t}var km=(function(e){sa(n,e);var t=ca(n);function n(r,a){var o;return cn(this,n),o=t.call(this,"Async Validation Error"),K(It(o),"errors",void 0),K(It(o),"fields",void 0),o.errors=r,o.fields=a,o}return un(n)})(Gu(Error));function Aw(e,t,n,r,a){if(t.first){var o=new Promise(function(g,h){var p=function(y){return r(y),y.length?h(new km(y,Ku(y))):g(a)},b=Tw(e);Lm(b,n,p)});return o.catch(function(g){return g}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,u=0,c=[],f=new Promise(function(g,h){var p=function(v){if(c.push.apply(c,v),u++,u===s)return r(c),c.length?h(new km(c,Ku(c))):g(a)};l.length||(r(c),g(a)),l.forEach(function(b){var v=e[b];i.indexOf(b)!==-1?Lm(v,n,p):Nw(v,n,p)})});return f.catch(function(g){return g}),f}function Fw(e){return!!(e&&e.message!==void 0)}function Dw(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function _m(e,t){return function(n){var r;return e.fullFields?r=Dw(t,e.fullFields):r=t[n.field||e.fullField],Fw(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Hm(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];nt(r)==="object"&&nt(e[n])==="object"?e[n]=Z(Z({},e[n]),r):e[n]=r}}return e}var Va="enum",Lw=function(t,n,r,a,o){t[Va]=Array.isArray(t[Va])?t[Va]:[],t[Va].indexOf(n)===-1&&a.push(rr(o.messages[Va],t.fullField,t[Va].join(", ")))},kw=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(rr(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||a.push(rr(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},_w=function(t,n,r,a,o){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,g=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(g?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=n.length),h&&(c=n.replace(u,"_").length),i?c!==t.len&&a.push(rr(o.messages[f].len,t.fullField,t.len)):l&&!s&&c<t.min?a.push(rr(o.messages[f].min,t.fullField,t.min)):s&&!l&&c>t.max?a.push(rr(o.messages[f].max,t.fullField,t.max)):l&&s&&(c<t.min||c>t.max)&&a.push(rr(o.messages[f].range,t.fullField,t.min,t.max))},rp=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||In(n,i||t.type))&&a.push(rr(o.messages.required,t.fullField))},Yi;const Hw=(function(){if(Yi)return Yi;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),c=function(w){return w&&w.exact?l:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(i).concat(t(w),")"),"g")};c.v4=function(x){return x&&x.exact?s:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},c.v6=function(x){return x&&x.exact?u:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",h=c.v4().source,p=c.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(g,"(?:localhost|").concat(h,"|").concat(p,"|").concat(b).concat(v).concat(y,")").concat(m).concat(C);return Yi=new RegExp("(?:^".concat(S,"$)"),"i"),Yi});var jm={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},qo={integer:function(t){return qo.number(t)&&parseInt(t,10)===t},float:function(t){return qo.number(t)&&!qo.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 nt(t)==="object"&&!qo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(jm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Hw())},hex:function(t){return typeof t=="string"&&!!t.match(jm.hex)}},jw=function(t,n,r,a,o){if(t.required&&n===void 0){rp(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?qo[l](n)||a.push(rr(o.messages.types[l],t.fullField,t.type)):l&&nt(n)!==t.type&&a.push(rr(o.messages.types[l],t.fullField,t.type))},zw=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(rr(o.messages.whitespace,t.fullField))};const Ft={required:rp,whitespace:zw,type:jw,range:_w,enum:Lw,pattern:kw};var Bw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Ft.required(t,n,a,i,o)}r(i)},Vw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Ft.required(t,n,a,i,o,"array"),n!=null&&(Ft.type(t,n,a,i,o),Ft.range(t,n,a,i,o))}r(i)},Ww=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Ft.required(t,n,a,i,o),n!==void 0&&Ft.type(t,n,a,i,o)}r(i)},qw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n,"date")&&!t.required)return r();if(Ft.required(t,n,a,i,o),!In(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Ft.type(t,s,a,i,o),s&&Ft.range(t,s.getTime(),a,i,o)}}r(i)},Uw="enum",Yw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Ft.required(t,n,a,i,o),n!==void 0&&Ft[Uw](t,n,a,i,o)}r(i)},Gw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Ft.required(t,n,a,i,o),n!==void 0&&(Ft.type(t,n,a,i,o),Ft.range(t,n,a,i,o))}r(i)},Kw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Ft.required(t,n,a,i,o),n!==void 0&&(Ft.type(t,n,a,i,o),Ft.range(t,n,a,i,o))}r(i)},Xw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Ft.required(t,n,a,i,o),n!==void 0&&Ft.type(t,n,a,i,o)}r(i)},Zw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),In(n)&&!t.required)return r();Ft.required(t,n,a,i,o),n!==void 0&&(Ft.type(t,n,a,i,o),Ft.range(t,n,a,i,o))}r(i)},Qw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Ft.required(t,n,a,i,o),n!==void 0&&Ft.type(t,n,a,i,o)}r(i)},Jw=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n,"string")&&!t.required)return r();Ft.required(t,n,a,i,o),In(n,"string")||Ft.pattern(t,n,a,i,o)}r(i)},e7=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Ft.required(t,n,a,i,o),In(n)||Ft.type(t,n,a,i,o)}r(i)},t7=function(t,n,r,a,o){var i=[],l=Array.isArray(n)?"array":nt(n);Ft.required(t,n,a,i,o,l),r(i)},n7=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(In(n,"string")&&!t.required)return r();Ft.required(t,n,a,i,o,"string"),In(n,"string")||(Ft.type(t,n,a,i,o),Ft.range(t,n,a,i,o),Ft.pattern(t,n,a,i,o),t.whitespace===!0&&Ft.whitespace(t,n,a,i,o))}r(i)},Rc=function(t,n,r,a,o){var i=t.type,l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(In(n,i)&&!t.required)return r();Ft.required(t,n,a,l,o,i),In(n,i)||Ft.type(t,n,a,l,o)}r(l)};const Jo={string:n7,method:Xw,number:Zw,boolean:Ww,regexp:e7,integer:Kw,float:Gw,array:Vw,object:Qw,enum:Yw,pattern:Jw,date:qw,url:Rc,hex:Rc,email:Rc,required:t7,any:Bw};var Pi=(function(){function e(t){cn(this,e),K(this,"rules",null),K(this,"_messages",Yu),this.define(t)}return un(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(nt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=Hm(Uu(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,l=a,s=o;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,i),Promise.resolve(i);function u(p){var b=[],v={};function y(C){if(Array.isArray(C)){var S;b=(S=b).concat.apply(S,Ne(C))}else b.push(C)}for(var m=0;m<p.length;m++)y(p[m]);b.length?(v=Ku(b),s(b,v)):s(null,i)}if(l.messages){var c=this.messages();c===Yu&&(c=Uu()),Hm(c,l.messages),l.messages=c}else l.messages=this.messages();var f={},g=l.keys||Object.keys(this.rules);g.forEach(function(p){var b=r.rules[p],v=i[p];b.forEach(function(y){var m=y;typeof m.transform=="function"&&(i===n&&(i=Z({},i)),v=i[p]=m.transform(v),v!=null&&(m.type=m.type||(Array.isArray(v)?"array":nt(v)))),typeof m=="function"?m={validator:m}:m=Z({},m),m.validator=r.getValidationMethod(m),m.validator&&(m.field=p,m.fullField=m.fullField||p,m.type=r.getType(m),f[p]=f[p]||[],f[p].push({rule:m,value:v,source:i,field:p}))})});var h={};return Aw(f,l,function(p,b){var v=p.rule,y=(v.type==="object"||v.type==="array")&&(nt(v.fields)==="object"||nt(v.defaultField)==="object");y=y&&(v.required||!v.required&&p.value),v.field=p.field;function m($,O){return Z(Z({},O),{},{fullField:"".concat(v.fullField,".").concat($),fullFields:v.fullFields?[].concat(Ne(v.fullFields),[$]):[$]})}function C(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray($)?$:[$];!l.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&v.message!==void 0&&(O=[].concat(v.message));var R=O.map(_m(v,i));if(l.first&&R.length)return h[v.field]=1,b(R);if(!y)b(R);else{if(v.required&&!p.value)return v.message!==void 0?R=[].concat(v.message).map(_m(v,i)):l.error&&(R=[l.error(v,rr(l.messages.required,v.field))]),b(R);var E={};v.defaultField&&Object.keys(p.value).map(function(D){E[D]=v.defaultField}),E=Z(Z({},E),p.rule.fields);var N={};Object.keys(E).forEach(function(D){var P=E[D],M=Array.isArray(P)?P:[P];N[D]=M.map(m.bind(null,D))});var L=new e(N);L.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),L.validate(p.value,p.rule.options||l,function(D){var P=[];R&&R.length&&P.push.apply(P,Ne(R)),D&&D.length&&P.push.apply(P,Ne(D)),b(P.length?P:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,p.value,C,p.source,l);else if(v.validator){try{S=v.validator(v,p.value,C,p.source,l)}catch($){var x,w;(x=(w=console).error)===null||x===void 0||x.call(w,$),l.suppressValidatorError||setTimeout(function(){throw $},0),C($.message)}S===!0?C():S===!1?C(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):S instanceof Array?C(S):S instanceof Error&&C(S.message)}S&&S.then&&S.then(function(){return C()},function($){return C($)})},function(p){u(p)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Jo.hasOwnProperty(n.type))throw new Error(rr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Jo.required:Jo[this.getType(n)]||void 0}}]),e})();K(Pi,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Jo[t]=n});K(Pi,"warning",Rw);K(Pi,"messages",Yu);K(Pi,"validators",Jo);var er="'${name}' is not a valid ${type}",ap={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:er,method:er,array:er,object:er,number:er,date:er,boolean:er,integer:er,float:er,regexp:er,email:er,url:er,hex:er},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}"}},zm=Pi;function r7(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Bm="CODE_LOGIC_ERROR";function Xu(e,t,n,r,a){return Zu.apply(this,arguments)}function Zu(){return Zu=Da(zn().mark(function e(t,n,r,a,o){var i,l,s,u,c,f,g,h,p;return zn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return i=Z({},r),delete i.ruleIndex,zm.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(Bm)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),u=new zm(K({},t,[i])),c=Za(ap,a.validateMessages),u.messages(c),f=[],v.prev=10,v.next=13,Promise.resolve(u.validate(K({},t,n),Z({},a)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,m){var C=y.message,S=C===Bm?c.default:C;return d.isValidElement(S)?d.cloneElement(S,{key:"error_".concat(m)}):S}));case 18:if(!(!f.length&&s&&Array.isArray(n)&&n.length>0)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,m){return Xu("".concat(t,".").concat(m),y,s,a,o)}));case 21:return g=v.sent,v.abrupt("return",g.reduce(function(y,m){return[].concat(Ne(y),Ne(m))},[]));case 23:return h=Z(Z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),p=f.map(function(y){return typeof y=="string"?r7(y,h):y}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Zu.apply(this,arguments)}function a7(e,t,n,r,a,o){var i=e.join("."),l=n.map(function(c,f){var g=c.validator,h=Z(Z({},c),{},{ruleIndex:f});return g&&(h.validator=function(p,b,v){var y=!1,m=function(){for(var x=arguments.length,w=new Array(x),$=0;$<x;$++)w[$]=arguments[$];Promise.resolve().then(function(){An(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,w)})},C=g(p,b,m);y=C&&typeof C.then=="function"&&typeof C.catch=="function",An(y,"`callback` is deprecated. Please return a promise instead."),y&&C.then(function(){v()}).catch(function(S){v(S||" ")})}),h}).sort(function(c,f){var g=c.warningOnly,h=c.ruleIndex,p=f.warningOnly,b=f.ruleIndex;return!!g==!!p?h-b:g?1:-1}),s;if(a===!0)s=new Promise((function(){var c=Da(zn().mark(function f(g,h){var p,b,v;return zn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:p=0;case 1:if(!(p<l.length)){m.next=12;break}return b=l[p],m.next=5,Xu(i,t,b,r,o);case 5:if(v=m.sent,!v.length){m.next=9;break}return h([{errors:v,rule:b}]),m.abrupt("return");case 9:p+=1,m.next=1;break;case 12:g([]);case 13:case"end":return m.stop()}},f)}));return function(f,g){return c.apply(this,arguments)}})());else{var u=l.map(function(c){return Xu(i,t,c,r,o).then(function(f){return{errors:f,rule:c}})});s=(a?i7(u):o7(u)).then(function(c){return Promise.reject(c)})}return s.catch(function(c){return c}),s}function o7(e){return Qu.apply(this,arguments)}function Qu(){return Qu=Da(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,Ne(a));return i}));case 1:case"end":return r.stop()}},e)})),Qu.apply(this,arguments)}function i7(e){return Ju.apply(this,arguments)}function Ju(){return Ju=Da(zn().mark(function e(t){var n;return zn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(l){l.errors.length&&o([l]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),Ju.apply(this,arguments)}function vn(e){return qu(e)}function Vm(e,t){var n={};return t.forEach(function(r){var a=mr(e,r);n=fr(n,r,a)}),n}function ao(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return op(t,r,n)})}function op(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function l7(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||nt(e)!=="object"||nt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Ne(a).every(function(o){var i=e[o],l=t[o];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function s7(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&nt(t.target)==="object"&&e in t.target?t.target[e]:t}function Wm(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Ne(e.slice(0,n)),[a],Ne(e.slice(n,t)),Ne(e.slice(t+1,r))):o<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,n+1)),[a],Ne(e.slice(n+1,r))):e}var c7=["name"],ur=[];function Pc(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var s0=(function(e){sa(n,e);var t=ca(n);function n(r){var a;if(cn(this,n),a=t.call(this,r),K(It(a),"state",{resetCount:0}),K(It(a),"cancelRegisterFunc",null),K(It(a),"mounted",!1),K(It(a),"touched",!1),K(It(a),"dirty",!1),K(It(a),"validatePromise",void 0),K(It(a),"prevValidating",void 0),K(It(a),"errors",ur),K(It(a),"warnings",ur),K(It(a),"cancelRegister",function(){var s=a.props,u=s.preserve,c=s.isListField,f=s.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(c,u,vn(f)),a.cancelRegisterFunc=null}),K(It(a),"getNamePath",function(){var s=a.props,u=s.name,c=s.fieldContext,f=c.prefixName,g=f===void 0?[]:f;return u!==void 0?[].concat(Ne(g),Ne(u)):[]}),K(It(a),"getRules",function(){var s=a.props,u=s.rules,c=u===void 0?[]:u,f=s.fieldContext;return c.map(function(g){return typeof g=="function"?g(f):g})}),K(It(a),"refresh",function(){a.mounted&&a.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),K(It(a),"metaCache",null),K(It(a),"triggerMetaEvent",function(s){var u=a.props.onMetaChange;if(u){var c=Z(Z({},a.getMeta()),{},{destroy:s});jl(a.metaCache,c)||u(c),a.metaCache=c}else a.metaCache=null}),K(It(a),"onStoreChange",function(s,u,c){var f=a.props,g=f.shouldUpdate,h=f.dependencies,p=h===void 0?[]:h,b=f.onReset,v=c.store,y=a.getNamePath(),m=a.getValue(s),C=a.getValue(v),S=u&&ao(u,y);switch(c.type==="valueUpdate"&&c.source==="external"&&!jl(m,C)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=ur,a.warnings=ur,a.triggerMetaEvent()),c.type){case"reset":if(!u||S){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=ur,a.warnings=ur,a.triggerMetaEvent(),b==null||b(),a.refresh();return}break;case"remove":{if(g&&Pc(g,s,v,m,C,c)){a.reRender();return}break}case"setField":{var x=c.data;if(S){"touched"in x&&(a.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(a.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(a.errors=x.errors||ur),"warnings"in x&&(a.warnings=x.warnings||ur),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in x&&ao(u,y,!0)){a.reRender();return}if(g&&!y.length&&Pc(g,s,v,m,C,c)){a.reRender();return}break}case"dependenciesUpdate":{var w=p.map(vn);if(w.some(function($){return ao(c.relatedFields,$)})){a.reRender();return}break}default:if(S||(!p.length||y.length||g)&&Pc(g,s,v,m,C,c)){a.reRender();return}break}g===!0&&a.reRender()}),K(It(a),"validateRules",function(s){var u=a.getNamePath(),c=a.getValue(),f=s||{},g=f.triggerName,h=f.validateOnly,p=h===void 0?!1:h,b=Promise.resolve().then(Da(zn().mark(function v(){var y,m,C,S,x,w,$;return zn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(y=a.props,m=y.validateFirst,C=m===void 0?!1:m,S=y.messageVariables,x=y.validateDebounce,w=a.getRules(),g&&(w=w.filter(function(E){return E}).filter(function(E){var N=E.validateTrigger;if(!N)return!0;var L=qu(N);return L.includes(g)})),!(x&&g)){R.next=10;break}return R.next=8,new Promise(function(E){setTimeout(E,x)});case 8:if(a.validatePromise===b){R.next=10;break}return R.abrupt("return",[]);case 10:return $=a7(u,c,w,s,C,S),$.catch(function(E){return E}).then(function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ur;if(a.validatePromise===b){var N;a.validatePromise=null;var L=[],D=[];(N=E.forEach)===null||N===void 0||N.call(E,function(P){var M=P.rule.warningOnly,I=P.errors,A=I===void 0?ur:I;M?D.push.apply(D,Ne(A)):L.push.apply(L,Ne(A))}),a.errors=L,a.warnings=D,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",$);case 13:case"end":return R.stop()}},v)})));return p||(a.validatePromise=b,a.dirty=!0,a.errors=ur,a.warnings=ur,a.triggerMetaEvent(),a.reRender()),b}),K(It(a),"isFieldValidating",function(){return!!a.validatePromise}),K(It(a),"isFieldTouched",function(){return a.touched}),K(It(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var s=a.props.fieldContext,u=s.getInternalHooks(ya),c=u.getInitialValue;return c(a.getNamePath())!==void 0}),K(It(a),"getErrors",function(){return a.errors}),K(It(a),"getWarnings",function(){return a.warnings}),K(It(a),"isListField",function(){return a.props.isListField}),K(It(a),"isList",function(){return a.props.isList}),K(It(a),"isPreserve",function(){return a.props.preserve}),K(It(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var s={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return s}),K(It(a),"getOnlyChild",function(s){if(typeof s=="function"){var u=a.getMeta();return Z(Z({},a.getOnlyChild(s(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var c=Oa(s);return c.length!==1||!d.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),K(It(a),"getValue",function(s){var u=a.props.fieldContext.getFieldsValue,c=a.getNamePath();return mr(s||u(!0),c)}),K(It(a),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,c=u.name,f=u.trigger,g=u.validateTrigger,h=u.getValueFromEvent,p=u.normalize,b=u.valuePropName,v=u.getValueProps,y=u.fieldContext,m=g!==void 0?g:y.validateTrigger,C=a.getNamePath(),S=y.getInternalHooks,x=y.getFieldsValue,w=S(ya),$=w.dispatch,O=a.getValue(),R=v||function(P){return K({},b,P)},E=s[f],N=c!==void 0?R(O):{},L=Z(Z({},s),N);L[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var P,M=arguments.length,I=new Array(M),A=0;A<M;A++)I[A]=arguments[A];h?P=h.apply(void 0,I):P=s7.apply(void 0,[b].concat(I)),p&&(P=p(P,O,x(!0))),P!==O&&$({type:"updateValue",namePath:C,value:P}),E&&E.apply(void 0,I)};var D=qu(m||[]);return D.forEach(function(P){var M=L[P];L[P]=function(){M&&M.apply(void 0,arguments);var I=a.props.rules;I&&I.length&&$({type:"validateField",namePath:C,triggerName:P})}}),L}),r.fieldContext){var o=r.fieldContext.getInternalHooks,i=o(ya),l=i.initEntityValue;l(It(a))}return a}return un(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var l=i.getInternalHooks,s=l(ya),u=s.registerField;this.cancelRegisterFunc=u(this)}o===!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 a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),l=i.child,s=i.isFunction,u;return s?u=l:d.isValidElement(l)?u=d.cloneElement(l,this.getControlled(l.props)):(An(!l,"`children` of Field is not validate ReactElement."),u=l),d.createElement(d.Fragment,{key:a},u)}}]),n})(d.Component);K(s0,"contextType",Ra);K(s0,"defaultProps",{trigger:"onChange",valuePropName:"value"});function c0(e){var t,n=e.name,r=wt(e,c7),a=d.useContext(Ra),o=d.useContext(vi),i=n!==void 0?vn(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!o,s="keep";return l||(s="_".concat((i||[]).join("_"))),d.createElement(s0,je({key:s,name:i,isListField:l},r,{fieldContext:a}))}function ip(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,l=d.useContext(Ra),s=d.useContext(vi),u=d.useRef({keys:[],id:0}),c=u.current,f=d.useMemo(function(){var b=vn(l.prefixName)||[];return[].concat(Ne(b),Ne(vn(t)))},[l.prefixName,t]),g=d.useMemo(function(){return Z(Z({},l),{},{prefixName:f})},[l,f]),h=d.useMemo(function(){return{getKey:function(v){var y=f.length,m=v[y];return[c.keys[m],v.slice(y+1)]}}},[f]);if(typeof r!="function")return An(!1,"Form.List only accepts function as children."),null;var p=function(v,y,m){var C=m.source;return C==="internal"?!1:v!==y};return d.createElement(vi.Provider,{value:h},d.createElement(Ra.Provider,{value:g},d.createElement(c0,{name:[],shouldUpdate:p,rules:a,validateTrigger:o,initialValue:n,isList:!0,isListField:i??!!s},function(b,v){var y=b.value,m=y===void 0?[]:y,C=b.onChange,S=l.getFieldValue,x=function(){var R=S(f||[]);return R||[]},w={add:function(R,E){var N=x();E>=0&&E<=N.length?(c.keys=[].concat(Ne(c.keys.slice(0,E)),[c.id],Ne(c.keys.slice(E))),C([].concat(Ne(N.slice(0,E)),[R],Ne(N.slice(E))))):(c.keys=[].concat(Ne(c.keys),[c.id]),C([].concat(Ne(N),[R]))),c.id+=1},remove:function(R){var E=x(),N=new Set(Array.isArray(R)?R:[R]);N.size<=0||(c.keys=c.keys.filter(function(L,D){return!N.has(D)}),C(E.filter(function(L,D){return!N.has(D)})))},move:function(R,E){if(R!==E){var N=x();R<0||R>=N.length||E<0||E>=N.length||(c.keys=Wm(c.keys,R,E),C(Wm(N,R,E)))}}},$=m||[];return Array.isArray($)||($=[]),r($.map(function(O,R){var E=c.keys[R];return E===void 0&&(c.keys[R]=c.id,E=c.keys[R],c.id+=1),{name:R,key:E,isListField:!0}}),w,v)})))}function u7(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var lp="__@field_split__";function Nc(e){return e.map(function(t){return"".concat(nt(t),":").concat(t)}).join(lp)}var Wa=(function(){function e(){cn(this,e),K(this,"kvs",new Map)}return un(e,[{key:"set",value:function(n,r){this.kvs.set(Nc(n),r)}},{key:"get",value:function(n){return this.kvs.get(Nc(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Nc(n))}},{key:"map",value:function(n){return Ne(this.kvs.entries()).map(function(r){var a=ee(r,2),o=a[0],i=a[1],l=o.split(lp);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),c=ee(u,3),f=c[1],g=c[2];return f==="number"?Number(g):g}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e})(),d7=["name"],f7=un(function e(t){var n=this;cn(this,e),K(this,"formHooked",!1),K(this,"forceRootUpdate",void 0),K(this,"subscribable",!0),K(this,"store",{}),K(this,"fieldEntities",[]),K(this,"initialValues",{}),K(this,"callbacks",{}),K(this,"validateMessages",null),K(this,"preserve",null),K(this,"lastValidatePromise",null),K(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),K(this,"getInternalHooks",function(r){return r===ya?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(An(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),K(this,"useSubscribe",function(r){n.subscribable=r}),K(this,"prevWithoutPreserves",null),K(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Za(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var s=l.key;i=fr(i,s,mr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),K(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new Wa;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),K(this,"getInitialValue",function(r){var a=mr(n.initialValues,r);return r.length?Za(a):a}),K(this,"setCallbacks",function(r){n.callbacks=r}),K(this,"setValidateMessages",function(r){n.validateMessages=r}),K(this,"setPreserve",function(r){n.preserve=r}),K(this,"watchList",[]),K(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),K(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),K(this,"timeoutId",null),K(this,"warningUnhooked",function(){}),K(this,"updateStore",function(r){n.store=r}),K(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),K(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Wa;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),K(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=vn(o);return a.get(i)||{INVALIDATE_NAME_PATH:vn(o)}})}),K(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,l;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&nt(r)==="object"&&(l=r.strict,i=r.filter),o===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return s.forEach(function(c){var f,g,h="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(l){var p,b;if((p=(b=c).isList)!==null&&p!==void 0&&p.call(b))return}else if(!o&&(f=(g=c).isListField)!==null&&f!==void 0&&f.call(g))return;if(!i)u.push(h);else{var v="getMeta"in c?c.getMeta():null;i(v)&&u.push(h)}}),Vm(n.store,u.map(vn))}),K(this,"getFieldValue",function(r){n.warningUnhooked();var a=vn(r);return mr(n.store,a)}),K(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:vn(r[i]),errors:[],warnings:[]}})}),K(this,"getFieldError",function(r){n.warningUnhooked();var a=vn(r),o=n.getFieldsError([a])[0];return o.errors}),K(this,"getFieldWarning",function(r){n.warningUnhooked();var a=vn(r),o=n.getFieldsError([a])[0];return o.warnings}),K(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var i=a[0],l=a[1],s,u=!1;a.length===0?s=null:a.length===1?Array.isArray(i)?(s=i.map(vn),u=!1):(s=null,u=i):(s=i.map(vn),u=l);var c=n.getFieldEntities(!0),f=function(v){return v.isFieldTouched()};if(!s)return u?c.every(function(b){return f(b)||b.isList()}):c.some(f);var g=new Wa;s.forEach(function(b){g.set(b,[])}),c.forEach(function(b){var v=b.getNamePath();s.forEach(function(y){y.every(function(m,C){return v[C]===m})&&g.update(y,function(m){return[].concat(Ne(m),[b])})})});var h=function(v){return v.some(f)},p=g.map(function(b){var v=b.value;return v});return u?p.every(h):p.some(h)}),K(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),K(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(i){return i.isFieldValidating()});var o=r.map(vn);return a.some(function(i){var l=i.getNamePath();return ao(o,l)&&i.isFieldValidating()})}),K(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),K(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new Wa,o=n.getFieldEntities(!0);o.forEach(function(s){var u=s.props.initialValue,c=s.getNamePath();if(u!==void 0){var f=a.get(c)||new Set;f.add({entity:s,value:u}),a.set(c,f)}});var i=function(u){u.forEach(function(c){var f=c.props.initialValue;if(f!==void 0){var g=c.getNamePath(),h=n.getInitialValue(g);if(h!==void 0)An(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var p=a.get(g);if(p&&p.size>1)An(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var b=n.getFieldValue(g),v=c.isListField();!v&&(!r.skipExist||b===void 0)&&n.updateStore(fr(n.store,g,Ne(p)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=a.get(s);if(u){var c;(c=l).push.apply(c,Ne(Ne(u).map(function(f){return f.entity})))}})):l=o,i(l)}),K(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Za(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(vn);o.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(fr(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),K(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var l=i.name,s=wt(i,d7),u=vn(l);o.push(u),"value"in s&&n.updateStore(fr(n.store,u,s.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),K(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),l=o.getMeta(),s=Z(Z({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return a}),K(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=mr(n.store,o);i===void 0&&n.updateStore(fr(n.store,o,a))}}),K(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),K(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||s.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!op(f.getNamePath(),a)})){var c=n.store;n.updateStore(fr(c,a,u,!0)),n.notifyObservers(c,[a],{type:"remove"}),n.triggerDependenciesUpdate(c,a)}}n.notifyWatch([a])}}),K(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),K(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=Z(Z({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,a,i)})}else n.forceRootUpdate()}),K(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Ne(o))}),o}),K(this,"updateValue",function(r,a){var o=vn(r),i=n.store;n.updateStore(fr(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(i,o),s=n.callbacks.onValuesChange;if(s){var u=Vm(n.store,[o]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Ne(l)))}),K(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Za(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),K(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),K(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new Wa;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(c){var f=vn(c);i.update(f,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(s),g})})});var l=function s(u){var c=i.get(u)||new Set;c.forEach(function(f){if(!a.has(f)){a.add(f);var g=f.getNamePath();f.isFieldDirty()&&g.length&&(o.push(g),s(g))}})};return l(r),o}),K(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var l=new Wa;a.forEach(function(u){var c=u.name,f=u.errors;l.set(c,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=i.filter(function(u){var c=u.name;return ao(r,c)});s.length&&o(s,i)}}),K(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var l=!!o,s=l?o.map(vn):[],u=[],c=String(Date.now()),f=new Set,g=i||{},h=g.recursive,p=g.dirty;n.getFieldEntities(!0).forEach(function(m){if(l||s.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(p&&!m.isFieldDirty())){var C=m.getNamePath();if(f.add(C.join(c)),!l||ao(s,C,h)){var S=m.validateRules(Z({validateMessages:Z(Z({},ap),n.validateMessages)},i));u.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(x){var w,$=[],O=[];return(w=x.forEach)===null||w===void 0||w.call(x,function(R){var E=R.rule.warningOnly,N=R.errors;E?O.push.apply(O,Ne(N)):$.push.apply($,Ne(N))}),$.length?Promise.reject({name:C,errors:$,warnings:O}):{name:C,errors:$,warnings:O}}))}}});var b=u7(u);n.lastValidatePromise=b,b.catch(function(m){return m}).then(function(m){var C=m.map(function(S){var x=S.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,m)});var v=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(m){var C=m.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:C,outOfDate:n.lastValidatePromise!==b})});v.catch(function(m){return m});var y=s.filter(function(m){return f.has(m.join(c))});return n.triggerOnFieldsChange(y),v}),K(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function u0(e){var t=d.useRef(),n=d.useState({}),r=ee(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new f7(o);t.current=i.getForm()}return[t.current]}var ed=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sp=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=d.useContext(ed),l=d.useRef({});return d.createElement(ed.Provider,{value:Z(Z({},i),{},{validateMessages:Z(Z({},i.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:l.current}),i.triggerFormChange(u,c)},triggerFormFinish:function(u,c){a&&a(u,{values:c,forms:l.current}),i.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(l.current=Z(Z({},l.current),{},K({},u,c))),i.registerForm(u,c)},unregisterForm:function(u){var c=Z({},l.current);delete c[u],l.current=c,i.unregisterForm(u)}})},o)},m7=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],v7=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,l=t.preserve,s=t.children,u=t.component,c=u===void 0?"form":u,f=t.validateMessages,g=t.validateTrigger,h=g===void 0?"onChange":g,p=t.onValuesChange,b=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,m=t.clearOnDestroy,C=wt(t,m7),S=d.useRef(null),x=d.useContext(ed),w=u0(i),$=ee(w,1),O=$[0],R=O.getInternalHooks(ya),E=R.useSubscribe,N=R.setInitialValues,L=R.setCallbacks,D=R.setValidateMessages,P=R.setPreserve,M=R.destroyForm;d.useImperativeHandle(n,function(){return Z(Z({},O),{},{nativeElement:S.current})}),d.useEffect(function(){return x.registerForm(r,O),function(){x.unregisterForm(r)}},[x,O,r]),D(Z(Z({},x.validateMessages),f)),L({onValuesChange:p,onFieldsChange:function(q){if(x.triggerFormChange(r,q),b){for(var G=arguments.length,k=new Array(G>1?G-1:0),z=1;z<G;z++)k[z-1]=arguments[z];b.apply(void 0,[q].concat(k))}},onFinish:function(q){x.triggerFormFinish(r,q),v&&v(q)},onFinishFailed:y}),P(l);var I=d.useRef(null);N(a,!I.current),I.current||(I.current=!0),d.useEffect(function(){return function(){return M(m)}},[]);var A,T=typeof s=="function";if(T){var j=O.getFieldsValue(!0);A=s(j,O)}else A=s;E(!T);var B=d.useRef();d.useEffect(function(){l7(B.current||[],o||[])||O.setFields(o||[]),B.current=o},[o,O]);var H=d.useMemo(function(){return Z(Z({},O),{},{validateTrigger:h})},[O,h]),_=d.createElement(vi.Provider,{value:null},d.createElement(Ra.Provider,{value:H},A));return c===!1?_:d.createElement(c,je({},C,{ref:S,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),O.submit()},onReset:function(q){var G;q.preventDefault(),O.resetFields(),(G=C.onReset)===null||G===void 0||G.call(C,q)}}),_)};function qm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function cp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],o=a===void 0?{}:a,i=Ew(o)?{form:o}:o,l=i.form,s=jt(),u=ee(s,2),c=u[0],f=u[1],g=Bn(function(){return qm(c)},[c]),h=Xe(g);h.current=g;var p=gn(Ra),b=l||p,v=b&&b._init,y=vn(r),m=Xe(y);return m.current=y,Zt(function(){if(v){var C=b.getFieldsValue,S=b.getInternalHooks,x=S(ya),w=x.registerWatch,$=function(N,L){var D=i.preserve?L:N;return typeof r=="function"?r(D):mr(D,m.current)},O=w(function(E,N){var L=$(E,N),D=qm(L);h.current!==D&&(h.current=D,f(L))}),R=$(C(),C(!0));return c!==R&&f(R),O}},[v]),c}var g7=d.forwardRef(v7),Mo=g7;Mo.FormProvider=sp;Mo.Field=c0;Mo.List=ip;Mo.useForm=u0;Mo.useWatch=cp;const Br=d.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),up=d.createContext(null),dp=e=>{const t=Er(e,["prefixCls"]);return d.createElement(sp,Object.assign({},t))},d0=d.createContext({prefixCls:""}),Mn=d.createContext({}),fp=({children:e,status:t,override:n})=>{const r=d.useContext(Mn),a=d.useMemo(()=>{const o=Object.assign({},r);return n&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,n,r]);return d.createElement(Mn.Provider,{value:a},e)},mp=d.createContext(void 0),aa=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=ce.createElement(fp,{override:!0,status:!0},a)),t&&(a=ce.createElement(Q4,null,a)),a},h7=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},p7=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},b7=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},td=(e,t)=>b7(e,t),y7=(e,t,n)=>({[`@media (min-width: ${ve(t)})`]:Object.assign({},td(e,n))}),C7=()=>({}),S7=()=>({}),x7=Rn("Grid",h7,C7),w7=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),$7=Rn("Grid",e=>{const t=Bt(e,{gridColumns:24}),n=w7(t);return delete n.xs,[p7(t),td(t,""),td(t,"-xs"),Object.keys(n).map(r=>y7(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},S7);function E7(e){return t=>d.createElement(Fa,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const js=(e,t,n,r,a)=>E7(i=>{const{prefixCls:l,style:s}=i,u=d.useRef(null),[c,f]=d.useState(0),[g,h]=d.useState(0),[p,b]=ln(!1,{value:i.open}),{getPrefixCls:v}=d.useContext(Tt),y=v(r||"select",l);d.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(w=>{const $=w[0].target;f($.offsetHeight+8),h($.offsetWidth)}),x=setInterval(()=>{var w;const $=a?`.${a(y)}`:`.${y}-dropdown`,O=(w=u.current)===null||w===void 0?void 0:w.querySelector($);O&&(clearInterval(x),S.observe(O))},10);return()=>{clearInterval(x),S.disconnect()}}},[y]);let m=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:p,visible:p,getPopupContainer:()=>u.current});t&&Object.assign(m,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:c,position:"relative",minWidth:g};return d.createElement("div",{ref:u,style:C},d.createElement(e,Object.assign({},m)))}),f0=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var zs=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(a):r;return d.createElement("span",{className:n,onMouseDown:function(c){c.preventDefault(),i==null||i(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:d.createElement("span",{className:ue(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},O7=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=ce.useMemo(function(){if(nt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),c=ce.useMemo(function(){return!!(!i&&a&&(r.length||l)&&!(s==="combobox"&&l===""))},[a,i,r.length,l,s]);return{allowClear:c,clearIcon:ce.createElement(zs,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"\xD7")}},vp=d.createContext(null);function I7(){return d.useContext(vp)}function M7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=ee(t,2),r=n[0],a=n[1],o=d.useRef(null),i=function(){window.clearTimeout(o.current)};d.useEffect(function(){return i},[]);var l=function(u,c){i(),o.current=window.setTimeout(function(){a(u),c&&c()},e)};return[r,l,i]}function gp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function R7(e,t,n,r){var a=d.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function o(i){var l;if(!((l=a.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(s)&&u!==s})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function P7(e){return e&&![et.ESC,et.SHIFT,et.BACKSPACE,et.TAB,et.WIN_KEY,et.ALT,et.META,et.WIN_KEY_RIGHT,et.CTRL,et.SEMICOLON,et.EQUALS,et.CAPS_LOCK,et.CONTEXT_MENU,et.F1,et.F2,et.F3,et.F4,et.F5,et.F6,et.F7,et.F8,et.F9,et.F10,et.F11,et.F12].includes(e)}var N7=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],qa=void 0;function T7(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,c=e.className,f=e.style,g=e.children,h=e.display,p=e.order,b=e.component,v=b===void 0?"div":b,y=wt(e,N7),m=i&&!h;function C(O){s(u,O)}d.useEffect(function(){return function(){C(null)}},[]);var S=o&&a!==qa?o(a,{index:p}):g,x;r||(x={opacity:m?0:1,height:m?0:qa,overflowY:m?"hidden":qa,order:i?p:qa,pointerEvents:m?"none":qa,position:m?"absolute":qa});var w={};m&&(w["aria-hidden"]=!0);var $=d.createElement(v,je({className:ue(!r&&n,c),style:Z(Z({},x),f)},w,y,{ref:t}),S);return i&&($=d.createElement(Lr,{onResize:function(R){var E=R.offsetWidth;C(E)},disabled:l},$)),$}var eo=d.forwardRef(T7);eo.displayName="Item";function A7(e){if(typeof MessageChannel>"u")Ct(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function F7(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],A7(function(){qb(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Ua(e,t){var n=d.useState(t),r=ee(n,2),a=r[0],o=r[1],i=Mt(function(l){e(function(){o(l)})});return[a,i]}var Zl=ce.createContext(null),D7=["component"],L7=["className"],k7=["className"],_7=function(t,n){var r=d.useContext(Zl);if(!r){var a=t.component,o=a===void 0?"div":a,i=wt(t,D7);return d.createElement(o,je({},i,{ref:n}))}var l=r.className,s=wt(r,L7),u=t.className,c=wt(t,k7);return d.createElement(Zl.Provider,{value:null},d.createElement(eo,je({ref:n,className:ue(l,u)},s,c)))},hp=d.forwardRef(_7);hp.displayName="RawItem";var H7=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],pp="responsive",bp="invalidate";function j7(e){return"+ ".concat(e.length," ...")}function z7(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,c=u===void 0?10:u,f=e.ssr,g=e.style,h=e.className,p=e.maxCount,b=e.renderRest,v=e.renderRawRest,y=e.prefix,m=e.suffix,C=e.component,S=C===void 0?"div":C,x=e.itemComponent,w=e.onVisibleChange,$=wt(e,H7),O=f==="full",R=F7(),E=Ua(R,null),N=ee(E,2),L=N[0],D=N[1],P=L||0,M=Ua(R,new Map),I=ee(M,2),A=I[0],T=I[1],j=Ua(R,0),B=ee(j,2),H=B[0],_=B[1],W=Ua(R,0),q=ee(W,2),G=q[0],k=q[1],z=Ua(R,0),V=ee(z,2),F=V[0],X=V[1],Y=Ua(R,0),U=ee(Y,2),J=U[0],re=U[1],ne=jt(null),te=ee(ne,2),de=te[0],ae=te[1],ge=jt(null),Oe=ee(ge,2),xe=Oe[0],$e=Oe[1],Se=d.useMemo(function(){return xe===null&&O?Number.MAX_SAFE_INTEGER:xe||0},[xe,L]),le=jt(!1),Me=ee(le,2),Pe=Me[0],ie=Me[1],pe="".concat(r,"-item"),be=Math.max(H,G),Re=p===pp,Ie=o.length&&Re,he=p===bp,Ee=Ie||typeof p=="number"&&o.length>p,oe=Bn(function(){var ye=o;return Ie?L===null&&O?ye=o:ye=o.slice(0,Math.min(o.length,P/c)):typeof p=="number"&&(ye=o.slice(0,p)),ye},[o,c,L,p,Ie]),me=Bn(function(){return Ie?o.slice(Se+1):o.slice(oe.length)},[o,oe,Ie,Se]),Te=En(function(ye,Ce){var De;return typeof s=="function"?s(ye):(De=s&&(ye==null?void 0:ye[s]))!==null&&De!==void 0?De:Ce},[s]),se=En(i||function(ye){return ye},[i]);function we(ye,Ce,De){xe===ye&&(Ce===void 0||Ce===de)||($e(ye),De||(ie(ye<o.length-1),w==null||w(ye)),Ce!==void 0&&ae(Ce))}function Ze(ye,Ce){D(Ce.clientWidth)}function lt(ye,Ce){T(function(De){var Qe=new Map(De);return Ce===null?Qe.delete(ye):Qe.set(ye,Ce),Qe})}function mt(ye,Ce){k(Ce),_(G)}function _e(ye,Ce){X(Ce)}function ke(ye,Ce){re(Ce)}function We(ye){return A.get(Te(oe[ye],ye))}Nt(function(){if(P&&typeof be=="number"&&oe){var ye=F+J,Ce=oe.length,De=Ce-1;if(!Ce){we(0,null);return}for(var Qe=0;Qe<Ce;Qe+=1){var Ue=We(Qe);if(O&&(Ue=Ue||0),Ue===void 0){we(Qe-1,void 0,!0);break}if(ye+=Ue,De===0&&ye<=P||Qe===De-1&&ye+We(De)<=P){we(De,null);break}else if(ye+be>P){we(Qe-1,ye-Ue-J+G);break}}m&&We(0)+J>P&&ae(null)}},[P,A,G,F,J,Te,oe]);var ze=Pe&&!!me.length,qe={};de!==null&&Ie&&(qe={position:"absolute",left:de,top:0});var vt={prefixCls:pe,responsive:Ie,component:x,invalidate:he},ct=l?function(ye,Ce){var De=Te(ye,Ce);return d.createElement(Zl.Provider,{key:De,value:Z(Z({},vt),{},{order:Ce,item:ye,itemKey:De,registerSize:lt,display:Ce<=Se})},l(ye,Ce))}:function(ye,Ce){var De=Te(ye,Ce);return d.createElement(eo,je({},vt,{order:Ce,key:De,item:ye,renderItem:se,itemKey:De,registerSize:lt,display:Ce<=Se}))},Ke={order:ze?Se:Number.MAX_SAFE_INTEGER,className:"".concat(pe,"-rest"),registerSize:mt,display:ze},Ae=b||j7,it=v?d.createElement(Zl.Provider,{value:Z(Z({},vt),Ke)},v(me)):d.createElement(eo,je({},vt,Ke),typeof Ae=="function"?Ae(me):Ae),Fe=d.createElement(S,je({className:ue(!he&&r,h),style:g,ref:t},$),y&&d.createElement(eo,je({},vt,{responsive:Re,responsiveDisabled:!Ie,order:-1,className:"".concat(pe,"-prefix"),registerSize:_e,display:!0}),y),oe.map(ct),Ee?it:null,m&&d.createElement(eo,je({},vt,{responsive:Re,responsiveDisabled:!Ie,order:Se,className:"".concat(pe,"-suffix"),registerSize:ke,display:!0,style:qe}),m));return Re?d.createElement(Lr,{onResize:Ze,disabled:!Ie},Fe):Fe}var Ro=d.forwardRef(z7);Ro.displayName="Overflow";Ro.Item=hp;Ro.RESPONSIVE=pp;Ro.INVALIDATE=bp;function B7(e,t,n){var r=Z(Z({},e),t);return Object.keys(t).forEach(function(a){var o=t[a];typeof o=="function"&&(r[a]=function(){for(var i,l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return o.apply(void 0,s),(i=e[a])===null||i===void 0?void 0:i.call.apply(i,[e].concat(s))})}),r}var V7=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],W7=function(t,n){var r=t.prefixCls,a=t.id,o=t.inputElement,i=t.autoFocus,l=t.autoComplete,s=t.editable,u=t.activeDescendantId,c=t.value,f=t.open,g=t.attrs,h=wt(t,V7),p=o||d.createElement("input",null),b=p,v=b.ref,y=b.props;return"maxLength"in p.props,p=d.cloneElement(p,Z(Z(Z({type:"search"},B7(h,y)),{},{id:a,ref:ar(n,v),autoComplete:l||"off",autoFocus:i,className:ue("".concat(r,"-selection-search-input"),y==null?void 0:y.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":f?u:void 0},g),{},{value:s?c:"",readOnly:!s,unselectable:s?null:"on",style:Z(Z({},y.style),{},{opacity:s?null:0})})),p},yp=d.forwardRef(W7);function Cp(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var q7=typeof window<"u"&&window.document&&window.document.documentElement,U7=q7;function Y7(e){return e!=null}function G7(e){return!e&&e!==0}function Um(e){return["string","number"].includes(nt(e))}function Sp(e){var t=void 0;return e&&(Um(e.title)?t=e.title.toString():Um(e.label)&&(t=e.label.toString())),t}function K7(e,t){U7?d.useLayoutEffect(e,t):d.useEffect(e,t)}function X7(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Ym=function(t){t.preventDefault(),t.stopPropagation()},Z7=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,c=t.disabled,f=t.mode,g=t.showSearch,h=t.autoFocus,p=t.autoComplete,b=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,m=t.maxTagCount,C=t.maxTagTextLength,S=t.maxTagPlaceholder,x=S===void 0?function(re){return"+ ".concat(re.length," ...")}:S,w=t.tagRender,$=t.onToggleOpen,O=t.onRemove,R=t.onInputChange,E=t.onInputPaste,N=t.onInputKeyDown,L=t.onInputMouseDown,D=t.onInputCompositionStart,P=t.onInputCompositionEnd,M=t.onInputBlur,I=d.useRef(null),A=jt(0),T=ee(A,2),j=T[0],B=T[1],H=jt(!1),_=ee(H,2),W=_[0],q=_[1],G="".concat(r,"-selection"),k=o||f==="multiple"&&l===!1||f==="tags"?i:"",z=f==="tags"||f==="multiple"&&l===!1||g&&(o||W);K7(function(){B(I.current.scrollWidth)},[k]);var V=function(ne,te,de,ae,ge){return d.createElement("span",{title:Sp(ne),className:ue("".concat(G,"-item"),K({},"".concat(G,"-item-disabled"),de))},d.createElement("span",{className:"".concat(G,"-item-content")},te),ae&&d.createElement(zs,{className:"".concat(G,"-item-remove"),onMouseDown:Ym,onClick:ge,customizeIcon:y},"\xD7"))},F=function(ne,te,de,ae,ge,Oe){var xe=function(Se){Ym(Se),$(!o)};return d.createElement("span",{onMouseDown:xe},w({label:te,value:ne,disabled:de,closable:ae,onClose:ge,isMaxTag:!!Oe}))},X=function(ne){var te=ne.disabled,de=ne.label,ae=ne.value,ge=!c&&!te,Oe=de;if(typeof C=="number"&&(typeof de=="string"||typeof de=="number")){var xe=String(Oe);xe.length>C&&(Oe="".concat(xe.slice(0,C),"..."))}var $e=function(le){le&&le.stopPropagation(),O(ne)};return typeof w=="function"?F(ae,Oe,te,ge,$e):V(ne,Oe,te,ge,$e)},Y=function(ne){if(!a.length)return null;var te=typeof x=="function"?x(ne):x;return typeof w=="function"?F(void 0,te,!1,!1,void 0,!0):V({title:te},te,!1)},U=d.createElement("div",{className:"".concat(G,"-search"),style:{width:j},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},d.createElement(yp,{ref:s,open:o,prefixCls:r,id:n,inputElement:null,disabled:c,autoFocus:h,autoComplete:p,editable:z,activeDescendantId:b,value:k,onKeyDown:N,onMouseDown:L,onChange:R,onPaste:E,onCompositionStart:D,onCompositionEnd:P,onBlur:M,tabIndex:v,attrs:Fr(t,!0)}),d.createElement("span",{ref:I,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},k,"\xA0")),J=d.createElement(Ro,{prefixCls:"".concat(G,"-overflow"),data:a,renderItem:X,renderRest:Y,suffix:U,itemKey:X7,maxCount:m});return d.createElement("span",{className:"".concat(G,"-wrap")},J,!a.length&&!k&&d.createElement("span",{className:"".concat(G,"-placeholder")},u))},Q7=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,c=t.mode,f=t.open,g=t.values,h=t.placeholder,p=t.tabIndex,b=t.showSearch,v=t.searchValue,y=t.activeValue,m=t.maxLength,C=t.onInputKeyDown,S=t.onInputMouseDown,x=t.onInputChange,w=t.onInputPaste,$=t.onInputCompositionStart,O=t.onInputCompositionEnd,R=t.onInputBlur,E=t.title,N=d.useState(!1),L=ee(N,2),D=L[0],P=L[1],M=c==="combobox",I=M||b,A=g[0],T=v||"";M&&y&&!D&&(T=y),d.useEffect(function(){M&&P(!1)},[M,y]);var j=c!=="combobox"&&!f&&!b?!1:!!T,B=E===void 0?Sp(A):E,H=d.useMemo(function(){return A?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},h)},[A,j,h,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(yp,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:I,activeDescendantId:u,value:T,onKeyDown:C,onMouseDown:S,onChange:function(W){P(!0),x(W)},onPaste:w,onCompositionStart:$,onCompositionEnd:O,onBlur:R,tabIndex:p,attrs:Fr(t,!0),maxLength:M?m:void 0})),!M&&A?d.createElement("span",{className:"".concat(r,"-selection-item"),title:B,style:j?{visibility:"hidden"}:void 0},A.label):null,H)},J7=function(t,n){var r=Xe(null),a=Xe(!1),o=t.prefixCls,i=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,c=t.disabled,f=t.prefix,g=t.autoClearSearchValue,h=t.onSearch,p=t.onSearchSubmit,b=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,m=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(B){r.current.focus(B)},blur:function(){r.current.blur()}}});var C=gp(0),S=ee(C,2),x=S[0],w=S[1],$=function(B){var H=B.which,_=r.current instanceof HTMLTextAreaElement;!_&&i&&(H===et.UP||H===et.DOWN)&&B.preventDefault(),v&&v(B),H===et.ENTER&&l==="tags"&&!a.current&&!i&&(p==null||p(B.target.value)),!(_&&!i&&~[et.UP,et.DOWN,et.LEFT,et.RIGHT].indexOf(H))&&P7(H)&&b(!0)},O=function(){w(!0)},R=Xe(null),E=function(B){h(B,!0,a.current)!==!1&&b(!0)},N=function(){a.current=!0},L=function(B){a.current=!1,l!=="combobox"&&E(B.target.value)},D=function(B){var H=B.target.value;if(u&&R.current&&/[\r\n]/.test(R.current)){var _=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(_,R.current)}R.current=null,E(H)},P=function(B){var H=B.clipboardData,_=H==null?void 0:H.getData("text");R.current=_||""},M=function(B){var H=B.target;if(H!==r.current){var _=document.body.style.msTouchAction!==void 0;_?setTimeout(function(){r.current.focus()}):r.current.focus()}},I=function(B){var H=x();B.target!==r.current&&!H&&!(l==="combobox"&&c)&&B.preventDefault(),(l!=="combobox"&&(!s||!H)||!i)&&(i&&g!==!1&&h("",!0,!1),b())},A={inputRef:r,onInputKeyDown:$,onInputMouseDown:O,onInputChange:D,onInputPaste:P,onInputCompositionStart:N,onInputCompositionEnd:L,onInputBlur:y},T=l==="multiple"||l==="tags"?d.createElement(Z7,je({},t,A)):d.createElement(Q7,je({},t,A));return d.createElement("div",{ref:m,className:"".concat(o,"-selector"),onClick:M,onMouseDown:I},f&&d.createElement("div",{className:"".concat(o,"-prefix")},f),T)},e9=d.forwardRef(J7);function t9(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,l=o.content,s=a.x,u=s===void 0?0:s,c=a.y,f=c===void 0?0:c,g=d.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],b=n.points[1],v=p[0],y=p[1],m=b[0],C=b[1];v===m||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,y===C||!["l","r"].includes(y)?h.left=u:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:g,className:ue("".concat(t,"-arrow"),i),style:h},l)}function n9(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?d.createElement(Oo,je({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return d.createElement("div",{style:{zIndex:r},className:ue("".concat(t,"-mask"),l)})}):null}var r9=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),a9=d.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,u=e.keepDom,c=e.fresh,f=e.onClick,g=e.mask,h=e.arrow,p=e.arrowPos,b=e.align,v=e.motion,y=e.maskMotion,m=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,x=e.portal,w=e.zIndex,$=e.onMouseEnter,O=e.onMouseLeave,R=e.onPointerEnter,E=e.onPointerDownCapture,N=e.ready,L=e.offsetX,D=e.offsetY,P=e.offsetR,M=e.offsetB,I=e.onAlign,A=e.onPrepare,T=e.stretch,j=e.targetWidth,B=e.targetHeight,H=typeof n=="function"?n():n,_=s||u,W=(C==null?void 0:C.length)>0,q=d.useState(!C||!W),G=ee(q,2),k=G[0],z=G[1];if(Nt(function(){!k&&W&&i&&z(!0)},[k,W,i]),!k)return null;var V="auto",F={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(N||!s){var X,Y=b.points,U=b.dynamicInset||((X=b._experimental)===null||X===void 0?void 0:X.dynamicInset),J=U&&Y[0][1]==="r",re=U&&Y[0][0]==="b";J?(F.right=P,F.left=V):(F.left=L,F.right=V),re?(F.bottom=M,F.top=V):(F.top=D,F.bottom=V)}var ne={};return T&&(T.includes("height")&&B?ne.height=B:T.includes("minHeight")&&B&&(ne.minHeight=B),T.includes("width")&&j?ne.width=j:T.includes("minWidth")&&j&&(ne.minWidth=j)),s||(ne.pointerEvents="none"),d.createElement(x,{open:m||_,getContainer:C&&function(){return C(i)},autoDestroy:S},d.createElement(n9,{prefixCls:a,open:s,zIndex:w,mask:g,motion:y}),d.createElement(Lr,{onResize:I,disabled:!s},function(te){return d.createElement(Oo,je({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},v,{onAppearPrepare:A,onEnterPrepare:A,visible:s,onVisibleChanged:function(ae){var ge;v==null||(ge=v.onVisibleChanged)===null||ge===void 0||ge.call(v,ae),l(ae)}}),function(de,ae){var ge=de.className,Oe=de.style,xe=ue(a,ge,r);return d.createElement("div",{ref:ar(te,t,ae),className:xe,style:Z(Z(Z(Z({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},F),ne),Oe),{},{boxSizing:"border-box",zIndex:w},o),onMouseEnter:$,onMouseLeave:O,onPointerEnter:R,onClick:f,onPointerDownCapture:E},h&&d.createElement(t9,{prefixCls:a,arrow:h,arrowPos:p,align:b}),d.createElement(r9,{cache:!s&&!c},H))})}))}),o9=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Ta(n),o=d.useCallback(function(l){_d(t,r?r(l):l)},[r]),i=wi(o,$i(n));return a?d.cloneElement(n,{ref:i}):n}),Gm=d.createContext(null);function Km(e){return e?Array.isArray(e)?e:[e]:[]}function i9(e,t,n,r){return d.useMemo(function(){var a=Km(n??t),o=Km(r??t),i=new Set(a),l=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function l9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function s9(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i<o.length;i+=1){var l,s=o[i];if(l9((l=e[s])===null||l===void 0?void 0:l.points,a,r))return"".concat(t,"-placement-").concat(s)}return""}function Xm(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ni(e){return e.ownerDocument.defaultView}function nd(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=Ni(n).getComputedStyle(n),o=a.overflowX,i=a.overflowY,l=a.overflow;[o,i,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function jo(e){return gi(parseFloat(e),0)}function Zm(e,t){var n=Z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=Ni(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,l=a.borderTopWidth,s=a.borderBottomWidth,u=a.borderLeftWidth,c=a.borderRightWidth,f=r.getBoundingClientRect(),g=r.offsetHeight,h=r.clientHeight,p=r.offsetWidth,b=r.clientWidth,v=jo(l),y=jo(s),m=jo(u),C=jo(c),S=gi(Math.round(f.width/p*1e3)/1e3),x=gi(Math.round(f.height/g*1e3)/1e3),w=(p-b-m-C)*S,$=(g-h-v-y)*x,O=v*x,R=y*x,E=m*S,N=C*S,L=0,D=0;if(o==="clip"){var P=jo(i);L=P*S,D=P*x}var M=f.x+E-L,I=f.y+O-D,A=M+f.width+2*L-E-N-w,T=I+f.height+2*D-O-R-$;n.left=Math.max(n.left,M),n.top=Math.max(n.top,I),n.right=Math.min(n.right,A),n.bottom=Math.min(n.bottom,T)}}),n}function Qm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Jm(e,t){var n=t||[],r=ee(n,2),a=r[0],o=r[1];return[Qm(e.width,a),Qm(e.height,o)]}function ev(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ya(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Yr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function c9(e,t,n,r,a,o,i){var l=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),s=ee(l,2),u=s[0],c=s[1],f=d.useRef(0),g=d.useMemo(function(){return t?nd(t):[]},[t]),h=d.useRef({}),p=function(){h.current={}};e||p();var b=Mt(function(){if(t&&n&&e){let Vt=function(Do,kr){var qr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Me,Lo=_.x+Do,Ai=_.y+kr,Xs=Lo+re,Zs=Ai+J,Qs=Math.max(Lo,qr.left),Je=Math.max(Ai,qr.top),gt=Math.min(Xs,qr.right),nn=Math.min(Zs,qr.bottom);return Math.max(0,(gt-Qs)*(nn-Je))},Wr=function(){kt=_.y+Ae,Rt=kt+J,Ht=_.x+Ke,Lt=Ht+re};var m,C,S,x,w=t,$=w.ownerDocument,O=Ni(w),R=O.getComputedStyle(w),E=R.position,N=w.style.left,L=w.style.top,D=w.style.right,P=w.style.bottom,M=w.style.overflow,I=Z(Z({},a[r]),o),A=$.createElement("div");(m=w.parentElement)===null||m===void 0||m.appendChild(A),A.style.left="".concat(w.offsetLeft,"px"),A.style.top="".concat(w.offsetTop,"px"),A.style.position=E,A.style.height="".concat(w.offsetHeight,"px"),A.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 T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else{var j,B,H=n.getBoundingClientRect();H.x=(j=H.x)!==null&&j!==void 0?j:H.left,H.y=(B=H.y)!==null&&B!==void 0?B:H.top,T={x:H.x,y:H.y,width:H.width,height:H.height}}var _=w.getBoundingClientRect(),W=O.getComputedStyle(w),q=W.height,G=W.width;_.x=(C=_.x)!==null&&C!==void 0?C:_.left,_.y=(S=_.y)!==null&&S!==void 0?S:_.top;var k=$.documentElement,z=k.clientWidth,V=k.clientHeight,F=k.scrollWidth,X=k.scrollHeight,Y=k.scrollTop,U=k.scrollLeft,J=_.height,re=_.width,ne=T.height,te=T.width,de={left:0,top:0,right:z,bottom:V},ae={left:-U,top:-Y,right:F-U,bottom:X-Y},ge=I.htmlRegion,Oe="visible",xe="visibleFirst";ge!=="scroll"&&ge!==xe&&(ge=Oe);var $e=ge===xe,Se=Zm(ae,g),le=Zm(de,g),Me=ge===Oe?le:Se,Pe=$e?le:Me;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var ie=w.getBoundingClientRect();w.style.left=N,w.style.top=L,w.style.right=D,w.style.bottom=P,w.style.overflow=M,(x=w.parentElement)===null||x===void 0||x.removeChild(A);var pe=gi(Math.round(re/parseFloat(G)*1e3)/1e3),be=gi(Math.round(J/parseFloat(q)*1e3)/1e3);if(pe===0||be===0||ai(n)&&!Ns(n))return;var Re=I.offset,Ie=I.targetOffset,he=Jm(_,Re),Ee=ee(he,2),oe=Ee[0],me=Ee[1],Te=Jm(T,Ie),se=ee(Te,2),we=se[0],Ze=se[1];T.x-=we,T.y-=Ze;var lt=I.points||[],mt=ee(lt,2),_e=mt[0],ke=mt[1],We=ev(ke),ze=ev(_e),qe=Ya(T,We),vt=Ya(_,ze),ct=Z({},I),Ke=qe.x-vt.x+oe,Ae=qe.y-vt.y+me,it=Vt(Ke,Ae),Fe=Vt(Ke,Ae,le),ye=Ya(T,["t","l"]),Ce=Ya(_,["t","l"]),De=Ya(T,["b","r"]),Qe=Ya(_,["b","r"]),Ue=I.overflow||{},ht=Ue.adjustX,$t=Ue.adjustY,ut=Ue.shiftX,Et=Ue.shiftY,_t=function(kr){return typeof kr=="boolean"?kr:kr>=0},kt,Rt,Ht,Lt;Wr();var Qt=_t($t),He=ze[0]===We[0];if(Qt&&ze[0]==="t"&&(Rt>Pe.bottom||h.current.bt)){var Ve=Ae;He?Ve-=J-ne:Ve=ye.y-Qe.y-me;var Be=Vt(Ke,Ve),Le=Vt(Ke,Ve,le);Be>it||Be===it&&(!$e||Le>=Fe)?(h.current.bt=!0,Ae=Ve,me=-me,ct.points=[Yr(ze,0),Yr(We,0)]):h.current.bt=!1}if(Qt&&ze[0]==="b"&&(kt<Pe.top||h.current.tb)){var tt=Ae;He?tt+=J-ne:tt=De.y-Ce.y-me;var St=Vt(Ke,tt),Pt=Vt(Ke,tt,le);St>it||St===it&&(!$e||Pt>=Fe)?(h.current.tb=!0,Ae=tt,me=-me,ct.points=[Yr(ze,0),Yr(We,0)]):h.current.tb=!1}var en=_t(ht),an=ze[1]===We[1];if(en&&ze[1]==="l"&&(Lt>Pe.right||h.current.rl)){var Ut=Ke;an?Ut-=re-te:Ut=ye.x-Qe.x-oe;var Kt=Vt(Ut,Ae),pn=Vt(Ut,Ae,le);Kt>it||Kt===it&&(!$e||pn>=Fe)?(h.current.rl=!0,Ke=Ut,oe=-oe,ct.points=[Yr(ze,1),Yr(We,1)]):h.current.rl=!1}if(en&&ze[1]==="r"&&(Ht<Pe.left||h.current.lr)){var dn=Ke;an?dn+=re-te:dn=De.x-Ce.x-oe;var bn=Vt(dn,Ae),Pn=Vt(dn,Ae,le);bn>it||bn===it&&(!$e||Pn>=Fe)?(h.current.lr=!0,Ke=dn,oe=-oe,ct.points=[Yr(ze,1),Yr(We,1)]):h.current.lr=!1}Wr();var yn=ut===!0?0:ut;typeof yn=="number"&&(Ht<le.left&&(Ke-=Ht-le.left-oe,T.x+te<le.left+yn&&(Ke+=T.x-le.left+te-yn)),Lt>le.right&&(Ke-=Lt-le.right-oe,T.x>le.right-yn&&(Ke+=T.x-le.right+yn)));var Wn=Et===!0?0:Et;typeof Wn=="number"&&(kt<le.top&&(Ae-=kt-le.top-me,T.y+ne<le.top+Wn&&(Ae+=T.y-le.top+ne-Wn)),Rt>le.bottom&&(Ae-=Rt-le.bottom-me,T.y>le.bottom-Wn&&(Ae+=T.y-le.bottom+Wn)));var qn=_.x+Ke,Un=qn+re,lr=_.y+Ae,pr=lr+J,bt=T.x,dt=bt+te,rn=T.y,rt=rn+ne,Ye=Math.max(qn,bt),At=Math.min(Un,dt),tn=(Ye+At)/2,wn=tn-qn,Yn=Math.max(lr,rn),sr=Math.min(pr,rt),Qn=(Yn+sr)/2,yt=Qn-lr;i==null||i(t,ct);var at=ie.right-_.x-(Ke+_.width),pt=ie.bottom-_.y-(Ae+_.height);pe===1&&(Ke=Math.round(Ke),at=Math.round(at)),be===1&&(Ae=Math.round(Ae),pt=Math.round(pt));var Xt={ready:!0,offsetX:Ke/pe,offsetY:Ae/be,offsetR:at/pe,offsetB:pt/be,arrowX:wn/pe,arrowY:yt/be,scaleX:pe,scaleY:be,align:ct};c(Xt)}}),v=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&b()})},y=function(){c(function(C){return Z(Z({},C),{},{ready:!1})})};return Nt(y,[r]),Nt(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function u9(e,t,n,r,a){Nt(function(){if(e&&t&&n){let f=function(){r(),a()};var o=t,i=n,l=nd(o),s=nd(i),u=Ni(i),c=new Set([u].concat(Ne(l),Ne(s)));return c.forEach(function(g){g.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){c.forEach(function(g){g.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function d9(e,t,n,r,a,o,i,l){var s=d.useRef(e);s.current=e;var u=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!a||o)){var f=function(){u.current=!1},g=function(v){var y;s.current&&!i(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!u.current&&l(!1)},h=Ni(r);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",g,!0),h.addEventListener("contextmenu",g,!0);var p=Ul(n);return p&&(p.addEventListener("mousedown",g,!0),p.addEventListener("contextmenu",g,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",g,!0),h.removeEventListener("contextmenu",g,!0),p&&(p.removeEventListener("mousedown",g,!0),p.removeEventListener("contextmenu",g,!0))}}},[t,n,r,a,o]);function c(){u.current=!0}return c}var f9=["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 m9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:np,t=d.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,l=n.action,s=l===void 0?"hover":l,u=n.showAction,c=n.hideAction,f=n.popupVisible,g=n.defaultPopupVisible,h=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,b=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,m=n.focusDelay,C=n.blurDelay,S=n.mask,x=n.maskClosable,w=x===void 0?!0:x,$=n.getPopupContainer,O=n.forceRender,R=n.autoDestroy,E=n.destroyPopupOnHide,N=n.popup,L=n.popupClassName,D=n.popupStyle,P=n.popupPlacement,M=n.builtinPlacements,I=M===void 0?{}:M,A=n.popupAlign,T=n.zIndex,j=n.stretch,B=n.getPopupClassNameFromAlign,H=n.fresh,_=n.alignPoint,W=n.onPopupClick,q=n.onPopupAlign,G=n.arrow,k=n.popupMotion,z=n.maskMotion,V=n.popupTransitionName,F=n.popupAnimation,X=n.maskTransitionName,Y=n.maskAnimation,U=n.className,J=n.getTriggerDOMNode,re=wt(n,f9),ne=R||E||!1,te=d.useState(!1),de=ee(te,2),ae=de[0],ge=de[1];Nt(function(){ge(f0())},[]);var Oe=d.useRef({}),xe=d.useContext(Gm),$e=d.useMemo(function(){return{registerSubPopup:function(gt,nn){Oe.current[gt]=nn,xe==null||xe.registerSubPopup(gt,nn)}}},[xe]),Se=l0(),le=d.useState(null),Me=ee(le,2),Pe=Me[0],ie=Me[1],pe=d.useRef(null),be=Mt(function(Je){pe.current=Je,ai(Je)&&Pe!==Je&&ie(Je),xe==null||xe.registerSubPopup(Se,Je)}),Re=d.useState(null),Ie=ee(Re,2),he=Ie[0],Ee=Ie[1],oe=d.useRef(null),me=Mt(function(Je){ai(Je)&&he!==Je&&(Ee(Je),oe.current=Je)}),Te=d.Children.only(i),se=(Te==null?void 0:Te.props)||{},we={},Ze=Mt(function(Je){var gt,nn,$n=he;return($n==null?void 0:$n.contains(Je))||((gt=Ul($n))===null||gt===void 0?void 0:gt.host)===Je||Je===$n||(Pe==null?void 0:Pe.contains(Je))||((nn=Ul(Pe))===null||nn===void 0?void 0:nn.host)===Je||Je===Pe||Object.values(Oe.current).some(function(on){return(on==null?void 0:on.contains(Je))||Je===on})}),lt=Xm(o,k,F,V),mt=Xm(o,z,Y,X),_e=d.useState(g||!1),ke=ee(_e,2),We=ke[0],ze=ke[1],qe=f??We,vt=Mt(function(Je){f===void 0&&ze(Je)});Nt(function(){ze(f||!1)},[f]);var ct=d.useRef(qe);ct.current=qe;var Ke=d.useRef([]);Ke.current=[];var Ae=Mt(function(Je){var gt;vt(Je),((gt=Ke.current[Ke.current.length-1])!==null&&gt!==void 0?gt:qe)!==Je&&(Ke.current.push(Je),h==null||h(Je))}),it=d.useRef(),Fe=function(){clearTimeout(it.current)},ye=function(gt){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fe(),nn===0?Ae(gt):it.current=setTimeout(function(){Ae(gt)},nn*1e3)};d.useEffect(function(){return Fe},[]);var Ce=d.useState(!1),De=ee(Ce,2),Qe=De[0],Ue=De[1];Nt(function(Je){(!Je||qe)&&Ue(!0)},[qe]);var ht=d.useState(null),$t=ee(ht,2),ut=$t[0],Et=$t[1],_t=d.useState(null),kt=ee(_t,2),Rt=kt[0],Ht=kt[1],Lt=function(gt){Ht([gt.clientX,gt.clientY])},Qt=c9(qe,Pe,_&&Rt!==null?Rt:he,P,I,A,q),He=ee(Qt,11),Ve=He[0],Be=He[1],Le=He[2],tt=He[3],St=He[4],Pt=He[5],en=He[6],an=He[7],Ut=He[8],Kt=He[9],pn=He[10],dn=i9(ae,s,u,c),bn=ee(dn,2),Pn=bn[0],yn=bn[1],Wn=Pn.has("click"),qn=yn.has("click")||yn.has("contextMenu"),Un=Mt(function(){Qe||pn()}),lr=function(){ct.current&&_&&qn&&ye(!1)};u9(qe,he,Pe,Un,lr),Nt(function(){Un()},[Rt,P]),Nt(function(){qe&&!(I!=null&&I[P])&&Un()},[JSON.stringify(A)]);var pr=d.useMemo(function(){var Je=s9(I,o,Kt,_);return ue(Je,B==null?void 0:B(Kt))},[Kt,B,I,o,_]);d.useImperativeHandle(r,function(){return{nativeElement:oe.current,popupElement:pe.current,forceAlign:Un}});var bt=d.useState(0),dt=ee(bt,2),rn=dt[0],rt=dt[1],Ye=d.useState(0),At=ee(Ye,2),tn=At[0],wn=At[1],Yn=function(){if(j&&he){var gt=he.getBoundingClientRect();rt(gt.width),wn(gt.height)}},sr=function(){Yn(),Un()},Qn=function(gt){Ue(!1),pn(),p==null||p(gt)},yt=function(){return new Promise(function(gt){Yn(),Et(function(){return gt})})};Nt(function(){ut&&(pn(),ut(),Et(null))},[ut]);function at(Je,gt,nn,$n){we[Je]=function(on){var Fi;$n==null||$n(on),ye(gt,nn);for(var Js=arguments.length,B0=new Array(Js>1?Js-1:0),Di=1;Di<Js;Di++)B0[Di-1]=arguments[Di];(Fi=se[Je])===null||Fi===void 0||Fi.call.apply(Fi,[se,on].concat(B0))}}(Wn||qn)&&(we.onClick=function(Je){var gt;ct.current&&qn?ye(!1):!ct.current&&Wn&&(Lt(Je),ye(!0));for(var nn=arguments.length,$n=new Array(nn>1?nn-1:0),on=1;on<nn;on++)$n[on-1]=arguments[on];(gt=se.onClick)===null||gt===void 0||gt.call.apply(gt,[se,Je].concat($n))});var pt=d9(qe,qn,he,Pe,S,w,Ze,ye),Xt=Pn.has("hover"),Vt=yn.has("hover"),Wr,Do;Xt&&(at("onMouseEnter",!0,b,function(Je){Lt(Je)}),at("onPointerEnter",!0,b,function(Je){Lt(Je)}),Wr=function(gt){(qe||Qe)&&Pe!==null&&Pe!==void 0&&Pe.contains(gt.target)&&ye(!0,b)},_&&(we.onMouseMove=function(Je){var gt;(gt=se.onMouseMove)===null||gt===void 0||gt.call(se,Je)})),Vt&&(at("onMouseLeave",!1,y),at("onPointerLeave",!1,y),Do=function(){ye(!1,y)}),Pn.has("focus")&&at("onFocus",!0,m),yn.has("focus")&&at("onBlur",!1,C),Pn.has("contextMenu")&&(we.onContextMenu=function(Je){var gt;ct.current&&yn.has("contextMenu")?ye(!1):(Lt(Je),ye(!0)),Je.preventDefault();for(var nn=arguments.length,$n=new Array(nn>1?nn-1:0),on=1;on<nn;on++)$n[on-1]=arguments[on];(gt=se.onContextMenu)===null||gt===void 0||gt.call.apply(gt,[se,Je].concat($n))}),U&&(we.className=ue(se.className,U));var kr=d.useRef(!1);kr.current||(kr.current=O||qe||Qe);var qr=Z(Z({},se),we),Lo={},Ai=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ai.forEach(function(Je){re[Je]&&(Lo[Je]=function(){for(var gt,nn=arguments.length,$n=new Array(nn),on=0;on<nn;on++)$n[on]=arguments[on];(gt=qr[Je])===null||gt===void 0||gt.call.apply(gt,[qr].concat($n)),re[Je].apply(re,$n)})});var Xs=d.cloneElement(Te,Z(Z({},qr),Lo)),Zs={x:Pt,y:en},Qs=G?Z({},G!==!0?G:{}):null;return d.createElement(d.Fragment,null,d.createElement(Lr,{disabled:!qe,ref:me,onResize:sr},d.createElement(o9,{getTriggerDOMNode:J},Xs)),kr.current&&d.createElement(Gm.Provider,{value:$e},d.createElement(a9,{portal:e,ref:be,prefixCls:o,popup:N,className:ue(L,pr),style:D,target:he,onMouseEnter:Wr,onMouseLeave:Do,onPointerEnter:Wr,zIndex:T,open:qe,keepDom:Qe,fresh:H,onClick:W,onPointerDownCapture:pt,mask:S,motion:lt,maskMotion:mt,onVisibleChanged:Qn,onPrepare:yt,forceRender:O,autoDestroy:ne,getPopupContainer:$,align:Kt,arrow:Qs,arrowPos:Zs,ready:Ve,offsetX:Be,offsetY:Le,offsetR:tt,offsetB:St,onAlign:Un,stretch:j,targetWidth:rn/an,targetHeight:tn/Ut})))});return t}const m0=m9(np);var v9=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],g9=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},h9=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,o=t.children,i=t.popupElement,l=t.animation,s=t.transitionName,u=t.dropdownStyle,c=t.dropdownClassName,f=t.direction,g=f===void 0?"ltr":f,h=t.placement,p=t.builtinPlacements,b=t.dropdownMatchSelectWidth,v=t.dropdownRender,y=t.dropdownAlign,m=t.getPopupContainer,C=t.empty,S=t.getTriggerDOMNode,x=t.onPopupVisibleChange,w=t.onPopupMouseEnter,$=wt(t,v9),O="".concat(r,"-dropdown"),R=i;v&&(R=v(i));var E=d.useMemo(function(){return p||g9(b)},[p,b]),N=l?"".concat(O,"-").concat(l):s,L=typeof b=="number",D=d.useMemo(function(){return L?null:b===!1?"minWidth":"width"},[b,L]),P=u;L&&(P=Z(Z({},P),{},{width:b}));var M=d.useRef(null);return d.useImperativeHandle(n,function(){return{getPopupElement:function(){var A;return(A=M.current)===null||A===void 0?void 0:A.popupElement}}}),d.createElement(m0,je({},$,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||(g==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:O,popupTransitionName:N,popup:d.createElement("div",{onMouseEnter:w},R),ref:M,stretch:D,popupAlign:y,popupVisible:a,getPopupContainer:m,popupClassName:ue(c,K({},"".concat(O,"-empty"),C)),popupStyle:P,getTriggerDOMNode:S,onPopupVisibleChange:x}),o)},p9=d.forwardRef(h9);function tv(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function rd(e){return typeof e<"u"&&!Number.isNaN(e)}function xp(e,t){var n=e||{},r=n.label,a=n.value,o=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:a||"value",options:o||"options",groupLabel:i||l}}function b9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=xp(n,!1),i=o.label,l=o.value,s=o.options,u=o.groupLabel;function c(f,g){Array.isArray(f)&&f.forEach(function(h){if(g||!(s in h)){var p=h[l];a.push({key:tv(h,a.length),groupOption:g,data:h,label:h[i],value:p})}else{var b=h[u];b===void 0&&r&&(b=h.label),a.push({key:tv(h,a.length),group:!0,data:h,label:b}),c(h[s],!0)}})}return c(e,!1),a}function ad(e){var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return An(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var y9=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function l(s,u){var c=oh(u),f=c[0],g=c.slice(1);if(!f)return[s];var h=s.split(f);return a=a||h.length>1,h.reduce(function(p,b){return[].concat(Ne(p),Ne(l(b,g)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},v0=d.createContext(null);function C9(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(nt(o))?o:i}).join(", ")),n.length>r?", ...":null)}var S9=["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"],x9=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],od=function(t){return t==="tags"||t==="multiple"},w9=d.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,l=e.tagRender,s=e.direction,u=e.omitDomProps,c=e.displayValues,f=e.onDisplayValuesChange,g=e.emptyOptions,h=e.notFoundContent,p=h===void 0?"Not Found":h,b=e.onClear,v=e.mode,y=e.disabled,m=e.loading,C=e.getInputElement,S=e.getRawInputElement,x=e.open,w=e.defaultOpen,$=e.onDropdownVisibleChange,O=e.activeValue,R=e.onActiveValueChange,E=e.activeDescendantId,N=e.searchValue,L=e.autoClearSearchValue,D=e.onSearch,P=e.onSearchSplit,M=e.tokenSeparators,I=e.allowClear,A=e.prefix,T=e.suffixIcon,j=e.clearIcon,B=e.OptionList,H=e.animation,_=e.transitionName,W=e.dropdownStyle,q=e.dropdownClassName,G=e.dropdownMatchSelectWidth,k=e.dropdownRender,z=e.dropdownAlign,V=e.placement,F=e.builtinPlacements,X=e.getPopupContainer,Y=e.showAction,U=Y===void 0?[]:Y,J=e.onFocus,re=e.onBlur,ne=e.onKeyUp,te=e.onKeyDown,de=e.onMouseDown,ae=wt(e,S9),ge=od(v),Oe=(i!==void 0?i:ge)||v==="combobox",xe=Z({},ae);x9.forEach(function(bt){delete xe[bt]}),u==null||u.forEach(function(bt){delete xe[bt]});var $e=d.useState(!1),Se=ee($e,2),le=Se[0],Me=Se[1];d.useEffect(function(){Me(f0())},[]);var Pe=d.useRef(null),ie=d.useRef(null),pe=d.useRef(null),be=d.useRef(null),Re=d.useRef(null),Ie=d.useRef(!1),he=M7(),Ee=ee(he,3),oe=Ee[0],me=Ee[1],Te=Ee[2];d.useImperativeHandle(t,function(){var bt,dt;return{focus:(bt=be.current)===null||bt===void 0?void 0:bt.focus,blur:(dt=be.current)===null||dt===void 0?void 0:dt.blur,scrollTo:function(rt){var Ye;return(Ye=Re.current)===null||Ye===void 0?void 0:Ye.scrollTo(rt)},nativeElement:Pe.current||ie.current}});var se=d.useMemo(function(){var bt;if(v!=="combobox")return N;var dt=(bt=c[0])===null||bt===void 0?void 0:bt.value;return typeof dt=="string"||typeof dt=="number"?String(dt):""},[N,v,c]),we=v==="combobox"&&typeof C=="function"&&C()||null,Ze=typeof S=="function"&&S(),lt=wi(ie,Ze==null||(n=Ze.props)===null||n===void 0?void 0:n.ref),mt=d.useState(!1),_e=ee(mt,2),ke=_e[0],We=_e[1];Nt(function(){We(!0)},[]);var ze=ln(!1,{defaultValue:w,value:x}),qe=ee(ze,2),vt=qe[0],ct=qe[1],Ke=ke?vt:!1,Ae=!p&&g;(y||Ae&&Ke&&v==="combobox")&&(Ke=!1);var it=Ae?!1:Ke,Fe=d.useCallback(function(bt){var dt=bt!==void 0?bt:!Ke;y||(ct(dt),Ke!==dt&&($==null||$(dt)))},[y,Ke,ct,$]),ye=d.useMemo(function(){return(M||[]).some(function(bt){return[`
336
+ `,`\r
337
+ `].includes(bt)})},[M]),Ce=d.useContext(v0)||{},De=Ce.maxCount,Qe=Ce.rawValues,Ue=function(dt,rn,rt){if(!(ge&&rd(De)&&(Qe==null?void 0:Qe.size)>=De)){var Ye=!0,At=dt;R==null||R(null);var tn=y9(dt,M,rd(De)?De-Qe.size:void 0),wn=rt?null:tn;return v!=="combobox"&&wn&&(At="",P==null||P(wn),Fe(!1),Ye=!1),D&&se!==At&&D(At,{source:rn?"typing":"effect"}),Ye}},ht=function(dt){!dt||!dt.trim()||D(dt,{source:"submit"})};d.useEffect(function(){!Ke&&!ge&&v!=="combobox"&&Ue("",!1,!1)},[Ke]),d.useEffect(function(){vt&&y&&ct(!1),y&&!Ie.current&&me(!1)},[y]);var $t=gp(),ut=ee($t,2),Et=ut[0],_t=ut[1],kt=d.useRef(!1),Rt=function(dt){var rn=Et(),rt=dt.key,Ye=rt==="Enter";if(Ye&&(v!=="combobox"&&dt.preventDefault(),Ke||Fe(!0)),_t(!!se),rt==="Backspace"&&!rn&&ge&&!se&&c.length){for(var At=Ne(c),tn=null,wn=At.length-1;wn>=0;wn-=1){var Yn=At[wn];if(!Yn.disabled){At.splice(wn,1),tn=Yn;break}}tn&&f(At,{type:"remove",values:[tn]})}for(var sr=arguments.length,Qn=new Array(sr>1?sr-1:0),yt=1;yt<sr;yt++)Qn[yt-1]=arguments[yt];if(Ke&&(!Ye||!kt.current)){var at;Ye&&(kt.current=!0),(at=Re.current)===null||at===void 0||at.onKeyDown.apply(at,[dt].concat(Qn))}te==null||te.apply(void 0,[dt].concat(Qn))},Ht=function(dt){for(var rn=arguments.length,rt=new Array(rn>1?rn-1:0),Ye=1;Ye<rn;Ye++)rt[Ye-1]=arguments[Ye];if(Ke){var At;(At=Re.current)===null||At===void 0||At.onKeyUp.apply(At,[dt].concat(rt))}dt.key==="Enter"&&(kt.current=!1),ne==null||ne.apply(void 0,[dt].concat(rt))},Lt=function(dt){var rn=c.filter(function(rt){return rt!==dt});f(rn,{type:"remove",values:[dt]})},Qt=function(){kt.current=!1},He=d.useRef(!1),Ve=function(){me(!0),y||(J&&!He.current&&J.apply(void 0,arguments),U.includes("focus")&&Fe(!0)),He.current=!0},Be=function(){Ie.current=!0,me(!1,function(){He.current=!1,Ie.current=!1,Fe(!1)}),!y&&(se&&(v==="tags"?D(se,{source:"submit"}):v==="multiple"&&D("",{source:"blur"})),re&&re.apply(void 0,arguments))},Le=[];d.useEffect(function(){return function(){Le.forEach(function(bt){return clearTimeout(bt)}),Le.splice(0,Le.length)}},[]);var tt=function(dt){var rn,rt=dt.target,Ye=(rn=pe.current)===null||rn===void 0?void 0:rn.getPopupElement();if(Ye&&Ye.contains(rt)){var At=setTimeout(function(){var sr=Le.indexOf(At);if(sr!==-1&&Le.splice(sr,1),Te(),!le&&!Ye.contains(document.activeElement)){var Qn;(Qn=be.current)===null||Qn===void 0||Qn.focus()}});Le.push(At)}for(var tn=arguments.length,wn=new Array(tn>1?tn-1:0),Yn=1;Yn<tn;Yn++)wn[Yn-1]=arguments[Yn];de==null||de.apply(void 0,[dt].concat(wn))},St=d.useState({}),Pt=ee(St,2),en=Pt[1];function an(){en({})}var Ut;Ze&&(Ut=function(dt){Fe(dt)}),R7(function(){var bt;return[Pe.current,(bt=pe.current)===null||bt===void 0?void 0:bt.getPopupElement()]},it,Fe,!!Ze);var Kt=d.useMemo(function(){return Z(Z({},e),{},{notFoundContent:p,open:Ke,triggerOpen:it,id:r,showSearch:Oe,multiple:ge,toggleOpen:Fe})},[e,p,it,Ke,r,Oe,ge,Fe]),pn=!!T||m,dn;pn&&(dn=d.createElement(zs,{className:ue("".concat(a,"-arrow"),K({},"".concat(a,"-arrow-loading"),m)),customizeIcon:T,customizeIconProps:{loading:m,searchValue:se,open:Ke,focused:oe,showSearch:Oe}}));var bn=function(){var dt;b==null||b(),(dt=be.current)===null||dt===void 0||dt.focus(),f([],{type:"clear",values:c}),Ue("",!1,!1)},Pn=O7(a,bn,c,I,j,y,se,v),yn=Pn.allowClear,Wn=Pn.clearIcon,qn=d.createElement(B,{ref:Re}),Un=ue(a,o,K(K(K(K(K(K(K(K(K(K({},"".concat(a,"-focused"),oe),"".concat(a,"-multiple"),ge),"".concat(a,"-single"),!ge),"".concat(a,"-allow-clear"),I),"".concat(a,"-show-arrow"),pn),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),m),"".concat(a,"-open"),Ke),"".concat(a,"-customize-input"),we),"".concat(a,"-show-search"),Oe)),lr=d.createElement(p9,{ref:pe,disabled:y,prefixCls:a,visible:it,popupElement:qn,animation:H,transitionName:_,dropdownStyle:W,dropdownClassName:q,direction:s,dropdownMatchSelectWidth:G,dropdownRender:k,dropdownAlign:z,placement:V,builtinPlacements:F,getPopupContainer:X,empty:g,getTriggerDOMNode:function(dt){return ie.current||dt},onPopupVisibleChange:Ut,onPopupMouseEnter:an},Ze?d.cloneElement(Ze,{ref:lt}):d.createElement(e9,je({},e,{domRef:ie,prefixCls:a,inputElement:we,ref:be,id:r,prefix:A,showSearch:Oe,autoClearSearchValue:L,mode:v,activeDescendantId:E,tagRender:l,values:c,open:Ke,onToggleOpen:Fe,activeValue:O,searchValue:se,onSearch:Ue,onSearchSubmit:ht,onRemove:Lt,tokenWithEnter:ye,onInputBlur:Qt}))),pr;return Ze?pr=lr:pr=d.createElement("div",je({className:Un},xe,{ref:Pe,onMouseDown:tt,onKeyDown:Rt,onKeyUp:Ht,onFocus:Ve,onBlur:Be}),d.createElement(C9,{visible:oe&&!Ke,values:c}),lr,dn,yn&&Wn),d.createElement(vp.Provider,{value:Kt},pr)}),g0=function(){return null};g0.isSelectOptGroup=!0;var h0=function(){return null};h0.isSelectOption=!0;var wp=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,o=e.children,i=e.prefixCls,l=e.onInnerResize,s=e.innerProps,u=e.rtl,c=e.extra,f={},g={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},g=Z(Z({},g),{},K(K(K(K(K({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:f},d.createElement(Lr,{onResize:function(p){var b=p.offsetHeight;b&&l&&l()}},d.createElement("div",je({style:g,className:ue(K({},"".concat(i,"-holder-inner"),i)),ref:t},s),o,c)))});wp.displayName="Filler";function $9(e){var t=e.children,n=e.setRef,r=d.useCallback(function(a){n(a)},[]);return d.cloneElement(t,{ref:r})}function E9(e,t,n,r,a,o,i,l){var s=l.getKey;return e.slice(t,n+1).map(function(u,c){var f=t+c,g=i(u,f,{style:{width:r},offsetX:a}),h=s(u);return d.createElement($9,{key:h,setRef:function(b){return o(u,b)}},g)})}function O9(e,t,n){var r=e.length,a=t.length,o,i;if(r===0&&a===0)return null;r<a?(o=e,i=t):(o=t,i=e);var l={__EMPTY_ITEM__:!0};function s(p){return p!==void 0?n(p):l}for(var u=null,c=Math.abs(r-a)!==1,f=0;f<i.length;f+=1){var g=s(o[f]),h=s(i[f]);if(g!==h){u=f,c=c||g!==s(i[f+1]);break}}return u===null?null:{index:u,multiple:c}}function I9(e,t,n){var r=d.useState(e),a=ee(r,2),o=a[0],i=a[1],l=d.useState(null),s=ee(l,2),u=s[0],c=s[1];return d.useEffect(function(){var f=O9(o||[],e||[],t);(f==null?void 0:f.index)!==void 0&&c(e[f.index]),i(e)},[e]),[u]}var nv=(typeof navigator>"u"?"undefined":nt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const $p=(function(e,t,n,r){var a=Xe(!1),o=Xe(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var l=Xe({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(s,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=s?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return c&&f?(clearTimeout(o.current),a.current=!1):(!f||a.current)&&i(),!a.current&&f}});function M9(e,t,n,r,a,o,i){var l=Xe(0),s=Xe(null),u=Xe(null),c=Xe(!1),f=$p(t,n,r,a);function g(m,C){if(Ct.cancel(s.current),!f(!1,C)){var S=m;if(!S._virtualHandled)S._virtualHandled=!0;else return;l.current+=C,u.current=C,nv||S.preventDefault(),s.current=Ct(function(){var x=c.current?10:1;i(l.current*x,!1),l.current=0})}}function h(m,C){i(C,!0),nv||m.preventDefault()}var p=Xe(null),b=Xe(null);function v(m){if(e){Ct.cancel(b.current),b.current=Ct(function(){p.current=null},2);var C=m.deltaX,S=m.deltaY,x=m.shiftKey,w=C,$=S;(p.current==="sx"||!p.current&&x&&S&&!C)&&(w=S,$=0,p.current="sx");var O=Math.abs(w),R=Math.abs($);p.current===null&&(p.current=o&&O>R?"x":"y"),p.current==="y"?g(m,$):h(m,w)}}function y(m){e&&(c.current=m.detail===u.current)}return[v,y]}function R9(e,t,n,r){var a=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=ee(a,2),i=o[0],l=o[1],s=function(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,g=i.get(c),h=i.get(f);if(g===void 0||h===void 0)for(var p=e.length,b=l.length;b<p;b+=1){var v,y=e[b],m=t(y);i.set(m,b);var C=(v=n.get(m))!==null&&v!==void 0?v:r;if(l[b]=(l[b-1]||0)+C,m===c&&(g=b),m===f&&(h=b),g!==void 0&&h!==void 0)break}return{top:l[g-1]||0,bottom:l[h]}};return s}var P9=(function(){function e(){cn(this,e),K(this,"maps",void 0),K(this,"id",0),K(this,"diffRecords",new Map),this.maps=Object.create(null)}return un(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function rv(e){var t=parseFloat(e);return isNaN(t)?0:t}function N9(e,t,n){var r=d.useState(0),a=ee(r,2),o=a[0],i=a[1],l=Xe(new Map),s=Xe(new P9),u=Xe(0);function c(){u.current+=1}function f(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c();var p=function(){var y=!1;l.current.forEach(function(m,C){if(m&&m.offsetParent){var S=m.offsetHeight,x=getComputedStyle(m),w=x.marginTop,$=x.marginBottom,O=rv(w),R=rv($),E=S+O+R;s.current.get(C)!==E&&(s.current.set(C,E),y=!0)}}),y&&i(function(m){return m+1})};if(h)p();else{u.current+=1;var b=u.current;Promise.resolve().then(function(){b===u.current&&p()})}}function g(h,p){var b=e(h);l.current.get(b),p?(l.current.set(b,p),f()):l.current.delete(b)}return Zt(function(){return c},[]),[g,f,s.current,o]}var av=14/15;function T9(e,t,n){var r=Xe(!1),a=Xe(0),o=Xe(0),i=Xe(null),l=Xe(null),s,u=function(h){if(r.current){var p=Math.ceil(h.touches[0].pageX),b=Math.ceil(h.touches[0].pageY),v=a.current-p,y=o.current-b,m=Math.abs(v)>Math.abs(y);m?a.current=p:o.current=b;var C=n(m,m?v:y,!1,h);C&&h.preventDefault(),clearInterval(l.current),C&&(l.current=setInterval(function(){m?v*=av:y*=av;var S=Math.floor(m?v:y);(!n(m,S,!0)||Math.abs(S)<=.1)&&clearInterval(l.current)},16))}},c=function(){r.current=!1,s()},f=function(h){s(),h.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(h.touches[0].pageX),o.current=Math.ceil(h.touches[0].pageY),i.current=h.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",c,{passive:!0}))};s=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",c))},Nt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var g;(g=t.current)===null||g===void 0||g.removeEventListener("touchstart",f),s(),clearInterval(l.current)}},[e])}function ov(e){return Math.floor(Math.pow(e,.5))}function id(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function A9(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var a=!1,o,i,l=function(){Ct.cancel(o)},s=function g(){l(),o=Ct(function(){n(i),g()})},u=function(){a=!1,l()},c=function(h){if(!(h.target.draggable||h.button!==0)){var p=h;p._virtualHandled||(p._virtualHandled=!0,a=!0)}},f=function(h){if(a){var p=id(h,!1),b=r.getBoundingClientRect(),v=b.top,y=b.bottom;if(p<=v){var m=v-p;i=-ov(m),s()}else if(p>=y){var C=p-y;i=ov(C),s()}else l()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),l()}}},[e])}var F9=10;function D9(e,t,n,r,a,o,i,l){var s=d.useRef(),u=d.useState(null),c=ee(u,2),f=c[0],g=c[1];return Nt(function(){if(f&&f.times<F9){if(!e.current){g(function(j){return Z({},j)});return}o();var h=f.targetAlign,p=f.originAlign,b=f.index,v=f.offset,y=e.current.clientHeight,m=!1,C=h,S=null;if(y){for(var x=h||p,w=0,$=0,O=0,R=Math.min(t.length-1,b),E=0;E<=R;E+=1){var N=a(t[E]);$=w;var L=n.get(N);O=$+(L===void 0?r:L),w=O}for(var D=x==="top"?v:y-v,P=R;P>=0;P-=1){var M=a(t[P]),I=n.get(M);if(I===void 0){m=!0;break}if(D-=I,D<=0)break}switch(x){case"top":S=$-v;break;case"bottom":S=O-y+v;break;default:{var A=e.current.scrollTop,T=A+y;$<A?C="top":O>T&&(C="bottom")}}S!==null&&i(S),S!==f.lastTop&&(m=!0)}m&&g(Z(Z({},f),{},{times:f.times+1,targetAlign:C,lastTop:S}))}},[f,e.current]),function(h){if(h==null){l();return}if(Ct.cancel(s.current),typeof h=="number")i(h);else if(h&&nt(h)==="object"){var p,b=h.align;"index"in h?p=h.index:p=t.findIndex(function(m){return a(m)===h.key});var v=h.offset,y=v===void 0?0:v;g({times:0,index:p,offset:y,originAlign:b})}}}var iv=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,l=e.onStopMove,s=e.onScroll,u=e.horizontal,c=e.spinSize,f=e.containerSize,g=e.style,h=e.thumbStyle,p=e.showScrollBar,b=d.useState(!1),v=ee(b,2),y=v[0],m=v[1],C=d.useState(null),S=ee(C,2),x=S[0],w=S[1],$=d.useState(null),O=ee($,2),R=O[0],E=O[1],N=!r,L=d.useRef(),D=d.useRef(),P=d.useState(p),M=ee(P,2),I=M[0],A=M[1],T=d.useRef(),j=function(){p===!0||p===!1||(clearTimeout(T.current),A(!0),T.current=setTimeout(function(){A(!1)},3e3))},B=o-f||0,H=f-c||0,_=d.useMemo(function(){if(a===0||B===0)return 0;var Y=a/B;return Y*H},[a,B,H]),W=function(U){U.stopPropagation(),U.preventDefault()},q=d.useRef({top:_,dragging:y,pageY:x,startTop:R});q.current={top:_,dragging:y,pageY:x,startTop:R};var G=function(U){m(!0),w(id(U,u)),E(q.current.top),i(),U.stopPropagation(),U.preventDefault()};d.useEffect(function(){var Y=function(ne){ne.preventDefault()},U=L.current,J=D.current;return U.addEventListener("touchstart",Y,{passive:!1}),J.addEventListener("touchstart",G,{passive:!1}),function(){U.removeEventListener("touchstart",Y),J.removeEventListener("touchstart",G)}},[]);var k=d.useRef();k.current=B;var z=d.useRef();z.current=H,d.useEffect(function(){if(y){var Y,U=function(ne){var te=q.current,de=te.dragging,ae=te.pageY,ge=te.startTop;Ct.cancel(Y);var Oe=L.current.getBoundingClientRect(),xe=f/(u?Oe.width:Oe.height);if(de){var $e=(id(ne,u)-ae)*xe,Se=ge;!N&&u?Se-=$e:Se+=$e;var le=k.current,Me=z.current,Pe=Me?Se/Me:0,ie=Math.ceil(Pe*le);ie=Math.max(ie,0),ie=Math.min(ie,le),Y=Ct(function(){s(ie,u)})}},J=function(){m(!1),l()};return window.addEventListener("mousemove",U,{passive:!0}),window.addEventListener("touchmove",U,{passive:!0}),window.addEventListener("mouseup",J,{passive:!0}),window.addEventListener("touchend",J,{passive:!0}),function(){window.removeEventListener("mousemove",U),window.removeEventListener("touchmove",U),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),Ct.cancel(Y)}}},[y]),d.useEffect(function(){return j(),function(){clearTimeout(T.current)}},[a]),d.useImperativeHandle(t,function(){return{delayHidden:j}});var V="".concat(n,"-scrollbar"),F={position:"absolute",visibility:I?null:"hidden"},X={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(F,{height:8,left:0,right:0,bottom:0}),Object.assign(X,K({height:"100%",width:c},N?"left":"right",_))):(Object.assign(F,K({width:8,top:0,bottom:0},N?"right":"left",0)),Object.assign(X,{width:"100%",height:c,top:_})),d.createElement("div",{ref:L,className:ue(V,K(K(K({},"".concat(V,"-horizontal"),u),"".concat(V,"-vertical"),!u),"".concat(V,"-visible"),I)),style:Z(Z({},F),g),onMouseDown:W,onMouseMove:j},d.createElement("div",{ref:D,className:ue("".concat(V,"-thumb"),K({},"".concat(V,"-thumb-moving"),y)),style:Z(Z({},X),h),onMouseDown:G}))}),L9=20;function lv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,L9),Math.floor(n)}var k9=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],_9=[],H9={overflowY:"auto",overflowAnchor:"none"};function j9(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,u=e.style,c=e.data,f=e.children,g=e.itemKey,h=e.virtual,p=e.direction,b=e.scrollWidth,v=e.component,y=v===void 0?"div":v,m=e.onScroll,C=e.onVirtualScroll,S=e.onVisibleChange,x=e.innerProps,w=e.extraRender,$=e.styles,O=e.showScrollBar,R=O===void 0?"optional":O,E=wt(e,k9),N=d.useCallback(function(He){return typeof g=="function"?g(He):He==null?void 0:He[g]},[g]),L=N9(N),D=ee(L,4),P=D[0],M=D[1],I=D[2],A=D[3],T=!!(h!==!1&&o&&i),j=d.useMemo(function(){return Object.values(I.maps).reduce(function(He,Ve){return He+Ve},0)},[I.id,I.maps]),B=T&&c&&(Math.max(i*c.length,j)>o||!!b),H=p==="rtl",_=ue(r,K({},"".concat(r,"-rtl"),H),a),W=c||_9,q=Xe(),G=Xe(),k=Xe(),z=jt(0),V=ee(z,2),F=V[0],X=V[1],Y=jt(0),U=ee(Y,2),J=U[0],re=U[1],ne=jt(!1),te=ee(ne,2),de=te[0],ae=te[1],ge=function(){ae(!0)},Oe=function(){ae(!1)},xe={getKey:N};function $e(He){X(function(Ve){var Be;typeof He=="function"?Be=He(Ve):Be=He;var Le=We(Be);return q.current.scrollTop=Le,Le})}var Se=Xe({start:0,end:W.length}),le=Xe(),Me=I9(W,N),Pe=ee(Me,1),ie=Pe[0];le.current=ie;var pe=d.useMemo(function(){if(!T)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!B){var He;return{scrollHeight:((He=G.current)===null||He===void 0?void 0:He.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var Ve=0,Be,Le,tt,St=W.length,Pt=0;Pt<St;Pt+=1){var en=W[Pt],an=N(en),Ut=I.get(an),Kt=Ve+(Ut===void 0?i:Ut);Kt>=F&&Be===void 0&&(Be=Pt,Le=Ve),Kt>F+o&&tt===void 0&&(tt=Pt),Ve=Kt}return Be===void 0&&(Be=0,Le=0,tt=Math.ceil(o/i)),tt===void 0&&(tt=W.length-1),tt=Math.min(tt+1,W.length-1),{scrollHeight:Ve,start:Be,end:tt,offset:Le}},[B,T,F,W,A,o]),be=pe.scrollHeight,Re=pe.start,Ie=pe.end,he=pe.offset;Se.current.start=Re,Se.current.end=Ie,d.useLayoutEffect(function(){var He=I.getRecord();if(He.size===1){var Ve=Array.from(He.keys())[0],Be=He.get(Ve),Le=W[Re];if(Le&&Be===void 0){var tt=N(Le);if(tt===Ve){var St=I.get(Ve),Pt=St-i;$e(function(en){return en+Pt})}}}I.resetRecord()},[be]);var Ee=d.useState({width:0,height:o}),oe=ee(Ee,2),me=oe[0],Te=oe[1],se=function(Ve){Te({width:Ve.offsetWidth,height:Ve.offsetHeight})},we=Xe(),Ze=Xe(),lt=d.useMemo(function(){return lv(me.width,b)},[me.width,b]),mt=d.useMemo(function(){return lv(me.height,be)},[me.height,be]),_e=be-o,ke=Xe(_e);ke.current=_e;function We(He){var Ve=He;return Number.isNaN(ke.current)||(Ve=Math.min(Ve,ke.current)),Ve=Math.max(Ve,0),Ve}var ze=F<=0,qe=F>=_e,vt=J<=0,ct=J>=b,Ke=$p(ze,qe,vt,ct),Ae=function(){return{x:H?-J:J,y:F}},it=Xe(Ae()),Fe=Mt(function(He){if(C){var Ve=Z(Z({},Ae()),He);(it.current.x!==Ve.x||it.current.y!==Ve.y)&&(C(Ve),it.current=Ve)}});function ye(He,Ve){var Be=He;Ve?(Yc(function(){re(Be)}),Fe()):$e(Be)}function Ce(He){var Ve=He.currentTarget.scrollTop;Ve!==F&&$e(Ve),m==null||m(He),Fe()}var De=function(Ve){var Be=Ve,Le=b?b-me.width:0;return Be=Math.max(Be,0),Be=Math.min(Be,Le),Be},Qe=Mt(function(He,Ve){Ve?(Yc(function(){re(function(Be){var Le=Be+(H?-He:He);return De(Le)})}),Fe()):$e(function(Be){var Le=Be+He;return Le})}),Ue=M9(T,ze,qe,vt,ct,!!b,Qe),ht=ee(Ue,2),$t=ht[0],ut=ht[1];T9(T,q,function(He,Ve,Be,Le){var tt=Le;return Ke(He,Ve,Be)?!1:!tt||!tt._virtualHandled?(tt&&(tt._virtualHandled=!0),$t({preventDefault:function(){},deltaX:He?Ve:0,deltaY:He?0:Ve}),!0):!1}),A9(B,q,function(He){$e(function(Ve){return Ve+He})}),Nt(function(){function He(Be){var Le=ze&&Be.detail<0,tt=qe&&Be.detail>0;T&&!Le&&!tt&&Be.preventDefault()}var Ve=q.current;return Ve.addEventListener("wheel",$t,{passive:!1}),Ve.addEventListener("DOMMouseScroll",ut,{passive:!0}),Ve.addEventListener("MozMousePixelScroll",He,{passive:!1}),function(){Ve.removeEventListener("wheel",$t),Ve.removeEventListener("DOMMouseScroll",ut),Ve.removeEventListener("MozMousePixelScroll",He)}},[T,ze,qe]),Nt(function(){if(b){var He=De(J);re(He),Fe({x:He})}},[me.width,b]);var Et=function(){var Ve,Be;(Ve=we.current)===null||Ve===void 0||Ve.delayHidden(),(Be=Ze.current)===null||Be===void 0||Be.delayHidden()},_t=D9(q,W,I,i,N,function(){return M(!0)},$e,Et);d.useImperativeHandle(t,function(){return{nativeElement:k.current,getScrollInfo:Ae,scrollTo:function(Ve){function Be(Le){return Le&&nt(Le)==="object"&&("left"in Le||"top"in Le)}Be(Ve)?(Ve.left!==void 0&&re(De(Ve.left)),_t(Ve.top)):_t(Ve)}}}),Nt(function(){if(S){var He=W.slice(Re,Ie+1);S(He,W)}},[Re,Ie,W]);var kt=R9(W,N,I,i),Rt=w==null?void 0:w({start:Re,end:Ie,virtual:B,offsetX:J,offsetY:he,rtl:H,getSize:kt}),Ht=E9(W,Re,Ie,b,J,P,f,xe),Lt=null;o&&(Lt=Z(K({},s?"height":"maxHeight",o),H9),T&&(Lt.overflowY="hidden",b&&(Lt.overflowX="hidden"),de&&(Lt.pointerEvents="none")));var Qt={};return H&&(Qt.dir="rtl"),d.createElement("div",je({ref:k,style:Z(Z({},u),{},{position:"relative"}),className:_},Qt,E),d.createElement(Lr,{onResize:se},d.createElement(y,{className:"".concat(r,"-holder"),style:Lt,ref:q,onScroll:Ce,onMouseEnter:Et},d.createElement(wp,{prefixCls:r,height:be,offsetX:J,offsetY:he,scrollWidth:b,onInnerResize:M,ref:G,innerProps:x,rtl:H,extra:Rt},Ht))),B&&be>o&&d.createElement(iv,{ref:we,prefixCls:r,scrollOffset:F,scrollRange:be,rtl:H,onScroll:ye,onStartMove:ge,onStopMove:Oe,spinSize:mt,containerSize:me.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb,showScrollBar:R}),B&&b>me.width&&d.createElement(iv,{ref:Ze,prefixCls:r,scrollOffset:J,scrollRange:b,rtl:H,onScroll:ye,onStartMove:ge,onStopMove:Oe,spinSize:lt,containerSize:me.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb,showScrollBar:R}))}var Ep=d.forwardRef(j9);Ep.displayName="List";function z9(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var B9=["disabled","title","children","style","className"];function sv(e){return typeof e=="string"||typeof e=="number"}var V9=function(t,n){var r=I7(),a=r.prefixCls,o=r.id,i=r.open,l=r.multiple,s=r.mode,u=r.searchValue,c=r.toggleOpen,f=r.notFoundContent,g=r.onPopupScroll,h=d.useContext(v0),p=h.maxCount,b=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,m=h.onSelect,C=h.menuItemSelectedIcon,S=h.rawValues,x=h.fieldNames,w=h.virtual,$=h.direction,O=h.listHeight,R=h.listItemHeight,E=h.optionRender,N="".concat(a,"-item"),L=Cs(function(){return b},[i,b],function(Y,U){return U[0]&&Y[1]!==U[1]}),D=d.useRef(null),P=d.useMemo(function(){return l&&rd(p)&&(S==null?void 0:S.size)>=p},[l,p,S==null?void 0:S.size]),M=function(U){U.preventDefault()},I=function(U){var J;(J=D.current)===null||J===void 0||J.scrollTo(typeof U=="number"?{index:U}:U)},A=d.useCallback(function(Y){return s==="combobox"?!1:S.has(Y)},[s,Ne(S).toString(),S.size]),T=function(U){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=L.length,ne=0;ne<re;ne+=1){var te=(U+ne*J+re)%re,de=L[te]||{},ae=de.group,ge=de.data;if(!ae&&!(ge!=null&&ge.disabled)&&(A(ge.value)||!P))return te}return-1},j=d.useState(function(){return T(0)}),B=ee(j,2),H=B[0],_=B[1],W=function(U){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_(U);var re={source:J?"keyboard":"mouse"},ne=L[U];if(!ne){v(null,-1,re);return}v(ne.value,U,re)};Zt(function(){W(y!==!1?T(0):-1)},[L.length,u]);var q=d.useCallback(function(Y){return s==="combobox"?String(Y).toLowerCase()===u.toLowerCase():S.has(Y)},[s,u,Ne(S).toString(),S.size]);Zt(function(){var Y=setTimeout(function(){if(!l&&i&&S.size===1){var J=Array.from(S)[0],re=L.findIndex(function(ne){var te=ne.data;return u?String(te.value).startsWith(u):te.value===J});re!==-1&&(W(re),I(re))}});if(i){var U;(U=D.current)===null||U===void 0||U.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[i,u]);var G=function(U){U!==void 0&&m(U,{selected:!S.has(U)}),l||c(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(U){var J=U.which,re=U.ctrlKey;switch(J){case et.N:case et.P:case et.UP:case et.DOWN:{var ne=0;if(J===et.UP?ne=-1:J===et.DOWN?ne=1:z9()&&re&&(J===et.N?ne=1:J===et.P&&(ne=-1)),ne!==0){var te=T(H+ne,ne);I(te),W(te,!0)}break}case et.TAB:case et.ENTER:{var de,ae=L[H];ae&&!(ae!=null&&(de=ae.data)!==null&&de!==void 0&&de.disabled)&&!P?G(ae.value):G(void 0),i&&U.preventDefault();break}case et.ESC:c(!1),i&&U.stopPropagation()}},onKeyUp:function(){},scrollTo:function(U){I(U)}}}),L.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(N,"-empty"),onMouseDown:M},f);var k=Object.keys(x).map(function(Y){return x[Y]}),z=function(U){return U.label};function V(Y,U){var J=Y.group;return{role:J?"presentation":"option",id:"".concat(o,"_list_").concat(U)}}var F=function(U){var J=L[U];if(!J)return null;var re=J.data||{},ne=re.value,te=J.group,de=Fr(re,!0),ae=z(J);return J?d.createElement("div",je({"aria-label":typeof ae=="string"&&!te?ae:null},de,{key:U},V(J,U),{"aria-selected":q(ne)}),ne):null},X={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,w&&d.createElement("div",je({},X,{style:{height:0,width:0,overflow:"hidden"}}),F(H-1),F(H),F(H+1)),d.createElement(Ep,{itemKey:"key",ref:D,data:L,height:O,itemHeight:R,fullHeight:!1,onMouseDown:M,onScroll:g,virtual:w,direction:$,innerProps:w?null:X},function(Y,U){var J=Y.group,re=Y.groupOption,ne=Y.data,te=Y.label,de=Y.value,ae=ne.key;if(J){var ge,Oe=(ge=ne.title)!==null&&ge!==void 0?ge:sv(te)?te.toString():void 0;return d.createElement("div",{className:ue(N,"".concat(N,"-group"),ne.className),title:Oe},te!==void 0?te:ae)}var xe=ne.disabled,$e=ne.title;ne.children;var Se=ne.style,le=ne.className,Me=wt(ne,B9),Pe=Er(Me,k),ie=A(de),pe=xe||!ie&&P,be="".concat(N,"-option"),Re=ue(N,be,le,K(K(K(K({},"".concat(be,"-grouped"),re),"".concat(be,"-active"),H===U&&!pe),"".concat(be,"-disabled"),pe),"".concat(be,"-selected"),ie)),Ie=z(Y),he=!C||typeof C=="function"||ie,Ee=typeof Ie=="number"?Ie:Ie||de,oe=sv(Ee)?Ee.toString():void 0;return $e!==void 0&&(oe=$e),d.createElement("div",je({},Fr(Pe),w?{}:V(Y,U),{"aria-selected":q(de),className:Re,title:oe,onMouseMove:function(){H===U||pe||W(U)},onClick:function(){pe||G(de)},style:Se}),d.createElement("div",{className:"".concat(be,"-content")},typeof E=="function"?E(Y,{index:U}):Ee),d.isValidElement(C)||ie,he&&d.createElement(zs,{className:"".concat(N,"-option-state"),customizeIcon:C,customizeIconProps:{value:de,disabled:pe,isSelected:ie}},ie?"\u2713":null))}))},W9=d.forwardRef(V9);const q9=(function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var o=n.current,i=o.values,l=o.options,s=e.map(function(f){if(f.label===void 0){var g;return Z(Z({},f),{},{label:(g=i.get(f.value))===null||g===void 0?void 0:g.label})}return f}),u=new Map,c=new Map;return s.forEach(function(f){u.set(f.value,f),c.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=c,s},[e,t]),a=d.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]});function Tc(e,t){return Cp(e).join("").toUpperCase().includes(t)}const U9=(function(e,t,n,r,a){return d.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,l=t.value,s=[],u=typeof r=="function",c=n.toUpperCase(),f=u?r:function(h,p){return a?Tc(p[a],c):p[o]?Tc(p[i!=="children"?i:"label"],c):Tc(p[l],c)},g=u?function(h){return ad(h)}:function(h){return h};return e.forEach(function(h){if(h[o]){var p=f(n,g(h));if(p)s.push(h);else{var b=h[o].filter(function(v){return f(n,g(v))});b.length&&s.push(Z(Z({},h),{},K({},o,b)))}return}f(n,g(h))&&s.push(h)}),s},[e,r,a,n,t])});var cv=0,Y9=Zn();function G9(){var e;return Y9?(e=cv,cv+=1):e="TEST_OR_SSR",e}function K9(e){var t=d.useState(),n=ee(t,2),r=n[0],a=n[1];return d.useEffect(function(){a("rc_select_".concat(G9()))},[]),e||r}var X9=["children","value"],Z9=["children"];function Q9(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=wt(r,X9);return Z({key:n,value:o!==void 0?o:n,children:a},i)}function Op(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Oa(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,l=a.props,s=l.children,u=wt(l,Z9);return t||!o?Q9(n):Z(Z({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:Op(s)})}).filter(function(n){return n})}var J9=function(t,n,r,a,o){return d.useMemo(function(){var i=t,l=!t;l&&(i=Op(n));var s=new Map,u=new Map,c=function(h,p,b){b&&typeof b=="string"&&h.set(p[b],p)},f=function g(h){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<h.length;b+=1){var v=h[b];!v[r.options]||p?(s.set(v[r.value],v),c(u,v,r.label),c(u,v,a),c(u,v,o)):g(v[r.options],!0)}};return f(i),{options:i,valueOptions:s,labelOptions:u}},[t,n,r,a,o])};function uv(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var e$=["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"],t$=["inputValue"];function n$(e){return!e||nt(e)!=="object"}var r$=d.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,o=a===void 0?"rc-select":a,i=e.backfill,l=e.fieldNames,s=e.inputValue,u=e.searchValue,c=e.onSearch,f=e.autoClearSearchValue,g=f===void 0?!0:f,h=e.onSelect,p=e.onDeselect,b=e.dropdownMatchSelectWidth,v=b===void 0?!0:b,y=e.filterOption,m=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,x=e.options,w=e.optionRender,$=e.children,O=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,E=e.virtual,N=e.direction,L=e.listHeight,D=L===void 0?200:L,P=e.listItemHeight,M=P===void 0?20:P,I=e.labelRender,A=e.value,T=e.defaultValue,j=e.labelInValue,B=e.onChange,H=e.maxCount,_=wt(e,e$),W=K9(n),q=od(r),G=!!(!x&&$),k=d.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),z=d.useMemo(function(){return xp(l,G)},[JSON.stringify(l),G]),V=ln("",{value:u!==void 0?u:s,postState:function(ye){return ye||""}}),F=ee(V,2),X=F[0],Y=F[1],U=J9(x,$,z,C,S),J=U.valueOptions,re=U.labelOptions,ne=U.options,te=d.useCallback(function(Fe){var ye=Cp(Fe);return ye.map(function(Ce){var De,Qe,Ue,ht,$t;if(n$(Ce))De=Ce;else{var ut;Ue=Ce.key,Qe=Ce.label,De=(ut=Ce.value)!==null&&ut!==void 0?ut:Ue}var Et=J.get(De);if(Et){var _t;Qe===void 0&&(Qe=Et==null?void 0:Et[S||z.label]),Ue===void 0&&(Ue=(_t=Et==null?void 0:Et.key)!==null&&_t!==void 0?_t:De),ht=Et==null?void 0:Et.disabled,$t=Et==null?void 0:Et.title}return{label:Qe,value:De,key:Ue,disabled:ht,title:$t}})},[z,S,J]),de=ln(T,{value:A}),ae=ee(de,2),ge=ae[0],Oe=ae[1],xe=d.useMemo(function(){var Fe,ye=q&&ge===null?[]:ge,Ce=te(ye);return r==="combobox"&&G7((Fe=Ce[0])===null||Fe===void 0?void 0:Fe.value)?[]:Ce},[ge,te,r,q]),$e=q9(xe,J),Se=ee($e,2),le=Se[0],Me=Se[1],Pe=d.useMemo(function(){if(!r&&le.length===1){var Fe=le[0];if(Fe.value===null&&(Fe.label===null||Fe.label===void 0))return[]}return le.map(function(ye){var Ce;return Z(Z({},ye),{},{label:(Ce=typeof I=="function"?I(ye):ye.label)!==null&&Ce!==void 0?Ce:ye.value})})},[r,le,I]),ie=d.useMemo(function(){return new Set(le.map(function(Fe){return Fe.value}))},[le]);d.useEffect(function(){if(r==="combobox"){var Fe,ye=(Fe=le[0])===null||Fe===void 0?void 0:Fe.value;Y(Y7(ye)?String(ye):"")}},[le]);var pe=uv(function(Fe,ye){var Ce=ye??Fe;return K(K({},z.value,Fe),z.label,Ce)}),be=d.useMemo(function(){if(r!=="tags")return ne;var Fe=Ne(ne),ye=function(De){return J.has(De)};return Ne(le).sort(function(Ce,De){return Ce.value<De.value?-1:1}).forEach(function(Ce){var De=Ce.value;ye(De)||Fe.push(pe(De,Ce.label))}),Fe},[pe,ne,J,le,r]),Re=U9(be,z,X,k,C),Ie=d.useMemo(function(){return r!=="tags"||!X||Re.some(function(Fe){return Fe[C||"value"]===X})||Re.some(function(Fe){return Fe[z.value]===X})?Re:[pe(X)].concat(Ne(Re))},[pe,C,r,Re,X,z]),he=function Fe(ye){var Ce=Ne(ye).sort(function(De,Qe){return m(De,Qe,{searchValue:X})});return Ce.map(function(De){return Array.isArray(De.options)?Z(Z({},De),{},{options:De.options.length>0?Fe(De.options):De.options}):De})},Ee=d.useMemo(function(){return m?he(Ie):Ie},[Ie,m,X]),oe=d.useMemo(function(){return b9(Ee,{fieldNames:z,childrenAsData:G})},[Ee,z,G]),me=function(ye){var Ce=te(ye);if(Oe(Ce),B&&(Ce.length!==le.length||Ce.some(function(Ue,ht){var $t;return(($t=le[ht])===null||$t===void 0?void 0:$t.value)!==(Ue==null?void 0:Ue.value)}))){var De=j?Ce:Ce.map(function(Ue){return Ue.value}),Qe=Ce.map(function(Ue){return ad(Me(Ue.value))});B(q?De:De[0],q?Qe:Qe[0])}},Te=d.useState(null),se=ee(Te,2),we=se[0],Ze=se[1],lt=d.useState(0),mt=ee(lt,2),_e=mt[0],ke=mt[1],We=O!==void 0?O:r!=="combobox",ze=d.useCallback(function(Fe,ye){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},De=Ce.source,Qe=De===void 0?"keyboard":De;ke(ye),i&&r==="combobox"&&Fe!==null&&Qe==="keyboard"&&Ze(String(Fe))},[i,r]),qe=function(ye,Ce,De){var Qe=function(){var Lt,Qt=Me(ye);return[j?{label:Qt==null?void 0:Qt[z.label],value:ye,key:(Lt=Qt==null?void 0:Qt.key)!==null&&Lt!==void 0?Lt:ye}:ye,ad(Qt)]};if(Ce&&h){var Ue=Qe(),ht=ee(Ue,2),$t=ht[0],ut=ht[1];h($t,ut)}else if(!Ce&&p&&De!=="clear"){var Et=Qe(),_t=ee(Et,2),kt=_t[0],Rt=_t[1];p(kt,Rt)}},vt=uv(function(Fe,ye){var Ce,De=q?ye.selected:!0;De?Ce=q?[].concat(Ne(le),[Fe]):[Fe]:Ce=le.filter(function(Qe){return Qe.value!==Fe}),me(Ce),qe(Fe,De),r==="combobox"?Ze(""):(!od||g)&&(Y(""),Ze(""))}),ct=function(ye,Ce){me(ye);var De=Ce.type,Qe=Ce.values;(De==="remove"||De==="clear")&&Qe.forEach(function(Ue){qe(Ue.value,!1,De)})},Ke=function(ye,Ce){if(Y(ye),Ze(null),Ce.source==="submit"){var De=(ye||"").trim();if(De){var Qe=Array.from(new Set([].concat(Ne(ie),[De])));me(Qe),qe(De,!0),Y("")}return}Ce.source!=="blur"&&(r==="combobox"&&me(ye),c==null||c(ye))},Ae=function(ye){var Ce=ye;r!=="tags"&&(Ce=ye.map(function(Qe){var Ue=re.get(Qe);return Ue==null?void 0:Ue.value}).filter(function(Qe){return Qe!==void 0}));var De=Array.from(new Set([].concat(Ne(ie),Ne(Ce))));me(De),De.forEach(function(Qe){qe(Qe,!0)})},it=d.useMemo(function(){var Fe=E!==!1&&v!==!1;return Z(Z({},U),{},{flattenOptions:oe,onActiveValue:ze,defaultActiveFirstOption:We,onSelect:vt,menuItemSelectedIcon:R,rawValues:ie,fieldNames:z,virtual:Fe,direction:N,listHeight:D,listItemHeight:M,childrenAsData:G,maxCount:H,optionRender:w})},[H,U,oe,ze,We,vt,R,ie,z,E,v,N,D,M,G,w]);return d.createElement(v0.Provider,{value:it},d.createElement(w9,je({},_,{id:W,prefixCls:o,ref:t,omitDomProps:t$,mode:r,displayValues:Pe,onDisplayValuesChange:ct,direction:N,searchValue:X,onSearch:Ke,autoClearSearchValue:g,onSearchSplit:Ae,dropdownMatchSelectWidth:v,OptionList:W9,emptyOptions:!oe.length,activeValue:we,activeDescendantId:"".concat(W,"_list_").concat(_e)})))}),p0=r$;p0.Option=h0;p0.OptGroup=g0;function oa(e,t,n){return ue({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const La=(e,t)=>t||e,a$=()=>{const[,e]=hr(),[t]=Aa("Empty"),r=new Dt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.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"}),d.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)"}),d.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"}),d.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"})),d.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"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},o$=()=>{const[,e]=hr(),[t]=Aa("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:o}=e,{borderColor:i,shadowColor:l,contentColor:s}=Bn(()=>({borderColor:new Dt(n).onBackground(o).toHexString(),shadowColor:new Dt(r).onBackground(o).toHexString(),contentColor:new Dt(a).onBackground(o).toHexString()}),[n,r,a,o]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:i},d.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"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},i$=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},l$=Rn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Bt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return i$(a)});var s$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ip=d.createElement(a$,null),Mp=d.createElement(o$,null),va=e=>{var t;const{className:n,rootClassName:r,prefixCls:a,image:o,description:i,children:l,imageStyle:s,style:u,classNames:c,styles:f}=e,g=s$(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:h,direction:p,className:b,style:v,classNames:y,styles:m,image:C}=Vr("empty"),S=h("empty",a),[x,w,$]=l$(S),[O]=Aa("Empty"),R=typeof i<"u"?i:O==null?void 0:O.description,E=typeof R=="string"?R:"empty",N=(t=o??C)!==null&&t!==void 0?t:Ip;let L=null;return typeof N=="string"?L=d.createElement("img",{draggable:!1,alt:E,src:N}):L=N,x(d.createElement("div",Object.assign({className:ue(w,$,S,b,{[`${S}-normal`]:N===Mp,[`${S}-rtl`]:p==="rtl"},n,r,y.root,c==null?void 0:c.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},m.root),v),f==null?void 0:f.root),u)},g),d.createElement("div",{className:ue(`${S}-image`,y.image,c==null?void 0:c.image),style:Object.assign(Object.assign(Object.assign({},s),m.image),f==null?void 0:f.image)},L),R&&d.createElement("div",{className:ue(`${S}-description`,y.description,c==null?void 0:c.description),style:Object.assign(Object.assign({},m.description),f==null?void 0:f.description)},R),l&&d.createElement("div",{className:ue(`${S}-footer`,y.footer,c==null?void 0:c.footer),style:Object.assign(Object.assign({},m.footer),f==null?void 0:f.footer)},l)))};va.PRESENTED_IMAGE_DEFAULT=Ip;va.PRESENTED_IMAGE_SIMPLE=Mp;const c$=e=>{const{componentName:t}=e,{getPrefixCls:n}=gn(Tt),r=n("empty");switch(t){case"Table":case"List":return ce.createElement(va,{image:va.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(va,{image:va.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ce.createElement(va,null)}},ka=(e,t,n)=>{var r,a;const{variant:o,[e]:i}=d.useContext(Tt),l=d.useContext(mp),s=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=l??s)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const c=AS.includes(u);return[u,c]},u$=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function d$(e,t){return e||u$(t)}const dv=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},f$=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},sn(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,[`
338
+ ${a}${l}bottomLeft,
339
+ ${o}${l}bottomLeft
340
+ `]:{animationName:t0},[`
341
+ ${a}${l}topLeft,
342
+ ${o}${l}topLeft,
343
+ ${a}${l}topRight,
344
+ ${o}${l}topRight
345
+ `]:{animationName:r0},[`${i}${l}bottomLeft`]:{animationName:n0},[`
346
+ ${i}${l}topLeft,
347
+ ${i}${l}topRight
348
+ `]:{animationName:a0},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},dv(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"},Wl),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},dv(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Xl(e,"slide-up"),Xl(e,"slide-down"),Kl(e,"move-up"),Kl(e,"move-down")]},Rp=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:ve(t),itemLineHeight:ve(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},m$=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Pp=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:c}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:c,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(c).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Oi()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},v$=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=m$(e),l=t?`${n}-${t}`:"",s=Rp(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},Pp(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ve(r)} 0`,lineHeight:ve(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:ve(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ve(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${a}-item + ${a}-item,
349
+ ${n}-prefix + ${n}-selection-wrap
350
+ `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:ve(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Ac(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
351
+ &${n}-show-arrow ${n}-selector,
352
+ &${n}-allow-clear ${n}-selector
353
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[v$(e,t),a]}const g$=e=>{const{componentCls:t}=e,n=Bt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Bt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ac(e),Ac(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ac(r,"lg")]};function Fc(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},sn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ve(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
354
+ ${n}-selection-item,
355
+ ${n}-selection-placeholder
356
+ `]:{display:"block",padding:0,lineHeight:ve(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
357
+ &${n}-show-arrow ${n}-selection-item,
358
+ &${n}-show-arrow ${n}-selection-search,
359
+ &${n}-show-arrow ${n}-selection-placeholder
360
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ve(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:ve(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ve(r)}`,"&:after":{display:"none"}}}}}}}function h$(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Fc(e),Fc(Bt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ve(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
361
+ &${t}-show-arrow ${t}-selection-item,
362
+ &${t}-show-arrow ${t}-selection-placeholder
363
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Fc(Bt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const p$=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:u,colorText:c,fontWeightStrong:f,controlItemBgActive:g,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:b,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:m,colorPrimary:C,controlOutline:S}=e,x=l*2,w=r*2,$=Math.min(a-x,a-w),O=Math.min(o-x,o-w),R=Math.min(i-x,i-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:c,optionSelectedFontWeight:f,optionSelectedBg:g,optionActiveBg:h,optionPadding:`${(a-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:p,clearBg:p,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:O,multipleItemHeightLG:R,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:m,activeBorderColor:C,activeOutlineColor:S,selectAffixPadding:l}},Np=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ve(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ve(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},fv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Np(e,t))}),b$=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Np(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),fv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),fv(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:`${ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Tp=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ve(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},mv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Tp(e,t))}),y$=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Tp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),mv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),mv(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:`${ve(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),C$=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ve(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:`${ve(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}}}}),Ap=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ve(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},vv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ap(e,t))}),S$=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ap(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),vv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),vv(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:`${ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),x$=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},b$(e)),y$(e)),C$(e)),S$(e))}),w$=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},$$=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},E$=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,o={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},sn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},w$(e)),$$(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Wl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Wl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Oi()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},O$=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},E$(e),h$(e),g$(e),f$(e),{[`${t}-rtl`]:{direction:"rtl"}},Ri(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},I$=Rn("Select",(e,{rootPrefixCls:t})=>{const n=Bt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[O$(n),x$(n)]},p$,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var M$={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"},R$=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:M$}))},P$=d.forwardRef(R$),N$={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"},T$=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:N$}))},Fp=d.forwardRef(T$),A$={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"},F$=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:A$}))},Dp=d.forwardRef(F$);function Lp({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:o,hasFeedback:i,prefixCls:l,showSuffixIcon:s,feedbackIcon:u,showArrow:c,componentName:f}){const g=t??d.createElement(Qd,null),h=y=>e===null&&!i&&!c?null:d.createElement(d.Fragment,null,s!==!1&&y,i&&u);let p=null;if(e!==void 0)p=h(e);else if(a)p=h(d.createElement(Ms,{spin:!0}));else{const y=`${l}-suffix`;p=({open:m,showSearch:C})=>h(m&&C?d.createElement(Dp,{className:y}):d.createElement(Fp,{className:y}))}let b=null;n!==void 0?b=n:o?b=d.createElement(P$,null):b=null;let v=null;return r!==void 0?v=r:v=d.createElement(zh,null),{clearIcon:g,suffixIcon:p,itemIcon:b,removeIcon:v}}function D$(e){return ce.useMemo(()=>{if(e)return(...t)=>ce.createElement(aa,{space:!0},e.apply(void 0,t))},[e])}function L$(e,t){return t!==void 0?t:e!==null}var k$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const kp="SECRET_COMBOBOX_MODE_DO_NOT_USE",_$=(e,t)=>{var n,r,a,o,i;const{prefixCls:l,bordered:s,className:u,rootClassName:c,getPopupContainer:f,popupClassName:g,dropdownClassName:h,listHeight:p=256,placement:b,listItemHeight:v,size:y,disabled:m,notFoundContent:C,status:S,builtinPlacements:x,dropdownMatchSelectWidth:w,popupMatchSelectWidth:$,direction:O,style:R,allowClear:E,variant:N,dropdownStyle:L,transitionName:D,tagRender:P,maxCount:M,prefix:I,dropdownRender:A,popupRender:T,onDropdownVisibleChange:j,onOpenChange:B,styles:H,classNames:_}=e,W=k$(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:q,getPrefixCls:G,renderEmpty:k,direction:z,virtual:V,popupMatchSelectWidth:F,popupOverflow:X}=d.useContext(Tt),{showSearch:Y,style:U,styles:J,className:re,classNames:ne}=Vr("select"),[,te]=hr(),de=v??(te==null?void 0:te.controlHeight),ae=G("select",l),ge=G(),Oe=O??z,{compactSize:xe,compactItemClassnames:$e}=ua(ae,Oe),[Se,le]=ka("select",N,s),Me=or(ae),[Pe,ie,pe]=I$(ae,Me),be=d.useMemo(()=>{const{mode:De}=e;if(De!=="combobox")return De===kp?"combobox":De},[e.mode]),Re=be==="multiple"||be==="tags",Ie=L$(e.suffixIcon,e.showArrow),he=(n=$??w)!==null&&n!==void 0?n:F,Ee=((r=H==null?void 0:H.popup)===null||r===void 0?void 0:r.root)||((a=J.popup)===null||a===void 0?void 0:a.root)||L,oe=D$(T||A),me=B||j,{status:Te,hasFeedback:se,isFormItemInput:we,feedbackIcon:Ze}=d.useContext(Mn),lt=La(Te,S);let mt;C!==void 0?mt=C:be==="combobox"?mt=null:mt=(k==null?void 0:k("Select"))||d.createElement(c$,{componentName:"Select"});const{suffixIcon:_e,itemIcon:ke,removeIcon:We,clearIcon:ze}=Lp(Object.assign(Object.assign({},W),{multiple:Re,hasFeedback:se,feedbackIcon:Ze,showSuffixIcon:Ie,prefixCls:ae,componentName:"Select"})),qe=E===!0?{clearIcon:ze}:E,vt=Er(W,["suffixIcon","itemIcon"]),ct=ue(((o=_==null?void 0:_.popup)===null||o===void 0?void 0:o.root)||((i=ne==null?void 0:ne.popup)===null||i===void 0?void 0:i.root)||g||h,{[`${ae}-dropdown-${Oe}`]:Oe==="rtl"},c,ne.root,_==null?void 0:_.root,pe,Me,ie),Ke=ir(De=>{var Qe;return(Qe=y??xe)!==null&&Qe!==void 0?Qe:De}),Ae=d.useContext(jn),it=m??Ae,Fe=ue({[`${ae}-lg`]:Ke==="large",[`${ae}-sm`]:Ke==="small",[`${ae}-rtl`]:Oe==="rtl",[`${ae}-${Se}`]:le,[`${ae}-in-form-item`]:we},oa(ae,lt,se),$e,re,u,ne.root,_==null?void 0:_.root,c,pe,Me,ie),ye=d.useMemo(()=>b!==void 0?b:Oe==="rtl"?"bottomRight":"bottomLeft",[b,Oe]),[Ce]=Rs("SelectLike",Ee==null?void 0:Ee.zIndex);return Pe(d.createElement(p0,Object.assign({ref:t,virtual:V,showSearch:Y},vt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},J.root),H==null?void 0:H.root),U),R),dropdownMatchSelectWidth:he,transitionName:Kh(ge,"slide-up",D),builtinPlacements:d$(x,X),listHeight:p,listItemHeight:de,mode:be,prefixCls:ae,placement:ye,direction:Oe,prefix:I,suffixIcon:_e,menuItemSelectedIcon:ke,removeIcon:We,allowClear:qe,notFoundContent:mt,className:Fe,getPopupContainer:f||q,dropdownClassName:ct,disabled:it,dropdownStyle:Object.assign(Object.assign({},Ee),{zIndex:Ce}),maxCount:Re?M:void 0,tagRender:Re?P:void 0,dropdownRender:oe,onDropdownVisibleChange:me})))},Hr=d.forwardRef(_$),H$=js(Hr,"dropdownAlign");Hr.SECRET_COMBOBOX_MODE_DO_NOT_USE=kp;Hr.Option=h0;Hr.OptGroup=g0;Hr._InternalPanelDoNotUseOrYouWillBeFired=H$;const j$=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},z$=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},hi=["xxl","xl","lg","md","sm","xs"],B$=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),V$=e=>{const t=e,n=[].concat(hi).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,l=`screen${o}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(a<n.length-1){const s=`screen${o}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const c=`screen${n[a+1].toUpperCase()}Min`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`)}}),e},W$=()=>{const[,e]=hr(),t=B$(V$(e));return ce.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},register(){Object.entries(t).forEach(([o,i])=>{const l=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},a),{[o]:u}))},s=window.matchMedia(i);j$(s,l),this.matchHandlers[i]={mql:s,listener:l},l(s)})},unregister(){Object.values(t).forEach(o=>{const i=this.matchHandlers[o];z$(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[t])};function q$(e=!0,t={}){const n=Xe(t),[,r]=y4(),a=W$();return Nt(()=>{const o=a.subscribe(i=>{n.current=i,e&&r()});return()=>a.unsubscribe(o)},[]),n.current}function _p(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,i=e.className,l=e.style;return d.createElement("div",{className:ue("".concat(n,"-content"),i),style:l},d.createElement("div",{className:ue("".concat(n,"-inner"),o),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Ga={shiftX:64,adjustY:1},Ka={adjustX:1,shiftY:!0},dr=[0,0],U$={left:{points:["cr","cl"],overflow:Ka,offset:[-4,0],targetOffset:dr},right:{points:["cl","cr"],overflow:Ka,offset:[4,0],targetOffset:dr},top:{points:["bc","tc"],overflow:Ga,offset:[0,-4],targetOffset:dr},bottom:{points:["tc","bc"],overflow:Ga,offset:[0,4],targetOffset:dr},topLeft:{points:["bl","tl"],overflow:Ga,offset:[0,-4],targetOffset:dr},leftTop:{points:["tr","tl"],overflow:Ka,offset:[-4,0],targetOffset:dr},topRight:{points:["br","tr"],overflow:Ga,offset:[0,-4],targetOffset:dr},rightTop:{points:["tl","tr"],overflow:Ka,offset:[4,0],targetOffset:dr},bottomRight:{points:["tr","br"],overflow:Ga,offset:[0,4],targetOffset:dr},rightBottom:{points:["bl","br"],overflow:Ka,offset:[4,0],targetOffset:dr},bottomLeft:{points:["tl","bl"],overflow:Ga,offset:[0,4],targetOffset:dr},leftBottom:{points:["br","bl"],overflow:Ka,offset:[-4,0],targetOffset:dr}},Y$=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],G$=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,l=i===void 0?0:i,s=t.mouseLeaveDelay,u=s===void 0?.1:s,c=t.overlayStyle,f=t.prefixCls,g=f===void 0?"rc-tooltip":f,h=t.children,p=t.onVisibleChange,b=t.afterVisibleChange,v=t.transitionName,y=t.animation,m=t.motion,C=t.placement,S=C===void 0?"right":C,x=t.align,w=x===void 0?{}:x,$=t.destroyTooltipOnHide,O=$===void 0?!1:$,R=t.defaultVisible,E=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,D=t.id,P=t.showArrow,M=P===void 0?!0:P,I=t.classNames,A=t.styles,T=wt(t,Y$),j=l0(D),B=Xe(null);So(n,function(){return B.current});var H=Z({},T);"visible"in t&&(H.popupVisible=t.visible);var _=function(){return d.createElement(_p,{key:"content",prefixCls:g,id:j,bodyClassName:I==null?void 0:I.body,overlayInnerStyle:Z(Z({},N),A==null?void 0:A.body)},L)},W=function(){var G=d.Children.only(h),k=(G==null?void 0:G.props)||{},z=Z(Z({},k),{},{"aria-describedby":L?j:null});return d.cloneElement(h,z)};return d.createElement(m0,je({popupClassName:ue(r,I==null?void 0:I.root),prefixCls:g,popup:_,action:o,builtinPlacements:U$,popupPlacement:S,ref:B,popupAlign:w,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:b,popupTransitionName:v,popupAnimation:y,popupMotion:m,defaultPopupVisible:R,autoDestroy:O,mouseLeaveDelay:u,popupStyle:Z(Z({},c),A==null?void 0:A.root),mouseEnterDelay:l,arrow:M},H),W())};const K$=Vn(G$);function Hp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,l=r*1/Math.sqrt(2),s=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,g=c,h=2*a-l,p=s,b=2*a-o,v=i,y=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),m=r*(Math.sqrt(2)-1),C=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,S=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${l} ${s} L ${u} ${c} A ${n} ${n} 0 0 1 ${f} ${g} L ${h} ${p} A ${r} ${r} 0 0 0 ${b} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:C}}const jp=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ve(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},zp=8;function Bp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?zp:r}}function Gi(e,t){return e?t:{}}function X$(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},jp(e,t,a)),{"&:before":{background:t}})]},Gi(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ve(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Gi(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ve(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Gi(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),Gi(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function Z$(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const gv={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"]}},Q$={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"]}},J$=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function eE(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,l=t/2,s={},u=Bp({contentRadius:o,limitVerticalRadius:!0});return Object.keys(gv).forEach(c=>{const f=r&&Q$[c]||gv[c],g=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(s[c]=g,J$.has(c)&&(g.autoArrow=!1),c){case"top":case"topLeft":case"topRight":g.offset[1]=-l-a;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=l+a;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-l-a;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=l+a;break}if(r)switch(c){case"topLeft":case"bottomLeft":g.offset[0]=-u.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":g.offset[0]=u.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":g.offset[1]=-u.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":g.offset[1]=u.arrowOffsetHorizontal*2-l;break}g.overflow=Z$(c,u,t,n),i&&(g.htmlRegion="visibleFirst")}),s}const tE=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:u,paddingSM:c,paddingXS:f,arrowOffsetHorizontal:g,sizePopupArrow:h}=e,p=t(i).add(h).add(g).equal(),b=t(i).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},sn(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:b,minHeight:s,padding:`${ve(e.calc(c).div(2).equal())} ${ve(f)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,zp)}},[`${n}-content`]:{position:"relative"}}),wh(e,(v,{darkColor:y})=>({[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},X$(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},nE=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Bp({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Hp(Bt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Vp=(e,t=!0)=>Rn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,l=Bt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[tE(l),Hx(r,"zoom-big-fast")]},nE,{resetStyle:!1,injectStyle:t})(e),rE=Ma.map(e=>`${e}-inverse`),aE=["success","processing","error","default","warning"];function Wp(e,t=!0){return t?[].concat(Ne(rE),Ne(Ma)).includes(e):Ma.includes(e)}function oE(e){return aE.includes(e)}function qp(e,t){const n=Wp(t),r=ue({[`${e}-${t}`]:t&&n}),a={},o={},i=jx(t).toRgb(),s=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=s,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const iE=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:l}=d.useContext(Tt),s=l("tooltip",t),[u,c,f]=Vp(s),g=qp(s,o),h=g.arrowStyle,p=Object.assign(Object.assign({},i),g.overlayStyle),b=ue(c,f,s,`${s}-pure`,`${s}-placement-${r}`,n,g.className);return u(d.createElement("div",{className:b,style:h},d.createElement("div",{className:`${s}-arrow`}),d.createElement(_p,Object.assign({},e,{className:c,prefixCls:s,overlayInnerStyle:p}),a)))};var lE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sE=d.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,color:l,overlayInnerStyle:s,children:u,afterOpenChange:c,afterVisibleChange:f,destroyTooltipOnHide:g,destroyOnHidden:h,arrow:p=!0,title:b,overlay:v,builtinPlacements:y,arrowPointAtCenter:m=!1,autoAdjustOverflow:C=!0,motion:S,getPopupContainer:x,placement:w="top",mouseEnterDelay:$=.1,mouseLeaveDelay:O=.1,overlayStyle:R,rootClassName:E,overlayClassName:N,styles:L,classNames:D}=e,P=lE(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"]),M=!!p,[,I]=hr(),{getPopupContainer:A,getPrefixCls:T,direction:j,className:B,style:H,classNames:_,styles:W}=Vr("tooltip"),q=Kd(),G=d.useRef(null),k=()=>{var Ie;(Ie=G.current)===null||Ie===void 0||Ie.forceAlign()};d.useImperativeHandle(t,()=>{var Ie,he;return{forceAlign:k,forcePopupAlign:()=>{q.deprecated(!1,"forcePopupAlign","forceAlign"),k()},nativeElement:(Ie=G.current)===null||Ie===void 0?void 0:Ie.nativeElement,popupElement:(he=G.current)===null||he===void 0?void 0:he.popupElement}});const[z,V]=ln(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!b&&!v&&b!==0,X=Ie=>{var he,Ee;V(F?!1:Ie),F||((he=e.onOpenChange)===null||he===void 0||he.call(e,Ie),(Ee=e.onVisibleChange)===null||Ee===void 0||Ee.call(e,Ie))},Y=d.useMemo(()=>{var Ie,he;let Ee=m;return typeof p=="object"&&(Ee=(he=(Ie=p.pointAtCenter)!==null&&Ie!==void 0?Ie:p.arrowPointAtCenter)!==null&&he!==void 0?he:m),y||eE({arrowPointAtCenter:Ee,autoAdjustOverflow:C,arrowWidth:M?I.sizePopupArrow:0,borderRadius:I.borderRadius,offset:I.marginXXS,visibleFirst:!0})},[m,p,y,I]),U=d.useMemo(()=>b===0?b:v||b||"",[v,b]),J=d.createElement(aa,{space:!0},typeof U=="function"?U():U),re=T("tooltip",a),ne=T(),te=e["data-popover-inject"];let de=z;!("open"in e)&&!("visible"in e)&&F&&(de=!1);const ae=d.isValidElement(u)&&!Bh(u)?u:d.createElement("span",null,u),ge=ae.props,Oe=!ge.className||typeof ge.className=="string"?ue(ge.className,o||`${re}-open`):ge.className,[xe,$e,Se]=Vp(re,!te),le=qp(re,l),Me=le.arrowStyle,Pe=ue(N,{[`${re}-rtl`]:j==="rtl"},le.className,E,$e,Se,B,_.root,D==null?void 0:D.root),ie=ue(_.body,D==null?void 0:D.body),[pe,be]=Rs("Tooltip",P.zIndex),Re=d.createElement(K$,Object.assign({},P,{zIndex:pe,showArrow:M,placement:w,mouseEnterDelay:$,mouseLeaveDelay:O,prefixCls:re,classNames:{root:Pe,body:ie},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Me),W.root),H),R),L==null?void 0:L.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},W.body),s),L==null?void 0:L.body),le.overlayStyle)},getTooltipContainer:x||i||A,ref:G,builtinPlacements:Y,overlay:J,visible:de,onVisibleChange:X,afterVisibleChange:c??f,arrowContent:d.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:Kh(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!g}),de?po(ae,{className:Oe}):ae);return xe(d.createElement(qh.Provider,{value:be},Re))}),Po=sE;Po._InternalPanelDoNotUseOrYouWillBeFired=iE;var $l={exports:{}},cE=$l.exports,hv;function uE(){return hv||(hv=1,(function(e,t){(function(n,r){e.exports=r()})(cE,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",l="minute",s="hour",u="day",c="week",f="month",g="quarter",h="year",p="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var M=["th","st","nd","rd"],I=P%100;return"["+P+(M[(I-20)%10]||M[I]||M[0])+"]"}},C=function(P,M,I){var A=String(P);return!A||A.length>=M?P:""+Array(M+1-A.length).join(I)+P},S={s:C,z:function(P){var M=-P.utcOffset(),I=Math.abs(M),A=Math.floor(I/60),T=I%60;return(M<=0?"+":"-")+C(A,2,"0")+":"+C(T,2,"0")},m:function P(M,I){if(M.date()<I.date())return-P(I,M);var A=12*(I.year()-M.year())+(I.month()-M.month()),T=M.clone().add(A,f),j=I-T<0,B=M.clone().add(A+(j?-1:1),f);return+(-(A+(I-T)/(j?T-B:B-T))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y:h,w:c,d:u,D:p,h:s,m:l,s:i,ms:o,Q:g}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},x="en",w={};w[x]=m;var $="$isDayjsObject",O=function(P){return P instanceof L||!(!P||!P[$])},R=function P(M,I,A){var T;if(!M)return x;if(typeof M=="string"){var j=M.toLowerCase();w[j]&&(T=j),I&&(w[j]=I,T=j);var B=M.split("-");if(!T&&B.length>1)return P(B[0])}else{var H=M.name;w[H]=M,T=H}return!A&&T&&(x=T),T||!A&&x},E=function(P,M){if(O(P))return P.clone();var I=typeof M=="object"?M:{};return I.date=P,I.args=arguments,new L(I)},N=S;N.l=R,N.i=O,N.w=function(P,M){return E(P,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var L=(function(){function P(I){this.$L=R(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[$]=!0}var M=P.prototype;return M.parse=function(I){this.$d=(function(A){var T=A.date,j=A.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var B=T.match(v);if(B){var H=B[2]-1||0,_=(B[7]||"0").substring(0,3);return j?new Date(Date.UTC(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,_)):new Date(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,_)}}return new Date(T)})(I),this.init()},M.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},M.$utils=function(){return N},M.isValid=function(){return this.$d.toString()!==b},M.isSame=function(I,A){var T=E(I);return this.startOf(A)<=T&&T<=this.endOf(A)},M.isAfter=function(I,A){return E(I)<this.startOf(A)},M.isBefore=function(I,A){return this.endOf(A)<E(I)},M.$g=function(I,A,T){return N.u(I)?this[A]:this.set(T,I)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(I,A){var T=this,j=!!N.u(A)||A,B=N.p(I),H=function(F,X){var Y=N.w(T.$u?Date.UTC(T.$y,X,F):new Date(T.$y,X,F),T);return j?Y:Y.endOf(u)},_=function(F,X){return N.w(T.toDate()[F].apply(T.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(X)),T)},W=this.$W,q=this.$M,G=this.$D,k="set"+(this.$u?"UTC":"");switch(B){case h:return j?H(1,0):H(31,11);case f:return j?H(1,q):H(0,q+1);case c:var z=this.$locale().weekStart||0,V=(W<z?W+7:W)-z;return H(j?G-V:G+(6-V),q);case u:case p:return _(k+"Hours",0);case s:return _(k+"Minutes",1);case l:return _(k+"Seconds",2);case i:return _(k+"Milliseconds",3);default:return this.clone()}},M.endOf=function(I){return this.startOf(I,!1)},M.$set=function(I,A){var T,j=N.p(I),B="set"+(this.$u?"UTC":""),H=(T={},T[u]=B+"Date",T[p]=B+"Date",T[f]=B+"Month",T[h]=B+"FullYear",T[s]=B+"Hours",T[l]=B+"Minutes",T[i]=B+"Seconds",T[o]=B+"Milliseconds",T)[j],_=j===u?this.$D+(A-this.$W):A;if(j===f||j===h){var W=this.clone().set(p,1);W.$d[H](_),W.init(),this.$d=W.set(p,Math.min(this.$D,W.daysInMonth())).$d}else H&&this.$d[H](_);return this.init(),this},M.set=function(I,A){return this.clone().$set(I,A)},M.get=function(I){return this[N.p(I)]()},M.add=function(I,A){var T,j=this;I=Number(I);var B=N.p(A),H=function(q){var G=E(j);return N.w(G.date(G.date()+Math.round(q*I)),j)};if(B===f)return this.set(f,this.$M+I);if(B===h)return this.set(h,this.$y+I);if(B===u)return H(1);if(B===c)return H(7);var _=(T={},T[l]=r,T[s]=a,T[i]=n,T)[B]||1,W=this.$d.getTime()+I*_;return N.w(W,this)},M.subtract=function(I,A){return this.add(-1*I,A)},M.format=function(I){var A=this,T=this.$locale();if(!this.isValid())return T.invalidDate||b;var j=I||"YYYY-MM-DDTHH:mm:ssZ",B=N.z(this),H=this.$H,_=this.$m,W=this.$M,q=T.weekdays,G=T.months,k=T.meridiem,z=function(X,Y,U,J){return X&&(X[Y]||X(A,j))||U[Y].slice(0,J)},V=function(X){return N.s(H%12||12,X,"0")},F=k||function(X,Y,U){var J=X<12?"AM":"PM";return U?J.toLowerCase():J};return j.replace(y,(function(X,Y){return Y||(function(U){switch(U){case"YY":return String(A.$y).slice(-2);case"YYYY":return N.s(A.$y,4,"0");case"M":return W+1;case"MM":return N.s(W+1,2,"0");case"MMM":return z(T.monthsShort,W,G,3);case"MMMM":return z(G,W);case"D":return A.$D;case"DD":return N.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return z(T.weekdaysMin,A.$W,q,2);case"ddd":return z(T.weekdaysShort,A.$W,q,3);case"dddd":return q[A.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return F(H,_,!0);case"A":return F(H,_,!1);case"m":return String(_);case"mm":return N.s(_,2,"0");case"s":return String(A.$s);case"ss":return N.s(A.$s,2,"0");case"SSS":return N.s(A.$ms,3,"0");case"Z":return B}return null})(X)||B.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(I,A,T){var j,B=this,H=N.p(A),_=E(I),W=(_.utcOffset()-this.utcOffset())*r,q=this-_,G=function(){return N.m(B,_)};switch(H){case h:j=G()/12;break;case f:j=G();break;case g:j=G()/3;break;case c:j=(q-W)/6048e5;break;case u:j=(q-W)/864e5;break;case s:j=q/a;break;case l:j=q/r;break;case i:j=q/n;break;default:j=q}return T?j:N.a(j)},M.daysInMonth=function(){return this.endOf(f).$D},M.$locale=function(){return w[this.$L]},M.locale=function(I,A){if(!I)return this.$L;var T=this.clone(),j=R(I,A,!0);return j&&(T.$L=j),T},M.clone=function(){return N.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},P})(),D=L.prototype;return E.prototype=D,[["$ms",o],["$s",i],["$m",l],["$H",s],["$W",u],["$M",f],["$y",h],["$D",p]].forEach((function(P){D[P[1]]=function(M){return this.$g(M,P[0],P[1])}})),E.extend=function(P,M){return P.$i||(P(M,L,E),P.$i=!0),E},E.locale=R,E.isDayjs=O,E.unix=function(P){return E(1e3*P)},E.en=w[x],E.Ls=w,E.p={},E}))})($l)),$l.exports}var dE=uE();const Gn=ia(dE);var El={exports:{}},fE=El.exports,pv;function mE(){return pv||(pv=1,(function(e,t){(function(n,r){e.exports=r()})(fE,(function(){return function(n,r){r.prototype.weekday=function(a){var o=this.$locale().weekStart||0,i=this.$W,l=(i<o?i+7:i)-o;return this.$utils().u(a)?l:this.subtract(l,"day").add(a,"day")}}}))})(El)),El.exports}var vE=mE();const gE=ia(vE);var Ol={exports:{}},hE=Ol.exports,bv;function pE(){return bv||(bv=1,(function(e,t){(function(n,r){e.exports=r()})(hE,(function(){return function(n,r,a){var o=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,g,h,p,b){var v=f.name?f:f.$locale(),y=i(v[g]),m=i(v[h]),C=y||m.map((function(x){return x.slice(0,p)}));if(!b)return C;var S=v.weekStart;return C.map((function(x,w){return C[(w+(S||0))%7]}))},s=function(){return a.Ls[a.locale()]},u=function(f,g){return f.formats[g]||(function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(p,b,v){return b||v.slice(1)}))})(f.formats[g.toUpperCase()])},c=function(){var f=this;return{months:function(g){return g?g.format("MMMM"):l(f,"months")},monthsShort:function(g){return g?g.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):l(f,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return u(f.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=s();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(g){return u(f,g)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return l(s(),"months")},a.monthsShort=function(){return l(s(),"monthsShort","months",3)},a.weekdays=function(f){return l(s(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return l(s(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return l(s(),"weekdaysMin","weekdays",2,f)}}}))})(Ol)),Ol.exports}var bE=pE();const yE=ia(bE);var Il={exports:{}},CE=Il.exports,yv;function SE(){return yv||(yv=1,(function(e,t){(function(n,r){e.exports=r()})(CE,(function(){var n="week",r="year";return function(a,o,i){var l=o.prototype;l.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(c.isBefore(f))return 1}var g=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(g,n,!0);return h<0?i(this).startOf("week").week():Math.ceil(h)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})(Il)),Il.exports}var xE=SE();const wE=ia(xE);var Ml={exports:{}},$E=Ml.exports,Cv;function EE(){return Cv||(Cv=1,(function(e,t){(function(n,r){e.exports=r()})($E,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}}))})(Ml)),Ml.exports}var OE=EE();const IE=ia(OE);var Rl={exports:{}},ME=Rl.exports,Sv;function RE(){return Sv||(Sv=1,(function(e,t){(function(n,r){e.exports=r()})(ME,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),c=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}}));return o.bind(this)(c)}}}))})(Rl)),Rl.exports}var PE=RE();const NE=ia(PE);var Pl={exports:{}},TE=Pl.exports,xv;function AE(){return xv||(xv=1,(function(e,t){(function(n,r){e.exports=r()})(TE,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,s={},u=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var m=y.match(/([+-]|\d\d)/g),C=60*m[1]+(+m[2]||0);return C===0?0:m[0]==="+"?-C:C})(v)}],g=function(v){var y=s[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var m,C=s.meridiem;if(C){for(var S=1;S<=24;S+=1)if(v.indexOf(C(S,0,y))>-1){m=S>12;break}}else m=v===(y?"pm":"PM");return m},p={A:[l,function(v){this.afternoon=h(v,!1)}],a:[l,function(v){this.afternoon=h(v,!0)}],Q:[a,function(v){this.month=3*(v-1)+1}],S:[a,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[o,c("day")],Do:[l,function(v){var y=s.ordinal,m=v.match(/\d+/);if(this.day=m[0],y)for(var C=1;C<=31;C+=1)y(C).replace(/\[|\]/g,"")===v&&(this.day=C)}],w:[i,c("week")],ww:[o,c("week")],M:[i,c("month")],MM:[o,c("month")],MMM:[l,function(v){var y=g("months"),m=(g("monthsShort")||y.map((function(C){return C.slice(0,3)}))).indexOf(v)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[l,function(v){var y=g("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=u(v)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function b(v){var y,m;y=v,m=s&&s.formats;for(var C=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(E,N,L){var D=L&&L.toUpperCase();return N||m[L]||n[L]||m[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(P,M,I){return M||I.slice(1)}))}))).match(r),S=C.length,x=0;x<S;x+=1){var w=C[x],$=p[w],O=$&&$[0],R=$&&$[1];C[x]=R?{regex:O,parser:R}:w.replace(/^\[|\]$/g,"")}return function(E){for(var N={},L=0,D=0;L<S;L+=1){var P=C[L];if(typeof P=="string")D+=P.length;else{var M=P.regex,I=P.parser,A=E.slice(D),T=M.exec(A)[0];I.call(N,T),E=E.replace(T,"")}}return(function(j){var B=j.afternoon;if(B!==void 0){var H=j.hours;B?H<12&&(j.hours+=12):H===12&&(j.hours=0),delete j.afternoon}})(N),N}}return function(v,y,m){m.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var C=y.prototype,S=C.parse;C.parse=function(x){var w=x.date,$=x.utc,O=x.args;this.$u=$;var R=O[1];if(typeof R=="string"){var E=O[2]===!0,N=O[3]===!0,L=E||N,D=O[2];N&&(D=O[2]),s=this.$locale(),!E&&D&&(s=m.Ls[D]),this.$d=(function(A,T,j,B){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*A);var H=b(T)(A),_=H.year,W=H.month,q=H.day,G=H.hours,k=H.minutes,z=H.seconds,V=H.milliseconds,F=H.zone,X=H.week,Y=new Date,U=q||(_||W?1:Y.getDate()),J=_||Y.getFullYear(),re=0;_&&!W||(re=W>0?W-1:Y.getMonth());var ne,te=G||0,de=k||0,ae=z||0,ge=V||0;return F?new Date(Date.UTC(J,re,U,te,de,ae,ge+60*F.offset*1e3)):j?new Date(Date.UTC(J,re,U,te,de,ae,ge)):(ne=new Date(J,re,U,te,de,ae,ge),X&&(ne=B(ne).week(X).toDate()),ne)}catch{return new Date("")}})(w,R,$,m),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),L&&w!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var P=R.length,M=1;M<=P;M+=1){O[1]=R[M-1];var I=m.apply(this,O);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}M===P&&(this.$d=new Date(""))}else S.call(this,x)}}}))})(Pl)),Pl.exports}var FE=AE();const DE=ia(FE);Gn.extend(DE);Gn.extend(NE);Gn.extend(gE);Gn.extend(yE);Gn.extend(wE);Gn.extend(IE);Gn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var LE={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},fa=function(t){var n=LE[t];return n||t.split("_")[0]},kE={getNow:function(){var t=Gn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Gn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Gn().locale(fa(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(fa(t)).weekday(0)},getWeek:function(t,n){return n.locale(fa(t)).week()},getShortWeekDays:function(t){return Gn().locale(fa(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Gn().locale(fa(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(fa(t)).format(r)},parse:function(t,n,r){for(var a=fa(t),o=0;o<r.length;o+=1){var i=r[o],l=n;if(i.includes("wo")||i.includes("Wo")){for(var s=l.split("-")[0],u=l.split("-")[1],c=Gn(s,"YYYY").startOf("year").locale(a),f=0;f<=52;f+=1){var g=c.add(f,"week");if(g.format("Wo")===u)return g}return null}var h=Gn(l,i,!0).locale(a);if(h.isValid())return h}return null}}};function _E(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Or=d.createContext(null),HE={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Up(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,o=e.transitionName,i=e.getPopupContainer,l=e.children,s=e.range,u=e.placement,c=e.builtinPlacements,f=c===void 0?HE:c,g=e.direction,h=e.visible,p=e.onClose,b=d.useContext(Or),v=b.prefixCls,y="".concat(v,"-dropdown"),m=_E(u,g==="rtl");return d.createElement(m0,{showAction:[],hideAction:["click"],popupPlacement:m,builtinPlacements:f,prefixCls:y,popupTransitionName:o,popup:t,popupAlign:a,popupVisible:h,popupClassName:ue(r,K(K({},"".concat(y,"-range"),s),"".concat(y,"-rtl"),g==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(S){S||p()}},l)}function b0(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function _a(e){return e==null?[]:Array.isArray(e)?e:[e]}function ei(e,t,n){var r=Ne(e);return r[t]=n,r}function Bs(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function Yp(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function Gp(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(o){return e[o]});return r!==a?e[a]:void 0}function Kp(e){return Bs(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function y0(e,t,n,r){var a=d.useMemo(function(){return e||function(i,l){var s=i;return t&&l.type==="date"?t(s,l.today):n&&l.type==="month"?n(s,l.locale):l.originNode}},[e,n,t]),o=d.useCallback(function(i,l){return a(i,Z(Z({},l),{},{range:r}))},[a,r]);return o}function Xp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),a=ee(r,2),o=a[0],i=a[1],l=function(c,f){i(function(g){return ei(g,f,c)})},s=d.useMemo(function(){return o.map(function(u,c){if(u)return!0;var f=e[c];return f?!!(!n[c]&&!f||f&&t(f,{activeIndex:c})):!1})},[e,o,t,n]);return[s,l]}function Zp(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function jE(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,u=e.fieldMonthFormat,c=e.fieldYearFormat,f=e.fieldWeekFormat,g=e.fieldQuarterFormat,h=e.yearFormat,p=e.cellYearFormat,b=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,m=Zp(t,n,r,a,o);return Z(Z({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(m),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||m,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:c||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:g||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:y||v||"D"})}function Qp(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return ce.useMemo(function(){return jE(e,n,r,a,o,i)},[e,n,r,a,o,i])}function zo(e,t,n){return n??t.some(function(r){return e.includes(r)})}var zE=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function BE(e){var t=Bs(e,zE),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=nt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function VE(e){return e&&typeof e=="string"}function Jp(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function e1(e,t,n,r,a){var o=t,i=n,l=r;if(!e&&!o&&!i&&!l&&!a)o=!0,i=!0,l=!0;else if(e){var s,u,c,f=[o,i,l].some(function(p){return p===!1}),g=[o,i,l].some(function(p){return p===!0}),h=f?!0:!g;o=(s=o)!==null&&s!==void 0?s:h,i=(u=i)!==null&&u!==void 0?u:h,l=(c=l)!==null&&c!==void 0?c:h}return[o,i,l,a]}function t1(e){var t=e.showTime,n=BE(e),r=ee(n,2),a=r[0],o=r[1],i=t&&nt(t)==="object"?t:{},l=Z(Z({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),s=l.showMillisecond,u=l.showHour,c=l.showMinute,f=l.showSecond,g=Jp(u,c,f,s),h=e1(g,u,c,f,s),p=ee(h,3);return u=p[0],c=p[1],f=p[2],[l,Z(Z({},l),{},{showHour:u,showMinute:c,showSecond:f,showMillisecond:s}),l.format,o]}function n1(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,l=Yp(e,a,null),s=l,u=[t,n],c=0;c<u.length;c+=1){var f=_a(u[c])[0];if(VE(f)){s=f;break}}var g=i.showHour,h=i.showMinute,p=i.showSecond,b=i.showMillisecond,v=i.use12Hours,y=zo(s,["a","A","LT","LLL","LTS"],v),m=Jp(g,h,p,b);m||(g=zo(s,["H","h","k","LT","LLL"]),h=zo(s,["m","LT","LLL"]),p=zo(s,["s","LTS"]),b=zo(s,["SSS"]));var C=e1(m,g,h,p,b),S=ee(C,3);g=S[0],h=S[1],p=S[2];var x=t||Zp(g,h,p,b,y);return Z(Z({},i),{},{format:x,showHour:g,showMinute:h,showSecond:p,showMillisecond:b,use12Hours:y})}return null}function WE(e,t,n){if(t===!1)return null;var r=t&&nt(t)==="object"?t:{};return r.clearIcon||n||d.createElement("span",{className:"".concat(e,"-clear-btn")})}var Dc=7;function da(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function ld(e,t,n){return da(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function Pa(e,t,n){return da(t,n,function(){return e.getYear(t)===e.getYear(n)})}function wv(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function qE(e,t,n){return da(t,n,function(){return Pa(e,t,n)&&wv(e,t)===wv(e,n)})}function C0(e,t,n){return da(t,n,function(){return Pa(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function S0(e,t,n){return da(t,n,function(){return Pa(e,t,n)&&C0(e,t,n)&&e.getDate(t)===e.getDate(n)})}function r1(e,t,n){return da(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function a1(e,t,n){return da(t,n,function(){return S0(e,t,n)&&r1(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Uo(e,t,n,r){return da(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return Pa(e,a,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function _n(e,t,n,r,a){switch(a){case"date":return S0(e,n,r);case"week":return Uo(e,t.locale,n,r);case"month":return C0(e,n,r);case"quarter":return qE(e,n,r);case"year":return Pa(e,n,r);case"decade":return ld(e,n,r);case"time":return r1(e,n,r);default:return a1(e,n,r)}}function Vs(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Ki(e,t,n,r,a){return _n(e,t,n,r,a)?!0:e.isAfter(n,r)}function UE(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),o=t.getWeekDay(a),i=t.addDate(a,r-o);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function On(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Ql(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,l){n?r=e[i](r,e[a[l]](n)):r=e[i](r,0)}),r}function YE(e,t,n,r,a){var o=Mt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!_n(e,t,r,i,l.type)||a&&e.isAfter(i,a)&&!_n(e,t,a,i,l.type))});return o}function GE(e,t,n){return d.useMemo(function(){var r=Yp(e,t,n),a=_a(r),o=a[0],i=nt(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function KE(e,t,n){return typeof e[0]=="function"||n?!0:t}function XE(e,t,n,r){var a=Mt(function(o,i){var l=Z({type:t},i);if(delete l.activeIndex,!e.isValidate(o)||n&&n(o,l))return!0;if((t==="date"||t==="time")&&r){var s,u=i&&i.activeIndex===1?"end":"start",c=((s=r.disabledTime)===null||s===void 0?void 0:s.call(r,o,u,{from:l.from}))||{},f=c.disabledHours,g=c.disabledMinutes,h=c.disabledSeconds,p=c.disabledMilliseconds,b=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,m=f||b,C=g||v,S=h||y,x=e.getHour(o),w=e.getMinute(o),$=e.getSecond(o),O=e.getMillisecond(o);if(m&&m().includes(x)||C&&C(x).includes(w)||S&&S(x,w).includes($)||p&&p(x,w,$).includes(O))return!0}return!1});return a}function Xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&_a(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function o1(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,l=i===void 0?"rc-picker":i,s=e.styles,u=s===void 0?{}:s,c=e.classNames,f=c===void 0?{}:c,g=e.order,h=g===void 0?!0:g,p=e.components,b=p===void 0?{}:p,v=e.inputRender,y=e.allowClear,m=e.clearIcon,C=e.needConfirm,S=e.multiple,x=e.format,w=e.inputReadOnly,$=e.disabledDate,O=e.minDate,R=e.maxDate,E=e.showTime,N=e.value,L=e.defaultValue,D=e.pickerValue,P=e.defaultPickerValue,M=Xi(N),I=Xi(L),A=Xi(D),T=Xi(P),j=o==="date"&&E?"datetime":o,B=j==="time"||j==="datetime",H=B||S,_=C??B,W=t1(e),q=ee(W,4),G=q[0],k=q[1],z=q[2],V=q[3],F=Qp(r,k),X=d.useMemo(function(){return n1(j,z,V,G,F)},[j,z,V,G,F]),Y=d.useMemo(function(){return Z(Z({},e),{},{prefixCls:l,locale:F,picker:o,styles:u,classNames:f,order:h,components:Z({input:v},b),clearIcon:WE(l,y,m),showTime:X,value:M,defaultValue:I,pickerValue:A,defaultPickerValue:T},t==null?void 0:t())},[e]),U=GE(j,F,x),J=ee(U,2),re=J[0],ne=J[1],te=KE(re,w,S),de=YE(n,r,$,O,R),ae=XE(n,o,de,X),ge=d.useMemo(function(){return Z(Z({},Y),{},{needConfirm:_,inputReadOnly:te,disabledDate:de})},[Y,_,te,de]);return[ge,j,H,re,ne,ae]}function ZE(e,t,n){var r=ln(t,{value:e}),a=ee(r,2),o=a[0],i=a[1],l=ce.useRef(e),s=ce.useRef(),u=function(){Ct.cancel(s.current)},c=Mt(function(){i(l.current),n&&o!==l.current&&n(l.current)}),f=Mt(function(g,h){u(),l.current=g,g||h?c():s.current=Ct(c)});return ce.useEffect(function(){return u},[]),[o,f]}function i1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(c){return c})?!1:e,o=ZE(a,t||!1,r),i=ee(o,2),l=i[0],s=i[1];function u(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&s(c,f.force)}return[l,u]}function l1(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function s1(e,t){return d.useMemo(function(){return e||(t?(An(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ee(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function x0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,no(function(){if(e)r.current(e);else{var a=Ct(function(){r.current(e)},n);return function(){Ct.cancel(a)}}},[e])}function c1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),a=ee(r,2),o=a[0],i=a[1],l=d.useState(!1),s=ee(l,2),u=s[0],c=s[1],f=d.useRef([]),g=d.useRef(null),h=d.useRef(null),p=function(S){g.current=S},b=function(S){return g.current===S},v=function(S){c(S)},y=function(S){return S&&(h.current=S),h.current},m=function(S){var x=f.current,w=new Set(x.filter(function(O){return S[O]||t[O]})),$=x[x.length-1]===0?1:0;return w.size>=2||e[$]?null:$};return x0(u||n,function(){u||(f.current=[],p(null))}),d.useEffect(function(){u&&f.current.push(o)},[u,o]),[u,v,y,o,i,m,f.current,p,b]}function QE(e,t,n,r,a,o){var i=n[n.length-1],l=function(u,c){var f=ee(e,2),g=f[0],h=f[1],p=Z(Z({},c),{},{from:Gp(e,n)});return i===1&&t[0]&&g&&!_n(r,a,g,u,p.type)&&r.isAfter(g,u)||i===0&&t[1]&&h&&!_n(r,a,h,u,p.type)&&r.isAfter(u,h)?!0:o==null?void 0:o(u,p)};return l}function Yo(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Lc=[];function u1(e,t,n,r,a,o,i,l){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Lc,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Lc,c=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Lc,f=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,p=i==="time",b=o||0,v=function(A){var T=e.getNow();return p&&(T=Ql(e,T)),s[A]||n[A]||T},y=ee(u,2),m=y[0],C=y[1],S=ln(function(){return v(0)},{value:m}),x=ee(S,2),w=x[0],$=x[1],O=ln(function(){return v(1)},{value:C}),R=ee(O,2),E=R[0],N=R[1],L=d.useMemo(function(){var I=[w,E][b];return p?I:Ql(e,I,c[b])},[p,w,E,b,e,c]),D=function(A){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",j=[$,N][b];j(A);var B=[w,E];B[b]=A,f&&(!_n(e,t,w,B[0],i)||!_n(e,t,E,B[1],i))&&f(B,{source:T,range:b===1?"end":"start",mode:r})},P=function(A,T){if(l){var j={date:"month",week:"month",month:"year",quarter:"year"},B=j[i];if(B&&!_n(e,t,A,T,B))return Yo(e,i,T,-1);if(i==="year"&&A){var H=Math.floor(e.getYear(A)/10),_=Math.floor(e.getYear(T)/10);if(H!==_)return Yo(e,i,T,-1)}}return T},M=d.useRef(null);return Nt(function(){if(a&&!s[b]){var I=p?null:e.getNow();if(M.current!==null&&M.current!==b?I=[w,E][b^1]:n[b]?I=b===0?n[0]:P(n[0],n[1]):n[b^1]&&(I=n[b^1]),I){g&&e.isAfter(g,I)&&(I=g);var A=l?Yo(e,i,I,1):I;h&&e.isAfter(A,h)&&(I=l?Yo(e,i,h,-1):h),D(I,"reset")}}},[a,b,n[b]]),d.useEffect(function(){a?M.current=b:M.current=null},[a,b]),Nt(function(){a&&s&&s[b]&&D(s[b],"reset")},[a,b]),[L,D]}function d1(e,t){var n=d.useRef(e),r=d.useState({}),a=ee(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},l=function(u){n.current=u,o({})};return[i,l,i(!0)]}var JE=[];function f1(e,t,n){var r=function(i){return i.map(function(l){return On(l,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,l){for(var s=Math.max(i.length,l.length),u=-1,c=0;c<s;c+=1){var f=i[c]||null,g=l[c]||null;if(f!==g&&!a1(e,f,g)){u=c;break}}return[u<0,u!==0]};return[r,a]}function m1(e,t){return Ne(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function eO(e){var t=d1(e),n=ee(t,2),r=n[0],a=n[1],o=Mt(function(){a(e)});return d.useEffect(function(){o()},[e]),[r,a]}function v1(e,t,n,r,a,o,i,l,s){var u=ln(o,{value:i}),c=ee(u,2),f=c[0],g=c[1],h=f||JE,p=eO(h),b=ee(p,2),v=b[0],y=b[1],m=f1(e,t,n),C=ee(m,2),S=C[0],x=C[1],w=Mt(function(O){var R=Ne(O);if(r)for(var E=0;E<2;E+=1)R[E]=R[E]||null;else a&&(R=m1(R.filter(function(I){return I}),e));var N=x(v(),R),L=ee(N,2),D=L[0],P=L[1];if(!D&&(y(R),l)){var M=S(R);l(R,M,{range:P?"end":"start"})}}),$=function(){s&&s(v())};return[h,g,v,w,$]}function g1(e,t,n,r,a,o,i,l,s,u){var c=e.generateConfig,f=e.locale,g=e.picker,h=e.onChange,p=e.allowEmpty,b=e.order,v=o.some(function(D){return D})?!1:b,y=f1(c,f,i),m=ee(y,2),C=m[0],S=m[1],x=d1(t),w=ee(x,2),$=w[0],O=w[1],R=Mt(function(){O(t)});d.useEffect(function(){R()},[t]);var E=Mt(function(D){var P=D===null,M=Ne(D||$());if(P)for(var I=Math.max(o.length,M.length),A=0;A<I;A+=1)o[A]||(M[A]=null);v&&M[0]&&M[1]&&(M=m1(M,c)),a(M);var T=M,j=ee(T,2),B=j[0],H=j[1],_=!B,W=!H,q=p?(!_||p[0])&&(!W||p[1]):!0,G=!b||_||W||_n(c,f,B,H,g)||c.isAfter(H,B),k=(o[0]||!B||!u(B,{activeIndex:0}))&&(o[1]||!H||!u(H,{from:B,activeIndex:1})),z=P||q&&G&&k;if(z){n(M);var V=S(M,t),F=ee(V,1),X=F[0];h&&!X&&h(P&&M.every(function(Y){return!Y})?null:M,C(M))}return z}),N=Mt(function(D,P){var M=ei($(),D,r()[D]);O(M),P&&E()}),L=!l&&!s;return x0(!L,function(){L&&(E(),a(t),R())},2),[N,E]}function h1(e,t,n,r,a){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!a&&(e==="date"||e==="time")}function tO(e,t,n,r,a,o){var i=e;function l(f,g,h){var p=o[f](i),b=h.find(function(C){return C.value===p});if(!b||b.disabled){var v=h.filter(function(C){return!C.disabled}),y=Ne(v).reverse(),m=y.find(function(C){return C.value<=p})||v[0];m&&(p=m.value,i=o[g](i,p))}return p}var s=l("getHour","setHour",t()),u=l("getMinute","setMinute",n(s)),c=l("getSecond","setSecond",r(s,u));return l("getMillisecond","setMillisecond",a(s,u,c)),i}function Zi(){return[]}function Qi(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,s=e;s<=t;s+=l){var u=a.includes(s);(!u||!r)&&i.push({label:b0(s,o),value:s,disabled:u})}return i}function w0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,l=r.minuteStep,s=l===void 0?1:l,u=r.secondStep,c=u===void 0?1:u,f=r.millisecondStep,g=f===void 0?100:f,h=r.hideDisabledOptions,p=r.disabledTime,b=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,m=d.useMemo(function(){return n||e.getNow()},[n,e]),C=d.useCallback(function(T){var j=(p==null?void 0:p(T))||{};return[j.disabledHours||b||Zi,j.disabledMinutes||v||Zi,j.disabledSeconds||y||Zi,j.disabledMilliseconds||Zi]},[p,b,v,y]),S=d.useMemo(function(){return C(m)},[m,C]),x=ee(S,4),w=x[0],$=x[1],O=x[2],R=x[3],E=d.useCallback(function(T,j,B,H){var _=Qi(0,23,i,h,T()),W=a?_.map(function(z){return Z(Z({},z),{},{label:b0(z.value%12||12,2)})}):_,q=function(V){return Qi(0,59,s,h,j(V))},G=function(V,F){return Qi(0,59,c,h,B(V,F))},k=function(V,F,X){return Qi(0,999,g,h,H(V,F,X),3)};return[W,q,G,k]},[h,i,a,g,s,c]),N=d.useMemo(function(){return E(w,$,O,R)},[E,w,$,O,R]),L=ee(N,4),D=L[0],P=L[1],M=L[2],I=L[3],A=function(j,B){var H=function(){return D},_=P,W=M,q=I;if(B){var G=C(B),k=ee(G,4),z=k[0],V=k[1],F=k[2],X=k[3],Y=E(z,V,F,X),U=ee(Y,4),J=U[0],re=U[1],ne=U[2],te=U[3];H=function(){return J},_=re,W=ne,q=te}var de=tO(j,H,_,W,q,e);return de};return[A,D,P,M,I]}function nO(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,l=e.onNow,s=e.invalid,u=e.needConfirm,c=e.generateConfig,f=e.disabledDate,g=d.useContext(Or),h=g.prefixCls,p=g.locale,b=g.button,v=b===void 0?"button":b,y=c.getNow(),m=w0(c,o,y),C=ee(m,1),S=C[0],x=r==null?void 0:r(t),w=f(y,{type:t}),$=function(){if(!w){var P=S(y);l(P)}},O="".concat(h,"-now"),R="".concat(O,"-btn"),E=a&&d.createElement("li",{className:O},d.createElement("a",{className:ue(R,w&&"".concat(R,"-disabled")),"aria-disabled":w,onClick:$},n==="date"?p.today:p.now)),N=u&&d.createElement("li",{className:"".concat(h,"-ok")},d.createElement(v,{disabled:s,onClick:i},p.ok)),L=(E||N)&&d.createElement("ul",{className:"".concat(h,"-ranges")},E,N);return!x&&!L?null:d.createElement("div",{className:"".concat(h,"-footer")},x&&d.createElement("div",{className:"".concat(h,"-footer-extra")},x),L)}function p1(e,t,n){function r(a,o){var i=a.findIndex(function(s){return _n(e,t,s,o,n)});if(i===-1)return[].concat(Ne(a),[o]);var l=Ne(a);return l.splice(i,1),l}return r}var Ha=d.createContext(null);function Ws(){return d.useContext(Ha)}function No(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,l=e.maxDate,s=e.cellRender,u=e.hoverValue,c=e.hoverRangeValue,f=e.onHover,g=e.values,h=e.pickerValue,p=e.onSelect,b=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,m=e.superNextIcon,C=r.getNow(),S={now:C,values:g,pickerValue:h,prefixCls:n,disabledDate:o,minDate:i,maxDate:l,cellRender:s,hoverValue:u,hoverRangeValue:c,onHover:f,locale:a,generateConfig:r,onSelect:p,panelType:t,prevIcon:b,nextIcon:v,superPrevIcon:y,superNextIcon:m};return[S,C]}var na=d.createContext({});function Ti(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,s=e.getCellText,u=e.getCellClassName,c=e.headerCells,f=e.cellSelection,g=f===void 0?!0:f,h=e.disabledDate,p=Ws(),b=p.prefixCls,v=p.panelType,y=p.now,m=p.disabledDate,C=p.cellRender,S=p.onHover,x=p.hoverValue,w=p.hoverRangeValue,$=p.generateConfig,O=p.values,R=p.locale,E=p.onSelect,N=h||m,L="".concat(b,"-cell"),D=d.useContext(na),P=D.onCellDblClick,M=function(W){return O.some(function(q){return q&&_n($,R,W,q,v)})},I=[],A=0;A<t;A+=1){for(var T=[],j=void 0,B=function(){var W=A*n+H,q=a(r,W),G=N==null?void 0:N(q,{type:v});H===0&&(j=q,o&&T.push(o(j)));var k=!1,z=!1,V=!1;if(g&&w){var F=ee(w,2),X=F[0],Y=F[1];k=Vs($,X,Y,q),z=_n($,R,q,X,v),V=_n($,R,q,Y,v)}var U=l?On(q,{locale:R,format:l,generateConfig:$}):void 0,J=d.createElement("div",{className:"".concat(L,"-inner")},s(q));T.push(d.createElement("td",{key:H,title:U,className:ue(L,Z(K(K(K(K(K(K({},"".concat(L,"-disabled"),G),"".concat(L,"-hover"),(x||[]).some(function(re){return _n($,R,q,re,v)})),"".concat(L,"-in-range"),k&&!z&&!V),"".concat(L,"-range-start"),z),"".concat(L,"-range-end"),V),"".concat(b,"-cell-selected"),!w&&v!=="week"&&M(q)),u(q))),onClick:function(){G||E(q)},onDoubleClick:function(){!G&&P&&P()},onMouseEnter:function(){G||S==null||S(q)},onMouseLeave:function(){G||S==null||S(null)}},C?C(q,{prefixCls:b,originNode:J,today:y,type:v,locale:R}):J))},H=0;H<n;H+=1)B();I.push(d.createElement("tr",{key:A,className:i==null?void 0:i(j)},T))}return d.createElement("div",{className:"".concat(b,"-body")},d.createElement("table",{className:"".concat(b,"-content")},c&&d.createElement("thead",null,d.createElement("tr",null,c)),d.createElement("tbody",null,I)))}var Ji={visibility:"hidden"};function To(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,o=e.getEnd,i=e.children,l=Ws(),s=l.prefixCls,u=l.prevIcon,c=u===void 0?"\u2039":u,f=l.nextIcon,g=f===void 0?"\u203A":f,h=l.superPrevIcon,p=h===void 0?"\xAB":h,b=l.superNextIcon,v=b===void 0?"\xBB":b,y=l.minDate,m=l.maxDate,C=l.generateConfig,S=l.locale,x=l.pickerValue,w=l.panelType,$="".concat(s,"-header"),O=d.useContext(na),R=O.hidePrev,E=O.hideNext,N=O.hideHeader,L=d.useMemo(function(){if(!y||!t||!o)return!1;var _=o(t(-1,x));return!Ki(C,S,_,y,w)},[y,t,x,o,C,S,w]),D=d.useMemo(function(){if(!y||!n||!o)return!1;var _=o(n(-1,x));return!Ki(C,S,_,y,w)},[y,n,x,o,C,S,w]),P=d.useMemo(function(){if(!m||!t||!a)return!1;var _=a(t(1,x));return!Ki(C,S,m,_,w)},[m,t,x,a,C,S,w]),M=d.useMemo(function(){if(!m||!n||!a)return!1;var _=a(n(1,x));return!Ki(C,S,m,_,w)},[m,n,x,a,C,S,w]),I=function(W){t&&r(t(W,x))},A=function(W){n&&r(n(W,x))};if(N)return null;var T="".concat($,"-prev-btn"),j="".concat($,"-next-btn"),B="".concat($,"-super-prev-btn"),H="".concat($,"-super-next-btn");return d.createElement("div",{className:$},n&&d.createElement("button",{type:"button","aria-label":S.previousYear,onClick:function(){return A(-1)},tabIndex:-1,className:ue(B,D&&"".concat(B,"-disabled")),disabled:D,style:R?Ji:{}},p),t&&d.createElement("button",{type:"button","aria-label":S.previousMonth,onClick:function(){return I(-1)},tabIndex:-1,className:ue(T,L&&"".concat(T,"-disabled")),disabled:L,style:R?Ji:{}},c),d.createElement("div",{className:"".concat($,"-view")},i),t&&d.createElement("button",{type:"button","aria-label":S.nextMonth,onClick:function(){return I(1)},tabIndex:-1,className:ue(j,P&&"".concat(j,"-disabled")),disabled:P,style:E?Ji:{}},g),n&&d.createElement("button",{type:"button","aria-label":S.nextYear,onClick:function(){return A(1)},tabIndex:-1,className:ue(H,M&&"".concat(H,"-disabled")),disabled:M,style:E?Ji:{}},v))}function qs(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,o=e.generateConfig,i=e.pickerValue,l=e.onPickerValueChange,s=e.onModeChange,u=e.mode,c=u===void 0?"date":u,f=e.disabledDate,g=e.onSelect,h=e.onHover,p=e.showWeek,b="".concat(t,"-").concat(r,"-panel"),v="".concat(t,"-cell"),y=c==="week",m=No(e,c),C=ee(m,2),S=C[0],x=C[1],w=o.locale.getWeekFirstDay(a.locale),$=o.setDate(i,1),O=UE(a.locale,o,$),R=o.getMonth(i),E=p===void 0?y:p,N=E?function(_){var W=f==null?void 0:f(_,{type:"week"});return d.createElement("td",{key:"week",className:ue(v,"".concat(v,"-week"),K({},"".concat(v,"-disabled"),W)),onClick:function(){W||g(_)},onMouseEnter:function(){W||h==null||h(_)},onMouseLeave:function(){W||h==null||h(null)}},d.createElement("div",{className:"".concat(v,"-inner")},o.locale.getWeek(a.locale,_)))}:null,L=[],D=a.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(a.locale):[]);N&&L.push(d.createElement("th",{key:"empty"},d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var P=0;P<Dc;P+=1)L.push(d.createElement("th",{key:P},D[(P+w)%Dc]));var M=function(W,q){return o.addDate(W,q)},I=function(W){return On(W,{locale:a,format:a.cellDateFormat,generateConfig:o})},A=function(W){var q=K(K({},"".concat(t,"-cell-in-view"),C0(o,W,i)),"".concat(t,"-cell-today"),S0(o,W,x));return q},T=a.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(a.locale):[]),j=d.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){s("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},On(i,{locale:a,format:a.yearFormat,generateConfig:o})),B=d.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){s("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?On(i,{locale:a,format:a.monthFormat,generateConfig:o}):T[R]),H=a.monthBeforeYear?[B,j]:[j,B];return d.createElement(Ha.Provider,{value:S},d.createElement("div",{className:ue(b,p&&"".concat(b,"-show-week"))},d.createElement(To,{offset:function(W){return o.addMonth(i,W)},superOffset:function(W){return o.addYear(i,W)},onChange:l,getStart:function(W){return o.setDate(W,1)},getEnd:function(W){var q=o.setDate(W,1);return q=o.addMonth(q,1),o.addDate(q,-1)}},H),d.createElement(Ti,je({titleFormat:a.fieldDateFormat},e,{colNum:Dc,rowNum:6,baseDate:O,headerCells:L,getCellDate:M,getCellText:I,getCellClassName:A,prefixColumn:N,cellSelection:!y}))))}var rO=1/3;function aO(e,t){var n=d.useRef(!1),r=d.useRef(null),a=d.useRef(null),o=function(){return n.current},i=function(){Ct.cancel(r.current),n.current=!1},l=d.useRef(),s=function(){var f=e.current;if(a.current=null,l.current=0,f){var g=f.querySelector('[data-value="'.concat(t,'"]')),h=f.querySelector("li"),p=function b(){i(),n.current=!0,l.current+=1;var v=f.scrollTop,y=h.offsetTop,m=g.offsetTop,C=m-y;if(m===0&&g!==h||!Ns(f)){l.current<=5&&(r.current=Ct(b));return}var S=v+(C-v)*rO,x=Math.abs(C-S);if(a.current!==null&&a.current<x){i();return}if(a.current=x,x<=1){f.scrollTop=C,i();return}f.scrollTop=S,r.current=Ct(b)};g&&h&&p()}},u=Mt(s);return[u,i,o]}var oO=300;function iO(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function Bo(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,o=e.onChange,i=e.onHover,l=e.onDblClick,s=e.changeOnScroll,u=Ws(),c=u.prefixCls,f=u.cellRender,g=u.now,h=u.locale,p="".concat(c,"-time-panel"),b="".concat(c,"-time-panel-cell"),v=d.useRef(null),y=d.useRef(),m=function(){clearTimeout(y.current)},C=aO(v,n??r),S=ee(C,3),x=S[0],w=S[1],$=S[2];Nt(function(){return x(),m(),function(){w(),m()}},[n,r,iO(t)]);var O=function(N){m();var L=N.target;!$()&&s&&(y.current=setTimeout(function(){var D=v.current,P=D.querySelector("li").offsetTop,M=Array.from(D.querySelectorAll("li")),I=M.map(function(H){return H.offsetTop-P}),A=I.map(function(H,_){return t[_].disabled?Number.MAX_SAFE_INTEGER:Math.abs(H-L.scrollTop)}),T=Math.min.apply(Math,Ne(A)),j=A.findIndex(function(H){return H===T}),B=t[j];B&&!B.disabled&&o(B.value)},oO))},R="".concat(p,"-column");return d.createElement("ul",{className:R,ref:v,"data-type":a,onScroll:O},t.map(function(E){var N=E.label,L=E.value,D=E.disabled,P=d.createElement("div",{className:"".concat(b,"-inner")},N);return d.createElement("li",{key:L,className:ue(b,K(K({},"".concat(b,"-selected"),n===L),"".concat(b,"-disabled"),D)),onClick:function(){D||o(L)},onDoubleClick:function(){!D&&l&&l()},onMouseEnter:function(){i(L)},onMouseLeave:function(){i(null)},"data-value":L},f?f(L,{prefixCls:c,originNode:P,today:g,type:"time",subType:a,locale:h}):P)}))}function Gr(e){return e<12}function lO(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,o=e.use12Hours,i=e.changeOnScroll,l=Ws(),s=l.prefixCls,u=l.values,c=l.generateConfig,f=l.locale,g=l.onSelect,h=l.onHover,p=h===void 0?function(){}:h,b=l.pickerValue,v=(u==null?void 0:u[0])||null,y=d.useContext(na),m=y.onCellDblClick,C=w0(c,e,v),S=ee(C,5),x=S[0],w=S[1],$=S[2],O=S[3],R=S[4],E=function(we){var Ze=v&&c[we](v),lt=b&&c[we](b);return[Ze,lt]},N=E("getHour"),L=ee(N,2),D=L[0],P=L[1],M=E("getMinute"),I=ee(M,2),A=I[0],T=I[1],j=E("getSecond"),B=ee(j,2),H=B[0],_=B[1],W=E("getMillisecond"),q=ee(W,2),G=q[0],k=q[1],z=D===null?null:Gr(D)?"am":"pm",V=d.useMemo(function(){return o?Gr(D)?w.filter(function(se){return Gr(se.value)}):w.filter(function(se){return!Gr(se.value)}):w},[D,w,o]),F=function(we,Ze){var lt,mt=we.filter(function(_e){return!_e.disabled});return Ze??(mt==null||(lt=mt[0])===null||lt===void 0?void 0:lt.value)},X=F(w,D),Y=d.useMemo(function(){return $(X)},[$,X]),U=F(Y,A),J=d.useMemo(function(){return O(X,U)},[O,X,U]),re=F(J,H),ne=d.useMemo(function(){return R(X,U,re)},[R,X,U,re]),te=F(ne,G),de=d.useMemo(function(){if(!o)return[];var se=c.getNow(),we=c.setHour(se,6),Ze=c.setHour(se,18),lt=function(_e,ke){var We=f.cellMeridiemFormat;return We?On(_e,{generateConfig:c,locale:f,format:We}):ke};return[{label:lt(we,"AM"),value:"am",disabled:w.every(function(mt){return mt.disabled||!Gr(mt.value)})},{label:lt(Ze,"PM"),value:"pm",disabled:w.every(function(mt){return mt.disabled||Gr(mt.value)})}]},[w,o,c,f]),ae=function(we){var Ze=x(we);g(Ze)},ge=d.useMemo(function(){var se=v||b||c.getNow(),we=function(lt){return lt!=null};return we(D)?(se=c.setHour(se,D),se=c.setMinute(se,A),se=c.setSecond(se,H),se=c.setMillisecond(se,G)):we(P)?(se=c.setHour(se,P),se=c.setMinute(se,T),se=c.setSecond(se,_),se=c.setMillisecond(se,k)):we(X)&&(se=c.setHour(se,X),se=c.setMinute(se,U),se=c.setSecond(se,re),se=c.setMillisecond(se,te)),se},[v,b,D,A,H,G,X,U,re,te,P,T,_,k,c]),Oe=function(we,Ze){return we===null?null:c[Ze](ge,we)},xe=function(we){return Oe(we,"setHour")},$e=function(we){return Oe(we,"setMinute")},Se=function(we){return Oe(we,"setSecond")},le=function(we){return Oe(we,"setMillisecond")},Me=function(we){return we===null?null:we==="am"&&!Gr(D)?c.setHour(ge,D-12):we==="pm"&&Gr(D)?c.setHour(ge,D+12):ge},Pe=function(we){ae(xe(we))},ie=function(we){ae($e(we))},pe=function(we){ae(Se(we))},be=function(we){ae(le(we))},Re=function(we){ae(Me(we))},Ie=function(we){p(xe(we))},he=function(we){p($e(we))},Ee=function(we){p(Se(we))},oe=function(we){p(le(we))},me=function(we){p(Me(we))},Te={onDblClick:m,changeOnScroll:i};return d.createElement("div",{className:"".concat(s,"-content")},t&&d.createElement(Bo,je({units:V,value:D,optionalValue:P,type:"hour",onChange:Pe,onHover:Ie},Te)),n&&d.createElement(Bo,je({units:Y,value:A,optionalValue:T,type:"minute",onChange:ie,onHover:he},Te)),r&&d.createElement(Bo,je({units:J,value:H,optionalValue:_,type:"second",onChange:pe,onHover:Ee},Te)),a&&d.createElement(Bo,je({units:ne,value:G,optionalValue:k,type:"millisecond",onChange:be,onHover:oe},Te)),o&&d.createElement(Bo,je({units:de,value:z,type:"meridiem",onChange:Re,onHover:me},Te)))}function b1(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,o=e.showTime,i=o||{},l=i.format,s="".concat(t,"-time-panel"),u=No(e,"time"),c=ee(u,1),f=c[0];return d.createElement(Ha.Provider,{value:f},d.createElement("div",{className:ue(s)},d.createElement(To,null,n?On(n,{locale:r,format:l,generateConfig:a}):"\xA0"),d.createElement(lO,o)))}function sO(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,o=e.value,i=e.pickerValue,l=e.onHover,s="".concat(t,"-datetime-panel"),u=w0(n,r),c=ee(u,1),f=c[0],g=function(v){return o?Ql(n,v,o):Ql(n,v,i)},h=function(v){l==null||l(v&&g(v))},p=function(v){var y=g(v);a(f(y,y))};return d.createElement("div",{className:s},d.createElement(qs,je({},e,{onSelect:p,onHover:h})),d.createElement(b1,e))}function cO(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,i=e.onPickerValueChange,l="".concat(t,"-decade-panel"),s=No(e,"decade"),u=ee(s,1),c=u[0],f=function(w){var $=Math.floor(r.getYear(w)/100)*100;return r.setYear(w,$)},g=function(w){var $=f(w);return r.addYear($,99)},h=f(a),p=g(a),b=r.addYear(h,-10),v=function(w,$){return r.addYear(w,$*10)},y=function(w){var $=n.cellYearFormat,O=On(w,{locale:n,format:$,generateConfig:r}),R=On(r.addYear(w,9),{locale:n,format:$,generateConfig:r});return"".concat(O,"-").concat(R)},m=function(w){return K({},"".concat(t,"-cell-in-view"),ld(r,w,h)||ld(r,w,p)||Vs(r,h,p,w))},C=o?function(x,w){var $=r.setDate(x,1),O=r.setMonth($,0),R=r.setYear(O,Math.floor(r.getYear(O)/10)*10),E=r.addYear(R,10),N=r.addDate(E,-1);return o(R,w)&&o(N,w)}:null,S="".concat(On(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(On(p,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(Ha.Provider,{value:c},d.createElement("div",{className:l},d.createElement(To,{superOffset:function(w){return r.addYear(a,w*100)},onChange:i,getStart:f,getEnd:g},S),d.createElement(Ti,je({},e,{disabledDate:C,colNum:3,rowNum:4,baseDate:b,getCellDate:v,getCellText:y,getCellClassName:m}))))}function uO(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-month-panel"),u=No(e,"month"),c=ee(u,1),f=c[0],g=r.setMonth(a,0),h=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),p=function(S,x){return r.addMonth(S,x)},b=function(S){var x=r.getMonth(S);return n.monthFormat?On(S,{locale:n,format:n.monthFormat,generateConfig:r}):h[x]},v=function(){return K({},"".concat(t,"-cell-in-view"),!0)},y=o?function(C,S){var x=r.setDate(C,1),w=r.setMonth(x,r.getMonth(x)+1),$=r.addDate(w,-1);return o(x,S)&&o($,S)}:null,m=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},On(a,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(Ha.Provider,{value:f},d.createElement("div",{className:s},d.createElement(To,{superOffset:function(S){return r.addYear(a,S)},onChange:i,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},m),d.createElement(Ti,je({},e,{disabledDate:y,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:p,getCellText:b,getCellClassName:v}))))}function dO(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.onPickerValueChange,i=e.onModeChange,l="".concat(t,"-quarter-panel"),s=No(e,"quarter"),u=ee(s,1),c=u[0],f=r.setMonth(a,0),g=function(y,m){return r.addMonth(y,m*3)},h=function(y){return On(y,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},p=function(){return K({},"".concat(t,"-cell-in-view"),!0)},b=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},On(a,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(Ha.Provider,{value:c},d.createElement("div",{className:l},d.createElement(To,{superOffset:function(y){return r.addYear(a,y)},onChange:o,getStart:function(y){return r.setMonth(y,0)},getEnd:function(y){return r.setMonth(y,11)}},b),d.createElement(Ti,je({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:g,getCellText:h,getCellClassName:p}))))}function fO(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,o=e.hoverValue,i=e.hoverRangeValue,l=r.locale,s="".concat(t,"-week-panel-row"),u=function(f){var g={};if(i){var h=ee(i,2),p=h[0],b=h[1],v=Uo(n,l,p,f),y=Uo(n,l,b,f);g["".concat(s,"-range-start")]=v,g["".concat(s,"-range-end")]=y,g["".concat(s,"-range-hover")]=!v&&!y&&Vs(n,p,b,f)}return o&&(g["".concat(s,"-hover")]=o.some(function(m){return Uo(n,l,f,m)})),ue(s,K({},"".concat(s,"-selected"),!i&&Uo(n,l,a,f)),g)};return d.createElement(qs,je({},e,{mode:"week",panelName:"week",rowClassName:u}))}function mO(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-year-panel"),u=No(e,"year"),c=ee(u,1),f=c[0],g=function($){var O=Math.floor(r.getYear($)/10)*10;return r.setYear($,O)},h=function($){var O=g($);return r.addYear(O,9)},p=g(a),b=h(a),v=r.addYear(p,-1),y=function($,O){return r.addYear($,O)},m=function($){return On($,{locale:n,format:n.cellYearFormat,generateConfig:r})},C=function($){return K({},"".concat(t,"-cell-in-view"),Pa(r,$,p)||Pa(r,$,b)||Vs(r,p,b,$))},S=o?function(w,$){var O=r.setMonth(w,0),R=r.setDate(O,1),E=r.addYear(R,1),N=r.addDate(E,-1);return o(R,$)&&o(N,$)}:null,x=d.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},On(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-",On(b,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(Ha.Provider,{value:f},d.createElement("div",{className:s},d.createElement(To,{superOffset:function($){return r.addYear(a,$*10)},onChange:i,getStart:g,getEnd:h},x),d.createElement(Ti,je({},e,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:m,getCellClassName:C}))))}var vO={date:qs,datetime:sO,week:fO,month:uO,quarter:dO,year:mO,decade:cO,time:b1};function gO(e,t){var n,r=e.locale,a=e.generateConfig,o=e.direction,i=e.prefixCls,l=e.tabIndex,s=l===void 0?0:l,u=e.multiple,c=e.defaultValue,f=e.value,g=e.onChange,h=e.onSelect,p=e.defaultPickerValue,b=e.pickerValue,v=e.onPickerValueChange,y=e.mode,m=e.onPanelChange,C=e.picker,S=C===void 0?"date":C,x=e.showTime,w=e.hoverValue,$=e.hoverRangeValue,O=e.cellRender,R=e.dateRender,E=e.monthCellRender,N=e.components,L=N===void 0?{}:N,D=e.hideHeader,P=((n=d.useContext(Or))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",M=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:M.current}});var I=t1(e),A=ee(I,4),T=A[0],j=A[1],B=A[2],H=A[3],_=Qp(r,j),W=S==="date"&&x?"datetime":S,q=d.useMemo(function(){return n1(W,B,H,T,_)},[W,B,H,T,_]),G=a.getNow(),k=ln(S,{value:y,postState:function(me){return me||"date"}}),z=ee(k,2),V=z[0],F=z[1],X=V==="date"&&q?"datetime":V,Y=p1(a,r,W),U=ln(c,{value:f}),J=ee(U,2),re=J[0],ne=J[1],te=d.useMemo(function(){var oe=_a(re).filter(function(me){return me});return u?oe:oe.slice(0,1)},[re,u]),de=Mt(function(oe){ne(oe),g&&(oe===null||te.length!==oe.length||te.some(function(me,Te){return!_n(a,r,me,oe[Te],W)}))&&(g==null||g(u?oe:oe[0]))}),ae=Mt(function(oe){if(h==null||h(oe),V===S){var me=u?Y(te,oe):[oe];de(me)}}),ge=ln(p||te[0]||G,{value:b}),Oe=ee(ge,2),xe=Oe[0],$e=Oe[1];d.useEffect(function(){te[0]&&!b&&$e(te[0])},[te[0]]);var Se=function(me,Te){m==null||m(me||b,Te||V)},le=function(me){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$e(me),v==null||v(me),Te&&Se(me)},Me=function(me,Te){F(me),Te&&le(Te),Se(Te,me)},Pe=function(me){if(ae(me),le(me),V!==S){var Te=["decade","year"],se=[].concat(Te,["month"]),we={quarter:[].concat(Te,["quarter"]),week:[].concat(Ne(se),["week"]),date:[].concat(Ne(se),["date"])},Ze=we[S]||se,lt=Ze.indexOf(V),mt=Ze[lt+1];mt&&Me(mt,me)}},ie=d.useMemo(function(){var oe,me;if(Array.isArray($)){var Te=ee($,2);oe=Te[0],me=Te[1]}else oe=$;return!oe&&!me?null:(oe=oe||me,me=me||oe,a.isAfter(oe,me)?[me,oe]:[oe,me])},[$,a]),pe=y0(O,R,E),be=L[X]||vO[X]||qs,Re=d.useContext(na),Ie=d.useMemo(function(){return Z(Z({},Re),{},{hideHeader:D})},[Re,D]),he="".concat(P,"-panel"),Ee=Bs(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(na.Provider,{value:Ie},d.createElement("div",{ref:M,tabIndex:s,className:ue(he,K({},"".concat(he,"-rtl"),o==="rtl"))},d.createElement(be,je({},Ee,{showTime:q,prefixCls:P,locale:_,generateConfig:a,onModeChange:Me,pickerValue:xe,onPickerValueChange:function(me){le(me,!0)},value:te[0],onSelect:Pe,values:te,cellRender:pe,hoverRangeValue:ie,hoverValue:w}))))}var kc=d.memo(d.forwardRef(gO));function hO(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,l=e.range,s=e.hoverValue,u=d.useContext(Or),c=u.prefixCls,f=u.generateConfig,g=d.useCallback(function(m,C){return Yo(f,t,m,C)},[f,t]),h=d.useMemo(function(){return g(r,1)},[r,g]),p=function(C){a(g(C,-1))},b={onCellDblClick:function(){o&&i()}},v=t==="time",y=Z(Z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return l?y.hoverRangeValue=s:y.hoverValue=s,n?d.createElement("div",{className:"".concat(c,"-panels")},d.createElement(na.Provider,{value:Z(Z({},b),{},{hideNext:!0})},d.createElement(kc,y)),d.createElement(na.Provider,{value:Z(Z({},b),{},{hidePrev:!0})},d.createElement(kc,je({},y,{pickerValue:h,onPickerValueChange:p})))):d.createElement(na.Provider,{value:Z({},b)},d.createElement(kc,y))}function $v(e){return typeof e=="function"?e():e}function pO(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(o,i){var l=o.label,s=o.value;return d.createElement("li",{key:i,onClick:function(){r($v(s))},onMouseEnter:function(){a($v(s))},onMouseLeave:function(){a(null)}},l)}))):null}function y1(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,l=e.activeInfo,s=l===void 0?[0,0,0]:l,u=e.presets,c=e.onPresetHover,f=e.onPresetSubmit,g=e.onFocus,h=e.onBlur,p=e.onPanelMouseDown,b=e.direction,v=e.value,y=e.onSelect,m=e.isInvalid,C=e.defaultOpenValue,S=e.onOk,x=e.onSubmit,w=d.useContext(Or),$=w.prefixCls,O="".concat($,"-panel"),R=b==="rtl",E=d.useRef(null),N=d.useRef(null),L=d.useState(0),D=ee(L,2),P=D[0],M=D[1],I=d.useState(0),A=ee(I,2),T=A[0],j=A[1],B=d.useState(0),H=ee(B,2),_=H[0],W=H[1],q=function(Pe){Pe.width&&M(Pe.width)},G=ee(s,3),k=G[0],z=G[1],V=G[2],F=d.useState(0),X=ee(F,2),Y=X[0],U=X[1];d.useEffect(function(){U(10)},[k]),d.useEffect(function(){if(o&&N.current){var Me,Pe=((Me=E.current)===null||Me===void 0?void 0:Me.offsetWidth)||0,ie=N.current.getBoundingClientRect();if(!ie.height||ie.right<0){U(function(Ie){return Math.max(0,Ie-1)});return}var pe=(R?z-Pe:k)-ie.left;if(W(pe),P&&P<V){var be=R?ie.right-(z-Pe+P):k+Pe-ie.left-P,Re=Math.max(0,be);j(Re)}else j(0)}},[Y,R,P,k,z,V,o]);function J(Me){return Me.filter(function(Pe){return Pe})}var re=d.useMemo(function(){return J(_a(v))},[v]),ne=r==="time"&&!re.length,te=d.useMemo(function(){return ne?J([C]):re},[ne,re,C]),de=ne?C:re,ae=d.useMemo(function(){return te.length?te.some(function(Me){return m(Me)}):!0},[te,m]),ge=function(){ne&&y(C),S(),x()},Oe=d.createElement("div",{className:"".concat($,"-panel-layout")},d.createElement(pO,{prefixCls:$,presets:u,onClick:f,onHover:c}),d.createElement("div",null,d.createElement(hO,je({},e,{value:de})),d.createElement(nO,je({},e,{showNow:i?!1:a,invalid:ae,onSubmit:ge}))));t&&(Oe=t(Oe));var xe="".concat(O,"-container"),$e="marginLeft",Se="marginRight",le=d.createElement("div",{onMouseDown:p,tabIndex:-1,className:ue(xe,"".concat($,"-").concat(n,"-panel-container")),style:K(K({},R?Se:$e,T),R?$e:Se,"auto"),onFocus:g,onBlur:h},Oe);return o&&(le=d.createElement("div",{onMouseDown:p,ref:N,className:ue("".concat($,"-range-wrapper"),"".concat($,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:E,className:"".concat($,"-range-arrow"),style:{left:_}}),d.createElement(Lr,{onResize:q},le))),le}function C1(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,i=e.preserveInvalidOnBlur,l=e.inputReadOnly,s=e.required,u=e["aria-required"],c=e.onSubmit,f=e.onFocus,g=e.onBlur,h=e.onInputChange,p=e.onInvalid,b=e.open,v=e.onOpenChange,y=e.onKeyDown,m=e.onChange,C=e.activeHelp,S=e.name,x=e.autoComplete,w=e.id,$=e.value,O=e.invalid,R=e.placeholder,E=e.disabled,N=e.activeIndex,L=e.allHelp,D=e.picker,P=function(_,W){var q=a.locale.parse(o.locale,_,[W]);return q&&a.isValidate(q)?q:null},M=n[0],I=d.useCallback(function(H){return On(H,{locale:o,format:M,generateConfig:a})},[o,a,M]),A=d.useMemo(function(){return $.map(I)},[$,I]),T=d.useMemo(function(){var H=D==="time"?8:10,_=typeof M=="function"?M(a.getNow()).length:M.length;return Math.max(H,_)+2},[M,D,a]),j=function(_){for(var W=0;W<n.length;W+=1){var q=n[W];if(typeof q=="string"){var G=P(_,q);if(G)return G}}return!1},B=function(_){function W(k){return _!==void 0?k[_]:k}var q=Fr(e,{aria:!0,data:!0}),G=Z(Z({},q),{},{format:r,validateFormat:function(z){return!!j(z)},preserveInvalidOnBlur:i,readOnly:l,required:s,"aria-required":u,name:S,autoComplete:x,size:T,id:W(w),value:W(A)||"",invalid:W(O),placeholder:W(R),active:N===_,helped:L||C&&N===_,disabled:W(E),onFocus:function(z){f(z,_)},onBlur:function(z){g(z,_)},onSubmit:c,onChange:function(z){h();var V=j(z);if(V){p(!1,_),m(V,_);return}p(!!z,_)},onHelp:function(){v(!0,{index:_})},onKeyDown:function(z){var V=!1;if(y==null||y(z,function(){V=!0}),!z.defaultPrevented&&!V)switch(z.key){case"Escape":v(!1,{index:_});break;case"Enter":b||v(!0);break}}},t==null?void 0:t({valueTexts:A}));return Object.keys(G).forEach(function(k){G[k]===void 0&&delete G[k]}),G};return[B,I]}var bO=["onMouseEnter","onMouseLeave"];function S1(e){return d.useMemo(function(){return Bs(e,bO)},[e])}var yO=["icon","type"],CO=["onClear"];function Us(e){var t=e.icon,n=e.type,r=wt(e,yO),a=d.useContext(Or),o=a.prefixCls;return t?d.createElement("span",je({className:"".concat(o,"-").concat(n)},r),t):null}function sd(e){var t=e.onClear,n=wt(e,CO);return d.createElement(Us,je({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var _c=["YYYY","MM","DD","HH","mm","ss","SSS"],Ev="\u9867",SO=(function(){function e(t){cn(this,e),K(this,"format",void 0),K(this,"maskFormat",void 0),K(this,"cells",void 0),K(this,"maskCells",void 0),this.format=t;var n=_c.map(function(l){return"(".concat(l,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(l){return Ev.repeat(l.length)});var a=new RegExp("(".concat(_c.join("|"),")")),o=(t.split(a)||[]).filter(function(l){return l}),i=0;this.cells=o.map(function(l){var s=_c.includes(l),u=i,c=i+l.length;return i=c,{text:l,mask:s,start:u,end:c}}),this.maskCells=this.cells.filter(function(l){return l.mask})}return un(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,o=r.end;return[a||0,o||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],o=n[r];if(!o||a!==Ev&&a!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,a=0,o=0;o<this.maskCells.length;o+=1){var i=this.maskCells[o],l=i.start,s=i.end;if(n>=l&&n<=s)return o;var u=Math.min(Math.abs(n-l),Math.abs(n-s));u<r&&(r=u,a=o)}return a}}]),e})();function xO(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var wO=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],cd=d.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,a=r===void 0?!0:r,o=e.suffixIcon,i=e.format,l=e.validateFormat,s=e.onChange;e.onInput;var u=e.helped,c=e.onHelp,f=e.onSubmit,g=e.onKeyDown,h=e.preserveInvalidOnBlur,p=h===void 0?!1:h,b=e.invalid,v=e.clearIcon,y=wt(e,wO),m=e.value,C=e.onFocus,S=e.onBlur,x=e.onMouseUp,w=d.useContext(Or),$=w.prefixCls,O=w.input,R=O===void 0?"input":O,E="".concat($,"-input"),N=d.useState(!1),L=ee(N,2),D=L[0],P=L[1],M=d.useState(m),I=ee(M,2),A=I[0],T=I[1],j=d.useState(""),B=ee(j,2),H=B[0],_=B[1],W=d.useState(null),q=ee(W,2),G=q[0],k=q[1],z=d.useState(null),V=ee(z,2),F=V[0],X=V[1],Y=A||"";d.useEffect(function(){T(m)},[m]);var U=d.useRef(),J=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:U.current,inputElement:J.current,focus:function(oe){J.current.focus(oe)},blur:function(){J.current.blur()}}});var re=d.useMemo(function(){return new SO(i||"")},[i]),ne=d.useMemo(function(){return u?[0,0]:re.getSelection(G)},[re,G,u]),te=ee(ne,2),de=te[0],ae=te[1],ge=function(oe){oe&&oe!==i&&oe!==m&&c()},Oe=Mt(function(Ee){l(Ee)&&s(Ee),T(Ee),ge(Ee)}),xe=function(oe){if(!i){var me=oe.target.value;ge(me),T(me),s(me)}},$e=function(oe){var me=oe.clipboardData.getData("text");l(me)&&Oe(me)},Se=d.useRef(!1),le=function(){Se.current=!0},Me=function(oe){var me=oe.target,Te=me.selectionStart,se=re.getMaskCellIndex(Te);k(se),X({}),x==null||x(oe),Se.current=!1},Pe=function(oe){P(!0),k(0),_(""),C(oe)},ie=function(oe){S(oe)},pe=function(oe){P(!1),ie(oe)};x0(n,function(){!n&&!p&&T(m)});var be=function(oe){oe.key==="Enter"&&l(Y)&&f(),g==null||g(oe)},Re=function(oe){be(oe);var me=oe.key,Te=null,se=null,we=ae-de,Ze=i.slice(de,ae),lt=function(We){k(function(ze){var qe=ze+We;return qe=Math.max(qe,0),qe=Math.min(qe,re.size()-1),qe})},mt=function(We){var ze=xO(Ze),qe=ee(ze,3),vt=qe[0],ct=qe[1],Ke=qe[2],Ae=Y.slice(de,ae),it=Number(Ae);if(isNaN(it))return String(Ke||(We>0?vt:ct));var Fe=it+We,ye=ct-vt+1;return String(vt+(ye+Fe-vt)%ye)};switch(me){case"Backspace":case"Delete":Te="",se=Ze;break;case"ArrowLeft":Te="",lt(-1);break;case"ArrowRight":Te="",lt(1);break;case"ArrowUp":Te="",se=mt(1);break;case"ArrowDown":Te="",se=mt(-1);break;default:isNaN(Number(me))||(Te=H+me,se=Te);break}if(Te!==null&&(_(Te),Te.length>=we&&(lt(1),_(""))),se!==null){var _e=Y.slice(0,de)+b0(se,we)+Y.slice(ae);Oe(_e.slice(0,i.length))}X({})},Ie=d.useRef();Nt(function(){if(!(!D||!i||Se.current)){if(!re.match(Y)){Oe(i);return}return J.current.setSelectionRange(de,ae),Ie.current=Ct(function(){J.current.setSelectionRange(de,ae)}),function(){Ct.cancel(Ie.current)}}},[re,i,D,Y,G,de,ae,F,Oe]);var he=i?{onFocus:Pe,onBlur:pe,onKeyDown:Re,onMouseDown:le,onMouseUp:Me,onPaste:$e}:{};return d.createElement("div",{ref:U,className:ue(E,K(K({},"".concat(E,"-active"),n&&a),"".concat(E,"-placeholder"),u))},d.createElement(R,je({ref:J,"aria-invalid":b,autoComplete:"off"},y,{onKeyDown:be,onBlur:ie},he,{value:Y,onChange:xe})),d.createElement(Us,{type:"suffix",icon:o}),v)}),$O=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],EO=["index"];function OO(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,i=e.separator,l=i===void 0?"~":i,s=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var c=e.placeholder,f=e.className,g=e.style,h=e.onClick,p=e.onClear,b=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var m=e.direction;e.onOpenChange;var C=e.onActiveInfo;e.placement;var S=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,w=e.tabIndex,$=wt(e,$O),O=m==="rtl",R=d.useContext(Or),E=R.prefixCls,N=d.useMemo(function(){if(typeof n=="string")return[n];var F=n||{};return[F.start,F.end]},[n]),L=d.useRef(),D=d.useRef(),P=d.useRef(),M=function(X){var Y;return(Y=[D,P][X])===null||Y===void 0?void 0:Y.current};d.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(X){if(nt(X)==="object"){var Y,U=X||{},J=U.index,re=J===void 0?0:J,ne=wt(U,EO);(Y=M(re))===null||Y===void 0||Y.focus(ne)}else{var te;(te=M(X??0))===null||te===void 0||te.focus()}},blur:function(){var X,Y;(X=M(0))===null||X===void 0||X.blur(),(Y=M(1))===null||Y===void 0||Y.blur()}}});var I=S1($),A=d.useMemo(function(){return Array.isArray(c)?c:[c,c]},[c]),T=C1(Z(Z({},e),{},{id:N,placeholder:A})),j=ee(T,1),B=j[0],H=d.useState({position:"absolute",width:0}),_=ee(H,2),W=_[0],q=_[1],G=Mt(function(){var F=M(s);if(F){var X=F.nativeElement.getBoundingClientRect(),Y=L.current.getBoundingClientRect(),U=X.left-Y.left;q(function(J){return Z(Z({},J),{},{width:X.width,left:U})}),C([X.left,X.right,Y.width])}});d.useEffect(function(){G()},[s]);var k=a&&(b[0]&&!v[0]||b[1]&&!v[1]),z=x&&!v[0],V=x&&!z&&!v[1];return d.createElement(Lr,{onResize:G},d.createElement("div",je({},I,{className:ue(E,"".concat(E,"-range"),K(K(K(K({},"".concat(E,"-focused"),u),"".concat(E,"-disabled"),v.every(function(F){return F})),"".concat(E,"-invalid"),y.some(function(F){return F})),"".concat(E,"-rtl"),O),f),style:g,ref:L,onClick:h,onMouseDown:function(X){var Y=X.target;Y!==D.current.inputElement&&Y!==P.current.inputElement&&X.preventDefault(),S==null||S(X)}}),r&&d.createElement("div",{className:"".concat(E,"-prefix")},r),d.createElement(cd,je({ref:D},B(0),{autoFocus:z,tabIndex:w,"date-range":"start"})),d.createElement("div",{className:"".concat(E,"-range-separator")},l),d.createElement(cd,je({ref:P},B(1),{autoFocus:V,tabIndex:w,"date-range":"end"})),d.createElement("div",{className:"".concat(E,"-active-bar"),style:W}),d.createElement(Us,{type:"suffix",icon:o}),k&&d.createElement(sd,{icon:a,onClear:p})))}var IO=d.forwardRef(OO);function Ov(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function el(e){return e===1?"end":"start"}function MO(e,t){var n=o1(e,function(){var yt=e.disabled,at=e.allowEmpty,pt=Ov(yt,!1),Xt=Ov(at,!1);return{disabled:pt,allowEmpty:Xt}}),r=ee(n,6),a=r[0],o=r[1],i=r[2],l=r[3],s=r[4],u=r[5],c=a.prefixCls,f=a.styles,g=a.classNames,h=a.defaultValue,p=a.value,b=a.needConfirm,v=a.onKeyDown,y=a.disabled,m=a.allowEmpty,C=a.disabledDate,S=a.minDate,x=a.maxDate,w=a.defaultOpen,$=a.open,O=a.onOpenChange,R=a.locale,E=a.generateConfig,N=a.picker,L=a.showNow,D=a.showToday,P=a.showTime,M=a.mode,I=a.onPanelChange,A=a.onCalendarChange,T=a.onOk,j=a.defaultPickerValue,B=a.pickerValue,H=a.onPickerValueChange,_=a.inputReadOnly,W=a.suffixIcon,q=a.onFocus,G=a.onBlur,k=a.presets,z=a.ranges,V=a.components,F=a.cellRender,X=a.dateRender,Y=a.monthCellRender,U=a.onClick,J=l1(t),re=i1($,w,y,O),ne=ee(re,2),te=ne[0],de=ne[1],ae=function(at,pt){(y.some(function(Xt){return!Xt})||!at)&&de(at,pt)},ge=v1(E,R,l,!0,!1,h,p,A,T),Oe=ee(ge,5),xe=Oe[0],$e=Oe[1],Se=Oe[2],le=Oe[3],Me=Oe[4],Pe=Se(),ie=c1(y,m,te),pe=ee(ie,9),be=pe[0],Re=pe[1],Ie=pe[2],he=pe[3],Ee=pe[4],oe=pe[5],me=pe[6],Te=pe[7],se=pe[8],we=function(at,pt){Re(!0),q==null||q(at,{range:el(pt??he)})},Ze=function(at,pt){Re(!1),G==null||G(at,{range:el(pt??he)})},lt=d.useMemo(function(){if(!P)return null;var yt=P.disabledTime,at=yt?function(pt){var Xt=el(he),Vt=Gp(Pe,me,he);return yt(pt,Xt,{from:Vt})}:void 0;return Z(Z({},P),{},{disabledTime:at})},[P,he,Pe,me]),mt=ln([N,N],{value:M}),_e=ee(mt,2),ke=_e[0],We=_e[1],ze=ke[he]||N,qe=ze==="date"&&lt?"datetime":ze,vt=qe===N&&qe!=="time",ct=h1(N,ze,L,D,!0),Ke=g1(a,xe,$e,Se,le,y,l,be,te,u),Ae=ee(Ke,2),it=Ae[0],Fe=Ae[1],ye=QE(Pe,y,me,E,R,C),Ce=Xp(Pe,u,m),De=ee(Ce,2),Qe=De[0],Ue=De[1],ht=u1(E,R,Pe,ke,te,he,o,vt,j,B,lt==null?void 0:lt.defaultOpenValue,H,S,x),$t=ee(ht,2),ut=$t[0],Et=$t[1],_t=Mt(function(yt,at,pt){var Xt=ei(ke,he,at);if((Xt[0]!==ke[0]||Xt[1]!==ke[1])&&We(Xt),I&&pt!==!1){var Vt=Ne(Pe);yt&&(Vt[he]=yt),I(Vt,Xt)}}),kt=function(at,pt){return ei(Pe,pt,at)},Rt=function(at,pt){var Xt=Pe;at&&(Xt=kt(at,he)),Te(he);var Vt=oe(Xt);le(Xt),it(he,Vt===null),Vt===null?ae(!1,{force:!0}):pt||J.current.focus({index:Vt})},Ht=function(at){var pt,Xt=at.target.getRootNode();if(!J.current.nativeElement.contains((pt=Xt.activeElement)!==null&&pt!==void 0?pt:document.activeElement)){var Vt=y.findIndex(function(Wr){return!Wr});Vt>=0&&J.current.focus({index:Vt})}ae(!0),U==null||U(at)},Lt=function(){Fe(null),ae(!1,{force:!0})},Qt=d.useState(null),He=ee(Qt,2),Ve=He[0],Be=He[1],Le=d.useState(null),tt=ee(Le,2),St=tt[0],Pt=tt[1],en=d.useMemo(function(){return St||Pe},[Pe,St]);d.useEffect(function(){te||Pt(null)},[te]);var an=d.useState([0,0,0]),Ut=ee(an,2),Kt=Ut[0],pn=Ut[1],dn=s1(k,z),bn=function(at){Pt(at),Be("preset")},Pn=function(at){var pt=Fe(at);pt&&ae(!1,{force:!0})},yn=function(at){Rt(at)},Wn=function(at){Pt(at?kt(at,he):null),Be("cell")},qn=function(at){ae(!0),we(at)},Un=function(){Ie("panel")},lr=function(at){var pt=ei(Pe,he,at);le(pt),!b&&!i&&o===qe&&Rt(at)},pr=function(){ae(!1)},bt=y0(F,X,Y,el(he)),dt=Pe[he]||null,rn=Mt(function(yt){return u(yt,{activeIndex:he})}),rt=d.useMemo(function(){var yt=Fr(a,!1),at=Er(a,[].concat(Ne(Object.keys(yt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return at},[a]),Ye=d.createElement(y1,je({},rt,{showNow:ct,showTime:lt,range:!0,multiplePanel:vt,activeInfo:Kt,disabledDate:ye,onFocus:qn,onBlur:Ze,onPanelMouseDown:Un,picker:N,mode:ze,internalMode:qe,onPanelChange:_t,format:s,value:dt,isInvalid:rn,onChange:null,onSelect:lr,pickerValue:ut,defaultOpenValue:_a(P==null?void 0:P.defaultOpenValue)[he],onPickerValueChange:Et,hoverValue:en,onHover:Wn,needConfirm:b,onSubmit:Rt,onOk:Me,presets:dn,onPresetHover:bn,onPresetSubmit:Pn,onNow:yn,cellRender:bt})),At=function(at,pt){var Xt=kt(at,pt);le(Xt)},tn=function(){Ie("input")},wn=function(at,pt){var Xt=me.length,Vt=me[Xt-1];if(Xt&&Vt!==pt&&b&&!m[Vt]&&!se(Vt)&&Pe[Vt]){J.current.focus({index:Vt});return}Ie("input"),ae(!0,{inherit:!0}),he!==pt&&te&&!b&&i&&Rt(null,!0),Ee(pt),we(at,pt)},Yn=function(at,pt){if(ae(!1),!b&&Ie()==="input"){var Xt=oe(Pe);it(he,Xt===null)}Ze(at,pt)},sr=function(at,pt){at.key==="Tab"&&Rt(null,!0),v==null||v(at,pt)},Qn=d.useMemo(function(){return{prefixCls:c,locale:R,generateConfig:E,button:V.button,input:V.input}},[c,R,E,V.button,V.input]);return Nt(function(){te&&he!==void 0&&_t(null,N,!1)},[te,he,N]),Nt(function(){var yt=Ie();!te&&yt==="input"&&(ae(!1),Rt(null,!0)),!te&&i&&!b&&yt==="panel"&&(ae(!0),Rt())},[te]),d.createElement(Or.Provider,{value:Qn},d.createElement(Up,je({},Kp(a),{popupElement:Ye,popupStyle:f.popup,popupClassName:g.popup,visible:te,onClose:pr,range:!0}),d.createElement(IO,je({},a,{ref:J,suffixIcon:W,activeIndex:be||te?he:null,activeHelp:!!St,allHelp:!!St&&Ve==="preset",focused:be,onFocus:wn,onBlur:Yn,onKeyDown:sr,onSubmit:Rt,value:en,maskFormat:s,onChange:At,onInputChange:tn,format:l,inputReadOnly:_,disabled:y,open:te,onOpenChange:ae,onClick:Ht,onClear:Lt,invalid:Qe,onInvalid:Ue,onActiveInfo:pn}))))}var RO=d.forwardRef(MO);function PO(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"\xD7":a,i=e.formatDate,l=e.disabled,s=e.maxTagCount,u=e.placeholder,c="".concat(t,"-selector"),f="".concat(t,"-selection"),g="".concat(f,"-overflow");function h(v,y){return d.createElement("span",{className:ue("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!l&&y&&d.createElement("span",{onMouseDown:function(C){C.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},o))}function p(v){var y=i(v),m=function(S){S&&S.stopPropagation(),r(v)};return h(y,m)}function b(v){var y="+ ".concat(v.length," ...");return h(y)}return d.createElement("div",{className:c},d.createElement(Ro,{prefixCls:g,data:n,renderItem:p,renderRest:b,itemKey:function(y){return i(y)},maxCount:s}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var NO=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function TO(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,s=e.generateConfig,u=e.placeholder,c=e.className,f=e.style,g=e.onClick,h=e.onClear,p=e.internalPicker,b=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var m=e.multiple,C=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,x=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var $=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,R=e.tabIndex,E=e.removeIcon,N=wt(e,NO),L=w==="rtl",D=d.useContext(Or),P=D.prefixCls,M=d.useRef(),I=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(z){var V;(V=I.current)===null||V===void 0||V.focus(z)},blur:function(){var z;(z=I.current)===null||z===void 0||z.blur()}}});var A=S1(N),T=function(z){v([z])},j=function(z){var V=b.filter(function(F){return F&&!_n(s,l,F,z,p)});v(V),n||y()},B=C1(Z(Z({},e),{},{onChange:T}),function(k){var z=k.valueTexts;return{value:z[0]||"",active:i}}),H=ee(B,2),_=H[0],W=H[1],q=!!(a&&b.length&&!S),G=m?d.createElement(d.Fragment,null,d.createElement(PO,{prefixCls:P,value:b,onRemove:j,formatDate:W,maxTagCount:C,disabled:S,removeIcon:E,placeholder:u}),d.createElement("input",{className:"".concat(P,"-multiple-input"),value:b.map(W).join(","),ref:I,readOnly:!0,autoFocus:O,tabIndex:R}),d.createElement(Us,{type:"suffix",icon:o}),q&&d.createElement(sd,{icon:a,onClear:h})):d.createElement(cd,je({ref:I},_(),{autoFocus:O,tabIndex:R,suffixIcon:o,clearIcon:q&&d.createElement(sd,{icon:a,onClear:h}),showActiveCls:!1}));return d.createElement("div",je({},A,{className:ue(P,K(K(K(K(K({},"".concat(P,"-multiple"),m),"".concat(P,"-focused"),i),"".concat(P,"-disabled"),S),"".concat(P,"-invalid"),x),"".concat(P,"-rtl"),L),c),style:f,ref:M,onClick:g,onMouseDown:function(z){var V,F=z.target;F!==((V=I.current)===null||V===void 0?void 0:V.inputElement)&&z.preventDefault(),$==null||$(z)}}),r&&d.createElement("div",{className:"".concat(P,"-prefix")},r),G)}var AO=d.forwardRef(TO);function FO(e,t){var n=o1(e),r=ee(n,6),a=r[0],o=r[1],i=r[2],l=r[3],s=r[4],u=r[5],c=a,f=c.prefixCls,g=c.styles,h=c.classNames,p=c.order,b=c.defaultValue,v=c.value,y=c.needConfirm,m=c.onChange,C=c.onKeyDown,S=c.disabled,x=c.disabledDate,w=c.minDate,$=c.maxDate,O=c.defaultOpen,R=c.open,E=c.onOpenChange,N=c.locale,L=c.generateConfig,D=c.picker,P=c.showNow,M=c.showToday,I=c.showTime,A=c.mode,T=c.onPanelChange,j=c.onCalendarChange,B=c.onOk,H=c.multiple,_=c.defaultPickerValue,W=c.pickerValue,q=c.onPickerValueChange,G=c.inputReadOnly,k=c.suffixIcon,z=c.removeIcon,V=c.onFocus,F=c.onBlur,X=c.presets,Y=c.components,U=c.cellRender,J=c.dateRender,re=c.monthCellRender,ne=c.onClick,te=l1(t);function de(rt){return rt===null?null:H?rt:rt[0]}var ae=p1(L,N,o),ge=i1(R,O,[S],E),Oe=ee(ge,2),xe=Oe[0],$e=Oe[1],Se=function(Ye,At,tn){if(j){var wn=Z({},tn);delete wn.range,j(de(Ye),de(At),wn)}},le=function(Ye){B==null||B(de(Ye))},Me=v1(L,N,l,!1,p,b,v,Se,le),Pe=ee(Me,5),ie=Pe[0],pe=Pe[1],be=Pe[2],Re=Pe[3],Ie=Pe[4],he=be(),Ee=c1([S]),oe=ee(Ee,4),me=oe[0],Te=oe[1],se=oe[2],we=oe[3],Ze=function(Ye){Te(!0),V==null||V(Ye,{})},lt=function(Ye){Te(!1),F==null||F(Ye,{})},mt=ln(D,{value:A}),_e=ee(mt,2),ke=_e[0],We=_e[1],ze=ke==="date"&&I?"datetime":ke,qe=h1(D,ke,P,M),vt=m&&function(rt,Ye){m(de(rt),de(Ye))},ct=g1(Z(Z({},a),{},{onChange:vt}),ie,pe,be,Re,[],l,me,xe,u),Ke=ee(ct,2),Ae=Ke[1],it=Xp(he,u),Fe=ee(it,2),ye=Fe[0],Ce=Fe[1],De=d.useMemo(function(){return ye.some(function(rt){return rt})},[ye]),Qe=function(Ye,At){if(q){var tn=Z(Z({},At),{},{mode:At.mode[0]});delete tn.range,q(Ye[0],tn)}},Ue=u1(L,N,he,[ke],xe,we,o,!1,_,W,_a(I==null?void 0:I.defaultOpenValue),Qe,w,$),ht=ee(Ue,2),$t=ht[0],ut=ht[1],Et=Mt(function(rt,Ye,At){if(We(Ye),T&&At!==!1){var tn=rt||he[he.length-1];T(tn,Ye)}}),_t=function(){Ae(be()),$e(!1,{force:!0})},kt=function(Ye){!S&&!te.current.nativeElement.contains(document.activeElement)&&te.current.focus(),$e(!0),ne==null||ne(Ye)},Rt=function(){Ae(null),$e(!1,{force:!0})},Ht=d.useState(null),Lt=ee(Ht,2),Qt=Lt[0],He=Lt[1],Ve=d.useState(null),Be=ee(Ve,2),Le=Be[0],tt=Be[1],St=d.useMemo(function(){var rt=[Le].concat(Ne(he)).filter(function(Ye){return Ye});return H?rt:rt.slice(0,1)},[he,Le,H]),Pt=d.useMemo(function(){return!H&&Le?[Le]:he.filter(function(rt){return rt})},[he,Le,H]);d.useEffect(function(){xe||tt(null)},[xe]);var en=s1(X),an=function(Ye){tt(Ye),He("preset")},Ut=function(Ye){var At=H?ae(be(),Ye):[Ye],tn=Ae(At);tn&&!H&&$e(!1,{force:!0})},Kt=function(Ye){Ut(Ye)},pn=function(Ye){tt(Ye),He("cell")},dn=function(Ye){$e(!0),Ze(Ye)},bn=function(Ye){if(se("panel"),!(H&&ze!==D)){var At=H?ae(be(),Ye):[Ye];Re(At),!y&&!i&&o===ze&&_t()}},Pn=function(){$e(!1)},yn=y0(U,J,re),Wn=d.useMemo(function(){var rt=Fr(a,!1),Ye=Er(a,[].concat(Ne(Object.keys(rt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Z(Z({},Ye),{},{multiple:a.multiple})},[a]),qn=d.createElement(y1,je({},Wn,{showNow:qe,showTime:I,disabledDate:x,onFocus:dn,onBlur:lt,picker:D,mode:ke,internalMode:ze,onPanelChange:Et,format:s,value:he,isInvalid:u,onChange:null,onSelect:bn,pickerValue:$t,defaultOpenValue:I==null?void 0:I.defaultOpenValue,onPickerValueChange:ut,hoverValue:St,onHover:pn,needConfirm:y,onSubmit:_t,onOk:Ie,presets:en,onPresetHover:an,onPresetSubmit:Ut,onNow:Kt,cellRender:yn})),Un=function(Ye){Re(Ye)},lr=function(){se("input")},pr=function(Ye){se("input"),$e(!0,{inherit:!0}),Ze(Ye)},bt=function(Ye){$e(!1),lt(Ye)},dt=function(Ye,At){Ye.key==="Tab"&&_t(),C==null||C(Ye,At)},rn=d.useMemo(function(){return{prefixCls:f,locale:N,generateConfig:L,button:Y.button,input:Y.input}},[f,N,L,Y.button,Y.input]);return Nt(function(){xe&&we!==void 0&&Et(null,D,!1)},[xe,we,D]),Nt(function(){var rt=se();!xe&&rt==="input"&&($e(!1),_t()),!xe&&i&&!y&&rt==="panel"&&_t()},[xe]),d.createElement(Or.Provider,{value:rn},d.createElement(Up,je({},Kp(a),{popupElement:qn,popupStyle:g.popup,popupClassName:h.popup,visible:xe,onClose:Pn}),d.createElement(AO,je({},a,{ref:te,suffixIcon:k,removeIcon:z,activeHelp:!!Le,allHelp:!!Le&&Qt==="preset",focused:me,onFocus:pr,onBlur:bt,onKeyDown:dt,onSubmit:_t,value:Pt,maskFormat:s,onChange:Un,onInputChange:lr,internalPicker:o,format:l,inputReadOnly:G,disabled:S,open:xe,onOpenChange:$e,onClick:kt,onClear:Rt,invalid:De,onInvalid:function(Ye){Ce(Ye,0)}}))))}var DO=d.forwardRef(FO);const x1=d.createContext(null),LO=x1.Provider,w1=d.createContext(null),kO=w1.Provider;var _O=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$1=Vn(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,l=e.disabled,s=e.defaultChecked,u=s===void 0?!1:s,c=e.type,f=c===void 0?"checkbox":c,g=e.title,h=e.onChange,p=wt(e,_O),b=Xe(null),v=Xe(null),y=ln(u,{value:i}),m=ee(y,2),C=m[0],S=m[1];So(t,function(){return{focus:function(O){var R;(R=b.current)===null||R===void 0||R.focus(O)},blur:function(){var O;(O=b.current)===null||O===void 0||O.blur()},input:b.current,nativeElement:v.current}});var x=ue(r,a,K(K({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),l)),w=function(O){l||("checked"in e||S(O.target.checked),h==null||h({target:Z(Z({},e),{},{type:f,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return d.createElement("span",{className:x,title:g,style:o,ref:v},d.createElement("input",je({},p,{className:"".concat(r,"-input"),ref:b,onChange:w,disabled:l,checked:!!C,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function E1(e){const t=ce.useRef(null),n=()=>{Ct.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ct(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const HO=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},sn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},jO=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:u,lineWidth:c,colorBgContainerDisabled:f,colorTextDisabled:g,paddingXS:h,dotColorDisabled:p,lineType:b,radioColor:v,radioBgColor:y,calc:m}=e,C=`${t}-inner`,x=m(a).sub(m(4).mul(2)),w=m(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},sn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ve(c)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},sn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
364
+ &:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Os(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:m(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:m(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:s,borderColor:u,borderStyle:"solid",borderWidth:c,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${m(x).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},zO=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationMid:l,buttonPaddingInline:s,fontSize:u,buttonBg:c,fontSizeLG:f,controlHeightLG:g,controlHeightSM:h,paddingXS:p,borderRadius:b,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:m,buttonSolidCheckedColor:C,colorTextDisabled:S,colorBgContainerDisabled:x,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:$,colorPrimary:O,colorPrimaryHover:R,colorPrimaryActive:E,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:D,calc:P}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:ve(P(n).sub(P(a).mul(2)).equal()),background:c,border:`${ve(a)} ${o} ${i}`,borderBlockStartWidth:P(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:P(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${ve(a)} ${o} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:g,fontSize:f,lineHeight:ve(P(g).sub(P(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:P(p).sub(a).equal(),paddingBlock:0,lineHeight:ve(P(h).sub(P(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Os(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:m,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:N,borderColor:N,"&:hover":{color:C,background:L,borderColor:L},"&:active":{color:C,background:D,borderColor:D}},"&-disabled":{color:S,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:w,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},BO=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:u,colorTextLightSolid:c,colorPrimary:f,colorPrimaryHover:g,colorPrimaryActive:h,colorWhite:p}=e,b=4,v=o,y=t?v-b*2:v-(b+a)*2;return{radioSize:v,dotSize:y,dotColorDisabled:s,buttonSolidCheckedColor:c,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:h,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:s,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?l:f}},O1=Rn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ve(n)} ${t}`,o=Bt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[HO(o),jO(o),zO(o)]},BO,{unitless:{radioSize:!0,dotSize:!0}});var VO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const WO=(e,t)=>{var n,r;const a=d.useContext(x1),o=d.useContext(w1),{getPrefixCls:i,direction:l,radio:s}=d.useContext(Tt),u=d.useRef(null),c=ar(t,u),{isFormItemInput:f}=d.useContext(Mn),g=I=>{var A,T;(A=e.onChange)===null||A===void 0||A.call(e,I),(T=a==null?void 0:a.onChange)===null||T===void 0||T.call(a,I)},{prefixCls:h,className:p,rootClassName:b,children:v,style:y,title:m}=e,C=VO(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",h),x=((a==null?void 0:a.optionType)||o)==="button",w=x?`${S}-button`:S,$=or(S),[O,R,E]=O1(S,$),N=Object.assign({},C),L=d.useContext(jn);a&&(N.name=a.name,N.onChange=g,N.checked=e.value===a.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:a.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:L;const D=ue(`${w}-wrapper`,{[`${w}-wrapper-checked`]:N.checked,[`${w}-wrapper-disabled`]:N.disabled,[`${w}-wrapper-rtl`]:l==="rtl",[`${w}-wrapper-in-form-item`]:f,[`${w}-wrapper-block`]:!!(a!=null&&a.block)},s==null?void 0:s.className,p,b,R,E,$),[P,M]=E1(N.onClick);return O(d.createElement(Mi,{component:"Radio",disabled:N.disabled},d.createElement("label",{className:D,style:Object.assign(Object.assign({},s==null?void 0:s.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:m,onClick:P},d.createElement($1,Object.assign({},N,{className:ue(N.className,{[Ts]:!x}),type:"radio",prefixCls:w,ref:c,onClick:M})),v!==void 0?d.createElement("span",{className:`${w}-label`},v):null)))},Jl=d.forwardRef(WO),qO=["parentNode"],UO="form_item";function ti(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function I1(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:qO.includes(n)?`${UO}_${n}`:n}function M1(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}var YO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ud(e){return ti(e).join("_")}function Iv(e,t){const n=t.getFieldInstance(e),r=Mg(n);if(r)return r;const a=I1(ti(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function R1(e){const[t]=u0(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=ud(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:(a,o={})=>{const{focus:i}=o,l=YO(o,["focus"]),s=Iv(a,r);s&&(v4(s,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),i&&r.focusField(a))},focusField:a=>{var o,i;const l=r.getFieldInstance(a);typeof(l==null?void 0:l.focus)=="function"?l.focus():(i=(o=Iv(a,r))===null||o===void 0?void 0:o.focus)===null||i===void 0||i.call(o)},getFieldInstance:a=>{const o=ud(a);return n.current[o]}}),[e,t]);return[r]}const GO=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Tt),{name:a}=d.useContext(Mn),o=l0(ud(a)),{prefixCls:i,className:l,rootClassName:s,options:u,buttonStyle:c="outline",disabled:f,children:g,size:h,style:p,id:b,optionType:v,name:y=o,defaultValue:m,value:C,block:S=!1,onChange:x,onMouseEnter:w,onMouseLeave:$,onFocus:O,onBlur:R}=e,[E,N]=ln(m,{value:C}),L=d.useCallback(W=>{const q=E,G=W.target.value;"value"in e||N(G),G!==q&&(x==null||x(W))},[E,N,x]),D=n("radio",i),P=`${D}-group`,M=or(D),[I,A,T]=O1(D,M);let j=g;u&&u.length>0&&(j=u.map(W=>typeof W=="string"||typeof W=="number"?d.createElement(Jl,{key:W.toString(),prefixCls:D,disabled:f,value:W,checked:E===W},W):d.createElement(Jl,{key:`radio-group-value-options-${W.value}`,prefixCls:D,disabled:W.disabled||f,value:W.value,checked:E===W.value,title:W.title,style:W.style,className:W.className,id:W.id,required:W.required},W.label)));const B=ir(h),H=ue(P,`${P}-${c}`,{[`${P}-${B}`]:B,[`${P}-rtl`]:r==="rtl",[`${P}-block`]:S},l,s,A,T,M),_=d.useMemo(()=>({onChange:L,value:E,disabled:f,name:y,optionType:v,block:S}),[L,E,f,y,v,S]);return I(d.createElement("div",Object.assign({},Fr(e,{aria:!0,data:!0}),{className:H,style:p,onMouseEnter:w,onMouseLeave:$,onFocus:O,onBlur:R,id:b,ref:t}),d.createElement(LO,{value:_},j)))}),KO=d.memo(GO);var XO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZO=(e,t)=>{const{getPrefixCls:n}=d.useContext(Tt),{prefixCls:r}=e,a=XO(e,["prefixCls"]),o=n("radio",r);return d.createElement(kO,{value:"button"},d.createElement(Jl,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},QO=d.forwardRef(ZO),pi=Jl;pi.Button=QO;pi.Group=KO;pi.__ANT_RADIO=!0;function Ao(e){return Bt(e,{inputAffixPadding:e.paddingXXS})}const Fo=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:c,controlPaddingHorizontal:f,colorFillAlter:g,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:b,controlOutline:v,colorErrorOutline:y,colorWarningOutline:m,colorBgContainer:C,inputFontSize:S,inputFontSizeLG:x,inputFontSizeSM:w}=e,$=S||n,O=w||$,R=x||l,E=Math.round((t-$*r)/2*10)/10-a,N=Math.round((o-O*r)/2*10)/10-a,L=Math.ceil((i-R*s)/2*10)/10-a;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(L,0),paddingInline:u-a,paddingInlineSM:c-a,paddingInlineLG:f-a,addonBg:g,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${b}px ${v}`,errorActiveShadow:`0 0 0 ${b}px ${y}`,warningActiveShadow:`0 0 0 ${b}px ${m}`,hoverBg:C,activeBg:C,inputFontSize:$,inputFontSizeLG:R,inputFontSizeSM:O}},JO=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),$0=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({},JO(Bt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),P1=(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}}),Mv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},P1(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),E0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},$0(e))}),Mv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Mv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Rv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),N1=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Rv(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Rv(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},$0(e))}})}),O0=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},T1=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Pv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},T1(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),I0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},T1(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},$0(e))}),Pv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Pv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Nv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),A1=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Nv(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Nv(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:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),F1=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ve(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.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Tv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},F1(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`}}),M0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},F1(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"}}),Tv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Tv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),R0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),D1=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${ve(t)} ${ve(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},L1=e=>({padding:`${ve(e.paddingBlockSM)} ${ve(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ys=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ve(e.paddingBlock)} ${ve(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},R0(e.colorTextPlaceholder)),{"&-lg":Object.assign({},D1(e)),"&-sm":Object.assign({},L1(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),k1=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},D1(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},L1(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ve(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ve(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ve(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ve(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ve(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},n8()),{[`${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},[`
365
+ & > ${t}-affix-wrapper,
366
+ & > ${t}-number-affix-wrapper,
367
+ & > ${n}-picker-range
368
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
369
+ & > ${n}-select-auto-complete ${t},
370
+ & > ${n}-cascader-picker ${t},
371
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
372
+ & > ${n}-select:first-child > ${n}-select-selector,
373
+ & > ${n}-select-auto-complete:first-child ${t},
374
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
375
+ & > ${n}-select:last-child > ${n}-select-selector,
376
+ & > ${n}-cascader-picker:last-child ${t},
377
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},eI=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sn(e)),Ys(e)),E0(e)),I0(e)),O0(e)),M0(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},tI=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ve(e.inputAffixPadding)}`}}}},nI=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:l}=e,s=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Ys(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),tI(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},rI=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},sn(e)),k1(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},N1(e)),A1(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}}})})}},aI=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
378
+ > ${t},
379
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},oI=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_1=Rn(["Input","Shared"],e=>{const t=Bt(e,Ao(e));return[eI(t),nI(t)]},Fo,{resetFont:!1}),H1=Rn(["Input","Component"],e=>{const t=Bt(e,Ao(e));return[rI(t),aI(t),oI(t),Ri(t)]},Fo,{resetFont:!1}),Hc=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=Rp(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:ve(o.itemLineHeight)}}}]},iI=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=Bt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Bt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Hc(a,"small"),Hc(e),Hc(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},Pp(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},lI=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:l,lineType:s,colorPrimary:u,cellActiveWithRangeBg:c,colorTextLightSolid:f,colorTextDisabled:g,cellBgDisabled:h,colorFillSecondary:p}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ve(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
380
+ &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ve(l)} ${s} ${u}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
381
+ &-in-view${t}-range-start,
382
+ &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:c}},[`&-in-view${t}-selected,
383
+ &-in-view${t}-range-start,
384
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:p}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:g,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:g}}},sI=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:l,paddingXS:s,paddingXXS:u,colorBgContainer:c,lineWidth:f,lineType:g,borderRadiusLG:h,colorPrimary:p,colorTextHeading:b,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:m,textHeight:C,motionDurationMid:S,colorIconHover:x,fontWeightStrong:w,cellHeight:$,pickerCellPaddingVertical:O,colorTextDisabled:R,colorText:E,fontSize:N,motionDurationSlow:L,withoutTimeCellHeight:D,pickerQuarterPanelContentHeight:P,borderRadiusSM:M,colorTextLightSolid:I,cellHoverBg:A,timeColumnHeight:T,timeColumnWidth:j,timeCellHeight:B,controlItemBgActive:H,marginXXS:_,pickerDatePanelPaddingHorizontal:W,pickerControlIconMargin:q}=e,G=e.calc(i).mul(7).add(e.calc(W).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,borderRadius:h,outline:"none","&-focused":{borderColor:p},"&-rtl":{[`${t}-prev-icon,
385
+ ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
386
+ ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:G},"&-header":{display:"flex",padding:`0 ${ve(s)}`,color:b,borderBottom:`${ve(f)} ${g} ${v}`,"> *":{flex:"none"},button:{padding:0,color:m,lineHeight:ve(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:ve(C),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:p}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:q,insetInlineStart:q,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:$,fontWeight:"normal"},th:{height:e.calc($).add(e.calc(O).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ve(O)} 0`,color:R,cursor:"pointer","&-in-view":{color:E}},lI(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(D).mul(4).equal()},[r]:{padding:`0 ${ve(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:P}},"&-decade-panel":{[r]:{padding:`0 ${ve(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ve(s)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${ve(s)} ${ve(W)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:M,borderEndStartRadius:M},"&:last-child:before":{borderStartEndRadius:M,borderEndEndRadius:M}},"&:hover td:before":{background:A},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:p},[`&${t}-cell-week`]:{color:new Dt(I).setA(.5).toHexString()},[r]:{color:I}}},"&-range-hover td:before":{background:H}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ve(s)} ${ve(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ve(f)} ${g} ${v}`},[`${t}-date-panel,
387
+ ${t}-time-panel`]:{transition:`opacity ${L}`},"&-active":{[`${t}-date-panel,
388
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:T},"&-column":{flex:"1 0 auto",width:j,margin:`${ve(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ve(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ve(f)} ${g} ${v}`},"&-active":{background:new Dt(H).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:_,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(j).sub(e.calc(_).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(j).sub(B).div(2).equal(),color:E,lineHeight:ve(B),borderRadius:M,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:A}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},cI=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:u,colorSplit:c}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ve(r)} ${u} ${c}`,"&-extra":{padding:`0 ${ve(a)}`,lineHeight:ve(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ve(r)} ${u} ${c}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ve(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ve(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},uI=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},dI=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,l=o*2,s=i*2,u=Math.min(n-l,n-s),c=Math.min(r-l,r-s),f=Math.min(a-l,a-s);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Dt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Dt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:c,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},fI=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Fo(e)),dI(e)),Hp(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),mI=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},E0(e)),M0(e)),I0(e)),O0(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ve(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},jc=(e,t)=>({padding:`${ve(e)} ${ve(t)}`}),vI=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},gI=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:l,borderRadius:s,motionDurationMid:u,colorTextDisabled:c,colorTextPlaceholder:f,colorTextQuaternary:g,fontSizeLG:h,inputFontSizeLG:p,fontSizeSM:b,inputFontSizeSM:v,controlHeightSM:y,paddingInlineSM:m,paddingXS:C,marginXS:S,colorIcon:x,lineWidthBold:w,colorPrimary:$,motionDurationSlow:O,zIndexPopup:R,paddingXXS:E,sizePopupArrow:N,colorBgElevated:L,borderRadiusLG:D,boxShadowSecondary:P,borderRadiusSM:M,colorSplit:I,cellHoverBg:A,presetsWidth:T,presetsMaxWidth:j,boxShadowPopoverArrow:B,fontHeight:H,lineHeightLG:_}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},sn(e)),jc(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},R0(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:c,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},jc(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:p??h,lineHeight:_}}),"&-small":Object.assign(Object.assign({},jc(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:v??b}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(C).div(2).equal(),color:g,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:g,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:x}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:g,fontSize:h,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:x},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:w,background:$,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${ve(C)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},sn(e)),sI(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:R,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
389
+ &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
390
+ &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
391
+ &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
392
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
393
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:r0},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
394
+ &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
395
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
396
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:t0},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
397
+ &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:a0},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
398
+ &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:n0},[`${n}-panel > ${n}-time-panel`]:{paddingTop:E},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${O} ease-out`},jp(e,L,B)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:D,boxShadow:P,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:T,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${ve(o)} ${i} ${I}`,li:Object.assign(Object.assign({},Wl),{borderRadius:M,paddingInline:C,paddingBlock:e.calc(y).sub(H).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:S},"&:hover":{background:A}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${ve(e.calc(N).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Xl(e,"slide-up"),Xl(e,"slide-down"),Kl(e,"move-up"),Kl(e,"move-down")]},j1=Rn("DatePicker",e=>{const t=Bt(Ao(e),uI(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[cI(t),gI(t),mI(t),vI(t),iI(t),Ri(e,{focusElCls:`${e.componentCls}-focused`})]},fI),hI=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},sn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},sn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},sn(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`]:Os(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ve(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:`${ve(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}})},{[`
399
+ ${n}:not(${n}-disabled),
400
+ ${t}:not(${t}-disabled)
401
+ `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-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}`}}},[`
402
+ ${n}-checked:not(${n}-disabled),
403
+ ${t}-checked:not(${t}-disabled)
404
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-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 pI(e,t){const n=Bt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return hI(n)}const z1=Rn("Checkbox",(e,{prefixCls:t})=>[pI(t,e)]),B1=ce.createContext(null);var bI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const yI=(e,t)=>{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:l=!1,style:s,onMouseEnter:u,onMouseLeave:c,skipGroup:f=!1,disabled:g}=e,h=bI(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:b,checkbox:v}=d.useContext(Tt),y=d.useContext(B1),{isFormItemInput:m}=d.useContext(Mn),C=d.useContext(jn),S=(n=(y==null?void 0:y.disabled)||g)!==null&&n!==void 0?n:C,x=d.useRef(h.value),w=d.useRef(null),$=ar(t,w);d.useEffect(()=>{y==null||y.registerValue(h.value)},[]),d.useEffect(()=>{if(!f)return h.value!==x.current&&(y==null||y.cancelValue(x.current),y==null||y.registerValue(h.value),x.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),d.useEffect(()=>{var T;!((T=w.current)===null||T===void 0)&&T.input&&(w.current.input.indeterminate=l)},[l]);const O=p("checkbox",r),R=or(O),[E,N,L]=z1(O,R),D=Object.assign({},h);y&&!f&&(D.onChange=(...T)=>{h.onChange&&h.onChange.apply(h,T),y.toggleOption&&y.toggleOption({label:i,value:h.value})},D.name=y.name,D.checked=y.value.includes(h.value));const P=ue(`${O}-wrapper`,{[`${O}-rtl`]:b==="rtl",[`${O}-wrapper-checked`]:D.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:m},v==null?void 0:v.className,a,o,L,R,N),M=ue({[`${O}-indeterminate`]:l},Ts,N),[I,A]=E1(D.onClick);return E(d.createElement(Mi,{component:"Checkbox",disabled:S},d.createElement("label",{className:P,style:Object.assign(Object.assign({},v==null?void 0:v.style),s),onMouseEnter:u,onMouseLeave:c,onClick:I},d.createElement($1,Object.assign({},D,{onClick:A,prefixCls:O,className:M,disabled:S,ref:$})),i!=null&&d.createElement("span",{className:`${O}-label`},i))))},V1=d.forwardRef(yI);var CI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const SI=d.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:l,style:s,onChange:u}=e,c=CI(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:g}=d.useContext(Tt),[h,p]=d.useState(c.value||n||[]),[b,v]=d.useState([]);d.useEffect(()=>{"value"in c&&p(c.value||[])},[c.value]);const y=d.useMemo(()=>a.map(M=>typeof M=="string"||typeof M=="number"?{label:M,value:M}:M),[a]),m=M=>{v(I=>I.filter(A=>A!==M))},C=M=>{v(I=>[].concat(Ne(I),[M]))},S=M=>{const I=h.indexOf(M.value),A=Ne(h);I===-1?A.push(M.value):A.splice(I,1),"value"in c||p(A),u==null||u(A.filter(T=>b.includes(T)).sort((T,j)=>{const B=y.findIndex(_=>_.value===T),H=y.findIndex(_=>_.value===j);return B-H}))},x=f("checkbox",o),w=`${x}-group`,$=or(x),[O,R,E]=z1(x,$),N=Er(c,["value","disabled"]),L=a.length?y.map(M=>d.createElement(V1,{prefixCls:x,key:M.value.toString(),disabled:"disabled"in M?M.disabled:c.disabled,value:M.value,checked:h.includes(M.value),onChange:M.onChange,className:ue(`${w}-item`,M.className),style:M.style,title:M.title,id:M.id,required:M.required},M.label)):r,D=d.useMemo(()=>({toggleOption:S,value:h,disabled:c.disabled,name:c.name,registerValue:C,cancelValue:m}),[S,h,c.disabled,c.name,C,m]),P=ue(w,{[`${w}-rtl`]:g==="rtl"},i,l,E,$,R);return O(d.createElement("div",Object.assign({className:P,style:s},N,{ref:t}),d.createElement(B1.Provider,{value:D},L)))}),es=V1;es.Group=SI;es.__ANT_CHECKBOX=!0;const W1=Co({});var xI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Av(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const wI=["xs","sm","md","lg","xl","xxl"],q1=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Tt),{gutter:a,wrap:o}=d.useContext(W1),{prefixCls:i,span:l,order:s,offset:u,push:c,pull:f,className:g,children:h,flex:p,style:b}=e,v=xI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",i),[m,C,S]=$7(y),x={};let w={};wI.forEach(R=>{let E={};const N=e[R];typeof N=="number"?E.span=N:typeof N=="object"&&(E=N||{}),delete v[R],w=Object.assign(Object.assign({},w),{[`${y}-${R}-${E.span}`]:E.span!==void 0,[`${y}-${R}-order-${E.order}`]:E.order||E.order===0,[`${y}-${R}-offset-${E.offset}`]:E.offset||E.offset===0,[`${y}-${R}-push-${E.push}`]:E.push||E.push===0,[`${y}-${R}-pull-${E.pull}`]:E.pull||E.pull===0,[`${y}-rtl`]:r==="rtl"}),E.flex&&(w[`${y}-${R}-flex`]=!0,x[`--${y}-${R}-flex`]=Av(E.flex))});const $=ue(y,{[`${y}-${l}`]:l!==void 0,[`${y}-order-${s}`]:s,[`${y}-offset-${u}`]:u,[`${y}-push-${c}`]:c,[`${y}-pull-${f}`]:f},g,w,C,S),O={};if(a!=null&&a[0]){const R=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;O.paddingLeft=R,O.paddingRight=R}return p&&(O.flex=Av(p),o===!1&&!O.minWidth&&(O.minWidth=0)),m(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},O),b),x),className:$,ref:t}),h))});function $I(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((o,i)=>{if(typeof o=="object"&&o!==null)for(let l=0;l<hi.length;l++){const s=hi[l];if(a[s]&&o[s]!==void 0){n[i]=o[s];break}}else n[i]=o}),n}var EI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Fv(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<hi.length;o++){const i=hi[o];if(!t||!t[i])continue;const l=e[i];if(l!==void 0){r(l);return}}};return d.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const OI=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:l,gutter:s=0,wrap:u}=e,c=EI(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:g}=d.useContext(Tt),h=q$(!0,null),p=Fv(a,h),b=Fv(r,h),v=f("row",n),[y,m,C]=x7(v),S=$I(s,h),x=ue(v,{[`${v}-no-wrap`]:u===!1,[`${v}-${b}`]:b,[`${v}-${p}`]:p,[`${v}-rtl`]:g==="rtl"},o,m,C),w={};if(S!=null&&S[0]){const E=typeof S[0]=="number"?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;w.marginLeft=E,w.marginRight=E}const[$,O]=S;w.rowGap=O;const R=d.useMemo(()=>({gutter:[$,O],wrap:u}),[$,O,u]);return y(d.createElement(W1.Provider,{value:R},d.createElement("div",Object.assign({},c,{className:x,style:Object.assign(Object.assign({},w),i),ref:t}),l)))});var II={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"},MI=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:II}))},RI=d.forwardRef(MI);function dd(){return typeof BigInt=="function"}function U1(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function $a(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(l).concat(r)}}function P0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Ca(e){var t=String(e);if(P0(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&N0(t)?t.length-t.indexOf(".")-1:0}function Gs(e){var t=String(e);if(P0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(dd()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(dd()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Ca(t))}return $a(t).fullStr}function N0(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 PI=(function(){function e(t){if(cn(this,e),K(this,"origin",""),K(this,"negative",void 0),K(this,"integer",void 0),K(this,"decimal",void 0),K(this,"decimalLen",void 0),K(this,"empty",void 0),K(this,"nan",void 0),U1(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(P0(n)&&(n=Number(n)),n=typeof n=="string"?n:Gs(n),N0(n)){var r=$a(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return un(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(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(o),l=n.alignDecimal(o),s=r(i,l).toString(),u=a(o),c=$a(s),f=c.negativeStr,g=c.trimStr,h="".concat(f).concat(g.padStart(u+1,"0"));return new e("".concat(h.slice(0,-u),".").concat(h.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,o){return a+o},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,o){return a*o},function(a){return a*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(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":$a("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),NI=(function(){function e(t){if(cn(this,e),K(this,"origin",""),K(this,"number",void 0),K(this,"empty",void 0),U1(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return un(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Ca(this.number),Ca(r));return new e(a.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var a=this.number*r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Ca(this.number),Ca(r));return new e(a.toFixed(o))}},{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(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Gs(this.number):this.origin}}]),e})();function br(e){return dd()?new PI(e):new NI(e)}function Nl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=$a(e),o=a.negativeStr,i=a.integerStr,l=a.decimalStr,s="".concat(t).concat(l),u="".concat(o).concat(i);if(n>=0){var c=Number(l[n]);if(c>=5&&!r){var f=br(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-c));return Nl(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?u:"".concat(u).concat(s)}function TI(e){return!!(e.addonBefore||e.addonAfter)}function AI(e){return!!(e.prefix||e.suffix||e.allowClear)}function Dv(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function ts(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=Dv(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=Dv(t,e,r),n(a);return}n(a)}}function T0(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var A0=ce.forwardRef(function(e,t){var n,r,a,o=e.inputElement,i=e.children,l=e.prefixCls,s=e.prefix,u=e.suffix,c=e.addonBefore,f=e.addonAfter,g=e.className,h=e.style,p=e.disabled,b=e.readOnly,v=e.focused,y=e.triggerFocus,m=e.allowClear,C=e.value,S=e.handleReset,x=e.hidden,w=e.classes,$=e.classNames,O=e.dataAttrs,R=e.styles,E=e.components,N=e.onClear,L=i??o,D=(E==null?void 0:E.affixWrapper)||"span",P=(E==null?void 0:E.groupWrapper)||"span",M=(E==null?void 0:E.wrapper)||"span",I=(E==null?void 0:E.groupAddon)||"span",A=Xe(null),T=function(ne){var te;(te=A.current)!==null&&te!==void 0&&te.contains(ne.target)&&(y==null||y())},j=AI(e),B=Bb(L,{value:C,className:ue((n=L.props)===null||n===void 0?void 0:n.className,!j&&($==null?void 0:$.variant))||null}),H=Xe(null);if(ce.useImperativeHandle(t,function(){return{nativeElement:H.current||A.current}}),j){var _=null;if(m){var W=!p&&!b&&C,q="".concat(l,"-clear-icon"),G=nt(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"\u2716";_=ce.createElement("button",{type:"button",tabIndex:-1,onClick:function(ne){S==null||S(ne),N==null||N()},onMouseDown:function(ne){return ne.preventDefault()},className:ue(q,K(K({},"".concat(q,"-hidden"),!W),"".concat(q,"-has-suffix"),!!u))},G)}var k="".concat(l,"-affix-wrapper"),z=ue(k,K(K(K(K(K({},"".concat(l,"-disabled"),p),"".concat(k,"-disabled"),p),"".concat(k,"-focused"),v),"".concat(k,"-readonly"),b),"".concat(k,"-input-with-clear-btn"),u&&m&&C),w==null?void 0:w.affixWrapper,$==null?void 0:$.affixWrapper,$==null?void 0:$.variant),V=(u||m)&&ce.createElement("span",{className:ue("".concat(l,"-suffix"),$==null?void 0:$.suffix),style:R==null?void 0:R.suffix},_,u);B=ce.createElement(D,je({className:z,style:R==null?void 0:R.affixWrapper,onClick:T},O==null?void 0:O.affixWrapper,{ref:A}),s&&ce.createElement("span",{className:ue("".concat(l,"-prefix"),$==null?void 0:$.prefix),style:R==null?void 0:R.prefix},s),B,V)}if(TI(e)){var F="".concat(l,"-group"),X="".concat(F,"-addon"),Y="".concat(F,"-wrapper"),U=ue("".concat(l,"-wrapper"),F,w==null?void 0:w.wrapper,$==null?void 0:$.wrapper),J=ue(Y,K({},"".concat(Y,"-disabled"),p),w==null?void 0:w.group,$==null?void 0:$.groupWrapper);B=ce.createElement(P,{className:J,ref:H},ce.createElement(M,{className:U},c&&ce.createElement(I,{className:X},c),B,f&&ce.createElement(I,{className:X},f)))}return ce.cloneElement(B,{className:ue((r=B.props)===null||r===void 0?void 0:r.className,g)||null,style:Z(Z({},(a=B.props)===null||a===void 0?void 0:a.style),h),hidden:x})}),FI=["show"];function Y1(e,t){return d.useMemo(function(){var n={};t&&(n.show=nt(t)==="object"&&t.formatter?t.formatter:!!t),n=Z(Z({},n),e);var r=n,a=r.show,o=wt(r,FI);return Z(Z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var DI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],LI=Vn(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,u=e.prefixCls,c=u===void 0?"rc-input":u,f=e.disabled,g=e.htmlSize,h=e.className,p=e.maxLength,b=e.suffix,v=e.showCount,y=e.count,m=e.type,C=m===void 0?"text":m,S=e.classes,x=e.classNames,w=e.styles,$=e.onCompositionStart,O=e.onCompositionEnd,R=wt(e,DI),E=jt(!1),N=ee(E,2),L=N[0],D=N[1],P=Xe(!1),M=Xe(!1),I=Xe(null),A=Xe(null),T=function(le){I.current&&T0(I.current,le)},j=ln(e.defaultValue,{value:e.value}),B=ee(j,2),H=B[0],_=B[1],W=H==null?"":String(H),q=jt(null),G=ee(q,2),k=G[0],z=G[1],V=Y1(y,v),F=V.max||p,X=V.strategy(W),Y=!!F&&X>F;So(t,function(){var Se;return{focus:T,blur:function(){var Me;(Me=I.current)===null||Me===void 0||Me.blur()},setSelectionRange:function(Me,Pe,ie){var pe;(pe=I.current)===null||pe===void 0||pe.setSelectionRange(Me,Pe,ie)},select:function(){var Me;(Me=I.current)===null||Me===void 0||Me.select()},input:I.current,nativeElement:((Se=A.current)===null||Se===void 0?void 0:Se.nativeElement)||I.current}}),Zt(function(){M.current&&(M.current=!1),D(function(Se){return Se&&f?!1:Se})},[f]);var U=function(le,Me,Pe){var ie=Me;if(!P.current&&V.exceedFormatter&&V.max&&V.strategy(Me)>V.max){if(ie=V.exceedFormatter(Me,{max:V.max}),Me!==ie){var pe,be;z([((pe=I.current)===null||pe===void 0?void 0:pe.selectionStart)||0,((be=I.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if(Pe.source==="compositionEnd")return;_(ie),I.current&&ts(I.current,le,r,ie)};Zt(function(){if(k){var Se;(Se=I.current)===null||Se===void 0||Se.setSelectionRange.apply(Se,Ne(k))}},[k]);var J=function(le){U(le,le.target.value,{source:"change"})},re=function(le){P.current=!1,U(le,le.currentTarget.value,{source:"compositionEnd"}),O==null||O(le)},ne=function(le){i&&le.key==="Enter"&&!M.current&&(M.current=!0,i(le)),l==null||l(le)},te=function(le){le.key==="Enter"&&(M.current=!1),s==null||s(le)},de=function(le){D(!0),a==null||a(le)},ae=function(le){M.current&&(M.current=!1),D(!1),o==null||o(le)},ge=function(le){_(""),T(),I.current&&ts(I.current,le,r)},Oe=Y&&"".concat(c,"-out-of-range"),xe=function(){var le=Er(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ce.createElement("input",je({autoComplete:n},le,{onChange:J,onFocus:de,onBlur:ae,onKeyDown:ne,onKeyUp:te,className:ue(c,K({},"".concat(c,"-disabled"),f),x==null?void 0:x.input),style:w==null?void 0:w.input,ref:I,size:g,type:C,onCompositionStart:function(Pe){P.current=!0,$==null||$(Pe)},onCompositionEnd:re}))},$e=function(){var le=Number(F)>0;if(b||V.show){var Me=V.showFormatter?V.showFormatter({value:W,count:X,maxLength:F}):"".concat(X).concat(le?" / ".concat(F):"");return ce.createElement(ce.Fragment,null,V.show&&ce.createElement("span",{className:ue("".concat(c,"-show-count-suffix"),K({},"".concat(c,"-show-count-has-suffix"),!!b),x==null?void 0:x.count),style:Z({},w==null?void 0:w.count)},Me),b)}return null};return ce.createElement(A0,je({},R,{prefixCls:c,className:ue(h,Oe),handleReset:ge,value:W,focused:L,triggerFocus:T,suffix:$e(),disabled:f,classes:S,classNames:x,styles:w,ref:A}),xe())});function kI(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function _I(e,t){var n=Xe(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,l=e.value,s=l.substring(0,o),u=l.substring(i);n.current={start:o,end:i,value:l,beforeTxt:s,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,l=i.beforeTxt,s=i.afterTxt,u=i.start,c=o.length;if(o.startsWith(l))c=l.length;else if(o.endsWith(s))c=o.length-n.current.afterTxt.length;else{var f=l[u-1],g=o.indexOf(f,u-1);g!==-1&&(c=g+1)}e.setSelectionRange(c,c)}catch(h){An(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,a]}var HI=function(){var t=jt(!1),n=ee(t,2),r=n[0],a=n[1];return Nt(function(){a(f0())},[]),r},jI=200,zI=600;function BI(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,l=d.useRef(),s=d.useRef([]),u=d.useRef();u.current=i;var c=function(){clearTimeout(l.current)},f=function(C,S){C.preventDefault(),c(),u.current(S);function x(){u.current(S),l.current=setTimeout(x,jI)}l.current=setTimeout(x,zI)};d.useEffect(function(){return function(){c(),s.current.forEach(function(m){return Ct.cancel(m)})}},[]);var g=HI();if(g)return null;var h="".concat(t,"-handler"),p=ue(h,"".concat(h,"-up"),K({},"".concat(h,"-up-disabled"),a)),b=ue(h,"".concat(h,"-down"),K({},"".concat(h,"-down-disabled"),o)),v=function(){return s.current.push(Ct(c))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(h,"-wrap")},d.createElement("span",je({},y,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":a,className:p}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",je({},y,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:b}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Lv(e){var t=typeof e=="number"?Gs(e):$a(e).fullStr,n=t.includes(".");return n?$a(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const VI=(function(){var e=Xe(0),t=function(){Ct.cancel(e.current)};return Zt(function(){return t},[]),function(n){t(),e.current=Ct(function(){n()})}});var WI=["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"],qI=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],kv=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},_v=function(t){var n=br(t);return n.isInvalidate()?null:n},UI=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,l=e.step,s=l===void 0?1:l,u=e.defaultValue,c=e.value,f=e.disabled,g=e.readOnly,h=e.upHandler,p=e.downHandler,b=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,m=e.controls,C=m===void 0?!0:m;e.classNames;var S=e.stringMode,x=e.parser,w=e.formatter,$=e.precision,O=e.decimalSeparator,R=e.onChange,E=e.onInput,N=e.onPressEnter,L=e.onStep,D=e.changeOnBlur,P=D===void 0?!0:D,M=e.domRef,I=wt(e,WI),A="".concat(n,"-input"),T=d.useRef(null),j=d.useState(!1),B=ee(j,2),H=B[0],_=B[1],W=d.useRef(!1),q=d.useRef(!1),G=d.useRef(!1),k=d.useState(function(){return br(c??u)}),z=ee(k,2),V=z[0],F=z[1];function X(_e){c===void 0&&F(_e)}var Y=d.useCallback(function(_e,ke){if(!ke)return $>=0?$:Math.max(Ca(_e),Ca(s))},[$,s]),U=d.useCallback(function(_e){var ke=String(_e);if(x)return x(ke);var We=ke;return O&&(We=We.replace(O,".")),We.replace(/[^\w.-]+/g,"")},[x,O]),J=d.useRef(""),re=d.useCallback(function(_e,ke){if(w)return w(_e,{userTyping:ke,input:String(J.current)});var We=typeof _e=="number"?Gs(_e):_e;if(!ke){var ze=Y(We,ke);if(N0(We)&&(O||ze>=0)){var qe=O||".";We=Nl(We,qe,ze)}}return We},[w,Y,O]),ne=d.useState(function(){var _e=u??c;return V.isInvalidate()&&["string","number"].includes(nt(_e))?Number.isNaN(_e)?"":_e:re(V.toString(),!1)}),te=ee(ne,2),de=te[0],ae=te[1];J.current=de;function ge(_e,ke){ae(re(_e.isInvalidate()?_e.toString(!1):_e.toString(!ke),ke))}var Oe=d.useMemo(function(){return _v(i)},[i,$]),xe=d.useMemo(function(){return _v(o)},[o,$]),$e=d.useMemo(function(){return!Oe||!V||V.isInvalidate()?!1:Oe.lessEquals(V)},[Oe,V]),Se=d.useMemo(function(){return!xe||!V||V.isInvalidate()?!1:V.lessEquals(xe)},[xe,V]),le=_I(T.current,H),Me=ee(le,2),Pe=Me[0],ie=Me[1],pe=function(ke){return Oe&&!ke.lessEquals(Oe)?Oe:xe&&!xe.lessEquals(ke)?xe:null},be=function(ke){return!pe(ke)},Re=function(ke,We){var ze=ke,qe=be(ze)||ze.isEmpty();if(!ze.isEmpty()&&!We&&(ze=pe(ze)||ze,qe=!0),!g&&!f&&qe){var vt=ze.toString(),ct=Y(vt,We);return ct>=0&&(ze=br(Nl(vt,".",ct)),be(ze)||(ze=br(Nl(vt,".",ct,!0)))),ze.equals(V)||(X(ze),R==null||R(ze.isEmpty()?null:kv(S,ze)),c===void 0&&ge(ze,We)),ze}return V},Ie=VI(),he=function _e(ke){if(Pe(),J.current=ke,ae(ke),!q.current){var We=U(ke),ze=br(We);ze.isNaN()||Re(ze,!0)}E==null||E(ke),Ie(function(){var qe=ke;x||(qe=ke.replace(/。/g,".")),qe!==ke&&_e(qe)})},Ee=function(){q.current=!0},oe=function(){q.current=!1,he(T.current.value)},me=function(ke){he(ke.target.value)},Te=function(ke){var We;if(!(ke&&$e||!ke&&Se)){W.current=!1;var ze=br(G.current?Lv(s):s);ke||(ze=ze.negate());var qe=(V||br(0)).add(ze.toString()),vt=Re(qe,!1);L==null||L(kv(S,vt),{offset:G.current?Lv(s):s,type:ke?"up":"down"}),(We=T.current)===null||We===void 0||We.focus()}},se=function(ke){var We=br(U(de)),ze;We.isNaN()?ze=Re(V,ke):ze=Re(We,ke),c!==void 0?ge(V,!1):ze.isNaN()||ge(ze,!1)},we=function(){W.current=!0},Ze=function(ke){var We=ke.key,ze=ke.shiftKey;W.current=!0,G.current=ze,We==="Enter"&&(q.current||(W.current=!1),se(!1),N==null||N(ke)),b!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(We)&&(Te(We==="Up"||We==="ArrowUp"),ke.preventDefault())},lt=function(){W.current=!1,G.current=!1};d.useEffect(function(){if(y&&H){var _e=function(ze){Te(ze.deltaY<0),ze.preventDefault()},ke=T.current;if(ke)return ke.addEventListener("wheel",_e,{passive:!1}),function(){return ke.removeEventListener("wheel",_e)}}});var mt=function(){P&&se(!1),_(!1),W.current=!1};return no(function(){V.isInvalidate()||ge(V,!1)},[$,w]),no(function(){var _e=br(c);F(_e);var ke=br(U(de));(!_e.equals(ke)||!W.current||w)&&ge(_e,W.current)},[c]),no(function(){w&&ie()},[de]),d.createElement("div",{ref:M,className:ue(n,r,K(K(K(K(K({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),g),"".concat(n,"-not-a-number"),V.isNaN()),"".concat(n,"-out-of-range"),!V.isInvalidate()&&!be(V))),style:a,onFocus:function(){_(!0)},onBlur:mt,onKeyDown:Ze,onKeyUp:lt,onCompositionStart:Ee,onCompositionEnd:oe,onBeforeInput:we},C&&d.createElement(BI,{prefixCls:n,upNode:h,downNode:p,upDisabled:$e,downDisabled:Se,onStep:Te}),d.createElement("div",{className:"".concat(A,"-wrap")},d.createElement("input",je({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:s},I,{ref:ar(T,t),className:A,value:de,onChange:me,disabled:f,readOnly:g}))))}),YI=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,l=e.prefix,s=e.suffix,u=e.addonBefore,c=e.addonAfter,f=e.className,g=e.classNames,h=wt(e,qI),p=d.useRef(null),b=d.useRef(null),v=d.useRef(null),y=function(C){v.current&&T0(v.current,C)};return d.useImperativeHandle(t,function(){return kI(v.current,{focus:y,nativeElement:p.current.nativeElement||b.current})}),d.createElement(A0,{className:f,triggerFocus:y,prefixCls:o,value:i,disabled:n,style:r,prefix:l,suffix:s,addonAfter:c,addonBefore:u,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},d.createElement(UI,je({prefixCls:o,disabled:n,ref:v,domRef:b,className:g==null?void 0:g.input},h)))});const GI=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Fo(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Dt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Hv=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},KI=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:l,controlHeightSM:s,colorError:u,paddingInlineSM:c,paddingBlockSM:f,paddingBlockLG:g,paddingInlineLG:h,colorIcon:p,motionDurationMid:b,handleHoverColor:v,handleOpacity:y,paddingInline:m,paddingBlock:C,handleBg:S,handleActiveBg:x,colorTextDisabled:w,borderRadiusSM:$,borderRadiusLG:O,controlWidth:R,handleBorderColor:E,filledHandleBg:N,lineHeightLG:L,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sn(e)),Ys(e)),{display:"inline-block",width:R,margin:0,padding:0,borderRadius:a}),E0(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${ve(n)} ${r} ${E}`}}})),I0(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${ve(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),M0(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${ve(n)} ${r} ${E}`}}})),O0(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:L,borderRadius:O,[`input${t}-input`]:{height:D(l).sub(D(n).mul(2)).equal(),padding:`${ve(g)} ${ve(h)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:$,[`input${t}-input`]:{height:D(s).sub(D(n).mul(2)).equal(),padding:`${ve(f)} ${ve(c)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},sn(e)),k1(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:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}},N1(e)),A1(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({},sn(e)),{width:"100%",padding:`${ve(C)} ${ve(m)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),R0(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:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
405
+ ${t}-handler-up-inner,
406
+ ${t}-handler-down-inner
407
+ `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ve(n)} ${r} ${E}`,transition:`all ${b} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`
408
+ ${t}-handler-up-inner,
409
+ ${t}-handler-down-inner
410
+ `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Oi()),{color:p,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},Hv(e,"lg")),Hv(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
411
+ ${t}-handler-up-disabled,
412
+ ${t}-handler-down-disabled
413
+ `]:{cursor:"not-allowed"},[`
414
+ ${t}-handler-up-disabled:hover &-handler-up-inner,
415
+ ${t}-handler-down-disabled:hover &-handler-down-inner
416
+ `]:{color:w}})}]},XI=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:u,paddingBlockLG:c,paddingBlockSM:f,motionDurationMid:g}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ve(n)} 0`}},Ys(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${t}-input`]:{padding:`${ve(c)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${ve(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:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${g}`}},[`&: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(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},ZI=Rn("InputNumber",e=>{const t=Bt(e,Ao(e));return[KI(t),XI(t),Ri(t)]},GI,{unitless:{handleOpacity:!0},resetFont:!1});var QI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const G1=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Tt),a=d.useRef(null);d.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:l,disabled:s,prefixCls:u,addonBefore:c,addonAfter:f,prefix:g,suffix:h,bordered:p,readOnly:b,status:v,controls:y,variant:m}=e,C=QI(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",u),x=or(S),[w,$,O]=ZI(S,x),{compactSize:R,compactItemClassnames:E}=ua(S,r);let N=d.createElement(RI,{className:`${S}-handler-up-inner`}),L=d.createElement(Fp,{className:`${S}-handler-down-inner`});const D=typeof y=="boolean"?y:void 0;typeof y=="object"&&(N=typeof y.upIcon>"u"?N:d.createElement("span",{className:`${S}-handler-up-inner`},y.upIcon),L=typeof y.downIcon>"u"?L:d.createElement("span",{className:`${S}-handler-down-inner`},y.downIcon));const{hasFeedback:P,status:M,isFormItemInput:I,feedbackIcon:A}=d.useContext(Mn),T=La(M,v),j=ir(V=>{var F;return(F=l??R)!==null&&F!==void 0?F:V}),B=d.useContext(jn),H=s??B,[_,W]=ka("inputNumber",m,p),q=P&&d.createElement(d.Fragment,null,A),G=ue({[`${S}-lg`]:j==="large",[`${S}-sm`]:j==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:I},$),k=`${S}-group`,z=d.createElement(YI,Object.assign({ref:a,disabled:H,className:ue(O,x,o,i,E),upHandler:N,downHandler:L,prefixCls:S,readOnly:b,controls:D,prefix:g,suffix:q||h,addonBefore:c&&d.createElement(aa,{form:!0,space:!0},c),addonAfter:f&&d.createElement(aa,{form:!0,space:!0},f),classNames:{input:G,variant:ue({[`${S}-${_}`]:W},oa(S,T,P)),affixWrapper:ue({[`${S}-affix-wrapper-sm`]:j==="small",[`${S}-affix-wrapper-lg`]:j==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:y===!1||H||b},$),wrapper:ue({[`${k}-rtl`]:r==="rtl"},$),groupWrapper:ue({[`${S}-group-wrapper-sm`]:j==="small",[`${S}-group-wrapper-lg`]:j==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${_}`]:W},oa(`${S}-group-wrapper`,T,P),$)}},C));return w(z)}),Go=G1,JI=e=>d.createElement(Fa,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(G1,Object.assign({},e)));Go._InternalPanelDoNotUseOrYouWillBeFired=JI;const K1=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ce.createElement(Qd,null)}),t};function X1(e,t){const n=Xe([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,l;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return Zt(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function eM(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var tM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ks=Vn((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:o,disabled:i,onBlur:l,onFocus:s,suffix:u,allowClear:c,addonAfter:f,addonBefore:g,className:h,style:p,styles:b,rootClassName:v,onChange:y,classNames:m,variant:C}=e,S=tM(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:w,allowClear:$,autoComplete:O,className:R,style:E,classNames:N,styles:L}=Vr("input"),D=x("input",n),P=Xe(null),M=or(D),[I,A,T]=_1(D,v),[j]=H1(D,M),{compactSize:B,compactItemClassnames:H}=ua(D,w),_=ir(ae=>{var ge;return(ge=o??B)!==null&&ge!==void 0?ge:ae}),W=ce.useContext(jn),q=i??W,{status:G,hasFeedback:k,feedbackIcon:z}=gn(Mn),V=La(G,a),F=eM(e)||!!k;Xe(F);const X=X1(P,!0),Y=ae=>{X(),l==null||l(ae)},U=ae=>{X(),s==null||s(ae)},J=ae=>{X(),y==null||y(ae)},re=(k||u)&&ce.createElement(ce.Fragment,null,u,k&&z),ne=K1(c??$),[te,de]=ka("input",C,r);return I(j(ce.createElement(LI,Object.assign({ref:ar(t,P),prefixCls:D,autoComplete:O},S,{disabled:q,onBlur:Y,onFocus:U,style:Object.assign(Object.assign({},E),p),styles:Object.assign(Object.assign({},L),b),suffix:re,allowClear:ne,className:ue(h,v,T,M,H,R),onChange:J,addonBefore:g&&ce.createElement(aa,{form:!0,space:!0},g),addonAfter:f&&ce.createElement(aa,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},m),N),{input:ue({[`${D}-sm`]:_==="small",[`${D}-lg`]:_==="large",[`${D}-rtl`]:w==="rtl"},m==null?void 0:m.input,N.input,A),variant:ue({[`${D}-${te}`]:de},oa(D,V)),affixWrapper:ue({[`${D}-affix-wrapper-sm`]:_==="small",[`${D}-affix-wrapper-lg`]:_==="large",[`${D}-affix-wrapper-rtl`]:w==="rtl"},A),wrapper:ue({[`${D}-group-rtl`]:w==="rtl"},A),groupWrapper:ue({[`${D}-group-wrapper-sm`]:_==="small",[`${D}-group-wrapper-lg`]:_==="large",[`${D}-group-wrapper-rtl`]:w==="rtl",[`${D}-group-wrapper-${te}`]:de},oa(`${D}-group-wrapper`,V,k),A)})}))))});function fd(e,t,n){return(e-t)/(n-t)}function F0(e,t,n,r){var a=fd(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function ga(e,t){return Array.isArray(e)?e[t]:e}var ja=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),nM=d.createContext({}),rM=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],jv=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,l=e.style,s=e.render,u=e.dragging,c=e.draggingDelete,f=e.onOffsetChange,g=e.onChangeComplete,h=e.onFocus,p=e.onMouseEnter,b=wt(e,rM),v=d.useContext(ja),y=v.min,m=v.max,C=v.direction,S=v.disabled,x=v.keyboard,w=v.range,$=v.tabIndex,O=v.ariaLabelForHandle,R=v.ariaLabelledByForHandle,E=v.ariaRequired,N=v.ariaValueTextFormatterForHandle,L=v.styles,D=v.classNames,P="".concat(n,"-handle"),M=function(G){S||o(G,a)},I=function(G){h==null||h(G,a)},A=function(G){p(G,a)},T=function(G){if(!S&&x){var k=null;switch(G.which||G.keyCode){case et.LEFT:k=C==="ltr"||C==="btt"?-1:1;break;case et.RIGHT:k=C==="ltr"||C==="btt"?1:-1;break;case et.UP:k=C!=="ttb"?1:-1;break;case et.DOWN:k=C!=="ttb"?-1:1;break;case et.HOME:k="min";break;case et.END:k="max";break;case et.PAGE_UP:k=2;break;case et.PAGE_DOWN:k=-2;break;case et.BACKSPACE:case et.DELETE:i==null||i(a);break}k!==null&&(G.preventDefault(),f(k,a))}},j=function(G){switch(G.which||G.keyCode){case et.LEFT:case et.RIGHT:case et.UP:case et.DOWN:case et.HOME:case et.END:case et.PAGE_UP:case et.PAGE_DOWN:g==null||g();break}},B=F0(C,r,y,m),H={};if(a!==null){var _;H={tabIndex:S?null:ga($,a),role:"slider","aria-valuemin":y,"aria-valuemax":m,"aria-valuenow":r,"aria-disabled":S,"aria-label":ga(O,a),"aria-labelledby":ga(R,a),"aria-required":ga(E,a),"aria-valuetext":(_=ga(N,a))===null||_===void 0?void 0:_(r),"aria-orientation":C==="ltr"||C==="rtl"?"horizontal":"vertical",onMouseDown:M,onTouchStart:M,onFocus:I,onMouseEnter:A,onKeyDown:T,onKeyUp:j}}var W=d.createElement("div",je({ref:t,className:ue(P,K(K(K({},"".concat(P,"-").concat(a+1),a!==null&&w),"".concat(P,"-dragging"),u),"".concat(P,"-dragging-delete"),c),D.handle),style:Z(Z(Z({},B),l),L.handle)},H,b));return s&&(W=s(W,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:c})),W}),aM=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],oM=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,l=e.handleRender,s=e.activeHandleRender,u=e.draggingIndex,c=e.draggingDelete,f=e.onFocus,g=wt(e,aM),h=d.useRef({}),p=d.useState(!1),b=ee(p,2),v=b[0],y=b[1],m=d.useState(-1),C=ee(m,2),S=C[0],x=C[1],w=function(N){x(N),y(!0)},$=function(N,L){w(L),f==null||f(N)},O=function(N,L){w(L)};d.useImperativeHandle(t,function(){return{focus:function(N){var L;(L=h.current[N])===null||L===void 0||L.focus()},hideHelp:function(){Yc(function(){y(!1)})}}});var R=Z({prefixCls:n,onStartMove:a,onOffsetChange:o,render:l,onFocus:$,onMouseEnter:O},g);return d.createElement(d.Fragment,null,i.map(function(E,N){var L=u===N;return d.createElement(jv,je({ref:function(P){P?h.current[N]=P:delete h.current[N]},dragging:L,draggingDelete:L&&c,style:ga(r,N),key:N,value:E,valueIndex:N},R))}),s&&v&&d.createElement(jv,je({key:"a11y"},R,{value:i[S],valueIndex:null,dragging:u!==-1,draggingDelete:c,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),iM=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,l=d.useContext(ja),s=l.min,u=l.max,c=l.direction,f=l.includedStart,g=l.includedEnd,h=l.included,p="".concat(n,"-text"),b=F0(c,o,s,u);return d.createElement("span",{className:ue(p,K({},"".concat(p,"-active"),h&&f<=o&&o<=g)),style:Z(Z({},b),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){i(o)}},a)},lM=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?d.createElement("div",{className:o},r.map(function(i){var l=i.value,s=i.style,u=i.label;return d.createElement(iM,{key:l,prefixCls:o,style:s,value:l,onClick:a},u)})):null},sM=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=d.useContext(ja),l=i.min,s=i.max,u=i.direction,c=i.included,f=i.includedStart,g=i.includedEnd,h="".concat(n,"-dot"),p=c&&f<=r&&r<=g,b=Z(Z({},F0(u,r,l,s)),typeof a=="function"?a(r):a);return p&&(b=Z(Z({},b),typeof o=="function"?o(r):o)),d.createElement("span",{className:ue(h,K({},"".concat(h,"-active"),p)),style:b})},cM=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,l=d.useContext(ja),s=l.min,u=l.max,c=l.step,f=d.useMemo(function(){var g=new Set;if(r.forEach(function(p){g.add(p.value)}),a&&c!==null)for(var h=s;h<=u;)g.add(h),h+=c;return Array.from(g)},[s,u,c,a,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(g){return d.createElement(sM,{prefixCls:n,key:g,value:g,style:o,activeStyle:i})}))},zv=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,l=t.onStartMove,s=t.replaceCls,u=d.useContext(ja),c=u.direction,f=u.min,g=u.max,h=u.disabled,p=u.range,b=u.classNames,v="".concat(n,"-track"),y=fd(a,f,g),m=fd(o,f,g),C=function($){!h&&l&&l($,-1)},S={};switch(c){case"rtl":S.right="".concat(y*100,"%"),S.width="".concat(m*100-y*100,"%");break;case"btt":S.bottom="".concat(y*100,"%"),S.height="".concat(m*100-y*100,"%");break;case"ttb":S.top="".concat(y*100,"%"),S.height="".concat(m*100-y*100,"%");break;default:S.left="".concat(y*100,"%"),S.width="".concat(m*100-y*100,"%")}var x=s||ue(v,K(K({},"".concat(v,"-").concat(i+1),i!==null&&p),"".concat(n,"-track-draggable"),l),b.track);return d.createElement("div",{className:x,style:Z(Z({},S),r),onMouseDown:C,onTouchStart:C})},uM=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,l=d.useContext(ja),s=l.included,u=l.range,c=l.min,f=l.styles,g=l.classNames,h=d.useMemo(function(){if(!u){if(a.length===0)return[];var b=o??c,v=a[0];return[{start:Math.min(b,v),end:Math.max(b,v)}]}for(var y=[],m=0;m<a.length-1;m+=1)y.push({start:a[m],end:a[m+1]});return y},[a,u,o,c]);if(!s)return null;var p=h!=null&&h.length&&(g.tracks||f.tracks)?d.createElement(zv,{index:null,prefixCls:n,start:h[0].start,end:h[h.length-1].end,replaceCls:ue(g.tracks,"".concat(n,"-tracks")),style:f.tracks}):null;return d.createElement(d.Fragment,null,p,h.map(function(b,v){var y=b.start,m=b.end;return d.createElement(zv,{index:v,prefixCls:n,style:Z(Z({},ga(r,v)),f.track),start:y,end:m,key:v,onStartMove:i})}))},dM=130;function Bv(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function fM(e,t,n,r,a,o,i,l,s,u,c){var f=d.useState(null),g=ee(f,2),h=g[0],p=g[1],b=d.useState(-1),v=ee(b,2),y=v[0],m=v[1],C=d.useState(!1),S=ee(C,2),x=S[0],w=S[1],$=d.useState(n),O=ee($,2),R=O[0],E=O[1],N=d.useState(n),L=ee(N,2),D=L[0],P=L[1],M=d.useRef(null),I=d.useRef(null),A=d.useRef(null),T=d.useContext(nM),j=T.onDragStart,B=T.onDragChange;Nt(function(){y===-1&&E(n)},[n,y]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",M.current),document.removeEventListener("mouseup",I.current),A.current&&(A.current.removeEventListener("touchmove",M.current),A.current.removeEventListener("touchend",I.current))}},[]);var H=function(k,z,V){z!==void 0&&p(z),E(k);var F=k;V&&(F=k.filter(function(X,Y){return Y!==y})),i(F),B&&B({rawValues:k,deleteIndex:V?y:-1,draggingIndex:y,draggingValue:z})},_=Mt(function(G,k,z){if(G===-1){var V=D[0],F=D[D.length-1],X=r-V,Y=a-F,U=k*(a-r);U=Math.max(U,X),U=Math.min(U,Y);var J=o(V+U);U=J-V;var re=D.map(function(ae){return ae+U});H(re)}else{var ne=(a-r)*k,te=Ne(R);te[G]=D[G];var de=s(te,ne,G,"dist");H(de.values,de.value,z)}}),W=function(k,z,V){k.stopPropagation();var F=V||n,X=F[z];m(z),p(X),P(F),E(F),w(!1);var Y=Bv(k),U=Y.pageX,J=Y.pageY,re=!1;j&&j({rawValues:F,draggingIndex:z,draggingValue:X});var ne=function(ae){ae.preventDefault();var ge=Bv(ae),Oe=ge.pageX,xe=ge.pageY,$e=Oe-U,Se=xe-J,le=e.current.getBoundingClientRect(),Me=le.width,Pe=le.height,ie,pe;switch(t){case"btt":ie=-Se/Pe,pe=$e;break;case"ttb":ie=Se/Pe,pe=$e;break;case"rtl":ie=-$e/Me,pe=Se;break;default:ie=$e/Me,pe=Se}re=u?Math.abs(pe)>dM&&c<R.length:!1,w(re),_(z,ie,re)},te=function de(ae){ae.preventDefault(),document.removeEventListener("mouseup",de),document.removeEventListener("mousemove",ne),A.current&&(A.current.removeEventListener("touchmove",M.current),A.current.removeEventListener("touchend",I.current)),M.current=null,I.current=null,A.current=null,l(re),m(-1),w(!1)};document.addEventListener("mouseup",te),document.addEventListener("mousemove",ne),k.currentTarget.addEventListener("touchend",te),k.currentTarget.addEventListener("touchmove",ne),M.current=ne,I.current=te,A.current=k.currentTarget},q=d.useMemo(function(){var G=Ne(n).sort(function(X,Y){return X-Y}),k=Ne(R).sort(function(X,Y){return X-Y}),z={};k.forEach(function(X){z[X]=(z[X]||0)+1}),G.forEach(function(X){z[X]=(z[X]||0)-1});var V=u?1:0,F=Object.values(z).reduce(function(X,Y){return X+Math.abs(Y)},0);return F<=V?R:n},[n,R,u]);return[y,h,x,q,W]}function mM(e,t,n,r,a,o){var i=d.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),l=d.useCallback(function(h){if(n!==null){var p=e+Math.round((i(h)-e)/n)*n,b=function(C){return(String(C).split(".")[1]||"").length},v=Math.max(b(n),b(t),b(e)),y=Number(p.toFixed(v));return e<=y&&y<=t?y:null}return null},[n,e,t,i]),s=d.useCallback(function(h){var p=i(h),b=r.map(function(m){return m.value});n!==null&&b.push(l(h)),b.push(e,t);var v=b[0],y=t-e;return b.forEach(function(m){var C=Math.abs(p-m);C<=y&&(v=m,y=C)}),v},[e,t,r,n,i,l]),u=function h(p,b,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var m,C=p[v],S=C+b,x=[];r.forEach(function(E){x.push(E.value)}),x.push(e,t),x.push(l(C));var w=b>0?1:-1;y==="unit"?x.push(l(C+w*n)):x.push(l(S)),x=x.filter(function(E){return E!==null}).filter(function(E){return b<0?E<=C:E>=C}),y==="unit"&&(x=x.filter(function(E){return E!==C}));var $=y==="unit"?C:S;m=x[0];var O=Math.abs(m-$);if(x.forEach(function(E){var N=Math.abs(E-$);N<O&&(m=E,O=N)}),m===void 0)return b<0?e:t;if(y==="dist")return m;if(Math.abs(b)>1){var R=Ne(p);return R[v]=m,h(R,b-w,v,y)}return m}else{if(b==="min")return e;if(b==="max")return t}},c=function(p,b,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",m=p[v],C=u(p,b,v,y);return{value:C,changed:C!==m}},f=function(p){return o===null&&p===0||typeof o=="number"&&p<o},g=function(p,b,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",m=p.map(s),C=m[v],S=u(m,b,v,y);if(m[v]=S,a===!1){var x=o||0;v>0&&m[v-1]!==C&&(m[v]=Math.max(m[v],m[v-1]+x)),v<m.length-1&&m[v+1]!==C&&(m[v]=Math.min(m[v],m[v+1]-x))}else if(typeof o=="number"||o===null){for(var w=v+1;w<m.length;w+=1)for(var $=!0;f(m[w]-m[w-1])&&$;){var O=c(m,1,w);m[w]=O.value,$=O.changed}for(var R=v;R>0;R-=1)for(var E=!0;f(m[R]-m[R-1])&&E;){var N=c(m,-1,R-1);m[R-1]=N.value,E=N.changed}for(var L=m.length-1;L>0;L-=1)for(var D=!0;f(m[L]-m[L-1])&&D;){var P=c(m,-1,L-1);m[L-1]=P.value,D=P.changed}for(var M=0;M<m.length-1;M+=1)for(var I=!0;f(m[M+1]-m[M])&&I;){var A=c(m,1,M+1);m[M+1]=A.value,I=A.changed}}return{value:m[v],values:m}};return[s,g]}function vM(e){return Bn(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,a=e.maxCount;return[!0,t,!t&&n,r||0,a]},[e])}var gM=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,a=e.className,o=e.style,i=e.classNames,l=e.styles,s=e.id,u=e.disabled,c=u===void 0?!1:u,f=e.keyboard,g=f===void 0?!0:f,h=e.autoFocus,p=e.onFocus,b=e.onBlur,v=e.min,y=v===void 0?0:v,m=e.max,C=m===void 0?100:m,S=e.step,x=S===void 0?1:S,w=e.value,$=e.defaultValue,O=e.range,R=e.count,E=e.onChange,N=e.onBeforeChange,L=e.onAfterChange,D=e.onChangeComplete,P=e.allowCross,M=P===void 0?!0:P,I=e.pushable,A=I===void 0?!1:I,T=e.reverse,j=e.vertical,B=e.included,H=B===void 0?!0:B,_=e.startPoint,W=e.trackStyle,q=e.handleStyle,G=e.railStyle,k=e.dotStyle,z=e.activeDotStyle,V=e.marks,F=e.dots,X=e.handleRender,Y=e.activeHandleRender,U=e.track,J=e.tabIndex,re=J===void 0?0:J,ne=e.ariaLabelForHandle,te=e.ariaLabelledByForHandle,de=e.ariaRequired,ae=e.ariaValueTextFormatterForHandle,ge=d.useRef(null),Oe=d.useRef(null),xe=d.useMemo(function(){return j?T?"ttb":"btt":T?"rtl":"ltr"},[T,j]),$e=vM(O),Se=ee($e,5),le=Se[0],Me=Se[1],Pe=Se[2],ie=Se[3],pe=Se[4],be=d.useMemo(function(){return isFinite(y)?y:0},[y]),Re=d.useMemo(function(){return isFinite(C)?C:100},[C]),Ie=d.useMemo(function(){return x!==null&&x<=0?1:x},[x]),he=d.useMemo(function(){return typeof A=="boolean"?A?Ie:!1:A>=0?A:!1},[A,Ie]),Ee=d.useMemo(function(){return Object.keys(V||{}).map(function(Be){var Le=V[Be],tt={value:Number(Be)};return Le&&nt(Le)==="object"&&!d.isValidElement(Le)&&("label"in Le||"style"in Le)?(tt.style=Le.style,tt.label=Le.label):tt.label=Le,tt}).filter(function(Be){var Le=Be.label;return Le||typeof Le=="number"}).sort(function(Be,Le){return Be.value-Le.value})},[V]),oe=mM(be,Re,Ie,Ee,M,he),me=ee(oe,2),Te=me[0],se=me[1],we=ln($,{value:w}),Ze=ee(we,2),lt=Ze[0],mt=Ze[1],_e=d.useMemo(function(){var Be=lt==null?[]:Array.isArray(lt)?lt:[lt],Le=ee(Be,1),tt=Le[0],St=tt===void 0?be:tt,Pt=lt===null?[]:[St];if(le){if(Pt=Ne(Be),R||lt===void 0){var en=R>=0?R+1:2;for(Pt=Pt.slice(0,en);Pt.length<en;){var an;Pt.push((an=Pt[Pt.length-1])!==null&&an!==void 0?an:be)}}Pt.sort(function(Ut,Kt){return Ut-Kt})}return Pt.forEach(function(Ut,Kt){Pt[Kt]=Te(Ut)}),Pt},[lt,le,be,R,Te]),ke=function(Le){return le?Le:Le[0]},We=Mt(function(Be){var Le=Ne(Be).sort(function(tt,St){return tt-St});E&&!jl(Le,_e,!0)&&E(ke(Le)),mt(Le)}),ze=Mt(function(Be){Be&&ge.current.hideHelp();var Le=ke(_e);L==null||L(Le),An(!L,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),D==null||D(Le)}),qe=function(Le){if(!(c||!Me||_e.length<=ie)){var tt=Ne(_e);tt.splice(Le,1),N==null||N(ke(tt)),We(tt);var St=Math.max(0,Le-1);ge.current.hideHelp(),ge.current.focus(St)}},vt=fM(Oe,xe,_e,be,Re,Te,We,ze,se,Me,ie),ct=ee(vt,5),Ke=ct[0],Ae=ct[1],it=ct[2],Fe=ct[3],ye=ct[4],Ce=function(Le,tt){if(!c){var St=Ne(_e),Pt=0,en=0,an=Re-be;_e.forEach(function(bn,Pn){var yn=Math.abs(Le-bn);yn<=an&&(an=yn,Pt=Pn),bn<Le&&(en=Pn)});var Ut=Pt;Me&&an!==0&&(!pe||_e.length<pe)?(St.splice(en+1,0,Le),Ut=en+1):St[Pt]=Le,le&&!_e.length&&R===void 0&&St.push(Le);var Kt=ke(St);if(N==null||N(Kt),We(St),tt){var pn,dn;(pn=document.activeElement)===null||pn===void 0||(dn=pn.blur)===null||dn===void 0||dn.call(pn),ge.current.focus(Ut),ye(tt,Ut,St)}else L==null||L(Kt),An(!L,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),D==null||D(Kt)}},De=function(Le){Le.preventDefault();var tt=Oe.current.getBoundingClientRect(),St=tt.width,Pt=tt.height,en=tt.left,an=tt.top,Ut=tt.bottom,Kt=tt.right,pn=Le.clientX,dn=Le.clientY,bn;switch(xe){case"btt":bn=(Ut-dn)/Pt;break;case"ttb":bn=(dn-an)/Pt;break;case"rtl":bn=(Kt-pn)/St;break;default:bn=(pn-en)/St}var Pn=be+bn*(Re-be);Ce(Te(Pn),Le)},Qe=d.useState(null),Ue=ee(Qe,2),ht=Ue[0],$t=Ue[1],ut=function(Le,tt){if(!c){var St=se(_e,Le,tt);N==null||N(ke(_e)),We(St.values),$t(St.value)}};d.useEffect(function(){if(ht!==null){var Be=_e.indexOf(ht);Be>=0&&ge.current.focus(Be)}$t(null)},[ht]);var Et=d.useMemo(function(){return Pe&&Ie===null?!1:Pe},[Pe,Ie]),_t=Mt(function(Be,Le){ye(Be,Le),N==null||N(ke(_e))}),kt=Ke!==-1;d.useEffect(function(){if(!kt){var Be=_e.lastIndexOf(Ae);ge.current.focus(Be)}},[kt]);var Rt=d.useMemo(function(){return Ne(Fe).sort(function(Be,Le){return Be-Le})},[Fe]),Ht=d.useMemo(function(){return le?[Rt[0],Rt[Rt.length-1]]:[be,Rt[0]]},[Rt,le,be]),Lt=ee(Ht,2),Qt=Lt[0],He=Lt[1];d.useImperativeHandle(t,function(){return{focus:function(){ge.current.focus(0)},blur:function(){var Le,tt=document,St=tt.activeElement;(Le=Oe.current)!==null&&Le!==void 0&&Le.contains(St)&&(St==null||St.blur())}}}),d.useEffect(function(){h&&ge.current.focus(0)},[]);var Ve=d.useMemo(function(){return{min:be,max:Re,direction:xe,disabled:c,keyboard:g,step:Ie,included:H,includedStart:Qt,includedEnd:He,range:le,tabIndex:re,ariaLabelForHandle:ne,ariaLabelledByForHandle:te,ariaRequired:de,ariaValueTextFormatterForHandle:ae,styles:l||{},classNames:i||{}}},[be,Re,xe,c,g,Ie,H,Qt,He,le,re,ne,te,de,ae,l,i]);return d.createElement(ja.Provider,{value:Ve},d.createElement("div",{ref:Oe,className:ue(r,a,K(K(K(K({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),j),"".concat(r,"-horizontal"),!j),"".concat(r,"-with-marks"),Ee.length)),style:o,onMouseDown:De,id:s},d.createElement("div",{className:ue("".concat(r,"-rail"),i==null?void 0:i.rail),style:Z(Z({},G),l==null?void 0:l.rail)}),U!==!1&&d.createElement(uM,{prefixCls:r,style:W,values:_e,startPoint:_,onStartMove:Et?_t:void 0}),d.createElement(cM,{prefixCls:r,marks:Ee,dots:F,style:k,activeStyle:z}),d.createElement(oM,{ref:ge,prefixCls:r,style:q,values:Fe,draggingIndex:Ke,draggingDelete:it,onStartMove:_t,onOffsetChange:ut,onFocus:p,onBlur:b,handleRender:X,activeHandleRender:Y,onChangeComplete:ze,onDelete:Me?qe:void 0}),d.createElement(lM,{prefixCls:r,marks:Ee,onClick:Ce})))});const hM=Co({}),Vv=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:a}=e,o=Xe(null),i=n&&!r,l=Xe(null);function s(){Ct.cancel(l.current),l.current=null}function u(){l.current=Ct(()=>{var c;(c=o.current)===null||c===void 0||c.forceAlign(),l.current=null})}return d.useEffect(()=>(i?u():s(),s),[i,e.title,a]),d.createElement(Po,Object.assign({ref:ar(o,t)},e,{open:i}))}),pM=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:l,handleColorDisabled:s,calc:u,handleSize:c,handleSizeHover:f,handleActiveColor:g,handleActiveOutlineColor:h,handleLineWidth:p,handleLineWidthHover:b,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},sn(e)),{position:"relative",height:r,margin:`${ve(i)} ${ve(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ve(o)} ${ve(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${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:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ve(p)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:c,height:c,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(p).mul(-1).equal(),insetBlockStart:u(p).mul(-1).equal(),width:u(c).add(u(p).mul(2)).equal(),height:u(c).add(u(p).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:c,height:c,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ve(p)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
417
+ inset-inline-start ${v},
418
+ inset-block-start ${v},
419
+ width ${v},
420
+ height ${v},
421
+ box-shadow ${v},
422
+ outline ${v}
423
+ `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(f).sub(c).div(2).add(b).mul(-1).equal(),insetBlockStart:u(f).sub(c).div(2).add(b).mul(-1).equal(),width:u(f).add(u(b).mul(2)).equal(),height:u(f).add(u(b).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ve(b)} ${g}`,outline:`6px solid ${h}`,width:f,height:f,insetInlineStart:e.calc(c).sub(f).div(2).equal(),insetBlockStart:e.calc(c).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:a,height:a,backgroundColor:e.colorBgElevated,border:`${ve(p)} 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`},[`
424
+ ${t}-dot
425
+ `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:c,height:c,boxShadow:`0 0 0 ${ve(p)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`
426
+ ${t}-mark-text,
427
+ ${t}-dot
428
+ `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Z1=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:l}=e,s=t?"paddingBlock":"paddingInline",u=t?"width":"height",c=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",g=t?"top":"insetInlineStart",h=l(r).mul(3).sub(a).div(2).equal(),p=l(a).sub(r).div(2).equal(),b=t?{borderWidth:`${ve(p)} 0`,transform:`translateY(${ve(l(p).mul(-1).equal())})`}:{borderWidth:`0 ${ve(p)}`,transform:`translateX(${ve(e.calc(p).mul(-1).equal())})`};return{[s]:r,[c]:l(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[c]:r},[`${n}-track,${n}-tracks`]:{[c]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[g]:l(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[g]:r,[u]:"100%",[c]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(o).div(2).equal()}}},bM=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Z1(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},yM=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Z1(e,!1)),{height:"100%"})}},CM=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,l=new Dt(i).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:l,handleColorDisabled:new Dt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},SM=Rn("Slider",e=>{const t=Bt(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[pM(t),bM(t),yM(t)]},CM);function zc(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{Ct.cancel(n.current)},a=o=>{r(),o?t(o):n.current=Ct(()=>{t(o)})};return d.useEffect(()=>r,[]),[e,a]}var xM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function wM(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const Wv=ce.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:l,tooltipPrefixCls:s,tipFormatter:u,tooltipVisible:c,getTooltipPopupContainer:f,tooltipPlacement:g,tooltip:h={},onChangeComplete:p,classNames:b,styles:v}=e,y=xM(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:m}=e,{getPrefixCls:C,direction:S,className:x,style:w,classNames:$,styles:O,getPopupContainer:R}=Vr("slider"),E=ce.useContext(jn),N=l??E,{handleRender:L,direction:D}=ce.useContext(hM),M=(D||S)==="rtl",[I,A]=zc(),[T,j]=zc(),B=Object.assign({},h),{open:H,placement:_,getPopupContainer:W,prefixCls:q,formatter:G}=B,k=H??c,z=(I||T)&&k!==!1,V=wM(G,u),[F,X]=zc(),Y=le=>{p==null||p(le),X(!1)},U=(le,Me)=>le||(Me?M?"left":"right":"top"),J=C("slider",n),[re,ne,te]=SM(J),de=ue(a,x,$.root,b==null?void 0:b.root,o,{[`${J}-rtl`]:M,[`${J}-lock`]:F},ne,te);M&&!y.vertical&&(y.reverse=!y.reverse),ce.useEffect(()=>{const le=()=>{Ct(()=>{j(!1)},1)};return document.addEventListener("mouseup",le),()=>{document.removeEventListener("mouseup",le)}},[]);const ae=r&&!k,ge=L||((le,Me)=>{const{index:Pe}=Me,ie=le.props;function pe(he,Ee,oe){var me,Te,se,we;oe&&((Te=(me=y)[he])===null||Te===void 0||Te.call(me,Ee)),(we=(se=ie)[he])===null||we===void 0||we.call(se,Ee)}const be=Object.assign(Object.assign({},ie),{onMouseEnter:he=>{A(!0),pe("onMouseEnter",he)},onMouseLeave:he=>{A(!1),pe("onMouseLeave",he)},onMouseDown:he=>{j(!0),X(!0),pe("onMouseDown",he)},onFocus:he=>{var Ee;j(!0),(Ee=y.onFocus)===null||Ee===void 0||Ee.call(y,he),pe("onFocus",he,!0)},onBlur:he=>{var Ee;j(!1),(Ee=y.onBlur)===null||Ee===void 0||Ee.call(y,he),pe("onBlur",he,!0)}}),Re=ce.cloneElement(le,be),Ie=(!!k||z)&&V!==null;return ae?Re:ce.createElement(Vv,Object.assign({},B,{prefixCls:C("tooltip",q??s),title:V?V(Me.value):"",value:Me.value,open:Ie,placement:U(_??g,m),key:Pe,classNames:{root:`${J}-tooltip`},getPopupContainer:W||f||R}),Re)}),Oe=ae?(le,Me)=>{const Pe=ce.cloneElement(le,{style:Object.assign(Object.assign({},le.props.style),{visibility:"hidden"})});return ce.createElement(Vv,Object.assign({},B,{prefixCls:C("tooltip",q??s),title:V?V(Me.value):"",open:V!==null&&z,placement:U(_??g,m),key:"tooltip",classNames:{root:`${J}-tooltip`},getPopupContainer:W||f||R,draggingDelete:Me.draggingDelete}),Pe)}:void 0,xe=Object.assign(Object.assign(Object.assign(Object.assign({},O.root),w),v==null?void 0:v.root),i),$e=Object.assign(Object.assign({},O.tracks),v==null?void 0:v.tracks),Se=ue($.tracks,b==null?void 0:b.tracks);return re(ce.createElement(gM,Object.assign({},y,{classNames:Object.assign({handle:ue($.handle,b==null?void 0:b.handle),rail:ue($.rail,b==null?void 0:b.rail),track:ue($.track,b==null?void 0:b.track)},Se?{tracks:Se}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},O.handle),v==null?void 0:v.handle),rail:Object.assign(Object.assign({},O.rail),v==null?void 0:v.rail),track:Object.assign(Object.assign({},O.track),v==null?void 0:v.track)},Object.keys($e).length?{tracks:$e}:{}),step:y.step,range:r,className:de,style:xe,disabled:N,ref:t,prefixCls:J,handleRender:ge,activeHandleRender:Oe,onChangeComplete:Y})))});var $M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},EM=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:$M}))},OM=d.forwardRef(EM);const Q1=(e,t,n,r,a)=>{const{classNames:o,styles:i}=Vr(e),[l,s]=x4([o,t],[i,n],{popup:{_default:"root"}});return d.useMemo(()=>{var u,c;const f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:ue((u=l.popup)===null||u===void 0?void 0:u.root,r)})}),g=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Object.assign(Object.assign({},(c=s.popup)===null||c===void 0?void 0:c.root),a)})});return[f,g]},[l,s,r,a])};function IM(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function MM(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function J1(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=Lp(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[RM,PM]=["week","WeekPicker"],[NM,TM]=["month","MonthPicker"],[AM,FM]=["year","YearPicker"],[DM,LM]=["quarter","QuarterPicker"],[D0,qv]=["time","TimePicker"];var kM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},_M=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:kM}))},HM=d.forwardRef(_M),jM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},zM=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:jM}))},BM=d.forwardRef(zM);const eb=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ce.createElement(ce.Fragment,null,e===D0?ce.createElement(BM,null):ce.createElement(HM,null),t&&n):r,VM=e=>d.createElement(bo,Object.assign({size:"small",type:"primary"},e));function tb(e){return Bn(()=>Object.assign({button:VM},e),[e])}var WM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const qM=e=>Vn((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:l,className:s,style:u,placement:c,size:f,disabled:g,bordered:h=!0,placeholder:p,popupStyle:b,popupClassName:v,dropdownClassName:y,status:m,rootClassName:C,variant:S,picker:x,styles:w,classNames:$,suffixIcon:O}=n,R=WM(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),E=x===D0?"timePicker":"datePicker",N=d.useRef(null),{getPrefixCls:L,direction:D,getPopupContainer:P,rangePicker:M}=gn(Tt),I=L("picker",o),{compactSize:A,compactItemClassnames:T}=ua(I,D),j=L(),[B,H]=ka("rangePicker",S,h),_=or(I),[W,q,G]=j1(I,_),[k,z]=Q1(E,$,w,v||y,b),[V]=J1(n,I),F=tb(l),X=ir(xe=>{var $e;return($e=f??A)!==null&&$e!==void 0?$e:xe}),Y=d.useContext(jn),U=g??Y,J=gn(Mn),{hasFeedback:re,status:ne,feedbackIcon:te}=J,de=d.createElement(eb,{picker:x,hasFeedback:re,feedbackIcon:te,suffixIcon:O});So(r,()=>N.current);const[ae]=Aa("Calendar",Bl),ge=Object.assign(Object.assign({},ae),n.locale),[Oe]=Rs("DatePicker",(a=z.popup.root)===null||a===void 0?void 0:a.zIndex);return W(d.createElement(aa,{space:!0},d.createElement(RO,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${I}-separator`},d.createElement(OM,null)),disabled:U,ref:N,placement:c,placeholder:MM(ge,x,p),suffixIcon:de,prevIcon:d.createElement("span",{className:`${I}-prev-icon`}),nextIcon:d.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:x},R,{className:ue({[`${I}-${X}`]:X,[`${I}-${B}`]:H},oa(I,La(ne,m),re),q,T,s,M==null?void 0:M.className,G,_,C,k.root),style:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),u),z.root),locale:ge.lang,prefixCls:I,getPopupContainer:i||P,generateConfig:e,components:F,direction:D,classNames:{popup:ue(q,G,_,C,k.popup.root)},styles:{popup:Object.assign(Object.assign({},z.popup.root),{zIndex:Oe})},allowClear:V}))))});var UM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const YM=e=>{const t=(s,u)=>{const c=u===qv?"timePicker":"datePicker";return Vn((g,h)=>{var p;const{prefixCls:b,getPopupContainer:v,components:y,style:m,className:C,rootClassName:S,size:x,bordered:w,placement:$,placeholder:O,popupStyle:R,popupClassName:E,dropdownClassName:N,disabled:L,status:D,variant:P,onCalendarChange:M,styles:I,classNames:A,suffixIcon:T}=g,j=UM(g,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:B,direction:H,getPopupContainer:_,[c]:W}=gn(Tt),q=B("picker",b),{compactSize:G,compactItemClassnames:k}=ua(q,H),z=d.useRef(null),[V,F]=ka("datePicker",P,w),X=or(q),[Y,U,J]=j1(q,X);So(h,()=>z.current);const re={showToday:!0},ne=s||g.picker,te=B(),{onSelect:de,multiple:ae}=j,ge=de&&s==="time"&&!ae,Oe=(se,we,Ze)=>{M==null||M(se,we,Ze),ge&&de(se)},[xe,$e]=Q1(c,A,I,E||N,R),[Se,le]=J1(g,q),Me=tb(y),Pe=ir(se=>{var we;return(we=x??G)!==null&&we!==void 0?we:se}),ie=d.useContext(jn),pe=L??ie,be=gn(Mn),{hasFeedback:Re,status:Ie,feedbackIcon:he}=be,Ee=d.createElement(eb,{picker:ne,hasFeedback:Re,feedbackIcon:he,suffixIcon:T}),[oe]=Aa("DatePicker",Bl),me=Object.assign(Object.assign({},oe),g.locale),[Te]=Rs("DatePicker",(p=$e.popup.root)===null||p===void 0?void 0:p.zIndex);return Y(d.createElement(aa,{space:!0},d.createElement(DO,Object.assign({ref:z,placeholder:IM(me,ne,O),suffixIcon:Ee,placement:$,prevIcon:d.createElement("span",{className:`${q}-prev-icon`}),nextIcon:d.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${te}-slide-up`,picker:s,onCalendarChange:Oe},re,j,{locale:me.lang,className:ue({[`${q}-${Pe}`]:Pe,[`${q}-${V}`]:F},oa(q,La(Ie,D),Re),U,k,W==null?void 0:W.className,C,J,X,S,xe.root),style:Object.assign(Object.assign(Object.assign({},W==null?void 0:W.style),m),$e.root),prefixCls:q,getPopupContainer:v||_,generateConfig:e,components:Me,direction:H,disabled:pe,classNames:{popup:ue(U,J,X,S,xe.popup.root)},styles:{popup:Object.assign(Object.assign({},$e.popup.root),{zIndex:Te})},allowClear:Se,removeIcon:le}))))})},n=t(),r=t(RM,PM),a=t(NM,TM),o=t(AM,FM),i=t(DM,LM),l=t(D0,qv);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:l,QuarterPicker:i}},nb=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=YM(e),l=qM(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=a,s.RangePicker=l,s.TimePicker=o,s.QuarterPicker=i,s},Tr=nb(kE),GM=js(Tr,"popupAlign",void 0,"picker");Tr._InternalPanelDoNotUseOrYouWillBeFired=GM;const KM=js(Tr.RangePicker,"popupAlign",void 0,"picker");Tr._InternalRangePanelDoNotUseOrYouWillBeFired=KM;Tr.generatePicker=nb;function XM(e){return e==null?null:typeof e=="object"&&!l2(e)?e:{title:e}}function ns(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const ZM=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
429
+ opacity ${e.motionDurationFast} ${e.motionEaseInOut},
430
+ transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},QM=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ve(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Uv=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},JM=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},sn(e)),QM(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Uv(e,e.controlHeightSM)),"&-large":Object.assign({},Uv(e,e.controlHeightLG))})}},eR=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:o,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:c,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},sn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
431
+ &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:c},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:o0,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ha=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),tR=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
432
+ ${t}-col-xl-24${n}-label`]:ha(e)}}},nR=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
433
+ > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},rR=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ha(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},aR=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
434
+ ${r}-col-24${n}-label,
435
+ ${r}-col-xl-24${n}-label`]:ha(e)},[`@media (max-width: ${ve(e.screenXSMax)})`]:[rR(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ha(e)}}}],[`@media (max-width: ${ve(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ha(e)}}},[`@media (max-width: ${ve(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ha(e)}}},[`@media (max-width: ${ve(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ha(e)}}}}},oR=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),rb=(e,t)=>Bt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),L0=Rn("Form",(e,{rootPrefixCls:t})=>{const n=rb(e,t);return[JM(n),eR(n),ZM(n),tR(n),nR(n),aR(n),fx(n),o0]},oR,{order:-1e3}),Yv=[];function Bc(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const ab=({help:e,helpStatus:t,errors:n=Yv,warnings:r=Yv,className:a,fieldId:o,onVisibleChanged:i})=>{const{prefixCls:l}=d.useContext(d0),s=`${l}-item-explain`,u=or(l),[c,f,g]=L0(l,u),h=d.useMemo(()=>$m(l),[l]),p=ns(n),b=ns(r),v=d.useMemo(()=>e!=null?[Bc(e,"help",t)]:[].concat(Ne(p.map((C,S)=>Bc(C,"error","error",S))),Ne(b.map((C,S)=>Bc(C,"warning","warning",S)))),[e,t,p,b]),y=d.useMemo(()=>{const C={};return v.forEach(({key:S})=>{C[S]=(C[S]||0)+1}),v.map((S,x)=>Object.assign(Object.assign({},S),{key:C[S.key]>1?`${S.key}-fallback-${x}`:S.key}))},[v]),m={};return o&&(m.id=`${o}_help`),c(d.createElement(Oo,{motionDeadline:h.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:i},C=>{const{className:S,style:x}=C;return d.createElement("div",Object.assign({},m,{className:ue(s,S,g,u,a,f),style:x}),d.createElement(T8,Object.assign({keys:y},$m(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:$,error:O,errorStatus:R,className:E,style:N}=w;return d.createElement("div",{key:$,className:ue(E,{[`${s}-${R}`]:R}),style:N},O)}))}))};var iR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const lR=(e,t)=>{const n=d.useContext(jn),{getPrefixCls:r,direction:a,requiredMark:o,colon:i,scrollToFirstError:l,className:s,style:u}=Vr("form"),{prefixCls:c,className:f,rootClassName:g,size:h,disabled:p=n,form:b,colon:v,labelAlign:y,labelWrap:m,labelCol:C,wrapperCol:S,hideRequiredMark:x,layout:w="horizontal",scrollToFirstError:$,requiredMark:O,onFinishFailed:R,name:E,style:N,feedbackIcons:L,variant:D}=e,P=iR(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=ir(h),I=d.useContext(lh),A=d.useMemo(()=>O!==void 0?O:x?!1:o!==void 0?o:!0,[x,O,o]),T=v??i,j=r("form",c),B=or(j),[H,_,W]=L0(j,B),q=ue(j,`${j}-${w}`,{[`${j}-hide-required-mark`]:A===!1,[`${j}-rtl`]:a==="rtl",[`${j}-${M}`]:M},W,B,_,s,f,g),[G]=R1(b),{__INTERNAL__:k}=G;k.name=E;const z=d.useMemo(()=>({name:E,labelAlign:y,labelCol:C,labelWrap:m,wrapperCol:S,layout:w,colon:T,requiredMark:A,itemRef:k.itemRef,form:G,feedbackIcons:L}),[E,y,C,S,w,T,A,G,L]),V=d.useRef(null);d.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},G),{nativeElement:(Y=V.current)===null||Y===void 0?void 0:Y.nativeElement})});const F=(Y,U)=>{if(Y){let J={block:"nearest"};typeof Y=="object"&&(J=Object.assign(Object.assign({},J),Y)),G.scrollToField(U,J)}},X=Y=>{if(R==null||R(Y),Y.errorFields.length){const U=Y.errorFields[0].name;if($!==void 0){F($,U);return}l!==void 0&&F(l,U)}};return H(d.createElement(mp.Provider,{value:D},d.createElement(vh,{disabled:p},d.createElement(Ia.Provider,{value:M},d.createElement(dp,{validateMessages:I},d.createElement(Br.Provider,{value:z},d.createElement(fp,{status:!0},d.createElement(Mo,Object.assign({id:E},P,{name:E,onFinishFailed:X,form:G,ref:V,style:Object.assign(Object.assign({},u),N),className:q})))))))))},sR=d.forwardRef(lR);function cR(e){if(typeof e=="function")return e;const t=Oa(e);return t.length<=1?t[0]:t}const ob=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Mn);return{status:e,errors:t,warnings:n}};ob.Context=Mn;function uR(e){const[t,n]=d.useState(e),r=d.useRef(null),a=d.useRef([]),o=d.useRef(!1);d.useEffect(()=>(o.current=!1,()=>{o.current=!0,Ct.cancel(r.current),r.current=null}),[]);function i(l){o.current||(r.current===null&&(a.current=[],r.current=Ct(()=>{r.current=null,n(s=>{let u=s;return a.current.forEach(c=>{u=c(u)}),u})})),a.current.push(l))}return[t,i]}function dR(){const{itemRef:e}=d.useContext(Br),t=d.useRef({});function n(r,a){const o=a&&typeof a=="object"&&$i(a),i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=ar(e(r),o)),t.current.ref}return n}const fR=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},mR=Is(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=rb(e,t);return fR(n)});var vR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gR=24,hR=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:o,errors:i,warnings:l,_internalItemRender:s,extra:u,help:c,fieldId:f,marginBottom:g,onErrorVisibleChanged:h,label:p}=e,b=`${t}-item`,v=d.useContext(Br),y=d.useMemo(()=>{let P=Object.assign({},a||v.wrapperCol||{});return p===null&&!r&&!a&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(I=>{const A=I?[I]:[],T=mr(v.labelCol,A),j=typeof T=="object"?T:{},B=mr(P,A),H=typeof B=="object"?B:{};"span"in j&&!("offset"in H)&&j.span<gR&&(P=fr(P,[].concat(A,["offset"]),j.span))}),P},[a,v.wrapperCol,v.labelCol,p,r]),m=ue(`${b}-control`,y.className),C=d.useMemo(()=>{const{labelCol:P,wrapperCol:M}=v;return vR(v,["labelCol","wrapperCol"])},[v]),S=d.useRef(null),[x,w]=d.useState(0);Nt(()=>{u&&S.current?w(S.current.clientHeight):w(0)},[u]);const $=d.createElement("div",{className:`${b}-control-input`},d.createElement("div",{className:`${b}-control-input-content`},o)),O=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),R=g!==null||i.length||l.length?d.createElement(d0.Provider,{value:O},d.createElement(ab,{fieldId:f,errors:i,warnings:l,help:c,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:h})):null,E={};f&&(E.id=`${f}_extra`);const N=u?d.createElement("div",Object.assign({},E,{className:`${b}-extra`,ref:S}),u):null,L=R||N?d.createElement("div",{className:`${b}-additional`,style:g?{minHeight:g+x}:{}},R,N):null,D=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:$,errorList:R,extra:N}):d.createElement(d.Fragment,null,$,L);return d.createElement(Br.Provider,{value:C},d.createElement(q1,Object.assign({},y,{className:m}),D),d.createElement(mR,{prefixCls:t}))};var pR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},bR=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:pR}))},yR=d.forwardRef(bR),CR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const SR=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:a,colon:o,required:i,requiredMark:l,tooltip:s,vertical:u})=>{var c;const[f]=Aa("Form"),{labelAlign:g,labelCol:h,labelWrap:p,colon:b}=d.useContext(Br);if(!t)return null;const v=r||h||{},y=a||g,m=`${e}-item-label`,C=ue(m,y==="left"&&`${m}-left`,v.className,{[`${m}-wrap`]:!!p});let S=t;const x=o===!0||b!==!1&&o!==!1;x&&!u&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const $=XM(s);if($){const{icon:D=d.createElement(yR,null)}=$,P=CR($,["icon"]),M=d.createElement(Po,Object.assign({},P),d.cloneElement(D,{className:`${e}-item-tooltip`,title:"",onClick:I=>{I.preventDefault()},tabIndex:null}));S=d.createElement(d.Fragment,null,S,M)}const O=l==="optional",R=typeof l=="function",E=l===!1;R?S=l(S,{required:!!i}):O&&!i&&(S=d.createElement(d.Fragment,null,S,d.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((c=ra.Form)===null||c===void 0?void 0:c.optional))));let N;E?N="hidden":(O||R)&&(N="optional");const L=ue({[`${e}-item-required`]:i,[`${e}-item-required-mark-${N}`]:N,[`${e}-item-no-colon`]:!x});return d.createElement(q1,Object.assign({},v,{className:C}),d.createElement("label",{htmlFor:n,className:L,title:typeof t=="string"?t:""},S))},xR={success:J8,warning:i4,error:Qd,validating:Ms};function ib({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:o,meta:i,noStyle:l,name:s}){const u=`${o}-item`,{feedbackIcons:c}=d.useContext(Br),f=M1(t,n,i,null,!!r,a),{isFormItemInput:g,status:h,hasFeedback:p,feedbackIcon:b,name:v}=d.useContext(Mn),y=d.useMemo(()=>{var m;let C;if(r){const x=r!==!0&&r.icons||c,w=f&&((m=x==null?void 0:x({status:f,errors:t,warnings:n}))===null||m===void 0?void 0:m[f]),$=f?xR[f]:null;C=w!==!1&&$?d.createElement("span",{className:ue(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},w||d.createElement($,null)):null}const S={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:C,isFormItemInput:!0,name:s};return l&&(S.status=(f??h)||"",S.isFormItemInput=g,S.hasFeedback=!!(r??p),S.feedbackIcon=r!==void 0?S.feedbackIcon:b,S.name=s??v),S},[f,r,l,g,h]);return d.createElement(Mn.Provider,{value:y},e)}var wR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function $R(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:o,errors:i,warnings:l,validateStatus:s,meta:u,hasFeedback:c,hidden:f,children:g,fieldId:h,required:p,isRequired:b,onSubItemMetaChange:v,layout:y,name:m}=e,C=wR(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),S=`${t}-item`,{requiredMark:x,layout:w}=d.useContext(Br),$=y||w,O=$==="vertical",R=d.useRef(null),E=ns(i),N=ns(l),L=o!=null,D=!!(L||i.length||l.length),P=!!R.current&&Ns(R.current),[M,I]=d.useState(null);Nt(()=>{if(D&&R.current){const H=getComputedStyle(R.current);I(Number.parseInt(H.marginBottom,10))}},[D,P]);const A=H=>{H||I(null)},j=((H=!1)=>{const _=H?E:u.errors,W=H?N:u.warnings;return M1(_,W,u,"",!!c,s)})(),B=ue(S,n,r,{[`${S}-with-help`]:L||E.length||N.length,[`${S}-has-feedback`]:j&&c,[`${S}-has-success`]:j==="success",[`${S}-has-warning`]:j==="warning",[`${S}-has-error`]:j==="error",[`${S}-is-validating`]:j==="validating",[`${S}-hidden`]:f,[`${S}-${$}`]:$});return d.createElement("div",{className:B,style:a,ref:R},d.createElement(OI,Object.assign({className:`${S}-row`},Er(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(SR,Object.assign({htmlFor:h},e,{requiredMark:x,required:p??b,prefixCls:t,vertical:O})),d.createElement(hR,Object.assign({},e,u,{errors:E,warnings:N,prefixCls:t,status:j,help:o,marginBottom:M,onErrorVisibleChanged:A}),d.createElement(up.Provider,{value:v},d.createElement(ib,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:c,validateStatus:j,name:m},g)))),!!M&&d.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-M}}))}const ER="__SPLIT__";function OR(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const IR=d.memo(({children:e})=>e,(e,t)=>OR(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Gv(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function MR(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:l,children:s,required:u,label:c,messageVariables:f,trigger:g="onChange",validateTrigger:h,hidden:p,help:b,layout:v}=e,{getPrefixCls:y}=d.useContext(Tt),{name:m}=d.useContext(Br),C=cR(s),S=typeof C=="function",x=d.useContext(up),{validateTrigger:w}=d.useContext(Ra),$=h!==void 0?h:w,O=t!=null,R=y("form",o),E=or(R),[N,L,D]=L0(R,E);Kd();const P=d.useContext(vi),M=d.useRef(null),[I,A]=uR({}),[T,j]=ho(()=>Gv()),B=z=>{const V=P==null?void 0:P.getKey(z.name);if(j(z.destroy?Gv():z,!0),n&&b!==!1&&x){let F=z.name;if(z.destroy)F=M.current||F;else if(V!==void 0){const[X,Y]=V;F=[X].concat(Ne(Y)),M.current=F}x(z,F)}},H=(z,V)=>{A(F=>{const X=Object.assign({},F),U=[].concat(Ne(z.name.slice(0,-1)),Ne(V)).join(ER);return z.destroy?delete X[U]:X[U]=z,X})},[_,W]=d.useMemo(()=>{const z=Ne(T.errors),V=Ne(T.warnings);return Object.values(I).forEach(F=>{z.push.apply(z,Ne(F.errors||[])),V.push.apply(V,Ne(F.warnings||[]))}),[z,V]},[I,T.errors,T.warnings]),q=dR();function G(z,V,F){return n&&!p?d.createElement(ib,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:T,errors:_,warnings:W,noStyle:!0,name:t},z):d.createElement($R,Object.assign({key:"row"},e,{className:ue(r,D,E,L),prefixCls:R,fieldId:V,isRequired:F,errors:_,warnings:W,meta:T,onSubItemMetaChange:H,layout:v,name:t}),z)}if(!O&&!S&&!a)return N(G(C));let k={};return typeof c=="string"?k.label=c:t&&(k.label=String(t)),f&&(k=Object.assign(Object.assign({},k),f)),N(d.createElement(c0,Object.assign({},e,{messageVariables:k,trigger:g,validateTrigger:$,onMetaChange:B}),(z,V,F)=>{const X=ti(t).length&&V?V.name:[],Y=I1(X,m),U=u!==void 0?u:!!(l!=null&&l.some(ne=>{if(ne&&typeof ne=="object"&&ne.required&&!ne.warningOnly)return!0;if(typeof ne=="function"){const te=ne(F);return(te==null?void 0:te.required)&&!(te!=null&&te.warningOnly)}return!1})),J=Object.assign({},z);let re=null;if(Array.isArray(C)&&O)re=C;else if(!(S&&(!(i||a)||O))){if(!(a&&!S&&!O))if(d.isValidElement(C)){const ne=Object.assign(Object.assign({},C.props),J);if(ne.id||(ne.id=Y),b||_.length>0||W.length>0||e.extra){const ae=[];(b||_.length>0)&&ae.push(`${Y}_help`),e.extra&&ae.push(`${Y}_extra`),ne["aria-describedby"]=ae.join(" ")}_.length>0&&(ne["aria-invalid"]="true"),U&&(ne["aria-required"]="true"),Ta(C)&&(ne.ref=q(X,C)),new Set([].concat(Ne(ti(g)),Ne(ti($)))).forEach(ae=>{ne[ae]=(...ge)=>{var Oe,xe,$e,Se,le;($e=J[ae])===null||$e===void 0||(Oe=$e).call.apply(Oe,[J].concat(ge)),(le=(Se=C.props)[ae])===null||le===void 0||(xe=le).call.apply(xe,[Se].concat(ge))}});const de=[ne["aria-required"],ne["aria-invalid"],ne["aria-describedby"]];re=d.createElement(IR,{control:J,update:C,childProps:de},po(C,ne))}else S&&(i||a)&&!O?re=C(F):re=C}return G(re,Y,U)}))}const lb=MR;lb.useStatus=ob;var RR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PR=e=>{var{prefixCls:t,children:n}=e,r=RR(e,["prefixCls","children"]);const{getPrefixCls:a}=d.useContext(Tt),o=a("form",t),i=d.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return d.createElement(ip,Object.assign({},r),(l,s,u)=>d.createElement(d0.Provider,{value:i},n(l.map(c=>Object.assign(Object.assign({},c),{fieldKey:c.key})),s,{errors:u.errors,warnings:u.warnings})))};function NR(){const{form:e}=d.useContext(Br);return e}const ft=sR;ft.Item=lb;ft.List=PR;ft.ErrorList=ab;ft.useForm=R1;ft.useFormInstance=NR;ft.useWatch=cp;ft.Provider=dp;ft.create=()=>{};var TR={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"},AR=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:TR}))},FR=d.forwardRef(AR);const DR=e=>{const{getPrefixCls:t,direction:n}=gn(Tt),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[l,s,u]=H1(i),c=ue(o,u,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},s,a),f=gn(Mn),g=Bn(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(Mn.Provider,{value:g},e.children)))},LR=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${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}}}},kR=Rn(["Input","OTP"],e=>{const t=Bt(e,Ao(e));return LR(t)},Fo);var _R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const HR=d.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:o,index:i,mask:l}=e,s=_R(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=d.useContext(Tt),c=u("otp"),f=typeof l=="string"?l:r,g=d.useRef(null);d.useImperativeHandle(t,()=>g.current);const h=v=>{a(i,v.target.value)},p=()=>{Ct(()=>{var v;const y=(v=g.current)===null||v===void 0?void 0:v.input;document.activeElement===y&&y&&y.select()})},b=v=>{const{key:y,ctrlKey:m,metaKey:C}=v;y==="ArrowLeft"?o(i-1):y==="ArrowRight"?o(i+1):y==="z"&&(m||C)?v.preventDefault():y==="Backspace"&&!r&&o(i-1),p()};return d.createElement("span",{className:`${c}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&d.createElement("span",{className:`${c}-mask-icon`,"aria-hidden":"true"},f),d.createElement(Ks,Object.assign({"aria-label":`OTP Input ${i+1}`,type:l===!0?"password":"text"},s,{ref:g,value:r,onInput:h,onFocus:p,onKeyDown:b,onMouseDown:p,onMouseUp:p,className:ue(n,{[`${c}-mask-input`]:l})})))});var jR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function tl(e){return(e||"").split("")}const zR=e=>{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?d.createElement("span",{className:`${n}-separator`},a):null},BR=d.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:l,formatter:s,separator:u,variant:c,disabled:f,status:g,autoFocus:h,mask:p,type:b,onInput:v,inputMode:y}=e,m=jR(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:S}=d.useContext(Tt),x=C("otp",n),w=Fr(m,{aria:!0,data:!0,attr:!0}),[$,O,R]=kR(x),E=ir(q=>a??q),N=d.useContext(Mn),L=La(N.status,g),D=d.useMemo(()=>Object.assign(Object.assign({},N),{status:L,hasFeedback:!1,feedbackIcon:null}),[N,L]),P=d.useRef(null),M=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var q;(q=M.current[0])===null||q===void 0||q.focus()},blur:()=>{var q;for(let G=0;G<r;G+=1)(q=M.current[G])===null||q===void 0||q.blur()},nativeElement:P.current}));const I=q=>s?s(q):q,[A,T]=d.useState(()=>tl(I(o||"")));d.useEffect(()=>{i!==void 0&&T(tl(i))},[i]);const j=Mt(q=>{T(q),v&&v(q),l&&q.length===r&&q.every(G=>G)&&q.some((G,k)=>A[k]!==G)&&l(q.join(""))}),B=Mt((q,G)=>{let k=Ne(A);for(let V=0;V<q;V+=1)k[V]||(k[V]="");G.length<=1?k[q]=G:k=k.slice(0,q).concat(tl(G)),k=k.slice(0,r);for(let V=k.length-1;V>=0&&!k[V];V-=1)k.pop();const z=I(k.map(V=>V||" ").join(""));return k=tl(z).map((V,F)=>V===" "&&!k[F]?k[F]:V),k}),H=(q,G)=>{var k;const z=B(q,G),V=Math.min(q+G.length,r-1);V!==q&&z[q]!==void 0&&((k=M.current[V])===null||k===void 0||k.focus()),j(z)},_=q=>{var G;(G=M.current[q])===null||G===void 0||G.focus()},W={variant:c,disabled:f,status:L,mask:p,type:b,inputMode:y};return $(d.createElement("div",Object.assign({},w,{ref:P,className:ue(x,{[`${x}-sm`]:E==="small",[`${x}-lg`]:E==="large",[`${x}-rtl`]:S==="rtl"},R,O),role:"group"}),d.createElement(Mn.Provider,{value:D},Array.from({length:r}).map((q,G)=>{const k=`otp-${G}`,z=A[G]||"";return d.createElement(d.Fragment,{key:k},d.createElement(HR,Object.assign({ref:V=>{M.current[G]=V},index:G,size:E,htmlSize:1,className:`${x}-input`,onChange:H,value:z,onActiveChange:_,autoFocus:G===0&&h},W)),G<r-1&&d.createElement(zR,{separator:u,index:G,prefixCls:x}))}))))});var VR={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"},WR=function(t,n){return d.createElement(Fn,je({},t,{ref:n,icon:VR}))},qR=d.forwardRef(WR),UR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const YR=e=>e?d.createElement(FR,null):d.createElement(qR,null),GR={click:"onClick",hover:"onMouseOver"},KR=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=YR,suffix:i}=e,l=d.useContext(jn),s=n??l,u=typeof a=="object"&&a.visible!==void 0,[c,f]=jt(()=>u?a.visible:!1),g=Xe(null);d.useEffect(()=>{u&&f(a.visible)},[u,a]);const h=X1(g),p=()=>{var N;if(s)return;c&&h();const L=!c;f(L),typeof a=="object"&&((N=a.onVisibleChange)===null||N===void 0||N.call(a,L))},b=N=>{const L=GR[r]||"",D=o(c),P={[L]:p,className:`${N}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault()},onMouseUp:M=>{M.preventDefault()}};return d.cloneElement(d.isValidElement(D)?D:d.createElement("span",null,D),P)},{className:v,prefixCls:y,inputPrefixCls:m,size:C}=e,S=UR(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=d.useContext(Tt),w=x("input",m),$=x("input-password",y),O=a&&b($),R=ue($,v,{[`${$}-${C}`]:!!C}),E=Object.assign(Object.assign({},Er(S,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:w,suffix:d.createElement(d.Fragment,null,O,i)});return C&&(E.size=C),d.createElement(Ks,Object.assign({ref:ar(t,g)},E))});var XR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZR=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:l=!1,addonAfter:s,loading:u,disabled:c,onSearch:f,onChange:g,onCompositionStart:h,onCompositionEnd:p,variant:b,onPressEnter:v}=e,y=XR(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:m,direction:C}=d.useContext(Tt),S=d.useRef(!1),x=m("input-search",n),w=m("input",r),{compactSize:$}=ua(x,C),O=ir(W=>{var q;return(q=o??$)!==null&&q!==void 0?q:W}),R=d.useRef(null),E=W=>{W!=null&&W.target&&W.type==="click"&&f&&f(W.target.value,W,{source:"clear"}),g==null||g(W)},N=W=>{var q;document.activeElement===((q=R.current)===null||q===void 0?void 0:q.input)&&W.preventDefault()},L=W=>{var q,G;f&&f((G=(q=R.current)===null||q===void 0?void 0:q.input)===null||G===void 0?void 0:G.value,W,{source:"input"})},D=W=>{S.current||u||(v==null||v(W),L(W))},P=typeof l=="boolean"?d.createElement(Dp,null):null,M=`${x}-button`;let I;const A=l||{},T=A.type&&A.type.__ANT_BUTTON===!0;T||A.type==="button"?I=po(A,Object.assign({onMouseDown:N,onClick:W=>{var q,G;(G=(q=A==null?void 0:A.props)===null||q===void 0?void 0:q.onClick)===null||G===void 0||G.call(q,W),L(W)},key:"enterButton"},T?{className:M,size:O}:{})):I=d.createElement(bo,{className:M,color:l?"primary":"default",size:O,disabled:c,key:"enterButton",onMouseDown:N,onClick:L,loading:u,icon:P,variant:b==="borderless"||b==="filled"||b==="underlined"?"text":l?"solid":void 0},l),s&&(I=[I,po(s,{key:"addonAfter"})]);const j=ue(x,{[`${x}-rtl`]:C==="rtl",[`${x}-${O}`]:!!O,[`${x}-with-button`]:!!l},a),B=W=>{S.current=!0,h==null||h(W)},H=W=>{S.current=!1,p==null||p(W)},_=Object.assign(Object.assign({},y),{className:j,prefixCls:w,type:"search",size:O,variant:b,onPressEnter:D,onCompositionStart:B,onCompositionEnd:H,addonAfter:I,suffix:i,onChange:E,disabled:c});return d.createElement(Ks,Object.assign({ref:ar(R,t)},_))});var QR=`
436
+ min-height:0 !important;
437
+ max-height:none !important;
438
+ height:0 !important;
439
+ visibility:hidden !important;
440
+ overflow:hidden !important;
441
+ position:absolute !important;
442
+ z-index:-1000 !important;
443
+ top:0 !important;
444
+ right:0 !important;
445
+ pointer-events: none !important;
446
+ `,JR=["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"],Vc={},tr;function eP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Vc[n])return Vc[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=JR.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),s={sizingStyle:l,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(Vc[n]=s),s}function tP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;tr||(tr=document.createElement("textarea"),tr.setAttribute("tab-index","-1"),tr.setAttribute("aria-hidden","true"),tr.setAttribute("name","hiddenTextarea"),document.body.appendChild(tr)),e.getAttribute("wrap")?tr.setAttribute("wrap",e.getAttribute("wrap")):tr.removeAttribute("wrap");var a=eP(e,t),o=a.paddingSize,i=a.borderSize,l=a.boxSizing,s=a.sizingStyle;tr.setAttribute("style","".concat(s,";").concat(QR)),tr.value=e.value||e.placeholder||"";var u=void 0,c=void 0,f,g=tr.scrollHeight;if(l==="border-box"?g+=i:l==="content-box"&&(g-=o),n!==null||r!==null){tr.value=" ";var h=tr.scrollHeight-o;n!==null&&(u=h*n,l==="border-box"&&(u=u+o+i),g=Math.max(u,g)),r!==null&&(c=h*r,l==="border-box"&&(c=c+o+i),f=g>c?"":"hidden",g=Math.min(c,g))}var p={height:g,overflowY:f,resize:"none"};return u&&(p.minHeight=u),c&&(p.maxHeight=c),p}var nP=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Wc=0,qc=1,Uc=2,rP=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,l=n.onResize,s=n.className,u=n.style,c=n.disabled,f=n.onChange;n.onInternalAutoSize;var g=wt(n,nP),h=ln(a,{value:o,postState:function(W){return W??""}}),p=ee(h,2),b=p[0],v=p[1],y=function(W){v(W.target.value),f==null||f(W)},m=d.useRef();d.useImperativeHandle(t,function(){return{textArea:m.current}});var C=d.useMemo(function(){return i&&nt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=ee(C,2),x=S[0],w=S[1],$=!!i,O=d.useState(Uc),R=ee(O,2),E=R[0],N=R[1],L=d.useState(),D=ee(L,2),P=D[0],M=D[1],I=function(){N(Wc)};Nt(function(){$&&I()},[o,x,w,$]),Nt(function(){if(E===Wc)N(qc);else if(E===qc){var _=tP(m.current,!1,x,w);N(Uc),M(_)}},[E]);var A=d.useRef(),T=function(){Ct.cancel(A.current)},j=function(W){E===Uc&&(l==null||l(W),i&&(T(),A.current=Ct(function(){I()})))};d.useEffect(function(){return T},[]);var B=$?P:null,H=Z(Z({},u),B);return(E===Wc||E===qc)&&(H.overflowY="hidden",H.overflowX="hidden"),d.createElement(Lr,{onResize:j,disabled:!(i||l)},d.createElement("textarea",je({},g,{ref:m,style:H,className:ue(r,s,K({},"".concat(r,"-disabled"),c)),disabled:c,value:b,onChange:y})))}),aP=["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"],oP=ce.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,l=e.onChange,s=e.allowClear,u=e.maxLength,c=e.onCompositionStart,f=e.onCompositionEnd,g=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,b=e.showCount,v=e.count,y=e.className,m=e.style,C=e.disabled,S=e.hidden,x=e.classNames,w=e.styles,$=e.onResize,O=e.onClear,R=e.onPressEnter,E=e.readOnly,N=e.autoSize,L=e.onKeyDown,D=wt(e,aP),P=ln(r,{value:a,defaultValue:r}),M=ee(P,2),I=M[0],A=M[1],T=I==null?"":String(I),j=ce.useState(!1),B=ee(j,2),H=B[0],_=B[1],W=ce.useRef(!1),q=ce.useState(null),G=ee(q,2),k=G[0],z=G[1],V=Xe(null),F=Xe(null),X=function(){var oe;return(oe=F.current)===null||oe===void 0?void 0:oe.textArea},Y=function(){X().focus()};So(t,function(){var Ee;return{resizableTextArea:F.current,focus:Y,blur:function(){X().blur()},nativeElement:((Ee=V.current)===null||Ee===void 0?void 0:Ee.nativeElement)||X()}}),Zt(function(){_(function(Ee){return!C&&Ee})},[C]);var U=ce.useState(null),J=ee(U,2),re=J[0],ne=J[1];ce.useEffect(function(){if(re){var Ee;(Ee=X()).setSelectionRange.apply(Ee,Ne(re))}},[re]);var te=Y1(v,b),de=(n=te.max)!==null&&n!==void 0?n:u,ae=Number(de)>0,ge=te.strategy(T),Oe=!!de&&ge>de,xe=function(oe,me){var Te=me;!W.current&&te.exceedFormatter&&te.max&&te.strategy(me)>te.max&&(Te=te.exceedFormatter(me,{max:te.max}),me!==Te&&ne([X().selectionStart||0,X().selectionEnd||0])),A(Te),ts(oe.currentTarget,oe,l,Te)},$e=function(oe){W.current=!0,c==null||c(oe)},Se=function(oe){W.current=!1,xe(oe,oe.currentTarget.value),f==null||f(oe)},le=function(oe){xe(oe,oe.target.value)},Me=function(oe){oe.key==="Enter"&&R&&R(oe),L==null||L(oe)},Pe=function(oe){_(!0),o==null||o(oe)},ie=function(oe){_(!1),i==null||i(oe)},pe=function(oe){A(""),Y(),ts(X(),oe,l)},be=g,Re;te.show&&(te.showFormatter?Re=te.showFormatter({value:T,count:ge,maxLength:de}):Re="".concat(ge).concat(ae?" / ".concat(de):""),be=ce.createElement(ce.Fragment,null,be,ce.createElement("span",{className:ue("".concat(p,"-data-count"),x==null?void 0:x.count),style:w==null?void 0:w.count},Re)));var Ie=function(oe){var me;$==null||$(oe),(me=X())!==null&&me!==void 0&&me.style.height&&z(!0)},he=!N&&!b&&!s;return ce.createElement(A0,{ref:V,value:T,allowClear:s,handleReset:pe,suffix:be,prefixCls:p,classNames:Z(Z({},x),{},{affixWrapper:ue(x==null?void 0:x.affixWrapper,K(K({},"".concat(p,"-show-count"),b),"".concat(p,"-textarea-allow-clear"),s))}),disabled:C,focused:H,className:ue(y,Oe&&"".concat(p,"-out-of-range")),style:Z(Z({},m),k&&!he?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Re=="string"?Re:void 0}},hidden:S,readOnly:E,onClear:O},ce.createElement(rP,je({},D,{autoSize:N,maxLength:u,onKeyDown:Me,onChange:le,onFocus:Pe,onBlur:ie,onCompositionStart:$e,onCompositionEnd:Se,className:ue(x==null?void 0:x.textarea),style:Z(Z({},w==null?void 0:w.textarea),{},{resize:m==null?void 0:m.resize}),disabled:C,prefixCls:p,onResize:Ie,ref:F,readOnly:E})))});const iP=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
447
+ &-allow-clear > ${t},
448
+ &-affix-wrapper${r}-has-feedback ${t}
449
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},lP=Rn(["Input","TextArea"],e=>{const t=Bt(e,Ao(e));return iP(t)},Fo,{resetFont:!1});var sP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cP=Vn((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,size:o,disabled:i,status:l,allowClear:s,classNames:u,rootClassName:c,className:f,style:g,styles:h,variant:p,showCount:b,onMouseDown:v,onResize:y}=e,m=sP(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:C,direction:S,allowClear:x,autoComplete:w,className:$,style:O,classNames:R,styles:E}=Vr("textArea"),N=d.useContext(jn),L=i??N,{status:D,hasFeedback:P,feedbackIcon:M}=d.useContext(Mn),I=La(D,l),A=d.useRef(null);d.useImperativeHandle(t,()=>{var te;return{resizableTextArea:(te=A.current)===null||te===void 0?void 0:te.resizableTextArea,focus:de=>{var ae,ge;T0((ge=(ae=A.current)===null||ae===void 0?void 0:ae.resizableTextArea)===null||ge===void 0?void 0:ge.textArea,de)},blur:()=>{var de;return(de=A.current)===null||de===void 0?void 0:de.blur()}}});const T=C("input",r),j=or(T),[B,H,_]=_1(T,c),[W]=lP(T,j),{compactSize:q,compactItemClassnames:G}=ua(T,S),k=ir(te=>{var de;return(de=o??q)!==null&&de!==void 0?de:te}),[z,V]=ka("textArea",p,a),F=K1(s??x),[X,Y]=d.useState(!1),[U,J]=d.useState(!1),re=te=>{Y(!0),v==null||v(te);const de=()=>{Y(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},ne=te=>{var de,ae;if(y==null||y(te),X&&typeof getComputedStyle=="function"){const ge=(ae=(de=A.current)===null||de===void 0?void 0:de.nativeElement)===null||ae===void 0?void 0:ae.querySelector("textarea");ge&&getComputedStyle(ge).resize==="both"&&J(!0)}};return B(W(d.createElement(oP,Object.assign({autoComplete:w},m,{style:Object.assign(Object.assign({},O),g),styles:Object.assign(Object.assign({},E),h),disabled:L,allowClear:F,className:ue(_,j,f,c,G,$,U&&`${T}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),R),{textarea:ue({[`${T}-sm`]:k==="small",[`${T}-lg`]:k==="large"},H,u==null?void 0:u.textarea,R.textarea,X&&`${T}-mouse-active`),variant:ue({[`${T}-${z}`]:V},oa(T,I)),affixWrapper:ue(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:S==="rtl",[`${T}-affix-wrapper-sm`]:k==="small",[`${T}-affix-wrapper-lg`]:k==="large",[`${T}-textarea-show-count`]:b||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:T,suffix:P&&d.createElement("span",{className:`${T}-textarea-suffix`},M),showCount:b,ref:A,onResize:ne,onMouseDown:re}))))}),mn=Ks;mn.Group=DR;mn.Search=ZR;mn.TextArea=cP;mn.Password=KR;mn.OTP=BR;var uP=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],sb=d.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,l=e.defaultChecked,s=e.disabled,u=e.loadingIcon,c=e.checkedChildren,f=e.unCheckedChildren,g=e.onClick,h=e.onChange,p=e.onKeyDown,b=wt(e,uP),v=ln(!1,{value:i,defaultValue:l}),y=ee(v,2),m=y[0],C=y[1];function S(O,R){var E=m;return s||(E=O,C(E),h==null||h(E,R)),E}function x(O){O.which===et.LEFT?S(!1,O):O.which===et.RIGHT&&S(!0,O),p==null||p(O)}function w(O){var R=S(!m,O);g==null||g(R,O)}var $=ue(a,o,(n={},K(n,"".concat(a,"-checked"),m),K(n,"".concat(a,"-disabled"),s),n));return d.createElement("button",je({},b,{type:"button",role:"switch","aria-checked":m,disabled:s,className:$,ref:t,onKeyDown:x,onClick:w}),u,d.createElement("span",{className:"".concat(a,"-inner")},d.createElement("span",{className:"".concat(a,"-inner-checked")},c),d.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});sb.displayName="Switch";const dP=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:l,calc:s}=e,u=`${t}-inner`,c=ve(s(l).add(s(r).mul(2)).equal()),f=ve(s(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:ve(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${f})`,marginInlineEnd:`calc(100% - ${c} + ${f})`},[`${u}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${f})`,marginInlineEnd:`calc(-100% + ${c} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ve(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},fP=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},mP=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${ve(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},vP=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:l}=e,s=`${t}-inner`,u=ve(l(i).add(l(r).mul(2)).equal()),c=ve(l(o).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${c})`,marginInlineEnd:`calc(100% - ${u} + ${c})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${c})`,marginInlineEnd:`calc(-100% + ${u} - ${c})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},gP=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},sn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ve(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Sh(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},hP=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,l=2,s=o-l*2,u=i-l*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:s*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:a,handleSize:s,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Dt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},pP=Rn("Switch",e=>{const t=Bt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[gP(t),vP(t),mP(t),fP(t),dP(t)]},hP);var bP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const yP=d.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:l,style:s,checked:u,value:c,defaultChecked:f,defaultValue:g,onChange:h}=e,p=bP(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,v]=ln(!1,{value:u??c,defaultValue:f??g}),{getPrefixCls:y,direction:m,switch:C}=d.useContext(Tt),S=d.useContext(jn),x=(a??S)||o,w=y("switch",n),$=d.createElement("div",{className:`${w}-handle`},o&&d.createElement(Ms,{className:`${w}-loading-icon`})),[O,R,E]=pP(w),N=ir(r),L=ue(C==null?void 0:C.className,{[`${w}-small`]:N==="small",[`${w}-loading`]:o,[`${w}-rtl`]:m==="rtl"},i,l,R,E),D=Object.assign(Object.assign({},C==null?void 0:C.style),s),P=(...M)=>{v(M[0]),h==null||h.apply(void 0,M)};return O(d.createElement(Mi,{component:"Switch",disabled:x},d.createElement(sb,Object.assign({},p,{checked:b,onChange:P,prefixCls:w,className:L,style:D,disabled:x,ref:t,loadingIcon:$}))))}),md=yP;md.__ANT_SWITCH=!0;const CP=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),l=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},sn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},k0=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return Bt(e,{tagFontSize:a,tagLineHeight:ve(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},_0=e=>({defaultBg:new Dt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),cb=Rn("Tag",e=>{const t=k0(e);return CP(t)},_0);var SP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const xP=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:o,children:i,icon:l,onChange:s,onClick:u}=e,c=SP(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:g}=d.useContext(Tt),h=C=>{s==null||s(!o),u==null||u(C)},p=f("tag",n),[b,v,y]=cb(p),m=ue(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},g==null?void 0:g.className,a,v,y);return b(d.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),g==null?void 0:g.style),className:m,onClick:h}),l,d.createElement("span",null,i)))}),wP=e=>wh(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),$P=Is(["Tag","preset"],e=>{const t=k0(e);return wP(t)},_0);function EP(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const nl=(e,t,n)=>{const r=EP(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},OP=Is(["Tag","status"],e=>{const t=k0(e);return[nl(t,"success","Success"),nl(t,"processing","Info"),nl(t,"error","Error"),nl(t,"warning","Warning")]},_0);var IP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const MP=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:l,color:s,onClose:u,bordered:c=!0,visible:f}=e,g=IP(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:p,tag:b}=d.useContext(Tt),[v,y]=d.useState(!0),m=Er(g,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&y(f)},[f]);const C=Wp(s),S=oE(s),x=C||S,w=Object.assign(Object.assign({backgroundColor:s&&!x?s:void 0},b==null?void 0:b.style),o),$=h("tag",n),[O,R,E]=cb($),N=ue($,b==null?void 0:b.className,{[`${$}-${s}`]:x,[`${$}-has-color`]:s&&!x,[`${$}-hidden`]:!v,[`${$}-rtl`]:p==="rtl",[`${$}-borderless`]:!c},r,a,R,E),L=T=>{T.stopPropagation(),u==null||u(T),!T.defaultPrevented&&y(!1)},[,D]=b4(bm(e),bm(b),{closable:!1,closeIconRender:T=>{const j=d.createElement("span",{className:`${$}-close-icon`,onClick:L},T);return Vh(T,j,B=>({onClick:H=>{var _;(_=B==null?void 0:B.onClick)===null||_===void 0||_.call(B,H),L(H)},className:ue(B==null?void 0:B.className,`${$}-close-icon`)}))}}),P=typeof g.onClick=="function"||i&&i.type==="a",M=l||null,I=M?d.createElement(d.Fragment,null,M,i&&d.createElement("span",null,i)):i,A=d.createElement("span",Object.assign({},m,{ref:t,className:N,style:w}),I,D,C&&d.createElement($P,{key:"preset",prefixCls:$}),S&&d.createElement(OP,{key:"status",prefixCls:$}));return O(P?d.createElement(Mi,{component:"Tag"},A):A)}),ub=MP;ub.CheckableTag=xP;var RP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const{TimePicker:PP,RangePicker:NP}=Tr,TP=d.forwardRef((e,t)=>d.createElement(NP,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),yo=d.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:a,bordered:o}=e,i=RP(e,["addon","renderExtraFooter","variant","bordered"]);const[l]=ka("timePicker",a,o),s=d.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return d.createElement(PP,Object.assign({},i,{mode:void 0,ref:t,renderExtraFooter:s,variant:l}))}),db=js(yo,"popupAlign",void 0,"picker");yo._InternalPanelDoNotUseOrYouWillBeFired=db;yo.RangePicker=TP;yo._InternalPanelDoNotUseOrYouWillBeFired=db;const AP=Ge.div`
450
+ background-color: #ffffff;
451
+ box-shadow: 0 2px 12px rgba(0,0,0,0.08);
452
+ border-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"8px"}};
453
+ height: 90vh;
454
+ overflow: hidden;
455
+ position: relative;
456
+ `,FP=()=>{Zt(()=>{const e="goggle-nav-icon-styles";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=`
457
+ :root { --color-gray: #64748b; --color-blue: #3b82f6; }
458
+ .g-nav-item { position: relative; transition: all .3s ease; border-radius: 8px; }
459
+ .g-nav-icon img { transition: all .3s ease; filter: grayscale(100%) brightness(100%) opacity(.7); }
460
+ .g-nav-text { color: var(--color-gray); transition: color .3s ease; }
461
+ .g-nav-item:not(.active):hover .g-nav-icon img { filter: sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(80%) opacity(1); transform: scale(1.05); }
462
+ .g-nav-item:not(.active):hover .g-nav-text { color: var(--color-blue); font-weight: 500; }
463
+ .g-nav-item.active { background-color: rgba(219,234,254,0.6); }
464
+ .g-nav-item.active .g-nav-icon img { filter: sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(100%) opacity(1); transform: scale(1.05); }
465
+ .g-nav-item.active .g-nav-text { color: var(--color-blue); opacity: .8; font-weight: 500; }
466
+ .g-nav-item.active::before { content: ''; position: absolute; left: 0; top: 30%; bottom: 30%; width: 3px; background: var(--color-blue); border-radius: 0 2px 2px 0; }
467
+ `,document.head.appendChild(t)}},[])},DP=({items:e,activePath:t,defaultOpen:n=!0,open:r,onOpenChange:a,onItemClick:o,logo:i,className:l,style:s,styles:u})=>{const c=la(),f=Hn(Hn({theme:zt,mode:"light"},c),u);FP();const[g,h]=jt(n),p=typeof r=="boolean"?r:g,b=S=>{typeof r=="boolean"||h(S),a==null||a(S)},[v,y]=jt(!1),m=S=>S?typeof S=="string"?Q("img",{src:S,className:"w-6 h-6 transition-all duration-200",alt:"nav"}):S:null,C=Bn(()=>({width:p?"60px":"20px",minWidth:p?"60px":"20px",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}),[p]);return ot(AP,{$theme:f.theme||zt,className:`relative ${l||""}`,style:{...C,...s},children:[Q("div",{onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),className:"absolute top-1/2 -translate-y-1/2 right-1 w-6 h-6 cursor-pointer z-20 transition-all duration-300",onClick:()=>b(!p),"aria-label":p?"\u6536\u8D77":"\u5C55\u5F00",role:"button",children:Q("div",{className:"group flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",children:ot("div",{className:"relative w-4 h-4 flex items-center justify-center",children:[Q("div",{className:`absolute w-[2px] h-3 bg-gray-400 rounded-full transition-all duration-300 ${v?"opacity-0 scale-0":"opacity-100 scale-100"}`}),Q("svg",{viewBox:"0 0 24 24",fill:"none",className:`absolute w-4 h-4 stroke-gray-400 transition-all duration-300 ${v?"opacity-100 scale-100":"opacity-0 scale-0"} ${p?"rotate-0":"rotate-180"}`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:Q("polyline",{points:"15 18 9 12 15 6"})})]})})}),ot("div",{className:"h-full py-6 px-[2px] flex flex-col items-center",style:{opacity:p?1:0,transform:p?"translateX(0)":"translateX(-10px)",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)"},children:[Q("div",{className:"mb-6 transition-transform duration-300 hover:scale-105",children:typeof i=="string"?Q("img",{src:i,className:"w-7 h-7",alt:"logo"}):i||Q("div",{className:"w-7 h-7 rounded bg-gray-100 flex items-center justify-center text-xs text-gray-500",children:"G"})}),Q("div",{className:"w-full gap-y-[2px] mb-10 flex-1 overflow-x-hidden overflow-y-auto scrollbar-none flex flex-col items-center",children:e.map(S=>{const x=!!(t&&S.path&&t.startsWith(S.path)),w=x&&S.activeIcon?S.activeIcon:S.icon;return ot("div",{onClick:()=>!S.disabled&&(o==null?void 0:o(S)),className:`g-nav-item group relative w-full flex flex-col items-center justify-center py-3 px-2 rounded-lg cursor-pointer transition-all duration-200 ${x?"active bg-blue-50":"text-gray-500 hover:bg-gray-50"}`,children:[ot("div",{className:"relative g-nav-icon transition-transform duration-200 group-hover:scale-105",children:[m(w),S.badge&&S.badge>0&&Q("span",{className:"absolute -top-1 -right-1 min-w-[16px] h-4 px-1 rounded-full bg-red-500 text-white text-[10px] leading-4 text-center",children:S.badge>99?"99+":S.badge})]}),Q("div",{className:"mt-1 text-xs text-center g-nav-text transition-colors duration-200",children:S.name})]},S.key)})})]})]})};Ge.div.withConfig({shouldForwardProp:e=>!["itemWidth","itemGap","theme"].includes(e)})`
468
+ position: relative;
469
+ display: flex;
470
+ align-items: flex-end;
471
+ justify-content: center;
472
+ padding: 12px 20px;
473
+ background: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.background)||"rgba(255, 255, 255, 0.18)"}};
474
+ backdrop-filter: saturate(180%) blur(20px);
475
+ -webkit-backdrop-filter: saturate(180%) blur(20px);
476
+ border: 1px solid ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.border)||"rgba(255, 255, 255, 0.28)"}};
477
+ border-radius: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.space)==null?void 0:n.radius)||"14px"}};
478
+ box-shadow: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.shadow)||"0 6px 24px rgba(0, 0, 0, 0.25), inset 0 0.5px 0 rgba(255, 255, 255, 0.4)"}};
479
+ width: fit-content;
480
+ margin: 0 auto;
481
+ min-width: ${e=>e.itemWidth*2}px;
482
+ `;Ge.div.withConfig({shouldForwardProp:e=>!["itemWidth","itemHeight","itemGap","isHovered","magnification"].includes(e)})`
483
+ position: relative;
484
+ width: ${e=>e.itemWidth}px;
485
+ height: ${e=>e.itemHeight}px;
486
+ margin: 0 ${e=>e.itemGap/2}px;
487
+ cursor: pointer;
488
+ transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
489
+ transform: ${e=>e.isHovered?`scale(${e.magnification})`:"scale(1)"};
490
+ transform-origin: center bottom;
491
+ z-index: ${e=>e.isHovered?10:1};
492
+ `;Ge.img.withConfig({shouldForwardProp:e=>!["isActive"].includes(e)})`
493
+ width: 80%;
494
+ height: 80%;
495
+ object-fit: contain;
496
+ border-radius: 8px;
497
+ transition: all 0.15s ease;
498
+ filter: ${e=>e.isActive?"none":"grayscale(0.3) brightness(0.8)"};
499
+
500
+ &:hover {
501
+ filter: none;
502
+ }
503
+ `;Ge.div.withConfig({shouldForwardProp:e=>!["isActive","theme"].includes(e)})`
504
+ position: absolute;
505
+ bottom: -4px;
506
+ left: 40%;
507
+ transform: translateX(-50%);
508
+ width: 6px;
509
+ height: 6px;
510
+ background: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007AFF"}};
511
+ border-radius: 50%;
512
+ opacity: ${e=>e.isActive?1:0};
513
+ transition: opacity 0.2s ease;
514
+ `;Ge.div.withConfig({shouldForwardProp:e=>!["visible","theme"].includes(e)})`
515
+ position: absolute;
516
+ bottom: 100%;
517
+ left: 40%;
518
+ transform: translateX(-50%) translateY(-8px);
519
+ background: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.text)||"rgba(0, 0, 0, 0.8)"}};
520
+ color: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.background)||"white"}};
521
+ padding: 4px 8px;
522
+ border-radius: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
523
+ font-size: 10px;
524
+ white-space: nowrap;
525
+ opacity: ${e=>e.visible?1:0};
526
+ visibility: ${e=>e.visible?"visible":"hidden"};
527
+ transition: all 0.2s ease;
528
+ z-index: 1000;
529
+
530
+ &::after {
531
+ content: '';
532
+ position: absolute;
533
+ top: 100%;
534
+ left: 50%;
535
+ transform: translateX(-50%);
536
+ border: 4px solid transparent;
537
+ border-top-color: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.text)||"rgba(0, 0, 0, 0.8)"}};
538
+ }
539
+ `;const fb=e=>{if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+n[r]},Kv=()=>Math.random().toString(36).substr(2,9),LP=(e,t)=>{const n={...e.formData},r=["name","filename","title","displayName","fileName"],a=["size","fileSize","file_size"],o=["type","fileType","mimeType","contentType"];return t.forEach(i=>{const l=i.name||i.field;l&&(r.includes(l.toLowerCase())&&!n[l]&&(n[l]=e.name),a.includes(l.toLowerCase())&&!n[l]&&(n[l]=fb(e.size)),o.includes(l.toLowerCase())&&!n[l]&&(n[l]=e.type))}),n},kP=async(e,t,n={},r={},a)=>new Promise((o,i)=>{var l;const s=new XMLHttpRequest,u=new URL(t);if(Object.entries(r).forEach(([f,g])=>{u.searchParams.append(f,g)}),(l=n["Content-Type"])==null?void 0:l.includes("application/json")){const f=new FileReader;f.onload=()=>{const g=f.result,h=JSON.stringify({file:g.split(",")[1]});c(h)},f.onerror=()=>i(new Error("\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25")),f.readAsDataURL(e)}else{const f=new FormData;f.append("tableFile",e),c(f)}function c(f){s.upload.addEventListener("progress",g=>{if(g.lengthComputable){const h=Math.round(g.loaded/g.total*100);a==null||a(h)}}),s.addEventListener("load",()=>{if(s.status>=200&&s.status<300)try{const g=JSON.parse(s.responseText);g.data?o(g.data):o(s.responseText)}catch{o(s.responseText)}else{console.log("====xhr.responseText",s.responseText);let g="";try{const p=JSON.parse(s.responseText);p.errorMsg?g=p.errorMsg:p.message?g=p.message:p.error?g=p.error:g=`\u4E0A\u4F20\u5931\u8D25: ${s.status} ${s.statusText}`}catch{g=`\u4E0A\u4F20\u5931\u8D25: ${s.status} ${s.statusText}`}const h=new Error(g);h.response={status:s.status,statusText:s.statusText,data:s.responseText?JSON.parse(s.responseText):null,headers:s.getAllResponseHeaders()},i(h)}}),s.addEventListener("error",()=>{const g=new Error("\u7F51\u7EDC\u9519\u8BEF\uFF0C\u4E0A\u4F20\u5931\u8D25");g.request=s,g.type="network",i(g)}),s.addEventListener("timeout",()=>{const g=new Error("\u8BF7\u6C42\u8D85\u65F6\uFF0C\u4E0A\u4F20\u5931\u8D25");g.request=s,g.type="timeout",i(g)}),s.open("POST",u.toString()),Object.entries(n).forEach(([g,h])=>{s.setRequestHeader(g,h)}),s.send(f)}}),_P=Ge.div`
540
+ border: 2px dashed ${e=>{var t,n,r,a;return e.$isDragOver?((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff":((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.border)||"#dee2e6"}};
541
+ border-radius: 4px;
542
+ background: ${e=>{var t,n,r,a;return e.$isDragOver?`${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}10`:((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.background)||"#f8f9fa"}};
543
+ padding: 24px;
544
+ text-align: center;
545
+ transition: all 0.2s ease;
546
+ cursor: pointer;
547
+ min-height: 200px;
548
+ display: flex;
549
+ flex-direction: column;
550
+ align-items: center;
551
+ justify-content: center;
552
+ gap: 16px;
553
+
554
+ &:hover {
555
+ border-color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
556
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
557
+ }
558
+ `,HP=Ge.div`
559
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
560
+ font-size: 48px;
561
+ margin-bottom: 8px;
562
+ `,jP=Ge.div`
563
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.text)||"#343a40"}};
564
+ font-size: 16px;
565
+ font-weight: 500;
566
+ margin-bottom: 4px;
567
+ `,Xv=Ge.div`
568
+ color: ${e=>{var t,n,r,a;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.textSecondary)||((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.disabledText)||"#6b7280"}};
569
+ font-size: 14px;
570
+ `,zP=Ge.input`
571
+ display: none;
572
+ `,BP=Ge.div`
573
+
574
+ width: 100%;
575
+ max-width: 600px;
576
+ `,VP=Ge.div.attrs({className:"upload-item"})`
577
+ display: flex;
578
+ align-items: center;
579
+ padding: 8px 12px;
580
+ border-bottom: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
581
+ border: ${e=>{var t,n,r,a;return e.$hasForm?"none":e.$status==="error"?`1px solid ${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}`:`1px solid ${((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.border)||"#dee2e6"}`}};
582
+ border-radius: 4px;
583
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#ffffff"}};
584
+ transition: all 0.2s ease;
585
+
586
+ &:hover {
587
+ border-color: ${e=>{var t,n,r,a;return e.$hasForm?"transparent":e.$status==="error"?((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000":((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.primary)||"#007bff"}};
588
+ }
589
+ `,WP=Ge.div`
590
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
591
+ margin-right: 12px;
592
+ flex-shrink: 0;
593
+ `,qP=Ge.div`
594
+ flex: 1;
595
+ min-width: 0;
596
+ `,UP=Ge.div`
597
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.text)||"#343a40"}};
598
+ font-size: 12px;
599
+ font-weight: 400;
600
+ margin-bottom: 2px;
601
+ white-space: nowrap;
602
+ overflow: hidden;
603
+ text-overflow: ellipsis;
604
+ `,YP=Ge.div`
605
+ color: ${e=>{var t,n,r,a;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.textSecondary)||((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.disabledText)||"#6b7280"}};
606
+ font-size: 10px;
607
+ `,GP=Ge.div`
608
+ width: 100%;
609
+ height: 4px;
610
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
611
+ border-radius: 2px;
612
+ overflow: hidden;
613
+ margin-top: 8px;
614
+ position: relative;
615
+
616
+ &::after {
617
+ content: '';
618
+ position: absolute;
619
+ top: 0;
620
+ left: 0;
621
+ height: 100%;
622
+ width: ${e=>e.$progress}%;
623
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
624
+ transition: width 0.3s ease;
625
+ }
626
+ `,KP=Ge.div`
627
+ margin-left: 12px;
628
+ flex-shrink: 0;
629
+ color: ${e=>{var t,n,r,a,o,i,l,s,u,c;switch(e.$status){case"success":return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.success)||"#008000";case"error":return((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.error)||"#FF0000";case"uploading":return((i=(o=e.$theme)==null?void 0:o.colors)==null?void 0:i.primary)||"#007bff";case"pending":return((s=(l=e.$theme)==null?void 0:l.colors)==null?void 0:s.warning)||"#FFA500";default:return((c=(u=e.$theme)==null?void 0:u.colors)==null?void 0:c.disabledText)||"#808080"}}};
630
+ `,XP=Ge.button`
631
+ background: none;
632
+ border: none;
633
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}};
634
+ cursor: pointer;
635
+ padding: 4px;
636
+ border-radius: 4px;
637
+ margin-left: 8px;
638
+ transition: all 0.2s ease;
639
+
640
+ &:hover {
641
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}}20;
642
+ }
643
+ `;Ge.button`
644
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
645
+ border: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
646
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
647
+ padding: 8px 16px;
648
+ border-radius: 4px;
649
+ cursor: pointer;
650
+ display: flex;
651
+ align-items: center;
652
+ gap: 8px;
653
+ font-size: 14px;
654
+ transition: all 0.2s ease;
655
+
656
+ &:hover {
657
+ border-color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
658
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}}10;
659
+ }
660
+ `;Ge.button`
661
+ background: none;
662
+ border: none;
663
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
664
+ cursor: pointer;
665
+ padding: 4px;
666
+ border-radius: 4px;
667
+ margin-left: 8px;
668
+ transition: all 0.2s ease;
669
+ display: flex;
670
+ align-items: center;
671
+
672
+ &:hover {
673
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}}20;
674
+ }
675
+ `;const ZP=Ge.div`
676
+ padding: 0px;
677
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
678
+
679
+ /* 移除边框,避免与外层容器边框重叠 */
680
+ border: none;
681
+ border-radius: 0;
682
+
683
+ /* 添加上方隔离线 */
684
+ border-top: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
685
+
686
+ /* 当有错误时,使用错误状态的隔离线颜色 */
687
+ ${e=>{var t,n;return e.$hasError&&`
688
+ border-top-color: ${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"};
689
+ `}}
690
+
691
+ /* 添加左右内边距,与外层容器对齐 */
692
+ margin: 0 1px;
693
+
694
+ /* 添加背景色区分 */
695
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.listBackground)||"#f9f9f9"}};
696
+ `;Ge.input`
697
+ border: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
698
+ border-radius: 4px;
699
+ padding: 8px 12px;
700
+ font-size: 14px;
701
+ width: 100%;
702
+ margin-top: 8px;
703
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
704
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.text)||"#343a40"}};
705
+
706
+ &:focus {
707
+ outline: none;
708
+ border-color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
709
+ }
710
+ `;const QP=Ge.div`
711
+ /* 基础样式 */
712
+ margin-top: 5px;
713
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
714
+ transition: all 0.2s ease;
715
+
716
+ /* 边框逻辑:有表单时显示边框,无表单时不显示 */
717
+ border: ${e=>{var t,n,r,a;return e.$hasForm?e.$status==="error"?`1px solid ${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}`:`1px solid ${((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.border)||"#dee2e6"}`:"none"}};
718
+
719
+ /* 圆角设置:有表单时设置圆角,无表单时不设置 */
720
+ border-radius: ${e=>e.$hasForm?"4px":"0"};
721
+
722
+ /* 当有表单时的特殊样式 */
723
+ ${e=>e.$hasForm&&`
724
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
725
+
726
+ /* \u786E\u4FDD\u8FB9\u6846\u5B8C\u6574\u5305\u88F9\u6574\u4E2A\u5BB9\u5668 */
727
+ overflow: hidden;
728
+ `}
729
+
730
+ /* 错误状态的特殊样式 */
731
+ ${e=>{var t,n;return e.$status==="error"&&`
732
+ background: ${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}05;
733
+ `}}
734
+
735
+ /* 样式覆盖 */
736
+ .list-my div{
737
+ padding: 2px 2px !important;
738
+ }
739
+
740
+ :where(.css-dev-only-do-not-override-1v28nim).ant-input-textarea-affix-wrapper.ant-input-affix-wrapper >textarea.ant-input{
741
+ min-height: 32px !important;
742
+ }
743
+ `;function fn(e){return e.label?ot("div",{className:"flex items-center gap-2",children:[Q("span",{className:"font-medium text-gray-800 text-sm",children:e.label}),e.required&&Q("span",{className:"text-red-500 font-bold text-sm",children:"*"}),(e.helpText||e.description)&&Q(Po,{title:e.helpText||e.description,placement:"top",children:Q($g,{className:"text-gray-400 hover:text-gray-600 cursor-help transition-colors",size:14})})]}):null}function JP(e=[],t,n={},r="md"){const a=r==="sm"?"28px":"40px",o=r==="sm"?"28px":"40px",i=r==="sm"?"0 8px":"0 12px",l=r==="sm"?"16px":"24px",s=r==="sm"?"12px":"14px",u=ce.useMemo(()=>{var m,C,S,x,w,$;(C=(m=t==null?void 0:t.theme)==null?void 0:m.colors)!=null&&C.border;const O=((x=(S=t==null?void 0:t.theme)==null?void 0:S.colors)==null?void 0:x.primary)||"#3b82f6",R=(($=(w=t==null?void 0:t.theme)==null?void 0:w.colors)==null?void 0:$.textSecondary)||"#9ca3af";return`
744
+ .dynamic-form .ant-form-item-label > label {
745
+ height: auto !important;
746
+ line-height: 1.5 !important;
747
+ margin-bottom: ${r==="sm"?"6px":"8px"} !important;
748
+ font-weight: 500 !important;
749
+ color: #374151 !important;
750
+ font-size: ${s} !important;
751
+ }
752
+ .dynamic-form .ant-form-item {
753
+ margin-bottom: ${l} !important;
754
+ animation: df-fade-in 200ms ease-out both;
755
+ }
756
+
757
+ /* \u53D7\u63A7\u9879\u51FA\u73B0\u7684\u8F7B\u5FAE\u52A8\u753B */
758
+ @keyframes df-fade-in {
759
+ from { opacity: 0; transform: translateY(6px); }
760
+ to { opacity: 1; transform: translateY(0); }
761
+ }
762
+ .df-stagger { animation: df-fade-in 200ms ease-out both; }
763
+
764
+ /* \u9690\u85CFAnt Design\u7684\u5FC5\u586B\u661F\u53F7 */
765
+ .dynamic-form .ant-form-item-required::before {
766
+ display: none !important;
767
+ }
768
+ .dynamic-form .ant-form-item-required::after {
769
+ display: none !important;
770
+ }
771
+
772
+ .dynamic-form .ant-input,
773
+ .dynamic-form .ant-select-selector,
774
+ {
775
+ border-radius: 6px !important;
776
+ border: none !important;
777
+ transition: all 0.2s !important;
778
+
779
+ line-height: ${o} !important;
780
+ padding: ${i} !important;
781
+ font-size: ${s} !important;
782
+ }
783
+
784
+ /* smooth show/hide for controlled items */
785
+ .df-hidden {
786
+ opacity: 0 !important;
787
+ transform: translateY(-4px) !important;
788
+ max-height: 0 !important;
789
+ margin-bottom: 0 !important;
790
+ overflow: hidden !important;
791
+ pointer-events: none !important;
792
+ transition: all 180ms ease !important;
793
+ }
794
+ .df-stagger { transition: all 200ms ease; }
795
+
796
+ .dynamic-form .ant-input-number,
797
+ .dynamic-form .ant-picker {
798
+ line-height: ${o} !important;
799
+ padding: ${i} !important;
800
+ font-size: ${s} !important;
801
+ }
802
+
803
+ .dynamic-form .ant-input{
804
+ padding: 0 6px !important;
805
+ }
806
+ .ant-input-affix-wrapper:where(.css-dev-only-do-not-override-1vjf2v5).ant-input-affix-wrapper {
807
+ padding:0 6px !important;
808
+ }
809
+
810
+ .dynamic-form .ant-input-textarea .ant-input {
811
+ border: none !important;
812
+ background: transparent !important;
813
+ padding: ${r==="sm"?"6px 8px":"8px 12px"} !important;
814
+ min-height: ${r==="sm"?"56px":"80px"} !important;
815
+ resize: vertical !important;
816
+ }
817
+
818
+ /* textarea \u6837\u5F0F\u4FEE\u590D */
819
+ .dynamic-form .ant-input-textarea {
820
+ border-radius: 6px !important;
821
+ border: 1px solid #d1d5db !important;
822
+ transition: all 0.2s !important;
823
+ font-size: ${s} !important;
824
+ }
825
+
826
+ /* \u5BC6\u7801\u6846\u6837\u5F0F\u4FEE\u590D */
827
+ .dynamic-form .ant-input-password {
828
+ height: ${a} !important;
829
+ line-height: ${o} !important;
830
+ padding: 0 0px !important;
831
+ }
832
+ .dynamic-form .ant-input-number .ant-input-number-input {
833
+ padding: 0 0px !important;
834
+ }
835
+ .dynamic-form :where(.css-dev-only-do-not-override-1d4w9r2).ant-input-number .ant-input-number-input{
836
+ padding: 0 0px !important;
837
+ }
838
+ .dynamic-form .ant-input-password .ant-input {
839
+ height: ${r==="sm"?"26px":"38px"} !important;
840
+ line-height: ${r==="sm"?"26px":"38px"} !important;
841
+ padding: ${i} !important;
842
+ border: none !important;
843
+ background: transparent !important;
844
+ }
845
+ /* \u6570\u5B57\u6846\u6837\u5F0F\u4FEE\u590D */
846
+ .dynamic-form .ant-input-number {
847
+ height: ${a} !important;
848
+ line-height: ${o} !important;
849
+ width: 100% !important;
850
+ }
851
+ .dynamic-form .ant-input-number .ant-input-number-input {
852
+ height: ${r==="sm"?"26px":"38px"} !important;
853
+ line-height: ${r==="sm"?"26px":"38px"} !important;
854
+ text-align: left !important;
855
+ }
856
+ .dynamic-form .ant-input:focus,
857
+ .dynamic-form .ant-select-focused .ant-select-selector,
858
+ .dynamic-form .ant-input-number-focused,
859
+ .dynamic-form .ant-picker-focused {
860
+ border-color: ${O} !important;
861
+ box-shadow: 0 0 0 2px ${O}1A !important;
862
+ }
863
+ .dynamic-form .ant-input:hover,
864
+ .dynamic-form .ant-select:hover .ant-select-selector,
865
+ .dynamic-form .ant-input-number:hover,
866
+ .dynamic-form .ant-picker:hover {
867
+ border-color: ${R} !important;
868
+ }
869
+ .ant-form input[type="file"] {
870
+ display: none !important;
871
+ }
872
+
873
+
874
+
875
+ /* \u8BA1\u6570\u5668\u6837\u5F0F\u4F18\u5316\uFF0C\u907F\u514D\u4E0E\u81EA\u5B9A\u4E49\u6837\u5F0F\u51B2\u7A81 */
876
+ .dynamic-form .ant-input-show-count-suffix {
877
+ color: #6b7280 !important;
878
+ font-size: 12px !important;
879
+ margin-left: 8px !important;
880
+ }
881
+
882
+ .dynamic-form .ant-input-textarea-show-count-suffix {
883
+ color: #6b7280 !important;
884
+ font-size: 12px !important;
885
+ text-align: right !important;
886
+ margin-top: 4px !important;
887
+ }
888
+
889
+ /* \u786E\u4FDD\u8BA1\u6570\u5668\u4E0D\u4E0E\u5176\u4ED6\u5143\u7D20\u91CD\u53E0 */
890
+ .dynamic-form .ant-form-item-control-input {
891
+ position: relative !important;
892
+ }
893
+
894
+ .dynamic-form .ant-form-item-control-input-content {
895
+ position: relative !important;
896
+ }
897
+ `},[r,a,o,i,l,s,t]);ce.useEffect(()=>{const m=document.createElement("style");return m.textContent=u,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[u]);const[c,f]=ce.useState(()=>{const m={};return e.forEach(C=>{C.name&&(C.type==="switch"?m[C.name]=n[C.name]??C.defaultValue??!1:["select","radio","checkbox"].includes(C.type)&&(m[C.name]=n[C.name]??C.defaultValue??(C.type==="checkbox"?[]:"")))}),m}),g=ce.useRef();ce.useEffect(()=>{t&&t.formInstance&&!g.current&&(g.current=t.formInstance)},[t]);const h=(m,C,S)=>{var x;if(f(w=>({...w,[m]:C})),g.current&&S){let w=[];if(Array.isArray(S))w=S;else if(typeof S=="object"){const $=String(C);Object.keys(S).forEach(O=>{O!==$&&S[O].forEach(R=>{R&&g.current.setFieldsValue({[R]:void 0})})})}Array.isArray(S)&&((x=e.find($=>$.name===m))==null?void 0:x.type)==="switch"&&!C&&w.forEach($=>{$&&g.current.setFieldsValue({[$]:void 0})})}},p=new Set,b=(()=>{var m,C;try{return((C=(m=t==null?void 0:t.formInstance)==null?void 0:m.getFieldsValue)==null?void 0:C.call(m))||{}}catch{return{}}})(),v=m=>{m.forEach(C=>{if(C){if(C.controlledItems&&C.name){const S=c[C.name];if(Array.isArray(C.controlledItems))C.type==="switch"&&S===!1&&C.controlledItems.forEach(x=>{x&&p.add(x)});else if(typeof C.controlledItems=="object"){const x=new Set;Object.values(C.controlledItems).forEach(O=>{(O||[]).forEach(R=>R&&x.add(R))});const w=String(S??""),$=new Set((C.controlledItems[w]||[]).filter(Boolean));x.forEach(O=>{$.has(O)||p.add(O)})}}(typeof C.hidden=="function"?C.hidden(b):C.hidden===!0)&&C.name&&p.add(C.name),C.type==="col"&&Array.isArray(C.children)&&v(C.children)}})};v(e);const y=e.map((m,C)=>{var S,x,w,$,O,R,E,N,L,D,P,M,I,A,T,j,B,H,_,W,q,G;if(m.name&&p.has(m.name))return null;if(m.type==="divider")return Q("div",{className:"my-3 border-b border-solid border-gray-200"},m.name||`divider-${Math.random()}`);if(m.type==="title"){const k=m.level||1,z={1:"text-[16px]",2:"text-[14px]",3:"text-[12px]"},V=z[k]||z[1];return Q("div",{className:`${V} text-gray-800 mb-4 mt-6 ${m.className||""} df-stagger`,style:{color:"#1f2937",lineHeight:"1.4",fontWeight:k===1?700:k===2?600:500,animationDelay:`${C*30}ms`},children:ot("div",{className:"flex items-center",children:[Q("span",{className:"mr-3",children:m.label}),Q("div",{className:"flex-1 border-b-[1px] border-dashed border-gray-200",style:{borderBottomStyle:"dashed",borderBottomWidth:"1px",borderBottomColor:"#e5e7eb"}})]})},m.name||`title-${Math.random()}`)}if(m.type==="col"){if(!m.children||m.children.length===0)return null;const k=(F,X)=>{var Y,U,J,re,ne,te,de,ae,ge,Oe,xe,$e,Se,le,Me,Pe,ie,pe,be,Re,Ie,he;const Ee=typeof F.hidden=="function"?F.hidden(b):F.hidden===!0;if(F.name&&p.has(F.name)||Ee)return null;const oe={label:F.label?fn(F):void 0,name:F.name,rules:F.name?[{required:F.required,message:F.error||`\u8BF7\u8F93\u5165${F.label}`}]:void 0,className:"mb-6 df-stagger",style:{animationDelay:`${X*30}ms`},labelCol:{span:24},wrapperCol:{span:24},required:!1},me=F.name||F.id||`form-item-${X}`,Te=`${F.className||""} ${r==="sm"?"h-7":"h-10"}`;switch(F.type){case"divider":return Q("div",{className:"my-3 border-b border-solid border-gray-200"},F.name||F.id||`divider-${X}`);case"input":return Q(ft.Item,{...oe,children:Q(mn,{placeholder:F.placeholder,disabled:F.disabled,className:Te})},me);case"select":return Q(ft.Item,{...oe,children:Q(Hr,{placeholder:F.placeholder,disabled:F.disabled,className:Te,value:c[F.name||""],onChange:se=>h(F.name||"",se,F.controlledItems),children:(Y=F.options)==null?void 0:Y.map((se,we)=>Q(Hr.Option,{value:se.value,children:se.render?se.render():se.label},se.value||we))})},me);case"number":return Q(ft.Item,{...oe,children:Q(Go,{addonAfter:F.unit?Q("span",{className:"text-[10px] text-gray-300",children:F.unit}):null,min:(U=F.range)==null?void 0:U.min,max:(J=F.range)==null?void 0:J.max,step:F.step,placeholder:F.placeholder,disabled:F.disabled,className:Te,style:{width:"100%"}})},me);case"password":return Q(ft.Item,{...oe,children:Q(mn.Password,{placeholder:F.placeholder,disabled:F.disabled,className:Te})},me);case"textarea":return Q(ft.Item,{...oe,children:Q(mn.TextArea,{placeholder:F.placeholder,disabled:F.disabled,className:Te,rows:r==="sm"?3:4})},me);case"date":return Q(ft.Item,{...oe,children:Q(Tr,{placeholder:F.placeholder,disabled:F.disabled,className:Te,style:{width:"100%"}})},me);case"radio":return Q(ft.Item,{...oe,children:Q(pi.Group,{options:F.options,disabled:F.disabled,className:F.className})},me);case"switch":return Q(ft.Item,{label:null,colon:!1,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},children:ot("div",{className:"flex items-center justify-between",children:[Q("div",{className:"flex items-center gap-2",children:F.label?fn(F):null}),Q(ft.Item,{name:F.name,valuePropName:"checked",noStyle:!0,children:Q(md,{disabled:F.disabled,checked:c[F.name||""],onChange:se=>h(F.name||"",se,F.controlledItems)})})]})},F.name||`switch-${Math.random()}`);case"slider":return ot("div",{className:"mb-6",children:[ot("div",{className:"flex items-center justify-between mb-3",children:[Q("div",{className:"flex items-center",children:F.label?fn(F):null}),ot("div",{className:"flex items-center gap-2",children:[Q(ft.Item,{name:F.name,noStyle:!0,children:Q(Go,{min:(re=F.range)==null?void 0:re.min,max:(ne=F.range)==null?void 0:ne.max,step:F.step,disabled:F.disabled,className:"h-8 w-20"})}),F.unit&&Q("span",{className:"text-sm text-gray-500",children:F.unit})]})]}),Q(ft.Item,{name:F.name,noStyle:!0,children:Q(Wv,{min:(te=F.range)==null?void 0:te.min,max:(de=F.range)==null?void 0:de.max,step:F.step,disabled:F.disabled,className:F.className})})]},F.name||`slider-${Math.random()}`);case"checkbox":return Q(ft.Item,{...oe,children:Q(es.Group,{options:F.options,disabled:F.disabled,className:F.className})},me);case"email":return Q(ft.Item,{...oe,children:Q(mn,{type:"email",placeholder:F.placeholder,disabled:F.disabled,className:Te})},me);case"time":return Q(ft.Item,{...oe,children:Q(yo,{placeholder:F.placeholder,disabled:F.disabled,className:Te,style:{width:"100%"}})},me);case"datetime":return Q(ft.Item,{...oe,children:Q(Tr,{showTime:!0,placeholder:F.placeholder,disabled:F.disabled,className:Te,style:{width:"100%"}})},me);case"file":return Q(ft.Item,{...oe,children:Q(mn,{type:"file",placeholder:F.placeholder,disabled:F.disabled,className:Te})},me);case"color":return Q(ft.Item,{...oe,children:Q(mn,{type:"color",placeholder:F.placeholder,disabled:F.disabled,className:Te,style:{width:"65px",height:"40px",padding:"4px !important"}})},me);case"json":return Q(ft.Item,{...oe,children:Q(mn.TextArea,{placeholder:F.placeholder,disabled:F.disabled,className:Te,rows:4})},me);case"markdown":return Q(ft.Item,{...oe,children:Q(mn.TextArea,{placeholder:F.placeholder,disabled:F.disabled,className:Te,rows:6})},me);case"uploader":return Q(ft.Item,{...oe,children:Q(Qv,{multiple:((ae=F.uploaderConfig)==null?void 0:ae.multiple)??!0,accept:((ge=F.uploaderConfig)==null?void 0:ge.accept)??"*/*",maxSize:((Oe=F.uploaderConfig)==null?void 0:Oe.maxSize)??100,maxFiles:((xe=F.uploaderConfig)==null?void 0:xe.maxFiles)??10,autoUpload:(($e=F.uploaderConfig)==null?void 0:$e.autoUpload)??!0,url:(Se=F.uploaderConfig)==null?void 0:Se.url,headers:((le=F.uploaderConfig)==null?void 0:le.headers)??{},queryParams:((Me=F.uploaderConfig)==null?void 0:Me.queryParams)??{},itemForm:((Pe=F.uploaderConfig)==null?void 0:Pe.itemForm)??[],buttons:((ie=F.uploaderConfig)==null?void 0:ie.buttons)||[],icons:(pe=F.uploaderConfig)==null?void 0:pe.icons,placeholder:(be=F.uploaderConfig)==null?void 0:be.placeholder,listName:(Re=F.uploaderConfig)==null?void 0:Re.listName,errorMessages:(Ie=F.uploaderConfig)==null?void 0:Ie.errorMessages,onRef:(he=F.uploaderConfig)==null?void 0:he.onRef,styles:t,eventsEmit:(se,we)=>{if(t&&typeof t.eventsEmit=="function"){const Ze=se.startsWith("uploader:")?se:`uploader:${se}`;t.eventsEmit(Ze,{fieldName:F.name,...we})}}})},me);default:return null}},z=m.children.map((F,X)=>k(F,X)),V=F=>{if(!m.percentage||m.percentage.length===0)return"flex-1";const X=m.percentage[F];return X&&X>0?`${X/12*100}%`:"flex-1"};return Q("div",{className:`flex justify-between items-start gap-x-2 ${m.className||""}`,style:{flexDirection:m.direction==="column"?"column":"row",flexWrap:m.wrap?"wrap":"nowrap",gap:m.gap?`${m.gap}px`:"8px",justifyContent:m.justify||"space-between",alignItems:m.align||"start"},children:z.map((F,X)=>Q("div",{style:{width:V(X),flex:m.percentage?"none":"1"},children:F},`col-child-${X}`))},m.name||`col-${Math.random()}`)}if(m.type==="input"){const k=[];return m.required&&k.push({required:!0,message:m.error||`\u8BF7\u8F93\u5165${m.label}`}),m.validate&&k.push({validator:async(z,V)=>{if(V&&m.validate){const F=m.validate(V);if(F)throw new Error(F)}}}),Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:k.length>0?k:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(mn,{placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,maxLength:m.counter,showCount:!!m.counter})},m.name||`input-${Math.random()}`)}if(m.type==="select")return Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u9009\u62E9${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(Hr,{placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,value:c[m.name||""],onChange:k=>h(m.name||"",k,m.controlledItems),children:(S=m.options)==null?void 0:S.map((k,z)=>Q(Hr.Option,{value:k.value,children:k.render?k.render():k.label},k.value||z))})},m.name||`select-${Math.random()}`);if(m.type==="number")return Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u8F93\u5165${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(Go,{addonAfter:m.unit?Q("span",{className:"text-[10px] text-gray-300",children:m.unit}):null,min:(x=m.range)==null?void 0:x.min,max:(w=m.range)==null?void 0:w.max,step:m.step,placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%"}})},m.name||`number-${Math.random()}`);if(m.type==="slider")return ot("div",{className:"mb-6",children:[ot("div",{className:"flex items-center justify-between mb-3",children:[Q("div",{className:"flex items-center",children:m.label?fn(m):null}),ot("div",{className:"flex items-center gap-2",children:[Q(ft.Item,{name:m.name,noStyle:!0,children:Q(Go,{min:($=m.range)==null?void 0:$.min,max:(O=m.range)==null?void 0:O.max,step:m.step,disabled:m.disabled,className:"h-8 w-20"})}),m.unit&&Q("span",{className:"text-sm text-gray-500",children:m.unit})]})]}),Q(ft.Item,{name:m.name,noStyle:!0,children:Q(Wv,{min:(R=m.range)==null?void 0:R.min,max:(E=m.range)==null?void 0:E.max,step:m.step,disabled:m.disabled,className:m.className})})]},m.name||`slider-${Math.random()}`);if(m.type==="switch")return Q(ft.Item,{label:null,colon:!1,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},children:ot("div",{className:"flex items-center justify-between",children:[Q("div",{className:"flex items-center gap-2",children:m.label?fn(m):null}),Q(ft.Item,{name:m.name,valuePropName:"checked",noStyle:!0,children:Q(md,{disabled:m.disabled,checked:m.name?c[m.name]:!1,className:m.className,onChange:k=>m.name&&h(m.name,k,m.controlledItems)})})]})},m.name||`switch-${Math.random()}`);if(m.type==="textarea"){const k=[];return m.required&&k.push({required:!0,message:m.error||`\u8BF7\u8F93\u5165${m.label}`}),m.validate&&k.push({validator:async(z,V)=>{if(V&&m.validate){const F=m.validate(V);if(F)throw new Error(F)}}}),Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:k.length>0?k:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(mn.TextArea,{placeholder:m.placeholder,disabled:m.disabled,rows:r==="sm"?2:3,style:{height:"auto !important"},maxLength:m.counter,showCount:!!m.counter})},m.name||`textarea-${Math.random()}`)}return m.type==="date"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u9009\u62E9${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(Tr,{placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%"}})},m.name||`date-${Math.random()}`):m.type==="radio"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u9009\u62E9${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(pi.Group,{options:m.options,disabled:m.disabled,className:m.className})},m.name||`radio-${Math.random()}`):m.type==="password"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u8F93\u5165${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(mn.Password,{placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`})},m.name||`password-${Math.random()}`):m.type==="checkbox"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u9009\u62E9${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(es.Group,{options:m.options,disabled:m.disabled,className:m.className})},m.name||`checkbox-${Math.random()}`):m.type==="email"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u8F93\u5165${m.label}`},{type:"email",message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u90AE\u7BB1\u5730\u5740"}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(mn,{type:"email",placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`})},m.name||`email-${Math.random()}`):m.type==="time"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u9009\u62E9${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(yo,{placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%"}})},m.name||`time-${Math.random()}`):m.type==="datetime"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u9009\u62E9${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(Tr,{showTime:!0,placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%"}})},m.name||`datetime-${Math.random()}`):m.type==="file"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u9009\u62E9${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(mn,{type:"file",placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`})},m.name||`file-${Math.random()}`):m.type==="color"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u9009\u62E9${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(mn,{type:"color",placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%",height:r==="sm"?"28px":"40px"}})},m.name||`color-${Math.random()}`):m.type==="json"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u8F93\u5165${m.label}`},{validator:(k,z)=>{if(!z)return Promise.resolve();try{return JSON.parse(z),Promise.resolve()}catch{return Promise.reject(new Error("\u8BF7\u8F93\u5165\u6709\u6548\u7684JSON\u683C\u5F0F"))}}}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(mn.TextArea,{placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,rows:4})},m.name||`json-${Math.random()}`):m.type==="markdown"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u8F93\u5165${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(mn.TextArea,{placeholder:m.placeholder,disabled:m.disabled,className:`${m.className||""} ${r==="sm"?"h-7":"h-10"}`,rows:6})},m.name||`markdown-${Math.random()}`):m.type==="uploader"?Q(ft.Item,{label:m.label?fn(m):void 0,name:m.name,rules:m.name?[{required:m.required,message:m.error||`\u8BF7\u4E0A\u4F20${m.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:Q(Qv,{multiple:((N=m.uploaderConfig)==null?void 0:N.multiple)??!0,accept:((L=m.uploaderConfig)==null?void 0:L.accept)??"*/*",maxSize:((D=m.uploaderConfig)==null?void 0:D.maxSize)??100,maxFiles:((P=m.uploaderConfig)==null?void 0:P.maxFiles)??10,autoUpload:((M=m.uploaderConfig)==null?void 0:M.autoUpload)??!0,url:(I=m.uploaderConfig)==null?void 0:I.url,headers:((A=m.uploaderConfig)==null?void 0:A.headers)??{},queryParams:((T=m.uploaderConfig)==null?void 0:T.queryParams)??{},itemForm:((j=m.uploaderConfig)==null?void 0:j.itemForm)??[],buttons:((B=m.uploaderConfig)==null?void 0:B.buttons)||[],icons:(H=m.uploaderConfig)==null?void 0:H.icons,placeholder:(_=m.uploaderConfig)==null?void 0:_.placeholder,listName:(W=m.uploaderConfig)==null?void 0:W.listName,errorMessages:(q=m.uploaderConfig)==null?void 0:q.errorMessages,onRef:(G=m.uploaderConfig)==null?void 0:G.onRef,styles:t,eventsEmit:(k,z)=>{if(t&&typeof t.eventsEmit=="function"){const V=k.startsWith("uploader:")?k:`uploader:${k}`;t.eventsEmit(V,{fieldName:m.name,...z})}}})},m.name||`uploader-${Math.random()}`):null});return ce.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(g)},[t]),y}const eN=`
898
+ .ant-input-password .ant-input-suffix {
899
+ position: absolute !important;
900
+ right: 8px !important;
901
+ top: 50% !important;
902
+ transform: translateY(-50%) !important;
903
+ display: flex !important;
904
+ align-items: center !important;
905
+ justify-content: center !important;
906
+ }
907
+
908
+ .ant-input-password .ant-input-suffix .anticon {
909
+ font-size: 14px !important;
910
+ color: rgba(0, 0, 0, 0.45) !important;
911
+ }
912
+
913
+ .ant-input-password:hover .ant-input-suffix .anticon {
914
+ color: rgba(0, 0, 0, 0.65) !important;
915
+ }
916
+ `,mb=ce.forwardRef(({formItems:e,formProps:t={},initialValues:n={},eventsEmit:r,databaseType:a,styles:o,size:i="md",formConfig:l,title:s,description:u,formWidth:c,...f},g)=>{var h,p,b,v,y,m,C,S,x,w,$,O,R,E;const[N]=ft.useForm(),L=la(),D=Hn(Hn({theme:zt,mode:"light"},L),o),P=Xe({}),M=()=>{const z=N.getFieldsValue(),V=[],F=Y=>{Y==null||Y.forEach(U=>{U&&(U.type==="col"&&Array.isArray(U.children)?F(U.children):U.name&&V.push({name:U.name,type:U.type}))})};F(e);const X=V.map(Y=>{const U=Y.type==="uploader"?P.current[Y.name]||z[Y.name]||[]:z[Y.name];return{name:Y.name,type:Y.type,value:U}});return{formName:(t==null?void 0:t.name)||"",values:z,fields:X,files:P.current,timestamp:new Date().toISOString()}},I=(z,V)=>{typeof r=="function"&&(r("form:change",{formName:(t==null?void 0:t.name)||"",values:V,changedValues:z}),Object.keys(z).forEach(F=>{r("form:fieldChange",{formName:(t==null?void 0:t.name)||"",field:F,value:z[F],allValues:V})}))},A=(z,V)=>{if(z.startsWith("uploader:")){const F=V==null?void 0:V.fieldName;if(F){const X=P.current[F]||[];let Y=X;switch(z){case"uploader:success":{const U=V==null?void 0:V.item;if(U){const J={id:U.id,name:U.name,size:U.size,type:U.type,uploadApiRes:U.uploadApiRes||{},formData:U.formData||{}},re=X.findIndex(ne=>ne.id===J.id);re>=0?(X[re]=J,Y=[...X]):Y=[...X,J]}break}case"uploader:remove":{const U=V==null?void 0:V.itemId;Y=X.filter(J=>J.id!==U);break}case"uploader:formDataChange":{const U=V==null?void 0:V.itemId,J=(V==null?void 0:V.formData)||{};Y=X.map(re=>re.id===U?{...re,formData:J}:re);break}case"uploader:dataChange":{Array.isArray(V==null?void 0:V.items)&&(Y=V.items.map(U=>({id:U.id,name:U.name,size:U.size,type:U.type,uploadApiRes:U.uploadApiRes||{},formData:U.formData||{}})));break}}P.current[F]=Y,N.setFieldsValue({[F]:Y})}}if(typeof r=="function"){const F={formName:(t==null?void 0:t.name)||"",...V};z==="uploader:error"&&F.data===void 0&&(F.data=M()),r(z,F)}},[T,j]=jt(e);Zt(()=>{j(e)},[e]);const B=(z,V)=>{const F=X=>X.map(Y=>Y&&(Y.type==="col"&&Array.isArray(Y.children)?{...Y,children:F(Y.children)}:Y.name===z?{...Y,...V}:Y));j(X=>F(X))},H=z=>{const V=[...T];for(;V.length;){const F=V.shift();if(F){if(F.type==="col"&&Array.isArray(F.children))V.push(...F.children);else if(F.name===z)return F}}},_=JP(T,{...o,eventsEmit:A,formInstance:N},n,i),W=async()=>{try{const z=await N.validateFields();typeof r=="function"?r("form:submit",{formName:(t==null?void 0:t.name)||"",values:z,data:M()}):N.submit(),l!=null&&l.onSubmit?l.onSubmit(z):N.resetFields()}catch(z){typeof r=="function"&&r("form:submit_error",{formName:(t==null?void 0:t.name)||"",error:z,data:M()})}},q=()=>{N.resetFields(),typeof r=="function"&&r("form:reset",{formName:(t==null?void 0:t.name)||"",data:M()}),l!=null&&l.onReset&&l.onReset()},G=()=>{N.resetFields(),typeof r=="function"&&r("form:cancel",{formName:(t==null?void 0:t.name)||"",data:M()})},k=async()=>{try{const z=await N.validateFields(),V=[],F=Y=>{Y==null||Y.forEach(U=>{U&&(U.type==="col"&&Array.isArray(U.children)?F(U.children):U.name&&V.push({name:U.name,type:U.type}))})};F(e);const X=V.map(Y=>{const U=Y.type==="uploader"?P.current[Y.name]||z[Y.name]||[]:z[Y.name];return{name:Y.name,type:Y.type,value:U}});return{fields:X,formName:(t==null?void 0:t.name)||"",fieldCount:X.length,timestamp:new Date().toISOString(),isValid:!0}}catch(z){const V=N.getFieldsValue(),F=[],X=U=>{U==null||U.forEach(J=>{J&&(J.type==="col"&&Array.isArray(J.children)?X(J.children):J.name&&F.push({name:J.name,type:J.type}))})};X(e);const Y=F.map(U=>{const J=U.type==="uploader"?P.current[U.name]||V[U.name]||[]:V[U.name];return{name:U.name,type:U.type,value:J}});return{fields:Y,formName:(t==null?void 0:t.name)||"",fieldCount:Y.length,timestamp:new Date().toISOString(),isValid:!1,errors:z}}};return ce.useImperativeHandle(g,()=>({form:N,getAllData:k,submit:W,reset:q,cancel:G,validate:()=>N.validateFields(),getValue:z=>N.getFieldValue(z),getValues:()=>N.getFieldsValue(),setValues:z=>N.setFieldsValue(z),setFieldProps:(z,V)=>B(z,V),getFieldProps:z=>H(z)}),[N,k,W,q,G]),ot(as,{children:[Q("style",{children:eN}),ot("div",{style:{position:"relative",height:"100%",padding:"24px",width:c||"100%",maxWidth:c||"100%"},children:[(s||u)&&ot("div",{style:{marginBottom:"24px"},children:[s&&Q("h2",{style:{fontSize:"24px",fontWeight:"600",color:((p=(h=D.theme)==null?void 0:h.colors)==null?void 0:p.text)||"#1f2937",margin:"0 0 8px 0"},children:s}),u&&Q("p",{style:{fontSize:"14px",color:((v=(b=D.theme)==null?void 0:b.colors)==null?void 0:v.secondary)||"#6b7280",margin:"0",lineHeight:"1.5"},children:u})]}),ot(ft,{form:N,...t,initialValues:n,onValuesChange:I,...f,style:{...t==null?void 0:t.style,width:"100%",paddingBottom:"30px"},className:"dynamic-form",loading:(t==null?void 0:t.loading)===!0?!0:void 0,children:[_,((l==null?void 0:l.showSubmit)||(l==null?void 0:l.showReset))&&ot("div",{style:{marginTop:"32px",paddingTop:"24px",borderTop:`1px solid ${((m=(y=D.theme)==null?void 0:y.colors)==null?void 0:m.border)||"#e5e7eb"}`,display:"flex",gap:"12px",justifyContent:"flex-end"},children:[(l==null?void 0:l.showReset)&&Q(bo,{onClick:q,style:{borderColor:((S=(C=D.theme)==null?void 0:C.colors)==null?void 0:S.border)||"#e5e7eb",color:((w=(x=D.theme)==null?void 0:x.colors)==null?void 0:w.text)||"#1f2937"},children:(l==null?void 0:l.resetText)||"\u91CD\u7F6E"}),(l==null?void 0:l.showSubmit)&&Q(bo,{type:"primary",onClick:W,style:{backgroundColor:((O=($=D.theme)==null?void 0:$.colors)==null?void 0:O.primary)||"#2563eb",borderColor:((E=(R=D.theme)==null?void 0:R.colors)==null?void 0:E.primary)||"#2563eb"},children:(l==null?void 0:l.submitText)||"\u63D0\u4EA4"})]})]})]})]})});ce.memo(mb);const Zv=!1,tN=(e,t)=>t!=null&&t.fileType?e.startsWith("image/")?t.fileType.image||Q(Ur,{size:20}):e.includes("document")||e.includes("pdf")||e.includes("text")?t.fileType.document||Q(Ur,{size:20}):e.includes("spreadsheet")||e.includes("excel")||e.includes("csv")?t.fileType.spreadsheet||Q(Ur,{size:20}):e.includes("zip")||e.includes("rar")||e.includes("7z")?t.fileType.archive||Q(Ur,{size:20}):e.startsWith("video/")?t.fileType.video||Q(Ur,{size:20}):e.startsWith("audio/")?t.fileType.audio||Q(Ur,{size:20}):t.fileType.default||Q(Ur,{size:20}):Q(Ur,{size:20}),nN=(e,t,n)=>{var r,a,o,i;if(n!=null&&n.itemStatus)switch(e){case"error":return n.itemStatus.error||Q(Ef,{size:20});case"uploading":return n.itemStatus.uploading||Q("span",{style:{fontSize:"12px",color:((r=t==null?void 0:t.colors)==null?void 0:r.primary)||"#007bff"},children:"\u4E0A\u4F20\u4E2D..."});case"success":return n.itemStatus.success||null;case"pending":return n.itemStatus.pending||Q("span",{style:{fontSize:"12px",color:((a=t==null?void 0:t.colors)==null?void 0:a.warning)||"#FFA500"},children:"\u7B49\u5F85\u4E2D"});default:return null}switch(e){case"error":return Q(Ef,{size:20});case"uploading":return Q("span",{style:{fontSize:"12px",color:((o=t==null?void 0:t.colors)==null?void 0:o.primary)||"#007bff"},children:"\u4E0A\u4F20\u4E2D..."});case"pending":return Q("span",{style:{fontSize:"12px",color:((i=t==null?void 0:t.colors)==null?void 0:i.warning)||"#FFA500"},children:"\u7B49\u5F85\u4E2D"});default:return null}};S6`
917
+ .upload-item-container .upload-item {
918
+ padding: 0px !important;
919
+ }
920
+
921
+ .upload-item-container .list-item {
922
+ padding: 0px !important;
923
+ }
924
+ `;const rN=({item:e,index:t,theme:n,itemForm:r,onRemove:a,onToggleExpand:o,onFormDataChange:i,icons:l})=>{var s;return ot(QP,{$theme:n,$status:e.status,$hasForm:r.length>0,children:[ot(VP,{$theme:n,$status:e.status,$hasForm:r.length>0,children:[Q(WP,{$theme:n,children:tN(e.type,l)}),ot(qP,{children:[ot("div",{className:"flex items-center gap-1 line-clamp-1",children:[Q(UP,{$theme:n,children:e.name}),Q(YP,{$theme:n,children:fb(e.size)})]}),e.status==="uploading"&&Q(GP,{$theme:n,$progress:e.progress}),e.status==="error"&&e.error&&Q("div",{style:{color:((s=n==null?void 0:n.colors)==null?void 0:s.error)||"#FF0000",fontSize:"12px",marginTop:"4px"},children:typeof e.error=="string"?e.error:String(e.error)})]}),(()=>{const u=nN(e.status,n,l);return u&&Q(KP,{$theme:n,$status:e.status,children:u})})(),Zv,Q(XP,{$theme:n,onClick:()=>a(e.id),title:"\u79FB\u9664\u6587\u4EF6",children:Q(mC,{size:16})})]}),(r.length>0||Zv)&&Q(ZP,{$theme:n,$hasError:e.status==="error",className:"list-my",children:Q(mb,{formItems:r,initialValues:e.formData||{},size:"sm",formProps:{component:!1},eventsEmit:(u,c)=>{switch(console.log("DynamicForm Event:",u,c),u){case"form:submit":i(e.id,c.values);break;case"form:change":i(e.id,c.values);break;case"form:fieldChange":if(c.field&&c.value!==void 0){const f={...e.formData,[c.field]:c.value};i(e.id,f)}break;case"form:reset":i(e.id,{});break;case"form:validate":c.values&&i(e.id,c.values);break}},styles:{theme:n},style:{padding:"0px"}},`form-${e.id}-always`)})]})},Qv=({multiple:e=!0,accept:t="*/*",maxSize:n=100,maxFiles:r=10,autoUpload:a=!0,url:o="http://localhost:3000/upload",headers:i={},queryParams:l={},itemForm:s=[],styles:u,buttons:c=[],errorMessages:f={},icons:g,eventsEmit:h,onRef:p,placeholder:b,listName:v})=>{var y,m;const C=la(),S=Hn(Hn({theme:zt,mode:"light"},C),u),x=Xe(null),[w,$]=jt(!1),[O,R]=jt([]),E=En(k=>(k??O).map(z=>({id:z.id,name:z.name,status:z.status,error:z.error,uploadApiRes:z.uploadApiRes||{},formData:z.formData||{},file:z.file,size:z.size,type:z.type})),[O]),N=Bn(()=>{if(!b)return null;if(typeof b=="string"){let k=b;return k=k.replace(/<br\s*\/?>(?=\s*)/gi,`
925
+ `),k=k.replace(/\s*\/n\s*/gi,`
926
+ `),k=k.replace(/\\n/g,`
927
+ `),Q(Xv,{$theme:S.theme||zt,style:{textAlign:"center",whiteSpace:"pre-line"},children:k})}return b},[b,S.theme]),L={noUrl:"\u8BF7\u63D0\u4F9B\u4E0A\u4F20\u63A5\u53E3\u5730\u5740 (url)",uploadFailed:"\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",fileTooLarge:`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${n}MB`,invalidFileType:"\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B"},D={...L,...f},P=(k,z)=>D[k]?D[k]:z||L[k],M=k=>{const z=k/1048576;return`${Number(z.toFixed(2))}MB`},I=En((k,z)=>{const V=n*1024*1024,F=[],X=[];if(k.forEach(J=>{J.size>V?F.push(J):X.push(J)}),F.length>0){const J=F.map(ne=>`${ne.name}\uFF08${M(ne.size)}\uFF09`).join("\u3001"),re=`${P("fileTooLarge")}\uFF1A${J}`;h==null||h("uploader:error",{type:"fileTooLarge",message:re,files:F.map(ne=>({name:ne.name,size:ne.size})),limit:`${n}MB`,data:E()})}const Y=Math.max(0,r-z);if(Y<=0){const J=`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20 ${r} \u4E2A\u6587\u4EF6\uFF0C\u5DF2\u5B58\u5728 ${z} \u4E2A\uFF0C\u65E0\u6CD5\u7EE7\u7EED\u6DFB\u52A0\u3002`;return h==null||h("uploader:error",{type:"tooManyFiles",message:J,currentCount:z,tryAdd:k.length,limit:r,data:E()}),[]}const U=X.slice(0,Y);if(X.length>Y){const J=X.length-U.length,re=`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20 ${r} \u4E2A\u6587\u4EF6\uFF0C\u672C\u6B21\u4EC5\u63A5\u53D7 ${U.length} \u4E2A\uFF0C\u5FFD\u7565 ${J} \u4E2A\u3002`;h==null||h("uploader:error",{type:"tooManyFiles",message:re,currentCount:z,accepted:U.length,dropped:J,limit:r,data:E()})}return U},[n,r,P,h,E]),A=Bn(()=>({getUploadItems:()=>O,getUploadItemsData:k=>{let z=O;return k!=null&&k.includeStatus&&(z=z.filter(V=>k.includeStatus.includes(V.status))),k!=null&&k.excludeStatus&&(z=z.filter(V=>!k.excludeStatus.includes(V.status))),z.map(V=>({id:V.id,name:V.name,status:V.status,error:V.error,uploadApiRes:V.uploadApiRes||{},formData:V.formData||{},file:V.file,size:V.size,type:V.type}))},clearUploadItems:()=>{R([]),h==null||h("uploader:clear",{})},setItemError:(k,z)=>{R(V=>V.map(F=>F.id===k?{...F,status:"error",error:z}:F)),h==null||h("uploader:errorSet",{itemId:k,error:z,data:E()})},clearItemError:k=>{R(z=>z.map(V=>V.id===k?{...V,status:"pending",error:void 0}:V)),h==null||h("uploader:errorCleared",{itemId:k,data:E()})},addUploadItems:k=>{const z=I(k,O.length);if(z.length===0)return;const V=z.map(F=>({id:Kv(),file:F,name:F.name,size:F.size,type:F.type,status:"pending",progress:0,formData:{},isExpanded:!1}));R(F=>[...F,...V]),a&&_(V)},removeUploadItem:k=>{R(z=>{const V=z.find(F=>F.id===k);return V&&(h==null||h("uploader:remove",{itemId:k,item:V,data:E(z)})),z.filter(F=>F.id!==k)})},validateFormData:async()=>!(O.some(k=>k.status==="error")||O.some(k=>k.status==="uploading")||!O.some(k=>k.status==="success"))}),[O,a,h,I,E]);Zt(()=>{p&&p(A)},[A,p]);const T=En(k=>{if(!k)return;const z=I(Array.from(k),O.length);if(z.length===0)return;const V=z.map(F=>({id:Kv(),file:F,name:F.name,size:F.size,type:F.type,status:"pending",progress:0,formData:{},isExpanded:!1}));R(F=>[...F,...V]),a&&_(V)},[a,O.length,I]),j=En(k=>{k.preventDefault(),$(!0)},[]),B=En(k=>{k.preventDefault(),$(!1)},[]),H=En(k=>{k.preventDefault(),$(!1),T(k.dataTransfer.files)},[T]),_=En(async k=>{if(!o){console.error(P("noUrl"));return}h==null||h("uploader:start",{items:k,data:E()});for(const z of k)try{R(U=>U.map(J=>J.id===z.id?{...J,status:"uploading"}:J));const V=await kP(z.file,o,i,l,U=>{R(J=>J.map(re=>re.id===z.id?{...re,progress:U}:re)),h==null||h("uploader:progress",{item:{...z,progress:U},data:E()})}),F=LP(z,s),X={...z,status:"success",uploadApiRes:V,progress:100,formData:F,isExpanded:s.length>0},Y=O.map(U=>U.id===z.id?X:U);R(U=>U.map(J=>J.id===z.id?X:J)),h==null||h("uploader:success",{item:X,data:E(Y)})}catch(V){let F="";if(console.log("\u4E0A\u4F20\u9519\u8BEF\u8BE6\u60C5:",V),V&&typeof V=="object"){const U=V;if(U.response&&U.response.data){const J=U.response.data;if(console.log("\u9519\u8BEF\u54CD\u5E94\u6570\u636E:",J),J.errorMsg)F=J.errorMsg;else if(J.message)F=J.message;else if(J.error)F=J.error;else if(J.errorCode)switch(J.errorCode){case"30013":F="\u767B\u5F55\u5931\u6548\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55";break;case"30014":F="\u6CA1\u6709\u6743\u9650\u6267\u884C\u6B64\u64CD\u4F5C";break;case"30015":F="\u6587\u4EF6\u683C\u5F0F\u4E0D\u652F\u6301";break;case"30016":F="\u6587\u4EF6\u5927\u5C0F\u8D85\u51FA\u9650\u5236";break;default:F=`\u64CD\u4F5C\u5931\u8D25 (${J.errorCode})`}}else if(U.message)try{const J=JSON.parse(U.message);if(console.log("\u89E3\u6790\u7684\u9519\u8BEF\u6570\u636E:",J),J.errorMsg)F=J.errorMsg;else if(J.message)F=J.message;else if(J.error)F=J.error;else if(J.errorCode)switch(J.errorCode){case"30013":F="\u767B\u5F55\u5931\u6548\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55";break;case"30014":F="\u6CA1\u6709\u6743\u9650\u6267\u884C\u6B64\u64CD\u4F5C";break;case"30015":F="\u6587\u4EF6\u683C\u5F0F\u4E0D\u652F\u6301";break;case"30016":F="\u6587\u4EF6\u5927\u5C0F\u8D85\u51FA\u9650\u5236";break;default:F=`\u64CD\u4F5C\u5931\u8D25 (${J.errorCode})`}}catch(J){console.log("\u9519\u8BEF\u6D88\u606F\u89E3\u6790\u5931\u8D25:",J),F=U.message}}F||(F=P("uploadFailed")),console.log("\u6700\u7EC8\u4F7F\u7528\u7684\u9519\u8BEF\u4FE1\u606F:",F);const X={...z,status:"error",error:F},Y=O.map(U=>U.id===z.id?X:U);R(U=>U.map(J=>J.id===z.id?X:J)),h==null||h("uploader:error",{item:X,error:F,data:E(Y)})}h==null||h("uploader:complete",{items:O,data:E()})},[o,i,l,h,O,s,D.uploadFailed,E]),W=En(k=>{R(z=>{const V=z.find(F=>F.id===k);return V&&(h==null||h("uploader:remove",{itemId:k,item:V,data:E(z)})),z.filter(F=>F.id!==k)})},[h,E]),q=En(k=>{R(z=>z.map(V=>{if(V.id===k){const F={...V,isExpanded:!V.isExpanded};return console.log("Toggle Expand:",k,F.isExpanded,F.formData),h==null||h("uploader:toggleExpand",{itemId:k,isExpanded:F.isExpanded,item:F,data:E(z)}),F}return V}))},[h,E]),G=En((k,z)=>{console.log("FormData Change:",k,z),R(V=>{const F=V.map(X=>{if(X.id===k){const Y={...X,formData:{...z}};return h==null||h("uploader:formDataChange",{itemId:k,formData:Y.formData,item:Y,data:E(V)}),Y}return X});return h==null||h("uploader:dataChange",{items:F,changedItemId:k,changedFormData:z,data:E(F)}),F})},[h,E]);return ot("div",{children:[ot(_P,{$theme:S.theme||zt,$isDragOver:w,onDragOver:j,onDragLeave:B,onDrop:H,onClick:()=>{var k;x.current&&(x.current.value=""),(k=x.current)==null||k.click()},children:[Q(HP,{$theme:S.theme||zt,children:(g==null?void 0:g.dragUpload)||Q(vC,{size:48})}),N||ot(as,{children:[Q(jP,{$theme:S.theme||zt,children:"\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\u6216\u70B9\u51FB\u9009\u62E9\u6587\u4EF6"}),ot(Xv,{$theme:S.theme||zt,children:["\u652F\u6301 ",t," \u683C\u5F0F\uFF0C\u5355\u4E2A\u6587\u4EF6\u6700\u5927 ",n,"MB",!o&&Q("div",{style:{color:((m=(y=S.theme)==null?void 0:y.colors)==null?void 0:m.error)||"#FF0000",marginTop:"8px",fontSize:"12px"},children:P("noUrl")})]})]})]}),Q(zP,{ref:x,type:"file",multiple:e,accept:t,onChange:k=>{T(k.target.files),k.target.value=""}}),O.length>0&&ot("div",{children:[ot("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",margin:"6px 0px"},children:[Q("div",{className:"text-[14px] font-bold opacity-60",children:v||"\u4E0A\u4F20\u6587\u4EF6\u5217\u8868"}),c.length>0&&Q("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:c.map((k,z)=>Q(to,{mode:k.mode||"default",label:k.label,icon:k.icon,disabled:k.disabled,onClick:k.onClick,styles:u},z))})]}),Q(BP,{$theme:S.theme||zt,children:O.map((k,z)=>Q(rN,{item:k,index:z,itemForm:s,onRemove:W,onToggleExpand:q,onFormDataChange:G,theme:S.theme||zt,icons:g},k.id))})]})]})};function vb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vd={exports:{}},aN=vd.exports,Jv;function gb(){return Jv||(Jv=1,(function(e,t){(function(n,r){e.exports=r()})(aN,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",l="minute",s="hour",u="day",c="week",f="month",g="quarter",h="year",p="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var M=["th","st","nd","rd"],I=P%100;return"["+P+(M[(I-20)%10]||M[I]||M[0])+"]"}},C=function(P,M,I){var A=String(P);return!A||A.length>=M?P:""+Array(M+1-A.length).join(I)+P},S={s:C,z:function(P){var M=-P.utcOffset(),I=Math.abs(M),A=Math.floor(I/60),T=I%60;return(M<=0?"+":"-")+C(A,2,"0")+":"+C(T,2,"0")},m:function P(M,I){if(M.date()<I.date())return-P(I,M);var A=12*(I.year()-M.year())+(I.month()-M.month()),T=M.clone().add(A,f),j=I-T<0,B=M.clone().add(A+(j?-1:1),f);return+(-(A+(I-T)/(j?T-B:B-T))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y:h,w:c,d:u,D:p,h:s,m:l,s:i,ms:o,Q:g}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},x="en",w={};w[x]=m;var $="$isDayjsObject",O=function(P){return P instanceof L||!(!P||!P[$])},R=function P(M,I,A){var T;if(!M)return x;if(typeof M=="string"){var j=M.toLowerCase();w[j]&&(T=j),I&&(w[j]=I,T=j);var B=M.split("-");if(!T&&B.length>1)return P(B[0])}else{var H=M.name;w[H]=M,T=H}return!A&&T&&(x=T),T||!A&&x},E=function(P,M){if(O(P))return P.clone();var I=typeof M=="object"?M:{};return I.date=P,I.args=arguments,new L(I)},N=S;N.l=R,N.i=O,N.w=function(P,M){return E(P,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var L=(function(){function P(I){this.$L=R(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[$]=!0}var M=P.prototype;return M.parse=function(I){this.$d=(function(A){var T=A.date,j=A.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var B=T.match(v);if(B){var H=B[2]-1||0,_=(B[7]||"0").substring(0,3);return j?new Date(Date.UTC(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,_)):new Date(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,_)}}return new Date(T)})(I),this.init()},M.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},M.$utils=function(){return N},M.isValid=function(){return this.$d.toString()!==b},M.isSame=function(I,A){var T=E(I);return this.startOf(A)<=T&&T<=this.endOf(A)},M.isAfter=function(I,A){return E(I)<this.startOf(A)},M.isBefore=function(I,A){return this.endOf(A)<E(I)},M.$g=function(I,A,T){return N.u(I)?this[A]:this.set(T,I)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(I,A){var T=this,j=!!N.u(A)||A,B=N.p(I),H=function(F,X){var Y=N.w(T.$u?Date.UTC(T.$y,X,F):new Date(T.$y,X,F),T);return j?Y:Y.endOf(u)},_=function(F,X){return N.w(T.toDate()[F].apply(T.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(X)),T)},W=this.$W,q=this.$M,G=this.$D,k="set"+(this.$u?"UTC":"");switch(B){case h:return j?H(1,0):H(31,11);case f:return j?H(1,q):H(0,q+1);case c:var z=this.$locale().weekStart||0,V=(W<z?W+7:W)-z;return H(j?G-V:G+(6-V),q);case u:case p:return _(k+"Hours",0);case s:return _(k+"Minutes",1);case l:return _(k+"Seconds",2);case i:return _(k+"Milliseconds",3);default:return this.clone()}},M.endOf=function(I){return this.startOf(I,!1)},M.$set=function(I,A){var T,j=N.p(I),B="set"+(this.$u?"UTC":""),H=(T={},T[u]=B+"Date",T[p]=B+"Date",T[f]=B+"Month",T[h]=B+"FullYear",T[s]=B+"Hours",T[l]=B+"Minutes",T[i]=B+"Seconds",T[o]=B+"Milliseconds",T)[j],_=j===u?this.$D+(A-this.$W):A;if(j===f||j===h){var W=this.clone().set(p,1);W.$d[H](_),W.init(),this.$d=W.set(p,Math.min(this.$D,W.daysInMonth())).$d}else H&&this.$d[H](_);return this.init(),this},M.set=function(I,A){return this.clone().$set(I,A)},M.get=function(I){return this[N.p(I)]()},M.add=function(I,A){var T,j=this;I=Number(I);var B=N.p(A),H=function(q){var G=E(j);return N.w(G.date(G.date()+Math.round(q*I)),j)};if(B===f)return this.set(f,this.$M+I);if(B===h)return this.set(h,this.$y+I);if(B===u)return H(1);if(B===c)return H(7);var _=(T={},T[l]=r,T[s]=a,T[i]=n,T)[B]||1,W=this.$d.getTime()+I*_;return N.w(W,this)},M.subtract=function(I,A){return this.add(-1*I,A)},M.format=function(I){var A=this,T=this.$locale();if(!this.isValid())return T.invalidDate||b;var j=I||"YYYY-MM-DDTHH:mm:ssZ",B=N.z(this),H=this.$H,_=this.$m,W=this.$M,q=T.weekdays,G=T.months,k=T.meridiem,z=function(X,Y,U,J){return X&&(X[Y]||X(A,j))||U[Y].slice(0,J)},V=function(X){return N.s(H%12||12,X,"0")},F=k||function(X,Y,U){var J=X<12?"AM":"PM";return U?J.toLowerCase():J};return j.replace(y,(function(X,Y){return Y||(function(U){switch(U){case"YY":return String(A.$y).slice(-2);case"YYYY":return N.s(A.$y,4,"0");case"M":return W+1;case"MM":return N.s(W+1,2,"0");case"MMM":return z(T.monthsShort,W,G,3);case"MMMM":return z(G,W);case"D":return A.$D;case"DD":return N.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return z(T.weekdaysMin,A.$W,q,2);case"ddd":return z(T.weekdaysShort,A.$W,q,3);case"dddd":return q[A.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return F(H,_,!0);case"A":return F(H,_,!1);case"m":return String(_);case"mm":return N.s(_,2,"0");case"s":return String(A.$s);case"ss":return N.s(A.$s,2,"0");case"SSS":return N.s(A.$ms,3,"0");case"Z":return B}return null})(X)||B.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(I,A,T){var j,B=this,H=N.p(A),_=E(I),W=(_.utcOffset()-this.utcOffset())*r,q=this-_,G=function(){return N.m(B,_)};switch(H){case h:j=G()/12;break;case f:j=G();break;case g:j=G()/3;break;case c:j=(q-W)/6048e5;break;case u:j=(q-W)/864e5;break;case s:j=q/a;break;case l:j=q/r;break;case i:j=q/n;break;default:j=q}return T?j:N.a(j)},M.daysInMonth=function(){return this.endOf(f).$D},M.$locale=function(){return w[this.$L]},M.locale=function(I,A){if(!I)return this.$L;var T=this.clone(),j=R(I,A,!0);return j&&(T.$L=j),T},M.clone=function(){return N.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},P})(),D=L.prototype;return E.prototype=D,[["$ms",o],["$s",i],["$m",l],["$H",s],["$W",u],["$M",f],["$y",h],["$D",p]].forEach((function(P){D[P[1]]=function(M){return this.$g(M,P[0],P[1])}})),E.extend=function(P,M){return P.$i||(P(M,L,E),P.$i=!0),E},E.locale=R,E.isDayjs=O,E.unix=function(P){return E(1e3*P)},E.en=w[x],E.Ls=w,E.p={},E}))})(vd)),vd.exports}var oN=gb();const H0=vb(oN);var gd={exports:{}},iN=gd.exports,e2;function lN(){return e2||(e2=1,(function(e,t){(function(n,r){e.exports=r()})(iN,(function(){return function(n,r,a){n=n||{};var o=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,c,f,g){return o.fromToBase(u,c,f,g)}a.en.relativeTime=i,o.fromToBase=function(u,c,f,g,h){for(var p,b,v,y=f.$locale().relativeTime||i,m=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=m.length,S=0;S<C;S+=1){var x=m[S];x.d&&(p=g?a(u).diff(f,x.d,!0):f.diff(u,x.d,!0));var w=(n.rounding||Math.round)(Math.abs(p));if(v=p>0,w<=x.r||!x.r){w<=1&&S>0&&(x=m[S-1]);var $=y[x.l];h&&(w=h(""+w)),b=typeof $=="string"?$.replace("%d",w):$(w,c,x.l,v);break}}if(c)return b;var O=v?y.future:y.past;return typeof O=="function"?O(b):O.replace("%s",b)},o.to=function(u,c){return l(u,c,this,!0)},o.from=function(u,c){return l(u,c,this)};var s=function(u){return u.$u?a.utc():a()};o.toNow=function(u){return this.to(s(this),u)},o.fromNow=function(u){return this.from(s(this),u)}}}))})(gd)),gd.exports}var sN=lN();const cN=vb(sN);var hd={exports:{}},uN=hd.exports,t2;function dN(){return t2||(t2=1,(function(e,t){(function(n,r){e.exports=r(gb())})(uN,(function(n){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=r(n),o={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(i,l){return l==="W"?i+"\u5468":i+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(i,l){var s=100*i+l;return s<600?"\u51CC\u6668":s<900?"\u65E9\u4E0A":s<1100?"\u4E0A\u5348":s<1300?"\u4E2D\u5348":s<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};return a.default.locale(o,null,!0),o}))})(hd)),hd.exports}dN();H0.locale("zh-cn");H0.extend(cN);const n2={success:"green",error:"red",warning:"orange",processing:"blue",info:"cyan",default:"default"};function fN(e){if(!e)return"-";const t=H0(e),n=t.format("YYYY\u5E74M\u6708D\u65E5 HH:mm"),r=t.fromNow();return Q(Po,{title:Q("div",{style:{minWidth:120},children:Q("div",{style:{color:"#aaa",fontSize:12,marginTop:2},children:r})}),children:Q("span",{style:{fontWeight:500,opacity:.6},children:n})})}function mN(e,t){if(e==null||e==="")return"-";const n=Number(e);if(isNaN(n))return e;switch(t){case"rmb":return`\uFFE5${n.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2})}`;case"usd":return`$${n.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;case"filesize":return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(2)} KB`:n<1024*1024*1024?`${(n/1024/1024).toFixed(2)} MB`:`${(n/1024/1024/1024).toFixed(2)} GB`;case"float":default:return n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}}function vN(e,t,n={}){const{eventsEmit:r}=t||{};return ce.useMemo(()=>e.map(a=>{if(a.render)return a;switch(a.type){case"customized":return{...a,render:(o,i,l)=>{var s,u;const c=l==null?void 0:l.value;let f=c&&typeof c=="object"&&(c.component||c.Comp)?c.component||c.Comp:a.component;if(typeof f=="string"&&(f=((s=t==null?void 0:t.customizeComponents)==null?void 0:s[f])||((u=n==null?void 0:n.customizeComponents)==null?void 0:u[f])),!f)return a.fallback??null;const g=c&&typeof c=="object"&&"data"in c?c.data:l==null?void 0:l.value,h=typeof a.componentProps=="function"?a.componentProps({value:g,row:i,cell:l,col:a}):a.componentProps||{},p=c&&typeof c=="object"&&"props"in c?c.props||{}:{};let b={};if(c&&typeof c=="object"){const y=new Set(["component","Comp","props"]);Object.keys(c).forEach(m=>{y.has(m)||(b[m]=c[m])})}const v={value:g,row:i,cell:l,col:a,emit:(y,m)=>{var C;return(C=t==null?void 0:t.eventsEmit)==null?void 0:C.call(t,y,{row:i,cell:l,col:a,data:m})},...h,...b,...p};if(ce.isValidElement(f))return ce.cloneElement(f,v);if(typeof f=="function"){const y=f;return ce.createElement(y,v)}return a.fallback??null}};case"status":return{...a,render:(o,i,l)=>{const s=(l==null?void 0:l.statusType)||"default",u=n2[s]||n2.default;return Q(ub,{color:u,children:o})}};case"date":return{...a,render:o=>fN(o)};case"number":return{...a,render:o=>{const i=a.numberStyle||"float";return Q("span",{style:{textAlign:"right",display:"block",color:"#2563eb",fontWeight:500,fontVariantNumeric:"tabular-nums",fontFamily:"Consolas, Menlo, monospace"},children:mN(o,i)})}};case"image":return{...a,render:o=>o?Q("img",{src:o,style:{width:36,height:36,borderRadius:8,objectFit:"cover",boxShadow:"0 1px 4px 0 rgba(0,0,0,0.04)"}}):null};case"longText":return{...a,render:o=>{const i=a.maxRow||1,l=a.maxWidth||240,s=a.areaStyle||"default",u=13,c=1.6,f=u*c,g=i*f;let h={maxWidth:typeof l=="number"?`${l}px`:l,maxHeight:g,overflowY:"auto",color:s==="code"?"#d4d4d4":"#666",opacity:s==="code"?1:.85,fontSize:u,lineHeight:c,padding:"6px 10px",background:s==="code"?"#1e1e1e":"#f6f8fa",borderRadius:6,fontFamily:s==="code"?'"SF Mono", "Consolas", "Menlo", monospace':void 0,border:s==="code"?"1px solid #232323":"1px solid #e5e7eb",whiteSpace:"pre-wrap",wordBreak:"break-all",boxSizing:"border-box",width:"100%",display:"block"};return Q("span",{style:h,children:o})}};case"tag":return{...a,render:o=>Array.isArray(o)?Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px",minWidth:"200px",maxWidth:"100%"},children:o.map((i,l)=>Q("span",{style:{display:"inline-block",background:"#EBF4FF",color:"#2563eb",borderRadius:12,padding:"4px 12px",fontSize:12,border:"1px solid #BFDBFE",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",boxShadow:"0 1px 2px rgba(37, 99, 235, 0.1)",flexShrink:0},children:i},l))}):null};case"action":return{...a,render:(o,i,l)=>{const s=t!=null&&t.isPending?t.isPending(i.id):!1;if(Array.isArray(o)){const c=o.map(f=>f&&typeof f=="object"&&(f.columnId==="actions"||f.type==="action")&&"value"in f&&!("mode"in f)?{value:f.value,label:f.label||f.value,icon:f.icon,disabled:f.disabled,key:f.key}:f);if(c.length>=3){const f=c.slice(0,2),g=c.slice(2);return ot("div",{style:{display:"flex",gap:4,justifyContent:"center",alignItems:"center"},children:[f.map((h,p)=>Q(to,{mode:h.mode||"text",label:h.label||h.value||"",icon:h.icon,disabled:h.disabled||s&&h.value==="delete",styles:n,style:{padding:"0 8px",minWidth:0},onClick:()=>r==null?void 0:r(`table_action_${h.value}`,i)},p)),Q(T6,{actions:g.map((h,p)=>({key:h.value||String(p),label:h.label||h.value||"",icon:h.icon,disabled:h.disabled||s&&h.value==="delete"})),onAction:h=>{const p=g.find(b=>(b.value||String(b.key))===h);p&&!p.disabled&&!(s&&p.value==="delete")&&(r==null||r(`table_action_${p.value}`,i))}})]})}else return Q("div",{style:{display:"flex",gap:4,justifyContent:"center"},children:c.map((f,g)=>Q(to,{mode:f.mode||"text",label:f.label||f.value||"",icon:f.icon,disabled:f.disabled||s&&f.value==="delete",styles:n,style:{padding:"0 8px",minWidth:0},onClick:()=>r==null?void 0:r(`table_action_${f.value}`,i)},g))})}const u=l||{};return Q(to,{mode:u.mode||"text",label:u.label||u.value||"",icon:u.icon,disabled:u.disabled||s&&u.value==="delete",styles:n,style:{padding:"0 8px",minWidth:0},onClick:()=>r==null?void 0:r(`table_action_${u.value}`,i)})}};case"label":return{...a,render:o=>Q("span",{className:"font-bold",children:o})};case"title":return{...a,render:(o,i,l)=>{const s=(l==null?void 0:l.level)||1,u={1:"text-xl font-bold",2:"text-lg font-semibold",3:"text-base font-medium"},c=u[s]||u[1];return ot("div",{className:`${c} text-gray-800 ${(l==null?void 0:l.className)||""}`,style:{color:"#1f2937",lineHeight:"1.4",fontWeight:s===1?700:s===2?600:400},children:[Q("span",{className:"h-full w-1 bg-gray-500 rounded-full mr-2"}),Q("span",{className:"text-gray-500",children:o})]})}};case"paragraph":return{...a,render:o=>Q("div",{style:{maxWidth:240,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:o,children:o})};case"text":return{...a,render:o=>Q("span",{children:o})};default:return{...a,render:o=>Q("span",{children:o})}}}),[e,r,t==null?void 0:t.isPending,t==null?void 0:t.customizeComponents,n==null?void 0:n.customizeComponents])}function gN(e){return ot("div",{className:"flex items-center gap-2",children:[Q("span",{className:"font-medium text-gray-800 text-sm",children:e.title}),e.helpText&&Q(Po,{title:e.helpText,placement:"top",children:Q($g,{className:"text-gray-400 hover:text-gray-600 cursor-help transition-colors",size:14})})]})}const hN=Ge.div`
928
+ background: ${({theme:e})=>e.colors.background};
929
+ border-radius: ${({theme:e})=>e.space.radius};
930
+ box-shadow: ${({theme:e})=>e.colors.shadow};
931
+ padding: ${({theme:e})=>e.space.padding};
932
+ overflow-x: auto;
933
+ width: 100%;
934
+ max-width: 100%;
935
+ box-sizing: border-box;
936
+ min-height: 240px;
937
+ display: flex;
938
+ flex-direction: column;
939
+ `,pN=Ge.div`
940
+ background: ${({theme:e})=>e.colors.background};
941
+ border-radius: ${({theme:e})=>e.space.radius};
942
+ padding: ${({theme:e})=>e.space.padding};
943
+ width: 100%;
944
+ max-width: 100%;
945
+ box-sizing: border-box;
946
+ display: flex;
947
+ flex-direction: column;
948
+ overflow: visible; // 子table不产生滚动条,由外层容器处理
949
+ `,bN=Ge.div`
950
+ overflow-x: auto;
951
+ overflow-y: hidden;
952
+ width: 100%;
953
+ max-width: 100%;
954
+ border: 1px solid ${({theme:e})=>e.colors.border};
955
+ border-radius: ${({theme:e})=>e.space.radius};
956
+ background: ${({theme:e})=>e.colors.background};
957
+ position: relative; // 为sticky列提供定位上下文
958
+ isolation: isolate; // 创建新的层叠上下文
959
+ height: auto; // 确保容器高度自适应内容
960
+ min-height: 200px; // 最小高度确保滚动条可见
961
+ box-sizing: border-box; // 确保padding和border包含在宽度内
962
+
963
+ /* 子table内容宽度控制 - 根据父容器动态计算 */
964
+ & > div {
965
+ min-width: 100%; // 使用父容器的100%宽度作为最小宽度
966
+ width: 100%; // 确保宽度填满父容器
967
+ }
968
+
969
+ /* 自定义滚动条样式 */
970
+ &::-webkit-scrollbar {
971
+ height: 6px;
972
+ }
973
+
974
+ &::-webkit-scrollbar-track {
975
+ background: ${({theme:e})=>e.colors.disabledBackground};
976
+ border-radius: 3px;
977
+ }
978
+
979
+ &::-webkit-scrollbar-thumb {
980
+ background: ${({theme:e})=>e.colors.border};
981
+ border-radius: 3px;
982
+ }
983
+
984
+ &::-webkit-scrollbar-thumb:hover {
985
+ background: ${({theme:e})=>e.colors.disabled};
986
+ }
987
+ `,r2=e=>{switch(e){case"avatar":return{minWidth:48,textAlign:"center"};case"status":return{minWidth:56,textAlign:"center"};case"number":return{minWidth:56,textAlign:"right"};case"longText":return{minWidth:120,textAlign:"left"};case"tag":return{minWidth:200,textAlign:"left"};case"action":return{minWidth:112,textAlign:"center"};case"label":return{minWidth:120,textAlign:"left"};case"title":return{minWidth:150,textAlign:"left"};case"text":return{minWidth:80,textAlign:"left"};default:return{minWidth:80,textAlign:"left"}}},a2=Ge.th`
988
+ background: ${({theme:e})=>e.colors.disabledBackground};
989
+ color: ${({theme:e})=>e.colors.text};
990
+ font-weight: 600;
991
+ font-size: 13px;
992
+ padding: 0.5rem 0.75rem;
993
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
994
+ min-width: 48px;
995
+ white-space: nowrap;
996
+ /* 移除默认的 text-align: center,让每列使用自己的对齐方式 */
997
+ `,o2=Ge.td`
998
+ padding: 0.5rem 0.75rem;
999
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1000
+ color: ${({theme:e})=>e.colors.text};
1001
+ font-size: 14px;
1002
+ vertical-align: middle;
1003
+ white-space: nowrap;
1004
+ overflow: hidden;
1005
+ text-overflow: ellipsis;
1006
+ `,yN=Ge.tr`
1007
+ &:hover {
1008
+ background: ${({theme:e})=>e.colors.disabledBackground};
1009
+ }
1010
+ `,CN=ce.forwardRef((e,t)=>Q(yN,{...e,ref:t})),SN=`
1011
+ .sticky-shadow-left {
1012
+ box-shadow: 4px 0 8px -4px rgba(0,0,0,0.08);
1013
+ transition: box-shadow 0.2s;
1014
+ }
1015
+ .sticky-shadow-right {
1016
+ box-shadow: -4px 0 8px -4px rgba(0,0,0,0.08);
1017
+ transition: box-shadow 0.2s;
1018
+ }
1019
+ `;if(typeof window<"u"&&!document.getElementById("dynamic-table-sticky-shadow")){const e=document.createElement("style");e.id="dynamic-table-sticky-shadow",e.innerHTML=SN,document.head.appendChild(e)}const xN=ce.memo(e=>{var t,n,r,a,o,i,l,s,u,c,f,g,h,p,b,v,y,m,C,S;const x=e.dataSource||[],w=e.columns||[],$=e.size||"md",O=e.level||0,R=la(),E=Hn(Hn({theme:zt,mode:"light"},R),e.styles),{viewId:N,total:L,requestPagesize:D=50,viewPageSize:P}=e,[M,I]=jt(P);Zt(()=>{typeof P=="number"&&P>0&&I(P)},[P]);const[A,T]=jt(new Set);Zt(()=>{T(new Set)},[N]);const[j,B]=jt(!1),[H,_]=jt(!1),[W,q]=jt(new Set),G=Xe(null),k=Xe(null),[z,V]=jt(0),F=$==="sm"?.7:1,X=vN(w,{eventsEmit:e.eventsEmit,isPending:e.isPending,customizeComponents:e.customizeComponents},e.styles),[Y,U]=jt([]),J=En((ie,pe)=>{var be;U(he=>{let Ee;return pe?Ee=[...he,ie]:Ee=he.filter(oe=>oe!==ie),Ee});const Re=pe?[...Y,ie]:Y.filter(he=>he!==ie),Ie=x.filter(he=>Re.includes(he.id));(be=e.eventsEmit)==null||be.call(e,"table_row_select",{rowId:ie,checked:pe,selectedItems:Ie})},[Y,x,e.eventsEmit]),re=Bn(()=>x.length>0&&Y.length===x.length,[x.length,Y.length]),ne=En(ie=>{var pe;const be=ie?x.map(Ie=>Ie.id):[];U(be);const Re=ie?x:[];(pe=e.eventsEmit)==null||pe.call(e,"table_select_all",{checked:ie,selectedItems:Re,totalCount:x.length})},[x,e.eventsEmit]),[te,de]=jt(1),ae=typeof M=="number"&&M>0?M:P??(e.isSubTable?5:10),ge=L||x.length;Bn(()=>Math.ceil(ge/ae),[ge,ae]);const Oe=Bn(()=>{if(e.viewBehavior!=="pagination")return x;const ie=(te-1)*ae,pe=ie+ae;if(x.some(be=>typeof be.__absIndex=="number")){const be=[];for(let Re=ie;Re<pe;Re++){const Ie=x.find(he=>he.__absIndex===Re);Ie&&be.push(Ie)}return be}return x.slice(ie,pe)},[e.viewBehavior,x,te,ae]),xe=En(ie=>{var pe;if(de(ie),L&&D&&N){const be=(ie-1)*ae,Re=Math.floor(be/D)+1;(!A.has(Re)||be>=x.length)&&(T(Ie=>{const he=new Set(Ie);return he.add(Re),he}),(pe=e.eventsEmit)==null||pe.call(e,"pagination:request_merge_data",{viewId:N,request:{pageNo:Re,pageSize:D}},void 0))}},[L,D,N,ae,x.length,e.eventsEmit,A]),$e=En(ie=>{q(pe=>{const be=new Set(pe);return be.has(ie)?be.delete(ie):(be.add(ie),setTimeout(()=>{var Re,Ie;(Ie=e.eventsEmit)==null||Ie.call(e,"table_expand",{tableId:ie,children:((Re=x.find(he=>he.id===ie))==null?void 0:Re.children)||[]})},0)),be})},[x,e.eventsEmit]),Se=En(ie=>ie.hasOwnProperty("children")&&ie.children!==void 0,[]),le=En(ie=>W.has(ie),[W]),Me=En(()=>{const ie=G.current;ie&&(e.isSubTable||(B(ie.scrollLeft>0),_(ie.scrollLeft<ie.scrollWidth-ie.offsetWidth-1)))},[e.isSubTable]);Zt(()=>{const ie=G.current;if(ie)return Me(),ie.addEventListener("scroll",Me),window.addEventListener("resize",Me),()=>{ie.removeEventListener("scroll",Me),window.removeEventListener("resize",Me)}},[Me]),Zt(()=>{const ie=G.current;if(!ie)return;const pe=()=>{const Re=ie.getBoundingClientRect();V(Re.width)};pe(),window.addEventListener("resize",pe);const be=new ResizeObserver(pe);return be.observe(ie),()=>{window.removeEventListener("resize",pe),be.disconnect()}},[]);const Pe=e.isSubTable?pN:hN;return ot(Pe,{theme:E.theme||zt,className:"w-full",style:{transform:`scale(${F})`,transformOrigin:"top left",height:"100%",display:"flex",flexDirection:"column"},children:[Q("style",{children:`
1020
+ .removing-row {
1021
+ pointer-events: none;
1022
+ overflow: hidden;
1023
+ will-change: opacity, transform;
1024
+ }
1025
+ .stagger-row {
1026
+ will-change: transform;
1027
+ }
1028
+ .adding-row {
1029
+ animation: row-slide-in 0.6s ease-out forwards;
1030
+ will-change: transform, opacity;
1031
+ }
1032
+ @keyframes row-slide-in {
1033
+ 0% {
1034
+ opacity: 0;
1035
+ transform: translateY(-10px);
1036
+ }
1037
+ 100% {
1038
+ opacity: 1;
1039
+ transform: translateY(0);
1040
+ }
1041
+ }
1042
+ @keyframes spin {
1043
+ 0% { transform: rotate(0deg); }
1044
+ 100% { transform: rotate(360deg); }
1045
+ }
1046
+ `}),Q("div",{ref:G,style:{width:(e.isSubTable,"100%"),maxWidth:(e.isSubTable,"100%"),overflowX:e.isSubTable?"visible":"auto",overflowY:e.isSubTable?"visible":"auto",flex:e.isSubTable?void 0:1,height:e.isSubTable?"auto":void 0,position:"relative",boxSizing:"border-box"},children:ot("table",{ref:k,className:"border-collapse",style:{minWidth:"max-content",width:"100%",tableLayout:"auto"},children:[Q("thead",{style:{position:e.isSubTable?void 0:"sticky",top:0,zIndex:3,background:((n=(t=E.theme)==null?void 0:t.colors)==null?void 0:n.disabledBackground)||"#f5f5f5"},children:ot("tr",{children:[e.allowMultiSelect&&Q(a2,{theme:E.theme||zt,style:{position:"sticky",left:0,zIndex:3,background:((a=(r=E.theme)==null?void 0:r.colors)==null?void 0:a.disabledBackground)||"#f5f5f5",width:40,minWidth:40,maxWidth:40,textAlign:"center"},className:j?"sticky-shadow-left":"",children:Q("input",{type:"checkbox",checked:re,onChange:ie=>ne(ie.target.checked)})}),X.map((ie,pe)=>{var be,Re,Ie,he;const Ee=pe===0,oe=pe===X.length-1,me=Ee?{position:"sticky",left:e.allowMultiSelect?40:0,zIndex:2,background:((Re=(be=E.theme)==null?void 0:be.colors)==null?void 0:Re.disabledBackground)||"#f5f5f5"}:oe?{position:"sticky",right:0,zIndex:2,background:((he=(Ie=E.theme)==null?void 0:Ie.colors)==null?void 0:he.disabledBackground)||"#f5f5f5"}:{};return Q(a2,{theme:E.theme||zt,style:{...r2(ie.type),...me,...ie.maxWidth!==void 0?{maxWidth:typeof ie.maxWidth=="number"?`${ie.maxWidth}px`:ie.maxWidth}:{}},className:Ee&&j?"sticky-shadow-left":oe&&H?"sticky-shadow-right":"",children:gN(ie)},ie.id)})]})}),Q("tbody",{children:Oe.map((ie,pe)=>{var be,Re,Ie,he,Ee,oe,me,Te,se,we,Ze,lt,mt,_e,ke,We,ze,qe;const vt=e.rowProps?e.rowProps(ie,pe):{},ct=Se(ie),Ke=le(ie.id)||ie.__autoExpand&&ct;return ot(ce.Fragment,{children:[ot(CN,{theme:E.theme||zt,...vt,className:`${vt.className||""} ${(be=e.addingIds)!=null&&be.includes(ie.id)?"adding-row":""}`,onAnimationEnd:Ae=>{var it,Fe;Ae.animationName==="row-slide-in"&&(it=e.addingIds)!=null&&it.includes(ie.id)&&((Fe=e.onRowAddAnimationComplete)==null||Fe.call(e,ie.id))},children:[e.allowMultiSelect&&Q(o2,{theme:E.theme||zt,style:{position:"sticky",left:0,zIndex:2,background:((Ie=(Re=E.theme)==null?void 0:Re.colors)==null?void 0:Ie.background)||"#fff",width:40,minWidth:40,maxWidth:40,textAlign:"center"},className:j?"sticky-shadow-left":"",children:Q("input",{type:"checkbox",checked:Y.includes(ie.id),onChange:Ae=>J(ie.id,Ae.target.checked)})}),X.map((Ae,it)=>{var Fe,ye,Ce,De,Qe;const Ue=it===0,ht=it===X.length-1,$t=Ue?{position:"sticky",left:e.allowMultiSelect?40:0,zIndex:1,background:((ye=(Fe=E.theme)==null?void 0:Fe.colors)==null?void 0:ye.background)||"#fff"}:ht?{position:"sticky",right:0,zIndex:1,background:((De=(Ce=E.theme)==null?void 0:Ce.colors)==null?void 0:De.background)||"#fff"}:{},ut=((Qe=ie.data)==null?void 0:Qe.filter(kt=>kt.columnId===Ae.id))||[],Et=Object.assign({},r2(Ae.type),$t,Ae.maxWidth!==void 0?{maxWidth:typeof Ae.maxWidth=="number"?`${Ae.maxWidth}px`:Ae.maxWidth}:{}),_t=()=>{var kt,Rt;return Ue&&ct?ot("div",{style:{display:"flex",alignItems:"center",gap:8},children:[Q("button",{onClick:()=>$e(ie.id),style:{background:"none",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center",justifyContent:"center",color:((Rt=(kt=E.theme)==null?void 0:kt.colors)==null?void 0:Rt.text)||"#222"},children:Ke?Q(dC,{size:16}):Q(fC,{size:16})}),ot("span",{style:{paddingLeft:O*16},children:[" ",ut.length>0?Ae.type==="action"?Ae.render?Ae.render(ut.length>1?ut.map(Ht=>Ht):ut[0],ie,ut.length>1?void 0:ut[0]):null:ut.map((Ht,Lt)=>Q("span",{style:{marginRight:4,display:"inline-block",maxWidth:Ae.maxWidth?typeof Ae.maxWidth=="number"?`${Ae.maxWidth}px`:Ae.maxWidth:void 0,overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"middle"},children:Ae.render?Ae.render(Ht.value,ie,Ht):Q("span",{children:Ht.value})},Lt)):null]})]}):ot("span",{style:{paddingLeft:O*16},children:[" ",ut.length>0?Ae.type==="action"?Ae.render?Ae.render(ut.length>1?ut.map(Ht=>Ht):ut[0],ie,ut.length>1?void 0:ut[0]):null:ut.map((Ht,Lt)=>Q("span",{style:{marginRight:4,display:"inline-block",maxWidth:Ae.maxWidth?typeof Ae.maxWidth=="number"?`${Ae.maxWidth}px`:Ae.maxWidth:void 0,overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"middle"},children:Ae.render?Ae.render(Ht.value,ie,Ht):Q("span",{children:Ht.value})},Lt)):null]})};return Q(o2,{theme:E.theme||zt,style:Et,className:Ue&&j?"sticky-shadow-left":ht&&H?"sticky-shadow-right":"",children:_t()},Ae.id)})]}),ct&&Ke&&ie.children!==void 0&&Q("tr",{className:" relative ",style:{width:z>0?`${z}px`:"100%"},children:Q("td",{style:{width:z>0?`${z}px`:"100%"},colSpan:X.length+(e.allowMultiSelect?1:0),children:ot("div",{style:{position:"sticky",left:0,padding:"15px 18px",width:z>0?`${z}px`:"100%",minWidth:"800px",maxWidth:"100%",background:((Ee=(he=E.theme)==null?void 0:he.colors)==null?void 0:Ee.disabledBackground)||"#f5f5f5",boxSizing:"border-box"},children:[ie.tableLoading&&Q("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(255, 255, 255, 0.9)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,borderRadius:E.space.radius},children:ot("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[Q("div",{style:{width:24,height:24,border:`2px solid ${((me=(oe=E.theme)==null?void 0:oe.colors)==null?void 0:me.border)||"#d1d5db"}`,borderTop:`2px solid ${((se=(Te=E.theme)==null?void 0:Te.colors)==null?void 0:se.primary)||"#2563eb"}`,borderRadius:"50%",animation:"spin 1s linear infinite"}}),Q("span",{style:{fontSize:14,color:((Ze=(we=E.theme)==null?void 0:we.colors)==null?void 0:Ze.text)||"#222"},children:"\u52A0\u8F7D\u4E2D..."})]})}),ot("div",{style:{marginBottom:"16px"},children:[Array.isArray((lt=e.subTableConfig)==null?void 0:lt.toolbar)&&e.subTableConfig.toolbar.length>0&&Q("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:8},children:e.subTableConfig.toolbar.map((Ae,it)=>{const Fe={primary:"primary",error:"danger",default:"text"}[Ae.btnType]||"text";return Q(to,{mode:Fe,label:Ae.label,icon:Ae.icon,onClick:()=>{var ye;return(ye=e.eventsEmit)==null?void 0:ye.call(e,"table_action_add",{tableId:ie.id,action:Ae})}},it)})}),Q(bN,{theme:E,onWheel:Ae=>{Ae.stopPropagation()},onScroll:Ae=>{Ae.stopPropagation()},style:{position:"relative",overflow:"auto",maxHeight:"400px",width:"100%",maxWidth:"100%"},children:Q(xN,{columns:((mt=e.subTableConfig)==null?void 0:mt.columns)||[],dataSource:ie.children||[],isSubTable:!0,isPending:Ae=>{var it,Fe;return((Fe=(it=e.subTablePendingIds)==null?void 0:it[ie.id])==null?void 0:Fe.includes(Ae))||!1},onRowAnimationComplete:Ae=>{var it;(it=e.onSubTableRowAnimationComplete)==null||it.call(e,ie.id,Ae),e.eventsEmit&&e.eventsEmit("_internal:subtable_animation_complete",{rowId:Ae,tableId:ie.id})},eventsEmit:(Ae,it)=>{var Fe;(Fe=e.eventsEmit)==null||Fe.call(e,Ae,{...it,tableId:ie.id})},allowMultiSelect:(_e=e.subTableConfig)==null?void 0:_e.allowMultiSelect,size:e.size,level:O+1,subTableConfig:e.subTableConfig,styles:e.styles,onRowAddAnimationComplete:e.onRowAddAnimationComplete,addingIds:e.addingIds,viewBehavior:(ke=e.subTableConfig)==null?void 0:ke.viewBehavior,viewPageSize:(We=e.subTableConfig)==null?void 0:We.viewPageSize,total:(ze=e.subTableConfig)==null?void 0:ze.total,requestPagesize:(qe=e.subTableConfig)==null?void 0:qe.requestPagesize})})]})]})})})]},ie.id??pe)})})]})}),e.viewBehavior==="pagination"&&Q("div",{style:{height:48,display:"flex",justifyContent:"end",alignItems:"center",background:((i=(o=E.theme)==null?void 0:o.colors)==null?void 0:i.background)||"#fff",borderTop:`1px solid ${((s=(l=E.theme)==null?void 0:l.colors)==null?void 0:s.border)||"#d1d5db"}`,flexShrink:0,paddingRight:16},children:Q(A6,{current:te,pageSize:ae,total:ge,onChange:xe,onPageSizeChange:ie=>{var pe;de(1),I(ie),L&&D&&N&&e.eventsEmit&&(T(new Set),e.eventsEmit("pagination:request_merge_data",{viewId:N,request:{pageNo:1,pageSize:D}},void 0)),(pe=e.eventsEmit)==null||pe.call(e,"pagination:pageSizeChange",{viewId:N,pageSize:ie})},showSizeChanger:!0,pageSizeOptions:[5,10,20,30,50],theme:{colors:{background:((c=(u=E.theme)==null?void 0:u.colors)==null?void 0:c.background)||"#fff",text:((g=(f=E.theme)==null?void 0:f.colors)==null?void 0:g.text)||"#222",border:((p=(h=E.theme)==null?void 0:h.colors)==null?void 0:p.border)||"#d1d5db",disabledBackground:((v=(b=E.theme)==null?void 0:b.colors)==null?void 0:v.disabledBackground)||"#f5f5f5",primary:((m=(y=E.theme)==null?void 0:y.colors)==null?void 0:m.primary)||"#2563eb"},space:{radius:((S=(C=E.theme)==null?void 0:C.space)==null?void 0:S.radius)||"6px"}},size:e.size,showPageNumbers:!0})})]})}),wN=d.createContext({outlet:null,matches:[],isDataRoute:!1}),$N=d.createContext(null);function EN(e){let t=d.useContext(wN).outlet;return t&&d.createElement($N.Provider,{value:e},t)}function ON(e){return EN(e.context)}new Promise(()=>{});/**
1047
+ * @license lucide-react v0.456.0 - ISC
1048
+ *
1049
+ * This source code is licensed under the ISC license.
1050
+ * See the LICENSE file in the root directory of this source tree.
1051
+ */const IN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hb=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
1052
+ * @license lucide-react v0.456.0 - ISC
1053
+ *
1054
+ * This source code is licensed under the ISC license.
1055
+ * See the LICENSE file in the root directory of this source tree.
1056
+ */var MN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
1057
+ * @license lucide-react v0.456.0 - ISC
1058
+ *
1059
+ * This source code is licensed under the ISC license.
1060
+ * See the LICENSE file in the root directory of this source tree.
1061
+ */const RN=Vn(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:i,...l},s)=>Ar("svg",{ref:s,...MN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:hb("lucide",a),...l},[...i.map(([u,c])=>Ar(u,c)),...Array.isArray(o)?o:[o]]));/**
1062
+ * @license lucide-react v0.456.0 - ISC
1063
+ *
1064
+ * This source code is licensed under the ISC license.
1065
+ * See the LICENSE file in the root directory of this source tree.
1066
+ */const pb=(e,t)=>{const n=Vn(({className:r,...a},o)=>Ar(RN,{ref:o,iconNode:t,className:hb(`lucide-${IN(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
1067
+ * @license lucide-react v0.456.0 - ISC
1068
+ *
1069
+ * This source code is licensed under the ISC license.
1070
+ * See the LICENSE file in the root directory of this source tree.
1071
+ */const PN=pb("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
1072
+ * @license lucide-react v0.456.0 - ISC
1073
+ *
1074
+ * This source code is licensed under the ISC license.
1075
+ * See the LICENSE file in the root directory of this source tree.
1076
+ */const rl=pb("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),NN=Ge.div`
1077
+ display: flex;
1078
+ justify-content: flex-start;
1079
+ align-items: flex-start;
1080
+ margin-left: 20px;
1081
+ flex-direction: column;
1082
+ height: 100%;
1083
+ width: 100%;
1084
+ max-width: 98%;
1085
+ position: relative;
1086
+ `,TN=Ge.div`
1087
+ display: flex;
1088
+ height: 38px;
1089
+ z-index: 10;
1090
+ background: transparent;
1091
+ gap: 8px;
1092
+ flex-direction: row;
1093
+ align-items: center;
1094
+ justify-content: flex-start;
1095
+ width: 100%;
1096
+ min-width: 0; /* 确保 flex 子元素可以收缩 */
1097
+ `,AN=Ge.button`
1098
+ display: flex;
1099
+ align-items: center;
1100
+ justify-content: center;
1101
+ width: 32px;
1102
+ height: 32px;
1103
+ background: transparent;
1104
+ border: none;
1105
+ cursor: pointer;
1106
+
1107
+ /* 仅让图标在 hover 时上浮,按钮背景保持透明 */
1108
+ svg {
1109
+ transition: transform 0.2s ease;
1110
+ }
1111
+
1112
+ &:hover {
1113
+ background: transparent;
1114
+ }
1115
+
1116
+ &:hover svg {
1117
+ transform: translateY(-1px);
1118
+ }
1119
+
1120
+ &:active svg {
1121
+ transform: translateY(0);
1122
+ }
1123
+ `,FN=Ge.div`
1124
+ line-height: 1.4;
1125
+ cursor: pointer;
1126
+ transition: color 0.2s ease;
1127
+ white-space: nowrap;
1128
+ overflow: hidden;
1129
+ text-overflow: ellipsis;
1130
+ max-width: 200px;
1131
+ min-width: 0;
1132
+
1133
+ &:hover {
1134
+ color: #007bff;
1135
+ }
1136
+ `,DN=Ge.div`
1137
+ line-height: 1.4;
1138
+ white-space: nowrap;
1139
+ overflow: hidden;
1140
+ text-overflow: ellipsis;
1141
+ flex: 1;
1142
+ min-width: 0;
1143
+ `,i2=Ge.div`
1144
+ display: flex;
1145
+ align-items: center;
1146
+ gap: 4px;
1147
+ flex-wrap: nowrap;
1148
+ max-width: 50%;
1149
+ min-width: 0;
1150
+ overflow: hidden;
1151
+ `,al=Ge.div`
1152
+ display: flex;
1153
+ align-items: center;
1154
+ gap: 4px;
1155
+ font-size: 14px;
1156
+ color: ${e=>e.$isLast?"#343a40":"#6c757d"};
1157
+ font-weight: ${e=>e.$isLast?"600":"normal"};
1158
+ cursor: ${e=>e.$isClickable?"pointer":"default"};
1159
+ transition: color 0.2s ease;
1160
+ white-space: nowrap;
1161
+ overflow: hidden;
1162
+ text-overflow: ellipsis;
1163
+ max-width: 120px;
1164
+
1165
+ &:hover {
1166
+ color: ${e=>e.$isLast?"#007bff":"inherit"};
1167
+ }
1168
+ `,ol=Ge.div`
1169
+ display: flex;
1170
+ align-items: center;
1171
+ color: #6c757d;
1172
+ margin: 0 2px;
1173
+ `,LN=Ge.div`
1174
+ display: flex;
1175
+ flex-direction: column;
1176
+ width: 100%;
1177
+ height: calc(100% - 45px);
1178
+ min-height: 650px;
1179
+ overflow: auto;
1180
+ `;Ge.div`
1181
+ position: fixed;
1182
+ bottom: 20px;
1183
+ left: 50%;
1184
+ transform: translateX(-50%);
1185
+ z-index: 1000;
1186
+ `;const hA=({children:e,goBack:t,title:n,description:r,breadcrumbs:a,dockItems:o,dockActiveMode:i="single",defaultDockActiveId:l,defaultDockActiveIds:s,styles:u,eventsEmit:c})=>{var f,g,h,p,b,v,y,m;const C=la(),S=Hn(Hn({theme:zt,mode:"light"},C),u),x=(S==null?void 0:S.theme)||zt,w=ce.useRef(null),$=()=>{c!=null&&c.onGoBack?c.onGoBack():t&&t()},O=()=>{c!=null&&c.onTitleClick&&c.onTitleClick()},R=(P,M)=>{c!=null&&c.onBreadcrumbClick?c.onBreadcrumbClick(P,M):P.onClick&&P.onClick()},E=(P,M)=>{c!=null&&c.onDockItemClick&&c.onDockItemClick(P,M)},N=()=>{if(!a||a.length===0)return null;const P=ce.useRef(null),[M,I]=ce.useState({start:0,end:a.length,showEllipsis:!1}),A=ce.useCallback(()=>{if(!P.current||a.length<=3){I({start:0,end:a.length,showEllipsis:!1});return}const H=P.current.offsetWidth*.5;let _=Math.floor((H-30)/140);if(_<2&&(_=2),_>=a.length){I({start:0,end:a.length,showEllipsis:!1});return}const W=0,q=Math.min(_-1,a.length);I({start:W,end:q,showEllipsis:q<a.length-1})},[a.length]);if(ce.useEffect(()=>{A();const H=new ResizeObserver(()=>{A()});return P.current&&H.observe(P.current),()=>{H.disconnect()}},[A]),a.length<=3)return Q(i2,{children:a.map((H,_)=>ot(ce.Fragment,{children:[Q(al,{$isLast:_===a.length-1,$isClickable:!!(_<a.length-1||H.onClick),onClick:()=>R(H,_),style:{color:_===a.length-1?x.colors.text:x.colors.textSecondary||x.colors.disabledText},title:H.label,children:H.label}),_<a.length-1&&Q(ol,{children:Q(rl,{size:14})})]},H.id))});const{start:T,end:j,showEllipsis:B}=M;return ot(i2,{children:[a.slice(T,j).map((H,_)=>ot(ce.Fragment,{children:[Q(al,{$isLast:_===j-T-1&&!B,$isClickable:!!(_<j-T-1||H.onClick),onClick:()=>R(H,T+_),style:{color:_===j-T-1&&!B?x.colors.text:x.colors.textSecondary||x.colors.disabledText},title:H.label,children:H.label}),_<j-T-1&&Q(ol,{children:Q(rl,{size:14})})]},H.id)),B&&ot(as,{children:[Q(ol,{children:Q(rl,{size:14})}),Q(al,{$isLast:!1,$isClickable:!1,style:{color:x.colors.textSecondary||x.colors.disabledText,cursor:"default",maxWidth:"auto"},title:`${a.slice(j,-1).map(H=>H.label).join(" > ")}`,children:"..."}),Q(ol,{children:Q(rl,{size:14})}),Q(al,{$isLast:!0,$isClickable:!!a[a.length-1].onClick,onClick:()=>R(a[a.length-1],a.length-1),style:{color:x.colors.text},title:a[a.length-1].label,children:a[a.length-1].label})]})]})},[L,D]=ce.useState(!0);return Q(NN,{style:{background:x.colors.appBackground,color:x.colors.text,fontFamily:((g=(f=x.fonts)==null?void 0:f.body)==null?void 0:g.family)||"PingFang SC, Microsoft YaHei, Arial, sans-serif"},children:ot("div",{style:{height:"100%",display:"flex",width:"100%",gap:12},children:[o&&o.length>0&&Q("div",{style:{flex:`0 0 ${L?72:28}px`,transition:"flex-basis .2s ease"},children:Q(DP,{items:o,open:L,onOpenChange:D,onItemClick:P=>E({id:String(P.key),label:P.name},0),defaultOpen:!0})}),ot("div",{style:{display:"flex",flexDirection:"column",flex:1,minWidth:0},children:[(n||r||t||a)&&ot(TN,{ref:w,children:[t&&Q(AN,{onClick:$,style:{color:x.colors.primary,borderRadius:x.space.radius||"6px"},title:"\u8FD4\u56DE",children:Q(PN,{size:18})}),N(),n&&Q(FN,{onClick:O,style:{color:x.colors.text,fontSize:((p=(h=x.fonts)==null?void 0:h.heading)==null?void 0:p.size)||"16px",fontWeight:((v=(b=x.fonts)==null?void 0:b.heading)==null?void 0:v.weight)||"600"},title:n,children:n}),r&&Q(DN,{style:{color:x.colors.textSecondary||x.colors.disabledText,opacity:.7,fontSize:((m=(y=x.fonts)==null?void 0:y.body)==null?void 0:m.size)||"12px"},title:r,children:r})]}),Q(LN,{style:{background:x.colors.dashboardBackground||"transparent",border:`1px solid ${x.colors.border}`||void 0,borderRadius:x.space.radius||void 0,boxShadow:x.colors.shadow||void 0},children:e||Q(ON,{})})]})]})})};Ge.div.withConfig({shouldForwardProp:e=>!["backgroundImage","backgroundColor"].includes(e)})`
1187
+ position: fixed;
1188
+ top: 0;
1189
+ left: 0;
1190
+ width: 100vw;
1191
+ height: 100vh;
1192
+ background: ${e=>e.backgroundImage?`url(${e.backgroundImage}) center/cover no-repeat`:e.backgroundColor||"#1a1a1a"};
1193
+ display: flex;
1194
+ flex-direction: column;
1195
+ overflow: hidden;
1196
+ z-index: 1;
1197
+ `;Ge.div`
1198
+ height: 48px;
1199
+ width: 100%;
1200
+ display: flex;
1201
+ align-items: center;
1202
+ justify-content: center;
1203
+ background: transparent;
1204
+ z-index: 10;
1205
+ flex-shrink: 0;
1206
+ `;Ge.div`
1207
+ flex: 1;
1208
+ width: 100%;
1209
+ overflow-y: auto;
1210
+ overflow-x: hidden;
1211
+ position: relative;
1212
+ z-index: 2;
1213
+ background: transparent;
1214
+
1215
+ /* 自定义滚动条样式 */
1216
+ &::-webkit-scrollbar {
1217
+ width: 6px;
1218
+ }
1219
+
1220
+ &::-webkit-scrollbar-track {
1221
+ background: rgba(255, 255, 255, 0.1);
1222
+ border-radius: 3px;
1223
+ }
1224
+
1225
+ &::-webkit-scrollbar-thumb {
1226
+ background: rgba(255, 255, 255, 0.3);
1227
+ border-radius: 3px;
1228
+ }
1229
+
1230
+ &::-webkit-scrollbar-thumb:hover {
1231
+ background: rgba(255, 255, 255, 0.5);
1232
+ }
1233
+ `;Ge.div`
1234
+ height: 80px;
1235
+ width: 100%;
1236
+ display: flex;
1237
+ align-items: flex-end;
1238
+ justify-content: center;
1239
+ padding: 12px 0;
1240
+ background: transparent;
1241
+ z-index: 10;
1242
+ flex-shrink: 0;
1243
+ `;Ge.div`
1244
+ --header-height: 56px;
1245
+ --page-gutter: 16px;
1246
+ --sidebar-width: 264px;
1247
+ --toc-width: 268px;
1248
+ --content-max: 960px;
1249
+
1250
+ display: flex;
1251
+ flex-direction: column;
1252
+ width: 100%;
1253
+ min-height: 100vh;
1254
+ height: 100vh; /* 以视口高度为基准,便于内部独立滚动布局 */
1255
+ position: relative;
1256
+ `;Ge.div`
1257
+ position: sticky;
1258
+ top: 0;
1259
+ z-index: 30;
1260
+ width: 100%;
1261
+ height: var(--header-height);
1262
+ display: flex;
1263
+ align-items: center;
1264
+ justify-content: space-between;
1265
+ padding: 0 16px;
1266
+ border-bottom: 1px solid rgba(0,0,0,0.06);
1267
+ backdrop-filter: blur(8px);
1268
+ `;Ge.div`
1269
+ display: flex;
1270
+ align-items: center;
1271
+ gap: 12px;
1272
+ min-width: 0;
1273
+ `;Ge.div`
1274
+ display: flex;
1275
+ align-items: center;
1276
+ gap: 8px;
1277
+ `;Ge.button`
1278
+ display: inline-flex;
1279
+ align-items: center;
1280
+ justify-content: center;
1281
+ width: 32px;
1282
+ height: 32px;
1283
+ border-radius: 8px;
1284
+ background: transparent;
1285
+ border: 1px solid rgba(0,0,0,0.08);
1286
+ cursor: pointer;
1287
+ transition: background .15s ease, border-color .15s ease, transform .1s ease;
1288
+
1289
+ &:hover { background: rgba(0,0,0,0.04); }
1290
+ &:active { transform: translateY(1px); }
1291
+ `;Ge.div`
1292
+ display: grid;
1293
+ grid-template-columns: var(--sidebar-width) 1fr var(--toc-width);
1294
+ gap: 16px;
1295
+ width: 100%;
1296
+ padding: 12px 0;
1297
+ box-sizing: border-box;
1298
+ transition: grid-template-columns .25s ease;
1299
+ height: calc(100vh - var(--header-height));
1300
+ min-height: calc(100vh - var(--header-height));
1301
+ overflow: hidden; /* 内部区域各自滚动 */
1302
+
1303
+ @media (max-width: 1280px) {
1304
+ grid-template-columns: var(--sidebar-width) 1fr 0px;
1305
+ }
1306
+
1307
+ @media (max-width: 960px) {
1308
+ grid-template-columns: 0px 1fr 0px;
1309
+ gap: 12px;
1310
+ padding: 12px 12px 20px 12px;
1311
+ }
1312
+ `;Ge.aside`
1313
+ position: relative;
1314
+ `;Ge.div`
1315
+ height: 100%;
1316
+ overflow: hidden;
1317
+ padding-right: 8px;
1318
+ border-right: 1px solid rgba(0,0,0,0.06);
1319
+ transition: opacity .2s ease, transform .2s ease;
1320
+ opacity: ${e=>e.$collapsed?0:1};
1321
+ transform: translateX(${e=>e.$collapsed?"-6px":"0px"});
1322
+ pointer-events: ${e=>e.$collapsed?"none":"auto"};
1323
+ `;Ge.button`
1324
+ position: absolute;
1325
+ top: 6px;
1326
+ right: -10px;
1327
+ width: 10px;
1328
+ height: 72px;
1329
+ border: none;
1330
+ background: rgba(0,0,0,0.06);
1331
+ border-radius: 0 8px 8px 0;
1332
+ cursor: pointer;
1333
+ display: flex;
1334
+ align-items: center;
1335
+ justify-content: center;
1336
+ transition: background .15s ease;
1337
+ &:hover { background: rgba(0,0,0,0.12); }
1338
+ `;Ge.div`
1339
+ height: 100%;
1340
+ overflow: auto;
1341
+ padding-right: 8px;
1342
+ `;Ge.main`
1343
+ position: relative;
1344
+ min-width: 0;
1345
+ height: 100%;
1346
+ overflow: auto; /* 文档渲染区独立滚动 */
1347
+ `;Ge.div`
1348
+ width: 100%;
1349
+ max-width: var(--content-max);
1350
+ margin: 0 auto;
1351
+ background-clip: padding-box;
1352
+ border-radius: 8px;
1353
+ padding: 0px 12px;
1354
+ `;Ge.div`
1355
+ height: 100%;
1356
+ transition: opacity .5s ease;
1357
+ opacity: ${e=>e.$opacity};
1358
+ `;Ge.aside`
1359
+ position: relative;
1360
+ z-index: 1;
1361
+ `;Ge.div`
1362
+ /* 跟随整页滚动,不再单独滚动 */
1363
+ position: static;
1364
+ overflow: visible;
1365
+ padding-left: 8px;
1366
+ border-left: 1px solid rgba(0,0,0,0.06);
1367
+ background: transparent;
1368
+ z-index: 1;
1369
+ `;Ge.div`
1370
+ transition: opacity .2s ease, transform .2s ease;
1371
+ opacity: ${e=>e.$collapsed?0:1};
1372
+ transform: translateX(${e=>e.$collapsed?"6px":"0px"});
1373
+ pointer-events: ${e=>e.$collapsed?"none":"auto"};
1374
+ `;Ge.button`
1375
+ position: absolute;
1376
+ top: 6px;
1377
+ left: -10px;
1378
+ width: 10px;
1379
+ height: 72px;
1380
+ border: none;
1381
+ background: rgba(0,0,0,0.06);
1382
+ border-radius: 8px 0 0 8px;
1383
+ cursor: pointer;
1384
+ display: flex;
1385
+ align-items: center;
1386
+ justify-content: center;
1387
+ transition: background .15s ease;
1388
+ &:hover { background: rgba(0,0,0,0.12); }
1389
+ `;Ge.div`
1390
+ font-size: 12px;
1391
+ opacity: .7;
1392
+ padding: 8px 8px;
1393
+ `;Ge.button`
1394
+ width: 100%;
1395
+ display: flex;
1396
+ align-items: center;
1397
+ gap: 8px;
1398
+ padding: 8px 10px;
1399
+ background: transparent;
1400
+ border: none;
1401
+ text-align: left;
1402
+ cursor: pointer;
1403
+ border-radius: 6px;
1404
+ color: inherit;
1405
+ transition: background .15s ease, color .15s ease;
1406
+ font-size: 13px;
1407
+ white-space: nowrap;
1408
+
1409
+ &:hover {
1410
+ background: rgba(0,0,0,0.04);
1411
+ }
1412
+
1413
+ ${e=>e.$active?"background: rgba(0,0,0,0.08); font-weight: 600;":""}
1414
+ `;Ge.div`
1415
+ display: flex;
1416
+ align-items: center;
1417
+ gap: 8px;
1418
+ flex-wrap: nowrap;
1419
+ white-space: nowrap;
1420
+ overflow-x: auto;
1421
+ overflow-y: hidden;
1422
+ scrollbar-width: none;
1423
+ &::-webkit-scrollbar { display: none; }
1424
+ `;Ge.div`
1425
+ width: 1px;
1426
+ height: 16px;
1427
+ background: currentColor;
1428
+ opacity: .2;
1429
+ `;({...zt,colors:{...zt.colors}});({...zt,colors:{...zt.colors}});const bb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.69727%205.36035C9.24139%205.36035%209.7044%205.43727%2010.0781%205.59961L10.1787%205.64355V6.78418L9.93066%206.64746C9.56044%206.44228%209.15313%206.33892%208.70508%206.33887C8.12836%206.33887%207.66998%206.52918%207.31543%206.90527L7.31445%206.90625C6.96154%207.27886%206.77643%207.78905%206.77637%208.45605C6.77641%209.08819%206.94869%209.57219%207.27637%209.92578L7.4043%2010.0488C7.71343%2010.3185%208.1013%2010.456%208.5791%2010.4561C9.10219%2010.4561%209.54903%2010.3382%209.9248%2010.1084L10.1787%209.95312V11.0381L10.0889%2011.085C9.65012%2011.3158%209.10967%2011.4268%208.47559%2011.4268C7.6423%2011.4268%206.9605%2011.1612%206.44922%2010.6191V10.6182C5.93981%2010.0754%205.69145%209.36307%205.69141%208.49902C5.69147%207.57075%205.97064%206.80719%206.54102%206.22656C7.10964%205.64782%207.83309%205.36042%208.69727%205.36035ZM6.3291%206.75488C6.32678%206.75844%206.32457%206.76206%206.32227%206.76562C6.36901%206.69342%206.41884%206.62326%206.47266%206.55566L6.3291%206.75488ZM8.10645%205.57812C8.01275%205.59511%207.92124%205.61615%207.83203%205.6416C8.0108%205.5906%208.19869%205.55704%208.39551%205.54004L8.10645%205.57812Z'%20fill='%23339C43'/%3e%3c/svg%3e",yb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33301C11.457%201.33301%2011.6182%201.39584%2011.7412%201.50879L12.6504%202.3457L11.9736%203.08105L11.1602%202.33301H4V13.666H12.667V3.71387L11.9766%203.08398L11.9736%203.08203L12.6504%202.3457L13.4502%203.07617C13.5879%203.20229%2013.6668%203.38063%2013.667%203.56738V14L13.6533%2014.1338C13.5913%2014.4377%2013.3223%2014.666%2013%2014.666H3.66699L3.53223%2014.6523C3.27187%2014.599%203.06687%2014.3942%203.01367%2014.1338L3%2014V2C3.00012%201.67798%203.22857%201.40887%203.53223%201.34668L3.66699%201.33301H11.29ZM10.5%209C10.7761%209%2011%209.22386%2011%209.5C11%209.77614%2010.7761%2010%2010.5%2010H6.5C6.22386%2010%206%209.77614%206%209.5C6%209.22386%206.22386%209%206.5%209H10.5ZM10.5%207C10.7761%207%2011%207.22386%2011%207.5C11%207.77614%2010.7761%208%2010.5%208H6.5C6.22386%208%206%207.77614%206%207.5C6%207.22386%206.22386%207%206.5%207H10.5Z'%20fill='%23426BFF'/%3e%3c/svg%3e",Cb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.71582%205.33301C6.78793%205.33301%206.85481%205.37254%206.89258%205.43652L7.9541%207.25586L9.00488%205.43848C9.04265%205.3745%209.10953%205.33496%209.18164%205.33496H9.79395C9.83089%205.33515%209.86769%205.34564%209.89941%205.36523C9.93101%205.3848%209.95694%205.41285%209.97461%205.44629C9.99224%205.47972%2010.0011%205.5176%2010%205.55566C9.99877%205.59389%209.9876%205.63179%209.96777%205.66406L8.50293%208.01855L9.94531%2010.3359C10.0071%2010.4354%209.97971%2010.5668%209.88379%2010.6309C9.84945%2010.6522%209.81097%2010.665%209.77148%2010.665H9.12793C9.05762%2010.665%208.99086%2010.6274%208.95312%2010.5635L7.88379%208.76172L6.80664%2010.5654C6.76885%2010.6275%206.70384%2010.667%206.63184%2010.667H6.04004C6.00321%2010.6669%205.96628%2010.6561%205.93457%2010.6367C5.90309%2010.6174%205.87717%2010.5897%205.85938%2010.5566C5.84153%2010.5233%205.83209%2010.4854%205.83301%2010.4473C5.83393%2010.4093%205.84491%2010.3721%205.86426%2010.3398L7.2959%207.97949L5.88379%205.66211C5.82198%205.56081%205.85112%205.42939%205.94727%205.36719C5.97982%205.3442%206.01726%205.33302%206.05664%205.33301H6.71582Z'%20fill='%232F913E'/%3e%3c/svg%3e",Sb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1162%203.07617C13.2543%203.20232%2013.3338%203.3804%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM10%208.5C10.2761%208.5%2010.5%208.72386%2010.5%209C10.5%209.27614%2010.2761%209.5%2010%209.5H6C5.72386%209.5%205.5%209.27614%205.5%209C5.5%208.72386%205.72386%208.5%206%208.5H10ZM9%206C9.27614%206%209.5%206.22386%209.5%206.5C9.5%206.77614%209.27614%207%209%207H6C5.72386%207%205.5%206.77614%205.5%206.5C5.5%206.22386%205.72386%206%206%206H9Z'%20fill='%2370706E'/%3e%3c/svg%3e",xb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H8.22957C8.49499%202%208.73512%202.15744%208.84095%202.40085L9.92791%204.90085C10.1193%205.34115%209.79664%205.83333%209.31652%205.83333H2.66667C2.29848%205.83333%202%205.53486%202%205.16667V2.66667Z'%20fill='%23F9B13C'/%3e%3cpath%20d='M3%204.50008C3%204.31599%203.14924%204.16675%203.33333%204.16675H12.6667C12.8508%204.16675%2013%204.31599%2013%204.50008V13.1667C13%2013.3508%2012.8508%2013.5001%2012.6667%2013.5001H3.33333C3.14924%2013.5001%203%2013.3508%203%2013.1667V4.50008Z'%20fill='white'/%3e%3cpath%20d='M2%204.66675H13.3333C13.7015%204.66675%2014%204.96522%2014%205.33341V13.3334C14%2013.7016%2013.7015%2014.0001%2013.3333%2014.0001H2.66667C2.29848%2014.0001%202%2013.7016%202%2013.3334V4.66675Z'%20fill='%23FFCB2E'/%3e%3c/svg%3e",wb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.95117%208.80469C8.95117%209.45619%208.83123%209.99047%208.58105%2010.3984L8.46582%2010.5654C8.13575%2010.9898%207.68375%2011.2012%207.12109%2011.2012C6.86476%2011.2012%206.64525%2011.1636%206.4668%2011.083L6.4082%2011.0566V10.0342L6.56641%2010.1494C6.70723%2010.2516%206.88862%2010.3066%207.11719%2010.3066C7.40052%2010.3066%207.60577%2010.1907%207.74609%209.95508C7.89129%209.7111%207.9707%209.33189%207.9707%208.80469V4.84961H8.95117V8.80469Z'%20fill='%23FF4D50'/%3e%3c/svg%3e",$b="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%201C13.5523%201%2014%201.44772%2014%202V13H3.5C3.22386%2013%203%2013.2239%203%2013.5C3%2013.7761%203.22386%2014%203.5%2014H14C14%2014.5523%2013.5523%2015%2013%2015H4C2.89543%2015%202%2014.1046%202%2013V3C2%201.89543%202.89543%201%204%201H13ZM5.5%204C5.22386%204%205%204.22386%205%204.5C5%204.77614%205.22386%205%205.5%205H10.5C10.7761%205%2011%204.77614%2011%204.5C11%204.22386%2010.7761%204%2010.5%204H5.5Z'%20fill='%230956E4'/%3e%3c/svg%3e",Eb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%201.5C11.5899%201.5%2014.5%204.41015%2014.5%208C14.5%2011.5899%2011.5899%2014.5%208%2014.5C4.41015%2014.5%201.5%2011.5899%201.5%208C1.5%204.41015%204.41015%201.5%208%201.5ZM8%202.42871C4.92298%202.42871%202.42871%204.92298%202.42871%208C2.42871%2011.077%204.92298%2013.5713%208%2013.5713C11.077%2013.5713%2013.5713%2011.077%2013.5713%208C13.5713%204.92298%2011.077%202.42871%208%202.42871ZM6.19434%207.36523C6.2548%207.30503%206.3537%207.30487%206.41406%207.36523L6.68262%207.63477C6.74275%207.69515%206.74275%207.79314%206.68262%207.85352L6.30371%208.23242C5.89985%208.63677%205.89974%209.29201%206.30371%209.69629C6.70813%2010.1005%207.3642%2010.1006%207.76855%209.69629L8.14746%209.31738C8.20788%209.25744%208.30591%209.25726%208.36621%209.31738L8.63574%209.58691C8.69582%209.64722%208.69567%209.74526%208.63574%209.80566L8.25684%2010.1846C7.58294%2010.8585%206.49045%2010.8582%205.81641%2010.1846C5.14239%209.51056%205.14239%208.41815%205.81641%207.74414L6.19434%207.36523ZM8.27441%207.27246C8.33487%207.21231%208.43282%207.21214%208.49316%207.27246L8.7627%207.54199C8.82268%207.60237%208.82273%207.7004%208.7627%207.76074L7.76074%208.76172C7.70035%208.82211%207.60244%208.82201%207.54199%208.76172L7.27246%208.49316C7.21217%208.43285%207.21239%208.33487%207.27246%208.27441L8.27441%207.27246ZM7.74414%205.81543C8.41813%205.14189%209.51068%205.14173%2010.1846%205.81543C10.8584%206.48938%2010.8583%207.58286%2010.1846%208.25684L9.80566%208.63477C9.74528%208.69515%209.64736%208.69505%209.58691%208.63477L9.31738%208.36621C9.25716%208.30593%209.25744%208.20792%209.31738%208.14746L9.69629%207.76855C10.1004%207.36418%2010.1005%206.70805%209.69629%206.30371C9.29201%205.89962%208.6368%205.89978%208.23242%206.30371L7.85352%206.68262C7.79319%206.74294%207.69523%206.74271%207.63477%206.68262L7.36523%206.41309C7.30484%206.35264%207.30481%206.25476%207.36523%206.19434L7.74414%205.81543Z'%20fill='%2339B83F'/%3e%3c/svg%3e",Ob="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957Z'%20fill='%23675FF0'/%3e%3cpath%20d='M5%206.81818C5.12597%206.81818%205.22541%206.79021%205.30497%206.73427C5.38453%206.67832%205.43757%206.6014%205.46409%206.51049C5.49061%206.41259%205.50387%206.25175%205.50387%206.02098C5.50387%205.79021%205.5105%205.63636%205.51713%205.56643C5.53039%205.44755%205.55691%205.35664%205.60331%205.28671C5.64309%205.21678%205.6895%205.16084%205.74917%205.11888C5.80884%205.07692%205.88177%205.04895%205.97459%205.02098C6.03425%205.00699%206.14033%205%206.27956%205H6.41878V5.32867H6.34586C6.17348%205.32867%206.06077%205.35664%206.00773%205.40559C5.9547%205.45454%205.92155%205.57343%205.92155%205.75525C5.92155%206.11888%205.91492%206.34266%205.89503%206.44056C5.86851%206.58741%205.81547%206.6993%205.74254%206.78322C5.66961%206.86014%205.55691%206.93706%205.41105%207C5.59006%207.06294%205.72265%207.16084%205.80221%207.29371C5.88177%207.42657%205.92155%207.63636%205.92155%207.93706C5.92155%208.2028%205.92818%208.36364%205.92818%208.41958C5.94144%208.51049%205.97459%208.58042%206.02762%208.61539C6.08066%208.65035%206.18674%208.67133%206.33923%208.67133H6.41215V9H6.27293C6.11381%209%205.99448%208.99301%205.92818%208.96503C5.8221%208.93007%205.73591%208.88112%205.66961%208.81119C5.60331%208.74126%205.55691%208.65035%205.53702%208.53846C5.51713%208.42657%205.50387%208.25175%205.50387%208C5.50387%207.74825%205.49061%207.58042%205.46409%207.48252C5.43757%207.39161%205.38453%207.30769%205.30497%207.25874C5.22541%207.2028%205.12597%207.17483%205%207.16783V6.81818ZM10.5956%206.06993H7.22099C7.04199%206.06993%206.90276%205.91608%206.90276%205.73427V5.67133C6.90276%205.48252%207.04862%205.33566%207.22099%205.33566H10.5956C10.7746%205.33566%2010.9138%205.48951%2010.9138%205.67133V5.73427C10.9138%205.91608%2010.768%206.06993%2010.5956%206.06993ZM10.5956%207.3986H7.22099C7.04199%207.3986%206.90276%207.24476%206.90276%207.06294V7C6.90276%206.81119%207.04862%206.66434%207.22099%206.66434H10.5956C10.7746%206.66434%2010.9138%206.81818%2010.9138%207V7.06294C10.9138%207.24476%2010.768%207.3986%2010.5956%207.3986ZM10.5956%208.73427H7.22099C7.04199%208.73427%206.90276%208.58042%206.90276%208.3986V8.33566C6.90276%208.14685%207.04862%208%207.22099%208H10.5956C10.7746%208%2010.9138%208.15385%2010.9138%208.33566V8.3986C10.9138%208.58042%2010.768%208.73427%2010.5956%208.73427Z'%20fill='%23675FF0'/%3e%3cpath%20d='M11.5%2010.1265H10.8525V12H10.3677V10.1265H9.72168V9.73096H11.5V10.1265Z'%20fill='%23675FF0'/%3e%3cpath%20d='M7.55811%2012V9.73096H8.3418C9.14746%209.73096%209.55029%2010.0996%209.55029%2010.8369C9.55029%2011.1875%209.4375%2011.4692%209.21191%2011.6821C8.98633%2011.894%208.69531%2012%208.33887%2012H7.55811ZM8.0415%2010.1265V11.6045H8.30518C8.53467%2011.6045%208.71484%2011.5361%208.8457%2011.3994C8.97656%2011.2627%209.04199%2011.0776%209.04199%2010.8442C9.04199%2010.6187%208.97363%2010.4429%208.83691%2010.3169C8.7002%2010.1899%208.52246%2010.1265%208.30371%2010.1265H8.0415Z'%20fill='%23675FF0'/%3e%3cpath%20d='M4.96094%2010.8955C4.96094%2010.54%205.06445%2010.251%205.27148%2010.0283C5.47949%209.80469%205.75391%209.69287%206.09473%209.69287C6.41895%209.69287%206.67969%209.80078%206.87695%2010.0166C7.0752%2010.2324%207.17432%2010.5098%207.17432%2010.8486C7.17432%2011.2021%207.07129%2011.4893%206.86523%2011.71C6.66016%2011.9297%206.39111%2012.0396%206.05811%2012.0396C5.73291%2012.0396%205.46875%2011.9331%205.26562%2011.7202C5.0625%2011.5063%204.96094%2011.2314%204.96094%2010.8955ZM5.46924%2010.8691C5.46924%2011.0898%205.52246%2011.2705%205.62891%2011.4111C5.73535%2011.5508%205.88135%2011.6206%206.06689%2011.6206C6.25635%2011.6206%206.40381%2011.5537%206.50928%2011.4199C6.61475%2011.2852%206.66748%2011.1045%206.66748%2010.8779C6.66748%2010.6416%206.61621%2010.4551%206.51367%2010.3184C6.41113%2010.1807%206.2666%2010.1118%206.08008%2010.1118C5.89062%2010.1118%205.74121%2010.1821%205.63184%2010.3228C5.52344%2010.4634%205.46924%2010.6455%205.46924%2010.8691Z'%20fill='%23675FF0'/%3e%3c/svg%3e",Ib="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM7.71191%205.00098C7.95398%205.01182%208.23799%205.16198%208.30664%205.54688C8.40941%206.03464%208.27759%206.57316%208.17285%207.00488L8.16699%207.03027C8.37835%207.57951%208.66991%207.94773%209.11426%208.21875C10.017%208.10683%2010.5964%208.16863%2010.835%208.40332C10.9994%208.56776%2011.0484%208.87519%2010.9473%209.11914C10.8894%209.25831%2010.7357%209.48926%2010.3457%209.48926C9.95189%209.48921%209.37167%209.31384%208.8623%209.04102C8.40175%209.11875%207.8926%209.29278%207.40137%209.45898C7.2966%209.49512%207.18778%209.5311%207.08301%209.56543C6.3969%2010.7429%205.8824%2010.9998%205.56445%2011C5.48865%2011%205.4233%2010.9837%205.36914%2010.9639C5.24449%2010.9169%205.13813%2010.8189%205.07129%2010.6924C5.01181%2010.5787%204.98629%2010.4528%205.00781%2010.3535C5.1144%209.81502%205.83149%209.3878%206.36621%209.11133C6.65343%208.60533%207.04538%207.75431%207.29102%207.16895C7.09599%206.41389%206.98933%205.82132%207.1084%205.3877C7.17162%205.15099%207.42651%204.98835%207.71191%205.00098ZM6.18555%209.77441C5.99948%209.94427%205.76264%2010.1801%205.6416%2010.4023C5.74457%2010.3228%205.93444%2010.1394%206.18555%209.77441ZM7.73926%207.69629C7.60016%208.05769%207.39944%208.55181%207.15918%208.9873C7.23144%208.95839%207.30596%208.9272%207.38184%208.89648C7.69966%208.76643%208.05529%208.61975%208.44531%208.53125C8.17624%208.31804%207.93249%208.03049%207.73926%207.69629ZM9.73535%208.74707C10.3674%208.99599%2010.5185%208.91259%2010.5352%208.90234L10.5391%208.89648H10.543C10.5536%208.88933%2010.5516%208.88347%2010.5498%208.87988C10.544%208.87053%2010.4509%208.71359%209.73535%208.74707ZM7.72852%205.4834C7.67613%205.54303%207.68883%206.05251%207.77734%206.41211C7.8496%206.16635%207.86152%205.68036%207.76758%205.51953C7.75502%205.4962%207.74284%205.48532%207.72852%205.4834Z'%20fill='%23FF4D50'/%3e%3c/svg%3e",Mb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1777%202.67969C14.4553%202.7361%2014.6644%202.98029%2014.666%203.27441V12.667C14.6659%2012.9891%2014.4376%2013.2583%2014.1338%2013.3203L14%2013.334H2L1.86523%2013.3203C1.56164%2013.2581%201.33312%2012.989%201.33301%2012.667V3.33398C1.33301%203.01196%201.56164%202.74298%201.86523%202.68066L2%202.66699H14.0557L14.1777%202.67969ZM2.33301%2012.334H13.666V3.66699H2.33301V12.334ZM8.78125%207.39355C8.79747%207.40146%208.81204%207.41261%208.82324%207.42676L10.8545%2010.0166C10.915%2010.0939%2010.8601%2010.2078%2010.7607%2010.208H5.28613C5.26386%2010.2081%205.24156%2010.2022%205.22266%2010.1904C5.20374%2010.1786%205.18849%2010.1616%205.17871%2010.1416C5.16897%2010.1216%205.16469%2010.0993%205.16699%2010.0771C5.16933%2010.055%205.17865%2010.0341%205.19238%2010.0166L6.67676%208.12305C6.68788%208.10885%206.70253%208.09775%206.71875%208.08984C6.73488%208.08198%206.75256%208.07818%206.77051%208.07812C6.78858%208.07812%206.807%208.08193%206.82324%208.08984C6.83924%208.09768%206.85322%208.10907%206.86426%208.12305L7.47656%208.90332L8.63379%207.42676C8.64501%207.41261%208.65955%207.40145%208.67578%207.39355C8.69215%207.38564%208.71034%207.38086%208.72852%207.38086C8.74668%207.38087%208.7649%207.38565%208.78125%207.39355ZM6.35547%205.83301C6.51333%205.83301%206.66474%205.89619%206.77637%206.00781C6.888%206.11944%206.95117%206.27084%206.95117%206.42871C6.95111%206.5865%206.88794%206.73803%206.77637%206.84961C6.66476%206.9611%206.51323%207.02344%206.35547%207.02344C6.19768%207.02338%206.04615%206.96118%205.93457%206.84961C5.823%206.73803%205.7608%206.5865%205.76074%206.42871C5.76074%206.27095%205.82308%206.11942%205.93457%206.00781C6.04615%205.89624%206.19768%205.83307%206.35547%205.83301Z'%20fill='%2332A3FF'/%3e%3c/svg%3e",Rb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.1543%205.26758H8.1543C9.30194%205.26778%209.9998%206.03334%2010%207.08105C10%208.14247%209.29247%208.89045%208.15039%208.89062H6.93262V10.7275C6.93262%2010.812%206.86371%2010.8816%206.7793%2010.8818H6.1543C6.06968%2010.8818%206%2010.8122%206%2010.7275V5.41992C6.00002%205.33532%206.06969%205.2666%206.1543%205.2666V5.26758ZM6.93262%206.03906V8.12402H7.68066C8.54028%208.12402%209.0498%207.91372%209.0498%207.0791C9.04962%206.41793%208.66339%206.03914%208.01367%206.03906H6.93262Z'%20fill='%23FA8C16'/%3e%3c/svg%3e",Pb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.73633%201.57642C2.53848%200.774265%203.74473%200.714862%204.87207%201.03052C6.02182%201.35245%207.24885%202.09683%208.3125%203.1604C9.37624%204.22414%2010.1204%205.45195%2010.4424%206.60181C10.758%207.72909%2010.6986%208.93446%209.89648%209.73657C9.09439%2010.5387%207.88901%2010.5981%206.76172%2010.2825C5.61186%209.96051%204.38405%209.21632%203.32031%208.15259C2.25674%207.08894%201.51236%205.86191%201.19043%204.71216C0.874775%203.58481%200.934176%202.37857%201.73633%201.57642Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.76172%205.41479C7.88883%205.09929%209.09442%205.15888%209.89648%205.96069C10.6986%206.76284%2010.758%207.96909%2010.4424%209.09644C10.1204%2010.2462%209.37617%2011.4732%208.3125%2012.5369C7.24882%2013.6005%206.02187%2014.3448%204.87207%2014.6667C3.74472%2014.9824%202.53848%2014.923%201.73633%2014.1208C0.934528%2013.3188%200.874922%2012.1132%201.19043%2010.9861C1.51239%209.83623%202.25659%208.60841%203.32031%207.54468C4.38405%206.48096%205.61186%205.73675%206.76172%205.41479Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.1282%201.03052C12.2553%200.715012%2013.4609%200.774612%2014.263%201.57642C15.0651%202.37857%2015.1246%203.58481%2014.8089%204.71216C14.4869%205.86196%2013.7427%207.08892%2012.679%208.15259C11.6153%209.21627%2010.3884%209.96048%209.23859%2010.2825C8.11124%2010.5981%206.90499%2010.5387%206.10284%209.73657C5.30106%208.9345%205.24144%207.72892%205.55695%206.60181C5.8789%205.45195%206.62311%204.22414%207.68683%203.1604C8.75056%202.09668%209.97838%201.35248%2011.1282%201.03052Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.10284%205.96069C6.90499%205.15855%208.11124%205.09914%209.23859%205.41479C10.3883%205.73673%2011.6154%206.48111%2012.679%207.54468C13.7427%208.60841%2014.4869%209.83623%2014.8089%2010.9861C15.1245%2012.1134%2015.0651%2013.3188%2014.263%2014.1208C13.4609%2014.9229%2012.2555%2014.9823%2011.1282%2014.6667C9.97838%2014.3448%208.75055%2013.6006%207.68683%2012.5369C6.62325%2011.4732%205.87888%2010.2462%205.55695%209.09644C5.24129%207.96909%205.3007%206.76284%206.10284%205.96069Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Nb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM9.91406%205.16699C10.0058%205.16721%2010.0799%205.24128%2010.0801%205.33301V5.9707C10.0801%206.06262%2010.0059%206.13748%209.91406%206.1377H8.64648C8.55457%206.1377%208.47971%206.21185%208.47949%206.30371V10.5469C8.47936%2010.6387%208.40525%2010.7127%208.31348%2010.7129H7.59375C7.50178%2010.7129%207.42689%2010.6388%207.42676%2010.5469V6.30371C7.42654%206.21185%207.35168%206.1377%207.25977%206.1377H6C5.90795%206.1377%205.83301%206.06275%205.83301%205.9707V5.33301C5.83323%205.24115%205.90809%205.16699%206%205.16699H9.91406Z'%20fill='%234089FF'/%3e%3c/svg%3e",Tb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.9568%201.33276C11.1238%201.33276%2011.2849%201.39651%2011.408%201.50952L12.3171%202.34644L11.6404%203.08179L10.8269%202.33374H3.66675V13.6667H12.3337V3.7146L11.6433%203.08472L11.6404%203.08276L12.3171%202.34644L13.1169%203.0769C13.2546%203.20307%2013.3336%203.38138%2013.3337%203.56812V14.0007L13.3201%2014.1345C13.2578%2014.4382%2012.9888%2014.6667%2012.6667%2014.6667H3.33374L3.19897%2014.6531C2.93875%2014.5998%202.73378%2014.3947%202.68042%2014.1345L2.66675%2014.0007V2.00073C2.66675%201.67864%202.89529%201.40965%203.19897%201.34741L3.33374%201.33276H10.9568ZM6.05542%207.31616C6.12046%207.25114%206.22568%207.25122%206.29077%207.31616L6.58081%207.6062C6.64589%207.67128%206.64588%207.77646%206.58081%207.84155L6.17358%208.24976C5.73807%208.68527%205.73807%209.39139%206.17358%209.8269C6.60912%2010.2622%207.31529%2010.2624%207.75073%209.8269L8.15796%209.4187C8.22305%209.35363%208.32921%209.35362%208.39429%209.4187L8.68433%209.70874C8.74934%209.77383%208.74937%209.88%208.68433%209.94507L8.27612%2010.3523C7.55026%2011.0782%206.37308%2011.0782%205.64722%2010.3523C4.92174%209.62652%204.92177%208.45016%205.64722%207.72437L6.05542%207.31616ZM8.29468%207.21655C8.35977%207.15147%208.46592%207.15147%208.53101%207.21655L8.82104%207.50659C8.88578%207.5716%208.88575%207.67692%208.82104%207.74194L7.74194%208.82104C7.67692%208.88583%207.57163%208.8858%207.50659%208.82104L7.21655%208.53101C7.15147%208.46592%207.15147%208.35977%207.21655%208.29468L8.29468%207.21655ZM7.72339%205.64722C8.44919%204.92141%209.62642%204.92152%2010.3523%205.64722C11.0782%206.37308%2011.0782%207.55026%2010.3523%208.27612L9.94409%208.68433C9.87904%208.74897%209.77371%208.7491%209.70874%208.68433L9.4187%208.39429C9.35361%208.3292%209.35361%208.22305%209.4187%208.15796L9.8269%207.75073C10.2623%207.31533%2010.2621%206.60913%209.8269%206.17358C9.39139%205.73807%208.68527%205.73807%208.24976%206.17358L7.84155%206.58081C7.77647%206.64589%207.67129%206.64588%207.6062%206.58081L7.31616%206.29077C7.25109%206.22568%207.25108%206.1205%207.31616%206.05542L7.72339%205.64722Z'%20fill='%231998FF'/%3e%3c/svg%3e",Ab="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM5.77832%205.83301C5.87031%205.83301%205.94933%205.8983%205.9707%205.98828L6.72852%209.2998L7.54492%205.98535C7.56627%205.89541%207.64507%205.83309%207.73535%205.83301H8.26465C8.35498%205.83305%208.43373%205.89538%208.45508%205.98535L9.27344%209.30664L10.0254%205.98828C10.0467%205.89837%2010.1259%205.83313%2010.2178%205.83301H10.8027C10.8329%205.83312%2010.8626%205.84093%2010.8896%205.85449C10.9167%205.86808%2010.9406%205.88781%2010.959%205.91211C10.9773%205.93632%2010.9901%205.96425%2010.9961%205.99414C11.0021%206.02417%2011.0008%206.05533%2010.9932%206.08496L9.77148%2010.6846C9.74853%2010.7727%209.66957%2010.8328%209.58105%2010.833H9.05859C8.96987%2010.833%208.89019%2010.7712%208.86719%2010.6846L8%207.40137L7.13281%2010.6846C7.10985%2010.7728%207.03094%2010.8328%206.94238%2010.833H6.41602C6.32739%2010.8329%206.24857%2010.7712%206.22559%2010.6846L5.00684%206.08496C4.99909%206.05533%204.99796%206.0242%205.00391%205.99414C5.00985%205.9641%205.02262%205.93543%205.04102%205.91113C5.05939%205.88697%205.08338%205.86703%205.11035%205.85352C5.13734%205.84008%205.1672%205.83306%205.19727%205.83301H5.77832Z'%20fill='%23426BFF'/%3e%3c/svg%3e",Fb="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33008C11.457%201.33008%2011.6182%201.39298%2011.7412%201.50586L12.6504%202.34277L11.9736%203.07812L11.1602%202.33008H4V13.6631H12.667V3.71094L11.9766%203.08105L11.9736%203.0791L12.6504%202.34277L13.4502%203.07324C13.588%203.19942%2013.6669%203.37761%2013.667%203.56445V13.9971L13.6533%2014.1309C13.5912%2014.4347%2013.3222%2014.6631%2013%2014.6631H3.66699L3.53223%2014.6494C3.27204%2014.5959%203.06685%2014.3912%203.01367%2014.1309L3%2013.9971V1.99707C3%201.67508%203.22869%201.40611%203.53223%201.34375L3.66699%201.33008H11.29ZM7.36816%206.39941C7.65187%206.39959%207.84768%206.57468%207.95605%206.93066L7.52734%207.78809L7.31641%207.35938C7.24417%207.22007%207.15618%207.14756%207.04785%207.14746H6.19043C6.04599%207.14751%206.00977%207.21486%206.08203%207.35938L7.04199%209.38867C7.68737%208.10825%208.05967%207.27658%208.21973%206.93066C8.40557%206.5332%208.62233%206.39943%208.90625%206.39941H10.791C11.1471%206.39948%2011.2705%206.57449%2011.1621%206.93066C11.0536%207.287%2010.5013%208.46426%209.50488%2010.457C9.46874%2010.5241%209.41249%2010.5762%209.35059%2010.6123C9.1441%2010.731%208.88077%2010.6635%208.75684%2010.457L8.22461%209.28027L8.65332%208.42285L9.13379%209.43945L10.1504%207.35938C10.2175%207.21997%2010.1866%207.14746%2010.042%207.14746H8.97852L7.47656%2010.3535C7.43013%2010.5031%207.31627%2010.6168%207.17188%2010.6582C6.93438%2010.7253%206.68626%2010.591%206.61914%2010.3535C5.62275%208.28844%205.09083%207.1111%205.01855%206.82715C4.94645%206.54338%205.09114%206.39941%205.44727%206.39941H7.36816Z'%20fill='%23ED8E35'/%3e%3c/svg%3e",Db="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H13.3333C13.7015%202%2014%202.29848%2014%202.66667V8H2V2.66667Z'%20fill='%234DC6FF'/%3e%3cpath%20d='M2%208H14V13.3333C14%2013.7015%2013.7015%2014%2013.3333%2014H2.66667C2.29848%2014%202%2013.7015%202%2013.3333V8Z'%20fill='%234DCE84'/%3e%3crect%20x='14'%20y='6'%20width='4'%20height='12'%20transform='rotate(90%2014%206)'%20fill='%23FF5F5A'/%3e%3crect%20x='6'%20y='2'%20width='4'%20height='12'%20fill='%23FCC048'/%3e%3crect%20x='5.66667'%20y='5.66667'%20width='4.66667'%20height='4.66667'%20rx='0.666667'%20stroke='white'%20stroke-width='0.666667'/%3e%3c/svg%3e",kN=Object.assign({});function _N(e,t,n){let r=e;for(let a=0;a<t.length-1;a+=1){const o=t[a];(!r[o]||typeof r[o]!="object")&&(r[o]={}),r=r[o]}r[t[t.length-1]]=n}function HN(e){return e.replace(/^\.\//,"").split("?")[0].replace(/\.svg$/i,"").split("/")}function jN(e,t){const n=ce.lazy(()=>e().then(a=>({default:a.default||a.ReactComponent}))),r=a=>Q(Vb,{fallback:null,children:Q(n,{...a})});return r.displayName=t,os(r)}const Lb={};Object.entries(kN).forEach(([e,t])=>{const n=HN(e),r=jN(t,`Icon(${n.join("/")})`);_N(Lb,n,r)});const zN=Object.assign({"./rag/csv.svg":bb,"./rag/document.svg":yb,"./rag/excel.svg":Cb,"./rag/file.svg":Sb,"./rag/folder.svg":xb,"./rag/json.svg":wb,"./rag/knowledgebase.svg":$b,"./rag/netretrive.svg":Eb,"./rag/odf.svg":Ob,"./rag/pdf.svg":Ib,"./rag/pic.svg":Mb,"./rag/ppt.svg":Rb,"./rag/think.svg":Pb,"./rag/txt.svg":Nb,"./rag/url.svg":Tb,"./rag/word.svg":Ab,"./rag/wps.svg":Fb,"./rag/zip.svg":Db});function BN(e,t,n){let r=e;for(let a=0;a<t.length-1;a+=1){const o=t[a];(!r[o]||typeof r[o]!="object")&&(r[o]={}),r=r[o]}r[t[t.length-1]]=n}function VN(e){return e.replace(/^\.\//,"").split("?")[0].replace(/\.svg$/i,"").split("/")}const kb={};Object.entries(zN).forEach(([e,t])=>{const n=VN(e);BN(kb,n,t)});function WN(e){const t=e.split("/").filter(Boolean);let n=Lb;for(const r of t){if(!n)return;n=n[r]}return typeof n=="function"?n:void 0}function qN(e){const t=e.split("/").filter(Boolean);let n=kb;for(const r of t){if(!n)return;n=n[r]}return typeof n=="string"?n:void 0}const pA=({type:e,size:t,...n})=>{const r=WN(e),a=typeof t<"u"?{width:t,height:t}:{};if(r)return Q(r,{...a,...n});const o=qN(e);return o?Q("img",{src:o,alt:"",...a,...n}):null},UN="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.69727%205.36035C9.24139%205.36035%209.7044%205.43727%2010.0781%205.59961L10.1787%205.64355V6.78418L9.93066%206.64746C9.56044%206.44228%209.15313%206.33892%208.70508%206.33887C8.12836%206.33887%207.66998%206.52918%207.31543%206.90527L7.31445%206.90625C6.96154%207.27886%206.77643%207.78905%206.77637%208.45605C6.77641%209.08819%206.94869%209.57219%207.27637%209.92578L7.4043%2010.0488C7.71343%2010.3185%208.1013%2010.456%208.5791%2010.4561C9.10219%2010.4561%209.54903%2010.3382%209.9248%2010.1084L10.1787%209.95312V11.0381L10.0889%2011.085C9.65012%2011.3158%209.10967%2011.4268%208.47559%2011.4268C7.6423%2011.4268%206.9605%2011.1612%206.44922%2010.6191V10.6182C5.93981%2010.0754%205.69145%209.36307%205.69141%208.49902C5.69147%207.57075%205.97064%206.80719%206.54102%206.22656C7.10964%205.64782%207.83309%205.36042%208.69727%205.36035ZM6.3291%206.75488C6.32678%206.75844%206.32457%206.76206%206.32227%206.76562C6.36901%206.69342%206.41884%206.62326%206.47266%206.55566L6.3291%206.75488ZM8.10645%205.57812C8.01275%205.59511%207.92124%205.61615%207.83203%205.6416C8.0108%205.5906%208.19869%205.55704%208.39551%205.54004L8.10645%205.57812Z'%20fill='%23339C43'/%3e%3c/svg%3e",YN=Object.freeze(Object.defineProperty({__proto__:null,default:UN},Symbol.toStringTag,{value:"Module"})),GN="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33301C11.457%201.33301%2011.6182%201.39584%2011.7412%201.50879L12.6504%202.3457L11.9736%203.08105L11.1602%202.33301H4V13.666H12.667V3.71387L11.9766%203.08398L11.9736%203.08203L12.6504%202.3457L13.4502%203.07617C13.5879%203.20229%2013.6668%203.38063%2013.667%203.56738V14L13.6533%2014.1338C13.5913%2014.4377%2013.3223%2014.666%2013%2014.666H3.66699L3.53223%2014.6523C3.27187%2014.599%203.06687%2014.3942%203.01367%2014.1338L3%2014V2C3.00012%201.67798%203.22857%201.40887%203.53223%201.34668L3.66699%201.33301H11.29ZM10.5%209C10.7761%209%2011%209.22386%2011%209.5C11%209.77614%2010.7761%2010%2010.5%2010H6.5C6.22386%2010%206%209.77614%206%209.5C6%209.22386%206.22386%209%206.5%209H10.5ZM10.5%207C10.7761%207%2011%207.22386%2011%207.5C11%207.77614%2010.7761%208%2010.5%208H6.5C6.22386%208%206%207.77614%206%207.5C6%207.22386%206.22386%207%206.5%207H10.5Z'%20fill='%23426BFF'/%3e%3c/svg%3e",KN=Object.freeze(Object.defineProperty({__proto__:null,default:GN},Symbol.toStringTag,{value:"Module"})),XN="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.71582%205.33301C6.78793%205.33301%206.85481%205.37254%206.89258%205.43652L7.9541%207.25586L9.00488%205.43848C9.04265%205.3745%209.10953%205.33496%209.18164%205.33496H9.79395C9.83089%205.33515%209.86769%205.34564%209.89941%205.36523C9.93101%205.3848%209.95694%205.41285%209.97461%205.44629C9.99224%205.47972%2010.0011%205.5176%2010%205.55566C9.99877%205.59389%209.9876%205.63179%209.96777%205.66406L8.50293%208.01855L9.94531%2010.3359C10.0071%2010.4354%209.97971%2010.5668%209.88379%2010.6309C9.84945%2010.6522%209.81097%2010.665%209.77148%2010.665H9.12793C9.05762%2010.665%208.99086%2010.6274%208.95312%2010.5635L7.88379%208.76172L6.80664%2010.5654C6.76885%2010.6275%206.70384%2010.667%206.63184%2010.667H6.04004C6.00321%2010.6669%205.96628%2010.6561%205.93457%2010.6367C5.90309%2010.6174%205.87717%2010.5897%205.85938%2010.5566C5.84153%2010.5233%205.83209%2010.4854%205.83301%2010.4473C5.83393%2010.4093%205.84491%2010.3721%205.86426%2010.3398L7.2959%207.97949L5.88379%205.66211C5.82198%205.56081%205.85112%205.42939%205.94727%205.36719C5.97982%205.3442%206.01726%205.33302%206.05664%205.33301H6.71582Z'%20fill='%232F913E'/%3e%3c/svg%3e",ZN=Object.freeze(Object.defineProperty({__proto__:null,default:XN},Symbol.toStringTag,{value:"Module"})),QN="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1162%203.07617C13.2543%203.20232%2013.3338%203.3804%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM10%208.5C10.2761%208.5%2010.5%208.72386%2010.5%209C10.5%209.27614%2010.2761%209.5%2010%209.5H6C5.72386%209.5%205.5%209.27614%205.5%209C5.5%208.72386%205.72386%208.5%206%208.5H10ZM9%206C9.27614%206%209.5%206.22386%209.5%206.5C9.5%206.77614%209.27614%207%209%207H6C5.72386%207%205.5%206.77614%205.5%206.5C5.5%206.22386%205.72386%206%206%206H9Z'%20fill='%2370706E'/%3e%3c/svg%3e",JN=Object.freeze(Object.defineProperty({__proto__:null,default:QN},Symbol.toStringTag,{value:"Module"})),eT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H8.22957C8.49499%202%208.73512%202.15744%208.84095%202.40085L9.92791%204.90085C10.1193%205.34115%209.79664%205.83333%209.31652%205.83333H2.66667C2.29848%205.83333%202%205.53486%202%205.16667V2.66667Z'%20fill='%23F9B13C'/%3e%3cpath%20d='M3%204.50008C3%204.31599%203.14924%204.16675%203.33333%204.16675H12.6667C12.8508%204.16675%2013%204.31599%2013%204.50008V13.1667C13%2013.3508%2012.8508%2013.5001%2012.6667%2013.5001H3.33333C3.14924%2013.5001%203%2013.3508%203%2013.1667V4.50008Z'%20fill='white'/%3e%3cpath%20d='M2%204.66675H13.3333C13.7015%204.66675%2014%204.96522%2014%205.33341V13.3334C14%2013.7016%2013.7015%2014.0001%2013.3333%2014.0001H2.66667C2.29848%2014.0001%202%2013.7016%202%2013.3334V4.66675Z'%20fill='%23FFCB2E'/%3e%3c/svg%3e",tT=Object.freeze(Object.defineProperty({__proto__:null,default:eT},Symbol.toStringTag,{value:"Module"})),nT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.95117%208.80469C8.95117%209.45619%208.83123%209.99047%208.58105%2010.3984L8.46582%2010.5654C8.13575%2010.9898%207.68375%2011.2012%207.12109%2011.2012C6.86476%2011.2012%206.64525%2011.1636%206.4668%2011.083L6.4082%2011.0566V10.0342L6.56641%2010.1494C6.70723%2010.2516%206.88862%2010.3066%207.11719%2010.3066C7.40052%2010.3066%207.60577%2010.1907%207.74609%209.95508C7.89129%209.7111%207.9707%209.33189%207.9707%208.80469V4.84961H8.95117V8.80469Z'%20fill='%23FF4D50'/%3e%3c/svg%3e",rT=Object.freeze(Object.defineProperty({__proto__:null,default:nT},Symbol.toStringTag,{value:"Module"})),aT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%201C13.5523%201%2014%201.44772%2014%202V13H3.5C3.22386%2013%203%2013.2239%203%2013.5C3%2013.7761%203.22386%2014%203.5%2014H14C14%2014.5523%2013.5523%2015%2013%2015H4C2.89543%2015%202%2014.1046%202%2013V3C2%201.89543%202.89543%201%204%201H13ZM5.5%204C5.22386%204%205%204.22386%205%204.5C5%204.77614%205.22386%205%205.5%205H10.5C10.7761%205%2011%204.77614%2011%204.5C11%204.22386%2010.7761%204%2010.5%204H5.5Z'%20fill='%230956E4'/%3e%3c/svg%3e",oT=Object.freeze(Object.defineProperty({__proto__:null,default:aT},Symbol.toStringTag,{value:"Module"})),iT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%201.5C11.5899%201.5%2014.5%204.41015%2014.5%208C14.5%2011.5899%2011.5899%2014.5%208%2014.5C4.41015%2014.5%201.5%2011.5899%201.5%208C1.5%204.41015%204.41015%201.5%208%201.5ZM8%202.42871C4.92298%202.42871%202.42871%204.92298%202.42871%208C2.42871%2011.077%204.92298%2013.5713%208%2013.5713C11.077%2013.5713%2013.5713%2011.077%2013.5713%208C13.5713%204.92298%2011.077%202.42871%208%202.42871ZM6.19434%207.36523C6.2548%207.30503%206.3537%207.30487%206.41406%207.36523L6.68262%207.63477C6.74275%207.69515%206.74275%207.79314%206.68262%207.85352L6.30371%208.23242C5.89985%208.63677%205.89974%209.29201%206.30371%209.69629C6.70813%2010.1005%207.3642%2010.1006%207.76855%209.69629L8.14746%209.31738C8.20788%209.25744%208.30591%209.25726%208.36621%209.31738L8.63574%209.58691C8.69582%209.64722%208.69567%209.74526%208.63574%209.80566L8.25684%2010.1846C7.58294%2010.8585%206.49045%2010.8582%205.81641%2010.1846C5.14239%209.51056%205.14239%208.41815%205.81641%207.74414L6.19434%207.36523ZM8.27441%207.27246C8.33487%207.21231%208.43282%207.21214%208.49316%207.27246L8.7627%207.54199C8.82268%207.60237%208.82273%207.7004%208.7627%207.76074L7.76074%208.76172C7.70035%208.82211%207.60244%208.82201%207.54199%208.76172L7.27246%208.49316C7.21217%208.43285%207.21239%208.33487%207.27246%208.27441L8.27441%207.27246ZM7.74414%205.81543C8.41813%205.14189%209.51068%205.14173%2010.1846%205.81543C10.8584%206.48938%2010.8583%207.58286%2010.1846%208.25684L9.80566%208.63477C9.74528%208.69515%209.64736%208.69505%209.58691%208.63477L9.31738%208.36621C9.25716%208.30593%209.25744%208.20792%209.31738%208.14746L9.69629%207.76855C10.1004%207.36418%2010.1005%206.70805%209.69629%206.30371C9.29201%205.89962%208.6368%205.89978%208.23242%206.30371L7.85352%206.68262C7.79319%206.74294%207.69523%206.74271%207.63477%206.68262L7.36523%206.41309C7.30484%206.35264%207.30481%206.25476%207.36523%206.19434L7.74414%205.81543Z'%20fill='%2339B83F'/%3e%3c/svg%3e",lT=Object.freeze(Object.defineProperty({__proto__:null,default:iT},Symbol.toStringTag,{value:"Module"})),sT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957Z'%20fill='%23675FF0'/%3e%3cpath%20d='M5%206.81818C5.12597%206.81818%205.22541%206.79021%205.30497%206.73427C5.38453%206.67832%205.43757%206.6014%205.46409%206.51049C5.49061%206.41259%205.50387%206.25175%205.50387%206.02098C5.50387%205.79021%205.5105%205.63636%205.51713%205.56643C5.53039%205.44755%205.55691%205.35664%205.60331%205.28671C5.64309%205.21678%205.6895%205.16084%205.74917%205.11888C5.80884%205.07692%205.88177%205.04895%205.97459%205.02098C6.03425%205.00699%206.14033%205%206.27956%205H6.41878V5.32867H6.34586C6.17348%205.32867%206.06077%205.35664%206.00773%205.40559C5.9547%205.45454%205.92155%205.57343%205.92155%205.75525C5.92155%206.11888%205.91492%206.34266%205.89503%206.44056C5.86851%206.58741%205.81547%206.6993%205.74254%206.78322C5.66961%206.86014%205.55691%206.93706%205.41105%207C5.59006%207.06294%205.72265%207.16084%205.80221%207.29371C5.88177%207.42657%205.92155%207.63636%205.92155%207.93706C5.92155%208.2028%205.92818%208.36364%205.92818%208.41958C5.94144%208.51049%205.97459%208.58042%206.02762%208.61539C6.08066%208.65035%206.18674%208.67133%206.33923%208.67133H6.41215V9H6.27293C6.11381%209%205.99448%208.99301%205.92818%208.96503C5.8221%208.93007%205.73591%208.88112%205.66961%208.81119C5.60331%208.74126%205.55691%208.65035%205.53702%208.53846C5.51713%208.42657%205.50387%208.25175%205.50387%208C5.50387%207.74825%205.49061%207.58042%205.46409%207.48252C5.43757%207.39161%205.38453%207.30769%205.30497%207.25874C5.22541%207.2028%205.12597%207.17483%205%207.16783V6.81818ZM10.5956%206.06993H7.22099C7.04199%206.06993%206.90276%205.91608%206.90276%205.73427V5.67133C6.90276%205.48252%207.04862%205.33566%207.22099%205.33566H10.5956C10.7746%205.33566%2010.9138%205.48951%2010.9138%205.67133V5.73427C10.9138%205.91608%2010.768%206.06993%2010.5956%206.06993ZM10.5956%207.3986H7.22099C7.04199%207.3986%206.90276%207.24476%206.90276%207.06294V7C6.90276%206.81119%207.04862%206.66434%207.22099%206.66434H10.5956C10.7746%206.66434%2010.9138%206.81818%2010.9138%207V7.06294C10.9138%207.24476%2010.768%207.3986%2010.5956%207.3986ZM10.5956%208.73427H7.22099C7.04199%208.73427%206.90276%208.58042%206.90276%208.3986V8.33566C6.90276%208.14685%207.04862%208%207.22099%208H10.5956C10.7746%208%2010.9138%208.15385%2010.9138%208.33566V8.3986C10.9138%208.58042%2010.768%208.73427%2010.5956%208.73427Z'%20fill='%23675FF0'/%3e%3cpath%20d='M11.5%2010.1265H10.8525V12H10.3677V10.1265H9.72168V9.73096H11.5V10.1265Z'%20fill='%23675FF0'/%3e%3cpath%20d='M7.55811%2012V9.73096H8.3418C9.14746%209.73096%209.55029%2010.0996%209.55029%2010.8369C9.55029%2011.1875%209.4375%2011.4692%209.21191%2011.6821C8.98633%2011.894%208.69531%2012%208.33887%2012H7.55811ZM8.0415%2010.1265V11.6045H8.30518C8.53467%2011.6045%208.71484%2011.5361%208.8457%2011.3994C8.97656%2011.2627%209.04199%2011.0776%209.04199%2010.8442C9.04199%2010.6187%208.97363%2010.4429%208.83691%2010.3169C8.7002%2010.1899%208.52246%2010.1265%208.30371%2010.1265H8.0415Z'%20fill='%23675FF0'/%3e%3cpath%20d='M4.96094%2010.8955C4.96094%2010.54%205.06445%2010.251%205.27148%2010.0283C5.47949%209.80469%205.75391%209.69287%206.09473%209.69287C6.41895%209.69287%206.67969%209.80078%206.87695%2010.0166C7.0752%2010.2324%207.17432%2010.5098%207.17432%2010.8486C7.17432%2011.2021%207.07129%2011.4893%206.86523%2011.71C6.66016%2011.9297%206.39111%2012.0396%206.05811%2012.0396C5.73291%2012.0396%205.46875%2011.9331%205.26562%2011.7202C5.0625%2011.5063%204.96094%2011.2314%204.96094%2010.8955ZM5.46924%2010.8691C5.46924%2011.0898%205.52246%2011.2705%205.62891%2011.4111C5.73535%2011.5508%205.88135%2011.6206%206.06689%2011.6206C6.25635%2011.6206%206.40381%2011.5537%206.50928%2011.4199C6.61475%2011.2852%206.66748%2011.1045%206.66748%2010.8779C6.66748%2010.6416%206.61621%2010.4551%206.51367%2010.3184C6.41113%2010.1807%206.2666%2010.1118%206.08008%2010.1118C5.89062%2010.1118%205.74121%2010.1821%205.63184%2010.3228C5.52344%2010.4634%205.46924%2010.6455%205.46924%2010.8691Z'%20fill='%23675FF0'/%3e%3c/svg%3e",cT=Object.freeze(Object.defineProperty({__proto__:null,default:sT},Symbol.toStringTag,{value:"Module"})),uT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM7.71191%205.00098C7.95398%205.01182%208.23799%205.16198%208.30664%205.54688C8.40941%206.03464%208.27759%206.57316%208.17285%207.00488L8.16699%207.03027C8.37835%207.57951%208.66991%207.94773%209.11426%208.21875C10.017%208.10683%2010.5964%208.16863%2010.835%208.40332C10.9994%208.56776%2011.0484%208.87519%2010.9473%209.11914C10.8894%209.25831%2010.7357%209.48926%2010.3457%209.48926C9.95189%209.48921%209.37167%209.31384%208.8623%209.04102C8.40175%209.11875%207.8926%209.29278%207.40137%209.45898C7.2966%209.49512%207.18778%209.5311%207.08301%209.56543C6.3969%2010.7429%205.8824%2010.9998%205.56445%2011C5.48865%2011%205.4233%2010.9837%205.36914%2010.9639C5.24449%2010.9169%205.13813%2010.8189%205.07129%2010.6924C5.01181%2010.5787%204.98629%2010.4528%205.00781%2010.3535C5.1144%209.81502%205.83149%209.3878%206.36621%209.11133C6.65343%208.60533%207.04538%207.75431%207.29102%207.16895C7.09599%206.41389%206.98933%205.82132%207.1084%205.3877C7.17162%205.15099%207.42651%204.98835%207.71191%205.00098ZM6.18555%209.77441C5.99948%209.94427%205.76264%2010.1801%205.6416%2010.4023C5.74457%2010.3228%205.93444%2010.1394%206.18555%209.77441ZM7.73926%207.69629C7.60016%208.05769%207.39944%208.55181%207.15918%208.9873C7.23144%208.95839%207.30596%208.9272%207.38184%208.89648C7.69966%208.76643%208.05529%208.61975%208.44531%208.53125C8.17624%208.31804%207.93249%208.03049%207.73926%207.69629ZM9.73535%208.74707C10.3674%208.99599%2010.5185%208.91259%2010.5352%208.90234L10.5391%208.89648H10.543C10.5536%208.88933%2010.5516%208.88347%2010.5498%208.87988C10.544%208.87053%2010.4509%208.71359%209.73535%208.74707ZM7.72852%205.4834C7.67613%205.54303%207.68883%206.05251%207.77734%206.41211C7.8496%206.16635%207.86152%205.68036%207.76758%205.51953C7.75502%205.4962%207.74284%205.48532%207.72852%205.4834Z'%20fill='%23FF4D50'/%3e%3c/svg%3e",dT=Object.freeze(Object.defineProperty({__proto__:null,default:uT},Symbol.toStringTag,{value:"Module"})),fT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1777%202.67969C14.4553%202.7361%2014.6644%202.98029%2014.666%203.27441V12.667C14.6659%2012.9891%2014.4376%2013.2583%2014.1338%2013.3203L14%2013.334H2L1.86523%2013.3203C1.56164%2013.2581%201.33312%2012.989%201.33301%2012.667V3.33398C1.33301%203.01196%201.56164%202.74298%201.86523%202.68066L2%202.66699H14.0557L14.1777%202.67969ZM2.33301%2012.334H13.666V3.66699H2.33301V12.334ZM8.78125%207.39355C8.79747%207.40146%208.81204%207.41261%208.82324%207.42676L10.8545%2010.0166C10.915%2010.0939%2010.8601%2010.2078%2010.7607%2010.208H5.28613C5.26386%2010.2081%205.24156%2010.2022%205.22266%2010.1904C5.20374%2010.1786%205.18849%2010.1616%205.17871%2010.1416C5.16897%2010.1216%205.16469%2010.0993%205.16699%2010.0771C5.16933%2010.055%205.17865%2010.0341%205.19238%2010.0166L6.67676%208.12305C6.68788%208.10885%206.70253%208.09775%206.71875%208.08984C6.73488%208.08198%206.75256%208.07818%206.77051%208.07812C6.78858%208.07812%206.807%208.08193%206.82324%208.08984C6.83924%208.09768%206.85322%208.10907%206.86426%208.12305L7.47656%208.90332L8.63379%207.42676C8.64501%207.41261%208.65955%207.40145%208.67578%207.39355C8.69215%207.38564%208.71034%207.38086%208.72852%207.38086C8.74668%207.38087%208.7649%207.38565%208.78125%207.39355ZM6.35547%205.83301C6.51333%205.83301%206.66474%205.89619%206.77637%206.00781C6.888%206.11944%206.95117%206.27084%206.95117%206.42871C6.95111%206.5865%206.88794%206.73803%206.77637%206.84961C6.66476%206.9611%206.51323%207.02344%206.35547%207.02344C6.19768%207.02338%206.04615%206.96118%205.93457%206.84961C5.823%206.73803%205.7608%206.5865%205.76074%206.42871C5.76074%206.27095%205.82308%206.11942%205.93457%206.00781C6.04615%205.89624%206.19768%205.83307%206.35547%205.83301Z'%20fill='%2332A3FF'/%3e%3c/svg%3e",mT=Object.freeze(Object.defineProperty({__proto__:null,default:fT},Symbol.toStringTag,{value:"Module"})),vT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.1543%205.26758H8.1543C9.30194%205.26778%209.9998%206.03334%2010%207.08105C10%208.14247%209.29247%208.89045%208.15039%208.89062H6.93262V10.7275C6.93262%2010.812%206.86371%2010.8816%206.7793%2010.8818H6.1543C6.06968%2010.8818%206%2010.8122%206%2010.7275V5.41992C6.00002%205.33532%206.06969%205.2666%206.1543%205.2666V5.26758ZM6.93262%206.03906V8.12402H7.68066C8.54028%208.12402%209.0498%207.91372%209.0498%207.0791C9.04962%206.41793%208.66339%206.03914%208.01367%206.03906H6.93262Z'%20fill='%23FA8C16'/%3e%3c/svg%3e",gT=Object.freeze(Object.defineProperty({__proto__:null,default:vT},Symbol.toStringTag,{value:"Module"})),hT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.73633%201.57642C2.53848%200.774265%203.74473%200.714862%204.87207%201.03052C6.02182%201.35245%207.24885%202.09683%208.3125%203.1604C9.37624%204.22414%2010.1204%205.45195%2010.4424%206.60181C10.758%207.72909%2010.6986%208.93446%209.89648%209.73657C9.09439%2010.5387%207.88901%2010.5981%206.76172%2010.2825C5.61186%209.96051%204.38405%209.21632%203.32031%208.15259C2.25674%207.08894%201.51236%205.86191%201.19043%204.71216C0.874775%203.58481%200.934176%202.37857%201.73633%201.57642Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.76172%205.41479C7.88883%205.09929%209.09442%205.15888%209.89648%205.96069C10.6986%206.76284%2010.758%207.96909%2010.4424%209.09644C10.1204%2010.2462%209.37617%2011.4732%208.3125%2012.5369C7.24882%2013.6005%206.02187%2014.3448%204.87207%2014.6667C3.74472%2014.9824%202.53848%2014.923%201.73633%2014.1208C0.934528%2013.3188%200.874922%2012.1132%201.19043%2010.9861C1.51239%209.83623%202.25659%208.60841%203.32031%207.54468C4.38405%206.48096%205.61186%205.73675%206.76172%205.41479Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.1282%201.03052C12.2553%200.715012%2013.4609%200.774612%2014.263%201.57642C15.0651%202.37857%2015.1246%203.58481%2014.8089%204.71216C14.4869%205.86196%2013.7427%207.08892%2012.679%208.15259C11.6153%209.21627%2010.3884%209.96048%209.23859%2010.2825C8.11124%2010.5981%206.90499%2010.5387%206.10284%209.73657C5.30106%208.9345%205.24144%207.72892%205.55695%206.60181C5.8789%205.45195%206.62311%204.22414%207.68683%203.1604C8.75056%202.09668%209.97838%201.35248%2011.1282%201.03052Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.10284%205.96069C6.90499%205.15855%208.11124%205.09914%209.23859%205.41479C10.3883%205.73673%2011.6154%206.48111%2012.679%207.54468C13.7427%208.60841%2014.4869%209.83623%2014.8089%2010.9861C15.1245%2012.1134%2015.0651%2013.3188%2014.263%2014.1208C13.4609%2014.9229%2012.2555%2014.9823%2011.1282%2014.6667C9.97838%2014.3448%208.75055%2013.6006%207.68683%2012.5369C6.62325%2011.4732%205.87888%2010.2462%205.55695%209.09644C5.24129%207.96909%205.3007%206.76284%206.10284%205.96069Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",pT=Object.freeze(Object.defineProperty({__proto__:null,default:hT},Symbol.toStringTag,{value:"Module"})),bT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM9.91406%205.16699C10.0058%205.16721%2010.0799%205.24128%2010.0801%205.33301V5.9707C10.0801%206.06262%2010.0059%206.13748%209.91406%206.1377H8.64648C8.55457%206.1377%208.47971%206.21185%208.47949%206.30371V10.5469C8.47936%2010.6387%208.40525%2010.7127%208.31348%2010.7129H7.59375C7.50178%2010.7129%207.42689%2010.6388%207.42676%2010.5469V6.30371C7.42654%206.21185%207.35168%206.1377%207.25977%206.1377H6C5.90795%206.1377%205.83301%206.06275%205.83301%205.9707V5.33301C5.83323%205.24115%205.90809%205.16699%206%205.16699H9.91406Z'%20fill='%234089FF'/%3e%3c/svg%3e",yT=Object.freeze(Object.defineProperty({__proto__:null,default:bT},Symbol.toStringTag,{value:"Module"})),CT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.9568%201.33276C11.1238%201.33276%2011.2849%201.39651%2011.408%201.50952L12.3171%202.34644L11.6404%203.08179L10.8269%202.33374H3.66675V13.6667H12.3337V3.7146L11.6433%203.08472L11.6404%203.08276L12.3171%202.34644L13.1169%203.0769C13.2546%203.20307%2013.3336%203.38138%2013.3337%203.56812V14.0007L13.3201%2014.1345C13.2578%2014.4382%2012.9888%2014.6667%2012.6667%2014.6667H3.33374L3.19897%2014.6531C2.93875%2014.5998%202.73378%2014.3947%202.68042%2014.1345L2.66675%2014.0007V2.00073C2.66675%201.67864%202.89529%201.40965%203.19897%201.34741L3.33374%201.33276H10.9568ZM6.05542%207.31616C6.12046%207.25114%206.22568%207.25122%206.29077%207.31616L6.58081%207.6062C6.64589%207.67128%206.64588%207.77646%206.58081%207.84155L6.17358%208.24976C5.73807%208.68527%205.73807%209.39139%206.17358%209.8269C6.60912%2010.2622%207.31529%2010.2624%207.75073%209.8269L8.15796%209.4187C8.22305%209.35363%208.32921%209.35362%208.39429%209.4187L8.68433%209.70874C8.74934%209.77383%208.74937%209.88%208.68433%209.94507L8.27612%2010.3523C7.55026%2011.0782%206.37308%2011.0782%205.64722%2010.3523C4.92174%209.62652%204.92177%208.45016%205.64722%207.72437L6.05542%207.31616ZM8.29468%207.21655C8.35977%207.15147%208.46592%207.15147%208.53101%207.21655L8.82104%207.50659C8.88578%207.5716%208.88575%207.67692%208.82104%207.74194L7.74194%208.82104C7.67692%208.88583%207.57163%208.8858%207.50659%208.82104L7.21655%208.53101C7.15147%208.46592%207.15147%208.35977%207.21655%208.29468L8.29468%207.21655ZM7.72339%205.64722C8.44919%204.92141%209.62642%204.92152%2010.3523%205.64722C11.0782%206.37308%2011.0782%207.55026%2010.3523%208.27612L9.94409%208.68433C9.87904%208.74897%209.77371%208.7491%209.70874%208.68433L9.4187%208.39429C9.35361%208.3292%209.35361%208.22305%209.4187%208.15796L9.8269%207.75073C10.2623%207.31533%2010.2621%206.60913%209.8269%206.17358C9.39139%205.73807%208.68527%205.73807%208.24976%206.17358L7.84155%206.58081C7.77647%206.64589%207.67129%206.64588%207.6062%206.58081L7.31616%206.29077C7.25109%206.22568%207.25108%206.1205%207.31616%206.05542L7.72339%205.64722Z'%20fill='%231998FF'/%3e%3c/svg%3e",ST=Object.freeze(Object.defineProperty({__proto__:null,default:CT},Symbol.toStringTag,{value:"Module"})),xT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM5.77832%205.83301C5.87031%205.83301%205.94933%205.8983%205.9707%205.98828L6.72852%209.2998L7.54492%205.98535C7.56627%205.89541%207.64507%205.83309%207.73535%205.83301H8.26465C8.35498%205.83305%208.43373%205.89538%208.45508%205.98535L9.27344%209.30664L10.0254%205.98828C10.0467%205.89837%2010.1259%205.83313%2010.2178%205.83301H10.8027C10.8329%205.83312%2010.8626%205.84093%2010.8896%205.85449C10.9167%205.86808%2010.9406%205.88781%2010.959%205.91211C10.9773%205.93632%2010.9901%205.96425%2010.9961%205.99414C11.0021%206.02417%2011.0008%206.05533%2010.9932%206.08496L9.77148%2010.6846C9.74853%2010.7727%209.66957%2010.8328%209.58105%2010.833H9.05859C8.96987%2010.833%208.89019%2010.7712%208.86719%2010.6846L8%207.40137L7.13281%2010.6846C7.10985%2010.7728%207.03094%2010.8328%206.94238%2010.833H6.41602C6.32739%2010.8329%206.24857%2010.7712%206.22559%2010.6846L5.00684%206.08496C4.99909%206.05533%204.99796%206.0242%205.00391%205.99414C5.00985%205.9641%205.02262%205.93543%205.04102%205.91113C5.05939%205.88697%205.08338%205.86703%205.11035%205.85352C5.13734%205.84008%205.1672%205.83306%205.19727%205.83301H5.77832Z'%20fill='%23426BFF'/%3e%3c/svg%3e",wT=Object.freeze(Object.defineProperty({__proto__:null,default:xT},Symbol.toStringTag,{value:"Module"})),$T="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33008C11.457%201.33008%2011.6182%201.39298%2011.7412%201.50586L12.6504%202.34277L11.9736%203.07812L11.1602%202.33008H4V13.6631H12.667V3.71094L11.9766%203.08105L11.9736%203.0791L12.6504%202.34277L13.4502%203.07324C13.588%203.19942%2013.6669%203.37761%2013.667%203.56445V13.9971L13.6533%2014.1309C13.5912%2014.4347%2013.3222%2014.6631%2013%2014.6631H3.66699L3.53223%2014.6494C3.27204%2014.5959%203.06685%2014.3912%203.01367%2014.1309L3%2013.9971V1.99707C3%201.67508%203.22869%201.40611%203.53223%201.34375L3.66699%201.33008H11.29ZM7.36816%206.39941C7.65187%206.39959%207.84768%206.57468%207.95605%206.93066L7.52734%207.78809L7.31641%207.35938C7.24417%207.22007%207.15618%207.14756%207.04785%207.14746H6.19043C6.04599%207.14751%206.00977%207.21486%206.08203%207.35938L7.04199%209.38867C7.68737%208.10825%208.05967%207.27658%208.21973%206.93066C8.40557%206.5332%208.62233%206.39943%208.90625%206.39941H10.791C11.1471%206.39948%2011.2705%206.57449%2011.1621%206.93066C11.0536%207.287%2010.5013%208.46426%209.50488%2010.457C9.46874%2010.5241%209.41249%2010.5762%209.35059%2010.6123C9.1441%2010.731%208.88077%2010.6635%208.75684%2010.457L8.22461%209.28027L8.65332%208.42285L9.13379%209.43945L10.1504%207.35938C10.2175%207.21997%2010.1866%207.14746%2010.042%207.14746H8.97852L7.47656%2010.3535C7.43013%2010.5031%207.31627%2010.6168%207.17188%2010.6582C6.93438%2010.7253%206.68626%2010.591%206.61914%2010.3535C5.62275%208.28844%205.09083%207.1111%205.01855%206.82715C4.94645%206.54338%205.09114%206.39941%205.44727%206.39941H7.36816Z'%20fill='%23ED8E35'/%3e%3c/svg%3e",ET=Object.freeze(Object.defineProperty({__proto__:null,default:$T},Symbol.toStringTag,{value:"Module"})),OT="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H13.3333C13.7015%202%2014%202.29848%2014%202.66667V8H2V2.66667Z'%20fill='%234DC6FF'/%3e%3cpath%20d='M2%208H14V13.3333C14%2013.7015%2013.7015%2014%2013.3333%2014H2.66667C2.29848%2014%202%2013.7015%202%2013.3333V8Z'%20fill='%234DCE84'/%3e%3crect%20x='14'%20y='6'%20width='4'%20height='12'%20transform='rotate(90%2014%206)'%20fill='%23FF5F5A'/%3e%3crect%20x='6'%20y='2'%20width='4'%20height='12'%20fill='%23FCC048'/%3e%3crect%20x='5.66667'%20y='5.66667'%20width='4.66667'%20height='4.66667'%20rx='0.666667'%20stroke='white'%20stroke-width='0.666667'/%3e%3c/svg%3e",IT=Object.freeze(Object.defineProperty({__proto__:null,default:OT},Symbol.toStringTag,{value:"Module"})),MT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAV9SURBVHgBvVZfb1VFEJ/ZPS2l9cpFQypSEEMhUmKiYjQBoxDjm8ZoQuKjTyZ+AV9MrOAH8MlHE99rRKOvPgCSoAkalbQx1mBLLV4vpX9u2t6es7vjzOyevZdg5Y2b7N09c3Zn5jfzm9kDcJ9/uN2LZy6c/RAMfoCASFlKcoKAREb8H0Us/G89RH2v9OHc9gYvnQusDPnHU1Ajaky9jAbjGsQhijPV+6IjaVYdcTuY7QzyaT4ouyijU5k8q5hEC1JaK2KFo/ti6Kg+GWrnoID/+yUDmM9TDUxDG50Ssf5jL+SEtQGq98E9ECZDd6IGjWVUlgxjTlKMxl1nkvG+FMhWejtQ+HgzVM1Vt0n/dNfwRneZ/u6u4HK1Dl1f8ZZwV75Xqk1YDyX8tDan2iJirJVjzkZKv0jrkE7yQ5ONggsBtkJFnXIDV7bWYbnswLovMUQnE4mSKn7eMzAiijKhqAaCRIk06YAyUA2K+GDexUh88HwwkOO5Cg6dcxAghiYRNBOVCorhTXRSttZ5jZkVZmGkGmWDyWHCwAgDk8o5z4YqKitHlavQM/raWEKpFipTwe3OCiXMiD18cVYKZw71GUw8kpA0B4bhUGOUxPhiZwlLX8JDQw/S0V378NbmKsysLmTdzjr6q3UTEqJM2x71YkhrapkzZ87kN6m+YKPqwvMPH8K3Dp7AHWDB+0BvjD2L7xx+GTrdDUFPnsPsXQUyF6yzQMOzASszD8syC7JGKgySlZnlZmpqKuJlgYzABtfLLZi5vQA7i0E4vfcYPNHYiy8+MgEXFq/B9U6LwAckz1kNknLCAUyK1Sgb0rUFMTTAT1FuUR1IISXNX2osHEv4sf0HHGjsgVfGnoIju/ZBm0P5+exl4GRq1IwxylIpZKNpjQyJvYawl03IsyxNMthrj0IOPtKttuDb+Z9huNgBR3ePwdTv38GtzTVSbYxKB0UFBcRw9oWOYphl3RsSZjMxMVFTVLwUpKBM9R72jjRz8o/tPgDkHBsKrBplsHJDMhfGyICCDIfXinFUGePnZ7QxvyhhNtPT01TnUPKh2LksmoPDcOLRCbg0/wtMt+fgpf1PwrHmfkAuF84hyYye1y6gGLIcxQFjhSg5Z2JEUEUyJdIcP3481yCm6jD88Prhkyo/f+0ifPL9F+rUu0+/BlyUXHwVUOl47blgvTLTMqKovGYsZCNMquiEdJpGo5GLRq8tdn589z4YGRyCK3PXoL22RJtlF7+ZvgyvTpyEN4+8AOdnLiKzhkPMEbYVrP45D3UtZyXx4r7j+hWyFZ1OJ3ca7jBSF/Db0hx89esFuL60KCiQ80mfXvkSPvvha2QkYG0BwTA6g4IY2SPlpehlMKJD25sYDdB3pbLJ4urVq7JYYWkzukHabYQ0xIO9AMmTvhMDhlQkiqUU2uUSaalAuhQ8xXaVvj8wrrG/tQGjfG9oeOh9fvGYZaWDpoAGk6a58wHpMjAyMKTMNZaTzmetEWoYcOTpRmsR0VGqvxxZzLdwbpqxt9e3vh0dHS3Ksiz8iLfh8WE7ePRgS4mkpR0PxOqm3AkZZfIbIzyT+mhKXuh94UB6odpgfHwcWq0WFUXh7aD1uMGcCHyefTR8ynBk5ZnvK25rJCGUZ+46rMHJHGU6BK2TNMg5VlBJCcm7gLJX3Z+dnSU26tvtNrOo8J25m1tCdzEkSrjuJI9g2Sgb4YGqUHpqMqQzK48Gs+HsAGGVnJJwQq/NxW+cMcA9p5/bkBBJ7vRa096AiXlBc8j0SV0R8ydAok6ug97HaYyp1LicksF4wJ06dcrBAnhG8REqKlQE0kmUjYy2Ro0+hlU7T5LXSKFGKmdiiIkcnQXoK9nJyUkjow9tP/I8+vboOcqEvPfvX+6cfN20TwR9AAAAAElFTkSuQmCC",RT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVNSURBVHgBvVZLbxxFEK7qmXHWiR1siwNIFnmAhDAIlERw9gFx4J57jty5IIRk5Q8AF/4Cl/wJCyRuFhJInALhsQRC/Iqza292Zrr46tHrjSVzZLS93T3TXY+vvqpuov/54fM+fPTV9A5R9TkWrAoJ6c93sDAJC7GcrhYugiSEytzE5/wAW+8mOvdJWyR5lVyZa+TnlHgTUZEiGGZdJ/Yj//Pe5/lazvJlfa4+kavmhZg34U8Oz+zHc2vdbVg0c42jdy/tH69W/sNDtTuzmsfmhRtv5uogRLvXsUby6XsJu9j2cJmfq1CyzM9ctm0PkY5TGBOj4ljRSYazGxvI+GKRO5D/xbSllfGE5GAkvPuEZPco8/iEaNpDf36eYCp9NCF61hHdf2i6Qrmb5dgXQ3lmQIkhCEIr6lSXidqOZTzpeXQi9GQMoa2bp+jynAs6v7xoH4w4M6/CHTcCPy6cI1OoIq66JbpXuIfSHvzozQDhtg8a+KaiWKSAFFg6n4071jMb3wrxzKCi0B54yEsDptUlKOqFH+6RqLdtJ5yDAFzCED5NO6G9IycTG03tG4cNbEQLoOWsQjW5Sk6otWWmFoFDXHnaRY7RLBRcAtP3LMNd85yfpwwXoRxstjf17du3TZF6gMSko3Gmtmf66XeRHtYbvJJEey4CFKrs1QXQU50iuFywDpQN7TSju+pM9+7dm5miz6TN9NdeT+OTzHDQsyBn/uCGlxmosTjrOMe4qaG0ZrG+0pZinGShJm4qogZ9jb7e2NhIGtweMeuyW5bxN7hgrDDDN9+u6M0rjHgRf/sjEE1aWMx8TsjkKkF1qk4pLMKzSJfyEN8sLQClbjRaaIBeWq3ojSsJZOjk2suJ37nu9eHGqwzPRb7/JXsNgwyEnNQbl5fmCp7XmFksw4A6sDWSwVVAkPjFy4k0z9+/2fDiwlzlx/Pu68R/7DHtPQ32scOoMBHDEK5kPi+NXBJFLojT5JynIAWSXaAgUSkAXa/eE80Xf32Ojom+3u5RgZhWLhF990MLwYkM3yK/GOl5IjPS3Lp1yxfB3sUL+qZQ6HRP1N1ZW75I9OF7iSZwZYoXhSh10jE8wLyxdyCSjgthtC0vL4unhdDJM5GDceZHhz09PMj0z5HQ0+MsJ62wZwOaCU6oPhUdI0cv9om+2cf+EiYPj0MYZJlDR+rhcKigI58yHT/LfDhu6dFhpl8f9zTcy7Q/6vmkjZNAI1RVsLYhkFIwpgnYPZmqBo1f8srpRScALSeHBZPr+/cX1KBDseINxSigLYLYou+0Za+nookPSuLgoJ4zVaAJdNLfRyw1GJZPi8nsQsLlDGX31tJiY4No/2D0yeDi4qfY8AocoEHDtDRIdBmxUrYudlAEIxJIoTLrJpHyQ4vAn487TlkPVgluBLBW4kt6zOxgBmmaneFwYbl+azB4Ya0ZpaVmIV2qF29+9jPY6/nq9ordnwwYVQyNCWyAn5QaZymnucvT7Nzlsl9KHq431/PweNSmapCrBeq7BYSHKiCYgtUeP8kclT9Kda5EEzDqBUc+u54o2XbrsNPDa2+9s7MDQF7L6+uTdnhcy9pot9+Xjtf6ZDGbFYwcSg2p5PPk156gcOTc/NWkpGI5pcLDzc31fnt7G9+Gsm/L1vGhOQQaK3qCGPtIJSc/EoNAqowC3tDjmEfyc7mu2W1PlacHCRZnKFOSoa5Qt7m5idNv2IF2H2Pdb0gCi16FspsyQM7gp1Q6VqZSjeOngrwKErQZgZBiPsb5qnXavvEBytbd4rnRdmtrK2kjv82leJ/Otrk17GyQc2/wZ59/AcalYkfFCITdAAAAAElFTkSuQmCC",PT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVbSURBVHgBvVbLblxFED3V9854bEfEeeBEJkROogjhSCDFC7Zs2LMJ66z4AhaIjZUfgB2ssgYpC8QfZEeQiJBATAIisUGJE5yH7Tjj8X10F1Xd1deTSAZWGann9vSd7lNV51RVA6/4Qwe9eHb1q8vk6HMwjuhv5vgN5xzLh+KP/zrH9oBIxyp5XDkQ8PnVL1flv4vpNOIAFnwyXCZdU5gILuuYfE5iGp59tsqDAMmHRVIAPVx2uMC6kWwt2YHOtbQeFIzzSnIOHA2O5wBzBwMG3RgUQ+1MRrJOOJo9YYyFWM3K68hoKQiByYDxL4De7OcUEk54McDp4OQdmzGIjkvYxUye2GPTiNgZznxZvr5A08yhGjPv7BC2tzk8e0bYGwNtK1jhJW5k/94euG3BD9bZFs2KzOlLHMo8e7gib+bkUMDLaD37vTFhPAaPnoObmpI+Ep/I+hMjaDAtfPsU2hQGYzCGVr8py1m3lha3RVuK8WYJp3DIdP48uTfehP/xB/i1u0miFJ2LhMWDQpD/ynDO3E5y4cR/JC9xGvnoAHOYSL0M3oN9S+Wx4wgbG8CRYwi/3VKCOLBRlzOx14Pf2rRVJTjqxdQ6AWcvXgDUiRIOFUzbsHBKNDeHsL2lYY071STLtXi4a/u8u7GeEgP7XBlgNi1JTWbu0qVLLwpBmZAQhbZRy0H9PtpHD+GbGr6tEYRP8Z5Z3nMjQ6IRjDrOjmQns4CSduLr8tq1axYM0lIim4McGAHJjXZSXCRsCgBXxDwLpsBYgdo2VRhYEiLjmc5cTAjOIXXZbw2TJbCqD0pWefoMtev30H/nItzR47LmRR+aHpT0Z2VMGNc6F2udjmBJykm6KZMtGTOH2UqVacQvT50Gzcxi9O03GFx8DzMffkTN2h/GBlG7dgfN2l3LApf42a9r5lIWTKaWyC0tLWUCk88W8d6Zc2j+WkX/rSX0FHxqSuYX0Fs8B/SnMHj/g0xNdEy/vMZYabF6mHh0MWrqtSKUw+Ewpyorf9Qr5dCzAjBAeXIBKArsfn8d/tHfKOZPYurtd8WYs6hu/QLvGxVQKliq2FS/ctpkPjvxqJDL5eXlzkMVRSFc6eYw2sH2d1+jfSJ5WFUc4/HwHo9/vilxcUlM+vSDeHBhVazrf1bBmZI1ynhALm2aCjKchCoXvt2fbsDvSllra1FiRVnzTpM/isDFc4q6ws7Gr9G79A9rRlkbmGBV3pTj8dgSRfBDUlJ15zZqSeaYi5L8UgCsBzIpF6RgUQMO1NbUShF3ia1c9KjzzoqANTkqMRzqqy2pLnPt8y20Tx9Loj8QMOEmpBEkHbTkWStQWHNF8vXxBnMTdMWqTcjSs/LHXYeKiX9BVDp6+vTT6Znpz+Tk09FIKcSFiIZnDsV8pEEdi3THjXiWCrfn3fv3ietghuz3Be6yVDeF/U4ladFfLp/05o8enl4Y9acHZZjqzQS33NDtmORWf50y47p2HrXhjDOHNC+cGhJMN9bQ9oUa5+UFs2lvd8RuULRNqMj5vguNT+0oNSGEeLuw61pXqLW4cO4PEla2/3Pu7d1FhNMNA+Wj4TC8fupU6M3O1huHGf09ucxhU94cQlSiAVpAKDdDuzCkQmlXOGf1xPrOxLb9C2N5XSYfnzjRrq+vE540tWQhtl7zLsyGbTngsBQDFFaw7dwkIOMz3ZQSAJunE0BmGMhiu+pWVlbC5s2b4cHCQnNj/nE1PT9f/R42KxHnJ1T7Pwtpi6g8ObnWQNRIIhBqZMSnnN+KqhrPQX6LWqHPUMm8TiOoglVUTdiUcQWcm6k8pTcWOkwDuZO4l4cYOfk+U/u/Pv8AUhuD27A+V7IAAAAASUVORK5CYII=",NT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfnSURBVHgB7VhdbFxHFT5n5t7d63XWJnYc167Jj5u2wklDGlciVCJsKUKRAuoLFvAQflRQUQNURZWQ4KHNC1KQihp4QFRFiEgIlaiVEBWPlYUoVUvskASHiqaNg62k+bE39np/7r0zczgzd3e9dt24uwkv1R5rfOfOvXfm+86cv1mAtrSlLW1pS1va0paWBaF1afyWap33vvfIfZJKnwLyR0FSb+/WXT76pRmNdNLo1L9STz43CbdRsJnn1NB/puHZg4e+0DHSCY8GKA8ZjB8gfoL8MqGAzXcNA6KsT0cCzyiEY6/NnT3+0JFxBbcouN740w39navfHwPYd8fDD3ao1DHW8P0ImkEb93mdwDATEAKW6SdTkPDfQYNfxief+yfcZgK1MWTwcI6vI7kcj41Dju/Hr4KAnSPuyWO9B75FwvxcAGUIE9AWqJuAyGob+rfvABCYzIrucX0BploBKX8of/DLX8FtIuDurdZrwOdnZ+WNTMGrKIOpSIvaiz/aP/rtnjQ8aywMcOp2jXkwQ0uC//PbA8N3g+ErCh6zz1ctaIkblN/xnvjFC3CbCDjN53I58TuY9gZ3fL770OHDn2AzCKIoEqK8kElfmb47/faZHwsyG4isSjWgIat0VrZ2k4TzefAqRRjYvhVQsg8Iw5QQ1tp0AlHUOn3Af+rZv8EtEKhr39r61NiIfG3icsfxV089PLB16zZjDEIcynjm/BZz4a39VJi7V2uTMloxeLZ9wztBtm+ANO8LGci/OQ5DO+4CKTy3AwI/iIB1bjEpgvAz+NjzJWhCROONAz8G2Mems/j6ogw85bONZhgObwD/LxcCfe3KkCot3qGU9kmxtpViwDE3DiixBsMNeEzwX+SIWMew5IzbobW1yOSM2RtHmUehSakRwPrcJwD+UxjHrn6NJgo8o5TdfwKLby6fVYvXh0jIbggCpCAAzZEGDQM2muzVNsOEtIrBbooxycy0bsQm8JT6OrRIgGrT9+UAN5ZHsNhrUFN9WLP5GFq41o1LC73ZA19JdX3xG9D9yDfhY2PfBbFnP1AUIcUMOo74bcMaoWRSShzVESDhgqnBhgUbCCCoB8JjT+2CFgg0TJdzAX971IvpwO5uZMNMFJfLQItzXapczlpTXnz1Fci/8FMo/PXP0Ln700B9g2xGOgHPO4BsUmw0kCS1xPbJsamF2dVQ0MGRUNwHLRBw051zs4zDhqUIl7o0pilARWhjZ2jCElGxkIGokkoSleJKwUD89jnnvNDZxQRY+yoCo0Jw/lEFRjW0VUNFukkGjYNRaIFAPeNm70mum8Aqk9gSFOuVVRrHOqoseXGlLKxTcuyG0E9Dau8+BiQhunSBuYVsaRWI+RqFJdBW24YSwCaJUFj16Q9qHKl6oQnxap0jrMc/8joTEwCprMJilZBSRkuQYbkcqahY1NFS0YX+roe+xEnrIET5G/Dey7+B8MK7YHkmYZWRBBHk52/A1OQkBEKC+6i6F/WiotqhhkSNJvChCfFW3HFtM8o4CtsA3pg12GFfwFiB1qiEKcdKlSrlio0tMPPib6Fy7u8uZLrY70IOh1HWNCjWOvsCKG420yblkQMuquaz7OANRFwrzkATstKJTyQ309MAGZ+XynDoNMjGLkP0PN4Ub96YuGwRCQ6TIorARh6KYqI46XPwZx+osPnFDnyCrOq8BMs70OgW1WYLDc4bJ6EFAitiQn+HR+VFSVEFSbDyeSgKunsKXpC+xEvkdaFA2tp4rFwC44bWaY0No+zEdgyjuK6XhiyzjnBCE6mz0IR4qwcK2UYyZdBCOwIy5UfYvfG/nhdc/PfPfrLFD8sZDhkubFq7J6NcCQH2deu4ouaZrCN28pWxE9cErxHP7H3p5CloQlaUElPVFZYupqiUnyctORmHoSPgbegs+4P3zIqg46yvy9c5axlnPsq2yPmCbXYn7A4YDqm1KjpJWtWq9WZizDFoUsTqgfFxcIlscNgzMvbU+dNTJYhLzro7hu6c97LZKTJiOg6VotDafcjArekkTdtIxGMCjauHkgVMdfa1izlw1PD8n/Ibj0OTUj+8WN08U61E86OjIpWdk68XRPpSYWHD58a+NrCwWPEkxbLTUKq/cGVkKF46iqQ7XdGfOB9IexawDmuM2wGfE10ak/PMGrqqAnerV3w/tW/Xi2+ehhYJ1PpocwGbEg6OAl4aGPArlzv8q6aUwpLvi7QRNrn53A4O93+1B81Ri2v5JEbuGCltY/CWkO2/f6ll8CLh9vgnXzrV0qlMrh6wh0XeBXj3Xr7ObqHunsh0dvXoXl/EPYRx50YR3dfphfMlf3Kgi64FUuz3kYMsI/FY1Z4DzZWlO5Mlu5Ngfz8B5lZk1z285+XTz0OLctMj5eM5wGwB8OrmHU5Rb92oiKEhTrJlXf/uTuzbzch/zwXbcK1ormnWxvXqSbMhklIyLnASQnxizysTTZ/CGkWuRSDH1z6+/mUaIM87Qfl5WCzOU//SEMHmNM2GkjZRiq6VBJyX+nIm9H6d9uVF/nqbBOx3SQmXCdQmtiW2EfQPrrCOzmyS3//sHybegVuUm/0qUS/waj+nWN9wP01UxXbHq1eo9g9m99zvS72TrWrUKP1x9oNYo7wuJU3w2fiN3ScmmkpUrRBYMU7Vm6dh3SNVXY4sf1r/HtZNAq3JhwX1ocGvkv8L6La0pS1taUtbPjLyPy268QDdSiqgAAAAAElFTkSuQmCC",TT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATKSURBVHgBvVZLbxxFEK7qmXViW7acYA6WIsHBUiRLnCzuBq5cfedXcEHCPC7cOPET4JYfgbghTAQHC4EvCBwrD7/iXXsz092VevXMrGUnOWWk3pme6a6vvqqvqhfgLV9404ePfzz6KgN+GRCRiAY7kICIf4D4k73jObwWSczkb25c+NFPJ1kMidFMahEVzAEE0D3GGSdeQUKucOMXNzDDTt75XAx3xjswoQHXsns9YPF+cC+sZoz43dYQYMAZSN0zCPkrAa9zoAMfMJ1x4AanBynQzZ9xnr6/jLAyboieTBI+Gmd6zPfnU4IpZzPnWWEI3vOG4KIF+ONZIqDeXsnpdQ7Uft/h9SuyJ2aAhgEmLzKDZTjhcdkSJjAjnKc+tDxfnQ9FpTTwxtLpTqA7KA+1e/W+82flZsw5q1ooE6SUMTGBDIbUKRJVkWCBFGuhxNkE5KDlndqGHtCuTKqyHiiTjsjPto1EF+qxc0ps4WLMcbe5lqYuUUoFvEAOANGtcS4lYXBvuablOcBxG6CN7IBr5HgS4Z+jBsq+NAI6fnomZJDUyjC2AD0hQ6i3t7cByiKlx6DM8P67I3xn8TZcvf5+8gL++mVqomBTKXEoc+7k6BS7UFiJlrBbdGoOc8sYdMFqORq3+OisgYOTBp5NIt27M4effnAHHjw8oYcHF+rYySR78SHdXajwwe/HpSbVCQmSMbNUK/6VkEpqrYuQMW2bCOfjKTbz5t/ltMHTs0ugEHhJRRCC5lzZ5IRB3mcoTJ0vWUYH5VoAxTdTH+9imfKIUKVIyMZkYUg8z5ESb1HXlYbRCaSCA0ukdzsglxiUUtF99cbGhs9dxhKCnLggI4TYMtDIosXvQttgqthk0KOCkdDzXihk9juIK4heMKiRE2DzpN7b2/N0lO5QjGQNVakjrhFWCDOnhCmwUUxiGygilI5dsSfUdRgqpWFtXb1ArDc3NzvG/l33iFJTTGzfQirNIMbEcBFzhRorwopozmtOmOVSclA6nYoGrQ/wmwz10tJSJ1s9a3mTGOd0QW4j5JTtK99T02KsghBHSw6DzxGc/fuYbVfFBuTuaPQm0Zck1efn5yUE0tfsOZMykpb2658H8PNv/xNnFBLWmGJEqiRbQZOXYsA0nYImlN+pbrQIgpVEd0CiiWZ3d1dmpzxWuvNUQ2gNgDucMJWMQQ7MHBKIX9xxdfHT4wvi3mddJthhaHVo3LzQurarpwWz/HxhYfELfvtezT+36gCLtypYnh9BbkZwe8TtTfwNNbTIW6pac9Qmov8Ojhg9qk3u++CNxsgNjsDS09FBKx96IN9fXcXTD787q1iCtfoup0XFgkGMWUIb/OBAOyXUZgAp/uyc0LREs4AZleH6+jrs7+/T2toap47dZGWKMpIcSh4cDiVGCpoR8nBqyeuz5Y7PFehThl78vYAK3cJO3WRQPDw8hLuf/DCpgme0dBUJmwfGXA/OUubhyknhM8K+2/CknPjZw5kFTPlLaVB/pnrdaseQErH/pCIiyZuEOBljz1NXj11PNcQg57oDJimsra0tuSfMzbeRu4uWh3YcNp5abrFROlA3RMrcHHjwnxsfvA7IBxcv2rMcqunrIX/c2dkJMpxtr4YrY7DG5P4m/7z9egkURHiCa3UU2QAAAABJRU5ErkJggg==",AT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVZSURBVHgBvVbNbhxFEK7qmdm1ndhZm40D5M9STCL5BFiIq+EJuPiAxIGn4IKE+XkAngIE8gPkCDxAIKDIUsBEjmMR23H8u/aud7urqKrumd1FdsIpu+rtmZ7p+urnq68X4BV/8LwHH373/EsC/MIhIjMP7EAGZvkBlkdxTe7hpUhqhr4+98UPvt8jNaRGic0iGlgCUMDkMQ458YIg9OPOfZIMDEWna+leDVfGKzANA86M7uWApfcDcxnVkJE0x3cY0OEQpO0ZSPkLAc9yoAIfiHTIgXOcHiiBbf5U6vRt20Oj1WXePg74T4t4S+bDDkNHqkk0TAzFO+wynPQAft8JDNy3V9b0LAfyNC/J+w3d4wmgKwDHpyRgBHsy2j3GANGI1KmfWrlvjrqSpTzgTSxncgKTg3qRJ69mUvzCXEIiMrYwMYRAGCQAgohUMRKNkRATqdZcmedIoARarplt6APGD7GxrA9EbMPLddzGygvzOMUUxMJJS/Ie76017RULqQQvIQcA9T4XJy/UUJgkEQmQ9wHuTGWYYQ6/PT3ldo+Mc+/fGMHdE8K/dk4hFMC7zw40GGSzMpjblDeACtEtLi6aMxp5ngFMjWUwmkmzS1oFFD555xJ8/PYE3GpkEHoB3rzoUNfeu1qDIA5JBiQzOgROhwZGEO/VMKn3OlizA255eblKgg/Rt4kRByRpvHEpckoju/1aYQ5cHc/spfsbJ3IvZfYeXQSJqUve2zUhOyUaa+yskgX53Nyc9qLUirEj9BwpnKTVmedzr0vqjr1Qn2D2ch2p5+HqRHTiz81TZqkzkBSAAjqnc9V4qf04BjPQri5yhVH1sic90ekGGB/JQOt3bbKAJ7un8HCzDdcna1DPkW9fqdt9q91DATSCOY4pNIT0tUhjGuM3goDr3ryJxkphqGSI2xJlITW81ihgeryA++stuPf3kXn31lSO1yfrsP78NBqjmD9ITBRDmGhuDaExOa2W9pS2ifJk9e5djg0oGQoB9zoeJi8WMDs9aiAPN1q81+pZPj56t2lrvz464tCV2im55JGjaD2TXuRKYbhsjSjrbMcZag2T7KqDIKkKSh68dWUUNnY6sL1zjMc95pWNI5y5fMFMPXh8IMYVQSjhXdyt9KCy5aBUOtMHjDpglM2np6cpiYwxtedFP0Ugp8ZrAtjWWjJ1Az5YO4S5a+Owsn4E1JWwMqcsRO46OHi8JbuzqvOpOhqTSPRbkvPt7W091AFL2ZXHv/yxBY82TwxQmInSIvzDT+vw48/rxsbcwBxjpu3j0bc72tJixLEJgCmA4xgZQ7/xAfOVlRV9dV9QG5omTZAzt8jyIlQU/ZJQtLlNsShGozmStWd7Xorvo8o4V7ZiWbxS6CvZzefn57nVan1W1Mc+zzO8WRN9G6vnMDFWwOSFYHQfqwVQUXApDUWWgdhWAeGNp/ty4c2m6D5g4oMFN3AElpqOScCzZvNOrTsyU4SiXtBEIx97Y+EJKb0xHRJKgJiuUoftgIg/cWi6KcWEUb95GJDQZGN2dhZWV/dpamrf48UmB96U1HvEakfU9xAiE2xBLyiTNwJaflH7OkC/ZHa0IAwQCFJ0vLq6yjMzM2Ft7QibLueDlg+Npre0WUeVwBj1uGSYCGhSLe1tN3RSlOdV+h/HZW+WJz6tra3p7Hd2dJqXDg4qGEYSVHm2A9WxPBD+METttONRn8scIIocV62AfeDyzNVuNcklOaaCAi4sLAgD7nlH3W8oeDt6ZEZVBQ491DURayhnea4SJUP+3KRBMjgNCF2M115P9a+gahIZS0tLTkfFgrju/jsG3ol0/z//vNPnXykvrFYTHUlOAAAAAElFTkSuQmCC",FT=Object.assign({}),DT=Object.assign({}),LT=Object.assign({"./rag/csv.svg":YN,"./rag/document.svg":KN,"./rag/excel.svg":ZN,"./rag/file.svg":JN,"./rag/folder.svg":tT,"./rag/json.svg":rT,"./rag/knowledgebase.svg":oT,"./rag/netretrive.svg":lT,"./rag/odf.svg":cT,"./rag/pdf.svg":dT,"./rag/pic.svg":mT,"./rag/ppt.svg":gT,"./rag/think.svg":pT,"./rag/txt.svg":yT,"./rag/url.svg":ST,"./rag/word.svg":wT,"./rag/wps.svg":ET,"./rag/zip.svg":IT}),kT=Object.assign({"./assets/img/excel.png":MT,"./assets/img/img.png":RT,"./assets/img/pdf.png":PT,"./assets/img/ppt.png":NT,"./assets/img/txt.png":TT,"./assets/img/word.png":AT}),_T=Object.assign({"./rag/csv.svg":bb,"./rag/document.svg":yb,"./rag/excel.svg":Cb,"./rag/file.svg":Sb,"./rag/folder.svg":xb,"./rag/json.svg":wb,"./rag/knowledgebase.svg":$b,"./rag/netretrive.svg":Eb,"./rag/odf.svg":Ob,"./rag/pdf.svg":Ib,"./rag/pic.svg":Mb,"./rag/ppt.svg":Rb,"./rag/think.svg":Pb,"./rag/txt.svg":Nb,"./rag/url.svg":Tb,"./rag/word.svg":Ab,"./rag/wps.svg":Fb,"./rag/zip.svg":Db});function _b(e,t,n){let r=e;for(let a=0;a<t.length-1;a+=1){const o=t[a];(!r[o]||typeof r[o]!="object")&&(r[o]={}),r=r[o]}r[t[t.length-1]]=n}function j0(e,t){return e.replace(/^\.\//,"").split("?")[0].replace(new RegExp(`\\.${t}$`,"i"),"").split("/")}const rs={};function z0(e){Object.entries(e).forEach(([t,n])=>{let r;const a=n;if(a&&typeof a.ReactComponent=="function")r=a.ReactComponent;else if(a&&typeof a.default=="function")r=a.default;else return;const o=os(r),i=j0(t,"svg");o.displayName=`Icon(${i.join("/")})`,_b(rs,i,o)})}z0(FT);z0(DT);z0(LT);Object.entries(kT).forEach(([e,t])=>{const n=os(a=>Q("img",{src:t,alt:"",...a})),r=j0(e,"png");n.displayName=`IconImg(${r.join("/")})`,_b(rs,r,n)});Object.entries(_T).forEach(([e,t])=>{const n=j0(e,"svg");let r=rs;for(let i=0;i<n.length;i+=1){const l=n[i];r[l]||(r[l]={}),r=r[l]}if(typeof r=="function")return;const a=os(i=>Q("img",{src:t,alt:"",...i}));a.displayName=`IconSvgUrl(${n.join("/")})`;let o=rs;for(let i=0;i<n.length-1;i+=1){const l=n[i];(!o[l]||typeof o[l]!="object")&&(o[l]={}),o=o[l]}o[n[n.length-1]]=a});export{sA as $,wt as A,mb as B,Tt as C,wi as D,xN as E,ft as F,Fr as G,An as H,pA as I,to as J,et as K,ee as L,Z as M,K as N,Nt as O,Ma as P,np as Q,b4 as R,bm as S,Po as T,Sh as U,ar as V,Rs as W,aa as X,qh as Y,Ge as Z,je as _,la as a,fA as a$,Ur as a0,$g as a1,md as a2,ub as a3,vC as a4,lA as a5,fC as a6,nt as a7,Ao as a8,Os as a9,un as aA,pI as aB,fx as aC,Ms as aD,jn as aE,$m as aF,ia as aG,Fa as aH,T8 as aI,Mt as aJ,mA as aK,or as aL,i4 as aM,Qd as aN,J8 as aO,Kd as aP,zh as aQ,e0 as aR,ho as aS,gA as aT,l0 as aU,i5 as aV,Zn as aW,uA as aX,vh as aY,w7 as aZ,n8 as a_,Fo as aa,Ys as ab,P1 as ac,$0 as ad,L1 as ae,Is as af,q$ as ag,hr as ah,ir as ai,Aa as aj,mS as ak,Hr as al,q1 as am,pm as an,Ne as ao,hi as ap,OI as aq,c$ as ar,bo as as,Er as at,Oa as au,Ep as av,sa as aw,ca as ax,cn as ay,It as az,xn as b,H4 as b0,ra as b1,E7 as b2,iA as b3,zt as b4,Ct as b5,$i as b6,Ta as b7,m0 as b8,Cs as b9,Gn as bA,Ef as bB,R1 as bC,Hn as bD,jl as ba,Ns as bb,Ro as bc,cA as bd,Wl as be,Xl as bf,Dt as bg,Oi as bh,a0 as bi,n0 as bj,r0 as bk,t0 as bl,Kl as bm,eE as bn,js as bo,Z4 as bp,vA as bq,ua as br,gc as bs,P$ as bt,Da as bu,zn as bv,Vl as bw,FR as bx,y4 as by,oi as bz,Na as c,mn as d,Bt as e,X$ as f,Rn as g,Hp as h,Hx as i,Bp as j,ue as k,A6 as l,hA as m,_p as n,ln as o,Kh as p,po as q,sn as r,T6 as s,Fn as t,Vr as u,wh as v,Gt as w,ve as x,Wp as y,Oo as z};