@gientech/modual 2.2.20 → 2.2.21

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.
Files changed (54) hide show
  1. package/README.md +761 -761
  2. package/assets/{GientechStreamReader-ClJ18ke0.js → GientechStreamReader-CCAVgoU7.js} +1 -1
  3. package/assets/{LeftOutlined-DbVWaJal.js → LeftOutlined-6ZZOHHzZ.js} +1 -1
  4. package/assets/{circle-plus-Bqwlq2UM.js → circle-plus-P1B4Xn23.js} +1 -1
  5. package/assets/database.svg +11 -11
  6. package/assets/database_add.svg +53 -53
  7. package/assets/database_connect.svg +66 -66
  8. package/assets/database_upload.svg +29 -29
  9. package/assets/databse.svg +6 -6
  10. package/assets/defaultWeLogo.svg +14 -14
  11. package/assets/graph.svg +4 -4
  12. package/assets/iconAi.svg +9 -9
  13. package/assets/{index-CaKTISxy.js → index-AbRL5gZq.js} +1 -1
  14. package/assets/{index-BB-K4Uv2.js → index-BVGi9GLj.js} +1 -1
  15. package/assets/{index-BbQ5_tfg.js → index-CshF4ZrU.js} +337 -226
  16. package/assets/{index-DiTGnLML.js → index-Cxdo0VA9.js} +1 -1
  17. package/assets/{index-O8MDfMV6.js → index-DBBlFPQ7.js} +1 -1
  18. package/assets/{index-zCzB-56N.js → index-DBcQE2Ji.js} +1 -1
  19. package/assets/{index-BZ2Q8J4Z.js → index-DSsXFuyz.js} +159 -159
  20. package/assets/{index-g1ObzlRk.js → index-DXFiVEll.js} +60 -60
  21. package/assets/{index-DCnYE71u.js → index-D_Hj7QNz.js} +11 -11
  22. package/assets/index-DgYjqte0.js +745 -0
  23. package/assets/{index-DIaywdNt.js → index-VLFjDTvh.js} +1 -1
  24. package/assets/knowledge.svg +4 -4
  25. package/assets/mysql.svg +14 -14
  26. package/assets/{plus-B4_cWXV7.js → plus-Dksaa79Q.js} +1 -1
  27. package/assets/{search-B5sYxJby.js → search-DPX4n-TM.js} +1 -1
  28. package/assets/sensitive.svg +5 -5
  29. package/assets/style-403S9iLe.js +196 -0
  30. package/assets/style2.css +1 -1
  31. package/assets/style4.css +1 -1
  32. package/assets/style6.css +1 -1
  33. package/assets/style7.css +1 -1
  34. package/assets/{triangle-alert-DMLBtHZo.js → triangle-alert-DwIOmwma.js} +1 -1
  35. package/assets/{x-BHe7G4Ln.js → x-cAgrXVQW.js} +1 -1
  36. package/assistantConfig.d.ts +110 -0
  37. package/assistantConfig.js +38 -38
  38. package/chat.js +1 -1
  39. package/chatCompare.js +1 -1
  40. package/database.d.ts +0 -2
  41. package/database.js +2 -6
  42. package/databaseId.d.ts +0 -2
  43. package/databaseId.js +1 -1
  44. package/databaseTable.js +2 -2
  45. package/index.d.ts +104 -0
  46. package/index.js +1 -1
  47. package/modelManage.js +2 -2
  48. package/package.json +6 -6
  49. package/sensitive.js +30 -30
  50. package/sensitiveWords.js +1 -1
  51. package/streamFilesReader.js +1 -1
  52. package/worker/pdf.worker.min.js +21 -21
  53. package/assets/index-CQChY5LV.js +0 -741
  54. package/assets/style-CC4nBmWs.js +0 -196
@@ -4,7 +4,7 @@ import*as u from"react";import ne,{useContext as ir,createElement as yi,createCo
4
4
  `+i.map(Bu).join(`
5
5
  `):" "+Bu(i[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Bm={getAdapter:Q0,adapters:Ic};function Es(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ao(null,e)}function Lu(e){return Es(e),e.headers=wr.from(e.headers),e.data=$s.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bm.getAdapter(e.adapter||wa.adapter,e)(e).then(function(n){return Es(e),n.data=$s.call(e,e.transformResponse,n),n.headers=wr.from(n.headers),n},function(n){return Fm(n)||(Es(e),n&&n.response&&(n.response.data=$s.call(e,e.transformResponse,n.response),n.response.headers=wr.from(n.response.headers))),Promise.reject(n)})}const Lm="1.13.1",Vi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const zu={};Vi.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Lm+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new tt(o(i," has been removed"+(r?" in "+r:"")),tt.ERR_DEPRECATED);return r&&!zu[i]&&(zu[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}};Vi.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function J0(e,t,r){if(typeof e!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new tt("option "+a+" must be "+l,tt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new tt("Unknown option "+a,tt.ERR_BAD_OPTION)}}const ri={assertOptions:J0,validators:Vi},en=ri.validators;let Vn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Iu,response:new Iu}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
6
  `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Un(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ri.assertOptions(n,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),o!=null&&(Q.isFunction(o)?r.paramsSerializer={serialize:o}:ri.assertOptions(o,{encode:en.function,serialize:en.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ri.assertOptions(r,{baseUrl:en.spelling("baseURL"),withXsrfToken:en.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&Q.merge(a.common,a[r.method]);a&&Q.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=wr.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let d,f=0,v;if(!l){const g=[Lu.bind(this),void 0];for(g.unshift(...s),g.push(...c),v=g.length,d=Promise.resolve(r);f<v;)d=d.then(g[f++],g[f++]);return d}v=s.length;let h=r;for(;f<v;){const g=s[f++],p=s[f++];try{h=g(h)}catch(m){p.call(this,m);break}}try{d=Lu.call(this,h)}catch(g){return Promise.reject(g)}for(f=0,v=c.length;f<v;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Un(this.defaults,t);const r=Am(t.baseURL,t.url,t.allowAbsoluteUrls);return Mm(r,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){Vn.prototype[t]=function(r,n){return this.request(Un(n||{},{method:t,url:r,data:(n||{}).data}))}});Q.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,s){return this.request(Un(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Vn.prototype[t]=r(),Vn.prototype[t+"Form"]=r(!0)});let Z0=class zm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new Ao(a,i,s),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new zm(function(o){t=o}),cancel:t}}};function eb(e){return function(r){return e.apply(null,r)}}function tb(e){return Q.isObject(e)&&e.isAxiosError===!0}const vl={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(vl).forEach(([e,t])=>{vl[t]=e});function Hm(e){const t=new Vn(e),r=bm(Vn.prototype.request,t);return Q.extend(r,Vn.prototype,t,{allOwnKeys:!0}),Q.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Hm(Un(e,o))},r}const Ut=Hm(wa);Ut.Axios=Vn;Ut.CanceledError=Ao;Ut.CancelToken=Z0;Ut.isCancel=Fm;Ut.VERSION=Lm;Ut.toFormData=Hi;Ut.AxiosError=tt;Ut.Cancel=Ut.CanceledError;Ut.all=function(t){return Promise.all(t)};Ut.spread=eb;Ut.isAxiosError=tb;Ut.mergeConfig=Un;Ut.AxiosHeaders=wr;Ut.formToJSON=e=>Nm(Q.isHTMLForm(e)?new FormData(e):e);Ut.getAdapter=Bm.getAdapter;Ut.HttpStatusCode=vl;Ut.default=Ut;const{Axios:yM,AxiosError:SM,CanceledError:CM,isCancel:wM,CancelToken:xM,VERSION:$M,all:EM,Cancel:OM,isAxiosError:RM,spread:IM,toFormData:PM,AxiosHeaders:MM,HttpStatusCode:TM,formToJSON:NM,getAdapter:FM,mergeConfig:_M}=Ut;var mr=function(){return mr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},mr.apply(this,arguments)};function oa(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var AM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jM(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var It="-ms-",Jo="-moz-",St="-webkit-",Vm="comm",Wi="rule",Pc="decl",nb="@import",Wm="@keyframes",ob="@layer",km=Math.abs,Mc=String.fromCharCode,gl=Object.assign;function ab(e,t){return er(e,0)^45?(((t<<2^er(e,0))<<2^er(e,1))<<2^er(e,2))<<2^er(e,3):0}function qm(e){return e.trim()}function sn(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,r){return e.replace(t,r)}function ni(e,t,r){return e.indexOf(t,r)}function er(e,t){return e.charCodeAt(t)|0}function So(e,t,r){return e.slice(t,r)}function rn(e){return e.length}function Um(e){return e.length}function Xo(e,t){return t.push(e),e}function ib(e,t){return e.map(t).join("")}function Hu(e,t){return e.filter(function(r){return!sn(r,t)})}var ki=1,Co=1,Gm=0,Br=0,kt=0,jo="";function qi(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ki,column:Co,length:i,return:"",siblings:s}}function pn(e,t){return gl(qi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ro(e){for(;e.root;)e=pn(e.root,{children:[e]});Xo(e,e.siblings)}function sb(){return kt}function lb(){return kt=Br>0?er(jo,--Br):0,Co--,kt===10&&(Co=1,ki--),kt}function Ur(){return kt=Br<Gm?er(jo,Br++):0,Co++,kt===10&&(Co=1,ki++),kt}function Wn(){return er(jo,Br)}function oi(){return Br}function Ui(e,t){return So(jo,e,t)}function hl(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 cb(e){return ki=Co=1,Gm=rn(jo=e),Br=0,[]}function ub(e){return jo="",e}function Os(e){return qm(Ui(Br-1,pl(e===91?e+2:e===40?e+1:e)))}function db(e){for(;(kt=Wn())&&kt<33;)Ur();return hl(e)>2||hl(kt)>3?"":" "}function fb(e,t){for(;--t&&Ur()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return Ui(e,oi()+(t<6&&Wn()==32&&Ur()==32))}function pl(e){for(;Ur();)switch(kt){case e:return Br;case 34:case 39:e!==34&&e!==39&&pl(kt);break;case 40:e===41&&pl(e);break;case 92:Ur();break}return Br}function mb(e,t){for(;Ur()&&e+kt!==57;)if(e+kt===84&&Wn()===47)break;return"/*"+Ui(t,Br-1)+"*"+Mc(e===47?e:Ur())}function vb(e){for(;!hl(Wn());)Ur();return Ui(e,Br)}function gb(e){return ub(ai("",null,null,null,[""],e=cb(e),0,[0],e))}function ai(e,t,r,n,o,a,i,s,l){for(var c=0,d=0,f=i,v=0,h=0,g=0,p=1,m=1,b=1,y=0,S="",C=o,$=a,x=n,w=S;m;)switch(g=y,y=Ur()){case 40:if(g!=108&&er(w,f-1)==58){ni(w+=rt(Os(y),"&","&\f"),"&\f",km(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:w+=Os(y);break;case 9:case 10:case 13:case 32:w+=db(g);break;case 92:w+=fb(oi()-1,7);continue;case 47:switch(Wn()){case 42:case 47:Xo(hb(mb(Ur(),oi()),t,r,l),l);break;default:w+="/"}break;case 123*p:s[c++]=rn(w)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+d:b==-1&&(w=rt(w,/\f/g,"")),h>0&&rn(w)-f&&Xo(h>32?Wu(w+";",n,r,f-1,l):Wu(rt(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(Xo(x=Vu(w,t,r,c,d,o,s,S,C=[],$=[],f,a),a),y===123)if(d===0)ai(w,t,x,x,C,a,f,s,$);else switch(v===99&&er(w,3)===110?100:v){case 100:case 108:case 109:case 115:ai(e,x,x,n&&Xo(Vu(e,x,x,0,0,o,s,S,o,C=[],f,$),$),o,$,f,s,n?C:$);break;default:ai(w,x,x,x,[""],$,0,s,$)}}c=d=h=0,p=b=1,S=w="",f=i;break;case 58:f=1+rn(w),h=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&lb()==125)continue}switch(w+=Mc(y),y*p){case 38:b=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(rn(w)-1)*b,b=1;break;case 64:Wn()===45&&(w+=Os(Ur())),v=Wn(),d=f=rn(S=w+=vb(oi())),y++;break;case 45:g===45&&rn(w)==2&&(p=0)}}return a}function Vu(e,t,r,n,o,a,i,s,l,c,d,f){for(var v=o-1,h=o===0?a:[""],g=Um(h),p=0,m=0,b=0;p<n;++p)for(var y=0,S=So(e,v+1,v=km(m=i[p])),C=e;y<g;++y)(C=qm(m>0?h[y]+" "+S:rt(S,/&\f/g,h[y])))&&(l[b++]=C);return qi(e,t,r,o===0?Wi:s,l,c,d,f)}function hb(e,t,r,n){return qi(e,t,r,Vm,Mc(sb()),So(e,2,-2),0,n)}function Wu(e,t,r,n,o){return qi(e,t,r,Pc,So(e,0,n),So(e,n+1,-1),n,o)}function Km(e,t,r){switch(ab(e,t)){case 5103:return St+"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 St+e+e;case 4789:return Jo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Jo+e+It+e+e;case 5936:switch(er(e,t+11)){case 114:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+It+e+e;case 6165:return St+e+It+"flex-"+e+e;case 5187:return St+e+rt(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return St+e+It+"flex-item-"+rt(e,/flex-|-self/g,"")+(sn(e,/flex-|baseline/)?"":It+"grid-row-"+rt(e,/flex-|-self/g,""))+e;case 4675:return St+e+It+"flex-line-pack"+rt(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+It+rt(e,"shrink","negative")+e;case 5292:return St+e+It+rt(e,"basis","preferred-size")+e;case 6060:return St+"box-"+rt(e,"-grow","")+St+e+It+rt(e,"grow","positive")+e;case 4554:return St+rt(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+It+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4200:if(!sn(e,/flex-|baseline/))return It+"grid-column-align"+So(e,t)+e;break;case 2592:case 3360:return It+rt(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,sn(n.props,/grid-\w+-end/)})?~ni(e+(r=r[t].value),"span",0)?e:It+rt(e,"-start","")+e+It+"grid-row-span:"+(~ni(r,"span",0)?sn(r,/\d+/):+sn(r,/\d+/)-+sn(e,/\d+/))+";":It+rt(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return sn(n.props,/grid-\w+-start/)})?e:It+rt(rt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,St+"$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(rn(e)-1-t>6)switch(er(e,t+1)){case 109:if(er(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Jo+(er(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ni(e,"stretch",0)?Km(rt(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return rt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,i,s,l,c){return It+o+":"+a+c+(i?It+o+"-span:"+(s?l:+l-+a)+c:"")+e});case 4949:if(er(e,t+6)===121)return rt(e,":",":"+St)+e;break;case 6444:switch(er(e,er(e,14)===45?18:11)){case 120:return rt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(er(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+It+"$2box$3")+e;case 100:return rt(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rt(e,"scroll-","scroll-snap-")+e}return e}function Ci(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function pb(e,t,r,n){switch(e.type){case ob:if(e.children.length)break;case nb:case Pc:return e.return=e.return||e.value;case Vm:return"";case Wm:return e.return=e.value+"{"+Ci(e.children,n)+"}";case Wi:if(!rn(e.value=e.props.join(",")))return""}return rn(r=Ci(e.children,n))?e.return=e.value+"{"+r+"}":""}function bb(e){var t=Um(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function yb(e){return function(t){t.root||(t=t.return)&&e(t)}}function Sb(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Pc:e.return=Km(e.value,e.length,r);return;case Wm:return Ci([pn(e,{value:rt(e.value,"@","@"+St)})],n);case Wi:if(e.length)return ib(r=e.props,function(o){switch(sn(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ro(pn(e,{props:[rt(o,/:(read-\w+)/,":"+Jo+"$1")]})),ro(pn(e,{props:[o]})),gl(e,{props:Hu(r,n)});break;case"::placeholder":ro(pn(e,{props:[rt(o,/:(plac\w+)/,":"+St+"input-$1")]})),ro(pn(e,{props:[rt(o,/:(plac\w+)/,":"+Jo+"$1")]})),ro(pn(e,{props:[rt(o,/:(plac\w+)/,It+"input-$1")]})),ro(pn(e,{props:[o]})),gl(e,{props:Hu(r,n)});break}return""})}}var Cb={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},Ir={},wo=typeof process<"u"&&Ir!==void 0&&(Ir.REACT_APP_SC_ATTR||Ir.SC_ATTR)||"data-styled",Xm="active",Ym="data-styled-version",Gi="6.1.19",Tc=`/*!sc*/
7
- `,wi=typeof window<"u"&&typeof document<"u",wb=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==""?Ir.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ir.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.SC_DISABLE_SPEEDY!==void 0&&Ir.SC_DISABLE_SPEEDY!==""&&Ir.SC_DISABLE_SPEEDY!=="false"&&Ir.SC_DISABLE_SPEEDY),xb={},Ki=Object.freeze([]),xo=Object.freeze({});function Qm(e,t,r){return r===void 0&&(r=xo),e.theme!==r.theme&&e.theme||t||r.theme}var Jm=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"]),$b=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Eb=/(^-|-$)/g;function ku(e){return e.replace($b,"-").replace(Eb,"")}var Ob=/(a)(d)/gi,Ha=52,qu=function(e){return String.fromCharCode(e+(e>25?39:97))};function bl(e){var t,r="";for(t=Math.abs(e);t>Ha;t=t/Ha|0)r=qu(t%Ha)+r;return(qu(t%Ha)+r).replace(Ob,"$1-$2")}var Rs,Zm=5381,fo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ev=function(e){return fo(Zm,e)};function tv(e){return bl(ev(e)>>>0)}function Rb(e){return e.displayName||e.name||"Component"}function Is(e){return typeof e=="string"&&!0}var rv=typeof Symbol=="function"&&Symbol.for,nv=rv?Symbol.for("react.memo"):60115,Ib=rv?Symbol.for("react.forward_ref"):60112,Pb={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ov={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tb=((Rs={})[Ib]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rs[nv]=ov,Rs);function Uu(e){return("type"in(t=e)&&t.type.$$typeof)===nv?ov:"$$typeof"in e?Tb[e.$$typeof]:Pb;var t}var Nb=Object.defineProperty,Fb=Object.getOwnPropertyNames,Gu=Object.getOwnPropertySymbols,_b=Object.getOwnPropertyDescriptor,Ab=Object.getPrototypeOf,Ku=Object.prototype;function av(e,t,r){if(typeof t!="string"){if(Ku){var n=Ab(t);n&&n!==Ku&&av(e,n,r)}var o=Fb(t);Gu&&(o=o.concat(Gu(t)));for(var a=Uu(e),i=Uu(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Mb||r&&r[l]||i&&l in i||a&&l in a)){var c=_b(t,l);try{Nb(e,l,c)}catch{}}}}return e}function $o(e){return typeof e=="function"}function Nc(e){return typeof e=="object"&&"styledComponentId"in e}function Ln(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function yl(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function aa(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Sl(e,t,r){if(r===void 0&&(r=!1),!r&&!aa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Sl(e[n],t[n]);else if(aa(t))for(var n in t)e[n]=Sl(e[n],t[n]);return e}function Fc(e,t){Object.defineProperty(e,"toString",{value:t})}function xa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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 jb=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw xa(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=o;i<a;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),l=(i=0,r.length);i<l;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,i=o;i<a;i++)r+="".concat(this.tag.getRule(i)).concat(Tc);return r},e})(),ii=new Map,xi=new Map,si=1,Va=function(e){if(ii.has(e))return ii.get(e);for(;xi.has(si);)si++;var t=si++;return ii.set(e,t),xi.set(t,e),t},Db=function(e,t){si=t+1,ii.set(e,t),xi.set(t,e)},Bb="style[".concat(wo,"][").concat(Ym,'="').concat(Gi,'"]'),Lb=new RegExp("^".concat(wo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zb=function(e,t,r){for(var n,o=r.split(","),a=0,i=o.length;a<i;a++)(n=o[a])&&e.registerName(t,n)},Hb=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Tc),o=[],a=0,i=n.length;a<i;a++){var s=n[a].trim();if(s){var l=s.match(Lb);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(Db(d,c),zb(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},Xu=function(e){for(var t=document.querySelectorAll(Bb),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(wo)!==Xm&&(Hb(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Vb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var iv=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(s){var l=Array.from(s.querySelectorAll("style[".concat(wo,"]")));return l[l.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(wo,Xm),n.setAttribute(Ym,Gi);var i=Vb();return i&&n.setAttribute("nonce",i),r.insertBefore(n,a),n},Wb=(function(){function e(t){this.element=iv(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var i=n[o];if(i.ownerNode===r)return i}throw xa(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),kb=(function(){function e(t){this.element=iv(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,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})(),qb=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),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})(),Yu=wi,Ub={isServer:!wi,useCSSOMInjection:!wb},$i=(function(){function e(t,r,n){t===void 0&&(t=xo),r===void 0&&(r={});var o=this;this.options=mr(mr({},Ub),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&wi&&Yu&&(Yu=!1,Xu(this)),Fc(this,function(){return(function(a){for(var i=a.getTag(),s=i.length,l="",c=function(f){var v=(function(b){return xi.get(b)})(f);if(v===void 0)return"continue";var h=a.names.get(v),g=i.getGroup(f);if(h===void 0||!h.size||g.length===0)return"continue";var p="".concat(wo,".g").concat(f,'[id="').concat(v,'"]'),m="";h!==void 0&&h.forEach(function(b){b.length>0&&(m+="".concat(b,","))}),l+="".concat(g).concat(p,'{content:"').concat(m,'"}').concat(Tc)},d=0;d<s;d++)c(d);return l})(o)})}return e.registerId=function(t){return Va(t)},e.prototype.rehydrate=function(){!this.server&&wi&&Xu(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(mr(mr({},this.options),t),this.gs,r&&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(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new qb(o):n?new Wb(o):new kb(o)})(this.options),new jb(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Va(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Va(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Va(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Gb=/&/g,Kb=/^\s*\/\/.*$/gm;function sv(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=sv(r.children,t)),r})}function Xb(e){var t,r,n,o=xo,a=o.options,i=a===void 0?xo:a,s=o.plugins,l=s===void 0?Ki:s,c=function(v,h,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(t):v},d=l.slice();d.push(function(v){v.type===Wi&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Gb,r).replace(n,c))}),i.prefix&&d.push(Sb),d.push(pb);var f=function(v,h,g,p){h===void 0&&(h=""),g===void 0&&(g=""),p===void 0&&(p="&"),t=p,r=h,n=new RegExp("\\".concat(r,"\\b"),"g");var m=v.replace(Kb,""),b=gb(g||h?"".concat(g," ").concat(h," { ").concat(m," }"):m);i.namespace&&(b=sv(b,i.namespace));var y=[];return Ci(b,bb(d.concat(yb(function(S){return y.push(S)})))),y};return f.hash=l.length?l.reduce(function(v,h){return h.name||xa(15),fo(v,h.name)},Zm).toString():"",f}var Yb=new $i,Cl=Xb(),lv=ne.createContext({shouldForwardProp:void 0,styleSheet:Yb,stylis:Cl});lv.Consumer;ne.createContext(void 0);function wl(){return ir(lv)}var Qb=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=Cl);var i=n.name+a.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,a(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Fc(this,function(){throw xa(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Cl),this.name+t.hash},e})(),Jb=function(e){return e>="A"&&e<="Z"};function Qu(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Jb(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var cv=function(e){return e==null||e===!1||e===""},uv=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!cv(a)&&(Array.isArray(a)&&a.isCss||$o(a)?n.push("".concat(Qu(o),":"),a,";"):aa(a)?n.push.apply(n,oa(oa(["".concat(o," {")],uv(a),!1),["}"],!1)):n.push("".concat(Qu(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Cb||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function xn(e,t,r,n){if(cv(e))return[];if(Nc(e))return[".".concat(e.styledComponentId)];if($o(e)){if(!$o(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return xn(o,t,r,n)}var a;return e instanceof Qb?r?(e.inject(r,n),[e.getName(n)]):[e]:aa(e)?uv(e):Array.isArray(e)?Array.prototype.concat.apply(Ki,e.map(function(i){return xn(i,t,r,n)})):[e.toString()]}function dv(e){for(var t=0;t<e.length;t+=1){var r=e[t];if($o(r)&&!Nc(r))return!1}return!0}var Zb=ev(Gi),ey=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&dv(t),this.componentId=r,this.baseHash=fo(Zb,r),this.baseStyle=n,$i.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Ln(o,this.staticRulesId);else{var a=yl(xn(this.rules,t,r,n)),i=bl(fo(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(a,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}o=Ln(o,i),this.staticRulesId=i}else{for(var l=fo(this.baseHash,n.hash),c="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")c+=f;else if(f){var v=yl(xn(f,t,r,n));l=fo(l,v+d),c+=v}}if(c){var h=bl(l>>>0);r.hasNameForId(this.componentId,h)||r.insertRules(this.componentId,h,n(c,".".concat(h),void 0,this.componentId)),o=Ln(o,h)}}return o},e})(),_c=ne.createContext(void 0);_c.Consumer;var Ps={};function ty(e,t,r){var n=Nc(e),o=e,a=!Is(e),i=t.attrs,s=i===void 0?Ki:i,l=t.componentId,c=l===void 0?(function(C,$){var x=typeof C!="string"?"sc":ku(C);Ps[x]=(Ps[x]||0)+1;var w="".concat(x,"-").concat(tv(Gi+x+Ps[x]));return $?"".concat($,"-").concat(w):w})(t.displayName,t.parentComponentId):l,d=t.displayName,f=d===void 0?(function(C){return Is(C)?"styled.".concat(C):"Styled(".concat(Rb(C),")")})(e):d,v=t.displayName&&t.componentId?"".concat(ku(t.displayName),"-").concat(t.componentId):t.componentId||c,h=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(n&&o.shouldForwardProp){var p=o.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;g=function(C,$){return p(C,$)&&m(C,$)}}else g=p}var b=new ey(r,v,n?o.componentStyle:void 0);function y(C,$){return(function(x,w,E){var O=x.attrs,R=x.componentStyle,I=x.defaultProps,P=x.foldedComponentIds,M=x.styledComponentId,F=x.target,N=ne.useContext(_c),A=wl(),_=x.shouldForwardProp||A.shouldForwardProp,D=Qm(w,N,I)||xo,W=(function(z,V,Z){for(var k,J=mr(mr({},V),{className:void 0,theme:Z}),ae=0;ae<z.length;ae+=1){var Y=$o(k=z[ae])?k(J):k;for(var U in Y)J[U]=U==="className"?Ln(J[U],Y[U]):U==="style"?mr(mr({},J[U]),Y[U]):Y[U]}return V.className&&(J.className=Ln(J.className,V.className)),J})(O,w,D),G=W.as||F,L={};for(var B in W)W[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&W.theme===D||(B==="forwardedAs"?L.as=W.forwardedAs:_&&!_(B,G)||(L[B]=W[B]));var q=(function(z,V){var Z=wl(),k=z.generateAndInjectStyles(V,Z.styleSheet,Z.stylis);return k})(R,W),H=Ln(P,M);return q&&(H+=" "+q),W.className&&(H+=" "+W.className),L[Is(G)&&!Jm.has(G)?"class":"className"]=H,E&&(L.ref=E),yi(G,L)})(S,C,$)}y.displayName=f;var S=ne.forwardRef(y);return S.attrs=h,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=n?Ln(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=v,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=n?(function($){for(var x=[],w=1;w<arguments.length;w++)x[w-1]=arguments[w];for(var E=0,O=x;E<O.length;E++)Sl($,O[E],!0);return $})({},o.defaultProps,C):C}}),Fc(S,function(){return".".concat(S.styledComponentId)}),a&&av(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Ju(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Zu=function(e){return Object.assign(e,{isCss:!0})};function fv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if($o(e)||aa(e))return Zu(xn(Ju(Ki,oa([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?xn(n):Zu(xn(Ju(n,t)))}function xl(e,t,r){if(r===void 0&&(r=xo),!t)throw xa(1,t);var n=function(o){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(t,r,fv.apply(void 0,oa([o],a,!1)))};return n.attrs=function(o){return xl(e,t,mr(mr({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return xl(e,t,mr(mr({},r),o))},n}var mv=function(e){return xl(ty,e)},ry=mv;Jm.forEach(function(e){ry[e]=mv(e)});var ny=(function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=dv(t),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var a=o(yl(xn(this.rules,r,n,o)),""),i=this.componentId+t;n.insertRules(i,i,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&$i.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e})();function DM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=fv.apply(void 0,oa([e],t,!1)),o="sc-global-".concat(tv(JSON.stringify(n))),a=new ny(n,o),i=function(l){var c=wl(),d=ne.useContext(_c),f=ne.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&s(f,l,c.styleSheet,d,c.stylis),ne.useLayoutEffect(function(){if(!c.styleSheet.server)return s(f,l,c.styleSheet,d,c.stylis),function(){return a.removeStyles(f,c.styleSheet)}},[f,l,c.styleSheet,d,c.stylis]),null};function s(l,c,d,f,v){if(a.isStatic)a.renderStyles(l,xb,d,v);else{var h=mr(mr({},c),{theme:Qm(c,f,i.defaultProps)});a.renderStyles(l,h,d,v)}}return ne.memo(i)}const oy={colors:{primary:"#4E6EF2",secondary:"#6D86F5",success:"#52C41A",warning:"#FAAD14",error:"#F5222D",info:"#1890FF",background:"#F7F8FA",appBackground:"transparent",listBackground:"#F2F3F5",dashboardBackground:"#FFFFFF",dashboardMainBackground:"transparent",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",tableBackground:"#FFFFFF",tableHeaderBg:"#F5F7FA",tableHeaderText:"#1D2129",tableFirstColumnBg:"#F7F9FC",tableLastColumnBg:"#F7F9FC",subTableBackground:"#F5F7FA",paginationBackground:"#FFFFFF",tagColor:"#1d70f5",tagBackground:"#ebf6ff",tagBorder:"#99caff"},space:{sidebar:"260px",size:"12px",radius:"4px",padding:"8px",margin:"8px",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.5",dashboardHeaderHeight:"38px",dashboardContentRadius:"4px",xviewerToolbarHeight:"52px"},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"},xs:{size:"10px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},sm:{size:"12px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},md:{size:"14px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},lg:{size:"16px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},"2lg":{size:"24px",weight:"400",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 BM(e,t){if(!t)return e;const r={...e,...t};return t.theme&&e.theme&&(r.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}}),r}const ay=Fo({theme:oy,mode:"light"}),LM=()=>ir(ay);/**
7
+ `,wi=typeof window<"u"&&typeof document<"u",wb=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==""?Ir.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ir.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.SC_DISABLE_SPEEDY!==void 0&&Ir.SC_DISABLE_SPEEDY!==""&&Ir.SC_DISABLE_SPEEDY!=="false"&&Ir.SC_DISABLE_SPEEDY),xb={},Ki=Object.freeze([]),xo=Object.freeze({});function Qm(e,t,r){return r===void 0&&(r=xo),e.theme!==r.theme&&e.theme||t||r.theme}var Jm=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"]),$b=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Eb=/(^-|-$)/g;function ku(e){return e.replace($b,"-").replace(Eb,"")}var Ob=/(a)(d)/gi,Ha=52,qu=function(e){return String.fromCharCode(e+(e>25?39:97))};function bl(e){var t,r="";for(t=Math.abs(e);t>Ha;t=t/Ha|0)r=qu(t%Ha)+r;return(qu(t%Ha)+r).replace(Ob,"$1-$2")}var Rs,Zm=5381,fo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ev=function(e){return fo(Zm,e)};function tv(e){return bl(ev(e)>>>0)}function Rb(e){return e.displayName||e.name||"Component"}function Is(e){return typeof e=="string"&&!0}var rv=typeof Symbol=="function"&&Symbol.for,nv=rv?Symbol.for("react.memo"):60115,Ib=rv?Symbol.for("react.forward_ref"):60112,Pb={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ov={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tb=((Rs={})[Ib]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rs[nv]=ov,Rs);function Uu(e){return("type"in(t=e)&&t.type.$$typeof)===nv?ov:"$$typeof"in e?Tb[e.$$typeof]:Pb;var t}var Nb=Object.defineProperty,Fb=Object.getOwnPropertyNames,Gu=Object.getOwnPropertySymbols,_b=Object.getOwnPropertyDescriptor,Ab=Object.getPrototypeOf,Ku=Object.prototype;function av(e,t,r){if(typeof t!="string"){if(Ku){var n=Ab(t);n&&n!==Ku&&av(e,n,r)}var o=Fb(t);Gu&&(o=o.concat(Gu(t)));for(var a=Uu(e),i=Uu(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Mb||r&&r[l]||i&&l in i||a&&l in a)){var c=_b(t,l);try{Nb(e,l,c)}catch{}}}}return e}function $o(e){return typeof e=="function"}function Nc(e){return typeof e=="object"&&"styledComponentId"in e}function Ln(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function yl(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function aa(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Sl(e,t,r){if(r===void 0&&(r=!1),!r&&!aa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Sl(e[n],t[n]);else if(aa(t))for(var n in t)e[n]=Sl(e[n],t[n]);return e}function Fc(e,t){Object.defineProperty(e,"toString",{value:t})}function xa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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 jb=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw xa(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=o;i<a;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),l=(i=0,r.length);i<l;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,i=o;i<a;i++)r+="".concat(this.tag.getRule(i)).concat(Tc);return r},e})(),ii=new Map,xi=new Map,si=1,Va=function(e){if(ii.has(e))return ii.get(e);for(;xi.has(si);)si++;var t=si++;return ii.set(e,t),xi.set(t,e),t},Db=function(e,t){si=t+1,ii.set(e,t),xi.set(t,e)},Bb="style[".concat(wo,"][").concat(Ym,'="').concat(Gi,'"]'),Lb=new RegExp("^".concat(wo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zb=function(e,t,r){for(var n,o=r.split(","),a=0,i=o.length;a<i;a++)(n=o[a])&&e.registerName(t,n)},Hb=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Tc),o=[],a=0,i=n.length;a<i;a++){var s=n[a].trim();if(s){var l=s.match(Lb);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(Db(d,c),zb(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},Xu=function(e){for(var t=document.querySelectorAll(Bb),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(wo)!==Xm&&(Hb(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Vb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var iv=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(s){var l=Array.from(s.querySelectorAll("style[".concat(wo,"]")));return l[l.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(wo,Xm),n.setAttribute(Ym,Gi);var i=Vb();return i&&n.setAttribute("nonce",i),r.insertBefore(n,a),n},Wb=(function(){function e(t){this.element=iv(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var i=n[o];if(i.ownerNode===r)return i}throw xa(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),kb=(function(){function e(t){this.element=iv(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,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})(),qb=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),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})(),Yu=wi,Ub={isServer:!wi,useCSSOMInjection:!wb},$i=(function(){function e(t,r,n){t===void 0&&(t=xo),r===void 0&&(r={});var o=this;this.options=mr(mr({},Ub),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&wi&&Yu&&(Yu=!1,Xu(this)),Fc(this,function(){return(function(a){for(var i=a.getTag(),s=i.length,l="",c=function(f){var v=(function(b){return xi.get(b)})(f);if(v===void 0)return"continue";var h=a.names.get(v),g=i.getGroup(f);if(h===void 0||!h.size||g.length===0)return"continue";var p="".concat(wo,".g").concat(f,'[id="').concat(v,'"]'),m="";h!==void 0&&h.forEach(function(b){b.length>0&&(m+="".concat(b,","))}),l+="".concat(g).concat(p,'{content:"').concat(m,'"}').concat(Tc)},d=0;d<s;d++)c(d);return l})(o)})}return e.registerId=function(t){return Va(t)},e.prototype.rehydrate=function(){!this.server&&wi&&Xu(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(mr(mr({},this.options),t),this.gs,r&&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(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new qb(o):n?new Wb(o):new kb(o)})(this.options),new jb(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Va(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Va(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Va(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Gb=/&/g,Kb=/^\s*\/\/.*$/gm;function sv(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=sv(r.children,t)),r})}function Xb(e){var t,r,n,o=xo,a=o.options,i=a===void 0?xo:a,s=o.plugins,l=s===void 0?Ki:s,c=function(v,h,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(t):v},d=l.slice();d.push(function(v){v.type===Wi&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Gb,r).replace(n,c))}),i.prefix&&d.push(Sb),d.push(pb);var f=function(v,h,g,p){h===void 0&&(h=""),g===void 0&&(g=""),p===void 0&&(p="&"),t=p,r=h,n=new RegExp("\\".concat(r,"\\b"),"g");var m=v.replace(Kb,""),b=gb(g||h?"".concat(g," ").concat(h," { ").concat(m," }"):m);i.namespace&&(b=sv(b,i.namespace));var y=[];return Ci(b,bb(d.concat(yb(function(S){return y.push(S)})))),y};return f.hash=l.length?l.reduce(function(v,h){return h.name||xa(15),fo(v,h.name)},Zm).toString():"",f}var Yb=new $i,Cl=Xb(),lv=ne.createContext({shouldForwardProp:void 0,styleSheet:Yb,stylis:Cl});lv.Consumer;ne.createContext(void 0);function wl(){return ir(lv)}var Qb=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=Cl);var i=n.name+a.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,a(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Fc(this,function(){throw xa(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Cl),this.name+t.hash},e})(),Jb=function(e){return e>="A"&&e<="Z"};function Qu(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Jb(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var cv=function(e){return e==null||e===!1||e===""},uv=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!cv(a)&&(Array.isArray(a)&&a.isCss||$o(a)?n.push("".concat(Qu(o),":"),a,";"):aa(a)?n.push.apply(n,oa(oa(["".concat(o," {")],uv(a),!1),["}"],!1)):n.push("".concat(Qu(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Cb||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function xn(e,t,r,n){if(cv(e))return[];if(Nc(e))return[".".concat(e.styledComponentId)];if($o(e)){if(!$o(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return xn(o,t,r,n)}var a;return e instanceof Qb?r?(e.inject(r,n),[e.getName(n)]):[e]:aa(e)?uv(e):Array.isArray(e)?Array.prototype.concat.apply(Ki,e.map(function(i){return xn(i,t,r,n)})):[e.toString()]}function dv(e){for(var t=0;t<e.length;t+=1){var r=e[t];if($o(r)&&!Nc(r))return!1}return!0}var Zb=ev(Gi),ey=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&dv(t),this.componentId=r,this.baseHash=fo(Zb,r),this.baseStyle=n,$i.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Ln(o,this.staticRulesId);else{var a=yl(xn(this.rules,t,r,n)),i=bl(fo(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(a,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}o=Ln(o,i),this.staticRulesId=i}else{for(var l=fo(this.baseHash,n.hash),c="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")c+=f;else if(f){var v=yl(xn(f,t,r,n));l=fo(l,v+d),c+=v}}if(c){var h=bl(l>>>0);r.hasNameForId(this.componentId,h)||r.insertRules(this.componentId,h,n(c,".".concat(h),void 0,this.componentId)),o=Ln(o,h)}}return o},e})(),_c=ne.createContext(void 0);_c.Consumer;var Ps={};function ty(e,t,r){var n=Nc(e),o=e,a=!Is(e),i=t.attrs,s=i===void 0?Ki:i,l=t.componentId,c=l===void 0?(function(C,$){var x=typeof C!="string"?"sc":ku(C);Ps[x]=(Ps[x]||0)+1;var w="".concat(x,"-").concat(tv(Gi+x+Ps[x]));return $?"".concat($,"-").concat(w):w})(t.displayName,t.parentComponentId):l,d=t.displayName,f=d===void 0?(function(C){return Is(C)?"styled.".concat(C):"Styled(".concat(Rb(C),")")})(e):d,v=t.displayName&&t.componentId?"".concat(ku(t.displayName),"-").concat(t.componentId):t.componentId||c,h=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(n&&o.shouldForwardProp){var p=o.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;g=function(C,$){return p(C,$)&&m(C,$)}}else g=p}var b=new ey(r,v,n?o.componentStyle:void 0);function y(C,$){return(function(x,w,E){var O=x.attrs,R=x.componentStyle,I=x.defaultProps,P=x.foldedComponentIds,M=x.styledComponentId,F=x.target,N=ne.useContext(_c),A=wl(),_=x.shouldForwardProp||A.shouldForwardProp,D=Qm(w,N,I)||xo,W=(function(z,V,Z){for(var k,J=mr(mr({},V),{className:void 0,theme:Z}),ae=0;ae<z.length;ae+=1){var Y=$o(k=z[ae])?k(J):k;for(var U in Y)J[U]=U==="className"?Ln(J[U],Y[U]):U==="style"?mr(mr({},J[U]),Y[U]):Y[U]}return V.className&&(J.className=Ln(J.className,V.className)),J})(O,w,D),G=W.as||F,L={};for(var B in W)W[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&W.theme===D||(B==="forwardedAs"?L.as=W.forwardedAs:_&&!_(B,G)||(L[B]=W[B]));var q=(function(z,V){var Z=wl(),k=z.generateAndInjectStyles(V,Z.styleSheet,Z.stylis);return k})(R,W),H=Ln(P,M);return q&&(H+=" "+q),W.className&&(H+=" "+W.className),L[Is(G)&&!Jm.has(G)?"class":"className"]=H,E&&(L.ref=E),yi(G,L)})(S,C,$)}y.displayName=f;var S=ne.forwardRef(y);return S.attrs=h,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=n?Ln(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=v,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=n?(function($){for(var x=[],w=1;w<arguments.length;w++)x[w-1]=arguments[w];for(var E=0,O=x;E<O.length;E++)Sl($,O[E],!0);return $})({},o.defaultProps,C):C}}),Fc(S,function(){return".".concat(S.styledComponentId)}),a&&av(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Ju(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Zu=function(e){return Object.assign(e,{isCss:!0})};function fv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if($o(e)||aa(e))return Zu(xn(Ju(Ki,oa([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?xn(n):Zu(xn(Ju(n,t)))}function xl(e,t,r){if(r===void 0&&(r=xo),!t)throw xa(1,t);var n=function(o){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(t,r,fv.apply(void 0,oa([o],a,!1)))};return n.attrs=function(o){return xl(e,t,mr(mr({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return xl(e,t,mr(mr({},r),o))},n}var mv=function(e){return xl(ty,e)},ry=mv;Jm.forEach(function(e){ry[e]=mv(e)});var ny=(function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=dv(t),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var a=o(yl(xn(this.rules,r,n,o)),""),i=this.componentId+t;n.insertRules(i,i,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&$i.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e})();function DM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=fv.apply(void 0,oa([e],t,!1)),o="sc-global-".concat(tv(JSON.stringify(n))),a=new ny(n,o),i=function(l){var c=wl(),d=ne.useContext(_c),f=ne.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&s(f,l,c.styleSheet,d,c.stylis),ne.useLayoutEffect(function(){if(!c.styleSheet.server)return s(f,l,c.styleSheet,d,c.stylis),function(){return a.removeStyles(f,c.styleSheet)}},[f,l,c.styleSheet,d,c.stylis]),null};function s(l,c,d,f,v){if(a.isStatic)a.renderStyles(l,xb,d,v);else{var h=mr(mr({},c),{theme:Qm(c,f,i.defaultProps)});a.renderStyles(l,h,d,v)}}return ne.memo(i)}const oy={colors:{primary:"#4E6EF2",secondary:"#6D86F5",success:"#52C41A",warning:"#FAAD14",error:"#F5222D",info:"#1890FF",background:"#F7F8FA",appBackground:"transparent",listBackground:"#F2F3F5",dashboardBackground:"#FFFFFF",dashboardMainBackground:"transparent",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",tableBackground:"#FFFFFF",tableHeaderBg:"#F5F7FA",tableHeaderText:"#1D2129",tableHeaderDividerColor:"#E5E7EB",tableRowDividerColor:"#E5E7EB",tableFirstColumnBg:"#F7F9FC",tableLastColumnBg:"#F7F9FC",subTableBackground:"#F5F7FA",subTableHeaderBg:"#F5F7FA",tablePaginationDividerColor:"#E5E7EB",subTablePaginationDividerColor:"#E5E7EB",paginationBackground:"#FFFFFF",tagColor:"#1d70f5",tagBackground:"#ebf6ff",tagBorder:"#99caff",xviewerCardBorder:"#e5e6eb",xviewerCardBackground:"#FFFFFF",xviewerCardShadow:"0 2px 12px 0 rgba(0,0,0,0.07)",xviewerCardTitleColor:"#222222",xviewerCardDescBg:"#f9fafb",xviewerCardDescText:"#888888",xviewerCardMetaText:"#666666",tableActionText:"#1D4ED8",tableActionTextHover:"#1E40AF",dropdownBackground:"#FFFFFF",dropdownBorder:"#DEE2E6",dropdownShadow:"0 1px 3px rgba(0, 0, 0, 0.12)",xviewerCardMoreBackground:"#FFFFFF",xviewerCardMoreText:"#222222",xviewerCardMoreBorder:"#E5E7EB",xviewerCardMoreShadow:"0 2px 8px 0 rgba(0,0,0,0.08)",xviewerCardMoreDivider:"#F3F4F6",xviewerCardMoreItemHoverBg:"#F5F5F5"},space:{sidebar:"260px",size:"12px",radius:"4px",padding:"8px",margin:"8px",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.5",dashboardHeaderHeight:"38px",dashboardContentRadius:"4px",xviewerToolbarHeight:"52px",tableHeaderPadding:"0.5rem 0.75rem",tableHeaderDividerWidth:"1px",xviewerTabsGap:"8px",xviewerTabsPadding:"0px 0px 4px",xviewerCardsColumnGap:24,xviewerCardsRowGap:24,xviewerCardsPadding:"16px",subTableWrapperPadding:"8px",subTableInnerPadding:"0px 8px",tableRowHeight:"44px",subTableRowHeight:"40px",xviewerCardPadding:"18px 20px 16px 20px",xviewerCardContentGap:"4px",xviewerCardHeaderGap:"10px",xviewerCardHeaderRowGap:"12px",xviewerCardHeaderMarginBottom:"6px",xviewerCardDescMinHeight:"45px",xviewerCardDescPadding:"6px 8px",xviewerCardDescRadius:"4px",xviewerCardActionsMarginTop:"12px",xviewerCardActionsGap:"8px",tableActionFontSize:"12px",dropdownItemGap:"4px",dropdownPadding:"4px 0",dropdownItemPadding:"8px 12px",xviewerCardMorePadding:"4px 0",xviewerCardMoreItemPadding:"4px 12px",xviewerCardMoreWidth:"128px",xviewerCardMoreOffsetX:"0px",xviewerCardMoreOffsetY:"0px",xviewerCardMoreIconPadding:"0px"},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"},xs:{size:"10px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},sm:{size:"12px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},md:{size:"14px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},lg:{size:"16px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},"2lg":{size:"24px",weight:"400",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 BM(e,t){if(!t)return e;const r={...e,...t};return t.theme&&e.theme&&(r.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}}),r}const ay=Fo({theme:oy,mode:"light"}),LM=()=>ir(ay);/**
8
8
  * @license lucide-react v0.456.0 - ISC
9
9
  *
10
10
  * This source code is licensed under the ISC license.
@@ -84,7 +84,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
84
84
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
85
85
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
86
86
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
87
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var Nd=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const cg={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},KC={motionBase:!0,motionUnit:!0},XC={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},ug=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,a=Nd(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=lg(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,d=Nd(l,["theme"]);let f=d;c&&(f=ug(Object.assign(Object.assign({},i),d),{override:d},c)),i[s]=f}),i};function Vr(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=ne.useContext(ng),a=`${UC}-${t||""}`,i=r||rg,[s,l,c]=RS(i,[fa,e],{salt:a,override:n,getComputedToken:ug,formatToken:lg,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:cg,ignore:KC,preserve:XC}});return[i,c,t?l:"",s,o]}const Yl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ar=(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}),Ra=()=>({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"}}),YC=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),QC=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"}}}),JC=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},dg=(e,t)=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ts=(e,t)=>({"&:focus-visible":dg(e)}),fg=e=>({[`.${e}`]:Object.assign(Object.assign({},Ra()),{[`.${e} .${e}-icon`]:{display:"block"}})}),kM=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},ts(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:sr,genComponentStyleHook:ZC,genSubStyleComponent:mg}=qC({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ir(wt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Vr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=ir(wt);return e??{}},getResetStyles:(e,t)=>{var r;const n=QC(e);return[n,{"&":n},fg((r=t==null?void 0:t.prefix.iconPrefixCls)!==null&&r!==void 0?r:es)]},getCommonStyle:JC,getCompUnitless:()=>cg});function e1(e,t){return Xn.reduce((r,n)=>{const o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const t1=(e,t)=>{const[r,n]=Vr();return Al({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>fg(e))},r1=Object.assign({},u),{useId:Fd}=r1,n1=()=>"",o1=typeof Fd>"u"?n1:Fd;function a1(e,t,r){var n;Uc();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Kl),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:Kl.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=o1();return Xi(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),e.components[v])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,d)=>{const f=l[d];return!Ri(c,f,!0)}))}var i1=["children"],vg=u.createContext({});function s1(e){var t=e.children,r=ft(e,i1);return u.createElement(vg.Provider,{value:r},t)}var l1=(function(e){On(r,e);var t=Rn(r);function r(){return Vt(this,r),t.apply(this,arguments)}return Wt(r,[{key:"render",value:function(){return this.props.children}}]),r})(u.Component);function c1(e){var t=u.useReducer(function(s){return s+1},0),r=X(t,2),n=r[1],o=u.useRef(e),a=Bt(function(){return o.current}),i=Bt(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[a,i]}var bn="none",qa="appear",Ua="enter",Ga="leave",_d="none",qr="prepare",vo="start",go="active",Kc="end",gg="prepared";function Ad(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function u1(e,t){var r={animationend:Ad("Animation","AnimationEnd"),transitionend:Ad("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var d1=u1(xr(),typeof window<"u"?window:{}),hg={};if(xr()){var f1=document.createElement("div");hg=f1.style}var Ka={};function pg(e){if(Ka[e])return Ka[e];var t=d1[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in hg)return Ka[e]=t[a],Ka[e]}return""}var bg=pg("animationend"),yg=pg("transitionend"),Sg=!!(bg&&yg),jd=bg||"animationend",Dd=yg||"transitionend";function Bd(e,t){if(!e)return null;if(Ue(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const m1=(function(e){var t=Fe();function r(o){o&&(o.removeEventListener(Dd,e),o.removeEventListener(jd,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(Dd,e),o.addEventListener(jd,e),t.current=o)}return u.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Cg=xr()?Cp:tr;const v1=(function(){var e=u.useRef(null);function t(){mt.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=mt(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[r,t]});var g1=[qr,vo,go,Kc],h1=[qr,gg],wg=!1,p1=!0;function xg(e){return e===go||e===Kc}const b1=(function(e,t,r){var n=Po(_d),o=X(n,2),a=o[0],i=o[1],s=v1(),l=X(s,2),c=l[0],d=l[1];function f(){i(qr,!0)}var v=t?h1:g1;return Cg(function(){if(a!==_d&&a!==Kc){var h=v.indexOf(a),g=v[h+1],p=r(a);p===wg?i(g,!0):g&&c(function(m){function b(){m.isCanceled()||i(g,!0)}p===!0?b():Promise.resolve(p).then(b)})}},[e,a]),u.useEffect(function(){return function(){d()}},[]),[f,a]});function y1(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,h=n.onEnterPrepare,g=n.onLeavePrepare,p=n.onAppearStart,m=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,S=n.onEnterActive,C=n.onLeaveActive,$=n.onAppearEnd,x=n.onEnterEnd,w=n.onLeaveEnd,E=n.onVisibleChanged,O=Po(),R=X(O,2),I=R[0],P=R[1],M=c1(bn),F=X(M,2),N=F[0],A=F[1],_=Po(null),D=X(_,2),W=D[0],G=D[1],L=N(),B=Fe(!1),q=Fe(null);function H(){return r()}var z=Fe(!1);function V(){A(bn),G(null,!0)}var Z=Bt(function(be){var Se=N();if(Se!==bn){var me=H();if(!(be&&!be.deadline&&be.target!==me)){var te=z.current,xe;Se===qa&&te?xe=$==null?void 0:$(me,be):Se===Ua&&te?xe=x==null?void 0:x(me,be):Se===Ga&&te&&(xe=w==null?void 0:w(me,be)),te&&xe!==!1&&V()}}}),k=m1(Z),J=X(k,1),ae=J[0],Y=function(Se){switch(Se){case qa:return T(T(T({},qr,v),vo,p),go,y);case Ua:return T(T(T({},qr,h),vo,m),go,S);case Ga:return T(T(T({},qr,g),vo,b),go,C);default:return{}}},U=u.useMemo(function(){return Y(L)},[L]),re=b1(L,!e,function(be){if(be===qr){var Se=U[qr];return Se?Se(H()):wg}if(ee in U){var me;G(((me=U[ee])===null||me===void 0?void 0:me.call(U,H(),null))||null)}return ee===go&&L!==bn&&(ae(H()),d>0&&(clearTimeout(q.current),q.current=setTimeout(function(){Z({deadline:!0})},d))),ee===gg&&V(),p1}),se=X(re,2),K=se[0],ee=se[1],fe=xg(ee);z.current=fe;var le=Fe(null);Cg(function(){if(!(B.current&&le.current===t)){P(t);var be=B.current;B.current=!0;var Se;!be&&t&&s&&(Se=qa),be&&t&&a&&(Se=Ua),(be&&!t&&c||!be&&f&&!t&&c)&&(Se=Ga);var me=Y(Se);Se&&(e||me[qr])?(A(Se),K()):A(bn),le.current=t}},[t]),tr(function(){(L===qa&&!s||L===Ua&&!a||L===Ga&&!c)&&A(bn)},[s,a,c]),tr(function(){return function(){B.current=!1,clearTimeout(q.current)}},[]);var de=u.useRef(!1);tr(function(){I&&(de.current=!0),I!==void 0&&L===bn&&((de.current||I)&&(E==null||E(I)),de.current=!0)},[I,L]);var we=W;return U[qr]&&ee===vo&&(we=j({transition:"none"},we)),[L,ee,we,I??t]}function S1(e){var t=e;Ue(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=u.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,d=o.forceRender,f=o.children,v=o.motionName,h=o.leavedClassName,g=o.eventProps,p=u.useContext(vg),m=p.motion,b=r(o,m),y=Fe(),S=Fe();function C(){try{return y.current instanceof HTMLElement?y.current:li(S.current)}catch{return null}}var $=y1(b,s,C,o),x=X($,4),w=x[0],E=x[1],O=x[2],R=x[3],I=u.useRef(R);R&&(I.current=!0);var P=u.useCallback(function(D){y.current=D,Ac(a,D)},[a]),M,F=j(j({},g),{},{visible:s});if(!f)M=null;else if(w===bn)R?M=f(j({},F),P):!c&&I.current&&h?M=f(j(j({},F),{},{className:h}),P):d||!c&&!h?M=f(j(j({},F),{},{style:{display:"none"}}),P):M=null;else{var N;E===qr?N="prepare":xg(E)?N="active":E===vo&&(N="start");var A=Bd(v,"".concat(w,"-").concat(N));M=f(j(j({},F),{},{className:oe(Bd(v,w),T(T({},A,A&&N),v,typeof v=="string")),style:O}),P)}if(u.isValidElement(M)&&Qn(M)){var _=$a(M);_||(M=u.cloneElement(M,{ref:P}))}return u.createElement(l1,{ref:S},M)});return n.displayName="CSSMotion",n}const Mn=S1(Sg);var Ql="add",Jl="keep",Zl="remove",Vs="removed";function C1(e){var t;return e&&Ue(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function ec(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(C1)}function w1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=ec(e),i=ec(t);a.forEach(function(c){for(var d=!1,f=n;f<o;f+=1){var v=i[f];if(v.key===c.key){n<f&&(r=r.concat(i.slice(n,f).map(function(h){return j(j({},h),{},{status:Ql})})),n=f),r.push(j(j({},v),{},{status:Jl})),n+=1,d=!0;break}}d||r.push(j(j({},c),{},{status:Zl}))}),n<o&&(r=r.concat(i.slice(n).map(function(c){return j(j({},c),{},{status:Ql})})));var s={};r.forEach(function(c){var d=c.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(d){var f=d.key,v=d.status;return f!==c||v!==Zl}),r.forEach(function(d){d.key===c&&(d.status=Jl)})}),r}var x1=["component","children","onVisibleChanged","onAllRemoved"],$1=["status"],E1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function O1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mn,r=(function(n){On(a,n);var o=Rn(a);function a(){var i;Vt(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),T(at(i),"state",{keyEntities:[]}),T(at(i),"removeKey",function(d){i.setState(function(f){var v=f.keyEntities.map(function(h){return h.key!==d?h:j(j({},h),{},{status:Vs})});return{keyEntities:v}},function(){var f=i.state.keyEntities,v=f.filter(function(h){var g=h.status;return g!==Vs}).length;v===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Wt(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,d=c.component,f=c.children,v=c.onVisibleChanged;c.onAllRemoved;var h=ft(c,x1),g=d||u.Fragment,p={};return E1.forEach(function(m){p[m]=h[m],delete h[m]}),delete h.keys,u.createElement(g,h,l.map(function(m,b){var y=m.status,S=ft(m,$1),C=y===Ql||y===Jl;return u.createElement(t,Be({},p,{key:S.key,visible:C,eventProps:S,onVisibleChanged:function(x){v==null||v(x,{key:S.key}),x||s.removeKey(S.key)}}),function($,x){return f(j(j({},$),{},{index:b}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,d=l.keyEntities,f=ec(c),v=w1(d,f);return{keyEntities:v.filter(function(h){var g=d.find(function(p){var m=p.key;return h.key===m});return!(g&&g.status===Vs&&h.status===Zl)})}}}]),a})(u.Component);return T(r,"defaultProps",{component:"div"}),r}const R1=O1(Sg),Ld=u.createContext(!0);function I1(e){const t=u.useContext(Ld),{children:r}=e,[,n]=Vr(),{motion:o}=n,a=u.useRef(!1);return a.current||(a.current=t!==o),a.current?u.createElement(Ld.Provider,{value:o},u.createElement(s1,{motion:o},r)):r}const P1=()=>null;var M1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const T1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Mi,$g,Eg,Og;function pi(){return Mi||va}function N1(){return $g||es}function F1(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const _1=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(Mi=t),r!==void 0&&($g=r),"holderRender"in e&&(Og=o),n&&(F1(n)?TC(pi(),n):Eg=n)},qM=()=>({getPrefixCls:(e,t)=>t||(e?`${pi()}-${e}`:pi()),getIconPrefixCls:N1,getRootPrefixCls:()=>Mi||pi(),getTheme:()=>Eg,holderRender:Og}),A1=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:d,splitter:f,virtual:v,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:p,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:S,componentDisabled:C,segmented:$,statistic:x,spin:w,calendar:E,carousel:O,cascader:R,collapse:I,typography:P,checkbox:M,descriptions:F,divider:N,drawer:A,skeleton:_,steps:D,image:W,layout:G,list:L,mentions:B,modal:q,progress:H,result:z,slider:V,breadcrumb:Z,menu:k,pagination:J,input:ae,textArea:Y,empty:U,badge:re,radio:se,rate:K,switch:ee,transfer:fe,avatar:le,message:de,tag:we,table:be,card:Se,tabs:me,timeline:te,timePicker:xe,upload:ze,notification:Ae,tree:Me,colorPicker:Ee,datePicker:He,rangePicker:Te,flex:Le,wave:Oe,dropdown:Ce,warning:Ve,tour:Ze,tooltip:We,popover:et,popconfirm:lt,floatButton:Ot,floatButtonGroup:Pt,variant:$e,inputNumber:Re,treeSelect:Ge}=e,Pe=u.useCallback((je,it)=>{const{prefixCls:vt}=e;if(it)return it;const pt=vt||b.getPrefixCls("");return je?`${pt}-${je}`:pt},[b.getPrefixCls,e.prefixCls]),Xe=y||b.iconPrefixCls||es,ct=r||b.csp;t1(Xe,ct);const nt=a1(S,b.theme,{prefixCls:Pe("")}),ke={csp:ct,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||m,direction:c,space:d,splitter:f,virtual:v,popupMatchSelectWidth:g??h,popupOverflow:p,getPrefixCls:Pe,iconPrefixCls:Xe,theme:nt,segmented:$,statistic:x,spin:w,calendar:E,carousel:O,cascader:R,collapse:I,typography:P,checkbox:M,descriptions:F,divider:N,drawer:A,skeleton:_,steps:D,image:W,input:ae,textArea:Y,layout:G,list:L,mentions:B,modal:q,progress:H,result:z,slider:V,breadcrumb:Z,menu:k,pagination:J,empty:U,badge:re,radio:se,rate:K,switch:ee,transfer:fe,avatar:le,message:de,tag:we,table:be,card:Se,tabs:me,timeline:te,timePicker:xe,upload:ze,notification:Ae,tree:Me,colorPicker:Ee,datePicker:He,rangePicker:Te,flex:Le,wave:Oe,dropdown:Ce,warning:Ve,tour:Ze,tooltip:We,popover:et,popconfirm:lt,floatButton:Ot,floatButtonGroup:Pt,variant:$e,inputNumber:Re,treeSelect:Ge},Qe=Object.assign({},b);Object.keys(ke).forEach(je=>{ke[je]!==void 0&&(Qe[je]=ke[je])}),T1.forEach(je=>{const it=e[je];it&&(Qe[je]=it)}),typeof n<"u"&&(Qe.button=Object.assign({autoInsertSpace:n},Qe.button));const ut=Xi(()=>Qe,Qe,(je,it)=>{const vt=Object.keys(je),pt=Object.keys(it);return vt.length!==pt.length||vt.some(gt=>je[gt]!==it[gt])}),{layer:ye}=u.useContext(Ea),ue=u.useMemo(()=>({prefixCls:Xe,csp:ct,layer:ye?"antd":void 0}),[Xe,ct,ye]);let ce=u.createElement(u.Fragment,null,u.createElement(P1,{dropdownMatchSelectWidth:h}),t);const ge=u.useMemo(()=>{var je,it,vt,pt;return mo(((je=$n.Form)===null||je===void 0?void 0:je.defaultValidateMessages)||{},((vt=(it=ut.locale)===null||it===void 0?void 0:it.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((pt=ut.form)===null||pt===void 0?void 0:pt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ut,i==null?void 0:i.validateMessages]);Object.keys(ge).length>0&&(ce=u.createElement(Qv.Provider,{value:ge},ce)),s&&(ce=u.createElement(fC,{locale:s,_ANT_MARK__:dC},ce)),ce=u.createElement(qc.Provider,{value:ue},ce),l&&(ce=u.createElement(NC,{size:l},ce)),ce=u.createElement(I1,null,ce);const qe=u.useMemo(()=>{const je=nt||{},{algorithm:it,token:vt,components:pt,cssVar:gt}=je,Lt=M1(je,["algorithm","token","components","cssVar"]),Nt=it&&(!Array.isArray(it)||it.length>0)?Tl(it):rg,Mt={};Object.entries(pt||{}).forEach(([Rt,jt])=>{const pe=Object.assign({},jt);"algorithm"in pe&&(pe.algorithm===!0?pe.theme=Nt:(Array.isArray(pe.algorithm)||typeof pe.algorithm=="function")&&(pe.theme=Tl(pe.algorithm)),delete pe.algorithm),Mt[Rt]=pe});const rr=Object.assign(Object.assign({},fa),vt);return Object.assign(Object.assign({},Lt),{theme:Nt,token:rr,components:Mt,override:Object.assign({override:rr},Mt),cssVar:gt})},[nt]);return S&&(ce=u.createElement(ng.Provider,{value:qe},ce)),ut.warning&&(ce=u.createElement(iC.Provider,{value:ut.warning},ce)),C!==void 0&&(ce=u.createElement(og,{disabled:C},ce)),u.createElement(wt.Provider,{value:ut},ce)},Jn=e=>{const t=u.useContext(wt),r=u.useContext(Gc);return u.createElement(A1,Object.assign({parentContext:t,legacyLocale:r},e))};Jn.ConfigContext=wt;Jn.SizeContext=Kn;Jn.config=_1;Jn.useConfig=FC;Object.defineProperty(Jn,"SizeContext",{get:()=>Kn});var j1={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 Rg(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function D1(e){return Rg(e)instanceof ShadowRoot}function Ti(e){return D1(e)?Rg(e):null}function B1(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function L1(e,t){or(e,"[@ant-design/icons] ".concat(t))}function zd(e){return Ue(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ue(e.icon)==="object"||typeof e.icon=="function")}function Hd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[B1(r)]=n}return t},{})}function tc(e,t,r){return r?ne.createElement(e.tag,j(j({key:t},Hd(e.attrs)),r),(e.children||[]).map(function(n,o){return tc(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ne.createElement(e.tag,j({key:t},Hd(e.attrs)),(e.children||[]).map(function(n,o){return tc(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ig(e){return ma(e)[0]}function Pg(e){return e?Array.isArray(e)?e:[e]:[]}var z1=`
87
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var Nd=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const cg={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},KC={motionBase:!0,motionUnit:!0},XC={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},ug=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,a=Nd(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=lg(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,d=Nd(l,["theme"]);let f=d;c&&(f=ug(Object.assign(Object.assign({},i),d),{override:d},c)),i[s]=f}),i};function Vr(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=ne.useContext(ng),a=`${UC}-${t||""}`,i=r||rg,[s,l,c]=RS(i,[fa,e],{salt:a,override:n,getComputedToken:ug,formatToken:lg,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:cg,ignore:KC,preserve:XC}});return[i,c,t?l:"",s,o]}const Yl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ar=(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}),Ra=()=>({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"}}),YC=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),QC=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"}}}),JC=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},dg=(e,t)=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ts=(e,t)=>({"&:focus-visible":dg(e)}),fg=e=>({[`.${e}`]:Object.assign(Object.assign({},Ra()),{[`.${e} .${e}-icon`]:{display:"block"}})}),kM=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},ts(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:sr,genComponentStyleHook:ZC,genSubStyleComponent:mg}=qC({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ir(wt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Vr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=ir(wt);return e??{}},getResetStyles:(e,t)=>{var r;const n=QC(e);return[n,{"&":n},fg((r=t==null?void 0:t.prefix.iconPrefixCls)!==null&&r!==void 0?r:es)]},getCommonStyle:JC,getCompUnitless:()=>cg});function ew(e,t){return Xn.reduce((r,n)=>{const o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const tw=(e,t)=>{const[r,n]=Vr();return Al({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>fg(e))},rw=Object.assign({},u),{useId:Fd}=rw,nw=()=>"",ow=typeof Fd>"u"?nw:Fd;function aw(e,t,r){var n;Uc();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Kl),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:Kl.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=ow();return Xi(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),e.components[v])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,d)=>{const f=l[d];return!Ri(c,f,!0)}))}var iw=["children"],vg=u.createContext({});function sw(e){var t=e.children,r=ft(e,iw);return u.createElement(vg.Provider,{value:r},t)}var lw=(function(e){On(r,e);var t=Rn(r);function r(){return Vt(this,r),t.apply(this,arguments)}return Wt(r,[{key:"render",value:function(){return this.props.children}}]),r})(u.Component);function cw(e){var t=u.useReducer(function(s){return s+1},0),r=X(t,2),n=r[1],o=u.useRef(e),a=Bt(function(){return o.current}),i=Bt(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[a,i]}var bn="none",qa="appear",Ua="enter",Ga="leave",_d="none",qr="prepare",vo="start",go="active",Kc="end",gg="prepared";function Ad(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function uw(e,t){var r={animationend:Ad("Animation","AnimationEnd"),transitionend:Ad("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var dw=uw(xr(),typeof window<"u"?window:{}),hg={};if(xr()){var fw=document.createElement("div");hg=fw.style}var Ka={};function pg(e){if(Ka[e])return Ka[e];var t=dw[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in hg)return Ka[e]=t[a],Ka[e]}return""}var bg=pg("animationend"),yg=pg("transitionend"),Sg=!!(bg&&yg),jd=bg||"animationend",Dd=yg||"transitionend";function Bd(e,t){if(!e)return null;if(Ue(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const mw=(function(e){var t=Fe();function r(o){o&&(o.removeEventListener(Dd,e),o.removeEventListener(jd,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(Dd,e),o.addEventListener(jd,e),t.current=o)}return u.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Cg=xr()?Cp:tr;const vw=(function(){var e=u.useRef(null);function t(){mt.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=mt(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[r,t]});var gw=[qr,vo,go,Kc],hw=[qr,gg],wg=!1,pw=!0;function xg(e){return e===go||e===Kc}const bw=(function(e,t,r){var n=Po(_d),o=X(n,2),a=o[0],i=o[1],s=vw(),l=X(s,2),c=l[0],d=l[1];function f(){i(qr,!0)}var v=t?hw:gw;return Cg(function(){if(a!==_d&&a!==Kc){var h=v.indexOf(a),g=v[h+1],p=r(a);p===wg?i(g,!0):g&&c(function(m){function b(){m.isCanceled()||i(g,!0)}p===!0?b():Promise.resolve(p).then(b)})}},[e,a]),u.useEffect(function(){return function(){d()}},[]),[f,a]});function yw(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,h=n.onEnterPrepare,g=n.onLeavePrepare,p=n.onAppearStart,m=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,S=n.onEnterActive,C=n.onLeaveActive,$=n.onAppearEnd,x=n.onEnterEnd,w=n.onLeaveEnd,E=n.onVisibleChanged,O=Po(),R=X(O,2),I=R[0],P=R[1],M=cw(bn),F=X(M,2),N=F[0],A=F[1],_=Po(null),D=X(_,2),W=D[0],G=D[1],L=N(),B=Fe(!1),q=Fe(null);function H(){return r()}var z=Fe(!1);function V(){A(bn),G(null,!0)}var Z=Bt(function(be){var Se=N();if(Se!==bn){var me=H();if(!(be&&!be.deadline&&be.target!==me)){var te=z.current,xe;Se===qa&&te?xe=$==null?void 0:$(me,be):Se===Ua&&te?xe=x==null?void 0:x(me,be):Se===Ga&&te&&(xe=w==null?void 0:w(me,be)),te&&xe!==!1&&V()}}}),k=mw(Z),J=X(k,1),ae=J[0],Y=function(Se){switch(Se){case qa:return T(T(T({},qr,v),vo,p),go,y);case Ua:return T(T(T({},qr,h),vo,m),go,S);case Ga:return T(T(T({},qr,g),vo,b),go,C);default:return{}}},U=u.useMemo(function(){return Y(L)},[L]),re=bw(L,!e,function(be){if(be===qr){var Se=U[qr];return Se?Se(H()):wg}if(ee in U){var me;G(((me=U[ee])===null||me===void 0?void 0:me.call(U,H(),null))||null)}return ee===go&&L!==bn&&(ae(H()),d>0&&(clearTimeout(q.current),q.current=setTimeout(function(){Z({deadline:!0})},d))),ee===gg&&V(),pw}),se=X(re,2),K=se[0],ee=se[1],fe=xg(ee);z.current=fe;var le=Fe(null);Cg(function(){if(!(B.current&&le.current===t)){P(t);var be=B.current;B.current=!0;var Se;!be&&t&&s&&(Se=qa),be&&t&&a&&(Se=Ua),(be&&!t&&c||!be&&f&&!t&&c)&&(Se=Ga);var me=Y(Se);Se&&(e||me[qr])?(A(Se),K()):A(bn),le.current=t}},[t]),tr(function(){(L===qa&&!s||L===Ua&&!a||L===Ga&&!c)&&A(bn)},[s,a,c]),tr(function(){return function(){B.current=!1,clearTimeout(q.current)}},[]);var de=u.useRef(!1);tr(function(){I&&(de.current=!0),I!==void 0&&L===bn&&((de.current||I)&&(E==null||E(I)),de.current=!0)},[I,L]);var we=W;return U[qr]&&ee===vo&&(we=j({transition:"none"},we)),[L,ee,we,I??t]}function Sw(e){var t=e;Ue(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=u.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,d=o.forceRender,f=o.children,v=o.motionName,h=o.leavedClassName,g=o.eventProps,p=u.useContext(vg),m=p.motion,b=r(o,m),y=Fe(),S=Fe();function C(){try{return y.current instanceof HTMLElement?y.current:li(S.current)}catch{return null}}var $=yw(b,s,C,o),x=X($,4),w=x[0],E=x[1],O=x[2],R=x[3],I=u.useRef(R);R&&(I.current=!0);var P=u.useCallback(function(D){y.current=D,Ac(a,D)},[a]),M,F=j(j({},g),{},{visible:s});if(!f)M=null;else if(w===bn)R?M=f(j({},F),P):!c&&I.current&&h?M=f(j(j({},F),{},{className:h}),P):d||!c&&!h?M=f(j(j({},F),{},{style:{display:"none"}}),P):M=null;else{var N;E===qr?N="prepare":xg(E)?N="active":E===vo&&(N="start");var A=Bd(v,"".concat(w,"-").concat(N));M=f(j(j({},F),{},{className:oe(Bd(v,w),T(T({},A,A&&N),v,typeof v=="string")),style:O}),P)}if(u.isValidElement(M)&&Qn(M)){var _=$a(M);_||(M=u.cloneElement(M,{ref:P}))}return u.createElement(lw,{ref:S},M)});return n.displayName="CSSMotion",n}const Mn=Sw(Sg);var Ql="add",Jl="keep",Zl="remove",Vs="removed";function Cw(e){var t;return e&&Ue(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function ec(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Cw)}function ww(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=ec(e),i=ec(t);a.forEach(function(c){for(var d=!1,f=n;f<o;f+=1){var v=i[f];if(v.key===c.key){n<f&&(r=r.concat(i.slice(n,f).map(function(h){return j(j({},h),{},{status:Ql})})),n=f),r.push(j(j({},v),{},{status:Jl})),n+=1,d=!0;break}}d||r.push(j(j({},c),{},{status:Zl}))}),n<o&&(r=r.concat(i.slice(n).map(function(c){return j(j({},c),{},{status:Ql})})));var s={};r.forEach(function(c){var d=c.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(d){var f=d.key,v=d.status;return f!==c||v!==Zl}),r.forEach(function(d){d.key===c&&(d.status=Jl)})}),r}var xw=["component","children","onVisibleChanged","onAllRemoved"],$w=["status"],Ew=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ow(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mn,r=(function(n){On(a,n);var o=Rn(a);function a(){var i;Vt(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),T(at(i),"state",{keyEntities:[]}),T(at(i),"removeKey",function(d){i.setState(function(f){var v=f.keyEntities.map(function(h){return h.key!==d?h:j(j({},h),{},{status:Vs})});return{keyEntities:v}},function(){var f=i.state.keyEntities,v=f.filter(function(h){var g=h.status;return g!==Vs}).length;v===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Wt(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,d=c.component,f=c.children,v=c.onVisibleChanged;c.onAllRemoved;var h=ft(c,xw),g=d||u.Fragment,p={};return Ew.forEach(function(m){p[m]=h[m],delete h[m]}),delete h.keys,u.createElement(g,h,l.map(function(m,b){var y=m.status,S=ft(m,$w),C=y===Ql||y===Jl;return u.createElement(t,Be({},p,{key:S.key,visible:C,eventProps:S,onVisibleChanged:function(x){v==null||v(x,{key:S.key}),x||s.removeKey(S.key)}}),function($,x){return f(j(j({},$),{},{index:b}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,d=l.keyEntities,f=ec(c),v=ww(d,f);return{keyEntities:v.filter(function(h){var g=d.find(function(p){var m=p.key;return h.key===m});return!(g&&g.status===Vs&&h.status===Zl)})}}}]),a})(u.Component);return T(r,"defaultProps",{component:"div"}),r}const Rw=Ow(Sg),Ld=u.createContext(!0);function Iw(e){const t=u.useContext(Ld),{children:r}=e,[,n]=Vr(),{motion:o}=n,a=u.useRef(!1);return a.current||(a.current=t!==o),a.current?u.createElement(Ld.Provider,{value:o},u.createElement(sw,{motion:o},r)):r}const Pw=()=>null;var Mw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Tw=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Mi,$g,Eg,Og;function pi(){return Mi||va}function Nw(){return $g||es}function Fw(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const _w=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(Mi=t),r!==void 0&&($g=r),"holderRender"in e&&(Og=o),n&&(Fw(n)?TC(pi(),n):Eg=n)},qM=()=>({getPrefixCls:(e,t)=>t||(e?`${pi()}-${e}`:pi()),getIconPrefixCls:Nw,getRootPrefixCls:()=>Mi||pi(),getTheme:()=>Eg,holderRender:Og}),Aw=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:d,splitter:f,virtual:v,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:p,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:S,componentDisabled:C,segmented:$,statistic:x,spin:w,calendar:E,carousel:O,cascader:R,collapse:I,typography:P,checkbox:M,descriptions:F,divider:N,drawer:A,skeleton:_,steps:D,image:W,layout:G,list:L,mentions:B,modal:q,progress:H,result:z,slider:V,breadcrumb:Z,menu:k,pagination:J,input:ae,textArea:Y,empty:U,badge:re,radio:se,rate:K,switch:ee,transfer:fe,avatar:le,message:de,tag:we,table:be,card:Se,tabs:me,timeline:te,timePicker:xe,upload:ze,notification:Ae,tree:Me,colorPicker:Ee,datePicker:He,rangePicker:Te,flex:Le,wave:Oe,dropdown:Ce,warning:Ve,tour:Ze,tooltip:We,popover:et,popconfirm:lt,floatButton:Ot,floatButtonGroup:Pt,variant:$e,inputNumber:Re,treeSelect:Ge}=e,Pe=u.useCallback((je,it)=>{const{prefixCls:vt}=e;if(it)return it;const pt=vt||b.getPrefixCls("");return je?`${pt}-${je}`:pt},[b.getPrefixCls,e.prefixCls]),Xe=y||b.iconPrefixCls||es,ct=r||b.csp;tw(Xe,ct);const nt=aw(S,b.theme,{prefixCls:Pe("")}),ke={csp:ct,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||m,direction:c,space:d,splitter:f,virtual:v,popupMatchSelectWidth:g??h,popupOverflow:p,getPrefixCls:Pe,iconPrefixCls:Xe,theme:nt,segmented:$,statistic:x,spin:w,calendar:E,carousel:O,cascader:R,collapse:I,typography:P,checkbox:M,descriptions:F,divider:N,drawer:A,skeleton:_,steps:D,image:W,input:ae,textArea:Y,layout:G,list:L,mentions:B,modal:q,progress:H,result:z,slider:V,breadcrumb:Z,menu:k,pagination:J,empty:U,badge:re,radio:se,rate:K,switch:ee,transfer:fe,avatar:le,message:de,tag:we,table:be,card:Se,tabs:me,timeline:te,timePicker:xe,upload:ze,notification:Ae,tree:Me,colorPicker:Ee,datePicker:He,rangePicker:Te,flex:Le,wave:Oe,dropdown:Ce,warning:Ve,tour:Ze,tooltip:We,popover:et,popconfirm:lt,floatButton:Ot,floatButtonGroup:Pt,variant:$e,inputNumber:Re,treeSelect:Ge},Qe=Object.assign({},b);Object.keys(ke).forEach(je=>{ke[je]!==void 0&&(Qe[je]=ke[je])}),Tw.forEach(je=>{const it=e[je];it&&(Qe[je]=it)}),typeof n<"u"&&(Qe.button=Object.assign({autoInsertSpace:n},Qe.button));const ut=Xi(()=>Qe,Qe,(je,it)=>{const vt=Object.keys(je),pt=Object.keys(it);return vt.length!==pt.length||vt.some(gt=>je[gt]!==it[gt])}),{layer:ye}=u.useContext(Ea),ue=u.useMemo(()=>({prefixCls:Xe,csp:ct,layer:ye?"antd":void 0}),[Xe,ct,ye]);let ce=u.createElement(u.Fragment,null,u.createElement(Pw,{dropdownMatchSelectWidth:h}),t);const ge=u.useMemo(()=>{var je,it,vt,pt;return mo(((je=$n.Form)===null||je===void 0?void 0:je.defaultValidateMessages)||{},((vt=(it=ut.locale)===null||it===void 0?void 0:it.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((pt=ut.form)===null||pt===void 0?void 0:pt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ut,i==null?void 0:i.validateMessages]);Object.keys(ge).length>0&&(ce=u.createElement(Qv.Provider,{value:ge},ce)),s&&(ce=u.createElement(fC,{locale:s,_ANT_MARK__:dC},ce)),ce=u.createElement(qc.Provider,{value:ue},ce),l&&(ce=u.createElement(NC,{size:l},ce)),ce=u.createElement(Iw,null,ce);const qe=u.useMemo(()=>{const je=nt||{},{algorithm:it,token:vt,components:pt,cssVar:gt}=je,Lt=Mw(je,["algorithm","token","components","cssVar"]),Nt=it&&(!Array.isArray(it)||it.length>0)?Tl(it):rg,Mt={};Object.entries(pt||{}).forEach(([Rt,jt])=>{const pe=Object.assign({},jt);"algorithm"in pe&&(pe.algorithm===!0?pe.theme=Nt:(Array.isArray(pe.algorithm)||typeof pe.algorithm=="function")&&(pe.theme=Tl(pe.algorithm)),delete pe.algorithm),Mt[Rt]=pe});const rr=Object.assign(Object.assign({},fa),vt);return Object.assign(Object.assign({},Lt),{theme:Nt,token:rr,components:Mt,override:Object.assign({override:rr},Mt),cssVar:gt})},[nt]);return S&&(ce=u.createElement(ng.Provider,{value:qe},ce)),ut.warning&&(ce=u.createElement(iC.Provider,{value:ut.warning},ce)),C!==void 0&&(ce=u.createElement(og,{disabled:C},ce)),u.createElement(wt.Provider,{value:ut},ce)},Jn=e=>{const t=u.useContext(wt),r=u.useContext(Gc);return u.createElement(Aw,Object.assign({parentContext:t,legacyLocale:r},e))};Jn.ConfigContext=wt;Jn.SizeContext=Kn;Jn.config=_w;Jn.useConfig=FC;Object.defineProperty(Jn,"SizeContext",{get:()=>Kn});var jw={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 Rg(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Dw(e){return Rg(e)instanceof ShadowRoot}function Ti(e){return Dw(e)?Rg(e):null}function Bw(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Lw(e,t){or(e,"[@ant-design/icons] ".concat(t))}function zd(e){return Ue(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ue(e.icon)==="object"||typeof e.icon=="function")}function Hd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Bw(r)]=n}return t},{})}function tc(e,t,r){return r?ne.createElement(e.tag,j(j({key:t},Hd(e.attrs)),r),(e.children||[]).map(function(n,o){return tc(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ne.createElement(e.tag,j({key:t},Hd(e.attrs)),(e.children||[]).map(function(n,o){return tc(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ig(e){return ma(e)[0]}function Pg(e){return e?Array.isArray(e)?e:[e]:[]}var zw=`
88
88
  .anticon {
89
89
  display: inline-flex;
90
90
  align-items: center;
@@ -139,9 +139,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
139
139
  transform: rotate(360deg);
140
140
  }
141
141
  }
142
- `,H1=function(t){var r=ir(qc),n=r.csp,o=r.prefixCls,a=r.layer,i=z1;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
142
+ `,Hw=function(t){var r=ir(qc),n=r.csp,o=r.prefixCls,a=r.layer,i=zw;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
143
143
  `).concat(i,`
144
- }`)),tr(function(){var s=t.current,l=Ti(s);ln(i,"@ant-design-icons",{prepend:!a,csp:n,attachTo:l})},[])},V1=["icon","className","onClick","style","primaryColor","secondaryColor"],ta={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function W1(e){var t=e.primaryColor,r=e.secondaryColor;ta.primaryColor=t,ta.secondaryColor=r||Ig(t),ta.calculated=!!r}function k1(){return j({},ta)}var Lo=function(t){var r=t.icon,n=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=ft(t,V1),c=u.useRef(),d=ta;if(i&&(d={primaryColor:i,secondaryColor:s||Ig(i)}),H1(c),L1(zd(r),"icon should be icon definiton, but got ".concat(r)),!zd(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=j(j({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),tc(f.icon,"svg-".concat(f.name),j(j({className:n,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Lo.displayName="IconReact";Lo.getTwoToneColors=k1;Lo.setTwoToneColors=W1;function Mg(e){var t=Pg(e),r=X(t,2),n=r[0],o=r[1];return Lo.setTwoToneColors({primaryColor:n,secondaryColor:o})}function q1(){var e=Lo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var U1=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Mg(Pi.primary);var br=u.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=ft(e,U1),d=u.useContext(qc),f=d.prefixCls,v=f===void 0?"anticon":f,h=d.rootClassName,g=oe(h,v,T(T({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!o||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Pg(l),y=X(b,2),S=y[0],C=y[1];return u.createElement("span",Be({role:"img","aria-label":n.name},c,{ref:t,tabIndex:p,onClick:s,className:g}),u.createElement(Lo,{icon:n,primaryColor:S,secondaryColor:C,style:m}))});br.displayName="AntdIcon";br.getTwoToneColor=q1;br.setTwoToneColor=Mg;var G1=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:j1}))},K1=u.forwardRef(G1),X1={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"},Y1=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:X1}))},Xc=u.forwardRef(Y1),Q1={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"},J1=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:Q1}))},Tg=u.forwardRef(J1),Z1={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"},ew=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:Z1}))},tw=u.forwardRef(ew),rw=`accept acceptCharset accessKey action allowFullScreen allowTransparency
144
+ }`)),tr(function(){var s=t.current,l=Ti(s);ln(i,"@ant-design-icons",{prepend:!a,csp:n,attachTo:l})},[])},Vw=["icon","className","onClick","style","primaryColor","secondaryColor"],ta={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ww(e){var t=e.primaryColor,r=e.secondaryColor;ta.primaryColor=t,ta.secondaryColor=r||Ig(t),ta.calculated=!!r}function kw(){return j({},ta)}var Lo=function(t){var r=t.icon,n=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=ft(t,Vw),c=u.useRef(),d=ta;if(i&&(d={primaryColor:i,secondaryColor:s||Ig(i)}),Hw(c),Lw(zd(r),"icon should be icon definiton, but got ".concat(r)),!zd(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=j(j({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),tc(f.icon,"svg-".concat(f.name),j(j({className:n,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Lo.displayName="IconReact";Lo.getTwoToneColors=kw;Lo.setTwoToneColors=Ww;function Mg(e){var t=Pg(e),r=X(t,2),n=r[0],o=r[1];return Lo.setTwoToneColors({primaryColor:n,secondaryColor:o})}function qw(){var e=Lo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Uw=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Mg(Pi.primary);var br=u.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=ft(e,Uw),d=u.useContext(qc),f=d.prefixCls,v=f===void 0?"anticon":f,h=d.rootClassName,g=oe(h,v,T(T({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!o||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Pg(l),y=X(b,2),S=y[0],C=y[1];return u.createElement("span",Be({role:"img","aria-label":n.name},c,{ref:t,tabIndex:p,onClick:s,className:g}),u.createElement(Lo,{icon:n,primaryColor:S,secondaryColor:C,style:m}))});br.displayName="AntdIcon";br.getTwoToneColor=qw;br.setTwoToneColor=Mg;var Gw=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:jw}))},Kw=u.forwardRef(Gw),Xw={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"},Yw=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:Xw}))},Xc=u.forwardRef(Yw),Qw={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"},Jw=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:Qw}))},Tg=u.forwardRef(Jw),Zw={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"},e1=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:Zw}))},t1=u.forwardRef(e1),r1=`accept acceptCharset accessKey action allowFullScreen allowTransparency
145
145
  alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
146
146
  charSet checked classID className colSpan cols content contentEditable contextMenu
147
147
  controls coords crossOrigin data dateTime default defer dir disabled download draggable
@@ -152,13 +152,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
152
152
  optimum pattern placeholder poster preload radioGroup readOnly rel required
153
153
  reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
154
154
  shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
155
- summary tabIndex target title type useMap value width wmode wrap`,nw=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
155
+ summary tabIndex target title type useMap value width wmode wrap`,n1=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
156
156
  onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
157
157
  onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
158
158
  onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
159
159
  onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
160
160
  onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
161
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ow="".concat(rw," ").concat(nw).split(/[\s\n]+/),aw="aria-",iw="data-";function Vd(e,t){return e.indexOf(t)===0}function En(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=j({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||Vd(o,aw))||r.data&&Vd(o,iw)||r.attr&&ow.includes(o))&&(n[o]=e[o])}),n}function Ng(e){return e&&ne.isValidElement(e)&&e.type===ne.Fragment}const sw=(e,t,r)=>ne.isValidElement(e)?ne.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Mo(e,t){return sw(e,e,t)}const Wd=e=>typeof e=="object"&&e!=null&&e.nodeType===1,kd=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Xa=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return kd(r.overflowY,t)||kd(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},Ya=(e,t,r,n,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=r||i>=t&&s>=r?a-e-n:i>t&&s<r||a<e&&s>r?i-t+o:0,lw=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},qd=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:d}=t,f=typeof c=="function"?c:A=>A!==c;if(!Wd(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,h=[];let g=e;for(;Wd(g)&&f(g);){if(g=lw(g),g===v){h.push(g);break}g!=null&&g===document.body&&Xa(g)&&!Xa(document.documentElement)||g!=null&&Xa(g,d)&&h.push(g)}const p=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:S,width:C,top:$,right:x,bottom:w,left:E}=e.getBoundingClientRect(),{top:O,right:R,bottom:I,left:P}=(A=>{const _=window.getComputedStyle(A);return{top:parseFloat(_.scrollMarginTop)||0,right:parseFloat(_.scrollMarginRight)||0,bottom:parseFloat(_.scrollMarginBottom)||0,left:parseFloat(_.scrollMarginLeft)||0}})(e);let M=s==="start"||s==="nearest"?$-O:s==="end"?w+I:$+S/2-O+I,F=l==="center"?E+C/2-P+R:l==="end"?x+R:E-P;const N=[];for(let A=0;A<h.length;A++){const _=h[A],{height:D,width:W,top:G,right:L,bottom:B,left:q}=_.getBoundingClientRect();if(i==="if-needed"&&$>=0&&E>=0&&w<=m&&x<=p&&(_===v&&!Xa(_)||$>=G&&w<=B&&E>=q&&x<=L))return N;const H=getComputedStyle(_),z=parseInt(H.borderLeftWidth,10),V=parseInt(H.borderTopWidth,10),Z=parseInt(H.borderRightWidth,10),k=parseInt(H.borderBottomWidth,10);let J=0,ae=0;const Y="offsetWidth"in _?_.offsetWidth-_.clientWidth-z-Z:0,U="offsetHeight"in _?_.offsetHeight-_.clientHeight-V-k:0,re="offsetWidth"in _?_.offsetWidth===0?0:W/_.offsetWidth:0,se="offsetHeight"in _?_.offsetHeight===0?0:D/_.offsetHeight:0;if(v===_)J=s==="start"?M:s==="end"?M-m:s==="nearest"?Ya(y,y+m,m,V,k,y+M,y+M+S,S):M-m/2,ae=l==="start"?F:l==="center"?F-p/2:l==="end"?F-p:Ya(b,b+p,p,z,Z,b+F,b+F+C,C),J=Math.max(0,J+y),ae=Math.max(0,ae+b);else{J=s==="start"?M-G-V:s==="end"?M-B+k+U:s==="nearest"?Ya(G,B,D,V,k+U,M,M+S,S):M-(G+D/2)+U/2,ae=l==="start"?F-q-z:l==="center"?F-(q+W/2)+Y/2:l==="end"?F-L+Z+Y:Ya(q,L,W,z,Z+Y,F,F+C,C);const{scrollLeft:K,scrollTop:ee}=_;J=se===0?0:Math.max(0,Math.min(ee+J/se,_.scrollHeight-D/se+U)),ae=re===0?0:Math.max(0,Math.min(K+ae/re,_.scrollWidth-W/re+Y)),M+=ee-J,F+=K-ae}N.push({el:_,top:J,left:ae})}return N},cw=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function uw(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const r=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(qd(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of qd(e,cw(t))){const s=a-r.top+r.bottom,l=i-r.left+r.right;o.scroll({top:s,left:l,behavior:n})}}const fn=e=>{const[,,,,t]=Vr();return t?`${e}-css-var`:""};var _e={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},dw={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"},fw=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:dw}))},rs=u.forwardRef(fw);function Ud(...e){const t={};return e.forEach(r=>{r&&Object.keys(r).forEach(n=>{r[n]!==void 0&&(t[n]=r[n])})}),t}function UM(e){if(!e)return;const{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}}function Gd(e){const{closable:t,closeIcon:r}=e||{};return ne.useMemo(()=>{if(!t&&(t===!1||r===!1||r===null))return!1;if(t===void 0&&r===void 0)return null;let n={closeIcon:typeof r!="boolean"&&r!==null?r:void 0};return t&&typeof t=="object"&&(n=Object.assign(Object.assign({},n),t)),n},[t,r])}const mw={},GM=(e,t,r=mw)=>{const n=Gd(e),o=Gd(t),[a]=Oa("global",$n.global),i=typeof n!="boolean"?!!(n!=null&&n.disabled):!1,s=ne.useMemo(()=>Object.assign({closeIcon:ne.createElement(Tg,null)},r),[r]),l=ne.useMemo(()=>n===!1?!1:n?Ud(s,o,n):o===!1?!1:o?Ud(s,o):s.closable?s:!1,[n,o,s]);return ne.useMemo(()=>{var c,d;if(l===!1)return[!1,null,i,{}];const{closeIconRender:f}=s,{closeIcon:v}=l;let h=v;const g=En(l,!0);return h!=null&&(f&&(h=f(v)),h=ne.isValidElement(h)?ne.cloneElement(h,Object.assign(Object.assign(Object.assign({},h.props),{"aria-label":(d=(c=h.props)===null||c===void 0?void 0:c["aria-label"])!==null&&d!==void 0?d:a.close}),g)):ne.createElement("span",Object.assign({"aria-label":a.close},g),h)),[!0,h,i,g]},[i,a.close,l,s])},vw=()=>ne.useReducer(e=>e+1,0),Fg=ne.createContext(void 0),yn=100,gw=10,KM=yn*gw,_g={Modal:yn,Drawer:yn,Popover:yn,Popconfirm:yn,Tooltip:yn,Tour:yn,FloatButton:yn},hw={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function pw(e){return e in _g}const Ag=(e,t)=>{const[,r]=Vr(),n=ne.useContext(Fg),o=pw(e);let a;if(t!==void 0)a=[t,t];else{let i=n??0;o?i+=(n?0:r.zIndexPopupBase)+_g[e]:i+=hw[e],a=[n===void 0?t:i,i]}return a};function jg(e,t){this.v=e,this.k=t}function dr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}dr=function(i,s,l,c){function d(f,v){dr(i,f,function(h){return this._invoke(f,v,h)})}s?o?o(i,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[s]=l:(d("next",0),d("throw",1),d("return",2))},dr(e,t,r,n)}function Yc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(h,g,p,m){var b=g&&g.prototype instanceof s?g:s,y=Object.create(b.prototype);return dr(y,"_invoke",(function(S,C,$){var x,w,E,O=0,R=$||[],I=!1,P={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(N,A){return x=N,w=0,E=e,P.n=A,i}};function M(F,N){for(w=F,E=N,t=0;!I&&O&&!A&&t<R.length;t++){var A,_=R[t],D=P.p,W=_[2];F>3?(A=W===N)&&(E=_[(w=_[4])?5:(w=3,3)],_[4]=_[5]=e):_[0]<=D&&((A=F<2&&D<_[1])?(w=0,P.v=N,P.n=_[1]):D<W&&(A=F<3||_[0]>N||N>W)&&(_[4]=F,_[5]=N,P.n=W,w=0))}if(A||F>1)return i;throw I=!0,N}return function(F,N,A){if(O>1)throw TypeError("Generator is already running");for(I&&N===1&&M(N,A),w=N,E=A;(t=w<2?e:E)||!I;){x||(w?w<3?(w>1&&(P.n=-1),M(w,E)):P.n=E:P.v=E);try{if(O=2,x){if(w||(F="next"),t=x[F]){if(!(t=t.call(x,E)))throw TypeError("iterator result is not an object");if(!t.done)return t;E=t.value,w<2&&(w=0)}else w===1&&(t=x.return)&&t.call(x),w<2&&(E=TypeError("The iterator does not provide a '"+F+"' method"),w=1);x=e}else if((t=(I=P.n<0)?E:S.call(C,P))!==i)break}catch(_){x=e,w=1,E=_}finally{O=1}}return{value:t,done:I}}})(h,p,m),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(dr(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(d);function v(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,dr(h,o,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=c,dr(f,"constructor",c),dr(c,"constructor",l),l.displayName="GeneratorFunction",dr(c,o,"GeneratorFunction"),dr(f),dr(f,o,"Generator"),dr(f,n,function(){return this}),dr(f,"toString",function(){return"[object Generator]"}),(Yc=function(){return{w:a,m:v}})()}function Ni(e,t){function r(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof jg?t.resolve(c.v).then(function(d){r("next",d,i,s)},function(d){r("throw",d,i,s)}):t.resolve(c).then(function(d){l.value=d,i(l)},function(d){return r("throw",d,i,s)})}catch(d){s(d)}}var n;this.next||(dr(Ni.prototype),dr(Ni.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dr(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){r(o,i,l,c)})}return n=n?n.then(s,s):s()},!0)}function Dg(e,t,r,n,o){return new Ni(Yc().w(e,t,r,n),o||Promise)}function bw(e,t,r,n,o){var a=Dg(e,t,r,n,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function yw(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Kd(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Ue(e)+" is not iterable")}function vr(){var e=Yc(),t=e.m(vr),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,v){return l(c.a,o[f],v)},delegateYield:function(f,v,h){return s.resultName=v,l(c.d,Kd(f),h)},finish:function(f){return l(c.f,f)}},l=function(f,v,h){c.p=s.prev,c.n=s.next;try{return f(v,h)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(vr=function(){return{wrap:function(l,c,d,f){return e.w(a(l),c,d,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new jg(l,c)},AsyncIterator:Ni,async:function(l,c,d,f,v){return(n(c)?Dg:bw)(a(l),c,d,f,v)},keys:yw,values:Kd}})()}function Xd(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Zn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){Xd(a,n,o,i,s,"next",l)}function s(l){Xd(a,n,o,i,s,"throw",l)}i(void 0)})}}var Ia=j({},$p),Sw=Ia.version,Ws=Ia.render,Cw=Ia.unmountComponentAtNode,ns;try{var ww=Number((Sw||"").split(".")[0]);ww>=18&&(ns=Ia.createRoot)}catch{}function Yd(e){var t=Ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ue(t)==="object"&&(t.usingClientEntryPoint=e)}var Fi="__rc_react_root__";function xw(e,t){Yd(!0);var r=t[Fi]||ns(t);Yd(!1),r.render(e),t[Fi]=r}function $w(e,t){Ws==null||Ws(e,t)}function Ew(e,t){if(ns){xw(e,t);return}$w(e,t)}function Ow(e){return rc.apply(this,arguments)}function rc(){return rc=Zn(vr().mark(function e(t){return vr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Fi])===null||o===void 0||o.unmount(),delete t[Fi]}));case 1:case"end":return n.stop()}},e)})),rc.apply(this,arguments)}function Rw(e){Cw(e)}function Iw(e){return nc.apply(this,arguments)}function nc(){return nc=Zn(vr().mark(function e(t){return vr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(ns===void 0){n.next=2;break}return n.abrupt("return",Ow(t));case 2:Rw(t);case 3:case"end":return n.stop()}},e)})),nc.apply(this,arguments)}const Pw=(e,t)=>(Ew(e,t),()=>Iw(t));let Mw=Pw;function Tw(e){return Mw}const ks=()=>({height:0,opacity:0}),Qd=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Nw=e=>({height:e?e.offsetHeight:0}),qs=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Jd=(e=va)=>({motionName:`${e}-motion-collapse`,onAppearStart:ks,onEnterStart:ks,onAppearActive:Qd,onEnterActive:Qd,onLeaveStart:Nw,onLeaveActive:ks,onAppearEnd:qs,onEnterEnd:qs,onLeaveEnd:qs,motionDeadline:500}),Bg=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Tn(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const Qc=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),Fw=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},_w=ZC("Wave",Fw),Jc=`${va}-wave-target`;function Aw(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 jw(e){var t;const{borderTopColor:r,borderColor:n,backgroundColor:o}=getComputedStyle(e);return(t=[r,n,o].find(Aw))!==null&&t!==void 0?t:null}function Us(e){return Number.isNaN(e)?0:e}const Dw=e=>{const{className:t,target:r,component:n,registerUnmount:o}=e,a=u.useRef(null),i=u.useRef(null);u.useEffect(()=>{i.current=o()},[]);const[s,l]=u.useState(null),[c,d]=u.useState([]),[f,v]=u.useState(0),[h,g]=u.useState(0),[p,m]=u.useState(0),[b,y]=u.useState(0),[S,C]=u.useState(!1),$={left:f,top:h,width:p,height:b,borderRadius:c.map(E=>`${E}px`).join(" ")};s&&($["--wave-color"]=s);function x(){const E=getComputedStyle(r);l(jw(r));const O=E.position==="static",{borderLeftWidth:R,borderTopWidth:I}=E;v(O?r.offsetLeft:Us(-Number.parseFloat(R))),g(O?r.offsetTop:Us(-Number.parseFloat(I))),m(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:M,borderBottomLeftRadius:F,borderBottomRightRadius:N}=E;d([P,M,N,F].map(A=>Us(Number.parseFloat(A))))}if(u.useEffect(()=>{if(r){const E=mt(()=>{x(),C(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(x),O.observe(r)),()=>{mt.cancel(E),O==null||O.disconnect()}}},[r]),!S)return null;const w=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Jc));return u.createElement(Mn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,O)=>{var R,I;if(O.deadline||O.propertyName==="opacity"){const P=(R=a.current)===null||R===void 0?void 0:R.parentElement;(I=i.current)===null||I===void 0||I.call(i).then(()=>{P==null||P.remove()})}return!1}},({className:E},O)=>u.createElement("div",{ref:Hr(a,O),className:oe(t,E,{"wave-quick":w}),style:$}))},Bw=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=Tw();let i=null;function s(){return i}i=a(u.createElement(Dw,Object.assign({},t,{target:e,registerUnmount:s})),o)},Lw=(e,t,r)=>{const{wave:n}=u.useContext(wt),[,o,a]=Vr(),i=Bt(c=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Jc}`)||d,{showEffect:v}=n||{};(v||Bw)(f,{className:t,token:o,component:r,event:c,hashId:a})}),s=u.useRef(null);return c=>{mt.cancel(s.current),s.current=mt(()=>{i(c)})}},Zc=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=ir(wt),a=Fe(null),i=o("wave"),[,s]=_w(i),l=Lw(a,oe(i,s),n);if(ne.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||r)return;const f=v=>{!Qc(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!ne.isValidElement(t))return t??null;const c=Qn(t)?Hr($a(t),a):a;return Mo(t,{ref:c})},on=e=>{const t=ne.useContext(Kn);return ne.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},zw=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Hw=e=>{const{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Vw=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}}}},Ww=sr("Space",e=>{const t=Et(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Hw(t),Vw(t),zw(t)]},()=>({}),{resetStyle:!1});var Lg=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const os=u.createContext(null),zo=(e,t)=>{const r=u.useContext(os),n=u.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=r,s=o==="vertical"?"-vertical-":"-";return oe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},kw=e=>{const{children:t}=e;return u.createElement(os.Provider,{value:null},t)},qw=e=>{const{children:t}=e,r=Lg(e,["children"]);return u.createElement(os.Provider,{value:u.useMemo(()=>r,[r])},t)},XM=e=>{const{getPrefixCls:t,direction:r}=u.useContext(wt),{size:n,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,d=Lg(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=on(S=>n??S),v=t("space-compact",i),[h,g]=Ww(v),p=oe(v,g,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:a,[`${v}-vertical`]:o==="vertical"},s,l),m=u.useContext(os),b=Gn(c),y=u.useMemo(()=>b.map((S,C)=>{const $=(S==null?void 0:S.key)||`${v}-item-${C}`;return u.createElement(qw,{key:$,compactSize:f,compactDirection:o,isFirstItem:C===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:C===b.length-1&&(!m||(m==null?void 0:m.isLastItem))},S)}),[b,m,o,f,v]);return b.length===0?null:h(u.createElement("div",Object.assign({className:p},d),y))};var Uw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const zg=u.createContext(void 0),Gw=e=>{const{getPrefixCls:t,direction:r}=u.useContext(wt),{prefixCls:n,size:o,className:a}=e,i=Uw(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Vr(),c=u.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=oe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},a,l);return u.createElement(zg.Provider,{value:o},u.createElement("div",Object.assign({},i,{className:d})))},Zd=/^[\u4E00-\u9FA5]{2}$/,oc=Zd.test.bind(Zd);function YM(e){return e==="danger"?{danger:!0}:{type:e}}function ef(e){return typeof e=="string"}function Gs(e){return e==="text"||e==="link"}function Kw(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ef(e.type)&&oc(e.props.children)?Mo(e,{children:e.props.children.split("").join(r)}):ef(e)?oc(e)?ne.createElement("span",null,e.split("").join(r)):ne.createElement("span",null,e):Ng(e)?ne.createElement("span",null,e):e}function Xw(e,t){let r=!1;const n=[];return ne.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=i}),ne.Children.map(n,o=>Kw(o,t))}["default","primary","danger"].concat(ve(Xn));const ac=dn((e,t)=>{const{className:r,style:n,children:o,prefixCls:a}=e,i=oe(`${a}-icon`,r);return ne.createElement("span",{ref:t,className:i,style:n},o)}),tf=dn((e,t)=>{const{prefixCls:r,className:n,style:o,iconClassName:a}=e,i=oe(`${r}-loading-icon`,n);return ne.createElement(ac,{prefixCls:r,className:i,style:o,ref:t},ne.createElement(rs,{className:a}))}),Ks=()=>({width:0,opacity:0,transform:"scale(0)"}),Xs=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Yw=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:a,mount:i}=e,s=!!r;return n?ne.createElement(tf,{prefixCls:t,className:o,style:a}):ne.createElement(Mn,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Ks,onAppearActive:Xs,onEnterStart:Ks,onEnterActive:Xs,onLeaveStart:Xs,onLeaveActive:Ks},({className:l,style:c},d)=>{const f=Object.assign(Object.assign({},a),c);return ne.createElement(tf,{prefixCls:t,className:oe(o,l),style:f,ref:d})})},rf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Qw=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},rf(`${t}-primary`,o),rf(`${t}-danger`,a)]}};var Jw=["b"],Zw=["v"],Ys=function(t){return Math.round(Number(t||0))},ex=function(t){if(t instanceof bt)return t;if(t&&Ue(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=ft(r,Jw);return j(j({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ga=(function(e){On(r,e);var t=Rn(r);function r(n){return Vt(this,r),t.call(this,ex(n))}return Wt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Ys(o.s*100),i=Ys(o.b*100),s=Ys(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),d="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=ft(o,Zw);return j(j({},i),{},{b:a,a:this.a})}}]),r})(bt),tx=function(t){return t instanceof ga?t:new ga(t)};tx("#1677ff");const rx=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",nx=(e,t)=>e?rx(e,t):"";let ic=(function(){function e(t){Vt(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new ga(this.colors[0].color.metaColor)):this.metaColor=new ga(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Wt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return nx(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:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const a=r.colors[o];return n.percent===a.percent&&n.color.equals(a.color)}):this.toHexString()===r.toHexString()}}])})();const ox=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
161
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,o1="".concat(r1," ").concat(n1).split(/[\s\n]+/),a1="aria-",i1="data-";function Vd(e,t){return e.indexOf(t)===0}function En(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=j({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||Vd(o,a1))||r.data&&Vd(o,i1)||r.attr&&o1.includes(o))&&(n[o]=e[o])}),n}function Ng(e){return e&&ne.isValidElement(e)&&e.type===ne.Fragment}const s1=(e,t,r)=>ne.isValidElement(e)?ne.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Mo(e,t){return s1(e,e,t)}const Wd=e=>typeof e=="object"&&e!=null&&e.nodeType===1,kd=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Xa=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return kd(r.overflowY,t)||kd(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},Ya=(e,t,r,n,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=r||i>=t&&s>=r?a-e-n:i>t&&s<r||a<e&&s>r?i-t+o:0,l1=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},qd=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:d}=t,f=typeof c=="function"?c:A=>A!==c;if(!Wd(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,h=[];let g=e;for(;Wd(g)&&f(g);){if(g=l1(g),g===v){h.push(g);break}g!=null&&g===document.body&&Xa(g)&&!Xa(document.documentElement)||g!=null&&Xa(g,d)&&h.push(g)}const p=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:S,width:C,top:$,right:x,bottom:w,left:E}=e.getBoundingClientRect(),{top:O,right:R,bottom:I,left:P}=(A=>{const _=window.getComputedStyle(A);return{top:parseFloat(_.scrollMarginTop)||0,right:parseFloat(_.scrollMarginRight)||0,bottom:parseFloat(_.scrollMarginBottom)||0,left:parseFloat(_.scrollMarginLeft)||0}})(e);let M=s==="start"||s==="nearest"?$-O:s==="end"?w+I:$+S/2-O+I,F=l==="center"?E+C/2-P+R:l==="end"?x+R:E-P;const N=[];for(let A=0;A<h.length;A++){const _=h[A],{height:D,width:W,top:G,right:L,bottom:B,left:q}=_.getBoundingClientRect();if(i==="if-needed"&&$>=0&&E>=0&&w<=m&&x<=p&&(_===v&&!Xa(_)||$>=G&&w<=B&&E>=q&&x<=L))return N;const H=getComputedStyle(_),z=parseInt(H.borderLeftWidth,10),V=parseInt(H.borderTopWidth,10),Z=parseInt(H.borderRightWidth,10),k=parseInt(H.borderBottomWidth,10);let J=0,ae=0;const Y="offsetWidth"in _?_.offsetWidth-_.clientWidth-z-Z:0,U="offsetHeight"in _?_.offsetHeight-_.clientHeight-V-k:0,re="offsetWidth"in _?_.offsetWidth===0?0:W/_.offsetWidth:0,se="offsetHeight"in _?_.offsetHeight===0?0:D/_.offsetHeight:0;if(v===_)J=s==="start"?M:s==="end"?M-m:s==="nearest"?Ya(y,y+m,m,V,k,y+M,y+M+S,S):M-m/2,ae=l==="start"?F:l==="center"?F-p/2:l==="end"?F-p:Ya(b,b+p,p,z,Z,b+F,b+F+C,C),J=Math.max(0,J+y),ae=Math.max(0,ae+b);else{J=s==="start"?M-G-V:s==="end"?M-B+k+U:s==="nearest"?Ya(G,B,D,V,k+U,M,M+S,S):M-(G+D/2)+U/2,ae=l==="start"?F-q-z:l==="center"?F-(q+W/2)+Y/2:l==="end"?F-L+Z+Y:Ya(q,L,W,z,Z+Y,F,F+C,C);const{scrollLeft:K,scrollTop:ee}=_;J=se===0?0:Math.max(0,Math.min(ee+J/se,_.scrollHeight-D/se+U)),ae=re===0?0:Math.max(0,Math.min(K+ae/re,_.scrollWidth-W/re+Y)),M+=ee-J,F+=K-ae}N.push({el:_,top:J,left:ae})}return N},c1=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function u1(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const r=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(qd(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of qd(e,c1(t))){const s=a-r.top+r.bottom,l=i-r.left+r.right;o.scroll({top:s,left:l,behavior:n})}}const fn=e=>{const[,,,,t]=Vr();return t?`${e}-css-var`:""};var _e={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},d1={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"},f1=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:d1}))},rs=u.forwardRef(f1);function Ud(...e){const t={};return e.forEach(r=>{r&&Object.keys(r).forEach(n=>{r[n]!==void 0&&(t[n]=r[n])})}),t}function UM(e){if(!e)return;const{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}}function Gd(e){const{closable:t,closeIcon:r}=e||{};return ne.useMemo(()=>{if(!t&&(t===!1||r===!1||r===null))return!1;if(t===void 0&&r===void 0)return null;let n={closeIcon:typeof r!="boolean"&&r!==null?r:void 0};return t&&typeof t=="object"&&(n=Object.assign(Object.assign({},n),t)),n},[t,r])}const m1={},GM=(e,t,r=m1)=>{const n=Gd(e),o=Gd(t),[a]=Oa("global",$n.global),i=typeof n!="boolean"?!!(n!=null&&n.disabled):!1,s=ne.useMemo(()=>Object.assign({closeIcon:ne.createElement(Tg,null)},r),[r]),l=ne.useMemo(()=>n===!1?!1:n?Ud(s,o,n):o===!1?!1:o?Ud(s,o):s.closable?s:!1,[n,o,s]);return ne.useMemo(()=>{var c,d;if(l===!1)return[!1,null,i,{}];const{closeIconRender:f}=s,{closeIcon:v}=l;let h=v;const g=En(l,!0);return h!=null&&(f&&(h=f(v)),h=ne.isValidElement(h)?ne.cloneElement(h,Object.assign(Object.assign(Object.assign({},h.props),{"aria-label":(d=(c=h.props)===null||c===void 0?void 0:c["aria-label"])!==null&&d!==void 0?d:a.close}),g)):ne.createElement("span",Object.assign({"aria-label":a.close},g),h)),[!0,h,i,g]},[i,a.close,l,s])},v1=()=>ne.useReducer(e=>e+1,0),Fg=ne.createContext(void 0),yn=100,g1=10,KM=yn*g1,_g={Modal:yn,Drawer:yn,Popover:yn,Popconfirm:yn,Tooltip:yn,Tour:yn,FloatButton:yn},h1={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function p1(e){return e in _g}const Ag=(e,t)=>{const[,r]=Vr(),n=ne.useContext(Fg),o=p1(e);let a;if(t!==void 0)a=[t,t];else{let i=n??0;o?i+=(n?0:r.zIndexPopupBase)+_g[e]:i+=h1[e],a=[n===void 0?t:i,i]}return a};function jg(e,t){this.v=e,this.k=t}function dr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}dr=function(i,s,l,c){function d(f,v){dr(i,f,function(h){return this._invoke(f,v,h)})}s?o?o(i,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[s]=l:(d("next",0),d("throw",1),d("return",2))},dr(e,t,r,n)}function Yc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(h,g,p,m){var b=g&&g.prototype instanceof s?g:s,y=Object.create(b.prototype);return dr(y,"_invoke",(function(S,C,$){var x,w,E,O=0,R=$||[],I=!1,P={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(N,A){return x=N,w=0,E=e,P.n=A,i}};function M(F,N){for(w=F,E=N,t=0;!I&&O&&!A&&t<R.length;t++){var A,_=R[t],D=P.p,W=_[2];F>3?(A=W===N)&&(E=_[(w=_[4])?5:(w=3,3)],_[4]=_[5]=e):_[0]<=D&&((A=F<2&&D<_[1])?(w=0,P.v=N,P.n=_[1]):D<W&&(A=F<3||_[0]>N||N>W)&&(_[4]=F,_[5]=N,P.n=W,w=0))}if(A||F>1)return i;throw I=!0,N}return function(F,N,A){if(O>1)throw TypeError("Generator is already running");for(I&&N===1&&M(N,A),w=N,E=A;(t=w<2?e:E)||!I;){x||(w?w<3?(w>1&&(P.n=-1),M(w,E)):P.n=E:P.v=E);try{if(O=2,x){if(w||(F="next"),t=x[F]){if(!(t=t.call(x,E)))throw TypeError("iterator result is not an object");if(!t.done)return t;E=t.value,w<2&&(w=0)}else w===1&&(t=x.return)&&t.call(x),w<2&&(E=TypeError("The iterator does not provide a '"+F+"' method"),w=1);x=e}else if((t=(I=P.n<0)?E:S.call(C,P))!==i)break}catch(_){x=e,w=1,E=_}finally{O=1}}return{value:t,done:I}}})(h,p,m),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(dr(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(d);function v(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,dr(h,o,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=c,dr(f,"constructor",c),dr(c,"constructor",l),l.displayName="GeneratorFunction",dr(c,o,"GeneratorFunction"),dr(f),dr(f,o,"Generator"),dr(f,n,function(){return this}),dr(f,"toString",function(){return"[object Generator]"}),(Yc=function(){return{w:a,m:v}})()}function Ni(e,t){function r(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof jg?t.resolve(c.v).then(function(d){r("next",d,i,s)},function(d){r("throw",d,i,s)}):t.resolve(c).then(function(d){l.value=d,i(l)},function(d){return r("throw",d,i,s)})}catch(d){s(d)}}var n;this.next||(dr(Ni.prototype),dr(Ni.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dr(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){r(o,i,l,c)})}return n=n?n.then(s,s):s()},!0)}function Dg(e,t,r,n,o){return new Ni(Yc().w(e,t,r,n),o||Promise)}function b1(e,t,r,n,o){var a=Dg(e,t,r,n,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function y1(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Kd(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Ue(e)+" is not iterable")}function vr(){var e=Yc(),t=e.m(vr),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,v){return l(c.a,o[f],v)},delegateYield:function(f,v,h){return s.resultName=v,l(c.d,Kd(f),h)},finish:function(f){return l(c.f,f)}},l=function(f,v,h){c.p=s.prev,c.n=s.next;try{return f(v,h)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(vr=function(){return{wrap:function(l,c,d,f){return e.w(a(l),c,d,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new jg(l,c)},AsyncIterator:Ni,async:function(l,c,d,f,v){return(n(c)?Dg:b1)(a(l),c,d,f,v)},keys:y1,values:Kd}})()}function Xd(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Zn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){Xd(a,n,o,i,s,"next",l)}function s(l){Xd(a,n,o,i,s,"throw",l)}i(void 0)})}}var Ia=j({},$p),S1=Ia.version,Ws=Ia.render,C1=Ia.unmountComponentAtNode,ns;try{var w1=Number((S1||"").split(".")[0]);w1>=18&&(ns=Ia.createRoot)}catch{}function Yd(e){var t=Ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ue(t)==="object"&&(t.usingClientEntryPoint=e)}var Fi="__rc_react_root__";function x1(e,t){Yd(!0);var r=t[Fi]||ns(t);Yd(!1),r.render(e),t[Fi]=r}function $1(e,t){Ws==null||Ws(e,t)}function E1(e,t){if(ns){x1(e,t);return}$1(e,t)}function O1(e){return rc.apply(this,arguments)}function rc(){return rc=Zn(vr().mark(function e(t){return vr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Fi])===null||o===void 0||o.unmount(),delete t[Fi]}));case 1:case"end":return n.stop()}},e)})),rc.apply(this,arguments)}function R1(e){C1(e)}function I1(e){return nc.apply(this,arguments)}function nc(){return nc=Zn(vr().mark(function e(t){return vr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(ns===void 0){n.next=2;break}return n.abrupt("return",O1(t));case 2:R1(t);case 3:case"end":return n.stop()}},e)})),nc.apply(this,arguments)}const P1=(e,t)=>(E1(e,t),()=>I1(t));let M1=P1;function T1(e){return M1}const ks=()=>({height:0,opacity:0}),Qd=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},N1=e=>({height:e?e.offsetHeight:0}),qs=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Jd=(e=va)=>({motionName:`${e}-motion-collapse`,onAppearStart:ks,onEnterStart:ks,onAppearActive:Qd,onEnterActive:Qd,onLeaveStart:N1,onLeaveActive:ks,onAppearEnd:qs,onEnterEnd:qs,onLeaveEnd:qs,motionDeadline:500}),Bg=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Tn(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const Qc=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),F1=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},_1=ZC("Wave",F1),Jc=`${va}-wave-target`;function A1(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 j1(e){var t;const{borderTopColor:r,borderColor:n,backgroundColor:o}=getComputedStyle(e);return(t=[r,n,o].find(A1))!==null&&t!==void 0?t:null}function Us(e){return Number.isNaN(e)?0:e}const D1=e=>{const{className:t,target:r,component:n,registerUnmount:o}=e,a=u.useRef(null),i=u.useRef(null);u.useEffect(()=>{i.current=o()},[]);const[s,l]=u.useState(null),[c,d]=u.useState([]),[f,v]=u.useState(0),[h,g]=u.useState(0),[p,m]=u.useState(0),[b,y]=u.useState(0),[S,C]=u.useState(!1),$={left:f,top:h,width:p,height:b,borderRadius:c.map(E=>`${E}px`).join(" ")};s&&($["--wave-color"]=s);function x(){const E=getComputedStyle(r);l(j1(r));const O=E.position==="static",{borderLeftWidth:R,borderTopWidth:I}=E;v(O?r.offsetLeft:Us(-Number.parseFloat(R))),g(O?r.offsetTop:Us(-Number.parseFloat(I))),m(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:M,borderBottomLeftRadius:F,borderBottomRightRadius:N}=E;d([P,M,N,F].map(A=>Us(Number.parseFloat(A))))}if(u.useEffect(()=>{if(r){const E=mt(()=>{x(),C(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(x),O.observe(r)),()=>{mt.cancel(E),O==null||O.disconnect()}}},[r]),!S)return null;const w=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Jc));return u.createElement(Mn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,O)=>{var R,I;if(O.deadline||O.propertyName==="opacity"){const P=(R=a.current)===null||R===void 0?void 0:R.parentElement;(I=i.current)===null||I===void 0||I.call(i).then(()=>{P==null||P.remove()})}return!1}},({className:E},O)=>u.createElement("div",{ref:Hr(a,O),className:oe(t,E,{"wave-quick":w}),style:$}))},B1=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=T1();let i=null;function s(){return i}i=a(u.createElement(D1,Object.assign({},t,{target:e,registerUnmount:s})),o)},L1=(e,t,r)=>{const{wave:n}=u.useContext(wt),[,o,a]=Vr(),i=Bt(c=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Jc}`)||d,{showEffect:v}=n||{};(v||B1)(f,{className:t,token:o,component:r,event:c,hashId:a})}),s=u.useRef(null);return c=>{mt.cancel(s.current),s.current=mt(()=>{i(c)})}},Zc=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=ir(wt),a=Fe(null),i=o("wave"),[,s]=_1(i),l=L1(a,oe(i,s),n);if(ne.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||r)return;const f=v=>{!Qc(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!ne.isValidElement(t))return t??null;const c=Qn(t)?Hr($a(t),a):a;return Mo(t,{ref:c})},on=e=>{const t=ne.useContext(Kn);return ne.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},z1=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},H1=e=>{const{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},V1=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}}}},W1=sr("Space",e=>{const t=Et(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[H1(t),V1(t),z1(t)]},()=>({}),{resetStyle:!1});var Lg=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const os=u.createContext(null),zo=(e,t)=>{const r=u.useContext(os),n=u.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=r,s=o==="vertical"?"-vertical-":"-";return oe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},k1=e=>{const{children:t}=e;return u.createElement(os.Provider,{value:null},t)},q1=e=>{const{children:t}=e,r=Lg(e,["children"]);return u.createElement(os.Provider,{value:u.useMemo(()=>r,[r])},t)},XM=e=>{const{getPrefixCls:t,direction:r}=u.useContext(wt),{size:n,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,d=Lg(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=on(S=>n??S),v=t("space-compact",i),[h,g]=W1(v),p=oe(v,g,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:a,[`${v}-vertical`]:o==="vertical"},s,l),m=u.useContext(os),b=Gn(c),y=u.useMemo(()=>b.map((S,C)=>{const $=(S==null?void 0:S.key)||`${v}-item-${C}`;return u.createElement(q1,{key:$,compactSize:f,compactDirection:o,isFirstItem:C===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:C===b.length-1&&(!m||(m==null?void 0:m.isLastItem))},S)}),[b,m,o,f,v]);return b.length===0?null:h(u.createElement("div",Object.assign({className:p},d),y))};var U1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const zg=u.createContext(void 0),G1=e=>{const{getPrefixCls:t,direction:r}=u.useContext(wt),{prefixCls:n,size:o,className:a}=e,i=U1(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Vr(),c=u.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=oe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},a,l);return u.createElement(zg.Provider,{value:o},u.createElement("div",Object.assign({},i,{className:d})))},Zd=/^[\u4E00-\u9FA5]{2}$/,oc=Zd.test.bind(Zd);function YM(e){return e==="danger"?{danger:!0}:{type:e}}function ef(e){return typeof e=="string"}function Gs(e){return e==="text"||e==="link"}function K1(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ef(e.type)&&oc(e.props.children)?Mo(e,{children:e.props.children.split("").join(r)}):ef(e)?oc(e)?ne.createElement("span",null,e.split("").join(r)):ne.createElement("span",null,e):Ng(e)?ne.createElement("span",null,e):e}function X1(e,t){let r=!1;const n=[];return ne.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=i}),ne.Children.map(n,o=>K1(o,t))}["default","primary","danger"].concat(ve(Xn));const ac=dn((e,t)=>{const{className:r,style:n,children:o,prefixCls:a}=e,i=oe(`${a}-icon`,r);return ne.createElement("span",{ref:t,className:i,style:n},o)}),tf=dn((e,t)=>{const{prefixCls:r,className:n,style:o,iconClassName:a}=e,i=oe(`${r}-loading-icon`,n);return ne.createElement(ac,{prefixCls:r,className:i,style:o,ref:t},ne.createElement(rs,{className:a}))}),Ks=()=>({width:0,opacity:0,transform:"scale(0)"}),Xs=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Y1=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:a,mount:i}=e,s=!!r;return n?ne.createElement(tf,{prefixCls:t,className:o,style:a}):ne.createElement(Mn,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Ks,onAppearActive:Xs,onEnterStart:Ks,onEnterActive:Xs,onLeaveStart:Xs,onLeaveActive:Ks},({className:l,style:c},d)=>{const f=Object.assign(Object.assign({},a),c);return ne.createElement(tf,{prefixCls:t,className:oe(o,l),style:f,ref:d})})},rf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Q1=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},rf(`${t}-primary`,o),rf(`${t}-danger`,a)]}};var J1=["b"],Z1=["v"],Ys=function(t){return Math.round(Number(t||0))},ex=function(t){if(t instanceof bt)return t;if(t&&Ue(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=ft(r,J1);return j(j({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ga=(function(e){On(r,e);var t=Rn(r);function r(n){return Vt(this,r),t.call(this,ex(n))}return Wt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Ys(o.s*100),i=Ys(o.b*100),s=Ys(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),d="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=ft(o,Z1);return j(j({},i),{},{b:a,a:this.a})}}]),r})(bt),tx=function(t){return t instanceof ga?t:new ga(t)};tx("#1677ff");const rx=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",nx=(e,t)=>e?rx(e,t):"";let ic=(function(){function e(t){Vt(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new ga(this.colors[0].color.metaColor)):this.metaColor=new ga(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Wt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return nx(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:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const a=r.colors[o];return n.percent===a.percent&&n.color.equals(a.color)}):this.toHexString()===r.toHexString()}}])})();const ox=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
162
162
  opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
163
163
  opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ax=e=>({animationDuration:e,animationFillMode:"both"}),ix=e=>({animationDuration:e,animationFillMode:"both"}),as=(e,t,r,n,o=!1)=>{const a=o?"&":"";return{[`
164
164
  ${a}${e}-enter,
@@ -178,7 +178,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
178
178
  `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},eu=new xt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$x=new xt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),af=new xt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sf=new xt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ex=new xt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ox=new xt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Rx=new xt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Ix=new xt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Px=new xt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Mx=new xt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Tx=new xt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Nx=new xt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Fx={zoom:{inKeyframes:eu,outKeyframes:$x},"zoom-big":{inKeyframes:af,outKeyframes:sf},"zoom-big-fast":{inKeyframes:af,outKeyframes:sf},"zoom-left":{inKeyframes:Rx,outKeyframes:Ix},"zoom-right":{inKeyframes:Px,outKeyframes:Mx},"zoom-up":{inKeyframes:Ex,outKeyframes:Ox},"zoom-down":{inKeyframes:Tx,outKeyframes:Nx}},qg=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=Fx[t];return[as(n,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
179
179
  ${n}-enter,
180
180
  ${n}-appear
181
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_x=e=>e instanceof ic?e:new ic(e),Ax=(e,t)=>{const{r,g:n,b:o,a}=e.toRgb(),i=new ga(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:r*.299+n*.587+o*.114>192},Ug=e=>{const{paddingInline:t,onlyIconSize:r}=e;return Et(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},Gg=e=>{var t,r,n,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:hi(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:hi(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:hi(c),h=Ax(new ic(e.colorBgSolid),"#fff")?"#000":"#fff",g=Xn.reduce((p,m)=>Object.assign(Object.assign({},p),{[`${m}ShadowColor`]:`0 ${ie(e.controlOutlineWidth)} 0 ${Yo(e[`${m}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},g),{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:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*v)/2-e.lineWidth,0)})},jx=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ie(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`]:Ra(),"> a":{color:"currentColor"},"&:not(:disabled)":ts(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Kg=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),Dx=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Bx=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),is=(e,t,r,n,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},Kg(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Lx=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Bx(e))}),zx=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ss=(e,t,r,n)=>{const a=n&&["link","text"].includes(n)?zx:Lx;return Object.assign(Object.assign({},a(e)),Kg(e.componentCls,t,r))},ls=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},ss(e,n,o))}),cs=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},ss(e,n,o))}),us=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ds=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ss(e,r,n))}),nn=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},ss(e,n,o,r))}),Hx=e=>{const{componentCls:t}=e;return Xn.reduce((r,n)=>{const o=e[`${n}6`],a=e[`${n}1`],i=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},ls(e,e.colorTextLightSolid,o,{background:i},{background:c})),cs(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),us(e)),ds(e,a,{color:o,background:s},{color:o,background:l})),nn(e,o,"link",{color:i},{color:c})),nn(e,o,"text",{color:i,background:a},{color:c,background:l}))})},{})},Vx=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})),us(e)),ds(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),is(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),nn(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Wx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},cs(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),us(e)),ds(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),nn(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),nn(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),is(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),kx=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})),cs(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),us(e)),ds(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),nn(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),nn(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),is(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qx=e=>Object.assign(Object.assign({},nn(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),is(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Ux=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Vx(e),[`${t}-color-primary`]:Wx(e),[`${t}-color-dangerous`]:kx(e),[`${t}-color-link`]:qx(e)},Hx(e))},Gx=e=>Object.assign(Object.assign(Object.assign(Object.assign({},cs(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),nn(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})),nn(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),tu=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${ie(l)} ${ie(i)}`,borderRadius:a,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:Dx(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Kx=e=>{const t=Et(e,{fontSize:e.contentFontSize});return tu(t,e.componentCls)},Xx=e=>{const t=Et(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return tu(t,`${e.componentCls}-sm`)},Yx=e=>{const t=Et(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return tu(t,`${e.componentCls}-lg`)},Qx=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Jx=sr("Button",e=>{const t=Ug(e);return[jx(t),Kx(t),Xx(t),Yx(t),Qx(t),Ux(t),Gx(t),Qw(t)]},Gg,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Zx(e,t,r,n){const{focusElCls:o,focus:a,borderElCls:i}=r,s=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function e$(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function fs(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},Zx(e,n,t,r)),e$(r,n,t))}}function t$(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function r$(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 n$(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},t$(e,t,e.componentCls)),r$(e.componentCls,t))}}const o$=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,a=o(n).mul(-1).equal(),i=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},a$=mg(["Button","compact"],e=>{const t=Ug(e);return[fs(t),n$(t),o$(t)]},Gg);var i$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function s$(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 l$={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},c$=ne.forwardRef((e,t)=>{var r,n;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:l,danger:c=!1,shape:d,size:f,styles:v,disabled:h,className:g,rootClassName:p,children:m,icon:b,iconPosition:y="start",ghost:S=!1,block:C=!1,htmlType:$="button",classNames:x,style:w={},autoInsertSpace:E,autoFocus:O}=e,R=i$(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:P}=ne.useContext(wt),M=d||(P==null?void 0:P.shape)||"default",[F,N]=cn(()=>{if(i&&s)return[i,s];if(l||c){const We=l$[I]||[];return c?["danger",We[1]]:We}return P!=null&&P.color&&(P!=null&&P.variant)?[P.color,P.variant]:["default","outlined"]},[i,s,l,c,P==null?void 0:P.color,P==null?void 0:P.variant,I]),_=F==="danger"?"dangerous":F,{getPrefixCls:D,direction:W,autoInsertSpace:G,className:L,style:B,classNames:q,styles:H}=Pn("button"),z=(r=E??G)!==null&&r!==void 0?r:!0,V=D("btn",a),[Z,k,J]=Jx(V),ae=ir(Mr),Y=h??ae,U=ir(zg),re=cn(()=>s$(o),[o]),[se,K]=hr(re.loading),[ee,fe]=hr(!1),le=Fe(null),de=Do(t,le),we=wp.count(m)===1&&!b&&!Gs(N),be=Fe(!0);ne.useEffect(()=>(be.current=!1,()=>{be.current=!0}),[]),Ct(()=>{let We=null;re.delay>0?We=setTimeout(()=>{We=null,K(!0)},re.delay):K(re.loading);function et(){We&&(clearTimeout(We),We=null)}return et},[re.delay,re.loading]),tr(()=>{if(!le.current||!z)return;const We=le.current.textContent||"";we&&oc(We)?ee||fe(!0):ee&&fe(!1)}),tr(()=>{O&&le.current&&le.current.focus()},[]);const Se=ne.useCallback(We=>{var et;if(se||Y){We.preventDefault();return}(et=e.onClick)===null||et===void 0||et.call(e,("href"in e,We))},[e.onClick,se,Y]),{compactSize:me,compactItemClassnames:te}=zo(V,W),xe={large:"lg",small:"sm",middle:void 0},ze=on(We=>{var et,lt;return(lt=(et=f??me)!==null&&et!==void 0?et:U)!==null&&lt!==void 0?lt:We}),Ae=ze&&(n=xe[ze])!==null&&n!==void 0?n:"",Me=se?"loading":b,Ee=Tn(R,["navigate"]),He=oe(V,k,J,{[`${V}-${M}`]:M!=="default"&&M,[`${V}-${I}`]:I,[`${V}-dangerous`]:c,[`${V}-color-${_}`]:_,[`${V}-variant-${N}`]:N,[`${V}-${Ae}`]:Ae,[`${V}-icon-only`]:!m&&m!==0&&!!Me,[`${V}-background-ghost`]:S&&!Gs(N),[`${V}-loading`]:se,[`${V}-two-chinese-chars`]:ee&&z&&!se,[`${V}-block`]:C,[`${V}-rtl`]:W==="rtl",[`${V}-icon-end`]:y==="end"},te,g,p,L),Te=Object.assign(Object.assign({},B),w),Le=oe(x==null?void 0:x.icon,q.icon),Oe=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),H.icon||{}),Ce=b&&!se?ne.createElement(ac,{prefixCls:V,className:Le,style:Oe},b):o&&typeof o=="object"&&o.icon?ne.createElement(ac,{prefixCls:V,className:Le,style:Oe},o.icon):ne.createElement(Yw,{existIcon:!!b,prefixCls:V,loading:se,mount:be.current}),Ve=m||m===0?Xw(m,we&&z):null;if(Ee.href!==void 0)return Z(ne.createElement("a",Object.assign({},Ee,{className:oe(He,{[`${V}-disabled`]:Y}),href:Y?void 0:Ee.href,style:Te,onClick:Se,ref:de,tabIndex:Y?-1:0,"aria-disabled":Y}),Ce,Ve));let Ze=ne.createElement("button",Object.assign({},R,{type:$,className:He,style:Te,onClick:Se,disabled:Y,ref:de}),Ce,Ve,te&&ne.createElement(a$,{prefixCls:V}));return Gs(N)||(Ze=ne.createElement(Zc,{component:"Button",disabled:se},Ze)),Z(Ze)}),ru=c$;ru.Group=Gw;ru.__ANT_BUTTON=!0;var Xg=u.createContext(null),lf=[];function u$(e,t){var r=u.useState(function(){if(!xr())return null;var g=document.createElement("div");return g}),n=X(r,1),o=n[0],a=u.useRef(!1),i=u.useContext(Xg),s=u.useState(lf),l=X(s,2),c=l[0],d=l[1],f=i||(a.current?void 0:function(g){d(function(p){var m=[g].concat(ve(p));return m})});function v(){o.parentElement||document.body.appendChild(o),a.current=!0}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return Ct(function(){return e?i?i(v):v():h(),h},[e]),Ct(function(){c.length&&(c.forEach(function(g){return g()}),d(lf))},[c]),[o,f]}var Qs;function Yg(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";ln(`
181
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_x=e=>e instanceof ic?e:new ic(e),Ax=(e,t)=>{const{r,g:n,b:o,a}=e.toRgb(),i=new ga(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:r*.299+n*.587+o*.114>192},Ug=e=>{const{paddingInline:t,onlyIconSize:r}=e;return Et(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},Gg=e=>{var t,r,n,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:hi(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:hi(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:hi(c),h=Ax(new ic(e.colorBgSolid),"#fff")?"#000":"#fff",g=Xn.reduce((p,m)=>Object.assign(Object.assign({},p),{[`${m}ShadowColor`]:`0 ${ie(e.controlOutlineWidth)} 0 ${Yo(e[`${m}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},g),{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:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*v)/2-e.lineWidth,0)})},jx=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ie(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`]:Ra(),"> a":{color:"currentColor"},"&:not(:disabled)":ts(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Kg=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),Dx=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Bx=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),is=(e,t,r,n,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},Kg(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Lx=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Bx(e))}),zx=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ss=(e,t,r,n)=>{const a=n&&["link","text"].includes(n)?zx:Lx;return Object.assign(Object.assign({},a(e)),Kg(e.componentCls,t,r))},ls=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},ss(e,n,o))}),cs=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},ss(e,n,o))}),us=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ds=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ss(e,r,n))}),nn=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},ss(e,n,o,r))}),Hx=e=>{const{componentCls:t}=e;return Xn.reduce((r,n)=>{const o=e[`${n}6`],a=e[`${n}1`],i=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},ls(e,e.colorTextLightSolid,o,{background:i},{background:c})),cs(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),us(e)),ds(e,a,{color:o,background:s},{color:o,background:l})),nn(e,o,"link",{color:i},{color:c})),nn(e,o,"text",{color:i,background:a},{color:c,background:l}))})},{})},Vx=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})),us(e)),ds(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),is(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),nn(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Wx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},cs(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),us(e)),ds(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),nn(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),nn(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),is(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),kx=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})),cs(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),us(e)),ds(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),nn(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),nn(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),is(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qx=e=>Object.assign(Object.assign({},nn(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),is(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Ux=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Vx(e),[`${t}-color-primary`]:Wx(e),[`${t}-color-dangerous`]:kx(e),[`${t}-color-link`]:qx(e)},Hx(e))},Gx=e=>Object.assign(Object.assign(Object.assign(Object.assign({},cs(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),nn(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})),nn(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),tu=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${ie(l)} ${ie(i)}`,borderRadius:a,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:Dx(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Kx=e=>{const t=Et(e,{fontSize:e.contentFontSize});return tu(t,e.componentCls)},Xx=e=>{const t=Et(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return tu(t,`${e.componentCls}-sm`)},Yx=e=>{const t=Et(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return tu(t,`${e.componentCls}-lg`)},Qx=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Jx=sr("Button",e=>{const t=Ug(e);return[jx(t),Kx(t),Xx(t),Yx(t),Qx(t),Ux(t),Gx(t),Q1(t)]},Gg,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Zx(e,t,r,n){const{focusElCls:o,focus:a,borderElCls:i}=r,s=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function e$(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function fs(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},Zx(e,n,t,r)),e$(r,n,t))}}function t$(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function r$(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 n$(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},t$(e,t,e.componentCls)),r$(e.componentCls,t))}}const o$=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,a=o(n).mul(-1).equal(),i=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},a$=mg(["Button","compact"],e=>{const t=Ug(e);return[fs(t),n$(t),o$(t)]},Gg);var i$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function s$(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 l$={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},c$=ne.forwardRef((e,t)=>{var r,n;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:l,danger:c=!1,shape:d,size:f,styles:v,disabled:h,className:g,rootClassName:p,children:m,icon:b,iconPosition:y="start",ghost:S=!1,block:C=!1,htmlType:$="button",classNames:x,style:w={},autoInsertSpace:E,autoFocus:O}=e,R=i$(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:P}=ne.useContext(wt),M=d||(P==null?void 0:P.shape)||"default",[F,N]=cn(()=>{if(i&&s)return[i,s];if(l||c){const We=l$[I]||[];return c?["danger",We[1]]:We}return P!=null&&P.color&&(P!=null&&P.variant)?[P.color,P.variant]:["default","outlined"]},[i,s,l,c,P==null?void 0:P.color,P==null?void 0:P.variant,I]),_=F==="danger"?"dangerous":F,{getPrefixCls:D,direction:W,autoInsertSpace:G,className:L,style:B,classNames:q,styles:H}=Pn("button"),z=(r=E??G)!==null&&r!==void 0?r:!0,V=D("btn",a),[Z,k,J]=Jx(V),ae=ir(Mr),Y=h??ae,U=ir(zg),re=cn(()=>s$(o),[o]),[se,K]=hr(re.loading),[ee,fe]=hr(!1),le=Fe(null),de=Do(t,le),we=wp.count(m)===1&&!b&&!Gs(N),be=Fe(!0);ne.useEffect(()=>(be.current=!1,()=>{be.current=!0}),[]),Ct(()=>{let We=null;re.delay>0?We=setTimeout(()=>{We=null,K(!0)},re.delay):K(re.loading);function et(){We&&(clearTimeout(We),We=null)}return et},[re.delay,re.loading]),tr(()=>{if(!le.current||!z)return;const We=le.current.textContent||"";we&&oc(We)?ee||fe(!0):ee&&fe(!1)}),tr(()=>{O&&le.current&&le.current.focus()},[]);const Se=ne.useCallback(We=>{var et;if(se||Y){We.preventDefault();return}(et=e.onClick)===null||et===void 0||et.call(e,("href"in e,We))},[e.onClick,se,Y]),{compactSize:me,compactItemClassnames:te}=zo(V,W),xe={large:"lg",small:"sm",middle:void 0},ze=on(We=>{var et,lt;return(lt=(et=f??me)!==null&&et!==void 0?et:U)!==null&&lt!==void 0?lt:We}),Ae=ze&&(n=xe[ze])!==null&&n!==void 0?n:"",Me=se?"loading":b,Ee=Tn(R,["navigate"]),He=oe(V,k,J,{[`${V}-${M}`]:M!=="default"&&M,[`${V}-${I}`]:I,[`${V}-dangerous`]:c,[`${V}-color-${_}`]:_,[`${V}-variant-${N}`]:N,[`${V}-${Ae}`]:Ae,[`${V}-icon-only`]:!m&&m!==0&&!!Me,[`${V}-background-ghost`]:S&&!Gs(N),[`${V}-loading`]:se,[`${V}-two-chinese-chars`]:ee&&z&&!se,[`${V}-block`]:C,[`${V}-rtl`]:W==="rtl",[`${V}-icon-end`]:y==="end"},te,g,p,L),Te=Object.assign(Object.assign({},B),w),Le=oe(x==null?void 0:x.icon,q.icon),Oe=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),H.icon||{}),Ce=b&&!se?ne.createElement(ac,{prefixCls:V,className:Le,style:Oe},b):o&&typeof o=="object"&&o.icon?ne.createElement(ac,{prefixCls:V,className:Le,style:Oe},o.icon):ne.createElement(Y1,{existIcon:!!b,prefixCls:V,loading:se,mount:be.current}),Ve=m||m===0?X1(m,we&&z):null;if(Ee.href!==void 0)return Z(ne.createElement("a",Object.assign({},Ee,{className:oe(He,{[`${V}-disabled`]:Y}),href:Y?void 0:Ee.href,style:Te,onClick:Se,ref:de,tabIndex:Y?-1:0,"aria-disabled":Y}),Ce,Ve));let Ze=ne.createElement("button",Object.assign({},R,{type:$,className:He,style:Te,onClick:Se,disabled:Y,ref:de}),Ce,Ve,te&&ne.createElement(a$,{prefixCls:V}));return Gs(N)||(Ze=ne.createElement(Zc,{component:"Button",disabled:se},Ze)),Z(Ze)}),ru=c$;ru.Group=G1;ru.__ANT_BUTTON=!0;var Xg=u.createContext(null),lf=[];function u$(e,t){var r=u.useState(function(){if(!xr())return null;var g=document.createElement("div");return g}),n=X(r,1),o=n[0],a=u.useRef(!1),i=u.useContext(Xg),s=u.useState(lf),l=X(s,2),c=l[0],d=l[1],f=i||(a.current?void 0:function(g){d(function(p){var m=[g].concat(ve(p));return m})});function v(){o.parentElement||document.body.appendChild(o),a.current=!0}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return Ct(function(){return e?i?i(v):v():h(),h},[e]),Ct(function(){c.length&&(c.forEach(function(g){return g()}),d(lf))},[c]),[o,f]}var Qs;function Yg(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";ln(`
182
182
  #`.concat(t,`::-webkit-scrollbar {
183
183
  `).concat(d,`
184
184
  `).concat(f,`
@@ -186,7 +186,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
186
186
  html body {
187
187
  overflow-y: hidden;
188
188
  `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
189
- }`),o)}else ua(o);return function(){ua(o)}},[t,o])}var g$=!1;function h$(e){return g$}var uf=function(t){return t===!1?!1:!xr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},nu=u.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=u.useState(r),c=X(l,2),d=c[0],f=c[1],v=d||r;u.useEffect(function(){(i||r)&&f(r)},[r,i]);var h=u.useState(function(){return uf(o)}),g=X(h,2),p=g[0],m=g[1];u.useEffect(function(){var I=uf(o);m(I??null)});var b=u$(v&&!p),y=X(b,2),S=y[0],C=y[1],$=p??S;v$(n&&r&&xr()&&($===S||$===document.body));var x=null;if(s&&Qn(s)&&t){var w=s;x=w.ref}var E=Do(x,t);if(!v||!xr()||p===void 0)return null;var O=$===!1||h$(),R=s;return t&&(R=u.cloneElement(s,{ref:E})),u.createElement(Xg.Provider,{value:C},O?R:Ep(R,$))}),Qg=u.createContext({});function p$(){var e=j({},u);return e.useId}var df=0,ff=p$();const ou=ff?(function(t){var r=ff();return t||r}):(function(t){var r=u.useState("ssr-id"),n=X(r,2),o=n[0],a=n[1];return u.useEffect(function(){var i=df;df+=1,a("rc_unique_".concat(i))},[]),t||o});function mf(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function vf(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var o=e.document;r=o.documentElement[n],typeof r!="number"&&(r=o.body[n])}return r}function b$(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,o=n.defaultView||n.parentWindow;return r.left+=vf(o),r.top+=vf(o,!0),r}const y$=u.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var S$={width:0,height:0,overflow:"hidden",outline:"none"},C$={outline:"none"},w$=ne.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,d=e.onClose,f=e.children,v=e.bodyStyle,h=e.bodyProps,g=e.modalRender,p=e.onMouseDown,m=e.onMouseUp,b=e.holderRef,y=e.visible,S=e.forceRender,C=e.width,$=e.height,x=e.classNames,w=e.styles,E=ne.useContext(Qg),O=E.panel,R=Do(b,O),I=Fe(),P=Fe();ne.useImperativeHandle(t,function(){return{focus:function(){var B;(B=I.current)===null||B===void 0||B.focus({preventScroll:!0})},changeActive:function(B){var q=document,H=q.activeElement;B&&H===P.current?I.current.focus({preventScroll:!0}):!B&&H===I.current&&P.current.focus({preventScroll:!0})}}});var M={};C!==void 0&&(M.width=C),$!==void 0&&(M.height=$);var F=s?ne.createElement("div",{className:oe("".concat(r,"-footer"),x==null?void 0:x.footer),style:j({},w==null?void 0:w.footer)},s):null,N=a?ne.createElement("div",{className:oe("".concat(r,"-header"),x==null?void 0:x.header),style:j({},w==null?void 0:w.header)},ne.createElement("div",{className:"".concat(r,"-title"),id:i},a)):null,A=cn(function(){return Ue(l)==="object"&&l!==null?l:l?{closeIcon:c??ne.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),_=En(A,!0),D=Ue(l)==="object"&&l.disabled,W=l?ne.createElement("button",Be({type:"button",onClick:d,"aria-label":"Close"},_,{className:"".concat(r,"-close"),disabled:D}),A.closeIcon):null,G=ne.createElement("div",{className:oe("".concat(r,"-content"),x==null?void 0:x.content),style:w==null?void 0:w.content},W,N,ne.createElement("div",Be({className:oe("".concat(r,"-body"),x==null?void 0:x.body),style:j(j({},v),w==null?void 0:w.body)},h),f),F);return ne.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:R,style:j(j({},o),M),className:oe(r,n),onMouseDown:p,onMouseUp:m},ne.createElement("div",{ref:I,tabIndex:0,style:C$},ne.createElement(y$,{shouldUpdate:y||S},g?g(G):G)),ne.createElement("div",{tabIndex:0,ref:P,style:S$}))}),Jg=u.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,v=e.mousePosition,h=Fe(),g=u.useState(),p=X(g,2),m=p[0],b=p[1],y={};m&&(y.transformOrigin=m);function S(){var C=b$(h.current);b(v&&(v.x||v.y)?"".concat(v.x-C.left,"px ").concat(v.y-C.top,"px"):"")}return u.createElement(Mn,{visible:i,onVisibleChanged:f,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(C,$){var x=C.className,w=C.style;return u.createElement(w$,Be({},e,{ref:t,title:n,ariaId:d,prefixCls:r,holderRef:$,style:j(j(j({},w),o),y),className:oe(a,x)}))})});Jg.displayName="Content";var x$=function(t){var r=t.prefixCls,n=t.style,o=t.visible,a=t.maskProps,i=t.motionName,s=t.className;return u.createElement(Mn,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var d=l.className,f=l.style;return u.createElement("div",Be({ref:c,style:j(j({},f),n),className:oe("".concat(r,"-mask"),d,s)},a))})},$$=function(t){var r=t.prefixCls,n=r===void 0?"rc-dialog":r,o=t.zIndex,a=t.visible,i=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,d=c===void 0?!0:c,f=t.wrapStyle,v=t.wrapClassName,h=t.wrapProps,g=t.onClose,p=t.afterOpenChange,m=t.afterClose,b=t.transitionName,y=t.animation,S=t.closable,C=S===void 0?!0:S,$=t.mask,x=$===void 0?!0:$,w=t.maskTransitionName,E=t.maskAnimation,O=t.maskClosable,R=O===void 0?!0:O,I=t.maskStyle,P=t.maskProps,M=t.rootClassName,F=t.classNames,N=t.styles,A=Fe(),_=Fe(),D=Fe(),W=u.useState(i),G=X(W,2),L=G[0],B=G[1],q=ou();function H(){Il(_.current,document.activeElement)||(A.current=document.activeElement)}function z(){if(!Il(_.current,document.activeElement)){var K;(K=D.current)===null||K===void 0||K.focus()}}function V(K){if(K)z();else{if(B(!1),x&&A.current&&d){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}L&&(m==null||m())}p==null||p(K)}function Z(K){g==null||g(K)}var k=Fe(!1),J=Fe(),ae=function(){clearTimeout(J.current),k.current=!0},Y=function(){J.current=setTimeout(function(){k.current=!1})},U=null;R&&(U=function(ee){k.current?k.current=!1:_.current===ee.target&&Z(ee)});function re(K){if(l&&K.keyCode===_e.ESC){K.stopPropagation(),Z(K);return}i&&K.keyCode===_e.TAB&&D.current.changeActive(!K.shiftKey)}tr(function(){i&&(B(!0),H())},[i]),tr(function(){return function(){clearTimeout(J.current)}},[]);var se=j(j(j({zIndex:o},f),N==null?void 0:N.wrapper),{},{display:L?null:"none"});return u.createElement("div",Be({className:oe("".concat(n,"-root"),M)},En(t,{data:!0})),u.createElement(x$,{prefixCls:n,visible:x&&i,motionName:mf(n,w,E),style:j(j({zIndex:o},I),N==null?void 0:N.mask),maskProps:P,className:F==null?void 0:F.mask}),u.createElement("div",Be({tabIndex:-1,onKeyDown:re,className:oe("".concat(n,"-wrap"),v,F==null?void 0:F.wrapper),ref:_,onClick:U,style:se},h),u.createElement(Jg,Be({},t,{onMouseDown:ae,onMouseUp:Y,ref:D,closable:C,ariaId:q,prefixCls:n,visible:i&&L,onClose:Z,onVisibleChanged:V,motionName:mf(n,b,y)}))))},E$=function(t){var r=t.visible,n=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=u.useState(r),d=X(c,2),f=d[0],v=d[1],h=u.useMemo(function(){return{panel:l}},[l]);return u.useEffect(function(){r&&v(!0)},[r]),!o&&i&&!f?null:u.createElement(Qg.Provider,{value:h},u.createElement(nu,{open:r||o||f,autoDestroy:!1,getContainer:n,autoLock:r||f},u.createElement($$,Be({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),v(!1)}}))))};E$.displayName="Dialog";var zn="RC_FORM_INTERNAL_HOOKS",$t=function(){or(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Yn=u.createContext({getFieldValue:$t,getFieldsValue:$t,getFieldError:$t,getFieldWarning:$t,getFieldsError:$t,isFieldsTouched:$t,isFieldTouched:$t,isFieldValidating:$t,isFieldsValidating:$t,resetFields:$t,setFields:$t,setFieldValue:$t,setFieldsValue:$t,validateFields:$t,submit:$t,getInternalHooks:function(){return $t(),{dispatch:$t,initEntityValue:$t,registerField:$t,useSubscribe:$t,setInitialValues:$t,destroyForm:$t,setCallbacks:$t,registerWatch:$t,getFields:$t,setValidateMessages:$t,setPreserve:$t,getInitialValue:$t}}}),ha=u.createContext(null);function sc(e){return e==null?[]:Array.isArray(e)?e:[e]}function O$(e){return e&&!!e._init}function lc(){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 cc=lc();function R$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function I$(e,t,r){if(Dc())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&sa(o,r.prototype),o}function uc(e){var t=typeof Map=="function"?new Map:void 0;return uc=function(n){if(n===null||!R$(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return I$(n,arguments,la(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),sa(o,n)},uc(e)}var P$=/%[sdj%]/g,M$=function(){};function dc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Pr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(P$,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function T$(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Yt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||T$(t)&&typeof e=="string"&&!e)}function N$(e,t,r){var n=[],o=0,a=e.length;function i(s){n.push.apply(n,ve(s||[])),o++,o===a&&r(n)}e.forEach(function(s){t(s,i)})}function gf(e,t,r){var n=0,o=e.length;function a(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<o?t(e[s],a):r([])}a([])}function F$(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ve(e[r]||[]))}),t}var hf=(function(e){On(r,e);var t=Rn(r);function r(n,o){var a;return Vt(this,r),a=t.call(this,"Async Validation Error"),T(at(a),"errors",void 0),T(at(a),"fields",void 0),a.errors=n,a.fields=o,a}return Wt(r)})(uc(Error));function _$(e,t,r,n,o){if(t.first){var a=new Promise(function(v,h){var g=function(b){return n(b),b.length?h(new hf(b,dc(b))):v(o)},p=F$(e);gf(p,r,g)});return a.catch(function(v){return v}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,d=[],f=new Promise(function(v,h){var g=function(m){if(d.push.apply(d,m),c++,c===l)return n(d),d.length?h(new hf(d,dc(d))):v(o)};s.length||(n(d),v(o)),s.forEach(function(p){var m=e[p];i.indexOf(p)!==-1?gf(m,r,g):N$(m,r,g)})});return f.catch(function(v){return v}),f}function A$(e){return!!(e&&e.message!==void 0)}function j$(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function pf(e,t){return function(r){var n;return e.fullFields?n=j$(t,e.fullFields):n=t[r.field||e.fullField],A$(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function bf(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ue(n)==="object"&&Ue(e[r])==="object"?e[r]=j(j({},e[r]),n):e[r]=n}}return e}var oo="enum",D$=function(t,r,n,o,a){t[oo]=Array.isArray(t[oo])?t[oo]:[],t[oo].indexOf(r)===-1&&o.push(Pr(a.messages[oo],t.fullField,t[oo].join(", ")))},B$=function(t,r,n,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Pr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||o.push(Pr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},L$=function(t,r,n,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",h=typeof r=="string",g=Array.isArray(r);if(v?f="number":h?f="string":g&&(f="array"),!f)return!1;g&&(d=r.length),h&&(d=r.replace(c,"_").length),i?d!==t.len&&o.push(Pr(a.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?o.push(Pr(a.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?o.push(Pr(a.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&o.push(Pr(a.messages[f].range,t.fullField,t.min,t.max))},Zg=function(t,r,n,o,a,i){t.required&&(!n.hasOwnProperty(t.field)||Yt(r,i||t.type))&&o.push(Pr(a.messages.required,t.fullField))},Qa;const z$=(function(){if(Qa)return Qa;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(r).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function($){return $&&$.exact?l:new RegExp("".concat(t($)).concat(r).concat(t($)),"g")},d.v6=function($){return $&&$.exact?c:new RegExp("".concat(t($)).concat(i).concat(t($)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",h=d.v4().source,g=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(h,"|").concat(g,"|").concat(p).concat(m).concat(b,")").concat(y).concat(S);return Qa=new RegExp("(?:^".concat(C,"$)"),"i"),Qa});var yf={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 Ue(t)==="object"&&!Qo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(yf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(z$())},hex:function(t){return typeof t=="string"&&!!t.match(yf.hex)}},H$=function(t,r,n,o,a){if(t.required&&r===void 0){Zg(t,r,n,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Qo[s](r)||o.push(Pr(a.messages.types[s],t.fullField,t.type)):s&&Ue(r)!==t.type&&o.push(Pr(a.messages.types[s],t.fullField,t.type))},V$=function(t,r,n,o,a){(/^\s+$/.test(r)||r==="")&&o.push(Pr(a.messages.whitespace,t.fullField))};const st={required:Zg,whitespace:V$,type:H$,range:L$,enum:D$,pattern:B$};var W$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a)}n(i)},k$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();st.required(t,r,o,i,a,"array"),r!=null&&(st.type(t,r,o,i,a),st.range(t,r,o,i,a))}n(i)},q$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&st.type(t,r,o,i,a)}n(i)},U$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r,"date")&&!t.required)return n();if(st.required(t,r,o,i,a),!Yt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),st.type(t,l,o,i,a),l&&st.range(t,l.getTime(),o,i,a)}}n(i)},G$="enum",K$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&st[G$](t,r,o,i,a)}n(i)},X$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&(st.type(t,r,o,i,a),st.range(t,r,o,i,a))}n(i)},Y$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&(st.type(t,r,o,i,a),st.range(t,r,o,i,a))}n(i)},Q$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&st.type(t,r,o,i,a)}n(i)},J$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&(st.type(t,r,o,i,a),st.range(t,r,o,i,a))}n(i)},Z$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&st.type(t,r,o,i,a)}n(i)},eE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r,"string")&&!t.required)return n();st.required(t,r,o,i,a),Yt(r,"string")||st.pattern(t,r,o,i,a)}n(i)},tE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),Yt(r)||st.type(t,r,o,i,a)}n(i)},rE=function(t,r,n,o,a){var i=[],s=Array.isArray(r)?"array":Ue(r);st.required(t,r,o,i,a,s),n(i)},nE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r,"string")&&!t.required)return n();st.required(t,r,o,i,a,"string"),Yt(r,"string")||(st.type(t,r,o,i,a),st.range(t,r,o,i,a),st.pattern(t,r,o,i,a),t.whitespace===!0&&st.whitespace(t,r,o,i,a))}n(i)},Js=function(t,r,n,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Yt(r,i)&&!t.required)return n();st.required(t,r,o,s,a,i),Yt(r,i)||st.type(t,r,o,s,a)}n(s)};const ra={string:nE,method:Q$,number:J$,boolean:q$,regexp:tE,integer:Y$,float:X$,array:k$,object:Z$,enum:K$,pattern:eE,date:U$,url:Js,hex:Js,email:Js,required:rE,any:W$};var Pa=(function(){function e(t){Vt(this,e),T(this,"rules",null),T(this,"_messages",cc),this.define(t)}return Wt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ue(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];n.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(r){return r&&(this._messages=bf(lc(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=o,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(g){var p=[],m={};function b(S){if(Array.isArray(S)){var C;p=(C=p).concat.apply(C,ve(S))}else p.push(S)}for(var y=0;y<g.length;y++)b(g[y]);p.length?(m=dc(p),l(p,m)):l(null,i)}if(s.messages){var d=this.messages();d===cc&&(d=lc()),bf(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(g){var p=n.rules[g],m=i[g];p.forEach(function(b){var y=b;typeof y.transform=="function"&&(i===r&&(i=j({},i)),m=i[g]=y.transform(m),m!=null&&(y.type=y.type||(Array.isArray(m)?"array":Ue(m)))),typeof y=="function"?y={validator:y}:y=j({},y),y.validator=n.getValidationMethod(y),y.validator&&(y.field=g,y.fullField=y.fullField||g,y.type=n.getType(y),f[g]=f[g]||[],f[g].push({rule:y,value:m,source:i,field:g}))})});var h={};return _$(f,s,function(g,p){var m=g.rule,b=(m.type==="object"||m.type==="array")&&(Ue(m.fields)==="object"||Ue(m.defaultField)==="object");b=b&&(m.required||!m.required&&g.value),m.field=g.field;function y(w,E){return j(j({},E),{},{fullField:"".concat(m.fullField,".").concat(w),fullFields:m.fullFields?[].concat(ve(m.fullFields),[w]):[w]})}function S(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(w)?w:[w];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&m.message!==void 0&&(E=[].concat(m.message));var O=E.map(pf(m,i));if(s.first&&O.length)return h[m.field]=1,p(O);if(!b)p(O);else{if(m.required&&!g.value)return m.message!==void 0?O=[].concat(m.message).map(pf(m,i)):s.error&&(O=[s.error(m,Pr(s.messages.required,m.field))]),p(O);var R={};m.defaultField&&Object.keys(g.value).map(function(M){R[M]=m.defaultField}),R=j(j({},R),g.rule.fields);var I={};Object.keys(R).forEach(function(M){var F=R[M],N=Array.isArray(F)?F:[F];I[M]=N.map(y.bind(null,M))});var P=new e(I);P.messages(s.messages),g.rule.options&&(g.rule.options.messages=s.messages,g.rule.options.error=s.error),P.validate(g.value,g.rule.options||s,function(M){var F=[];O&&O.length&&F.push.apply(F,ve(O)),M&&M.length&&F.push.apply(F,ve(M)),p(F.length?F:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,g.value,S,g.source,s);else if(m.validator){try{C=m.validator(m,g.value,S,g.source,s)}catch(w){var $,x;($=(x=console).error)===null||$===void 0||$.call(x,w),s.suppressValidatorError||setTimeout(function(){throw w},0),S(w.message)}C===!0?S():C===!1?S(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(w){return S(w)})},function(g){c(g)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ra.hasOwnProperty(r.type))throw new Error(Pr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?ra.required:ra[this.getType(r)]||void 0}}]),e})();T(Pa,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");ra[t]=r});T(Pa,"warning",M$);T(Pa,"messages",cc);T(Pa,"validators",ra);var Or="'${name}' is not a valid ${type}",eh={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:Or,method:Or,array:Or,object:Or,number:Or,date:Or,boolean:Or,integer:Or,float:Or,regexp:Or,email:Or,url:Or,hex:Or},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}"}},Sf=Pa;function oE(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Cf="CODE_LOGIC_ERROR";function fc(e,t,r,n,o){return mc.apply(this,arguments)}function mc(){return mc=Zn(vr().mark(function e(t,r,n,o,a){var i,s,l,c,d,f,v,h,g;return vr().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=j({},n),delete i.ruleIndex,Sf.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Cf)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Sf(T({},t,[i])),d=mo(eh,o.validateMessages),c.messages(d),f=[],m.prev=10,m.next=13,Promise.resolve(c.validate(T({},t,r),j({},o)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(b,y){var S=b.message,C=S===Cf?d.default:S;return u.isValidElement(C)?u.cloneElement(C,{key:"error_".concat(y)}):C}));case 18:if(!(!f.length&&l&&Array.isArray(r)&&r.length>0)){m.next=23;break}return m.next=21,Promise.all(r.map(function(b,y){return fc("".concat(t,".").concat(y),b,l,o,a)}));case 21:return v=m.sent,m.abrupt("return",v.reduce(function(b,y){return[].concat(ve(b),ve(y))},[]));case 23:return h=j(j({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),g=f.map(function(b){return typeof b=="string"?oE(b,h):b}),m.abrupt("return",g);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),mc.apply(this,arguments)}function aE(e,t,r,n,o,a){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,h=j(j({},d),{},{ruleIndex:f});return v&&(h.validator=function(g,p,m){var b=!1,y=function(){for(var $=arguments.length,x=new Array($),w=0;w<$;w++)x[w]=arguments[w];Promise.resolve().then(function(){or(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,x)})},S=v(g,p,y);b=S&&typeof S.then=="function"&&typeof S.catch=="function",or(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(function(){m()}).catch(function(C){m(C||" ")})}),h}).sort(function(d,f){var v=d.warningOnly,h=d.ruleIndex,g=f.warningOnly,p=f.ruleIndex;return!!v==!!g?h-p:v?1:-1}),l;if(o===!0)l=new Promise((function(){var d=Zn(vr().mark(function f(v,h){var g,p,m;return vr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:g=0;case 1:if(!(g<s.length)){y.next=12;break}return p=s[g],y.next=5,fc(i,t,p,n,a);case 5:if(m=y.sent,!m.length){y.next=9;break}return h([{errors:m,rule:p}]),y.abrupt("return");case 9:g+=1,y.next=1;break;case 12:v([]);case 13:case"end":return y.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}})());else{var c=s.map(function(d){return fc(i,t,d,n,a).then(function(f){return{errors:f,rule:d}})});l=(o?sE(c):iE(c)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function iE(e){return vc.apply(this,arguments)}function vc(){return vc=Zn(vr().mark(function e(t){return vr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,ve(o));return i}));case 1:case"end":return n.stop()}},e)})),vc.apply(this,arguments)}function sE(e){return gc.apply(this,arguments)}function gc(){return gc=Zn(vr().mark(function e(t){var r;return vr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),r+=1,r===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),gc.apply(this,arguments)}function Ht(e){return sc(e)}function wf(e,t){var r={};return t.forEach(function(n){var o=Dr(e,n);r=jr(r,n,o)}),r}function bo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return th(t,n,r)})}function th(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function lE(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ue(e)!=="object"||Ue(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ve(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function cE(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ue(t.target)==="object"&&e in t.target?t.target[e]:t}function xf(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],a=t-r;return a>0?[].concat(ve(e.slice(0,r)),[o],ve(e.slice(r,t)),ve(e.slice(t+1,n))):a<0?[].concat(ve(e.slice(0,t)),ve(e.slice(t+1,r+1)),[o],ve(e.slice(r+1,n))):e}var uE=["name"],_r=[];function Zs(e,t,r,n,o,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==o}var au=(function(e){On(r,e);var t=Rn(r);function r(n){var o;if(Vt(this,r),o=t.call(this,n),T(at(o),"state",{resetCount:0}),T(at(o),"cancelRegisterFunc",null),T(at(o),"mounted",!1),T(at(o),"touched",!1),T(at(o),"dirty",!1),T(at(o),"validatePromise",void 0),T(at(o),"prevValidating",void 0),T(at(o),"errors",_r),T(at(o),"warnings",_r),T(at(o),"cancelRegister",function(){var l=o.props,c=l.preserve,d=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,Ht(f)),o.cancelRegisterFunc=null}),T(at(o),"getNamePath",function(){var l=o.props,c=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(ve(v),ve(c)):[]}),T(at(o),"getRules",function(){var l=o.props,c=l.rules,d=c===void 0?[]:c,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),T(at(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),T(at(o),"metaCache",null),T(at(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var d=j(j({},o.getMeta()),{},{destroy:l});Ri(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),T(at(o),"onStoreChange",function(l,c,d){var f=o.props,v=f.shouldUpdate,h=f.dependencies,g=h===void 0?[]:h,p=f.onReset,m=d.store,b=o.getNamePath(),y=o.getValue(l),S=o.getValue(m),C=c&&bo(c,b);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ri(y,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=_r,o.warnings=_r,o.triggerMetaEvent()),d.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=_r,o.warnings=_r,o.triggerMetaEvent(),p==null||p(),o.refresh();return}break;case"remove":{if(v&&Zs(v,l,m,y,S,d)){o.reRender();return}break}case"setField":{var $=d.data;if(C){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||_r),"warnings"in $&&(o.warnings=$.warnings||_r),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&bo(c,b,!0)){o.reRender();return}if(v&&!b.length&&Zs(v,l,m,y,S,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=g.map(Ht);if(x.some(function(w){return bo(d.relatedFields,w)})){o.reRender();return}break}default:if(C||(!g.length||b.length||v)&&Zs(v,l,m,y,S,d)){o.reRender();return}break}v===!0&&o.reRender()}),T(at(o),"validateRules",function(l){var c=o.getNamePath(),d=o.getValue(),f=l||{},v=f.triggerName,h=f.validateOnly,g=h===void 0?!1:h,p=Promise.resolve().then(Zn(vr().mark(function m(){var b,y,S,C,$,x,w;return vr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,C=b.messageVariables,$=b.validateDebounce,x=o.getRules(),v&&(x=x.filter(function(R){return R}).filter(function(R){var I=R.validateTrigger;if(!I)return!0;var P=sc(I);return P.includes(v)})),!($&&v)){O.next=10;break}return O.next=8,new Promise(function(R){setTimeout(R,$)});case 8:if(o.validatePromise===p){O.next=10;break}return O.abrupt("return",[]);case 10:return w=aE(c,d,x,l,S,C),w.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_r;if(o.validatePromise===p){var I;o.validatePromise=null;var P=[],M=[];(I=R.forEach)===null||I===void 0||I.call(R,function(F){var N=F.rule.warningOnly,A=F.errors,_=A===void 0?_r:A;N?M.push.apply(M,ve(_)):P.push.apply(P,ve(_))}),o.errors=P,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",w);case 13:case"end":return O.stop()}},m)})));return g||(o.validatePromise=p,o.dirty=!0,o.errors=_r,o.warnings=_r,o.triggerMetaEvent(),o.reRender()),p}),T(at(o),"isFieldValidating",function(){return!!o.validatePromise}),T(at(o),"isFieldTouched",function(){return o.touched}),T(at(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(zn),d=c.getInitialValue;return d(o.getNamePath())!==void 0}),T(at(o),"getErrors",function(){return o.errors}),T(at(o),"getWarnings",function(){return o.warnings}),T(at(o),"isListField",function(){return o.props.isListField}),T(at(o),"isList",function(){return o.props.isList}),T(at(o),"isPreserve",function(){return o.props.preserve}),T(at(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),T(at(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return j(j({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=Gn(l);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),T(at(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Dr(l||c(!0),d)}),T(at(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,v=c.validateTrigger,h=c.getValueFromEvent,g=c.normalize,p=c.valuePropName,m=c.getValueProps,b=c.fieldContext,y=v!==void 0?v:b.validateTrigger,S=o.getNamePath(),C=b.getInternalHooks,$=b.getFieldsValue,x=C(zn),w=x.dispatch,E=o.getValue(),O=m||function(F){return T({},p,F)},R=l[f],I=d!==void 0?O(E):{},P=j(j({},l),I);P[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,N=arguments.length,A=new Array(N),_=0;_<N;_++)A[_]=arguments[_];h?F=h.apply(void 0,A):F=cE.apply(void 0,[p].concat(A)),g&&(F=g(F,E,$(!0))),F!==E&&w({type:"updateValue",namePath:S,value:F}),R&&R.apply(void 0,A)};var M=sc(y||[]);return M.forEach(function(F){var N=P[F];P[F]=function(){N&&N.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&w({type:"validateField",namePath:S,triggerName:F})}}),P}),n.fieldContext){var a=n.fieldContext.getInternalHooks,i=a(zn),s=i.initEntityValue;s(at(o))}return o}return Wt(r,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(zn),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:u.isValidElement(s)?c=u.cloneElement(s,this.getControlled(s.props)):(or(!s,"`children` of Field is not validate ReactElement."),c=s),u.createElement(u.Fragment,{key:o},c)}}]),r})(u.Component);T(au,"contextType",Yn);T(au,"defaultProps",{trigger:"onChange",valuePropName:"value"});function iu(e){var t,r=e.name,n=ft(e,uE),o=u.useContext(Yn),a=u.useContext(ha),i=r!==void 0?Ht(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),u.createElement(au,Be({key:l,name:i,isListField:s},n,{fieldContext:o}))}function rh(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=u.useContext(Yn),l=u.useContext(ha),c=u.useRef({keys:[],id:0}),d=c.current,f=u.useMemo(function(){var p=Ht(s.prefixName)||[];return[].concat(ve(p),ve(Ht(t)))},[s.prefixName,t]),v=u.useMemo(function(){return j(j({},s),{},{prefixName:f})},[s,f]),h=u.useMemo(function(){return{getKey:function(m){var b=f.length,y=m[b];return[d.keys[y],m.slice(b+1)]}}},[f]);if(typeof n!="function")return or(!1,"Form.List only accepts function as children."),null;var g=function(m,b,y){var S=y.source;return S==="internal"?!1:m!==b};return u.createElement(ha.Provider,{value:h},u.createElement(Yn.Provider,{value:v},u.createElement(iu,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:i??!!l},function(p,m){var b=p.value,y=b===void 0?[]:b,S=p.onChange,C=s.getFieldValue,$=function(){var O=C(f||[]);return O||[]},x={add:function(O,R){var I=$();R>=0&&R<=I.length?(d.keys=[].concat(ve(d.keys.slice(0,R)),[d.id],ve(d.keys.slice(R))),S([].concat(ve(I.slice(0,R)),[O],ve(I.slice(R))))):(d.keys=[].concat(ve(d.keys),[d.id]),S([].concat(ve(I),[O]))),d.id+=1},remove:function(O){var R=$(),I=new Set(Array.isArray(O)?O:[O]);I.size<=0||(d.keys=d.keys.filter(function(P,M){return!I.has(M)}),S(R.filter(function(P,M){return!I.has(M)})))},move:function(O,R){if(O!==R){var I=$();O<0||O>=I.length||R<0||R>=I.length||(d.keys=xf(d.keys,O,R),S(xf(I,O,R)))}}},w=y||[];return Array.isArray(w)||(w=[]),n(w.map(function(E,O){var R=d.keys[O];return R===void 0&&(d.keys[O]=d.id,R=d.keys[O],d.id+=1),{name:O,key:R,isListField:!0}}),x,m)})))}function dE(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&a(n),o(n))})})}):Promise.resolve([])}var nh="__@field_split__";function el(e){return e.map(function(t){return"".concat(Ue(t),":").concat(t)}).join(nh)}var ao=(function(){function e(){Vt(this,e),T(this,"kvs",new Map)}return Wt(e,[{key:"set",value:function(r,n){this.kvs.set(el(r),n)}},{key:"get",value:function(r){return this.kvs.get(el(r))}},{key:"update",value:function(r,n){var o=this.get(r),a=n(o);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(el(r))}},{key:"map",value:function(r){return ve(this.kvs.entries()).map(function(n){var o=X(n,2),a=o[0],i=o[1],s=a.split(nh);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),d=X(c,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,a=n.value;return r[o.join(".")]=a,null}),r}}]),e})(),fE=["name"],mE=Wt(function e(t){var r=this;Vt(this,e),T(this,"formHooked",!1),T(this,"forceRootUpdate",void 0),T(this,"subscribable",!0),T(this,"store",{}),T(this,"fieldEntities",[]),T(this,"initialValues",{}),T(this,"callbacks",{}),T(this,"validateMessages",null),T(this,"preserve",null),T(this,"lastValidatePromise",null),T(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),T(this,"getInternalHooks",function(n){return n===zn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(or(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),T(this,"useSubscribe",function(n){r.subscribable=n}),T(this,"prevWithoutPreserves",null),T(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var a,i=mo(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=jr(i,l,Dr(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),T(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new ao;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),T(this,"getInitialValue",function(n){var o=Dr(r.initialValues,n);return n.length?mo(o):o}),T(this,"setCallbacks",function(n){r.callbacks=n}),T(this,"setValidateMessages",function(n){r.validateMessages=n}),T(this,"setPreserve",function(n){r.preserve=n}),T(this,"watchList",[]),T(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),T(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(o,a,n)})}}),T(this,"timeoutId",null),T(this,"warningUnhooked",function(){}),T(this,"updateStore",function(n){r.store=n}),T(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),T(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ao;return r.getFieldEntities(n).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),T(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(a){var i=Ht(a);return o.get(i)||{INVALIDATE_NAME_PATH:Ht(a)}})}),T(this,"getFieldsValue",function(n,o){r.warningUnhooked();var a,i,s;if(n===!0||Array.isArray(n)?(a=n,i=o):n&&Ue(n)==="object"&&(s=n.strict,i=n.filter),a===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(d){var f,v,h="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var g,p;if((g=(p=d).isList)!==null&&g!==void 0&&g.call(p))return}else if(!a&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)c.push(h);else{var m="getMeta"in d?d.getMeta():null;i(m)&&c.push(h)}}),wf(r.store,c.map(Ht))}),T(this,"getFieldValue",function(n){r.warningUnhooked();var o=Ht(n);return Dr(r.store,o)}),T(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Ht(n[i]),errors:[],warnings:[]}})}),T(this,"getFieldError",function(n){r.warningUnhooked();var o=Ht(n),a=r.getFieldsError([o])[0];return a.errors}),T(this,"getFieldWarning",function(n){r.warningUnhooked();var o=Ht(n),a=r.getFieldsError([o])[0];return a.warnings}),T(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(Ht),c=!1):(l=null,c=i):(l=i.map(Ht),c=s);var d=r.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!l)return c?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new ao;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var m=p.getNamePath();l.forEach(function(b){b.every(function(y,S){return m[S]===y})&&v.update(b,function(y){return[].concat(ve(y),[p])})})});var h=function(m){return m.some(f)},g=v.map(function(p){var m=p.value;return m});return c?g.every(h):g.some(h)}),T(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),T(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(i){return i.isFieldValidating()});var a=n.map(Ht);return o.some(function(i){var s=i.getNamePath();return bo(a,s)&&i.isFieldValidating()})}),T(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),T(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ao,a=r.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,d=l.getNamePath();if(c!==void 0){var f=o.get(d)||new Set;f.add({entity:l,value:c}),o.set(d,f)}});var i=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),h=r.getInitialValue(v);if(h!==void 0)or(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var g=o.get(v);if(g&&g.size>1)or(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var p=r.getFieldValue(v),m=d.isListField();!m&&(!n.skipExist||p===void 0)&&r.updateStore(jr(r.store,v,ve(g)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var d;(d=s).push.apply(d,ve(ve(c).map(function(f){return f.entity})))}})):s=a,i(s)}),T(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(mo(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(Ht);a.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(jr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),T(this,"setFields",function(n){r.warningUnhooked();var o=r.store,a=[];n.forEach(function(i){var s=i.name,l=ft(i,fE),c=Ht(s);a.push(c),"value"in l&&r.updateStore(jr(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:i})}),r.notifyWatch(a)}),T(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=j(j({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),T(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var a=n.getNamePath(),i=Dr(r.store,a);i===void 0&&r.updateStore(jr(r.store,a,o))}}),T(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),T(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!th(f.getNamePath(),o)})){var d=r.store;r.updateStore(jr(d,o,c,!0)),r.notifyObservers(d,[o],{type:"remove"}),r.triggerDependenciesUpdate(d,o)}}r.notifyWatch([o])}}),T(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,a=n.value;r.updateValue(o,a);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),T(this,"notifyObservers",function(n,o,a){if(r.subscribable){var i=j(j({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,i)})}else r.forceRootUpdate()}),T(this,"triggerDependenciesUpdate",function(n,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ve(a))}),a}),T(this,"updateValue",function(n,o){var a=Ht(n),i=r.store;r.updateStore(jr(r.store,a,o)),r.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(i,a),l=r.callbacks.onValuesChange;if(l){var c=wf(r.store,[a]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(ve(s)))}),T(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var a=mo(r.store,n);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),T(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),T(this,"getDependencyChildrenFields",function(n){var o=new Set,a=[],i=new ao;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(d){var f=Ht(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(a.push(v),l(v))}})};return s(n),a}),T(this,"triggerOnFieldsChange",function(n,o){var a=r.callbacks.onFieldsChange;if(a){var i=r.getFields();if(o){var s=new ao;o.forEach(function(c){var d=c.name,f=c.errors;s.set(d,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var d=c.name;return bo(n,d)});l.length&&a(l,i)}}),T(this,"validateFields",function(n,o){r.warningUnhooked();var a,i;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(a=n,i=o):i=n;var s=!!a,l=s?a.map(Ht):[],c=[],d=String(Date.now()),f=new Set,v=i||{},h=v.recursive,g=v.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(g&&!y.isFieldDirty())){var S=y.getNamePath();if(f.add(S.join(d)),!s||bo(l,S,h)){var C=y.validateRules(j({validateMessages:j(j({},eh),r.validateMessages)},i));c.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function($){var x,w=[],E=[];return(x=$.forEach)===null||x===void 0||x.call($,function(O){var R=O.rule.warningOnly,I=O.errors;R?E.push.apply(E,ve(I)):w.push.apply(w,ve(I))}),w.length?Promise.reject({name:S,errors:w,warnings:E}):{name:S,errors:w,warnings:E}}))}}});var p=dE(c);r.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var S=y.map(function(C){var $=C.name;return $});r.notifyObservers(r.store,S,{type:"validateFinish"}),r.triggerOnFieldsChange(S,y)});var m=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(C){return C&&C.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:S,outOfDate:r.lastValidatePromise!==p})});m.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(d))});return r.triggerOnFieldsChange(b),m}),T(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(a){console.error(a)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function su(e){var t=u.useRef(),r=u.useState({}),n=X(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new mE(a);t.current=i.getForm()}return[t.current]}var hc=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),oh=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,a=t.children,i=u.useContext(hc),s=u.useRef({});return u.createElement(hc.Provider,{value:j(j({},i),{},{validateMessages:j(j({},i.validateMessages),r),triggerFormChange:function(c,d){n&&n(c,{changedFields:d,forms:s.current}),i.triggerFormChange(c,d)},triggerFormFinish:function(c,d){o&&o(c,{values:d,forms:s.current}),i.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(s.current=j(j({},s.current),{},T({},c,d))),i.registerForm(c,d)},unregisterForm:function(c){var d=j({},s.current);delete d[c],s.current=d,i.unregisterForm(c)}})},a)},vE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],gE=function(t,r){var n=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,h=v===void 0?"onChange":v,g=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,S=ft(t,vE),C=u.useRef(null),$=u.useContext(hc),x=su(i),w=X(x,1),E=w[0],O=E.getInternalHooks(zn),R=O.useSubscribe,I=O.setInitialValues,P=O.setCallbacks,M=O.setValidateMessages,F=O.setPreserve,N=O.destroyForm;u.useImperativeHandle(r,function(){return j(j({},E),{},{nativeElement:C.current})}),u.useEffect(function(){return $.registerForm(n,E),function(){$.unregisterForm(n)}},[$,E,n]),M(j(j({},$.validateMessages),f)),P({onValuesChange:g,onFieldsChange:function(H){if($.triggerFormChange(n,H),p){for(var z=arguments.length,V=new Array(z>1?z-1:0),Z=1;Z<z;Z++)V[Z-1]=arguments[Z];p.apply(void 0,[H].concat(V))}},onFinish:function(H){$.triggerFormFinish(n,H),m&&m(H)},onFinishFailed:b}),F(s);var A=u.useRef(null);I(o,!A.current),A.current||(A.current=!0),u.useEffect(function(){return function(){return N(y)}},[]);var _,D=typeof l=="function";if(D){var W=E.getFieldsValue(!0);_=l(W,E)}else _=l;R(!D);var G=u.useRef();u.useEffect(function(){lE(G.current||[],a||[])||E.setFields(a||[]),G.current=a},[a,E]);var L=u.useMemo(function(){return j(j({},E),{},{validateTrigger:h})},[E,h]),B=u.createElement(ha.Provider,{value:null},u.createElement(Yn.Provider,{value:L},_));return d===!1?B:u.createElement(d,Be({},S,{ref:C,onSubmit:function(H){H.preventDefault(),H.stopPropagation(),E.submit()},onReset:function(H){var z;H.preventDefault(),E.resetFields(),(z=S.onReset)===null||z===void 0||z.call(S,H)}}),B)};function $f(e){try{return JSON.stringify(e)}catch{return Math.random()}}function ah(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],a=o===void 0?{}:o,i=O$(a)?{form:a}:a,s=i.form,l=hr(),c=X(l,2),d=c[0],f=c[1],v=cn(function(){return $f(d)},[d]),h=Fe(v);h.current=v;var g=ir(Yn),p=s||g,m=p&&p._init,b=Ht(n),y=Fe(b);return y.current=b,tr(function(){if(m){var S=p.getFieldsValue,C=p.getInternalHooks,$=C(zn),x=$.registerWatch,w=function(I,P){var M=i.preserve?P:I;return typeof n=="function"?n(M):Dr(M,y.current)},E=x(function(R,I){var P=w(R,I),M=$f(P);h.current!==M&&(h.current=M,f(P))}),O=w(S(),S(!0));return d!==O&&f(O),E}},[m]),d}var hE=u.forwardRef(gE),Ho=hE;Ho.FormProvider=oh;Ho.Field=iu;Ho.List=rh;Ho.useForm=su;Ho.useWatch=ah;const un=u.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),ih=u.createContext(null),sh=e=>{const t=Tn(e,["prefixCls"]);return u.createElement(oh,Object.assign({},t))},lu=u.createContext({prefixCls:""}),pr=u.createContext({}),lh=({children:e,status:t,override:r})=>{const n=u.useContext(pr),o=u.useMemo(()=>{const a=Object.assign({},n);return r&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,r,n]);return u.createElement(pr.Provider,{value:o},e)},ch=u.createContext(void 0),To=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=ne.createElement(lh,{override:!0,status:!0},o)),t&&(o=ne.createElement(kw,null,o)),o},pE=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"}}}},bE=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},yE=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${n}${t}-${i}`]={display:"none"},a[`${n}-push-${i}`]={insetInlineStart:"auto"},a[`${n}-pull-${i}`]={insetInlineEnd:"auto"},a[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${n}${t}-offset-${i}`]={marginInlineStart:0},a[`${n}${t}-order-${i}`]={order:0}):(a[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${n}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${n}${t}-order-${i}`]={order:i});return a[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},a},pc=(e,t)=>yE(e,t),SE=(e,t,r)=>({[`@media (min-width: ${ie(t)})`]:Object.assign({},pc(e,r))}),CE=()=>({}),wE=()=>({}),xE=sr("Grid",pE,CE),uh=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),$E=sr("Grid",e=>{const t=Et(e,{gridColumns:24}),r=uh(t);return delete r.xs,[bE(t),pc(t,""),pc(t,"-xs"),Object.keys(r).map(n=>SE(t,r[n],`-${n}`)).reduce((n,o)=>Object.assign(Object.assign({},n),o),{})]},wE);function Ef(e){return{position:e,inset:0}}const EE=e=>{const{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Ef("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Ef("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:cx(e)}]},OE=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ar(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ie(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ie(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ts(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ie(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
189
+ }`),o)}else ua(o);return function(){ua(o)}},[t,o])}var g$=!1;function h$(e){return g$}var uf=function(t){return t===!1?!1:!xr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},nu=u.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=u.useState(r),c=X(l,2),d=c[0],f=c[1],v=d||r;u.useEffect(function(){(i||r)&&f(r)},[r,i]);var h=u.useState(function(){return uf(o)}),g=X(h,2),p=g[0],m=g[1];u.useEffect(function(){var I=uf(o);m(I??null)});var b=u$(v&&!p),y=X(b,2),S=y[0],C=y[1],$=p??S;v$(n&&r&&xr()&&($===S||$===document.body));var x=null;if(s&&Qn(s)&&t){var w=s;x=w.ref}var E=Do(x,t);if(!v||!xr()||p===void 0)return null;var O=$===!1||h$(),R=s;return t&&(R=u.cloneElement(s,{ref:E})),u.createElement(Xg.Provider,{value:C},O?R:Ep(R,$))}),Qg=u.createContext({});function p$(){var e=j({},u);return e.useId}var df=0,ff=p$();const ou=ff?(function(t){var r=ff();return t||r}):(function(t){var r=u.useState("ssr-id"),n=X(r,2),o=n[0],a=n[1];return u.useEffect(function(){var i=df;df+=1,a("rc_unique_".concat(i))},[]),t||o});function mf(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function vf(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var o=e.document;r=o.documentElement[n],typeof r!="number"&&(r=o.body[n])}return r}function b$(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,o=n.defaultView||n.parentWindow;return r.left+=vf(o),r.top+=vf(o,!0),r}const y$=u.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var S$={width:0,height:0,overflow:"hidden",outline:"none"},C$={outline:"none"},w$=ne.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,d=e.onClose,f=e.children,v=e.bodyStyle,h=e.bodyProps,g=e.modalRender,p=e.onMouseDown,m=e.onMouseUp,b=e.holderRef,y=e.visible,S=e.forceRender,C=e.width,$=e.height,x=e.classNames,w=e.styles,E=ne.useContext(Qg),O=E.panel,R=Do(b,O),I=Fe(),P=Fe();ne.useImperativeHandle(t,function(){return{focus:function(){var B;(B=I.current)===null||B===void 0||B.focus({preventScroll:!0})},changeActive:function(B){var q=document,H=q.activeElement;B&&H===P.current?I.current.focus({preventScroll:!0}):!B&&H===I.current&&P.current.focus({preventScroll:!0})}}});var M={};C!==void 0&&(M.width=C),$!==void 0&&(M.height=$);var F=s?ne.createElement("div",{className:oe("".concat(r,"-footer"),x==null?void 0:x.footer),style:j({},w==null?void 0:w.footer)},s):null,N=a?ne.createElement("div",{className:oe("".concat(r,"-header"),x==null?void 0:x.header),style:j({},w==null?void 0:w.header)},ne.createElement("div",{className:"".concat(r,"-title"),id:i},a)):null,A=cn(function(){return Ue(l)==="object"&&l!==null?l:l?{closeIcon:c??ne.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),_=En(A,!0),D=Ue(l)==="object"&&l.disabled,W=l?ne.createElement("button",Be({type:"button",onClick:d,"aria-label":"Close"},_,{className:"".concat(r,"-close"),disabled:D}),A.closeIcon):null,G=ne.createElement("div",{className:oe("".concat(r,"-content"),x==null?void 0:x.content),style:w==null?void 0:w.content},W,N,ne.createElement("div",Be({className:oe("".concat(r,"-body"),x==null?void 0:x.body),style:j(j({},v),w==null?void 0:w.body)},h),f),F);return ne.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:R,style:j(j({},o),M),className:oe(r,n),onMouseDown:p,onMouseUp:m},ne.createElement("div",{ref:I,tabIndex:0,style:C$},ne.createElement(y$,{shouldUpdate:y||S},g?g(G):G)),ne.createElement("div",{tabIndex:0,ref:P,style:S$}))}),Jg=u.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,v=e.mousePosition,h=Fe(),g=u.useState(),p=X(g,2),m=p[0],b=p[1],y={};m&&(y.transformOrigin=m);function S(){var C=b$(h.current);b(v&&(v.x||v.y)?"".concat(v.x-C.left,"px ").concat(v.y-C.top,"px"):"")}return u.createElement(Mn,{visible:i,onVisibleChanged:f,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(C,$){var x=C.className,w=C.style;return u.createElement(w$,Be({},e,{ref:t,title:n,ariaId:d,prefixCls:r,holderRef:$,style:j(j(j({},w),o),y),className:oe(a,x)}))})});Jg.displayName="Content";var x$=function(t){var r=t.prefixCls,n=t.style,o=t.visible,a=t.maskProps,i=t.motionName,s=t.className;return u.createElement(Mn,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var d=l.className,f=l.style;return u.createElement("div",Be({ref:c,style:j(j({},f),n),className:oe("".concat(r,"-mask"),d,s)},a))})},$$=function(t){var r=t.prefixCls,n=r===void 0?"rc-dialog":r,o=t.zIndex,a=t.visible,i=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,d=c===void 0?!0:c,f=t.wrapStyle,v=t.wrapClassName,h=t.wrapProps,g=t.onClose,p=t.afterOpenChange,m=t.afterClose,b=t.transitionName,y=t.animation,S=t.closable,C=S===void 0?!0:S,$=t.mask,x=$===void 0?!0:$,w=t.maskTransitionName,E=t.maskAnimation,O=t.maskClosable,R=O===void 0?!0:O,I=t.maskStyle,P=t.maskProps,M=t.rootClassName,F=t.classNames,N=t.styles,A=Fe(),_=Fe(),D=Fe(),W=u.useState(i),G=X(W,2),L=G[0],B=G[1],q=ou();function H(){Il(_.current,document.activeElement)||(A.current=document.activeElement)}function z(){if(!Il(_.current,document.activeElement)){var K;(K=D.current)===null||K===void 0||K.focus()}}function V(K){if(K)z();else{if(B(!1),x&&A.current&&d){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}L&&(m==null||m())}p==null||p(K)}function Z(K){g==null||g(K)}var k=Fe(!1),J=Fe(),ae=function(){clearTimeout(J.current),k.current=!0},Y=function(){J.current=setTimeout(function(){k.current=!1})},U=null;R&&(U=function(ee){k.current?k.current=!1:_.current===ee.target&&Z(ee)});function re(K){if(l&&K.keyCode===_e.ESC){K.stopPropagation(),Z(K);return}i&&K.keyCode===_e.TAB&&D.current.changeActive(!K.shiftKey)}tr(function(){i&&(B(!0),H())},[i]),tr(function(){return function(){clearTimeout(J.current)}},[]);var se=j(j(j({zIndex:o},f),N==null?void 0:N.wrapper),{},{display:L?null:"none"});return u.createElement("div",Be({className:oe("".concat(n,"-root"),M)},En(t,{data:!0})),u.createElement(x$,{prefixCls:n,visible:x&&i,motionName:mf(n,w,E),style:j(j({zIndex:o},I),N==null?void 0:N.mask),maskProps:P,className:F==null?void 0:F.mask}),u.createElement("div",Be({tabIndex:-1,onKeyDown:re,className:oe("".concat(n,"-wrap"),v,F==null?void 0:F.wrapper),ref:_,onClick:U,style:se},h),u.createElement(Jg,Be({},t,{onMouseDown:ae,onMouseUp:Y,ref:D,closable:C,ariaId:q,prefixCls:n,visible:i&&L,onClose:Z,onVisibleChanged:V,motionName:mf(n,b,y)}))))},E$=function(t){var r=t.visible,n=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=u.useState(r),d=X(c,2),f=d[0],v=d[1],h=u.useMemo(function(){return{panel:l}},[l]);return u.useEffect(function(){r&&v(!0)},[r]),!o&&i&&!f?null:u.createElement(Qg.Provider,{value:h},u.createElement(nu,{open:r||o||f,autoDestroy:!1,getContainer:n,autoLock:r||f},u.createElement($$,Be({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),v(!1)}}))))};E$.displayName="Dialog";var zn="RC_FORM_INTERNAL_HOOKS",$t=function(){or(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Yn=u.createContext({getFieldValue:$t,getFieldsValue:$t,getFieldError:$t,getFieldWarning:$t,getFieldsError:$t,isFieldsTouched:$t,isFieldTouched:$t,isFieldValidating:$t,isFieldsValidating:$t,resetFields:$t,setFields:$t,setFieldValue:$t,setFieldsValue:$t,validateFields:$t,submit:$t,getInternalHooks:function(){return $t(),{dispatch:$t,initEntityValue:$t,registerField:$t,useSubscribe:$t,setInitialValues:$t,destroyForm:$t,setCallbacks:$t,registerWatch:$t,getFields:$t,setValidateMessages:$t,setPreserve:$t,getInitialValue:$t}}}),ha=u.createContext(null);function sc(e){return e==null?[]:Array.isArray(e)?e:[e]}function O$(e){return e&&!!e._init}function lc(){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 cc=lc();function R$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function I$(e,t,r){if(Dc())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&sa(o,r.prototype),o}function uc(e){var t=typeof Map=="function"?new Map:void 0;return uc=function(n){if(n===null||!R$(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return I$(n,arguments,la(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),sa(o,n)},uc(e)}var P$=/%[sdj%]/g,M$=function(){};function dc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Pr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(P$,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function T$(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Yt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||T$(t)&&typeof e=="string"&&!e)}function N$(e,t,r){var n=[],o=0,a=e.length;function i(s){n.push.apply(n,ve(s||[])),o++,o===a&&r(n)}e.forEach(function(s){t(s,i)})}function gf(e,t,r){var n=0,o=e.length;function a(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<o?t(e[s],a):r([])}a([])}function F$(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ve(e[r]||[]))}),t}var hf=(function(e){On(r,e);var t=Rn(r);function r(n,o){var a;return Vt(this,r),a=t.call(this,"Async Validation Error"),T(at(a),"errors",void 0),T(at(a),"fields",void 0),a.errors=n,a.fields=o,a}return Wt(r)})(uc(Error));function _$(e,t,r,n,o){if(t.first){var a=new Promise(function(v,h){var g=function(b){return n(b),b.length?h(new hf(b,dc(b))):v(o)},p=F$(e);gf(p,r,g)});return a.catch(function(v){return v}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,d=[],f=new Promise(function(v,h){var g=function(m){if(d.push.apply(d,m),c++,c===l)return n(d),d.length?h(new hf(d,dc(d))):v(o)};s.length||(n(d),v(o)),s.forEach(function(p){var m=e[p];i.indexOf(p)!==-1?gf(m,r,g):N$(m,r,g)})});return f.catch(function(v){return v}),f}function A$(e){return!!(e&&e.message!==void 0)}function j$(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function pf(e,t){return function(r){var n;return e.fullFields?n=j$(t,e.fullFields):n=t[r.field||e.fullField],A$(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function bf(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ue(n)==="object"&&Ue(e[r])==="object"?e[r]=j(j({},e[r]),n):e[r]=n}}return e}var oo="enum",D$=function(t,r,n,o,a){t[oo]=Array.isArray(t[oo])?t[oo]:[],t[oo].indexOf(r)===-1&&o.push(Pr(a.messages[oo],t.fullField,t[oo].join(", ")))},B$=function(t,r,n,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Pr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||o.push(Pr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},L$=function(t,r,n,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",h=typeof r=="string",g=Array.isArray(r);if(v?f="number":h?f="string":g&&(f="array"),!f)return!1;g&&(d=r.length),h&&(d=r.replace(c,"_").length),i?d!==t.len&&o.push(Pr(a.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?o.push(Pr(a.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?o.push(Pr(a.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&o.push(Pr(a.messages[f].range,t.fullField,t.min,t.max))},Zg=function(t,r,n,o,a,i){t.required&&(!n.hasOwnProperty(t.field)||Yt(r,i||t.type))&&o.push(Pr(a.messages.required,t.fullField))},Qa;const z$=(function(){if(Qa)return Qa;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(r).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function($){return $&&$.exact?l:new RegExp("".concat(t($)).concat(r).concat(t($)),"g")},d.v6=function($){return $&&$.exact?c:new RegExp("".concat(t($)).concat(i).concat(t($)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",h=d.v4().source,g=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(h,"|").concat(g,"|").concat(p).concat(m).concat(b,")").concat(y).concat(S);return Qa=new RegExp("(?:^".concat(C,"$)"),"i"),Qa});var yf={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 Ue(t)==="object"&&!Qo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(yf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(z$())},hex:function(t){return typeof t=="string"&&!!t.match(yf.hex)}},H$=function(t,r,n,o,a){if(t.required&&r===void 0){Zg(t,r,n,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Qo[s](r)||o.push(Pr(a.messages.types[s],t.fullField,t.type)):s&&Ue(r)!==t.type&&o.push(Pr(a.messages.types[s],t.fullField,t.type))},V$=function(t,r,n,o,a){(/^\s+$/.test(r)||r==="")&&o.push(Pr(a.messages.whitespace,t.fullField))};const st={required:Zg,whitespace:V$,type:H$,range:L$,enum:D$,pattern:B$};var W$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a)}n(i)},k$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();st.required(t,r,o,i,a,"array"),r!=null&&(st.type(t,r,o,i,a),st.range(t,r,o,i,a))}n(i)},q$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&st.type(t,r,o,i,a)}n(i)},U$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r,"date")&&!t.required)return n();if(st.required(t,r,o,i,a),!Yt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),st.type(t,l,o,i,a),l&&st.range(t,l.getTime(),o,i,a)}}n(i)},G$="enum",K$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&st[G$](t,r,o,i,a)}n(i)},X$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&(st.type(t,r,o,i,a),st.range(t,r,o,i,a))}n(i)},Y$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&(st.type(t,r,o,i,a),st.range(t,r,o,i,a))}n(i)},Q$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&st.type(t,r,o,i,a)}n(i)},J$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&(st.type(t,r,o,i,a),st.range(t,r,o,i,a))}n(i)},Z$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),r!==void 0&&st.type(t,r,o,i,a)}n(i)},eE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r,"string")&&!t.required)return n();st.required(t,r,o,i,a),Yt(r,"string")||st.pattern(t,r,o,i,a)}n(i)},tE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r)&&!t.required)return n();st.required(t,r,o,i,a),Yt(r)||st.type(t,r,o,i,a)}n(i)},rE=function(t,r,n,o,a){var i=[],s=Array.isArray(r)?"array":Ue(r);st.required(t,r,o,i,a,s),n(i)},nE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(r,"string")&&!t.required)return n();st.required(t,r,o,i,a,"string"),Yt(r,"string")||(st.type(t,r,o,i,a),st.range(t,r,o,i,a),st.pattern(t,r,o,i,a),t.whitespace===!0&&st.whitespace(t,r,o,i,a))}n(i)},Js=function(t,r,n,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Yt(r,i)&&!t.required)return n();st.required(t,r,o,s,a,i),Yt(r,i)||st.type(t,r,o,s,a)}n(s)};const ra={string:nE,method:Q$,number:J$,boolean:q$,regexp:tE,integer:Y$,float:X$,array:k$,object:Z$,enum:K$,pattern:eE,date:U$,url:Js,hex:Js,email:Js,required:rE,any:W$};var Pa=(function(){function e(t){Vt(this,e),T(this,"rules",null),T(this,"_messages",cc),this.define(t)}return Wt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ue(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];n.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(r){return r&&(this._messages=bf(lc(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=o,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(g){var p=[],m={};function b(S){if(Array.isArray(S)){var C;p=(C=p).concat.apply(C,ve(S))}else p.push(S)}for(var y=0;y<g.length;y++)b(g[y]);p.length?(m=dc(p),l(p,m)):l(null,i)}if(s.messages){var d=this.messages();d===cc&&(d=lc()),bf(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(g){var p=n.rules[g],m=i[g];p.forEach(function(b){var y=b;typeof y.transform=="function"&&(i===r&&(i=j({},i)),m=i[g]=y.transform(m),m!=null&&(y.type=y.type||(Array.isArray(m)?"array":Ue(m)))),typeof y=="function"?y={validator:y}:y=j({},y),y.validator=n.getValidationMethod(y),y.validator&&(y.field=g,y.fullField=y.fullField||g,y.type=n.getType(y),f[g]=f[g]||[],f[g].push({rule:y,value:m,source:i,field:g}))})});var h={};return _$(f,s,function(g,p){var m=g.rule,b=(m.type==="object"||m.type==="array")&&(Ue(m.fields)==="object"||Ue(m.defaultField)==="object");b=b&&(m.required||!m.required&&g.value),m.field=g.field;function y(w,E){return j(j({},E),{},{fullField:"".concat(m.fullField,".").concat(w),fullFields:m.fullFields?[].concat(ve(m.fullFields),[w]):[w]})}function S(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(w)?w:[w];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&m.message!==void 0&&(E=[].concat(m.message));var O=E.map(pf(m,i));if(s.first&&O.length)return h[m.field]=1,p(O);if(!b)p(O);else{if(m.required&&!g.value)return m.message!==void 0?O=[].concat(m.message).map(pf(m,i)):s.error&&(O=[s.error(m,Pr(s.messages.required,m.field))]),p(O);var R={};m.defaultField&&Object.keys(g.value).map(function(M){R[M]=m.defaultField}),R=j(j({},R),g.rule.fields);var I={};Object.keys(R).forEach(function(M){var F=R[M],N=Array.isArray(F)?F:[F];I[M]=N.map(y.bind(null,M))});var P=new e(I);P.messages(s.messages),g.rule.options&&(g.rule.options.messages=s.messages,g.rule.options.error=s.error),P.validate(g.value,g.rule.options||s,function(M){var F=[];O&&O.length&&F.push.apply(F,ve(O)),M&&M.length&&F.push.apply(F,ve(M)),p(F.length?F:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,g.value,S,g.source,s);else if(m.validator){try{C=m.validator(m,g.value,S,g.source,s)}catch(w){var $,x;($=(x=console).error)===null||$===void 0||$.call(x,w),s.suppressValidatorError||setTimeout(function(){throw w},0),S(w.message)}C===!0?S():C===!1?S(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(w){return S(w)})},function(g){c(g)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ra.hasOwnProperty(r.type))throw new Error(Pr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?ra.required:ra[this.getType(r)]||void 0}}]),e})();T(Pa,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");ra[t]=r});T(Pa,"warning",M$);T(Pa,"messages",cc);T(Pa,"validators",ra);var Or="'${name}' is not a valid ${type}",eh={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:Or,method:Or,array:Or,object:Or,number:Or,date:Or,boolean:Or,integer:Or,float:Or,regexp:Or,email:Or,url:Or,hex:Or},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}"}},Sf=Pa;function oE(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Cf="CODE_LOGIC_ERROR";function fc(e,t,r,n,o){return mc.apply(this,arguments)}function mc(){return mc=Zn(vr().mark(function e(t,r,n,o,a){var i,s,l,c,d,f,v,h,g;return vr().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=j({},n),delete i.ruleIndex,Sf.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Cf)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Sf(T({},t,[i])),d=mo(eh,o.validateMessages),c.messages(d),f=[],m.prev=10,m.next=13,Promise.resolve(c.validate(T({},t,r),j({},o)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(b,y){var S=b.message,C=S===Cf?d.default:S;return u.isValidElement(C)?u.cloneElement(C,{key:"error_".concat(y)}):C}));case 18:if(!(!f.length&&l&&Array.isArray(r)&&r.length>0)){m.next=23;break}return m.next=21,Promise.all(r.map(function(b,y){return fc("".concat(t,".").concat(y),b,l,o,a)}));case 21:return v=m.sent,m.abrupt("return",v.reduce(function(b,y){return[].concat(ve(b),ve(y))},[]));case 23:return h=j(j({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),g=f.map(function(b){return typeof b=="string"?oE(b,h):b}),m.abrupt("return",g);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),mc.apply(this,arguments)}function aE(e,t,r,n,o,a){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,h=j(j({},d),{},{ruleIndex:f});return v&&(h.validator=function(g,p,m){var b=!1,y=function(){for(var $=arguments.length,x=new Array($),w=0;w<$;w++)x[w]=arguments[w];Promise.resolve().then(function(){or(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,x)})},S=v(g,p,y);b=S&&typeof S.then=="function"&&typeof S.catch=="function",or(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(function(){m()}).catch(function(C){m(C||" ")})}),h}).sort(function(d,f){var v=d.warningOnly,h=d.ruleIndex,g=f.warningOnly,p=f.ruleIndex;return!!v==!!g?h-p:v?1:-1}),l;if(o===!0)l=new Promise((function(){var d=Zn(vr().mark(function f(v,h){var g,p,m;return vr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:g=0;case 1:if(!(g<s.length)){y.next=12;break}return p=s[g],y.next=5,fc(i,t,p,n,a);case 5:if(m=y.sent,!m.length){y.next=9;break}return h([{errors:m,rule:p}]),y.abrupt("return");case 9:g+=1,y.next=1;break;case 12:v([]);case 13:case"end":return y.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}})());else{var c=s.map(function(d){return fc(i,t,d,n,a).then(function(f){return{errors:f,rule:d}})});l=(o?sE(c):iE(c)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function iE(e){return vc.apply(this,arguments)}function vc(){return vc=Zn(vr().mark(function e(t){return vr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,ve(o));return i}));case 1:case"end":return n.stop()}},e)})),vc.apply(this,arguments)}function sE(e){return gc.apply(this,arguments)}function gc(){return gc=Zn(vr().mark(function e(t){var r;return vr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),r+=1,r===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),gc.apply(this,arguments)}function Ht(e){return sc(e)}function wf(e,t){var r={};return t.forEach(function(n){var o=Dr(e,n);r=jr(r,n,o)}),r}function bo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return th(t,n,r)})}function th(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function lE(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ue(e)!=="object"||Ue(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ve(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function cE(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ue(t.target)==="object"&&e in t.target?t.target[e]:t}function xf(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],a=t-r;return a>0?[].concat(ve(e.slice(0,r)),[o],ve(e.slice(r,t)),ve(e.slice(t+1,n))):a<0?[].concat(ve(e.slice(0,t)),ve(e.slice(t+1,r+1)),[o],ve(e.slice(r+1,n))):e}var uE=["name"],_r=[];function Zs(e,t,r,n,o,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==o}var au=(function(e){On(r,e);var t=Rn(r);function r(n){var o;if(Vt(this,r),o=t.call(this,n),T(at(o),"state",{resetCount:0}),T(at(o),"cancelRegisterFunc",null),T(at(o),"mounted",!1),T(at(o),"touched",!1),T(at(o),"dirty",!1),T(at(o),"validatePromise",void 0),T(at(o),"prevValidating",void 0),T(at(o),"errors",_r),T(at(o),"warnings",_r),T(at(o),"cancelRegister",function(){var l=o.props,c=l.preserve,d=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,Ht(f)),o.cancelRegisterFunc=null}),T(at(o),"getNamePath",function(){var l=o.props,c=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(ve(v),ve(c)):[]}),T(at(o),"getRules",function(){var l=o.props,c=l.rules,d=c===void 0?[]:c,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),T(at(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),T(at(o),"metaCache",null),T(at(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var d=j(j({},o.getMeta()),{},{destroy:l});Ri(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),T(at(o),"onStoreChange",function(l,c,d){var f=o.props,v=f.shouldUpdate,h=f.dependencies,g=h===void 0?[]:h,p=f.onReset,m=d.store,b=o.getNamePath(),y=o.getValue(l),S=o.getValue(m),C=c&&bo(c,b);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ri(y,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=_r,o.warnings=_r,o.triggerMetaEvent()),d.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=_r,o.warnings=_r,o.triggerMetaEvent(),p==null||p(),o.refresh();return}break;case"remove":{if(v&&Zs(v,l,m,y,S,d)){o.reRender();return}break}case"setField":{var $=d.data;if(C){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||_r),"warnings"in $&&(o.warnings=$.warnings||_r),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&bo(c,b,!0)){o.reRender();return}if(v&&!b.length&&Zs(v,l,m,y,S,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=g.map(Ht);if(x.some(function(w){return bo(d.relatedFields,w)})){o.reRender();return}break}default:if(C||(!g.length||b.length||v)&&Zs(v,l,m,y,S,d)){o.reRender();return}break}v===!0&&o.reRender()}),T(at(o),"validateRules",function(l){var c=o.getNamePath(),d=o.getValue(),f=l||{},v=f.triggerName,h=f.validateOnly,g=h===void 0?!1:h,p=Promise.resolve().then(Zn(vr().mark(function m(){var b,y,S,C,$,x,w;return vr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,C=b.messageVariables,$=b.validateDebounce,x=o.getRules(),v&&(x=x.filter(function(R){return R}).filter(function(R){var I=R.validateTrigger;if(!I)return!0;var P=sc(I);return P.includes(v)})),!($&&v)){O.next=10;break}return O.next=8,new Promise(function(R){setTimeout(R,$)});case 8:if(o.validatePromise===p){O.next=10;break}return O.abrupt("return",[]);case 10:return w=aE(c,d,x,l,S,C),w.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_r;if(o.validatePromise===p){var I;o.validatePromise=null;var P=[],M=[];(I=R.forEach)===null||I===void 0||I.call(R,function(F){var N=F.rule.warningOnly,A=F.errors,_=A===void 0?_r:A;N?M.push.apply(M,ve(_)):P.push.apply(P,ve(_))}),o.errors=P,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",w);case 13:case"end":return O.stop()}},m)})));return g||(o.validatePromise=p,o.dirty=!0,o.errors=_r,o.warnings=_r,o.triggerMetaEvent(),o.reRender()),p}),T(at(o),"isFieldValidating",function(){return!!o.validatePromise}),T(at(o),"isFieldTouched",function(){return o.touched}),T(at(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(zn),d=c.getInitialValue;return d(o.getNamePath())!==void 0}),T(at(o),"getErrors",function(){return o.errors}),T(at(o),"getWarnings",function(){return o.warnings}),T(at(o),"isListField",function(){return o.props.isListField}),T(at(o),"isList",function(){return o.props.isList}),T(at(o),"isPreserve",function(){return o.props.preserve}),T(at(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),T(at(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return j(j({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=Gn(l);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),T(at(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Dr(l||c(!0),d)}),T(at(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,v=c.validateTrigger,h=c.getValueFromEvent,g=c.normalize,p=c.valuePropName,m=c.getValueProps,b=c.fieldContext,y=v!==void 0?v:b.validateTrigger,S=o.getNamePath(),C=b.getInternalHooks,$=b.getFieldsValue,x=C(zn),w=x.dispatch,E=o.getValue(),O=m||function(F){return T({},p,F)},R=l[f],I=d!==void 0?O(E):{},P=j(j({},l),I);P[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,N=arguments.length,A=new Array(N),_=0;_<N;_++)A[_]=arguments[_];h?F=h.apply(void 0,A):F=cE.apply(void 0,[p].concat(A)),g&&(F=g(F,E,$(!0))),F!==E&&w({type:"updateValue",namePath:S,value:F}),R&&R.apply(void 0,A)};var M=sc(y||[]);return M.forEach(function(F){var N=P[F];P[F]=function(){N&&N.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&w({type:"validateField",namePath:S,triggerName:F})}}),P}),n.fieldContext){var a=n.fieldContext.getInternalHooks,i=a(zn),s=i.initEntityValue;s(at(o))}return o}return Wt(r,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(zn),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:u.isValidElement(s)?c=u.cloneElement(s,this.getControlled(s.props)):(or(!s,"`children` of Field is not validate ReactElement."),c=s),u.createElement(u.Fragment,{key:o},c)}}]),r})(u.Component);T(au,"contextType",Yn);T(au,"defaultProps",{trigger:"onChange",valuePropName:"value"});function iu(e){var t,r=e.name,n=ft(e,uE),o=u.useContext(Yn),a=u.useContext(ha),i=r!==void 0?Ht(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),u.createElement(au,Be({key:l,name:i,isListField:s},n,{fieldContext:o}))}function rh(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=u.useContext(Yn),l=u.useContext(ha),c=u.useRef({keys:[],id:0}),d=c.current,f=u.useMemo(function(){var p=Ht(s.prefixName)||[];return[].concat(ve(p),ve(Ht(t)))},[s.prefixName,t]),v=u.useMemo(function(){return j(j({},s),{},{prefixName:f})},[s,f]),h=u.useMemo(function(){return{getKey:function(m){var b=f.length,y=m[b];return[d.keys[y],m.slice(b+1)]}}},[f]);if(typeof n!="function")return or(!1,"Form.List only accepts function as children."),null;var g=function(m,b,y){var S=y.source;return S==="internal"?!1:m!==b};return u.createElement(ha.Provider,{value:h},u.createElement(Yn.Provider,{value:v},u.createElement(iu,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:i??!!l},function(p,m){var b=p.value,y=b===void 0?[]:b,S=p.onChange,C=s.getFieldValue,$=function(){var O=C(f||[]);return O||[]},x={add:function(O,R){var I=$();R>=0&&R<=I.length?(d.keys=[].concat(ve(d.keys.slice(0,R)),[d.id],ve(d.keys.slice(R))),S([].concat(ve(I.slice(0,R)),[O],ve(I.slice(R))))):(d.keys=[].concat(ve(d.keys),[d.id]),S([].concat(ve(I),[O]))),d.id+=1},remove:function(O){var R=$(),I=new Set(Array.isArray(O)?O:[O]);I.size<=0||(d.keys=d.keys.filter(function(P,M){return!I.has(M)}),S(R.filter(function(P,M){return!I.has(M)})))},move:function(O,R){if(O!==R){var I=$();O<0||O>=I.length||R<0||R>=I.length||(d.keys=xf(d.keys,O,R),S(xf(I,O,R)))}}},w=y||[];return Array.isArray(w)||(w=[]),n(w.map(function(E,O){var R=d.keys[O];return R===void 0&&(d.keys[O]=d.id,R=d.keys[O],d.id+=1),{name:O,key:R,isListField:!0}}),x,m)})))}function dE(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&a(n),o(n))})})}):Promise.resolve([])}var nh="__@field_split__";function el(e){return e.map(function(t){return"".concat(Ue(t),":").concat(t)}).join(nh)}var ao=(function(){function e(){Vt(this,e),T(this,"kvs",new Map)}return Wt(e,[{key:"set",value:function(r,n){this.kvs.set(el(r),n)}},{key:"get",value:function(r){return this.kvs.get(el(r))}},{key:"update",value:function(r,n){var o=this.get(r),a=n(o);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(el(r))}},{key:"map",value:function(r){return ve(this.kvs.entries()).map(function(n){var o=X(n,2),a=o[0],i=o[1],s=a.split(nh);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),d=X(c,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,a=n.value;return r[o.join(".")]=a,null}),r}}]),e})(),fE=["name"],mE=Wt(function e(t){var r=this;Vt(this,e),T(this,"formHooked",!1),T(this,"forceRootUpdate",void 0),T(this,"subscribable",!0),T(this,"store",{}),T(this,"fieldEntities",[]),T(this,"initialValues",{}),T(this,"callbacks",{}),T(this,"validateMessages",null),T(this,"preserve",null),T(this,"lastValidatePromise",null),T(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),T(this,"getInternalHooks",function(n){return n===zn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(or(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),T(this,"useSubscribe",function(n){r.subscribable=n}),T(this,"prevWithoutPreserves",null),T(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var a,i=mo(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=jr(i,l,Dr(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),T(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new ao;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),T(this,"getInitialValue",function(n){var o=Dr(r.initialValues,n);return n.length?mo(o):o}),T(this,"setCallbacks",function(n){r.callbacks=n}),T(this,"setValidateMessages",function(n){r.validateMessages=n}),T(this,"setPreserve",function(n){r.preserve=n}),T(this,"watchList",[]),T(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),T(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(o,a,n)})}}),T(this,"timeoutId",null),T(this,"warningUnhooked",function(){}),T(this,"updateStore",function(n){r.store=n}),T(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),T(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ao;return r.getFieldEntities(n).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),T(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(a){var i=Ht(a);return o.get(i)||{INVALIDATE_NAME_PATH:Ht(a)}})}),T(this,"getFieldsValue",function(n,o){r.warningUnhooked();var a,i,s;if(n===!0||Array.isArray(n)?(a=n,i=o):n&&Ue(n)==="object"&&(s=n.strict,i=n.filter),a===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(d){var f,v,h="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var g,p;if((g=(p=d).isList)!==null&&g!==void 0&&g.call(p))return}else if(!a&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)c.push(h);else{var m="getMeta"in d?d.getMeta():null;i(m)&&c.push(h)}}),wf(r.store,c.map(Ht))}),T(this,"getFieldValue",function(n){r.warningUnhooked();var o=Ht(n);return Dr(r.store,o)}),T(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Ht(n[i]),errors:[],warnings:[]}})}),T(this,"getFieldError",function(n){r.warningUnhooked();var o=Ht(n),a=r.getFieldsError([o])[0];return a.errors}),T(this,"getFieldWarning",function(n){r.warningUnhooked();var o=Ht(n),a=r.getFieldsError([o])[0];return a.warnings}),T(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(Ht),c=!1):(l=null,c=i):(l=i.map(Ht),c=s);var d=r.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!l)return c?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new ao;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var m=p.getNamePath();l.forEach(function(b){b.every(function(y,S){return m[S]===y})&&v.update(b,function(y){return[].concat(ve(y),[p])})})});var h=function(m){return m.some(f)},g=v.map(function(p){var m=p.value;return m});return c?g.every(h):g.some(h)}),T(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),T(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(i){return i.isFieldValidating()});var a=n.map(Ht);return o.some(function(i){var s=i.getNamePath();return bo(a,s)&&i.isFieldValidating()})}),T(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),T(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ao,a=r.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,d=l.getNamePath();if(c!==void 0){var f=o.get(d)||new Set;f.add({entity:l,value:c}),o.set(d,f)}});var i=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),h=r.getInitialValue(v);if(h!==void 0)or(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var g=o.get(v);if(g&&g.size>1)or(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var p=r.getFieldValue(v),m=d.isListField();!m&&(!n.skipExist||p===void 0)&&r.updateStore(jr(r.store,v,ve(g)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var d;(d=s).push.apply(d,ve(ve(c).map(function(f){return f.entity})))}})):s=a,i(s)}),T(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(mo(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(Ht);a.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(jr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),T(this,"setFields",function(n){r.warningUnhooked();var o=r.store,a=[];n.forEach(function(i){var s=i.name,l=ft(i,fE),c=Ht(s);a.push(c),"value"in l&&r.updateStore(jr(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:i})}),r.notifyWatch(a)}),T(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=j(j({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),T(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var a=n.getNamePath(),i=Dr(r.store,a);i===void 0&&r.updateStore(jr(r.store,a,o))}}),T(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),T(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!th(f.getNamePath(),o)})){var d=r.store;r.updateStore(jr(d,o,c,!0)),r.notifyObservers(d,[o],{type:"remove"}),r.triggerDependenciesUpdate(d,o)}}r.notifyWatch([o])}}),T(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,a=n.value;r.updateValue(o,a);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),T(this,"notifyObservers",function(n,o,a){if(r.subscribable){var i=j(j({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,i)})}else r.forceRootUpdate()}),T(this,"triggerDependenciesUpdate",function(n,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ve(a))}),a}),T(this,"updateValue",function(n,o){var a=Ht(n),i=r.store;r.updateStore(jr(r.store,a,o)),r.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(i,a),l=r.callbacks.onValuesChange;if(l){var c=wf(r.store,[a]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(ve(s)))}),T(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var a=mo(r.store,n);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),T(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),T(this,"getDependencyChildrenFields",function(n){var o=new Set,a=[],i=new ao;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(d){var f=Ht(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(a.push(v),l(v))}})};return s(n),a}),T(this,"triggerOnFieldsChange",function(n,o){var a=r.callbacks.onFieldsChange;if(a){var i=r.getFields();if(o){var s=new ao;o.forEach(function(c){var d=c.name,f=c.errors;s.set(d,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var d=c.name;return bo(n,d)});l.length&&a(l,i)}}),T(this,"validateFields",function(n,o){r.warningUnhooked();var a,i;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(a=n,i=o):i=n;var s=!!a,l=s?a.map(Ht):[],c=[],d=String(Date.now()),f=new Set,v=i||{},h=v.recursive,g=v.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(g&&!y.isFieldDirty())){var S=y.getNamePath();if(f.add(S.join(d)),!s||bo(l,S,h)){var C=y.validateRules(j({validateMessages:j(j({},eh),r.validateMessages)},i));c.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function($){var x,w=[],E=[];return(x=$.forEach)===null||x===void 0||x.call($,function(O){var R=O.rule.warningOnly,I=O.errors;R?E.push.apply(E,ve(I)):w.push.apply(w,ve(I))}),w.length?Promise.reject({name:S,errors:w,warnings:E}):{name:S,errors:w,warnings:E}}))}}});var p=dE(c);r.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var S=y.map(function(C){var $=C.name;return $});r.notifyObservers(r.store,S,{type:"validateFinish"}),r.triggerOnFieldsChange(S,y)});var m=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(C){return C&&C.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:S,outOfDate:r.lastValidatePromise!==p})});m.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(d))});return r.triggerOnFieldsChange(b),m}),T(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(a){console.error(a)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function su(e){var t=u.useRef(),r=u.useState({}),n=X(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new mE(a);t.current=i.getForm()}return[t.current]}var hc=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),oh=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,a=t.children,i=u.useContext(hc),s=u.useRef({});return u.createElement(hc.Provider,{value:j(j({},i),{},{validateMessages:j(j({},i.validateMessages),r),triggerFormChange:function(c,d){n&&n(c,{changedFields:d,forms:s.current}),i.triggerFormChange(c,d)},triggerFormFinish:function(c,d){o&&o(c,{values:d,forms:s.current}),i.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(s.current=j(j({},s.current),{},T({},c,d))),i.registerForm(c,d)},unregisterForm:function(c){var d=j({},s.current);delete d[c],s.current=d,i.unregisterForm(c)}})},a)},vE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],gE=function(t,r){var n=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,h=v===void 0?"onChange":v,g=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,S=ft(t,vE),C=u.useRef(null),$=u.useContext(hc),x=su(i),w=X(x,1),E=w[0],O=E.getInternalHooks(zn),R=O.useSubscribe,I=O.setInitialValues,P=O.setCallbacks,M=O.setValidateMessages,F=O.setPreserve,N=O.destroyForm;u.useImperativeHandle(r,function(){return j(j({},E),{},{nativeElement:C.current})}),u.useEffect(function(){return $.registerForm(n,E),function(){$.unregisterForm(n)}},[$,E,n]),M(j(j({},$.validateMessages),f)),P({onValuesChange:g,onFieldsChange:function(H){if($.triggerFormChange(n,H),p){for(var z=arguments.length,V=new Array(z>1?z-1:0),Z=1;Z<z;Z++)V[Z-1]=arguments[Z];p.apply(void 0,[H].concat(V))}},onFinish:function(H){$.triggerFormFinish(n,H),m&&m(H)},onFinishFailed:b}),F(s);var A=u.useRef(null);I(o,!A.current),A.current||(A.current=!0),u.useEffect(function(){return function(){return N(y)}},[]);var _,D=typeof l=="function";if(D){var W=E.getFieldsValue(!0);_=l(W,E)}else _=l;R(!D);var G=u.useRef();u.useEffect(function(){lE(G.current||[],a||[])||E.setFields(a||[]),G.current=a},[a,E]);var L=u.useMemo(function(){return j(j({},E),{},{validateTrigger:h})},[E,h]),B=u.createElement(ha.Provider,{value:null},u.createElement(Yn.Provider,{value:L},_));return d===!1?B:u.createElement(d,Be({},S,{ref:C,onSubmit:function(H){H.preventDefault(),H.stopPropagation(),E.submit()},onReset:function(H){var z;H.preventDefault(),E.resetFields(),(z=S.onReset)===null||z===void 0||z.call(S,H)}}),B)};function $f(e){try{return JSON.stringify(e)}catch{return Math.random()}}function ah(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],a=o===void 0?{}:o,i=O$(a)?{form:a}:a,s=i.form,l=hr(),c=X(l,2),d=c[0],f=c[1],v=cn(function(){return $f(d)},[d]),h=Fe(v);h.current=v;var g=ir(Yn),p=s||g,m=p&&p._init,b=Ht(n),y=Fe(b);return y.current=b,tr(function(){if(m){var S=p.getFieldsValue,C=p.getInternalHooks,$=C(zn),x=$.registerWatch,w=function(I,P){var M=i.preserve?P:I;return typeof n=="function"?n(M):Dr(M,y.current)},E=x(function(R,I){var P=w(R,I),M=$f(P);h.current!==M&&(h.current=M,f(P))}),O=w(S(),S(!0));return d!==O&&f(O),E}},[m]),d}var hE=u.forwardRef(gE),Ho=hE;Ho.FormProvider=oh;Ho.Field=iu;Ho.List=rh;Ho.useForm=su;Ho.useWatch=ah;const un=u.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),ih=u.createContext(null),sh=e=>{const t=Tn(e,["prefixCls"]);return u.createElement(oh,Object.assign({},t))},lu=u.createContext({prefixCls:""}),pr=u.createContext({}),lh=({children:e,status:t,override:r})=>{const n=u.useContext(pr),o=u.useMemo(()=>{const a=Object.assign({},n);return r&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,r,n]);return u.createElement(pr.Provider,{value:o},e)},ch=u.createContext(void 0),To=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=ne.createElement(lh,{override:!0,status:!0},o)),t&&(o=ne.createElement(k1,null,o)),o},pE=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"}}}},bE=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},yE=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${n}${t}-${i}`]={display:"none"},a[`${n}-push-${i}`]={insetInlineStart:"auto"},a[`${n}-pull-${i}`]={insetInlineEnd:"auto"},a[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${n}${t}-offset-${i}`]={marginInlineStart:0},a[`${n}${t}-order-${i}`]={order:0}):(a[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${n}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${n}${t}-order-${i}`]={order:i});return a[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},a},pc=(e,t)=>yE(e,t),SE=(e,t,r)=>({[`@media (min-width: ${ie(t)})`]:Object.assign({},pc(e,r))}),CE=()=>({}),wE=()=>({}),xE=sr("Grid",pE,CE),uh=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),$E=sr("Grid",e=>{const t=Et(e,{gridColumns:24}),r=uh(t);return delete r.xs,[bE(t),pc(t,""),pc(t,"-xs"),Object.keys(r).map(n=>SE(t,r[n],`-${n}`)).reduce((n,o)=>Object.assign(Object.assign({},n),o),{})]},wE);function Ef(e){return{position:e,inset:0}}const EE=e=>{const{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Ef("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Ef("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:cx(e)}]},OE=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ar(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ie(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ie(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ts(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ie(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
190
190
  ${t}-body,
191
191
  ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},RE=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},IE=e=>{const{componentCls:t}=e,r=uh(e),n=Object.assign({},r);delete n.xs;const o=`--${t.replace(".","")}-`,a=Object.keys(n).map(i=>({[`@media (min-width: ${ie(n[i])})`]:{width:`var(${o}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ve(Object.keys(r).map((i,s)=>{const l=Object.keys(r)[s-1];return l?{[`${o}${i}-width`]:`var(${o}${l}-width)`}:null})),[{width:`var(${o}xs-width)`}],ve(a))}}},PE=e=>{const t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return Et(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ME=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ie(e.padding)} ${ie(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ie(e.paddingXS)} ${ie(e.padding)}`:0,footerBorderTop:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ie(e.padding*2)} ${ie(e.padding*2)} ${ie(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),JM=sr("Modal",e=>{const t=PE(e);return[OE(t),RE(t),EE(t),qg(t,"zoom"),IE(t)]},ME,{unitless:{titleLineHeight:!0}});function TE(e){return t=>u.createElement(Jn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const NE=(e,t,r,n,o)=>TE(i=>{const{prefixCls:s,style:l}=i,c=u.useRef(null),[d,f]=u.useState(0),[v,h]=u.useState(0),[g,p]=zr(!1,{value:i.open}),{getPrefixCls:m}=u.useContext(wt),b=m(n||"select",s);u.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(x=>{const w=x[0].target;f(w.offsetHeight+8),h(w.offsetWidth)}),$=setInterval(()=>{var x;const w=o?`.${o(b)}`:`.${b}-dropdown`,E=(x=c.current)===null||x===void 0?void 0:x.querySelector(w);E&&(clearInterval($),C.observe(E))},10);return()=>{clearInterval($),C.disconnect()}}},[b]);let y=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const S={paddingBottom:d,position:"relative",minWidth:v};return u.createElement("div",{ref:c,style:S},u.createElement(e,Object.assign({},y)))}),cu=(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 ms=function(t){var r=t.className,n=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(o):n;return u.createElement("span",{className:r,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:u.createElement("span",{className:oe(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},FE=function(t,r,n,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=ne.useMemo(function(){if(Ue(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=ne.useMemo(function(){return!!(!i&&o&&(n.length||s)&&!(l==="combobox"&&s===""))},[o,i,n.length,s,l]);return{allowClear:d,clearIcon:ne.createElement(ms,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}},dh=u.createContext(null);function _E(){return u.useContext(dh)}function AE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),r=X(t,2),n=r[0],o=r[1],a=u.useRef(null),i=function(){window.clearTimeout(a.current)};u.useEffect(function(){return i},[]);var s=function(c,d){i(),a.current=window.setTimeout(function(){o(c),d&&d()},e)};return[n,s,i]}function fh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),r=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function jE(e,t,r,n){var o=u.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},u.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function DE(e){return e&&![_e.ESC,_e.SHIFT,_e.BACKSPACE,_e.TAB,_e.WIN_KEY,_e.ALT,_e.META,_e.WIN_KEY_RIGHT,_e.CTRL,_e.SEMICOLON,_e.EQUALS,_e.CAPS_LOCK,_e.CONTEXT_MENU,_e.F1,_e.F2,_e.F3,_e.F4,_e.F5,_e.F6,_e.F7,_e.F8,_e.F9,_e.F10,_e.F11,_e.F12].includes(e)}var BE=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],io=void 0;function LE(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,d=e.className,f=e.style,v=e.children,h=e.display,g=e.order,p=e.component,m=p===void 0?"div":p,b=ft(e,BE),y=i&&!h;function S(E){l(c,E)}u.useEffect(function(){return function(){S(null)}},[]);var C=a&&o!==io?a(o,{index:g}):v,$;n||($={opacity:y?0:1,height:y?0:io,overflowY:y?"hidden":io,order:i?g:io,pointerEvents:y?"none":io,position:y?"absolute":io});var x={};y&&(x["aria-hidden"]=!0);var w=u.createElement(m,Be({className:oe(!n&&r,d),style:j(j({},$),f)},x,b,{ref:t}),C);return i&&(w=u.createElement(In,{onResize:function(O){var R=O.offsetWidth;S(R)},disabled:s},w)),w}var ho=u.forwardRef(LE);ho.displayName="Item";function zE(e){if(typeof MessageChannel>"u")mt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function HE(){var e=u.useRef(null),t=function(n){e.current||(e.current=[],zE(function(){Op(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function so(e,t){var r=u.useState(t),n=X(r,2),o=n[0],a=n[1],i=Bt(function(s){e(function(){a(s)})});return[o,i]}var _i=ne.createContext(null),VE=["component"],WE=["className"],kE=["className"],qE=function(t,r){var n=u.useContext(_i);if(!n){var o=t.component,a=o===void 0?"div":o,i=ft(t,VE);return u.createElement(a,Be({},i,{ref:r}))}var s=n.className,l=ft(n,WE),c=t.className,d=ft(t,kE);return u.createElement(_i.Provider,{value:null},u.createElement(ho,Be({ref:r,className:oe(s,c)},l,d)))},mh=u.forwardRef(qE);mh.displayName="RawItem";var UE=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],vh="responsive",gh="invalidate";function GE(e){return"+ ".concat(e.length," ...")}function KE(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,v=e.style,h=e.className,g=e.maxCount,p=e.renderRest,m=e.renderRawRest,b=e.prefix,y=e.suffix,S=e.component,C=S===void 0?"div":S,$=e.itemComponent,x=e.onVisibleChange,w=ft(e,UE),E=f==="full",O=HE(),R=so(O,null),I=X(R,2),P=I[0],M=I[1],F=P||0,N=so(O,new Map),A=X(N,2),_=A[0],D=A[1],W=so(O,0),G=X(W,2),L=G[0],B=G[1],q=so(O,0),H=X(q,2),z=H[0],V=H[1],Z=so(O,0),k=X(Z,2),J=k[0],ae=k[1],Y=so(O,0),U=X(Y,2),re=U[0],se=U[1],K=hr(null),ee=X(K,2),fe=ee[0],le=ee[1],de=hr(null),we=X(de,2),be=we[0],Se=we[1],me=u.useMemo(function(){return be===null&&E?Number.MAX_SAFE_INTEGER:be||0},[be,P]),te=hr(!1),xe=X(te,2),ze=xe[0],Ae=xe[1],Me="".concat(n,"-item"),Ee=Math.max(L,z),He=g===vh,Te=a.length&&He,Le=g===gh,Oe=Te||typeof g=="number"&&a.length>g,Ce=cn(function(){var ue=a;return Te?P===null&&E?ue=a:ue=a.slice(0,Math.min(a.length,F/d)):typeof g=="number"&&(ue=a.slice(0,g)),ue},[a,d,P,g,Te]),Ve=cn(function(){return Te?a.slice(me+1):a.slice(Ce.length)},[a,Ce,Te,me]),Ze=xu(function(ue,ce){var ge;return typeof l=="function"?l(ue):(ge=l&&(ue==null?void 0:ue[l]))!==null&&ge!==void 0?ge:ce},[l]),We=xu(i||function(ue){return ue},[i]);function et(ue,ce,ge){be===ue&&(ce===void 0||ce===fe)||(Se(ue),ge||(Ae(ue<a.length-1),x==null||x(ue)),ce!==void 0&&le(ce))}function lt(ue,ce){M(ce.clientWidth)}function Ot(ue,ce){D(function(ge){var qe=new Map(ge);return ce===null?qe.delete(ue):qe.set(ue,ce),qe})}function Pt(ue,ce){V(ce),B(z)}function $e(ue,ce){ae(ce)}function Re(ue,ce){se(ce)}function Ge(ue){return _.get(Ze(Ce[ue],ue))}Ct(function(){if(F&&typeof Ee=="number"&&Ce){var ue=J+re,ce=Ce.length,ge=ce-1;if(!ce){et(0,null);return}for(var qe=0;qe<ce;qe+=1){var je=Ge(qe);if(E&&(je=je||0),je===void 0){et(qe-1,void 0,!0);break}if(ue+=je,ge===0&&ue<=F||qe===ge-1&&ue+Ge(ge)<=F){et(ge,null);break}else if(ue+Ee>F){et(qe-1,ue-je-re+z);break}}y&&Ge(0)+re>F&&le(null)}},[F,_,z,J,re,Ze,Ce]);var Pe=ze&&!!Ve.length,Xe={};fe!==null&&Te&&(Xe={position:"absolute",left:fe,top:0});var ct={prefixCls:Me,responsive:Te,component:$,invalidate:Le},nt=s?function(ue,ce){var ge=Ze(ue,ce);return u.createElement(_i.Provider,{key:ge,value:j(j({},ct),{},{order:ce,item:ue,itemKey:ge,registerSize:Ot,display:ce<=me})},s(ue,ce))}:function(ue,ce){var ge=Ze(ue,ce);return u.createElement(ho,Be({},ct,{order:ce,key:ge,item:ue,renderItem:We,itemKey:ge,registerSize:Ot,display:ce<=me}))},ke={order:Pe?me:Number.MAX_SAFE_INTEGER,className:"".concat(Me,"-rest"),registerSize:Pt,display:Pe},Qe=p||GE,ut=m?u.createElement(_i.Provider,{value:j(j({},ct),ke)},m(Ve)):u.createElement(ho,Be({},ct,ke),typeof Qe=="function"?Qe(Ve):Qe),ye=u.createElement(C,Be({className:oe(!Le&&n,h),style:v,ref:t},w),b&&u.createElement(ho,Be({},ct,{responsive:He,responsiveDisabled:!Te,order:-1,className:"".concat(Me,"-prefix"),registerSize:$e,display:!0}),b),Ce.map(nt),Oe?ut:null,y&&u.createElement(ho,Be({},ct,{responsive:He,responsiveDisabled:!Te,order:me,className:"".concat(Me,"-suffix"),registerSize:Re,display:!0,style:Xe}),y));return He?u.createElement(In,{onResize:lt,disabled:!Te},ye):ye}var Ma=u.forwardRef(KE);Ma.displayName="Overflow";Ma.Item=mh;Ma.RESPONSIVE=vh;Ma.INVALIDATE=gh;function XE(e,t,r){var n=j(j({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(n[o]=function(){for(var i,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a.apply(void 0,l),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(l))})}),n}var YE=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],QE=function(t,r){var n=t.prefixCls,o=t.id,a=t.inputElement,i=t.autoFocus,s=t.autoComplete,l=t.editable,c=t.activeDescendantId,d=t.value,f=t.open,v=t.attrs,h=ft(t,YE),g=a||u.createElement("input",null),p=g,m=p.ref,b=p.props;return"maxLength"in g.props,g=u.cloneElement(g,j(j(j({type:"search"},XE(h,b)),{},{id:o,ref:Hr(r,m),autoComplete:s||"off",autoFocus:i,className:oe("".concat(n,"-selection-search-input"),b==null?void 0:b.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?c:void 0},v),{},{value:l?d:"",readOnly:!l,unselectable:l?null:"on",style:j(j({},b.style),{},{opacity:l?null:0})})),g},hh=u.forwardRef(QE);function ph(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var JE=typeof window<"u"&&window.document&&window.document.documentElement,ZE=JE;function eO(e){return e!=null}function tO(e){return!e&&e!==0}function Of(e){return["string","number"].includes(Ue(e))}function bh(e){var t=void 0;return e&&(Of(e.title)?t=e.title.toString():Of(e.label)&&(t=e.label.toString())),t}function rO(e,t){ZE?u.useLayoutEffect(e,t):u.useEffect(e,t)}function nO(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Rf=function(t){t.preventDefault(),t.stopPropagation()},oO=function(t){var r=t.id,n=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,d=t.disabled,f=t.mode,v=t.showSearch,h=t.autoFocus,g=t.autoComplete,p=t.activeDescendantId,m=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,C=t.maxTagPlaceholder,$=C===void 0?function(se){return"+ ".concat(se.length," ...")}:C,x=t.tagRender,w=t.onToggleOpen,E=t.onRemove,O=t.onInputChange,R=t.onInputPaste,I=t.onInputKeyDown,P=t.onInputMouseDown,M=t.onInputCompositionStart,F=t.onInputCompositionEnd,N=t.onInputBlur,A=u.useRef(null),_=hr(0),D=X(_,2),W=D[0],G=D[1],L=hr(!1),B=X(L,2),q=B[0],H=B[1],z="".concat(n,"-selection"),V=a||f==="multiple"&&s===!1||f==="tags"?i:"",Z=f==="tags"||f==="multiple"&&s===!1||v&&(a||q);rO(function(){G(A.current.scrollWidth)},[V]);var k=function(K,ee,fe,le,de){return u.createElement("span",{title:bh(K),className:oe("".concat(z,"-item"),T({},"".concat(z,"-item-disabled"),fe))},u.createElement("span",{className:"".concat(z,"-item-content")},ee),le&&u.createElement(ms,{className:"".concat(z,"-item-remove"),onMouseDown:Rf,onClick:de,customizeIcon:b},"\xD7"))},J=function(K,ee,fe,le,de,we){var be=function(me){Rf(me),w(!a)};return u.createElement("span",{onMouseDown:be},x({label:ee,value:K,disabled:fe,closable:le,onClose:de,isMaxTag:!!we}))},ae=function(K){var ee=K.disabled,fe=K.label,le=K.value,de=!d&&!ee,we=fe;if(typeof S=="number"&&(typeof fe=="string"||typeof fe=="number")){var be=String(we);be.length>S&&(we="".concat(be.slice(0,S),"..."))}var Se=function(te){te&&te.stopPropagation(),E(K)};return typeof x=="function"?J(le,we,ee,de,Se):k(K,we,ee,de,Se)},Y=function(K){if(!o.length)return null;var ee=typeof $=="function"?$(K):$;return typeof x=="function"?J(void 0,ee,!1,!1,void 0,!0):k({title:ee},ee,!1)},U=u.createElement("div",{className:"".concat(z,"-search"),style:{width:W},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},u.createElement(hh,{ref:l,open:a,prefixCls:n,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:Z,activeDescendantId:p,value:V,onKeyDown:I,onMouseDown:P,onChange:O,onPaste:R,onCompositionStart:M,onCompositionEnd:F,onBlur:N,tabIndex:m,attrs:En(t,!0)}),u.createElement("span",{ref:A,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},V,"\xA0")),re=u.createElement(Ma,{prefixCls:"".concat(z,"-overflow"),data:o,renderItem:ae,renderRest:Y,suffix:U,itemKey:nO,maxCount:y});return u.createElement("span",{className:"".concat(z,"-wrap")},re,!o.length&&!V&&u.createElement("span",{className:"".concat(z,"-placeholder")},c))},aO=function(t){var r=t.inputElement,n=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,v=t.values,h=t.placeholder,g=t.tabIndex,p=t.showSearch,m=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,C=t.onInputMouseDown,$=t.onInputChange,x=t.onInputPaste,w=t.onInputCompositionStart,E=t.onInputCompositionEnd,O=t.onInputBlur,R=t.title,I=u.useState(!1),P=X(I,2),M=P[0],F=P[1],N=d==="combobox",A=N||p,_=v[0],D=m||"";N&&b&&!M&&(D=b),u.useEffect(function(){N&&F(!1)},[N,b]);var W=d!=="combobox"&&!f&&!p?!1:!!D,G=R===void 0?bh(_):R,L=u.useMemo(function(){return _?null:u.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:W?{visibility:"hidden"}:void 0},h)},[_,W,h,n]);return u.createElement("span",{className:"".concat(n,"-selection-wrap")},u.createElement("span",{className:"".concat(n,"-selection-search")},u.createElement(hh,{ref:a,prefixCls:n,id:o,open:f,inputElement:r,disabled:i,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:D,onKeyDown:S,onMouseDown:C,onChange:function(q){F(!0),$(q)},onPaste:x,onCompositionStart:w,onCompositionEnd:E,onBlur:O,tabIndex:g,attrs:En(t,!0),maxLength:N?y:void 0})),!N&&_?u.createElement("span",{className:"".concat(n,"-selection-item"),title:G,style:W?{visibility:"hidden"}:void 0},_.label):null,L)},iO=function(t,r){var n=Fe(null),o=Fe(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,d=t.disabled,f=t.prefix,v=t.autoClearSearchValue,h=t.onSearch,g=t.onSearchSubmit,p=t.onToggleOpen,m=t.onInputKeyDown,b=t.onInputBlur,y=t.domRef;u.useImperativeHandle(r,function(){return{focus:function(G){n.current.focus(G)},blur:function(){n.current.blur()}}});var S=fh(0),C=X(S,2),$=C[0],x=C[1],w=function(G){var L=G.which,B=n.current instanceof HTMLTextAreaElement;!B&&i&&(L===_e.UP||L===_e.DOWN)&&G.preventDefault(),m&&m(G),L===_e.ENTER&&s==="tags"&&!o.current&&!i&&(g==null||g(G.target.value)),!(B&&!i&&~[_e.UP,_e.DOWN,_e.LEFT,_e.RIGHT].indexOf(L))&&DE(L)&&p(!0)},E=function(){x(!0)},O=Fe(null),R=function(G){h(G,!0,o.current)!==!1&&p(!0)},I=function(){o.current=!0},P=function(G){o.current=!1,s!=="combobox"&&R(G.target.value)},M=function(G){var L=G.target.value;if(c&&O.current&&/[\r\n]/.test(O.current)){var B=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(B,O.current)}O.current=null,R(L)},F=function(G){var L=G.clipboardData,B=L==null?void 0:L.getData("text");O.current=B||""},N=function(G){var L=G.target;if(L!==n.current){var B=document.body.style.msTouchAction!==void 0;B?setTimeout(function(){n.current.focus()}):n.current.focus()}},A=function(G){var L=$();G.target!==n.current&&!L&&!(s==="combobox"&&d)&&G.preventDefault(),(s!=="combobox"&&(!l||!L)||!i)&&(i&&v!==!1&&h("",!0,!1),p())},_={inputRef:n,onInputKeyDown:w,onInputMouseDown:E,onInputChange:M,onInputPaste:F,onInputCompositionStart:I,onInputCompositionEnd:P,onInputBlur:b},D=s==="multiple"||s==="tags"?u.createElement(oO,Be({},t,_)):u.createElement(aO,Be({},t,_));return u.createElement("div",{ref:y,className:"".concat(a,"-selector"),onClick:N,onMouseDown:A},f&&u.createElement("div",{className:"".concat(a,"-prefix")},f),D)},sO=u.forwardRef(iO);function lO(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,a=n||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,d=o.y,f=d===void 0?0:d,v=u.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],p=r.points[1],m=g[0],b=g[1],y=p[0],S=p[1];m===y||!["t","b"].includes(m)?h.top=f:m==="t"?h.top=0:h.bottom=0,b===S||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0}return u.createElement("div",{ref:v,className:oe("".concat(t,"-arrow"),i),style:h},s)}function cO(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?u.createElement(Mn,Be({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return u.createElement("div",{style:{zIndex:n},className:oe("".concat(t,"-mask"),s)})}):null}var uO=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),dO=u.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,h=e.arrow,g=e.arrowPos,p=e.align,m=e.motion,b=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,C=e.autoDestroy,$=e.portal,x=e.zIndex,w=e.onMouseEnter,E=e.onMouseLeave,O=e.onPointerEnter,R=e.onPointerDownCapture,I=e.ready,P=e.offsetX,M=e.offsetY,F=e.offsetR,N=e.offsetB,A=e.onAlign,_=e.onPrepare,D=e.stretch,W=e.targetWidth,G=e.targetHeight,L=typeof r=="function"?r():r,B=l||c,q=(S==null?void 0:S.length)>0,H=u.useState(!S||!q),z=X(H,2),V=z[0],Z=z[1];if(Ct(function(){!V&&q&&i&&Z(!0)},[V,q,i]),!V)return null;var k="auto",J={left:"-1000vw",top:"-1000vh",right:k,bottom:k};if(I||!l){var ae,Y=p.points,U=p.dynamicInset||((ae=p._experimental)===null||ae===void 0?void 0:ae.dynamicInset),re=U&&Y[0][1]==="r",se=U&&Y[0][0]==="b";re?(J.right=F,J.left=k):(J.left=P,J.right=k),se?(J.bottom=N,J.top=k):(J.top=M,J.bottom=k)}var K={};return D&&(D.includes("height")&&G?K.height=G:D.includes("minHeight")&&G&&(K.minHeight=G),D.includes("width")&&W?K.width=W:D.includes("minWidth")&&W&&(K.minWidth=W)),l||(K.pointerEvents="none"),u.createElement($,{open:y||B,getContainer:S&&function(){return S(i)},autoDestroy:C},u.createElement(cO,{prefixCls:o,open:l,zIndex:x,mask:v,motion:b}),u.createElement(In,{onResize:A,disabled:!l},function(ee){return u.createElement(Mn,Be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:_,onEnterPrepare:_,visible:l,onVisibleChanged:function(le){var de;m==null||(de=m.onVisibleChanged)===null||de===void 0||de.call(m,le),s(le)}}),function(fe,le){var de=fe.className,we=fe.style,be=oe(o,de,n);return u.createElement("div",{ref:Hr(ee,t,le),className:be,style:j(j(j(j({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},J),K),we),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:w,onMouseLeave:E,onPointerEnter:O,onClick:f,onPointerDownCapture:R},h&&u.createElement(lO,{prefixCls:o,arrow:h,arrowPos:g,align:p}),u.createElement(uO,{cache:!l&&!d},L))})}))}),fO=u.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Qn(r),a=u.useCallback(function(s){Ac(t,n?n(s):s)},[n]),i=Do(a,$a(r));return o?u.cloneElement(r,{ref:i}):r}),If=u.createContext(null);function Pf(e){return e?Array.isArray(e)?e:[e]:[]}function mO(e,t,r,n){return u.useMemo(function(){var o=Pf(r??t),a=Pf(n??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function vO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function gO(e,t,r,n){for(var o=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(vO((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function Mf(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Ta(e){return e.ownerDocument.defaultView}function bc(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=Ta(r).getComputedStyle(r),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function pa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ko(e){return pa(parseFloat(e),0)}function Tf(e,t){var r=j({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Ta(n).getComputedStyle(n),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,h=n.clientHeight,g=n.offsetWidth,p=n.clientWidth,m=Ko(s),b=Ko(l),y=Ko(c),S=Ko(d),C=pa(Math.round(f.width/g*1e3)/1e3),$=pa(Math.round(f.height/v*1e3)/1e3),x=(g-p-y-S)*C,w=(v-h-m-b)*$,E=m*$,O=b*$,R=y*C,I=S*C,P=0,M=0;if(a==="clip"){var F=Ko(i);P=F*C,M=F*$}var N=f.x+R-P,A=f.y+E-M,_=N+f.width+2*P-R-I-x,D=A+f.height+2*M-E-O-w;r.left=Math.max(r.left,N),r.top=Math.max(r.top,A),r.right=Math.min(r.right,_),r.bottom=Math.min(r.bottom,D)}}),r}function Nf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Ff(e,t){var r=t||[],n=X(r,2),o=n[0],a=n[1];return[Nf(e.width,o),Nf(e.height,a)]}function _f(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function lo(e,t){var r=t[0],n=t[1],o,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function hn(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function hO(e,t,r,n,o,a,i){var s=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=X(s,2),c=l[0],d=l[1],f=u.useRef(0),v=u.useMemo(function(){return t?bc(t):[]},[t]),h=u.useRef({}),g=function(){h.current={}};e||g();var p=Bt(function(){if(t&&r&&e){let Nr=function(Wo,an){var gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,ko=B.x+Wo,Da=B.y+an,ys=ko+se,Ss=Da+re,Cs=Math.max(ko,gn.left),De=Math.max(Da,gn.top),Ye=Math.min(ys,gn.right),Tt=Math.min(Ss,gn.bottom);return Math.max(0,(Ye-Cs)*(Tt-De))},to=function(){Nt=B.y+Qe,Mt=Nt+re,rr=B.x+ke,Rt=rr+se};var y,S,C,$,x=t,w=x.ownerDocument,E=Ta(x),O=E.getComputedStyle(x),R=O.position,I=x.style.left,P=x.style.top,M=x.style.right,F=x.style.bottom,N=x.style.overflow,A=j(j({},o[n]),a),_=w.createElement("div");(y=x.parentElement)===null||y===void 0||y.appendChild(_),_.style.left="".concat(x.offsetLeft,"px"),_.style.top="".concat(x.offsetTop,"px"),_.style.position=R,_.style.height="".concat(x.offsetHeight,"px"),_.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var D;if(Array.isArray(r))D={x:r[0],y:r[1],width:0,height:0};else{var W,G,L=r.getBoundingClientRect();L.x=(W=L.x)!==null&&W!==void 0?W:L.left,L.y=(G=L.y)!==null&&G!==void 0?G:L.top,D={x:L.x,y:L.y,width:L.width,height:L.height}}var B=x.getBoundingClientRect(),q=E.getComputedStyle(x),H=q.height,z=q.width;B.x=(S=B.x)!==null&&S!==void 0?S:B.left,B.y=(C=B.y)!==null&&C!==void 0?C:B.top;var V=w.documentElement,Z=V.clientWidth,k=V.clientHeight,J=V.scrollWidth,ae=V.scrollHeight,Y=V.scrollTop,U=V.scrollLeft,re=B.height,se=B.width,K=D.height,ee=D.width,fe={left:0,top:0,right:Z,bottom:k},le={left:-U,top:-Y,right:J-U,bottom:ae-Y},de=A.htmlRegion,we="visible",be="visibleFirst";de!=="scroll"&&de!==be&&(de=we);var Se=de===be,me=Tf(le,v),te=Tf(fe,v),xe=de===we?te:me,ze=Se?te:xe;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ae=x.getBoundingClientRect();x.style.left=I,x.style.top=P,x.style.right=M,x.style.bottom=F,x.style.overflow=N,($=x.parentElement)===null||$===void 0||$.removeChild(_);var Me=pa(Math.round(se/parseFloat(z)*1e3)/1e3),Ee=pa(Math.round(re/parseFloat(H)*1e3)/1e3);if(Me===0||Ee===0||ia(r)&&!Qc(r))return;var He=A.offset,Te=A.targetOffset,Le=Ff(B,He),Oe=X(Le,2),Ce=Oe[0],Ve=Oe[1],Ze=Ff(D,Te),We=X(Ze,2),et=We[0],lt=We[1];D.x-=et,D.y-=lt;var Ot=A.points||[],Pt=X(Ot,2),$e=Pt[0],Re=Pt[1],Ge=_f(Re),Pe=_f($e),Xe=lo(D,Ge),ct=lo(B,Pe),nt=j({},A),ke=Xe.x-ct.x+Ce,Qe=Xe.y-ct.y+Ve,ut=Nr(ke,Qe),ye=Nr(ke,Qe,te),ue=lo(D,["t","l"]),ce=lo(B,["t","l"]),ge=lo(D,["b","r"]),qe=lo(B,["b","r"]),je=A.overflow||{},it=je.adjustX,vt=je.adjustY,pt=je.shiftX,gt=je.shiftY,Lt=function(an){return typeof an=="boolean"?an:an>=0},Nt,Mt,rr,Rt;to();var jt=Lt(vt),pe=Pe[0]===Ge[0];if(jt&&Pe[0]==="t"&&(Mt>ze.bottom||h.current.bt)){var Ne=Qe;pe?Ne-=re-K:Ne=ue.y-qe.y-Ve;var Ie=Nr(ke,Ne),he=Nr(ke,Ne,te);Ie>ut||Ie===ut&&(!Se||he>=ye)?(h.current.bt=!0,Qe=Ne,Ve=-Ve,nt.points=[hn(Pe,0),hn(Ge,0)]):h.current.bt=!1}if(jt&&Pe[0]==="b"&&(Nt<ze.top||h.current.tb)){var Ke=Qe;pe?Ke+=re-K:Ke=ge.y-ce.y-Ve;var dt=Nr(ke,Ke),ht=Nr(ke,Ke,te);dt>ut||dt===ut&&(!Se||ht>=ye)?(h.current.tb=!0,Qe=Ke,Ve=-Ve,nt.points=[hn(Pe,0),hn(Ge,0)]):h.current.tb=!1}var Gt=Lt(it),Qt=Pe[1]===Ge[1];if(Gt&&Pe[1]==="l"&&(Rt>ze.right||h.current.rl)){var Ft=ke;Qt?Ft-=se-ee:Ft=ue.x-qe.x-Ce;var _t=Nr(Ft,Qe),lr=Nr(Ft,Qe,te);_t>ut||_t===ut&&(!Se||lr>=ye)?(h.current.rl=!0,ke=Ft,Ce=-Ce,nt.points=[hn(Pe,1),hn(Ge,1)]):h.current.rl=!1}if(Gt&&Pe[1]==="r"&&(rr<ze.left||h.current.lr)){var nr=ke;Qt?nr+=se-ee:nr=ge.x-ce.x-Ce;var cr=Nr(nr,Qe),yr=Nr(nr,Qe,te);cr>ut||cr===ut&&(!Se||yr>=ye)?(h.current.lr=!0,ke=nr,Ce=-Ce,nt.points=[hn(Pe,1),hn(Ge,1)]):h.current.lr=!1}to();var ur=pt===!0?0:pt;typeof ur=="number"&&(rr<te.left&&(ke-=rr-te.left-Ce,D.x+ee<te.left+ur&&(ke+=D.x-te.left+ee-ur)),Rt>te.right&&(ke-=Rt-te.right-Ce,D.x>te.right-ur&&(ke+=D.x-te.right+ur)));var Yr=gt===!0?0:gt;typeof Yr=="number"&&(Nt<te.top&&(Qe-=Nt-te.top-Ve,D.y+K<te.top+Yr&&(Qe+=D.y-te.top+K-Yr)),Mt>te.bottom&&(Qe-=Mt-te.bottom-Ve,D.y>te.bottom-Yr&&(Qe+=D.y-te.bottom+Yr)));var Qr=B.x+ke,Jr=Qr+se,mn=B.y+Qe,Fn=mn+re,ot=D.x,Je=ot+ee,Kt=D.y,Jt=Kt+K,At=Math.max(Qr,ot),zt=Math.min(Jr,Je),$r=(At+zt)/2,Sr=$r-Qr,Tr=Math.max(mn,Kt),Zr=Math.min(Fn,Jt),Wr=(Tr+Zr)/2,vn=Wr-mn;i==null||i(t,nt);var gr=Ae.right-B.x-(ke+B.width),Vo=Ae.bottom-B.y-(Qe+B.height);Me===1&&(ke=Math.round(ke),gr=Math.round(gr)),Ee===1&&(Qe=Math.round(Qe),Vo=Math.round(Vo));var bs={ready:!0,offsetX:ke/Me,offsetY:Qe/Ee,offsetR:gr/Me,offsetB:Vo/Ee,arrowX:Sr/Me,arrowY:vn/Ee,scaleX:Me,scaleY:Ee,align:nt};d(bs)}}),m=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&p()})},b=function(){d(function(S){return j(j({},S),{},{ready:!1})})};return Ct(b,[n]),Ct(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function pO(e,t,r,n,o){Ct(function(){if(e&&t&&r){let f=function(){n(),o()};var a=t,i=r,s=bc(a),l=bc(i),c=Ta(i),d=new Set([c].concat(ve(s),ve(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,r])}function bO(e,t,r,n,o,a,i,s){var l=u.useRef(e);l.current=e;var c=u.useRef(!1);u.useEffect(function(){if(t&&n&&(!o||a)){var f=function(){c.current=!1},v=function(m){var b;l.current&&!i(((b=m.composedPath)===null||b===void 0||(b=b.call(m))===null||b===void 0?void 0:b[0])||m.target)&&!c.current&&s(!1)},h=Ta(n);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",v,!0),h.addEventListener("contextmenu",v,!0);var g=Ti(r);return g&&(g.addEventListener("mousedown",v,!0),g.addEventListener("contextmenu",v,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",v,!0),h.removeEventListener("contextmenu",v,!0),g&&(g.removeEventListener("mousedown",v,!0),g.removeEventListener("contextmenu",v,!0))}}},[t,r,n,o,a]);function d(){c.current=!0}return d}var yO=["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 SO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nu,t=u.forwardRef(function(r,n){var o=r.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,h=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,p=r.mouseEnterDelay,m=r.mouseLeaveDelay,b=m===void 0?.1:m,y=r.focusDelay,S=r.blurDelay,C=r.mask,$=r.maskClosable,x=$===void 0?!0:$,w=r.getPopupContainer,E=r.forceRender,O=r.autoDestroy,R=r.destroyPopupOnHide,I=r.popup,P=r.popupClassName,M=r.popupStyle,F=r.popupPlacement,N=r.builtinPlacements,A=N===void 0?{}:N,_=r.popupAlign,D=r.zIndex,W=r.stretch,G=r.getPopupClassNameFromAlign,L=r.fresh,B=r.alignPoint,q=r.onPopupClick,H=r.onPopupAlign,z=r.arrow,V=r.popupMotion,Z=r.maskMotion,k=r.popupTransitionName,J=r.popupAnimation,ae=r.maskTransitionName,Y=r.maskAnimation,U=r.className,re=r.getTriggerDOMNode,se=ft(r,yO),K=O||R||!1,ee=u.useState(!1),fe=X(ee,2),le=fe[0],de=fe[1];Ct(function(){de(cu())},[]);var we=u.useRef({}),be=u.useContext(If),Se=u.useMemo(function(){return{registerSubPopup:function(Ye,Tt){we.current[Ye]=Tt,be==null||be.registerSubPopup(Ye,Tt)}}},[be]),me=ou(),te=u.useState(null),xe=X(te,2),ze=xe[0],Ae=xe[1],Me=u.useRef(null),Ee=Bt(function(De){Me.current=De,ia(De)&&ze!==De&&Ae(De),be==null||be.registerSubPopup(me,De)}),He=u.useState(null),Te=X(He,2),Le=Te[0],Oe=Te[1],Ce=u.useRef(null),Ve=Bt(function(De){ia(De)&&Le!==De&&(Oe(De),Ce.current=De)}),Ze=u.Children.only(i),We=(Ze==null?void 0:Ze.props)||{},et={},lt=Bt(function(De){var Ye,Tt,Xt=Le;return(Xt==null?void 0:Xt.contains(De))||((Ye=Ti(Xt))===null||Ye===void 0?void 0:Ye.host)===De||De===Xt||(ze==null?void 0:ze.contains(De))||((Tt=Ti(ze))===null||Tt===void 0?void 0:Tt.host)===De||De===ze||Object.values(we.current).some(function(Dt){return(Dt==null?void 0:Dt.contains(De))||De===Dt})}),Ot=Mf(a,V,J,k),Pt=Mf(a,Z,Y,ae),$e=u.useState(v||!1),Re=X($e,2),Ge=Re[0],Pe=Re[1],Xe=f??Ge,ct=Bt(function(De){f===void 0&&Pe(De)});Ct(function(){Pe(f||!1)},[f]);var nt=u.useRef(Xe);nt.current=Xe;var ke=u.useRef([]);ke.current=[];var Qe=Bt(function(De){var Ye;ct(De),((Ye=ke.current[ke.current.length-1])!==null&&Ye!==void 0?Ye:Xe)!==De&&(ke.current.push(De),h==null||h(De))}),ut=u.useRef(),ye=function(){clearTimeout(ut.current)},ue=function(Ye){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ye(),Tt===0?Qe(Ye):ut.current=setTimeout(function(){Qe(Ye)},Tt*1e3)};u.useEffect(function(){return ye},[]);var ce=u.useState(!1),ge=X(ce,2),qe=ge[0],je=ge[1];Ct(function(De){(!De||Xe)&&je(!0)},[Xe]);var it=u.useState(null),vt=X(it,2),pt=vt[0],gt=vt[1],Lt=u.useState(null),Nt=X(Lt,2),Mt=Nt[0],rr=Nt[1],Rt=function(Ye){rr([Ye.clientX,Ye.clientY])},jt=hO(Xe,ze,B&&Mt!==null?Mt:Le,F,A,_,H),pe=X(jt,11),Ne=pe[0],Ie=pe[1],he=pe[2],Ke=pe[3],dt=pe[4],ht=pe[5],Gt=pe[6],Qt=pe[7],Ft=pe[8],_t=pe[9],lr=pe[10],nr=mO(le,l,c,d),cr=X(nr,2),yr=cr[0],ur=cr[1],Yr=yr.has("click"),Qr=ur.has("click")||ur.has("contextMenu"),Jr=Bt(function(){qe||lr()}),mn=function(){nt.current&&B&&Qr&&ue(!1)};pO(Xe,Le,ze,Jr,mn),Ct(function(){Jr()},[Mt,F]),Ct(function(){Xe&&!(A!=null&&A[F])&&Jr()},[JSON.stringify(_)]);var Fn=u.useMemo(function(){var De=gO(A,a,_t,B);return oe(De,G==null?void 0:G(_t))},[_t,G,A,a,B]);u.useImperativeHandle(n,function(){return{nativeElement:Ce.current,popupElement:Me.current,forceAlign:Jr}});var ot=u.useState(0),Je=X(ot,2),Kt=Je[0],Jt=Je[1],At=u.useState(0),zt=X(At,2),$r=zt[0],Sr=zt[1],Tr=function(){if(W&&Le){var Ye=Le.getBoundingClientRect();Jt(Ye.width),Sr(Ye.height)}},Zr=function(){Tr(),Jr()},Wr=function(Ye){je(!1),lr(),g==null||g(Ye)},vn=function(){return new Promise(function(Ye){Tr(),gt(function(){return Ye})})};Ct(function(){pt&&(lr(),pt(),gt(null))},[pt]);function gr(De,Ye,Tt,Xt){et[De]=function(Dt){var Ba;Xt==null||Xt(Dt),ue(Ye,Tt);for(var ws=arguments.length,wu=new Array(ws>1?ws-1:0),La=1;La<ws;La++)wu[La-1]=arguments[La];(Ba=We[De])===null||Ba===void 0||Ba.call.apply(Ba,[We,Dt].concat(wu))}}(Yr||Qr)&&(et.onClick=function(De){var Ye;nt.current&&Qr?ue(!1):!nt.current&&Yr&&(Rt(De),ue(!0));for(var Tt=arguments.length,Xt=new Array(Tt>1?Tt-1:0),Dt=1;Dt<Tt;Dt++)Xt[Dt-1]=arguments[Dt];(Ye=We.onClick)===null||Ye===void 0||Ye.call.apply(Ye,[We,De].concat(Xt))});var Vo=bO(Xe,Qr,Le,ze,C,x,lt,ue),bs=yr.has("hover"),Nr=ur.has("hover"),to,Wo;bs&&(gr("onMouseEnter",!0,p,function(De){Rt(De)}),gr("onPointerEnter",!0,p,function(De){Rt(De)}),to=function(Ye){(Xe||qe)&&ze!==null&&ze!==void 0&&ze.contains(Ye.target)&&ue(!0,p)},B&&(et.onMouseMove=function(De){var Ye;(Ye=We.onMouseMove)===null||Ye===void 0||Ye.call(We,De)})),Nr&&(gr("onMouseLeave",!1,b),gr("onPointerLeave",!1,b),Wo=function(){ue(!1,b)}),yr.has("focus")&&gr("onFocus",!0,y),ur.has("focus")&&gr("onBlur",!1,S),yr.has("contextMenu")&&(et.onContextMenu=function(De){var Ye;nt.current&&ur.has("contextMenu")?ue(!1):(Rt(De),ue(!0)),De.preventDefault();for(var Tt=arguments.length,Xt=new Array(Tt>1?Tt-1:0),Dt=1;Dt<Tt;Dt++)Xt[Dt-1]=arguments[Dt];(Ye=We.onContextMenu)===null||Ye===void 0||Ye.call.apply(Ye,[We,De].concat(Xt))}),U&&(et.className=oe(We.className,U));var an=u.useRef(!1);an.current||(an.current=E||Xe||qe);var gn=j(j({},We),et),ko={},Da=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Da.forEach(function(De){se[De]&&(ko[De]=function(){for(var Ye,Tt=arguments.length,Xt=new Array(Tt),Dt=0;Dt<Tt;Dt++)Xt[Dt]=arguments[Dt];(Ye=gn[De])===null||Ye===void 0||Ye.call.apply(Ye,[gn].concat(Xt)),se[De].apply(se,Xt)})});var ys=u.cloneElement(Ze,j(j({},gn),ko)),Ss={x:ht,y:Gt},Cs=z?j({},z!==!0?z:{}):null;return u.createElement(u.Fragment,null,u.createElement(In,{disabled:!Xe,ref:Ve,onResize:Zr},u.createElement(fO,{getTriggerDOMNode:re},ys)),an.current&&u.createElement(If.Provider,{value:Se},u.createElement(dO,{portal:e,ref:Ee,prefixCls:a,popup:I,className:oe(P,Fn),style:M,target:Le,onMouseEnter:to,onMouseLeave:Wo,onPointerEnter:to,zIndex:D,open:Xe,keepDom:qe,fresh:L,onClick:q,onPointerDownCapture:Vo,mask:C,motion:Ot,maskMotion:Pt,onVisibleChanged:Wr,onPrepare:vn,forceRender:E,autoDestroy:K,getPopupContainer:w,align:_t,arrow:Cs,arrowPos:Ss,ready:Ne,offsetX:Ie,offsetY:he,offsetR:Ke,offsetB:dt,onAlign:Jr,stretch:W,targetWidth:Kt/Qt,targetHeight:$r/Ft})))});return t}const yh=SO(nu);var CO=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],wO=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},xO=function(t,r){var n=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,v=f===void 0?"ltr":f,h=t.placement,g=t.builtinPlacements,p=t.dropdownMatchSelectWidth,m=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,S=t.empty,C=t.getTriggerDOMNode,$=t.onPopupVisibleChange,x=t.onPopupMouseEnter,w=ft(t,CO),E="".concat(n,"-dropdown"),O=i;m&&(O=m(i));var R=u.useMemo(function(){return g||wO(p)},[g,p]),I=s?"".concat(E,"-").concat(s):l,P=typeof p=="number",M=u.useMemo(function(){return P?null:p===!1?"minWidth":"width"},[p,P]),F=c;P&&(F=j(j({},F),{},{width:p}));var N=u.useRef(null);return u.useImperativeHandle(r,function(){return{getPopupElement:function(){var _;return(_=N.current)===null||_===void 0?void 0:_.popupElement}}}),u.createElement(yh,Be({},w,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:h||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:E,popupTransitionName:I,popup:u.createElement("div",{onMouseEnter:x},O),ref:N,stretch:M,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:oe(d,T({},"".concat(E,"-empty"),S)),popupStyle:F,getTriggerDOMNode:C,onPopupVisibleChange:$}),a)},$O=u.forwardRef(xO);function Af(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r??(n!==void 0?n:"rc-index-key-".concat(t))}function yc(e){return typeof e<"u"&&!Number.isNaN(e)}function Sh(e,t){var r=e||{},n=r.label,o=r.value,a=r.options,i=r.groupLabel,s=n||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function EO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],a=Sh(r,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function d(f,v){Array.isArray(f)&&f.forEach(function(h){if(v||!(l in h)){var g=h[s];o.push({key:Af(h,o.length),groupOption:v,data:h,label:h[i],value:g})}else{var p=h[c];p===void 0&&n&&(p=h.label),o.push({key:Af(h,o.length),group:!0,data:h,label:p}),d(h[l],!0)}})}return d(e,!1),o}function Sc(e){var t=j({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return or(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var OO=function(t,r,n){if(!r||!r.length)return null;var o=!1,a=function s(l,c){var d=Xv(c),f=d[0],v=d.slice(1);if(!f)return[l];var h=l.split(f);return o=o||h.length>1,h.reduce(function(g,p){return[].concat(ve(g),ve(s(p,v)))},[]).filter(Boolean)},i=a(t,r);return o?typeof n<"u"?i.slice(0,n):i:null},uu=u.createContext(null);function RO(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(Ue(a))?a:i}).join(", ")),r.length>n?", ...":null)}var IO=["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"],PO=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Cc=function(t){return t==="tags"||t==="multiple"},MO=u.forwardRef(function(e,t){var r,n=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,v=e.emptyOptions,h=e.notFoundContent,g=h===void 0?"Not Found":h,p=e.onClear,m=e.mode,b=e.disabled,y=e.loading,S=e.getInputElement,C=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,E=e.activeValue,O=e.onActiveValueChange,R=e.activeDescendantId,I=e.searchValue,P=e.autoClearSearchValue,M=e.onSearch,F=e.onSearchSplit,N=e.tokenSeparators,A=e.allowClear,_=e.prefix,D=e.suffixIcon,W=e.clearIcon,G=e.OptionList,L=e.animation,B=e.transitionName,q=e.dropdownStyle,H=e.dropdownClassName,z=e.dropdownMatchSelectWidth,V=e.dropdownRender,Z=e.dropdownAlign,k=e.placement,J=e.builtinPlacements,ae=e.getPopupContainer,Y=e.showAction,U=Y===void 0?[]:Y,re=e.onFocus,se=e.onBlur,K=e.onKeyUp,ee=e.onKeyDown,fe=e.onMouseDown,le=ft(e,IO),de=Cc(m),we=(i!==void 0?i:de)||m==="combobox",be=j({},le);PO.forEach(function(ot){delete be[ot]}),c==null||c.forEach(function(ot){delete be[ot]});var Se=u.useState(!1),me=X(Se,2),te=me[0],xe=me[1];u.useEffect(function(){xe(cu())},[]);var ze=u.useRef(null),Ae=u.useRef(null),Me=u.useRef(null),Ee=u.useRef(null),He=u.useRef(null),Te=u.useRef(!1),Le=AE(),Oe=X(Le,3),Ce=Oe[0],Ve=Oe[1],Ze=Oe[2];u.useImperativeHandle(t,function(){var ot,Je;return{focus:(ot=Ee.current)===null||ot===void 0?void 0:ot.focus,blur:(Je=Ee.current)===null||Je===void 0?void 0:Je.blur,scrollTo:function(Jt){var At;return(At=He.current)===null||At===void 0?void 0:At.scrollTo(Jt)},nativeElement:ze.current||Ae.current}});var We=u.useMemo(function(){var ot;if(m!=="combobox")return I;var Je=(ot=d[0])===null||ot===void 0?void 0:ot.value;return typeof Je=="string"||typeof Je=="number"?String(Je):""},[I,m,d]),et=m==="combobox"&&typeof S=="function"&&S()||null,lt=typeof C=="function"&&C(),Ot=Do(Ae,lt==null||(r=lt.props)===null||r===void 0?void 0:r.ref),Pt=u.useState(!1),$e=X(Pt,2),Re=$e[0],Ge=$e[1];Ct(function(){Ge(!0)},[]);var Pe=zr(!1,{defaultValue:x,value:$}),Xe=X(Pe,2),ct=Xe[0],nt=Xe[1],ke=Re?ct:!1,Qe=!g&&v;(b||Qe&&ke&&m==="combobox")&&(ke=!1);var ut=Qe?!1:ke,ye=u.useCallback(function(ot){var Je=ot!==void 0?ot:!ke;b||(nt(Je),ke!==Je&&(w==null||w(Je)))},[b,ke,nt,w]),ue=u.useMemo(function(){return(N||[]).some(function(ot){return[`
192
192
  `,`\r
@@ -216,7 +216,7 @@ html body {
216
216
  `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ie(n)}`,[`${r}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:ie(a)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ie(n)}`,"&:after":{display:"none"}}}}}}}function ER(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[nl(e),nl(Et(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ie(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
217
217
  &${t}-show-arrow ${t}-selection-item,
218
218
  &${t}-show-arrow ${t}-selection-placeholder
219
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},nl(Et(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const OR=e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:v,controlItemBgHover:h,colorBgContainer:g,colorFillSecondary:p,colorBgContainerDisabled:m,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:S,controlOutline:C}=e,$=s*2,x=n*2,w=Math.min(o-$,o-x),E=Math.min(a-$,a-x),O=Math.min(i-$,i-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:v,optionActiveBg:h,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:i,multipleItemBg:p,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:E,multipleItemHeightLG:O,multipleSelectorBgDisabled:m,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:S,activeOutlineColor:C,selectAffixPadding:s}},Rh=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ie(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},Uf=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rh(e,t))}),RR=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Rh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Uf(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Uf(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:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ih=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Gf=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ih(e,t))}),IR=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ih(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Gf(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Gf(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),PR=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ie(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:`${ie(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}}}}),Ph=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${ie(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},Kf=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ph(e,t))}),MR=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ph(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Kf(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Kf(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:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),TR=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},RR(e)),IR(e)),PR(e)),MR(e))}),NR=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"}}}},FR=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"}}}},_R=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e,a={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},NR(e)),FR(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Yl),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Yl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Ra()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},AR=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},_R(e),ER(e),$R(e),yR(e),{[`${t}-rtl`]:{direction:"rtl"}},fs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},jR=sr("Select",(e,{rootPrefixCls:t})=>{const r=Et(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[AR(r),TR(r)]},OR,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var DR={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"},BR=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:DR}))},LR=u.forwardRef(BR),zR={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"},HR=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:zR}))},Mh=u.forwardRef(HR),VR={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"},WR=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:VR}))},Th=u.forwardRef(WR);function kR({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:d,componentName:f}){const v=t??u.createElement(Xc,null),h=b=>e===null&&!i&&!d?null:u.createElement(u.Fragment,null,l!==!1&&b,i&&c);let g=null;if(e!==void 0)g=h(e);else if(o)g=h(u.createElement(rs,{spin:!0}));else{const b=`${s}-suffix`;g=({open:y,showSearch:S})=>h(y&&S?u.createElement(Th,{className:b}):u.createElement(Mh,{className:b}))}let p=null;r!==void 0?p=r:a?p=u.createElement(LR,null):p=null;let m=null;return n!==void 0?m=n:m=u.createElement(Tg,null),{clearIcon:v,suffixIcon:g,itemIcon:p,removeIcon:m}}function qR(e){return ne.useMemo(()=>{if(e)return(...t)=>ne.createElement(To,{space:!0},e.apply(void 0,t))},[e])}function UR(e,t){return t!==void 0?t:e!==null}var GR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Nh="SECRET_COMBOBOX_MODE_DO_NOT_USE",KR=(e,t)=>{var r,n,o,a,i;const{prefixCls:s,bordered:l,className:c,rootClassName:d,getPopupContainer:f,popupClassName:v,dropdownClassName:h,listHeight:g=256,placement:p,listItemHeight:m,size:b,disabled:y,notFoundContent:S,status:C,builtinPlacements:$,dropdownMatchSelectWidth:x,popupMatchSelectWidth:w,direction:E,style:O,allowClear:R,variant:I,dropdownStyle:P,transitionName:M,tagRender:F,maxCount:N,prefix:A,dropdownRender:_,popupRender:D,onDropdownVisibleChange:W,onOpenChange:G,styles:L,classNames:B}=e,q=GR(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:H,getPrefixCls:z,renderEmpty:V,direction:Z,virtual:k,popupMatchSelectWidth:J,popupOverflow:ae}=u.useContext(wt),{showSearch:Y,style:U,styles:re,className:se,classNames:K}=Pn("select"),[,ee]=Vr(),fe=m??(ee==null?void 0:ee.controlHeight),le=z("select",s),de=z(),we=E??Z,{compactSize:be,compactItemClassnames:Se}=zo(le,we),[me,te]=vs("select",I,l),xe=fn(le),[ze,Ae,Me]=jR(le,xe),Ee=u.useMemo(()=>{const{mode:ge}=e;if(ge!=="combobox")return ge===Nh?"combobox":ge},[e.mode]),He=Ee==="multiple"||Ee==="tags",Te=UR(e.suffixIcon,e.showArrow),Le=(r=w??x)!==null&&r!==void 0?r:J,Oe=((n=L==null?void 0:L.popup)===null||n===void 0?void 0:n.root)||((o=re.popup)===null||o===void 0?void 0:o.root)||P,Ce=qR(D||_),Ve=G||W,{status:Ze,hasFeedback:We,isFormItemInput:et,feedbackIcon:lt}=u.useContext(pr),Ot=Na(Ze,C);let Pt;S!==void 0?Pt=S:Ee==="combobox"?Pt=null:Pt=(V==null?void 0:V("Select"))||u.createElement(hR,{componentName:"Select"});const{suffixIcon:$e,itemIcon:Re,removeIcon:Ge,clearIcon:Pe}=kR(Object.assign(Object.assign({},q),{multiple:He,hasFeedback:We,feedbackIcon:lt,showSuffixIcon:Te,prefixCls:le,componentName:"Select"})),Xe=R===!0?{clearIcon:Pe}:R,ct=Tn(q,["suffixIcon","itemIcon"]),nt=oe(((a=B==null?void 0:B.popup)===null||a===void 0?void 0:a.root)||((i=K==null?void 0:K.popup)===null||i===void 0?void 0:i.root)||v||h,{[`${le}-dropdown-${we}`]:we==="rtl"},d,K.root,B==null?void 0:B.root,Me,xe,Ae),ke=on(ge=>{var qe;return(qe=b??be)!==null&&qe!==void 0?qe:ge}),Qe=u.useContext(Mr),ut=y??Qe,ye=oe({[`${le}-lg`]:ke==="large",[`${le}-sm`]:ke==="small",[`${le}-rtl`]:we==="rtl",[`${le}-${me}`]:te,[`${le}-in-form-item`]:et},No(le,Ot,We),Se,se,c,K.root,B==null?void 0:B.root,d,Me,xe,Ae),ue=u.useMemo(()=>p!==void 0?p:we==="rtl"?"bottomRight":"bottomLeft",[p,we]),[ce]=Ag("SelectLike",Oe==null?void 0:Oe.zIndex);return ze(u.createElement(mu,Object.assign({ref:t,virtual:k,showSearch:Y},ct,{style:Object.assign(Object.assign(Object.assign(Object.assign({},re.root),L==null?void 0:L.root),U),O),dropdownMatchSelectWidth:Le,transitionName:Bg(de,"slide-up",M),builtinPlacements:bR($,ae),listHeight:g,listItemHeight:fe,mode:Ee,prefixCls:le,placement:ue,direction:we,prefix:A,suffixIcon:$e,menuItemSelectedIcon:Re,removeIcon:Ge,allowClear:Xe,notFoundContent:Pt,className:ye,getPopupContainer:f||H,dropdownClassName:nt,disabled:ut,dropdownStyle:Object.assign(Object.assign({},Oe),{zIndex:ce}),maxCount:He?N:void 0,tagRender:He?F:void 0,dropdownRender:Ce,onDropdownVisibleChange:Ve})))},Fa=u.forwardRef(KR),XR=NE(Fa,"dropdownAlign");Fa.SECRET_COMBOBOX_MODE_DO_NOT_USE=Nh;Fa.Option=fu;Fa.OptGroup=du;Fa._InternalPanelDoNotUseOrYouWillBeFired=XR;const YR=(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)},QR=(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)},ba=["xxl","xl","lg","md","sm","xs"],JR=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)`}),ZR=e=>{const t=e,r=[].concat(ba).reverse();return r.forEach((n,o)=>{const a=n.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<r.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[o+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e},eI=()=>{const[,e]=Vr(),t=JR(ZR(e));return ne.useMemo(()=>{const r=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,r.forEach(i=>i(o)),r.size>=1},subscribe(a){return r.size||this.register(),n+=1,r.set(n,a),a(o),n},unsubscribe(a){r.delete(a),r.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},l=window.matchMedia(i);YR(l,s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];QR(i==null?void 0:i.mql,i==null?void 0:i.listener)}),r.clear()}}},[t])};function tI(e=!0,t={}){const r=Fe(t),[,n]=vw(),o=eI();return Ct(()=>{const a=o.subscribe(i=>{r.current=i,e&&n()});return()=>o.unsubscribe(a)},[]),r.current}function Fh(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return u.createElement("div",{className:oe("".concat(r,"-content"),i),style:s},u.createElement("div",{className:oe("".concat(r,"-inner"),a),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var co={shiftX:64,adjustY:1},uo={adjustX:1,shiftY:!0},Ar=[0,0],rI={left:{points:["cr","cl"],overflow:uo,offset:[-4,0],targetOffset:Ar},right:{points:["cl","cr"],overflow:uo,offset:[4,0],targetOffset:Ar},top:{points:["bc","tc"],overflow:co,offset:[0,-4],targetOffset:Ar},bottom:{points:["tc","bc"],overflow:co,offset:[0,4],targetOffset:Ar},topLeft:{points:["bl","tl"],overflow:co,offset:[0,-4],targetOffset:Ar},leftTop:{points:["tr","tl"],overflow:uo,offset:[-4,0],targetOffset:Ar},topRight:{points:["br","tr"],overflow:co,offset:[0,-4],targetOffset:Ar},rightTop:{points:["tl","tr"],overflow:uo,offset:[4,0],targetOffset:Ar},bottomRight:{points:["tr","br"],overflow:co,offset:[0,4],targetOffset:Ar},rightBottom:{points:["bl","br"],overflow:uo,offset:[4,0],targetOffset:Ar},bottomLeft:{points:["tl","bl"],overflow:co,offset:[0,4],targetOffset:Ar},leftBottom:{points:["br","bl"],overflow:uo,offset:[-4,0],targetOffset:Ar}},nI=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],oI=function(t,r){var n=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,h=t.children,g=t.onVisibleChange,p=t.afterVisibleChange,m=t.transitionName,b=t.animation,y=t.motion,S=t.placement,C=S===void 0?"right":S,$=t.align,x=$===void 0?{}:$,w=t.destroyTooltipOnHide,E=w===void 0?!1:w,O=t.defaultVisible,R=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,M=t.id,F=t.showArrow,N=F===void 0?!0:F,A=t.classNames,_=t.styles,D=ft(t,nI),W=ou(M),G=Fe(null);Di(r,function(){return G.current});var L=j({},D);"visible"in t&&(L.popupVisible=t.visible);var B=function(){return u.createElement(Fh,{key:"content",prefixCls:v,id:W,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:j(j({},I),_==null?void 0:_.body)},P)},q=function(){var z=u.Children.only(h),V=(z==null?void 0:z.props)||{},Z=j(j({},V),{},{"aria-describedby":P?W:null});return u.cloneElement(h,Z)};return u.createElement(yh,Be({popupClassName:oe(n,A==null?void 0:A.root),prefixCls:v,popup:B,action:a,builtinPlacements:rI,popupPlacement:C,ref:G,popupAlign:x,getPopupContainer:R,onPopupVisibleChange:g,afterPopupVisibleChange:p,popupTransitionName:m,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:E,mouseLeaveDelay:c,popupStyle:j(j({},d),_==null?void 0:_.root),mouseEnterDelay:s,arrow:N},L),q())};const aI=dn(oI);function iI(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,a=0,i=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-c,v=d,h=2*o-s,g=l,p=2*o-a,m=i,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,C=`path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${h} ${g} A ${n} ${n} 0 0 0 ${p} ${m} Z')`;return{arrowShadowWidth:b,arrowPath:C,arrowPolygon:S}}const sI=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ie(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},_h=8;function Ah(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?_h:n}}function Ja(e,t){return e?t:{}}function lI(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},sI(e,t,o)),{"&:before":{background:t}})]},Ja(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),Ja(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function cI(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Xf={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"]}},uI={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"]}},dI=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function fI(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={},c=Ah({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Xf).forEach(d=>{const f=n&&uI[d]||Xf[d],v=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(l[d]=v,dI.has(d)&&(v.autoArrow=!1),d){case"top":case"topLeft":case"topRight":v.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=s+o;break}if(n)switch(d){case"topLeft":case"bottomLeft":v.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":v.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":v.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":v.offset[1]=c.arrowOffsetHorizontal*2-s;break}v.overflow=cI(d,c,t,r),i&&(v.htmlRegion="visibleFirst")}),l}const mI=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:v,sizePopupArrow:h}=e,g=t(i).add(h).add(v).equal(),p=t(i).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${r}-inner`]:{minWidth:p,minHeight:l,padding:`${ie(e.calc(d).div(2).equal())} ${ie(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(i,_h)}},[`${r}-content`]:{position:"relative"}}),e1(e,(m,{darkColor:b})=>({[`&${r}-${m}`]:{[`${r}-inner`]:{backgroundColor:b},[`${r}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},lI(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},vI=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ah({contentRadius:e.borderRadius,limitVerticalRadius:!0})),iI(Et(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),jh=(e,t=!0)=>sr("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=n,s=Et(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[mI(s),qg(n,"zoom-big-fast")]},vI,{resetStyle:!1,injectStyle:t})(e),gI=Xn.map(e=>`${e}-inverse`),hI=["success","processing","error","default","warning"];function pI(e,t=!0){return t?[].concat(ve(gI),ve(Xn)).includes(e):Xn.includes(e)}function ZM(e){return hI.includes(e)}function Dh(e,t){const r=pI(t),n=oe({[`${e}-${t}`]:t&&r}),o={},a={},i=_x(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:a}}const bI=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=u.useContext(wt),l=s("tooltip",t),[c,d,f]=jh(l),v=Dh(l,a),h=v.arrowStyle,g=Object.assign(Object.assign({},i),v.overlayStyle),p=oe(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return c(u.createElement("div",{className:p,style:h},u.createElement("div",{className:`${l}-arrow`}),u.createElement(Fh,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:g}),o)))};var yI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const SI=u.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:l,children:c,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:v,destroyOnHidden:h,arrow:g=!0,title:p,overlay:m,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0,motion:C,getPopupContainer:$,placement:x="top",mouseEnterDelay:w=.1,mouseLeaveDelay:E=.1,overlayStyle:O,rootClassName:R,overlayClassName:I,styles:P,classNames:M}=e,F=yI(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"]),N=!!g,[,A]=Vr(),{getPopupContainer:_,getPrefixCls:D,direction:W,className:G,style:L,classNames:B,styles:q}=Pn("tooltip"),H=Uc(),z=u.useRef(null),V=()=>{var Te;(Te=z.current)===null||Te===void 0||Te.forceAlign()};u.useImperativeHandle(t,()=>{var Te,Le;return{forceAlign:V,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:(Te=z.current)===null||Te===void 0?void 0:Te.nativeElement,popupElement:(Le=z.current)===null||Le===void 0?void 0:Le.popupElement}});const[Z,k]=zr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),J=!p&&!m&&p!==0,ae=Te=>{var Le,Oe;k(J?!1:Te),J||((Le=e.onOpenChange)===null||Le===void 0||Le.call(e,Te),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,Te))},Y=u.useMemo(()=>{var Te,Le;let Oe=y;return typeof g=="object"&&(Oe=(Le=(Te=g.pointAtCenter)!==null&&Te!==void 0?Te:g.arrowPointAtCenter)!==null&&Le!==void 0?Le:y),b||fI({arrowPointAtCenter:Oe,autoAdjustOverflow:S,arrowWidth:N?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[y,g,b,A]),U=u.useMemo(()=>p===0?p:m||p||"",[m,p]),re=u.createElement(To,{space:!0},typeof U=="function"?U():U),se=D("tooltip",o),K=D(),ee=e["data-popover-inject"];let fe=Z;!("open"in e)&&!("visible"in e)&&J&&(fe=!1);const le=u.isValidElement(c)&&!Ng(c)?c:u.createElement("span",null,c),de=le.props,we=!de.className||typeof de.className=="string"?oe(de.className,a||`${se}-open`):de.className,[be,Se,me]=jh(se,!ee),te=Dh(se,s),xe=te.arrowStyle,ze=oe(I,{[`${se}-rtl`]:W==="rtl"},te.className,R,Se,me,G,B.root,M==null?void 0:M.root),Ae=oe(B.body,M==null?void 0:M.body),[Me,Ee]=Ag("Tooltip",F.zIndex),He=u.createElement(aI,Object.assign({},F,{zIndex:Me,showArrow:N,placement:x,mouseEnterDelay:w,mouseLeaveDelay:E,prefixCls:se,classNames:{root:ze,body:Ae},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),q.root),L),O),P==null?void 0:P.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},q.body),l),P==null?void 0:P.body),te.overlayStyle)},getTooltipContainer:$||i||_,ref:z,builtinPlacements:Y,overlay:re,visible:fe,onVisibleChange:ae,afterVisibleChange:d??f,arrowContent:u.createElement("span",{className:`${se}-arrow-content`}),motion:{motionName:Bg(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!v}),fe?Mo(le,{className:we}):le);return be(u.createElement(Fg.Provider,{value:Ee},He))}),vu=SI;vu._InternalPanelDoNotUseOrYouWillBeFired=bI;var CI=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],wI=dn(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,a=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,v=e.title,h=e.onChange,g=ft(e,CI),p=Fe(null),m=Fe(null),b=zr(c,{value:i}),y=X(b,2),S=y[0],C=y[1];Di(t,function(){return{focus:function(E){var O;(O=p.current)===null||O===void 0||O.focus(E)},blur:function(){var E;(E=p.current)===null||E===void 0||E.blur()},input:p.current,nativeElement:m.current}});var $=oe(n,o,T(T({},"".concat(n,"-checked"),S),"".concat(n,"-disabled"),s)),x=function(E){s||("checked"in e||C(E.target.checked),h==null||h({target:j(j({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return u.createElement("span",{className:$,title:v,style:a,ref:m},u.createElement("input",Be({},g,{className:"".concat(n,"-input"),ref:p,onChange:x,disabled:s,checked:!!S,type:f})),u.createElement("span",{className:"".concat(n,"-inner")}))});function xI(e){const t=ne.useRef(null),r=()=>{mt.cancel(t.current),t.current=null};return[()=>{r(),t.current=mt(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),r()),e==null||e(a)}]}const $I=["parentNode"],EI="form_item";function na(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Bh(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:$I.includes(r)?`${EI}_${r}`:r}function Lh(e,t,r,n,o,a){let i=n;return a!==void 0?i=a:r.validating?i="validating":e.length?i="error":t.length?i="warning":(r.touched||o&&r.validated)&&(i="success"),i}var OI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Yf(e){return na(e).join("_")}function Qf(e,t){const r=t.getFieldInstance(e),n=bv(r);if(n)return n;const o=Bh(na(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function zh(e){const[t]=su(),r=u.useRef({}),n=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Yf(o);a?r.current[i]=a:delete r.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=OI(a,["focus"]),l=Qf(o,n);l&&(uw(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&n.focusField(o))},focusField:o=>{var a,i;const s=n.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Qf(o,n))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=Yf(o);return r.current[a]}}),[e,t]);return[n]}function _a(e){return Et(e,{inputAffixPadding:e.paddingXXS})}const Aa=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:p,controlOutline:m,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:S,inputFontSize:C,inputFontSizeLG:$,inputFontSizeSM:x}=e,w=C||r,E=x||w,O=$||s,R=Math.round((t-w*n)/2*10)/10-o,I=Math.round((a-E*n)/2*10)/10-o,P=Math.ceil((i-O*l)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(P,0),paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:v,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${p}px ${m}`,errorActiveShadow:`0 0 0 ${p}px ${b}`,warningActiveShadow:`0 0 0 ${p}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:w,inputFontSizeLG:O,inputFontSizeSM:E}},RI=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),gu=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({},RI(Et(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Hh=(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}}),Jf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Hh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Vh=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hh(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gu(e))}),Jf(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Jf(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Zf=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Wh=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Zf(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Zf(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},gu(e))}})}),kh=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},qh=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t==null?void 0:t.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},em=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Uh=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qh(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gu(e))}),em(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),em(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Gh=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},tm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tm(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Kh=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(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}}),rm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Kh(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`}}),Xh=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kh(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"}}),rm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),rm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Yh=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Qh=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Jh=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gs=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Yh(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Qh(e)),"&-sm":Object.assign({},Jh(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Zh=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Qh(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Jh(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},YC()),{[`${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},[`
219
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},nl(Et(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const OR=e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:v,controlItemBgHover:h,colorBgContainer:g,colorFillSecondary:p,colorBgContainerDisabled:m,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:S,controlOutline:C}=e,$=s*2,x=n*2,w=Math.min(o-$,o-x),E=Math.min(a-$,a-x),O=Math.min(i-$,i-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:v,optionActiveBg:h,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:i,multipleItemBg:p,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:E,multipleItemHeightLG:O,multipleSelectorBgDisabled:m,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:S,activeOutlineColor:C,selectAffixPadding:s}},Rh=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ie(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},Uf=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rh(e,t))}),RR=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Rh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Uf(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Uf(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:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ih=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Gf=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ih(e,t))}),IR=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ih(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Gf(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Gf(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),PR=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ie(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:`${ie(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}}}}),Ph=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${ie(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},Kf=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ph(e,t))}),MR=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ph(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Kf(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Kf(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:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),TR=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},RR(e)),IR(e)),PR(e)),MR(e))}),NR=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"}}}},FR=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"}}}},_R=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e,a={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},NR(e)),FR(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Yl),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Yl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Ra()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},AR=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},_R(e),ER(e),$R(e),yR(e),{[`${t}-rtl`]:{direction:"rtl"}},fs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},jR=sr("Select",(e,{rootPrefixCls:t})=>{const r=Et(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[AR(r),TR(r)]},OR,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var DR={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"},BR=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:DR}))},LR=u.forwardRef(BR),zR={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"},HR=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:zR}))},Mh=u.forwardRef(HR),VR={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"},WR=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:VR}))},Th=u.forwardRef(WR);function kR({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:d,componentName:f}){const v=t??u.createElement(Xc,null),h=b=>e===null&&!i&&!d?null:u.createElement(u.Fragment,null,l!==!1&&b,i&&c);let g=null;if(e!==void 0)g=h(e);else if(o)g=h(u.createElement(rs,{spin:!0}));else{const b=`${s}-suffix`;g=({open:y,showSearch:S})=>h(y&&S?u.createElement(Th,{className:b}):u.createElement(Mh,{className:b}))}let p=null;r!==void 0?p=r:a?p=u.createElement(LR,null):p=null;let m=null;return n!==void 0?m=n:m=u.createElement(Tg,null),{clearIcon:v,suffixIcon:g,itemIcon:p,removeIcon:m}}function qR(e){return ne.useMemo(()=>{if(e)return(...t)=>ne.createElement(To,{space:!0},e.apply(void 0,t))},[e])}function UR(e,t){return t!==void 0?t:e!==null}var GR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Nh="SECRET_COMBOBOX_MODE_DO_NOT_USE",KR=(e,t)=>{var r,n,o,a,i;const{prefixCls:s,bordered:l,className:c,rootClassName:d,getPopupContainer:f,popupClassName:v,dropdownClassName:h,listHeight:g=256,placement:p,listItemHeight:m,size:b,disabled:y,notFoundContent:S,status:C,builtinPlacements:$,dropdownMatchSelectWidth:x,popupMatchSelectWidth:w,direction:E,style:O,allowClear:R,variant:I,dropdownStyle:P,transitionName:M,tagRender:F,maxCount:N,prefix:A,dropdownRender:_,popupRender:D,onDropdownVisibleChange:W,onOpenChange:G,styles:L,classNames:B}=e,q=GR(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:H,getPrefixCls:z,renderEmpty:V,direction:Z,virtual:k,popupMatchSelectWidth:J,popupOverflow:ae}=u.useContext(wt),{showSearch:Y,style:U,styles:re,className:se,classNames:K}=Pn("select"),[,ee]=Vr(),fe=m??(ee==null?void 0:ee.controlHeight),le=z("select",s),de=z(),we=E??Z,{compactSize:be,compactItemClassnames:Se}=zo(le,we),[me,te]=vs("select",I,l),xe=fn(le),[ze,Ae,Me]=jR(le,xe),Ee=u.useMemo(()=>{const{mode:ge}=e;if(ge!=="combobox")return ge===Nh?"combobox":ge},[e.mode]),He=Ee==="multiple"||Ee==="tags",Te=UR(e.suffixIcon,e.showArrow),Le=(r=w??x)!==null&&r!==void 0?r:J,Oe=((n=L==null?void 0:L.popup)===null||n===void 0?void 0:n.root)||((o=re.popup)===null||o===void 0?void 0:o.root)||P,Ce=qR(D||_),Ve=G||W,{status:Ze,hasFeedback:We,isFormItemInput:et,feedbackIcon:lt}=u.useContext(pr),Ot=Na(Ze,C);let Pt;S!==void 0?Pt=S:Ee==="combobox"?Pt=null:Pt=(V==null?void 0:V("Select"))||u.createElement(hR,{componentName:"Select"});const{suffixIcon:$e,itemIcon:Re,removeIcon:Ge,clearIcon:Pe}=kR(Object.assign(Object.assign({},q),{multiple:He,hasFeedback:We,feedbackIcon:lt,showSuffixIcon:Te,prefixCls:le,componentName:"Select"})),Xe=R===!0?{clearIcon:Pe}:R,ct=Tn(q,["suffixIcon","itemIcon"]),nt=oe(((a=B==null?void 0:B.popup)===null||a===void 0?void 0:a.root)||((i=K==null?void 0:K.popup)===null||i===void 0?void 0:i.root)||v||h,{[`${le}-dropdown-${we}`]:we==="rtl"},d,K.root,B==null?void 0:B.root,Me,xe,Ae),ke=on(ge=>{var qe;return(qe=b??be)!==null&&qe!==void 0?qe:ge}),Qe=u.useContext(Mr),ut=y??Qe,ye=oe({[`${le}-lg`]:ke==="large",[`${le}-sm`]:ke==="small",[`${le}-rtl`]:we==="rtl",[`${le}-${me}`]:te,[`${le}-in-form-item`]:et},No(le,Ot,We),Se,se,c,K.root,B==null?void 0:B.root,d,Me,xe,Ae),ue=u.useMemo(()=>p!==void 0?p:we==="rtl"?"bottomRight":"bottomLeft",[p,we]),[ce]=Ag("SelectLike",Oe==null?void 0:Oe.zIndex);return ze(u.createElement(mu,Object.assign({ref:t,virtual:k,showSearch:Y},ct,{style:Object.assign(Object.assign(Object.assign(Object.assign({},re.root),L==null?void 0:L.root),U),O),dropdownMatchSelectWidth:Le,transitionName:Bg(de,"slide-up",M),builtinPlacements:bR($,ae),listHeight:g,listItemHeight:fe,mode:Ee,prefixCls:le,placement:ue,direction:we,prefix:A,suffixIcon:$e,menuItemSelectedIcon:Re,removeIcon:Ge,allowClear:Xe,notFoundContent:Pt,className:ye,getPopupContainer:f||H,dropdownClassName:nt,disabled:ut,dropdownStyle:Object.assign(Object.assign({},Oe),{zIndex:ce}),maxCount:He?N:void 0,tagRender:He?F:void 0,dropdownRender:Ce,onDropdownVisibleChange:Ve})))},Fa=u.forwardRef(KR),XR=NE(Fa,"dropdownAlign");Fa.SECRET_COMBOBOX_MODE_DO_NOT_USE=Nh;Fa.Option=fu;Fa.OptGroup=du;Fa._InternalPanelDoNotUseOrYouWillBeFired=XR;const YR=(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)},QR=(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)},ba=["xxl","xl","lg","md","sm","xs"],JR=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)`}),ZR=e=>{const t=e,r=[].concat(ba).reverse();return r.forEach((n,o)=>{const a=n.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<r.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[o+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e},eI=()=>{const[,e]=Vr(),t=JR(ZR(e));return ne.useMemo(()=>{const r=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,r.forEach(i=>i(o)),r.size>=1},subscribe(a){return r.size||this.register(),n+=1,r.set(n,a),a(o),n},unsubscribe(a){r.delete(a),r.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},l=window.matchMedia(i);YR(l,s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];QR(i==null?void 0:i.mql,i==null?void 0:i.listener)}),r.clear()}}},[t])};function tI(e=!0,t={}){const r=Fe(t),[,n]=v1(),o=eI();return Ct(()=>{const a=o.subscribe(i=>{r.current=i,e&&n()});return()=>o.unsubscribe(a)},[]),r.current}function Fh(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return u.createElement("div",{className:oe("".concat(r,"-content"),i),style:s},u.createElement("div",{className:oe("".concat(r,"-inner"),a),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var co={shiftX:64,adjustY:1},uo={adjustX:1,shiftY:!0},Ar=[0,0],rI={left:{points:["cr","cl"],overflow:uo,offset:[-4,0],targetOffset:Ar},right:{points:["cl","cr"],overflow:uo,offset:[4,0],targetOffset:Ar},top:{points:["bc","tc"],overflow:co,offset:[0,-4],targetOffset:Ar},bottom:{points:["tc","bc"],overflow:co,offset:[0,4],targetOffset:Ar},topLeft:{points:["bl","tl"],overflow:co,offset:[0,-4],targetOffset:Ar},leftTop:{points:["tr","tl"],overflow:uo,offset:[-4,0],targetOffset:Ar},topRight:{points:["br","tr"],overflow:co,offset:[0,-4],targetOffset:Ar},rightTop:{points:["tl","tr"],overflow:uo,offset:[4,0],targetOffset:Ar},bottomRight:{points:["tr","br"],overflow:co,offset:[0,4],targetOffset:Ar},rightBottom:{points:["bl","br"],overflow:uo,offset:[4,0],targetOffset:Ar},bottomLeft:{points:["tl","bl"],overflow:co,offset:[0,4],targetOffset:Ar},leftBottom:{points:["br","bl"],overflow:uo,offset:[-4,0],targetOffset:Ar}},nI=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],oI=function(t,r){var n=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,h=t.children,g=t.onVisibleChange,p=t.afterVisibleChange,m=t.transitionName,b=t.animation,y=t.motion,S=t.placement,C=S===void 0?"right":S,$=t.align,x=$===void 0?{}:$,w=t.destroyTooltipOnHide,E=w===void 0?!1:w,O=t.defaultVisible,R=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,M=t.id,F=t.showArrow,N=F===void 0?!0:F,A=t.classNames,_=t.styles,D=ft(t,nI),W=ou(M),G=Fe(null);Di(r,function(){return G.current});var L=j({},D);"visible"in t&&(L.popupVisible=t.visible);var B=function(){return u.createElement(Fh,{key:"content",prefixCls:v,id:W,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:j(j({},I),_==null?void 0:_.body)},P)},q=function(){var z=u.Children.only(h),V=(z==null?void 0:z.props)||{},Z=j(j({},V),{},{"aria-describedby":P?W:null});return u.cloneElement(h,Z)};return u.createElement(yh,Be({popupClassName:oe(n,A==null?void 0:A.root),prefixCls:v,popup:B,action:a,builtinPlacements:rI,popupPlacement:C,ref:G,popupAlign:x,getPopupContainer:R,onPopupVisibleChange:g,afterPopupVisibleChange:p,popupTransitionName:m,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:E,mouseLeaveDelay:c,popupStyle:j(j({},d),_==null?void 0:_.root),mouseEnterDelay:s,arrow:N},L),q())};const aI=dn(oI);function iI(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,a=0,i=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-c,v=d,h=2*o-s,g=l,p=2*o-a,m=i,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,C=`path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${h} ${g} A ${n} ${n} 0 0 0 ${p} ${m} Z')`;return{arrowShadowWidth:b,arrowPath:C,arrowPolygon:S}}const sI=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ie(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},_h=8;function Ah(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?_h:n}}function Ja(e,t){return e?t:{}}function lI(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},sI(e,t,o)),{"&:before":{background:t}})]},Ja(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),Ja(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function cI(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Xf={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"]}},uI={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"]}},dI=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function fI(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={},c=Ah({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Xf).forEach(d=>{const f=n&&uI[d]||Xf[d],v=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(l[d]=v,dI.has(d)&&(v.autoArrow=!1),d){case"top":case"topLeft":case"topRight":v.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=s+o;break}if(n)switch(d){case"topLeft":case"bottomLeft":v.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":v.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":v.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":v.offset[1]=c.arrowOffsetHorizontal*2-s;break}v.overflow=cI(d,c,t,r),i&&(v.htmlRegion="visibleFirst")}),l}const mI=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:v,sizePopupArrow:h}=e,g=t(i).add(h).add(v).equal(),p=t(i).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${r}-inner`]:{minWidth:p,minHeight:l,padding:`${ie(e.calc(d).div(2).equal())} ${ie(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(i,_h)}},[`${r}-content`]:{position:"relative"}}),ew(e,(m,{darkColor:b})=>({[`&${r}-${m}`]:{[`${r}-inner`]:{backgroundColor:b},[`${r}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},lI(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},vI=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ah({contentRadius:e.borderRadius,limitVerticalRadius:!0})),iI(Et(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),jh=(e,t=!0)=>sr("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=n,s=Et(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[mI(s),qg(n,"zoom-big-fast")]},vI,{resetStyle:!1,injectStyle:t})(e),gI=Xn.map(e=>`${e}-inverse`),hI=["success","processing","error","default","warning"];function pI(e,t=!0){return t?[].concat(ve(gI),ve(Xn)).includes(e):Xn.includes(e)}function ZM(e){return hI.includes(e)}function Dh(e,t){const r=pI(t),n=oe({[`${e}-${t}`]:t&&r}),o={},a={},i=_x(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:a}}const bI=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=u.useContext(wt),l=s("tooltip",t),[c,d,f]=jh(l),v=Dh(l,a),h=v.arrowStyle,g=Object.assign(Object.assign({},i),v.overlayStyle),p=oe(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return c(u.createElement("div",{className:p,style:h},u.createElement("div",{className:`${l}-arrow`}),u.createElement(Fh,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:g}),o)))};var yI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const SI=u.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:l,children:c,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:v,destroyOnHidden:h,arrow:g=!0,title:p,overlay:m,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0,motion:C,getPopupContainer:$,placement:x="top",mouseEnterDelay:w=.1,mouseLeaveDelay:E=.1,overlayStyle:O,rootClassName:R,overlayClassName:I,styles:P,classNames:M}=e,F=yI(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"]),N=!!g,[,A]=Vr(),{getPopupContainer:_,getPrefixCls:D,direction:W,className:G,style:L,classNames:B,styles:q}=Pn("tooltip"),H=Uc(),z=u.useRef(null),V=()=>{var Te;(Te=z.current)===null||Te===void 0||Te.forceAlign()};u.useImperativeHandle(t,()=>{var Te,Le;return{forceAlign:V,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:(Te=z.current)===null||Te===void 0?void 0:Te.nativeElement,popupElement:(Le=z.current)===null||Le===void 0?void 0:Le.popupElement}});const[Z,k]=zr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),J=!p&&!m&&p!==0,ae=Te=>{var Le,Oe;k(J?!1:Te),J||((Le=e.onOpenChange)===null||Le===void 0||Le.call(e,Te),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,Te))},Y=u.useMemo(()=>{var Te,Le;let Oe=y;return typeof g=="object"&&(Oe=(Le=(Te=g.pointAtCenter)!==null&&Te!==void 0?Te:g.arrowPointAtCenter)!==null&&Le!==void 0?Le:y),b||fI({arrowPointAtCenter:Oe,autoAdjustOverflow:S,arrowWidth:N?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[y,g,b,A]),U=u.useMemo(()=>p===0?p:m||p||"",[m,p]),re=u.createElement(To,{space:!0},typeof U=="function"?U():U),se=D("tooltip",o),K=D(),ee=e["data-popover-inject"];let fe=Z;!("open"in e)&&!("visible"in e)&&J&&(fe=!1);const le=u.isValidElement(c)&&!Ng(c)?c:u.createElement("span",null,c),de=le.props,we=!de.className||typeof de.className=="string"?oe(de.className,a||`${se}-open`):de.className,[be,Se,me]=jh(se,!ee),te=Dh(se,s),xe=te.arrowStyle,ze=oe(I,{[`${se}-rtl`]:W==="rtl"},te.className,R,Se,me,G,B.root,M==null?void 0:M.root),Ae=oe(B.body,M==null?void 0:M.body),[Me,Ee]=Ag("Tooltip",F.zIndex),He=u.createElement(aI,Object.assign({},F,{zIndex:Me,showArrow:N,placement:x,mouseEnterDelay:w,mouseLeaveDelay:E,prefixCls:se,classNames:{root:ze,body:Ae},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),q.root),L),O),P==null?void 0:P.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},q.body),l),P==null?void 0:P.body),te.overlayStyle)},getTooltipContainer:$||i||_,ref:z,builtinPlacements:Y,overlay:re,visible:fe,onVisibleChange:ae,afterVisibleChange:d??f,arrowContent:u.createElement("span",{className:`${se}-arrow-content`}),motion:{motionName:Bg(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!v}),fe?Mo(le,{className:we}):le);return be(u.createElement(Fg.Provider,{value:Ee},He))}),vu=SI;vu._InternalPanelDoNotUseOrYouWillBeFired=bI;var CI=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],wI=dn(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,a=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,v=e.title,h=e.onChange,g=ft(e,CI),p=Fe(null),m=Fe(null),b=zr(c,{value:i}),y=X(b,2),S=y[0],C=y[1];Di(t,function(){return{focus:function(E){var O;(O=p.current)===null||O===void 0||O.focus(E)},blur:function(){var E;(E=p.current)===null||E===void 0||E.blur()},input:p.current,nativeElement:m.current}});var $=oe(n,o,T(T({},"".concat(n,"-checked"),S),"".concat(n,"-disabled"),s)),x=function(E){s||("checked"in e||C(E.target.checked),h==null||h({target:j(j({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return u.createElement("span",{className:$,title:v,style:a,ref:m},u.createElement("input",Be({},g,{className:"".concat(n,"-input"),ref:p,onChange:x,disabled:s,checked:!!S,type:f})),u.createElement("span",{className:"".concat(n,"-inner")}))});function xI(e){const t=ne.useRef(null),r=()=>{mt.cancel(t.current),t.current=null};return[()=>{r(),t.current=mt(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),r()),e==null||e(a)}]}const $I=["parentNode"],EI="form_item";function na(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Bh(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:$I.includes(r)?`${EI}_${r}`:r}function Lh(e,t,r,n,o,a){let i=n;return a!==void 0?i=a:r.validating?i="validating":e.length?i="error":t.length?i="warning":(r.touched||o&&r.validated)&&(i="success"),i}var OI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Yf(e){return na(e).join("_")}function Qf(e,t){const r=t.getFieldInstance(e),n=bv(r);if(n)return n;const o=Bh(na(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function zh(e){const[t]=su(),r=u.useRef({}),n=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Yf(o);a?r.current[i]=a:delete r.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=OI(a,["focus"]),l=Qf(o,n);l&&(u1(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&n.focusField(o))},focusField:o=>{var a,i;const s=n.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Qf(o,n))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=Yf(o);return r.current[a]}}),[e,t]);return[n]}function _a(e){return Et(e,{inputAffixPadding:e.paddingXXS})}const Aa=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:p,controlOutline:m,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:S,inputFontSize:C,inputFontSizeLG:$,inputFontSizeSM:x}=e,w=C||r,E=x||w,O=$||s,R=Math.round((t-w*n)/2*10)/10-o,I=Math.round((a-E*n)/2*10)/10-o,P=Math.ceil((i-O*l)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(P,0),paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:v,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${p}px ${m}`,errorActiveShadow:`0 0 0 ${p}px ${b}`,warningActiveShadow:`0 0 0 ${p}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:w,inputFontSizeLG:O,inputFontSizeSM:E}},RI=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),gu=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({},RI(Et(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Hh=(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}}),Jf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Hh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Vh=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hh(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gu(e))}),Jf(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Jf(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Zf=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Wh=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Zf(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Zf(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},gu(e))}})}),kh=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},qh=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t==null?void 0:t.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},em=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Uh=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qh(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gu(e))}),em(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),em(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Gh=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},tm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tm(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Kh=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(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}}),rm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Kh(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`}}),Xh=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kh(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"}}),rm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),rm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Yh=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Qh=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Jh=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gs=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Yh(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Qh(e)),"&-sm":Object.assign({},Jh(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Zh=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Qh(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Jh(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},YC()),{[`${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},[`
220
220
  & > ${t}-affix-wrapper,
221
221
  & > ${t}-number-affix-wrapper,
222
222
  & > ${r}-picker-range
@@ -268,7 +268,7 @@ html body {
268
268
  ${t}-col-xl-24${r}-label`]:Dn(e)}}},X2=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
269
269
  > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},Y2=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:Dn(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Q2=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
270
270
  ${n}-col-24${r}-label,
271
- ${n}-col-xl-24${r}-label`]:Dn(e)},[`@media (max-width: ${ie(e.screenXSMax)})`]:[Y2(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:Dn(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:Dn(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:Dn(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:Dn(e)}}}}},J2=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}),vp=(e,t)=>Et(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Cu=sr("Form",(e,{rootPrefixCls:t})=>{const r=vp(e,t);return[U2(r),G2(r),k2(r),K2(r),X2(r),Q2(r),ox(r),eu]},J2,{order:-1e3}),gm=[];function al(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const gp=({help:e,helpStatus:t,errors:r=gm,warnings:n=gm,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=u.useContext(lu),l=`${s}-item-explain`,c=fn(s),[d,f,v]=Cu(s,c),h=u.useMemo(()=>Jd(s),[s]),g=ji(r),p=ji(n),m=u.useMemo(()=>e!=null?[al(e,"help",t)]:[].concat(ve(g.map((S,C)=>al(S,"error","error",C))),ve(p.map((S,C)=>al(S,"warning","warning",C)))),[e,t,g,p]),b=u.useMemo(()=>{const S={};return m.forEach(({key:C})=>{S[C]=(S[C]||0)+1}),m.map((C,$)=>Object.assign(Object.assign({},C),{key:S[C.key]>1?`${C.key}-fallback-${$}`:C.key}))},[m]),y={};return a&&(y.id=`${a}_help`),d(u.createElement(Mn,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:i},S=>{const{className:C,style:$}=S;return u.createElement("div",Object.assign({},y,{className:oe(l,C,v,c,o,f),style:$}),u.createElement(R1,Object.assign({keys:b},Jd(s),{motionName:`${s}-show-help-item`,component:!1}),x=>{const{key:w,error:E,errorStatus:O,className:R,style:I}=x;return u.createElement("div",{key:w,className:oe(R,{[`${l}-${O}`]:O}),style:I},E)}))}))};var Z2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const eP=(e,t)=>{const r=u.useContext(Mr),{getPrefixCls:n,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:l,style:c}=Pn("form"),{prefixCls:d,className:f,rootClassName:v,size:h,disabled:g=r,form:p,colon:m,labelAlign:b,labelWrap:y,labelCol:S,wrapperCol:C,hideRequiredMark:$,layout:x="horizontal",scrollToFirstError:w,requiredMark:E,onFinishFailed:O,name:R,style:I,feedbackIcons:P,variant:M}=e,F=Z2(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=on(h),A=u.useContext(Qv),_=u.useMemo(()=>E!==void 0?E:$?!1:a!==void 0?a:!0,[$,E,a]),D=m??i,W=n("form",d),G=fn(W),[L,B,q]=Cu(W,G),H=oe(W,`${W}-${x}`,{[`${W}-hide-required-mark`]:_===!1,[`${W}-rtl`]:o==="rtl",[`${W}-${N}`]:N},q,G,B,l,f,v),[z]=zh(p),{__INTERNAL__:V}=z;V.name=R;const Z=u.useMemo(()=>({name:R,labelAlign:b,labelCol:S,labelWrap:y,wrapperCol:C,layout:x,colon:D,requiredMark:_,itemRef:V.itemRef,form:z,feedbackIcons:P}),[R,b,S,C,x,D,_,z,P]),k=u.useRef(null);u.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},z),{nativeElement:(Y=k.current)===null||Y===void 0?void 0:Y.nativeElement})});const J=(Y,U)=>{if(Y){let re={block:"nearest"};typeof Y=="object"&&(re=Object.assign(Object.assign({},re),Y)),z.scrollToField(U,re)}},ae=Y=>{if(O==null||O(Y),Y.errorFields.length){const U=Y.errorFields[0].name;if(w!==void 0){J(w,U);return}s!==void 0&&J(s,U)}};return L(u.createElement(ch.Provider,{value:M},u.createElement(og,{disabled:g},u.createElement(Kn.Provider,{value:N},u.createElement(sh,{validateMessages:A},u.createElement(un.Provider,{value:Z},u.createElement(lh,{status:!0},u.createElement(Ho,Object.assign({id:R},F,{name:R,onFinishFailed:ae,form:z,ref:k,style:Object.assign(Object.assign({},c),I),className:H})))))))))},tP=u.forwardRef(eP);function rP(e){if(typeof e=="function")return e;const t=Gn(e);return t.length<=1?t[0]:t}const hp=()=>{const{status:e,errors:t=[],warnings:r=[]}=u.useContext(pr);return{status:e,errors:t,warnings:r}};hp.Context=pr;function nP(e){const[t,r]=u.useState(e),n=u.useRef(null),o=u.useRef([]),a=u.useRef(!1);u.useEffect(()=>(a.current=!1,()=>{a.current=!0,mt.cancel(n.current),n.current=null}),[]);function i(s){a.current||(n.current===null&&(o.current=[],n.current=mt(()=>{n.current=null,r(l=>{let c=l;return o.current.forEach(d=>{c=d(c)}),c})})),o.current.push(s))}return[t,i]}function oP(){const{itemRef:e}=u.useContext(un),t=u.useRef({});function r(n,o){const a=o&&typeof o=="object"&&$a(o),i=n.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=Hr(e(n),a)),t.current.ref}return r}const aP=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},iP=mg(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=vp(e,t);return aP(r)});var sP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const lP=24,cP=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:l,extra:c,help:d,fieldId:f,marginBottom:v,onErrorVisibleChanged:h,label:g}=e,p=`${t}-item`,m=u.useContext(un),b=u.useMemo(()=>{let F=Object.assign({},o||m.wrapperCol||{});return g===null&&!n&&!o&&m.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const _=A?[A]:[],D=Dr(m.labelCol,_),W=typeof D=="object"?D:{},G=Dr(F,_),L=typeof G=="object"?G:{};"span"in W&&!("offset"in L)&&W.span<lP&&(F=jr(F,[].concat(_,["offset"]),W.span))}),F},[o,m.wrapperCol,m.labelCol,g,n]),y=oe(`${p}-control`,b.className),S=u.useMemo(()=>{const{labelCol:F,wrapperCol:N}=m;return sP(m,["labelCol","wrapperCol"])},[m]),C=u.useRef(null),[$,x]=u.useState(0);Ct(()=>{c&&C.current?x(C.current.clientHeight):x(0)},[c]);const w=u.createElement("div",{className:`${p}-control-input`},u.createElement("div",{className:`${p}-control-input-content`},a)),E=u.useMemo(()=>({prefixCls:t,status:r}),[t,r]),O=v!==null||i.length||s.length?u.createElement(lu.Provider,{value:E},u.createElement(gp,{fieldId:f,errors:i,warnings:s,help:d,helpStatus:r,className:`${p}-explain-connected`,onVisibleChanged:h})):null,R={};f&&(R.id=`${f}_extra`);const I=c?u.createElement("div",Object.assign({},R,{className:`${p}-extra`,ref:C}),c):null,P=O||I?u.createElement("div",{className:`${p}-additional`,style:v?{minHeight:v+$}:{}},O,I):null,M=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:w,errorList:O,extra:I}):u.createElement(u.Fragment,null,w,P);return u.createElement(un.Provider,{value:S},u.createElement(sp,Object.assign({},b,{className:y}),M),u.createElement(iP,{prefixCls:t}))};var uP={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"},dP=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:uP}))},fP=u.forwardRef(dP),mP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const vP=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:l,vertical:c})=>{var d;const[f]=Oa("Form"),{labelAlign:v,labelCol:h,labelWrap:g,colon:p}=u.useContext(un);if(!t)return null;const m=n||h||{},b=o||v,y=`${e}-item-label`,S=oe(y,b==="left"&&`${y}-left`,m.className,{[`${y}-wrap`]:!!g});let C=t;const $=a===!0||p!==!1&&a!==!1;$&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));const w=W2(l);if(w){const{icon:M=u.createElement(fP,null)}=w,F=mP(w,["icon"]),N=u.createElement(vu,Object.assign({},F),u.cloneElement(M,{className:`${e}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));C=u.createElement(u.Fragment,null,C,N)}const E=s==="optional",O=typeof s=="function",R=s===!1;O?C=s(C,{required:!!i}):E&&!i&&(C=u.createElement(u.Fragment,null,C,u.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=$n.Form)===null||d===void 0?void 0:d.optional))));let I;R?I="hidden":(E||O)&&(I="optional");const P=oe({[`${e}-item-required`]:i,[`${e}-item-required-mark-${I}`]:I,[`${e}-item-no-colon`]:!$});return u.createElement(sp,Object.assign({},m,{className:S}),u.createElement("label",{htmlFor:r,className:P,title:typeof t=="string"?t:""},C))},gP={success:K1,warning:tw,error:Xc,validating:rs};function pp({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:l}){const c=`${a}-item`,{feedbackIcons:d}=u.useContext(un),f=Lh(t,r,i,null,!!n,o),{isFormItemInput:v,status:h,hasFeedback:g,feedbackIcon:p,name:m}=u.useContext(pr),b=u.useMemo(()=>{var y;let S;if(n){const $=n!==!0&&n.icons||d,x=f&&((y=$==null?void 0:$({status:f,errors:t,warnings:r}))===null||y===void 0?void 0:y[f]),w=f?gP[f]:null;S=x!==!1&&w?u.createElement("span",{className:oe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},x||u.createElement(w,null)):null}const C={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:S,isFormItemInput:!0,name:l};return s&&(C.status=(f??h)||"",C.isFormItemInput=v,C.hasFeedback=!!(n??g),C.feedbackIcon=n!==void 0?C.feedbackIcon:p,C.name=l??m),C},[f,n,s,v,h]);return u.createElement(pr.Provider,{value:b},e)}var hP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function pP(e){const{prefixCls:t,className:r,rootClassName:n,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:d,hidden:f,children:v,fieldId:h,required:g,isRequired:p,onSubItemMetaChange:m,layout:b,name:y}=e,S=hP(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${t}-item`,{requiredMark:$,layout:x}=u.useContext(un),w=b||x,E=w==="vertical",O=u.useRef(null),R=ji(i),I=ji(s),P=a!=null,M=!!(P||i.length||s.length),F=!!O.current&&Qc(O.current),[N,A]=u.useState(null);Ct(()=>{if(M&&O.current){const L=getComputedStyle(O.current);A(Number.parseInt(L.marginBottom,10))}},[M,F]);const _=L=>{L||A(null)},W=((L=!1)=>{const B=L?R:c.errors,q=L?I:c.warnings;return Lh(B,q,c,"",!!d,l)})(),G=oe(C,r,n,{[`${C}-with-help`]:P||R.length||I.length,[`${C}-has-feedback`]:W&&d,[`${C}-has-success`]:W==="success",[`${C}-has-warning`]:W==="warning",[`${C}-has-error`]:W==="error",[`${C}-is-validating`]:W==="validating",[`${C}-hidden`]:f,[`${C}-${w}`]:w});return u.createElement("div",{className:G,style:o,ref:O},u.createElement(kI,Object.assign({className:`${C}-row`},Tn(S,["_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"])),u.createElement(vP,Object.assign({htmlFor:h},e,{requiredMark:$,required:g??p,prefixCls:t,vertical:E})),u.createElement(cP,Object.assign({},e,c,{errors:R,warnings:I,prefixCls:t,status:W,help:a,marginBottom:N,onErrorVisibleChanged:_}),u.createElement(ih.Provider,{value:m},u.createElement(pp,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:d,validateStatus:W,name:y},v)))),!!N&&u.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-N}}))}const bP="__SPLIT__";function yP(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const SP=u.memo(({children:e})=>e,(e,t)=>yP(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function hm(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function CP(e){const{name:t,noStyle:r,className:n,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:d,messageVariables:f,trigger:v="onChange",validateTrigger:h,hidden:g,help:p,layout:m}=e,{getPrefixCls:b}=u.useContext(wt),{name:y}=u.useContext(un),S=rP(l),C=typeof S=="function",$=u.useContext(ih),{validateTrigger:x}=u.useContext(Yn),w=h!==void 0?h:x,E=t!=null,O=b("form",a),R=fn(O),[I,P,M]=Cu(O,R);Uc();const F=u.useContext(ha),N=u.useRef(null),[A,_]=nP({}),[D,W]=Po(()=>hm()),G=Z=>{const k=F==null?void 0:F.getKey(Z.name);if(W(Z.destroy?hm():Z,!0),r&&p!==!1&&$){let J=Z.name;if(Z.destroy)J=N.current||J;else if(k!==void 0){const[ae,Y]=k;J=[ae].concat(ve(Y)),N.current=J}$(Z,J)}},L=(Z,k)=>{_(J=>{const ae=Object.assign({},J),U=[].concat(ve(Z.name.slice(0,-1)),ve(k)).join(bP);return Z.destroy?delete ae[U]:ae[U]=Z,ae})},[B,q]=u.useMemo(()=>{const Z=ve(D.errors),k=ve(D.warnings);return Object.values(A).forEach(J=>{Z.push.apply(Z,ve(J.errors||[])),k.push.apply(k,ve(J.warnings||[]))}),[Z,k]},[A,D.errors,D.warnings]),H=oP();function z(Z,k,J){return r&&!g?u.createElement(pp,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:B,warnings:q,noStyle:!0,name:t},Z):u.createElement(pP,Object.assign({key:"row"},e,{className:oe(n,M,R,P),prefixCls:O,fieldId:k,isRequired:J,errors:B,warnings:q,meta:D,onSubItemMetaChange:L,layout:m,name:t}),Z)}if(!E&&!C&&!o)return I(z(S));let V={};return typeof d=="string"?V.label=d:t&&(V.label=String(t)),f&&(V=Object.assign(Object.assign({},V),f)),I(u.createElement(iu,Object.assign({},e,{messageVariables:V,trigger:v,validateTrigger:w,onMetaChange:G}),(Z,k,J)=>{const ae=na(t).length&&k?k.name:[],Y=Bh(ae,y),U=c!==void 0?c:!!(s!=null&&s.some(K=>{if(K&&typeof K=="object"&&K.required&&!K.warningOnly)return!0;if(typeof K=="function"){const ee=K(J);return(ee==null?void 0:ee.required)&&!(ee!=null&&ee.warningOnly)}return!1})),re=Object.assign({},Z);let se=null;if(Array.isArray(S)&&E)se=S;else if(!(C&&(!(i||o)||E))){if(!(o&&!C&&!E))if(u.isValidElement(S)){const K=Object.assign(Object.assign({},S.props),re);if(K.id||(K.id=Y),p||B.length>0||q.length>0||e.extra){const le=[];(p||B.length>0)&&le.push(`${Y}_help`),e.extra&&le.push(`${Y}_extra`),K["aria-describedby"]=le.join(" ")}B.length>0&&(K["aria-invalid"]="true"),U&&(K["aria-required"]="true"),Qn(S)&&(K.ref=H(ae,S)),new Set([].concat(ve(na(v)),ve(na(w)))).forEach(le=>{K[le]=(...de)=>{var we,be,Se,me,te;(Se=re[le])===null||Se===void 0||(we=Se).call.apply(we,[re].concat(de)),(te=(me=S.props)[le])===null||te===void 0||(be=te).call.apply(be,[me].concat(de))}});const fe=[K["aria-required"],K["aria-invalid"],K["aria-describedby"]];se=u.createElement(SP,{control:re,update:S,childProps:fe},Mo(S,K))}else C&&(i||o)&&!E?se=S(J):se=S}return z(se,Y,U)}))}const bp=CP;bp.useStatus=hp;var wP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const xP=e=>{var{prefixCls:t,children:r}=e,n=wP(e,["prefixCls","children"]);const{getPrefixCls:o}=u.useContext(wt),a=o("form",t),i=u.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return u.createElement(rh,Object.assign({},n),(s,l,c)=>u.createElement(lu.Provider,{value:i},r(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),l,{errors:c.errors,warnings:c.warnings})))};function $P(){const{form:e}=u.useContext(un);return e}const Nn=tP;Nn.Item=bp;Nn.List=xP;Nn.ErrorList=gp;Nn.useForm=zh;Nn.useFormInstance=$P;Nn.useWatch=ah;Nn.Provider=sh;Nn.create=()=>{};var EP={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"},OP=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:EP}))},RP=u.forwardRef(OP);const IP=e=>{const{getPrefixCls:t,direction:r}=ir(wt),{prefixCls:n,className:o}=e,a=t("input-group",n),i=t("input"),[s,l,c]=tp(i),d=oe(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:r==="rtl"},l,o),f=ir(pr),v=cn(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(u.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(pr.Provider,{value:v},e.children)))},PP=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor: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}}}},MP=sr(["Input","OTP"],e=>{const t=Et(e,_a(e));return PP(t)},Aa);var TP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const NP=u.forwardRef((e,t)=>{const{className:r,value:n,onChange:o,onActiveChange:a,index:i,mask:s}=e,l=TP(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=u.useContext(wt),d=c("otp"),f=typeof s=="string"?s:n,v=u.useRef(null);u.useImperativeHandle(t,()=>v.current);const h=m=>{o(i,m.target.value)},g=()=>{mt(()=>{var m;const b=(m=v.current)===null||m===void 0?void 0:m.input;document.activeElement===b&&b&&b.select()})},p=m=>{const{key:b,ctrlKey:y,metaKey:S}=m;b==="ArrowLeft"?a(i-1):b==="ArrowRight"?a(i+1):b==="z"&&(y||S)?m.preventDefault():b==="Backspace"&&!n&&a(i-1),g()};return u.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&u.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),u.createElement(ps,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},l,{ref:v,value:n,onInput:h,onFocus:g,onKeyDown:p,onMouseDown:g,onMouseUp:g,className:oe(r,{[`${d}-mask-input`]:s})})))});var FP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Za(e){return(e||"").split("")}const _P=e=>{const{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?u.createElement("span",{className:`${r}-separator`},o):null},AP=u.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:o,defaultValue:a,value:i,onChange:s,formatter:l,separator:c,variant:d,disabled:f,status:v,autoFocus:h,mask:g,type:p,onInput:m,inputMode:b}=e,y=FP(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:S,direction:C}=u.useContext(wt),$=S("otp",r),x=En(y,{aria:!0,data:!0,attr:!0}),[w,E,O]=MP($),R=on(H=>o??H),I=u.useContext(pr),P=Na(I.status,v),M=u.useMemo(()=>Object.assign(Object.assign({},I),{status:P,hasFeedback:!1,feedbackIcon:null}),[I,P]),F=u.useRef(null),N=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var H;(H=N.current[0])===null||H===void 0||H.focus()},blur:()=>{var H;for(let z=0;z<n;z+=1)(H=N.current[z])===null||H===void 0||H.blur()},nativeElement:F.current}));const A=H=>l?l(H):H,[_,D]=u.useState(()=>Za(A(a||"")));u.useEffect(()=>{i!==void 0&&D(Za(i))},[i]);const W=Bt(H=>{D(H),m&&m(H),s&&H.length===n&&H.every(z=>z)&&H.some((z,V)=>_[V]!==z)&&s(H.join(""))}),G=Bt((H,z)=>{let V=ve(_);for(let k=0;k<H;k+=1)V[k]||(V[k]="");z.length<=1?V[H]=z:V=V.slice(0,H).concat(Za(z)),V=V.slice(0,n);for(let k=V.length-1;k>=0&&!V[k];k-=1)V.pop();const Z=A(V.map(k=>k||" ").join(""));return V=Za(Z).map((k,J)=>k===" "&&!V[J]?V[J]:k),V}),L=(H,z)=>{var V;const Z=G(H,z),k=Math.min(H+z.length,n-1);k!==H&&Z[H]!==void 0&&((V=N.current[k])===null||V===void 0||V.focus()),W(Z)},B=H=>{var z;(z=N.current[H])===null||z===void 0||z.focus()},q={variant:d,disabled:f,status:P,mask:g,type:p,inputMode:b};return w(u.createElement("div",Object.assign({},x,{ref:F,className:oe($,{[`${$}-sm`]:R==="small",[`${$}-lg`]:R==="large",[`${$}-rtl`]:C==="rtl"},O,E),role:"group"}),u.createElement(pr.Provider,{value:M},Array.from({length:n}).map((H,z)=>{const V=`otp-${z}`,Z=_[z]||"";return u.createElement(u.Fragment,{key:V},u.createElement(NP,Object.assign({ref:k=>{N.current[z]=k},index:z,size:R,htmlSize:1,className:`${$}-input`,onChange:L,value:Z,onActiveChange:B,autoFocus:z===0&&h},q)),z<n-1&&u.createElement(_P,{separator:c,index:z,prefixCls:$}))}))))});var jP={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"},DP=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:jP}))},BP=u.forwardRef(DP),LP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const zP=e=>e?u.createElement(RP,null):u.createElement(BP,null),HP={click:"onClick",hover:"onMouseOver"},VP=u.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:a=zP,suffix:i}=e,s=u.useContext(Mr),l=r??s,c=typeof o=="object"&&o.visible!==void 0,[d,f]=hr(()=>c?o.visible:!1),v=Fe(null);u.useEffect(()=>{c&&f(o.visible)},[c,o]);const h=fp(v),g=()=>{var I;if(l)return;d&&h();const P=!d;f(P),typeof o=="object"&&((I=o.onVisibleChange)===null||I===void 0||I.call(o,P))},p=I=>{const P=HP[n]||"",M=a(d),F={[P]:g,className:`${I}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault()},onMouseUp:N=>{N.preventDefault()}};return u.cloneElement(u.isValidElement(M)?M:u.createElement("span",null,M),F)},{className:m,prefixCls:b,inputPrefixCls:y,size:S}=e,C=LP(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=u.useContext(wt),x=$("input",y),w=$("input-password",b),E=o&&p(w),O=oe(w,m,{[`${w}-${S}`]:!!S}),R=Object.assign(Object.assign({},Tn(C,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:O,prefixCls:x,suffix:u.createElement(u.Fragment,null,E,i)});return S&&(R.size=S),u.createElement(ps,Object.assign({ref:Hr(t,v)},R))});var WP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const kP=u.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:d,onSearch:f,onChange:v,onCompositionStart:h,onCompositionEnd:g,variant:p,onPressEnter:m}=e,b=WP(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:S}=u.useContext(wt),C=u.useRef(!1),$=y("input-search",r),x=y("input",n),{compactSize:w}=zo($,S),E=on(q=>{var H;return(H=a??w)!==null&&H!==void 0?H:q}),O=u.useRef(null),R=q=>{q!=null&&q.target&&q.type==="click"&&f&&f(q.target.value,q,{source:"clear"}),v==null||v(q)},I=q=>{var H;document.activeElement===((H=O.current)===null||H===void 0?void 0:H.input)&&q.preventDefault()},P=q=>{var H,z;f&&f((z=(H=O.current)===null||H===void 0?void 0:H.input)===null||z===void 0?void 0:z.value,q,{source:"input"})},M=q=>{C.current||c||(m==null||m(q),P(q))},F=typeof s=="boolean"?u.createElement(Th,null):null,N=`${$}-button`;let A;const _=s||{},D=_.type&&_.type.__ANT_BUTTON===!0;D||_.type==="button"?A=Mo(_,Object.assign({onMouseDown:I,onClick:q=>{var H,z;(z=(H=_==null?void 0:_.props)===null||H===void 0?void 0:H.onClick)===null||z===void 0||z.call(H,q),P(q)},key:"enterButton"},D?{className:N,size:E}:{})):A=u.createElement(ru,{className:N,color:s?"primary":"default",size:E,disabled:d,key:"enterButton",onMouseDown:I,onClick:P,loading:c,icon:F,variant:p==="borderless"||p==="filled"||p==="underlined"?"text":s?"solid":void 0},s),l&&(A=[A,Mo(l,{key:"addonAfter"})]);const W=oe($,{[`${$}-rtl`]:S==="rtl",[`${$}-${E}`]:!!E,[`${$}-with-button`]:!!s},o),G=q=>{C.current=!0,h==null||h(q)},L=q=>{C.current=!1,g==null||g(q)},B=Object.assign(Object.assign({},b),{className:W,prefixCls:x,type:"search",size:E,variant:p,onPressEnter:M,onCompositionStart:G,onCompositionEnd:L,addonAfter:A,suffix:i,onChange:R,disabled:d});return u.createElement(ps,Object.assign({ref:Hr(O,t)},B))});var qP=`
271
+ ${n}-col-xl-24${r}-label`]:Dn(e)},[`@media (max-width: ${ie(e.screenXSMax)})`]:[Y2(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:Dn(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:Dn(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:Dn(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:Dn(e)}}}}},J2=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}),vp=(e,t)=>Et(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Cu=sr("Form",(e,{rootPrefixCls:t})=>{const r=vp(e,t);return[U2(r),G2(r),k2(r),K2(r),X2(r),Q2(r),ox(r),eu]},J2,{order:-1e3}),gm=[];function al(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const gp=({help:e,helpStatus:t,errors:r=gm,warnings:n=gm,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=u.useContext(lu),l=`${s}-item-explain`,c=fn(s),[d,f,v]=Cu(s,c),h=u.useMemo(()=>Jd(s),[s]),g=ji(r),p=ji(n),m=u.useMemo(()=>e!=null?[al(e,"help",t)]:[].concat(ve(g.map((S,C)=>al(S,"error","error",C))),ve(p.map((S,C)=>al(S,"warning","warning",C)))),[e,t,g,p]),b=u.useMemo(()=>{const S={};return m.forEach(({key:C})=>{S[C]=(S[C]||0)+1}),m.map((C,$)=>Object.assign(Object.assign({},C),{key:S[C.key]>1?`${C.key}-fallback-${$}`:C.key}))},[m]),y={};return a&&(y.id=`${a}_help`),d(u.createElement(Mn,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:i},S=>{const{className:C,style:$}=S;return u.createElement("div",Object.assign({},y,{className:oe(l,C,v,c,o,f),style:$}),u.createElement(Rw,Object.assign({keys:b},Jd(s),{motionName:`${s}-show-help-item`,component:!1}),x=>{const{key:w,error:E,errorStatus:O,className:R,style:I}=x;return u.createElement("div",{key:w,className:oe(R,{[`${l}-${O}`]:O}),style:I},E)}))}))};var Z2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const eP=(e,t)=>{const r=u.useContext(Mr),{getPrefixCls:n,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:l,style:c}=Pn("form"),{prefixCls:d,className:f,rootClassName:v,size:h,disabled:g=r,form:p,colon:m,labelAlign:b,labelWrap:y,labelCol:S,wrapperCol:C,hideRequiredMark:$,layout:x="horizontal",scrollToFirstError:w,requiredMark:E,onFinishFailed:O,name:R,style:I,feedbackIcons:P,variant:M}=e,F=Z2(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=on(h),A=u.useContext(Qv),_=u.useMemo(()=>E!==void 0?E:$?!1:a!==void 0?a:!0,[$,E,a]),D=m??i,W=n("form",d),G=fn(W),[L,B,q]=Cu(W,G),H=oe(W,`${W}-${x}`,{[`${W}-hide-required-mark`]:_===!1,[`${W}-rtl`]:o==="rtl",[`${W}-${N}`]:N},q,G,B,l,f,v),[z]=zh(p),{__INTERNAL__:V}=z;V.name=R;const Z=u.useMemo(()=>({name:R,labelAlign:b,labelCol:S,labelWrap:y,wrapperCol:C,layout:x,colon:D,requiredMark:_,itemRef:V.itemRef,form:z,feedbackIcons:P}),[R,b,S,C,x,D,_,z,P]),k=u.useRef(null);u.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},z),{nativeElement:(Y=k.current)===null||Y===void 0?void 0:Y.nativeElement})});const J=(Y,U)=>{if(Y){let re={block:"nearest"};typeof Y=="object"&&(re=Object.assign(Object.assign({},re),Y)),z.scrollToField(U,re)}},ae=Y=>{if(O==null||O(Y),Y.errorFields.length){const U=Y.errorFields[0].name;if(w!==void 0){J(w,U);return}s!==void 0&&J(s,U)}};return L(u.createElement(ch.Provider,{value:M},u.createElement(og,{disabled:g},u.createElement(Kn.Provider,{value:N},u.createElement(sh,{validateMessages:A},u.createElement(un.Provider,{value:Z},u.createElement(lh,{status:!0},u.createElement(Ho,Object.assign({id:R},F,{name:R,onFinishFailed:ae,form:z,ref:k,style:Object.assign(Object.assign({},c),I),className:H})))))))))},tP=u.forwardRef(eP);function rP(e){if(typeof e=="function")return e;const t=Gn(e);return t.length<=1?t[0]:t}const hp=()=>{const{status:e,errors:t=[],warnings:r=[]}=u.useContext(pr);return{status:e,errors:t,warnings:r}};hp.Context=pr;function nP(e){const[t,r]=u.useState(e),n=u.useRef(null),o=u.useRef([]),a=u.useRef(!1);u.useEffect(()=>(a.current=!1,()=>{a.current=!0,mt.cancel(n.current),n.current=null}),[]);function i(s){a.current||(n.current===null&&(o.current=[],n.current=mt(()=>{n.current=null,r(l=>{let c=l;return o.current.forEach(d=>{c=d(c)}),c})})),o.current.push(s))}return[t,i]}function oP(){const{itemRef:e}=u.useContext(un),t=u.useRef({});function r(n,o){const a=o&&typeof o=="object"&&$a(o),i=n.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=Hr(e(n),a)),t.current.ref}return r}const aP=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},iP=mg(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=vp(e,t);return aP(r)});var sP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const lP=24,cP=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:l,extra:c,help:d,fieldId:f,marginBottom:v,onErrorVisibleChanged:h,label:g}=e,p=`${t}-item`,m=u.useContext(un),b=u.useMemo(()=>{let F=Object.assign({},o||m.wrapperCol||{});return g===null&&!n&&!o&&m.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const _=A?[A]:[],D=Dr(m.labelCol,_),W=typeof D=="object"?D:{},G=Dr(F,_),L=typeof G=="object"?G:{};"span"in W&&!("offset"in L)&&W.span<lP&&(F=jr(F,[].concat(_,["offset"]),W.span))}),F},[o,m.wrapperCol,m.labelCol,g,n]),y=oe(`${p}-control`,b.className),S=u.useMemo(()=>{const{labelCol:F,wrapperCol:N}=m;return sP(m,["labelCol","wrapperCol"])},[m]),C=u.useRef(null),[$,x]=u.useState(0);Ct(()=>{c&&C.current?x(C.current.clientHeight):x(0)},[c]);const w=u.createElement("div",{className:`${p}-control-input`},u.createElement("div",{className:`${p}-control-input-content`},a)),E=u.useMemo(()=>({prefixCls:t,status:r}),[t,r]),O=v!==null||i.length||s.length?u.createElement(lu.Provider,{value:E},u.createElement(gp,{fieldId:f,errors:i,warnings:s,help:d,helpStatus:r,className:`${p}-explain-connected`,onVisibleChanged:h})):null,R={};f&&(R.id=`${f}_extra`);const I=c?u.createElement("div",Object.assign({},R,{className:`${p}-extra`,ref:C}),c):null,P=O||I?u.createElement("div",{className:`${p}-additional`,style:v?{minHeight:v+$}:{}},O,I):null,M=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:w,errorList:O,extra:I}):u.createElement(u.Fragment,null,w,P);return u.createElement(un.Provider,{value:S},u.createElement(sp,Object.assign({},b,{className:y}),M),u.createElement(iP,{prefixCls:t}))};var uP={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"},dP=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:uP}))},fP=u.forwardRef(dP),mP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const vP=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:l,vertical:c})=>{var d;const[f]=Oa("Form"),{labelAlign:v,labelCol:h,labelWrap:g,colon:p}=u.useContext(un);if(!t)return null;const m=n||h||{},b=o||v,y=`${e}-item-label`,S=oe(y,b==="left"&&`${y}-left`,m.className,{[`${y}-wrap`]:!!g});let C=t;const $=a===!0||p!==!1&&a!==!1;$&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));const w=W2(l);if(w){const{icon:M=u.createElement(fP,null)}=w,F=mP(w,["icon"]),N=u.createElement(vu,Object.assign({},F),u.cloneElement(M,{className:`${e}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));C=u.createElement(u.Fragment,null,C,N)}const E=s==="optional",O=typeof s=="function",R=s===!1;O?C=s(C,{required:!!i}):E&&!i&&(C=u.createElement(u.Fragment,null,C,u.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=$n.Form)===null||d===void 0?void 0:d.optional))));let I;R?I="hidden":(E||O)&&(I="optional");const P=oe({[`${e}-item-required`]:i,[`${e}-item-required-mark-${I}`]:I,[`${e}-item-no-colon`]:!$});return u.createElement(sp,Object.assign({},m,{className:S}),u.createElement("label",{htmlFor:r,className:P,title:typeof t=="string"?t:""},C))},gP={success:Kw,warning:t1,error:Xc,validating:rs};function pp({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:l}){const c=`${a}-item`,{feedbackIcons:d}=u.useContext(un),f=Lh(t,r,i,null,!!n,o),{isFormItemInput:v,status:h,hasFeedback:g,feedbackIcon:p,name:m}=u.useContext(pr),b=u.useMemo(()=>{var y;let S;if(n){const $=n!==!0&&n.icons||d,x=f&&((y=$==null?void 0:$({status:f,errors:t,warnings:r}))===null||y===void 0?void 0:y[f]),w=f?gP[f]:null;S=x!==!1&&w?u.createElement("span",{className:oe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},x||u.createElement(w,null)):null}const C={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:S,isFormItemInput:!0,name:l};return s&&(C.status=(f??h)||"",C.isFormItemInput=v,C.hasFeedback=!!(n??g),C.feedbackIcon=n!==void 0?C.feedbackIcon:p,C.name=l??m),C},[f,n,s,v,h]);return u.createElement(pr.Provider,{value:b},e)}var hP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function pP(e){const{prefixCls:t,className:r,rootClassName:n,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:d,hidden:f,children:v,fieldId:h,required:g,isRequired:p,onSubItemMetaChange:m,layout:b,name:y}=e,S=hP(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${t}-item`,{requiredMark:$,layout:x}=u.useContext(un),w=b||x,E=w==="vertical",O=u.useRef(null),R=ji(i),I=ji(s),P=a!=null,M=!!(P||i.length||s.length),F=!!O.current&&Qc(O.current),[N,A]=u.useState(null);Ct(()=>{if(M&&O.current){const L=getComputedStyle(O.current);A(Number.parseInt(L.marginBottom,10))}},[M,F]);const _=L=>{L||A(null)},W=((L=!1)=>{const B=L?R:c.errors,q=L?I:c.warnings;return Lh(B,q,c,"",!!d,l)})(),G=oe(C,r,n,{[`${C}-with-help`]:P||R.length||I.length,[`${C}-has-feedback`]:W&&d,[`${C}-has-success`]:W==="success",[`${C}-has-warning`]:W==="warning",[`${C}-has-error`]:W==="error",[`${C}-is-validating`]:W==="validating",[`${C}-hidden`]:f,[`${C}-${w}`]:w});return u.createElement("div",{className:G,style:o,ref:O},u.createElement(kI,Object.assign({className:`${C}-row`},Tn(S,["_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"])),u.createElement(vP,Object.assign({htmlFor:h},e,{requiredMark:$,required:g??p,prefixCls:t,vertical:E})),u.createElement(cP,Object.assign({},e,c,{errors:R,warnings:I,prefixCls:t,status:W,help:a,marginBottom:N,onErrorVisibleChanged:_}),u.createElement(ih.Provider,{value:m},u.createElement(pp,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:d,validateStatus:W,name:y},v)))),!!N&&u.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-N}}))}const bP="__SPLIT__";function yP(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const SP=u.memo(({children:e})=>e,(e,t)=>yP(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function hm(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function CP(e){const{name:t,noStyle:r,className:n,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:d,messageVariables:f,trigger:v="onChange",validateTrigger:h,hidden:g,help:p,layout:m}=e,{getPrefixCls:b}=u.useContext(wt),{name:y}=u.useContext(un),S=rP(l),C=typeof S=="function",$=u.useContext(ih),{validateTrigger:x}=u.useContext(Yn),w=h!==void 0?h:x,E=t!=null,O=b("form",a),R=fn(O),[I,P,M]=Cu(O,R);Uc();const F=u.useContext(ha),N=u.useRef(null),[A,_]=nP({}),[D,W]=Po(()=>hm()),G=Z=>{const k=F==null?void 0:F.getKey(Z.name);if(W(Z.destroy?hm():Z,!0),r&&p!==!1&&$){let J=Z.name;if(Z.destroy)J=N.current||J;else if(k!==void 0){const[ae,Y]=k;J=[ae].concat(ve(Y)),N.current=J}$(Z,J)}},L=(Z,k)=>{_(J=>{const ae=Object.assign({},J),U=[].concat(ve(Z.name.slice(0,-1)),ve(k)).join(bP);return Z.destroy?delete ae[U]:ae[U]=Z,ae})},[B,q]=u.useMemo(()=>{const Z=ve(D.errors),k=ve(D.warnings);return Object.values(A).forEach(J=>{Z.push.apply(Z,ve(J.errors||[])),k.push.apply(k,ve(J.warnings||[]))}),[Z,k]},[A,D.errors,D.warnings]),H=oP();function z(Z,k,J){return r&&!g?u.createElement(pp,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:B,warnings:q,noStyle:!0,name:t},Z):u.createElement(pP,Object.assign({key:"row"},e,{className:oe(n,M,R,P),prefixCls:O,fieldId:k,isRequired:J,errors:B,warnings:q,meta:D,onSubItemMetaChange:L,layout:m,name:t}),Z)}if(!E&&!C&&!o)return I(z(S));let V={};return typeof d=="string"?V.label=d:t&&(V.label=String(t)),f&&(V=Object.assign(Object.assign({},V),f)),I(u.createElement(iu,Object.assign({},e,{messageVariables:V,trigger:v,validateTrigger:w,onMetaChange:G}),(Z,k,J)=>{const ae=na(t).length&&k?k.name:[],Y=Bh(ae,y),U=c!==void 0?c:!!(s!=null&&s.some(K=>{if(K&&typeof K=="object"&&K.required&&!K.warningOnly)return!0;if(typeof K=="function"){const ee=K(J);return(ee==null?void 0:ee.required)&&!(ee!=null&&ee.warningOnly)}return!1})),re=Object.assign({},Z);let se=null;if(Array.isArray(S)&&E)se=S;else if(!(C&&(!(i||o)||E))){if(!(o&&!C&&!E))if(u.isValidElement(S)){const K=Object.assign(Object.assign({},S.props),re);if(K.id||(K.id=Y),p||B.length>0||q.length>0||e.extra){const le=[];(p||B.length>0)&&le.push(`${Y}_help`),e.extra&&le.push(`${Y}_extra`),K["aria-describedby"]=le.join(" ")}B.length>0&&(K["aria-invalid"]="true"),U&&(K["aria-required"]="true"),Qn(S)&&(K.ref=H(ae,S)),new Set([].concat(ve(na(v)),ve(na(w)))).forEach(le=>{K[le]=(...de)=>{var we,be,Se,me,te;(Se=re[le])===null||Se===void 0||(we=Se).call.apply(we,[re].concat(de)),(te=(me=S.props)[le])===null||te===void 0||(be=te).call.apply(be,[me].concat(de))}});const fe=[K["aria-required"],K["aria-invalid"],K["aria-describedby"]];se=u.createElement(SP,{control:re,update:S,childProps:fe},Mo(S,K))}else C&&(i||o)&&!E?se=S(J):se=S}return z(se,Y,U)}))}const bp=CP;bp.useStatus=hp;var wP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const xP=e=>{var{prefixCls:t,children:r}=e,n=wP(e,["prefixCls","children"]);const{getPrefixCls:o}=u.useContext(wt),a=o("form",t),i=u.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return u.createElement(rh,Object.assign({},n),(s,l,c)=>u.createElement(lu.Provider,{value:i},r(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),l,{errors:c.errors,warnings:c.warnings})))};function $P(){const{form:e}=u.useContext(un);return e}const Nn=tP;Nn.Item=bp;Nn.List=xP;Nn.ErrorList=gp;Nn.useForm=zh;Nn.useFormInstance=$P;Nn.useWatch=ah;Nn.Provider=sh;Nn.create=()=>{};var EP={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"},OP=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:EP}))},RP=u.forwardRef(OP);const IP=e=>{const{getPrefixCls:t,direction:r}=ir(wt),{prefixCls:n,className:o}=e,a=t("input-group",n),i=t("input"),[s,l,c]=tp(i),d=oe(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:r==="rtl"},l,o),f=ir(pr),v=cn(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(u.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(pr.Provider,{value:v},e.children)))},PP=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor: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}}}},MP=sr(["Input","OTP"],e=>{const t=Et(e,_a(e));return PP(t)},Aa);var TP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const NP=u.forwardRef((e,t)=>{const{className:r,value:n,onChange:o,onActiveChange:a,index:i,mask:s}=e,l=TP(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=u.useContext(wt),d=c("otp"),f=typeof s=="string"?s:n,v=u.useRef(null);u.useImperativeHandle(t,()=>v.current);const h=m=>{o(i,m.target.value)},g=()=>{mt(()=>{var m;const b=(m=v.current)===null||m===void 0?void 0:m.input;document.activeElement===b&&b&&b.select()})},p=m=>{const{key:b,ctrlKey:y,metaKey:S}=m;b==="ArrowLeft"?a(i-1):b==="ArrowRight"?a(i+1):b==="z"&&(y||S)?m.preventDefault():b==="Backspace"&&!n&&a(i-1),g()};return u.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&u.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),u.createElement(ps,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},l,{ref:v,value:n,onInput:h,onFocus:g,onKeyDown:p,onMouseDown:g,onMouseUp:g,className:oe(r,{[`${d}-mask-input`]:s})})))});var FP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Za(e){return(e||"").split("")}const _P=e=>{const{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?u.createElement("span",{className:`${r}-separator`},o):null},AP=u.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:o,defaultValue:a,value:i,onChange:s,formatter:l,separator:c,variant:d,disabled:f,status:v,autoFocus:h,mask:g,type:p,onInput:m,inputMode:b}=e,y=FP(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:S,direction:C}=u.useContext(wt),$=S("otp",r),x=En(y,{aria:!0,data:!0,attr:!0}),[w,E,O]=MP($),R=on(H=>o??H),I=u.useContext(pr),P=Na(I.status,v),M=u.useMemo(()=>Object.assign(Object.assign({},I),{status:P,hasFeedback:!1,feedbackIcon:null}),[I,P]),F=u.useRef(null),N=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var H;(H=N.current[0])===null||H===void 0||H.focus()},blur:()=>{var H;for(let z=0;z<n;z+=1)(H=N.current[z])===null||H===void 0||H.blur()},nativeElement:F.current}));const A=H=>l?l(H):H,[_,D]=u.useState(()=>Za(A(a||"")));u.useEffect(()=>{i!==void 0&&D(Za(i))},[i]);const W=Bt(H=>{D(H),m&&m(H),s&&H.length===n&&H.every(z=>z)&&H.some((z,V)=>_[V]!==z)&&s(H.join(""))}),G=Bt((H,z)=>{let V=ve(_);for(let k=0;k<H;k+=1)V[k]||(V[k]="");z.length<=1?V[H]=z:V=V.slice(0,H).concat(Za(z)),V=V.slice(0,n);for(let k=V.length-1;k>=0&&!V[k];k-=1)V.pop();const Z=A(V.map(k=>k||" ").join(""));return V=Za(Z).map((k,J)=>k===" "&&!V[J]?V[J]:k),V}),L=(H,z)=>{var V;const Z=G(H,z),k=Math.min(H+z.length,n-1);k!==H&&Z[H]!==void 0&&((V=N.current[k])===null||V===void 0||V.focus()),W(Z)},B=H=>{var z;(z=N.current[H])===null||z===void 0||z.focus()},q={variant:d,disabled:f,status:P,mask:g,type:p,inputMode:b};return w(u.createElement("div",Object.assign({},x,{ref:F,className:oe($,{[`${$}-sm`]:R==="small",[`${$}-lg`]:R==="large",[`${$}-rtl`]:C==="rtl"},O,E),role:"group"}),u.createElement(pr.Provider,{value:M},Array.from({length:n}).map((H,z)=>{const V=`otp-${z}`,Z=_[z]||"";return u.createElement(u.Fragment,{key:V},u.createElement(NP,Object.assign({ref:k=>{N.current[z]=k},index:z,size:R,htmlSize:1,className:`${$}-input`,onChange:L,value:Z,onActiveChange:B,autoFocus:z===0&&h},q)),z<n-1&&u.createElement(_P,{separator:c,index:z,prefixCls:$}))}))))});var jP={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"},DP=function(t,r){return u.createElement(br,Be({},t,{ref:r,icon:jP}))},BP=u.forwardRef(DP),LP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const zP=e=>e?u.createElement(RP,null):u.createElement(BP,null),HP={click:"onClick",hover:"onMouseOver"},VP=u.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:a=zP,suffix:i}=e,s=u.useContext(Mr),l=r??s,c=typeof o=="object"&&o.visible!==void 0,[d,f]=hr(()=>c?o.visible:!1),v=Fe(null);u.useEffect(()=>{c&&f(o.visible)},[c,o]);const h=fp(v),g=()=>{var I;if(l)return;d&&h();const P=!d;f(P),typeof o=="object"&&((I=o.onVisibleChange)===null||I===void 0||I.call(o,P))},p=I=>{const P=HP[n]||"",M=a(d),F={[P]:g,className:`${I}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault()},onMouseUp:N=>{N.preventDefault()}};return u.cloneElement(u.isValidElement(M)?M:u.createElement("span",null,M),F)},{className:m,prefixCls:b,inputPrefixCls:y,size:S}=e,C=LP(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=u.useContext(wt),x=$("input",y),w=$("input-password",b),E=o&&p(w),O=oe(w,m,{[`${w}-${S}`]:!!S}),R=Object.assign(Object.assign({},Tn(C,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:O,prefixCls:x,suffix:u.createElement(u.Fragment,null,E,i)});return S&&(R.size=S),u.createElement(ps,Object.assign({ref:Hr(t,v)},R))});var WP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const kP=u.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:d,onSearch:f,onChange:v,onCompositionStart:h,onCompositionEnd:g,variant:p,onPressEnter:m}=e,b=WP(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:S}=u.useContext(wt),C=u.useRef(!1),$=y("input-search",r),x=y("input",n),{compactSize:w}=zo($,S),E=on(q=>{var H;return(H=a??w)!==null&&H!==void 0?H:q}),O=u.useRef(null),R=q=>{q!=null&&q.target&&q.type==="click"&&f&&f(q.target.value,q,{source:"clear"}),v==null||v(q)},I=q=>{var H;document.activeElement===((H=O.current)===null||H===void 0?void 0:H.input)&&q.preventDefault()},P=q=>{var H,z;f&&f((z=(H=O.current)===null||H===void 0?void 0:H.input)===null||z===void 0?void 0:z.value,q,{source:"input"})},M=q=>{C.current||c||(m==null||m(q),P(q))},F=typeof s=="boolean"?u.createElement(Th,null):null,N=`${$}-button`;let A;const _=s||{},D=_.type&&_.type.__ANT_BUTTON===!0;D||_.type==="button"?A=Mo(_,Object.assign({onMouseDown:I,onClick:q=>{var H,z;(z=(H=_==null?void 0:_.props)===null||H===void 0?void 0:H.onClick)===null||z===void 0||z.call(H,q),P(q)},key:"enterButton"},D?{className:N,size:E}:{})):A=u.createElement(ru,{className:N,color:s?"primary":"default",size:E,disabled:d,key:"enterButton",onMouseDown:I,onClick:P,loading:c,icon:F,variant:p==="borderless"||p==="filled"||p==="underlined"?"text":s?"solid":void 0},s),l&&(A=[A,Mo(l,{key:"addonAfter"})]);const W=oe($,{[`${$}-rtl`]:S==="rtl",[`${$}-${E}`]:!!E,[`${$}-with-button`]:!!s},o),G=q=>{C.current=!0,h==null||h(q)},L=q=>{C.current=!1,g==null||g(q)},B=Object.assign(Object.assign({},b),{className:W,prefixCls:x,type:"search",size:E,variant:p,onPressEnter:M,onCompositionStart:G,onCompositionEnd:L,addonAfter:A,suffix:i,onChange:R,disabled:d});return u.createElement(ps,Object.assign({ref:Hr(O,t)},B))});var qP=`
272
272
  min-height:0 !important;
273
273
  max-height:none !important;
274
274
  height:0 !important;
@@ -282,4 +282,4 @@ html body {
282
282
  `,UP=["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"],il={},Rr;function GP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&il[r])return il[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=UP.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(il[r]=l),l}function KP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Rr||(Rr=document.createElement("textarea"),Rr.setAttribute("tab-index","-1"),Rr.setAttribute("aria-hidden","true"),Rr.setAttribute("name","hiddenTextarea"),document.body.appendChild(Rr)),e.getAttribute("wrap")?Rr.setAttribute("wrap",e.getAttribute("wrap")):Rr.removeAttribute("wrap");var o=GP(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Rr.setAttribute("style","".concat(l,";").concat(qP)),Rr.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,v=Rr.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=a),r!==null||n!==null){Rr.value=" ";var h=Rr.scrollHeight-a;r!==null&&(c=h*r,s==="border-box"&&(c=c+a+i),v=Math.max(c,v)),n!==null&&(d=h*n,s==="border-box"&&(d=d+a+i),f=v>d?"":"hidden",v=Math.min(d,v))}var g={height:v,overflowY:f,resize:"none"};return c&&(g.minHeight=c),d&&(g.maxHeight=d),g}var XP=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],sl=0,ll=1,cl=2,YP=u.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,a=r.value,i=r.autoSize,s=r.onResize,l=r.className,c=r.style,d=r.disabled,f=r.onChange;r.onInternalAutoSize;var v=ft(r,XP),h=zr(o,{value:a,postState:function(q){return q??""}}),g=X(h,2),p=g[0],m=g[1],b=function(q){m(q.target.value),f==null||f(q)},y=u.useRef();u.useImperativeHandle(t,function(){return{textArea:y.current}});var S=u.useMemo(function(){return i&&Ue(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=X(S,2),$=C[0],x=C[1],w=!!i,E=u.useState(cl),O=X(E,2),R=O[0],I=O[1],P=u.useState(),M=X(P,2),F=M[0],N=M[1],A=function(){I(sl)};Ct(function(){w&&A()},[a,$,x,w]),Ct(function(){if(R===sl)I(ll);else if(R===ll){var B=KP(y.current,!1,$,x);I(cl),N(B)}},[R]);var _=u.useRef(),D=function(){mt.cancel(_.current)},W=function(q){R===cl&&(s==null||s(q),i&&(D(),_.current=mt(function(){A()})))};u.useEffect(function(){return D},[]);var G=w?F:null,L=j(j({},c),G);return(R===sl||R===ll)&&(L.overflowY="hidden",L.overflowX="hidden"),u.createElement(In,{onResize:W,disabled:!(i||s)},u.createElement("textarea",Be({},v,{ref:y,style:L,className:oe(n,l,T({},"".concat(n,"-disabled"),d)),disabled:d,value:p,onChange:b})))}),QP=["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"],JP=ne.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,p=e.showCount,m=e.count,b=e.className,y=e.style,S=e.disabled,C=e.hidden,$=e.classNames,x=e.styles,w=e.onResize,E=e.onClear,O=e.onPressEnter,R=e.readOnly,I=e.autoSize,P=e.onKeyDown,M=ft(e,QP),F=zr(n,{value:o,defaultValue:n}),N=X(F,2),A=N[0],_=N[1],D=A==null?"":String(A),W=ne.useState(!1),G=X(W,2),L=G[0],B=G[1],q=ne.useRef(!1),H=ne.useState(null),z=X(H,2),V=z[0],Z=z[1],k=Fe(null),J=Fe(null),ae=function(){var Ce;return(Ce=J.current)===null||Ce===void 0?void 0:Ce.textArea},Y=function(){ae().focus()};Di(t,function(){var Oe;return{resizableTextArea:J.current,focus:Y,blur:function(){ae().blur()},nativeElement:((Oe=k.current)===null||Oe===void 0?void 0:Oe.nativeElement)||ae()}}),tr(function(){B(function(Oe){return!S&&Oe})},[S]);var U=ne.useState(null),re=X(U,2),se=re[0],K=re[1];ne.useEffect(function(){if(se){var Oe;(Oe=ae()).setSelectionRange.apply(Oe,ve(se))}},[se]);var ee=cp(m,p),fe=(r=ee.max)!==null&&r!==void 0?r:c,le=Number(fe)>0,de=ee.strategy(D),we=!!fe&&de>fe,be=function(Ce,Ve){var Ze=Ve;!q.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Ve)>ee.max&&(Ze=ee.exceedFormatter(Ve,{max:ee.max}),Ve!==Ze&&K([ae().selectionStart||0,ae().selectionEnd||0])),_(Ze),Ai(Ce.currentTarget,Ce,s,Ze)},Se=function(Ce){q.current=!0,d==null||d(Ce)},me=function(Ce){q.current=!1,be(Ce,Ce.currentTarget.value),f==null||f(Ce)},te=function(Ce){be(Ce,Ce.target.value)},xe=function(Ce){Ce.key==="Enter"&&O&&O(Ce),P==null||P(Ce)},ze=function(Ce){B(!0),a==null||a(Ce)},Ae=function(Ce){B(!1),i==null||i(Ce)},Me=function(Ce){_(""),Y(),Ai(ae(),Ce,s)},Ee=v,He;ee.show&&(ee.showFormatter?He=ee.showFormatter({value:D,count:de,maxLength:fe}):He="".concat(de).concat(le?" / ".concat(fe):""),Ee=ne.createElement(ne.Fragment,null,Ee,ne.createElement("span",{className:oe("".concat(g,"-data-count"),$==null?void 0:$.count),style:x==null?void 0:x.count},He)));var Te=function(Ce){var Ve;w==null||w(Ce),(Ve=ae())!==null&&Ve!==void 0&&Ve.style.height&&Z(!0)},Le=!I&&!p&&!l;return ne.createElement(yu,{ref:k,value:D,allowClear:l,handleReset:Me,suffix:Ee,prefixCls:g,classNames:j(j({},$),{},{affixWrapper:oe($==null?void 0:$.affixWrapper,T(T({},"".concat(g,"-show-count"),p),"".concat(g,"-textarea-allow-clear"),l))}),disabled:S,focused:L,className:oe(b,we&&"".concat(g,"-out-of-range")),style:j(j({},y),V&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof He=="string"?He:void 0}},hidden:C,readOnly:R,onClear:E},ne.createElement(YP,Be({},M,{autoSize:I,maxLength:c,onKeyDown:xe,onChange:te,onFocus:ze,onBlur:Ae,onCompositionStart:Se,onCompositionEnd:me,className:oe($==null?void 0:$.textarea),style:j(j({},x==null?void 0:x.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:g,onResize:Te,ref:J,readOnly:R})))});const ZP=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
283
283
  &-allow-clear > ${t},
284
284
  &-affix-wrapper${n}-has-feedback ${t}
285
- `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},eM=sr(["Input","TextArea"],e=>{const t=Et(e,_a(e));return ZP(t)},Aa,{resetFont:!1});var tM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const rM=dn((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:d,className:f,style:v,styles:h,variant:g,showCount:p,onMouseDown:m,onResize:b}=e,y=tM(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:$,autoComplete:x,className:w,style:E,classNames:O,styles:R}=Pn("textArea"),I=u.useContext(Mr),P=i??I,{status:M,hasFeedback:F,feedbackIcon:N}=u.useContext(pr),A=Na(M,s),_=u.useRef(null);u.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=_.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:fe=>{var le,de;bu((de=(le=_.current)===null||le===void 0?void 0:le.resizableTextArea)===null||de===void 0?void 0:de.textArea,fe)},blur:()=>{var fe;return(fe=_.current)===null||fe===void 0?void 0:fe.blur()}}});const D=S("input",n),W=fn(D),[G,L,B]=ep(D,d),[q]=eM(D,W),{compactSize:H,compactItemClassnames:z}=zo(D,C),V=on(ee=>{var fe;return(fe=a??H)!==null&&fe!==void 0?fe:ee}),[Z,k]=vs("textArea",g,o),J=dp(l??$),[ae,Y]=u.useState(!1),[U,re]=u.useState(!1),se=ee=>{Y(!0),m==null||m(ee);const fe=()=>{Y(!1),document.removeEventListener("mouseup",fe)};document.addEventListener("mouseup",fe)},K=ee=>{var fe,le;if(b==null||b(ee),ae&&typeof getComputedStyle=="function"){const de=(le=(fe=_.current)===null||fe===void 0?void 0:fe.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");de&&getComputedStyle(de).resize==="both"&&re(!0)}};return G(q(u.createElement(JP,Object.assign({autoComplete:x},y,{style:Object.assign(Object.assign({},E),v),styles:Object.assign(Object.assign({},R),h),disabled:P,allowClear:J,className:oe(B,W,f,d,z,w,U&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:oe({[`${D}-sm`]:V==="small",[`${D}-lg`]:V==="large"},L,c==null?void 0:c.textarea,O.textarea,ae&&`${D}-mouse-active`),variant:oe({[`${D}-${Z}`]:k},No(D,A)),affixWrapper:oe(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:C==="rtl",[`${D}-affix-wrapper-sm`]:V==="small",[`${D}-affix-wrapper-lg`]:V==="large",[`${D}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},L)}),prefixCls:D,suffix:F&&u.createElement("span",{className:`${D}-textarea-suffix`},N),showCount:p,ref:_,onResize:K,onMouseDown:se}))))}),ja=ps;ja.Group=IP;ja.Search=kP;ja.TextArea=rM;ja.Password=VP;ja.OTP=AP;var nM=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],yp=u.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-switch":n,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,v=e.onClick,h=e.onChange,g=e.onKeyDown,p=ft(e,nM),m=zr(!1,{value:i,defaultValue:s}),b=X(m,2),y=b[0],S=b[1];function C(E,O){var R=y;return l||(R=E,S(R),h==null||h(R,O)),R}function $(E){E.which===_e.LEFT?C(!1,E):E.which===_e.RIGHT&&C(!0,E),g==null||g(E)}function x(E){var O=C(!y,E);v==null||v(O,E)}var w=oe(o,a,(r={},T(r,"".concat(o,"-checked"),y),T(r,"".concat(o,"-disabled"),l),r));return u.createElement("button",Be({},p,{type:"button",role:"switch","aria-checked":y,disabled:l,className:w,ref:t,onKeyDown:$,onClick:x}),c,u.createElement("span",{className:"".concat(o,"-inner")},u.createElement("span",{className:"".concat(o,"-inner-checked")},d),u.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});yp.displayName="Switch";const oM=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,d=ie(l(s).add(l(n).mul(2)).equal()),f=ie(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:ie(r),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ie(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},aM=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},iM=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ie(i(a).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},sM=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=ie(s(i).add(s(n).mul(2)).equal()),d=ie(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-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:r},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${l}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},lM=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:ie(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ts(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"}})}},cM=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:o}=e,a=t*r,i=n/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new bt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},uM=sr("Switch",e=>{const t=Et(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[lM(t),sM(t),iM(t),aM(t),oM(t)]},cM);var dM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const fM=u.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:d,defaultChecked:f,defaultValue:v,onChange:h}=e,g=dM(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,m]=zr(!1,{value:c??d,defaultValue:f??v}),{getPrefixCls:b,direction:y,switch:S}=u.useContext(wt),C=u.useContext(Mr),$=(o??C)||a,x=b("switch",r),w=u.createElement("div",{className:`${x}-handle`},a&&u.createElement(rs,{className:`${x}-loading-icon`})),[E,O,R]=uM(x),I=on(n),P=oe(S==null?void 0:S.className,{[`${x}-small`]:I==="small",[`${x}-loading`]:a,[`${x}-rtl`]:y==="rtl"},i,s,O,R),M=Object.assign(Object.assign({},S==null?void 0:S.style),l),F=(...N)=>{m(N[0]),h==null||h.apply(void 0,N)};return E(u.createElement(Zc,{component:"Switch",disabled:$},u.createElement(yp,Object.assign({},g,{checked:p,onChange:F,prefixCls:x,className:P,style:M,disabled:$,ref:t,loadingIcon:w}))))}),mM=fM;mM.__ANT_SWITCH=!0;export{ts as $,ve as A,tI as B,wt as C,ba as D,hR as E,Ut as F,ja as G,ru as H,br as I,Nn as J,_e as K,ft as L,Do as M,En as N,or as O,Xn as P,X as Q,kI as R,Fa as S,vu as T,j as U,T as V,Ct as W,nu as X,GM as Y,UM as Z,Be as _,sr as a,RP as a$,Hr as a0,Ag as a1,To as a2,Fg as a3,mM as a4,jM as a5,Ue as a6,_a as a7,dg as a8,Aa as a9,VM as aA,og as aB,JM as aC,E$ as aD,PE as aE,ME as aF,YC as aG,Jn as aH,qM as aI,Tw as aJ,$n as aK,TE as aL,w$ as aM,Ds as aN,bt as aO,LR as aP,Zn as aQ,vr as aR,On as aS,Rn as aT,Vt as aU,at as aV,Wt as aW,Yl as aX,cx as aY,Pi as aZ,ox as a_,gs as aa,Hh as ab,gu as ac,Jh as ad,mg as ae,Vr as af,Oa as ag,sC as ah,zM as ai,ap as aj,eT as ak,p2 as al,R1 as am,Bt as an,KM as ao,fn as ap,rs as aq,tw as ar,Xc as as,K1 as at,Uc as au,Tg as av,Po as aw,YM as ax,xr as ay,Tn as az,lI as b,Mh as b$,vw as b0,Jd as b1,Mr as b2,mt as b3,$a as b4,Qn as b5,yh as b6,Xi as b7,Ri as b8,Qc as b9,Jc as bA,ou as bB,Yf as bC,wR as bD,SR as bE,Vh as bF,Xh as bG,Uh as bH,kh as bI,fs as bJ,sI as bK,Yh as bL,kR as bM,vs as bN,No as bO,Na as bP,yd as bQ,ZM as bR,sw as bS,DM as bT,EE as bU,Dr as bV,Ac as bW,bv as bX,QM as bY,d$ as bZ,xh as b_,Ma as ba,Gn as bb,HM as bc,of as bd,Ra as be,kg as bf,Vg as bg,Wg as bh,Hg as bi,nf as bj,fI as bk,NE as bl,Ww as bm,XM as bn,zo as bo,An as bp,sa as bq,rb as br,zh as bs,AM as bt,ea as bu,In as bv,pr as bw,xI as bx,Zc as by,wI as bz,cy as c,AI as c0,ps as c1,Th as c2,kM as c3,ry as d,iI as e,oy as f,LM as g,Ah as h,qg as i,oe as j,Fh as k,zr as l,Et as m,Bg as n,Mo as o,e1 as p,xt as q,ar as r,ie as s,pI as t,Pn as u,Mn as v,sp as w,BM as x,on as y,Ud as z};
285
+ `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},eM=sr(["Input","TextArea"],e=>{const t=Et(e,_a(e));return ZP(t)},Aa,{resetFont:!1});var tM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const rM=dn((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:d,className:f,style:v,styles:h,variant:g,showCount:p,onMouseDown:m,onResize:b}=e,y=tM(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:$,autoComplete:x,className:w,style:E,classNames:O,styles:R}=Pn("textArea"),I=u.useContext(Mr),P=i??I,{status:M,hasFeedback:F,feedbackIcon:N}=u.useContext(pr),A=Na(M,s),_=u.useRef(null);u.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=_.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:fe=>{var le,de;bu((de=(le=_.current)===null||le===void 0?void 0:le.resizableTextArea)===null||de===void 0?void 0:de.textArea,fe)},blur:()=>{var fe;return(fe=_.current)===null||fe===void 0?void 0:fe.blur()}}});const D=S("input",n),W=fn(D),[G,L,B]=ep(D,d),[q]=eM(D,W),{compactSize:H,compactItemClassnames:z}=zo(D,C),V=on(ee=>{var fe;return(fe=a??H)!==null&&fe!==void 0?fe:ee}),[Z,k]=vs("textArea",g,o),J=dp(l??$),[ae,Y]=u.useState(!1),[U,re]=u.useState(!1),se=ee=>{Y(!0),m==null||m(ee);const fe=()=>{Y(!1),document.removeEventListener("mouseup",fe)};document.addEventListener("mouseup",fe)},K=ee=>{var fe,le;if(b==null||b(ee),ae&&typeof getComputedStyle=="function"){const de=(le=(fe=_.current)===null||fe===void 0?void 0:fe.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");de&&getComputedStyle(de).resize==="both"&&re(!0)}};return G(q(u.createElement(JP,Object.assign({autoComplete:x},y,{style:Object.assign(Object.assign({},E),v),styles:Object.assign(Object.assign({},R),h),disabled:P,allowClear:J,className:oe(B,W,f,d,z,w,U&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:oe({[`${D}-sm`]:V==="small",[`${D}-lg`]:V==="large"},L,c==null?void 0:c.textarea,O.textarea,ae&&`${D}-mouse-active`),variant:oe({[`${D}-${Z}`]:k},No(D,A)),affixWrapper:oe(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:C==="rtl",[`${D}-affix-wrapper-sm`]:V==="small",[`${D}-affix-wrapper-lg`]:V==="large",[`${D}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},L)}),prefixCls:D,suffix:F&&u.createElement("span",{className:`${D}-textarea-suffix`},N),showCount:p,ref:_,onResize:K,onMouseDown:se}))))}),ja=ps;ja.Group=IP;ja.Search=kP;ja.TextArea=rM;ja.Password=VP;ja.OTP=AP;var nM=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],yp=u.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-switch":n,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,v=e.onClick,h=e.onChange,g=e.onKeyDown,p=ft(e,nM),m=zr(!1,{value:i,defaultValue:s}),b=X(m,2),y=b[0],S=b[1];function C(E,O){var R=y;return l||(R=E,S(R),h==null||h(R,O)),R}function $(E){E.which===_e.LEFT?C(!1,E):E.which===_e.RIGHT&&C(!0,E),g==null||g(E)}function x(E){var O=C(!y,E);v==null||v(O,E)}var w=oe(o,a,(r={},T(r,"".concat(o,"-checked"),y),T(r,"".concat(o,"-disabled"),l),r));return u.createElement("button",Be({},p,{type:"button",role:"switch","aria-checked":y,disabled:l,className:w,ref:t,onKeyDown:$,onClick:x}),c,u.createElement("span",{className:"".concat(o,"-inner")},u.createElement("span",{className:"".concat(o,"-inner-checked")},d),u.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});yp.displayName="Switch";const oM=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,d=ie(l(s).add(l(n).mul(2)).equal()),f=ie(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:ie(r),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ie(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},aM=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},iM=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ie(i(a).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},sM=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=ie(s(i).add(s(n).mul(2)).equal()),d=ie(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-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:r},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${l}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},lM=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:ie(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ts(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"}})}},cM=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:o}=e,a=t*r,i=n/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new bt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},uM=sr("Switch",e=>{const t=Et(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[lM(t),sM(t),iM(t),aM(t),oM(t)]},cM);var dM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const fM=u.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:d,defaultChecked:f,defaultValue:v,onChange:h}=e,g=dM(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,m]=zr(!1,{value:c??d,defaultValue:f??v}),{getPrefixCls:b,direction:y,switch:S}=u.useContext(wt),C=u.useContext(Mr),$=(o??C)||a,x=b("switch",r),w=u.createElement("div",{className:`${x}-handle`},a&&u.createElement(rs,{className:`${x}-loading-icon`})),[E,O,R]=uM(x),I=on(n),P=oe(S==null?void 0:S.className,{[`${x}-small`]:I==="small",[`${x}-loading`]:a,[`${x}-rtl`]:y==="rtl"},i,s,O,R),M=Object.assign(Object.assign({},S==null?void 0:S.style),l),F=(...N)=>{m(N[0]),h==null||h.apply(void 0,N)};return E(u.createElement(Zc,{component:"Switch",disabled:$},u.createElement(yp,Object.assign({},g,{checked:p,onChange:F,prefixCls:x,className:P,style:M,disabled:$,ref:t,loadingIcon:w}))))}),mM=fM;mM.__ANT_SWITCH=!0;export{ts as $,ve as A,tI as B,wt as C,ba as D,hR as E,Ut as F,ja as G,ru as H,br as I,Nn as J,_e as K,ft as L,Do as M,En as N,or as O,Xn as P,X as Q,kI as R,Fa as S,vu as T,j as U,T as V,Ct as W,nu as X,GM as Y,UM as Z,Be as _,lI as a,RP as a$,Hr as a0,Ag as a1,To as a2,Fg as a3,mM as a4,jM as a5,Ue as a6,_a as a7,dg as a8,Aa as a9,VM as aA,og as aB,JM as aC,E$ as aD,PE as aE,ME as aF,YC as aG,Jn as aH,qM as aI,T1 as aJ,$n as aK,TE as aL,w$ as aM,Ds as aN,bt as aO,LR as aP,Zn as aQ,vr as aR,On as aS,Rn as aT,Vt as aU,at as aV,Wt as aW,Yl as aX,cx as aY,Pi as aZ,ox as a_,gs as aa,Hh as ab,gu as ac,Jh as ad,mg as ae,Vr as af,Oa as ag,sC as ah,zM as ai,ap as aj,eT as ak,p2 as al,Rw as am,Bt as an,KM as ao,fn as ap,rs as aq,t1 as ar,Xc as as,Kw as at,Uc as au,Tg as av,Po as aw,YM as ax,xr as ay,Tn as az,iI as b,Mh as b$,v1 as b0,Jd as b1,Mr as b2,mt as b3,$a as b4,Qn as b5,yh as b6,Xi as b7,Ri as b8,Qc as b9,Jc as bA,ou as bB,Yf as bC,wR as bD,SR as bE,Vh as bF,Xh as bG,Uh as bH,kh as bI,fs as bJ,sI as bK,Yh as bL,kR as bM,vs as bN,No as bO,Na as bP,yd as bQ,ZM as bR,s1 as bS,DM as bT,EE as bU,Dr as bV,Ac as bW,bv as bX,QM as bY,d$ as bZ,xh as b_,Ma as ba,Gn as bb,HM as bc,of as bd,Ra as be,kg as bf,Vg as bg,Wg as bh,Hg as bi,nf as bj,fI as bk,NE as bl,W1 as bm,XM as bn,zo as bo,An as bp,sa as bq,rb as br,zh as bs,AM as bt,ea as bu,In as bv,pr as bw,xI as bx,Zc as by,wI as bz,cy as c,AI as c0,ps as c1,Th as c2,kM as c3,ry as d,Ah as e,oe as f,sr as g,Fh as h,qg as i,zr as j,Bg as k,Mo as l,Et as m,ew as n,xt as o,oy as p,ie as q,ar as r,pI as s,Mn as t,Pn as u,BM as v,sp as w,LM as x,on as y,Ud as z};