// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.11.5 // @author magicdawn // @description 为B站首页添加像App一样的推荐 // @license MIT // @homepageURL https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @match *://www.bilibili.com/ // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png // @match *://www.bilibili.com/index.html // @match *://www.bilibili.com/?* // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?* // @match *://www.bilibili.com/index.html?* // @require https://unpkg.com/axios@0.27.2/dist/axios.min.js // @require https://unpkg.com/axios-userscript-adapter@0.2.0/dist/axiosGmxhrAdapter.min.js // @require https://unpkg.com/react@18.2.0/umd/react.production.min.js // @require https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // @grant GM.xmlHttpRequest // @grant GM_deleteValue // @grant GM_getValue // @grant GM_setValue // @grant unsafeWindow // @downloadURL none // ==/UserScript== (t=>{const i=document.createElement("style");i.dataset.source="vite-plugin-monkey",i.textContent=t,document.head.append(i)})(" .primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px}.ant-btn:disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}._modal-mask_1isor_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10001;display:flex;align-items:center;justify-content:center}._modal_1isor_1{width:500px;max-height:calc(90vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1isor_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1isor_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1isor_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1isor_42{margin-left:10px}._btn-close_1isor_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1isor_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._toast-container_185m9_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background-color:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_185m9_1._single-line_185m9_17{text-align:center}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._bili-video-card_mlccj_1{position:relative}._image-wrapper_mlccj_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mlccj_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mlccj_8 ._preview-card-inner_mlccj_21{width:100%;height:100%}._watch-later_mlccj_25{z-index:5}._badge_mlccj_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mlccj_37{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_mlccj_52{color:default}._btn-dislike_mlccj_55{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_mlccj_55 ._btn-dislike-icon_mlccj_70{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mlccj_55 ._btn-dislike-tip_mlccj_77{pointer-events:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mlccj_92{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_mlccj_92{border:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-icon_mlccj_123{margin-bottom:5px}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-reason_mlccj_126{font-size:20px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-desc_mlccj_130{font-size:16px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{border-top:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mlccj_151 .bili-video-card__skeleton--cover,._skeleton-active_mlccj_151 .bili-video-card__skeleton--text,._skeleton-active_mlccj_151 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mlccj_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mlccj_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_tu03i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_tu03i_9{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_tu03i_9{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid_tu03i_9{grid-template-columns:repeat(6,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid_tu03i_9{grid-template-columns:repeat(7,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 15){display:none!important}}._video-grid_tu03i_9._internal-testing_tu03i_51{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 5){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 6){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_tu03i_79{grid-template-columns:repeat(2,1fr)!important}._config-icon_18r5p_1{line-height:1;margin-right:5px;font-size:0}._settings-group_18r5p_6{margin-bottom:10px}._settings-group_18r5p_6 ._settings-group-title_18r5p_9{font-size:2em;display:flex;align-items:center}._settings-group_18r5p_6 ._settings-group-sub-title_18r5p_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_18r5p_6 ._settings-group-content_18r5p_20{color:default}._settings-group_18r5p_6 ._settings-group-content_18r5p_20 button:first-child{margin-left:0}._row_18r5p_26{display:flex;align-items:center;flex-wrap:wrap}._row_18r5p_26 .primary-btn:first-child{margin-left:0}._check_18r5p_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_18r5p_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_18r5p_42{min-height:40vh;max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} "); (function (f, na, wh, Xw) { 'use strict'; function _interopNamespaceDefault(e) { const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } }); if (e) { for (const k in e) { if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: () => e[k] }); } } } n.default = e; return Object.freeze(n); } const f__namespace = /*#__PURE__*/_interopNamespaceDefault(f); const na__namespace = /*#__PURE__*/_interopNamespaceDefault(na); var kw=Object.defineProperty;var Lw=(e,t,n)=>t in e?kw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Pt=(e,t,n)=>(Lw(e,typeof t!="symbol"?t+"":t,n),n),Fu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var k=(e,t,n)=>(Fu(e,t,"read from private field"),n?n.call(e):t.get(e)),dt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n);},Ye=(e,t,n,r)=>(Fu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),nl=(e,t,n,r)=>({set _(o){Ye(e,t,o,n);},get _(){return k(e,t,r)}}),Fe=(e,t,n)=>(Fu(e,t,"access private method"),n);var CW=Fw((lo,co)=>{var Eb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}});}),n}var Ob={exports:{}},Ec={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Yw=f,Qw=Symbol.for("react.element"),Zw=Symbol.for("react.fragment"),Jw=Object.prototype.hasOwnProperty,ex=Yw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tx={key:!0,ref:!0,__self:!0,__source:!0};function Pb(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Jw.call(t,r)&&!tx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return {$$typeof:Qw,type:e,key:i,ref:a,props:o,_owner:ex.current}}Ec.Fragment=Zw;Ec.jsx=Pb;Ec.jsxs=Pb;Ob.exports=Ec;var ls=Ob.exports;function nx(e){if(e.sheet)return e.sheet;for(var t=0;t0?gn(va,--Nn):0,ra--,nn===10&&(ra=1,Pc--),nn}function Xn(){return nn=Nn2||us(nn)>3?"":" "}function px(e,t){for(;--t&&Xn()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return Is(e,Ol()+(t<6&&Fr()==32&&Xn()==32))}function Xd(e){for(;Xn();)switch(nn){case e:return Nn;case 34:case 39:e!==34&&e!==39&&Xd(nn);break;case 40:e===41&&Xd(e);break;case 92:Xn();break}return Nn}function mx(e,t){for(;Xn()&&e+nn!==47+10;)if(e+nn===42+42&&Fr()===47)break;return "/*"+Is(t,Nn-1)+"*"+Oc(e===47?e:Xn())}function gx(e){for(;!us(Fr());)Xn();return Is(e,Nn)}function Ab(e){return Nb(Rl("",null,null,null,[""],e=Ib(e),0,[0],e))}function Rl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,v=0,p=0,m=1,g=1,b=1,y=0,C="",$=o,w=i,S=r,x=C;g;)switch(p=y,y=Xn()){case 40:if(p!=108&&gn(x,d-1)==58){Gd(x+=_t(Pl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=Pl(y);break;case 9:case 10:case 13:case 32:x+=vx(p);break;case 92:x+=px(Ol()-1,7);continue;case 47:switch(Fr()){case 42:case 47:rl(bx(mx(Xn(),Ol()),t,n),l);break;default:x+="/";}break;case 123*m:s[c++]=Ar(x)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:b==-1&&(x=_t(x,/\f/g,"")),v>0&&Ar(x)-d&&rl(v>32?vp(x+";",r,n,d-1):vp(_t(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(rl(S=hp(x,t,n,c,u,o,s,C,$=[],w=[],d),i),y===123)if(u===0)Rl(x,t,S,S,$,i,d,s,w);else switch(h===99&&gn(x,3)===110?100:h){case 100:case 108:case 109:case 115:Rl(e,S,S,r&&rl(hp(e,S,S,0,0,o,s,C,o,$=[],d),w),o,w,d,s,r?$:w);break;default:Rl(x,S,S,S,[""],w,0,s,w);}}c=u=v=0,m=b=1,C=x="",d=a;break;case 58:d=1+Ar(x),v=p;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&hx()==125)continue}switch(x+=Oc(y),y*m){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Ar(x)-1)*b,b=1;break;case 64:Fr()===45&&(x+=Pl(Xn())),h=Fr(),u=d=Ar(C=x+=gx(Ol())),y++;break;case 45:p===45&&Ar(x)==2&&(m=0);}}return i}function hp(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,h=o===0?i:[""],v=Eh(h),p=0,m=0,g=0;p0?h[b]+" "+y:_t(y,/&\f/g,h[b])))&&(l[g++]=C);return Rc(e,t,n,o===0?xh:s,l,c,u)}function bx(e,t,n){return Rc(e,t,n,Rb,Oc(fx()),cs(e,2,-2),0)}function vp(e,t,n,r){return Rc(e,t,n,$h,cs(e,0,r),cs(e,r+1,-1),r)}function ai(e,t){for(var n="",r=Eh(e),o=0;o6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+ql+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Gd(e,"stretch")?kb(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,Ar(e)-3-(~Gd(e,"!important")&&10))){case 107:return _t(e,":",":"+Rt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(gn(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+$n+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return Rt+e+$n+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+$n+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+$n+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+$n+e+e}return e}var Px=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case $h:t.return=kb(t.value,t.length);break;case _b:return ai([Ea(t,{value:_t(t.value,"@","@"+Rt)})],o);case xh:if(t.length)return dx(t.props,function(i){switch(ux(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ai([Ea(t,{props:[_t(i,/:(read-\w+)/,":"+ql+"$1")]})],o);case"::placeholder":return ai([Ea(t,{props:[_t(i,/:(plac\w+)/,":"+Rt+"input-$1")]}),Ea(t,{props:[_t(i,/:(plac\w+)/,":"+ql+"$1")]}),Ea(t,{props:[_t(i,/:(plac\w+)/,$n+"input-$1")]})],o)}return ""})}},Rx=[Px],Lb=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""));});}var o=t.stylisPlugins||Rx,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Fx={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},zx=/[A-Z]|^ms/g,jx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vb=function(t){return t.charCodeAt(1)===45},mp=function(t){return t!=null&&typeof t!="boolean"},ju=Sx(function(e){return Vb(e)?e:e.replace(zx,"-$&").toLowerCase()}),gp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jx,function(r,o,i){return Dr={name:o,styles:i,next:Dr},o})}return Fx[t]!==1&&!Vb(t)&&typeof n=="number"&&n!==0?n+"px":n};function ds(e,t,n){if(n==null)return "";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return "";case"object":{if(n.anim===1)return Dr={name:n.name,styles:n.styles,next:Dr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Dr={name:r.name,styles:r.styles,next:Dr},r=r.next;var o=n.styles+";";return o}return Hx(e,t,n)}case"function":{if(e!==void 0){var i=Dr,a=n(e);return Dr=i,ds(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Hx(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o0)return a(u);if(h==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var h=parseFloat(d[1]),v=(d[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*o;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,h,v){var p=d>=h*1.5;return Math.round(u/h)+" "+v+(p?"s":"")}return Hu}function Yx(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=qx(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let h=0;h{if(S==="%%")return "%";$++;const R=n.formatters[x];if(typeof R=="function"){const M=g[$];S=R.call(b,M),g.splice($,1),$--;}return S}),n.formatArgs.call(b,g),(b.log||n.log).apply(b,g);}return m.namespace=u,m.useColors=n.useColors(),m.color=n.selectColor(u),m.extend=r,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==n.namespaces&&(v=n.namespaces,p=n.enabled(u)),p),set:g=>{h=g;}}),typeof n.init=="function"&&n.init(m),m}function r(u,d){const h=n(this.namespace+(typeof d>"u"?":":d)+u);return h.log=this.log,h}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(d=0;d"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,h;for(d=0,h=n.skips.length;d{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function i(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=Qx(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Yd,Yd.exports);var Zx=Yd.exports;const Jx=Vr(Zx),Lo="bilibili-app-recommend",e$="bilibili_app_recommend",Xb=Jx(Lo);var t$=typeof global=="object"&&global&&global.Object===Object&&global;const qb=t$;var n$=typeof self=="object"&&self&&self.Object===Object&&self,r$=qb||n$||Function("return this")();const Ur=r$;var o$=Ur.Symbol;const Hr=o$;var Yb=Object.prototype,i$=Yb.hasOwnProperty,a$=Yb.toString,Oa=Hr?Hr.toStringTag:void 0;function s$(e){var t=i$.call(e,Oa),n=e[Oa];try{e[Oa]=void 0;var r=!0;}catch{}var o=a$.call(e);return r&&(t?e[Oa]=n:delete e[Oa]),o}var l$=Object.prototype,c$=l$.toString;function u$(e){return c$.call(e)}var d$="[object Null]",f$="[object Undefined]",Cp=Hr?Hr.toStringTag:void 0;function pa(e){return e==null?e===void 0?f$:d$:Cp&&Cp in Object(e)?s$(e):u$(e)}function oa(e){return e!=null&&typeof e=="object"}var h$="[object Symbol]";function jc(e){return typeof e=="symbol"||oa(e)&&pa(e)==h$}function v$(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=X$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Z$(e){return function(){return e}}var J$=function(){try{var e=mi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Yl=J$;var eE=Yl?function(e,t){return Yl(e,"toString",{configurable:!0,enumerable:!1,value:Z$(t),writable:!0})}:Zb;const tE=eE;var nE=Q$(tE);const rE=nE;function oE(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1}var cE=9007199254740991,uE=/^(?:0|[1-9]\d*)$/;function Mh(e,t){var n=typeof e;return t=t??cE,!!t&&(n=="number"||n!="symbol"&&uE.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=mE}function gE(e){return e!=null&&Ih(e.length)&&!Jb(e)}var bE=Object.prototype;function yE(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bE;return e===n}function CE(e,t){for(var n=-1,r=Array(e);++n-1}function NO(e,t){var n=this.__data__,r=Hc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function bo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?a0(s,t-1,n,r,o):i0(o,s):r||(o[o.length]=s);}return o}function ZO(e){var t=e==null?0:e.length;return t?a0(e,1):[]}function JO(e){return rE(pE(e,void 0,ZO),e+"")}var eP="Expected a function";function tP(e,t){var n;if(typeof t!="function")throw new TypeError(eP);return e=P$(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function nP(){this.__data__=new bo,this.size=0;}function rP(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function oP(e){return this.__data__.get(e)}function iP(e){return this.__data__.has(e)}var aP=200;function sP(e,t){var n=this.__data__;if(n instanceof bo){var r=n.__data__;if(!hs||r.lengths))return !1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,v=n&MP?new vs:void 0;for(i.set(e,t),i.set(t,e);++d=t||x<0||d&&R>=i}function b(){var S=Uu();if(g(S))return y(S);s=setTimeout(b,m(S));}function y(S){return s=void 0,h&&r?v(S):(r=o=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function $(){return s===void 0?a:y(Uu())}function w(){var S=Uu(),x=g(S);if(r=arguments,o=this,l=S,x){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),a}return w.cancel=C,w.flush=$,w}function gR(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=_R){var c=t?null:RR(e);if(c)return Lh(c);a=!1,o=s0,l=new vs;}else l=t?[]:s;e:for(;++rnew Proxy(e,t);const nf=Object.getPrototypeOf,rf=new WeakMap,v0=e=>e&&(rf.has(e)?rf.get(e):nf(e)===Object.prototype||nf(e)===Array.prototype),Ql=e=>typeof e=="object"&&e!==null,NR=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0;}),Object.create(nf(e),t)},zh=e=>e[Fh]||e,p0=(e,t,n,r)=>{if(!v0(e))return e;let o=r&&r.get(e);if(!o){const l=zh(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,NR(l)]:[l],r==null||r.set(e,o);}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const h=(p,m)=>{if(!d){let g=u[Pa].get(l);if(g||(g={},u[Pa].set(l,g)),p===Ga)g[Ga]=!0;else {let b=g[p];b||(b=new Set,g[p]=b),b.add(m);}}},v={get:(p,m)=>m===Fh?l:(h("k",m),p0(Reflect.get(p,m),u[Pa],u.c,u.t)),has:(p,m)=>m===TR?(d=!0,u[Pa].delete(l),!0):(h("h",m),Reflect.has(p,m)),getOwnPropertyDescriptor:(p,m)=>(h("o",m),Reflect.getOwnPropertyDescriptor(p,m)),ownKeys:p=>(h(Ga),Reflect.ownKeys(p))};return c&&(v.set=v.deleteProperty=()=>!1),[v,u]})(i,!!a),s[1].p=IR(a||i,s[0]),n&&n.set(i,s)),s[1][Pa]=t,s[1].c=n,s[1].t=r,s[1].p},m0=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Ql(e)||!Ql(t))return !0;const o=n.get(zh(e));if(!o)return !0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1});}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[Ga]===!0){if(i=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=m0(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},AR=e=>v0(e)&&e[Fh]||null,Kp=(e,t=!0)=>{rf.set(e,t);},DR=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,s)=>{if(o.has(a))return;Ql(a)&&o.add(a);const l=Ql(a)&&t.get(zh(a));if(l){var c,u;if((c=l.h)==null||c.forEach(h=>{const v=`:has(${String(h)})`;r.push(s?[...s,v]:[v]);}),l[Ga]===!0){const h=":ownKeys";r.push(s?[...s,h]:[h]);}else {var d;(d=l.o)==null||d.forEach(h=>{const v=`:hasOwn(${String(h)})`;r.push(s?[...s,v]:[v]);});}(u=l.k)==null||u.forEach(h=>{n&&!("value"in(Object.getOwnPropertyDescriptor(a,h)||{}))||i(a[h],s?[...s,h]:[h]);});}else s&&r.push(s);};return i(e),r},Ku=e=>typeof e=="object"&&e!==null,Mo=new WeakMap,il=new WeakSet,kR=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Ku(c)&&!il.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,i=(c,u,d=r)=>{const h=o.get(c);if((h==null?void 0:h[0])===u)return h[1];const v=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Kp(v,!0),o.set(c,[u,v]),Reflect.ownKeys(c).forEach(p=>{if(Object.getOwnPropertyDescriptor(v,p))return;const m=Reflect.get(c,p),g={value:m,enumerable:!0,configurable:!0};if(il.has(m))Kp(m,!1);else if(m instanceof Promise)delete g.value,g.get=()=>d(m);else if(Mo.has(m)){const[b,y]=Mo.get(m);g.value=i(b,y(),d);}Object.defineProperty(v,p,g);}),v},a=new WeakMap,s=[1,1],l=c=>{if(!Ku(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const h=new Set,v=(M,O=++s[0])=>{d!==O&&(d=O,h.forEach(I=>I(M,O)));};let p=s[1];const m=(M=++s[1])=>(p!==M&&!h.size&&(p=M,b.forEach(([O])=>{const I=O[1](M);I>d&&(d=I);})),d),g=M=>(O,I)=>{const P=[...O];P[1]=[M,...P[1]],v(P,I);},b=new Map,y=(M,O)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(M))throw new Error("prop listener already exists");if(h.size){const I=O[3](g(M));b.set(M,[O,I]);}else b.set(M,[O]);},C=M=>{var O;const I=b.get(M);I&&(b.delete(M),(O=I[1])==null||O.call(I));},$=M=>(h.add(M),h.size===1&&b.forEach(([I,P],_)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&P)throw new Error("remove already exists");const E=I[3](g(_));b.set(_,[I,E]);}),()=>{h.delete(M),h.size===0&&b.forEach(([I,P],_)=>{P&&(P(),b.set(_,[I]));});}),w=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(w,{deleteProperty(M,O){const I=Reflect.get(M,O);C(O);const P=Reflect.deleteProperty(M,O);return P&&v(["delete",[O],I]),P},set(M,O,I,P){const _=Reflect.has(M,O),E=Reflect.get(M,O,P);if(_&&(e(E,I)||a.has(I)&&e(E,a.get(I))))return !0;C(O),Ku(I)&&(I=AR(I)||I);let T=I;if(I instanceof Promise)I.then(A=>{I.status="fulfilled",I.value=A,v(["resolve",[O],A]);}).catch(A=>{I.status="rejected",I.reason=A,v(["reject",[O],A]);});else {!Mo.has(I)&&n(I)&&(T=l(I));const A=!il.has(T)&&Mo.get(T);A&&y(O,A);}return Reflect.set(M,O,T,P),v(["set",[O],I,E]),!0}});a.set(c,x);const R=[w,m,i,$];return Mo.set(x,R),Reflect.ownKeys(c).forEach(M=>{const O=Object.getOwnPropertyDescriptor(c,M);"value"in O&&(x[M]=c[M],delete O.value,delete O.writable),Object.defineProperty(w,M,O);}),x})=>[l,Mo,il,e,t,n,r,o,i,a,s],[LR]=kR();function Ds(e={}){return LR(e)}function g0(e,t,n){const r=Mo.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],a=r[3];let s=!1;const c=a(u=>{if(i.push(u),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0));}));});return s=!0,()=>{s=!1,c();}}function Gp(e,t){const n=Mo.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var b0={exports:{}},y0={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ia=f;function FR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zR=typeof Object.is=="function"?Object.is:FR,jR=ia.useState,HR=ia.useEffect,BR=ia.useLayoutEffect,WR=ia.useDebugValue;function VR(e,t){var n=t(),r=jR({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return BR(function(){o.value=n,o.getSnapshot=t,Gu(o)&&i({inst:o});},[e,n,t]),HR(function(){return Gu(o)&&i({inst:o}),e(function(){Gu(o)&&i({inst:o});})},[e]),WR(n),n}function Gu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !zR(e,n)}catch{return !0}}function UR(e,t){return t()}var KR=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?UR:VR;y0.useSyncExternalStore=ia.useSyncExternalStore!==void 0?ia.useSyncExternalStore:KR;b0.exports=y0;var GR=b0.exports;const XR=Vr(GR),{use:Xp}=f,{useSyncExternalStore:qR}=XR,YR=(e,t)=>{const n=f.useRef();f.useEffect(()=>{n.current=DR(e,t,!0);}),f.useDebugValue(n.current);},QR=new WeakMap;function ma(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let i=!0;const a=qR(f.useCallback(c=>{const u=g0(e,c,n);return c(),u},[e,n]),()=>{const c=Gp(e,Xp);try{if(!i&&r.current&&o.current&&!m0(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Gp(e,Xp));i=!1;const s=new WeakMap;f.useEffect(()=>{r.current=a,o.current=s;}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&YR(a,s);const l=f.useMemo(()=>new WeakMap,[]);return p0(a,s,l,QR)}const jh={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1},bt=Ds({...jh}),C0=Object.keys(jh),yr=function(){return ma(bt)},ZR=Lo,S0=`${ZR}.settings`;function JR(){const e=GM_getValue(S0);e&&typeof e=="object"&&Object.assign(bt,h0(e,C0)),g0(bt,()=>{e_();});}function e_(){const e=h0(bt,C0);GM_setValue(S0,e);}function aa(e){Object.assign(bt,e);}function t_(){return aa(jh)}JR();var w0={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Eb,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",h="quarter",v="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var E=["th","st","nd","rd"],T=_%100;return "["+_+(E[(T-20)%10]||E[T]||E[0])+"]"}},C=function(_,E,T){var A=String(_);return !A||A.length>=E?_:""+Array(E+1-A.length).join(T)+_},$={s:C,z:function(_){var E=-_.utcOffset(),T=Math.abs(E),A=Math.floor(T/60),N=T%60;return (E<=0?"+":"-")+C(A,2,"0")+":"+C(N,2,"0")},m:function _(E,T){if(E.date()1)return _(L[0])}else {var B=E.name;S[B]=E,N=B;}return !A&&N&&(w=N),N||!A&&w},M=function(_,E){if(x(_))return _.clone();var T=typeof E=="object"?E:{};return T.date=_,T.args=arguments,new I(T)},O=$;O.l=R,O.i=x,O.w=function(_,E){return M(_,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var I=function(){function _(T){this.$L=R(T.locale,null,!0),this.parse(T);}var E=_.prototype;return E.parse=function(T){this.$d=function(A){var N=A.date,D=A.utc;if(N===null)return new Date(NaN);if(O.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var L=N.match(g);if(L){var B=L[2]-1||0,G=(L[7]||"0").substring(0,3);return D?new Date(Date.UTC(L[1],B,L[3]||1,L[4]||0,L[5]||0,L[6]||0,G)):new Date(L[1],B,L[3]||1,L[4]||0,L[5]||0,L[6]||0,G)}}return new Date(N)}(T),this.$x=T.x||{},this.init();},E.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},E.$utils=function(){return O},E.isValid=function(){return this.$d.toString()!==m},E.isSame=function(T,A){var N=M(T);return this.startOf(A)<=N&&N<=this.endOf(A)},E.isAfter=function(T,A){return M(T)!!document.querySelectorAll(".bili-feed4").length),qp=document.querySelector(".bili-header__bar"),i_=!!(qp&&window.getComputedStyle(qp).display==="none"),$0=i_?50:64,E0=()=>document.body.classList.contains("dark"),O0=Ds({value:E0()});function Gc(){return ma(O0).value}const _l=new MutationObserver(function(){O0.value=E0();});_l.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{_l==null||_l.disconnect();});function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(e)}function a_(e,t){if(tt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function P0(e){var t=a_(e,"string");return tt(t)==="symbol"?t:String(t)}function Yp(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l_(e,t){if(t&&(tt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ft(e)}function zo(e){var t=s_();return function(){var r=Zl(e),o;if(t){var i=Zl(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return l_(this,o)}}var R0={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return f.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(sa(r)):Ns.isFragment(r)&&r.props?n=n.concat(sa(r.props.children,t)):n.push(r));}),n}var af={},u_=function(t){};function d_(e,t){}function f_(e,t){}function h_(){af={};}function _0(e,t,n){!t&&!af[n]&&(e(!1,n),af[n]=!0);}function yn(e,t){_0(d_,e,t);}function v_(e,t){_0(f_,e,t);}yn.preMessage=u_;yn.resetWarned=h_;yn.noteOnce=v_;function W(e,t,n){return t=P0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function j(e){for(var t=1;t0},e.prototype.connect_=function(){!sf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),S_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0);},e.prototype.disconnect_=function(){!sf||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=C_.some(function(i){return !!~r.indexOf(i)});o&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),I0=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof la(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new M_(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof la(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new T_(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A0=typeof WeakMap<"u"?new WeakMap:new T0,D0=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=w_.getInstance(),r=new I_(t,n,this);A0.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){D0.prototype[e]=function(){var t;return (t=A0.get(this))[e].apply(t,arguments)};});var k0=function(){return typeof Jl.ResizeObserver<"u"?Jl.ResizeObserver:D0}(),Io=new Map;function N_(e){e.forEach(function(t){var n,r=t.target;(n=Io.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var L0=new k0(N_);function A_(e,t){Io.has(e)||(Io.set(e,new Set),L0.observe(e)),Io.get(e).add(t);}function D_(e,t){Io.has(e)&&(Io.get(e).delete(t),Io.get(e).size||(L0.unobserve(e),Io.delete(e)));}var k_=function(e){Fo(n,e);var t=zo(n);function n(){return hn(this,n),t.apply(this,arguments)}return vn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),lf=f__namespace.createContext(null);function L_(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),i=f__namespace.useContext(lf),a=f__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(s,l,c);},[n,i]);return f__namespace.createElement(lf.Provider,{value:a},t)}function F_(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),i=f__namespace.useRef(null),a=f__namespace.useContext(lf),s=typeof n=="function",l=s?n(o):n,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&ga(l),d=u?l.ref:null,h=f__namespace.useMemo(function(){return jo(d,o)},[d,o]),v=function(){return ms(o.current)||ms(i.current)};f__namespace.useImperativeHandle(t,function(){return v()});var p=f__namespace.useRef(e);p.current=e;var m=f__namespace.useCallback(function(g){var b=p.current,y=b.onResize,C=b.data,$=g.getBoundingClientRect(),w=$.width,S=$.height,x=g.offsetWidth,R=g.offsetHeight,M=Math.floor(w),O=Math.floor(S);if(c.current.width!==M||c.current.height!==O||c.current.offsetWidth!==x||c.current.offsetHeight!==R){var I={width:M,height:O,offsetWidth:x,offsetHeight:R};c.current=I;var P=x===Math.round(w)?w:x,_=R===Math.round(S)?S:R,E=j(j({},I),{},{offsetWidth:P,offsetHeight:_});a==null||a(E,g,C),y&&Promise.resolve().then(function(){y(E,g);});}},[]);return f__namespace.useEffect(function(){var g=v();return g&&!r&&A_(g,m),function(){return D_(g,m)}},[o.current,r]),f__namespace.createElement(k_,{ref:i},u?f__namespace.cloneElement(l,{ref:h}):l)}var z_=f__namespace.forwardRef(F_),j_="rc-observer-key";function H_(e,t){var n=e.children,r=typeof n=="function"?[n]:sa(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(j_,"-").concat(i);return f__namespace.createElement(z_,pe({},e,{key:a,ref:i===0?t:void 0}),o)})}var vo=f__namespace.forwardRef(H_);vo.Collection=L_;function hi(e,t){var n=j({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}function cf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Jp+=1;var r=Jp;function o(i){if(i===0)H0(r),t();else {var a=z0(function(){o(i-1);});Wh.set(r,a);}}return o(n),r};gs.cancel=function(e){var t=Wh.get(e);return H0(t),j0(t)};function Vh(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function V_(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Qe(e,t){if(e==null)return {};var n=V_(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Uh(e,t,n){var r=f__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var uf={},U_=function(t){};function K_(e,t){}function G_(e,t){}function X_(){uf={};}function B0(e,t,n){!t&&!uf[n]&&(e(!1,n),uf[n]=!0);}function Yc(e,t){B0(K_,e,t);}function q_(e,t){B0(G_,e,t);}Yc.preMessage=U_;Yc.resetWarned=X_;Yc.noteOnce=q_;function Y_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Yc(!l,"Warning: There may be circular references"),l)return !1;if(i===a)return !0;if(n&&s>1)return !1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var u=0;u0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):t2}function Qc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function n2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function V0(e){return Array.from((ff.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function U0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ba())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(em,n2(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Qc(t),a=i.firstChild;if(r){if(r==="queue"){var s=V0(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(em))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function K0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Qc(t);return V0(n).find(function(r){return r.getAttribute(W0(t))===e})}function G0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=K0(e,t);if(n){var r=Qc(t);r.removeChild(n);}}function r2(e,t){var n=ff.get(e);if(!n||!e2(document,n)){var r=U0("",t),o=r.parentNode;ff.set(e,o),e.removeChild(r);}}function tc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Qc(n);r2(r,n);var o=K0(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=U0(e,n);return l.setAttribute(W0(n),t),l}function nc(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&tt(r)==="object"?t+=nc(r):t+=r;}),t}function o2(e,t){return Vh("".concat(t,"_").concat(nc(e)))}var Xa="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),X0="903px";function i2(e,t){if(ba()){var n;tc(e,Xa);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===X0;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),G0(Xa),o}return !1}var Xu=void 0;function a2(){return Xu===void 0&&(Xu=i2("@layer ".concat(Xa," { .").concat(Xa," { width: ").concat(X0,"!important; } }"),function(e){e.className=Xa;})),Xu}function q0(e){if(Array.isArray(e))return e}function s2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u;}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Y0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return q0(e)||s2(e,t)||Bh(e,t)||Y0()}function Q0(e,t,n,r){var o=f__namespace.useContext(Kh),i=o.cache,a=[e].concat(me(t));return f__namespace.useMemo(function(){i.update(a,function(s){var l=s||[],c=U(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=h,p=v||n();return [d+1,p]});},[a.join("_")]),f__namespace.useEffect(function(){return function(){i.update(a,function(s){var l=s||[],c=U(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=d-1;return v===0?(r==null||r(h,!1),null):[d-1,h]});}},a),i.get(a)[1]}var l2={},c2="css",Qo=new Map;function u2(e){Qo.set(e,(Qo.get(e)||0)+1);}function d2(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(df,'="').concat(e,'"]'));n.forEach(function(r){if(r[zi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function f2(e,t){Qo.set(e,(Qo.get(e)||0)-1);var n=Array.from(Qo.keys()),r=n.filter(function(o){var i=Qo.get(o)||0;return i<=0});r.length2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Kh),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?l2:s,c=n.formatToken,u=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(me(t)))},[t]),d=f__namespace.useMemo(function(){return nc(u)},[u]),h=f__namespace.useMemo(function(){return nc(l)},[l]),v=Q0("token",[a,e.id,d,h],function(){var p=e.getDerivativeToken(u),m=j(j({},p),l);c&&(m=c(m));var g=o2(m,a);m._tokenKey=g,u2(g);var b="".concat(c2,"-").concat(Vh(g));return m._hashId=b,[m,b]},function(p){f2(p[0]._tokenKey,o);});return v}var v2={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tm=ba(),p2="_skip_check_",Z0="_multi_value_";function nm(e){var t=ai(Ab(e),Db);return t.replace(/\{%%%\:[^;];}/g,";")}function m2(e){return tt(e)==="object"&&e&&(p2 in e||Z0 in e)}function g2(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(me(l.slice(1))).join(" ")});return i.join(",")}var b2=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var h="",v={};function p(C){var $=C.getName(s);if(!v[$]){var w=e(C.style,n,{root:!1,parentSelectors:a}),S=U(w,1),x=S[0];v[$]="@keyframes ".concat(C.getName(s)).concat(x);}}function m(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(w){Array.isArray(w)?m(w,$):w&&$.push(w);}),$}var g=m(Array.isArray(t)?t:[t]);if(g.forEach(function(C){var $=typeof C=="string"&&!o?{}:C;if(typeof $=="string")h+="".concat($,` `);else if($._keyframe)p($);else {var w=d.reduce(function(S,x){var R;return (x==null||(R=x.visit)===null||R===void 0?void 0:R.call(x,S))||S},$);Object.keys(w).forEach(function(S){var x=w[S];if(tt(x)==="object"&&x&&(S!=="animationName"||!x._keyframe)&&!m2(x)){var R=!1,M=S.trim(),O=!1;(o||i)&&s?M.startsWith("@")?R=!0:M=g2(S,s,c):o&&!s&&(M==="&"||M==="")&&(M="",O=!0);var I=e(x,n,{root:O,injectHash:R,parentSelectors:[].concat(me(a),[M])}),P=U(I,2),_=P[0],E=P[1];v=j(j({},v),E),h+="".concat(M).concat(_);}else {let N=function(D,L){var B=D.replace(/[A-Z]/g,function(F){return "-".concat(F.toLowerCase())}),G=L;!v2[D]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),D==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(p(L),G=L.getName(s)),h+="".concat(B,":").concat(G,";");};var T,A=(T=x==null?void 0:x.value)!==null&&T!==void 0?T:x;tt(x)==="object"&&x!==null&&x!==void 0&&x[Z0]&&Array.isArray(A)?A.forEach(function(D){N(S,D);}):N(S,A);}});}}),!o)h="{".concat(h,"}");else if(l&&a2()){var b=l.split(","),y=b[b.length-1].trim();h="@layer ".concat(y," {").concat(h,"}"),b.length>1&&(h="@layer ".concat(l,"{%%%:%}").concat(h));}return [h,v]};function y2(e,t){return Vh("".concat(e.join("%")).concat(t))}function C2(){return null}function hf(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=f__namespace.useContext(Kh),l=s.autoClear;s.mock;var c=s.defaultCache,u=s.hashPriority,d=s.container,h=s.ssrInline,v=s.transformers,p=s.linters,m=s.cache,g=n._tokenKey,b=[g].concat(me(r)),y=tm,C=Q0("style",b,function(){var R=t(),M=b2(R,{hashId:o,hashPriority:u,layer:i,path:r.join("-"),transformers:v,linters:p}),O=U(M,2),I=O[0],P=O[1],_=nm(I),E=y2(b,_);if(y){var T={mark:Ui,prepend:"queue",attachTo:d},A=typeof a=="function"?a():a;A&&(T.csp={nonce:A});var N=tc(_,E,T);N[zi]=m.instanceId,N.setAttribute(df,g),Object.keys(P).forEach(function(D){tc(nm(P[D]),"_effect-".concat(D),T);});}return [_,g,E]},function(R,M){var O=U(R,3),I=O[2];(M||l)&&tm&&G0(I,{mark:Ui});}),$=U(C,3),w=$[0],S=$[1],x=$[2];return function(R){var M;if(!h||y||!c)M=f__namespace.createElement(C2,null);else {var O;M=f__namespace.createElement("style",pe({},(O={},W(O,df,S),W(O,Ui,x),O),{dangerouslySetInnerHTML:{__html:w}}));}return f__namespace.createElement(f__namespace.Fragment,null,M,R)}}var It=function(){function e(t,n){hn(this,e),W(this,"name",void 0),W(this,"style",void 0),W(this,"_keyframe",!0),this.name=t,this.style=n;}return vn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function S2(e,t){if(e.length!==t.length)return !1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=U(c,2),h=d[1];return o.internalGet(u)[1]0,void 0),rm+=1;}return vn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),qu=new Gh;function J0(e){var t=Array.isArray(e)?e:[e];return qu.has(t)||qu.set(t,new w2(t)),qu.get(t)}function xi(e){return e.notSplit=!0,e}xi(["borderTop","borderBottom"]),xi(["borderTop"]),xi(["borderBottom"]),xi(["borderLeft","borderRight"]),xi(["borderLeft"]),xi(["borderRight"]);var x2=f.createContext({});const Xh=x2;var Jo="RC_FORM_INTERNAL_HOOKS",Lt=function(){yn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},ca=f__namespace.createContext({getFieldValue:Lt,getFieldsValue:Lt,getFieldError:Lt,getFieldWarning:Lt,getFieldsError:Lt,isFieldsTouched:Lt,isFieldTouched:Lt,isFieldValidating:Lt,isFieldsValidating:Lt,resetFields:Lt,setFields:Lt,setFieldValue:Lt,setFieldsValue:Lt,validateFields:Lt,submit:Lt,getInternalHooks:function(){return Lt(),{dispatch:Lt,initEntityValue:Lt,registerField:Lt,useSubscribe:Lt,setInitialValues:Lt,destroyForm:Lt,setCallbacks:Lt,registerWatch:Lt,getFields:Lt,setValidateMessages:Lt,setPreserve:Lt,getInitialValue:Lt}}}),vf=f__namespace.createContext(null);function pf(e){return e==null?[]:Array.isArray(e)?e:[e]}function $2(e){return e&&!!e._init}function _n(){_n=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(P,_,E){P[_]=E.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(P,_,E){return Object.defineProperty(P,_,{value:E,enumerable:!0,configurable:!0,writable:!0}),P[_]}try{l({},"");}catch{l=function(E,T,A){return E[T]=A};}function c(P,_,E,T){var A=_&&_.prototype instanceof h?_:h,N=Object.create(A.prototype),D=new M(T||[]);return r(N,"_invoke",{value:w(P,E,D)}),N}function u(P,_,E){try{return {type:"normal",arg:P.call(_,E)}}catch(T){return {type:"throw",arg:T}}}e.wrap=c;var d={};function h(){}function v(){}function p(){}var m={};l(m,i,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(O([])));b&&b!==t&&n.call(b,i)&&(m=b);var y=p.prototype=h.prototype=Object.create(m);function C(P){["next","throw","return"].forEach(function(_){l(P,_,function(E){return this._invoke(_,E)});});}function $(P,_){function E(A,N,D,L){var B=u(P[A],P,N);if(B.type!=="throw"){var G=B.arg,F=G.value;return F&&tt(F)=="object"&&n.call(F,"__await")?_.resolve(F.__await).then(function(K){E("next",K,D,L);},function(K){E("throw",K,D,L);}):_.resolve(F).then(function(K){G.value=K,D(G);},function(K){return E("throw",K,D,L)})}L(B.arg);}var T;r(this,"_invoke",{value:function(N,D){function L(){return new _(function(B,G){E(N,D,B,G);})}return T=T?T.then(L,L):L()}});}function w(P,_,E){var T="suspendedStart";return function(A,N){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(A==="throw")throw N;return I()}for(E.method=A,E.arg=N;;){var D=E.delegate;if(D){var L=S(D,E);if(L){if(L===d)continue;return L}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(T==="suspendedStart")throw T="completed",E.arg;E.dispatchException(E.arg);}else E.method==="return"&&E.abrupt("return",E.arg);T="executing";var B=u(P,_,E);if(B.type==="normal"){if(T=E.done?"completed":"suspendedYield",B.arg===d)continue;return {value:B.arg,done:E.done}}B.type==="throw"&&(T="completed",E.method="throw",E.arg=B.arg);}}}function S(P,_){var E=_.method,T=P.iterator[E];if(T===void 0)return _.delegate=null,E==="throw"&&P.iterator.return&&(_.method="return",_.arg=void 0,S(P,_),_.method==="throw")||E!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+E+"' method")),d;var A=u(T,P.iterator,_.arg);if(A.type==="throw")return _.method="throw",_.arg=A.arg,_.delegate=null,d;var N=A.arg;return N?N.done?(_[P.resultName]=N.value,_.next=P.nextLoc,_.method!=="return"&&(_.method="next",_.arg=void 0),_.delegate=null,d):N:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,d)}function x(P){var _={tryLoc:P[0]};1 in P&&(_.catchLoc=P[1]),2 in P&&(_.finallyLoc=P[2],_.afterLoc=P[3]),this.tryEntries.push(_);}function R(P){var _=P.completion||{};_.type="normal",delete _.arg,P.completion=_;}function M(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(x,this),this.reset(!0);}function O(P){if(P){var _=P[i];if(_)return _.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var E=-1,T=function A(){for(;++E=0;--A){var N=this.tryEntries[A],D=N.completion;if(N.tryLoc==="root")return T("end");if(N.tryLoc<=this.prev){var L=n.call(N,"catchLoc"),B=n.call(N,"finallyLoc");if(L&&B){if(this.prev=0;--T){var A=this.tryEntries[T];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev=0;--E){var T=this.tryEntries[E];if(T.finallyLoc===_)return this.complete(T.completion,T.afterLoc),R(T),d}},catch:function(_){for(var E=this.tryEntries.length-1;E>=0;--E){var T=this.tryEntries[E];if(T.tryLoc===_){var A=T.completion;if(A.type==="throw"){var N=A.arg;R(T);}return N}}throw new Error("illegal catch attempt")},delegateYield:function(_,E,T){return this.delegate={iterator:O(_),resultName:E,nextLoc:T},this.method==="next"&&(this.arg=void 0),d}},e}function om(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function gi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){om(i,r,o,a,s,"next",l);}function s(l){om(i,r,o,a,s,"throw",l);}a(void 0);})}}function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function Ml(e,t,n){return O2()?Ml=Reflect.construct.bind():Ml=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&bs(c,a.prototype),c},Ml.apply(null,arguments)}function P2(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function gf(e){var t=typeof Map=="function"?new Map:void 0;return gf=function(r){if(r===null||!P2(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return Ml(r,arguments,mf(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),bs(o,r)},gf(e)}var R2=/%[sdj%]/g,_2=function(){};typeof process<"u"&&process.env;function bf(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function Gn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return s}});return a}return e}function M2(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function un(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||M2(t)&&typeof e=="string"&&!e)}function T2(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r);}e.forEach(function(s){t(s,a);});}function im(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s()\[\]\\.,;:\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},ja={integer:function(t){return ja.number(t)&&parseInt(t,10)===t},float:function(t){return ja.number(t)&&!ja.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 typeof t=="object"&&!ja.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(L2())},hex:function(t){return typeof t=="string"&&!!t.match(cm.hex)}},F2=function(t,n,r,o,i){if(t.required&&n===void 0){ey(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ja[s](n)||o.push(Gn(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Gn(i.messages.types[s],t.fullField,t.type));},z2=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?d="number":v?d="string":p&&(d="array"),!d)return !1;p&&(u=n.length),v&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Gn(i.messages[d].len,t.fullField,t.len)):s&&!l&&ut.max?o.push(Gn(i.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(Gn(i.messages[d].range,t.fullField,t.min,t.max));},$i="enum",j2=function(t,n,r,o,i){t[$i]=Array.isArray(t[$i])?t[$i]:[],t[$i].indexOf(n)===-1&&o.push(Gn(i.messages[$i],t.fullField,t[$i].join(", ")));},H2=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Gn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Gn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Ct={required:ey,whitespace:k2,type:F2,range:z2,enum:j2,pattern:H2},B2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"string")&&!t.required)return r();Ct.required(t,n,o,a,i,"string"),un(n,"string")||(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i),Ct.pattern(t,n,o,a,i),t.whitespace===!0&&Ct.whitespace(t,n,o,a,i));}r(a);},W2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},V2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),un(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},U2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},K2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Ct.required(t,n,o,a,i),un(n)||Ct.type(t,n,o,a,i);}r(a);},G2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},X2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},q2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ct.required(t,n,o,a,i,"array"),n!=null&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},Y2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},Q2="enum",Z2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct[Q2](t,n,o,a,i);}r(a);},J2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"string")&&!t.required)return r();Ct.required(t,n,o,a,i),un(n,"string")||Ct.pattern(t,n,o,a,i);}r(a);},eM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"date")&&!t.required)return r();if(Ct.required(t,n,o,a,i),!un(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ct.type(t,l,o,a,i),l&&Ct.range(t,l.getTime(),o,a,i);}}r(a);},tM=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Ct.required(t,n,o,a,i,s),r(a);},Yu=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n,a)&&!t.required)return r();Ct.required(t,n,o,s,i,a),un(n,a)||Ct.type(t,n,o,s,i);}r(s);},nM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Ct.required(t,n,o,a,i);}r(a);},qa={string:B2,method:W2,number:V2,boolean:U2,regexp:K2,integer:G2,float:X2,array:q2,object:Y2,enum:Z2,pattern:J2,date:eM,url:Yu,hex:Yu,email:Yu,required:tM,any:nM};function yf(){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 Cf=yf(),ks=function(){function e(n){this.rules=null,this._messages=Cf,this.define(n);}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a];});},t.messages=function(r){return r&&(this._messages=lm(yf(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(m){var g=[],b={};function y($){if(Array.isArray($)){var w;g=(w=g).concat.apply(w,$);}else g.push($);}for(var C=0;C3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!io(e,t.slice(0,-1))?e:ry(e,t,n,r)}function Zc(e){return Array.isArray(e)?oM(e):tt(e)==="object"&&e!==null?rM(e):e}function rM(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=Zc(e[n]);return t}return e}function oM(e){return e.map(function(t){return Zc(t)})}function Jt(e){return pf(e)}function um(e,t){var n={};return t.forEach(function(r){var o=io(e,r);n=Eo(n,r,o);}),n}function Ya(e,t){return e&&e.some(function(n){return iy(n,t)})}function dm(e){return tt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function oy(e,t){var n=Array.isArray(e)?me(e):j({},e);return t&&Object.keys(t).forEach(function(r){var o=n[r],i=t[r],a=dm(o)&&dm(i);n[r]=a?oy(o,i||{}):Zc(i);}),n}function Qa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(me(e.slice(0,n)),[o],me(e.slice(n,t)),me(e.slice(t+1,r))):i<0?[].concat(me(e.slice(0,t)),me(e.slice(t+1,n+1)),[o],me(e.slice(n+1,r))):e}var hm=ks;function sM(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var vm="CODE_LOGIC_ERROR";function Sf(e,t,n,r,o){return wf.apply(this,arguments)}function wf(){return wf=gi(_n().mark(function e(t,n,r,o,i){var a,s,l,c,u,d,h,v,p;return _n().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=j({},r),delete a.ruleIndex,hm.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(vm)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new hm(W({},t,[a])),u=Qa({},ty,o.validateMessages),c.messages(u),d=[],g.prev=10,g.next=13,Promise.resolve(c.validate(W({},t,n),j({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(d=g.t0.errors.map(function(b,y){var C=b.message,$=C===vm?u.default:C;return f__namespace.isValidElement($)?f__namespace.cloneElement($,{key:"error_".concat(y)}):$}));case 18:if(!(!d.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(b,y){return Sf("".concat(t,".").concat(y),b,l,o,i)}));case 21:return h=g.sent,g.abrupt("return",h.reduce(function(b,y){return [].concat(me(b),me(y))},[]));case 23:return v=j(j({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),p=d.map(function(b){return typeof b=="string"?sM(b,v):b}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),wf.apply(this,arguments)}function lM(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,d){var h=u.validator,v=j(j({},u),{},{ruleIndex:d});return h&&(v.validator=function(p,m,g){var b=!1,y=function(){for(var w=arguments.length,S=new Array(w),x=0;x0&&arguments[0]!==void 0?arguments[0]:er;if(o.validatePromise===m){var x;o.validatePromise=null;var R=[],M=[];(x=S.forEach)===null||x===void 0||x.call(S,function(O){var I=O.rule.warningOnly,P=O.errors,_=P===void 0?er:P;I?M.push.apply(M,me(_)):R.push.apply(R,me(_));}),o.errors=R,o.warnings=M,o.triggerMetaEvent(),o.reRender();}}),w});return p||(o.validatePromise=m,o.dirty=!0,o.errors=er,o.warnings=er,o.triggerMetaEvent(),o.reRender()),m},o.isFieldValidating=function(){return !!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(Jo),u=c.getInitialValue;return u(o.getNamePath())!==void 0},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},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},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 u=sa(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},o.getValue=function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return io(l||c(!0),u)},o.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,h=c.getValueFromEvent,v=c.normalize,p=c.valuePropName,m=c.getValueProps,g=c.fieldContext,b=d!==void 0?d:g.validateTrigger,y=o.getNamePath(),C=g.getInternalHooks,$=g.getFieldsValue,w=C(Jo),S=w.dispatch,x=o.getValue(),R=m||function(P){return W({},p,P)},M=l[u],O=j(j({},l),R(x));O[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var P,_=arguments.length,E=new Array(_),T=0;T<_;T++)E[T]=arguments[T];h?P=h.apply(void 0,E):P=aM.apply(void 0,[p].concat(E)),v&&(P=v(P,x,$(!0))),S({type:"updateValue",namePath:y,value:P}),M&&M.apply(void 0,E);};var I=pf(b||[]);return I.forEach(function(P){var _=O[P];O[P]=function(){_&&_.apply(void 0,arguments);var E=o.props.rules;E&&E.length&&S({type:"validateField",namePath:y,triggerName:P});};}),O},r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Jo),s=a.initEntityValue;s(ft(o));}return o}return vn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(Jo),c=l.registerField;this.cancelRegisterFunc=c(this);}i===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:f__namespace.isValidElement(s)?c=f__namespace.cloneElement(s,this.getControlled(s.props)):(yn(!s,"`children` of Field is not validate ReactElement."),c=s),f__namespace.createElement(f__namespace.Fragment,{key:o},c)}}]),n}(f__namespace.Component);qh.contextType=ca;qh.defaultProps={trigger:"onChange",valuePropName:"value"};function ay(e){var t=e.name,n=Qe(e,dM),r=f__namespace.useContext(ca),o=f__namespace.useContext(vf),i=t!==void 0?Jt(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),f__namespace.createElement(qh,pe({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}var fM=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,s=t.isListField,l=f__namespace.useContext(ca),c=f__namespace.useContext(vf),u=f__namespace.useRef({keys:[],id:0}),d=u.current,h=f__namespace.useMemo(function(){var g=Jt(l.prefixName)||[];return [].concat(me(g),me(Jt(n)))},[l.prefixName,n]),v=f__namespace.useMemo(function(){return j(j({},l),{},{prefixName:h})},[l,h]),p=f__namespace.useMemo(function(){return {getKey:function(b){var y=h.length,C=b[y];return [d.keys[C],b.slice(y+1)]}}},[h]);if(typeof o!="function")return yn(!1,"Form.List only accepts function as children."),null;var m=function(b,y,C){var $=C.source;return $==="internal"?!1:b!==y};return f__namespace.createElement(vf.Provider,{value:p},f__namespace.createElement(ca.Provider,{value:v},f__namespace.createElement(ay,{name:[],shouldUpdate:m,rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:s??!!c},function(g,b){var y=g.value,C=y===void 0?[]:y,$=g.onChange,w=l.getFieldValue,S=function(){var O=w(h||[]);return O||[]},x={add:function(O,I){var P=S();I>=0&&I<=P.length?(d.keys=[].concat(me(d.keys.slice(0,I)),[d.id],me(d.keys.slice(I))),$([].concat(me(P.slice(0,I)),[O],me(P.slice(I))))):(d.keys=[].concat(me(d.keys),[d.id]),$([].concat(me(P),[O]))),d.id+=1;},remove:function(O){var I=S(),P=new Set(Array.isArray(O)?O:[O]);P.size<=0||(d.keys=d.keys.filter(function(_,E){return !P.has(E)}),$(I.filter(function(_,E){return !P.has(E)})));},move:function(O,I){if(O!==I){var P=S();O<0||O>=P.length||I<0||I>=P.length||(d.keys=fm(d.keys,O,I),$(fm(P,O,I)));}}},R=C||[];return Array.isArray(R)||(R=[]),o(R.map(function(M,O){var I=d.keys[O];return I===void 0&&(d.keys[O]=d.id,I=d.keys[O],d.id+=1),{name:O,key:I,isListField:!0}}),x,b)})))};function hM(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r));});});}):Promise.resolve([])}var sy="__@field_split__";function Qu(e){return e.map(function(t){return "".concat(tt(t),":").concat(t)}).join(sy)}var Ei=function(){function e(){hn(this,e),this.kvs=new Map;}return vn(e,[{key:"set",value:function(n,r){this.kvs.set(Qu(n),r);}},{key:"get",value:function(n){return this.kvs.get(Qu(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(Qu(n));}},{key:"map",value:function(n){return me(this.kvs.entries()).map(function(r){var o=U(r,2),i=o[0],a=o[1],s=i.split(sy);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=U(c,3),d=u[1],h=u[2];return d==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),vM=["name"],pM=vn(function e(t){var n=this;hn(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return {getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(r){return r===Jo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(yn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r;},this.prevWithoutPreserves=null,this.setInitialValues=function(r,o){if(n.initialValues=r||{},o){var i,a=Qa({},r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Eo(a,l,io(r,l));}),n.prevWithoutPreserves=null,n.updateStore(a);}},this.destroyForm=function(){var r=new Ei;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;},this.getInitialValue=function(r){var o=io(n.initialValues,r);return r.length?Zc(o):o},this.setCallbacks=function(r){n.callbacks=r;},this.setValidateMessages=function(r){n.validateMessages=r;},this.setPreserve=function(r){n.preserve=r;},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r);});}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){n.store=r;},this.getFieldEntities=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ei;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i);}),o},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Jt(i);return o.get(a)||{INVALIDATE_NAME_PATH:Jt(i)}})},this.getFieldsValue=function(r,o){if(n.warningUnhooked(),r===!0&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return i.forEach(function(s){var l,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!r&&(!((l=s.isListField)===null||l===void 0)&&l.call(s))))if(!o)a.push(c);else {var u="getMeta"in s?s.getMeta():null;o(u)&&a.push(c);}}),um(n.store,a.map(Jt))},this.getFieldValue=function(r){n.warningUnhooked();var o=Jt(r);return io(n.store,o)},this.getFieldsError=function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Jt(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=Jt(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=Jt(r),i=n.getFieldsError([o])[0];return i.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Ei,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d);}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),v=n.getInitialValue(h);if(v!==void 0)yn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else {var p=o.get(h);if(p&&p.size>1)yn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=n.getFieldValue(h);(!r.skipExist||m===void 0)&&n.updateStore(Eo(n.store,h,me(p)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,me(me(c).map(function(d){return d.entity})));}})):s=i,a(s);},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Qa({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Jt);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Eo(n.store,a,s));}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i);},this.setFields=function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=Qe(a,vM),c=Jt(s);i.push(c),"value"in l&&n.updateStore(Eo(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a});}),n.notifyWatch(i);},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=j(j({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=io(n.store,i);a===void 0&&n.updateStore(Eo(n.store,i,o));}},this.isMergedPreserve=function(r){var o=r!==void 0?r:n.preserve;return o??!0},this.registerField=function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !iy(d.getNamePath(),o)})){var u=n.store;n.updateStore(Eo(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}},this.dispatch=function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=j(j({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a);});}else n.forceRootUpdate();},this.triggerDependenciesUpdate=function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(me(i))}),i},this.updateValue=function(r,o){var i=Jt(r),a=n.store;n.updateStore(Eo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=um(n.store,[i]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([i].concat(me(s)));},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=Qa(n.store,r);n.updateStore(i);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();},this.setFieldValue=function(r,o){n.setFields([{name:r,value:o}]);},this.getDependencyChildrenFields=function(r){var o=new Set,i=[],a=new Ei;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Jt(u);a.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h});});});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(i.push(h),l(h));}});};return s(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Ei;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=a.filter(function(c){var u=c.name;return Ya(r,u)});i(l,a);}},this.validateFields=function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(Jt):[],c=[];n.getFieldEntities(!0).forEach(function(h){var v;if(s||l.push(h.getNamePath()),!((v=a)===null||v===void 0)&&v.recursive&&s){var p=h.getNamePath();p.every(function(b,y){return i[y]===b||i[y]===void 0})&&l.push(p);}if(!(!h.props.rules||!h.props.rules.length)){var m=h.getNamePath();if(!s||Ya(l,m)){var g=h.validateRules(j({validateMessages:j(j({},ty),n.validateMessages)},a));c.push(g.then(function(){return {name:m,errors:[],warnings:[]}}).catch(function(b){var y,C=[],$=[];return (y=b.forEach)===null||y===void 0||y.call(b,function(w){var S=w.rule.warningOnly,x=w.errors;S?$.push.apply($,me(x)):C.push.apply(C,me(x));}),C.length?Promise.reject({name:m,errors:C,warnings:$}):{name:m,errors:C,warnings:$}}));}}});var u=hM(c);n.lastValidatePromise=u,u.catch(function(h){return h}).then(function(h){var v=h.map(function(p){var m=p.name;return m});n.notifyObservers(n.store,v,{type:"validateFinish"}),n.triggerOnFieldsChange(v,h);});var d=u.then(function(){return n.lastValidatePromise===u?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(h){var v=h.filter(function(p){return p&&p.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:v,outOfDate:n.lastValidatePromise!==u})});return d.catch(function(h){return h}),n.triggerOnFieldsChange(l),d},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(i){console.error(i);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});},this.forceRootUpdate=t;});function ly(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=U(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var i=function(){o({});},a=new pM(i);t.current=a.getForm();}return [t.current]}var Ef=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),cy=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=f__namespace.useContext(Ef),s=f__namespace.useRef({});return f__namespace.createElement(Ef.Provider,{value:j(j({},a),{},{validateMessages:j(j({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=j(j({},s.current),{},W({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=j({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},i)},mM=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],gM=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,v=h===void 0?"onChange":h,p=t.onValuesChange,m=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,y=Qe(t,mM),C=f__namespace.useContext(Ef),$=ly(a),w=U($,1),S=w[0],x=S.getInternalHooks(Jo),R=x.useSubscribe,M=x.setInitialValues,O=x.setCallbacks,I=x.setValidateMessages,P=x.setPreserve,_=x.destroyForm;f__namespace.useImperativeHandle(n,function(){return S}),f__namespace.useEffect(function(){return C.registerForm(r,S),function(){C.unregisterForm(r);}},[C,S,r]),I(j(j({},C.validateMessages),d)),O({onValuesChange:p,onFieldsChange:function(F){if(C.triggerFormChange(r,F),m){for(var K=arguments.length,V=new Array(K>1?K-1:0),q=1;q{const n=f__namespace.useContext(Yh),r=f__namespace.useMemo(()=>{var i;const a=t||ua[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=f__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?ua.locale:i},[n]);return [r,o]},Qh=OM,PM="internalMark",RM=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>(bm(t&&t.Modal),()=>{bm();}),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Yh.Provider,{value:o},n)},_M=RM,MM="5.5.1",ys=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Cn(e,t){TM(e)&&(e="100%");var n=IM(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function sl(e){return Math.min(1,Math.max(0,e))}function TM(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function IM(e){return typeof e=="string"&&e.indexOf("%")!==-1}function dy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ll(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ti(e){return e.length===1?"0"+e:String(e)}function NM(e,t,n){return {r:Cn(e,255)*255,g:Cn(t,255)*255,b:Cn(n,255)*255}}function ym(e,t,n){e=Cn(e,255),t=Cn(t,255),n=Cn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else {var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AM(e,t,n){var r,o,i;if(e=Cn(e,360),t=Cn(t,100),n=Cn(n,100),t===0)o=n,i=n,r=n;else {var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Ju(s,a,e+1/3),o=Ju(s,a,e),i=Ju(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function Of(e,t,n){e=Cn(e,255),t=Cn(t,255),n=Cn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else {switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Rf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Li(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=HM(e)),typeof e=="object"&&(Jr(e.r)&&Jr(e.g)&&Jr(e.b)?(t=NM(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jr(e.h)&&Jr(e.s)&&Jr(e.v)?(r=ll(e.s),o=ll(e.v),t=DM(e.h,r,o),a=!0,s="hsv"):Jr(e.h)&&Jr(e.s)&&Jr(e.l)&&(r=ll(e.s),i=ll(e.l),t=AM(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=dy(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var zM="[-\\+]?\\d+%?",jM="[-\\+]?\\d*\\.\\d+%?",No="(?:".concat(jM,")|(?:").concat(zM,")"),ed="[\\s|\\(]+(".concat(No,")[,|\\s]+(").concat(No,")[,|\\s]+(").concat(No,")\\s*\\)?"),td="[\\s|\\(]+(".concat(No,")[,|\\s]+(").concat(No,")[,|\\s]+(").concat(No,")[,|\\s]+(").concat(No,")\\s*\\)?"),cr={CSS_UNIT:new RegExp(No),rgb:new RegExp("rgb"+ed),rgba:new RegExp("rgba"+td),hsl:new RegExp("hsl"+ed),hsla:new RegExp("hsla"+td),hsv:new RegExp("hsv"+ed),hsva:new RegExp("hsva"+td),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function HM(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Rf[e])e=Rf[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=cr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=cr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=cr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=cr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=cr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=cr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=cr.hex8.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),a:Cm(n[4]),format:t?"name":"hex8"}:(n=cr.hex6.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),format:t?"name":"hex"}:(n=cr.hex4.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),a:Cm(n[4]+n[4]),format:t?"name":"hex8"}:(n=cr.hex3.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Jr(e){return !!cr.CSS_UNIT.exec(String(e))}var en=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=FM(t)),this.originalInput=t;var o=Li(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=dy(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Of(this.r,this.g,this.b);return {h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Of(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ym(this.r,this.g,this.b);return {h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ym(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Pf(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),kM(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return {r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return "".concat(Math.round(Cn(n,255)*100),"%")};return {r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Cn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return "transparent";if(this.a<1)return !1;for(var t="#"+Pf(this.r,this.g,this.b,!1),n=0,r=Object.entries(Rf);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=sl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=sl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=sl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=sl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-cl*t:Math.round(e.h)+cl*t:r=n?Math.round(e.h)+cl*t:Math.round(e.h)-cl*t,r<0?r+=360:r>=360&&(r-=360),r}function $m(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Sm*t:t===hy?r=e.s+Sm:r=e.s+BM*t,r>1&&(r=1),n&&t===fy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Em(e,t,n){var r;return n?r=e.v+WM*t:r=e.v-VM*t,r>1&&(r=1),Number(r.toFixed(2))}function po(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Li(e),o=fy;o>0;o-=1){var i=wm(r),a=ul(Li({h:xm(i,o,!0),s:$m(i,o,!0),v:Em(i,o,!0)}));n.push(a);}n.push(ul(r));for(var s=1;s<=hy;s+=1){var l=wm(r),c=ul(Li({h:xm(l,s),s:$m(l,s),v:Em(l,s)}));n.push(c);}return t.theme==="dark"?UM.map(function(u){var d=u.index,h=u.opacity,v=ul(KM(Li(t.backgroundColor||"#141414"),Li(n[d]),h*100));return v}):n}var nd={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Tl={},rd={};Object.keys(nd).forEach(function(e){Tl[e]=po(nd[e]),Tl[e].primary=Tl[e][5],rd[e]=po(nd[e],{theme:"dark",backgroundColor:"#141414"}),rd[e].primary=rd[e][5];});var GM=Tl.blue;const XM=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},vy=XM;function qM(e){const{sizeUnit:t,sizeStep:n}=e;return {sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Zh={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Jc=Object.assign(Object.assign({},Zh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function py(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(o),v=n(i),p=n(a),m=n(s),g=r(c,u);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new en("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const YM=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},QM=YM;function ZM(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},QM(r))}const eo=(e,t)=>new en(e).setAlpha(t).toRgbString(),Ra=(e,t)=>new en(e).darken(t).toHexString(),JM=e=>{const t=po(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},eT=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:eo(r,.88),colorTextSecondary:eo(r,.65),colorTextTertiary:eo(r,.45),colorTextQuaternary:eo(r,.25),colorFill:eo(r,.15),colorFillSecondary:eo(r,.06),colorFillTertiary:eo(r,.04),colorFillQuaternary:eo(r,.02),colorBgLayout:Ra(n,4),colorBgContainer:Ra(n,0),colorBgElevated:Ra(n,0),colorBgSpotlight:eo(r,.85),colorBorder:Ra(n,15),colorBorderSecondary:Ra(n,6)}};function tT(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const nT=e=>{const t=tT(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return {fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},my=nT;function eu(e){const t=Object.keys(Zh).map(n=>{const r=po(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),py(e,{generateColorPalettes:JM,generateNeutralColorPalettes:eT})),my(e.fontSize)),qM(e)),vy(e)),ZM(e))}function od(e){return e>=0&&e<=255}function dl(e,t){const{r:n,g:r,b:o,a:i}=new en(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new en(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(od(u)&&od(d)&&od(h))return new en({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new en({r:n,g:r,b:o,a:1}).toRgbString()}var rT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h;}return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:dl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:dl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:dl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:dl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new en("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new en("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new en("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const gy="anticon",iT=(e,t)=>t||(e?`ant-${e}`:"ant"),gt=f__namespace.createContext({getPrefixCls:iT,iconPrefixCls:gy}),aT=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),u=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*i-u,v=d,p=2*i-l,m=c,g=2*i-a,b=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=n*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*i-C}px 100%, ${C}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${h} ${v} L ${p} ${m} A ${n} ${n} 0 0 0 ${g} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Ki={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Zt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Fs=()=>({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"}}),sT=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),lT=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"}}}),cT=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return {[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},tu=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Jh=e=>({"&:focus-visible":Object.assign({},tu(e))});function pn(e,t,n,r){return o=>{const[i,a,s]=bi(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(gt),d=l(),h={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return hf(Object.assign(Object.assign({},h),{path:["Shared",d]}),()=>[{"&":lT(a)}]),[hf(Object.assign(Object.assign({},h),{path:[e,o,c]}),()=>{const{token:v,flush:p}=dT(a),m=typeof n=="function"?n(v):n,g=Object.assign(Object.assign({},m),a[e]),b=`.${o}`,y=Ft(v,{componentCls:b,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},g),C=t(y,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:a[e]});return p(e,g),[(r==null?void 0:r.resetStyle)===!1?null:cT(a,o),C]}),s]}}const by=typeof CSSINJS_STATISTIC<"u";let _f=!0;function Ft(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),_f=!0,r}function uT(){}function dT(e){let t,n=e,r=uT;return by&&(t=new Set,n=new Proxy(e,{get(o,i){return _f&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function yy(e,t){return ys.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const fT=J0(eu),rc={token:Jc,hashed:!0},Cy=f.createContext(rc);function bi(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(Cy),o=`${MM}-${t||""}`,i=n||fT,[a,s]=h2(i,[Jc,e],{salt:o,override:Object.assign({override:e},r),formatToken:oT});return [i,a,t?s:""]}const hT=`-ant-${Date.now()}-${Math.random()}`;function vT(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new en(a),c=po(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const a=new en(t.primaryColor),s=po(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new en(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function pT(e,t){const n=vT(e,t);ba()&&tc(n,`${hT}-dynamic-theme`);}const Mf=f__namespace.createContext(!1),mT=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(Mf);return f__namespace.createElement(Mf.Provider,{value:n??r},t)},Ho=Mf,gT=e=>{const t=f.useContext(nu);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},xr=gT,Sy=f__namespace.createContext(void 0),bT=e=>{let{children:t,size:n}=e;const r=xr(n);return f__namespace.createElement(Sy.Provider,{value:r},t)},nu=Sy;function yT(){const e=f.useContext(Ho),t=f.useContext(nu);return {componentDisabled:e,componentSize:t}}function CT(e,t){const n=e||{},r=n.inherit===!1||!t?rc:t;return Uh(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((s,l)=>{const c=a[l];return !Y_(s,c,!0)}))}var ST=["children"],wy=f__namespace.createContext({});function wT(e){var t=e.children,n=Qe(e,ST);return f__namespace.createElement(wy.Provider,{value:n},t)}var xT=function(e){Fo(n,e);var t=zo(n);function n(){return hn(this,n),t.apply(this,arguments)}return vn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function si(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=U(n,2),o=r[0],i=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||i(s);}return [o,a]}var Yo="none",fl="appear",hl="enter",vl="leave",Om="none",mr="prepare",ji="start",Hi="active",ev="end",xy="prepared";function Cr(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function Pm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function $T(e,t){var n={animationend:Pm("Animation","AnimationEnd"),transitionend:Pm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ET=$T(Cr(),typeof window<"u"?window:{}),$y={};if(Cr()){var OT=document.createElement("div");$y=OT.style;}var pl={};function Ey(e){if(pl[e])return pl[e];var t=ET[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:1;Tm+=1;var r=Tm;function o(i){if(i===0)Iy(r),t();else {var a=My(function(){o(i-1);});tv.set(r,a);}}return o(n),r};Mt.cancel=function(e){var t=tv.get(e);return Iy(t),Ty(t)};const RT=function(){var e=f__namespace.useRef(null);function t(){Mt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Mt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var _T=[mr,ji,Hi,ev],MT=[mr,xy],Ny=!1,TT=!0;function Ay(e){return e===Hi||e===ev}const IT=function(e,t,n){var r=si(Om),o=U(r,2),i=o[0],a=o[1],s=RT(),l=U(s,2),c=l[0],u=l[1];function d(){a(mr,!0);}var h=t?MT:_T;return _y(function(){if(i!==Om&&i!==ev){var v=h.indexOf(i),p=h[v+1],m=n(i);m===Ny?a(p,!0):p&&c(function(g){function b(){g.isCanceled()||a(p,!0);}m===!0?b():Promise.resolve(m).then(b);});}},[e,i]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,i]};function NT(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,v=r.onEnterPrepare,p=r.onLeavePrepare,m=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,$=r.onLeaveActive,w=r.onAppearEnd,S=r.onEnterEnd,x=r.onLeaveEnd,R=r.onVisibleChanged,M=si(),O=U(M,2),I=O[0],P=O[1],_=si(Yo),E=U(_,2),T=E[0],A=E[1],N=si(null),D=U(N,2),L=D[0],B=D[1],G=f.useRef(!1),F=f.useRef(null);function K(){return n()}var V=f.useRef(!1);function q(){A(Yo,!0),B(null,!0);}function ne(he){var ue=K();if(!(he&&!he.deadline&&he.target!==ue)){var be=V.current,We;T===fl&&be?We=w==null?void 0:w(ue,he):T===hl&&be?We=S==null?void 0:S(ue,he):T===vl&&be&&(We=x==null?void 0:x(ue,he)),T!==Yo&&be&&We!==!1&&q();}}var Z=PT(ne),Y=U(Z,1),te=Y[0],ae=function(ue){var be,We,ct;switch(ue){case fl:return be={},W(be,mr,h),W(be,ji,m),W(be,Hi,y),be;case hl:return We={},W(We,mr,v),W(We,ji,g),W(We,Hi,C),We;case vl:return ct={},W(ct,mr,p),W(ct,ji,b),W(ct,Hi,$),ct;default:return {}}},le=f__namespace.useMemo(function(){return ae(T)},[T]),de=IT(T,!e,function(he){if(he===mr){var ue=le[mr];return ue?ue(K()):Ny}if(ce in le){var be;B(((be=le[ce])===null||be===void 0?void 0:be.call(le,K(),null))||null);}return ce===Hi&&(te(K()),u>0&&(clearTimeout(F.current),F.current=setTimeout(function(){ne({deadline:!0});},u))),ce===xy&&q(),TT}),ee=U(de,2),oe=ee[0],ce=ee[1],se=Ay(ce);V.current=se,_y(function(){P(t);var he=G.current;G.current=!0;var ue;!he&&t&&s&&(ue=fl),he&&t&&i&&(ue=hl),(he&&!t&&c||!he&&d&&!t&&c)&&(ue=vl);var be=ae(ue);ue&&(e||be[mr])?(A(ue),oe()):A(Yo);},[t]),f.useEffect(function(){(T===fl&&!s||T===hl&&!i||T===vl&&!c)&&A(Yo);},[s,i,c]),f.useEffect(function(){return function(){G.current=!1,clearTimeout(F.current);}},[]);var ve=f__namespace.useRef(!1);f.useEffect(function(){I&&(ve.current=!0),I!==void 0&&T===Yo&&((ve.current||I)&&(R==null||R(I)),ve.current=!0);},[I,T]);var re=L;return le[mr]&&ce===ji&&(re=j({transition:"none"},re)),[T,ce,re,I??t]}function AT(e){var t=e;tt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=f__namespace.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,h=o.motionName,v=o.leavedClassName,p=o.eventProps,m=f__namespace.useContext(wy),g=m.motion,b=n(o,g),y=f.useRef(),C=f.useRef();function $(){try{return y.current instanceof HTMLElement?y.current:ms(C.current)}catch{return null}}var w=NT(b,s,$,o),S=U(w,4),x=S[0],R=S[1],M=S[2],O=S[3],I=f__namespace.useRef(O);O&&(I.current=!0);var P=f__namespace.useCallback(function(B){y.current=B,M0(i,B);},[i]),_,E=j(j({},p),{},{visible:s});if(!d)_=null;else if(x===Yo)O?_=d(j({},E),P):!c&&I.current&&v?_=d(j(j({},E),{},{className:v}),P):u||!c&&!v?_=d(j(j({},E),{},{style:{display:"none"}}),P):_=null;else {var T,A;R===mr?A="prepare":Ay(R)?A="active":R===ji&&(A="start");var N=Mm(h,"".concat(x,"-").concat(A));_=d(j(j({},E),{},{className:X(Mm(h,x),(T={},W(T,N,N&&A),W(T,h,typeof h=="string"),T)),style:M}),P);}if(f__namespace.isValidElement(_)&&ga(_)){var D=_,L=D.ref;L||(_=f__namespace.cloneElement(_,{ref:P}));}return f__namespace.createElement(xT,{ref:C},_)});return r.displayName="CSSMotion",r}const $r=AT(Ry);var Tf="add",If="keep",Nf="remove",id="removed";function DT(e){var t;return e&&tt(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function Af(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(DT)}function kT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Af(e),a=Af(t);i.forEach(function(c){for(var u=!1,d=r;d1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,h=u.status;return d!==c||h!==Nf}),n.forEach(function(u){u.key===c&&(u.status=If);});}),n}var LT=["component","children","onVisibleChanged","onAllRemoved"],FT=["status"],zT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function jT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$r,n=function(r){Fo(i,r);var o=zo(i);function i(){var a;hn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c{const[n,r]=bi();return hf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Fs()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},WT=BT;var VT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(Dy=t),r&&pT(GT(),r);},qT=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:d,popupOverflow:h,legacyLocale:v,parentContext:p,iconPrefixCls:m,theme:g,componentDisabled:b}=e,y=f__namespace.useCallback((T,A)=>{const{prefixCls:N}=e;if(A)return A;const D=N||p.getPrefixCls("");return T?`${D}-${T}`:D},[p.getPrefixCls,e.prefixCls]),C=m||p.iconPrefixCls||gy,$=C!==p.iconPrefixCls,w=n||p.csp,S=WT(C,w),x=CT(g,p.theme),R={csp:w,autoInsertSpaceInButton:r,locale:i||v,direction:s,space:l,virtual:c,popupMatchSelectWidth:d??u,popupOverflow:h,getPrefixCls:y,iconPrefixCls:C,theme:x},M=Object.assign({},p);Object.keys(R).forEach(T=>{R[T]!==void 0&&(M[T]=R[T]);}),UT.forEach(T=>{const A=e[T];A&&(M[T]=A);});const O=Uh(()=>M,M,(T,A)=>{const N=Object.keys(T),D=Object.keys(A);return N.length!==D.length||N.some(L=>T[L]!==A[L])}),I=f__namespace.useMemo(()=>({prefixCls:C,csp:w}),[C,w]);let P=$?S(t):t;const _=f__namespace.useMemo(()=>{var T,A,N;return Qa({},((T=ua.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},((N=(A=O.locale)===null||A===void 0?void 0:A.Form)===null||N===void 0?void 0:N.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[O,o==null?void 0:o.validateMessages]);Object.keys(_).length>0&&(P=f__namespace.createElement(cy,{validateMessages:_},t)),i&&(P=f__namespace.createElement(_M,{locale:i,_ANT_MARK__:PM},P)),(C||w)&&(P=f__namespace.createElement(Xh.Provider,{value:I},P)),a&&(P=f__namespace.createElement(bT,{size:a},P)),P=f__namespace.createElement(HT,null,P);const E=f__namespace.useMemo(()=>{const T=x||{},{algorithm:A,token:N}=T,D=VT(T,["algorithm","token"]),L=A&&(!Array.isArray(A)||A.length>0)?J0(A):void 0;return Object.assign(Object.assign({},D),{theme:L,token:Object.assign(Object.assign({},Jc),N)})},[x]);return g&&(P=f__namespace.createElement(Cy.Provider,{value:E},P)),b!==void 0&&(P=f__namespace.createElement(mT,{disabled:b},P)),f__namespace.createElement(gt.Provider,{value:O},P)},ya=e=>{const t=f__namespace.useContext(gt),n=f__namespace.useContext(Yh);return f__namespace.createElement(qT,Object.assign({parentContext:t,legacyLocale:n},e))};ya.ConfigContext=gt;ya.SizeContext=nu;ya.config=XT;ya.useConfig=yT;Object.defineProperty(ya,"SizeContext",{get:()=>nu});const nv=ya;function Za(e,t){if(!e)return !1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return !0;n=n.parentNode;}return !1}var Im="data-rc-order",YT="rc-util-key",Df=new Map;function ky(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):YT}function ru(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function QT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ly(e){return Array.from((Df.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Fy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Cr())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Im,QT(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=ru(t),a=i.firstChild;if(r){if(r==="queue"){var s=Ly(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Im))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function zy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ru(t);return Ly(n).find(function(r){return r.getAttribute(ky(t))===e})}function Nm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=zy(e,t);if(n){var r=ru(t);r.removeChild(n);}}function ZT(e,t){var n=Df.get(e);if(!n||!Za(document,n)){var r=Fy("",t),o=r.parentNode;Df.set(e,o),e.removeChild(r);}}function jy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ru(n);ZT(r,n);var o=zy(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=Fy(e,n);return l.setAttribute(ky(n),t),l}function Hy(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function JT(e){return Hy(e)!==(e==null?void 0:e.ownerDocument)}function eI(e){return JT(e)?Hy(e):null}function tI(e,t){yn(e,"[@ant-design/icons] ".concat(t));}function Am(e){return tt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(tt(e.icon)==="object"||typeof e.icon=="function")}function Dm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r;}return t},{})}function kf(e,t,n){return n?f.createElement(e.tag,j(j({key:t},Dm(e.attrs)),n),(e.children||[]).map(function(r,o){return kf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,j({key:t},Dm(e.attrs)),(e.children||[]).map(function(r,o){return kf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function By(e){return po(e)[0]}function Wy(e){return e?Array.isArray(e)?e:[e]:[]}var nI=` .anticon { display: inline-block; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,rI=function(t){var n=f.useContext(Xh),r=n.csp,o=n.prefixCls,i=nI;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,s=eI(a);jy(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},oI=["icon","className","onClick","style","primaryColor","secondaryColor"],Ja={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function iI(e){var t=e.primaryColor,n=e.secondaryColor;Ja.primaryColor=t,Ja.secondaryColor=n||By(t),Ja.calculated=!!n;}function aI(){return j({},Ja)}var ou=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Qe(t,oI),c=f__namespace.useRef(),u=Ja;if(a&&(u={primaryColor:a,secondaryColor:s||By(a)}),rI(c),tI(Am(n),"icon should be icon definiton, but got ".concat(n)),!Am(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=j(j({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),kf(d.icon,"svg-".concat(d.name),j(j({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};ou.displayName="IconReact";ou.getTwoToneColors=aI;ou.setTwoToneColors=iI;const rv=ou;function Vy(e){var t=Wy(e),n=U(t,2),r=n[0],o=n[1];return rv.setTwoToneColors({primaryColor:r,secondaryColor:o})}function sI(){var e=rv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var lI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Vy(GM.primary);var iu=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Qe(e,lI),d=f__namespace.useContext(Xh),h=d.prefixCls,v=h===void 0?"anticon":h,p=d.rootClassName,m=X(p,v,(n={},W(n,"".concat(v,"-").concat(o.name),!!o.name),W(n,"".concat(v,"-spin"),!!i||o.name==="loading"),n),r),g=s;g===void 0&&l&&(g=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=Wy(c),C=U(y,2),$=C[0],w=C[1];return f__namespace.createElement("span",pe({role:"img","aria-label":o.name},u,{ref:t,tabIndex:g,onClick:l,className:m}),f__namespace.createElement(rv,{icon:o,primaryColor:$,secondaryColor:w,style:b}))});iu.displayName="AntdIcon";iu.getTwoToneColor=sI;iu.setTwoToneColor=Vy;const Qn=iu;var cI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const uI=cI;var dI=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:uI}))};const ov=f__namespace.forwardRef(dI);var fI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const hI=fI;var vI=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:hI}))};const iv=f__namespace.forwardRef(vI);var pI={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"};const mI=pI;var gI=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:mI}))};const Uy=f__namespace.forwardRef(gI);function bI(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-")||n==="role")&&!n.startsWith("data-__")&&(t[n]=e[n]),t),{})}const{isValidElement:av}=f__namespace;function Ky(e){return e&&av(e)&&e.type===f__namespace.Fragment}function yI(e,t,n){return av(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Sr(e,t){return yI(e,e,t)}function to(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a=J.F1&&n<=J.F12)return !1;switch(n){case J.ALT:case J.CAPS_LOCK:case J.CONTEXT_MENU:case J.CTRL:case J.DOWN:case J.END:case J.ESC:case J.HOME:case J.INSERT:case J.LEFT:case J.MAC_FF_META:case J.META:case J.NUMLOCK:case J.NUM_CENTER:case J.PAGE_DOWN:case J.PAGE_UP:case J.PAUSE:case J.PRINT_SCREEN:case J.RIGHT:case J.SHIFT:case J.UP:case J.WIN_KEY:case J.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=J.ZERO&&t<=J.NINE||t>=J.NUM_ZERO&&t<=J.NUM_MULTIPLY||t>=J.A&&t<=J.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case J.SPACE:case J.QUESTION_MARK:case J.NUM_PLUS:case J.NUM_MINUS:case J.NUM_PERIOD:case J.NUM_DIVISION:case J.SEMICOLON:case J.DASH:case J.EQUALS:case J.COMMA:case J.PERIOD:case J.SLASH:case J.APOSTROPHE:case J.SINGLE_QUOTE:case J.OPEN_SQUARE_BRACKET:case J.BACKSLASH:case J.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},CI={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"};const SI=CI;var wI=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:SI}))};const Gy=f__namespace.forwardRef(wI);var zs=j({},na__namespace),xI=zs.version,$I=zs.render,EI=zs.unmountComponentAtNode,au;try{var OI=Number((xI||"").split(".")[0]);OI>=18&&(au=zs.createRoot);}catch{}function km(e){var t=zs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&tt(t)==="object"&&(t.usingClientEntryPoint=e);}var oc="__rc_react_root__";function PI(e,t){km(!0);var n=t[oc]||au(t);km(!1),n.render(e),t[oc]=n;}function RI(e,t){$I(e,t);}function _I(e,t){if(au){PI(e,t);return}RI(e,t);}function MI(e){return Lf.apply(this,arguments)}function Lf(){return Lf=gi(_n().mark(function e(t){return _n().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[oc])===null||o===void 0||o.unmount(),delete t[oc];}));case 1:case"end":return r.stop()}},e)})),Lf.apply(this,arguments)}function TI(e){EI(e);}function II(e){return Ff.apply(this,arguments)}function Ff(){return Ff=gi(_n().mark(function e(t){return _n().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(au===void 0){r.next=2;break}return r.abrupt("return",MI(t));case 2:TI(t);case 3:case"end":return r.stop()}},e)})),Ff.apply(this,arguments)}function zf(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=U(n,2),o=r[0],i=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||i(s);}return [o,a]}function Xy(e,t){typeof e=="function"?e(t):tt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Co(){for(var e=arguments.length,t=new Array(e),n=0;n{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},DI=pn("Wave",e=>[AI(e)]);function kI(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function ad(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&kI(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function LI(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return ad(t)?t:ad(n)?n:ad(r)?r:null}function sd(e){return Number.isNaN(e)?0:e}const FI=e=>{const{className:t,target:n}=e,r=f__namespace.useRef(null),[o,i]=f__namespace.useState(null),[a,s]=f__namespace.useState([]),[l,c]=f__namespace.useState(0),[u,d]=f__namespace.useState(0),[h,v]=f__namespace.useState(0),[p,m]=f__namespace.useState(0),[g,b]=f__namespace.useState(!1),y={left:l,top:u,width:h,height:p,borderRadius:a.map($=>`${$}px`).join(" ")};o&&(y["--wave-color"]=o);function C(){const $=getComputedStyle(n);i(LI(n));const w=$.position==="static",{borderLeftWidth:S,borderTopWidth:x}=$;c(w?n.offsetLeft:sd(-parseFloat(S))),d(w?n.offsetTop:sd(-parseFloat(x))),v(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:M,borderBottomLeftRadius:O,borderBottomRightRadius:I}=$;s([R,M,I,O].map(P=>sd(parseFloat(P))));}return f__namespace.useEffect(()=>{if(n){const $=gs(()=>{C(),b(!0);});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(C),w.observe(n)),()=>{gs.cancel($),w==null||w.disconnect();}}},[]),g?f__namespace.createElement($r,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,w)=>{var S;if(w.deadline||w.propertyName==="opacity"){const x=(S=r.current)===null||S===void 0?void 0:S.parentElement;II(x).then(()=>{x==null||x.remove();});}return !1}},$=>{let{className:w}=$;return f__namespace.createElement("div",{ref:r,className:X(t,w),style:y})}):null};function zI(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),_I(f__namespace.createElement(FI,{target:e,className:t}),n);}function jI(e,t){function n(){const r=e.current;zI(r,t);}return n}const HI=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=f.useContext(gt),o=f.useRef(null),i=r("wave"),[,a]=DI(i),s=jI(o,X(i,a));if(f.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const u=d=>{d.target.tagName==="INPUT"||!Yy(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",u,!0),()=>{c.removeEventListener("click",u,!0);}},[n]),!f.isValidElement(t))return t??null;const l=qy(t)?Co(t.ref,o):o;return Sr(t,{ref:l})},Qy=HI;function vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return f.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(vi(r)):Ns.isFragment(r)&&r.props?n=n.concat(vi(r.props.children,t)):n.push(r));}),n}const BI=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},WI=BI,VI=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},Zy=pn("Space",e=>[VI(e),WI(e)],()=>({}),{resetStyle:!1});var Jy=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=f__namespace.useContext(su),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return X({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Cs=e=>{let{children:t}=e;return f__namespace.createElement(su.Provider,{value:null},t)},UI=e=>{var{children:t}=e,n=Jy(e,["children"]);return f__namespace.createElement(su.Provider,{value:n},t)},KI=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(gt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Jy(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=xr(C=>{var $;return ($=r??C)!==null&&$!==void 0?$:"middle"}),h=t("space-compact",a),[v,p]=Zy(h),m=X(h,p,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:i,[`${h}-vertical`]:o==="vertical"},s,l),g=f__namespace.useContext(su),b=vi(c),y=f__namespace.useMemo(()=>b.map((C,$)=>{const w=C&&C.key||`${h}-item-${$}`;return f__namespace.createElement(UI,{key:w,compactSize:d,compactDirection:o,isFirstItem:$===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:$===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},C)}),[r,b,g]);return b.length===0?null:v(f__namespace.createElement("div",Object.assign({className:m},u),y))},GI=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=X(`${i}-icon`,n);return f.createElement("span",{ref:t,className:a,style:r},o)}),eC=GI,Lm=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=X(`${n}-loading-icon`,r);return f.createElement(eC,{prefixCls:n,className:a,style:o,ref:t},f.createElement(Gy,{className:i}))}),ld=()=>({width:0,opacity:0,transform:"scale(0)"}),cd=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),XI=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e;const a=!!n;return r?f.createElement(Lm,{prefixCls:t,className:o,style:i}):f.createElement($r,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:ld,onAppearActive:cd,onEnterStart:ld,onEnterActive:cd,onLeaveStart:cd,onLeaveActive:ld},(s,l)=>{let{className:c,style:u}=s;return f.createElement(Lm,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},qI=XI;var YI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=f__namespace.useContext(gt),{prefixCls:r,size:o,className:i}=e,a=YI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=bi();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=X(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return f__namespace.createElement(tC.Provider,{value:o},f__namespace.createElement("div",Object.assign({},a,{className:u})))},ZI=QI,Fm=/^[\u4e00-\u9fa5]{2}$/,jf=Fm.test.bind(Fm);function JI(e){return typeof e=="string"}function ud(e){return e==="text"||e==="link"}function eN(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&JI(e.type)&&jf(e.props.children)?Sr(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?jf(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):Ky(e)?f.createElement("span",null,e):e}function tN(e,t){let n=!1;const r=[];return f.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=a;}),f.Children.map(r,o=>eN(o,t))}function nN(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function rN(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function lu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return {[r]:Object.assign(Object.assign({},nN(e,r,t)),rN(n,r,t))}}function oN(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function iN(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 aN(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},oN(e,t)),iN(e.componentCls,t))}}const zm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),sN=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, &:focus, &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},zm(`${t}-primary`,o),zm(`${t}-danger`,i)]}},lN=sN,cN=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Jh(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},mo=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),uN=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),dN=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Hf=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),ic=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},mo(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),sv=e=>({"&:disabled":Object.assign({},Hf(e))}),nC=e=>Object.assign({},sv(e)),ac=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),rC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nC(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),mo({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ic(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},mo({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ic(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),sv(e))}),fN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nC(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),mo({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),ic(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},mo({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),ic(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sv(e))}),hN=e=>Object.assign(Object.assign({},rC(e)),{borderStyle:"dashed"}),vN=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},mo({color:e.colorLinkHover},{color:e.colorLinkActive})),ac(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},mo({color:e.colorErrorHover},{color:e.colorErrorActive})),ac(e))}),pN=e=>Object.assign(Object.assign(Object.assign({},mo({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),ac(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ac(e)),mo({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),mN=e=>Object.assign(Object.assign({},Hf(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Hf(e))}),gN=e=>{const{componentCls:t}=e;return {[`${t}-default`]:rC(e),[`${t}-primary`]:fN(e),[`${t}-dashed`]:hN(e),[`${t}-link`]:vN(e),[`${t}-text`]:pN(e),[`${t}-disabled`]:mN(e)}},lv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*i)/2-a),d=l-a,h=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${h}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:uN(e)},{[`${n}${n}-round${t}`]:dN(e)}]},bN=e=>lv(e),yN=e=>{const t=Ft(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return lv(t,`${e.componentCls}-sm`)},CN=e=>{const t=Ft(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return lv(t,`${e.componentCls}-lg`)},SN=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},wN=pn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Ft(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [cN(r),yN(r),bN(r),CN(r),SN(r),gN(r),lN(r),lu(e),aN(e)]});var xN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{loading:n=!1,prefixCls:r,type:o="default",danger:i,shape:a="default",size:s,styles:l,disabled:c,className:u,rootClassName:d,children:h,icon:v,ghost:p=!1,block:m=!1,htmlType:g="button",classNames:b}=e,y=xN(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames"]),{getPrefixCls:C,autoInsertSpaceInButton:$,direction:w}=f.useContext(gt),S=C("btn",r),[x,R]=wN(S),M=f.useContext(Ho),O=c??M,I=f.useContext(tC),P=f.useMemo(()=>$N(n),[n]),[_,E]=f.useState(P.loading),[T,A]=f.useState(!1),D=Co(t,f.createRef()),L=f.Children.count(h)===1&&!v&&!ud(o);f.useEffect(()=>{let oe=null;P.delay>0?oe=setTimeout(()=>{oe=null,E(!0);},P.delay):E(P.loading);function ce(){oe&&(clearTimeout(oe),oe=null);}return ce},[P]),f.useEffect(()=>{if(!D||!D.current||$===!1)return;const oe=D.current.textContent;L&&jf(oe)?T||A(!0):T&&A(!1);},[D]);const B=oe=>{const{onClick:ce}=e;if(_||O){oe.preventDefault();return}ce==null||ce(oe);},G=$!==!1,{compactSize:F,compactItemClassnames:K}=js(S,w),V={large:"lg",small:"sm",middle:void 0},q=xr(oe=>{var ce,se;return (se=(ce=F??I)!==null&&ce!==void 0?ce:s)!==null&&se!==void 0?se:oe}),ne=q&&V[q]||"",Z=_?"loading":v,Y=hi(y,["navigate"]),te=Y.href!==void 0&&O,ae=X(S,R,{[`${S}-${a}`]:a!=="default"&&a,[`${S}-${o}`]:o,[`${S}-${ne}`]:ne,[`${S}-icon-only`]:!h&&h!==0&&!!Z,[`${S}-background-ghost`]:p&&!ud(o),[`${S}-loading`]:_,[`${S}-two-chinese-chars`]:T&&G&&!_,[`${S}-block`]:m,[`${S}-dangerous`]:!!i,[`${S}-rtl`]:w==="rtl",[`${S}-disabled`]:te},K,u,d),le=v&&!_?f.createElement(eC,{prefixCls:S,className:b==null?void 0:b.icon,style:l==null?void 0:l.icon},v):f.createElement(qI,{existIcon:!!v,prefixCls:S,loading:!!_}),de=h||h===0?tN(h,L&&G):null;if(Y.href!==void 0)return x(f.createElement("a",Object.assign({},Y,{className:ae,onClick:B,ref:D}),le,de));let ee=f.createElement("button",Object.assign({},y,{type:g,className:ae,onClick:B,disabled:O,ref:D}),le,de);return ud(o)||(ee=f.createElement(Qy,{disabled:!!_},ee)),x(ee)},cv=f.forwardRef(EN);cv.Group=ZI;cv.__ANT_BUTTON=!0;const In=cv;function jm(e){return !!(e&&e.then)}const ON=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=f__namespace.useRef(!1),d=f__namespace.useRef(null),[h,v]=zf(!1),p=function(){i==null||i.apply(void 0,arguments);};f__namespace.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var y;(y=d.current)===null||y===void 0||y.focus();})),()=>{b&&clearTimeout(b);}},[]);const m=b=>{jm(b)&&(v(!0),b.then(function(){v(!1,!0),p.apply(void 0,arguments),u.current=!1;},y=>(v(!1,!0),u.current=!1,Promise.reject(y))));},g=b=>{if(u.current)return;if(u.current=!0,!c){p();return}let y;if(s){if(y=c(b),l&&!jm(y)){u.current=!1,p(b);return}}else if(c.length)y=c(i),u.current=!1;else if(y=c(),!y){p();return}m(y);};return f__namespace.createElement(In,Object.assign({},oC(t),{onClick:g,loading:h,prefixCls:r},o,{ref:d}),n)},PN=ON,dd=()=>({height:0,opacity:0}),Hm=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},RN=e=>({height:e?e.offsetHeight:0}),fd=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",_N=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:dd,onEnterStart:dd,onAppearActive:Hm,onEnterActive:Hm,onLeaveStart:RN,onLeaveActive:dd,onAppearEnd:fd,onEnterEnd:fd,onLeaveEnd:fd,motionDeadline:500}},MN=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",cu=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var iC=f__namespace.createContext(null),Sn=Cr()?f__namespace.useLayoutEffect:f__namespace.useEffect,Gi=function(t,n){var r=f__namespace.useRef(!0);Sn(function(){if(!r.current)return t()},n),Sn(function(){return r.current=!1,function(){r.current=!0;}},[]);},Bm=[];function TN(e,t){var n=f__namespace.useState(function(){if(!Cr())return null;var p=document.createElement("div");return p}),r=U(n,1),o=r[0],i=f__namespace.useRef(!1),a=f__namespace.useContext(iC),s=f__namespace.useState(Bm),l=U(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(p){u(function(m){var g=[p].concat(me(m));return g});});function h(){o.parentElement||document.body.appendChild(o),i.current=!0;}function v(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),i.current=!1;}return Sn(function(){return e?a?a(h):h():v(),v},[e]),Sn(function(){c.length&&(c.forEach(function(p){return p()}),u(Bm));},[c]),[o,d]}var hd;function IN(e){if(typeof document>"u")return 0;if(e||hd===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),hd=o-i;}return hd}function NN(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var AN="rc-util-locker-".concat(Date.now()),Wm=0;function DN(e){var t=!!e,n=f__namespace.useState(function(){return Wm+=1,"".concat(AN,"_").concat(Wm)}),r=U(n,1),o=r[0];Sn(function(){if(t){var i=IN(),a=NN();jy(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o);}else Nm(o);return function(){Nm(o);}},[t,o]);}var Vm=!1;function kN(e){return typeof e=="boolean"&&(Vm=e),Vm}var Um=function(t){return t===!1?!1:!Cr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},aC=f__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=f__namespace.useState(n),c=U(l,2),u=c[0],d=c[1],h=u||n;f__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var v=f__namespace.useState(function(){return Um(o)}),p=U(v,2),m=p[0],g=p[1];f__namespace.useEffect(function(){var I=Um(o);g(I??null);});var b=TN(h&&!m),y=U(b,2),C=y[0],$=y[1],w=m??C;DN(r&&n&&Cr()&&(w===C||w===document.body));var S=null;if(s&&ga(s)&&t){var x=s;S=x.ref;}var R=Xc(S,t);if(!h||!Cr()||m===void 0)return null;var M=w===!1||kN(),O=s;return t&&(O=f__namespace.cloneElement(s,{ref:R})),f__namespace.createElement(iC.Provider,{value:$},M?O:na.createPortal(O,w))}),LN=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,FN=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,zN="".concat(LN," ").concat(FN).split(/[\s\n]+/),jN="aria-",HN="data-";function Km(e,t){return e.indexOf(t)===0}function sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=j({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Km(o,jN))||n.data&&Km(o,HN)||n.attr&&zN.includes(o))&&(r[o]=e[o]);}),r}const Wr=f__namespace.createContext({}),lc=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(Wr),i=f.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return f__namespace.createElement(Wr.Provider,{value:i},t)},BN=()=>ba()&&window.document.documentElement;let ml;const WN=()=>{if(!BN())return !1;if(ml!==void 0)return ml;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),ml=e.scrollHeight===1,document.body.removeChild(e),ml},VN=e=>({animationDuration:e,animationFillMode:"both"}),UN=e=>({animationDuration:e,animationFillMode:"both"}),uv=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},VN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},UN(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},KN=new It("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),GN=new It("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),XN=new It("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qN=new It("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),YN=new It("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),QN=new It("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ZN=new It("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),JN=new It("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),eA={"move-up":{inKeyframes:ZN,outKeyframes:JN},"move-down":{inKeyframes:KN,outKeyframes:GN},"move-left":{inKeyframes:XN,outKeyframes:qN},"move-right":{inKeyframes:YN,outKeyframes:QN}},Gm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=eA[t];return [uv(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},sC=new It("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),lC=new It("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),cC=new It("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),uC=new It("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),tA=new It("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),nA=new It("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),rA=new It("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),oA=new It("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),iA={"slide-up":{inKeyframes:sC,outKeyframes:lC},"slide-down":{inKeyframes:cC,outKeyframes:uC},"slide-left":{inKeyframes:tA,outKeyframes:nA},"slide-right":{inKeyframes:rA,outKeyframes:oA}},cc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=iA[t];return [uv(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},aA=new It("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sA=new It("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Xm=new It("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qm=new It("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),lA=new It("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),cA=new It("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),uA=new It("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),dA=new It("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),fA=new It("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),hA=new It("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),vA=new It("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),pA=new It("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),mA={zoom:{inKeyframes:aA,outKeyframes:sA},"zoom-big":{inKeyframes:Xm,outKeyframes:qm},"zoom-big-fast":{inKeyframes:Xm,outKeyframes:qm},"zoom-left":{inKeyframes:uA,outKeyframes:dA},"zoom-right":{inKeyframes:fA,outKeyframes:hA},"zoom-up":{inKeyframes:lA,outKeyframes:cA},"zoom-down":{inKeyframes:vA,outKeyframes:pA}},dC=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=mA[t];return [uv(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},gA=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),bA=gA;var ir=ba()?f__namespace.useLayoutEffect:f__namespace.useEffect,Ym=function(t,n){var r=f__namespace.useRef(!0);ir(function(){if(!r.current)return t()},n),ir(function(){return r.current=!1,function(){r.current=!0;}},[]);};function vd(e){return e!==void 0}function So(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=zf(function(){return vd(o)?o:vd(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=U(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,h=a?a(d):d,v=to(i),p=zf([d]),m=U(p,2),g=m[0],b=m[1];Ym(function(){var C=g[0];c!==C&&v(c,C);},[g]),Ym(function(){vd(o)||u(o);},[o]);var y=to(function(C,$){u(C,$),b([d],$);});return [h,y]}function fC(e,t,n,r){return function(i){const{prefixCls:a,style:s}=i,l=f__namespace.useRef(null),[c,u]=f__namespace.useState(0),[d,h]=f__namespace.useState(0),[v,p]=So(!1,{value:i.open}),{getPrefixCls:m}=f__namespace.useContext(gt),g=m(t||"select",a);f__namespace.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver($=>{const w=$[0].target;u(w.offsetHeight+8),h(w.offsetWidth);}),C=setInterval(()=>{var $;const w=n?`.${n(g)}`:`.${g}-dropdown`,S=($=l.current)===null||$===void 0?void 0:$.querySelector(w);S&&(clearInterval(C),y.observe(S));},10);return ()=>{clearInterval(C),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>l.current});return r&&(b=r(b)),f__namespace.createElement(nv,{theme:{token:{motion:!1}}},f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b))))}}function uc(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a"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 hC=f__namespace.createContext(null);function yA(){return f__namespace.useContext(hC)}function CA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=U(t,2),r=n[0],o=n[1],i=f__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};f__namespace.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,a]}function vC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f__namespace.useRef(null),n=f__namespace.useRef(null);f__namespace.useEffect(function(){return function(){window.clearTimeout(n.current);}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null;},e);}return [function(){return t.current},r]}function SA(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__namespace.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(l)&&c!==l})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[]);}var wA=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Oi=void 0;function xA(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,v=e.display,p=e.order,m=e.component,g=m===void 0?"div":m,b=Qe(e,wA),y=a&&!v;function C(R){l(c,R);}f__namespace.useEffect(function(){return function(){C(null);}},[]);var $=i&&o!==Oi?i(o):h,w;r||(w={opacity:y?0:1,height:y?0:Oi,overflowY:y?"hidden":Oi,order:a?p:Oi,pointerEvents:y?"none":Oi,position:y?"absolute":Oi});var S={};y&&(S["aria-hidden"]=!0);var x=f__namespace.createElement(g,pe({className:X(!r&&n,u),style:j(j({},w),d)},S,b,{ref:t}),$);return a&&(x=f__namespace.createElement(vo,{onResize:function(M){var O=M.offsetWidth;C(O);},disabled:s},x)),x}var es=f__namespace.forwardRef(xA);es.displayName="Item";function $A(e){if(typeof MessageChannel>"u")Mt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function EA(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],$A(function(){na.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function _a(e,t){var n=f__namespace.useState(t),r=U(n,2),o=r[0],i=r[1],a=uc(function(s){e(function(){i(s);});});return [o,a]}var OA=["component"],PA=["className"],RA=["className"],_A=function(t,n){var r=f__namespace.useContext(dc);if(!r){var o=t.component,i=o===void 0?"div":o,a=Qe(t,OA);return f__namespace.createElement(i,pe({},a,{ref:n}))}var s=r.className,l=Qe(r,PA),c=t.className,u=Qe(t,RA);return f__namespace.createElement(dc.Provider,{value:null},f__namespace.createElement(es,pe({ref:n,className:X(s,c)},l,u)))},pC=f__namespace.forwardRef(_A);pC.displayName="RawItem";var MA=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],dc=f__namespace.createContext(null),mC="responsive",gC="invalidate";function TA(e){return "+ ".concat(e.length," ...")}function IA(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,v=e.className,p=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,$=e.itemComponent,w=e.onVisibleChange,S=Qe(e,MA),x=d==="full",R=EA(),M=_a(R,null),O=U(M,2),I=O[0],P=O[1],_=I||0,E=_a(R,new Map),T=U(E,2),A=T[0],N=T[1],D=_a(R,0),L=U(D,2),B=L[0],G=L[1],F=_a(R,0),K=U(F,2),V=K[0],q=K[1],ne=_a(R,0),Z=U(ne,2),Y=Z[0],te=Z[1],ae=f.useState(null),le=U(ae,2),de=le[0],ee=le[1],oe=f.useState(null),ce=U(oe,2),se=ce[0],ve=ce[1],re=f__namespace.useMemo(function(){return se===null&&x?Number.MAX_SAFE_INTEGER:se||0},[se,I]),he=f.useState(!1),ue=U(he,2),be=ue[0],We=ue[1],ct="".concat(r,"-item"),et=Math.max(B,V),ze=p===mC,qe=i.length&&ze,ke=p===gC,Ie=qe||typeof p=="number"&&i.length>p,Le=f.useMemo(function(){var Ae=i;return qe?I===null&&x?Ae=i:Ae=i.slice(0,Math.min(i.length,_/u)):typeof p=="number"&&(Ae=i.slice(0,p)),Ae},[i,u,I,p,qe]),Pe=f.useMemo(function(){return qe?i.slice(re+1):i.slice(Le.length)},[i,Le,qe,re]),Ne=f.useCallback(function(Ae,fe){var ie;return typeof l=="function"?l(Ae):(ie=l&&(Ae==null?void 0:Ae[l]))!==null&&ie!==void 0?ie:fe},[l]),vt=f.useCallback(a||function(Ae){return Ae},[a]);function st(Ae,fe,ie){se===Ae&&(fe===void 0||fe===de)||(ve(Ae),ie||(We(Ae_){st(Se-1,Ae-xe-Y+V);break}}b&&pt(0)+Y>_&&ee(null);}},[_,A,V,Y,Ne,Le]);var $e=be&&!!Pe.length,Ee={};de!==null&&qe&&(Ee={position:"absolute",left:de,top:0});var je={prefixCls:ct,responsive:qe,component:$,invalidate:ke},Re=s?function(Ae,fe){var ie=Ne(Ae,fe);return f__namespace.createElement(dc.Provider,{key:ie,value:j(j({},je),{},{order:fe,item:Ae,itemKey:ie,registerSize:we,display:fe<=re})},s(Ae,fe))}:function(Ae,fe){var ie=Ne(Ae,fe);return f__namespace.createElement(es,pe({},je,{order:fe,key:ie,item:Ae,renderItem:vt,itemKey:ie,registerSize:we,display:fe<=re}))},nt,$t={order:$e?re:Number.MAX_SAFE_INTEGER,className:"".concat(ct,"-rest"),registerSize:Ze,display:$e};if(g)g&&(nt=f__namespace.createElement(dc.Provider,{value:j(j({},je),$t)},g(Pe)));else {var zt=m||TA;nt=f__namespace.createElement(es,pe({},je,$t),typeof zt=="function"?zt(Pe):zt);}var kt=f__namespace.createElement(C,pe({className:X(!ke&&r,v),style:h,ref:t},S),Le.map(Re),Ie?nt:null,b&&f__namespace.createElement(es,pe({},je,{responsive:ze,responsiveDisabled:!qe,order:re,className:"".concat(ct,"-suffix"),registerSize:Ke,display:!0,style:Ee}),b));return ze&&(kt=f__namespace.createElement(vo,{onResize:ge,disabled:!qe},kt)),kt}var zr=f__namespace.forwardRef(IA);zr.displayName="Overflow";zr.Item=pC;zr.RESPONSIVE=mC;zr.INVALIDATE=gC;var fc=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,f__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),i&&i(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:f__namespace.createElement("span",{className:X(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},NA=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,h=t.editable,v=t.activeDescendantId,p=t.value,m=t.maxLength,g=t.onKeyDown,b=t.onMouseDown,y=t.onChange,C=t.onPaste,$=t.onCompositionStart,w=t.onCompositionEnd,S=t.open,x=t.attrs,R=s||f__namespace.createElement("input",null),M=R,O=M.ref,I=M.props,P=I.onKeyDown,_=I.onChange,E=I.onMouseDown,T=I.onCompositionStart,A=I.onCompositionEnd,N=I.style;return "maxLength"in R.props,R=f__namespace.cloneElement(R,j(j(j({type:"search"},I),{},{id:a,ref:jo(n,O),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:X("".concat(i,"-selection-search-input"),(r=R)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":v},x),{},{value:h?p:"",maxLength:m,readOnly:!h,unselectable:h?null:"on",style:j(j({},N),{},{opacity:h?null:0}),onKeyDown:function(L){g(L),P&&P(L);},onMouseDown:function(L){b(L),E&&E(L);},onChange:function(L){y(L),_&&_(L);},onCompositionStart:function(L){$(L),T&&T(L);},onCompositionEnd:function(L){w(L),A&&A(L);},onPaste:C})),R},dv=f__namespace.forwardRef(NA);dv.displayName="Input";function bC(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var AA=typeof window<"u"&&window.document&&window.document.documentElement,DA=AA;function kA(e){return e!=null}function Qm(e){return ["string","number"].includes(tt(e))}function yC(e){var t=void 0;return e&&(Qm(e.title)?t=e.title.toString():Qm(e.label)&&(t=e.label.toString())),t}function LA(e,t){DA?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function FA(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Zm=function(t){t.preventDefault(),t.stopPropagation();},zA=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,h=t.showSearch,v=t.autoFocus,p=t.autoComplete,m=t.activeDescendantId,g=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,$=t.maxTagPlaceholder,w=$===void 0?function(ee){return "+ ".concat(ee.length," ...")}:$,S=t.tagRender,x=t.onToggleOpen,R=t.onRemove,M=t.onInputChange,O=t.onInputPaste,I=t.onInputKeyDown,P=t.onInputMouseDown,_=t.onInputCompositionStart,E=t.onInputCompositionEnd,T=f__namespace.useRef(null),A=f.useState(0),N=U(A,2),D=N[0],L=N[1],B=f.useState(!1),G=U(B,2),F=G[0],K=G[1],V="".concat(r,"-selection"),q=i||d==="multiple"&&s===!1||d==="tags"?a:"",ne=d==="tags"||d==="multiple"&&s===!1||h&&(i||F);LA(function(){L(T.current.scrollWidth);},[q]);function Z(ee,oe,ce,se,ve){return f__namespace.createElement("span",{className:X("".concat(V,"-item"),W({},"".concat(V,"-item-disabled"),ce)),title:yC(ee)},f__namespace.createElement("span",{className:"".concat(V,"-item-content")},oe),se&&f__namespace.createElement(fc,{className:"".concat(V,"-item-remove"),onMouseDown:Zm,onClick:ve,customizeIcon:b},"×"))}function Y(ee,oe,ce,se,ve){var re=function(ue){Zm(ue),x(!i);};return f__namespace.createElement("span",{onMouseDown:re},S({label:oe,value:ee,disabled:ce,closable:se,onClose:ve}))}function te(ee){var oe=ee.disabled,ce=ee.label,se=ee.value,ve=!u&&!oe,re=ce;if(typeof C=="number"&&(typeof ce=="string"||typeof ce=="number")){var he=String(re);he.length>C&&(re="".concat(he.slice(0,C),"..."));}var ue=function(We){We&&We.stopPropagation(),R(ee);};return typeof S=="function"?Y(se,re,oe,ve,ue):Z(ee,re,oe,ve,ue)}function ae(ee){var oe=typeof w=="function"?w(ee):w;return Z({title:oe},oe,!1)}var le=f__namespace.createElement("div",{className:"".concat(V,"-search"),style:{width:D},onFocus:function(){K(!0);},onBlur:function(){K(!1);}},f__namespace.createElement(dv,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:v,autoComplete:p,editable:ne,activeDescendantId:m,value:q,onKeyDown:I,onMouseDown:P,onChange:M,onPaste:O,onCompositionStart:_,onCompositionEnd:E,tabIndex:g,attrs:sc(t,!0)}),f__namespace.createElement("span",{ref:T,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},q," ")),de=f__namespace.createElement(zr,{prefixCls:"".concat(V,"-overflow"),data:o,renderItem:te,renderRest:ae,suffix:le,itemKey:FA,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,de,!o.length&&!q&&f__namespace.createElement("span",{className:"".concat(V,"-placeholder")},c))},jA=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,h=t.values,v=t.placeholder,p=t.tabIndex,m=t.showSearch,g=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,$=t.onInputMouseDown,w=t.onInputChange,S=t.onInputPaste,x=t.onInputCompositionStart,R=t.onInputCompositionEnd,M=t.title,O=f__namespace.useState(!1),I=U(O,2),P=I[0],_=I[1],E=u==="combobox",T=E||m,A=h[0],N=g||"";E&&b&&!P&&(N=b),f__namespace.useEffect(function(){E&&_(!1);},[E,b]);var D=u!=="combobox"&&!d&&!m?!1:!!N,L=M===void 0?yC(A):M,B=function(){if(A)return null;var F=D?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:F},v)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(dv,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:T,activeDescendantId:c,value:N,onKeyDown:C,onMouseDown:$,onChange:function(F){_(!0),w(F);},onPaste:S,onCompositionStart:x,onCompositionEnd:R,tabIndex:p,attrs:sc(t,!0),maxLength:E?y:void 0})),!E&&A?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:D?{visibility:"hidden"}:void 0},A.label):null,B())};function HA(e){return ![J.ESC,J.SHIFT,J.BACKSPACE,J.TAB,J.WIN_KEY,J.ALT,J.META,J.WIN_KEY_RIGHT,J.CTRL,J.SEMICOLON,J.EQUALS,J.CAPS_LOCK,J.CONTEXT_MENU,J.F1,J.F2,J.F3,J.F4,J.F5,J.F6,J.F7,J.F8,J.F9,J.F10,J.F11,J.F12].includes(e)}var BA=function(t,n){var r=f.useRef(null),o=f.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,p=t.onInputKeyDown,m=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var g=vC(0),b=U(g,2),y=b[0],C=b[1],$=function(N){var D=N.which;(D===J.UP||D===J.DOWN)&&N.preventDefault(),p&&p(N),D===J.ENTER&&s==="tags"&&!o.current&&!a&&(h==null||h(N.target.value)),HA(D)&&v(!0);},w=function(){C(!0);},S=f.useRef(null),x=function(N){d(N,!0,o.current)!==!1&&v(!0);},R=function(){o.current=!0;},M=function(N){o.current=!1,s!=="combobox"&&x(N.target.value);},O=function(N){var D=N.target.value;if(c&&S.current&&/[\r\n]/.test(S.current)){var L=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(L,S.current);}S.current=null,x(D);},I=function(N){var D=N.clipboardData,L=D.getData("text");S.current=L;},P=function(N){var D=N.target;if(D!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus();}):r.current.focus();}},_=function(N){var D=y();N.target!==r.current&&!D&&s!=="combobox"&&N.preventDefault(),(s!=="combobox"&&(!l||!D)||!a)&&(a&&u!==!1&&d("",!0,!1),v());},E={inputRef:r,onInputKeyDown:$,onInputMouseDown:w,onInputChange:O,onInputPaste:I,onInputCompositionStart:R,onInputCompositionEnd:M},T=s==="multiple"||s==="tags"?f__namespace.createElement(zA,pe({},t,E)):f__namespace.createElement(jA,pe({},t,E));return f__namespace.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:P,onMouseDown:_},T)},CC=f__namespace.forwardRef(BA);CC.displayName="Selector";function Bf(e){return e instanceof HTMLElement||e instanceof SVGElement}function WA(){var e=j({},f__namespace);return e.useId}var Jm=0;function VA(e){var t=f__namespace.useState("ssr-id"),n=U(t,2),r=n[0],o=n[1],i=WA(),a=i==null?void 0:i();return f__namespace.useEffect(function(){if(!i){var s=Jm;Jm+=1,o("rc_unique_".concat(s));}},[]),e||a||r}const UA=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 eg=f__namespace.createContext(null);function tg(e){return e?Array.isArray(e)?e:[e]:[]}function KA(e,t,n,r){return f__namespace.useMemo(function(){var o=tg(n??t),i=tg(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function GA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function XA(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ma(e){return Ss(parseFloat(e),0)}function rg(e,t){var n=j({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=Hs(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,v=r.clientHeight,p=r.offsetWidth,m=r.clientWidth,g=Ma(s),b=Ma(l),y=Ma(c),C=Ma(u),$=Ss(Math.round(d.width/p*1e3)/1e3),w=Ss(Math.round(d.height/h*1e3)/1e3),S=(p-m-y-C)*$,x=(h-v-g-b)*w,R=g*w,M=b*w,O=y*$,I=C*$,P=0,_=0;if(i==="clip"){var E=Ma(a);P=E*$,_=E*w;}var T=d.x+O-P,A=d.y+R-_,N=T+d.width+2*P-O-I-S,D=A+d.height+2*_-R-M-x;n.left=Math.max(n.left,T),n.top=Math.max(n.top,A),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,D);}}),n}function og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function ig(e,t){var n=t||[],r=U(n,2),o=r[0],i=r[1];return [og(e.width,o),og(e.height,i)]}function ag(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Pi(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function xo(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function qA(e,t,n,r,o,i,a){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=U(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),h=f__namespace.useMemo(function(){return t?Wf(t):[]},[t]),v=f__namespace.useRef({}),p=function(){v.current={};};e||p();var m=to(function(){if(t&&n&&e){let He=function(lt,Et){var jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ee,Ln=O.x+lt,xn=O.y+Et,Or=Ln+F,Jn=xn+G,Ko=Math.max(Ln,jt.left),Js=Math.max(xn,jt.top),xa=Math.min(Or,jt.right),el=Math.min(Jn,jt.bottom);return Math.max(0,(xa-Ko)*(el-Js))},St=function(){Se=O.y+Ke,xe=Se+G,Je=O.x+Ze,mt=Je+F;};var y=t,C=y.style.left,$=y.style.top,w=y.ownerDocument,S=Hs(y),x=j(j({},o[r]),i);y.style.left="0",y.style.top="0";var R;if(Array.isArray(n))R={x:n[0],y:n[1],width:0,height:0};else {var M=n.getBoundingClientRect();R={x:M.x,y:M.y,width:M.width,height:M.height};}var O=y.getBoundingClientRect(),I=S.getComputedStyle(y),P=I.width,_=I.height,E=w.documentElement,T=E.clientWidth,A=E.clientHeight,N=E.scrollWidth,D=E.scrollHeight,L=E.scrollTop,B=E.scrollLeft,G=O.height,F=O.width,K=R.height,V=R.width,q={left:0,top:0,right:T,bottom:A},ne={left:-B,top:-L,right:N-B,bottom:D-L},Z=x.htmlRegion,Y="visible",te="visibleFirst";Z!=="scroll"&&Z!==te&&(Z=Y);var ae=Z===te,le=rg(ne,h),de=rg(q,h),ee=Z===Y?de:le,oe=ae?de:ee;y.style.left=C,y.style.top=$;var ce=Ss(Math.round(F/parseFloat(P)*1e3)/1e3),se=Ss(Math.round(G/parseFloat(_)*1e3)/1e3);if(ce===0||se===0||Bf(n)&&!Yy(n))return;var ve=x.offset,re=x.targetOffset,he=ig(O,ve),ue=U(he,2),be=ue[0],We=ue[1],ct=ig(R,re),et=U(ct,2),ze=et[0],qe=et[1];R.x-=ze,R.y-=qe;var ke=x.points||[],Ie=U(ke,2),Le=Ie[0],Pe=Ie[1],Ne=ag(Pe),vt=ag(Le),st=Pi(R,Ne),ge=Pi(O,vt),we=j({},x),Ze=st.x-ge.x+be,Ke=st.y-ge.y+We,pt=He(Ze,Ke),$e=He(Ze,Ke,de),Ee=Pi(R,["t","l"]),je=Pi(O,["t","l"]),Re=Pi(R,["b","r"]),nt=Pi(O,["b","r"]),$t=x.overflow||{},zt=$t.adjustX,kt=$t.adjustY,Ae=$t.shiftX,fe=$t.shiftY,ie=function(Et){return typeof Et=="boolean"?Et:Et>=0},Se,xe,Je,mt;St();var wt=ie(kt),Xt=vt[0]===Ne[0];if(wt&&vt[0]==="t"&&(xe>oe.bottom||v.current.bt)){var Vt=Ke;Xt?Vt-=G-K:Vt=Ee.y-nt.y-We;var De=He(Ze,Vt),Ge=He(Ze,Vt,de);De>pt||De===pt&&(!ae||Ge>=$e)?(v.current.bt=!0,Ke=Vt,we.points=[xo(vt,0),xo(Ne,0)]):v.current.bt=!1;}if(wt&&vt[0]==="b"&&(Sept||xt===pt&&(!ae||yt>=$e)?(v.current.tb=!0,Ke=_e,we.points=[xo(vt,0),xo(Ne,0)]):v.current.tb=!1;}var Yt=ie(zt),Me=vt[1]===Ne[1];if(Yt&&vt[1]==="l"&&(mt>oe.right||v.current.rl)){var Ve=Ze;Me?Ve-=F-V:Ve=Ee.x-nt.x-be;var ut=He(Ve,Ke),Ot=He(Ve,Ke,de);ut>pt||ut===pt&&(!ae||Ot>=$e)?(v.current.rl=!0,Ze=Ve,we.points=[xo(vt,1),xo(Ne,1)]):v.current.rl=!1;}if(Yt&&vt[1]==="r"&&(Jept||Bt===pt&&(!ae||wn>=$e)?(v.current.lr=!0,Ze=qt,we.points=[xo(vt,1),xo(Ne,1)]):v.current.lr=!1;}St();var Mn=Ae===!0?0:Ae;typeof Mn=="number"&&(Jeee.right&&(Ze-=mt-ee.right,R.x>ee.right-Mn&&(Ze+=R.x-ee.right+Mn)));var lr=fe===!0?0:fe;typeof lr=="number"&&(Seee.bottom&&(Ke-=xe-ee.bottom,R.y>ee.bottom-lr&&(Ke+=R.y-ee.bottom+lr)));var Kr=O.x+Ze,Er=Kr+F,Zn=O.y+Ke,Pn=Zn+G,Gr=R.x,Bo=Gr+V,Xr=R.y,qr=Xr+K,Yr=Math.max(Kr,Gr),Wo=Math.min(Er,Bo),Vo=(Yr+Wo)/2,Uo=Vo-Kr,Qr=Math.max(Zn,Xr),Zr=Math.min(Pn,qr),Oe=(Qr+Zr)/2,ye=Oe-Zn;a==null||a(t,we),u({ready:!0,offsetX:Ze/ce,offsetY:Ke/se,arrowX:Uo/ce,arrowY:ye/se,scaleX:ce,scaleY:se,align:we});}}),g=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&m();});},b=function(){u(function(C){return j(j({},C),{},{ready:!1})});};return ir(b,[r]),ir(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function YA(e,t,n,r){ir(function(){if(e&&t&&n){let u=function(){r();};var o=t,i=n,a=Wf(o),s=Wf(i),l=Hs(i),c=new Set([l].concat(me(a),me(s)));return c.forEach(function(d){d.addEventListener("scroll",u,{passive:!0});}),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach(function(d){d.removeEventListener("scroll",u),l.removeEventListener("resize",u);});}}},[e,t,n]);}function QA(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,h=f__namespace.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],m=n.points[1],g=p[0],b=p[1],y=m[0],C=m[1];g===y||!["t","b"].includes(g)?v.top=d:g==="t"?v.top=0:v.bottom=0,b===C||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0;}return f__namespace.createElement("div",{ref:h,className:X("".concat(t,"-arrow"),a),style:v},s)}function ZA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f__namespace.createElement($r,pe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return f__namespace.createElement("div",{style:{zIndex:r},className:X("".concat(t,"-mask"),s)})}):null}var JA=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),eD=f__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,h=e.arrow,v=e.arrowPos,p=e.align,m=e.motion,g=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,C=e.autoDestroy,$=e.portal,w=e.zIndex,S=e.onMouseEnter,x=e.onMouseLeave,R=e.ready,M=e.offsetX,O=e.offsetY,I=e.onAlign,P=e.onPrepare,_=e.stretch,E=e.targetWidth,T=e.targetHeight,A=typeof n=="function"?n():n,N=l||c,D=(y==null?void 0:y.length)>0,L=f__namespace.useState(!y||!D),B=U(L,2),G=B[0],F=B[1];if(ir(function(){!G&&D&&a&&F(!0);},[G,D,a]),!G)return null;var K=R||!l?{left:M,top:O}:{left:"-1000vw",top:"-1000vh"},V={};return _&&(_.includes("height")&&T?V.height=T:_.includes("minHeight")&&T&&(V.minHeight=T),_.includes("width")&&E?V.width=E:_.includes("minWidth")&&E&&(V.minWidth=E)),l||(V.pointerEvents="none"),f__namespace.createElement($,{open:b||N,getContainer:y&&function(){return y(a)},autoDestroy:C},f__namespace.createElement(ZA,{prefixCls:o,open:l,zIndex:w,mask:d,motion:g}),f__namespace.createElement(vo,{onResize:I,disabled:!l},function(q){return f__namespace.createElement($r,pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:P,onEnterPrepare:P,visible:l,onVisibleChanged:function(Z){var Y;m==null||(Y=m.onVisibleChanged)===null||Y===void 0||Y.call(m,Z),s(Z);}}),function(ne,Z){var Y=ne.className,te=ne.style,ae=X(o,Y,r);return f__namespace.createElement("div",{ref:Co(q,t,Z),className:ae,style:j(j(j(j({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},K),V),te),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:S,onMouseLeave:x,onClick:u},h&&f__namespace.createElement(QA,{prefixCls:o,arrow:h,arrowPos:v,align:p}),f__namespace.createElement(JA,{cache:!l},A))})}))}),tD=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=qy(n),i=f__namespace.useCallback(function(s){Xy(t,r?r(s):s);},[r]),a=NI(i,n.ref);return o?f__namespace.cloneElement(n,{ref:a}):n}),nD=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function rD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aC,t=f__namespace.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,v=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,m=n.mouseEnterDelay,g=n.mouseLeaveDelay,b=g===void 0?.1:g,y=n.focusDelay,C=n.blurDelay,$=n.mask,w=n.maskClosable,S=w===void 0?!0:w,x=n.getPopupContainer,R=n.forceRender,M=n.autoDestroy,O=n.destroyPopupOnHide,I=n.popup,P=n.popupClassName,_=n.popupStyle,E=n.popupPlacement,T=n.builtinPlacements,A=T===void 0?{}:T,N=n.popupAlign,D=n.zIndex,L=n.stretch,B=n.getPopupClassNameFromAlign,G=n.alignPoint,F=n.onPopupClick,K=n.onPopupAlign,V=n.arrow,q=n.popupMotion,ne=n.maskMotion,Z=n.popupTransitionName,Y=n.popupAnimation,te=n.maskTransitionName,ae=n.maskAnimation,le=n.className,de=n.getTriggerDOMNode,ee=Qe(n,nD),oe=M||O||!1,ce=f__namespace.useState(!1),se=U(ce,2),ve=se[0],re=se[1];ir(function(){re(UA());},[]);var he=f__namespace.useRef({}),ue=f__namespace.useContext(eg),be=f__namespace.useMemo(function(){return {registerSubPopup:function(rt,Nt){he.current[rt]=Nt,ue==null||ue.registerSubPopup(rt,Nt);}}},[ue]),We=VA(),ct=f__namespace.useState(null),et=U(ct,2),ze=et[0],qe=et[1],ke=to(function(Be){Bf(Be)&&ze!==Be&&qe(Be),ue==null||ue.registerSubPopup(We,Be);}),Ie=f__namespace.useState(null),Le=U(Ie,2),Pe=Le[0],Ne=Le[1],vt=to(function(Be){Bf(Be)&&Pe!==Be&&Ne(Be);}),st=f__namespace.Children.only(a),ge=(st==null?void 0:st.props)||{},we={},Ze=to(function(Be){var rt,Nt,Ht=Pe;return (Ht==null?void 0:Ht.contains(Be))||(Ht==null||(rt=Ht.getRootNode())===null||rt===void 0?void 0:rt.host)===Be||Be===Ht||(ze==null?void 0:ze.contains(Be))||(ze==null||(Nt=ze.getRootNode())===null||Nt===void 0?void 0:Nt.host)===Be||Be===ze||Object.values(he.current).some(function(Tt){return (Tt==null?void 0:Tt.contains(Be))||Be===Tt})}),Ke=ng(i,q,Y,Z),pt=ng(i,ne,ae,te),$e=f__namespace.useState(h||!1),Ee=U($e,2),je=Ee[0],Re=Ee[1],nt=d??je,$t=to(function(Be){d===void 0&&Re(Be);});ir(function(){Re(d||!1);},[d]);var zt=f__namespace.useRef(nt);zt.current=nt;var kt=to(function(Be){nt!==Be&&($t(Be),v==null||v(Be));}),Ae=f__namespace.useRef(),fe=function(){clearTimeout(Ae.current);},ie=function(rt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;fe(),Nt===0?kt(rt):Ae.current=setTimeout(function(){kt(rt);},Nt*1e3);};f__namespace.useEffect(function(){return fe},[]);var Se=f__namespace.useState(!1),xe=U(Se,2),Je=xe[0],mt=xe[1],wt=f__namespace.useRef(!0);ir(function(){(!wt.current||nt)&&mt(!0),wt.current=!0;},[nt]);var Xt=f__namespace.useState(null),Vt=U(Xt,2),De=Vt[0],Ge=Vt[1],_e=f__namespace.useState([0,0]),xt=U(_e,2),yt=xt[0],Yt=xt[1],Me=function(rt){Yt([rt.clientX,rt.clientY]);},Ve=qA(nt,ze,G?yt:Pe,E,A,N,K),ut=U(Ve,9),Ot=ut[0],qt=ut[1],Bt=ut[2],wn=ut[3],Mn=ut[4],lr=ut[5],Kr=ut[6],Er=ut[7],Zn=ut[8],Pn=to(function(){Je||Zn();});YA(nt,Pe,ze,Pn),ir(function(){Pn();},[yt,E]),ir(function(){nt&&!(A!=null&&A[E])&&Pn();},[JSON.stringify(N)]);var Gr=f__namespace.useMemo(function(){var Be=XA(A,i,Er,G);return X(Be,B==null?void 0:B(Er))},[Er,B,A,i,G]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:Pn}});var Bo=function(rt){mt(!1),Zn(),p==null||p(rt);},Xr=function(){return new Promise(function(rt){Ge(function(){return rt});})};ir(function(){De&&(Zn(),De(),Ge(null));},[De]);var qr=f__namespace.useState(0),Yr=U(qr,2),Wo=Yr[0],Vo=Yr[1],Uo=f__namespace.useState(0),Qr=U(Uo,2),Zr=Qr[0],Oe=Qr[1],ye=function(rt,Nt){if(Pn(),L){var Ht=Nt.getBoundingClientRect();Vo(Ht.width),Oe(Ht.height);}},He=KA(ve,l,c,u),St=U(He,2),lt=St[0],Et=St[1],jt=function(rt,Nt,Ht,Tt){we[rt]=function($a){var Si;Tt==null||Tt($a),ie(Nt,Ht);for(var Go=arguments.length,wi=new Array(Go>1?Go-1:0),tl=1;tl1?Nt-1:0),Tt=1;Tt1?Nt-1:0),Tt=1;Tt1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=wC(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,h){d.forEach(function(v){if(h||!(l in v)){var p=v[s];o.push({key:sg(v,o.length),groupOption:h,data:v,label:v[a],value:p});}else {var m=v[c];m===void 0&&r&&(m=v.label),o.push({key:sg(v,o.length),group:!0,data:v,label:m}),u(v[l],!0);}});}return u(e,!1),o}function Vf(e){var t=j({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return yn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function lD(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=ny(a),l=s[0],c=s.slice(1);if(!l)return [i];var u=i.split(l);return n=n||u.length>1,u.reduce(function(d,h){return [].concat(me(d),me(r(h,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var cD=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],uD=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Uf(e){return e==="tags"||e==="multiple"}var dD=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,h=e.onDisplayValuesChange,v=e.emptyOptions,p=e.notFoundContent,m=p===void 0?"Not Found":p,g=e.onClear,b=e.mode,y=e.disabled,C=e.loading,$=e.getInputElement,w=e.getRawInputElement,S=e.open,x=e.defaultOpen,R=e.onDropdownVisibleChange,M=e.activeValue,O=e.onActiveValueChange,I=e.activeDescendantId,P=e.searchValue,_=e.autoClearSearchValue,E=e.onSearch,T=e.onSearchSplit,A=e.tokenSeparators,N=e.allowClear,D=e.showArrow,L=e.inputIcon,B=e.clearIcon,G=e.OptionList,F=e.animation,K=e.transitionName,V=e.dropdownStyle,q=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,Z=e.dropdownRender,Y=e.dropdownAlign,te=e.placement,ae=e.builtinPlacements,le=e.getPopupContainer,de=e.showAction,ee=de===void 0?[]:de,oe=e.onFocus,ce=e.onBlur,se=e.onKeyUp,ve=e.onKeyDown,re=e.onMouseDown,he=Qe(e,cD),ue=Uf(b),be=(s!==void 0?s:ue)||b==="combobox",We=j({},he);uD.forEach(function(Oe){delete We[Oe];}),u==null||u.forEach(function(Oe){delete We[Oe];});var ct=f__namespace.useState(!1),et=U(ct,2),ze=et[0],qe=et[1];f__namespace.useEffect(function(){qe(uu());},[]);var ke=f__namespace.useRef(null),Ie=f__namespace.useRef(null),Le=f__namespace.useRef(null),Pe=f__namespace.useRef(null),Ne=f__namespace.useRef(null),vt=CA(),st=U(vt,3),ge=st[0],we=st[1],Ze=st[2];f__namespace.useImperativeHandle(t,function(){var Oe,ye;return {focus:(Oe=Pe.current)===null||Oe===void 0?void 0:Oe.focus,blur:(ye=Pe.current)===null||ye===void 0?void 0:ye.blur,scrollTo:function(St){var lt;return (lt=Ne.current)===null||lt===void 0?void 0:lt.scrollTo(St)}}});var Ke=f__namespace.useMemo(function(){var Oe;if(b!=="combobox")return P;var ye=(Oe=d[0])===null||Oe===void 0?void 0:Oe.value;return typeof ye=="string"||typeof ye=="number"?String(ye):""},[P,b,d]),pt=b==="combobox"&&typeof $=="function"&&$()||null,$e=typeof w=="function"&&w(),Ee=Xc(Ie,$e==null||(n=$e.props)===null||n===void 0?void 0:n.ref),je=f__namespace.useState(!1),Re=U(je,2),nt=Re[0],$t=Re[1];Sn(function(){$t(!0);},[]);var zt=qn(!1,{defaultValue:x,value:S}),kt=U(zt,2),Ae=kt[0],fe=kt[1],ie=nt?Ae:!1,Se=!m&&v;(y||Se&&ie&&b==="combobox")&&(ie=!1);var xe=Se?!1:ie,Je=f__namespace.useCallback(function(Oe){var ye=Oe!==void 0?Oe:!ie;y||(fe(ye),ie!==ye&&(R==null||R(ye)));},[y,ie,fe,R]),mt=f__namespace.useMemo(function(){return (A||[]).some(function(Oe){return [` `,`\r `].includes(Oe)})},[A]),wt=function(ye,He,St){var lt=!0,Et=ye;O==null||O(null);var jt=St?null:lD(ye,A);return b!=="combobox"&&jt&&(Et="",T==null||T(jt),Je(!1),lt=!1),E&&Ke!==Et&&E(Et,{source:He?"typing":"effect"}),lt},Xt=function(ye){!ye||!ye.trim()||E(ye,{source:"submit"});};f__namespace.useEffect(function(){!ie&&!ue&&b!=="combobox"&&wt("",!1,!1);},[ie]),f__namespace.useEffect(function(){Ae&&y&&fe(!1),y&&we(!1);},[y]);var Vt=vC(),De=U(Vt,2),Ge=De[0],_e=De[1],xt=function(ye){var He=Ge(),St=ye.which;if(St===J.ENTER&&(b!=="combobox"&&ye.preventDefault(),ie||Je(!0)),_e(!!Ke),St===J.BACKSPACE&&!He&&ue&&!Ke&&d.length){for(var lt=me(d),Et=null,jt=lt.length-1;jt>=0;jt-=1){var Ln=lt[jt];if(!Ln.disabled){lt.splice(jt,1),Et=Ln;break}}Et&&h(lt,{type:"remove",values:[Et]});}for(var xn=arguments.length,Or=new Array(xn>1?xn-1:0),Jn=1;Jn1?He-1:0),lt=1;lt1?jt-1:0),xn=1;xn1&&arguments[1]!==void 0?arguments[1]:!1;return sa(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Qe(s,bD);return t||!i?yD(n):j(j({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:xC(l)})}).filter(function(n){return n})}function CD(e,t,n,r,o){return f__namespace.useMemo(function(){var i=e,a=!e;a&&(i=xC(t));var s=new Map,l=new Map,c=function(h,v,p){p&&typeof p=="string"&&h.set(v[p],v);};function u(d){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;vl},r}return vn(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown);}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden();}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout);}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,s=this.props,l=s.prefixCls,c=s.direction,u=this.getSpinHeight(),d=this.getTop(),h=this.showScroll(),v=h&&a,p=c==="rtl"?{left:0}:{right:0};return f__namespace.createElement("div",{ref:this.scrollbarRef,className:X("".concat(l,"-scrollbar"),W({},"".concat(l,"-scrollbar-show"),h)),style:j(j({width:8,top:0,bottom:0},p),{},{position:"absolute",display:v?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f__namespace.createElement("div",{ref:this.thumbRef,className:X("".concat(l,"-scrollbar-thumb"),W({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:u,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(f__namespace.Component);function xD(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function $D(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,u=o(s,c,{}),d=a(s);return f__namespace.createElement(xD,{key:d,setRef:function(v){return r(s,v)}},u)})}var ED=function(){function e(){hn(this,e),this.maps=void 0,this.maps=Object.create(null);}return vn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function OD(e,t,n){var r=f__namespace.useState(0),o=U(r,2),i=o[0],a=o[1],s=f.useRef(new Map),l=f.useRef(new ED),c=f.useRef();function u(){Mt.cancel(c.current);}function d(){u(),c.current=Mt(function(){s.current.forEach(function(v,p){if(v&&v.offsetParent){var m=ms(v),g=m.offsetHeight;l.current.get(p)!==g&&l.current.set(p,m.offsetHeight);}}),a(function(v){return v+1});});}function h(v,p){var m=e(v),g=s.current.get(m);p?(s.current.set(m,p),d()):s.current.delete(m),!g!=!p&&(p?t==null||t(v):n==null||n(v));}return f.useEffect(function(){return u},[]),[h,d,l.current,i]}function PD(e,t,n,r,o,i,a,s){var l=f__namespace.useRef();return function(c){if(c==null){s();return}if(Mt.cancel(l.current),typeof c=="number")a(c);else if(c&&tt(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=t.findIndex(function(m){return o(m)===c.key});var h=c.offset,v=h===void 0?0:h,p=function m(g,b){if(!(g<0||!e.current)){var y=e.current.clientHeight,C=!1,$=b;if(y){for(var w=b||d,S=0,x=0,R=0,M=Math.min(t.length,u),O=0;O<=M;O+=1){var I=o(t[O]);x=S;var P=n.get(I);R=x+(P===void 0?r:P),S=R,O===u&&P===void 0&&(C=!0);}var _=null;switch(w){case"top":_=x-v;break;case"bottom":_=R-y+v;break;default:{var E=e.current.scrollTop,T=E+y;xT&&($="bottom");}}_!==null&&_!==e.current.scrollTop&&a(_);}l.current=Mt(function(){C&&i(),m(g-1,$);},2);}};p(3);}}}function RD(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":tt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const EC=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=f.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a<0&&i.current.top||a>0&&i.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function TD(e,t,n,r){var o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s=f.useRef(!1),l=EC(t,n);function c(d){if(e){Mt.cancel(i.current);var h=d.deltaY;o.current+=h,a.current=h,!l(h)&&(MD||d.preventDefault(),i.current=Mt(function(){var v=s.current?10:1;r(o.current*v),o.current=0;}));}}function u(d){e&&(s.current=d.detail===a.current);}return [c,u]}var ID=14/15;function ND(e,t,n){var r=f.useRef(!1),o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s,l=function(h){if(r.current){var v=Math.ceil(h.touches[0].pageY),p=o.current-v;o.current=v,n(p)&&h.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){p*=ID,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},u=function(h){s(),h.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(h.touches[0].pageY),i.current=h.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c));};s=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c));},Sn(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(a.current);}},[e]);}var AD=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],DD=[],kD={overflowY:"auto",overflowAnchor:"none"};function LD(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,h=e.itemKey,v=e.virtual,p=e.direction,m=e.component,g=m===void 0?"div":m,b=e.onScroll,y=e.onVisibleChange,C=e.innerProps,$=Qe(e,AD),w=!!(v!==!1&&i&&a),S=w&&u&&a*u.length>i,x=f.useState(0),R=U(x,2),M=R[0],O=R[1],I=f.useState(!1),P=U(I,2),_=P[0],E=P[1],T=X(r,W({},"".concat(r,"-rtl"),p==="rtl"),o),A=u||DD,N=f.useRef(),D=f.useRef(),L=f.useRef(),B=f__namespace.useCallback(function(ge){return typeof h=="function"?h(ge):ge==null?void 0:ge[h]},[h]),G={getKey:B};function F(ge){O(function(we){var Ze;typeof ge=="function"?Ze=ge(we):Ze=ge;var Ke=be(Ze);return N.current.scrollTop=Ke,Ke});}var K=f.useRef({start:0,end:A.length}),V=f.useRef(),q=_D(A,B),ne=U(q,1),Z=ne[0];V.current=Z;var Y=OD(B,null,null),te=U(Y,4),ae=te[0],le=te[1],de=te[2],ee=te[3],oe=f__namespace.useMemo(function(){if(!w)return {scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!S){var ge;return {scrollHeight:((ge=D.current)===null||ge===void 0?void 0:ge.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var we=0,Ze,Ke,pt,$e=A.length,Ee=0;Ee<$e;Ee+=1){var je=A[Ee],Re=B(je),nt=de.get(Re),$t=we+(nt===void 0?a:nt);$t>=M&&Ze===void 0&&(Ze=Ee,Ke=we),$t>M+i&&pt===void 0&&(pt=Ee),we=$t;}return Ze===void 0&&(Ze=0,Ke=0,pt=Math.ceil(i/a)),pt===void 0&&(pt=A.length-1),pt=Math.min(pt+1,A.length),{scrollHeight:we,start:Ze,end:pt,offset:Ke}},[S,w,M,A,ee,i]),ce=oe.scrollHeight,se=oe.start,ve=oe.end,re=oe.offset;K.current.start=se,K.current.end=ve;var he=ce-i,ue=f.useRef(he);ue.current=he;function be(ge){var we=ge;return Number.isNaN(ue.current)||(we=Math.min(we,ue.current)),we=Math.max(we,0),we}var We=M<=0,ct=M>=he,et=EC(We,ct);function ze(ge){var we=ge;F(we);}function qe(ge){var we=ge.currentTarget.scrollTop;we!==M&&F(we),b==null||b(ge);}var ke=TD(w,We,ct,function(ge){F(function(we){var Ze=we+ge;return Ze});}),Ie=U(ke,2),Le=Ie[0],Pe=Ie[1];ND(w,N,function(ge,we){return et(ge,we)?!1:(Le({preventDefault:function(){},deltaY:ge}),!0)}),Sn(function(){function ge(we){w&&we.preventDefault();}return N.current.addEventListener("wheel",Le),N.current.addEventListener("DOMMouseScroll",Pe),N.current.addEventListener("MozMousePixelScroll",ge),function(){N.current&&(N.current.removeEventListener("wheel",Le),N.current.removeEventListener("DOMMouseScroll",Pe),N.current.removeEventListener("MozMousePixelScroll",ge));}},[w]);var Ne=PD(N,A,de,a,B,le,F,function(){var ge;(ge=L.current)===null||ge===void 0||ge.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:Ne}}),Sn(function(){if(y){var ge=A.slice(se,ve+1);y(ge,A);}},[se,ve,A]);var vt=$D(A,se,ve,ae,d,G),st=null;return i&&(st=j(W({},l?"height":"maxHeight",i),kD),w&&(st.overflowY="hidden",_&&(st.pointerEvents="none"))),f__namespace.createElement("div",pe({style:j(j({},c),{},{position:"relative"}),className:T},$),f__namespace.createElement(g,{className:"".concat(r,"-holder"),style:st,ref:N,onScroll:qe},f__namespace.createElement($C,{prefixCls:r,height:ce,offset:re,onInnerResize:le,ref:D,innerProps:C},vt)),w&&f__namespace.createElement(wD,{ref:L,prefixCls:r,scrollTop:M,height:i,scrollHeight:ce,count:A.length,direction:p,onScroll:ze,onStartMove:function(){E(!0);},onStopMove:function(){E(!1);}}))}var OC=f__namespace.forwardRef(LD);OC.displayName="List";var PC=f__namespace.createContext(null);function FD(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var zD=["disabled","title","children","style","className"];function dg(e){return typeof e=="string"||typeof e=="number"}var jD=function(t,n){var r=yA(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,h=r.onPopupScroll,v=f__namespace.useContext(PC),p=v.flattenOptions,m=v.onActiveValue,g=v.defaultActiveFirstOption,b=v.onSelect,y=v.menuItemSelectedIcon,C=v.rawValues,$=v.fieldNames,w=v.virtual,S=v.direction,x=v.listHeight,R=v.listItemHeight,M="".concat(o,"-item"),O=Hh(function(){return p},[a,p],function(Z,Y){return Y[0]&&Z[1]!==Y[1]}),I=f__namespace.useRef(null),P=function(Y){Y.preventDefault();},_=function(Y){I.current&&I.current.scrollTo(typeof Y=="number"?{index:Y}:Y);},E=function(Y){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ae=O.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;D(Y);var ae={source:te?"keyboard":"mouse"},le=O[Y];if(!le){m(null,-1,ae);return}m(le.value,Y,ae);};f.useEffect(function(){L(g!==!1?E(0):-1);},[O.length,c]);var B=f__namespace.useCallback(function(Z){return C.has(Z)&&l!=="combobox"},[l,me(C).toString(),C.size]);f.useEffect(function(){var Z=setTimeout(function(){if(!s&&a&&C.size===1){var te=Array.from(C)[0],ae=O.findIndex(function(le){var de=le.data;return de.value===te});ae!==-1&&(L(ae),_(ae));}});if(a){var Y;(Y=I.current)===null||Y===void 0||Y.scrollTo(void 0);}return function(){return clearTimeout(Z)}},[a,c,p.length]);var G=function(Y){Y!==void 0&&b(Y,{selected:!C.has(Y)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Y){var te=Y.which,ae=Y.ctrlKey;switch(te){case J.N:case J.P:case J.UP:case J.DOWN:{var le=0;if(te===J.UP?le=-1:te===J.DOWN?le=1:FD()&&ae&&(te===J.N?le=1:te===J.P&&(le=-1)),le!==0){var de=E(N+le,le);_(de),L(de,!0);}break}case J.ENTER:{var ee=O[N];ee&&!ee.data.disabled?G(ee.value):G(void 0),a&&Y.preventDefault();break}case J.ESC:u(!1),a&&Y.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Y){_(Y);}}}),O.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:P},d);var F=Object.keys($).map(function(Z){return $[Z]}),K=function(Y){return Y.label};function V(Z,Y){var te=Z.group;return {role:te?"presentation":"option",id:"".concat(i,"_list_").concat(Y)}}var q=function(Y){var te=O[Y];if(!te)return null;var ae=te.data||{},le=ae.value,de=te.group,ee=sc(ae,!0),oe=K(te);return te?f__namespace.createElement("div",pe({"aria-label":typeof oe=="string"&&!de?oe:null},ee,{key:Y},V(te,Y),{"aria-selected":B(le)}),le):null},ne={role:"listbox",id:"".concat(i,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,w&&f__namespace.createElement("div",pe({},ne,{style:{height:0,width:0,overflow:"hidden"}}),q(N-1),q(N),q(N+1)),f__namespace.createElement(OC,{itemKey:"key",ref:I,data:O,height:x,itemHeight:R,fullHeight:!1,onMouseDown:P,onScroll:h,virtual:w,direction:S,innerProps:w?null:ne},function(Z,Y){var te,ae=Z.group,le=Z.groupOption,de=Z.data,ee=Z.label,oe=Z.value,ce=de.key;if(ae){var se,ve=(se=de.title)!==null&&se!==void 0?se:dg(ee)?ee.toString():void 0;return f__namespace.createElement("div",{className:X(M,"".concat(M,"-group")),title:ve},ee!==void 0?ee:ce)}var re=de.disabled,he=de.title;de.children;var ue=de.style,be=de.className,We=Qe(de,zD),ct=du(We,F),et=B(oe),ze="".concat(M,"-option"),qe=X(M,ze,be,(te={},W(te,"".concat(ze,"-grouped"),le),W(te,"".concat(ze,"-active"),N===Y&&!re),W(te,"".concat(ze,"-disabled"),re),W(te,"".concat(ze,"-selected"),et),te)),ke=K(Z),Ie=!y||typeof y=="function"||et,Le=typeof ke=="number"?ke:ke||oe,Pe=dg(Le)?Le.toString():void 0;return he!==void 0&&(Pe=he),f__namespace.createElement("div",pe({},sc(ct),w?{}:V(Z,Y),{"aria-selected":et,className:qe,title:Pe,onMouseMove:function(){N===Y||re||L(Y);},onClick:function(){re||G(oe);},style:ue}),f__namespace.createElement("div",{className:"".concat(ze,"-content")},Le),f__namespace.isValidElement(y)||et,Ie&&f__namespace.createElement(fc,{className:"".concat(M,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:et}},et?"✓":null))}))},RC=f__namespace.forwardRef(jD);RC.displayName="OptionList";var HD=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],BD=["inputValue"];function WD(e){return !e||tt(e)!=="object"}var VD=f__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,h=d===void 0?!0:d,v=e.onSelect,p=e.onDeselect,m=e.dropdownMatchSelectWidth,g=m===void 0?!0:m,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,$=e.optionLabelProp,w=e.options,S=e.children,x=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,M=e.virtual,O=e.direction,I=e.listHeight,P=I===void 0?200:I,_=e.listItemHeight,E=_===void 0?20:_,T=e.value,A=e.defaultValue,N=e.labelInValue,D=e.onChange,L=Qe(e,HD),B=mD(n),G=Uf(r),F=!!(!w&&S),K=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),V=f__namespace.useMemo(function(){return wC(s,F)},[JSON.stringify(s),F]),q=qn("",{value:c!==void 0?c:l,postState:function(ie){return ie||""}}),ne=U(q,2),Z=ne[0],Y=ne[1],te=CD(w,S,V,C,$),ae=te.valueOptions,le=te.labelOptions,de=te.options,ee=f__namespace.useCallback(function(fe){var ie=bC(fe);return ie.map(function(Se){var xe,Je,mt,wt,Xt;if(WD(Se))xe=Se;else {var Vt;mt=Se.key,Je=Se.label,xe=(Vt=Se.value)!==null&&Vt!==void 0?Vt:mt;}var De=ae.get(xe);if(De){var Ge;Je===void 0&&(Je=De==null?void 0:De[$||V.label]),mt===void 0&&(mt=(Ge=De==null?void 0:De.key)!==null&&Ge!==void 0?Ge:xe),wt=De==null?void 0:De.disabled,Xt=De==null?void 0:De.title;}return {label:Je,value:xe,key:mt,disabled:wt,title:Xt}})},[V,$,ae]),oe=qn(A,{value:T}),ce=U(oe,2),se=ce[0],ve=ce[1],re=f__namespace.useMemo(function(){var fe,ie=ee(se);return r==="combobox"&&!((fe=ie[0])!==null&&fe!==void 0&&fe.value)?[]:ie},[se,ee,r]),he=fD(re,ae),ue=U(he,2),be=ue[0],We=ue[1],ct=f__namespace.useMemo(function(){if(!r&&be.length===1){var fe=be[0];if(fe.value===null&&(fe.label===null||fe.label===void 0))return []}return be.map(function(ie){var Se;return j(j({},ie),{},{label:(Se=ie.label)!==null&&Se!==void 0?Se:ie.value})})},[r,be]),et=f__namespace.useMemo(function(){return new Set(be.map(function(fe){return fe.value}))},[be]);f__namespace.useEffect(function(){if(r==="combobox"){var fe,ie=(fe=be[0])===null||fe===void 0?void 0:fe.value;Y(kA(ie)?String(ie):"");}},[be]);var ze=cg(function(fe,ie){var Se,xe=ie??fe;return Se={},W(Se,V.value,fe),W(Se,V.label,xe),Se}),qe=f__namespace.useMemo(function(){if(r!=="tags")return de;var fe=me(de),ie=function(xe){return ae.has(xe)};return me(be).sort(function(Se,xe){return Se.value2&&arguments[2]!==void 0?arguments[2]:{},xe=Se.source,Je=xe===void 0?"keyboard":xe;$e(ie),a&&r==="combobox"&&fe!==null&&Je==="keyboard"&&we(String(fe));},[a,r]),Re=function(ie,Se,xe){var Je=function(){var Yt,Me=We(ie);return [N?{label:Me==null?void 0:Me[V.label],value:ie,key:(Yt=Me==null?void 0:Me.key)!==null&&Yt!==void 0?Yt:ie}:ie,Vf(Me)]};if(Se&&v){var mt=Je(),wt=U(mt,2),Xt=wt[0],Vt=wt[1];v(Xt,Vt);}else if(!Se&&p&&xe!=="clear"){var De=Je(),Ge=U(De,2),_e=Ge[0],xt=Ge[1];p(_e,xt);}},nt=cg(function(fe,ie){var Se,xe=G?ie.selected:!0;xe?Se=G?[].concat(me(be),[fe]):[fe]:Se=be.filter(function(Je){return Je.value!==fe}),Ne(Se),Re(fe,xe),r==="combobox"?we(""):(!Uf||h)&&(Y(""),we(""));}),$t=function(ie,Se){Ne(ie);var xe=Se.type,Je=Se.values;(xe==="remove"||xe==="clear")&&Je.forEach(function(mt){Re(mt.value,!1,xe);});},zt=function(ie,Se){if(Y(ie),we(null),Se.source==="submit"){var xe=(ie||"").trim();if(xe){var Je=Array.from(new Set([].concat(me(et),[xe])));Ne(Je),Re(xe,!0),Y("");}return}Se.source!=="blur"&&(r==="combobox"&&Ne(ie),u==null||u(ie));},kt=function(ie){var Se=ie;r!=="tags"&&(Se=ie.map(function(Je){var mt=le.get(Je);return mt==null?void 0:mt.value}).filter(function(Je){return Je!==void 0}));var xe=Array.from(new Set([].concat(me(et),me(Se))));Ne(xe),xe.forEach(function(Je){Re(Je,!0);});},Ae=f__namespace.useMemo(function(){var fe=M!==!1&&g!==!1;return j(j({},te),{},{flattenOptions:Pe,onActiveValue:je,defaultActiveFirstOption:Ee,onSelect:nt,menuItemSelectedIcon:R,rawValues:et,fieldNames:V,virtual:fe,direction:O,listHeight:P,listItemHeight:E,childrenAsData:F})},[te,Pe,je,Ee,nt,R,et,V,M,g,P,E,F]);return f__namespace.createElement(PC.Provider,{value:Ae},f__namespace.createElement(dD,pe({},L,{id:B,prefixCls:i,ref:t,omitDomProps:BD,mode:r,displayValues:ct,onDisplayValuesChange:$t,direction:O,searchValue:Z,onSearch:zt,autoClearSearchValue:h,onSearchSplit:kt,dropdownMatchSelectWidth:g,OptionList:RC,emptyOptions:!Pe.length,activeValue:ge,activeDescendantId:"".concat(B,"_list_").concat(pt)})))}),pv=VD;pv.Option=vv;pv.OptGroup=hv;function fo(e,t,n){return X({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const fu=(e,t)=>t||e,UD=()=>{const[,e]=bi(),t=new en(e.colorBgBase);let n={};return t.toHsl().l<.5&&(n={opacity:.65}),f__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},f__namespace.createElement("g",{transform:"translate(24 31.67)"},f__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f__namespace.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),f__namespace.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),f__namespace.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),f__namespace.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),f__namespace.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),f__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},KD=UD,GD=()=>{const[,e]=bi(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=f.useMemo(()=>({borderColor:new en(t).onBackground(o).toHexShortString(),shadowColor:new en(n).onBackground(o).toHexShortString(),contentColor:new en(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return f__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:i},f__namespace.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),f__namespace.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},XD=GD,qD=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},YD=pn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=Ft(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [qD(r)]});var QD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=_C,description:i,children:a,imageStyle:s}=e,l=QD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:u}=f__namespace.useContext(gt),d=c("empty",r),[h,v]=YD(d),[p]=Qh("Empty"),m=typeof i<"u"?i:p==null?void 0:p.description,g=typeof m=="string"?m:"empty";let b=null;return typeof o=="string"?b=f__namespace.createElement("img",{alt:g,src:o}):b=o,h(f__namespace.createElement("div",Object.assign({className:X(v,d,{[`${d}-normal`]:o===MC,[`${d}-rtl`]:u==="rtl"},t,n)},l),f__namespace.createElement("div",{className:`${d}-image`,style:s},b),m&&f__namespace.createElement("div",{className:`${d}-description`},m),a&&f__namespace.createElement("div",{className:`${d}-footer`},a)))};mv.PRESENTED_IMAGE_DEFAULT=_C;mv.PRESENTED_IMAGE_SIMPLE=MC;const Ta=mv,ZD=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(gt),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Ta,{image:Ta.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Ta,{image:Ta.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Ta,null)}},JD=ZD,ek=e=>{const{controlPaddingHorizontal:t}=e;return {position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},tk=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Zt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft `]:{animationName:sC},[` &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft `]:{animationName:cC},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:lC},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:uC},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},ek(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign(Object.assign({flex:"auto"},Ki),{"> *":Object.assign({},Ki)}),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},cc(e,"slide-up"),cc(e,"slide-down"),Gm(e,"move-up"),Gm(e,"move-down")]},nk=tk,Ri=2,TC=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function gd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=TC(e),s=t?`${n}-${t}`:"";return {[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-Ri}px ${Ri*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ri}px 0`,lineHeight:`${i}px`,content:'"\\a0"'}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Ri,marginBottom:Ri,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ri*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Fs()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[` &-input, &-mirror `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const rk=e=>{const{componentCls:t}=e,n=Ft(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ft(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=TC(e);return [gd(e),gd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},gd(r,"lg")]},ok=rk;function bd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},Zt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function ik(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [bd(e),bd(Ft(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},bd(Ft(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const ak=e=>{const{componentCls:t}=e;return {position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},yd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,s=n?{[`${r}-selector`]:{borderColor:o}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},sk=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},lk=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},ak(e)),sk(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Ki),{"> *":Object.assign({lineHeight:"inherit"},Ki)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Ki),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},Fs()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},ck=e=>{const{componentCls:t}=e;return [{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},lk(e),ik(e),ok(e),nk(e),{[`${t}-rtl`]:{direction:"rtl"}},yd(t,Ft(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),yd(`${t}-status-error`,Ft(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),yd(`${t}-status-warning`,Ft(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),lu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},uk=pn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ft(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [ck(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),dk=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible"};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function fk(e,t){return e||dk(t)}function hk(e){return e??!0}var vk={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"};const pk=vk;var mk=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:pk}))};const gk=f__namespace.forwardRef(mk);var bk={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"};const yk=bk;var Ck=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:yk}))};const IC=f__namespace.forwardRef(Ck);var Sk={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"};const wk=Sk;var xk=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:wk}))};const NC=f__namespace.forwardRef(xk);function $k(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const d=n??f__namespace.createElement(ov,null),h=g=>f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&g,s&&u);let v=null;if(t!==void 0)v=h(t);else if(i)v=h(f__namespace.createElement(Gy,{spin:!0}));else {const g=`${l}-suffix`;v=b=>{let{open:y,showSearch:C}=b;return h(y&&C?f__namespace.createElement(NC,{className:g}):f__namespace.createElement(IC,{className:g}))};}let p=null;r!==void 0?p=r:a?p=f__namespace.createElement(gk,null):p=null;let m=null;return o!==void 0?m=o:m=f__namespace.createElement(iv,null),{clearIcon:d,suffixIcon:v,itemIcon:p,removeIcon:m}}var Ek=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:h=24,size:v,disabled:p,notFoundContent:m,status:g,showArrow:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:$,direction:w}=e,S=Ek(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);const{getPopupContainer:x,getPrefixCls:R,renderEmpty:M,direction:O,virtual:I,popupMatchSelectWidth:P,popupOverflow:_,select:E}=f__namespace.useContext(gt),T=R("select",r),A=R(),N=w??O,{compactSize:D,compactItemClassnames:L}=js(T,N),[B,G]=uk(T),F=f__namespace.useMemo(()=>{const{mode:et}=S;if(et!=="combobox")return et===AC?"combobox":et},[S.mode]),K=F==="multiple"||F==="tags",V=hk(b),q=(n=$??C)!==null&&n!==void 0?n:P,{status:ne,hasFeedback:Z,isFormItemInput:Y,feedbackIcon:te}=f__namespace.useContext(Wr),ae=fu(ne,g);let le;m!==void 0?le=m:F==="combobox"?le=null:le=(M==null?void 0:M("Select"))||f__namespace.createElement(JD,{componentName:"Select"});const{suffixIcon:de,itemIcon:ee,removeIcon:oe,clearIcon:ce}=$k(Object.assign(Object.assign({},S),{multiple:K,hasFeedback:Z,feedbackIcon:te,showArrow:V,prefixCls:T})),se=hi(S,["suffixIcon","itemIcon"]),ve=X(l||c,{[`${T}-dropdown-${N}`]:N==="rtl"},a,G),re=xr(et=>{var ze;return (ze=D??v)!==null&&ze!==void 0?ze:et}),he=f__namespace.useContext(Ho),ue=p??he,be=X({[`${T}-lg`]:re==="large",[`${T}-sm`]:re==="small",[`${T}-rtl`]:N==="rtl",[`${T}-borderless`]:!o,[`${T}-in-form-item`]:Y},fo(T,ae,Z),L,i,a,G),We=f__namespace.useMemo(()=>d!==void 0?d:N==="rtl"?"bottomRight":"bottomLeft",[d,N]),ct=fk(y,_);return B(f__namespace.createElement(pv,Object.assign({ref:t,virtual:I,showSearch:E==null?void 0:E.showSearch},se,{dropdownMatchSelectWidth:q,builtinPlacements:ct,transitionName:cu(A,MN(d),S.transitionName),listHeight:u,listItemHeight:h,mode:F,prefixCls:T,placement:We,direction:N,inputIcon:de,menuItemSelectedIcon:ee,removeIcon:oe,clearIcon:ce,notFoundContent:le,className:be,getPopupContainer:s||x,dropdownClassName:ve,showArrow:Z||V,disabled:ue})))},Ca=f__namespace.forwardRef(Ok),Pk=fC(Ca);Ca.SECRET_COMBOBOX_MODE_DO_NOT_USE=AC;Ca.Option=vv;Ca.OptGroup=hv;Ca._InternalPanelDoNotUseOrYouWillBeFired=Pk;const Rk=Ca,da=e=>e?typeof e=="function"?e():e:null;var _i={shiftX:64,adjustY:1},Mi={adjustX:1,shiftY:!0},tr=[0,0],_k={left:{points:["cr","cl"],overflow:Mi,offset:[-4,0],targetOffset:tr},right:{points:["cl","cr"],overflow:Mi,offset:[4,0],targetOffset:tr},top:{points:["bc","tc"],overflow:_i,offset:[0,-4],targetOffset:tr},bottom:{points:["tc","bc"],overflow:_i,offset:[0,4],targetOffset:tr},topLeft:{points:["bl","tl"],overflow:_i,offset:[0,-4],targetOffset:tr},leftTop:{points:["tr","tl"],overflow:Mi,offset:[-4,0],targetOffset:tr},topRight:{points:["br","tr"],overflow:_i,offset:[0,-4],targetOffset:tr},rightTop:{points:["tl","tr"],overflow:Mi,offset:[4,0],targetOffset:tr},bottomRight:{points:["tr","br"],overflow:_i,offset:[0,4],targetOffset:tr},rightBottom:{points:["bl","br"],overflow:Mi,offset:[4,0],targetOffset:tr},bottomLeft:{points:["tl","bl"],overflow:_i,offset:[0,4],targetOffset:tr},leftBottom:{points:["br","bl"],overflow:Mi,offset:[-4,0],targetOffset:tr}};function gv(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return f__namespace.createElement("div",{className:X("".concat(n,"-content"),i),style:a},f__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Mk=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Tk=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,v=t.children,p=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,b=t.animation,y=t.motion,C=t.placement,$=C===void 0?"right":C,w=t.align,S=w===void 0?{}:w,x=t.destroyTooltipOnHide,R=x===void 0?!1:x,M=t.defaultVisible,O=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,_=t.id,E=t.showArrow,T=E===void 0?!0:E,A=Qe(t,Mk),N=f.useRef(null);f.useImperativeHandle(n,function(){return N.current});var D=j({},A);"visible"in t&&(D.popupVisible=t.visible);var L=function(){return f__namespace.createElement(gv,{key:"content",prefixCls:h,id:_,overlayInnerStyle:I},P)};return f__namespace.createElement(fv,pe({popupClassName:r,prefixCls:h,popup:L,action:i,builtinPlacements:_k,popupPlacement:$,ref:N,popupAlign:S,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:b,popupMotion:y,defaultPopupVisible:M,autoDestroy:R,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:T},D),v)};const Ik=f.forwardRef(Tk),DC=8;function kC(e){const t=DC,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function gl(e,t){return e?t:{}}function LC(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:h,dropdownArrowOffset:v}=kC({contentRadius:l,limitVerticalRadius:c});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},aT(r,o,i,s,a)),{"&:before":{background:s}})]},gl(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),gl(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),gl(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:h},[`&-placement-leftBottom ${n}-arrow`]:{bottom:h}})),gl(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:h},[`&-placement-rightBottom ${n}-arrow`]:{bottom:h}}))}}function Nk(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const fg={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"]}},Ak={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"]}},Dk=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function kk(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(fg).forEach(c=>{const u=r&&Ak[c]||fg[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,Dk.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const h=kC({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-h.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=h.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-h.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=h.dropdownArrowOffset+s;break}d.overflow=Nk(c,h,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const $o=(e,t)=>new en(e).setAlpha(t).toRgbString(),Ti=(e,t)=>new en(e).lighten(t).toHexString(),Lk=e=>{const t=po(e,{theme:"dark"});return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Fk=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:$o(r,.85),colorTextSecondary:$o(r,.65),colorTextTertiary:$o(r,.45),colorTextQuaternary:$o(r,.25),colorFill:$o(r,.18),colorFillSecondary:$o(r,.12),colorFillTertiary:$o(r,.08),colorFillQuaternary:$o(r,.04),colorBgElevated:Ti(n,12),colorBgContainer:Ti(n,8),colorBgLayout:Ti(n,0),colorBgSpotlight:Ti(n,26),colorBorder:Ti(n,26),colorBorderSecondary:Ti(n,19)}},zk=(e,t)=>{const n=Object.keys(Zh).map(o=>{const i=po(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??eu(e);return Object.assign(Object.assign(Object.assign({},r),n),py(e,{generateColorPalettes:Lk,generateNeutralColorPalettes:Fk}))},jk=zk;function Hk(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return {sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Bk=(e,t)=>{const n=t??eu(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Hk(t??e)),my(r)),{controlHeight:o}),vy(Object.assign(Object.assign({},n),{controlHeight:o})))},Wk=Bk;function Vk(){const[e,t,n]=bi();return {theme:e,token:t,hashId:n}}const hc={defaultConfig:rc,defaultSeed:rc.token,useToken:Vk,defaultAlgorithm:eu,darkAlgorithm:jk,compactAlgorithm:Wk},Uk=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,DC)}},[`${t}-content`]:{position:"relative"}}),yy(e,(h,v)=>{let{darkColor:p}=v;return {[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},LC(Ft(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},FC=(e,t)=>pn("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=Ft(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [Uk(l),dC(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),Kk=ys.map(e=>`${e}-inverse`),Gk=["success","processing","error","default","warning"];function zC(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(me(Kk),me(ys)).includes(e):ys.includes(e)}function Xk(e){return Gk.includes(e)}function jC(e,t){const n=zC(t),r=X({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function qk(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(gt),l=s("tooltip",t),[c,u]=FC(l,!0),d=jC(l,i),h=Object.assign(Object.assign({},a),d.overlayStyle),v=d.arrowStyle;return c(f__namespace.createElement("div",{className:X(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className),style:v},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(gv,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))}var Yk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o]);}),{picked:n,omitted:r}};function Jk(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=Zk(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=Sr(e,{style:a,className:null});return f__namespace.createElement("span",{style:i,className:X(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const HC=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:v,arrow:p=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,$=!!p,{token:w}=Qk(),{getPopupContainer:S,getPrefixCls:x,direction:R}=f__namespace.useContext(gt),M=f__namespace.useRef(null),O=()=>{var re;(re=M.current)===null||re===void 0||re.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:O,forcePopupAlign:()=>{O();}}));const[I,P]=So(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),_=!m&&!g&&m!==0,E=re=>{var he,ue;P(_?!1:re),_||((he=e.onOpenChange)===null||he===void 0||he.call(e,re),(ue=e.onVisibleChange)===null||ue===void 0||ue.call(e,re));},T=f__namespace.useMemo(()=>{var re,he;let ue=y;return typeof p=="object"&&(ue=(he=(re=p.pointAtCenter)!==null&&re!==void 0?re:p.arrowPointAtCenter)!==null&&he!==void 0?he:y),b||kk({arrowPointAtCenter:ue,autoAdjustOverflow:C,arrowWidth:$?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[y,p,b,w]),A=f__namespace.useMemo(()=>m===0?m:g||m||"",[g,m]),N=f__namespace.createElement(Cs,null,typeof A=="function"?A():A),{getPopupContainer:D,placement:L="top",mouseEnterDelay:B=.1,mouseLeaveDelay:G=.1,overlayStyle:F,rootClassName:K}=e,V=Yk(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=x("tooltip",o),ne=x(),Z=e["data-popover-inject"];let Y=I;!("open"in e)&&!("visible"in e)&&_&&(Y=!1);const te=Jk(av(u)&&!Ky(u)?u:f__namespace.createElement("span",null,u),q),ae=te.props,le=!ae.className||typeof ae.className=="string"?X(ae.className,{[i||`${q}-open`]:!0}):ae.className,[de,ee]=FC(q,!Z),oe=jC(q,l),ce=Object.assign(Object.assign({},c),oe.overlayStyle),se=oe.arrowStyle,ve=X(s,{[`${q}-rtl`]:R==="rtl"},oe.className,K,ee);return de(f__namespace.createElement(Ik,Object.assign({},V,{showArrow:$,placement:L,mouseEnterDelay:B,mouseLeaveDelay:G,prefixCls:q,overlayClassName:ve,overlayStyle:Object.assign(Object.assign({},se),F),getTooltipContainer:D||a||S,ref:M,builtinPlacements:T,overlay:N,visible:Y,onVisibleChange:E,afterVisibleChange:d??h,overlayInnerStyle:ce,arrowContent:f__namespace.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:cu(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),Y?Sr(te,{className:le}):te))});HC._InternalPanelDoNotUseOrYouWillBeFired=qk;const hu=HC,eL=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:i,popoverPadding:a,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:h}=e;return [{[t]:Object.assign(Object.assign({},Zt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":h,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:s,padding:a},[`${t}-title`]:{minWidth:o,marginBottom:d,color:l,fontWeight:i},[`${t}-inner-content`]:{color:r}})},LC(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},tL=e=>{const{componentCls:t}=e;return {[t]:ys.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},nL=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,h=u/2-n,v=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${v}px ${h}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${v}px`}}}},BC=pn("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=Ft(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return [eL(o),tL(o),r&&nL(o),dC(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+30,width:177}});var rL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},da(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},da(n)))};function iL(e){const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return f__namespace.createElement("div",{className:X(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(gv,Object.assign({},e,{className:t,prefixCls:n}),l||oL(n,a,s)))}function WC(e){const{prefixCls:t}=e,n=rL(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(gt),o=r("popover",t),[i,a]=BC(o);return i(f__namespace.createElement(iL,Object.assign({},n,{prefixCls:o,hashId:a})))}var aL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${r}-title`},da(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},da(n)))},VC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=aL(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:h}=f__namespace.useContext(gt),v=h("popover",n),[p,m]=BC(v),g=h(),b=X(i,m);return p(f__namespace.createElement(hu,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:v,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(sL,{prefixCls:v,title:r,content:o}):null,transitionName:cu(g,"zoom-big",d.transitionName),"data-popover-inject":!0})))});VC._InternalPanelDoNotUseOrYouWillBeFired=WC;const UC=VC;var lL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const cL=lL;var uL=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:cL}))};const dL=f__namespace.forwardRef(uL);var fL=J.ESC,hL=J.TAB;function vL(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=f__namespace.useRef(!1),s=function(){if(t){var d,h;(d=n.current)===null||d===void 0||(h=d.focus)===null||h===void 0||h.call(d),r==null||r(!1);}},l=function(){var d;return (d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case fL:s();break;case hL:{var h=!1;a.current||(h=l()),h?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Mt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var pL=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=jo(t,i==null?void 0:i.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(i,{ref:ga(i)?a:void 0}))}),Ii={adjustX:1,adjustY:1},Ni=[0,0],mL={topLeft:{points:["bl","tl"],overflow:Ii,offset:[0,-4],targetOffset:Ni},top:{points:["bc","tc"],overflow:Ii,offset:[0,-4],targetOffset:Ni},topRight:{points:["br","tr"],overflow:Ii,offset:[0,-4],targetOffset:Ni},bottomLeft:{points:["tl","bl"],overflow:Ii,offset:[0,4],targetOffset:Ni},bottom:{points:["tc","bc"],overflow:Ii,offset:[0,4],targetOffset:Ni},bottomRight:{points:["tr","br"],overflow:Ii,offset:[0,4],targetOffset:Ni}},gL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function bL(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,h=e.placements,v=h===void 0?mL:h,p=e.getPopupContainer,m=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,$=e.trigger,w=$===void 0?["hover"]:$,S=e.autoFocus,x=e.overlay,R=e.children,M=e.onVisibleChange,O=Qe(e,gL),I=f.useState(),P=U(I,2),_=P[0],E=P[1],T="visible"in e?C:_,A=f.useRef(null),N=f.useRef(null),D=f.useRef(null);f.useImperativeHandle(t,function(){return A.current});var L=function(Y){E(Y),M==null||M(Y);};vL({visible:T,triggerRef:D,onVisibleChange:L,autoFocus:S,overlayRef:N});var B=function(Y){var te=e.onOverlayClick;E(!1),te&&te(Y);},G=function(){return f.createElement(pL,{ref:N,overlay:x,prefixCls:a,arrow:o})},F=function(){return typeof x=="function"?G:G()},K=function(){var Y=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?Y:!te},V=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},q=f.cloneElement(R,{className:X((n=R.props)===null||n===void 0?void 0:n.className,T&&V()),ref:ga(R)?jo(D,R.ref):void 0}),ne=g;return !ne&&w.indexOf("contextMenu")!==-1&&(ne=["click"]),f.createElement(fv,pe({builtinPlacements:v},O,{prefixCls:a,ref:A,popupClassName:X(b,W({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:w,showAction:m,hideAction:ne,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:T,stretch:K()?"minWidth":"",popup:F(),onPopupVisibleChange:L,onPopupClick:B,getPopupContainer:p}),q)}const yL=f.forwardRef(bL);function vu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(yn(!l,"Warning: There may be circular references"),l)return !1;if(i===a)return !0;if(n&&s>1)return !1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1;if(QC(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return !1}function xL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=me(e.querySelectorAll("*")).filter(function(r){return hg(r,t)});return hg(e,t)&&n.unshift(e),n}var Kf=J.LEFT,Gf=J.RIGHT,Xf=J.UP,Il=J.DOWN,Nl=J.ENTER,ZC=J.ESC,Ia=J.HOME,Na=J.END,vg=[Xf,Il,Kf,Gf];function $L(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Nl)return {inlineTrigger:!0};var h=(o={},W(o,Xf,l),W(o,Il,c),o),v=(i={},W(i,Kf,n?c:l),W(i,Gf,n?l:c),W(i,Il,u),W(i,Nl,u),i),p=(a={},W(a,Xf,l),W(a,Il,c),W(a,Nl,u),W(a,ZC,d),W(a,Kf,n?u:d),W(a,Gf,n?d:u),a),m={inline:h,horizontal:v,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p},g=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(g){case l:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function EL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function OL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function JC(e,t){var n=xL(e,!0);return n.filter(function(r){return t.has(r)})}function pg(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=JC(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function PL(e,t,n,r,o,i,a,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var h=function(){Mt.cancel(u.current);};return f__namespace.useEffect(function(){return function(){h();}},[]),function(v){var p=v.which;if([].concat(vg,[Nl,ZC,Ia,Na]).includes(p)){var m,g,b,y=function(){m=new Set,g=new Map,b=new Map;var T=i();return T.forEach(function(A){var N=document.querySelector("[data-menu-id='".concat(bv(r,A),"']"));N&&(m.add(N),b.set(N,A),g.set(A,N));}),m};y();var C=g.get(t),$=OL(C,m),w=b.get($),S=$L(e,a(w,!0).length===1,n,p);if(!S&&p!==Ia&&p!==Na)return;(vg.includes(p)||[Ia,Na].includes(p))&&v.preventDefault();var x=function(T){if(T){var A=T,N=T.querySelector("a");N!=null&&N.getAttribute("href")&&(A=N);var D=b.get(T);s(D),h(),u.current=Mt(function(){d.current===D&&A.focus();});}};if([Ia,Na].includes(p)||S.sibling||!$){var R;!$||e==="inline"?R=o.current:R=EL($);var M,O=JC(R,m);p===Ia?M=O[0]:p===Na?M=O[O.length-1]:M=pg(R,m,$,S.offset),x(M);}else if(S.inlineTrigger)l(w);else if(S.offset>0)l(w,!0),h(),u.current=Mt(function(){y();var E=$.getAttribute("aria-controls"),T=document.getElementById(E),A=pg(T,m);x(A);},5);else if(S.offset<0){var I=a(w,!0),P=I[I.length-2],_=g.get(P);l(P,!1),x(_);}}c==null||c(v);}}function RL(e){Promise.resolve().then(e);}var Cv="__RC_UTIL_PATH_SPLIT__",mg=function(t){return t.join(Cv)},_L=function(t){return t.split(Cv)},qf="rc-menu-more";function ML(){var e=f__namespace.useState({}),t=U(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),i=f__namespace.useState([]),a=U(i,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},h=f.useCallback(function(C,$){var w=mg($);o.current.set(w,C),r.current.set(C,w),c.current+=1;var S=c.current;RL(function(){S===c.current&&d();});},[]),v=f.useCallback(function(C,$){var w=mg($);o.current.delete(w),r.current.delete(C);},[]),p=f.useCallback(function(C){l(C);},[]),m=f.useCallback(function(C,$){var w=r.current.get(C)||"",S=_L(w);return $&&s.includes(S[0])&&S.unshift(qf),S},[s]),g=f.useCallback(function(C,$){return C.some(function(w){var S=m(w,!0);return S.includes($)})},[m]),b=function(){var $=me(r.current.keys());return s.length&&$.push(qf),$},y=f.useCallback(function(C){var $="".concat(r.current.get(C)).concat(Cv),w=new Set;return me(o.current.keys()).forEach(function(S){S.startsWith($)&&w.add(o.current.get(S));}),w},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:h,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:m,getKeys:b,getSubPathKeys:y}}function Fi(e){var t=f__namespace.useRef(e);t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function gF(e,t,n,r){var o=it.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),it.mix(o,i)}function Ov(e){var t,n,r;if(!it.isWindow(e)&&e.nodeType!==9)t=it.offset(e),n=it.outerWidth(e),r=it.outerHeight(e);else {var o=it.getWindow(e);t={left:it.getWindowScrollLeft(o),top:it.getWindowScrollTop(o)},n=it.viewportWidth(o),r=it.viewportHeight(o);}return t.width=n,t.height=r,t}function Pg(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return n==="c"?s+=i/2:n==="b"&&(s+=i),r==="c"?a+=o/2:r==="r"&&(a+=o),{left:a,top:s}}function yl(e,t,n,r,o){var i=Pg(t,n[1]),a=Pg(e,n[0]),s=[a.left-i.left,a.top-i.top];return {left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function Rg(e,t,n){return e.leftn.right}function _g(e,t,n){return e.topn.bottom}function bF(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Pv(e,t,n){var r=n.target||t,o=Ov(r),i=!CF(r,n.overflow&&n.overflow.alwaysByViewport);return d1(e,o,n,i)}Pv.__getOffsetParent=eh;Pv.__getVisibleRectForElement=Ev;function SF(e,t,n){var r,o,i=it.getDocument(e),a=i.defaultView||i.parentWindow,s=it.getWindowScrollLeft(a),l=it.getWindowScrollTop(a),c=it.viewportWidth(a),u=it.viewportHeight(a);"pageX"in t?r=t.pageX:r=s+t.clientX,"pageY"in t?o=t.pageY:o=l+t.clientY;var d={left:r,top:o,width:0,height:0},h=r>=0&&r<=s+c&&o>=0&&o<=l+u,v=[n.points[0],"cc"];return d1(e,d,yg(yg({},n),{},{points:v}),h)}const wF=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){window.clearTimeout(r.current);}function i(a){if(o(),!n.current||a===!0){if(e(a)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1;},t);}else r.current=window.setTimeout(function(){n.current=!1,i();},t);}return [i,function(){n.current=!1,o();}]};function xF(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function $F(e,t){e!==document.activeElement&&Za(t,e)&&typeof e.focus=="function"&&e.focus();}function Ig(e,t){var n=null,r=null;function o(a){var s=U(a,1),l=s[0].target;if(document.documentElement.contains(l)){var c=l.getBoundingClientRect(),u=c.width,d=c.height,h=Math.floor(u),v=Math.floor(d);(n!==h||r!==v)&&Promise.resolve().then(function(){t({width:h,height:v});}),n=h,r=v;}}var i=new k0(o);return e&&i.observe(e),function(){i.disconnect();}}function Ng(e){return typeof e!="function"?null:e()}function Ag(e){return tt(e)!=="object"||!e?null:e}var EF=function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,s=t.onAlign,l=t.monitorWindowResize,c=t.monitorBufferTime,u=c===void 0?0:c,d=f.useRef({}),h=f.useRef(),v=f.Children.only(r),p=f.useRef({});p.current.disabled=o,p.current.target=i,p.current.align=a,p.current.onAlign=s;var m=wF(function(){var I=p.current,P=I.disabled,_=I.target,E=I.align,T=I.onAlign,A=h.current;if(!P&&_&&A){var N,D=Ng(_),L=Ag(_);d.current.element=D,d.current.point=L,d.current.align=E;var B=document,G=B.activeElement;return D&&QC(D)?N=Pv(A,D,E):L&&(N=SF(A,L,E)),$F(G,A),T&&N&&T(A,N),!0}return !1},u),g=U(m,2),b=g[0],y=g[1],C=f.useState(),$=U(C,2),w=$[0],S=$[1],x=f.useState(),R=U(x,2),M=R[0],O=R[1];return Sn(function(){S(Ng(i)),O(Ag(i));}),f.useEffect(function(){(d.current.element!==w||!xF(d.current.point,M)||!vu(d.current.align,a))&&b();}),f.useEffect(function(){var I=Ig(h.current,b);return I},[h.current]),f.useEffect(function(){var I=Ig(w,b);return I},[w]),f.useEffect(function(){o?y():b();},[o]),f.useEffect(function(){if(l){var I=Ha(window,"resize",b);return I.remove}},[l]),f.useEffect(function(){return function(){y();}},[]),f.useImperativeHandle(n,function(){return {forceAlign:function(){return b(!0)}}}),f.isValidElement(v)&&(v=f.cloneElement(v,{ref:jo(v.ref,h)})),v},f1=f.forwardRef(EF);f1.displayName="Align";var Dg=["measure","alignPre","align",null,"motion"];const OF=function(e,t){var n=si(null),r=U(n,2),o=r[0],i=r[1],a=f.useRef();function s(u){i(u,!0);}function l(){Mt.cancel(a.current);}function c(u){l(),a.current=Mt(function(){s(function(d){switch(o){case"align":return "motion";case"motion":return "stable"}return d}),u==null||u();});}return f.useEffect(function(){s("measure");},[e]),f.useEffect(function(){switch(o){case"measure":t();break}o&&(a.current=Mt(gi(_n().mark(function u(){var d,h;return _n().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:d=Dg.indexOf(o),h=Dg[d+1],h&&d!==-1&&s(h);case 3:case"end":return p.stop()}},u)}))));},[o]),f.useEffect(function(){return function(){l();}},[]),[o,c]},PF=function(e){var t=f__namespace.useState({width:0,height:0}),n=U(t,2),r=n[0],o=n[1];function i(s){var l=s.offsetWidth,c=s.offsetHeight,u=s.getBoundingClientRect(),d=u.width,h=u.height;Math.abs(l-d)<1&&Math.abs(c-h)<1&&(l=d,c=h),o({width:l,height:c});}var a=f__namespace.useMemo(function(){var s={};if(e){var l=r.width,c=r.height;e.indexOf("height")!==-1&&c?s.height=c:e.indexOf("minHeight")!==-1&&c&&(s.minHeight=c),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l);}return s},[e,r]);return [a,i]};var h1=f__namespace.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,h=e.point,v=e.getRootDomNode,p=e.getClassNameFromAlign,m=e.onAlign,g=e.onMouseEnter,b=e.onMouseLeave,y=e.onMouseDown,C=e.onTouchStart,$=e.onClick,w=f.useRef(),S=f.useRef(),x=f.useState(),R=U(x,2),M=R[0],O=R[1],I=PF(l),P=U(I,2),_=P[0],E=P[1];function T(){l&&E(v());}var A=OF(n,T),N=U(A,2),D=N[0],L=N[1],B=f.useState(0),G=U(B,2),F=G[0],K=G[1],V=f.useRef();Sn(function(){D==="alignPre"&&K(0);},[D]);function q(){return h||v}function ne(){var ee;(ee=w.current)===null||ee===void 0||ee.forceAlign();}function Z(ee,oe){var ce=p(oe);M!==ce&&O(ce),K(function(se){return se+1}),D==="align"&&(m==null||m(ee,oe));}Sn(function(){D==="align"&&(F<3?ne():L(function(){var ee;(ee=V.current)===null||ee===void 0||ee.call(V);}));},[F]);var Y=j({},r1(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ee){var oe=Y[ee];Y[ee]=function(ce,se){return L(),oe==null?void 0:oe(ce,se)};});function te(){return new Promise(function(ee){V.current=ee;})}f__namespace.useEffect(function(){!Y.motionName&&D==="motion"&&L();},[Y.motionName,D]),f__namespace.useImperativeHandle(t,function(){return {forceAlign:ne,getElement:function(){return S.current}}});var ae=j(j({},_),{},{zIndex:s,opacity:D==="motion"||D==="stable"||!n?void 0:0,pointerEvents:!n&&D!=="stable"?"none":void 0},i),le=!0;d!=null&&d.points&&(D==="align"||D==="stable")&&(le=!1);var de=a;return f__namespace.Children.count(a)>1&&(de=f__namespace.createElement("div",{className:"".concat(r,"-content")},a)),f__namespace.createElement($r,pe({visible:n,ref:S,leavedClassName:"".concat(r,"-hidden")},Y,{onAppearPrepare:te,onEnterPrepare:te,removeOnLeave:c,forceRender:u}),function(ee,oe){var ce=ee.className,se=ee.style,ve=X(r,o,M,ce);return f__namespace.createElement(f1,{target:q(),key:"popup",ref:w,monitorWindowResize:!0,disabled:le,align:d,onAlign:Z},f__namespace.createElement("div",{ref:oe,className:ve,onMouseEnter:g,onMouseLeave:b,onMouseDownCapture:y,onTouchStartCapture:C,onClick:$,style:j(j({},se),ae)},de))})});h1.displayName="PopupInner";var v1=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile;a=a===void 0?{}:a;var s=a.popupClassName,l=a.popupStyle,c=a.popupMotion,u=c===void 0?{}:c,d=a.popupRender,h=e.onClick,v=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {forceAlign:function(){},getElement:function(){return v.current}}});var p=j({zIndex:o},l),m=i;return f__namespace.Children.count(i)>1&&(m=f__namespace.createElement("div",{className:"".concat(n,"-content")},i)),d&&(m=d(m)),f__namespace.createElement($r,pe({visible:r,ref:v,removeOnLeave:!0},u),function(g,b){var y=g.className,C=g.style,$=X(n,s,y);return f__namespace.createElement("div",{ref:b,className:$,onClick:h,style:j(j({},C),p)},m)})});v1.displayName="MobilePopupInner";var RF=["visible","mobile"],p1=f__namespace.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=Qe(e,RF),i=f.useState(n),a=U(i,2),s=a[0],l=a[1],c=f.useState(!1),u=U(c,2),d=u[0],h=u[1],v=j(j({},o),{},{visible:s});f.useEffect(function(){l(n),n&&r&&h(uu());},[n,r]);var p=d?f__namespace.createElement(v1,pe({},v,{mobile:r,ref:t})):f__namespace.createElement(h1,pe({},v,{ref:t}));return f__namespace.createElement("div",null,f__namespace.createElement(XL,v),p)});p1.displayName="Popup";var kg=f__namespace.createContext(null);function $d(){}function _F(){return ""}function MF(e){return e?e.ownerDocument:window.document}var TF=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function IF(e){var t=function(n){Fo(o,n);var r=zo(o);function o(i){var a;hn(this,o),a=r.call(this,i),W(ft(a),"popupRef",f__namespace.createRef()),W(ft(a),"triggerRef",f__namespace.createRef()),W(ft(a),"portalContainer",void 0),W(ft(a),"attachId",void 0),W(ft(a),"clickOutsideHandler",void 0),W(ft(a),"touchOutsideHandler",void 0),W(ft(a),"contextMenuOutsideHandler1",void 0),W(ft(a),"contextMenuOutsideHandler2",void 0),W(ft(a),"mouseDownTimeout",void 0),W(ft(a),"focusTime",void 0),W(ft(a),"preClickTime",void 0),W(ft(a),"preTouchTime",void 0),W(ft(a),"delayTimer",void 0),W(ft(a),"hasPopupMouseDown",void 0),W(ft(a),"onMouseEnter",function(l){var c=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",l),a.delaySetPopupVisible(!0,c,c?null:l);}),W(ft(a),"onMouseMove",function(l){a.fireEvents("onMouseMove",l),a.setPoint(l);}),W(ft(a),"onMouseLeave",function(l){a.fireEvents("onMouseLeave",l),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),W(ft(a),"onPopupMouseEnter",function(){a.clearDelayTimer();}),W(ft(a),"onPopupMouseLeave",function(l){var c;l.relatedTarget&&!l.relatedTarget.setTimeout&&Za((c=a.popupRef.current)===null||c===void 0?void 0:c.getElement(),l.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),W(ft(a),"onFocus",function(l){a.fireEvents("onFocus",l),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay));}),W(ft(a),"onMouseDown",function(l){a.fireEvents("onMouseDown",l),a.preClickTime=Date.now();}),W(ft(a),"onTouchStart",function(l){a.fireEvents("onTouchStart",l),a.preTouchTime=Date.now();}),W(ft(a),"onBlur",function(l){a.fireEvents("onBlur",l),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay);}),W(ft(a),"onContextMenu",function(l){l.preventDefault(),a.fireEvents("onContextMenu",l),a.setPopupVisible(!0,l);}),W(ft(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close();}),W(ft(a),"onClick",function(l){if(a.fireEvents("onClick",l),a.focusTime){var c;if(a.preClickTime&&a.preTouchTime?c=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?c=a.preClickTime:a.preTouchTime&&(c=a.preTouchTime),Math.abs(c-a.focusTime)<20)return;a.focusTime=0;}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var u=!a.state.popupVisible;(a.isClickToHide()&&!u||u&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,l);}),W(ft(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1;},0),a.context){var l;(l=a.context).onPopupMouseDown.apply(l,arguments);}}),W(ft(a),"onDocumentClick",function(l){if(!(a.props.mask&&!a.props.maskClosable)){var c=l.target,u=a.getRootDomNode(),d=a.getPopupDomNode();(!Za(u,c)||a.isContextMenuOnly())&&!Za(d,c)&&!a.hasPopupMouseDown&&a.close();}}),W(ft(a),"getRootDomNode",function(){var l=a.props.getTriggerDOMNode;if(l)return l(a.triggerRef.current);try{var c=ms(a.triggerRef.current);if(c)return c}catch{}return na.findDOMNode(ft(a))}),W(ft(a),"getPopupClassNameFromAlign",function(l){var c=[],u=a.props,d=u.popupPlacement,h=u.builtinPlacements,v=u.prefixCls,p=u.alignPoint,m=u.getPopupClassNameFromAlign;return d&&h&&c.push(GL(h,v,l,p)),m&&c.push(m(l)),c.join(" ")}),W(ft(a),"getComponent",function(){var l=a.props,c=l.prefixCls,u=l.destroyPopupOnHide,d=l.popupClassName,h=l.onPopupAlign,v=l.popupMotion,p=l.popupAnimation,m=l.popupTransitionName,g=l.popupStyle,b=l.mask,y=l.maskAnimation,C=l.maskTransitionName,$=l.maskMotion,w=l.zIndex,S=l.popup,x=l.stretch,R=l.alignPoint,M=l.mobile,O=l.forceRender,I=l.onPopupClick,P=a.state,_=P.popupVisible,E=P.point,T=a.getPopupAlign(),A={};return a.isMouseEnterToShow()&&(A.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(A.onMouseLeave=a.onPopupMouseLeave),A.onMouseDown=a.onPopupMouseDown,A.onTouchStart=a.onPopupMouseDown,f__namespace.createElement(p1,pe({prefixCls:c,destroyPopupOnHide:u,visible:_,point:R&&E,className:d,align:T,onAlign:h,animation:p,getClassNameFromAlign:a.getPopupClassNameFromAlign},A,{stretch:x,getRootDomNode:a.getRootDomNode,style:g,mask:b,zIndex:w,transitionName:m,maskAnimation:y,maskTransitionName:C,maskMotion:$,ref:a.popupRef,motion:v,mobile:M,forceRender:O,onClick:I}),typeof S=="function"?S():S)}),W(ft(a),"attachParent",function(l){Mt.cancel(a.attachId);var c=a.props,u=c.getPopupContainer,d=c.getDocument,h=a.getRootDomNode(),v;u?(h||u.length===0)&&(v=u(h)):v=d(a.getRootDomNode()).body,v?v.appendChild(l):a.attachId=Mt(function(){a.attachParent(l);});}),W(ft(a),"getContainer",function(){if(!a.portalContainer){var l=a.props.getDocument,c=l(a.getRootDomNode()).createElement("div");c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.width="100%",a.portalContainer=c;}return a.attachParent(a.portalContainer),a.portalContainer}),W(ft(a),"setPoint",function(l){var c=a.props.alignPoint;!c||!l||a.setState({point:{pageX:l.pageX,pageY:l.pageY}});}),W(ft(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible);}),W(ft(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var s;return "popupVisible"in i?s=!!i.popupVisible:s=!!i.defaultPopupVisible,a.state={prevPopupVisible:s,popupVisible:s},TF.forEach(function(l){a["fire".concat(l)]=function(c){a.fireEvents(l,c);};}),a}return vn(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate();}},{key:"componentDidUpdate",value:function(){var a=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ha(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ha(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Ha(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Ha(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler();}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Mt.cancel(this.attachId);}},{key:"getPopupDomNode",value:function(){var a;return ((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,s=a.popupPlacement,l=a.popupAlign,c=a.builtinPlacements;return s&&c?KL(c,s,l):l}},{key:"setPopupVisible",value:function(a,s){var l=this.props.alignPoint,c=this.state.popupVisible;this.clearDelayTimer(),c!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:c}),this.props.onPopupVisibleChange(a)),l&&s&&a&&this.setPoint(s);}},{key:"delaySetPopupVisible",value:function(a,s,l){var c=this,u=s*1e3;if(this.clearDelayTimer(),u){var d=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){c.setPopupVisible(a,d),c.clearDelayTimer();},u);}else this.setPopupVisible(a,l);}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null);}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null);}},{key:"createTwoChains",value:function(a){var s=this.props.children.props,l=this.props;return s[a]&&l[a]?this["fire".concat(a)]:s[a]||l[a]}},{key:"isClickToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign();}}},{key:"fireEvents",value:function(a,s){var l=this.props.children.props[a];l&&l(s);var c=this.props[a];c&&c(s);}},{key:"close",value:function(){this.setPopupVisible(!1);}},{key:"render",value:function(){var a=this.state.popupVisible,s=this.props,l=s.children,c=s.forceRender,u=s.alignPoint,d=s.className,h=s.autoDestroy,v=f__namespace.Children.only(l),p={key:"trigger"};this.isContextMenuToShow()?p.onContextMenu=this.onContextMenu:p.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(p.onClick=this.onClick,p.onMouseDown=this.onMouseDown,p.onTouchStart=this.onTouchStart):(p.onClick=this.createTwoChains("onClick"),p.onMouseDown=this.createTwoChains("onMouseDown"),p.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(p.onMouseEnter=this.onMouseEnter,u&&(p.onMouseMove=this.onMouseMove)):p.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?p.onMouseLeave=this.onMouseLeave:p.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(p.onFocus=this.onFocus,p.onBlur=this.onBlur):(p.onFocus=this.createTwoChains("onFocus"),p.onBlur=this.createTwoChains("onBlur"));var m=X(v&&v.props&&v.props.className,d);m&&(p.className=m);var g=j({},p);ga(v)&&(g.ref=jo(this.triggerRef,v.ref));var b=f__namespace.cloneElement(v,g),y;return (a||this.popupRef.current||c)&&(y=f__namespace.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&h&&(y=null),f__namespace.createElement(kg.Provider,{value:this.triggerContextValue},b,y)}}],[{key:"getDerivedStateFromProps",value:function(a,s){var l=a.popupVisible,c={};return l!==void 0&&s.popupVisible!==l&&(c.popupVisible=l,c.prevPopupVisible=s.popupVisible),c}}]),o}(f__namespace.Component);return W(t,"contextType",kg),W(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:_F,getDocument:MF,onPopupVisibleChange:$d,afterPopupVisibleChange:$d,onPopupAlign:$d,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const NF=IF(VL);var Ao={adjustX:1,adjustY:1},AF={topLeft:{points:["bl","tl"],overflow:Ao,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ao,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ao,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ao,offset:[4,0]}},DF={topLeft:{points:["bl","tl"],overflow:Ao,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ao,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ao,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ao,offset:[4,0]}};function m1(e,t,n){if(t)return t;if(n)return n[e]||n.other}var kF={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function LF(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=f__namespace.useContext(wr),d=u.getPopupContainer,h=u.rtl,v=u.subMenuOpenDelay,p=u.subMenuCloseDelay,m=u.builtinPlacements,g=u.triggerSubMenuAction,b=u.forceSubMenuRender,y=u.rootClassName,C=u.motion,$=u.defaultMotions,w=f__namespace.useState(!1),S=U(w,2),x=S[0],R=S[1],M=j(h?j({},DF):j({},AF),m),O=kF[l],I=m1(l,C,$),P=f__namespace.useRef(I);l!=="inline"&&(P.current=I);var _=j(j({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),E=f__namespace.useRef();return f__namespace.useEffect(function(){return E.current=Mt(function(){R(n);}),function(){Mt.cancel(E.current);}},[n]),f__namespace.createElement(NF,{prefixCls:t,popupClassName:X("".concat(t,"-popup"),W({},"".concat(t,"-rtl"),h),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:M,popupPlacement:O,popupVisible:x,popup:o,popupAlign:a&&{offset:a},action:s?[]:[g],mouseEnterDelay:v,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:b,popupMotion:_},r)}function FF(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=f__namespace.useContext(wr),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,h=f__namespace.useRef(!1);h.current=d===i;var v=f__namespace.useState(!h.current),p=U(v,2),m=p[0],g=p[1],b=h.current?n:!1;f__namespace.useEffect(function(){h.current&&g(!1);},[d]);var y=j({},m1(i,c,u));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function($){return !h.current&&!$&&g(!0),C==null?void 0:C($)},m?null:f__namespace.createElement(ws,{mode:i,locked:!h.current},f__namespace.createElement($r,pe({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var w=$.className,S=$.style;return f__namespace.createElement(Sv,{id:t,className:w,style:S},o)}))}var zF=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],jF=["active"],HF=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,h=t.popupClassName,v=t.popupOffset,p=t.onClick,m=t.onMouseEnter,g=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,C=t.onTitleMouseLeave,$=Qe(t,zF),w=GC(a),S=f__namespace.useContext(wr),x=S.prefixCls,R=S.mode,M=S.openKeys,O=S.disabled,I=S.overflowDisabled,P=S.activeKey,_=S.selectedKeys,E=S.itemIcon,T=S.expandIcon,A=S.onItemClick,N=S.onOpenChange,D=S.onActive,L=f__namespace.useContext(yv),B=L._internalRenderSubMenuItem,G=f__namespace.useContext(YC),F=G.isSubPathKey,K=Bs(),V="".concat(x,"-submenu"),q=O||s,ne=f__namespace.useRef(),Z=f__namespace.useRef(),Y=u||E,te=d||T,ae=M.includes(a),le=!I&&ae,de=F(_,a),ee=e1(a,q,y,C),oe=ee.active,ce=Qe(ee,jF),se=f__namespace.useState(!1),ve=U(se,2),re=ve[0],he=ve[1],ue=function(we){q||he(we);},be=function(we){ue(!0),m==null||m({key:a,domEvent:we});},We=function(we){ue(!1),g==null||g({key:a,domEvent:we});},ct=f__namespace.useMemo(function(){return oe||(R!=="inline"?re||F([P],a):!1)},[R,oe,P,re,a,F]),et=t1(K.length),ze=function(we){q||(b==null||b({key:a,domEvent:we}),R==="inline"&&N(a,!ae));},qe=Fi(function(ge){p==null||p(vc(ge)),A(ge);}),ke=function(we){R!=="inline"&&N(a,we);},Ie=function(){D(a);},Le=w&&"".concat(w,"-popup"),Pe=f__namespace.createElement("div",pe({role:"menuitem",style:et,className:"".concat(V,"-title"),tabIndex:q?null:-1,ref:ne,title:typeof i=="string"?i:null,"data-menu-id":I&&w?null:w,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Le,"aria-disabled":q,onClick:ze,onFocus:Ie},ce),i,f__namespace.createElement(n1,{icon:R!=="horizontal"?te:null,props:j(j({},t),{},{isOpen:le,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(V,"-arrow")}))),Ne=f__namespace.useRef(R);if(R!=="inline"&&K.length>1?Ne.current="vertical":Ne.current=R,!I){var vt=Ne.current;Pe=f__namespace.createElement(LF,{mode:vt,prefixCls:V,visible:!l&&le&&R!=="inline",popupClassName:h,popupOffset:v,popup:f__namespace.createElement(ws,{mode:vt==="horizontal"?"vertical":vt},f__namespace.createElement(Sv,{id:Le,ref:Z},c)),disabled:q,onVisibleChange:ke},Pe);}var st=f__namespace.createElement(zr.Item,pe({role:"none"},$,{component:"li",style:r,className:X(V,"".concat(V,"-").concat(R),o,(n={},W(n,"".concat(V,"-open"),le),W(n,"".concat(V,"-active"),ct),W(n,"".concat(V,"-selected"),de),W(n,"".concat(V,"-disabled"),q),n)),onMouseEnter:be,onMouseLeave:We}),Pe,!I&&f__namespace.createElement(FF,{id:Le,open:le,keyPath:K},c));return B&&(st=B(st,t,{selected:de,active:ct,open:le,disabled:q})),f__namespace.createElement(ws,{onItemClick:qe,mode:R==="horizontal"?"vertical":R,itemIcon:Y,expandIcon:te},st)};function Rv(e){var t=e.eventKey,n=e.children,r=Bs(t),o=wv(n,r),i=pu();f__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=f__namespace.createElement(HF,e,o),f__namespace.createElement(qC.Provider,{value:r},a)}var BF=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ai=[],WF=f__namespace.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,h=o.items,v=o.children,p=o.direction,m=o.id,g=o.mode,b=g===void 0?"vertical":g,y=o.inlineCollapsed,C=o.disabled,$=o.disabledOverflow,w=o.subMenuOpenDelay,S=w===void 0?.1:w,x=o.subMenuCloseDelay,R=x===void 0?.1:x,M=o.forceSubMenuRender,O=o.defaultOpenKeys,I=o.openKeys,P=o.activeKey,_=o.defaultActiveFirst,E=o.selectable,T=E===void 0?!0:E,A=o.multiple,N=A===void 0?!1:A,D=o.defaultSelectedKeys,L=o.selectedKeys,B=o.onSelect,G=o.onDeselect,F=o.inlineIndent,K=F===void 0?24:F,V=o.motion,q=o.defaultMotions,ne=o.triggerSubMenuAction,Z=ne===void 0?"hover":ne,Y=o.builtinPlacements,te=o.itemIcon,ae=o.expandIcon,le=o.overflowedIndicator,de=le===void 0?"...":le,ee=o.overflowedIndicatorPopupClassName,oe=o.getPopupContainer,ce=o.onClick,se=o.onOpenChange,ve=o.onKeyDown;o.openAnimation,o.openTransitionName;var re=o._internalRenderMenuItem,he=o._internalRenderSubMenuItem,ue=Qe(o,BF),be=f__namespace.useMemo(function(){return WL(v,h,Ai)},[v,h]),We=f__namespace.useState(!1),ct=U(We,2),et=ct[0],ze=ct[1],qe=f__namespace.useRef(),ke=IL(m),Ie=p==="rtl",Le=qn(O,{value:I,postState:function(ye){return ye||Ai}}),Pe=U(Le,2),Ne=Pe[0],vt=Pe[1],st=function(ye){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function St(){vt(ye),se==null||se(ye);}He?na.flushSync(St):St();},ge=f__namespace.useState(Ne),we=U(ge,2),Ze=we[0],Ke=we[1],pt=f__namespace.useRef(!1),$e=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Ee=U($e,2),je=Ee[0],Re=Ee[1],nt=je==="inline",$t=f__namespace.useState(je),zt=U($t,2),kt=zt[0],Ae=zt[1],fe=f__namespace.useState(Re),ie=U(fe,2),Se=ie[0],xe=ie[1];f__namespace.useEffect(function(){Ae(je),xe(Re),pt.current&&(nt?vt(Ze):st(Ai));},[je,Re]);var Je=f__namespace.useState(0),mt=U(Je,2),wt=mt[0],Xt=mt[1],Vt=wt>=be.length-1||kt!=="horizontal"||$;f__namespace.useEffect(function(){nt&&Ke(Ne);},[Ne]),f__namespace.useEffect(function(){return pt.current=!0,function(){pt.current=!1;}},[]);var De=ML(),Ge=De.registerPath,_e=De.unregisterPath,xt=De.refreshOverflowKeys,yt=De.isSubPathKey,Yt=De.getKeyPath,Me=De.getKeys,Ve=De.getSubPathKeys,ut=f__namespace.useMemo(function(){return {registerPath:Ge,unregisterPath:_e}},[Ge,_e]),Ot=f__namespace.useMemo(function(){return {isSubPathKey:yt}},[yt]);f__namespace.useEffect(function(){xt(Vt?Ai:be.slice(wt+1).map(function(Oe){return Oe.key}));},[wt,Vt]);var qt=qn(P||_&&((n=be[0])===null||n===void 0?void 0:n.key),{value:P}),Bt=U(qt,2),wn=Bt[0],Mn=Bt[1],lr=Fi(function(Oe){Mn(Oe);}),Kr=Fi(function(){Mn(void 0);});f.useImperativeHandle(t,function(){return {list:qe.current,focus:function(ye){var He,St=wn??((He=be.find(function(Ln){return !Ln.props.disabled}))===null||He===void 0?void 0:He.key);if(St){var lt,Et,jt;(lt=qe.current)===null||lt===void 0||(Et=lt.querySelector("li[data-menu-id='".concat(bv(ke,St),"']")))===null||Et===void 0||(jt=Et.focus)===null||jt===void 0||jt.call(Et,ye);}}}});var Er=qn(D||[],{value:L,postState:function(ye){return Array.isArray(ye)?ye:ye==null?Ai:[ye]}}),Zn=U(Er,2),Pn=Zn[0],Gr=Zn[1],Bo=function(ye){if(T){var He=ye.key,St=Pn.includes(He),lt;N?St?lt=Pn.filter(function(jt){return jt!==He}):lt=[].concat(me(Pn),[He]):lt=[He],Gr(lt);var Et=j(j({},ye),{},{selectedKeys:lt});St?G==null||G(Et):B==null||B(Et);}!N&&Ne.length&&kt!=="inline"&&st(Ai);},Xr=Fi(function(Oe){ce==null||ce(vc(Oe)),Bo(Oe);}),qr=Fi(function(Oe,ye){var He=Ne.filter(function(lt){return lt!==Oe});if(ye)He.push(Oe);else if(kt!=="inline"){var St=Ve(Oe);He=He.filter(function(lt){return !St.has(lt)});}vu(Ne,He,!0)||st(He,!0);}),Yr=Fi(oe),Wo=function(ye,He){var St=He??!Ne.includes(ye);qr(ye,St);},Vo=PL(kt,wn,Ie,ke,qe,Me,Yt,Mn,Wo,ve);f__namespace.useEffect(function(){ze(!0);},[]);var Uo=f__namespace.useMemo(function(){return {_internalRenderMenuItem:re,_internalRenderSubMenuItem:he}},[re,he]),Qr=kt!=="horizontal"||$?be:be.map(function(Oe,ye){return f__namespace.createElement(ws,{key:Oe.key,overflowDisabled:ye>wt},Oe)}),Zr=f__namespace.createElement(zr,pe({id:m,ref:qe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:mu,className:X(a,"".concat(a,"-root"),"".concat(a,"-").concat(kt),c,(r={},W(r,"".concat(a,"-inline-collapsed"),Se),W(r,"".concat(a,"-rtl"),Ie),r),s),dir:p,style:l,role:"menu",tabIndex:d,data:Qr,renderRawItem:function(ye){return ye},renderRawRest:function(ye){var He=ye.length,St=He?be.slice(-He):null;return f__namespace.createElement(Rv,{eventKey:qf,title:de,disabled:Vt,internalPopupClose:He===0,popupClassName:ee},St)},maxCount:kt!=="horizontal"||$?zr.INVALIDATE:zr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ye){Xt(ye);},onKeyDown:Vo},ue));return f__namespace.createElement(yv.Provider,{value:Uo},f__namespace.createElement(KC.Provider,{value:ke},f__namespace.createElement(ws,{prefixCls:a,rootClassName:s,mode:kt,openKeys:Ne,rtl:Ie,disabled:C,motion:et?V:null,defaultMotions:et?q:null,activeKey:wn,onActive:lr,onInactive:Kr,selectedKeys:Pn,inlineIndent:K,subMenuOpenDelay:S,subMenuCloseDelay:R,forceSubMenuRender:M,builtinPlacements:Y,triggerSubMenuAction:Z,getPopupContainer:Yr,itemIcon:te,expandIcon:ae,onItemClick:Xr,onOpenChange:qr},f__namespace.createElement(YC.Provider,{value:Ot},Zr),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(XC.Provider,{value:ut},be)))))}),VF=["className","title","eventKey","children"],UF=["children"],KF=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Qe(t,VF),a=f__namespace.useContext(wr),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",pe({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:X(l,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function g1(e){var t=e.children,n=Qe(e,UF),r=Bs(n.eventKey),o=wv(t,r),i=pu();return i?o:f__namespace.createElement(KF,du(n,["warnKey"]),o)}function b1(e){var t=e.className,n=e.style,r=f__namespace.useContext(wr),o=r.prefixCls,i=pu();return i?null:f__namespace.createElement("li",{className:X("".concat(o,"-item-divider"),t),style:n})}var Vs=WF;Vs.Item=mu;Vs.SubMenu=Rv;Vs.ItemGroup=g1;Vs.Divider=b1;var GF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const XF=GF;var qF=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:XF}))};const YF=f__namespace.forwardRef(qF),QF=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(WN());},[]),e};function ZF(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s}=e;const{horizontalSize:l,verticalSize:c,latestIndex:u,supportFlexGap:d}=f__namespace.useContext(y1);let h={};return d||(n==="vertical"?r{const{getPrefixCls:n,space:r,direction:o}=f__namespace.useContext(gt),{size:i=(r==null?void 0:r.size)||"small",align:a,className:s,rootClassName:l,children:c,direction:u="horizontal",prefixCls:d,split:h,style:v,wrap:p=!1}=e,m=JF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),g=QF(),[b,y]=f__namespace.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(T=>t3(T)),[i]),C=vi(c,{keepEmpty:!0}),$=a===void 0&&u==="horizontal"?"center":a,w=n("space",d),[S,x]=Zy(w),R=X(w,x,`${w}-${u}`,{[`${w}-rtl`]:o==="rtl",[`${w}-align-${$}`]:$},s,l),M=`${w}-item`,O=o==="rtl"?"marginLeft":"marginRight";let I=0;const P=C.map((T,A)=>{T!=null&&(I=A);const N=T&&T.key||`${M}-${A}`;return f__namespace.createElement(ZF,{className:M,key:N,direction:u,index:A,marginDirection:O,split:h,wrap:p},T)}),_=f__namespace.useMemo(()=>({horizontalSize:b,verticalSize:y,latestIndex:I,supportFlexGap:g}),[b,y,I,g]);if(C.length===0)return null;const E={};return p&&(E.flexWrap="wrap",g||(E.marginBottom=-y)),g&&(E.columnGap=b,E.rowGap=y),S(f__namespace.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},E),v)},m),f__namespace.createElement(y1.Provider,{value:_},P)))}),C1=n3;C1.Compact=KI;const _v=C1,S1=f__namespace.createContext(null),r3=S1.Provider,w1=f__namespace.createContext(null),o3=w1.Provider;var i3=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],x1=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,h=d===void 0?"checkbox":d,v=e.onChange,p=Qe(e,i3),m=f.useRef(null),g=So(u,{value:s}),b=U(g,2),y=b[0],C=b[1];f.useImperativeHandle(t,function(){return {focus:function(){var x;(x=m.current)===null||x===void 0||x.focus();},blur:function(){var x;(x=m.current)===null||x===void 0||x.blur();},input:m.current}});var $=X(o,i,(n={},W(n,"".concat(o,"-checked"),y),W(n,"".concat(o,"-disabled"),l),n)),w=function(x){l||("checked"in e||C(x.target.checked),v==null||v({target:j(j({},e),{},{checked:x.target.checked}),stopPropagation:function(){x.stopPropagation();},preventDefault:function(){x.preventDefault();},nativeEvent:x.nativeEvent}));};return f__namespace.createElement("span",{className:$,style:a},f__namespace.createElement("input",pe({},p,{className:"".concat(o,"-input"),ref:m,onChange:w,disabled:l,checked:!!y,type:h})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const a3=new It("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),s3=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Zt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},l3=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:h,colorBgContainerDisabled:v,colorTextDisabled:p,paddingXS:m,radioDotDisabledColor:g,lineType:b,radioDotDisabledSize:y,wireframe:C,colorWhite:$}=e,w=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${b} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:a3,animationDuration:i,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},tu(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:C?r:$,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:C?c:r,"&::after":{transform:`scale(${h/o})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:v,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${y/o})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},c3=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:h,controlHeightLG:v,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:b,borderRadiusLG:y,radioCheckedColor:C,radioButtonCheckedBg:$,radioButtonHoverColor:w,radioButtonActiveColor:S,radioSolidCheckedColor:x,colorTextDisabled:R,colorBgContainerDisabled:M,radioDisabledButtonCheckedColor:O,radioDisabledButtonCheckedBg:I}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:v,fontSize:h,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:m-o,paddingBlock:0,lineHeight:`${p-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:C},"&:has(:focus-visible)":Object.assign({},tu(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:C,background:$,borderColor:C,"&::before":{backgroundColor:C},"&:first-child":{borderColor:C},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:C,borderColor:C,"&:hover":{color:x,background:w,borderColor:w},"&:active":{color:x,background:S,borderColor:S}},"&-disabled":{color:R,backgroundColor:M,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:M,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:I,borderColor:a,boxShadow:"none"}}}},$1=pn("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:i,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:h,controlOutlineWidth:v,colorTextLightSolid:p,wireframe:m}=e,g=`0 0 0 ${v}px ${s}`,b=g,y=a,C=4,$=y-C*2,w=m?$:y-(C+n)*2,S=d,x=u,R=l,M=c,O=t-n,_=Ft(e,{radioFocusShadow:g,radioButtonFocusShadow:b,radioSize:y,radioDotSize:w,radioDotDisabledSize:$,radioCheckedColor:S,radioDotDisabledColor:o,radioSolidCheckedColor:p,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:x,radioButtonHoverColor:R,radioButtonActiveColor:M,radioButtonPaddingHorizontal:O,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:h});return [s3(_),l3(_),c3(_)]});var u3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=f__namespace.useContext(S1),i=f__namespace.useContext(w1),{getPrefixCls:a,direction:s}=f__namespace.useContext(gt),l=f__namespace.useRef(null),c=Co(t,l),{isFormItemInput:u}=f__namespace.useContext(Wr),d=M=>{var O,I;(O=e.onChange)===null||O===void 0||O.call(e,M),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,M);},{prefixCls:h,className:v,rootClassName:p,children:m,style:g}=e,b=u3(e,["prefixCls","className","rootClassName","children","style"]),y=a("radio",h),C=((o==null?void 0:o.optionType)||i)==="button"?`${y}-button`:y,[$,w]=$1(y),S=Object.assign({},b),x=f__namespace.useContext(Ho);o&&(S.name=o.name,S.onChange=d,S.checked=e.value===o.value,S.disabled=(n=S.disabled)!==null&&n!==void 0?n:o.disabled),S.disabled=(r=S.disabled)!==null&&r!==void 0?r:x;const R=X(`${C}-wrapper`,{[`${C}-wrapper-checked`]:S.checked,[`${C}-wrapper-disabled`]:S.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:u},v,p,w);return $(f__namespace.createElement("label",{className:R,style:g,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(x1,Object.assign({},S,{type:"radio",prefixCls:C,ref:c})),m!==void 0?f__namespace.createElement("span",null,m):null))},f3=f__namespace.forwardRef(d3),mc=f3,h3=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(gt),[o,i]=So(e.defaultValue,{value:e.value}),a=P=>{const _=o,E=P.target.value;"value"in e||i(E);const{onChange:T}=e;T&&E!==_&&T(P);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:h,children:v,size:p,style:m,id:g,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:$}=e,w=n("radio",s),S=`${w}-group`,[x,R]=$1(w);let M=v;u&&u.length>0&&(M=u.map(P=>typeof P=="string"||typeof P=="number"?f__namespace.createElement(mc,{key:P.toString(),prefixCls:w,disabled:h,value:P,checked:o===P},P):f__namespace.createElement(mc,{key:`radio-group-value-options-${P.value}`,prefixCls:w,disabled:P.disabled||h,value:P.value,checked:o===P.value,style:P.style},P.label)));const O=xr(p),I=X(S,`${S}-${d}`,{[`${S}-${O}`]:O,[`${S}-rtl`]:r==="rtl"},l,c,R);return x(f__namespace.createElement("div",Object.assign({},bI(e),{className:I,style:m,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:$,id:g,ref:t}),f__namespace.createElement(r3,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),v3=f__namespace.memo(h3);var p3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=f__namespace.useContext(gt),{prefixCls:r}=e,o=p3(e,["prefixCls"]),i=n("radio",r);return f__namespace.createElement(o3,{value:"button"},f__namespace.createElement(mc,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},g3=f__namespace.forwardRef(m3),bu=mc;bu.Button=g3;bu.Group=v3;bu.__ANT_RADIO=!0;const Ed=bu,E1=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Us=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),gc=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Mv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Us(Ft(e,{inputBorderHoverColor:e.colorBorder})))}),O1=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return {padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},P1=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),yu=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},gc(Ft(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},gc(Ft(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Cu=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},E1(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Us(e)),"&:focus, &-focused":Object.assign({},gc(e)),"&-disabled, &[disabled]":Object.assign({},Mv(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},O1(e)),"&-sm":Object.assign({},P1(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),R1=e=>{const{componentCls:t,antCls:n}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},O1(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},P1(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},sT()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${n}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${t}, & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},b3=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),Cu(e)),yu(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},y3=e=>{const{componentCls:t}=e;return {[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},C3=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cu(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Us(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),y3(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),yu(e,`${t}-affix-wrapper`))}},S3=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Zt(e)),R1(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},Mv(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},w3=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return {[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function _1(e){return Ft(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const x3=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Tv=pn("Input",e=>{const t=_1(e);return [b3(t),x3(t),C3(t),S3(t),w3(t),lu(t)]});var $3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const E3=$3;var O3=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:E3}))};const P3=f__namespace.forwardRef(O3),Su=f.createContext(null);var M1=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return f__namespace.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:X(n,a&&"".concat(n,"-active"),r),ref:t},l)}),R3=["key","forceRender","style","className"];function _3(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=f__namespace.useContext(Su),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:X("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:X("".concat(s,"-content"),"".concat(s,"-content-").concat(o),W({},"".concat(s,"-content-animated"),c))},l.map(function(d){var h=d.key,v=d.forceRender,p=d.style,m=d.className,g=Qe(d,R3),b=h===n;return f__namespace.createElement($r,pe({key:h,visible:b,forceRender:v,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,C){var $=y.style,w=y.className;return f__namespace.createElement(M1,pe({},g,{prefixCls:u,id:t,tabKey:h,animated:c,active:b,style:j(j({},p),$),className:X(m,w),ref:C}))})})))}var Lg={width:0,height:0,left:0,top:0};function M3(e,t,n){return f.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Lg,a=i.left+i.width,s=0;sE?(P=O,S.current="x"):(P=I,S.current="y"),t(-P,-P)&&M.preventDefault();}var R=f.useRef(null);R.current={onTouchStart:C,onTouchMove:$,onTouchEnd:w,onWheel:x},f__namespace.useEffect(function(){function M(_){R.current.onTouchStart(_);}function O(_){R.current.onTouchMove(_);}function I(_){R.current.onTouchEnd(_);}function P(_){R.current.onWheel(_);}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",I,{passive:!1}),e.current.addEventListener("touchstart",M,{passive:!1}),e.current.addEventListener("wheel",P),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",I);}},[]);}function T1(e){var t=f.useState(0),n=U(t,2),r=n[0],o=n[1],i=f.useRef(0),a=f.useRef();return a.current=e,Gi(function(){var s;(s=a.current)===null||s===void 0||s.call(a);},[r]),function(){i.current===r&&(i.current+=1,o(i.current));}}function N3(e){var t=f.useRef([]),n=f.useState({}),r=U(n,2),o=r[1],i=f.useRef(typeof e=="function"?e():e),a=T1(function(){var l=i.current;t.current.forEach(function(c){l=c(l);}),t.current=[],i.current=l,o({});});function s(l){t.current.push(l),a();}return [i.current,s]}var Hg={width:0,height:0,left:0,top:0,right:0};function A3(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,h;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",h=Math.abs(n)):(u="height",d="top",h=-n),f.useMemo(function(){if(!s.length)return [0,0];for(var v=s.length,p=v,m=0;mh+t){p=m-1;break}}for(var b=0,y=v-1;y>=0;y-=1){var C=e.get(s[y].key)||Hg;if(C[d]Ve?"left":"right"});}),_=U(P,2),E=_[0],T=_[1],A=Fg(0,function(Me,Ve){!I&&C&&C({direction:Me>Ve?"top":"bottom"});}),N=U(A,2),D=N[0],L=N[1],B=f.useState([0,0]),G=U(B,2),F=G[0],K=G[1],V=f.useState([0,0]),q=U(V,2),ne=q[0],Z=q[1],Y=f.useState([0,0]),te=U(Y,2),ae=te[0],le=te[1],de=f.useState([0,0]),ee=U(de,2),oe=ee[0],ce=ee[1],se=N3(new Map),ve=U(se,2),re=ve[0],he=ve[1],ue=M3(i,re,ne[0]),be=wl(F,I),We=wl(ne,I),ct=wl(ae,I),et=wl(oe,I),ze=beLe?Le:Me}var Ne=f.useRef(),vt=f.useState(),st=U(vt,2),ge=st[0],we=st[1];function Ze(){we(Date.now());}function Ke(){window.clearTimeout(Ne.current);}I3(x,function(Me,Ve){function ut(Ot,qt){Ot(function(Bt){var wn=Pe(Bt+qt);return wn});}return ze?(I?ut(T,Me):ut(L,Ve),Ke(),Ze(),!0):!1}),f.useEffect(function(){return Ke(),ge&&(Ne.current=window.setTimeout(function(){we(0);},100)),Ke},[ge]);var pt=A3(ue,qe,I?E:D,We,ct,et,j(j({},e),{},{tabs:i})),$e=U(pt,2),Ee=$e[0],je=$e[1],Re=uc(function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Ve=ue.get(Me)||{width:0,height:0,left:0,right:0,top:0};if(I){var ut=E;d?Ve.rightE+qe&&(ut=Ve.right+Ve.width-qe):Ve.left<-E?ut=-Ve.left:Ve.left+Ve.width>-E+qe&&(ut=-(Ve.left+Ve.width-qe)),L(0),T(Pe(ut));}else {var Ot=D;Ve.top<-D?Ot=-Ve.top:Ve.top+Ve.height>-D+qe&&(Ot=-(Ve.top+Ve.height-qe)),T(0),L(Pe(Ot));}}),nt={};m==="top"||m==="bottom"?nt[d?"marginRight":"marginLeft"]=g:nt.marginTop=g;var $t=i.map(function(Me,Ve){var ut=Me.key;return f__namespace.createElement(z3,{id:l,prefixCls:o,key:ut,tab:Me,style:Ve===0?void 0:nt,closable:Me.closable,editable:v,active:ut===u,renderWrapper:b,removeAriaLabel:p==null?void 0:p.removeAriaLabel,onClick:function(qt){y(ut,qt);},onFocus:function(){Re(ut),Ze(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),zt=function(){return he(function(){var Ve=new Map;return i.forEach(function(ut){var Ot,qt=ut.key,Bt=(Ot=R.current)===null||Ot===void 0?void 0:Ot.querySelector('[data-node-key="'.concat(I1(qt),'"]'));Bt&&Ve.set(qt,{width:Bt.offsetWidth,height:Bt.offsetHeight,left:Bt.offsetLeft,top:Bt.offsetTop});}),Ve})};f.useEffect(function(){zt();},[i.map(function(Me){return Me.key}).join("_")]);var kt=T1(function(){var Me=Di($),Ve=Di(w),ut=Di(S);K([Me[0]-Ve[0]-ut[0],Me[1]-Ve[1]-ut[1]]);var Ot=Di(O);le(Ot);var qt=Di(M);ce(qt);var Bt=Di(R);Z([Bt[0]-Ot[0],Bt[1]-Ot[1]]),zt();}),Ae=i.slice(0,Ee),fe=i.slice(je+1),ie=[].concat(me(Ae),me(fe)),Se=f.useState(),xe=U(Se,2),Je=xe[0],mt=xe[1],wt=ue.get(u),Xt=f.useRef();function Vt(){Mt.cancel(Xt.current);}f.useEffect(function(){var Me={};return wt&&(I?(d?Me.right=wt.right:Me.left=wt.left,Me.width=wt.width):(Me.top=wt.top,Me.height=wt.height)),Vt(),Xt.current=Mt(function(){mt(Me);}),Vt},[wt,I,d]),f.useEffect(function(){Re();},[u,Ie,Le,Bg(wt),Bg(ue),I]),f.useEffect(function(){kt();},[d]);var De=!!ie.length,Ge="".concat(o,"-nav-wrap"),_e,xt,yt,Yt;return I?d?(xt=E>0,_e=E!==Le):(_e=E<0,xt=E!==Ie):(yt=D<0,Yt=D!==Ie),f__namespace.createElement(vo,{onResize:kt},f__namespace.createElement("div",{ref:Xc(t,$),role:"tablist",className:X("".concat(o,"-nav"),a),style:s,onKeyDown:function(){Ze();}},f__namespace.createElement(Wg,{ref:w,position:"left",extra:h,prefixCls:o}),f__namespace.createElement("div",{className:X(Ge,(n={},W(n,"".concat(Ge,"-ping-left"),_e),W(n,"".concat(Ge,"-ping-right"),xt),W(n,"".concat(Ge,"-ping-top"),yt),W(n,"".concat(Ge,"-ping-bottom"),Yt),n)),ref:x},f__namespace.createElement(vo,{onResize:kt},f__namespace.createElement("div",{ref:R,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(E,"px, ").concat(D,"px)"),transition:ge?"none":void 0}},$t,f__namespace.createElement(N1,{ref:O,prefixCls:o,locale:p,editable:v,style:j(j({},$t.length===0?void 0:nt),{},{visibility:De?"hidden":null})}),f__namespace.createElement("div",{className:X("".concat(o,"-ink-bar"),W({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Je})))),f__namespace.createElement(F3,pe({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:M,prefixCls:o,tabs:ie,className:!De&&ke,tabMoving:!!ge})),f__namespace.createElement(Wg,{ref:S,position:"right",extra:h,prefixCls:o})))}const Vg=f__namespace.forwardRef(j3);var H3=["renderTabBar"],B3=["label","key"];function W3(e){var t=e.renderTabBar,n=Qe(e,H3),r=f__namespace.useContext(Su),o=r.tabs;if(t){var i=j(j({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=Qe(a,B3);return f__namespace.createElement(M1,pe({tab:s,key:l,tabKey:l},c))})});return t(i,Vg)}return f__namespace.createElement(Vg,n)}function V3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=j({inkBar:!0},tt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var U3=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Ug=0;function K3(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,h=e.animated,v=e.tabPosition,p=v===void 0?"top":v,m=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,$=e.moreTransitionName,w=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,R=e.onTabClick,M=e.onTabScroll,O=e.getPopupContainer,I=e.popupClassName,P=Qe(e,U3),_=f__namespace.useMemo(function(){return (s||[]).filter(function(se){return se&&tt(se)==="object"&&"key"in se})},[s]),E=l==="rtl",T=V3(h),A=f.useState(!1),N=U(A,2),D=N[0],L=N[1];f.useEffect(function(){L(uu());},[]);var B=qn(function(){var se;return (se=_[0])===null||se===void 0?void 0:se.key},{value:c,defaultValue:u}),G=U(B,2),F=G[0],K=G[1],V=f.useState(function(){return _.findIndex(function(se){return se.key===F})}),q=U(V,2),ne=q[0],Z=q[1];f.useEffect(function(){var se=_.findIndex(function(re){return re.key===F});if(se===-1){var ve;se=Math.max(0,Math.min(ne,_.length-1)),K((ve=_[se])===null||ve===void 0?void 0:ve.key);}Z(se);},[_.map(function(se){return se.key}).join("_"),F,ne]);var Y=qn(null,{value:r}),te=U(Y,2),ae=te[0],le=te[1];f.useEffect(function(){r||(le("rc-tabs-".concat(Ug)),Ug+=1);},[]);function de(se,ve){R==null||R(se,ve);var re=se!==F;K(se),re&&(x==null||x(se));}var ee={id:ae,activeKey:F,animated:T,tabPosition:p,rtl:E,mobile:D},oe,ce=j(j({},ee),{},{editable:d,locale:y,moreIcon:C,moreTransitionName:$,tabBarGutter:m,onTabClick:de,onTabScroll:M,extra:b,style:g,panes:null,getPopupContainer:O,popupClassName:I});return f__namespace.createElement(Su.Provider,{value:{tabs:_,prefixCls:i}},f__namespace.createElement("div",pe({ref:t,id:r,className:X(i,"".concat(i,"-").concat(p),(n={},W(n,"".concat(i,"-mobile"),D),W(n,"".concat(i,"-editable"),d),W(n,"".concat(i,"-rtl"),E),n),a)},P),oe,f__namespace.createElement(W3,pe({},ce,{renderTabBar:S})),f__namespace.createElement(_3,pe({destroyInactiveTabPane:w},ee,{animated:T}))))}var G3=f__namespace.forwardRef(K3);const X3=()=>null,q3=X3,Y3={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Q3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Y3),{motionName:cu(e,"switch")})),n}var Z3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function e5(e,t){if(e)return e;const n=vi(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=Z3(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return J3(n)}const t5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[cc(e,"slide-up"),cc(e,"slide-down")]]},n5=t5,r5=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:o,colorBorderSecondary:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},o5=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Zt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ki),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},i5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},a5=e=>{const{componentCls:t,padding:n}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},s5=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:i}=e,a=`${t}-tab`;return {[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Jh(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},l5=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:o}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},c5=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:i,tabsActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Jh(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),s5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},u5=pn("Tabs",e=>{const t=e.controlHeightLG,n=Ft(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return [a5(n),l5(n),i5(n),o5(n),r5(n),c5(n),n5(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var d5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{key:_,event:E}=P;i==null||i(I==="add"?E:_,I);},removeIcon:f__namespace.createElement(iv,null),addIcon:l||f__namespace.createElement(P3,null),showAdd:a!==!0});const x=b(),R=e5(d,u),M=Q3(C,h),O=xr(o);return $(f__namespace.createElement(G3,Object.assign({direction:g,getPopupContainer:y,moreTransitionName:`${x}-slide-up`},v,{items:R,className:X({[`${C}-${O}`]:O,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:t==="editable-card",[`${C}-centered`]:s},n,r,w),popupClassName:X(c,w),editable:S,moreIcon:m,prefixCls:C,animated:M})))}A1.TabPane=q3;var Xe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Xe.F1&&n<=Xe.F12)return !1;switch(n){case Xe.ALT:case Xe.CAPS_LOCK:case Xe.CONTEXT_MENU:case Xe.CTRL:case Xe.DOWN:case Xe.END:case Xe.ESC:case Xe.HOME:case Xe.INSERT:case Xe.LEFT:case Xe.MAC_FF_META:case Xe.META:case Xe.NUMLOCK:case Xe.NUM_CENTER:case Xe.PAGE_DOWN:case Xe.PAGE_UP:case Xe.PAUSE:case Xe.PRINT_SCREEN:case Xe.RIGHT:case Xe.SHIFT:case Xe.UP:case Xe.WIN_KEY:case Xe.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=Xe.ZERO&&t<=Xe.NINE||t>=Xe.NUM_ZERO&&t<=Xe.NUM_MULTIPLY||t>=Xe.A&&t<=Xe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case Xe.SPACE:case Xe.QUESTION_MARK:case Xe.NUM_PLUS:case Xe.NUM_MINUS:case Xe.NUM_PERIOD:case Xe.NUM_DIVISION:case Xe.SEMICOLON:case Xe.DASH:case Xe.EQUALS:case Xe.COMMA:case Xe.PERIOD:case Xe.SLASH:case Xe.APOSTROPHE:case Xe.SINGLE_QUOTE:case Xe.OPEN_SQUARE_BRACKET:case Xe.BACKSLASH:case Xe.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}};const f5=new It("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),h5=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Zt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Zt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"start",transform:`translate(0, ${e.lineHeight*e.fontSize/2-e.checkboxSize/2}px)`,[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},tu(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:f5,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function v5(e,t){const n=Ft(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [h5(n)]}const D1=pn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [v5(n,e)]});var p5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=p5(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(gt),[v,p]=f__namespace.useState(u.value||n||[]),[m,g]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&p(u.value||[]);},[u.value]);const b=()=>o.map(P=>typeof P=="string"||typeof P=="number"?{label:P,value:P}:P),y=P=>{g(_=>_.filter(E=>E!==P));},C=P=>{g(_=>[].concat(me(_),[P]));},$=P=>{const _=v.indexOf(P.value),E=me(v);_===-1?E.push(P.value):E.splice(_,1),"value"in u||p(E);const T=b();c==null||c(E.filter(A=>m.includes(A)).sort((A,N)=>{const D=T.findIndex(B=>B.value===A),L=T.findIndex(B=>B.value===N);return D-L}));},w=d("checkbox",i),S=`${w}-group`,[x,R]=D1(w),M=hi(u,["value","disabled"]);o&&o.length>0&&(r=b().map(P=>f__namespace.createElement(L1,{prefixCls:w,key:P.value.toString(),disabled:"disabled"in P?P.disabled:u.disabled,value:P.value,checked:v.includes(P.value),onChange:P.onChange,className:`${S}-item`,style:P.style},P.label)));const O={toggleOption:$,value:v,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},I=X(S,{[`${S}-rtl`]:h==="rtl"},a,s,R);return x(f__namespace.createElement("div",Object.assign({className:I,style:l},M,{ref:t}),f__namespace.createElement(k1.Provider,{value:O},r)))},g5=f__namespace.forwardRef(m5),b5=f__namespace.memo(g5);var y5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:h}=e,v=y5(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:p,direction:m}=f__namespace.useContext(gt),g=f__namespace.useContext(k1),{isFormItemInput:b}=f__namespace.useContext(Wr),y=f__namespace.useContext(Ho),C=(n=(g==null?void 0:g.disabled)||h)!==null&&n!==void 0?n:y,$=f__namespace.useRef(v.value);f__namespace.useEffect(()=>{g==null||g.registerValue(v.value);},[]),f__namespace.useEffect(()=>{if(!d)return v.value!==$.current&&(g==null||g.cancelValue($.current),g==null||g.registerValue(v.value),$.current=v.value),()=>g==null?void 0:g.cancelValue(v.value)},[v.value]);const w=p("checkbox",r),[S,x]=D1(w),R=Object.assign({},v);g&&!d&&(R.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),g.toggleOption&&g.toggleOption({label:a,value:v.value});},R.name=g.name,R.checked=g.value.includes(v.value));const M=X({[`${w}-wrapper`]:!0,[`${w}-rtl`]:m==="rtl",[`${w}-wrapper-checked`]:R.checked,[`${w}-wrapper-disabled`]:C,[`${w}-wrapper-in-form-item`]:b},o,i,x),O=X({[`${w}-indeterminate`]:s},x),I=s?"mixed":void 0;return S(f__namespace.createElement("label",{className:M,style:l,onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(x1,Object.assign({"aria-checked":I},R,{prefixCls:w,className:O,disabled:C,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a)))},S5=f__namespace.forwardRef(C5),L1=S5,Iv=L1;Iv.Group=b5;Iv.__ANT_CHECKBOX=!0;const w5=Iv;var F1=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=f.useState(l||o),d=U(u,2),h=d[0],v=d[1];return f.useEffect(function(){(o||l)&&v(!0);},[o,l]),h?f.createElement("div",{ref:t,className:X("".concat(r,"-content"),(n={},W(n,"".concat(r,"-content-active"),l),W(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});F1.displayName="PanelContent";var x5=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],$5=f.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,h=e.collapsible,v=e.accordion,p=e.panelKey,m=e.extra,g=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,$=e.children,w=Qe(e,x5),S=h==="disabled",x=h==="header",R=h==="icon",M=m!=null&&typeof m!="boolean",O=function(){l==null||l(p);},I=function(N){(N.key==="Enter"||N.keyCode===Xe.ENTER||N.which===Xe.ENTER)&&O();},P=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});P&&(P=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(h)?O:void 0},P));var _=X((n={},W(n,"".concat(d,"-item"),!0),W(n,"".concat(d,"-item-active"),s),W(n,"".concat(d,"-item-disabled"),S),n),u),E=X((r={},W(r,"".concat(d,"-header"),!0),W(r,"headerClass",a),W(r,"".concat(d,"-header-collapsible-only"),x),W(r,"".concat(d,"-icon-collapsible-only"),R),r)),T={className:E,"aria-expanded":s,"aria-disabled":S,onKeyPress:I};return !x&&!R&&(T.onClick=O,T.role=v?"tab":"button",T.tabIndex=S?-1:0),f.createElement("div",pe({},w,{ref:t,className:_}),f.createElement("div",T,i&&P,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:h==="header"?O:void 0},g),M&&f.createElement("div",{className:"".concat(d,"-extra")},m)),f.createElement($r,pe({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(A,N){var D=A.className,L=A.style;return f.createElement(F1,{ref:N,prefixCls:d,className:D,style:L,isActive:s,forceRender:c,role:v?"tabpanel":void 0},$)}))});function E5(e){var t=e;if(!Array.isArray(t)){var n=tt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var O5=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,h=e.expandIcon,v=e.activeKey,p=e.defaultActiveKey,m=e.onChange,g=X(r,l),b=So([],{value:v,onChange:function(M){return m==null?void 0:m(M)},defaultValue:p,postState:E5}),y=U(b,2),C=y[0],$=y[1],w=function(M){return $(function(){if(s)return C[0]===M?[]:[M];var O=C.indexOf(M),I=O>-1;return I?C.filter(function(P){return P!==M}):[].concat(me(C),[M])})},S=function(M,O){if(!M)return null;var I=M.key||String(O),P=M.props,_=P.header,E=P.headerClass,T=P.destroyInactivePanel,A=P.collapsible,N=P.onItemClick,D=!1;s?D=C[0]===I:D=C.indexOf(I)>-1;var L=A??u,B=function(K){L!=="disabled"&&(w(K),N==null||N(K));},G={key:I,panelKey:I,header:_,headerClass:E,isActive:D,prefixCls:r,destroyInactivePanel:T??i,openMotion:d,accordion:s,children:M.props.children,onItemClick:B,expandIcon:h,collapsible:L};return typeof M.type=="string"?M:(Object.keys(G).forEach(function(F){typeof G[F]>"u"&&delete G[F];}),f.cloneElement(M,G))},x=vi(c).map(S);return f.createElement("div",{ref:t,className:g,style:a,role:s?"tablist":void 0},x)});const Nv=Object.assign(O5,{Panel:$5});Nv.Panel;const P5=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(gt),{prefixCls:r,className:o="",showArrow:i=!0}=e,a=n("collapse",r),s=X({[`${a}-no-arrow`]:!i},o);return f__namespace.createElement(Nv.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),R5=P5,_5=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:h,colorText:v,colorTextHeading:p,colorTextDisabled:m,fontSize:g,fontSizeLG:b,lineHeight:y,marginSM:C,paddingSM:$,paddingLG:w,motionDurationSlow:S,fontSizeIcon:x}=e,R=`${u}px ${d} ${h}`;return {[t]:Object.assign(Object.assign({},Zt(e)),{backgroundColor:i,border:R,borderBottom:0,borderRadius:`${c}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:R,["&:last-child"]:{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:y,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*y,display:"flex",alignItems:"center",paddingInlineEnd:C},[`${t}-arrow`]:Object.assign(Object.assign({},Fs()),{fontSize:x,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:$}}},[`${t}-content`]:{color:v,backgroundColor:n,borderTop:R,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},["&-large"]:{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,[`> ${t}-expand-icon`]:{height:b*y}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[` &, & > .arrow `]:{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},M5=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},T5=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},I5=e=>{const{componentCls:t,paddingSM:n}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},N5=pn("Collapse",e=>{const t=Ft(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return [_5(t),T5(t),I5(t),M5(t),bA(t)]}),A5=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(gt),{prefixCls:o,className:i,rootClassName:a,bordered:s=!0,ghost:l,size:c,expandIconPosition:u="start",children:d,expandIcon:h}=e,v=xr(x=>{var R;return (R=c??x)!==null&&R!==void 0?R:"middle"}),p=n("collapse",o),m=n(),[g,b]=N5(p),y=f__namespace.useMemo(()=>u==="left"?"start":u==="right"?"end":u,[u]),C=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=h?h(x):f__namespace.createElement(dL,{rotate:x.isActive?90:void 0});return Sr(R,()=>({className:X(R.props.className,`${p}-arrow`)}))},$=X(`${p}-icon-position-${y}`,{[`${p}-borderless`]:!s,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!l,[`${p}-${v}`]:v!=="middle"},i,a,b),w=Object.assign(Object.assign({},_N(m)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),S=f__namespace.useMemo(()=>vi(d).map((x,R)=>{var M,O;if(!((M=x.props)===null||M===void 0)&&M.disabled){const I=(O=x.key)!==null&&O!==void 0?O:String(R),{disabled:P,collapsible:_}=x.props,E=Object.assign(Object.assign({},hi(x.props,["disabled"])),{key:I,collapsible:_??(P?"disabled":void 0)});return Sr(x,E)}return x}),[d]);return g(f__namespace.createElement(Nv,Object.assign({ref:t,openMotion:w},hi(e,["rootClassName"]),{expandIcon:C,prefixCls:p,className:$}),S))}),z1=Object.assign(A5,{Panel:R5});var D5=["v"],th=function(e){Fo(n,e);var t=zo(n);function n(r){return hn(this,n),t.call(this,F5(r))}return vn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=li(o.s*100),a=li(o.b*100),s=li(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();tt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Qe(i,D5);return j(j({},a),{},{b:o.v})}}]),n}(en),k5=["b"],L5="rc-color-picker",li=function(t){return Math.round(Number(t||0))},F5=function(t){if(t&&tt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Qe(n,k5);return j(j({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Do=function(t){return t instanceof th?t:new th(t)},z5=Do("#1677ff"),j1=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,h=u.height,v=d/2,p=h/2,m=(n.x+v)/l,g=1-(n.y+p)/c,b=i.toHsb(),y=m,C=(n.x+v)/l*360;if(a)switch(a){case"hue":return Do(j(j({},b),{},{h:C<=0?0:C}));case"alpha":return Do(j(j({},b),{},{a:y<=0?0:y}))}return Do({h:b.h,s:m<=0?0:m,b:g>=1?1:g,a:b.a})},H1=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,s=i.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,h=u/2,v=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:v.h/360*a-d,y:-h/3};case"alpha":return {x:v.a/1*a-d,y:-h/3}}return {x:v.s*a-d,y:(1-v.b)*s-h}}},Av=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return f.createElement("div",{className:X(s,o),style:i,onClick:a},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function j5(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return {pageX:t.pageX-n,pageY:t.pageY-r}}function B1(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.calculate,s=e.color,l=f.useState(t||{x:0,y:0}),c=U(l,2),u=c[0],d=c[1],h=f.useRef(null),v=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var C=a==null?void 0:a(r);C&&d(C);}},[s,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null;}},[]);var m=function($){var w=j5($),S=w.pageX,x=w.pageY,R=r.current.getBoundingClientRect(),M=R.x,O=R.y,I=R.width,P=R.height,_=n.current.getBoundingClientRect(),E=_.width,T=_.height,A=E/2,N=T/2,D=Math.max(0,Math.min(S-M,I))-A,L=Math.max(0,Math.min(x-O,P))-N,B={x:D,y:o==="x"?u.y:L};if(E===0&&T===0||E!==T)return !1;d(B),i==null||i(B);},g=function($){$.preventDefault(),m($);},b=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null;},y=function($){m($),p.current.flag=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",b),document.addEventListener("touchmove",g),document.addEventListener("touchend",b),h.current=g,v.current=b;};return [u,y]}var W1=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return f.createElement("div",{className:X("".concat(i,"-handler"),W({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},V1=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:j({position:"relative"},r)},n)},U1=f.forwardRef(function(e,t){var n=e.children,r=e.offset;return f.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),H5=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=f.useRef(),a=f.useRef(),s=B1({color:n,containerRef:i,targetRef:a,calculate:function(h){return H1(h,a,n)},onDragChange:function(h){return r(j1({offset:h,targetRef:a,containerRef:i,color:n}))}}),l=U(s,2),c=l[0],u=l[1];return f.createElement("div",{ref:i,className:"".concat(o,"-select"),onMouseDown:u,onTouchStart:u},f.createElement(V1,{prefixCls:o},f.createElement(U1,{offset:c,ref:a},f.createElement(W1,{color:n.toRgbString(),prefixCls:o})),f.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},B5=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=Do(c);return a==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,a]);return f.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},Kg=function(t){var n=t.gradientColors,r=t.direction,o=t.type,i=o===void 0?"hue":o,a=t.color,s=t.value,l=t.onChange,c=t.prefixCls,u=f.useRef(),d=f.useRef(),h=B1({color:a,targetRef:d,containerRef:u,calculate:function(b){return H1(b,d,a,i)},onDragChange:function(b){l(j1({offset:b,targetRef:d,containerRef:u,color:a,type:i}));},direction:"x"}),v=U(h,2),p=v[0],m=v[1];return f.createElement("div",{ref:u,className:X("".concat(c,"-slider"),"".concat(c,"-slider-").concat(i)),onMouseDown:m,onTouchStart:m},f.createElement(V1,{prefixCls:c},f.createElement(U1,{offset:p,ref:d},f.createElement(W1,{size:"small",color:s,prefixCls:c})),f.createElement(B5,{colors:n,direction:r,type:i,prefixCls:c})))};function Gg(e){return e!==void 0}var W5=function(t,n){var r=n.defaultValue,o=n.value,i=f.useState(function(){var c;return Gg(o)?c=o:Gg(r)?c=r:c=t,Do(c)}),a=U(i,2),s=a[0],l=a[1];return f.useEffect(function(){o&&l(Do(o));},[o]),[s,l]},V5=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const U5=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?L5:o,a=e.onChange,s=e.className,l=e.style,c=e.panelRender,u=W5(z5,{value:n,defaultValue:r}),d=U(u,2),h=d[0],v=d[1],p=f.useMemo(function(){var y=Do(h.toRgbString());return y.setAlpha(1),y.toRgbString()},[h]),m=X("".concat(i,"-panel"),s),g=function(C,$){n||v(C),a==null||a(C,$);},b=f.createElement(f.Fragment,null,f.createElement(H5,{color:h,onChange:g,prefixCls:i}),f.createElement("div",{className:"".concat(i,"-slider-container")},f.createElement("div",{className:"".concat(i,"-slider-group")},f.createElement(Kg,{gradientColors:V5,prefixCls:i,color:h,value:"hsl(".concat(h.toHsb().h,",100%, 50%)"),onChange:function(C){return g(C,"hue")}}),f.createElement(Kg,{type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",p],prefixCls:i,color:h,value:h.toRgbString(),onChange:function(C){return g(C,"alpha")}})),f.createElement(Av,{color:h.toRgbString(),prefixCls:i})));return f.createElement("div",{className:m,style:l,ref:t},typeof c=="function"?c(b):b)}),K5=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},Zt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},G5=pn("Divider",e=>{const t=Ft(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [K5(t)]},{sizePaddingEdgeHorizontal:0});var X5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=f__namespace.useContext(gt),{prefixCls:r,type:o="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:c,dashed:u,plain:d}=e,h=X5(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),v=t("divider",r),[p,m]=G5(v),g=i.length>0?`-${i}`:i,b=!!c,y=i==="left"&&a!=null,C=i==="right"&&a!=null,$=X(v,m,`${v}-${o}`,{[`${v}-with-text`]:b,[`${v}-with-text${g}`]:b,[`${v}-dashed`]:!!u,[`${v}-plain`]:!!d,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:y,[`${v}-no-default-orientation-margin-right`]:C},s,l),w=Object.assign(Object.assign({},y&&{marginLeft:a}),C&&{marginRight:a});return p(f__namespace.createElement("div",Object.assign({className:$},h,{role:"separator"}),c&&o!=="vertical"&&f__namespace.createElement("span",{className:`${v}-inner-text`,style:w},c)))},Y5=q5;let Xg=function(){function e(t){hn(this,e),this.metaColor=new th(t);}return vn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return J5(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),e}();const Q5="ant-color-picker",An=e=>e instanceof Xg?e:new Xg(e),Z5=e=>li(e.toHsb().a*100),Dl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",J5=(e,t)=>e?Dl(e,t):"",e4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=()=>{if(n){const i=n.toHsb();i.a=0;const a=An(i);r==null||r(a);}};return f.createElement("div",{className:`${t}-clear`,onClick:o})},K1=e4;var ao;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(ao||(ao={}));var t4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const n4=t4;var r4=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:n4}))};const o4=f__namespace.forwardRef(r4);function nh(){return typeof BigInt=="function"}function ci(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function Dv(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function $s(e){var t=String(e);if(Dv(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&kv(t)?t.length-t.indexOf(".")-1:0}function wu(e){var t=String(e);if(Dv(e)){if(e>Number.MAX_SAFE_INTEGER)return String(nh()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":wu(this.number):this.origin}}]),e}(),a4=function(){function e(t){if(hn(this,e),W(this,"origin",""),W(this,"negative",void 0),W(this,"integer",void 0),W(this,"decimal",void 0),W(this,"decimalLen",void 0),W(this,"empty",void 0),W(this,"nan",void 0),G1(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Dv(n)&&(n=Number(n)),n=typeof n=="string"?n:wu(n),kv(n)){var r=ci(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=!0;}return vn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),s=(i+a).toString(),l=ci(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ci("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function ur(e){return nh()?new a4(e):new i4(e)}function kl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ci(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=ur(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return kl(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}var s4=function(){var t=f.useState(!1),n=U(t,2),r=n[0],o=n[1];return Sn(function(){o(uu());},[]),r},l4=200,c4=600;function u4(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef();l.current=a;var c=function(b,y){b.preventDefault(),l.current(y);function C(){l.current(y),s.current=setTimeout(C,l4);}s.current=setTimeout(C,c4);},u=function(){clearTimeout(s.current);};f__namespace.useEffect(function(){return u},[]);var d=s4();if(d)return null;var h="".concat(t,"-handler"),v=X(h,"".concat(h,"-up"),W({},"".concat(h,"-up-disabled"),o)),p=X(h,"".concat(h,"-down"),W({},"".concat(h,"-down-disabled"),i)),m={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return f__namespace.createElement("div",{className:"".concat(h,"-wrap")},f__namespace.createElement("span",pe({},m,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":o,className:v}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",pe({},m,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:p}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function qg(e){var t=typeof e=="number"?wu(e):ci(e).fullStr,n=t.includes(".");return n?ci(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function d4(e,t){var n=f.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else if(i.startsWith(s))u=s.length;else {var d=s[c-1],h=i.indexOf(d,c-1);h!==-1&&(u=h+1);}e.setSelectionRange(u,u);}catch(v){yn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message));}}return [r,o]}const f4=function(){var e=f.useRef(0),t=function(){Mt.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=Mt(function(){n();});}};var h4=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Yg=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Qg=function(t){var n=ur(t);return n.isInvalidate()?null:n},X1=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,h=e.value,v=e.disabled,p=e.readOnly,m=e.upHandler,g=e.downHandler,b=e.keyboard,y=e.controls,C=y===void 0?!0:y,$=e.stringMode,w=e.parser,S=e.formatter,x=e.precision,R=e.decimalSeparator,M=e.onChange,O=e.onInput,I=e.onPressEnter,P=e.onStep,_=Qe(e,h4),E="".concat(o,"-input"),T=f__namespace.useRef(null),A=f__namespace.useState(!1),N=U(A,2),D=N[0],L=N[1],B=f__namespace.useRef(!1),G=f__namespace.useRef(!1),F=f__namespace.useRef(!1),K=f__namespace.useState(function(){return ur(h??d)}),V=U(K,2),q=V[0],ne=V[1];function Z($e){h===void 0&&ne($e);}var Y=f__namespace.useCallback(function($e,Ee){if(!Ee)return x>=0?x:Math.max($s($e),$s(u))},[x,u]),te=f__namespace.useCallback(function($e){var Ee=String($e);if(w)return w(Ee);var je=Ee;return R&&(je=je.replace(R,".")),je.replace(/[^\w.-]+/g,"")},[w,R]),ae=f__namespace.useRef(""),le=f__namespace.useCallback(function($e,Ee){if(S)return S($e,{userTyping:Ee,input:String(ae.current)});var je=typeof $e=="number"?wu($e):$e;if(!Ee){var Re=Y(je,Ee);if(kv(je)&&(R||Re>=0)){var nt=R||".";je=kl(je,nt,Re);}}return je},[S,Y,R]),de=f__namespace.useState(function(){var $e=d??h;return q.isInvalidate()&&["string","number"].includes(tt($e))?Number.isNaN($e)?"":$e:le(q.toString(),!1)}),ee=U(de,2),oe=ee[0],ce=ee[1];ae.current=oe;function se($e,Ee){ce(le($e.isInvalidate()?$e.toString(!1):$e.toString(!Ee),Ee));}var ve=f__namespace.useMemo(function(){return Qg(l)},[l,x]),re=f__namespace.useMemo(function(){return Qg(s)},[s,x]),he=f__namespace.useMemo(function(){return !ve||!q||q.isInvalidate()?!1:ve.lessEquals(q)},[ve,q]),ue=f__namespace.useMemo(function(){return !re||!q||q.isInvalidate()?!1:q.lessEquals(re)},[re,q]),be=d4(T.current,D),We=U(be,2),ct=We[0],et=We[1],ze=function(Ee){return ve&&!Ee.lessEquals(ve)?ve:re&&!re.lessEquals(Ee)?re:null},qe=function(Ee){return !ze(Ee)},ke=function(Ee,je){var Re=Ee,nt=qe(Re)||Re.isEmpty();if(!Re.isEmpty()&&!je&&(Re=ze(Re)||Re,nt=!0),!p&&!v&&nt){var $t=Re.toString(),zt=Y($t,je);return zt>=0&&(Re=ur(kl($t,".",zt)),qe(Re)||(Re=ur(kl($t,".",zt,!0)))),Re.equals(q)||(Z(Re),M==null||M(Re.isEmpty()?null:Yg($,Re)),h===void 0&&se(Re,je)),Re}return q},Ie=f4(),Le=function $e(Ee){if(ct(),ce(Ee),!G.current){var je=te(Ee),Re=ur(je);Re.isNaN()||ke(Re,!0);}O==null||O(Ee),Ie(function(){var nt=Ee;w||(nt=Ee.replace(/。/g,".")),nt!==Ee&&$e(nt);});},Pe=function(){G.current=!0;},Ne=function(){G.current=!1,Le(T.current.value);},vt=function(Ee){Le(Ee.target.value);},st=function(Ee){var je;if(!(Ee&&he||!Ee&&ue)){B.current=!1;var Re=ur(F.current?qg(u):u);Ee||(Re=Re.negate());var nt=(q||ur(0)).add(Re.toString()),$t=ke(nt,!1);P==null||P(Yg($,$t),{offset:F.current?qg(u):u,type:Ee?"up":"down"}),(je=T.current)===null||je===void 0||je.focus();}},ge=function(Ee){var je=ur(te(oe)),Re=je;je.isNaN()?Re=q:Re=ke(je,Ee),h!==void 0?se(q,!1):Re.isNaN()||se(Re,!1);},we=function(){B.current=!0;},Ze=function(Ee){var je=Ee.which,Re=Ee.shiftKey;B.current=!0,Re?F.current=!0:F.current=!1,je===J.ENTER&&(G.current||(B.current=!1),ge(!1),I==null||I(Ee)),b!==!1&&!G.current&&[J.UP,J.DOWN].includes(je)&&(st(J.UP===je),Ee.preventDefault());},Ke=function(){B.current=!1,F.current=!1;},pt=function(){ge(!1),L(!1),B.current=!1;};return Gi(function(){q.isInvalidate()||se(q,!1);},[x]),Gi(function(){var $e=ur(h);ne($e);var Ee=ur(te(oe));(!$e.equals(Ee)||!B.current||S)&&se($e,B.current);},[h]),Gi(function(){S&&et();},[oe]),f__namespace.createElement("div",{className:X(o,i,(n={},W(n,"".concat(o,"-focused"),D),W(n,"".concat(o,"-disabled"),v),W(n,"".concat(o,"-readonly"),p),W(n,"".concat(o,"-not-a-number"),q.isNaN()),W(n,"".concat(o,"-out-of-range"),!q.isInvalidate()&&!qe(q)),n)),style:a,onFocus:function(){L(!0);},onBlur:pt,onKeyDown:Ze,onKeyUp:Ke,onCompositionStart:Pe,onCompositionEnd:Ne,onBeforeInput:we},C&&f__namespace.createElement(u4,{prefixCls:o,upNode:m,downNode:g,upDisabled:he,downDisabled:ue,onStep:st}),f__namespace.createElement("div",{className:"".concat(E,"-wrap")},f__namespace.createElement("input",pe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:u},_,{ref:jo(T,t),className:E,value:oe,onChange:vt,disabled:v,readOnly:p}))))});X1.displayName="InputNumber";const v4=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:h,colorPrimary:v,controlHeight:p,inputPaddingHorizontal:m,colorBgContainer:g,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:C,controlWidth:$,handleVisible:w}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),Cu(e)),yu(e,t)),{display:"inline-block",width:$,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:C,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},Us(e)),"&-focused":Object.assign({},gc(e)),"&-disabled":Object.assign(Object.assign({},Mv(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Zt(e)),R1(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}}}}),[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{width:"100%",height:p-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit",verticalAlign:"top"}),E1(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:g,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:w===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${h} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Fs()),{color:d,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},p4=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:i,borderRadiusSM:a}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},Cu(e)),yu(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Us(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},m4=pn("InputNumber",e=>{const t=_1(e);return [v4(t),p4(t),lu(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var g4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=f__namespace.useContext(gt),[o,i]=f__namespace.useState(!1),a=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>a.current);const{className:s,rootClassName:l,size:c,disabled:u,prefixCls:d,addonBefore:h,addonAfter:v,prefix:p,bordered:m=!0,readOnly:g,status:b,controls:y}=e,C=g4(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),$=n("input-number",d),[w,S]=m4($),{compactSize:x,compactItemClassnames:R}=js($,r);let M=f__namespace.createElement(o4,{className:`${$}-handler-up-inner`}),O=f__namespace.createElement(IC,{className:`${$}-handler-down-inner`});const I=typeof y=="boolean"?y:void 0;typeof y=="object"&&(M=typeof y.upIcon>"u"?M:f__namespace.createElement("span",{className:`${$}-handler-up-inner`},y.upIcon),O=typeof y.downIcon>"u"?O:f__namespace.createElement("span",{className:`${$}-handler-down-inner`},y.downIcon));const{hasFeedback:P,status:_,isFormItemInput:E,feedbackIcon:T}=f__namespace.useContext(Wr),A=fu(_,b),N=xr(V=>{var q;return (q=x??c)!==null&&q!==void 0?q:V}),D=p!=null||P,L=!!(h||v),B=f__namespace.useContext(Ho),G=u??B,F=X({[`${$}-lg`]:N==="large",[`${$}-sm`]:N==="small",[`${$}-rtl`]:r==="rtl",[`${$}-borderless`]:!m,[`${$}-in-form-item`]:E},fo($,A),R,S,s,!D&&!L&&l);let K=f__namespace.createElement(X1,Object.assign({ref:a,disabled:G,className:F,upHandler:M,downHandler:O,prefixCls:$,readOnly:g,controls:I},C));if(D){const V=X(`${$}-affix-wrapper`,fo(`${$}-affix-wrapper`,A,P),{[`${$}-affix-wrapper-focused`]:o,[`${$}-affix-wrapper-disabled`]:e.disabled,[`${$}-affix-wrapper-sm`]:N==="small",[`${$}-affix-wrapper-lg`]:N==="large",[`${$}-affix-wrapper-rtl`]:r==="rtl",[`${$}-affix-wrapper-readonly`]:g,[`${$}-affix-wrapper-borderless`]:!m},!L&&s,!L&&l,S);K=f__namespace.createElement("div",{className:V,style:e.style,onMouseUp:()=>a.current.focus()},p&&f__namespace.createElement("span",{className:`${$}-prefix`},p),Sr(K,{style:null,value:e.value,onFocus:q=>{var ne;i(!0),(ne=e.onFocus)===null||ne===void 0||ne.call(e,q);},onBlur:q=>{var ne;i(!1),(ne=e.onBlur)===null||ne===void 0||ne.call(e,q);}}),P&&f__namespace.createElement("span",{className:`${$}-suffix`},T));}if(L){const V=`${$}-group`,q=`${V}-addon`,ne=h?f__namespace.createElement("div",{className:q},h):null,Z=v?f__namespace.createElement("div",{className:q},v):null,Y=X(`${$}-wrapper`,V,S,{[`${V}-rtl`]:r==="rtl"}),te=X(`${$}-group-wrapper`,{[`${$}-group-wrapper-sm`]:N==="small",[`${$}-group-wrapper-lg`]:N==="large",[`${$}-group-wrapper-rtl`]:r==="rtl"},fo(`${$}-group-wrapper`,A,P),S,s,l);K=f__namespace.createElement("div",{className:te,style:e.style},f__namespace.createElement("div",{className:Y},ne&&f__namespace.createElement(Cs,null,f__namespace.createElement(lc,{status:!0,override:!0},ne)),Sr(K,{style:null,disabled:G}),Z&&f__namespace.createElement(Cs,null,f__namespace.createElement(lc,{status:!0,override:!0},Z))));}return w(K)}),Y1=q1,b4=e=>f__namespace.createElement(nv,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(q1,Object.assign({},e)));Y1._InternalPanelDoNotUseOrYouWillBeFired=b4;const rh=Y1,y4=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(rh,{className:X(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},ui=y4,C4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=f.useState(An(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=An(c);n||a(u),r==null||r(u);};return f.createElement(ui,{value:Z5(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},S4=C4,w4=e=>{const{getPrefixCls:t,direction:n}=f.useContext(gt),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[s,l]=Tv(a),c=X(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=f.useContext(Wr),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(Wr.Provider,{value:d},e.children)))},x4=w4;function ki(e){return !!(e.addonBefore||e.addonAfter)}function Od(e){return !!(e.prefix||e.suffix||e.allowClear)}function ts(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function $4(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}function oh(e){return typeof e>"u"||e===null?"":String(e)}var Q1=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,h=t.disabled,v=t.readOnly,p=t.focused,m=t.triggerFocus,g=t.allowClear,b=t.value,y=t.handleReset,C=t.hidden,$=t.classes,w=t.classNames,S=t.dataAttrs,x=t.styles,R=f.useRef(null),M=function(G){var F;(F=R.current)!==null&&F!==void 0&&F.contains(G.target)&&(m==null||m());},O=function(){var G;if(!g)return null;var F=!h&&!v&&b,K="".concat(i,"-clear-icon"),V=tt(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(ne){return ne.preventDefault()},className:X(K,(G={},W(G,"".concat(K,"-hidden"),!F),W(G,"".concat(K,"-has-suffix"),!!s),G)),role:"button",tabIndex:-1},V)},I=f.cloneElement(o,{value:b,hidden:C,className:X((n=o.props)===null||n===void 0?void 0:n.className,!Od(t)&&!ki(t)&&u)||null,style:j(j({},(r=o.props)===null||r===void 0?void 0:r.style),!Od(t)&&!ki(t)?d:{})});if(Od(t)){var P,_="".concat(i,"-affix-wrapper"),E=X(_,(P={},W(P,"".concat(_,"-disabled"),h),W(P,"".concat(_,"-focused"),p),W(P,"".concat(_,"-readonly"),v),W(P,"".concat(_,"-input-with-clear-btn"),s&&g&&b),P),!ki(t)&&u,$==null?void 0:$.affixWrapper),T=(s||g)&&f.createElement("span",{className:X("".concat(i,"-suffix"),w==null?void 0:w.suffix),style:x==null?void 0:x.suffix},O(),s);I=f.createElement("span",pe({className:E,style:ki(t)?void 0:d,hidden:!ki(t)&&C,onClick:M},S==null?void 0:S.affixWrapper,{ref:R}),a&&f.createElement("span",{className:X("".concat(i,"-prefix"),w==null?void 0:w.prefix),style:x==null?void 0:x.prefix},a),f.cloneElement(o,{value:b,hidden:null}),T);}if(ki(t)){var A="".concat(i,"-group"),N="".concat(A,"-addon"),D=X("".concat(i,"-wrapper"),A,$==null?void 0:$.wrapper),L=X("".concat(i,"-group-wrapper"),u,$==null?void 0:$.group);return f.createElement("span",{className:L,style:d,hidden:C},f.createElement("span",{className:D},l&&f.createElement("span",{className:N},l),f.cloneElement(I,{hidden:null}),c&&f.createElement("span",{className:N},c)))}return I},E4=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],O4=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,h=e.className,v=e.maxLength,p=e.suffix,m=e.showCount,g=e.type,b=g===void 0?"text":g,y=e.classes,C=e.classNames,$=e.styles,w=Qe(e,E4),S=qn(e.defaultValue,{value:e.value}),x=U(S,2),R=x[0],M=x[1],O=f.useState(!1),I=U(O,2),P=I[0],_=I[1],E=f.useRef(null),T=function(V){E.current&&$4(E.current,V);};f.useImperativeHandle(t,function(){return {focus:T,blur:function(){var V;(V=E.current)===null||V===void 0||V.blur();},setSelectionRange:function(V,q,ne){var Z;(Z=E.current)===null||Z===void 0||Z.setSelectionRange(V,q,ne);},select:function(){var V;(V=E.current)===null||V===void 0||V.select();},input:E.current}}),f.useEffect(function(){_(function(K){return K&&u?!1:K});},[u]);var A=function(V){e.value===void 0&&M(V.target.value),E.current&&ts(E.current,V,r);},N=function(V){a&&V.key==="Enter"&&a(V),s==null||s(V);},D=function(V){_(!0),o==null||o(V);},L=function(V){_(!1),i==null||i(V);},B=function(V){M(""),T(),E.current&&ts(E.current,V,r);},G=function(){var V=du(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",pe({autoComplete:n},V,{onChange:A,onFocus:D,onBlur:L,onKeyDown:N,className:X(c,W({},"".concat(c,"-disabled"),u),C==null?void 0:C.input),style:$==null?void 0:$.input,ref:E,size:d,type:b}))},F=function(){var V=Number(v)>0;if(p||m){var q=oh(R),ne=me(q).length,Z=tt(m)==="object"?m.formatter({value:q,count:ne,maxLength:v}):"".concat(ne).concat(V?" / ".concat(v):"");return f.createElement(f.Fragment,null,!!m&&f.createElement("span",{className:X("".concat(c,"-show-count-suffix"),W({},"".concat(c,"-show-count-has-suffix"),!!p),C==null?void 0:C.count),style:j({},$==null?void 0:$.count)},Z),p)}return null};return f.createElement(Q1,pe({},w,{prefixCls:c,className:h,inputElement:G(),handleReset:B,value:oh(R),focused:P,triggerFocus:T,suffix:F(),disabled:u,classes:y,classNames:C,styles:$}))});function Z1(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function P4(e){return !!(e.prefix||e.suffix||e.allowClear)}var R4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:h,className:v,rootClassName:p,onChange:m,classNames:g}=e,b=R4(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:y,direction:C,input:$}=f.useContext(gt),w=y("input",n),S=f.useRef(null),[x,R]=Tv(w),{compactSize:M,compactItemClassnames:O}=js(w,C),I=xr(ne=>{var Z;return (Z=M??i)!==null&&Z!==void 0?Z:ne}),P=f.useContext(Ho),_=a??P,{status:E,hasFeedback:T,feedbackIcon:A}=f.useContext(Wr),N=fu(E,o),D=P4(e)||!!T,L=f.useRef(D);f.useEffect(()=>{D&&L.current,L.current=D;},[D]);const B=Z1(S,!0),G=ne=>{B(),s==null||s(ne);},F=ne=>{B(),l==null||l(ne);},K=ne=>{B(),m==null||m(ne);},V=(T||c)&&f.createElement(f.Fragment,null,c,T&&A);let q;return typeof u=="object"&&(u!=null&&u.clearIcon)?q=u:u&&(q={clearIcon:f.createElement(ov,null)}),x(f.createElement(O4,Object.assign({ref:Co(t,S),prefixCls:w,autoComplete:$==null?void 0:$.autoComplete},b,{disabled:_,onBlur:G,onFocus:F,suffix:V,allowClear:q,className:X(v,p,O),onChange:K,addonAfter:d&&f.createElement(Cs,null,f.createElement(lc,{override:!0,status:!0},d)),addonBefore:h&&f.createElement(Cs,null,f.createElement(lc,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign({},g),{input:X({[`${w}-sm`]:I==="small",[`${w}-lg`]:I==="large",[`${w}-rtl`]:C==="rtl",[`${w}-borderless`]:!r},!D&&fo(w,N),g==null?void 0:g.input,R)}),classes:{affixWrapper:X({[`${w}-affix-wrapper-sm`]:I==="small",[`${w}-affix-wrapper-lg`]:I==="large",[`${w}-affix-wrapper-rtl`]:C==="rtl",[`${w}-affix-wrapper-borderless`]:!r},fo(`${w}-affix-wrapper`,N,T),R),wrapper:X({[`${w}-group-rtl`]:C==="rtl"},R),group:X({[`${w}-group-wrapper-sm`]:I==="small",[`${w}-group-wrapper-lg`]:I==="large",[`${w}-group-wrapper-rtl`]:C==="rtl",[`${w}-group-wrapper-disabled`]:_},fo(`${w}-group-wrapper`,N,T),R)}})))}),Lv=M4;var T4={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"};const I4=T4;var N4=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:I4}))};const A4=f__namespace.forwardRef(N4);var D4={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"};const k4=D4;var L4=function(t,n){return f__namespace.createElement(Qn,pe({},t,{ref:n,icon:k4}))};const F4=f__namespace.forwardRef(L4);var z4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?f__namespace.createElement(F4,null):f__namespace.createElement(A4,null),H4={click:"onClick",hover:"onMouseOver"},B4=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=f.useState(()=>r?n.visible:!1),a=f.useRef(null);f__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const s=Z1(a),l=()=>{const{disabled:w}=e;w||(o&&s(),i(S=>{var x;const R=!S;return typeof n=="object"&&((x=n.onVisibleChange)===null||x===void 0||x.call(n,R)),R}));},c=w=>{const{action:S="click",iconRender:x=j4}=e,R=H4[S]||"",M=x(o),O={[R]:l,className:`${w}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault();},onMouseUp:I=>{I.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(M)?M:f__namespace.createElement("span",null,M),O)},{className:u,prefixCls:d,inputPrefixCls:h,size:v}=e,p=z4(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=f__namespace.useContext(gt),g=m("input",h),b=m("input-password",d),y=n&&c(b),C=X(b,u,{[`${b}-${v}`]:!!v}),$=Object.assign(Object.assign({},hi(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:g,suffix:y});return v&&($.size=v),f__namespace.createElement(Lv,Object.assign({ref:Co(t,a)},$))}),W4=B4;var V4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:h,onCompositionStart:v,onCompositionEnd:p}=e,m=V4(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=f__namespace.useContext(gt),y=f__namespace.useRef(!1),C=g("input-search",n),$=g("input",r),{compactSize:w}=js(C,b),S=xr(B=>{var G;return (G=w??i)!==null&&G!==void 0?G:B}),x=f__namespace.useRef(null),R=B=>{B&&B.target&&B.type==="click"&&d&&d(B.target.value,B),h&&h(B);},M=B=>{var G;document.activeElement===((G=x.current)===null||G===void 0?void 0:G.input)&&B.preventDefault();},O=B=>{var G,F;d&&d((F=(G=x.current)===null||G===void 0?void 0:G.input)===null||F===void 0?void 0:F.value,B);},I=B=>{y.current||c||O(B);},P=typeof s=="boolean"?f__namespace.createElement(NC,null):null,_=`${C}-button`;let E;const T=s||{},A=T.type&&T.type.__ANT_BUTTON===!0;A||T.type==="button"?E=Sr(T,Object.assign({onMouseDown:M,onClick:B=>{var G,F;(F=(G=T==null?void 0:T.props)===null||G===void 0?void 0:G.onClick)===null||F===void 0||F.call(G,B),O(B);},key:"enterButton"},A?{className:_,size:S}:{})):E=f__namespace.createElement(In,{className:_,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:M,onClick:O,loading:c,icon:P},s),l&&(E=[E,Sr(l,{key:"addonAfter"})]);const N=X(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${S}`]:!!S,[`${C}-with-button`]:!!s},o),D=B=>{y.current=!0,v==null||v(B);},L=B=>{y.current=!1,p==null||p(B);};return f__namespace.createElement(Lv,Object.assign({ref:Co(x,t),onPressEnter:I},m,{size:S,onCompositionStart:D,onCompositionEnd:L,prefixCls:$,addonAfter:E,suffix:a,onChange:R,className:N,disabled:u}))}),K4=U4;var G4=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,X4=["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"],Pd={},nr;function q4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Pd[n])return Pd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=X4.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Pd[n]=l),l}function Y4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;nr||(nr=document.createElement("textarea"),nr.setAttribute("tab-index","-1"),nr.setAttribute("aria-hidden","true"),document.body.appendChild(nr)),e.getAttribute("wrap")?nr.setAttribute("wrap",e.getAttribute("wrap")):nr.removeAttribute("wrap");var o=q4(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;nr.setAttribute("style","".concat(l,";").concat(G4)),nr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,h=nr.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=i),n!==null||r!==null){nr.value=" ";var v=nr.scrollHeight-i;n!==null&&(c=v*n,s==="border-box"&&(c=c+i+a),h=Math.max(c,h)),r!==null&&(u=v*r,s==="border-box"&&(u=u+i+a),d=h>u?"":"hidden",h=Math.min(u,h));}var p={height:h,overflowY:d,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var Q4=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Rd=0,_d=1,Md=2,Z4=f__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=Qe(n,Q4),v=qn(o,{value:i,postState:function(V){return V??""}}),p=U(v,2),m=p[0],g=p[1],b=function(V){g(V.target.value),d==null||d(V);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=f__namespace.useMemo(function(){return a&&tt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),$=U(C,2),w=$[0],S=$[1],x=!!a,R=function(){try{if(document.activeElement===y.current){var V=y.current,q=V.selectionStart,ne=V.selectionEnd,Z=V.scrollTop;y.current.setSelectionRange(q,ne),y.current.scrollTop=Z;}}catch{}},M=f__namespace.useState(Md),O=U(M,2),I=O[0],P=O[1],_=f__namespace.useState(),E=U(_,2),T=E[0],A=E[1],N=function(){P(Rd);};Sn(function(){x&&N();},[i,w,S,x]),Sn(function(){if(I===Rd)P(_d);else if(I===_d){var K=Y4(y.current,!1,w,S);P(Md),A(K);}else R();},[I]);var D=f__namespace.useRef(),L=function(){Mt.cancel(D.current);},B=function(V){I===Md&&(s==null||s(V),a&&(L(),D.current=Mt(function(){N();})));};f__namespace.useEffect(function(){return L},[]);var G=x?T:null,F=j(j({},c),G);return (I===Rd||I===_d)&&(F.overflowY="hidden",F.overflowX="hidden"),f__namespace.createElement(vo,{onResize:B,disabled:!(a||s)},f__namespace.createElement("textarea",pe({},h,{ref:y,style:F,className:X(r,l,W({},"".concat(r,"-disabled"),u)),disabled:u,value:m,onChange:b})))}),J4=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function J1(e,t){return me(e||"").slice(0,t).join("")}function Zg(e,t,n,r){var o=n;return e?o=J1(n,r):me(t||"").lengthr&&(o=t),o}var ez=f.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,h=e.suffix,v=e.prefixCls,p=v===void 0?"rc-textarea":v,m=e.classes,g=e.showCount,b=e.className,y=e.style,C=e.disabled,$=e.hidden,w=e.classNames,S=e.styles,x=Qe(e,J4),R=qn(r,{value:o,defaultValue:r}),M=U(R,2),O=M[0],I=M[1],P=f.useRef(null),_=f.useState(!1),E=U(_,2),T=E[0],A=E[1],N=f.useState(!1),D=U(N,2),L=D[0],B=D[1],G=f.useRef(),F=f.useRef(0),K=function(){P.current.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:P.current,focus:K,blur:function(){P.current.textArea.blur();}}}),f.useEffect(function(){A(function(ve){return !C&&ve});},[C]);var V=Number(c)>0,q=function(re){B(!0),G.current=O,F.current=re.currentTarget.selectionStart,u==null||u(re);},ne=function(re){B(!1);var he=re.currentTarget.value;if(V){var ue,be=F.current>=c+1||F.current===((ue=G.current)===null||ue===void 0?void 0:ue.length);he=Zg(be,G.current,he,c);}he!==O&&(I(he),ts(re.currentTarget,re,s,he)),d==null||d(re);},Z=function(re){var he=re.target.value;if(!L&&V){var ue=re.target.selectionStart>=c+1||re.target.selectionStart===he.length||!re.target.selectionStart;he=Zg(ue,O,he,c);}I(he),ts(re.currentTarget,re,s,he);},Y=function(re){var he=x.onPressEnter,ue=x.onKeyDown;re.key==="Enter"&&he&&he(re),ue==null||ue(re);},te=function(re){A(!0),i==null||i(re);},ae=function(re){A(!1),a==null||a(re);},le=function(re){I(""),K(),ts(P.current.textArea,re,s);},de=oh(O);!L&&V&&o==null&&(de=J1(de,c));var ee=h,oe;if(g){var ce=me(de).length;tt(g)==="object"?oe=g.formatter({value:de,count:ce,maxLength:c}):oe="".concat(ce).concat(V?" / ".concat(c):""),ee=f.createElement(f.Fragment,null,ee,f.createElement("span",{className:X("".concat(p,"-data-count"),w==null?void 0:w.count),style:S==null?void 0:S.count},oe));}var se=f.createElement(Q1,{value:de,allowClear:l,handleReset:le,suffix:ee,prefixCls:p,classes:{affixWrapper:X(m==null?void 0:m.affixWrapper,(n={},W(n,"".concat(p,"-show-count"),g),W(n,"".concat(p,"-textarea-allow-clear"),l),n))},disabled:C,focused:T,className:b,style:y,dataAttrs:{affixWrapper:{"data-count":typeof oe=="string"?oe:void 0}},hidden:$,inputElement:f.createElement(Z4,pe({},x,{onKeyDown:Y,onChange:Z,onFocus:te,onBlur:ae,onCompositionStart:q,onCompositionEnd:ne,className:w==null?void 0:w.textarea,style:j(j({},S==null?void 0:S.textarea),{},{resize:y==null?void 0:y.resize}),disabled:C,prefixCls:p,ref:P}))});return se}),tz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=tz(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(gt),v=xr(o),p=f__namespace.useContext(Ho),m=i??p,{status:g,hasFeedback:b,feedbackIcon:y}=f__namespace.useContext(Wr),C=fu(g,a),$=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var M;return {resizableTextArea:(M=$.current)===null||M===void 0?void 0:M.resizableTextArea,focus:O=>{var I,P;_4((P=(I=$.current)===null||I===void 0?void 0:I.resizableTextArea)===null||P===void 0?void 0:P.textArea,O);},blur:()=>{var O;return (O=$.current)===null||O===void 0?void 0:O.blur()}}});const w=d("input",n);let S;typeof s=="object"&&(s!=null&&s.clearIcon)?S=s:s&&(S={clearIcon:f__namespace.createElement(ov,null)});const[x,R]=Tv(w);return x(f__namespace.createElement(ez,Object.assign({},u,{disabled:m,allowClear:S,classes:{affixWrapper:X(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:h==="rtl",[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:v==="small",[`${w}-affix-wrapper-lg`]:v==="large",[`${w}-textarea-show-count`]:l},fo(`${w}-affix-wrapper`,C),R)},classNames:Object.assign(Object.assign({},c),{textarea:X({[`${w}-borderless`]:!r,[`${w}-sm`]:v==="small",[`${w}-lg`]:v==="large"},fo(w,C),R,c==null?void 0:c.textarea)}),prefixCls:w,suffix:b&&f__namespace.createElement("span",{className:`${w}-textarea-suffix`},y),showCount:l,ref:$})))}),rz=nz,Ks=Lv;Ks.Group=x4;Ks.Search=K4;Ks.TextArea=rz;Ks.Password=W4;const oz=Ks,iz=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Jg=e=>iz.test(`#${e}`),az=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const l=n==null?void 0:n.toHex();Jg(l)&&n&&a(Dl(l));},[n]);const s=l=>{const c=l.target.value;a(Dl(c)),Jg(Dl(c,!0))&&(r==null||r(An(c)));};return f.createElement(oz,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:s,size:"small"})},sz=az,lz=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=f.useState(An(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=An(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(ui,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>li(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(ui,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${li(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(ui,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${li(l||0)}%`,onChange:l=>s(Number(l),"b")}))},cz=lz,uz=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=f.useState(An(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const d=An(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(ui,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(ui,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(ui,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},dz=uz,fz=[ao.hex,ao.hsb,ao.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),hz=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:o,onChange:i}=e,[a,s]=So(ao.hex,{value:n,onChange:o}),l=`${t}-input`,c=d=>{s(d);},u=f.useMemo(()=>{const d={value:r,prefixCls:t,onChange:i};switch(a){case ao.hsb:return f.createElement(cz,Object.assign({},d));case ao.rgb:return f.createElement(dz,Object.assign({},d));case ao.hex:default:return f.createElement(sz,Object.assign({},d))}},[a,t,r,i]);return f.createElement("div",{className:`${l}-container`},f.createElement(Rk,{value:a,bordered:!1,getPopupContainer:d=>d,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:fz}),f.createElement("div",{className:l},u),f.createElement(S4,{prefixCls:t,value:r,onChange:i}))},vz=hz,{Panel:pz}=z1,Td=e=>e.map(t=>(t.colors=t.colors.map(An),t)),mz=e=>{const{r:t,g:n,b:r,a:o}=e.toRgb();return o<=.5?!0:t*.299+n*.587+r*.114>192},gz=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Qh("ColorPicker"),[a]=So(Td(n),{value:Td(n),postState:Td}),s=`${t}-presets`,l=f.useMemo(()=>a.map(u=>`panel-${u.label}`),[a]),c=u=>{o==null||o(u);};return f.createElement("div",{className:s},f.createElement(z1,{defaultActiveKey:l,ghost:!0},a.map(u=>{var d;return f.createElement(pz,{header:f.createElement("div",{className:`${s}-label`},u==null?void 0:u.label),key:`panel-${u==null?void 0:u.label}`},f.createElement("div",{className:`${s}-items`},Array.isArray(u==null?void 0:u.colors)&&((d=u.colors)===null||d===void 0?void 0:d.length)>0?u.colors.map(h=>f.createElement(Av,{key:`preset-${h.toHexString()}`,color:An(h).toRgbString(),prefixCls:t,className:X(`${s}-color`,{[`${s}-color-checked`]:h.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:mz(h)}),onClick:()=>c(h)})):f.createElement("span",{className:`${s}-empty`},i.presetEmpty)))})))},bz=gz;var yz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,allowClear:n,presets:r,onChange:o,onClear:i,color:a}=e,s=yz(e,["prefixCls","allowClear","presets","onChange","onClear","color"]),l=`${t}-inner-panel`,c=u=>f.createElement("div",{className:l},n&&f.createElement(K1,Object.assign({prefixCls:t,value:a,onChange:d=>{o==null||o(d),i==null||i(!0);}},s)),u,f.createElement(vz,Object.assign({value:a,onChange:o,prefixCls:t},s)),Array.isArray(r)&&f.createElement(f.Fragment,null,f.createElement(Y5,{className:`${l}-divider`}),f.createElement(bz,{value:a,presets:r,prefixCls:t,onChange:o})));return f.createElement(U5,{prefixCls:t,value:a==null?void 0:a.toHsb(),onChange:o,panelRender:c})},Sz=Cz;var wz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,className:s}=e,l=wz(e,["color","prefixCls","open","colorCleared","disabled","className"]),c=`${r}-trigger`,u=f.useMemo(()=>i?f.createElement(K1,{prefixCls:r}):f.createElement(Av,{prefixCls:r,color:n.toRgbString()}),[n,i,r]);return f.createElement("div",Object.assign({ref:t,className:X(c,s,{[`${c}-active`]:o,[`${c}-disabled`]:a})},l),u)}),$z=xz;function eb(e){return e!==void 0}const Ez=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=f.useState(()=>{let a;return eb(r)?a=r:eb(n)?a=n:a=e,An(a||"")});return f.useEffect(()=>{r&&i(An(r));},[r]),[o,i]},Oz=Ez,tb="#EEE",eS=e=>({backgroundImage:`conic-gradient(${tb} 0 25%, transparent 0 50%, ${tb} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Pz=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},eS("50%")),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},tS=Pz,Rz=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:v,lineWidth:p}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:v}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${i}px`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+a,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,lineHeight:`${l-2*p}px`},[`${n}-input-prefix`]:{color:h}}}}}},_z=Rz,Mz=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d,colorPickerPreviewSize:h}=e;return Object.assign({[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":eS(`${d}px`),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}},tS(e,h))},Tz=Mz,Iz=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:h,colorTextTertiary:v,marginXXS:p,paddingXS:m}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${m}px 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:p*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:i+4*c,height:i+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:i/13*5,height:i/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:v}}}}},"&-empty":{fontSize:a,color:r}}}},Nz=Iz,Az=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),nb=(e,t)=>{const{componentCls:n,borderRadiusSM:r,lineWidth:o,colorSplit:i,red6:a}=e;return {[`${n}-clear`]:{width:t,height:t,borderRadius:r,border:`${o}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden","&::after":{content:'""',position:"absolute",insetInlineEnd:o,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:a}}}},Dz=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorBgContainerDisabled:s,borderRadius:l,marginXS:c,marginSM:u,controlHeight:d,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:p,lineWidth:m,colorBorder:g}=e;return [{[t]:{[`${t}-panel`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,[`${t}-inner-panel`]:{[`${t}-clear`]:{marginInlineStart:"auto",marginBottom:c},"&-divider":{margin:`${u}px 0 ${c}px`}}},Tz(e)),_z(e)),Nz(e)),nb(e,p)),"&-trigger":Object.assign(Object.assign({width:d,height:d,borderRadius:l,border:`${m}px solid ${g}`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,"&-active":Object.assign(Object.assign({},Az(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:v}}},nb(e,h)),tS(e,h))}}]},kz=pn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=Ft(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:r*2+n});return [Dz(o)]}),Fv=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:s="click",open:l,disabled:c,placement:u="bottomLeft",arrow:d=!0,style:h,className:v,rootClassName:p,styles:m,onFormatChange:g,onChange:b,onOpenChange:y,getPopupContainer:C,autoAdjustOverflow:$=!0}=e,{getPrefixCls:w,direction:S}=f.useContext(gt),{token:x}=hc.useToken(),[R,M]=Oz(x.colorPrimary,{value:t,defaultValue:n}),[O,I]=So(!1,{value:l,postState:K=>!c&&K,onChange:y}),[P,_]=f.useState(!1),E=w("color-picker",Q5),[T,A]=kz(E),N=X(p,{[`${E}-rtl`]:S}),D=X(N,v,A),L=(K,V)=>{let q=An(K);if(P){_(!1);const ne=q.toHsb();R.toHsb().a===0&&V!=="alpha"&&(ne.a=1,q=An(ne));}t||M(q),b==null||b(q,q.toHexString());},B=K=>{_(K);},G={open:O,trigger:s,placement:u,arrow:d,rootClassName:p,getPopupContainer:C,autoAdjustOverflow:$},F={prefixCls:E,color:R,allowClear:o,colorCleared:P,disabled:c,presets:i,format:r,onFormatChange:g};return f.useEffect(()=>{P&&I(!1);},[P]),T(f.createElement(UC,Object.assign({style:m==null?void 0:m.popup,onOpenChange:I,content:f.createElement(Sz,Object.assign({},F,{onChange:L,onClear:B})),overlayClassName:E},G),a||f.createElement($z,{open:O,className:D,style:h,color:R,prefixCls:E,disabled:c,colorCleared:P})))},Lz=fC(Fv,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Fv._InternalPanelDoNotUseOrYouWillBeFired=Lz;const Fz=Fv,zz=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:i,marginXXS:a,marginXS:s,fontSize:l,fontWeightStrong:c}=e;return {[t]:{zIndex:r,color:o,[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:l,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:c,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:a}},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:s}}}}},nS=pn("Popconfirm",e=>zz(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var jz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=f__namespace.createElement(Uy,null),showCancel:u=!0,close:d,onConfirm:h,onCancel:v,onPopupClick:p}=e,{getPrefixCls:m}=f__namespace.useContext(gt),[g]=Qh("Popconfirm",ua.Popconfirm),b=da(o),y=da(i);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:p},f__namespace.createElement("div",{className:`${t}-message`},c&&f__namespace.createElement("span",{className:`${t}-message-icon`},c),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:X(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(In,Object.assign({onClick:v,size:"small"},r),a??(g==null?void 0:g.cancelText)),f__namespace.createElement(PN,{buttonProps:Object.assign(Object.assign({size:"small"},oC(l)),n),actionFn:h,close:d,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(g==null?void 0:g.okText))))};function Hz(e){const{prefixCls:t,placement:n,className:r,style:o}=e,i=jz(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f__namespace.useContext(gt),s=a("popconfirm",t),[l]=nS(s);return l(f__namespace.createElement(WC,{placement:n,className:X(s,r),style:o,content:f__namespace.createElement(rS,Object.assign({prefixCls:s},i))}))}var Bz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=f__namespace.createElement(Uy,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=Bz(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=f__namespace.useContext(gt),[v,p]=So(!1,{value:e.open,defaultValue:e.defaultOpen}),m=(R,M)=>{p(R,!0),u==null||u(R),c==null||c(R,M);},g=R=>{m(!1,R);},b=R=>{var M;return (M=e.onConfirm)===null||M===void 0?void 0:M.call(globalThis,R)},y=R=>{var M;m(!1,R),(M=e.onCancel)===null||M===void 0||M.call(globalThis,R);},C=R=>{R.keyCode===Xe.ESC&&v&&m(!1,R);},$=R=>{const{disabled:M=!1}=e;M||m(R);},w=h("popconfirm",n),S=X(w,l),[x]=nS(w);return x(f__namespace.createElement(UC,Object.assign({},hi(d,["title"]),{trigger:o,placement:r,onOpenChange:$,open:v,ref:t,overlayClassName:S,content:f__namespace.createElement(rS,Object.assign({okType:i,icon:a},e,{prefixCls:w,close:g,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),Sr(s,{onKeyDown:R=>{var M,O;f__namespace.isValidElement(s)&&((O=s==null?void 0:(M=s.props).onKeyDown)===null||O===void 0||O.call(M,R)),C(R);}})))});oS._InternalPanelDoNotUseOrYouWillBeFired=Hz;const Wz=oS;var yi=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function ih(e,t,n){return (e-t)/(n-t)}function zv(e,t,n,r){var o=ih(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function Bi(e,t){return Array.isArray(e)?e[t]:e}var Vz=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Uz=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,h=Qe(e,Vz),v=f__namespace.useContext(yi),p=v.min,m=v.max,g=v.direction,b=v.disabled,y=v.keyboard,C=v.range,$=v.tabIndex,w=v.ariaLabelForHandle,S=v.ariaLabelledByForHandle,x=v.ariaValueTextFormatterForHandle,R="".concat(o,"-handle"),M=function(E){b||s(E,a);},O=function(E){if(!b&&y){var T=null;switch(E.which||E.keyCode){case J.LEFT:T=g==="ltr"||g==="btt"?-1:1;break;case J.RIGHT:T=g==="ltr"||g==="btt"?1:-1;break;case J.UP:T=g!=="ttb"?1:-1;break;case J.DOWN:T=g!=="ttb"?-1:1;break;case J.HOME:T="min";break;case J.END:T="max";break;case J.PAGE_UP:T=2;break;case J.PAGE_DOWN:T=-2;break}T!==null&&(E.preventDefault(),d(T,a));}},I=zv(g,i,p,m),P=f__namespace.createElement("div",pe({ref:t,className:X(R,(n={},W(n,"".concat(R,"-").concat(a+1),C),W(n,"".concat(R,"-dragging"),u),n)),style:j(j({},I),l),onMouseDown:M,onTouchStart:M,onKeyDown:O,tabIndex:b?null:Bi($,a),role:"slider","aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":i,"aria-disabled":b,"aria-label":Bi(w,a),"aria-labelledby":Bi(S,a),"aria-valuetext":(r=Bi(x,a))===null||r===void 0?void 0:r(i)},h));return c&&(P=c(P,{index:a,prefixCls:o,value:i,dragging:u})),P}),Kz=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Gz=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Qe(e,Kz),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(h){var v;(v=u.current[h])===null||v===void 0||v.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(d,h){return f__namespace.createElement(Uz,pe({ref:function(p){p?u.current[h]=p:delete u.current[h];},dragging:l===h,prefixCls:n,style:Bi(r,h),key:h,value:d,valueIndex:h,onStartMove:o,onOffsetChange:i,render:s},c))}))});function rb(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function Xz(e,t,n,r,o,i,a,s,l){var c=f__namespace.useState(null),u=U(c,2),d=u[0],h=u[1],v=f__namespace.useState(-1),p=U(v,2),m=p[0],g=p[1],b=f__namespace.useState(n),y=U(b,2),C=y[0],$=y[1],w=f__namespace.useState(n),S=U(w,2),x=S[0],R=S[1],M=f__namespace.useRef(null),O=f__namespace.useRef(null);f__namespace.useEffect(function(){m===-1&&$(n);},[n,m]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",M.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",M.current),document.removeEventListener("touchend",O.current);}},[]);var I=function(N,D){C.some(function(L,B){return L!==N[B]})&&(D!==void 0&&h(D),$(N),a(N));},P=function(N,D){if(N===-1){var L=x[0],B=x[x.length-1],G=r-L,F=o-B,K=D*(o-r);K=Math.max(K,G),K=Math.min(K,F);var V=i(L+K);K=V-L;var q=x.map(function(te){return te+K});I(q);}else {var ne=(o-r)*D,Z=me(C);Z[N]=x[N];var Y=l(Z,ne,N,"dist");I(Y.values,Y.value);}},_=f__namespace.useRef(P);_.current=P;var E=function(N,D){N.stopPropagation();var L=n[D];g(D),h(L),R(n);var B=rb(N),G=B.pageX,F=B.pageY,K=function(ne){ne.preventDefault();var Z=rb(ne),Y=Z.pageX,te=Z.pageY,ae=Y-G,le=te-F,de=e.current.getBoundingClientRect(),ee=de.width,oe=de.height,ce;switch(t){case"btt":ce=-le/oe;break;case"ttb":ce=le/oe;break;case"rtl":ce=-ae/ee;break;default:ce=ae/ee;}_.current(D,ce);},V=function q(ne){ne.preventDefault(),document.removeEventListener("mouseup",q),document.removeEventListener("mousemove",K),document.removeEventListener("touchend",q),document.removeEventListener("touchmove",K),M.current=null,O.current=null,g(-1),s();};document.addEventListener("mouseup",V),document.addEventListener("mousemove",K),document.addEventListener("touchend",V),document.addEventListener("touchmove",K),M.current=K,O.current=V;},T=f__namespace.useMemo(function(){var A=me(n).sort(function(D,L){return D-L}),N=me(C).sort(function(D,L){return D-L});return A.every(function(D,L){return D===N[L]})?C:n},[n,C]);return [m,d,T,E]}function qz(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=f__namespace.useContext(yi),l=s.direction,c=s.min,u=s.max,d=s.disabled,h=s.range,v="".concat(t,"-track"),p=ih(r,c,u),m=ih(o,c,u),g=function(C){!d&&a&&a(C,-1);},b={};switch(l){case"rtl":b.right="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");break;case"btt":b.bottom="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;case"ttb":b.top="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;default:b.left="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");}return f__namespace.createElement("div",{className:X(v,h&&"".concat(v,"-").concat(i+1)),style:j(j({},b),n),onMouseDown:g,onTouchStart:g})}function Yz(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=f__namespace.useContext(yi),s=a.included,l=a.range,c=a.min,u=f__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var d=o??c,h=r[0];return [{start:Math.min(d,h),end:Math.max(d,h)}]}for(var v=[],p=0;p3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var y,C=p[g],$=C+m,w=[];r.forEach(function(O){w.push(O.value);}),w.push(e,t),w.push(s(C));var S=m>0?1:-1;b==="unit"?w.push(s(C+S*n)):w.push(s($)),w=w.filter(function(O){return O!==null}).filter(function(O){return m<0?O<=C:O>=C}),b==="unit"&&(w=w.filter(function(O){return O!==C}));var x=b==="unit"?C:$;y=w[0];var R=Math.abs(y-x);if(w.forEach(function(O){var I=Math.abs(O-x);I1){var M=me(p);return M[g]=y,v(M,m-S,g,b)}return y}else {if(m==="min")return e;if(m==="max")return t}},u=function(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[g],C=c(p,m,g,b);return {value:C,changed:C!==y}},d=function(p){return i===null&&p===0||typeof i=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(l),C=y[g],$=c(y,m,g,b);if(y[g]=$,o===!1){var w=i||0;g>0&&y[g-1]!==C&&(y[g]=Math.max(y[g],y[g-1]+w)),g0;M-=1)for(var O=!0;d(y[M]-y[M-1])&&O;){var I=u(y,-1,M-1);y[M-1]=I.value,O=I.changed;}for(var P=y.length-1;P>0;P-=1)for(var _=!0;d(y[P]-y[P-1])&&_;){var E=u(y,-1,P-1);y[P-1]=E.value,_=E.changed;}for(var T=0;T=0?E:!1},[E,he]),be=f__namespace.useMemo(function(){var De=Object.keys(ne||{});return De.map(function(Ge){var _e=ne[Ge],xt={value:Number(Ge)};return _e&&tt(_e)==="object"&&!f__namespace.isValidElement(_e)&&("label"in _e||"style"in _e)?(xt.style=_e.style,xt.label=_e.label):xt.label=_e,xt}).filter(function(Ge){var _e=Ge.label;return _e||typeof _e=="number"}).sort(function(Ge,_e){return Ge.value-_e.value})},[ne]),We=tj(ve,re,he,be,P,ue),ct=U(We,2),et=ct[0],ze=ct[1],qe=qn(w,{value:$}),ke=U(qe,2),Ie=ke[0],Le=ke[1],Pe=f__namespace.useMemo(function(){var De=Ie==null?[]:Array.isArray(Ie)?Ie:[Ie],Ge=U(De,1),_e=Ge[0],xt=_e===void 0?ve:_e,yt=Ie===null?[]:[xt];if(S){if(yt=me(De),x||Ie===void 0){var Yt=x>=0?x+1:2;for(yt=yt.slice(0,Yt);yt.length=0&&oe.current.focus(De);}$e(null);},[pt]);var je=f__namespace.useMemo(function(){return T&&he===null?!1:T},[T,he]),Re=function(){O==null||O(vt(Ne.current));},nt=Xz(ce,se,Pe,ve,re,et,st,Re,ze),$t=U(nt,4),zt=$t[0],kt=$t[1],Ae=$t[2],fe=$t[3],ie=function(Ge,_e){fe(Ge,_e),M==null||M(vt(Ne.current));},Se=zt!==-1;f__namespace.useEffect(function(){if(!Se){var De=Pe.lastIndexOf(kt);oe.current.focus(De);}},[Se]);var xe=f__namespace.useMemo(function(){return me(Ae).sort(function(De,Ge){return De-Ge})},[Ae]),Je=f__namespace.useMemo(function(){return S?[xe[0],xe[xe.length-1]]:[ve,xe[0]]},[xe,S,ve]),mt=U(Je,2),wt=mt[0],Xt=mt[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){oe.current.focus(0);},blur:function(){var Ge=document,_e=Ge.activeElement;ce.current.contains(_e)&&(_e==null||_e.blur());}}}),f__namespace.useEffect(function(){d&&oe.current.focus(0);},[]);var Vt=f__namespace.useMemo(function(){return {min:ve,max:re,direction:se,disabled:l,keyboard:u,step:he,included:L,includedStart:wt,includedEnd:Xt,range:S,tabIndex:ae,ariaLabelForHandle:le,ariaLabelledByForHandle:de,ariaValueTextFormatterForHandle:ee}},[ve,re,se,l,u,he,L,wt,Xt,S,ae,le,de,ee]);return f__namespace.createElement(yi.Provider,{value:Vt},f__namespace.createElement("div",{ref:ce,className:X(o,i,(n={},W(n,"".concat(o,"-disabled"),l),W(n,"".concat(o,"-vertical"),N),W(n,"".concat(o,"-horizontal"),!N),W(n,"".concat(o,"-with-marks"),be.length),n)),style:a,onMouseDown:we},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:K}),f__namespace.createElement(Yz,{prefixCls:o,style:G,values:xe,startPoint:B,onStartMove:je?ie:null}),f__namespace.createElement(ej,{prefixCls:o,marks:be,dots:Z,style:V,activeStyle:q}),f__namespace.createElement(Gz,{ref:oe,prefixCls:o,style:F,values:Ae,draggingIndex:zt,onStartMove:ie,onOffsetChange:Ee,onFocus:h,onBlur:v,handleRender:Y}),f__namespace.createElement(Zz,{prefixCls:o,marks:be,onClick:ge})))});const rj=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function i(){gs.cancel(o.current),o.current=null;}function a(){o.current=gs(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),f__namespace.createElement(hu,Object.assign({ref:Co(r,t)},e))}),oj=rj,ij=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:i,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",height:n,margin:`${i}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${o}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, height ${e.motionDurationMid}, box-shadow ${e.motionDurationMid} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new en(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}}})}},iS=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return {[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:o,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},aj=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},iS(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},sj=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},iS(e,!1)),{height:"100%"})}},lj=pn("Slider",e=>{const t=Ft(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [ij(t),aj(t),sj(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i}});var cj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);otypeof e=="number"?e.toString():"",dj=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:u}=e,d=cj(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:h,direction:v,getPopupContainer:p}=f.useContext(gt),[m,g]=f.useState({}),b=(O,I)=>{g(P=>Object.assign(Object.assign({},P),{[O]:I}));},y=(O,I)=>O||(I?v==="rtl"?"left":"right":"top"),C=h("slider",n),[$,w]=lj(C),S=X(o,i,{[`${C}-rtl`]:v==="rtl"},w);v==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[x,R]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),M=(O,I)=>{var P;const{index:_,dragging:E}=I,{tooltip:T={},vertical:A}=e,N=Object.assign({},T),{open:D,placement:L,getPopupContainer:B,prefixCls:G,formatter:F}=N;let K;F||F===null?K=F:s||s===null?K=s:K=uj;const V=K?m[_]||E:!1,q=(P=D??l)!==null&&P!==void 0?P:D===void 0&&V,ne=Object.assign(Object.assign({},O.props),{onMouseEnter:()=>b(_,!0),onMouseLeave:()=>b(_,!1)}),Z=h("tooltip",G??a);return f.createElement(oj,{prefixCls:Z,title:K?K(I.value):"",open:q,placement:y(L??u,A),key:_,overlayClassName:`${C}-tooltip`,getPopupContainer:B||c||p},f.cloneElement(O,ne))};return $(f.createElement(nj,Object.assign({},d,{step:d.step,range:x,draggableTrack:R,className:S,ref:t,prefixCls:C,handleRender:M})))}),fj=dj;function hj(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const xl=(e,t,n)=>{const r=hj(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`]}}},vj=e=>yy(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),pj=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},Zt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},aS=pn("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:o}=e,i=Math.round(t*n),a=e.fontSizeSM,s=i-r*2,l=e.colorFillQuaternary,c=e.colorText,u=Ft(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:o-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [pj(u),vj(u),xl(u,"success","Success"),xl(u,"processing","Info"),xl(u,"error","Error"),xl(u,"warning","Warning")]});var mj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=mj(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(gt),l=v=>{o==null||o(!r),i==null||i(v);},c=s("tag",t),[u,d]=aS(c),h=X(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:r},n,d);return u(f__namespace.createElement("span",Object.assign({},a,{className:h,onClick:l})))},bj=gj;var yj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d=!1,bordered:h=!0}=e,v=yj(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:p,direction:m}=f__namespace.useContext(gt),[g,b]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in v&&b(v.visible);},[v.visible]);const y=zC(l)||Xk(l),C=Object.assign({backgroundColor:l&&!y?l:void 0},i),$=p("tag",n),[w,S]=aS($),x=X($,{[`${$}-${l}`]:y,[`${$}-has-color`]:l&&!y,[`${$}-hidden`]:!g,[`${$}-rtl`]:m==="rtl",[`${$}-borderless`]:!h},r,o,S),R=E=>{E.stopPropagation(),c==null||c(E),!E.defaultPrevented&&b(!1);},M=f__namespace.useMemo(()=>d?u?f__namespace.createElement("span",{className:`${$}-close-icon`,onClick:R},u):f__namespace.createElement(iv,{className:`${$}-close-icon`,onClick:R}):null,[d,u,$,R]),O=typeof v.onClick=="function"||a&&a.type==="a",I=s||null,P=I?f__namespace.createElement(f__namespace.Fragment,null,I,f__namespace.createElement("span",null,a)):a,_=f__namespace.createElement("span",Object.assign({},v,{ref:t,className:x,style:C}),P,M);return w(O?f__namespace.createElement(Qy,null,_):_)},sS=f__namespace.forwardRef(Cj);sS.CheckableTag=bj;const Da=sS;var xu={},lS={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})(lS);var jv=lS.exports,$u={};Object.defineProperty($u,"__esModule",{value:!0});$u.default=void 0;var Sj={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};$u.default=Sj;var Eu={},Gs={},Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=void 0;var wj={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},xj=wj;Ou.default=xj;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=void 0;const $j={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var Ej=$j;Xs.default=Ej;var cS=jv.default;Object.defineProperty(Gs,"__esModule",{value:!0});Gs.default=void 0;var Oj=cS(Ou),Pj=cS(Xs);const uS={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Oj.default),timePickerLocale:Object.assign({},Pj.default)};uS.lang.ok="确定";var Rj=uS;Gs.default=Rj;var _j=jv.default;Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=void 0;var Mj=_j(Gs),Tj=Mj.default;Eu.default=Tj;var Pu=jv.default;Object.defineProperty(xu,"__esModule",{value:!0});xu.default=void 0;var Ij=Pu($u),Nj=Pu(Eu),Aj=Pu(Gs),Dj=Pu(Xs);const jn="${label}不是一个有效的${type}",kj={locale:"zh-cn",Pagination:Ij.default,DatePicker:Aj.default,TimePicker:Dj.default,Calendar:Nj.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:jn,method:jn,array:jn,object:jn,number:jn,date:jn,boolean:jn,integer:jn,float:jn,regexp:jn,email:jn,url:jn,hex:jn},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var Lj=kj;xu.default=Lj;var Fj=xu;const zj=Vr(Fj);var Hv={},kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.DEFAULT_ICON_CONFIGS=void 0;kn.IconConverter=hS;kn.IconProvider=void 0;kn.IconWrapper=Gj;var Ll=jj(f);function dS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return (dS=function(r){return r?n:t})(e)}function jj(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var n=dS(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i];}return r.default=e,n&&n.set(e,r),r}var Hj=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function ib(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Vj(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var fS={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};kn.DEFAULT_ICON_CONFIGS=fS;function Uj(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function hS(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||n.theme;switch(i){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var vS=(0, Ll.createContext)(fS),Kj=vS.Provider;kn.IconProvider=Kj;function Gj(e,t,n){return function(r){var o=r.size,i=r.strokeWidth,a=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,h=Wj(r,Hj),v=(0, Ll.useContext)(vS),p=(0, Ll.useMemo)(Uj,[]),m=hS(p,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},v),g=[v.prefix+"-icon"];return g.push(v.prefix+"-icon-"+e),t&&v.rtl&&g.push(v.prefix+"-icon-rtl"),d&&g.push(v.prefix+"-icon-spin"),u&&g.push(u),Ll.default.createElement("span",ib(ib({},h),{},{className:g.join(" ")}),n(m))}}Object.defineProperty(Hv,"__esModule",{value:!0});var pS=Hv.default=void 0,Id=qj(f),Xj=kn;function qj(e){return e&&e.__esModule?e:{default:e}}var Yj=(0, Xj.IconWrapper)("close",!1,function(e){return Id.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Id.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Id.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});pS=Hv.default=Yj;var Bv={};Object.defineProperty(Bv,"__esModule",{value:!0});var mS=Bv.default=void 0,Nd=Zj(f),Qj=kn;function Zj(e){return e&&e.__esModule?e:{default:e}}var Jj=(0, Qj.IconWrapper)("config",!1,function(e){return Nd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Nd.default.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Nd.default.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))});mS=Bv.default=Jj;var Wv={};Object.defineProperty(Wv,"__esModule",{value:!0});var gS=Wv.default=void 0,ka=t6(f),e6=kn;function t6(e){return e&&e.__esModule?e:{default:e}}var n6=(0, e6.IconWrapper)("distraught-face",!1,function(e){return ka.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},ka.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),ka.default.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ka.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ka.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});gS=Wv.default=n6;var Vv={};Object.defineProperty(Vv,"__esModule",{value:!0});var bS=Vv.default=void 0,La=o6(f),r6=kn;function o6(e){return e&&e.__esModule?e:{default:e}}var i6=(0, r6.IconWrapper)("info",!0,function(e){return La.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},La.default.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),La.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),La.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),La.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});bS=Vv.default=i6;var Uv={};Object.defineProperty(Uv,"__esModule",{value:!0});var yS=Uv.default=void 0,Ad=s6(f),a6=kn;function s6(e){return e&&e.__esModule?e:{default:e}}var l6=(0, a6.IconWrapper)("loading",!0,function(e){return Ad.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Ad.default.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ad.default.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});yS=Uv.default=l6;var Kv={};Object.defineProperty(Kv,"__esModule",{value:!0});var CS=Kv.default=void 0,Pr=u6(f),c6=kn;function u6(e){return e&&e.__esModule?e:{default:e}}var d6=(0, c6.IconWrapper)("loading-three",!1,function(e){return Pr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Pr.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pr.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pr.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pr.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pr.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pr.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pr.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pr.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pr.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});CS=Kv.default=d6;var Gv={};Object.defineProperty(Gv,"__esModule",{value:!0});var SS=Gv.default=void 0,Dd=h6(f),f6=kn;function h6(e){return e&&e.__esModule?e:{default:e}}var v6=(0, f6.IconWrapper)("return",!0,function(e){return Dd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Dd.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Dd.default.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});SS=Gv.default=v6;const p6={Close:pS,Config:mS,DistraughtFace:gS,Return:SS,Loading:yS,LoadingThree:CS,Info:bS};function go({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24);const i=Gc();r||(r=i?"#fff":"#333");const a=p6[e];return H(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}function or({configKey:e,label:t,className:n,extraAction:r,tooltip:o}){const a=!!yr()[e],s=f.useCallback(c=>{const u=c.target.checked;aa({[e]:u}),r==null||r(u);},[]);let l=t||e;return o&&(l=H(hu,{title:o,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),H(w5,{className:n,checked:a,onChange:s,children:l})}var m6={name:"1qkltea",styles:"margin-left:5px"};const g6=function(){const e=m6;return Ce(sn,{children:[H(or,{configKey:"initialShowMore",label:"自动查看更多",css:e}),H(or,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function b6({tooltip:e,iconProps:t}){return H(sn,{children:e&&H(OS,{title:e,children:H(go,{...t,name:"Info",style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}function ar(){for(var e=arguments.length,t=new Array(e),n=0;nn.trim()).filter(Boolean).map(n=>{const[r,o]=n.split(" ").filter(Boolean);return {id:e+":"+o,name:o,colorPrimary:r}})}const wS="UP长期洗涤",S6=C6(wS,` #0545b2 理想之蓝 #f4cd00 柠檬黄 #ef2729 石榴红 #f89c00 鹿箭 #233728 黛绿 #f2b9b7 和熙粉 #f3cc91 芝士黄 #6b4c68 葡萄紫 #ff7227 落日橙 #004d62 碧海天 #23909b 洗碧空 #aeb400 芥丝绿 #425a17 箬叶青 #002FA7 克莱因蓝 #003153 普鲁士蓝 #01847F 马尔斯绿 #FBD26A 申布伦黄 #470024 勃艮第红 #492D22 凡戴克棕 `),xS=[{name:"App",themes:[fa,{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500FF"},Xv]},{name:"LX Themes",themes:y6,tooltip:Ce(sn,{children:["提取自"," ",H("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),H("br",{}),"Apache License 2.0"]})},{name:wS,themes:S6,tooltip:Ce(sn,{children:["提取自"," ",H("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",H("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],$S=xS.map(e=>e.themes).flat();function w6(){const e=$S.find(t=>t.id===(bt.theme||fa.id))||fa;return e.id===Xv.id&&bt.colorPickerThemeSelectedColor&&(e.colorPrimary=bt.colorPickerThemeSelectedColor),e}function Sa(){let{theme:e,colorPickerThemeSelectedColor:t}=yr();return e||(e=fa.id),f.useMemo(()=>{const n=$S.find(r=>r.id===e)||fa;return n.id===Xv.id&&t&&(n.colorPrimary=t),n},[e,t])}var x6={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},$6={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},E6={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function O6(){const e=Sa().id,{colorPickerThemeSelectedColor:t}=yr(),[n,r]=f.useState(t||fa.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return H("div",{children:xS.map(({name:i,themes:a,tooltip:s})=>Ce(f.Fragment,{children:[Ce("div",{css:E6,children:[i,H(b6,{tooltip:s,iconProps:{size:22}})]}),H("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(l=>{const c=e===l.id,u=l.isCustom,d=H("div",{className:"preview",css:ar("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let h=H("div",{className:"preview-wrapper",css:[$6,c&&ar("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(h=H(Fz,{value:n,onChange:v=>r(v),onOpenChange:v=>{v||aa({colorPickerThemeSelectedColor:o});},children:h})),Ce("div",{css:x6,onClick:v=>{aa({theme:l.id});},children:[h,l.name]},l.id)})})]},i))})}function ES({children:e}){const t=Gc(),{colorPrimary:n}=Sa();return H(nv,{locale:zj,theme:{algorithm:t?hc.darkAlgorithm:hc.defaultAlgorithm,token:{colorPrimary:n,zIndexPopupBase:11e3}},children:e})}function OS(e){return H(hu,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var qv={exports:{}};const P6=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),ab=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},sb=({clearTimeout:e,setTimeout:t,willResolve:n})=>(r,{value:o,signal:i}={})=>{if(i&&i.aborted)return Promise.reject(ab());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(ab());},d=()=>{i&&i.removeEventListener("abort",u);},h=new Promise((v,p)=>{s=()=>{d(),n?v(o):p(o);},l=p,a=(t||setTimeout)(s,r);});return i&&i.addEventListener("abort",u,{once:!0}),h.clear=()=>{c(a),a=null,s();},h},PS=e=>{const t=sb({...e,willResolve:!0});return t.reject=sb({...e,willResolve:!1}),t.range=(n,r,o)=>t(P6(n,r),o),t},Yv=PS();Yv.createWithTimers=PS;qv.exports=Yv;qv.exports.default=Yv;var R6=qv.exports;const Ru=Vr(R6),_6=10*1e3,M6=200;async function RS(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+_6;for(;!r.length&&performance.now()r.remove(),t)}function _u(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}var Mu,lb=na;Mu=lb.createRoot,lb.hydrateRoot;function cb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ub(e,t,n){var r=[],o=_h(e,r,n);return r.length<2?n:o+t(r)}var T6=function(t){var n=Lb(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(s){a={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function On(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r-1&&(o=setTimeout(function(){zl.delete(e);},t)),zl.set(e,gr(gr({},n),{timer:o}));},H6=function(e){return zl.get(e)},jl=new Map,B6=function(e){return jl.get(e)},W6=function(e,t){jl.set(e,t),t.then(function(n){return jl.delete(e),n}).catch(function(){jl.delete(e);});},Zo={},V6=function(e,t){Zo[e]&&Zo[e].forEach(function(n){return n(t)});},kd=function(e,t){return Zo[e]||(Zo[e]=[]),Zo[e].push(t),function(){var r=Zo[e].indexOf(t);Zo[e].splice(r,1);}},U6=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,i=t.staleTime,a=i===void 0?0:i,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(v,p){s?s(p):j6(v,o,p),V6(v,p.data);},h=function(v,p){return p===void 0&&(p=[]),l?l(p):H6(v)};return NS(function(){if(n){var v=h(n);v&&Object.hasOwnProperty.call(v,"data")&&(e.state.data=v.data,e.state.params=v.params,(a===-1||new Date().getTime()-v.time<=a)&&(e.state.loading=!1)),c.current=kd(n,function(p){e.setState({data:p});});}},[]),qs(function(){var v;(v=c.current)===null||v===void 0||v.call(c);}),n?{onBefore:function(v){var p=h(n,v);return !p||!Object.hasOwnProperty.call(p,"data")?{}:a===-1||new Date().getTime()-p.time<=a?{loading:!1,data:p==null?void 0:p.data,error:void 0,returnNow:!0}:{data:p==null?void 0:p.data,error:void 0}},onRequest:function(v,p){var m=B6(n);return m&&m!==u.current?{servicePromise:m}:(m=v.apply(void 0,On([],Qt(p),!1)),u.current=m,W6(n,m),{servicePromise:m})},onSuccess:function(v,p){var m;n&&((m=c.current)===null||m===void 0||m.call(c),d(n,{data:v,params:p,time:new Date().getTime()}),c.current=kd(n,function(g){e.setState({data:g});}));},onMutate:function(v){var p;n&&((p=c.current)===null||p===void 0||p.call(c),d(n,{data:v,params:e.state.params,time:new Date().getTime()}),c.current=kd(n,function(m){e.setState({data:m});}));}}:{}};const K6=U6;var G6=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=f.useRef(),s=f.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),i!==void 0&&(l.maxWait=i),l},[r,o,i]);return f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=f0(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u-1&&rs.splice(n,1);}}if(Ys){var fb=function(){if(!(!Qv()||!rH()))for(var e=0;e{Wa++,document.body.style.overflow="hidden";},HH=()=>{Wa--,Wa<0&&(Wa=0),Wa===0&&(document.body.style.overflow="");};function Jv({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?jH():HH();},[e]);const u=f.useRef(null),d=Gc(),{bg:h,c:v}=f.useMemo(()=>{const y=window.getComputedStyle(document.body)["background-color"],C=window.getComputedStyle(document.body).color;return {bg:y,c:C}},[d]),p=f.useMemo(()=>d?{"--bg":h,"--c":v,backgroundColor:h,color:v}:{},[h,v,d]),m=f.useId(),g=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+m),document.body.appendChild(y),y},[]),b=At(y=>{var $;const C=y.target;($=u.current)!=null&&$.contains(C)||C.closest('.ant-tooltip-inner[role="tooltip"]')||C.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return ln("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?na.createPortal(H("div",{className:X(br.modalMask,o),style:r,onClick:b,children:H("div",{className:X(br.modal,a),style:{...p,width:s,...i},ref:u,children:n})}),g):null}const ep=e=>H(go,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),BH="_toast-container_185m9_1",WH="_single-line_185m9_17";function Dn(e,t=2e3){const n=document.createElement("div");n.className=BH,n.innerText=e;const{colorPrimary:r}=w6();n.style.backgroundColor=r,!e.includes(` `)&&!e.includes("n.remove(),t);}const VH="请求失败, 请重试 !!!",UH="操作失败, 请重试 !!!";function zS(){return Dn(VH)}function jS(){return Dn(UH)}function KH(e){const t=Ds({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(i=>i[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const HS="27eb53fc9058f8c3";async function GH(){var c,u;const t=(await wh.get("https://passport.bilibili.com/login/app/third",{params:{appkey:HS,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return {errmsg:"你必须登录B站之后才能使用授权",json:t};if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri))return {errmsg:"无法获得授权网址",json:t};const n=t.data.confirm_uri;let r,o;const i=new Promise(d=>{const h=v=>{if(v.origin!="https://www.mcbbs.net"||!v.data)return;const p=v.data.match(/access_key=([0-9a-z]{32})/);if(!p||!p[1])return d({errmsg:"没有获得匹配的密钥"});d({access_key:p[1]});};window.addEventListener("message",h),o=()=>window.removeEventListener("message",h),r=setTimeout(()=>{d({errmsg:"获取授权超时"});},10*1e3);}),a=document.createElement("iframe");a.src=n,a.style.display="none",document.body.appendChild(a);function s(){a==null||a.remove(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const l=await i;return s(),l}async function XH(){const e=await GH();if(!e.access_key)return Dn(e.errmsg||"");const t=e.access_key;return bt.accessKey=t,Dn("获取成功"),t}function qH(){bt.accessKey="",Dn("已删除 access_key");}const BS="https://api.bilibili.com",WS="https://app.bilibili.com",Nu=wh.create({baseURL:BS});Nu.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const Au=wh.create({adapter:Xw});Au.interceptors.request.use(function(e){return e.params={appkey:HS,access_key:bt.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});Au.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});function YH(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw Dn("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}const Fa=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,VS=new Set,ch=typeof process=="object"&&process?process:{},US=(e,t,n,r)=>{typeof ch.emitWarning=="function"?ch.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`);};let yc=globalThis.AbortController,vb=globalThis.AbortSignal;var xb;if(typeof yc>"u"){vb=class{constructor(){Pt(this,"onabort");Pt(this,"_onabort",[]);Pt(this,"reason");Pt(this,"aborted",!1);}addEventListener(r,o){this._onabort.push(o);}},yc=class{constructor(){Pt(this,"signal",new vb);t();}abort(r){var o,i;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const a of this.signal._onabort)a(r);(i=(o=this.signal).onabort)==null||i.call(o,r);}}};let e=((xb=ch.env)==null?void 0:xb.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,US("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t));};}const QH=e=>!VS.has(e),Oo=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),KS=e=>Oo(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Bl:null:null;class Bl extends Array{constructor(t){super(t),this.fill(0);}}var Qi;const Wi=class{constructor(t,n){Pt(this,"heap");Pt(this,"length");if(!k(Wi,Qi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0;}static create(t){const n=KS(t);if(!n)return [];Ye(Wi,Qi,!0);const r=new Wi(t,n);return Ye(Wi,Qi,!1),r}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Wl=Wi;Qi=new WeakMap,dt(Wl,Qi,!1);var dr,Wn,Mr,fr,Zi,on,hr,an,Ut,at,Rn,Vn,En,dn,vr,mn,no,ro,pr,Tr,To,Tn,Ps,dh,ri,oo,Rs,Un,xc,GS,oi,Ji,_s,Ir,Po,Nr,Ro,Ms,fh,ea,Vl,ta,Ul,Wt,Gt,Ts,hh,ii,Va;const fp=class{constructor(t){dt(this,Ps);dt(this,xc);dt(this,Ir);dt(this,Nr);dt(this,Ms);dt(this,ea);dt(this,ta);dt(this,Wt);dt(this,Ts);dt(this,ii);dt(this,dr,void 0);dt(this,Wn,void 0);dt(this,Mr,void 0);dt(this,fr,void 0);dt(this,Zi,void 0);Pt(this,"ttl");Pt(this,"ttlResolution");Pt(this,"ttlAutopurge");Pt(this,"updateAgeOnGet");Pt(this,"updateAgeOnHas");Pt(this,"allowStale");Pt(this,"noDisposeOnSet");Pt(this,"noUpdateTTL");Pt(this,"maxEntrySize");Pt(this,"sizeCalculation");Pt(this,"noDeleteOnFetchRejection");Pt(this,"noDeleteOnStaleGet");Pt(this,"allowStaleOnFetchAbort");Pt(this,"allowStaleOnFetchRejection");Pt(this,"ignoreFetchAbort");dt(this,on,void 0);dt(this,hr,void 0);dt(this,an,void 0);dt(this,Ut,void 0);dt(this,at,void 0);dt(this,Rn,void 0);dt(this,Vn,void 0);dt(this,En,void 0);dt(this,dn,void 0);dt(this,vr,void 0);dt(this,mn,void 0);dt(this,no,void 0);dt(this,ro,void 0);dt(this,pr,void 0);dt(this,Tr,void 0);dt(this,To,void 0);dt(this,Tn,void 0);dt(this,ri,()=>{});dt(this,oo,()=>{});dt(this,Rs,()=>{});dt(this,Un,()=>!1);dt(this,oi,t=>{});dt(this,Ji,(t,n,r)=>{});dt(this,_s,(t,n,r,o)=>{if(r||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:i,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:h,maxSize:v=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:$,ignoreFetchAbort:w}=t;if(n!==0&&!Oo(n))throw new TypeError("max option must be a nonnegative integer");const S=n?KS(n):Array;if(!S)throw new Error("invalid max value: "+n);if(Ye(this,dr,n),Ye(this,Wn,v),this.maxEntrySize=p||k(this,Wn),this.sizeCalculation=m,this.sizeCalculation){if(!k(this,Wn)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ye(this,Zi,g),Ye(this,To,!!g),Ye(this,an,new Map),Ye(this,Ut,new Array(n).fill(void 0)),Ye(this,at,new Array(n).fill(void 0)),Ye(this,Rn,new S(n)),Ye(this,Vn,new S(n)),Ye(this,En,0),Ye(this,dn,0),Ye(this,vr,Wl.create(n)),Ye(this,on,0),Ye(this,hr,0),typeof c=="function"&&Ye(this,Mr,c),typeof u=="function"?(Ye(this,fr,u),Ye(this,mn,[])):(Ye(this,fr,void 0),Ye(this,mn,void 0)),Ye(this,Tr,!!k(this,Mr)),Ye(this,Tn,!!k(this,fr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!$,this.ignoreFetchAbort=!!w,this.maxEntrySize!==0){if(k(this,Wn)!==0&&!Oo(k(this,Wn)))throw new TypeError("maxSize must be a positive integer if specified");if(!Oo(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Fe(this,xc,GS).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Oo(o)||o===0?o:1,this.ttlAutopurge=!!i,this.ttl=r||0,this.ttl){if(!Oo(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Fe(this,Ps,dh).call(this);}if(k(this,dr)===0&&this.ttl===0&&k(this,Wn)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,dr)&&!k(this,Wn)){const x="LRU_CACHE_UNBOUNDED";QH(x)&&(VS.add(x),US("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,fp));}}static unsafeExposeInternals(t){return {starts:k(t,ro),ttls:k(t,pr),sizes:k(t,no),keyMap:k(t,an),keyList:k(t,Ut),valList:k(t,at),next:k(t,Rn),prev:k(t,Vn),get head(){return k(t,En)},get tail(){return k(t,dn)},free:k(t,vr),isBackgroundFetch:n=>{var r;return Fe(r=t,Wt,Gt).call(r,n)},backgroundFetch:(n,r,o,i)=>{var a;return Fe(a=t,ta,Ul).call(a,n,r,o,i)},moveToTail:n=>{var r;return Fe(r=t,ii,Va).call(r,n)},indexes:n=>{var r;return Fe(r=t,Ir,Po).call(r,n)},rindexes:n=>{var r;return Fe(r=t,Nr,Ro).call(r,n)},isStale:n=>{var r;return k(r=t,Un).call(r,n)}}}get max(){return k(this,dr)}get maxSize(){return k(this,Wn)}get calculatedSize(){return k(this,hr)}get size(){return k(this,on)}get fetchMethod(){return k(this,Zi)}get dispose(){return k(this,Mr)}get disposeAfter(){return k(this,fr)}getRemainingTTL(t){return k(this,an).has(t)?1/0:0}*entries(){for(const t of Fe(this,Ir,Po).call(this))k(this,at)[t]!==void 0&&k(this,Ut)[t]!==void 0&&!Fe(this,Wt,Gt).call(this,k(this,at)[t])&&(yield [k(this,Ut)[t],k(this,at)[t]]);}*rentries(){for(const t of Fe(this,Nr,Ro).call(this))k(this,at)[t]!==void 0&&k(this,Ut)[t]!==void 0&&!Fe(this,Wt,Gt).call(this,k(this,at)[t])&&(yield [k(this,Ut)[t],k(this,at)[t]]);}*keys(){for(const t of Fe(this,Ir,Po).call(this)){const n=k(this,Ut)[t];n!==void 0&&!Fe(this,Wt,Gt).call(this,k(this,at)[t])&&(yield n);}}*rkeys(){for(const t of Fe(this,Nr,Ro).call(this)){const n=k(this,Ut)[t];n!==void 0&&!Fe(this,Wt,Gt).call(this,k(this,at)[t])&&(yield n);}}*values(){for(const t of Fe(this,Ir,Po).call(this))k(this,at)[t]!==void 0&&!Fe(this,Wt,Gt).call(this,k(this,at)[t])&&(yield k(this,at)[t]);}*rvalues(){for(const t of Fe(this,Nr,Ro).call(this))k(this,at)[t]!==void 0&&!Fe(this,Wt,Gt).call(this,k(this,at)[t])&&(yield k(this,at)[t]);}[Symbol.iterator](){return this.entries()}find(t,n={}){for(const r of Fe(this,Ir,Po).call(this)){const o=k(this,at)[r],i=Fe(this,Wt,Gt).call(this,o)?o.__staleWhileFetching:o;if(i!==void 0&&t(i,k(this,Ut)[r],this))return this.get(k(this,Ut)[r],n)}}forEach(t,n=this){for(const r of Fe(this,Ir,Po).call(this)){const o=k(this,at)[r],i=Fe(this,Wt,Gt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Ut)[r],this);}}rforEach(t,n=this){for(const r of Fe(this,Nr,Ro).call(this)){const o=k(this,at)[r],i=Fe(this,Wt,Gt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Ut)[r],this);}}purgeStale(){let t=!1;for(const n of Fe(this,Nr,Ro).call(this,{allowStale:!0}))k(this,Un).call(this,n)&&(this.delete(k(this,Ut)[n]),t=!0);return t}dump(){const t=[];for(const n of Fe(this,Ir,Po).call(this,{allowStale:!0})){const r=k(this,Ut)[n],o=k(this,at)[n],i=Fe(this,Wt,Gt).call(this,o)?o.__staleWhileFetching:o;if(i===void 0||r===void 0)continue;const a={value:i};if(k(this,pr)&&k(this,ro)){a.ttl=k(this,pr)[n];const s=Fa.now()-k(this,ro)[n];a.start=Math.floor(Date.now()-s);}k(this,no)&&(a.size=k(this,no)[n]),t.unshift([r,a]);}return t}load(t){this.clear();for(const[n,r]of t){if(r.start){const o=Date.now()-r.start;r.start=Fa.now()-o;}this.set(n,r.value,r);}}set(t,n,r={}){var h,v,p;if(n===void 0)return this.delete(t),this;const{ttl:o=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const u=k(this,_s).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=k(this,on)===0?void 0:k(this,an).get(t);if(d===void 0)d=k(this,on)===0?k(this,dn):k(this,vr).length!==0?k(this,vr).pop():k(this,on)===k(this,dr)?Fe(this,ea,Vl).call(this,!1):k(this,on),k(this,Ut)[d]=t,k(this,at)[d]=n,k(this,an).set(t,d),k(this,Rn)[k(this,dn)]=d,k(this,Vn)[d]=k(this,dn),Ye(this,dn,d),nl(this,on)._++,k(this,Ji).call(this,d,u,l),l&&(l.set="add"),c=!1;else {Fe(this,ii,Va).call(this,d);const m=k(this,at)[d];if(n!==m){if(k(this,To)&&Fe(this,Wt,Gt).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(k(this,Tr)&&((h=k(this,Mr))==null||h.call(this,m,t,"set")),k(this,Tn)&&((v=k(this,mn))==null||v.push([m,t,"set"]))),k(this,oi).call(this,d),k(this,Ji).call(this,d,u,l),k(this,at)[d]=n,l){l.set="replace";const g=m&&Fe(this,Wt,Gt).call(this,m)?m.__staleWhileFetching:m;g!==void 0&&(l.oldValue=g);}}else l&&(l.set="update");}if(o!==0&&!k(this,pr)&&Fe(this,Ps,dh).call(this),k(this,pr)&&(c||k(this,Rs).call(this,d,o,i),l&&k(this,oo).call(this,l,d)),!a&&k(this,Tn)&&k(this,mn)){const m=k(this,mn);let g;for(;g=m==null?void 0:m.shift();)(p=k(this,fr))==null||p.call(this,...g);}return this}pop(){var t;try{for(;k(this,on);){const n=k(this,at)[k(this,En)];if(Fe(this,ea,Vl).call(this,!0),Fe(this,Wt,Gt).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(k(this,Tn)&&k(this,mn)){const n=k(this,mn);let r;for(;r=n==null?void 0:n.shift();)(t=k(this,fr))==null||t.call(this,...r);}}}has(t,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,i=k(this,an).get(t);if(i!==void 0){const a=k(this,at)[i];if(Fe(this,Wt,Gt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(k(this,Un).call(this,i))o&&(o.has="stale",k(this,oo).call(this,o,i));else return r&&k(this,ri).call(this,i),o&&(o.has="hit",k(this,oo).call(this,o,i)),!0}else o&&(o.has="miss");return !1}peek(t,n={}){const{allowStale:r=this.allowStale}=n,o=k(this,an).get(t);if(o!==void 0&&(r||!k(this,Un).call(this,o))){const i=k(this,at)[o];return Fe(this,Wt,Gt).call(this,i)?i.__staleWhileFetching:i}}async fetch(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:g=!1,status:b,signal:y}=n;if(!k(this,To))return b&&(b.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,status:b});const C={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:v,status:b,signal:y};let $=k(this,an).get(t);if($===void 0){b&&(b.fetch="miss");const w=Fe(this,ta,Ul).call(this,t,$,C,m);return w.__returned=w}else {const w=k(this,at)[$];if(Fe(this,Wt,Gt).call(this,w)){const O=r&&w.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",O&&(b.returnedStale=!0)),O?w.__staleWhileFetching:w.__returned=w}const S=k(this,Un).call(this,$);if(!g&&!S)return b&&(b.fetch="hit"),Fe(this,ii,Va).call(this,$),o&&k(this,ri).call(this,$),b&&k(this,oo).call(this,b,$),w;const x=Fe(this,ta,Ul).call(this,t,$,C,m),M=x.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=S?"stale":"refresh",M&&S&&(b.returnedStale=!0)),M?x.__staleWhileFetching:x.__returned=x}}get(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=n,s=k(this,an).get(t);if(s!==void 0){const l=k(this,at)[s],c=Fe(this,Wt,Gt).call(this,l);return a&&k(this,oo).call(this,a,s),k(this,Un).call(this,s)?(a&&(a.get="stale"),c?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(i||this.delete(t),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),c?l.__staleWhileFetching:(Fe(this,ii,Va).call(this,s),o&&k(this,ri).call(this,s),l))}else a&&(a.get="miss");}delete(t){var r,o,i,a;let n=!1;if(k(this,on)!==0){const s=k(this,an).get(t);if(s!==void 0)if(n=!0,k(this,on)===1)this.clear();else {k(this,oi).call(this,s);const l=k(this,at)[s];Fe(this,Wt,Gt).call(this,l)?l.__abortController.abort(new Error("deleted")):(k(this,Tr)||k(this,Tn))&&(k(this,Tr)&&((r=k(this,Mr))==null||r.call(this,l,t,"delete")),k(this,Tn)&&((o=k(this,mn))==null||o.push([l,t,"delete"]))),k(this,an).delete(t),k(this,Ut)[s]=void 0,k(this,at)[s]=void 0,s===k(this,dn)?Ye(this,dn,k(this,Vn)[s]):s===k(this,En)?Ye(this,En,k(this,Rn)[s]):(k(this,Rn)[k(this,Vn)[s]]=k(this,Rn)[s],k(this,Vn)[k(this,Rn)[s]]=k(this,Vn)[s]),nl(this,on)._--,k(this,vr).push(s);}}if(k(this,Tn)&&((i=k(this,mn))!=null&&i.length)){const s=k(this,mn);let l;for(;l=s==null?void 0:s.shift();)(a=k(this,fr))==null||a.call(this,...l);}return n}clear(){var t,n,r;for(const o of Fe(this,Nr,Ro).call(this,{allowStale:!0})){const i=k(this,at)[o];if(Fe(this,Wt,Gt).call(this,i))i.__abortController.abort(new Error("deleted"));else {const a=k(this,Ut)[o];k(this,Tr)&&((t=k(this,Mr))==null||t.call(this,i,a,"delete")),k(this,Tn)&&((n=k(this,mn))==null||n.push([i,a,"delete"]));}}if(k(this,an).clear(),k(this,at).fill(void 0),k(this,Ut).fill(void 0),k(this,pr)&&k(this,ro)&&(k(this,pr).fill(0),k(this,ro).fill(0)),k(this,no)&&k(this,no).fill(0),Ye(this,En,0),Ye(this,dn,0),k(this,vr).length=0,Ye(this,hr,0),Ye(this,on,0),k(this,Tn)&&k(this,mn)){const o=k(this,mn);let i;for(;i=o==null?void 0:o.shift();)(r=k(this,fr))==null||r.call(this,...i);}}};let uh=fp;dr=new WeakMap,Wn=new WeakMap,Mr=new WeakMap,fr=new WeakMap,Zi=new WeakMap,on=new WeakMap,hr=new WeakMap,an=new WeakMap,Ut=new WeakMap,at=new WeakMap,Rn=new WeakMap,Vn=new WeakMap,En=new WeakMap,dn=new WeakMap,vr=new WeakMap,mn=new WeakMap,no=new WeakMap,ro=new WeakMap,pr=new WeakMap,Tr=new WeakMap,To=new WeakMap,Tn=new WeakMap,Ps=new WeakSet,dh=function(){const t=new Bl(k(this,dr)),n=new Bl(k(this,dr));Ye(this,pr,t),Ye(this,ro,n),Ye(this,Rs,(i,a,s=Fa.now())=>{if(n[i]=a!==0?s:0,t[i]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{k(this,Un).call(this,i)&&this.delete(k(this,Ut)[i]);},a+1);l.unref&&l.unref();}}),Ye(this,ri,i=>{n[i]=t[i]!==0?Fa.now():0;}),Ye(this,oo,(i,a)=>{if(t[a]){const s=t[a],l=n[a];i.ttl=s,i.start=l,i.now=r||o();const c=i.now-l;i.remainingTTL=s-c;}});let r=0;const o=()=>{const i=Fa.now();if(this.ttlResolution>0){r=i;const a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref();}return i};this.getRemainingTTL=i=>{const a=k(this,an).get(i);if(a===void 0)return 0;const s=t[a],l=n[a];if(s===0||l===0)return 1/0;const c=(r||o())-l;return s-c},Ye(this,Un,i=>t[i]!==0&&n[i]!==0&&(r||o())-n[i]>t[i]);},ri=new WeakMap,oo=new WeakMap,Rs=new WeakMap,Un=new WeakMap,xc=new WeakSet,GS=function(){const t=new Bl(k(this,dr));Ye(this,hr,0),Ye(this,no,t),Ye(this,oi,n=>{Ye(this,hr,k(this,hr)-t[n]),t[n]=0;}),Ye(this,_s,(n,r,o,i)=>{if(Fe(this,Wt,Gt).call(this,r))return 0;if(!Oo(o))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(o=i(r,n),!Oo(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),Ye(this,Ji,(n,r,o)=>{if(t[n]=r,k(this,Wn)){const i=k(this,Wn)-t[n];for(;k(this,hr)>i;)Fe(this,ea,Vl).call(this,!0);}Ye(this,hr,k(this,hr)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=k(this,hr));});},oi=new WeakMap,Ji=new WeakMap,_s=new WeakMap,Ir=new WeakSet,Po=function*({allowStale:t=this.allowStale}={}){if(k(this,on))for(let n=k(this,dn);!(!Fe(this,Ms,fh).call(this,n)||((t||!k(this,Un).call(this,n))&&(yield n),n===k(this,En)));)n=k(this,Vn)[n];},Nr=new WeakSet,Ro=function*({allowStale:t=this.allowStale}={}){if(k(this,on))for(let n=k(this,En);!(!Fe(this,Ms,fh).call(this,n)||((t||!k(this,Un).call(this,n))&&(yield n),n===k(this,dn)));)n=k(this,Rn)[n];},Ms=new WeakSet,fh=function(t){return t!==void 0&&k(this,an).get(k(this,Ut)[t])===t},ea=new WeakSet,Vl=function(t){var i,a;const n=k(this,En),r=k(this,Ut)[n],o=k(this,at)[n];return k(this,To)&&Fe(this,Wt,Gt).call(this,o)?o.__abortController.abort(new Error("evicted")):(k(this,Tr)||k(this,Tn))&&(k(this,Tr)&&((i=k(this,Mr))==null||i.call(this,o,r,"evict")),k(this,Tn)&&((a=k(this,mn))==null||a.push([o,r,"evict"]))),k(this,oi).call(this,n),t&&(k(this,Ut)[n]=void 0,k(this,at)[n]=void 0,k(this,vr).push(n)),k(this,on)===1?(Ye(this,En,Ye(this,dn,0)),k(this,vr).length=0):Ye(this,En,k(this,Rn)[n]),k(this,an).delete(r),nl(this,on)._--,n},ta=new WeakSet,Ul=function(t,n,r,o){const i=n===void 0?void 0:k(this,at)[n];if(Fe(this,Wt,Gt).call(this,i))return i;const a=new yc,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const l={signal:a.signal,options:r,context:o},c=(m,g=!1)=>{const{aborted:b}=a.signal,y=r.ignoreFetchAbort&&m!==void 0;if(r.status&&(b&&!g?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,y&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!y&&!g)return d(a.signal.reason);const C=v;return k(this,at)[n]===v&&(m===void 0?C.__staleWhileFetching?k(this,at)[n]=C.__staleWhileFetching:this.delete(t):(r.status&&(r.status.fetchUpdated=!0),this.set(t,m,l.options))),m},u=m=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=m),d(m)),d=m=>{const{aborted:g}=a.signal,b=g&&r.allowStaleOnFetchAbort,y=b||r.allowStaleOnFetchRejection,C=y||r.noDeleteOnFetchRejection,$=v;if(k(this,at)[n]===v&&(!C||$.__staleWhileFetching===void 0?this.delete(t):b||(k(this,at)[n]=$.__staleWhileFetching)),y)return r.status&&$.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),$.__staleWhileFetching;if($.__returned===$)throw m},h=(m,g)=>{var y;const b=(y=k(this,Zi))==null?void 0:y.call(this,t,i,l);b&&b instanceof Promise&&b.then(C=>m(C),g),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(m(),r.allowStaleOnFetchAbort&&(m=C=>c(C,!0)));});};r.status&&(r.status.fetchDispatched=!0);const v=new Promise(h).then(c,u),p=Object.assign(v,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return n===void 0?(this.set(t,p,{...l.options,status:void 0}),n=k(this,an).get(t)):k(this,at)[n]=p,p},Wt=new WeakSet,Gt=function(t){if(!k(this,To))return !1;const n=t;return !!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof yc},Ts=new WeakSet,hh=function(t,n){k(this,Vn)[n]=t,k(this,Rn)[t]=n;},ii=new WeakSet,Va=function(t){t!==k(this,dn)&&(t===k(this,En)?Ye(this,En,k(this,Rn)[t]):Fe(this,Ts,hh).call(this,k(this,Vn)[t],k(this,Rn)[t]),Fe(this,Ts,hh).call(this,k(this,dn),t),Ye(this,dn,t));};async function ZH(e){return (await Nu.get("/pvideo",{params:{aid:e}})).data.data}async function JH(e){return []}const Fd=new uh({max:200});async function e8(e){if(Fd.has(e))return Fd.get(e);const[t,n]=await Promise.all([ZH(e),JH()]);return Fd.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function XS(e){return async function(n){const r=new FormData;r.append("aid",n),r.append("csrf",YH());const i=(await Nu.post("/x/v2/history/toview/"+e,r,{withCredentials:!0})).data,a=(i==null?void 0:i.code)===0&&(i==null?void 0:i.message)==="0";return a||Dn((i==null?void 0:i.message)||"出错了"),a}}const t8=XS("add"),n8=XS("del"),qS=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await Au.get(WS+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return (i==null?void 0:i.code)===0&&(i==null?void 0:i.message)==="0"}},r8=qS("dislike"),o8=qS("cancel"),i8="_modal_1rloz_1",a8="_title-desc_1rloz_4",s8="_reason-list_1rloz_8",l8="_reason_1rloz_8",c8="_active_1rloz_29",u8="_reason-no_1rloz_33",d8="_tips-container_1rloz_47",f8="_tips_1rloz_47",rr={modal:i8,titleDesc:a8,reasonList:s8,reason:l8,active:c8,reasonNo:u8,tipsContainer:d8,tips:f8},Du=KH();function h8(){return ma(Du)}function v8(e){const t=h8();if(e)return t.get(e)}function p8({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),i=At(async p=>{if(!n)return;let m=!1,g;try{o(!0),m=await r8(n,p.id);}catch(b){g=b;}finally{o(!1);}if(g)return console.error(g.stack||g),zS();m?Dn("已标记不想看"):jS(),m&&(Du.set(n.param,{...p}),t());}),a=f.useMemo(()=>{var p;return ((p=n==null?void 0:n.three_point)==null?void 0:p.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];ln(l,p=>{if(!s()||!l.includes(p.key))return;const m=Number(p.key)-1;u(m);const g=document.querySelectorAll(`.${rr.reason}`)[m]||null;g==null||g.click();});const[c,u]=f.useState(a.length-1);NH(()=>{u(a.length-1);},[a]);const d=p=>()=>{if(!s())return;const m=c+p;m<0||m>a.length-1||u(m);};ln("leftarrow",d(-1)),ln("rightarrow",d(1)),ln("uparrow",d(-2)),ln("downarrow",d(2)),ln("enter",p=>{var m;s()&&(c<0||c>a.length-1||(p.preventDefault(),p.stopImmediatePropagation(),(m=document.querySelector(`.${rr.reason}.${rr.active}`))==null||m.click()));});const h=f.useMemo(()=>{var p;return ((p=a[c])==null?void 0:p.name)||""},[a,c]),{colorPrimary:v}=Sa();return Ce(Jv,{show:e,onHide:t,clsModal:rr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[Ce("div",{className:br.modalHeader,children:[Ce("div",{className:br.modalTitle,children:["我不想看",H("span",{className:rr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),H("div",{className:"space",style:{flex:1}}),H(ep,{onClick:t})]}),Ce("div",{className:br.modalBody,children:[H("div",{className:rr.reasonList,children:a.map((p,m)=>Ce("button",{className:X(rr.reason,{[rr.active]:m===c}),style:{...m===c&&{borderColor:v}},"data-id":p.id,onClick:()=>{u(m),i(p);},disabled:r,children:[H("span",{className:rr.reasonNo,style:{backgroundColor:v},children:m+1}),p.name]},p.id))}),Ce("div",{className:rr.tipsContainer,children:[Ce("div",{className:rr.tips,children:[H(go,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),h&&Ce("div",{className:rr.tips,children:[H(go,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",h,"」, 回车键提交"]})]})]})]})}const Kl={show:!1,onHide:QS,item:null},YS=Ds({value:Kl.show}),m8=function(){return ma(YS).value};function QS(){setTimeout(()=>{ZS({show:!1,item:null});});}function ZS(e){Object.assign(Kl,e),YS.value=Kl.show,g8().render(H(p8,{...Kl,onHide:QS}));}let zd;function g8(){if(!zd){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),zd=Mu(e);}return zd}function b8(e){e!=null&&e.param&&Du.has(e.param)||ZS({show:!0,item:e});}const ss=class{static av2bv(t){const n=(t^this.XOR)+this.ADD,r=["B","V","1",,,"4",,"1",,"7"];for(let o=0;o<6;o++)r[this.S[o]]=this.TABEL[Math.floor(n/58**o)%58];return r.join("")}static bv2av(t){let n=0;for(let r=0;r<6;r++)n+=this.TR[t[this.S[r]]]*58**r;return n-this.ADD^this.XOR}};let _o=ss;Pt(_o,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"),Pt(_o,"TR",{}),Pt(_o,"S",[11,10,3,8,4,6]),Pt(_o,"XOR",177451812),Pt(_o,"ADD",8728348608),(()=>{const t=ss.TABEL.length;for(let n=0;n=3600?"HH:mm:ss":"mm:ss")}function jd(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function pb(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const C8="_bili-video-card_mlccj_1",S8="_image-wrapper_mlccj_4",w8="_preview-card-wrapper_mlccj_8",x8="_preview-card-inner_mlccj_21",$8="_watch-later_mlccj_25",E8="_badge_mlccj_28",O8="_recommend-reason_mlccj_37",P8="_bangumi-desc_mlccj_52",R8="_btn-dislike_mlccj_55",_8="_btn-dislike-icon_mlccj_70",M8="_btn-dislike-tip_mlccj_77",T8="_disliked-wrapper_mlccj_92",I8="_dislike-content-cover_mlccj_106",N8="_dislike-content-cover-inner_mlccj_112",A8="_dislike-icon_mlccj_123",D8="_dislike-reason_mlccj_126",k8="_dislike-desc_mlccj_130",L8="_dislike-content-action_mlccj_134",F8="_skeleton-active_mlccj_151",z8="_ant-skeleton-loading_mlccj_1",cn={biliVideoCard:C8,imageWrapper:S8,previewCardWrapper:w8,previewCardInner:x8,watchLater:$8,badge:E8,recommendReason:O8,bangumiDesc:P8,btnDislike:R8,btnDislikeIcon:_8,btnDislikeTip:M8,dislikedWrapper:T8,dislikeContentCover:I8,dislikeContentCoverInner:N8,dislikeIcon:A8,dislikeReason:D8,dislikeDesc:k8,dislikeContentAction:L8,skeletonActive:F8,antSkeletonLoading:z8};function j8(...e){for(const t of e)if(!isNaN(t))return t;return 0}function H8({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=f.useRef(null),a=MH(i),[s,l]=f.useState(()=>({width:0,height:0}));Zv(()=>{var h;const d=(h=i.current)==null?void 0:h.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=j8(a.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return H("div",{ref:i,className:X(cn.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&H(B8,{...u})})}function B8({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var w;const i=Math.floor((e||0)*o);let a=f.useMemo(()=>{const S=(t==null?void 0:t.index)||[];let x=V8(S,i);return x!==-1?x:i>S[S.length-1]?(x=Math.floor(S.length*o)-1,x<0&&(x=0),x):0},[t,i]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const h=Math.floor(a/d),v=a-h*d,p=((w=t.image)==null?void 0:w[h])||"",m=Math.floor(v/s)+1,g=v-(m-1)*s,b=n*s,y=r*l,C=(m-1)*r,$=(g-1)*n;return H("div",{className:cn.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${p})`,backgroundPosition:`-${$}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:H(W8,{progress:o})})}function W8({progress:e}){const{colorPrimary:t}=Sa();return H("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:H("div",{className:"bar",style:{backgroundColor:t,height:"100%",width:`${e*100}%`}})})}function V8(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l{const t=Os[e]||Os[1];return vh[t]},G8=e=>{const t=Os[e];if(t)return U8[t]};function mb(e){return {iconSvgName:K8(e),iconSvgScale:G8(e)}}function JS(e){var R,M,O;const t=e.api==="pc",n=e.api==="app",r=String(t?e.id:e.param),o=t?e.bvid:"",i=e.goto,a=I=>{if(t)return;const{cover_left_icon_1:P,cover_left_text_1:_,cover_left_icon_2:E,cover_left_text_2:T}=e;if(P&&Os[P]===I)return pb(_);if(E&&Os[E]===I)return pb(T)},s=t?e.stat.view:a("play"),l=t?e.stat.like:void 0,c=void 0,u=t?e.stat.danmaku:a("danmaku"),d=e.title,h=t?e.pic:e.cover,v=t?e.pubdate:void 0,p=(t?e.duration:(R=e.player_args)==null?void 0:R.duration)||0,m=t?e.owner.name:e.args.up_name,g=t?e.owner.face:void 0,b=t?e.owner.mid:e.args.up_id,y=void 0,C=t?void 0:e.badge,$=t?void 0:((M=e.desc_button)==null?void 0:M.text)||e.desc||"",w=t?void 0:e.badge_style,S=t?(O=e.rcmd_reason)==null?void 0:O.content:e.rcmd_reason,x=t?void 0:e.rcmd_reason_style;return {isPc:t,isApp:n,id:r,bvid:o,goto:i,play:s,like:l,coin:c,danmaku:u,title:d,coverRaw:h,pubdate:v,duration:p,name:m,face:g,mid:b,favorite:y,recommendReason:S,recommendReasonStyleConfig:x,appBadge:C,appBadgeDesc:$,appBadgeStyleConfig:w}}const X8=Kc().format("YYYY"),q8=e=>{if(!e)return "";const t=Kc.unix(e);return t.format("YYYY")===X8?t.format("M-D"):t.format("YY-M-D")},Y8=e=>(e||"").replace(/^http:\/\//,"https://"),Cc=f.memo(f.forwardRef(function({style:t,className:n,item:r,loading:o,active:i,...a},s){o=o??!r;const l=Ce("div",{className:X("bili-video-card__skeleton",{hide:!o,[cn.skeletonActive]:o}),children:[H("div",{className:"bili-video-card__skeleton--cover"}),H("div",{className:"bili-video-card__skeleton--info",children:Ce("div",{className:"bili-video-card__skeleton--right",children:[H("p",{className:"bili-video-card__skeleton--text"}),H("p",{className:"bili-video-card__skeleton--text short"}),H("p",{className:"bili-video-card__skeleton--light"})]})})]}),c=v8((r==null?void 0:r.api)==="app"&&r.param),u=f.useRef(null),d=f.useRef(null);return f.useImperativeHandle(s,()=>({async onCancelDislike(){var h;await((h=u.current)==null?void 0:h.onCancelDislike());},async onToggleWatchLater(){var h;await((h=d.current)==null?void 0:h.onToggleWatchLater());},onTriggerDislike(){var h;(h=d.current)==null||h.onTriggerDislike();},onStartPreviewAnimation(){var h;(h=d.current)==null||h.onStartPreviewAnimation();},onHotkeyPreviewAnimation(){var h;(h=d.current)==null||h.onHotkeyPreviewAnimation();}}),[u,d]),Ce("div",{style:t,className:X("bili-video-card",cn.biliVideoCard,n),...a,children:[l,!o&&r&&(c?H(Q8,{ref:u,item:r,dislikedReason:c}):H(Z8,{ref:d,item:r,active:i}))]})})),Q8=f.memo(f.forwardRef(function({dislikedReason:t,item:n},r){const o=At(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await o8(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),zS();i?Dn("已撤销"):jS(),i&&Du.delete(n.param);});return f.useImperativeHandle(r,()=>({onCancelDislike:o}),[]),Ce("div",{className:X(cn.dislikedWrapper),children:[H("div",{className:cn.dislikeContentCover,children:Ce("div",{className:cn.dislikeContentCoverInner,children:[H(go,{name:"DistraughtFace",size:32,className:cn.dislikeIcon}),H("div",{className:cn.dislikeReason,children:t==null?void 0:t.name}),H("div",{className:cn.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),H("div",{className:cn.dislikeContentAction,children:Ce("button",{onClick:o,children:[H(go,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),Z8=f.memo(f.forwardRef(function({item:t,active:n=!1},r){const o=t.api==="pc",i=t.api==="app",{id:a,bvid:s,goto:l,play:c,like:u,coin:d,danmaku:h,title:v,coverRaw:p,pubdate:m,duration:g,name:b,face:y,mid:C,recommendReason:$,recommendReasonStyleConfig:w,favorite:S,appBadge:x,appBadgeDesc:R,appBadgeStyleConfig:M}=f.useMemo(()=>JS(t),[t]),O=t.goto==="av",I=t.goto==="bangumi",P=t.goto==="picture";["av","bangumi","picture"].includes(l)||console.warn(`[${Lo}]: none (av,bangumi,picture) goto type %s`,l,t);const _=f.useMemo(()=>q8(m),[m]),E=f.useMemo(()=>Y8(p),[p]),[T,A]=f.useState(null),N=f.useRef(!1),D=At(async()=>{if(!T&&!N.current)try{N.current=!0,A(await e8(a));}finally{N.current=!1;}}),L=f.useRef(null),[B,G]=f.useState(void 0);di("mouseenter",ke=>{var Ne;const Ie=(Ne=L.current)==null?void 0:Ne.getBoundingClientRect();if(!Ie)return;const{x:Le}=Ie,Pe=ke.pageX-window.pageXOffset-Le;G(Pe);},{target:L});const F=Ld(L),{autoPreviewWhenHover:K}=yr(),{onStartPreviewAnimation:V,onHotkeyPreviewAnimation:q,previewAnimationProgress:ne}=J8({id:a,title:v,autoPreviewWhenHover:K,active:n,tryFetchVideoData:D,videoPreviewWrapperRef:L});bc(()=>{n&&(unsafeWindow[`${e$}_activeItem`]=t,bt.autoPreviewWhenKeyboardSelect&&V());},[n]);const Z=f.useRef(null),Y=Ld(Z),[te,ae]=f.useState(!1),{accessKey:le}=yr(),de=!!le;f.useEffect(()=>{F&&D();},[F]),f.useImperativeHandle(r,()=>({onToggleWatchLater:ce,onTriggerDislike:re,onStartPreviewAnimation:V,onHotkeyPreviewAnimation:q}),[]);const[ee,oe]=f.useState(!1),ce=At(async ke=>{if(ke==null||ke.preventDefault(),ee)return;oe(!0);const Ie=te?n8:t8;let Le=!1;try{Le=await Ie(a);}finally{oe(!1);}Le&&ae(Pe=>!Pe);}),se=f.useRef(null),ve=Ld(se),re=At(ke=>{ke==null||ke.stopPropagation(),ke==null||ke.preventDefault(),i&&b8(t);}),he=f.useMemo(()=>o?O&&s?`/video/${s}/`:t.uri:(()=>{var ke;if(t.uri.startsWith("http://")||t.uri.startsWith("https://"))return t.uri;if(O)return `/video/${_o.av2bv(Number(t.param))}/`;if(I)return console.warn(`[${Lo}]: bangumi uri should not starts with 'bilibili://': %s`,t.uri),t.uri;if(P){const Ie=(ke=/^bilibili:\/\/article\/(\d+)$/.exec(t.uri))==null?void 0:ke[1];return Ie?`/read/cv${Ie}`:t.uri}return t.uri})(),[t]),ue=f.useMemo(()=>y8(g),[g]),be=f.useMemo(()=>jd(c),[c]),We=f.useMemo(()=>jd(u),[u]),ct=f.useMemo(()=>jd(S),[S]),et=o?We:ct,ze=At(ke=>{if(!bt.openInIINAWhenRightClick)return;const Ie=new URL(he,location.href).href,Le=`iina://open?url=${encodeURIComponent(Ie)}`;window.open(Le,"_self"),ke.preventDefault();}),qe=({text:ke,iconSvgName:Ie,iconSvgScale:Le})=>Ce("span",{className:"bili-video-card__stats--item",children:[H("svg",{className:"bili-video-card__stats--icon",style:{transform:Le?`scale(${Le})`:void 0},children:H("use",{href:Ie})}),H("span",{className:"bili-video-card__stats--text",children:ke})]});return Ce("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:ze,children:[H("a",{href:he,target:"_blank",children:Ce("div",{className:"bili-video-card__image __scale-player-wrap",ref:L,children:[Ce("div",{className:X("bili-video-card__image--wrap",cn.imageWrapper),children:[Ce("picture",{className:"v-img bili-video-card__cover",children:[H("source",{srcSet:`${E}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),H("source",{srcSet:`${E}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),H("img",{src:`${E}@672w_378h_1c_!web-home-common-cover`,alt:v,loading:"eager"})]}),(F||typeof ne=="number")&&H(H8,{videoDuration:g,pvideo:T==null?void 0:T.pvideoData,mouseEnterRelativeX:B,previewAnimationProgress:ne}),Ce("div",{className:`bili-watch-later ${cn.watchLater}`,style:{display:F||n?"flex":"none"},ref:Z,onClick:ce,children:[H("svg",{className:"bili-watch-later__icon",children:H("use",{href:te?"#widget-watch-save":"#widget-watch-later"})}),H("span",{className:"bili-watch-later__tip",style:{display:Y?"block":"none"},children:te?"移除":"稍后再看"})]}),i&&de&&Ce("div",{ref:se,className:cn.btnDislike,onClick:re,style:{display:F?"flex":"none"},children:[H("svg",{className:cn.btnDislikeIcon,children:H("use",{href:"#widget-close"})}),H("span",{className:cn.btnDislikeTip,style:{display:ve?"block":"none"},children:"我不想看"})]})]}),H("div",{className:"bili-video-card__mask",children:Ce("div",{className:"bili-video-card__stats",children:[H("div",{className:"bili-video-card__stats--left",children:o?Ce(sn,{children:[qe({text:be,iconSvgName:vh.play}),qe({text:l==="av"?We:et,iconSvgName:vh.like})]}):Ce(sn,{children:[t.cover_left_text_1&&qe({...mb(t.cover_left_icon_1),text:l==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&qe({...mb(t.cover_left_icon_2),text:l==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]})}),H("span",{className:"bili-video-card__stats__duration",children:O&&ue})]})})]})}),H("div",{className:"bili-video-card__info __scale-disable",children:Ce("div",{className:"bili-video-card__info--right",children:[H("a",{href:he,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:H("h3",{className:"bili-video-card__info--tit",title:v,children:v})}),H("p",{className:"bili-video-card__info--bottom",children:O?Ce("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${C}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[$?H("span",{className:cn.recommendReason,children:$}):H("svg",{className:"bili-video-card__info--owner__up",children:H("use",{href:"#widget-up"})}),H("span",{className:"bili-video-card__info--author",children:b}),_&&Ce("span",{className:"bili-video-card__info--date",children:["· ",_]})]}):x||R?Ce("a",{className:"bili-video-card__info--owner",href:he,target:"_blank",children:[H("span",{className:cn.badge,children:x||""}),H("span",{className:cn.bangumiDesc,children:R||""})]}):null})]})})]})}));function J8({id:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=FS(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),h=f.useRef(!1);di("mouseenter",R=>{d.current=!0,n&&!p.current&&x(!0);},{target:i}),di("mouseleave",R=>{d.current=!1;},{target:i}),di("mousemove",R=>{u(!0),n||g();},{target:i});const v=IH(),p=f.useRef(void 0),m=At(()=>{if(v.current)return !0;if(n){if(h.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),g=At((R=!1)=>{p.current&&cancelAnimationFrame(p.current),p.current=void 0,l(void 0),y(!1);}),[b,y,C]=Hl(!1),$=f.useRef(),w=At(()=>{var R;if(!p.current){x();return}y(M=>!M),b&&((R=$.current)==null||R.call($,s||0));}),S=At(()=>s||0),x=At((R=!1)=>{h.current=R,u(!1),y(!1),o(),g(!0),l(E=>typeof E>"u"?0:E);const M=8e3,O=()=>typeof bt.autoPreviewUpdateInterval=="number"?bt.autoPreviewUpdateInterval:400;let I=performance.now(),P=0;$.current=()=>{I=performance.now()-S()*M;};function _(E){if(m()){g();return}const T=()=>{const A=performance.now()-I,N=Math.min(A%M/M,1);l(N);};C()||(O()?(!P||performance.now()-P>=O())&&(P=performance.now(),T()):T()),p.current=requestAnimationFrame(_);}p.current=requestAnimationFrame(_);});return {onHotkeyPreviewAnimation:w,onStartPreviewAnimation:x,previewAnimationProgress:s}}const tp="_video-grid_tu03i_9",eB="_limit-two-lines_tu03i_19",ew="_internal-testing_tu03i_51",tB="_narrow-mode_tu03i_79";function nB({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardRefs:s}){const[l,c]=f.useState(void 0),u=At(()=>!(!e||_u())),d=At(()=>{var x;if(typeof l!="number"||!o.current)return !1;const w=i(),S=(x=o.current.querySelector(`.${Yi.card}.${Yi.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!w||!S||S.top-w.top<-(w.height+S.height)||S.top-w.top>w.height*2+S.height)}),h=w=>S=>{if(!u())return;S==null||S.preventDefault();let x=typeof w=="number"?w:w();const R=d()?l+x:m();if(Rr){C(r);return}c(R),C(R);};ln("leftarrow",h(-1),{exactMatch:!0}),ln("rightarrow",h(1),{exactMatch:!0});const v=()=>np(o.current);ln("uparrow",h(()=>-v()),{exactMatch:!0}),ln("downarrow",h(v),{exactMatch:!0});const p=()=>{u()&&c(void 0);};ln("esc",p),ln("enter",()=>{!u()||typeof l!="number"||$(l);}),ln("backspace",()=>{var w;!u()||typeof l!="number"||(w=s[l])==null||w.onTriggerDislike();}),ln(["s","w"],()=>{var w;!u()||typeof l!="number"||(w=s[l])==null||w.onToggleWatchLater();},{exactMatch:!0}),ln(["period","p"],()=>{var w;!u()||typeof l!="number"||(w=s[l])==null||w.onHotkeyPreviewAnimation();},{exactMatch:!0});function m(){const w=i();if(!w)return 0;const S=b();for(let x=0;x=w.top)return x;return 0}const g=`.${Yi.card}`;function b(){var w;return [...((w=o.current)==null?void 0:w.querySelectorAll(g))||[]]}function y(w){return b()[w]}function C(w){var M;const S=y(w);(M=S==null?void 0:S.scrollIntoViewIfNeeded)==null||M.call(S,!1);const x=i(),R=S.getBoundingClientRect();if(!(!x||!R)){if(R.top<=x.top){const O=-(x.top-R.top+10);a==null||a({offset:O});return}if(x.bottom-R.bottom<10){const O=10-(x.bottom-R.bottom);a==null||a({offset:O});return}}}function $(w){const S=y(w);if(!S)return;const x=S.querySelector(".bili-video-card__wrap > a");x==null||x.click();}return {activeIndex:l,clearActiveIndex:p}}const gb=new Map;function np(e,t=!0){if(t&&bt.useNarrowMode)return 2;let n=gb.get(window.innerWidth);if(n)return n;if(e||(e=document.querySelector(`.${tp}`)),!e)return 0;const r=window.getComputedStyle(e);return r.display!=="grid"?0:(n=r.gridTemplateColumns.split(" ").length,gb.set(window.innerWidth,n),n)}function tw(){return bt.filterMinDurationEnabled||bt.filterMinPlayCountEnabled}function nw(e){return tw()?e.filter(t=>{const{play:n,duration:r,recommendReason:o}=JS(t);return !bt.enableFilterForFollowed&&(o==="已关注"||(o==null?void 0:o.includes("关注")))?!0:!(typeof n=="number"&&bt.filterMinPlayCountEnabled&&bt.filterMinPlayCount&&n1)for(var n=1;n=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return s}}),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Lu(t)?n.showHidden=t:t&&lp(n,t),Lr(n.showHidden)&&(n.showHidden=!1),Lr(n.depth)&&(n.depth=2),Lr(n.colors)&&(n.colors=!1),Lr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=sB),Sc(n,e,n.depth)}jr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};jr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function sB(e,t){var n=jr.styles[t];return n?"\x1B["+jr.colors[n][0]+"m"+e+"\x1B["+jr.colors[n][1]+"m":e}function lB(e,t){return e}function cB(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Sc(e,t,n){if(e.customInspect&&t&&as(t.inspect)&&t.inspect!==jr&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return Zs(r)||(r=Sc(e,r,n)),r}var o=uB(e,t);if(o)return o;var i=Object.keys(t),a=cB(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),is(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Wd(t);if(i.length===0){if(as(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(os(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(wc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(is(t))return Wd(t)}var l="",c=!1,u=["{","}"];if(ip(t)&&(c=!0,u=["[","]"]),as(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(os(t)&&(l=" "+RegExp.prototype.toString.call(t)),wc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),is(t)&&(l=" "+Wd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return os(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return c?h=dB(e,t,n,a,i):h=i.map(function(v){return bh(e,t,n,a,v,c)}),e.seen.pop(),fB(h,l,u)}function uB(e,t){if(Lr(t))return e.stylize("undefined","undefined");if(Zs(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(ap(t))return e.stylize(""+t,"number");if(Lu(t))return e.stylize(""+t,"boolean");if(Qs(t))return e.stylize("null","null")}function Wd(e){return "["+Error.prototype.toString.call(e)+"]"}function dB(e,t,n,r,o){for(var i=[],a=0,s=t.length;a-1&&(i?s=s.split(` `).map(function(c){return " "+c}).join(` `).substr(2):s=` `+s.split(` `).map(function(c){return " "+c}).join(` `))):s=e.stylize("[Circular]","special")),Lr(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function fB(e,t,n){var r=e.reduce(function(o,i){return i.indexOf(` `)>=0,o+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function ip(e){return Array.isArray(e)}function Lu(e){return typeof e=="boolean"}function Qs(e){return e===null}function cw(e){return e==null}function ap(e){return typeof e=="number"}function Zs(e){return typeof e=="string"}function uw(e){return typeof e=="symbol"}function Lr(e){return e===void 0}function os(e){return Ci(e)&&sp(e)==="[object RegExp]"}function Ci(e){return typeof e=="object"&&e!==null}function wc(e){return Ci(e)&&sp(e)==="[object Date]"}function is(e){return Ci(e)&&(sp(e)==="[object Error]"||e instanceof Error)}function as(e){return typeof e=="function"}function dw(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function fw(e){return Buffer.isBuffer(e)}function sp(e){return Object.prototype.toString.call(e)}function Vd(e){return e<10?"0"+e.toString(10):e.toString(10)}var hB=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function vB(){var e=new Date,t=[Vd(e.getHours()),Vd(e.getMinutes()),Vd(e.getSeconds())].join(":");return [e.getDate(),hB[e.getMonth()],t].join(" ")}function hw(){console.log("%s - %s",vB(),ha.apply(null,arguments));}function lp(e,t){if(!t||!Ci(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function vw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const pB={inherits:sw,_extend:lp,log:hw,isBuffer:fw,isPrimitive:dw,isFunction:as,isError:is,isDate:wc,isObject:Ci,isRegExp:os,isUndefined:Lr,isSymbol:uw,isString:Zs,isNumber:ap,isNullOrUndefined:cw,isNull:Qs,isBoolean:Lu,isArray:ip,inspect:jr,deprecate:op,format:ha,debuglog:lw},mB=Object.freeze(Object.defineProperty({__proto__:null,_extend:lp,debuglog:lw,default:pB,deprecate:op,format:ha,inherits:sw,inspect:jr,isArray:ip,isBoolean:Lu,isBuffer:fw,isDate:wc,isError:is,isFunction:as,isNull:Qs,isNullOrUndefined:cw,isNumber:ap,isObject:Ci,isPrimitive:dw,isRegExp:os,isString:Zs,isSymbol:uw,isUndefined:Lr,log:hw},Symbol.toStringTag,{value:"Module"})),gB=qw(mB);var bB=gB.format;function yB(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function CB(e,t){return function(){var n=this,r=[].slice.call(arguments);yB();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new pw(t);a(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),i(l);},function(l){clearTimeout(s),a(l);});})}}let pw=class mw extends Error{constructor(t){super(),this.timeout=t,this.message=bB("timeout of %sms exceed",t),Error.captureStackTrace(this,mw);}};rp.exports=CB;rp.exports.TimeoutError=pw;var SB=rp.exports;const gw=SB,wB=gw.TimeoutError;ku.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=gw(t,i));const a=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class xB extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t;}}var $B=ku.exports.RetryError=bw;ku.exports.TimeoutError=wB;var EB=ku.exports;const OB=Vr(EB);class cp extends Error{constructor(n){super();Pt(this,"json");Error.captureStackTrace(this,cp),this.json=n,this.message=n.message||JSON.stringify(n);}}const PB=10;async function RB(){var r;const t=(await Au.get(WS+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new cp(t);return Dn(`${Lo}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const _B=OB(RB,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Lo,t,e);}});async function bb(){try{return await _B()}catch(e){if(e instanceof $B){console.error(e.errors);const t=[ha("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>ha(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(` `);Dn(t,5e3);}throw e}}async function yw(e){let t=[];const n=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>bb()))).flat();},r=async()=>{for(let o=1;o<=e;o++)t=t.concat(await bb());};return await(bt.useParallelRequest?n:r)(),t=Uc(t,o=>o.param),t.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}const Cw=14;async function yb(e){const t=e.page++;return (await Nu.get("/x/web-interface/index/top/rcmd",{baseURL:BS,withCredentials:!0,params:{fresh_type:3,version:1,ps:Cw,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function Sw(e,t){let n=[];const r=async()=>{n=(await Promise.all(new Array(e).fill(0).map(()=>yb(t)))).flat();},o=async()=>{for(let i=1;i<=e;i++)n=n.concat(await yb(t));};return await(bt.useParallelRequest?r:o)(),n=Uc(n,i=>i.id),n.forEach(i=>{var a,s;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=i.rcmd_reason).content||(s.content="已关注"));}),n.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}Xb.extend("service");const Xl=e=>e.api==="pc"?e.id:e.param;function MB(e,t){const n=e.map(Xl);return t=Uc(t,Xl),e.concat(t.filter(r=>!n.includes(Xl(r))))}async function ww(e,t,n=5){let r=[],o=async i=>{const a=bt.usePcDesktopApi?Cw:PB,s=tw()?n:1.2,l=Math.ceil(i*s/a);let c=bt.usePcDesktopApi?await Sw(l,t):await yw(l);c=nw(c),r=r.concat(c),r=Uc(r,Xl);};for(await o(e);r.length{this.scrollComponent=b,u&&u(b);};const g=[n];return o&&(s?a?g.unshift(s):g.push(s):this.defaultLoader&&(a?g.unshift(this.defaultLoader):g.push(this.defaultLoader))),f.createElement(r,m,g)}}Pt(yh,"propTypes",{children:Hn.node.isRequired,element:Hn.node,hasMore:Hn.bool,initialLoad:Hn.bool,isReverse:Hn.bool,loader:Hn.node,loadMore:Hn.func.isRequired,pageStart:Hn.number,ref:Hn.func,getScrollParent:Hn.func,threshold:Hn.number,useCapture:Hn.bool,useWindow:Hn.bool}),Pt(yh,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const El=Xb.extend("components:RecGrid"),Yi={card:db` border: 2px solid transparent; /* global class under .card */ .bili-video-card__info { padding-left: 2px; padding-bottom: 1px; margin-top: calc(var(--info-margin-top) - 1px); } `,cardActive:db` border-color: #fb7299; border-radius: 6px; overflow: hidden; `};var zB={name:"1uugokx",styles:"text-align:center;line-height:60px;font-size:120%"};const Ow=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o},i)=>{const a=f.useRef({page:1}),[s,l,c]=Hl(0),[u,d,h]=Hl([]),[v,p]=f.useState(!1),[m,g,b]=Hl(()=>Date.now()),y=At(async()=>{const T=performance.now();if(El("call refresh()"),v)return;await(n==null?void 0:n()),p(!0),g(Date.now()),P(),d([]),a.current.page=1;try{d(await IB(a.current));}catch(N){throw p(!1),N}l(1),P(),p(!1);const A=performance.now()-T;El("refresh cost %s ms",A.toFixed(0)),w();});Zv(y),f.useImperativeHandle(i,()=>({refresh:y}),[]);const C=f.useRef(!1),$=At(async()=>{if(v||C.current)return;C.current=!0;const T=b();let A=u;try{for(;!(A.length>u.length);){const N=await NB(2,a.current);A=MB(A,N);}}catch(N){throw C.current=!1,N}if(T!==b()){El("fetchMore: skip update for mismatch refreshedAt, %s != %s",T,b()),C.current=!1;return}El("fetchMore: seq(%s) len %s -> %s",c()+1,u.length,A.length),d(A),l(N=>N+1),w(),C.current=!1;}),w=At(()=>{setTimeout(()=>{const T=e?window:o==null?void 0:o.current;T==null||T.dispatchEvent(new CustomEvent("scroll"));});}),{useNarrowMode:S}=yr(),x=f.useRef(null),R=At(()=>{var T;if(e){const A=$0+50;return new DOMRect(0,A,window.innerWidth,window.innerHeight-A)}else return (T=o==null?void 0:o.current)==null?void 0:T.getBoundingClientRect()}),M=m8(),O=f.useMemo(()=>new Array(u.length).fill(void 0),[u.length]),{activeIndex:I,clearActiveIndex:P}=nB({enabled:t&&!M,refresh:y,maxIndex:u.length-1,containerRef:x,getScrollerRect:R,videoCardRefs:O,changeScrollY:e?function({offset:T,absolute:A}){const N=document.documentElement;if(typeof T=="number"){N.scrollTop+=T;return}if(typeof A=="number"){N.scrollTop=A;return}}:void 0}),_=ps(),{colorPrimary:E}=Sa();return H(yh,{pageStart:0,hasMore:!0,loadMore:$,initialLoad:!1,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:H("div",{css:zB,children:"加载中..."},-1),children:H("div",{ref:x,className:X(tp,{[ew]:_},{[tB]:S},r),children:v?new Array(24).fill(void 0).map((T,A)=>H(Cc,{loading:!0,className:Yi.card},A)):u.map((T,A)=>{const N=A===I;return H(Cc,{ref:D=>O[A]=D,className:X(Yi.card,{[Yi.cardActive]:N}),css:[N&&ar("border-color:",E,";",""),"",""],item:T,active:N},T.uniqId)})})})}),Cb=H(In,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function Pw({style:e,className:t}){const{runAsync:n,loading:r}=AS(XH,{manual:!0}),{accessKey:o}=yr();return H(_v,{size:"small",style:e,className:t,children:o?Ce(sn,{children:[H(In,{onClick:n,disabled:r,children:H("span",{children:"重新获取 access_key"})}),H(In,{onClick:qH,children:H("span",{children:"删除 access_key"})}),Cb]}):Ce(sn,{children:[H(In,{onClick:n,disabled:r,size:"middle",children:H("span",{children:"获取 access_key"})}),Cb]})})}const jB="_config-icon_18r5p_1",HB="_settings-group_18r5p_6",BB="_settings-group-title_18r5p_9",WB="_settings-group-sub-title_18r5p_14",VB="_settings-group-content_18r5p_20",UB="_row_18r5p_26",KB="_check_18r5p_34",GB="_setting-tabs_18r5p_39",XB="_tab-pane_18r5p_42",ot={configIcon:jB,settingsGroup:HB,settingsGroupTitle:BB,settingsGroupSubTitle:WB,settingsGroupContent:VB,row:UB,check:KB,settingTabs:GB,tabPane:XB};async function Rw(){Dn("即将刷新网页"),await Ru(500),location.reload();}function qB(){return t_(),Rw()}function Ud(e,t,n){return ln(e,r=>{if(_u())return;bt[t]=!bt[t];const o=!bt[t];Dn(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function YB({show:e,onHide:t}){const{usePcDesktopApi:n,autoPreviewUpdateInterval:r,filterMinPlayCount:o,filterMinPlayCountEnabled:i,filterMinDuration:a,filterMinDurationEnabled:s}=yr();return Ud(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Ud(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Ud(["shift.c"],"useNarrowMode","居中模式"),Ce(Jv,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[Ce("div",{className:br.modalHeader,children:[Ce("div",{className:br.modalTitle,children:[H(go,{name:"Config",className:ot.configIcon}),"设置项"]}),H("div",{className:"space",style:{flex:1}}),H(ep,{onClick:t})]}),H("main",{className:br.modalBody,children:H(A1,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:ot.settingTabs,items:[{label:"常规设置",key:"normal",children:Ce("div",{className:ot.tabPane,children:[Ce("div",{className:ot.settingsGroup,children:[H("div",{className:ot.settingsGroupTitle,children:"接口切换"}),Ce("div",{className:X(ot.settingsGroupContent),children:[Ce(Ed.Group,{buttonStyle:"solid",value:n?"desktop":"app",onChange:l=>{const c=l.target.value;bt.usePcDesktopApi=c==="desktop";},children:[H(Ed.Button,{value:"desktop",children:"使用桌面端接口"}),H(Ed.Button,{value:"app",children:"使用 App 端接口"})]}),!n&&H("div",{className:ot.row,style:{marginTop:5},children:H(Pw,{})})]})]}),Ce("div",{className:ot.settingsGroup,children:[H("div",{className:ot.settingsGroupTitle,children:"开关"}),Ce("div",{className:X(ot.settingsGroupContent,ot.row),children:[H(or,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:Ce(sn,{children:["首页只保留推荐",H("br",{}),"P.S 需要刷新网页~"]}),className:ot.check,extraAction:Rw}),H(or,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:ot.check,extraAction:l=>{l&&Dn("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),H(or,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:Ce(sn,{children:["居中两列",H("br",{}),"切换设置快捷键: ",H(Da,{color:"green",children:"shift+c"})]}),className:ot.check}),H(or,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:Ce(sn,{children:["并行快但可能有重复",H("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:ot.check})]})]}),Ce("div",{className:ot.settingsGroup,children:[H("div",{className:ot.settingsGroupTitle,children:"预览"}),Ce("div",{className:X(ot.settingsGroupContent,ot.row),children:[H(or,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:ot.check,tooltip:Ce(sn,{children:["手动预览快捷键: ",H(Da,{color:"green",children:"."})," or ",H(Da,{color:"green",children:"p"}),H("br",{}),"切换设置快捷键: ",H(Da,{color:"green",children:"shift+p"})]})}),H(or,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:ot.check,tooltip:Ce(sn,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",H("br",{}),"切换设置快捷键: ",H(Da,{color:"green",children:"shift+m"})]})}),Ce("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",H(fj,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>bt.autoPreviewUpdateInterval=l,value:r}),Ce("span",{style:{width:"65px"},children:["(",r,"ms)"]})]})]})]}),Ce("div",{className:ot.settingsGroup,children:[H("div",{className:ot.settingsGroupTitle,children:"帮助"}),H("div",{className:X(ot.settingsGroupContent),children:H("div",{className:ot.row,children:Ce(_v,{size:"small",children:[H(In,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),H(In,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),H(In,{href:"https://github.com/magicdawn/bilibili-app-recommend#%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AF%B4%E6%98%8E",target:"_blank",children:"查看可用的快捷键"})]})})})]})]})},{label:"视频过滤",key:"filter",children:H("div",{className:ot.tabPane,children:Ce("div",{className:ot.settingsGroup,children:[Ce("div",{className:ot.settingsGroupTitle,children:["视频过滤",H(OS,{title:H(sn,{children:"启用视频过滤会大幅降低加载速度, 谨慎开启!"}),children:H(go,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),Ce("div",{className:X(ot.settingsGroupContent),children:[H("div",{className:ot.settingsGroupSubTitle,children:"过滤范围"}),H(or,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:H(sn,{children:"默认不过滤「已关注」"})}),H("div",{className:ot.settingsGroupSubTitle,children:"过滤器"}),Ce("div",{className:ot.row,children:[H(or,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:H(sn,{children:"不显示播放量很少的视频"})}),H(rh,{size:"small",min:1,step:1e3,value:o,onChange:l=>l&&aa({filterMinPlayCount:l}),disabled:!i})]}),Ce("div",{className:ot.row,style:{marginTop:8},children:[H(or,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:H(sn,{children:"不显示短视频"})}),H(rh,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&aa({filterMinDuration:l}),disabled:!s})]})]})]})})},{label:"外观设置",key:"UI",children:H("div",{className:ot.tabPane,children:Ce("div",{className:ot.settingsGroup,children:[H("div",{className:ot.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),H("div",{className:X(ot.settingsGroupContent),children:H(O6,{})})]})})},{label:"高级设置",key:"advance",children:H("div",{className:ot.tabPane,children:Ce("div",{className:ot.settingsGroup,children:[H("div",{className:ot.settingsGroupTitle,children:"高级"}),Ce("div",{className:X(ot.settingsGroupContent),children:[H("div",{className:ot.row,children:H(Wz,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:qB,children:H(In,{danger:!0,type:"primary",children:"恢复默认设置"})})}),H("div",{className:ot.row,style:{marginTop:10},children:H(or,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:ot.check})})]})]})})}]})})]})}var up={};Object.defineProperty(up,"__esModule",{value:!0});var _w=up.useSticky=void 0;const Kd=f;function QB(){const e=(0, Kd.useRef)(null),[t,n]=(0, Kd.useState)(!1);return (0, Kd.useEffect)(()=>{function r(){if(!e.current)return;const o=e.current.getBoundingClientRect().top,i=parseInt(getComputedStyle(e.current).top),a=o<=i;a&&!t?n(!0):!a&&t&&n(!1);}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}_w=up.useSticky=QB;const ZB="_expand-btn_wdzp9_1",JB="_expanded_wdzp9_12",Sb={expandBtn:ZB,expanded:JB},eW=f.forwardRef(function({children:t},n){const[r,o]=DS(!1);f.useImperativeHandle(n,()=>o,[o]);const i=H("button",{className:X("primary-btn",Sb.expandBtn),onClick:o.toggle,children:H("svg",{className:X({[Sb.expanded]:r}),children:H("use",{href:"#widget-arrow"})})});return Ce(sn,{children:[i,r&&t]})}),tW="_modal-mask_7bwzz_1",nW="_narrow-mode_7bwzz_1",rW="_modal_7bwzz_1",oW="_modal-header_7bwzz_18",iW="_modal-body_7bwzz_19",aW="_btn-refresh_7bwzz_22",za={modalMask:tW,narrowMode:nW,modal:rW,modalHeader:oW,modalBody:iW,btnRefresh:aW};var sW={name:"1q4vxyr",styles:"margin-left:8px"};const lW=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:i}=yr(),a=f.useMemo(()=>({[za.narrowMode]:i}),[i]),s=At(()=>{var h;return (h=o.current)==null?void 0:h.refresh()}),l=At(()=>{r.current&&(r.current.scrollTop=0);}),c=Gc(),{colorPrimary:u}=Sa(),d=f.useMemo(()=>c?{border:`1px solid ${u}`}:void 0,[c,u]);return Ce(Jv,{show:t,onHide:n,clsModalMask:X(a),clsModal:X(za.modal,a),styleModal:{...d},children:[Ce("div",{className:X(br.modalHeader,za.modalHeader),children:[H("div",{className:br.modalTitle,children:"推荐"}),H("div",{className:"space",style:{flex:1}}),H(eW,{children:H(g6,{})}),H(Tw,{css:sW,onClick:s,className:za.btnRefresh,refreshHotkeyEnabled:t}),H(ep,{onClick:n})]}),H("div",{className:X(br.modalBody,za.modalBody),ref:r,children:H(Ow,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r})})]})}),dp=ar` display: flex; align-items: center; justify-content: center; `,wb={btn:ar` padding: 0; width: 32px; height: 32px; border-radius: 50%; ${dp} `,icon:ar` svg { width: 14px; height: 14px; } `},ko=Ds({modalFeedVisible:bt.initialShowMore,modalConfigVisible:!1}),cW=function(){return ma(ko)},uW=()=>{ko.modalFeedVisible=!0;},dW=()=>{ko.modalFeedVisible=!1;},fW=()=>{ko.modalConfigVisible=!0;},hW=()=>{ko.modalConfigVisible=!1;};function Mw({onRefresh:e}){const{accessKey:t,pureRecommend:n,usePcDesktopApi:r}=yr(),{modalFeedVisible:o,modalConfigVisible:i}=ma(ko);ln(["shift.comma"],l=>{_u()||(ko.modalConfigVisible=!ko.modalConfigVisible);},{exactMatch:!0});const[a,s]=_w();return Ce(sn,{children:[Ce("div",{ref:a,className:"area-header",css:[ar` margin-bottom: 0; height: 50px; `,n&&ar` position: sticky; top: ${$0}px; z-index: 1000; `,n&&s&&ar` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[Ce("div",{className:"left",children:[H("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),H("svg",{className:"icon",children:H("use",{href:"#channel-cinephile"})}),H("a",{className:"title",href:"#",children:H("span",{children:"推荐"})})]}),H("div",{className:"right",children:Ce(_v,{size:"small",children:[!r&&!t&&H(Pw,{style:{marginLeft:5}}),H(In,{onClick:fW,css:wb.btn,children:H(go,{name:"Config",css:wb.icon})}),H(Tw,{onClick:e,refreshHotkeyEnabled:!(i||o)}),!n&&Ce(In,{css:dp,onClick:uW,children:[H("span",{children:"查看更多"}),H("svg",{css:ar` width: 12px; height: 12px; margin-left: 2px; `,children:H("use",{href:"#widget-arrow"})})]})]})})]}),H(lW,{show:o,onHide:dW}),H(YB,{show:i,onHide:hW})]})}const Tw=f.forwardRef(function({onClick:e,className:t="",style:n,refreshHotkeyEnabled:r},o){r??(r=!0);const[i,a]=f.useState(0),s=At(c=>(a(u=>u+360),e==null?void 0:e(c))),l=f.useRef(null);return f.useImperativeHandle(o,()=>({click(){var c;(c=l.current)==null||c.click();}}),[]),ln("r",()=>{var c;r&&(_u()||(c=l.current)==null||c.click());},{exactMatch:!0}),Ce(In,{className:t,style:n,css:ar` ${dp} &.ant-btn:not(:disabled):focus-visible { outline: none; } `,ref:l,onClick:s,children:[H("svg",{style:{transform:`rotate(${i}deg)`,width:"11px",height:"11px",marginRight:5,transition:i===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{a(0);},children:H("use",{href:"#widget-roll"})}),H("span",{children:"换一换"})]})}),vW={grid:ar` /* card=299 col-gap=20 */ width: ${299*2+20}px; margin: 0 auto; `};function pW(){const{useNarrowMode:e}=yr(),{modalFeedVisible:t,modalConfigVisible:n}=cW(),r=f.useRef(null),o=At(()=>{var a;return (a=r.current)==null?void 0:a.refresh()}),i=At(()=>{document.documentElement.scrollTop=0;});return Ce("section",{"data-area":"推荐",children:[H(Mw,{onRefresh:o}),H(Ow,{ref:r,css:[e&&vW.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i})]})}function mW(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=ps(),n=f.useMemo(()=>({page:1}),[]),{data:r,loading:o,error:i,refresh:a}=AS(()=>TB(n));return i&&console.error(i.stack||i),Ce("section",{"data-area":"推荐",children:[H(Mw,{onRefresh:a}),H("div",{className:X(tp,eB,{[ew]:t}),style:{marginBottom:t?30:0},children:o||i?e.map(s=>H(Cc,{},s)):r.map(s=>H(Cc,{item:s},s.uniqId))})]})}Kc.extend(o_);(function(){var t;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(t=window.top)==null?void 0:t.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/"||location.pathname==="/index.html")return gW()})();async function gW(){return Fl(".adblock-tips"),RS("html.gray",e=>e.classList.remove("gray")),bt.pureRecommend?yW():bW()}async function bW(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const i=document.querySelector(".bili-layout > section.bili-grid");n=a=>i==null?void 0:i.insertAdjacentElement("afterend",a);break}if(ps()&&document.querySelector(".bili-feed4-layout")){n=i=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",i)};break}await Ru(200);}if(!n){console.error(`[${Lo}]: init fail`);return}const r=document.createElement("section");n(r),Mu(r).render(H(ES,{children:H(mW,{})}));}async function yW(){var o,i;ps()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),Fl(".bili-feed4 .header-channel")):((i=document.querySelector(".bili-layout"))==null||i.remove(),Fl(".bili-footer"),Fl(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(ps()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const n=document.createElement("section");e==null||e.appendChild(n),Mu(n).render(H(ES,{children:H(pW,{})}));}});CW(); })(React, ReactDOM, axios, axiosGmxhrAdapter);